Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 12 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,15 +83,20 @@ jobs:
- name: Plugin pins the CLI to one exact version that is on npm
# A range (^1.0.0) lets npx run a version published after review; the Claude directory
# review asks for an exact pin. The CLI is the Rust simular-box, released from
# simular-ai/box-cli, so the pin follows its npm releases. e2e/ tests this same version.
# simular-ai/box-cli, so the pin follows its npm releases. e2e/ tests claude-code/'s version.
# claude/ (the directory submission) may lag claude-code/: a commit there replaces the
# version under directory review, so it moves by hand. Each folder still pins one exact
# version that is on npm.
run: |
set -euo pipefail
pins=$(grep -rhoE '@simular-ai/box@[^ `"]*' claude claude-code | sort -u)
if [ "$(printf '%s\n' "$pins" | grep -c .)" -ne 1 ]; then echo "claude/ and claude-code/ must pin one CLI version, found:"; echo "$pins"; exit 1; fi
v=${pins#@simular-ai/box@}
if ! printf '%s' "$v" | grep -qE '^[0-9]+\.[0-9]+\.[0-9]+$'; then echo "pin an exact release, not $pins"; exit 1; fi
if [ "$(npm view "@simular-ai/box@$v" version)" != "$v" ]; then echo "$pins is not on npm"; exit 1; fi
echo "claude/ and claude-code/ pin $pins"
for d in claude-code claude; do
pins=$(grep -rhoE '@simular-ai/box@[^ `"]*' "$d" | sort -u)
if [ "$(printf '%s\n' "$pins" | grep -c .)" -ne 1 ]; then echo "$d/ must pin one CLI version, found:"; echo "$pins"; exit 1; fi
v=${pins#@simular-ai/box@}
if ! printf '%s' "$v" | grep -qE '^[0-9]+\.[0-9]+\.[0-9]+$'; then echo "$d/: pin an exact release, not $pins"; exit 1; fi
if [ "$(npm view "@simular-ai/box@$v" version)" != "$v" ]; then echo "$d/: $pins is not on npm"; exit 1; fi
echo "$d/ pins $pins"
done
- name: DeepSeek Harness package
run: npm pack ./dsh --dry-run
- name: Hermes plugin
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,5 @@ Add a folder named after the agent with its own manifest, MCP config and, where
- `hermes/`: bump `version` in `hermes/plugin.json`, merge, then open a PR to [NousResearch/hermes-agent](https://github.com/NousResearch/hermes-agent) that moves `sha:` (and `version:`) in `plugin-catalog/box.yaml` to the merge commit. Hermes installs only the pinned, reviewed commit.
- `pi/`: bump `version` in `pi/package.json`, merge to main, then push a matching tag `pi-vX.Y.Z`. `release-pi.yml` publishes `@simular-ai/box-pi` to npm through trusted publishing, with provenance (the first version is published once by hand, see the workflow's header). pi.dev lists packages with the `pi-package` keyword on its own.
- `grok/`: bump `version` in `grok/.grok-plugin/plugin.json`, then open a PR to [xai-org/plugin-marketplace](https://github.com/xai-org/plugin-marketplace) that moves the `box` entry's `sha` to the new commit and regenerates its index.
- The Claude plugin's CLI pin: since 1.0.0, `@simular-ai/box` on npm is the Rust CLI released from [simular-ai/box-cli](https://github.com/simular-ai/box-cli). To move the plugin to a new CLI release, change the exact pin `npx -y @simular-ai/box@X.Y.Z` in every `npx -y` command under `claude-code/` and `claude/` and bump both `plugin.json` versions in one PR (CI fails unless every pin under both folders names the same exact version and that version is on npm; never a range, because the Claude directory review requires that what runs is what it read).
- The Claude plugin's CLI pin: since 1.0.0, `@simular-ai/box` on npm is the Rust CLI released from [simular-ai/box-cli](https://github.com/simular-ai/box-cli). To move the plugin to a new CLI release, change the exact pin `npx -y @simular-ai/box@X.Y.Z` in every `npx -y` command under `claude-code/` and bump its `plugin.json` version in one PR (box-cli's Bump pins workflow opens this PR for `claude-code/` only; `claude/`, the directory submission, moves by hand in its own PR, since a commit there replaces the version under directory review. CI fails unless each folder pins one exact version that is on npm; never a range, because the Claude directory review requires that what runs is what it read).
- The box CLI (`@simular-ai/box` on npm) is released from simular-ai/box-cli, not from here. `e2e/` tests the pinned version against each real client (versions in `e2e/clients.json`); see `.github/workflows/ci.yml`.
4 changes: 2 additions & 2 deletions e2e/cli.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// The box CLI these tests run: the Rust `simular-box` from simular-ai/box-cli, at the exact
// version the Claude plugin pins (claude-code/skills/box-offload/SKILL.md; CI keeps every pin under
// claude/ and claude-code/ on one version that is on npm). Set BOX_CLI to a binary to test another build, for
// version the Claude plugin pins (claude-code/skills/box-offload/SKILL.md; CI keeps each Claude
// folder on one exact version that is on npm; claude/ may lag). Set BOX_CLI to a binary to test another build, for
// example a local `target/release/simular-box` from a box-cli checkout.
import fs from 'node:fs'
import path from 'node:path'
Expand Down
Loading