@anyswarm/core 0.5.0 → 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +1 -1
- package/README.md +21 -13
- package/deploy/worker/Dockerfile +12 -4
- package/dist/deploy/worker/Dockerfile +12 -4
- package/dist/examples/README.md +35 -12
- package/dist/examples/authoring/README.md +24 -0
- package/dist/examples/authoring/business.d.ts +2 -0
- package/dist/examples/authoring/business.js +4 -0
- package/dist/examples/authoring/config.d.ts +5 -0
- package/dist/examples/authoring/config.js +2 -0
- package/dist/examples/authoring/eject.json +5 -0
- package/dist/examples/authoring/harness.d.ts +4 -0
- package/dist/examples/authoring/harness.js +19 -0
- package/dist/examples/autoresearch/README.md +40 -0
- package/dist/examples/autoresearch/REQUIREMENTS.zh.md +11 -0
- package/dist/examples/autoresearch/config.d.ts +51 -0
- package/dist/examples/autoresearch/config.js +57 -0
- package/dist/examples/autoresearch/demo.d.ts +11 -0
- package/dist/examples/autoresearch/demo.js +52 -0
- package/dist/examples/autoresearch/eject.json +17 -0
- package/dist/examples/autoresearch/frontiercs2-config.d.ts +2 -0
- package/dist/examples/autoresearch/frontiercs2-config.js +3 -0
- package/dist/examples/autoresearch/frontiercs2.d.ts +87 -0
- package/dist/examples/autoresearch/frontiercs2.js +211 -0
- package/dist/examples/autoresearch/prepare-demo.d.ts +1 -0
- package/dist/examples/autoresearch/prepare-demo.js +15 -0
- package/dist/examples/autoresearch/prepare.d.ts +95 -0
- package/dist/examples/autoresearch/prepare.js +257 -0
- package/dist/examples/autoresearch/process.d.ts +13 -0
- package/dist/examples/autoresearch/process.js +48 -0
- package/dist/examples/autoresearch/project.d.ts +21 -0
- package/dist/examples/autoresearch/project.js +392 -0
- package/dist/examples/autoresearch/research-service.d.ts +106 -0
- package/dist/examples/autoresearch/research-service.js +255 -0
- package/dist/examples/code/README.md +33 -0
- package/dist/examples/code/REQUIREMENTS.zh.md +11 -0
- package/dist/examples/code/candidate.d.ts +19 -0
- package/dist/examples/code/candidate.js +80 -0
- package/dist/examples/code/config.d.ts +32 -0
- package/dist/examples/code/config.js +18 -0
- package/dist/examples/code/eject.json +5 -0
- package/dist/examples/code/project.d.ts +3 -0
- package/dist/examples/code/project.js +605 -0
- package/dist/examples/code/prompts.d.ts +5 -0
- package/dist/examples/code/prompts.js +12 -0
- package/dist/examples/code/verification.d.ts +19 -0
- package/dist/examples/code/verification.js +268 -0
- package/dist/examples/code/worktree.d.ts +17 -0
- package/dist/examples/code/worktree.js +233 -0
- package/dist/examples/harness-session/README.md +3 -6
- package/dist/examples/lead-worker/harness/dynamic-scheduler.d.ts +2 -1
- package/dist/examples/lead-worker/harness/dynamic-scheduler.js +5 -2
- package/dist/examples/lead-worker/harness/index.d.ts +60 -0
- package/dist/examples/lead-worker/harness/index.js +77 -6
- package/dist/examples/lead-worker/project.js +2 -2
- package/dist/examples/lead-worker/services/board.d.ts +5 -0
- package/dist/examples/lead-worker/services/board.js +19 -1
- package/dist/examples/messages/README.md +5 -5
- package/dist/examples/messages/handoff.d.ts +2 -0
- package/dist/examples/messages/handoff.js +5 -1
- package/dist/examples/messages/project.js +52 -2
- package/dist/examples/notes/README.md +13 -18
- package/dist/examples/notes/project.js +67 -6
- package/dist/examples/peermesh/harness/router.js +3 -1
- package/dist/examples/peermesh/harness/team.d.ts +8 -0
- package/dist/examples/peermesh/harness/team.js +13 -0
- package/dist/examples/peermesh/project.js +22 -4
- package/dist/examples/services/agent-control/README.md +3 -3
- package/dist/examples/services/mathlib-search/Dockerfile +4 -2
- package/dist/examples/services/mathlib-search/README.md +1 -1
- package/dist/examples/services/mcp-managed/README.md +2 -2
- package/dist/examples/services/persistent-board/README.md +16 -3
- package/dist/examples/services/persistent-board/business.d.ts +7 -0
- package/dist/examples/services/persistent-board/business.js +7 -0
- package/dist/examples/services/persistent-board/index.js +10 -0
- package/dist/examples/services/persistent-board/live.d.ts +3 -0
- package/dist/examples/services/persistent-board/live.js +58 -0
- package/dist/examples/subagents/README.md +5 -5
- package/dist/examples/subagents/business.js +3 -1
- package/dist/examples/subagents/config.js +3 -3
- package/dist/examples/subagents/harness/controller.d.ts +15 -0
- package/dist/examples/subagents/harness/controller.js +181 -32
- package/dist/examples/subagents/project.d.ts +2 -0
- package/dist/examples/subagents/project.js +43 -34
- package/dist/examples/subagents/prompts/prompts.d.ts +1 -0
- package/dist/examples/subagents/prompts/prompts.js +3 -0
- package/dist/examples/subagents/services/collaboration-service.d.ts +3 -2
- package/dist/examples/subagents/services/collaboration-service.js +14 -2
- package/dist/examples/substrate/README.md +2 -2
- package/dist/examples/substrate/harness/index.d.ts +1 -1
- package/dist/examples/substrate/harness/index.js +77 -12
- package/dist/examples/substrate/project.js +4 -1
- package/dist/examples/super/README.md +52 -0
- package/dist/examples/super/actions.d.ts +95 -0
- package/dist/examples/super/actions.js +230 -0
- package/dist/examples/super/artifact.d.ts +4 -0
- package/dist/examples/super/artifact.js +51 -0
- package/dist/examples/super/config.d.ts +80 -0
- package/dist/examples/super/config.js +83 -0
- package/dist/examples/super/coordinator.d.ts +33 -0
- package/dist/examples/super/coordinator.js +151 -0
- package/dist/examples/super/daemon.d.ts +11 -0
- package/dist/examples/super/daemon.js +109 -0
- package/dist/examples/super/decisions.d.ts +8 -0
- package/dist/examples/super/decisions.js +52 -0
- package/dist/examples/super/eject.json +5 -0
- package/dist/examples/super/execution.d.ts +11 -0
- package/dist/examples/super/execution.js +136 -0
- package/dist/examples/super/github.d.ts +62 -0
- package/dist/examples/super/github.js +269 -0
- package/dist/examples/super/inbox.d.ts +162 -0
- package/dist/examples/super/inbox.js +284 -0
- package/dist/examples/super/location.d.ts +5 -0
- package/dist/examples/super/location.js +64 -0
- package/dist/examples/super/operator.d.ts +1 -0
- package/dist/examples/super/operator.js +31 -0
- package/dist/examples/super/outbox.d.ts +5 -0
- package/dist/examples/super/outbox.js +103 -0
- package/dist/examples/super/project.d.ts +4 -0
- package/dist/examples/super/project.js +251 -0
- package/dist/examples/super/prompts.d.ts +3 -0
- package/dist/examples/super/prompts.js +25 -0
- package/dist/examples/taskpool/deploy/service-hosts/Dockerfile +4 -2
- package/dist/examples/taskpool/harness/controller.d.ts +35 -6
- package/dist/examples/taskpool/harness/controller.js +73 -7
- package/dist/examples/taskpool/project.js +18 -2
- package/dist/scripts/anyswarm-arguments.d.ts +18 -6
- package/dist/scripts/anyswarm-arguments.js +88 -52
- package/dist/scripts/anyswarm-author.d.ts +5 -0
- package/dist/scripts/anyswarm-author.js +24 -0
- package/dist/scripts/anyswarm-eject.d.ts +11 -0
- package/dist/scripts/anyswarm-eject.js +164 -0
- package/dist/scripts/anyswarm-harnesses.d.ts +1 -0
- package/dist/scripts/anyswarm-harnesses.js +10 -0
- package/dist/scripts/anyswarm-installation.d.ts +7 -40
- package/dist/scripts/anyswarm-installation.js +17 -285
- package/dist/scripts/anyswarm-launch.d.ts +7 -0
- package/dist/scripts/anyswarm-launch.js +37 -0
- package/dist/scripts/anyswarm-progress.d.ts +6 -0
- package/dist/scripts/anyswarm-progress.js +102 -0
- package/dist/scripts/anyswarm-project.d.ts +3 -1
- package/dist/scripts/anyswarm-project.js +49 -35
- package/dist/scripts/anyswarm-source-runner.d.ts +1 -0
- package/dist/scripts/anyswarm-source-runner.js +200 -0
- package/dist/scripts/anyswarm.js +28 -3
- package/dist/scripts/build-provenance.json +1 -0
- package/dist/scripts/build.js +7 -1
- package/dist/scripts/generate-architecture-api.js +2 -0
- package/dist/scripts/generate-architecture-prompts.js +24 -2
- package/dist/scripts/local-environment.d.ts +13 -2
- package/dist/scripts/local-environment.js +111 -28
- package/dist/scripts/local-setup-smoke.js +3 -2
- package/dist/scripts/local-setup-worker.d.ts +1 -1
- package/dist/scripts/local-setup-worker.js +15 -6
- package/dist/scripts/local-setup.d.ts +5 -2
- package/dist/scripts/local-setup.js +167 -79
- package/dist/scripts/opensandbox-agent-worker.js +2 -2
- package/dist/scripts/pack-release.d.ts +1 -0
- package/dist/scripts/pack-release.js +66 -0
- package/dist/scripts/pi-session-bridge.js +11 -3
- package/dist/scripts/run-harness.js +3 -1
- package/dist/scripts/setup-bootstrap.js +43 -6
- package/dist/src/core/allocation-ledger.js +4 -3
- package/dist/src/core/host-identity.d.ts +2 -0
- package/dist/src/core/host-identity.js +11 -0
- package/dist/src/core/index.d.ts +4 -2
- package/dist/src/core/index.js +12 -4
- package/dist/src/core/mcp-service.js +2 -2
- package/dist/src/core/runtime-management.d.ts +6 -0
- package/dist/src/core/runtime-management.js +24 -0
- package/dist/src/core/sandbox/executor-driver.d.ts +4 -2
- package/dist/src/core/sandbox/executor-driver.js +12 -14
- package/dist/src/core/sandbox/local-executor.d.ts +13 -1
- package/dist/src/core/sandbox/local-executor.js +69 -19
- package/dist/src/core/sandbox/local-worker.js +32 -21
- package/dist/src/core/sandbox/opensandbox-backend.d.ts +2 -0
- package/dist/src/core/sandbox/opensandbox-backend.js +36 -11
- package/dist/src/core/sandbox/sandbox-connection.d.ts +2 -0
- package/dist/src/core/sandbox/sandbox-connection.js +14 -6
- package/dist/src/core/service-live-state.d.ts +14 -0
- package/dist/src/core/service-live-state.js +161 -0
- package/dist/src/core/service-observation-types.d.ts +21 -1
- package/dist/src/core/service-process.d.ts +1 -1
- package/dist/src/core/service-process.js +45 -4
- package/dist/src/core/service-types.d.ts +5 -1
- package/dist/src/core/services.d.ts +1 -1
- package/dist/src/core/services.js +8 -3
- package/dist/src/core/types.d.ts +3 -0
- package/dist/src/core/worker-image.js +3 -3
- package/dist/src/harness/harness-session-types.d.ts +10 -0
- package/dist/src/harness/harness-session.js +42 -5
- package/dist/src/harness/project-harness.d.ts +14 -1
- package/dist/src/harness/project-harness.js +38 -12
- package/dist/src/harness/project-input.js +81 -15
- package/dist/src/harness/project-rpc-client.d.ts +1 -0
- package/dist/src/harness/project-rpc-client.js +5 -0
- package/dist/src/harness/project-rpc.d.ts +8 -2
- package/dist/src/harness/project-rpc.js +31 -7
- package/dist/src/harness/project-runtime.js +6 -2
- package/dist/src/harness/typescript-loader.d.ts +2 -0
- package/dist/src/harness/typescript-loader.js +41 -0
- package/dist/src/trace-viewer/public/app.js +6 -5
- package/dist/src/trace-viewer/reader.mjs +42 -2
- package/docs/INDEX.md +5 -2
- package/docs/architecture/00-overview.md +1 -1
- package/docs/architecture/01-agent-core.md +1 -1
- package/docs/architecture/04-services.md +1 -1
- package/docs/architecture/06-observability-experiments.md +1 -1
- package/docs/architecture/07-run-configuration.md +38 -18
- package/docs/architecture/08-prompts.md +22 -0
- package/docs/architecture/10-service-api-reference.md +53 -18
- package/docs/architecture/11-storage-reference.md +18 -1
- package/docs/architecture/12-code-coverage.md +152 -89
- package/docs/architecture/15-core-runtime.md +8 -0
- package/docs/architecture/16-pi-opensandbox-backend.md +5 -5
- package/docs/architecture/17-harness-reporting.md +1 -1
- package/docs/architecture/19-substrate-harness.md +28 -1
- package/docs/architecture/20-lead-worker-harness.md +34 -1
- package/docs/architecture/22-website.md +5 -6
- package/docs/architecture/23-project-harness.md +152 -8
- package/docs/architecture/24-runtime-recovery.md +10 -3
- package/docs/architecture/26-code.md +54 -0
- package/docs/architecture/27-personal.md +58 -0
- package/docs/architecture/28-autoresearch.md +43 -0
- package/docs/architecture/INDEX.md +3 -0
- package/docs/architecture/prompts/08-lead-worker-harness.md +4 -2
- package/docs/architecture/prompts/08-subagents-harness.md +21 -0
- package/docs/architecture/prompts/21-personal.md +44 -0
- package/docs/architecture/prompts/22-autoresearch.md +63 -0
- package/docs/architecture/prompts/26-code.md +55 -0
- package/docs/architecture/prompts/source-manifest.json +152 -33
- package/docs/architecture/source-map.json +473 -25
- package/docs/designs/core-harness/01-core.md +2 -2
- package/docs/designs/core-harness/06-project-harness.md +13 -2
- package/docs/designs/core-harness/README.md +7 -2
- package/docs/en/agents.md +1 -1
- package/docs/en/build-your-harness.md +3 -5
- package/docs/en/changelog.md +20 -4
- package/docs/en/first-harness.md +9 -12
- package/docs/en/harnesses/lead-worker.md +1 -1
- package/docs/en/harnesses/peermesh.md +2 -2
- package/docs/en/harnesses/subagents.md +2 -2
- package/docs/en/harnesses/substrate.md +4 -4
- package/docs/en/harnesses/taskpool.md +2 -2
- package/docs/en/latest.md +14 -121
- package/docs/en/overview.md +1 -1
- package/docs/en/quickstart.md +42 -39
- package/docs/en/reference/api.md +14 -4
- package/docs/en/reference/cli.md +53 -47
- package/docs/en/runtime.md +2 -2
- package/docs/en/sandbox.md +3 -3
- package/docs/en/services.md +4 -0
- package/docs/operations/trace-viewer.md +1 -1
- package/docs/workflows/development.md +28 -21
- package/docs/workflows/release-and-docs-versioning.md +77 -0
- package/docs/workflows/release-cli-acceptance.md +85 -0
- package/docs/zh/agents.md +1 -1
- package/docs/zh/build-your-harness.md +3 -5
- package/docs/zh/changelog.md +20 -4
- package/docs/zh/first-harness.md +9 -12
- package/docs/zh/harnesses/lead-worker.md +1 -1
- package/docs/zh/harnesses/peermesh.md +2 -2
- package/docs/zh/harnesses/subagents.md +2 -2
- package/docs/zh/harnesses/substrate.md +4 -4
- package/docs/zh/harnesses/taskpool.md +2 -2
- package/docs/zh/latest.md +15 -122
- package/docs/zh/overview.md +1 -1
- package/docs/zh/quickstart.md +42 -39
- package/docs/zh/reference/api.md +14 -4
- package/docs/zh/reference/cli.md +24 -40
- package/docs/zh/runtime.md +2 -2
- package/docs/zh/sandbox.md +3 -3
- package/docs/zh/services.md +4 -0
- package/examples/README.md +35 -12
- package/examples/authoring/README.md +24 -0
- package/examples/authoring/business.ts +4 -0
- package/examples/authoring/config.ts +2 -0
- package/examples/authoring/eject.json +5 -0
- package/examples/authoring/harness.ts +21 -0
- package/examples/autoresearch/README.md +40 -0
- package/examples/autoresearch/REQUIREMENTS.zh.md +11 -0
- package/examples/autoresearch/config.ts +90 -0
- package/examples/autoresearch/demo.ts +55 -0
- package/examples/autoresearch/eject.json +17 -0
- package/examples/autoresearch/frontiercs2-config.ts +4 -0
- package/examples/autoresearch/frontiercs2.ts +237 -0
- package/examples/autoresearch/prepare-demo.ts +15 -0
- package/examples/autoresearch/prepare.ts +267 -0
- package/examples/autoresearch/process.ts +50 -0
- package/examples/autoresearch/project.ts +380 -0
- package/examples/autoresearch/research-service.ts +302 -0
- package/examples/code/README.md +33 -0
- package/examples/code/REQUIREMENTS.zh.md +11 -0
- package/examples/code/candidate.ts +89 -0
- package/examples/code/config.ts +19 -0
- package/examples/code/eject.json +5 -0
- package/examples/code/project.ts +581 -0
- package/examples/code/prompts.ts +16 -0
- package/examples/code/verification.ts +239 -0
- package/examples/code/worktree.ts +188 -0
- package/examples/harness-session/README.md +3 -6
- package/examples/lead-worker/harness/dynamic-scheduler.ts +6 -3
- package/examples/lead-worker/harness/index.ts +61 -6
- package/examples/lead-worker/project.ts +2 -2
- package/examples/lead-worker/services/board.ts +14 -1
- package/examples/messages/README.md +5 -5
- package/examples/messages/handoff.ts +6 -2
- package/examples/messages/project.ts +47 -2
- package/examples/notes/README.md +13 -18
- package/examples/notes/project.ts +57 -9
- package/examples/peermesh/harness/router.ts +2 -2
- package/examples/peermesh/harness/team.ts +11 -0
- package/examples/peermesh/project.ts +19 -4
- package/examples/services/agent-control/README.md +3 -3
- package/examples/services/mathlib-search/Dockerfile +4 -2
- package/examples/services/mathlib-search/README.md +1 -1
- package/examples/services/mcp-managed/README.md +2 -2
- package/examples/services/persistent-board/README.md +16 -3
- package/examples/services/persistent-board/business.ts +10 -0
- package/examples/services/persistent-board/index.ts +10 -0
- package/examples/services/persistent-board/live.ts +54 -0
- package/examples/subagents/README.md +5 -5
- package/examples/subagents/business.ts +3 -1
- package/examples/subagents/config.ts +4 -3
- package/examples/subagents/harness/controller.ts +161 -29
- package/examples/subagents/project.ts +47 -33
- package/examples/subagents/prompts/prompts.ts +4 -0
- package/examples/subagents/services/collaboration-service.ts +14 -2
- package/examples/substrate/README.md +2 -2
- package/examples/substrate/harness/index.ts +67 -11
- package/examples/substrate/project.ts +5 -1
- package/examples/super/README.md +52 -0
- package/examples/super/actions.ts +196 -0
- package/examples/super/artifact.ts +56 -0
- package/examples/super/config.ts +95 -0
- package/examples/super/coordinator.ts +158 -0
- package/examples/super/daemon.ts +84 -0
- package/examples/super/decisions.ts +46 -0
- package/examples/super/eject.json +5 -0
- package/examples/super/execution.ts +131 -0
- package/examples/super/github.ts +242 -0
- package/examples/super/inbox.ts +306 -0
- package/examples/super/location.ts +54 -0
- package/examples/super/operator.ts +28 -0
- package/examples/super/outbox.ts +97 -0
- package/examples/super/project.ts +225 -0
- package/examples/super/prompts.ts +27 -0
- package/examples/taskpool/deploy/service-hosts/Dockerfile +4 -2
- package/examples/taskpool/harness/controller.ts +59 -7
- package/examples/taskpool/project.ts +18 -2
- package/npm-shrinkwrap.development.json +700 -0
- package/npm-shrinkwrap.json +95 -1969
- package/package.development.json +88 -0
- package/package.json +11 -8
- package/scripts/anyswarm-arguments.ts +91 -54
- package/scripts/anyswarm-author.ts +25 -0
- package/scripts/anyswarm-eject.ts +145 -0
- package/scripts/anyswarm-harnesses.ts +10 -0
- package/scripts/anyswarm-installation.ts +18 -288
- package/scripts/anyswarm-launch.ts +36 -0
- package/scripts/anyswarm-progress.ts +95 -0
- package/scripts/anyswarm-project.ts +35 -34
- package/scripts/anyswarm-source-runner.ts +176 -0
- package/scripts/anyswarm.ts +24 -3
- package/scripts/build.ts +8 -1
- package/scripts/generate-architecture-api.ts +2 -0
- package/scripts/generate-architecture-prompts.ts +35 -2
- package/scripts/local-environment.ts +117 -28
- package/scripts/local-setup-smoke.ts +3 -2
- package/scripts/local-setup-worker.ts +17 -7
- package/scripts/local-setup.ts +166 -73
- package/scripts/opensandbox-agent-worker.ts +2 -2
- package/scripts/pack-release.ts +70 -0
- package/scripts/pi-session-bridge.ts +10 -2
- package/scripts/run-harness.ts +3 -1
- package/scripts/setup-bootstrap.ts +41 -6
- package/src/core/allocation-ledger.ts +5 -3
- package/src/core/host-identity.ts +11 -0
- package/src/core/index.ts +12 -6
- package/src/core/mcp-service.ts +2 -2
- package/src/core/runtime-management.ts +22 -0
- package/src/core/sandbox/executor-driver.ts +15 -18
- package/src/core/sandbox/local-executor.ts +65 -19
- package/src/core/sandbox/local-worker.ts +29 -21
- package/src/core/sandbox/opensandbox-backend.ts +36 -11
- package/src/core/sandbox/sandbox-connection.ts +14 -5
- package/src/core/service-live-state.ts +156 -0
- package/src/core/service-observation-types.ts +23 -1
- package/src/core/service-process.ts +36 -3
- package/src/core/service-types.ts +3 -1
- package/src/core/services.ts +8 -3
- package/src/core/types.ts +3 -0
- package/src/core/worker-image.ts +3 -3
- package/src/harness/harness-session-types.ts +13 -1
- package/src/harness/harness-session.ts +40 -7
- package/src/harness/project-harness.ts +38 -12
- package/src/harness/project-input.ts +73 -15
- package/src/harness/project-rpc-client.ts +5 -0
- package/src/harness/project-rpc.ts +29 -8
- package/src/harness/project-runtime.ts +4 -2
- package/src/harness/typescript-loader.ts +37 -0
- package/src/trace-viewer/public/app.js +6 -5
- package/src/trace-viewer/reader.mjs +42 -2
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
# Release updates and documentation versions
|
|
2
|
+
|
|
3
|
+
Research as of 2026-12-01 against repository revision `40132bd47c0609b4149a106f1b97d83f277dd6d4`.
|
|
4
|
+
|
|
5
|
+
`@anyswarm/core@0.5.0` is the first formally supported release. The previous package's release artifacts stay in GitHub history.
|
|
6
|
+
|
|
7
|
+
## Observed release and website behavior
|
|
8
|
+
|
|
9
|
+
- [Release workflow at the baseline](https://github.com/AnySwarm/anyswarm/blob/40132bd47c0609b4149a106f1b97d83f277dd6d4/.github/workflows/release.yml) accepts stable `vX.Y.Z` tags matching `package.json`. It packs once, tests that archive outside the checkout, verifies an installed First Harness, and uploads checksums and two byte-identical archive names. A tag push publishes those assets as a GitHub Release. A manual workflow dispatch verifies a candidate without publishing it. The npm command is **dry-run only**; the publishing job has no `id-token: write`. Publishing to npm is a separate step.
|
|
10
|
+
- [Website deployment at the baseline](https://github.com/AnySwarm/anyswarm/blob/40132bd47c0609b4149a106f1b97d83f277dd6d4/.github/workflows/deploy-website.yml) runs for relevant main changes and successful tag Release workflows. It checks that a public latest GitHub Release contains the installer archive, then builds the current main checkout. A main-only API change can reach the documentation before the corresponding SDK release.
|
|
11
|
+
- [Top navigation](https://github.com/AnySwarm/anyswarm/blob/40132bd47c0609b4149a106f1b97d83f277dd6d4/website/src/components/TopNav.astro) displays a generic Releases link. [Documentation URL helpers](https://github.com/AnySwarm/anyswarm/blob/40132bd47c0609b4149a106f1b97d83f277dd6d4/website/src/lib/i18n.ts) encode language and page slug.
|
|
12
|
+
|
|
13
|
+
## Version policy
|
|
14
|
+
|
|
15
|
+
“First formal release” is a project support decision. SemVer still treats `0.y.z` as initial development, and reserves the stable public API commitment for `1.0.0`. Published versions must not change. For AnySwarm before 1.0, use `0.5.1` for compatible fixes and `0.6.0` for a new API line. Include migration instructions for incompatible changes. Use `1.0.0` when committing to a stable API contract. [SemVer specification](https://semver.org/spec/v2.0.0.html)
|
|
16
|
+
|
|
17
|
+
## Release procedure
|
|
18
|
+
|
|
19
|
+
1. Prepare one release PR from current main. Update package and lockfile versions, affected examples, Worker compatibility information, README, both languages, and migration notes. Confirm installed examples come from the exact candidate archive. Keep unshipped APIs out of the supported-release guides.
|
|
20
|
+
2. Verify the reviewed head with required Core and website CI. Run the manual Release workflow to verify its package candidate. After approval and merge, the release owner creates the matching stable tag at the approved merged revision under the repository's tag rules.
|
|
21
|
+
3. Wait for the tag Release workflow. Download the **published** GitHub Release archive and `SHA256SUMS`, check the checksum and package name/version, and preserve those bytes as the canonical release candidate. Do not run `npm pack` again to manufacture the npm input.
|
|
22
|
+
4. The tag workflow publishes that exact archive to npm after GitHub publication. To retry the current GitHub Latest release, dispatch the Release workflow from `main` with `publish_npm` enabled. [Release verification](development.md#release-verification)
|
|
23
|
+
5. Poll the public registry for the exact version with a bounded timeout, download its `dist.tarball`, and compare its SHA-256 with the GitHub asset. Verify `dist.integrity`, then install that version by package name in a fresh project and in an isolated global npm prefix. Verify the SDK import, the `anyswarm` executable, install warnings and the production audit. npm scans packages before public availability. If the version is still pending after the verification timeout, resume verification later using the same archive. [npm publish-time scanning](https://github.blog/changelog/2026-07-28-npm-publish-time-malware-scanning-and-dual-use-metadata/)
|
|
24
|
+
6. After the new package is publicly installable, update the bilingual stable guides and version label and verify the Pages deployment. Check npm `latest` and the homepage npm command, and compile the affected examples from the installed SDK. Record the source commit, tag, archive SHA-256, npm version, CI run and deployed Pages revision separately. A GitHub Release, a public npm package and a deployed website are distinct milestones.
|
|
25
|
+
|
|
26
|
+
`npm publish` accepts an existing tarball. The name/version pair cannot be reused, even after unpublishing. Its default distribution tag is `latest`. For maintenance patches on an older line, select a separate dist-tag to preserve the current `latest`. [npm publish reference](https://docs.npmjs.com/cli/v11/commands/npm-publish/)
|
|
27
|
+
|
|
28
|
+
## Trusted Publishing configuration and validation
|
|
29
|
+
|
|
30
|
+
Use GitHub-hosted runners, Node ≥22.14 and npm ≥11.5.1. Bind npm's trusted publisher to `AnySwarm` / `anyswarm` / `release.yml`; the optional environment must match the publishing job. Grant that job `id-token: write`, configure the npm registry, and explicitly allow direct `npm publish` in npm's UI. Verify the setup with the next approved release. New configurations need their first successful OIDC publish within **two days** of creation. Recreate an expired configuration before publishing. Independent `npm dist-tag` changes need their own permission and a supported CLI. [npm Trusted Publishing](https://docs.npmjs.com/trusted-publishers/)
|
|
31
|
+
|
|
32
|
+
## Failure and retry rules
|
|
33
|
+
|
|
34
|
+
Use these recovery steps when GitHub publication, npm publication, or verification fails.
|
|
35
|
+
|
|
36
|
+
| Failure point | Recovery |
|
|
37
|
+
| --- | --- |
|
|
38
|
+
| Verification fails before publication | Fix and review the candidate. Do not claim a release exists. |
|
|
39
|
+
| GitHub Latest exists, npm missing | Rerun the failed npm job or dispatch from `main` with `publish_npm` enabled. The job reuses the public archive and checksum. |
|
|
40
|
+
| npm accepted publication, public registry still pending | Poll within a fixed limit, then report pending. Resume verification later; do not overwrite or increment versions solely for propagation delay. |
|
|
41
|
+
| npm version exists on retry | Download it and compare bytes. If equal, skip publication and resume remaining steps. If different, stop and investigate; never treat matching name/version alone as proof. |
|
|
42
|
+
| Matching npm bytes exist under a different dist-tag | Verify the registry and have an authorized npm maintainer promote the correct version. The release job only grants direct publishing. |
|
|
43
|
+
| npm succeeded, GitHub or Pages failed | Retry finalization/deployment with the same verified package and pinned documentation inputs. Do not republish npm. |
|
|
44
|
+
| Published code is incorrect | Release a new patch or API line with a correction. Do not move the old tag or replace published package bytes. |
|
|
45
|
+
| Older maintenance release finishes later | Keep `latest` on the newest supported line. Serialize promotions and compare semantic versions before changing the dist-tag. |
|
|
46
|
+
|
|
47
|
+
The workflow preserves the original archive across both channels.
|
|
48
|
+
|
|
49
|
+
```text
|
|
50
|
+
protected tag → verify archive → publish GitHub Release → publish same archive to npm
|
|
51
|
+
main dispatch with publish_npm → reuse GitHub Latest archive
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
Keep the GitHub release intact if npm needs a retry. Check the npm registry for
|
|
55
|
+
the published digest and tag before updating the stable version documentation.
|
|
56
|
+
|
|
57
|
+
## Website recommendation
|
|
58
|
+
|
|
59
|
+
For the current single supported API line, display **v0.5.0**. Before publishing a second API line that needs different guides, add a version selector and freeze each released set of docs. Docusaurus documents the snapshot pattern and its maintenance cost. The existing Astro site can use the same pattern. [Docusaurus versioning](https://docusaurus.io/docs/versioning)
|
|
60
|
+
|
|
61
|
+
Proposed routes under the site base.
|
|
62
|
+
|
|
63
|
+
| Route before the configured site base | Meaning |
|
|
64
|
+
| --- | --- |
|
|
65
|
+
| `/docs/<slug>/`, `/zh/docs/<slug>/` | Latest supported released documentation aliases. |
|
|
66
|
+
| `/docs/v0.5.0/<slug>/`, `/zh/docs/v0.5.0/<slug>/` | Frozen exact release snapshot. |
|
|
67
|
+
| `/docs/next/<slug>/`, `/zh/docs/next/<slug>/` | Main documentation, explicitly marked unreleased. |
|
|
68
|
+
|
|
69
|
+
Maintain an explicit release manifest containing package version, immutable package tag/SHA, documentation source SHA and support status. Build each historical route from its pinned documentation revision. The `v0.5.0` tag predates corrections to the npm instructions. Use a reviewed documentation revision compatible with the released package and record both revisions. Publish any correction to a historical snapshot as a tracked documentation revision.
|
|
70
|
+
|
|
71
|
+
Preserve the chosen version in sidebar links, previous/next links, article links, search results and example downloads. Language switching preserves **version and slug**. Version switching preserves **language and slug** when the page exists and goes to the selected version’s overview otherwise. Search uses the selected version by default. The label names the version of the documents being displayed.
|
|
72
|
+
|
|
73
|
+
Group the menu by API line. A compatible patch can share its line’s guides. Keep the exact tag and docs source in the manifest for each release. If a patch needs materially different instructions, publish a snapshot for it. Keep exact version URLs pinned once published.
|
|
74
|
+
|
|
75
|
+
Every Pages deployment must include all retained version routes in its uploaded site artifact. Deploying only the newest snapshot would remove older routes from the deployed site. Preserve sources through Git tags/pinned revisions and build inputs; no repository `archive/` directory is needed. The deployment must gate the stable alias on verified release inputs rather than fetching moving main as its source of released API documentation. [GitHub Pages custom workflow and artifact deployment](https://docs.github.com/en/pages/getting-started-with-github-pages/using-custom-workflows-with-github-pages)
|
|
76
|
+
|
|
77
|
+
To verify the selector, build both languages for two pinned versions. Open old URLs directly, switch languages and versions on shared and removed pages, and check search and example downloads. Deploy a newer version and confirm old routes and content hashes remain available.
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
# Release CLI acceptance
|
|
2
|
+
|
|
3
|
+
Use the exact release archive in a clean Linux VM outside the repository. Record
|
|
4
|
+
the implementation commit, archive SHA-256, OS, Node/npm versions, backend and
|
|
5
|
+
observed outcomes. Keep machine-specific output and credentials out of Git.
|
|
6
|
+
|
|
7
|
+
## Build and check the archive
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
npm ci
|
|
11
|
+
npm run build
|
|
12
|
+
npm run typecheck
|
|
13
|
+
npm run docs:check
|
|
14
|
+
npm test
|
|
15
|
+
npm run pack:release -- /tmp/anyswarm-release
|
|
16
|
+
sha256sum /tmp/anyswarm-release/*.tgz
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
Check the archive member listing for removed terminal scripts and fixtures. Check
|
|
20
|
+
the package manifest and both shipped lockfiles for the removed terminal renderer.
|
|
21
|
+
After installing, verify that the package's installed dependency tree also omits it.
|
|
22
|
+
|
|
23
|
+
## Fresh VM and one-shot Run
|
|
24
|
+
|
|
25
|
+
Provision Node.js 22.19 or later, npm, Git, Docker and a supported Pi or Codex
|
|
26
|
+
installation. Follow [Quickstart](../en/quickstart.md) for host and model
|
|
27
|
+
configuration. Use a new user-owned prefix and an empty AnySwarm config directory.
|
|
28
|
+
|
|
29
|
+
```sh
|
|
30
|
+
export PATH="$HOME/anyswarm-test/bin:$PATH"
|
|
31
|
+
export ANYSWARM_CONFIG_DIR="$HOME/anyswarm-test-config"
|
|
32
|
+
npm install -g --prefix "$HOME/anyswarm-test" /path/to/candidate.tgz
|
|
33
|
+
anyswarm --version
|
|
34
|
+
anyswarm
|
|
35
|
+
anyswarm setup
|
|
36
|
+
anyswarm doctor --smoke
|
|
37
|
+
|
|
38
|
+
mkdir "$HOME/sample-project"
|
|
39
|
+
cd "$HOME/sample-project"
|
|
40
|
+
printf '# AnySwarm release smoke\n' > README.md
|
|
41
|
+
anyswarm --harness subagents --prompt 'Read README.md and report its heading.' --output-dir ./runs
|
|
42
|
+
anyswarm trace --root ./runs --port 8787 --open
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
Check that bare invocation prints three Quickstart commands and exits 0 without
|
|
46
|
+
project side effects. Setup and smoke must confirm actual Sandbox lifecycle,
|
|
47
|
+
Worker, Bridge, file export and deletion. The built-in Run must use a configured
|
|
48
|
+
model, report the expected heading in its saved result, and confirm cleanup. Check
|
|
49
|
+
the terminal for readable milestones, artifact and report paths, and the Trace
|
|
50
|
+
command. Open the Viewer and inspect the actual Run, Agent and exported artifacts.
|
|
51
|
+
Verify that the Run's Sandbox is gone after completion. Replay separately if the
|
|
52
|
+
VM has no browser, using a loopback SSH port forward to the Viewer.
|
|
53
|
+
|
|
54
|
+
## Eject, edit and rerun
|
|
55
|
+
|
|
56
|
+
In an empty directory outside the input project, export the example, install its
|
|
57
|
+
local SDK and run the emitted TypeScript source.
|
|
58
|
+
|
|
59
|
+
```sh
|
|
60
|
+
anyswarm eject example --dir "$HOME/editable-harness"
|
|
61
|
+
cd "$HOME/editable-harness"
|
|
62
|
+
npm install
|
|
63
|
+
npm exec -- anyswarm run ./harness.ts --prompt 'Verify the exported Harness' --output-dir ./runs
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
Verify the SDK archive SHA-256 against `anyswarm-source.json` and check the final
|
|
67
|
+
report for completed work and cleanup. Change the greeting in `business.ts` and
|
|
68
|
+
rerun. The final report must contain the edited greeting. The local start command
|
|
69
|
+
and archive pin must work after the global CLI is upgraded.
|
|
70
|
+
|
|
71
|
+
## Upgrade in place
|
|
72
|
+
|
|
73
|
+
Use a separate prefix and configuration directory. Install the previous release,
|
|
74
|
+
run setup, and save a byte-for-byte copy of the connection settings. Record the
|
|
75
|
+
version and the digest of `opensandbox.json`. Run `anyswarm update` and verify it
|
|
76
|
+
prints the npm command for that prefix and leaves both the version and settings
|
|
77
|
+
intact. Reinstall the newer archive into the same prefix. For a published upgrade,
|
|
78
|
+
run the printed command to install `@anyswarm/core@latest`.
|
|
79
|
+
|
|
80
|
+
Verify the new package version and compare the OpenSandbox configuration
|
|
81
|
+
byte-for-byte before running setup again. Run `anyswarm doctor --smoke` against the
|
|
82
|
+
existing connection and verify Worker export and deletion. A package version may
|
|
83
|
+
require the Worker to be rebuilt. If it does, record the first smoke result and
|
|
84
|
+
follow the CLI's remedy after verifying configuration preservation. Shut down the
|
|
85
|
+
Viewer and remove the disposable VM when verification is complete.
|
package/docs/zh/agents.md
CHANGED
|
@@ -179,7 +179,7 @@ const messages = await runtime.session.getMessages(agent.id, { limit: 50, maxByt
|
|
|
179
179
|
### 订阅会话事件与完整示例
|
|
180
180
|
|
|
181
181
|
- **会话事件流**:在发任务前订阅 `runtime.onEvent()`,会话级事件以 `{ type: 'session', agentId, event }` 推送。流式回复中的 `messageStart`、`textDelta` 和 `messageEnd` 共享同一个 `messageId`(可按消息与内容块增量拼接,收到 `messageEnd` 后用完整消息替换);`toolActivity` 列出当前正在执行的工具调用。会话总用量与当前上下文用量分开统计(分叉继承的历史可能计入会话总量),未配置单价时费用为 `null`。
|
|
182
|
-
- **可运行示例**:仓库自带的 `examples/agent-session.ts` 完整演示了 3 次自动压缩上限策略、`append`/`nextTurn`
|
|
182
|
+
- **可运行示例**:仓库自带的 `examples/agent-session.ts` 完整演示了 3 次自动压缩上限策略、`append`/`nextTurn` 上下文注入以及状态与消息查询。可通过 `anyswarm run ./examples/agent-session.ts /absolute/config.ts worker '你的任务'` 运行(配置模块默认导出完整的 `CreateRuntimeOptions`,工作时限 120 秒、清理时限 30 秒)。
|
|
183
183
|
|
|
184
184
|
---
|
|
185
185
|
|
|
@@ -9,16 +9,15 @@ order: 10
|
|
|
9
9
|
|
|
10
10
|
## 安装示例
|
|
11
11
|
|
|
12
|
-
在空目录中按[第一个 Harness 的安装步骤](first-harness.md#2-安装并连接)
|
|
12
|
+
在空目录中按[第一个 Harness 的安装步骤](first-harness.md#2-安装并连接)安装已校验的源码构建归档,准备 Worker 并配置流式 Responses 端点。从该安装包复制配套 TypeScript 源码。
|
|
13
13
|
|
|
14
14
|
```bash
|
|
15
15
|
sdk=node_modules/@anyswarm/core
|
|
16
16
|
example="$sdk"/examples
|
|
17
17
|
cp "$example"/parallel-swarm/{board.ts,board-service.ts,harness.ts} .
|
|
18
|
-
cp "$example"/first-harness/tsconfig.json .
|
|
19
18
|
```
|
|
20
19
|
|
|
21
|
-
如果已经在其他目录复制过 First Harness,为这个 Harness 另建空目录。SDK
|
|
20
|
+
如果已经在其他目录复制过 First Harness,为这个 Harness 另建空目录。SDK 与示例源码使用同一安装包的版本。编辑当前仓库源码时,先安装与该源码匹配的[候选归档](../../examples/README.md#run-an-example-from-its-directory),再复制其中的示例。
|
|
22
21
|
|
|
23
22
|
## 通过 Service 共享发现
|
|
24
23
|
|
|
@@ -33,10 +32,9 @@ cp "$example"/first-harness/tsconfig.json .
|
|
|
33
32
|
## 运行并检查报告
|
|
34
33
|
|
|
35
34
|
```bash
|
|
36
|
-
./node_modules/.bin/tsc
|
|
37
35
|
mkdir -p input
|
|
38
36
|
printf 'export const cache = new Map<string, string>();\n' > input/cache.ts
|
|
39
|
-
./node_modules/.bin/anyswarm
|
|
37
|
+
./node_modules/.bin/anyswarm run ./harness.ts --cwd ./input \
|
|
40
38
|
--prompt '检查 cache.ts 的资源风险并发布具体发现。' --output-dir ./runs
|
|
41
39
|
./node_modules/.bin/anyswarm trace --root ./runs
|
|
42
40
|
```
|
package/docs/zh/changelog.md
CHANGED
|
@@ -5,16 +5,32 @@ section: 版本与更新
|
|
|
5
5
|
order: 16
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
-
本页同步记录 **AnySwarm**(`@anyswarm/core`)的历次重要变更,与仓库根目录的 [`CHANGELOG.md`](../../CHANGELOG.md)
|
|
8
|
+
本页同步记录 **AnySwarm**(`@anyswarm/core`)的历次重要变更,与仓库根目录的 [`CHANGELOG.md`](../../CHANGELOG.md) 保持一致。当前安装命令见[发行版本](latest.md)。
|
|
9
|
+
|
|
10
|
+
## v0.5.2
|
|
11
|
+
|
|
12
|
+
- 裸命令显示 Quickstart。原终端入口改用 `anyswarm --harness <name> --prompt <text>` 单次执行,或用 `--mode rpc` 做多轮交互。单次运行在终端显示阶段和 Trace 命令。Code 和 Personal 可导出为 SDK 示例。[CLI 参考](reference/cli.md)
|
|
13
|
+
- CLI 统一使用 npm 安装、更新和卸载。官网和快速上手只提供一条 npm 安装命令,`anyswarm update` 会显示当前 prefix 的更新命令。
|
|
14
|
+
- setup 和 doctor 默认走本机 OpenSandbox,自动检测 Docker 与执行器并复用已保存的本机配置。检查远端服务时需显式选择 existing 模式。
|
|
15
|
+
- 宿主机统一使用 `anyswarm`。已有命令和脚本中的 `anys` 改用 `anyswarm`。Worker 镜像继续提供内部命令 `swarm`。旧脚本版可以在清理所属链接后重新用 npm 安装。[升级说明](quickstart.md#更新-cli)
|
|
16
|
+
|
|
17
|
+
## v0.5.1
|
|
18
|
+
|
|
19
|
+
- AutoResearch 使用四名平级 Kimi K3 成员运行 FrontierCS-2 正式任务,在流式终端和实时 Trace 中展示研究活动。支持配置自定义可信评测器和导出 Harness 源码。[CLI 参考](reference/cli.md#autoresearch)。默认 Kimi K3 路线的端到端验收见 [#337](https://github.com/AnySwarm/anyswarm/issues/337)。
|
|
20
|
+
- Personal 可后台接收 GitHub 请求,由 Router 带领 Agent 处理,在流式终端按工作批准 Draft PR。
|
|
21
|
+
- 支持 macOS 原生 setup 和 Docker Desktop,可接入用户选定的 Pi 或 Codex 安装并固定确切版本。
|
|
22
|
+
- 在 Linux 项目目录运行 `anys -u code` 由主 Agent 直接编辑,按需在聊天中委派,并在共享终端查看补丁。用 `anys eject code` 导出应用源码。[CLI 参考](reference/cli.md)。
|
|
23
|
+
- 安装后的 `anys` 与 `anyswarm` 打开同一个流式终端,支持通用 Harness 加载、内联决策和成员控制。`anys run` 直接加载 TypeScript 源码,`anys eject example` 导出可修改的 Harness 与对应 SDK 候选包。[CLI 参考](reference/cli.md)。
|
|
24
|
+
- 官网提供全局 npm 和安装脚本两种 CLI 安装入口,SDK 通过单独的开发者指南安装。公开包的依赖锁只记录运行依赖。[快速上手](quickstart.md#1-安装-anyswarm)。
|
|
9
25
|
|
|
10
26
|
## v0.5.0
|
|
11
27
|
|
|
12
|
-
-
|
|
28
|
+
- SDK 已发布到 npm,包名和版本为 [`@anyswarm/core@0.5.0`](https://www.npmjs.com/package/@anyswarm/core/v/0.5.0)。迁移时更新项目依赖和导入路径。CLI 首次跨包名升级需使用原前缀重跑官方安装器。
|
|
13
29
|
- Service 支持进程内、普通 HTTP、MCP 和外部 CLI 接入。Pi 支持 direct、code、CLI 工具模式。Profile 的 `prompt` 改为 `addedSystemPrompt`,`session.tools` 移至 `tools`。Runtime 管理单实例,Trace Viewer 可查看导出状态。[Service 指南](services.md)。
|
|
14
30
|
|
|
15
31
|
## v0.4.1
|
|
16
32
|
|
|
17
|
-
- SDK
|
|
33
|
+
- v0.4.1 的 SDK 仍可从 [GitHub 发行归档](https://github.com/AnySwarm/anyswarm/releases/tag/v0.4.1)获取,原包名为 `@anyswarm/anyswarm`。v0.4.0 的 CLI 可以通过官方安装器原路径迁移一次。
|
|
18
34
|
|
|
19
35
|
- 新增 `anyswarm update`,原子更新托管 CLI。全局 npm 用户可通过官方安装器切换一次。项目继续独立选择 SDK 依赖。
|
|
20
36
|
- Linux setup 和 SDK 使用选中的本机 Pi 或 Codex 构建 Worker。重复 setup 会复用或恢复自己管理的 OpenSandbox。
|
|
@@ -25,7 +41,7 @@ order: 16
|
|
|
25
41
|
|
|
26
42
|
## v0.4.0
|
|
27
43
|
|
|
28
|
-
- 项目更名为 AnySwarm,并切换 SDK 包名、宿主 CLI 和 Worker 标识。见[迁移说明](latest.md#从-v030-迁移)。
|
|
44
|
+
- 项目更名为 AnySwarm,并切换 SDK 包名、宿主 CLI 和 Worker 标识。见[迁移说明](https://github.com/AnySwarm/anyswarm/blob/v0.5.0/docs/zh/latest.md#从-v030-迁移)。
|
|
29
45
|
|
|
30
46
|
- 自定义 Pi 模型可将 AnySwarm 推理档位映射到供应商的取值。启动和会话配置会拒绝显式指定的不受支持的档位。
|
|
31
47
|
|
package/docs/zh/first-harness.md
CHANGED
|
@@ -9,7 +9,7 @@ order: 9
|
|
|
9
9
|
|
|
10
10
|
## 1. 选择 SDK 版本
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
本教程使用 [AnySwarm v0.5.1](latest.md#v051) 提供的 `anyswarm run`。请从下文安装的同一个 SDK 包复制示例。
|
|
13
13
|
|
|
14
14
|
## 2. 安装并连接
|
|
15
15
|
|
|
@@ -17,12 +17,10 @@ order: 9
|
|
|
17
17
|
|
|
18
18
|
```bash
|
|
19
19
|
npm init -y
|
|
20
|
-
npm
|
|
21
|
-
npm install "${ANYSWARM_SDK_ARCHIVE:-@anyswarm/core@0.5.0}"
|
|
22
|
-
npm install --save-dev typescript @types/node
|
|
20
|
+
npm install @anyswarm/core@0.5.1
|
|
23
21
|
```
|
|
24
22
|
|
|
25
|
-
新建本地 OpenSandbox 时,先按[快速上手](quickstart.md#2-准备-opensandbox-与-worker)安装支持的 Pi,再运行 `./node_modules/.bin/anyswarm setup --mode local --backend pi`。使用已有部署时,[配置其 endpoint、鉴权、回调和 Worker 镜像](
|
|
23
|
+
新建本地 OpenSandbox 时,先按[快速上手](quickstart.md#2-准备-opensandbox-与-worker)安装支持的 Pi,再运行 `./node_modules/.bin/anyswarm setup --mode local --backend pi`。使用已有部署时,[配置其 endpoint、鉴权、回调和 Worker 镜像](sandbox.md),再运行 `./node_modules/.bin/anyswarm setup --mode existing` 和 `./node_modules/.bin/anyswarm doctor --mode existing --smoke`。
|
|
26
24
|
|
|
27
25
|
等待 `"infrastructure": "ready"` 和 `"ok": true`。受控自检会验证 Worker 启动、Service、Gateway、文件、导出和删除。示例在同一环境中用 `resolveSandboxConnection()` 读取连接。需要构建镜像时,项目实际导入的 SDK 使用自身包内材料。
|
|
28
26
|
|
|
@@ -38,26 +36,25 @@ read -rsp 'Model API token: ' ANYSWARM_MODEL_TOKEN && export ANYSWARM_MODEL_TOKE
|
|
|
38
36
|
|
|
39
37
|
### 编写并运行标准 Harness
|
|
40
38
|
|
|
41
|
-
从已安装的 SDK
|
|
39
|
+
从已安装的 SDK 复制 TypeScript 源码,安装后的 CLI 可以直接运行。
|
|
42
40
|
|
|
43
41
|
```bash
|
|
44
42
|
sdk=node_modules/@anyswarm/core
|
|
45
43
|
example="$sdk"/examples/first-harness
|
|
46
|
-
cp "$example"/{harness.ts,session.ts,handoff.ts,config.ts
|
|
44
|
+
cp "$example"/{harness.ts,session.ts,handoff.ts,config.ts} .
|
|
47
45
|
```
|
|
48
46
|
|
|
49
47
|
`harness.ts` 默认导出一个 `Harness`,包含 `apiVersion: 1`、`id: 'first-harness'` 和 `run(context)`。[仓库当前版本](../../examples/first-harness/harness.ts)使用新版 Service 注册 API,配套的是从该源码构建的候选包。
|
|
50
48
|
|
|
51
49
|
Harness 负责两个 Profile 和 Handoff Service。发布者在 Sandbox 里读取唯一编号,将编号和问题发布到 Service。公共 `runInput` 等待发布者的排他回合。Harness 核对 Service 认证过的发布者,再将 Agent 身份和 Run 的取消信号交给 `context.askUser`。写作者用自己的权限读取同一个编号,按你的回答生成 `delivery.txt`。Harness 在 Sandbox 里核对文件,要求导出,再核对 Host 导出的字节。Session 管理提问身份、回答准入、观察和最终 Run 报告。
|
|
52
50
|
|
|
53
|
-
`session.ts` 读取终端答案,调用 `respond
|
|
51
|
+
`session.ts` 读取终端答案,调用 `respond`。用 `anyswarm run` 直接通过 SDK、RPC 和显式前台运行同一份 TypeScript 定义。
|
|
54
52
|
|
|
55
53
|
```bash
|
|
56
|
-
./node_modules/.bin/tsc
|
|
57
54
|
mkdir -p input
|
|
58
|
-
|
|
59
|
-
PATH="$PWD/node_modules/.bin:$PATH"
|
|
60
|
-
ANYSWARM_FIRST_CHANNEL=beta-east ./node_modules/.bin/anyswarm
|
|
55
|
+
./node_modules/.bin/anyswarm run ./session.ts ./input 'Prepare a release handoff.'
|
|
56
|
+
PATH="$PWD/node_modules/.bin:$PATH" ./node_modules/.bin/anyswarm run ./session.ts --rpc ./input 'Prepare a release handoff.'
|
|
57
|
+
ANYSWARM_FIRST_CHANNEL=beta-east ./node_modules/.bin/anyswarm run ./harness.ts --cwd ./input --prompt 'Prepare a release handoff.'
|
|
61
58
|
```
|
|
62
59
|
|
|
63
60
|
使用独立的输入目录,避免采集示例依赖和 Run 输出。前两条命令会提示输入频道,例如 `beta-east`。单次前台命令从 `ANYSWARM_FIRST_CHANNEL` 读取频道并输出最终 JSON。JSONL 客户端也可以用 `--interaction questions` 启动显式前台并按 `questionId` 作答。成功时会看到 `outcome: "completed"`、`acceptance.status: "verified"`、`export.status: "complete"` 和 `cleanup.status: "complete"`。按验收回执找到文件,比较 `channel=` 行及 SHA‑256。完整 Host 报告位于同次 Run 的 `reportPath`。
|
|
@@ -113,7 +113,7 @@ await Promise.all(
|
|
|
113
113
|
|
|
114
114
|
```bash
|
|
115
115
|
# 配置 run ID、不可变 Worker 镜像、OpenSandbox 地址、Gitea 管理员凭证与模型端点
|
|
116
|
-
|
|
116
|
+
anyswarm run ./benchmarks/lead-worker-orders/main.ts ./benchmarks/lead-worker-orders/config.ts
|
|
117
117
|
```
|
|
118
118
|
|
|
119
119
|
关闭时,宿主先停止接纳 Board 写入,再调用 `runtime.close()`。只有 Core 确认执行已停止且清理完成后,才关闭 Board 连接并撤销自己创建的 Gitea 凭证。若执行状态未知、必需导出失败或 Board 证据写入失败,相关依赖会保持 `pending` 状态,等待后续人工核对与恢复清理。共享仓库、Board 数据库、提交与 PR 保留供检查。`harness-report.json` 分别记录业务失败、已交付和未完成工作、不确定输入、清理和报告保存结果。
|
|
@@ -113,7 +113,7 @@ export ANYSWARM_PEERMESH_MODEL_URL='https://your-model-endpoint/v1/responses'
|
|
|
113
113
|
export ANYSWARM_PEERMESH_PEERS=4
|
|
114
114
|
# 以及 Gitea、Mattermost 与 Board MySQL DSN 等宿主环境变量
|
|
115
115
|
|
|
116
|
-
|
|
116
|
+
anyswarm run ./scripts/run-harness.ts --config ./examples/peermesh/config.ts
|
|
117
117
|
```
|
|
118
118
|
|
|
119
119
|
输出 `ready` 后,可通过 `stdin` 逐行发送 JSON 命令查看状态、向指定成员追加输入或提前停止:
|
|
@@ -128,7 +128,7 @@ node dist/scripts/run-harness.js --config dist/examples/peermesh/config.js
|
|
|
128
128
|
|
|
129
129
|
```bash
|
|
130
130
|
runtime_id=RUNTIME_ID_FROM_RESULT
|
|
131
|
-
|
|
131
|
+
anyswarm run ./scripts/read-harness-result.ts \
|
|
132
132
|
--run-directory "./peermesh-runs/$runtime_id" \
|
|
133
133
|
--runtime-id "$runtime_id"
|
|
134
134
|
```
|
|
@@ -162,10 +162,10 @@ export ANYSWARM_MODEL_TOKEN='your-bearer-token'
|
|
|
162
162
|
# 可选:覆盖默认本地 Worker 镜像
|
|
163
163
|
# export ANYSWARM_WORKER_IMAGE='your-registry.example/compatible-worker:tag'
|
|
164
164
|
|
|
165
|
-
|
|
165
|
+
anyswarm run ./examples/subagents/main.ts ./examples/subagents/config.ts \
|
|
166
166
|
'Split this task into two independent checks and summarize the results.'
|
|
167
167
|
|
|
168
|
-
|
|
168
|
+
anyswarm run ./examples/subagents/main.ts ./examples/subagents/config.ts --interactive
|
|
169
169
|
```
|
|
170
170
|
|
|
171
171
|
或在 Node.js 中直接嵌入 `createSubagentsHarness`:
|
|
@@ -96,11 +96,11 @@ export ANYSWARM_SUBSTRATE_RUN=research-01
|
|
|
96
96
|
export ANYSWARM_SUBSTRATE_MODEL_URL='https://your-model-endpoint/v1/responses'
|
|
97
97
|
export ANYSWARM_SUBSTRATE_MODEL_TOKEN='your-bearer-token'
|
|
98
98
|
|
|
99
|
-
|
|
99
|
+
anyswarm run ./examples/substrate/main.ts ./examples/substrate/config.ts > substrate-result.json
|
|
100
100
|
|
|
101
101
|
# 无需模型配置,离线检查保存的回执:
|
|
102
102
|
runtime_id=RUNTIME_ID_FROM_RESULT
|
|
103
|
-
|
|
103
|
+
anyswarm run ./examples/substrate/main.ts --result "./substrate-runs/$runtime_id" --runtime-id "$runtime_id"
|
|
104
104
|
```
|
|
105
105
|
|
|
106
106
|
[collaboration-evidence.ts](https://github.com/AnySwarm/anyswarm/blob/main/examples/substrate/harness/collaboration-evidence.ts) 会联合审计 `substrate_contents`、`substrate_references` 和 `substrate_reads` 三张表,检查跨成员复用链:
|
|
@@ -127,8 +127,8 @@ export ANYSWARM_FATE_BENCHMARK=FATE-X
|
|
|
127
127
|
export ANYSWARM_FATE_PROJECT=/path/to/fate-x
|
|
128
128
|
export ANYSWARM_FATE_LEAN=/path/to/lean-4.28.0
|
|
129
129
|
|
|
130
|
-
|
|
131
|
-
|
|
130
|
+
anyswarm run ./benchmarks/fate/main.ts --fate-prepare "$ANYSWARM_FATE_PROJECT" "$ANYSWARM_FATE_LEAN" FATE-X
|
|
131
|
+
anyswarm run ./benchmarks/fate/main.ts --fate-run ./benchmarks/fate/fate-config.ts
|
|
132
132
|
```
|
|
133
133
|
|
|
134
134
|
## 源码索引
|
|
@@ -84,7 +84,7 @@ TaskPool 控制器在可信 TaskService 提交后检查 Mission、归属与截
|
|
|
84
84
|
构建仓库并完成宿主模块后运行:
|
|
85
85
|
|
|
86
86
|
```bash
|
|
87
|
-
|
|
87
|
+
anyswarm run ./scripts/run-harness.ts --config ./my-taskpool-config.ts
|
|
88
88
|
```
|
|
89
89
|
|
|
90
90
|
宿主通过 JSON 行接受 `status`、面向 Task 的 `input` 和 `stop`。定向输入会解析到当前 Execution 所有者,不是任意向某个 Agent 发送私信。最终记录包含 Runtime ID 和报告路径;[前台协议](../../architecture/17-harness-reporting.md#foreground-harness-control) 说明全部命令与结果码。
|
|
@@ -92,7 +92,7 @@ node dist/scripts/run-harness.js --config ./my-taskpool-config.mjs
|
|
|
92
92
|
离线检查报告无需加载模型配置:
|
|
93
93
|
|
|
94
94
|
```bash
|
|
95
|
-
|
|
95
|
+
anyswarm run ./scripts/read-harness-result.ts \
|
|
96
96
|
--run-directory ./runs/RUNTIME_ID_FROM_RESULT \
|
|
97
97
|
--runtime-id RUNTIME_ID_FROM_RESULT
|
|
98
98
|
```
|
package/docs/zh/latest.md
CHANGED
|
@@ -1,140 +1,33 @@
|
|
|
1
1
|
---
|
|
2
|
-
title:
|
|
3
|
-
description: 安装当前
|
|
4
|
-
section:
|
|
2
|
+
title: 发行版本
|
|
3
|
+
description: 安装当前 AnySwarm SDK 和 CLI,查看发行说明。
|
|
4
|
+
section: RELEASES
|
|
5
5
|
order: 15
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
-
##
|
|
8
|
+
## v0.5.1
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
v0.5.1 加入流式终端、Code、Personal、AutoResearch 和 macOS 原生 setup。平台要求与验证进度见 [v0.5.1 更新日志](changelog.md#v051)。
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
## v0.4.1
|
|
15
|
-
|
|
16
|
-
AnySwarm v0.4.1 已在 GitHub 和 npm 发布。本版支持托管 CLI 更新,使用本机受支持的 Pi 或 Codex 构建 Worker,并补充了 Run 诊断信息。
|
|
17
|
-
|
|
18
|
-
| 分发 | 入口 |
|
|
19
|
-
| --- | --- |
|
|
20
|
-
| CLI | [GitHub Release](https://github.com/AnySwarm/anyswarm/releases/tag/v0.4.1) · [SHA256SUMS](https://github.com/AnySwarm/anyswarm/releases/download/v0.4.1/SHA256SUMS) · [快速上手](quickstart.md) |
|
|
21
|
-
| TypeScript SDK | [npm 上的 @anyswarm/anyswarm](https://www.npmjs.com/package/@anyswarm/anyswarm/v/0.4.1) · [第一个 SDK Harness](first-harness.md) |
|
|
22
|
-
| 版本变更 | [更新日志](changelog.md#v041) |
|
|
23
|
-
|
|
24
|
-
在项目中安装此版本的 SDK:
|
|
25
|
-
|
|
26
|
-
```bash
|
|
27
|
-
npm install @anyswarm/anyswarm@0.4.1
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
已有 v0.4.0 项目升级时,将导入路径从 `@luna-shi/anyswarm` 改为 `@anyswarm/anyswarm`,在项目内运行 `npm uninstall @luna-shi/anyswarm`,并提交更新后的锁文件。全局 CLI 独立升级。
|
|
31
|
-
|
|
32
|
-
## 从 v0.4.0 升级到托管安装
|
|
33
|
-
|
|
34
|
-
从 v0.4.0 迁移 CLI 时,运行一次[官方安装器](quickstart.md#1-安装-anyswarm)。如果当前 CLI 通过 npm 安装在自定义的可写前缀,可为安装器设置 `npm_config_prefix`。安装器会输出生效的 CLI 路径,后续用 `anyswarm update` 升级。
|
|
35
|
-
|
|
36
|
-
新版会忽略 v0.4.0 保存的 OpenSandbox 连接文件。用过自定义地址时,请在新版 setup 中显式传入原地址。以下以原端口为 `18080`、选择 Pi 为例:
|
|
12
|
+
用 npm 全局安装 CLI,随后检查版本。
|
|
37
13
|
|
|
38
14
|
```sh
|
|
39
|
-
|
|
40
|
-
```
|
|
41
|
-
|
|
42
|
-
将示例地址换成你的实际地址。如果旧容器仍占用端口且新版无法确认它的归属,请先用旧版本结束其运行,再停用旧容器,之后才在原地址创建托管服务。若要继续使用已运行的服务,可按[接入已有服务](quickstart.md#连接已有-opensandbox)传入原地址和凭据。如曾设置自定义回调地址,也可通过 `--public-url` 传入原地址。
|
|
43
|
-
|
|
44
|
-
## v0.4.0 提供的功能
|
|
45
|
-
|
|
46
|
-
### 1. OpenSandbox SDK 1.2.1、统一回调入口与 Kubernetes 部署
|
|
47
|
-
|
|
48
|
-
- **官方 SDK 统一接入**:本机与远程 OpenSandbox 统一通过 OpenSandbox SDK 1.2.1 通信,`anyswarm setup` 会将连接配置与凭据自动写入仅当前用户可读写的本地配置,并由 `setup`、`doctor` 与内置 Harness 共享解析。
|
|
49
|
-
- **单一回调地址(`connection.publicUrl`)**:每个 Runtime 现通过一个统一回调地址同时提供 Service Bridge(`/bridge`)与 Model Gateway(`/model/<alias>`),原生保留反向代理路径前缀,告别过去两套回调 URL 与 `{port}` 模板。
|
|
50
|
-
- **自定义沙箱与 Kubernetes 模板**:支持通过 `createSandbox({ provider })` 接入自定义 `SandboxProvider`,并新增版本锁定的 [OpenSandbox Kubernetes 部署指南](../../deploy/opensandbox-kubernetes/README.md) 以及 `egressMode: 'dns+nft'` 包级出站白名单支持。
|
|
51
|
-
|
|
52
|
-
### 2. 统一的 `Harness` 作者接口与 `HarnessSession`
|
|
53
|
-
|
|
54
|
-
- **一套定义,三种运行方式**:从 `@luna-shi/anyswarm` 根入口导出标准 `Harness` 与 `HarnessContext` 接口,同一份自定义 Harness 模块可同时用于进程内 SDK(`createHarnessSession`)、前台 CLI(`anyswarm --harness`)与跨进程 JSONL RPC(`HarnessRpcClient`)。
|
|
55
|
-
- **交互式问答与运行时控制**:支持通过 `--lifetime interactive` 维持多轮交互、通过 `--interaction questions` 与 `context.askUser()` 向终端或客户端发起提问,并支持在运行中按成员查询或控制底层会话。
|
|
56
|
-
- **独立示例与配套教程**:五个协作示例均可在仓库外安装匹配的 SDK 归档,独立构建与启动;新增[搭建第一个 SDK Harness](first-harness.md) 实战指南,完整演示双 Agent 交接、终端交互与产物校验。
|
|
57
|
-
|
|
58
|
-
### 3. 按 Agent 粒度的会话控制与自动压缩策略
|
|
59
|
-
|
|
60
|
-
- **`runtime.session` 控制面**:原生 Pi Worker 开放 `configure`、`compact`、`abortRetry`、`clearQueue`、`getState`、`getStats` 与 `getMessages` 接口,支持精细查询与管理单个 Agent 的会话状态。
|
|
61
|
-
- **结构化上下文注入**:通过 `runtime.send()` 显式指定 `append`、`nextTurn`、`steer` 或 `followUp` 投递策略,按需补充上下文而不打乱既有对话节奏。
|
|
62
|
-
- **自动压缩拦截钩子(`hooks.beforeCompact`)**:可在 `createRuntime()` 中注册策略钩子,在触发指定次数的自动上下文压缩前主动叫停 Agent 并执行正常归档收尾(详见 [Agent 与 Profile](agents.md#6-会话控制与结构化上下文))。
|
|
63
|
-
|
|
64
|
-
### 4. 可选持久化恢复与 `anyswarm recover`
|
|
65
|
-
|
|
66
|
-
- **中断后接管运行**:在 `createRuntime()` 中显式开启 `persistence` 后,控制进程意外退出时可在同一台未重启的 Linux 宿主机上通过 `recoverRuntime()` 接管未完成的运行,并经 `restoreService` 重建运行中动态注册的 Service。
|
|
67
|
-
- **纯清理恢复命令**:新增 `anyswarm recover --run-dir <dir> --config <module>`,只接管清理权限并执行 `close()`,确认归档与沙箱清理完成后返回退出码 `0`。
|
|
68
|
-
- **可观测事件链路**:Worker 采用带游标的长轮询事件推送,并新增 `runtime.probeWorkerEvent()` 用于端到端测量鉴权事件链路耗时,不消耗模型额度(详见 [Runtime 持久化恢复](runtime.md#6-持久化恢复与-kubernetes))。
|
|
69
|
-
|
|
70
|
-
### 5. 更灵活的执行器、模型协议与大目录传输
|
|
71
|
-
|
|
72
|
-
- **扩展执行器与模型协议**:Runtime 现支持镜像内自定义执行器适配器与多版本 Pi 选择;Pi 新增流式 **Chat Completions** 协议支持,宿主机也支持接入自定义可信模型传输层。
|
|
73
|
-
- **本地 Worker 准备**。本地 `anyswarm setup` 复用兼容 Worker,内置 Worker 缺失或不兼容时从安装包构建。[快速上手](quickstart.md)提供经验证的 README 示例及 Trace Viewer 步骤。
|
|
74
|
-
- **更稳健的大目录与安装体验**:项目文件导入、同步与导出支持分阶段预算配置与磁盘分块传输;CLI 安装器在全局 npm 目录不可写时自动回退至 `$HOME/.local`,新增 `anyswarm --version` 与基于 Schema 的 `swarm service invoke ... --help` 参数示例提示。
|
|
75
|
-
|
|
76
|
-
## 安装或升级到 v0.4.0
|
|
77
|
-
|
|
78
|
-
如需固定使用历史版本 v0.4.0,在空目录下载并校验归档,再安装到当前用户目录。
|
|
79
|
-
|
|
80
|
-
```bash
|
|
81
|
-
mkdir -p anyswarm-v0.4.0 && cd anyswarm-v0.4.0
|
|
82
|
-
curl -fLO https://github.com/AnySwarm/anyswarm/releases/download/v0.4.0/luna-shi-anyswarm-0.4.0.tgz
|
|
83
|
-
curl -fLO https://github.com/AnySwarm/anyswarm/releases/download/v0.4.0/SHA256SUMS
|
|
84
|
-
sha256sum -c --ignore-missing SHA256SUMS
|
|
85
|
-
npm install -g --prefix "$HOME/.local" --ignore-scripts "./luna-shi-anyswarm-0.4.0.tgz"
|
|
86
|
-
export PATH="$HOME/.local/bin:$PATH"
|
|
15
|
+
npm install -g @anyswarm/core@0.5.1
|
|
87
16
|
anyswarm --version
|
|
88
17
|
```
|
|
89
18
|
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
## 从 v0.3.0 迁移
|
|
93
|
-
|
|
94
|
-
1. 用原版本的控制端与 Worker 完成或恢复正在运行的 Run。更换任一组件前,确认 Sandbox 已删除,或记录仍保留的资源归属。已保存的 Run 报告可用 `anyswarm trace --root <旧运行目录>` 查看。
|
|
95
|
-
2. 在同一 npm 前缀安装 AnySwarm 前,先从原前缀卸载旧的全局包。若旧包仍占用共用的 `swarm` 命令,npm 会拒绝安装。例如,使用用户前缀时执行:
|
|
96
|
-
|
|
97
|
-
```sh
|
|
98
|
-
npm uninstall --global --prefix "$HOME/.local" @luna-shi/murm
|
|
99
|
-
```
|
|
19
|
+
[v0.5.1 GitHub Release](https://github.com/AnySwarm/anyswarm/releases/tag/v0.5.1) 也提供 npm 归档。
|
|
100
20
|
|
|
101
|
-
|
|
102
|
-
3. 将 `MURM_` 环境变量前缀改为 `ANYSWARM_`。重新运行 `anyswarm setup`,在 `~/.config/anyswarm/` 下生成私有配置。如果旧服务仍占用 8080 端口,确认其 Sandbox 全部删除后停用该服务,或通过 `ANYSWARM_LIFECYCLE_URL` 选择其他端口。
|
|
103
|
-
4. v0.4.0 使用 `ghcr.io/luna-shi/anyswarm-worker:0.4.0` 或匹配的执行器变体。按匹配的 AnySwarm 协议重建自定义 Worker 和执行器适配器。将自定义传输和代理请求头白名单改为对应的 `x-anyswarm-*` 请求头。独立部署的 TaskPool Service 宿主须与控制端一起升级。Catalog 的描述更名后 manifest 哈希随之变化,混用版本时会无法通过就绪检查。见 [Worker 协议](../architecture/16-pi-opensandbox-backend.md)与 [Bridge](../architecture/04-services.md)。
|
|
21
|
+
要把 SDK 加到项目依赖中,请在项目目录执行以下命令。
|
|
104
22
|
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
## 从 v0.2.0 迁移至 v0.3.0
|
|
108
|
-
|
|
109
|
-
> 如果你仍需维护旧的 `v0.2.0` 环境,请参阅 [v0.2.0 发行页](https://github.com/AnySwarm/anyswarm/releases/tag/v0.2.0) 与 [v0.2.0 宿主机指南](https://github.com/AnySwarm/anyswarm/blob/v0.2.0/docs/zh/quickstart.md)。
|
|
110
|
-
|
|
111
|
-
- **移除内置 `local-docker` 与共享挂载**:不再内置依赖宿主机 Landlock ABI 5+ / rootful `sudo` 的 `local-docker` 模式、精确字节/inode 磁盘配额以及宿主机实时共享目录挂载。跨 Agent 文件交换请使用 `runtime.files` 或共享 Service,精确 IP/端口出站白名单请使用 OpenSandbox `dns+nft`。
|
|
112
|
-
- **Worker 协议升级至 `murm-core-v2`**:升级控制端时请同步更新 Worker 镜像(或运行 `murm setup` 重新拉取/构建),旧版 Worker 镜像会在握手阶段直接报错提示版本不匹配。
|
|
113
|
-
- **配置项迁移**:`createSandbox()` 推荐使用 `endpoint` 替代旧别名 `lifecycleBaseUrl`;`createRuntime()` 推荐使用单一 `connection.publicUrl` 替代旧版双回调 URL 与 `{port}` 模板(详见 [Sandbox 迁移说明](sandbox.md#4-资源与旧配置迁移))。
|
|
114
|
-
- **Service 调用前缀与评测入口**:启动提示统一使用 `swarm service invoke <service> <operation>`(TaskPool 保留快捷命令);固定编制 Lead-Worker 评测与 FATE 基准入口迁移至源码构建目录 `dist/benchmarks/`。
|
|
115
|
-
|
|
116
|
-
完整历次版本记录请查看 **[更新日志](changelog.md)**,功能回放演示请查看 **[Trace Viewer 观测与调试](trace-viewer.md)**。
|
|
117
|
-
|
|
118
|
-
## 安装或升级到 v0.2.0
|
|
119
|
-
|
|
120
|
-
使用 npm 安装固定的 v0.2.0 归档。该发行版早于 `murm --version`,请通过 npm 确认版本。
|
|
121
|
-
|
|
122
|
-
```bash
|
|
123
|
-
prefix="$HOME/.local"
|
|
124
|
-
npm install -g --prefix "$prefix" --ignore-scripts --allow-remote=root \
|
|
125
|
-
https://github.com/AnySwarm/anyswarm/releases/download/v0.2.0/luna-shi-murm-0.2.0.tgz
|
|
126
|
-
export PATH="$prefix/bin:$PATH"
|
|
127
|
-
MURM_ROOT="$(npm root -g --prefix "$prefix")/@luna-shi/murm"
|
|
128
|
-
printf '%s\n' "$MURM_ROOT"
|
|
129
|
-
npm ls -g --prefix "$prefix" @luna-shi/murm --depth=0
|
|
23
|
+
```sh
|
|
24
|
+
npm install @anyswarm/core@0.5.1
|
|
130
25
|
```
|
|
131
26
|
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
在干净的 Debian 13.8 上,v0.2.0 指南的两项 sudo 检查通过后,Agent 仍启动失败。该发行版仍依赖管理员维护的严格本机隔离配置。首次运行请参阅[快速上手](quickstart.md),该路径通过 OpenSandbox API 启动和清理 Agent。
|
|
27
|
+
SDK 的导入方式和项目内 CLI 用法见[安装 SDK](reference/api.md#安装-sdk)。
|
|
135
28
|
|
|
136
|
-
|
|
29
|
+
## v0.5.0
|
|
137
30
|
|
|
138
|
-
|
|
31
|
+
v0.5.0 是 `@anyswarm/core` 的首个正式版本。该版本的变更见 [v0.5.0 更新日志](changelog.md#v050)。
|
|
139
32
|
|
|
140
|
-
|
|
33
|
+
此前的发行版使用不同的 npm 包名。源码和发行归档可在 [GitHub Release 历史](https://github.com/AnySwarm/anyswarm/releases) 查阅。
|
package/docs/zh/overview.md
CHANGED
|
@@ -30,6 +30,6 @@ TypeScript SDK、宿主机 `anyswarm` CLI、容器内 `swarm` CLI 与 `anyswarm
|
|
|
30
30
|
- [搭建第一个 SDK Harness](first-harness.md)——用标准 `Harness` 接口跑通双 Agent 终端交互交接与产物校验。
|
|
31
31
|
- [实战:构建 Swarm Harness](build-your-harness.md)——从零搭建并行调研 + 综合的多智能体 Swarm。
|
|
32
32
|
4. **内置 Harness**:[选择 Harness](harnesses/index.md)——直接运行或参考 `Subagents`、`TaskPool`、`PeerMesh`、`Substrate` 与 `Lead-Worker`。
|
|
33
|
-
5. **参考手册与版本**:[SDK 与 API 参考](reference/api.md) · [CLI 参考](reference/cli.md) · [类型定义与源码映射](reference/types.md) · [
|
|
33
|
+
5. **参考手册与版本**:[SDK 与 API 参考](reference/api.md) · [CLI 参考](reference/cli.md) · [类型定义与源码映射](reference/types.md) · [发行版本](latest.md) · [更新日志](changelog.md)。
|
|
34
34
|
|
|
35
35
|
> 需要查阅底层协议或仓库维护说明?请参阅仓库中的[架构实现手册](https://github.com/AnySwarm/anyswarm/blob/main/docs/architecture/INDEX.md)。
|