Skip to content

The micro-VM for AI agents — light enough to embed on your laptop, elastic enough to power an agentic cloud.

build(plugins): package shared sources for Codex and Claude (#3075)

zombee0e6776f5f3285
diff --git a/.agents/plugins/marketplace.json b/.agents/plugins/marketplace.json
index 9d5d20002..95718d14e 100644
--- a/.agents/plugins/marketplace.json
+++ b/.agents/plugins/marketplace.json
@@ -17,18 +17,6 @@
"authentication": "ON_INSTALL"
},
"category": "Developer Tools"
- },
- {
- "name": "boxlite",
- "source": {
- "source": "local",
- "path": "./plugins/boxlite"
- },
- "policy": {
- "installation": "AVAILABLE",
- "authentication": "ON_USE"
- },
- "category": "Developer Tools"
}
]
}
diff --git a/.github/workflows/build-plugins.yml b/.github/workflows/build-plugins.yml
index 6cab6fbea..a74ad63b2 100644
--- a/.github/workflows/build-plugins.yml
+++ b/.github/workflows/build-plugins.yml
@@ -3,7 +3,8 @@ name: Build BoxLite plugin packages
on:
pull_request:
paths:
- - 'plugins/boxlite/**'
+ - 'plugins/boxlite-codex/**'
+ - 'plugins/boxlite-claude/**'
- 'scripts/plugins/**'
- 'tests/plugins/**'
- 'make/plugins.mk'
@@ -37,13 +38,15 @@ jobs:
- name: Install pinned Claude manifest validator
run: npm install --global @anthropic-ai/[email protected]
- name: Build and validate both host packages
- run: make plugin:boxlite:check:cc plugin:boxlite:review-kit
+ run: |
+ make plugin:boxlite:submission
+ claude plugin validate --strict plugins/boxlite-claude
- name: Bind artifacts to the plugin version
id: package
shell: bash
run: |
set -euo pipefail
- version="$(jq -er '.version' plugins/boxlite/plugin.json)"
+ version="$(jq -er '.version' plugins/boxlite-codex/plugin.json)"
if [[ "$GITHUB_EVENT_NAME" != pull_request ]]; then
if [[ "$GITHUB_REF_TYPE" != tag || "$GITHUB_REF_NAME" != "boxlite-plugin-v$version" ]]; then
echo 'Release builds must run on the boxlite-plugin-vVERSION tag matching plugin.json.' >&2
@@ -52,19 +55,12 @@ jobs:
fi
printf 'version=%s\nartifact=boxlite-plugins-%s-%s-%s\n' \
"$version" "$version" "$GITHUB_RUN_ID" "$GITHUB_RUN_ATTEMPT" >> "$GITHUB_OUTPUT"
- cd target/plugins
- sha256sum --check SHA256SUMS
- sha256sum --check "boxlite-review-kit-$version.zip.sha256"
+ unzip -tq "target/plugins/boxlite-$version.zip"
- name: Save validated packages for release or PR preview
uses: actions/upload-artifact@v4
with:
name: ${{ steps.package.outputs.artifact }}
- path: |
- target/plugins/boxlite-${{ steps.package.outputs.version }}.zip
- target/plugins/boxlite-marketplace-${{ steps.package.outputs.version }}.zip
- target/plugins/SHA256SUMS
- target/plugins/boxlite-review-kit-${{ steps.package.outputs.version }}.zip
- target/plugins/boxlite-review-kit-${{ steps.package.outputs.version }}.zip.sha256
+ path: target/plugins/boxlite-${{ steps.package.outputs.version }}.zip
if-no-files-found: error
compression-level: 0
retention-days: 7
diff --git a/.github/workflows/publish-plugins.yml b/.github/workflows/publish-plugins.yml
index 8b8d2feb1..04b0e14b8 100644
--- a/.github/workflows/publish-plugins.yml
+++ b/.github/workflows/publish-plugins.yml
@@ -124,17 +124,14 @@ jobs:
image="ghcr.io/$repository"
reference="$image:$VERSION"
tag="boxlite-plugin-v$VERSION"
- review_kit="boxlite-review-kit-$VERSION.zip"
- sha256sum --strict --check SHA256SUMS "$review_kit.sha256"
+ unzip -tq "boxlite-$VERSION.zip"
layout="$RUNNER_TEMP/plugin-oci:$VERSION"
oras push --oci-layout --artifact-type application/vnd.boxlite.plugin.v1 \
--annotation "org.opencontainers.image.created=$CREATED" \
--annotation "org.opencontainers.image.revision=$SOURCE_SHA" \
--annotation "org.opencontainers.image.version=$VERSION" \
--annotation "org.opencontainers.image.url=$GITHUB_SERVER_URL/$GITHUB_REPOSITORY" \
- "$layout" "boxlite-$VERSION.zip:application/zip" \
- "boxlite-marketplace-$VERSION.zip:application/zip" SHA256SUMS:text/plain \
- "$review_kit:application/zip" "$review_kit.sha256:text/plain"
+ "$layout" "boxlite-$VERSION.zip:application/zip"
digest="$(oras resolve --oci-layout "$layout")"
if [[ ! "$digest" =~ ^sha256:[a-f0-9]{64}$ ]]; then
echo 'ORAS did not return a manifest digest.' >&2
@@ -191,4 +188,4 @@ jobs:
VERSION: ${{ needs.verify.outputs.version }}
IMAGE: ${{ steps.registry.outputs.image }}
DIGEST: ${{ steps.registry.outputs.digest }}
- run: printf 'Plugin version `%s`\n\nDownload with `oras pull %s@%s`.\n' "$VERSION" "$IMAGE" "$DIGEST" >> "$GITHUB_STEP_SUMMARY"
+ run: printf 'Plugin version %s\n\n oras pull %s@%s\n' "$VERSION" "$IMAGE" "$DIGEST" >> "$GITHUB_STEP_SUMMARY"
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index cbafc1768..449239e18 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -71,7 +71,8 @@ on:
- 'openapi/**'
- 'codecov.yml'
- '!**/*.md'
- - 'plugins/boxlite/**'
+ - 'plugins/boxlite-codex/**'
+ - 'plugins/boxlite-claude/**'
- '.agents/plugins/marketplace.json'
- 'scripts/plugins/**'
- 'tests/plugins/**'
@@ -299,7 +300,8 @@ jobs:
- '.github/workflows/test.yml'
plugins:
- '.agents/plugins/marketplace.json'
- - 'plugins/boxlite/**'
+ - 'plugins/boxlite-codex/**'
+ - 'plugins/boxlite-claude/**'
- 'scripts/plugins/**'
- 'tests/plugins/**'
- 'Makefile'
diff --git a/apps/infra/deployment/workflow-checks.test.ts b/apps/infra/deployment/workflow-checks.test.ts
index 08988987d..7ee671fc5 100644
--- a/apps/infra/deployment/workflow-checks.test.ts
+++ b/apps/infra/deployment/workflow-checks.test.ts
@@ -199,8 +199,8 @@ const coverageWorkflow: any = loadYaml(readFileSync(join(REPO_ROOT, '.github/wor
const coverageSuites = ['rust', 'python', 'node', 'go', 'api', 'dashboard', 'plugins', 'infra']
for (const path of ['scripts/plugins/boxlite.py', 'scripts/plugins/.coveragerc',
- 'tests/plugins/test_boxlite_package.py', 'plugins/boxlite/skills/boxlite-setup/SKILL.md',
- 'plugins/boxlite/.codex-plugin/plugin.json', 'make/plugins.mk', '.agents/plugins/marketplace.json']) {
+ 'tests/plugins/test_boxlite_package.py', 'plugins/boxlite-claude/skills/boxlite-setup/SKILL.md',
+ 'plugins/boxlite-codex/plugin.json', 'make/plugins.mk', '.agents/plugins/marketplace.json']) {
test(`plugin inputs select real coverage on PRs and main pushes: ${path}`, () => {
assert.deepEqual(testSuites([path]), ['plugins'])
assert.equal(acceptsFiles('test.yml', 'push', [path]), true)
diff --git a/apps/infra/scripts/plugin-release-workflow.test.mjs b/apps/infra/scripts/plugin-release-workflow.test.mjs
index 48e1b4435..a922b6d40 100644
--- a/apps/infra/scripts/plugin-release-workflow.test.mjs
+++ b/apps/infra/scripts/plugin-release-workflow.test.mjs
@@ -13,19 +13,13 @@ const publisher = load(readFileSync(join(root, '.github/workflows/publish-plugin
const packageScript = build.jobs.build.steps.find((step) => step.id === 'package').run
const verifyScript = publisher.jobs.verify.steps.find((step) => step.id === 'source').run
const publishScript = publisher.jobs.publish.steps.find((step) => step.id === 'registry').run
-const { version } = JSON.parse(readFileSync(join(root, 'plugins/boxlite/plugin.json'), 'utf8'))
+const { version } = JSON.parse(readFileSync(join(root, 'plugins/boxlite-codex/plugin.json'), 'utf8'))
const tag = `boxlite-plugin-v${version}`
-const files = [
- `boxlite-${version}.zip`,
- `boxlite-marketplace-${version}.zip`,
- 'SHA256SUMS',
- `boxlite-review-kit-${version}.zip`,
- `boxlite-review-kit-${version}.zip.sha256`,
-]
+const files = [`boxlite-${version}.zip`]
// Exercise the workflow against archives produced by the real package builder.
before(() => {
- const built = spawnSync('make', ['--no-print-directory', 'plugin:boxlite:review-kit'], {
+ const built = spawnSync('make', ['--no-print-directory', 'plugin:boxlite:submission'], {
cwd: root,
encoding: 'utf8',
timeout: 90_000,
@@ -47,9 +41,16 @@ for (const [event, refType, ref, allowed] of [
['workflow_dispatch', 'branch', 'main', false],
]) {
test(`plugin package version gate: ${event} ${ref}`, (t) => {
- const output = join(directory(t), 'output')
+ const checkout = directory(t)
+ const manifests = join(checkout, 'plugins/boxlite-codex')
+ const packages = join(checkout, 'target/plugins')
+ mkdirSync(manifests, { recursive: true })
+ mkdirSync(packages, { recursive: true })
+ copyFileSync(join(root, 'plugins/boxlite-codex/plugin.json'), join(manifests, 'plugin.json'))
+ copyFileSync(join(root, 'target/plugins', files[0]), join(packages, files[0]))
+ const output = join(checkout, 'output')
const run = spawnSync('bash', ['-c', packageScript], {
- cwd: root,
+ cwd: checkout,
encoding: 'utf8',
timeout: 10_000,
env: {
@@ -120,7 +121,8 @@ if (command === 'gh' && args[0] === 'api') {
} else process.exit(2)
} else if (command === 'oras') {
if (args[0] === 'push' && args.includes('--oci-layout')) {
- if (!args.slice(-5).every((file) => fs.existsSync(file.split(':')[0]))) process.exit(2)
+ const layers = args.slice(args.indexOf('--oci-layout') + 1).filter(arg => arg.endsWith(':application/zip') || arg.endsWith(':text/plain'))
+ if (layers.length !== 1 || !fs.existsSync(layers[0].split(':')[0])) process.exit(2)
} else if (args[0] === 'login') {
assertPassword()
} else if (args[0] === 'cp') {
@@ -173,6 +175,8 @@ function assertPassword() {
}
test('plugin build is read-only and publication uses only the verified attempt', (t) => {
+ const upload = build.jobs.build.steps.find((step) => step.uses?.startsWith('actions/upload-artifact@'))
+ assert.equal(upload.with.path, 'target/plugins/boxlite-${{ steps.package.outputs.version }}.zip')
assert.deepEqual(build.permissions, { contents: 'read' })
assert.deepEqual(Object.keys(build.jobs), ['build'])
assert.deepEqual(publisher.on.workflow_run.workflows, [build.name])
@@ -224,13 +228,13 @@ test('plugin verifier rejects a same-name workflow with a different identity', (
})
for (const [fault, expectedCopies] of [['none', 1], ['same-digest', 0]]) {
- test(`plugin publisher verifies five OCI layers and emits the digest on ${fault}`, (t) => {
+ test(`plugin publisher publishes the verified Codex ZIP and emits the digest on ${fault}`, (t) => {
const { run, calls, copies, output } = execute(t, publishScript, fault)
assert.equal(run.status, 0, run.stderr)
const layout = calls.find(([command, subcommand]) => command === 'oras' && subcommand === 'push')
assert.ok(layout.includes('--oci-layout'))
assert.ok(layout.includes('org.opencontainers.image.created=2026-11-20T00:00:00Z'))
- assert.deepEqual(layout.slice(-5).map((file) => file.split(':')[0]), files)
+ assert.deepEqual(layout.filter((arg) => arg.endsWith(':application/zip') || arg.endsWith(':text/plain')).map((file) => file.split(':')[0]), files)
assert.equal(copies.length, expectedCopies)
if (expectedCopies) assert.equal(copies[0].at(-1), `ghcr.io/boxlite-ai/boxlite-plugin:${version}`)
assert.equal(output, `image=ghcr.io/boxlite-ai/boxlite-plugin\ndigest=sha256:${'a'.repeat(64)}\n`)
diff --git a/make/help.mk b/make/help.mk
index 249e75aee..717199316 100644
--- a/make/help.mk
+++ b/make/help.mk
@@ -47,6 +47,7 @@ help:
@echo " make github-ci-runner-image - Build the local Node Listener image"
@echo ""
@echo " Plugins:"
+ @echo " make plugin:boxlite:submission - Build the standalone Codex submission ZIP"
@echo " make plugin:boxlite:check - Validate BoxLite plugin and package tests"
@echo " make plugin:boxlite:dist - Build cloud/local plugin and marketplace ZIPs"
@echo " make plugin:boxlite:check:cc - Validate Claude Code plugin and marketplace"
@@ -54,8 +55,6 @@ help:
@echo " make plugin:boxlite:smoke:cloud - Exercise production MCP using BOXLITE_API_KEY (creates and removes a Box)"
@echo " make plugin:boxlite:smoke:local - Exercise the real local VM using PLUGIN_LOCAL_CLI (creates and removes a Box)"
@echo " make plugin:boxlite:preflight:oauth - Check public OAuth prerequisites without credentials or Auth0 writes"
- @echo " make plugin:boxlite:review-kit - Build installable packages and public review materials"
- @echo " make plugin:boxlite:ready - Check private release evidence (fails while gates are pending)"
@echo ""
@echo " Testing (strict full-matrix default):"
@echo " make test - Run full test matrix (same as make test:all)"
diff --git a/make/plugins.mk b/make/plugins.mk
index 7958a9b96..a3da1e0ff 100644
--- a/make/plugins.mk
+++ b/make/plugins.mk
@@ -1,6 +1,5 @@
# Cloud MCP and local-runtime plugin distribution; no runtime build is required.
PLUGIN_COVERAGE_PYTHON ?= $(PLUGIN_PYTHON)
-PLUGIN_REVIEW_CHECKLIST ?= scripts/plugins/review/checklist.json
PLUGIN_LOCAL_CLI ?= $(CURDIR)/target/plugins/tools/boxlite
PLUGIN_COVERAGE = PYTHONDONTWRITEBYTECODE=1 COVERAGE_FILE=target/coverage/plugins/.coverage COVERAGE_RCFILE=scripts/plugins/.coveragerc $(PLUGIN_COVERAGE_PYTHON) -m coverage
@@ -9,11 +8,14 @@ plugin\:boxlite\:check: plugin-boxlite-force
@$(PLUGIN_PYTHON) scripts/plugins/boxlite.py check
@$(MAKE) --no-print-directory test:unit:plugins
+plugin\:boxlite\:submission: plugin-boxlite-force plugin\:boxlite\:check
+ @$(PLUGIN_PYTHON) scripts/plugins/boxlite.py submission
+
plugin\:boxlite\:dist: plugin-boxlite-force plugin\:boxlite\:check
@$(PLUGIN_PYTHON) scripts/plugins/boxlite.py dist
plugin\:boxlite\:check\:cc: plugin-boxlite-force plugin\:boxlite\:dist
- @claude plugin validate --strict plugins/boxlite
+ @claude plugin validate --strict plugins/boxlite-claude
@claude plugin validate --strict target/plugins/boxlite-marketplace
plugin\:boxlite\:coverage: plugin-boxlite-force
@mkdir -p target/coverage/plugins
@@ -31,9 +33,3 @@ plugin\:boxlite\:smoke\:local: plugin-boxlite-force
plugin\:boxlite\:preflight\:oauth: plugin-boxlite-force
@$(PLUGIN_PYTHON) scripts/plugins/oauth_preflight.py
-
-plugin\:boxlite\:review-kit: plugin-boxlite-force plugin\:boxlite\:check
- @$(PLUGIN_PYTHON) scripts/plugins/release.py kit
-
-plugin\:boxlite\:ready: plugin-boxlite-force
- @$(PLUGIN_PYTHON) scripts/plugins/release.py ready --checklist "$(PLUGIN_REVIEW_CHECKLIST)"
diff --git a/plugins/boxlite/.claude-plugin/plugin.json b/plugins/boxlite-claude/.claude-plugin/plugin.json
similarity index 68%
rename from plugins/boxlite/.claude-plugin/plugin.json
rename to plugins/boxlite-claude/.claude-plugin/plugin.json
index dacc3e7fb..2c3a5b38e 100644
--- a/plugins/boxlite/.claude-plugin/plugin.json
+++ b/plugins/boxlite-claude/.claude-plugin/plugin.json
@@ -17,5 +17,14 @@
"local",
"mcp",
"skills"
- ]
+ ],
+ "userConfig": {
+ "api_key": {
+ "type": "string",
+ "title": "BoxLite API key",
+ "description": "Optional credential for the Cloud API key connection.",
+ "sensitive": true,
+ "required": false
+ }
+ }
}
diff --git a/plugins/boxlite-claude/.mcp.json b/plugins/boxlite-claude/.mcp.json
new file mode 100644
index 000000000..754bf1a11
--- /dev/null
+++ b/plugins/boxlite-claude/.mcp.json
@@ -0,0 +1,15 @@
+{
+ "mcpServers": {
+ "boxlite": {
+ "type": "http",
+ "url": "https://api.boxlite.ai/mcp"
+ },
+ "boxlite-api": {
+ "type": "http",
+ "url": "https://api.boxlite.ai/mcp?connection=api-key",
+ "headers": {
+ "Authorization": "Bearer ${user_config.api_key}"
+ }
+ }
+ }
+}
diff --git a/plugins/boxlite/LICENSE b/plugins/boxlite-claude/LICENSE
similarity index 100%
rename from plugins/boxlite/LICENSE
rename to plugins/boxlite-claude/LICENSE
diff --git a/plugins/boxlite-claude/README.md b/plugins/boxlite-claude/README.md
new file mode 100644
index 000000000..0e2c5febb
--- /dev/null
+++ b/plugins/boxlite-claude/README.md
@@ -0,0 +1,20 @@
+# BoxLite
+
+Create and run isolated Linux sandboxes from Codex or Claude Code. Choose a mode when you set up the plugin.
+
+| Mode | What you need |
+| --- | --- |
+| Cloud OAuth | A BoxLite account and browser authorization through your host. |
+| Cloud API key | A BoxLite API key configured privately in your host. |
+| Local | A BoxLite CLI on the execution host, Python 3.9+, and working virtualization. |
+
+For installation and connection checks, follow the [setup guide](skills/boxlite-setup/SKILL.md).
+Once setup succeeds, use the [Box operations guide](skills/boxlite/SKILL.md) to run commands and transfer files in the selected mode.
+
+## Cloud file transfers
+
+BoxLite runs Python on your computer to package uploads and unpack downloads. Directory uploads include hidden files.
+Both hosts transfer file data through the BoxLite MCP connection you select.
+
+Codex applies its shell-command permissions when it launches the bundled transfer helper.
+Claude Code applies its tool permissions to each upload or download call and its arguments, including the connection, Box ID, and paths.
diff --git a/plugins/boxlite/assets/boxlite-icon.png b/plugins/boxlite-claude/assets/boxlite-icon.png
similarity index 100%
rename from plugins/boxlite/assets/boxlite-icon.png
rename to plugins/boxlite-claude/assets/boxlite-icon.png
diff --git a/plugins/boxlite/hooks/hooks.json b/plugins/boxlite-claude/hooks/hooks.json
similarity index 100%
rename from plugins/boxlite/hooks/hooks.json
rename to plugins/boxlite-claude/hooks/hooks.json
diff --git a/plugins/boxlite/hooks/transfer.js b/plugins/boxlite-claude/hooks/transfer.js
similarity index 100%
rename from plugins/boxlite/hooks/transfer.js
rename to plugins/boxlite-claude/hooks/transfer.js
diff --git a/plugins/boxlite-claude/skills/boxlite-setup/SKILL.md b/plugins/boxlite-claude/skills/boxlite-setup/SKILL.md
new file mode 100644
index 000000000..638815315
--- /dev/null
+++ b/plugins/boxlite-claude/skills/boxlite-setup/SKILL.md
@@ -0,0 +1,79 @@
+---
+name: boxlite-setup
+description: Choose and verify BoxLite Cloud OAuth, Cloud API key, or Local mode before operating a Box. Use for onboarding or an explicit mode change, not application end-user login.
+---
+
+## Install from a local marketplace
+
+For a local installation, run `make plugin:boxlite:dist` in the BoxLite repository.
+Replace `ABSOLUTE_MARKETPLACE_DIRECTORY` with the absolute path to the generated `target/plugins/boxlite-marketplace` directory.
+
+```sh
+claude plugin marketplace add ABSOLUTE_MARKETPLACE_DIRECTORY
+claude plugin install boxlite@boxlite
+```
+
+Start a new session and run `/boxlite:boxlite-setup`.
+
+## Choose a mode
+
+Reuse the user's explicit choice, or present these three options before workload operations:
+
+| Mode | Connection | Requirements |
+| --- | --- | --- |
+| Cloud OAuth | Host OAuth -> BoxLite MCP | BoxLite account and host authorization |
+| Cloud API key | User key -> the same BoxLite MCP | BoxLite API key saved in Claude’s sensitive plugin setting |
+| Local | Local CLI -> embedded runtime | Shell, compatible CLI, and virtualization; no cloud account |
+
+Both cloud connections expose the same tools and follow the [cloud workflow](../boxlite/references/cloud.md).
+Local is an independent [runtime workflow](../boxlite/references/local.md); never send its work to the cloud.
+Never change modes, accounts, organizations, or credential sources to recover from a denial.
+
+Record the choice privately in the project or session, outside Git and plugin files.
+A cloud record contains `mode` (`cloud-oauth` or `cloud-api`) and the selected host MCP connection name, never tokens.
+Without a writable project, retain the selection in the conversation.
+
+## Cloud OAuth
+
+You can leave **BoxLite API key** blank. Open `/mcp`, select `plugin:boxlite:boxlite`, and authorize it in the browser.
+
+If the unused `plugin:boxlite:boxlite-api` connection reports HTTP 401 with the key blank, select that entry in `/mcp` and choose **Disable** for this project.
+Verify OAuth by calling `listBoxes` on `plugin:boxlite:boxlite`.
+
+## Cloud API key
+
+Use this connection when the user explicitly selects API-key authentication. Open the BoxLite plugin’s settings in `/plugin`, enter the key in the masked **BoxLite API key** field, and reload the plugin.
+
+Select `plugin:boxlite:boxlite-api` in `/mcp`. Claude sends the key from secure storage on this connection only. If the key is missing or rejected, stop and update the setting before retrying.
+
+## Verify the selected cloud connection
+
+Follow [cloud authentication checks](references/cloud-auth.md) on the selected connection.
+Confirm the intended organization and a successful `listBoxes` response before workload operations. An empty authorized list is valid.
+
+Stop on missing credentials or denial. Keep secrets out of chat, logs, and project files.
+
+## Local
+
+Skip OAuth sign-in and leave **BoxLite API key** blank. Follow [local setup](../boxlite/references/local.md) and verify the runtime on the actual execution host.
+
+Use only the local runtime for this mode. If Claude attempts to connect to the cloud, open `/mcp` and choose **Disable** for each BoxLite entry in this project: `plugin:boxlite:boxlite` and `plugin:boxlite:boxlite-api`.
+When switching back to a cloud mode, re-enable its entry in `/mcp`.
+
+A web-only host cannot provide Local mode: explain the missing capability and preserve the choice.
+
+## File transfer prerequisites
+
+Cloud file transfer needs Python 3.9+ and host shell/filesystem access.
+Claude Code must load the marketplace plugin's registered upload and download tools in the current session.
+
+Use the [file workflow](../boxlite/references/cloud.md#files) to select an existing Codex or Claude MCP connection.
+The selected host owns credentials and sends MCP requests; the helper handles local bytes and host-control messages only.
+
+If no programmatic transport is available for that connection, report file transfer unavailable without changing authentication or asking the model to copy base64.
+
+## Continue the task
+
+Report the selected mode, connection or runtime home, and observed setup check; keep sensitive account details private.
+Resume the original task with the main `boxlite` skill after setup succeeds.
+Installation, discovery, browser consent, and workload execution are separate outcomes.
diff --git a/plugins/boxlite-claude/skills/boxlite-setup/references/cloud-auth.md b/plugins/boxlite-claude/skills/boxlite-setup/references/cloud-auth.md
new file mode 100644
index 000000000..046926ec2
--- /dev/null
+++ b/plugins/boxlite-claude/skills/boxlite-setup/references/cloud-auth.md
@@ -0,0 +1,31 @@
+# Native cloud authentication
+
+OAuth and API keys use the same production MCP service and tool contracts.
+Configure credentials in the host, outside the distributed plugin; never place a key value on argv.
+
+## OAuth registration
+
+Complete initial registration in the BoxLite Dashboard before connecting; use the same identity and verify its default organization.
+New MCP identities without an email claim cannot create a BoxLite account; existing accounts retain their stored profile when claims are absent.
+
+| Failure stage | Meaning | Next step |
+| --- | --- | --- |
+| Client registration, before the browser | Issuer/client configuration is unavailable or incompatible | Report the exact host error; an operator must check CIMD configuration |
+| Login or consent | The user has not completed authorization | Let the user finish or cancel in the host/browser |
+| `email_required` | First API use has no email for account creation | Complete Dashboard registration with the same identity |
+| `registration_required` | The service requires the Dashboard registration flow | Complete Dashboard registration with the same identity |
+| No default organization | OAuth cannot resolve the current default membership | Complete organization setup before workload operations |
+| Scope or permission denial | The selected identity lacks access | Stop; preserve the chosen credential and organization |
+
+Do not extract token claims to diagnose these errors; use returned error codes and the user's account setup.
+Metadata discovery and browser consent alone do not establish permission to call tools.
+
+## Verify and switch
+
+Inspect schemas and call `listBoxes`; discover `getCurrentPrincipal` through the catalog when identity verification is needed.
+Record the connection, authentication kind, and intended organization without the token.
+Missing credentials or denial stops work; do not try another connection or cached OAuth.
+
+For an explicit switch, stop using the old tool namespace and verify the newly selected identity.
+Switching does not move or delete Boxes; IDs remain bound to their original backend and organization.
+Local uses no cloud connection.
diff --git a/plugins/boxlite/skills/boxlite/SKILL.md b/plugins/boxlite-claude/skills/boxlite/SKILL.md
similarity index 100%
rename from plugins/boxlite/skills/boxlite/SKILL.md
rename to plugins/boxlite-claude/skills/boxlite/SKILL.md
diff --git a/plugins/boxlite/skills/boxlite/references/cloud.md b/plugins/boxlite-claude/skills/boxlite/references/cloud.md
similarity index 88%
rename from plugins/boxlite/skills/boxlite/references/cloud.md
rename to plugins/boxlite-claude/skills/boxlite/references/cloud.md
index 24716ae6b..dc6c6de94 100644
--- a/plugins/boxlite/skills/boxlite/references/cloud.md
+++ b/plugins/boxlite-claude/skills/boxlite/references/cloud.md
@@ -1,7 +1,7 @@
# Shared cloud operations
-Both cloud authentication modes use `https://api.boxlite.ai/mcp`, the same discovered tools, and this workflow.
-Only the credential and its granted permissions differ. Lifecycle and execution use native MCP; the packaged file helper calls the existing MCP file tools programmatically.
+Both cloud authentication modes use the BoxLite MCP service and the tools discovered on the selected connection.
+The selected credential determines the granted permissions. Lifecycle and execution use native MCP; the packaged file helper calls the existing MCP file tools programmatically.
## Create and execute
@@ -33,12 +33,12 @@ Supply absolute paths on both ends. Keep archive bytes inside the transfer tools
### Claude Code
-Use the BoxLite marketplace plugin's tools from the current session. For example:
+Use the BoxLite tools from the current session. Replace `SELECTED_CONNECTION` with the complete MCP connection name verified during setup for the user's chosen mode.
| Tool | Arguments |
| --- | --- |
-| `mcp__boxlite__upload` | `{"connection":"boxlite-api","box_id":"BOX_ID","local_source":"/home/user/report.csv","remote_destination":"/workspace/report.csv"}` |
-| `mcp__boxlite__download` | `{"connection":"boxlite-api","box_id":"BOX_ID","remote_source":"/workspace/report.csv","local_destination":"/home/user/new-download"}` |
+| `mcp__boxlite__upload` | `{"connection":"SELECTED_CONNECTION","box_id":"BOX_ID","local_source":"/home/user/report.csv","remote_destination":"/workspace/report.csv"}` |
+| `mcp__boxlite__download` | `{"connection":"SELECTED_CONNECTION","box_id":"BOX_ID","remote_source":"/workspace/report.csv","local_destination":"/home/user/new-download"}` |
Claude applies its current permission mode and rules to the requested operation, connection, Box and paths.
Configure tool rules on these two transfer tools. An authorized directory transfer covers its contents.
diff --git a/plugins/boxlite/skills/boxlite/references/local.md b/plugins/boxlite-claude/skills/boxlite/references/local.md
similarity index 100%
rename from plugins/boxlite/skills/boxlite/references/local.md
rename to plugins/boxlite-claude/skills/boxlite/references/local.md
diff --git a/plugins/boxlite/skills/boxlite/scripts/archive_worker.py b/plugins/boxlite-claude/skills/boxlite/scripts/archive_worker.py
similarity index 100%
rename from plugins/boxlite/skills/boxlite/scripts/archive_worker.py
rename to plugins/boxlite-claude/skills/boxlite/scripts/archive_worker.py
diff --git a/plugins/boxlite/skills/boxlite/scripts/local.py b/plugins/boxlite-claude/skills/boxlite/scripts/local.py
similarity index 100%
rename from plugins/boxlite/skills/boxlite/scripts/local.py
rename to plugins/boxlite-claude/skills/boxlite/scripts/local.py
diff --git a/plugins/boxlite/skills/boxlite/scripts/transfer.py b/plugins/boxlite-claude/skills/boxlite/scripts/transfer.py
similarity index 100%
rename from plugins/boxlite/skills/boxlite/scripts/transfer.py
rename to plugins/boxlite-claude/skills/boxlite/scripts/transfer.py
diff --git a/plugins/boxlite/skills/boxlite/scripts/transfer_archive.py b/plugins/boxlite-claude/skills/boxlite/scripts/transfer_archive.py
similarity index 100%
rename from plugins/boxlite/skills/boxlite/scripts/transfer_archive.py
rename to plugins/boxlite-claude/skills/boxlite/scripts/transfer_archive.py
diff --git a/plugins/boxlite/skills/boxlite/scripts/transfer_hosts.py b/plugins/boxlite-claude/skills/boxlite/scripts/transfer_hosts.py
similarity index 100%
rename from plugins/boxlite/skills/boxlite/scripts/transfer_hosts.py
rename to plugins/boxlite-claude/skills/boxlite/scripts/transfer_hosts.py
diff --git a/plugins/boxlite/.mcp.json b/plugins/boxlite-codex/.mcp.json
similarity index 100%
rename from plugins/boxlite/.mcp.json
rename to plugins/boxlite-codex/.mcp.json
diff --git a/plugins/boxlite/mcp.json b/plugins/boxlite-codex/mcp.json
similarity index 100%
rename from plugins/boxlite/mcp.json
rename to plugins/boxlite-codex/mcp.json
diff --git a/plugins/boxlite-codex/plugin.json b/plugins/boxlite-codex/plugin.json
new file mode 100644
index 000000000..831912b46
--- /dev/null
+++ b/plugins/boxlite-codex/plugin.json
@@ -0,0 +1,92 @@
+{
+ "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
+ "name": "boxlite",
+ "version": "0.2.0",
+ "description": "Run BoxLite with Cloud OAuth, Cloud API key, or an independent local runtime.",
+ "author": {
+ "name": "BoxLite",
+ "url": "https://boxlite.ai"
+ },
+ "homepage": "https://docs.boxlite.ai",
+ "repository": "https://github.com/boxlite-ai/boxlite",
+ "license": "Apache-2.0",
+ "keywords": ["boxlite", "cloud", "local", "mcp", "skills"],
+ "extensions": {
+ "com.openai": {
+ "interface": {
+ "displayName": "BoxLite",
+ "shortDescription": "Run cloud or local sandboxes",
+ "longDescription": "Choose Cloud OAuth or Cloud API key through the same BoxLite MCP service, or use an independent local runtime. OAuth is the public-directory connection. API-key setup requires a native host supporting private MCP configuration; Local requires shell execution and virtualization. OAuth cannot create public tunnels. Preserve Box identity and data across updates, inspect failures, and clean up explicit resources.",
+ "developerName": "BoxLite",
+ "category": "Developer Tools",
+ "capabilities": [
+ "Interactive",
+ "Write"
+ ],
+ "websiteURL": "https://boxlite.ai",
+ "supportURL": "https://boxlite.ai/contact",
+ "privacyPolicyURL": "https://boxlite.ai/legal/privacy",
+ "termsOfServiceURL": "https://boxlite.ai/legal/terms",
+ "brandColor": "#111111",
+ "composerIcon": "./assets/boxlite-icon.png",
+ "logo": "./assets/boxlite-icon.png",
+ "defaultPrompt": [
+ "Choose how to use BoxLite: Cloud OAuth, Cloud API key, or Local.",
+ "Create a BoxLite cloud Box and run hello using my selected connection.",
+ "Run my project in a local BoxLite sandbox without cloud login."
+ ]
+ },
+ "onboardingSkill": "./skills/boxlite-setup/SKILL.md",
+ "review": {
+ "test_cases": {
+ "positive": [
+ {
+ "description": "List Boxes visible to the connected review account",
+ "prompt": "Using my BoxLite Cloud OAuth connection, list the Boxes visible in my review workspace. Include their IDs and states, and tell me if the list is empty.",
+ "tools_triggered": "listBoxes",
+ "expected_behavior": "Report the returned Boxes and their states, or an empty list when the workspace has none. The operation leaves the workspace unchanged."
+ },
+ {
+ "description": "Create a disposable Python Box and inspect it",
+ "prompt": "Using my BoxLite Cloud OAuth connection, create one temporary Box with the python image. Look up the ID returned by this creation and report its state. Then stop it if running, wait until stopped, and remove only that ID.",
+ "tools_triggered": "createBox, getBox, stopBox, removeBox",
+ "expected_behavior": "The lookup returns the ID from this request. Report that ID, its observed state before cleanup, and whether removal succeeded."
+ },
+ {
+ "description": "Run a command and report its actual exit status",
+ "prompt": "Using my BoxLite Cloud OAuth connection, create a temporary Box with the python image. In the Box identified by this creation response, run python3 -c \"import sys; print('review-output'); sys.exit(7)\" once. Capture stdout and the exit code, then stop that Box, wait until stopped, and remove it. Report the execution and cleanup results.",
+ "tools_triggered": "createBox, startExecution, getExecution, stopBox, getBox, removeBox",
+ "expected_behavior": "Call startExecution once with wait: true. On completion, verify review-output on stdout and exit code 7. If the wait expires, report only the output captured so far and poll getExecution with the same Box and execution IDs. It returns the execution ID and status, plus the exit code, start time, duration and diagnostic message when available. Verify exit code 7 when reported. If review-output was not captured, report stdout as unverified: getExecution cannot retrieve stdout or stderr."
+ },
+ {
+ "description": "Update a file while preserving other data in the same Box",
+ "prompt": "Using my BoxLite Cloud OAuth connection, create a temporary Box with the python image. Use its returned ID for both commands. First use Python to write v1 to /tmp/review-version and kept to /tmp/review-marker and read both back. Then change only the version to v2 and read both again. Report both reads, stop that Box, wait until stopped, and remove only its ID.",
+ "tools_triggered": "createBox, startExecution, stopBox, getBox, removeBox",
+ "expected_behavior": "The first read returns v1 and kept. The second returns v2 and kept from the same Box ID. Report the observed contents of both reads."
+ },
+ {
+ "description": "Remove only the disposable review Box and verify cleanup",
+ "prompt": "Using my BoxLite Cloud OAuth connection, create a temporary Box with the python image. Use the returned ID throughout. Start it if needed, confirm it is running, stop it, and wait until stopped. Remove that ID and look it up again to verify cleanup.",
+ "tools_triggered": "createBox, getBox, startBox, stopBox, removeBox",
+ "expected_behavior": "Poll the recorded ID until stopped, remove it, and verify a final lookup reports not found. Leave all other Boxes untouched."
+ }
+ ],
+ "negative": [
+ {
+ "description": "Explain sandboxing without provisioning infrastructure",
+ "prompt": "For a glossary, explain in two sentences what a Linux sandbox is."
+ },
+ {
+ "description": "Review Python source without executing it",
+ "prompt": "By inspection only, what does this Python expression return: [n * n for n in range(3)]?"
+ },
+ {
+ "description": "Draft deployment documentation without accessing a workspace",
+ "prompt": "Write a generic deployment checklist for a README. I only need the text."
+ }
+ ]
+ }
+ }
+ }
+ }
+}
diff --git a/plugins/boxlite/skills/boxlite-setup/SKILL.md b/plugins/boxlite-codex/skills/boxlite-setup/SKILL.md
similarity index 57%
rename from plugins/boxlite/skills/boxlite-setup/SKILL.md
rename to plugins/boxlite-codex/skills/boxlite-setup/SKILL.md
index 041fcc088..8ed1591d3 100644
--- a/plugins/boxlite/skills/boxlite-setup/SKILL.md
+++ b/plugins/boxlite-codex/skills/boxlite-setup/SKILL.md
@@ -3,6 +3,18 @@ name: boxlite-setup
description: Choose and verify BoxLite Cloud OAuth, Cloud API key, or Local mode before operating a Box. Use for onboarding or an explicit mode change, not application end-user login.
---
+## Install from a local marketplace
+
+For a local installation, run `make plugin:boxlite:dist` in the BoxLite repository.
+Replace `ABSOLUTE_MARKETPLACE_DIRECTORY` with the absolute path to the generated `target/plugins/boxlite-marketplace` directory.
+
+```sh
+codex plugin marketplace add ABSOLUTE_MARKETPLACE_DIRECTORY
+codex plugin add boxlite@boxlite
+```
+
+Start a new session and ask Codex to set up BoxLite.
+
## Choose a mode
Reuse the user's explicit choice, or present these three options before workload operations:
@@ -23,31 +35,36 @@ Without a writable project, retain the selection in the conversation; OAuth need
## Cloud OAuth
-For first use, have the user complete BoxLite registration in the Dashboard, including email verification and a default organization.
-An existing Dashboard account can sign in even when its MCP token contains no profile claims; direct first-time registration from MCP is not promised.
+Authorize the bundled `boxlite` connection through the host. For an independent Codex connection, use:
-Use the bundled `boxlite` MCP connection and the host's OAuth UI.
-Let the host open the browser, obtain consent, and store tokens; never implement login or read the host's token store.
+```sh
+codex mcp add boxlite-oauth --url https://api.boxlite.ai/mcp
+codex mcp login boxlite-oauth
+```
-If unavailable, report the exact setup step and wait for authorization rather than installing a CLI or requesting an API key.
-Client-registration errors happen before user login: report the issuer/client setup blocker without asking the user to reset a password.
+Reuse an existing connection when available. Codex manages browser consent and token storage.
-If the API returns `email_required` or `registration_required`, direct the user to complete Dashboard registration with the same identity, then retry explicitly.
-If no default organization exists, stop and have the user complete organization setup; never choose another account or organization automatically.
+## Cloud API key
-Discover tools and read their schemas, then call `listBoxes` for the selected organization.
-Check `isError` and the response; an empty authorized list is valid, but discovery or HTTP 401 is not successful login.
-Confirm the intended organization before writes, then resume the original task.
+Have the user supply their chosen key as `BOXLITE_API_KEY` to the host through a private environment or secret source.
+The process running Codex must inherit it, not merely a transient child shell.
+Check presence only:
-## Cloud API key
+```sh
+test -n "${BOXLITE_API_KEY:-}"
+codex mcp add boxlite-api --url https://api.boxlite.ai/mcp --bearer-token-env-var BOXLITE_API_KEY
+```
+
+Run the second command only after the first succeeds, then reload as required by the host.
+Select only `boxlite-api` tools and disable the unselected OAuth connection when necessary to prevent duplicate tools.
+Do not disable unrelated plugins.
+
+## Verify the selected cloud connection
-Follow [native host setup](references/cloud-auth.md); only authentication differs from OAuth.
-Require the user to supply a key to the host explicitly through their chosen private secret environment.
-Never put credentials in plugin files, argv, chat, screenshots, or application archives.
+Follow [cloud authentication checks](references/cloud-auth.md) on the selected connection.
+Confirm the intended organization and a successful `listBoxes` response before workload operations. An empty authorized list is valid.
-Check that the selected key reference is nonempty without printing its value before discovering or calling tools.
-Refuse a missing or empty key even if OAuth is cached; if the host cannot enforce that separation, report API-key mode unavailable.
-Use only the selected API-key MCP connection, verify identity and organization, then follow the shared cloud workflow.
+Stop on missing credentials or denial. Keep secrets out of chat, logs, and project files.
## Local
diff --git a/plugins/boxlite/skills/boxlite-setup/agents/openai.yaml b/plugins/boxlite-codex/skills/boxlite-setup/agents/openai.yaml
similarity index 100%
rename from plugins/boxlite/skills/boxlite-setup/agents/openai.yaml
rename to plugins/boxlite-codex/skills/boxlite-setup/agents/openai.yaml
diff --git a/plugins/boxlite/skills/boxlite/agents/openai.yaml b/plugins/boxlite-codex/skills/boxlite/agents/openai.yaml
similarity index 100%
rename from plugins/boxlite/skills/boxlite/agents/openai.yaml
rename to plugins/boxlite-codex/skills/boxlite/agents/openai.yaml
diff --git a/plugins/boxlite/.codex-plugin/plugin.json b/plugins/boxlite/.codex-plugin/plugin.json
deleted file mode 100644
index 21790f439..000000000
--- a/plugins/boxlite/.codex-plugin/plugin.json
+++ /dev/null
@@ -1,43 +0,0 @@
-{
- "name": "boxlite",
- "version": "0.2.0",
- "description": "Run BoxLite with Cloud OAuth, Cloud API key, or an independent local runtime.",
- "author": {
- "name": "BoxLite",
- "url": "https://boxlite.ai"
- },
- "homepage": "https://docs.boxlite.ai",
- "repository": "https://github.com/boxlite-ai/boxlite",
- "license": "Apache-2.0",
- "keywords": ["boxlite", "cloud", "local", "mcp", "skills"],
- "skills": "./skills",
- "mcpServers": "./.mcp.json",
- "interface": {
- "displayName": "BoxLite",
- "shortDescription": "Run cloud or local sandboxes",
- "longDescription": "Choose Cloud OAuth or Cloud API key through the same BoxLite MCP service, or use an independent local runtime. OAuth is the public-directory connection. API-key setup requires a native host supporting private MCP configuration; Local requires shell execution and virtualization. OAuth cannot create public tunnels. Preserve Box identity and data across updates, inspect failures, and clean up explicit resources.",
- "developerName": "BoxLite",
- "category": "Developer Tools",
- "capabilities": [
- "Interactive",
- "Write"
- ],
- "websiteURL": "https://boxlite.ai",
- "supportURL": "https://boxlite.ai/contact",
- "privacyPolicyURL": "https://boxlite.ai/legal/privacy",
- "termsOfServiceURL": "https://boxlite.ai/legal/terms",
- "brandColor": "#111111",
- "composerIcon": "./assets/boxlite-icon.png",
- "logo": "./assets/boxlite-icon.png",
- "defaultPrompt": [
- "Choose how to use BoxLite: Cloud OAuth, Cloud API key, or Local.",
- "Create a BoxLite cloud Box and run hello using my selected connection.",
- "Run my project in a local BoxLite sandbox without cloud login."
- ]
- },
- "extensions": {
- "com.openai": {
- "onboardingSkill": "./skills/boxlite-setup/SKILL.md"
- }
- }
-}
diff --git a/plugins/boxlite/README.md b/plugins/boxlite/README.md
deleted file mode 100644
index 3b2213752..000000000
--- a/plugins/boxlite/README.md
+++ /dev/null
@@ -1,96 +0,0 @@
-# BoxLite plugin v0.2
-
-Choose **Cloud OAuth**, **Cloud API key**, or **Local** when you first use BoxLite.
-Both cloud modes share the same hosted MCP service and operations; Local runs the independent embedded runtime on your machine.
-The plugin preserves your choice rather than switching backends when authentication or execution fails.
-
-| Choice | How it works | Availability |
-| --- | --- | --- |
-| Cloud OAuth | Host manages browser authorization and tokens; calls `https://api.boxlite.ai/mcp` | Hosts with remote MCP OAuth |
-| Cloud API key | Host supplies your key to the same MCP endpoint and tools | Native hosts supporting private MCP configuration |
-| Local | Bundled launcher invokes your local BoxLite CLI, with cloud routing removed | Shell, Python 3.9+, supported CLI, and usable virtualization |
-
-## Install
-
-For versioned marketplace ZIPs, use the [GHCR download and verification guide](https://github.com/boxlite-ai/boxlite/blob/main/scripts/plugins/README.md#download-and-verify).
-
-Extract the standalone marketplace ZIP, then use its absolute directory:
-
-```sh
-codex plugin marketplace add ABSOLUTE_MARKETPLACE_DIRECTORY
-codex plugin add boxlite@boxlite
-```
-
-For Claude Code:
-
-```sh
-claude plugin marketplace add ABSOLUTE_MARKETPLACE_DIRECTORY
-claude plugin install boxlite@boxlite
-```
-
-Start a new session and ask: **Set up BoxLite and let me choose Cloud OAuth, Cloud API key, or Local.**
-Claude Code also supports `/boxlite:boxlite-setup` and `/boxlite:boxlite`.
-An explicit request such as **Run hello locally with BoxLite** selects Local directly.
-
-## Use
-
-[Setup](skills/boxlite-setup/SKILL.md) verifies your chosen connection, then [operations](skills/boxlite/SKILL.md) resumes your original task.
-
-For cloud files, select an existing MCP connection. Supply the Box ID and both paths to the Claude transfer tools or the Codex helper. The host sends the file-tool request using that connection’s credentials.
-
-See [file transfer](skills/boxlite/references/cloud.md#files) for commands and connection prerequisites.
-[API-key setup](skills/boxlite-setup/references/cloud-auth.md) uses the host's private credential reference, never a token bundled in the plugin.
-
-[Local setup](skills/boxlite/references/local.md) pins a dedicated runtime home and clears inherited cloud routing.
-Linux needs accessible KVM; macOS needs Apple Silicon and Hypervisor.framework.
-Local services use verified localhost ports and do not receive a cloud HTTPS URL.
-
-OAuth permissions currently exclude tunnels and network configuration, so OAuth cannot create a new public app URL.
-For first OAuth use, complete registration in the BoxLite Dashboard with the same identity, verify email, and establish a default organization.
-Direct first-time account creation from an MCP token without email is unsupported; existing accounts reuse their stored profile.
-
-API-key permissions remain those granted to the key; a denial never triggers an automatic credential or mode change.
-Box updates retain the same identity and data, and cleanup targets only explicit authorized IDs.
-
-## Data and credentials
-
-The plugin sends requested cloud tool arguments, commands and files to the selected BoxLite deployment.
-Local runs the CLI on your execution host; runtime image pulls and commands you request may access their selected registries or networks.
-There is no plugin telemetry, background service, bundled credential store, or installation hook.
-
-The file helper reads reviewed sources and writes requested downloads; it requires Python and host filesystem access.
-The helper uses existing MCP contracts without a BoxLite CLI dependency, new server API, transfer cache or additional checksum/readback step.
-Directory uploads include hidden entries and preserve symbolic links as links.
-
-At session start, the marketplace plugin registers the Claude upload and download tools. Claude authorizes each request using the connection, Box ID and both paths.
-The handler then starts the bundled Python archive worker, calls the selected MCP connection and returns a short receipt.
-
-OAuth credentials stay with the host; API keys stay in the user's chosen private host environment.
-Keep mode selection, Box IDs, runtime homes, and app secrets outside the plugin and version control.
-Only upload reviewed source, excluding developer credentials, private state, caches, and unrequested persistent data.
-
-## Upgrade, uninstall, and rollback
-
-Upgrade through the selected host marketplace and start a new session; verify mode, identity, and existing Box IDs before writes.
-Version 0.1 cloud CLI deployment helpers have been replaced by shared cloud MCP instructions; retain existing app data and migrate setup explicitly.
-Old private deployment configurations are not automatically executed or deleted.
-
-Remove `boxlite@boxlite` through the host plugin manager to uninstall.
-Remove any separately configured `boxlite-api` connection and revoke its credential only when intended; plugin uninstall does not delete Boxes or local homes.
-To roll back, install a retained verified package version, recheck its supported workflow, and preserve application data.
-
-## Public directory status
-
-These files are a release candidate, not evidence of an approved public listing.
-OpenAI's public submission connection is OAuth; API-key setup currently requires a supported native host, and optional local execution needs platform eligibility review.
-Both transfer entry points call the existing remote file tools through the selected host.
-
-Codex starts its app-server with the selected configuration. Claude uses the connection in the current session.
-
-Native API-key acceptance does not establish OAuth file-transfer acceptance.
-The marketplace targets both clients; directory review must still confirm the execution surface and publisher eligibility.
-
-Claude distribution requires the plugin repository plus a companion listing for the same hosted MCP service.
-
-See [release and review instructions](https://github.com/boxlite-ai/boxlite/blob/main/scripts/plugins/README.md) for artifact generation and unresolved acceptance gates.
-Public links: [website](https://boxlite.ai), [support](https://boxlite.ai/contact), [privacy](https://boxlite.ai/legal/privacy), [terms](https://boxlite.ai/legal/terms).
diff --git a/plugins/boxlite/plugin.json b/plugins/boxlite/plugin.json
deleted file mode 100644
index e4c4b59cc..000000000
--- a/plugins/boxlite/plugin.json
+++ /dev/null
@@ -1,42 +0,0 @@
-{
- "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
- "name": "boxlite",
- "version": "0.2.0",
- "description": "Run BoxLite with Cloud OAuth, Cloud API key, or an independent local runtime.",
- "author": {
- "name": "BoxLite",
- "url": "https://boxlite.ai"
- },
- "homepage": "https://docs.boxlite.ai",
- "repository": "https://github.com/boxlite-ai/boxlite",
- "license": "Apache-2.0",
- "keywords": ["boxlite", "cloud", "local", "mcp", "skills"],
- "extensions": {
- "com.openai": {
- "interface": {
- "displayName": "BoxLite",
- "shortDescription": "Run cloud or local sandboxes",
- "longDescription": "Choose Cloud OAuth or Cloud API key through the same BoxLite MCP service, or use an independent local runtime. OAuth is the public-directory connection. API-key setup requires a native host supporting private MCP configuration; Local requires shell execution and virtualization. OAuth cannot create public tunnels. Preserve Box identity and data across updates, inspect failures, and clean up explicit resources.",
- "developerName": "BoxLite",
- "category": "Developer Tools",
- "capabilities": [
- "Interactive",
- "Write"
- ],
- "websiteURL": "https://boxlite.ai",
- "supportURL": "https://boxlite.ai/contact",
- "privacyPolicyURL": "https://boxlite.ai/legal/privacy",
- "termsOfServiceURL": "https://boxlite.ai/legal/terms",
- "brandColor": "#111111",
- "composerIcon": "./assets/boxlite-icon.png",
- "logo": "./assets/boxlite-icon.png",
- "defaultPrompt": [
- "Choose how to use BoxLite: Cloud OAuth, Cloud API key, or Local.",
- "Create a BoxLite cloud Box and run hello using my selected connection.",
- "Run my project in a local BoxLite sandbox without cloud login."
- ]
- },
- "onboardingSkill": "./skills/boxlite-setup/SKILL.md"
- }
- }
-}
diff --git a/plugins/boxlite/skills/boxlite-setup/references/cloud-auth.md b/plugins/boxlite/skills/boxlite-setup/references/cloud-auth.md
deleted file mode 100644
index 3d92106a3..000000000
--- a/plugins/boxlite/skills/boxlite-setup/references/cloud-auth.md
+++ /dev/null
@@ -1,80 +0,0 @@
-# Native cloud authentication
-
-OAuth and API keys use the same production endpoint and MCP contracts.
-Configure credentials in the host, outside the distributed plugin; never place a key value on argv.
-
-## OAuth
-
-Complete initial registration in the BoxLite Dashboard before connecting; use the same identity and verify its default organization.
-New MCP identities without an email claim cannot create a BoxLite account; existing accounts retain their stored profile when claims are absent.
-
-Use the bundled connection in the host MCP panel; Claude Code exposes it through `/mcp`.
-For an independent Codex connection, use native commands:
-
-```sh
-codex mcp add boxlite-oauth --url https://api.boxlite.ai/mcp
-codex mcp login boxlite-oauth
-```
-
-Do not add a duplicate when the bundled connection is available.
-Keep OAuth credentials with the host and verify the returned organization context.
-
-| Failure stage | Meaning | Next step |
-| --- | --- | --- |
-| Client registration, before the browser | Issuer/client configuration is unavailable or incompatible | Report the exact host error; an operator must check CIMD configuration |
-| Login or consent | The user has not completed authorization | Let the user finish or cancel in the host/browser |
-| `email_required` | First API use has no email for account creation | Complete Dashboard registration with the same identity |
-| `registration_required` | The service requires the Dashboard registration flow | Complete Dashboard registration with the same identity |
-| No default organization | OAuth cannot resolve the current default membership | Complete organization setup before workload operations |
-| Scope or permission denial | The selected identity lacks access | Stop; preserve the chosen credential and organization |
-
-Do not extract token claims to diagnose these errors; use returned error codes and the user's account setup.
-Metadata discovery and browser consent alone do not establish permission to call tools.
-
-## API key in Codex
-
-Have the user supply their chosen key as `BOXLITE_API_KEY` to the host through a private environment or secret source.
-The process running Codex must inherit it, not merely a transient child shell.
-Check presence only:
-
-```sh
-test -n "${BOXLITE_API_KEY:-}"
-codex mcp add boxlite-api --url https://api.boxlite.ai/mcp --bearer-token-env-var BOXLITE_API_KEY
-```
-
-Run the second command only after the first succeeds, then reload as required by the host.
-Select only `boxlite-api` tools and disable the unselected OAuth connection when necessary to prevent duplicate tools.
-Do not disable unrelated plugins.
-
-## API key in Claude Code
-
-After the same explicit key setup, add a user-scope entry with a literal placeholder. This keeps the connection private to your Claude user account and makes it available across projects.
-
-```sh
-test -n "${BOXLITE_API_KEY:-}"
-claude mcp add-json --scope user boxlite-api '{"type":"http","url":"https://api.boxlite.ai/mcp","headers":{"Authorization":"Bearer ${BOXLITE_API_KEY}"}}'
-```
-
-Run the second command only after the first succeeds; single quotes prevent expansion of the key into argv.
-Verify in `/mcp` that `boxlite-api` is active and the bundled OAuth entry is deduplicated or disabled.
-Never write an expanded header into shared configuration, plugin caches, repositories, or review packages.
-
-If a local entry already uses this name, verify the selected connection before transferring because Claude gives the local entry precedence in the original project. A project-only connection can be used directly by its name in the current session.
-
-## Verify and switch
-
-Inspect schemas and call `listBoxes`; discover `getCurrentPrincipal` through the catalog when identity verification is needed.
-Record the connection, authentication kind, and intended organization without the token.
-Missing credentials or denial stops work; do not try another connection or cached OAuth.
-
-For an explicit switch, stop using the old tool namespace and verify the newly selected identity.
-Switching does not move or delete Boxes; IDs remain bound to their original backend and organization.
-Local uses no cloud connection.
-
-## Distribution boundary
-
-OpenAI's public portal currently lacks API-key setup and rejects nonempty server headers in submission ZIPs.
-The package declares a clean OAuth endpoint; API-key mode uses supported native host configuration outside that package.
-Do not claim availability on every public-directory surface or mark a protected endpoint unauthenticated.
-
-References: [Codex MCP](https://developers.openai.com/codex/mcp), [Claude MCP](https://code.claude.com/docs/en/mcp), [OpenAI limitations](https://developers.openai.com/plugins/deploy/submission#authentication-limitations).
diff --git a/scripts/plugins/.coveragerc b/scripts/plugins/.coveragerc
index 5393496a5..5ed2bad3c 100644
--- a/scripts/plugins/.coveragerc
+++ b/scripts/plugins/.coveragerc
@@ -1,5 +1,5 @@
[run]
include =
scripts/plugins/*.py
- plugins/boxlite/skills/boxlite/scripts/*.py
+ plugins/boxlite-claude/skills/boxlite/scripts/*.py
relative_files = True
diff --git a/scripts/plugins/README.md b/scripts/plugins/README.md
index 82e39375d..1a290ad94 100644
--- a/scripts/plugins/README.md
+++ b/scripts/plugins/README.md
@@ -1,18 +1,16 @@
# BoxLite plugin distribution and review
The plugin offers Cloud OAuth and Cloud API key over one hosted MCP service, plus an independent local runtime.
-Its design is [issue #2535](https://github.com/boxlite-ai/boxlite/issues/2535); user instructions live in [the plugin README](../../plugins/boxlite/README.md).
+Its design is [issue #2535](https://github.com/boxlite-ai/boxlite/issues/2535); user instructions live in [the plugin README](../../plugins/boxlite-claude/README.md).
## Build and validate
Use Python 3.9+ and the repository make targets:
```sh
-make plugin:boxlite:check
+make plugin:boxlite:submission
make plugin:boxlite:dist
make plugin:boxlite:check:cc
-make plugin:boxlite:review-kit
-make plugin:boxlite:ready
```
The Claude check requires `claude` on PATH; it validates both the plugin and marketplace with the native validator.
@@ -21,17 +19,28 @@ They do not prove host OAuth login, a running VM, or directory approval.
| Artifact under `target/plugins` | Use |
| --- | --- |
-| `boxlite-0.2.0.zip` | OpenAI plugin ZIP; manifests, one remote MCP, shared skills, local launcher, icon, license |
+| `boxlite-0.2.0.zip` | OpenAI plugin ZIP; root `plugin.json`, one remote MCP, shared skills, local launcher, icon, license |
| `boxlite-marketplace-0.2.0.zip` | Extractable marketplace for native Codex and Claude Code installation |
| `SHA256SUMS` | SHA-256 of both installable archives |
-| `boxlite-review-kit-0.2.0.zip` | Both archives, checksums, listing text, reviewer instructions, cases, and readiness checklist |
-| `boxlite-review-kit-0.2.0.zip.sha256` | Checksum of the complete handoff archive |
Archive names follow the synchronized manifest version.
The packager uses an exact inventory, fixed ZIP metadata and ordering, and excludes private state and caches.
-The review kit is a handoff archive, not the ZIP to upload as an OpenAI plugin.
-Claude's directory reads a published GitHub plugin folder; a local marketplace ZIP does not substitute for that repository.
+Claude Directory reads `plugins/boxlite-claude` at the published Git ref.
+Run the package checks from a Git checkout of the candidate commit.
+
+Each packaging command compares that commit's Claude file list against the allowlist before staging files.
+For example, a committed `public/notes.txt` fails validation even if the working copy has been deleted.
+
+Claude bundles OAuth at `https://api.boxlite.ai/mcp` for interactive sign-in.
+The optional API-key connection uses `https://api.boxlite.ai/mcp?connection=api-key` so Claude can distinguish the two connections.
+Only the API-key connection sends the sensitive `userConfig.api_key` value in its Authorization header.
+
+See the [Claude setup skill](../../plugins/boxlite-claude/skills/boxlite-setup/SKILL.md#cloud-api-key) for configuration and switching.
+
+The release build assembles the Codex ZIP from `plugins/boxlite-codex` and shared files in `plugins/boxlite-claude`. Edit cloud operations and authentication checks once in the Claude source. Each host's setup skill supplies its own connection names and credential configuration.
+
+Only the Codex submission ZIP is uploaded by Actions. The marketplace and archive checksums are optional local outputs. Run `make plugin:boxlite:dist` to generate the local marketplace at `target/plugins/boxlite-marketplace`.
## Publish versioned packages to GHCR
@@ -60,17 +69,17 @@ Check that the repository’s Latest Release contains the runtime `install.sh` b
### Release a plugin version
-Update the version in all three manifests and `scripts/plugins/review/{cases,checklist}.json`. Update version-specific examples and run the package checks.
+Update the version in the Codex and Claude manifests. Build the submission and review its contents. Actions builds the ZIP from the tagged source and the publisher uses that build attempt’s uploaded ZIP.
After the change merges, tag the intended commit on `main` and push the tag. For example, if the manifests contain version `0.2.0`:
```sh
-make plugin:boxlite:check:cc plugin:boxlite:review-kit
+make plugin:boxlite:submission
git tag boxlite-plugin-v0.2.0
git push origin boxlite-plugin-v0.2.0
```
-The publisher stores all five files in one OCI artifact at `ghcr.io/boxlite-ai/boxlite-plugin:0.2.0`.
+The publisher stores the verified Codex ZIP in one OCI artifact at `ghcr.io/boxlite-ai/boxlite-plugin:0.2.0`.
Retry a failed build by rerunning the read-only workflow on the matching tag:
```sh
@@ -108,7 +117,12 @@ Resolve the artifact by version and verify the publisher's signed build commit a
and .[0].annotations["org.opencontainers.image.revision"] == $commit'
oras pull "$reference" --output "boxlite-plugin-$version"
cd "boxlite-plugin-$version"
- sha256sum --check SHA256SUMS "boxlite-review-kit-$version.zip.sha256"
+ zip="boxlite-$version.zip"
+ checksum="$(printf '%s\n' "$manifest" | jq -er --arg zip "$zip" '
+ .layers | select(length == 1) | .[0]
+ | select(.annotations["org.opencontainers.image.title"] == $zip)
+ | .digest | capture("^sha256:(?<hex>[0-9a-f]{64})$").hex')"
+ printf '%s %s\n' "$checksum" "$zip" | sha256sum --check
)
```
@@ -138,7 +152,7 @@ The Codex helper and the current Claude session’s BoxLite tools supply the tra
The helper handles archive base64 inside the program and prints completion metadata. It adds no checksum or upload readback.
-The [design](https://github.com/boxlite-ai/boxlite/issues/2928) and [usage contract](../../plugins/boxlite/skills/boxlite/references/cloud.md#files) describe both host adapters.
+The [design](https://github.com/boxlite-ai/boxlite/issues/2928) and [usage contract](../../plugins/boxlite-claude/skills/boxlite/references/cloud.md#files) describe both host adapters.
`make test:unit:plugins` exercises local filesystem and host subprocess boundaries; its peers are fixtures.
Native-host and deployed-server acceptance are separate from those tests.
@@ -153,7 +167,6 @@ Run `make plugin:boxlite:preflight:oauth` without credentials to check public me
Its private report distinguishes public prerequisites from unverified client registration, native login, and workload permissions.
It exits nonzero for missing prerequisites; it never changes Auth0 or reads host credentials.
-The [OAuth runbook](review/OAUTH.md), included in the review kit, separates local contract tests, operator configuration, first-account setup, and native acceptance.
First-time users complete Dashboard registration before connecting with the same identity; MCP-only registration without email is not supported by this candidate.
@@ -172,15 +185,13 @@ It preserves data across updates and restart, then removes its recorded Box.
The test saves a private command transcript in `target/plugins/evidence/local.json`; its runtime home and synthetic files stay under the recorded run directory for diagnosis.
Image downloads use the selected registry; no cloud account or API credential is needed.
-## Release gate
+## Directory submission
-Copy [review/checklist.json](review/checklist.json) outside version control and attach the actual evidence for every gate.
-Run `make plugin:boxlite:ready PLUGIN_REVIEW_CHECKLIST=/absolute/private/checklist.json` against that copy.
-The default checklist intentionally fails closed; generating packages does not mark gates complete.
+Run each Codex review prompt in a fresh conversation with the review workspace's OAuth connection.
+The list case is read-only. Each other positive case creates its own Box and uses the returned ID for its operations and cleanup.
-The [reviewer runbook](review/REVIEWER.md) and [eight submission cases](review/cases.json) explain what to submit and exercise.
+Submit the standalone Codex ZIP to OpenAI and the repository path `plugins/boxlite-claude` to Claude Directory.
Keep reviewer credentials in each portal's private access fields; do not include credentials, private organization IDs, or raw host transcripts in the ZIP.
-The release owner must verify each evidence reference against the exact archive hashes before changing a gate to `passed`.
OpenAI's portal currently supports OAuth connection setup, not API-key onboarding; native hosts configure API keys separately.
Confirm eligibility for optional local execution before making a combined public-listing claim.
diff --git a/scripts/plugins/boxlite.py b/scripts/plugins/boxlite.py
index a668f851a..f44bc165b 100644
--- a/scripts/plugins/boxlite.py
+++ b/scripts/plugins/boxlite.py
@@ -1,28 +1,37 @@
#!/usr/bin/env python3
"""Validate and reproducibly package BoxLite's cloud MCP and local workflows."""
import argparse
+from contextlib import contextmanager
import hashlib
import json
+import os
import re
import shutil
+import subprocess
+import tempfile
import zipfile
from pathlib import Path
REPO = Path(__file__).resolve().parents[2]
-PLUGIN = REPO / 'plugins/boxlite'
+PLUGIN = REPO / 'plugins/boxlite-codex'
CACHE = {'node_modules', '.venv', '__pycache__', 'dist', 'public'}
PRIVATE = {'deployment.json', 'credentials.toml', 'secrets.json', 'supervisor.conf', 'data'}
MCP_URL = 'https://api.boxlite.ai/mcp'
-CLAUDE_FILES = {'hooks/hooks.json', 'hooks/transfer.js', 'skills/boxlite/scripts/archive_worker.py'}
-INVENTORY = CLAUDE_FILES | {
- 'plugin.json', '.codex-plugin/plugin.json', '.claude-plugin/plugin.json',
+SHARED_SOURCE = {
+ 'LICENSE', 'README.md', 'assets/boxlite-icon.png', 'skills/boxlite/SKILL.md',
+ 'skills/boxlite/references/cloud.md', 'skills/boxlite/references/local.md',
+ 'skills/boxlite-setup/references/cloud-auth.md', 'skills/boxlite/scripts/local.py',
'skills/boxlite/scripts/transfer.py', 'skills/boxlite/scripts/transfer_archive.py',
'skills/boxlite/scripts/transfer_hosts.py',
- 'mcp.json', '.mcp.json', 'README.md', 'LICENSE', 'assets/boxlite-icon.png',
- 'skills/boxlite/SKILL.md', 'skills/boxlite/agents/openai.yaml',
- 'skills/boxlite/references/cloud.md', 'skills/boxlite/references/local.md',
- 'skills/boxlite/scripts/local.py', 'skills/boxlite-setup/SKILL.md',
- 'skills/boxlite-setup/agents/openai.yaml', 'skills/boxlite-setup/references/cloud-auth.md',
+}
+CODEX_SOURCE = {
+ 'plugin.json', 'mcp.json', '.mcp.json',
+ 'skills/boxlite/agents/openai.yaml', 'skills/boxlite-setup/SKILL.md',
+ 'skills/boxlite-setup/agents/openai.yaml',
+}
+CLAUDE_SOURCE = {
+ '.claude-plugin/plugin.json', '.mcp.json', 'skills/boxlite-setup/SKILL.md',
+ 'hooks/hooks.json', 'hooks/transfer.js', 'skills/boxlite/scripts/archive_worker.py',
}
@@ -68,37 +77,24 @@ def required_field(mapping, key, label):
return mapping[key]
-def validate(root=PLUGIN):
- """Return package files after validating manifests, skills, and package boundaries."""
- files = list(package_files(root))
+def portable_manifest(root):
manifest = load_manifest(root, 'plugin.json')
if manifest.get('$schema') != 'https://agent-plugins.org/schemas/1.0.0/plugin.schema.json':
raise ValueError('Expected portable Agent Plugins schema')
version = manifest.get('version')
if manifest.get('name') != 'boxlite' or not isinstance(version, str) or not re.fullmatch(r'(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)', version):
raise ValueError('Unexpected plugin identity/version')
- legacy = load_manifest(root, '.codex-plugin/plugin.json')
- for key in ('name', 'version', 'description'):
- if required_field(manifest, key, 'portable manifest') != required_field(legacy, key, 'Codex manifest'):
- raise ValueError(f'Compatibility identity differs: {key}')
- claude = load_manifest(root, '.claude-plugin/plugin.json')
- for key in ('name', 'version', 'description'):
- if required_field(manifest, key, 'portable manifest') != required_field(claude, key, 'Claude manifest'):
- raise ValueError(f'Claude compatibility identity differs: {key}')
+ return manifest
+
+
+def validate_payload(root):
+ """Return package files after validating manifests, skills, and package boundaries."""
+ files = list(package_files(root))
+ manifest = portable_manifest(root)
extensions = required_field(manifest, 'extensions', 'portable manifest')
settings = required_field(extensions, 'com.openai', 'extensions')
interface = required_field(settings, 'interface', 'OpenAI extension')
- if interface != required_field(legacy, 'interface', 'Codex manifest'):
- raise ValueError('Compatibility presentation differs')
- if legacy.get('skills') != './skills':
- raise ValueError('Compatibility skill root differs')
- if legacy.get('mcpServers') != './.mcp.json':
- raise ValueError('Compatibility MCP path differs')
onboarding = required_field(settings, 'onboardingSkill', 'OpenAI extension')
- legacy_extensions = required_field(legacy, 'extensions', 'Codex manifest')
- legacy_settings = required_field(legacy_extensions, 'com.openai', 'Codex extensions')
- if required_field(legacy_settings, 'onboardingSkill', 'Codex OpenAI extension') != onboarding:
- raise ValueError('Compatibility onboarding differs')
for field in ('composerIcon', 'logo'):
checked_path(root, required_field(interface, field, 'OpenAI interface'))
for filename, transport in (('mcp.json', 'streamable-http'), ('.mcp.json', 'http')):
@@ -113,7 +109,7 @@ def validate(root=PLUGIN):
skills = [path for path in files if path.name == 'SKILL.md' and path.parent.parent == root / 'skills']
if not skills:
raise ValueError('No skills packaged')
- if checked_path(root, onboarding) not in skills:
+ if onboarding not in {'./' + path.relative_to(root).as_posix() for path in skills}:
raise ValueError('Onboarding must name a packaged skill')
for skill in skills:
text = skill.read_text()
@@ -129,11 +125,64 @@ def validate(root=PLUGIN):
compile(path.read_text(), str(path), 'exec')
if path.suffix in {'.js', '.json', '.md', '.py', '.yaml'} and re.search(r'\bblk_[A-Za-z0-9_-]{16,}', path.read_text()):
raise ValueError('Credential material is not distributable')
- if {path.relative_to(root).as_posix() for path in files} != INVENTORY:
+ if {path.relative_to(root).as_posix() for path in files} != SHARED_SOURCE | CODEX_SOURCE:
raise ValueError('Package inventory differs: missing or undeclared files')
return files
+def validate_claude_commit():
+ """Check the Git tree Claude Directory receives, including worktree cache paths."""
+ tree = subprocess.check_output(
+ ['git', 'ls-tree', '-rz', '--name-only', 'HEAD:plugins/boxlite-claude'], cwd=REPO)
+ committed = {os.fsdecode(name) for name in tree.split(b'\0') if name}
+ expected = SHARED_SOURCE | CLAUDE_SOURCE
+ if committed != expected:
+ raise ValueError(f'Claude Directory commit inventory differs: '
+ f'unexpected={sorted(committed - expected)!r}, missing={sorted(expected - committed)!r}')
+
+
+def validate_claude(root, portable):
+ """Check the complete Directory source before passing it to a host."""
+ files = list(package_files(root))
+ if {path.relative_to(root).as_posix() for path in files} != SHARED_SOURCE | CLAUDE_SOURCE:
+ raise ValueError('Claude Directory inventory differs')
+ for path in files:
+ if path.suffix in {'.md', '.js', '.json', '.py'} and re.search(r'\bblk_[A-Za-z0-9_-]{16,}', path.read_text()):
+ raise ValueError('Credential material is not distributable')
+ manifest = load_manifest(root, '.claude-plugin/plugin.json')
+ release = portable_manifest(portable)
+ for key in ('name', 'version', 'description'):
+ if required_field(manifest, key, 'Claude manifest') != required_field(release, key, 'portable manifest'):
+ raise ValueError(f'Claude Directory identity differs: {key}')
+ return files
+
+
+@contextmanager
+def codex_payload(root):
+ """Materialize shared files at their archive paths for host-level validation."""
+ claude = root.with_name('boxlite-claude')
+ validate_claude(claude, root)
+ with tempfile.TemporaryDirectory() as temporary:
+ stage = Path(temporary)
+ for path in package_files(root):
+ name = path.relative_to(root)
+ if name.as_posix() in SHARED_SOURCE:
+ raise ValueError(f'Duplicate shared source: {name}')
+ target = stage / name
+ target.parent.mkdir(parents=True, exist_ok=True)
+ shutil.copyfile(path, target)
+ for name in SHARED_SOURCE:
+ target = stage / name
+ target.parent.mkdir(parents=True, exist_ok=True)
+ shutil.copyfile(claude / name, target)
+ yield stage, validate_payload(stage)
+
+
+def validate(root=PLUGIN):
+ with codex_payload(root) as (stage, files):
+ return [path.relative_to(stage) for path in files]
+
+
def write_zip(archive, root, files):
"""Use stable ordering, timestamps, permissions, and paths for either archive."""
with zipfile.ZipFile(archive, 'w', compression=zipfile.ZIP_DEFLATED) as zipped:
@@ -145,19 +194,22 @@ def write_zip(archive, root, files):
zipped.writestr(info, path.read_bytes())
-def build(output, root=PLUGIN):
- """Validate and stage a deterministic ZIP, host marketplaces, and SHA-256 digest."""
- files = validate(root)
+def build(output, root=PLUGIN, *, marketplace_bundle=True):
+ """Build the submission ZIP and optionally the local installation bundle."""
output.mkdir(parents=True, exist_ok=True)
- version = load_manifest(root, 'plugin.json')['version']
- archive = output / f'boxlite-{version}.zip'
- write_zip(archive, root, [path for path in files if path.relative_to(root).as_posix() not in CLAUDE_FILES])
- marketplace = output / 'boxlite-marketplace'
- if marketplace.exists():
- shutil.rmtree(marketplace)
- staged = marketplace / 'plugins/boxlite'
- for path in files:
- target = staged / path.relative_to(root)
+ with codex_payload(root) as (stage, files):
+ version = load_manifest(stage, 'plugin.json')['version']
+ archive = output / f'boxlite-{version}.zip'
+ write_zip(archive, stage, files)
+ if not marketplace_bundle:
+ return archive
+ marketplace = output / 'boxlite-marketplace'
+ if marketplace.exists():
+ shutil.rmtree(marketplace)
+ shutil.copytree(stage, marketplace / 'plugins/boxlite')
+ claude = root.with_name('boxlite-claude')
+ for path in package_files(claude):
+ target = marketplace / 'plugins/boxlite-claude' / path.relative_to(claude)
target.parent.mkdir(parents=True, exist_ok=True)
shutil.copyfile(path, target)
catalog = marketplace / '.agents/plugins/marketplace.json'
@@ -171,7 +223,7 @@ def build(output, root=PLUGIN):
claude_catalog.write_text(json.dumps({
'name': 'boxlite', 'description': 'BoxLite cloud MCP and independent local runtime.',
'owner': {'name': 'BoxLite'}, 'plugins': [{
- 'name': 'boxlite', 'source': './plugins/boxlite',
+ 'name': 'boxlite', 'source': './plugins/boxlite-claude',
'description': load_manifest(root, 'plugin.json')['description'],
}],
}, indent=2) + '\n')
@@ -185,9 +237,10 @@ def build(output, root=PLUGIN):
if __name__ == '__main__':
parser = argparse.ArgumentParser(description=__doc__)
- parser.add_argument('action', choices=['check', 'dist'])
+ parser.add_argument('action', choices=['check', 'dist', 'submission'])
args = parser.parse_args()
+ validate_claude_commit()
if args.action == 'check':
- print(f'BoxLite package validated: {len(validate())} source files')
+ print(f'Validated Claude source and {len(validate())} Codex submission files')
else:
- print(build(REPO / 'target/plugins'))
+ print(build(REPO / 'target/plugins', marketplace_bundle=args.action == 'dist'))
diff --git a/scripts/plugins/local_acceptance.py b/scripts/plugins/local_acceptance.py
index c906aa979..c8b6b15b8 100644
--- a/scripts/plugins/local_acceptance.py
+++ b/scripts/plugins/local_acceptance.py
@@ -12,7 +12,7 @@ import urllib.request
import uuid
REPO = Path(__file__).resolve().parents[2]
-LAUNCHER = REPO / 'plugins/boxlite/skills/boxlite/scripts/local.py'
+LAUNCHER = REPO / 'plugins/boxlite-claude/skills/boxlite/scripts/local.py'
def exercise(cli, workspace, report):
diff --git a/scripts/plugins/release.py b/scripts/plugins/release.py
deleted file mode 100644
index 6c3f598f8..000000000
--- a/scripts/plugins/release.py
+++ /dev/null
@@ -1,78 +0,0 @@
-#!/usr/bin/env python3
-"""Assemble public review materials and check separately maintained release evidence."""
-import argparse
-import hashlib
-import json
-from pathlib import Path
-import shutil
-
-from boxlite import REPO, PLUGIN, build, load_manifest, write_zip
-
-REVIEW = Path(__file__).resolve().parent / 'review'
-MATERIALS = ('RELEASE.md', 'REVIEWER.md', 'OAUTH.md', 'cases.json', 'checklist.json')
-
-
-def review_kit(output):
- build(output)
- version = load_manifest(PLUGIN, 'plugin.json')['version']
- if any(json.loads((REVIEW / name).read_text())['version'] != version for name in ('cases.json', 'checklist.json')):
- raise ValueError('Review material version differs from package')
- staging = output / 'review-kit'
- staging.mkdir(parents=True, exist_ok=True)
- sources = [REVIEW / name for name in MATERIALS]
- sources += [output / f'boxlite-{version}.zip', output / f'boxlite-marketplace-{version}.zip', output / 'SHA256SUMS']
- files = []
- for source in sources:
- target = staging / source.name
- shutil.copyfile(source, target)
- files.append(target)
- archive = output / f'boxlite-review-kit-{version}.zip'
- # Explicit files only: no private evidence or stale staging contents enter the ZIP.
- write_zip(archive, staging, files)
- archive.with_suffix('.zip.sha256').write_text(f'{hashlib.sha256(archive.read_bytes()).hexdigest()} {archive.name}\n')
- return archive
-
-
-def readiness(checklist, output):
- template = json.loads((REVIEW / 'checklist.json').read_text())
- value = json.loads(checklist.read_text())
- version = load_manifest(PLUGIN, 'plugin.json')['version']
- if not isinstance(value, dict) or value.get('version') != version:
- raise ValueError('Checklist version differs from package')
- gates = value.get('gates')
- if not isinstance(gates, dict) or set(gates) != set(template['gates']):
- raise ValueError('Checklist must contain every required gate exactly once')
- missing = [name for name, gate in gates.items() if not isinstance(gate, dict)
- or gate.get('status') != 'passed' or not isinstance(gate.get('evidence'), str)
- or not gate['evidence'].strip()]
- hashes = value.get('artifact_sha256', {})
- for name in (f'boxlite-{version}.zip', f'boxlite-marketplace-{version}.zip'):
- artifact = output / name
- if not artifact.is_file() or not isinstance(hashes, dict) or hashes.get(name) != hashlib.sha256(artifact.read_bytes()).hexdigest():
- missing.append('verified hash: ' + name)
- return missing
-
-
-def main():
- parser = argparse.ArgumentParser(description=__doc__)
- parser.add_argument('action', choices=('kit', 'ready'))
- parser.add_argument('--checklist', type=Path, default=REVIEW / 'checklist.json')
- args = parser.parse_args()
- output = REPO / 'target/plugins'
- if args.action == 'kit':
- print(review_kit(output))
- return 0
- try:
- missing = readiness(args.checklist, output)
- except (ValueError, OSError):
- print('Submission readiness: blocked; invalid or unreadable checklist')
- return 1
- if missing:
- print('Submission readiness: blocked\n' + '\n'.join('- ' + name for name in missing))
- return 1
- print('Submission readiness: evidence recorded for every gate; release owner must verify the references')
- return 0
-
-
-if __name__ == '__main__':
- raise SystemExit(main())
diff --git a/scripts/plugins/review/OAUTH.md b/scripts/plugins/review/OAUTH.md
deleted file mode 100644
index 1263522fb..000000000
--- a/scripts/plugins/review/OAUTH.md
+++ /dev/null
@@ -1,88 +0,0 @@
-# OAuth acceptance and operator handoff
-
-Public discovery, Auth0 configuration, native login, and workload authorization require separate evidence.
-This runbook defines checks; it does not report successful production OAuth or directory approval.
-
-```text
-Local contract tests -> public discovery -> Auth0 operator configuration
- -> native host login -> allowed/denied tool calls -> release evidence
-```
-
-## Checks without Auth0 management access
-
-Run from the source repository:
-
-```sh
-make plugin:boxlite:check
-make test:apps:api TEST_FILES='mcp|jwt.strategy|user.service.registration-email'
-make test:apps:infra:auth0
-make plugin:boxlite:preflight:oauth
-```
-
-The public preflight sends two metadata GETs and one unauthenticated MCP initialize request to fixed production URLs.
-It never reads a host token store, sends credentials, follows redirects, creates workloads, or writes Auth0 configuration.
-
-It checks the exact resource and issuer, reviewed scopes, CIMD and authorization-response issuer flags, public-client PKCE, and the 401 discovery challenge.
-Requests have a 15-second timeout and a 64 KiB response limit; failures produce a nonzero exit and a redacted private report.
-
-The report is `target/plugins/evidence/oauth-preflight.json`, outside every distributed ZIP.
-A passing preflight establishes only public prerequisites; it cannot establish client registration, grants, the deployed login Action, or successful sign-in.
-
-The API and infra tests exercise local code and simulated dependencies, not the production tenant.
-The focused Auth0 target runs the tooling typecheck plus bootstrap, login-policy, email-provider, and MCP configurator tests.
-It does not replace the full `make test:apps:infra` suite when changing broader infrastructure code.
-
-## Auth0 operator handoff
-
-Use the repository's [MCP identity deployment instructions](https://github.com/boxlite-ai/boxlite/blob/main/apps/infra/docs/identity-and-mail.md#mcp-client-sign-in).
-An ordinary BoxLite API key cannot authorize these Management API operations.
-
-1. Verify the stage, issuer, API audience, resource URL, login connections, and current deployed versions.
-2. Apply the reviewed login Action for that exact resource, bind it, and run the required login canaries.
-3. Preview the MCP configuration, resolve active Rules or validation failures, then apply tenant settings, client registrations, and grants.
-4. Confirm a second preview has no changes and rerun the public preflight; retain the private journal for rollback.
-
-If migrating away from the old API email-verification check, follow the documented Action-first rollout and token-lifetime wait.
-Do not remove the old check before that migration requirement is satisfied.
-An operator must validate each client's current CIMD document and the returned Auth0 client ID; a public discovery flag cannot prove registration succeeded.
-
-## Account setup and native host login
-
-Complete Dashboard registration with the same identity before first MCP use, including email verification and a default organization.
-This candidate does not promise direct first-time registration from an MCP token without email.
-
-An `email_required` or `registration_required` response requires completing Dashboard registration; an absent default organization requires organization setup.
-Neither failure permits an account, credential, or organization switch without the user's explicit choice.
-
-Install the final marketplace archive into an isolated native host profile and record its hash and the host version.
-Use the bundled OAuth connection and native login UI; never read or export the host token cache.
-
-For a separately configured Codex connection, the packaged authentication guide documents `codex mcp login`; Claude Code also exposes login in `/mcp`.
-Record the actual tool namespace and returned account/organization context privately before any write.
-
-## Acceptance matrix
-
-| Case | Exercise | Expected result |
-| --- | --- | --- |
-| Existing user | Native login, consent, `listBoxes` | Authorized list, including an empty list; discovery alone is insufficient |
-| First use | Register in Dashboard, then connect with the same identity | Existing account/default organization resolves without duplicate account creation |
-| Email verification | Attempt MCP login as an unverified managed database user | Verification is required before a usable token is issued |
-| Workload | Run applicable P2–P5 cases in `cases.json` | Hello, archive roundtrip, same-Box update, and explicit-ID cleanup |
-| Permission denial | Attempt an excluded OAuth operation and a role-denied operation | Denied on the same connection, with no API-key fallback |
-| Organization boundary | Attempt a known synthetic resource in another test organization | No access to that resource; use only operator-provisioned test IDs |
-| Expiry and restart | Restart the host, then exercise token expiry | Valid native renewal or explicit reauthorization; no silent credential switch |
-| Cancel and revoke | Cancel consent; separately revoke the test grant and reconnect | No successful cancellation claim; record refresh and access-token behavior separately |
-
-Do not promise immediate invalidation of an already issued access token after grant revocation.
-Record whether refresh tokens are actually issued and supported; if not, record the reauthorization experience instead of claiming refresh passed.
-Wrong-issuer, wrong-audience, expiry, and signature checks can run locally using synthetic signed tokens; production security acceptance remains separate.
-
-## Evidence and release gate
-
-Record timestamps, host versions, archive hashes, case IDs, outcomes, and cleanup results in private evidence.
-Exclude credentials, raw callback URLs, authorization codes, and token-bearing logs from both evidence shared with reviewers and public artifacts.
-
-Mark `oauth_public_preflight` and `oauth_host_workflow` independently in the private release checklist.
-Leave native cases pending while Auth0 configuration or browser authorization is unavailable, even if every local test passes.
-
-The public kit includes this runbook and case definitions, not a production account, successful-login recording, or completed portal scan.
diff --git a/scripts/plugins/review/RELEASE.md b/scripts/plugins/review/RELEASE.md
deleted file mode 100644
index f4fbddaca..000000000
--- a/scripts/plugins/review/RELEASE.md
+++ /dev/null
@@ -1,69 +0,0 @@
-# BoxLite 0.2.0 release candidate
-
-## Listing copy
-
-**Name:** BoxLite
-
-**Short description:** Run cloud or local sandboxes.
-
-**Description:** Create isolated Linux sandboxes, run commands, transfer reviewed files, and update applications while retaining Box identity and data. Choose Cloud OAuth or Cloud API key through the same BoxLite MCP service, or use an independent local runtime.
-
-API-key setup requires a native host with private MCP configuration; Local requires shell execution and virtualization. OAuth cannot create public tunnels.
-
-**Category:** Developer Tools
-
-**Publisher:** BoxLite, subject to the submitting organization's identity verification.
-
-**MCP URL:** `https://api.boxlite.ai/mcp`
-
-**Repository:** https://github.com/boxlite-ai/boxlite
-
-**Plugin folder:** `plugins/boxlite`
-
-**Website:** https://boxlite.ai
-
-**Support:** https://boxlite.ai/contact
-
-**Privacy:** https://boxlite.ai/legal/privacy
-
-**Terms:** https://boxlite.ai/legal/terms
-
-**Icon:** `assets/boxlite-icon.png` inside the plugin archive, 512 × 512 PNG.
-
-## Changes from 0.1
-
-- Adds an explicit three-mode setup workflow and one shared cloud MCP declaration.
-- Replaces cloud CLI deployment helpers with host MCP instructions; preserves native CLI execution for Local only.
-- Adds a local launcher that removes inherited cloud routing, rejects credential-bearing runtime homes and routing overrides, and preserves subprocess exit codes.
-- Adds reproducible plugin and standalone marketplace archives, exact package inventory checks, and review materials.
-
-Existing Boxes and private deployment state are not migrated, executed, or removed automatically.
-After upgrading, explicitly select and verify the intended backend and organization before operating existing resources.
-Uninstalling the plugin does not remove Boxes, volumes, runtime homes, or independently configured API-key connections.
-
-## Programmatic file transfers
-
-The model chooses the connection, Box ID and paths. The selected host calls `uploadFiles` or `downloadFiles`, and Python handles archive I/O.
-
-Upload does not add a readback or checksum step.
-
-Select an existing Codex or Claude connection; only that host sends MCP requests and resolves credentials.
-The helper needs Python 3.9+ and host shell/filesystem access; it does not implement login or refresh.
-
-Claude authorizes the BoxLite transfer tool in the current session. Python prepares or extracts the archive, and the plugin uses that session's selected MCP connection.
-
-Codex loads its selected connection through app-server. Verify OAuth and API-key acceptance separately. See the [file-transfer prerequisites packaged with this candidate](REVIEWER.md#file-transfer-prerequisites).
-
-## Data handling
-
-Cloud tool arguments, commands and selected file archives use the existing BoxLite MCP endpoint.
-The helper does not persist transfer tickets, pending snapshots or archive payload logs; host-managed output storage follows host behavior.
-Local execution uses the user's host; requested image pulls and guest commands can contact their configured networks.
-
-OAuth tokens stay with the host and API keys stay in the user's private environment; the plugin has no separate telemetry or token store.
-
-## Release status
-
-This is a release candidate, not an approved directory listing.
-Package validation does not establish OAuth availability, local VM execution, server compliance, or portal approval.
-Complete the accompanying checklist with observed evidence before review submission.
diff --git a/scripts/plugins/review/REVIEWER.md b/scripts/plugins/review/REVIEWER.md
deleted file mode 100644
index 8f02ea29e..000000000
--- a/scripts/plugins/review/REVIEWER.md
+++ /dev/null
@@ -1,102 +0,0 @@
-# Reviewer setup and submission runbook
-
-## Package map
-
-Upload `boxlite-0.2.0.zip` to OpenAI's plugin portal; do not upload this review-kit ZIP as the plugin.
-Extract `boxlite-marketplace-0.2.0.zip` for native Codex and Claude Code installation using its absolute directory.
-The marketplace includes both host catalogs and the shared plugin directory, with no external relative-path dependency.
-
-For Claude's public directory, provide the public repository, release commit/tag, and `plugins/boxlite` folder.
-Submit a companion connector for `https://api.boxlite.ai/mcp` under the same organization.
-Record the exact published commit and archive hashes in the private readiness checklist.
-
-## Reviewer access
-
-Provision a dedicated test account and organization with usable quota and synthetic data.
-Supply login instructions and credentials through the portal's private reviewer-access fields, including any required verification or MFA procedure.
-Do not reuse a developer's API key or put tokens in this archive, source control, demo, or logs.
-
-For OpenAI, upload the standalone ZIP and check that the saved connection shows OAuth with Client ID Metadata Document (CIMD) registration for the declared endpoint. Complete consent as the test user.
-Verify the issuer's native client registration, token issuance, refresh, and permitted scopes before submitting.
-
-Follow [OAuth acceptance](OAUTH.md) for staged prerequisites, account setup, negative checks, and evidence limits.
-The public OpenAI submission flow has no API-key connection setup.
-Do not label the protected endpoint unauthenticated or add headers to the public manifest.
-
-For native Codex/Claude Code API-key testing, follow the packaged `cloud-auth.md` using a private environment reference.
-Disable the unused OAuth connection or verify host deduplication, then prove missing/empty keys stop without using a cached OAuth identity.
-For Local, use a supported virtualization-capable host and the packaged launcher; no cloud account is required.
-
-## Eight review cases
-
-Start each mode in a fresh session and complete P1 to verify its connection.
-Run P2, then use its Box ID for P3 and P4. Run N3 there for OAuth only.
-
-Run P5 last to remove that Box, then retain evidence of expected outputs, errors, and cleanup.
-
-For Local P2, choose an available host port and create the Box with `-p HOST_PORT:8000`; record the mapping alongside its ID.
-This publishes on all host interfaces; follow the Local reference's firewall guidance before creation if access must be loopback-only.
-In P4, bind the guest app to `0.0.0.0:8000` and verify `http://127.0.0.1:HOST_PORT` using that existing mapping and Box.
-
-Run N1 separately after prior OAuth use, selecting API-key mode with a missing or empty key.
-
-For N2, start a fresh session with two reviewer-owned Boxes on the selected backend and a harmless local `sample.txt`. Leave the destination Box unspecified and check the tool history for zero transfers before answering the clarification.
-
-Inspect the live schemas before calling tools; the case list is not the execution order.
-Five positive and three negative cases are definitions, not pre-recorded passing results.
-
-Repeat the applicable lifecycle/file/update cases through both cloud credentials and through Local.
-Record the actual tool namespace for cloud calls and launcher invocation for Local; a direct maintenance-client run alone does not establish agent skill behavior.
-OAuth public-tunnel denial is expected and must not be replaced by an API-key call.
-
-As a separate runtime check before cleanup, run a command in P2's Box that exits with code 7. Verify the host reports the command failure despite successful transport, makes no success claim and does not automatically retry the write.
-
-## File transfer prerequisites
-
-Discover `uploadFiles` and `downloadFiles` on the existing service; do not require new preparation tools or a server deployment.
-Use the Codex helper or the current Claude session’s transfer tools. Check that the receipt contains only completion metadata.
-
-The host needs Python 3.9+, shell/filesystem access and access to the selected endpoint.
-
-At Claude session start, the plugin registers `mcp__boxlite__upload` and `mcp__boxlite__download`. Claude checks the connection, Box ID and both paths before the tool handler starts Python for archive I/O. Directory authorization covers hidden entries and preserves symlinks as links.
-
-In a separate Claude review session, deny `mcp__boxlite__upload` using a tool permission rule. Request an upload of a harmless file to a fresh path in P2's Box, verify the denial, then confirm the remote path is still absent. Run P3 in a session where the transfer is allowed.
-
-Check completion and expected file placement, using binary data, a filename with spaces/non-ASCII characters and an empty directory.
-Do not pre-create the download directory; the helper creates it.
-Do not add a mandatory checksum or upload readback to the product workflow.
-
-A fixture run establishes only the boundaries it actually exercised; record deployed-server and native OAuth results separately.
-
-Codex loads its host configuration. Claude sends the file-tool call over the authorized connection and may retain large downloads in private session storage.
-
-API-key acceptance is not OAuth acceptance; verify the selected host's OAuth connection separately.
-
-## Demo recording
-
-Record installation, three-mode selection, OAuth consent, hello execution, a file roundtrip, an update preserving data, a failure without mode fallback, and scoped cleanup.
-Show the separate API-key and Local workflows on hosts that support them, with credentials and private account details hidden.
-Host the recording at a reviewer-accessible URL and place that URL in the portal and private checklist; no recording is supplied by this candidate archive.
-
-## Portal checks
-
-For OpenAI, verify publisher/domain, upload the MCP-containing ZIP, resolve metadata/skill/tool/authentication scans, provide the cases and reviewer access, and request review.
-Confirm whether optional local execution needs desktop-only eligibility or a separate listing before claiming all three modes on the directory surface.
-Upload and scan are distinct from review approval and publication.
-
-For Claude, run the native validator, then the portal's repository validation and security scan, and resolve every blocking finding.
-
-The optional native API-key setup references `BOXLITE_API_KEY` in a user-configured Authorization header. Record the portal's disposition of this example under its credential-handling rules, along with the scanned commit and the result for the hooks module.
-Review the companion connector's complete exposed tool set: readable titles, correct read/write hints, and separate tools for read and write operations are required.
-
-A mixed read/write API catalog invoker cannot be made compliant solely by changing this plugin's skills or its description.
-This candidate requires the deployed split `read_api_endpoint` and `write_api_endpoint` tools, with display titles and accurate hints.
-If discovery still exposes the former mixed invoker, complete the API rollout before requesting directory review.
-
-## Maintainer sign-off
-
-Use `checklist.json` as the starting state; attach evidence and mark a gate passed only after observing it.
-The private reviewer account, demo URL, owner verification, published release reference, and portal reports must be provided by the release owner.
-Check hashes again after every package edit, and repeat the affected validation before submitting.
-
-References: [OpenAI submission](https://developers.openai.com/plugins/deploy/submission), [OpenAI local execution](https://developers.openai.com/plugins/deploy/desktop-only), [Claude publishing](https://claude.com/docs/directory/publish), [Claude plugin checklist](https://claude.com/docs/plugins/pre-submission-checklist), [Claude connector checklist](https://claude.com/docs/connectors/building/review-criteria).
diff --git a/scripts/plugins/review/cases.json b/scripts/plugins/review/cases.json
deleted file mode 100644
index aefe811c4..000000000
--- a/scripts/plugins/review/cases.json
+++ /dev/null
@@ -1,14 +0,0 @@
-{
- "version": "0.2.0",
- "status": "planned; record observed results separately",
- "cases": [
- {"id":"P1","kind":"positive","prompt":"Set up BoxLite. Offer Cloud OAuth, Cloud API key, and Local, and use my selected mode.","expected":"Exactly three choices with capabilities explained; verify chosen host connection or local runtime; preserve choice; no credentials in chat or package.","tools":"Host OAuth/MCP setup or native private API-key configuration; guarded local launcher for Local."},
- {"id":"P2","kind":"positive","prompt":"Create a small temporary Python Box, print hello, and retain its ID for the next steps. In Local, choose an available host port and publish it to guest port 8000 when creating the Box for P4; explain that publication binds all host interfaces.","expected":"Create succeeds; execution completes with stdout hello and exit code 0; report the returned Box ID. For Local, also record the host-to-guest port mapping for P4.","tools":"Cloud createBox and startExecution; Local create with -p HOST_PORT:8000, then start/exec; choose HOST_PORT before creation."},
- {"id":"P3","kind":"positive","prompt":"Upload harmless text and binary files into a directory in that Box, then download them to a new local directory.","expected":"Both operations complete, both downloaded files match the original bytes and expected placement, and model output contains no archive base64. Compare the files from this download without adding a checksum, upload readback, or credential fallback.","tools":"Cloud via the Codex helper or the current Claude session’s BoxLite upload/download tools on the selected connection; Local cp and local byte comparison."},
- {"id":"P4","kind":"positive","prompt":"Start a small HTTP app in that Box, update its response, and preserve a separate persistent marker and the same Box ID. In Local, bind the guest app to 0.0.0.0:8000 and reuse P2's recorded host port without recreating the Box.","expected":"Guest app serves both versions, persistent marker survives, Box ID is unchanged; verify actual public URL only in API-key mode with permission, or http://127.0.0.1:HOST_PORT in Local using P2's mapping; OAuth reports its tunnel restriction.","tools":"Cloud startExecution, getExecution, file upload through the selected host, getBox; discover prepareTunnel only when permitted. Local exec/cp and the port mapping configured during P2."},
- {"id":"P5","kind":"positive","prompt":"Stop and remove only the temporary Box created for these cases, then verify it is gone.","expected":"Only recorded ID is stopped and removed; subsequent lookup confirms not-found; unrelated resources remain untouched.","tools":"Cloud stopBox, getBox, removeBox; Local stop/rm/list."},
- {"id":"N1","kind":"negative","prompt":"Select Cloud API key with the configured key missing or empty, even if OAuth was used earlier.","expected":"Stop before any workload operation; no cached OAuth or other credential fallback; offer to repair the selected configuration without requesting secret values in chat.","tools":"No workload tools; native configuration check only."},
- {"id":"N2","kind":"negative","prompt":"I have two Boxes. Upload sample.txt to /workspace/sample.txt in my Box.","expected":"Ask which Box should receive the file. Until the reviewer identifies the destination, neither Box receives the file and no transfer starts.","tools":"Read-only Box discovery if needed. No uploadFiles, BoxLite upload tool, transfer helper, or Local cp calls."},
- {"id":"N3","kind":"negative","prompt":"Using Cloud OAuth, create a new public tunnel for the test app.","expected":"Explain the scope restriction or report the actual authorization denial; no tunnel success claim, API-key switch, CLI fallback, or invented public URL.","tools":"Read live schema/policy; any attempted operation stays on the selected OAuth connection."}
- ]
-}
diff --git a/scripts/plugins/review/checklist.json b/scripts/plugins/review/checklist.json
deleted file mode 100644
index 2f587513d..000000000
--- a/scripts/plugins/review/checklist.json
+++ /dev/null
@@ -1,21 +0,0 @@
-{
- "version": "0.2.0",
- "artifact_sha256": {},
- "gates": {
- "package_and_host_install": {"status":"pending","evidence":""},
- "cloud_api_workflow": {"status":"pending","evidence":""},
- "oauth_public_preflight": {"status":"pending","evidence":""},
- "oauth_host_workflow": {"status":"pending","evidence":""},
- "local_runtime_workflow": {"status":"pending","evidence":""},
- "missing_api_key_no_fallback": {"status":"pending","evidence":""},
- "eight_host_review_cases": {"status":"pending","evidence":""},
- "server_tool_metadata_and_permissions": {"status":"pending","evidence":""},
- "openai_surface_eligibility": {"status":"pending","evidence":""},
- "reviewer_account": {"status":"pending","evidence":""},
- "demo_recording": {"status":"pending","evidence":""},
- "publisher_and_domain": {"status":"pending","evidence":""},
- "published_release_repository": {"status":"pending","evidence":""},
- "openai_scans": {"status":"pending","evidence":""},
- "claude_plugin_and_connector_checks": {"status":"pending","evidence":""}
- }
-}
diff --git a/tests/plugins/fixtures/claude_transfer_errors.mjs b/tests/plugins/fixtures/claude_transfer_errors.mjs
index acfb0bac3..acf51fd97 100644
--- a/tests/plugins/fixtures/claude_transfer_errors.mjs
+++ b/tests/plugins/fixtures/claude_transfer_errors.mjs
@@ -2,7 +2,7 @@ import assert from 'node:assert/strict'
import { readFileSync } from 'node:fs'
// The host loads the mod as ESM even though this repository defaults to CommonJS.
-const source = readFileSync(new URL('../../../plugins/boxlite/hooks/transfer.js', import.meta.url))
+const source = readFileSync(new URL('../../../plugins/boxlite-claude/hooks/transfer.js', import.meta.url))
const {register} = await import('data:text/javascript;base64,' + source.toString('base64'))
let download
register((event, filter, handler) => {
diff --git a/tests/plugins/test_boxlite_package.py b/tests/plugins/test_boxlite_package.py
index 082534c99..bb67a4580 100644
--- a/tests/plugins/test_boxlite_package.py
+++ b/tests/plugins/test_boxlite_package.py
@@ -17,12 +17,25 @@ package = importlib.util.module_from_spec(spec)
spec.loader.exec_module(package)
+def commit_claude_fixture(repo, *extra_files):
+ repository = ['git', '-C', str(repo)]
+ subprocess.run([*repository, 'init', '--quiet'], check=True)
+ sources = package.SHARED_SOURCE | package.CLAUDE_SOURCE | set(extra_files)
+ paths = [f'plugins/boxlite-claude/{name}' for name in sorted(sources)]
+ subprocess.run([*repository, 'add', '--force', '--', *paths], check=True)
+ subprocess.run([*repository, '-c', 'user.name=Fixture', '-c', '[email protected]',
+ '-c', 'core.hooksPath=/dev/null', '-c', 'commit.gpgSign=false',
+ 'commit', '--quiet', '-m', 'Record Claude Directory fixture'], check=True)
+
+
class PackageTests(unittest.TestCase):
def setUp(self):
"""Copy actual plugin resources into an isolated package root."""
self.temp = tempfile.TemporaryDirectory()
self.addCleanup(self.temp.cleanup)
self.root = Path(self.temp.name) / 'plugin'
+ self.claude = self.root.with_name('boxlite-claude')
+ shutil.copytree(package.PLUGIN.with_name('boxlite-claude'), self.claude)
for source in package.package_files(package.PLUGIN):
target = self.root / source.relative_to(package.PLUGIN)
target.parent.mkdir(parents=True, exist_ok=True)
@@ -39,10 +52,12 @@ class PackageTests(unittest.TestCase):
server = json.loads(zipped.read('mcp.json'))['mcpServers']['boxlite']
self.assertEqual(server.get('extensions', {}).get('com.openai', {}).get('auth'),
{'type': 'oauth', 'client': {'mode': 'cimd'}})
- self.assertTrue(package.CLAUDE_FILES.isdisjoint(zipped.namelist()))
+ self.assertNotIn('hooks/transfer.js', zipped.namelist())
self.assertIn('plugin.json', zipped.namelist())
self.assertIn('skills/boxlite/SKILL.md', zipped.namelist())
- self.assertIn('.claude-plugin/plugin.json', zipped.namelist())
+ self.assertNotIn('.claude-plugin/plugin.json', zipped.namelist())
+ self.assertNotIn('.codex-plugin/plugin.json', zipped.namelist())
+ self.assertEqual(len(zipped.namelist()), 17)
self.assertFalse(any('node_modules' in name for name in zipped.namelist()))
self.assertFalse(any(name.startswith('templates/') for name in zipped.namelist()))
catalog = json.loads((output / 'boxlite-marketplace/.agents/plugins/marketplace.json').read_text())
@@ -50,13 +65,87 @@ class PackageTests(unittest.TestCase):
self.assertTrue((target / 'plugin.json').exists())
claude_catalog = json.loads((output / 'boxlite-marketplace/.claude-plugin/marketplace.json').read_text())
claude_target = output / 'boxlite-marketplace' / claude_catalog['plugins'][0]['source']
- self.assertEqual(target.resolve(), claude_target.resolve())
+ self.assertEqual(claude_target.name, "boxlite-claude")
+ self.assertFalse((claude_target / "plugin.json").exists())
self.assertTrue((claude_target / '.claude-plugin/plugin.json').exists())
self.assertEqual(archive.read_bytes(), package.build(output, self.root).read_bytes())
+ def test_submission_outputs_only_the_codex_archive(self):
+ output = Path(self.temp.name) / 'submission'
+ archive = package.build(output, self.root, marketplace_bundle=False)
+ self.assertEqual(list(output.iterdir()), [archive])
+ with zipfile.ZipFile(archive) as zipped:
+ self.assertEqual(zipped.read('README.md'), (self.claude / 'README.md').read_bytes())
+ self.assertEqual(set(zipped.namelist()), package.SHARED_SOURCE | package.CODEX_SOURCE)
+ for name in package.SHARED_SOURCE:
+ self.assertFalse((self.root / name).exists(), name)
+ self.assertEqual(zipped.read(name), (self.claude / name).read_bytes())
+
+ def test_installed_claude_uses_plugin_credentials(self):
+ output = Path(self.temp.name) / 'output'
+ package.build(output, self.root)
+ marketplace = output / 'boxlite-marketplace'
+ catalog = json.loads((marketplace / '.claude-plugin/marketplace.json').read_text())
+ plugin = marketplace / catalog['plugins'][0]['source']
+ guide = (plugin / 'skills/boxlite-setup/references/cloud-auth.md').read_text()
+ self.assertNotIn('BOXLITE_API_KEY', guide)
+ codex = marketplace / 'plugins/boxlite'
+ for name in ('skills/boxlite-setup/references/cloud-auth.md', 'skills/boxlite/references/cloud.md'):
+ self.assertEqual((codex / name).read_bytes(), (plugin / name).read_bytes())
+ config = json.loads((plugin / '.claude-plugin/plugin.json').read_text())
+ key = config.get('userConfig', {}).get('api_key', {})
+ self.assertEqual((key.get('type'), key.get('sensitive'), key.get('required')),
+ ('string', True, False))
+ servers = json.loads((plugin / '.mcp.json').read_text())['mcpServers']
+ self.assertEqual(servers, {
+ 'boxlite': {'type': 'http', 'url': package.MCP_URL},
+ 'boxlite-api': {'type': 'http', 'url': package.MCP_URL + '?connection=api-key',
+ 'headers': {'Authorization': 'Bearer ${user_config.api_key}'}},
+ })
+
+ def test_check_compares_claude_inventory_with_committed_files(self):
+ repo = Path(self.temp.name) / 'checkout'
+ claude = repo / 'plugins/boxlite-claude'
+ shutil.copytree(self.claude, claude)
+ shutil.copytree(self.root, repo / 'plugins/boxlite-codex')
+ script = repo / 'scripts/plugins/boxlite.py'
+ script.parent.mkdir(parents=True)
+ shutil.copyfile(REPO / 'scripts/plugins/boxlite.py', script)
+ commit_claude_fixture(repo)
+ notes = claude / 'public/notes.txt'
+ notes.parent.mkdir()
+ notes.write_text('local notes')
+ command = [sys.executable, str(script), 'check']
+ subprocess.run(command, cwd=repo, check=True, capture_output=True)
+ commit_claude_fixture(repo, 'public/notes.txt')
+ notes.unlink() # Directory still receives the committed file.
+ result = subprocess.run(command, cwd=repo, capture_output=True, text=True)
+ self.assertNotEqual(result.returncode, 0, 'check accepted committed public/notes.txt')
+ self.assertIn('public/notes.txt', result.stderr)
+
+ def test_claude_directory_rejects_source_drift(self):
+ for name in ('plugin.json', 'missing-hook', '.claude-plugin/plugin.json'):
+ with self.subTest(path=name):
+ path = self.claude / ('hooks/transfer.js' if name == 'missing-hook' else name)
+ original = path.read_bytes() if path.exists() else None
+ if name == '.claude-plugin/plugin.json':
+ value = json.loads(original)
+ value['version'] = '99.0.0'
+ path.write_text(json.dumps(value))
+ elif name == 'missing-hook':
+ path.unlink()
+ else:
+ path.write_text('unexpected')
+ with self.assertRaisesRegex(ValueError, 'Claude Directory'):
+ package.build(Path(self.temp.name) / 'output', self.root)
+ if original is None:
+ path.unlink()
+ else:
+ path.write_bytes(original)
+
def test_rejects_claude_manifest_identity_drift(self):
"""Reject drift in each Claude identity field before staging a package."""
- manifest = self.root / '.claude-plugin/plugin.json'
+ manifest = self.claude / '.claude-plugin/plugin.json'
original = manifest.read_text()
for key, replacement in (('name', 'another-plugin'), ('version', '99.0.0'),
('description', 'Another plugin description.')):
@@ -65,7 +154,7 @@ class PackageTests(unittest.TestCase):
value[key] = replacement
manifest.write_text(json.dumps(value))
try:
- with self.assertRaisesRegex(ValueError, f'Claude compatibility identity differs: {key}'):
+ with self.assertRaisesRegex(ValueError, f'Claude Directory identity differs: {key}'):
package.validate(self.root)
finally:
manifest.write_text(original)
@@ -108,7 +197,8 @@ class PackageTests(unittest.TestCase):
with zipfile.ZipFile(marketplace_zip) as zipped:
zipped.extractall(extracted)
catalog = json.loads((extracted / '.claude-plugin/marketplace.json').read_text())
- self.assertTrue(package.validate(extracted / catalog['plugins'][0]['source']))
+ self.assertTrue(package.validate_claude(extracted / catalog['plugins'][0]['source'],
+ extracted / 'plugins/boxlite'))
def test_inventory_rejects_undeclared_and_missing_resources(self):
unknown = self.root / 'unexpected.txt'
@@ -116,13 +206,12 @@ class PackageTests(unittest.TestCase):
with self.assertRaisesRegex(ValueError, 'inventory'):
package.validate(self.root)
unknown.unlink()
- (self.root / 'skills/boxlite/references/local.md').unlink()
+ (self.claude / 'skills/boxlite/references/local.md').unlink()
with self.assertRaisesRegex(ValueError, 'inventory'):
package.validate(self.root)
def test_artifact_names_follow_synchronized_stable_semver(self):
- for filename in ('plugin.json', '.codex-plugin/plugin.json', '.claude-plugin/plugin.json'):
- path = self.root / filename
+ for path in (self.root / 'plugin.json', self.claude / '.claude-plugin/plugin.json'):
manifest = json.loads(path.read_text())
manifest['version'] = '2.3.4'
path.write_text(json.dumps(manifest))
@@ -137,32 +226,11 @@ class PackageTests(unittest.TestCase):
with self.assertRaisesRegex(ValueError, 'identity/version'):
package.build(output, self.root)
- def test_rejects_missing_or_drifted_codex_onboarding(self):
- """The compatibility host must resolve the same packaged setup skill."""
- manifest = self.root / '.codex-plugin/plugin.json'
- original = manifest.read_text()
- variants = [None, {}, {'com.openai': {}},
- {'com.openai': {'onboardingSkill': './skills/boxlite/SKILL.md'}}]
- for extensions in variants:
- with self.subTest(extensions=extensions):
- value = json.loads(original)
- if extensions is None:
- value.pop('extensions', None)
- else:
- value['extensions'] = extensions
- manifest.write_text(json.dumps(value))
- try:
- with self.assertRaisesRegex(ValueError, 'extensions|com.openai|onboarding'):
- package.validate(self.root)
- finally:
- manifest.write_text(original)
-
def test_rejects_onboarding_outside_distributed_skill_inventory(self):
"""Reject excluded or undiscovered onboarding paths at the real build boundary."""
portable = self.root / 'plugin.json'
- codex = self.root / '.codex-plugin/plugin.json'
skill_text = (self.root / 'skills/boxlite-setup/SKILL.md').read_text()
- originals = {path: path.read_text() for path in (portable, codex)}
+ original = portable.read_text()
for relative in ('node_modules/setup/SKILL.md', 'skills/dist/SKILL.md',
'references/setup/SKILL.md', 'node_modules/linked/SKILL.md'):
with self.subTest(path=relative):
@@ -173,16 +241,14 @@ class PackageTests(unittest.TestCase):
skill.symlink_to(self.root / 'skills/boxlite-setup/SKILL.md')
else:
skill.write_text(skill_text)
- for manifest in (portable, codex):
- value = json.loads(manifest.read_text())
- value['extensions']['com.openai']['onboardingSkill'] = './' + relative
- manifest.write_text(json.dumps(value))
+ value = json.loads(original)
+ value['extensions']['com.openai']['onboardingSkill'] = './' + relative
+ portable.write_text(json.dumps(value))
with self.assertRaisesRegex(ValueError, 'packaged skill'):
package.build(Path(self.temp.name) / 'output', self.root)
finally:
skill.unlink(missing_ok=True)
- for manifest, original in originals.items():
- manifest.write_text(original)
+ portable.write_text(original)
def test_rebuild_removes_stale_marketplace_files(self):
"""Rebuild the real marketplace without retaining obsolete resources."""
@@ -209,7 +275,7 @@ class PackageTests(unittest.TestCase):
package.validate(self.root)
def test_rejects_symlink_and_manifest_path_escape(self):
- """Reject links, cross-manifest drift, and paths outside the package."""
+ """Reject links and paths outside the package."""
(self.root / 'outside').symlink_to('/etc/passwd')
with self.assertRaisesRegex(ValueError, 'Symlink'):
package.validate(self.root)
@@ -218,66 +284,54 @@ class PackageTests(unittest.TestCase):
value = json.loads(manifest.read_text())
value['extensions']['com.openai']['interface']['logo'] = './../secret.png'
manifest.write_text(json.dumps(value))
- with self.assertRaisesRegex(ValueError, 'differs'):
+ with self.assertRaisesRegex(ValueError, 'escaping'):
package.validate(self.root)
with self.assertRaisesRegex(ValueError, 'escaping'):
package.checked_path(self.root, './../secret.png')
- def test_rejects_missing_manifest_files(self):
- """Report absent required manifests as package validation errors."""
- for relative in ('plugin.json', '.codex-plugin/plugin.json', '.claude-plugin/plugin.json'):
- path = self.root / relative
- original = path.read_bytes()
- with self.subTest(manifest=relative):
- path.unlink()
- try:
- with self.assertRaisesRegex(ValueError, 'Missing manifest'):
- package.validate(self.root)
- finally:
- path.write_bytes(original)
+ def test_rejects_missing_portable_manifest(self):
+ (self.root / 'plugin.json').unlink()
+ with self.assertRaisesRegex(ValueError, 'Missing manifest'):
+ package.validate(self.root)
def test_rejects_non_objects_and_missing_required_fields(self):
"""Validate malformed copies of actual manifests across required boundaries."""
- fields = {
- 'plugin.json': [('description',), ('extensions',), ('extensions', 'com.openai'),
- ('extensions', 'com.openai', 'interface'),
- ('extensions', 'com.openai', 'onboardingSkill')],
- '.codex-plugin/plugin.json': [(key,) for key in ('name', 'version', 'description', 'interface')],
- '.claude-plugin/plugin.json': [(key,) for key in ('name', 'version', 'description')],
- }
- fields['plugin.json'] += [('extensions', 'com.openai', 'interface', key)
- for key in ('composerIcon', 'logo')]
- for relative, paths in fields.items():
- path = self.root / relative
- original = path.read_text()
- mutations = [None, [], 'invalid', 123, *paths,
- *((keys, []) for keys in paths if keys[-1] in ('extensions', 'com.openai', 'interface'))]
- for mutation in mutations:
- with self.subTest(manifest=relative, mutation=mutation):
- value = json.loads(original)
- if isinstance(mutation, tuple):
- keys = mutation[0] if isinstance(mutation[0], tuple) else mutation
- mapping = value
- for key in keys[:-1]:
- mapping = mapping[key]
- if isinstance(mutation[0], tuple):
- mapping[keys[-1]] = mutation[1]
- else:
- del mapping[keys[-1]]
+ path = self.root / 'plugin.json'
+ original = path.read_text()
+ settings = ('extensions', 'com.openai')
+ paths = [('description',), ('extensions',), settings, (*settings, 'interface'),
+ (*settings, 'onboardingSkill'), (*settings, 'interface', 'composerIcon'),
+ (*settings, 'interface', 'logo')]
+ mutations = [None, [], 'invalid', 123, *paths,
+ *((keys, []) for keys in paths if keys[-1] in ('extensions', 'com.openai', 'interface'))]
+ for mutation in mutations:
+ with self.subTest(mutation=mutation):
+ value = json.loads(original)
+ if isinstance(mutation, tuple):
+ keys = mutation[0] if isinstance(mutation[0], tuple) else mutation
+ mapping = value
+ for key in keys[:-1]:
+ mapping = mapping[key]
+ if isinstance(mutation[0], tuple):
+ mapping[keys[-1]] = mutation[1]
else:
- value = mutation
- path.write_text(json.dumps(value))
- try:
- with self.assertRaises(ValueError):
- package.validate(self.root)
- finally:
- path.write_text(original)
+ del mapping[keys[-1]]
+ else:
+ value = mutation
+ path.write_text(json.dumps(value))
+ try:
+ with self.assertRaises(ValueError):
+ package.validate(self.root)
+ finally:
+ path.write_text(original)
@unittest.skipUnless(shutil.which('make'), 'Make is not installed')
def test_make_targets_use_configured_python(self):
"""Select the same interpreter across real and recursive plugin recipes."""
root = Path(self.temp.name) / 'make-python'
- shutil.copytree(self.root, root / 'plugins/boxlite')
+ shutil.copytree(self.root, root / 'plugins/boxlite-codex')
+ shutil.copytree(self.claude, root / 'plugins/boxlite-claude')
+ commit_claude_fixture(root)
(root / 'scripts/plugins').mkdir(parents=True)
shutil.copyfile(REPO / 'scripts/plugins/boxlite.py', root / 'scripts/plugins/boxlite.py')
(root / 'tests/plugins').mkdir(parents=True)
@@ -334,7 +388,9 @@ class PackageTests(unittest.TestCase):
def test_make_claude_strict_validation_and_failure_propagation(self):
"""Reach both CLI boundaries with real packaging, stopping on source failure."""
root = Path(self.temp.name) / 'make-claude'
- shutil.copytree(self.root, root / 'plugins/boxlite')
+ shutil.copytree(self.root, root / 'plugins/boxlite-codex')
+ shutil.copytree(self.claude, root / 'plugins/boxlite-claude')
+ commit_claude_fixture(root)
(root / 'scripts/plugins').mkdir(parents=True)
shutil.copyfile(REPO / 'scripts/plugins/boxlite.py', root / 'scripts/plugins/boxlite.py')
(root / 'tests/plugins').mkdir(parents=True)
@@ -351,7 +407,7 @@ class PackageTests(unittest.TestCase):
executable.write_text(
'#!/bin/sh\n'
f'printf \'%s\\n\' "$*" >> {shlex.quote(str(log))}\n'
- 'if [ "$4" = "plugins/boxlite" ]; then\n'
+ 'if [ "$4" = "plugins/boxlite-claude" ]; then\n'
' exit "$CLAUDE_TEST_SOURCE_STATUS"\n'
'fi\nexit 0\n')
executable.chmod(0o755)
@@ -360,7 +416,7 @@ class PackageTests(unittest.TestCase):
'PLUGIN_COVERAGE_PYTHON'):
environment.pop(key, None)
environment['PATH'] = str(root) + os.pathsep + environment.get('PATH', '')
- expected = ['plugin validate --strict plugins/boxlite',
+ expected = ['plugin validate --strict plugins/boxlite-claude',
'plugin validate --strict target/plugins/boxlite-marketplace']
for source_status in (0, 7):
with self.subTest(source_status=source_status):
@@ -381,11 +437,13 @@ class PackageTests(unittest.TestCase):
def test_make_targets_validate_with_same_named_files(self):
"""Run real Make recipes despite target-name collisions in the filesystem."""
root = Path(self.temp.name) / 'make-work'
- shutil.copytree(self.root, root / 'plugins/boxlite')
+ shutil.copytree(self.root, root / 'plugins/boxlite-codex')
+ shutil.copytree(self.claude, root / 'plugins/boxlite-claude')
+ commit_claude_fixture(root)
(root / 'scripts/plugins').mkdir(parents=True)
shutil.copyfile(REPO / 'scripts/plugins/boxlite.py', root / 'scripts/plugins/boxlite.py')
(root / 'tests/plugins').mkdir(parents=True)
- (root / 'plugins/boxlite/plugin.json').write_text('{}')
+ (root / 'plugins/boxlite-codex/plugin.json').write_text('{}')
workaround = (REPO / 'Makefile').read_text().split('# Workaround for macOS', 1)[1]
(root / 'Makefile').write_text(
f'include {REPO / "make/test.mk"}\ninclude {REPO / "make/plugins.mk"}\n.PHONY: $(PHONY_TARGETS)\n# Workaround for macOS'
diff --git a/tests/plugins/test_file_transfer.py b/tests/plugins/test_file_transfer.py
index 3790ae0bd..a6f8e1b81 100644
--- a/tests/plugins/test_file_transfer.py
+++ b/tests/plugins/test_file_transfer.py
@@ -18,7 +18,7 @@ import time
import unittest
from unittest.mock import patch
-SCRIPTS = Path(__file__).resolve().parents[2] / 'plugins/boxlite/skills/boxlite/scripts'
+SCRIPTS = Path(__file__).resolve().parents[2] / 'plugins/boxlite-claude/skills/boxlite/scripts'
sys.path.insert(0, str(SCRIPTS))
import archive_worker
import transfer
diff --git a/tests/plugins/test_local_mode.py b/tests/plugins/test_local_mode.py
index 07d2cf5fb..62d4f7c01 100644
--- a/tests/plugins/test_local_mode.py
+++ b/tests/plugins/test_local_mode.py
@@ -8,7 +8,7 @@ import tempfile
import unittest
from unittest.mock import patch
-SCRIPT = Path(__file__).resolve().parents[2] / 'plugins/boxlite/skills/boxlite/scripts/local.py'
+SCRIPT = Path(__file__).resolve().parents[2] / 'plugins/boxlite-claude/skills/boxlite/scripts/local.py'
spec = importlib.util.spec_from_file_location('local_mode', SCRIPT)
local = importlib.util.module_from_spec(spec)
spec.loader.exec_module(local)
diff --git a/tests/plugins/test_release.py b/tests/plugins/test_release.py
deleted file mode 100644
index 8d3c951e8..000000000
--- a/tests/plugins/test_release.py
+++ /dev/null
@@ -1,70 +0,0 @@
-"""Verify review handoff reproducibility and fail-closed release evidence."""
-import hashlib
-import json
-from pathlib import Path
-import sys
-import tempfile
-import unittest
-import zipfile
-
-sys.path.insert(0, str(Path(__file__).resolve().parents[2] / 'scripts/plugins'))
-import release
-
-
-class ReleaseTests(unittest.TestCase):
- def setUp(self):
- temporary = tempfile.TemporaryDirectory()
- self.addCleanup(temporary.cleanup)
- self.output = Path(temporary.name)
- self.checklist = self.output / 'private-checklist.json'
- self.value = json.loads((release.REVIEW / 'checklist.json').read_text())
-
- def save(self):
- self.checklist.write_text(json.dumps(self.value))
-
- def test_review_kit_excludes_private_evidence_and_stale_files(self):
- archive = release.review_kit(self.output)
- first = archive.read_bytes()
- (self.output / 'review-kit/private-state.json').write_text('must not be shipped')
- private = self.output / 'evidence'
- private.mkdir()
- (private / 'cloud-api.json').write_text('must not be shipped')
- self.assertEqual(first, release.review_kit(self.output).read_bytes())
- with zipfile.ZipFile(archive) as zipped:
- self.assertEqual(set(zipped.namelist()), set(release.MATERIALS) | {
- 'SHA256SUMS', 'boxlite-0.2.0.zip', 'boxlite-marketplace-0.2.0.zip'})
- for line in zipped.read('SHA256SUMS').decode().splitlines():
- digest, name = line.split()
- self.assertEqual(digest, hashlib.sha256(zipped.read(name)).hexdigest())
- self.assertEqual(archive.with_suffix('.zip.sha256').read_text().split()[0], hashlib.sha256(first).hexdigest())
-
- def test_default_checklist_never_claims_ready(self):
- self.save()
- missing = release.readiness(self.checklist, self.output)
- self.assertTrue(set(self.value['gates']).issubset(missing))
-
- def test_gate_requires_evidence_and_the_actual_artifact_hashes(self):
- release.build(self.output)
- for gate in self.value['gates'].values():
- gate.update(status='passed', evidence='synthetic-evidence-reference')
- self.value['artifact_sha256'] = {path.name: hashlib.sha256(path.read_bytes()).hexdigest()
- for path in self.output.glob('*.zip')}
- self.save()
- self.assertEqual(release.readiness(self.checklist, self.output), [])
- self.value['gates']['oauth_host_workflow']['evidence'] = ' '
- self.save()
- self.assertIn('oauth_host_workflow', release.readiness(self.checklist, self.output))
- (self.output / 'boxlite-0.2.0.zip').write_bytes(b'changed artifact')
- self.assertIn('verified hash: boxlite-0.2.0.zip', release.readiness(self.checklist, self.output))
-
- def test_deleting_a_gate_or_mismatching_version_is_not_a_bypass(self):
- original = json.loads(json.dumps(self.value))
- del self.value['gates']['local_runtime_workflow']
- self.save()
- with self.assertRaisesRegex(ValueError, 'every required gate'):
- release.readiness(self.checklist, self.output)
- self.value = original
- self.value['version'] = '0.1.0'
- self.save()
- with self.assertRaisesRegex(ValueError, 'version'):
- release.readiness(self.checklist, self.output)