mattpocock-pre-release

在仓库上运行一系列预发布检查,以在发布前验证仓库状态。

仓库最近推送
GitHub Stars
9,236
Forks
995
Issues / PRs
96

预览截图

来自skillπ 实验室的展示

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "mattpocock-pre-release":https://skillpi.com/zh/skills/deepskill-7485f479fa1c2cba425fdbadb0c6dd1c008df875b1df964143ff0146af148bb3。安装前核对上游来源和版本:https://github.com/mattpocock/sandcastle。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

github.com

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

在仓库上运行一系列预发布检查,以在发布前验证仓库状态。

0 下载

介绍来源: third_party · mattpocock · 0.0.1 参考来源

SkillPi 解读

能完成的任务
进行一系列发行前的回购检查.
适合谁
来源文档未说明。
输入和输出
来源文档未说明。
软件、账号及付费要求
来源文档未说明。
限制与区别
来源文档未说明。
实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
Frontmatter
name: pre-release
description: "Run a series of pre-release checks on the repo."
disable-model-invocation: true

Check all of the files in the .changeset directory.

For the changesets as a whole, check the following:

  • Each changeset should be about a user-facing feature. Internal refactors or things that don't affect users should not be added as changesets.
  • Related changes should be grouped under a single changeset.
  • Changesets are user-facing, not maintainer-facing. They should not specify implementation details, or how a feature was made. They should only specify the user-facing change, and why it was made. Changesets !== commit messages.

Once done, commit your changes.

版本历史

  1. v0.14.0 GitHub ↗
    原版更新说明

    ### Minor Changes - d99fff8: Add an E2B isolated sandbox provider, `e2b()` from `@ai-hero/sandcastle/sandboxes/e2b`. It needs the optional `e2b` peer dependency and `E2B_API_KEY` (or the `apiKey` option). Use a template that ships your agent's CLI, such as `e2b({ template: "claude" })`. - 8783573: Add `modal()`, an isolated sandbox provider for [Modal](https://modal.com) sandboxes, at `@ai-hero/sandcastle/sandboxes/modal`. Install `modal` (an optional peer dependency) and set `MODAL_TOKEN_ID` and `MODAL_TOKEN_SECRET`, or pass `tokenId` and `tokenSecret`. By default it builds a `node:24-bookworm` image with Claude Code installed; pass `image` for your own. Sandboxes live for an hour unless `timeoutMs` says otherwise, and `sandboxId` is the Modal sandbox id. - 775a8df: Add `sprites()`, a Fly.io Sprites isolated sandbox provider, at `@ai-hero/sandcastle/sandboxes/sprites`. It needs `@fly/sprites` (an optional peer dependency, which asks for Node 24 or later) and a token in `SPRITES_TOKEN` (or `SPRITE_TOKEN`, or the `token` option). Each sandbox is a new Sprite with the repo at `/home/sprite/workspace`; `sandboxId` is the Sprite's name. Sprites persist until deleted, so Sandcastle deletes the Sprite on `close()`, when setup fails, and from a background process when the run is interrupted or exits without closing it. ### Patch Changes - 73ce215: docker() and podman(): the worktree admin directories can no longer be renamed from inside the sandbox. - 14507d6: Add a Glossary page to the user docs (`docs/guide/glossary.md`, in the Reference group) that defines every term in one place. Guide pages no longer open with definition blocks; instead, each page links the first mention of a term to its glossary entry.

  2. v0.13.0 GitHub ↗
    原版更新说明

    ## Highlights - **Native sandboxes.** `bwrap()` (Linux and WSL2) and `seatbelt()` (macOS) run the agent in an OS sandbox with no container and no image. They are now the documented default. `sandcastle init --sandbox bwrap` scaffolds a project that needs no Dockerfile. - **Resume for more agents.** Copilot, Cursor and OpenCode sessions can now be resumed; OpenCode can also fork. - **`sandboxId`** on the sandbox handle (the container name on Docker and Podman, the sandbox's name or id on Vercel and Daytona), and **`capDrop`** for Docker and Podman. - **Security fixes.** The host's `.git` is mounted read-only in bind-mount sandboxes, and host-side git ignores hooks and config that run programs. Sync-out refuses paths that leave the worktree, and `fetch` only uses allowed transports. See the entries below. ## Behaviour changes you may notice - `git config` without `--global` fails inside a bind-mount sandbox (the repo's git config is read-only there). - Host-side merges no longer run the repo's git hooks. - Sync-out now fails with `SyncOutPathError` where it used to skip a file. --- ### Minor Changes - 0210ba0: Add session resume to the `copilot()` agent. Sandcastle now captures each Copilot session's `events.jsonl` to `~/.copilot/session-state/<id>/` on the host, and `r.resume()` (or `resumeSession`) copies it back into the sandbox and runs `copilot --resume=<id>`. Opt out with `copilot(model, { captureSessions: false })`. The Copilot CLI has no fork, so `r.fork()` throws a `ForkNotSupportedError` naming `copilot` before any sandbox starts. - cd39292: Add session resume to the `cursor()` agent. Sandcastle now captures each Cursor chat's `store.db` to `~/.cursor/chats/<md5-of-cwd>/<chat-id>/` on the host, byte for byte, and `r.resume()` (or `resumeSession`) copies it back into the sandbox and runs `agent --resume=<id>`. Opt out with `cursor(model, { captureSessions: false })`. The Cursor CLI has no fork, so `r.fork()` throws a `ForkNotSupportedError` naming `cursor` before any sandbox starts. - 734adb6: Fix the `Context window: NNNk` line so it shows the last model call's input tokens (cache included) for every agent, never a running total. claudeCode now reads it from the stream, so it also shows on noSandbox, vercel and with `captureSessions: false`. codex reads it from its captured session instead of the cumulative `turn.completed` total, and shows the model's limit (`34k / 258k`). pi, opencode and copilot now show it. cursor shows none, because it reports only a whole-turn total. When an iteration fails, the line still shows for the iterations that finished. New `IterationResult.contextWindow` (`{ tokens, limit? }`). - 2472e66: `sandcastle init` with `--sandbox bwrap` or `--sandbox seatbelt` now checks the host: it warns, with the exact install command, when the sandbox tool or the chosen agent's CLI is missing, and still writes the files. With the beads issue tracker it scaffolds an identity mount of `.beads/` (at its host path, with `BEADS_DIR` set to match) and skips the bd version warning, since the host's own `bd` is used. With GitHub Issues, the next steps say to put `GH_TOKEN` in `.sandcastle/.env`. - 5d4d06b: `sandcastle init` offers the native sandbox providers. The interactive prompt lists the host OS's native provider first and preselects it, marked "(recommended)": `bwrap` on Linux (and WSL2), `seatbelt` on macOS, then Docker and Podman. `--sandbox bwrap|seatbelt|docker|podman` is accepted on any OS. A native provider scaffolds no Dockerfile or Containerfile and has no build-image prompt, `--build-image` flag or build-image next step; the main file imports the chosen provider. Non-interactive `init` still requires `--sandbox`, and `init --sandbox docker` is unchanged. - de65fb3: Add `bwrap()`, a native sandbox provider for Linux and WSL2, at `@ai-hero/sandcastle/sandboxes/bwrap`. It runs each command in Bubblewrap, with no image and no daemon: the host's system dirs read-only, the worktree at its host path, a private home at `/home/agent` and a private `/tmp` (both removed on close), its own PID namespace (every process the command started dies with it, even when your Node process is hard-killed: SIGKILL, the OOM killer), the host network, and only the env vars Sandcastle passes in. `exec` with `sudo: true` rejects, and `interactive()` with a native provider throws `NativeInteractiveNotSupportedError`. Constructing `bwrap()` checks once per process that Bubblewrap is usable, and throws a new `NativeSandboxUnavailableError` (exported from `@ai-hero/sandcastle`, with `message` and an optional `fixCommand`) if it isn't: on a non-Linux OS (use `seatbelt()` on macOS), when `bwrap` isn't on `PATH` (the fix is your distro's install command), or when the kernel blocks unprivileged user namespaces (Ubuntu 24.04+ AppArmor; the fix is an AppArmor profile for `bwrap`). It throws before any worktree exists and never falls back to running unsandboxed. `bwrap()` runs your host's agent CLI with no image: every directory on the host `PATH` is readable inside the sandbox, plus the install root of each executable symlinked from one (an nvm-installed `codex`, a `claude` in `~/.local/bin`), and the child's `PATH` is the host `PATH` filtered to what it can see. The install root is the executable's package when it sits under a `node_modules` dir, and otherwise only the executable's own directory, so an `npm link`ed checkout or a stray `package.json` above your projects doesn't expose them. A `PATH` entry equal to your home directory or an ancestor of it, and an install root holding a `.git`, are never mounted. `seatbelt()` resolves its toolchain by the same rules. Add other paths with the `mounts` option: each appears at its own host path, so `sandboxPath` must equal `hostPath` (`bwrap()` throws otherwise), and `readonly` defaults to `false`. - 6a12a94: Add `seatbelt()`, a native sandbox provider for macOS 14 or later, at `@ai-hero/sandcastle/sandboxes/seatbelt`. It runs each command under the system `/usr/bin/sandbox-exec` with a deny-by-default Seatbelt profile, with no image and no daemon: the host's system toolchain and `PATH` dirs read-only, the worktree and git dirs read/write at their host paths, a private home and temp dir (both removed on close), the host network, and only the env vars Sandcastle passes in plus `PATH`, `HOME` and `TMPDIR`. The git control files stay read-only and the dirs holding them can't be renamed aside. The agent can't signal your processes, though Seatbelt can't fully hide them. Each `exec` leads its own process group, which is killed when it exits, on close, on shutdown and, through a small host watchdog, when your Node process is hard-killed (SIGKILL, the OOM killer). A known limit: a process that leaves its group with `setsid` or `setpgid` survives all of these, still under the Seatbelt profile. Copies to and from `/home/agent` land in the private home. Session capture and resume work for every agent, including opencode session export and Claude Code subagent transcripts. Add other paths with `mounts` (each at its own host path, as for `bwrap()`). `exec` with `sudo: true` rejects, and `interactive()` throws `NativeInteractiveNotSupportedError`. Constructing `seatbelt()` checks once per process that Seatbelt works, and throws `NativeSandboxUnavailableError` if it doesn't: on a non-macOS OS (use `bwrap()` on Linux or WSL2), on macOS older than 14, or when `sandbox-exec` is missing or fails (for instance inside another Seatbelt sandbox). There is no install command on macOS, so the error has no `fixCommand` and points to `docker()`. It never falls back to running unsandboxed. - 57faed6: Add session resume and fork to the `opencode()` agent. OpenCode keeps sessions in its SQLite database, so after each run Sandcastle runs `opencode export <id>` in the sandbox and stores the JSON under `~/.local/share/opencode/sandcastle-sessions/<id>.json` on the host. `r.resume()` (or `resumeSession`) copies it back, runs `opencode import`, and continues with `opencode run --session <id>`; `r.fork()` adds `--fork`, so the fork gets a new session id and the parent is left alone. Opt out with `opencode(model, { captureSessions: false })`. - e9b1ce1: A `BindMountSandboxHandle` can now report `sandboxHomedir` and `sandboxTmpdir`: the agent's home and a writable temp dir, as commands inside the sandbox see them. Session capture and resume build every path they use inside the sandbox from these (the Claude Code projects dir and its subagent transcripts, the Codex, pi, Cursor and Copilot session dirs, and the opencode export file) instead of a fixed `/home/agent` and `/tmp`. Both are optional and default to `/home/agent` and `/tmp`, so `docker()`, `podman()` and custom providers behave as before, and an explicit `sessionStorage` sandbox dir still wins. ### Patch Changes - 94c8953: `sandcastle init --issue-tracker beads` now checks the host's `bd version` against the image's pinned bd 1.3.2 and warns on a mismatch. Every beads sandbox opens the host's `.beads/` with the image's bd, which migrates the database; an older host bd then fails to create issues (`fk_events_issue`). The warning names both versions and says which one to change. - b6cb2bb: Fix the beads issue tracker in worktree sandboxes. `sandcastle init --issue-tracker beads` now scaffolds a `sandboxOptions` that every sandbox call receives: a mount of the host's `.beads/` and `BEADS_DIR` pointing at it, so merge-to-head and branch sandboxes share the host's beads database instead of failing with "no beads database found". The beads image now installs a pinned, checksum-verified bd release (`ARG BEADS_VERSION`, default 1.3.2) instead of the unpinned main-branch install script. - 912b7ef: `bwrap()` now removes each sandbox's private home and `/tmp` when a run is interrupted. Before, SIGINT or SIGTERM (a Ctrl-C) killed the sandbox's processes but left a `sandcastle-bwrap-*` dir in the host's temp dir, holding the agent's home (`.claude/`, `.claude.json`, `.gitconfig`), one more after every interrupt. The same removal runs when the process exits without closing the sandbox. - 00cfde0: Add a `capDrop` option to `docker()` and `podman()`. Each listed Linux capability (named without the `CAP_` prefix, or `"ALL"`) is passed to `docker run`/`podman run` as its own `--cap-drop` flag, so a sandbox can run without capabilities such as `NET_RAW`. The names are typed as `LinuxCapability`, so a misspelt one fails at compile time. - a9a04cc: Fix Claude Code session capture for repo paths containing `.` or other non-alphanumeric characters. `encodeProjectPath` now names the `~/.claude/projects/` directory exactly as Claude Code does: every character that isn't an ASCII letter or digit becomes `-` (including `.`, `_`, spaces and a Windows drive colon), and names over 200 characters are truncated with Claude Code's hash suffix. Previously only path separators were replaced, so a captured session for a repo like `~/repos/my.app` landed in a directory `claude --resume` never looks in, and native sandboxes failed session capture for every worktree under `.sandcastle/worktrees`. - 516a8d0: Fix `copyToWorktree` so each path lands at the same relative path in the worktree: a directory that already exists there (e.g. one holding tracked files) is merged into instead of nested (`cfg/cfg`), and missing parent directories of a nested path (e.g. `deep/a/b/c.txt` under an ignored `deep/`) are created instead of failing the run. - 26ec236: `createSandbox()` and `worktree.createSandbox()` now pass the agent provider's `env` (e.g. `claudeCode(model, { env })`) to the agent on each `sandbox.run()`. It was silently dropped, because the container starts before an agent is chosen. The env is exported for that run's agent process only, and keys that overlap the sandbox provider's `env` are rejected, as in `run()`. - 21e4c55: Fix `{{TARGET_BRANCH}}` under `createWorktree()`: `wt.run()` and `wt.interactive()` now set it to the host's current branch, as `run()` and `interactive()` do, instead of the worktree's own branch. - 43a38c8: Show cursor's tool calls in the run log again. Current Cursor CLIs report shell commands as `shellToolCall` and file writes as `editToolCall`, which the parser didn't know, so a cursor run showed prose only. They now display as `Bash(<command>)` and `Edit(<path>)`. - bf39c6f: Restructure the user docs in `docs/guide/` around the glossary: one page per major term (core concepts, sandbox providers, branch strategies, agent providers, agent sessions, iterations, structured output, prompts, hooks, init, run logs), each opening with the term's definition, plus a Reference group for `run()` and the CLI. The glossary is now `GLOSSARY.md` (was `CONTEXT.md`). - 5ec951f: Move the user docs out of `README.md` into one page per topic under `docs/guide/`, ordered by `docs/guide/toc.json`. The README keeps the overview and links to every page; the same pages are published at aihero.dev/sandcastle. - 5999abe: Fix the Codex `.env.example` template written by `sandcastle init`: it now uses `CODEX_API_KEY` (the only API-key variable `codex exec` reads from the environment) instead of `OPENAI_KEY`, which nothing read. - 8adb685: Make `daytona()` work on Daytona's default snapshot. The repo now syncs into `<workdir>/workspace`, which the `daytona` user can create, instead of replacing the home directory. The resolved env (`.sandcastle/.env` keys, `daytona({ env })`, the agent's env) now reaches the sandbox as `envVars`, with explicit `create.envVars` taking precedence. The `@daytona/sdk` peer range is widened to `>=0.164.0 <1.0.0`. - 50c51b9: Fix a streamed `exec` on `daytona()` hanging forever when the command runs `exit N`. Daytona runs session commands in one long-lived shell, and a top-level `exit` ended that shell, so no exit code was ever recorded. The provider now runs each streamed command in a subshell, so it returns with exit code `N`. Should the session shell die some other way, the call now fails with an error within about 15 seconds instead of hanging. - cc07b94: Fix `daytona()` dropping `stdin`, so `claudeCode` got the prompt `-` and made no commits. The provider now writes stdin to a file in the sandbox and redirects it into the command. A failed non-streamed command on Daytona also now reports its output as `stderr`, so the error says why it failed and not just its exit code. - 2947f70: Shell expressions (`` !`command` ``) inside HTML comments in a prompt file no longer run. Before, the blank template's scaffolded `prompt.md` ran its own commented-out examples, so it failed as shipped (for example `gh issue list … exited with code 4`). - c70820f: Fix README Quick start: correct the mislabelled `// 3.` comment to `// 4.` under step 4, and reword step 3 to copy `.sandcastle/.env.example` to `.sandcastle/.env` before filling in values, matching the command order. - d4f20bb: Fix `copyToWorktree` on isolated sandboxes (Vercel, Daytona): paths are now read from your repo instead of the fresh worktree, so gitignored files like `.env` and `node_modules` actually reach the sandbox. Before, they were silently skipped. - 2226242: Close sandboxes whose provider `create()` finishes after the container start timeout (or after the run is interrupted), so a slow Daytona, Vercel, Docker or Podman create no longer leaves a sandbox running with no handle. - 45005dd: Close isolated (remote) sandboxes such as Daytona and Vercel when setup fails after `create()`. A failed or timed-out sync-in or `copyToWorktree` copy-in no longer leaves the sandbox running. - 074cc43: Fail the run when the agent reports an error in its own stream, even if it exits 0. pi (an `agent_end` whose last message has `stopReason: "error"`) and opencode (an `error` event) both exit 0 after an API error, so `run()` used to log "Run complete" with no commit. Claude Code and Cursor `result` lines with `is_error: true`, Codex `turn.failed`, and Copilot `error` events are surfaced the same way. Custom agent providers can emit the new `error` `ParsedStreamEvent`. - a4fe634: Fix verbose file logging: each raw JSON stream line now starts on its own line. Previously a raw line could be written onto the end of a line of agent text that had no trailing newline. - 3633232: Fix `vercel()` leaking a sandbox when its setup fails inside the provider's `create()`, such as creating the worktree folder. The sandbox now stops before the error is thrown, instead of running until Vercel's timeout. - 74d0da5: Make `vercel()` work on Vercel's default image. Setup failed on every call with no `runtime`, because the default image has no `/vercel/sandbox` folder and the provider created the worktree folder without its parents. It now creates it with `mkdir -p`. The `runtime` docs now say the default image ships the `claude` CLI, and the named runtimes (`node24`, `node22`) ship none. - d90297e: `vercel()` now reads `VERCEL_TOKEN`, `VERCEL_TEAM_ID` and `VERCEL_PROJECT_ID` from the environment when the matching options aren't passed. Before, a token in the environment was ignored and `vercel()` failed with "Could not get credentials from OIDC context". A token without a team or project id now fails naming the missing variable. - d6263d2: Fix `vercel()` dropping `stdin`, so `claudeCode` (and pi, and codex resume) got the prompt `-` and the run "succeeded" with no commits. The provider now writes stdin to a file in the sandbox and redirects it into the command, as `daytona()` does. - 05c12ce: Fix `noSandbox()` on Windows mangling agent commands (#940). cmd.exe doesn't understand the POSIX quoting in Sandcastle's commands, so `--model 'claude-fable-5'` reached the agent CLI with the quotes attached, and prompts containing `&`, `|` or `%` were cut short or interpreted. On Windows, `noSandbox()` now splits a simple command into its arguments and starts the program directly; `.cmd` npm shims are run through cmd.exe with correct escaping. An argument a `.cmd` shim can't receive (a newline, or a command line over cmd.exe's 8191-character limit) now fails with a clear error instead of being silently cut short. Commands that use shell syntax still run through cmd.exe as before. - d2e0360: Copy `createWorktree({ copyToWorktree })` files into isolated sandboxes (Daytona, Vercel) started by `wt.run()`, `wt.interactive()` and `wt.createSandbox()`. They were copied into the host worktree only, and the git-bundle sync-in dropped them because they are usually gitignored. - e9bd882: Security: with a bind-mount sandbox provider (`docker()`, `podman()`, or a custom `createBindMountSandboxProvider`), a sandboxed agent could make the git commands Sandcastle runs on the host execute code, outside the sandbox, through files it could write in the repo's `.git`. This is fixed. Sandcastle now mounts `.git/config`, `.git/hooks`, `.git/info`, the worktree's `.git` file and its `commondir` read-only in the sandbox, and every git command it runs on the host checks where the repo's `.git` leads and ignores repository hooks and program-running repository config (your global and system git config still applies). As a result, `git config` without `--global` now fails inside the sandbox, and host-side merges no longer run the repository's hooks. Isolated providers (`vercel()`, `daytona()`) were not affected. Thanks to the reporter of #1010. - 79664a7: Security: with an isolated sandbox provider (`vercel()`, `daytona()`, or a custom `createIsolatedSandboxProvider`), a sandboxed agent could make sync-out write files outside the host worktree, because the host trusted the file paths the sandbox reported. This is fixed. Sync-out now refuses an absolute path, a `..` segment, a path inside `.git`, a symlink on the host that leads outside the worktree, and a patch that would create a symlink pointing outside it, and fails with the new `SyncOutPathError` rather than skipping the file. Separately, for every provider, the `git fetch origin` Sandcastle runs when it reuses a worktree (and every other git command it runs on the host) could be made to run a program the repo chose, through a remote helper URL or a program planted on a `PATH` entry inside the repo or relative to it. Host git now ignores those `PATH` entries, runs `git` by absolute path, and only allows the `file`, `git`, `http`, `https` and `ssh` transports unless you set `GIT_ALLOW_PROTOCOL` yourself. Bind-mount providers (`docker()`, `podman()`) were not affected by the sync-out issue. - 5c472c8: Host-side git calls no longer resolve each `PATH` entry one after another before running. The check now resolves them concurrently. On WSL, where `PATH` carries dozens of slow `/mnt/c` entries, this saves about 100ms per git call, which adds up to seconds across a run's sync steps. - 4ee20c4: Stop a host hook's whole process tree when it times out or is aborted. Before, `run()` rejected with "Host hook '…' timed out" but the hook (and anything it started, such as `sleep` in `sleep 15; echo late > f`) kept running and wrote its side effects after the run was over. A `copyToWorktree` copy that times out now kills its `cp` too. - d9b6573: Validate timeout options up front: `idleTimeoutSeconds`, `completionTimeoutSeconds` and every `timeouts.*Ms` key now reject zero, negative or `NaN` values with an error naming the option, before any worktree or sandbox is created. Error messages no longer point to CLI flags that don't exist: the idle-timeout error names the `idleTimeoutSeconds` option (not `--idle-timeout`), and passing both prompt sources says `prompt` and `promptFile` (not `--prompt`/`--prompt-file`). - e0b21ca: `sandcastle init`'s next steps now reflect what init did: the run step uses the detected package manager (`pnpm run sandcastle`, `yarn run sandcastle`, `bun run sandcastle`), the zod step is skipped once zod is installed or already declared, and the `onSandboxReady` note names the detected install command. - d372b85: Without a TTY, `sandcastle init` now checks every flag it would prompt for (including `--build-image` and `--install-template-deps`) before writing anything, and names all the missing flags in one error. Before, a missing `--build-image` failed only after `.sandcastle/` had been written, leaving a partial scaffold that blocked a rerun. - 714d033: `sandcastle init` now scaffolds a project consistent with the options it was given. `--image-name` is written into the scaffolded main file (`docker({ imageName })` / `podman({ imageName })`), so the first run uses the image init built rather than the default-named one; the "build later" hint and the custom tracker's setup doc include it too. The opencode and copilot Dockerfiles no longer carry a literal `${SANDBOX_REPO_DIR}` in their comments. `init --agent copilot` declares `COPILOT_GITHUB_TOKEN` instead of `GITHUB_TOKEN`, which the github-issues tracker's `GH_TOKEN` would otherwise shadow. - df7dd0d: Fix merge-to-head runs naming two different temp branches. `run()` and `interactive()` now create the worktree on the same temp branch they show in the "Started on branch" banner, the log filename, the run summary and `{{SOURCE_BRANCH}}`, instead of generating a second name. - 185c33f: merge-to-head no longer leaves the host in a bad state when something fails. A failed `run()` deletes its temp branch unless the agent left commits on it (then it's kept, with a message on how to merge or discard it). A failed merge back is aborted, so the host branch is unchanged and the suggested `git merge <temp>` retry works, and the error now includes what git said. A merge-to-head `createWorktree()` deletes its temp branch on `close()` once its commits are on another branch. - 0e508a3: The exported `OutputDefinition` type is now `OutputObjectDefinition<unknown> | OutputStringDefinition` instead of using `any`. Every `Output.object(...)` value is still assignable to it. Code that reads `.schema` off a plain `OutputDefinition` now gets `unknown` output instead of `any`. - b7ab23f: Document that `pi()` without `thinking` uses pi's own default (`medium`), which some models reject (e.g. `anthropic/claude-haiku-5-5` with pi 0.73.1), and that `{ thinking: "off" }` fixes it. - 996dc0a: Fix `r.fork()` with the `pi()` agent: it now passes `--fork <id>` instead of `--session <id>`, so the fork runs under a new session id and leaves the parent's session file untouched. Before, the fork resumed the parent in place, returned the parent's id, and appended to its JSONL. - 4b22950: Show pi's tool calls in the run log again. Pi names its built-in tools in lowercase (`bash`), which the parser's case-sensitive allowlist dropped, so no `Bash(...)` line appeared and the prose either side of a tool call ran together. - 38d4258: Fix `IterationResult.sessionFilePath` for pi: it is now the captured session JSONL on the host, as documented, instead of the sessions directory that holds it. - 4406dbc: `podman()` now removes its container straight away on teardown (`podman rm -f --time 0`). Before, an interrupted run (SIGINT/SIGTERM) could leave the container stuck in `Stopping`, and every normal teardown waited out podman's 10-second stop timeout. - f45a1e6: The README leads with the native sandboxes, `bwrap()` and `seatbelt()`, in Prerequisites, Quick start and Sandbox Providers, with Docker and Podman second. A new Containment section says what a native sandbox protects against and what it doesn't (kernel escapes, host localhost, process listing and detached processes on macOS), and new notes cover Windows through WSL2, the Ubuntu 24.04+ user-namespace fix, logging in through env, `sudo: true` hooks, `interactive()`, and agents' own sandboxes. - 462f97b: `RunResult.resume()` and `.fork()` no longer inherit `output` from a structured-output run. Before, the follow-up re-ran the tag check against its new prompt and rejected with `output tag <…> not found in the resolved prompt` unless the prompt repeated the tag. Pass `output` to the follow-up to get structured output from it. - de312b3: Fix `resume()` and `fork()` rejecting with "promptArgs is only supported with promptFile" after a `promptFile` + `promptArgs` run. The follow-up prompt is inline, so it no longer inherits the original run's `promptArgs`. This covers `run()` and `sandbox.run()` (including a worktree's sandbox). - cbc2612: `run()` no longer keeps the host process alive after an abort or timeout: agent output that arrives after the agent invocation has settled no longer restarts the idle-timeout and "Agent idle for N minutes" timers. - 6e20df1: `run()` now keeps its worktree when interrupted, as the `signal` docs say. Aborting via `signal` no longer removes a clean worktree; it prints where the worktree is kept. On SIGINT/SIGTERM, `run()` now prints the kept worktree's path and cleanup command, as `createSandbox()` already did, instead of leaving it behind silently. - 3afc1fc: `sudo: true` sandbox hooks now run the whole command as root. On `docker` and `podman` they run as the container's root user (`exec --user 0:0`), so they work on the image `sandcastle init` scaffolds, which has no `sudo`. On `daytona` the command is wrapped in `sudo sh -c`, so a compound command (`a && b`) is elevated as a whole, not just its first part. `sandcastle docker remove-image` and `sandcastle podman remove-image` on a missing image now say the image does not exist, instead of asking whether the engine is running. - 044d842: The `Sandbox` handle from `createSandbox()` and `worktree.createSandbox()` now exposes `sandboxId`, the provider's id for the sandbox, so a process that supervises sandboxes from outside (a run registry, a kill step for stuck runs) can inspect or remove it with the provider's own tools. `docker()` and `podman()` set it to the container name (`docker rm -f <sandboxId>`), `vercel()` and `daytona()` to the vendor's sandbox id. It is `undefined` for `noSandbox()`, `bwrap()` and `seatbelt()`, which have nothing outside the process to address. Custom providers can set `sandboxId` on their bind-mount or isolated handle. - b5aaa29: Stdout logging no longer breaks streamed agent text mid-word across lines. `ClackDisplay` now buffers text chunks into whole lines and flushes any partial line before the next tool call or status line, and at the end of the run. - e9bd882: Fix a temp-dir leak on Windows: the `sandcastle-git-*` directory holding a worktree's corrected `.git` file is now removed when the sandbox closes, or fails to start.

  3. v0.12.0 GitHub ↗
    原版更新说明

    ### Minor Changes - 1e15922: Bump default Claude Code model from `claude-opus-4-7` to `claude-opus-4-8`. The new default applies to the `DEFAULT_MODEL` constant, the `claude-code` agent entry surfaced by `sandcastle init`, and the scaffolded templates (`blank`, `parallel-planner`, `parallel-planner-with-review`). Passing an explicit model to `claudeCode(...)` is unaffected. - 0f577a4: Add `sandbox.exec(command, options?)` to the `Sandbox` handle returned by `createSandbox()` (and by `worktree.createSandbox()`). The method delegates to the provider handle's `exec()` and returns the full `ExecResult` — non-zero `exitCode` is surfaced, not thrown — so harnesses can run shell commands (tests, lints, custom verification gates) directly in the same warm sandbox between `run()` calls without reaching for the underlying provider handle. `cwd` defaults to the sandbox repo path so behavior is consistent across providers; pass `cwd` to override. ### Patch Changes - c505d49: Fix file-mode logging so streamed agent text flows as contiguous prose instead of one chunk per line. Added a dedicated `textChunk` streaming method to the display service (raw, no implied newline in file mode) and pointed the text-delta buffer at it, leaving the line-oriented `text()` for discrete entries like context-window summaries. Structured entries (tool calls, status, summaries) still always begin on their own line, even when they immediately follow a mid-line streamed chunk.

  4. v0.10.0 GitHub ↗
    原版更新说明

    ### Minor Changes - e445b70: Add `verbose` option to the `logging` configuration on `run()`, `createSandbox().run()`, and `createWorktree().run()`. When set to `true`: - In file mode (`{ type: "file", path, verbose: true }`), every raw stdout line the agent emits is appended verbatim to the same log file at `path` in real time, interleaved with the human-readable log output. - In stdout/terminal mode (`{ type: "stdout", verbose: true }`), raw lines are written to `process.stdout`. Includes lines the provider's stream parser would otherwise drop (e.g. tool-use blocks for unrecognised tools) — exactly what's needed to debug a stuck or unexpectedly silent agent. A new `{ type: "raw"; line; iteration; timestamp }` variant is also surfaced through `onAgentStreamEvent`, so callers forwarding to external observability systems get every raw line too.

  5. v0.9.0 GitHub ↗
    原版更新说明

    ### Minor Changes - 47184de: Capture Claude Code subagent / workflow session transcripts to the host alongside the main session. Previously only the main `<sessionId>.jsonl` was copied off the sandbox; transcripts written by the `Agent` tool and the `Workflow` tool under `<sessionId>/subagents/agent-*.jsonl` were lost on teardown. They are now captured with the same sandbox→host `cwd` rewrite. Failure to capture an individual subagent transcript is best-effort and logs a warning; the main session capture remains fatal on failure. ### Patch Changes - 86aec83: `sandcastle init` now scaffolds `CLAUDE_CODE_OAUTH_TOKEN=` (with a commented `ANTHROPIC_API_KEY=` fallback) for the Claude Code agent, and the next-steps copy points users at `claude setup-token` instead of the closed issue #191. - 03dcc25: Guard `substitutePromptArgs` against `undefined`/`null` values in `promptArgs`. Previously, a present-but-nullish value (e.g. `{ TITLE: undefined }` from an orchestrator's `JSON.parse` output) bypassed the existence check and crashed with an unguarded `TypeError` on `.toString()`. Now surfaces a clean `PromptError` naming the offending key. `findMissingPromptArgKeys` also treats present-but-nullish values as missing, so the interactive prompt-fill flow asks the user to supply the value rather than failing through.

此处仅展示最近 5 个版本。 在原站查看完整版本历史 ↗

当前收录版本

0.0.1

核对来源版本 ↗

安全与评测信息

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

场景价值65/100

亮点

  • 提供预发布检查功能,帮助确保变更集符合规范
  • 面向开发者,解决发布前的质量控制需求
触发精准75/100

亮点

  • 描述简洁明了,核心意图清晰
结构规范60/100

待提升项

  • 缺少步骤划分和示例 原报告严重程度:轻微

    Skill内容列出了检查要点,但缺少明确的Phase/步骤划分、出口条件说明以及端到端的完整示例。

    改进建议:建议添加清晰的步骤划分(如Phase 1: 检查单个变更集, Phase 2: 检查变更集分组等),并提供一个完整的示例说明如何执行这些检查。

亮点

  • frontmatter完整,列出了关键的检查要点
执行可靠55/100

待提升项

  • 执行方式不明,异常处理缺失 原报告严重程度:重大

    Skill描述了一系列检查项,但未明确说明这些检查是如何执行的(自动脚本还是人工审查),也未提及如何处理检查失败的情况或覆盖主要异常。不可逆操作(提交更改)没有明确的确认机制描述。

    改进建议:建议明确说明检查的执行方式(例如,提供一个脚本或详细说明人工审查流程),并添加异常处理逻辑和提交前的确认机制。

证据可验 (前四项均值)64/100

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

100 / 100 · skillpi-20261123-no-r3-v1

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

来源文档未说明。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。