@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
package/docs/zh/quickstart.md
CHANGED
|
@@ -1,108 +1,111 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: 快速上手
|
|
3
|
-
description: 在 Linux 上准备环境、安装 AnySwarm、初始化 OpenSandbox 与 Worker,并完成首次 Sandbox 与文件读取检查。
|
|
3
|
+
description: 在 Linux 或 macOS 上准备环境、安装 AnySwarm、初始化 OpenSandbox 与 Worker,并完成首次 Sandbox 与文件读取检查。
|
|
4
4
|
section: GET STARTED
|
|
5
5
|
order: 1
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
要使用已安装的 SDK 归档编写自己的应用,请从[搭建第一个 SDK Harness](first-harness.md)开始。
|
|
9
9
|
|
|
10
|
-
`anyswarm` 将 CLI 与 TypeScript SDK 打包在同一个安装包中,并在 [OpenSandbox](sandbox.md) 隔离沙箱中运行 Agent
|
|
10
|
+
`anyswarm` 将 CLI 与 TypeScript SDK 打包在同一个安装包中,并在 [OpenSandbox](sandbox.md) 隔离沙箱中运行 Agent。本指南使用 Docker 在本机运行 OpenSandbox 和 Worker。
|
|
11
11
|
|
|
12
|
-
本指南适用于 v0.
|
|
12
|
+
本指南适用于 [AnySwarm v0.5.1](latest.md#v051)。
|
|
13
13
|
|
|
14
14
|
## 前置要求
|
|
15
15
|
|
|
16
16
|
| 依赖 | 要求与说明 | 检查命令 |
|
|
17
17
|
| --- | --- | --- |
|
|
18
|
-
| **Linux** | 控制器宿主机(如 Ubuntu
|
|
18
|
+
| **Linux 或 macOS** | 控制器宿主机(如 Ubuntu、Debian 或运行 Docker Desktop 的 macOS) | `uname -s` |
|
|
19
19
|
| **Node.js** | `>= 22.19`(Ubuntu 24.04、Debian 13 等软件源默认版本偏旧,请从 [nodejs.org](https://nodejs.org/en/download) 安装 LTS) | `node --version` |
|
|
20
20
|
| **npm** | 随 Node.js 安装 | `npm --version` |
|
|
21
21
|
| **Git** | 用于检出源码与捕获项目 | `git --version` |
|
|
22
|
-
| **
|
|
23
|
-
| **Docker Engine** | 仅本机启动 OpenSandbox 时需要;接入已有服务可跳过([安装指南](https://docs.docker.com/engine/install/)) | `docker info` |
|
|
22
|
+
| **Docker Engine** | 本机运行的 Linux 容器引擎([安装指南](https://docs.docker.com/engine/install/)) | `docker info` |
|
|
24
23
|
|
|
25
24
|
在 Ubuntu 或 Debian 本机使用 Docker 时,安装系统依赖并启动 Docker:
|
|
26
25
|
|
|
27
26
|
```bash
|
|
28
|
-
sudo apt-get update && sudo apt-get install -y docker.io git
|
|
27
|
+
sudo apt-get update && sudo apt-get install -y docker.io git ca-certificates
|
|
29
28
|
sudo systemctl enable --now docker.service
|
|
30
29
|
```
|
|
31
30
|
|
|
32
|
-
连接已有 OpenSandbox 时,只需安装 `git curl ca-certificates`,可跳过 Docker 服务和用户组操作。
|
|
33
|
-
|
|
34
31
|
若访问 Docker socket 被拒绝,管理员可执行 `sudo usermod -aG docker alice`,将 `alice` 换为运行 AnySwarm 的账号。使用该账号重新登录,执行 `id` 和 `docker info`。[`docker` 用户组具有等同于 root 的权限](https://docs.docker.com/engine/install/linux-postinstall/)。
|
|
35
32
|
|
|
36
|
-
|
|
33
|
+
### macOS 上的 Docker
|
|
37
34
|
|
|
38
|
-
|
|
35
|
+
**运行本地 setup 之前:** 安装 [Docker Desktop for Mac](https://docs.docker.com/desktop/setup/install/mac-install/),打开 Docker,等待引擎启动。如果你已有 [OrbStack](https://orbstack.dev/download) 等本地 Linux 容器引擎,启动现有引擎即可。只装 `docker` 客户端(例如 `brew install docker`)不够。npm 会安装 AnySwarm 的 npm 依赖,但 npm 命令和 `anyswarm setup` 都不会替你安装或启动 Docker Desktop。
|
|
36
|
+
|
|
37
|
+
在准备运行 AnySwarm 的终端里确认当前 context 能访问已启动的引擎:
|
|
39
38
|
|
|
40
39
|
```bash
|
|
41
|
-
|
|
40
|
+
docker context ls
|
|
41
|
+
docker context show
|
|
42
|
+
docker info --format '{{.OSType}}/{{.Architecture}}'
|
|
42
43
|
```
|
|
43
44
|
|
|
44
|
-
|
|
45
|
+
若 context 不正确,执行 `docker context use <本地-context>`,并检查 `DOCKER_CONTEXT` 或 `DOCKER_HOST` 是否覆盖了该选择。Apple Silicon 对应 Linux ARM64,Intel 对应 Linux x86-64;setup 不会切换到模拟执行。若单独安装的 Docker 客户端提示找不到 `docker-credential-desktop`,在 Docker Desktop 设置中把 CLI 工具加入 PATH,或将 `/Applications/Docker.app/Contents/Resources/bin` 加入 PATH。运行 TypeScript 作者命令请用 Node.js 24 LTS;Node.js 26 已移除这些命令使用的 transform 模式。
|
|
45
46
|
|
|
46
|
-
|
|
47
|
+
v0.5.1 支持 macOS 原生 setup。请选择兼容的 backend。[#339](https://github.com/AnySwarm/anyswarm/issues/339) 的 macOS 受控模型验证在 Apple Silicon 和 Docker Desktop 上进行,覆盖 npm Pi 1.3.0、1.7.0 及独立 Codex 0.173.0;Intel、其他引擎和其他 backend 版本还没有在 macOS 上验收。
|
|
48
|
+
|
|
49
|
+
## 1. 安装 AnySwarm
|
|
50
|
+
|
|
51
|
+
### 安装公开发行版
|
|
47
52
|
|
|
48
|
-
|
|
53
|
+
使用 Node.js 22.19 或更高版本和 npm 安装 CLI。macOS 和 Linux 使用同一条命令。Docker 在运行 setup 时才需要。
|
|
49
54
|
|
|
50
55
|
```bash
|
|
51
|
-
npm install @anyswarm/
|
|
56
|
+
npm install -g @anyswarm/core
|
|
57
|
+
anyswarm --version
|
|
52
58
|
```
|
|
53
59
|
|
|
54
|
-
|
|
60
|
+
`-g` 将命令装到 npm 的全局目录。若终端找不到命令,请确认 `$(npm prefix -g)/bin` 在 PATH 中,并且当前终端使用的是安装 CLI 时的 Node.js。
|
|
55
61
|
|
|
56
|
-
|
|
62
|
+
如果你要用 TypeScript 编写 Harness,请按[安装 SDK](reference/api.md#安装-sdk)把它加到项目依赖里。
|
|
57
63
|
|
|
58
64
|
### 从源码构建并安装(`main`)
|
|
59
65
|
|
|
60
|
-
|
|
66
|
+
在仓库根目录执行以下命令。`npm run pack:release` 构建发行包,最后一条安装命令将归档装入指定的 npm prefix。
|
|
61
67
|
|
|
62
68
|
```bash
|
|
63
69
|
git clone https://github.com/AnySwarm/anyswarm.git && cd anyswarm
|
|
64
70
|
npm ci --no-audit --no-fund
|
|
65
71
|
pack_dir=$(mktemp -d)
|
|
66
|
-
npm pack --
|
|
67
|
-
|
|
72
|
+
npm run pack:release -- "$pack_dir"
|
|
73
|
+
npm install -g --prefix "$HOME/.local" "$pack_dir"/*.tgz
|
|
68
74
|
export PATH="$HOME/.local/bin:$PATH"
|
|
69
75
|
anyswarm --version
|
|
70
76
|
```
|
|
71
77
|
|
|
72
78
|
候选包可能和发行版显示同一个版本号。请记录提交号和 tarball 的 SHA-256。如果要在[独立示例项目](../../examples/README.md)中使用同一份 SDK,请保留生成的候选版 tarball。
|
|
73
79
|
|
|
74
|
-
###
|
|
80
|
+
### 更新 CLI
|
|
81
|
+
|
|
82
|
+
用同一套 Node.js 和 npm prefix 执行 `npm install -g @anyswarm/core@latest` 更新,或执行 `npm uninstall -g @anyswarm/core` 卸载。如果 npm 报 `EACCES`,请改用用户目录下的 Node,或用 `npm install -g --prefix "$HOME/.local" @anyswarm/core` 安装到有写权限的目录。将 `$HOME/.local/bin` 加入 PATH,后续更新和卸载继续使用该 prefix。
|
|
75
83
|
|
|
76
|
-
|
|
84
|
+
如果曾用旧版脚本安装 v0.5.0 或 v0.5.1,请检查 `$(npm prefix -g)/bin` 下的 `anyswarm`、`anys` 和 `swarm`。只清理指向旧安装 `lib/anyswarm/current` 的链接,再用 npm 安装。AnySwarm 配置存放在 CLI 安装目录之外。
|
|
85
|
+
|
|
86
|
+
更新项目 SDK 时,在项目目录内使用该项目的包管理器。
|
|
77
87
|
|
|
78
88
|
## 2. 准备 OpenSandbox 与 Worker
|
|
79
89
|
|
|
80
|
-
|
|
90
|
+
在准备运行 OpenSandbox 和 Worker 的本机执行:
|
|
81
91
|
|
|
82
92
|
```bash
|
|
83
|
-
|
|
84
|
-
pi --version
|
|
85
|
-
anyswarm setup --backend pi
|
|
93
|
+
anyswarm setup
|
|
86
94
|
```
|
|
87
95
|
|
|
88
|
-
|
|
96
|
+
setup 自动识别操作系统和 Node 版本,检查本机 Docker,并寻找已保存的配置或已安装的 Pi、Codex。缺依赖时,按提示处理后重试。用 `anyswarm doctor` 可以只读检查本机依赖与 Lifecycle 连接。
|
|
89
97
|
|
|
90
|
-
|
|
98
|
+
如果缺执行器,可用 `npm install -g @earendil-works/pi-coding-agent` 安装 Pi,或用 `npm install -g @openai/codex` 安装 Codex。macOS 也支持独立可执行的 Codex,前提是同版本有 Linux npm 包。只找到一种兼容执行器时,setup 会自动选用。两种都兼容时,交互式 setup 会提示选择。自动化里可运行 `anyswarm setup --backend pi` 或 `anyswarm setup --backend codex`。
|
|
91
99
|
|
|
92
|
-
|
|
100
|
+
裸 `setup` 会复用上次保存的可执行文件路径。换一份安装时,用 `--backend pi --backend-path /absolute/path/to/bin/pi` 或相应的 Codex 选项。要固定已安装版本,加 `--backend-version 1.7.0` 并替换为你要使用的版本号。固定版本保存后,如果可执行文件报告其他版本,检查会明确失败。重新显式选择 backend 并省略版本参数,可恢复跟随该安装的升级。
|
|
93
101
|
|
|
94
|
-
|
|
102
|
+
macOS 在原生架构的 Docker 容器内准备同一发行版的 Linux 包。配置保存前会核对 Worker 版本、执行器启动和受控协议 smoke。没有保存的选择时,如果发现两种 backend,交互终端会提示选择。自动化调用可用 `--backend` 明确指定。
|
|
95
103
|
|
|
96
|
-
|
|
97
|
-
export OPEN_SANDBOX_API_KEY='<管理员提供的密钥>'
|
|
98
|
-
anyswarm setup --mode existing --endpoint https://sandbox.example.net \
|
|
99
|
-
--public-url https://runtime.example.net/anyswarm
|
|
100
|
-
anyswarm doctor --smoke
|
|
101
|
-
```
|
|
104
|
+
首次本地 setup 默认使用 `127.0.0.1:8080`,用选择的本机程序和实际 SDK 包构建 Worker,并拉取固定版本的 OpenSandbox 1.2.1 上游组件。自检经受控模型验证 Worker、Bridge、Gateway、文件、导出和 Sandbox 删除,之后保存托管连接。成功结果为 `"ok": true` 和 `"infrastructure": "ready"`。重复 setup 会恢复已经停止的托管服务并重新自检。测试时可用 `ANYSWARM_CONFIG_DIR=/path/to/private-directory` 和单独的空闲端口。
|
|
102
105
|
|
|
103
|
-
|
|
106
|
+
AnySwarm Worker 在本机构建,内容匹配时复用已有镜像。构建的基础镜像、apt 和 npm 依赖仍可能需要联网。继续用 AnySwarm 环境变量或项目配置提供模型端点和凭据。setup 的受控模型自检不会验证真实模型凭据。可以用 `anyswarm doctor --smoke` 再跑一次受控自检。
|
|
104
107
|
|
|
105
|
-
|
|
108
|
+
本地服务与 CLI 运行在同一台机器。需要接入自己管理的服务时,请参考 [Sandbox](sandbox.md)。
|
|
106
109
|
|
|
107
110
|
### 诊断镜像可用性
|
|
108
111
|
|
package/docs/zh/reference/api.md
CHANGED
|
@@ -5,11 +5,19 @@ section: 参考手册
|
|
|
5
5
|
order: 15
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
-
本页汇总 **`@anyswarm/core
|
|
8
|
+
本页汇总 **`@anyswarm/core`** 的公开运行时导出、方法契约与错误恢复规则。概念与实践请先阅读 [Runtime 与 Agent](../runtime.md) 和 [Service 与权限](../services.md);完整 TypeScript 声明见 [类型定义与源码映射](./types.md);宿主机与容器命令行参数见 [CLI 参考](./cli.md)。
|
|
9
9
|
|
|
10
10
|
## 安装 SDK
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
项目需要 Node.js 22.19 或更新版本。
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
npm install @anyswarm/core
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
在代码中从 `@anyswarm/core` 导入 SDK。在项目目录运行 `npm exec -- anyswarm` 可调用随依赖安装的 CLI。要在任意目录直接运行 `anyswarm`,请按[全局 CLI 安装](../quickstart.md#1-安装-anyswarm)操作。
|
|
19
|
+
|
|
20
|
+
要安装经校验的[源码构建归档](../quickstart.md#从源码构建并安装main),使用下面的命令。[发行版本页](../latest.md#v051)提供固定版本的安装命令。
|
|
13
21
|
|
|
14
22
|
```bash
|
|
15
23
|
npm install --ignore-scripts /path/to/verified-anyswarm.tgz
|
|
@@ -26,9 +34,11 @@ npm install --ignore-scripts /path/to/verified-anyswarm.tgz
|
|
|
26
34
|
| `createSandbox(config)` | 函数 | 创建不可变、可复用的 OpenSandbox 连接配置句柄,或接入自定义 `{ provider }` `SandboxProvider`。 |
|
|
27
35
|
| `resolveSandboxConnection(overrides?)` | 函数 | 按与 CLI 一致的优先级解析 Lifecycle 地址、本地密钥与默认镜像(仅在可信宿主配置中使用)。 |
|
|
28
36
|
| `createRuntime(options)` | 异步函数 | 启动单次 Run 的控制面(`outputDir/<runtimeId>/`、Service Bridge、Model Gateway),支持 `executor`、`filePolicy` 与持久化恢复选项。 |
|
|
37
|
+
| `resolveFilePolicy(policy?)` | 函数 | 校验文件预算并补齐 Runtime 和项目宿主使用的默认值。Harness 作者可用解析后的上限检查本地候选。 |
|
|
29
38
|
| `recoverRuntime(options)` | 异步函数 | 在验证同主机、同次启动归属后恢复持久化 Run,支持仅清理模式与动态 Service 重建。 |
|
|
30
39
|
| `createHarnessSession(harness, options)` / `HarnessRpcClient` | 函数 / 类 | 在进程内或通过 JSONL 子进程管道驱动标准 `Harness` 会话,统一支持实时事件、问答与成员控制。 |
|
|
31
|
-
| `
|
|
40
|
+
| `runProjectRpc(session, input, write, launchDirectory, initialInput?, options?)` | 函数 | 在应用管理的流上提供 HarnessSession JSONL 协议。启用 `detachOnDisconnect` 后,观察连接断开时 Session 继续运行。 |
|
|
41
|
+
| `createPiExecutor({ version })` / `createCodexExecutor({ version })` | 函数 | 传入版本号时固定内置执行器的实际版本;也可继续使用 `'pi'` / `'codex'` 简写。 |
|
|
32
42
|
| `createExecutorAdapter(declaration)` / `EXECUTOR_ADAPTER_PROTOCOL` | 函数 / 常量 | 声明并校验镜像内安装的外部执行器适配器(协议 `anyswarm-executor-v1`)。 |
|
|
33
43
|
| `DEFAULT_WORKER_IMAGE` / `workerImageFor(selection)` | 常量 / 函数 | 按 Runtime 选中的执行器准备本地 Worker,也可以指定执行器并校验指定版本。 |
|
|
34
44
|
| `getExecutorCapabilities(selection)` | 函数 | 静态查询所选执行器的能力矩阵(无网络副作用)。 |
|
|
@@ -88,7 +98,7 @@ const runtime = await createRuntime({
|
|
|
88
98
|
|
|
89
99
|
- **`models`**:默认使用流式 Responses 协议;Pi 也支持 `protocol: 'chat-completions'` 与 `capabilities: { contextWindow, maxOutputTokens, tools, reasoning }`;可信宿主还可通过 `ModelTransport` 自定义流式传输。上游凭据始终留在可信宿主机。
|
|
90
100
|
- **`filePolicy`**:可选分别调整 `initial`、`snapshot`、`replace`、`export` 与 `session` 阶段的 `maxBytes`、`maxFileBytes`、`maxFiles`、`maxEntries`、`timeoutMs` 以及 `controllerSpoolBytes` / `workerSpoolBytes` 暂存上限。
|
|
91
|
-
- **`getExecutorCapabilities(selection)`**:Pi
|
|
101
|
+
- **`getExecutorCapabilities(selection)`**:Pi支持 `contextFork`、`activeSteer`、`followUp`、`one-at-a-time` 等完整能力;Codex支持 `activeSteer`、`followUp`、`all` 模式且不支持上下文分叉。
|
|
92
102
|
|
|
93
103
|
## Agent 生命周期
|
|
94
104
|
|
package/docs/zh/reference/cli.md
CHANGED
|
@@ -5,56 +5,40 @@ section: 参考手册
|
|
|
5
5
|
order: 16
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
宿主命令为 `anyswarm`。无参数时显示 Quickstart,命令加上 `--help` 可查看选项。Worker 内的 Agent 通过 `swarm` 调用 Bridge 上的 Service。
|
|
9
9
|
|
|
10
|
-
##
|
|
10
|
+
## 宿主命令
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
| 命令 | 用途 |
|
|
12
|
+
| 用途 | 命令 |
|
|
15
13
|
| --- | --- |
|
|
16
|
-
| `anyswarm
|
|
17
|
-
| `anyswarm
|
|
18
|
-
|
|
|
19
|
-
| `anyswarm
|
|
20
|
-
|
|
|
21
|
-
| `anyswarm --
|
|
22
|
-
| `anyswarm --harness <module> --mode rpc [options]` | 通过 JSONL `stdin`/`stdout` 以 RPC 模式运行 Harness,支持 `ready`、`run`、`status`、`stop` 与成员控制 |
|
|
23
|
-
| `anyswarm recover --run-dir <dir> --config <module>` | 在同主机、同次启动归属下对持久化 Run 执行仅清理恢复并输出最终回执 |
|
|
24
|
-
| `anyswarm trace [--root] <runs-dir> [--port 8787] [--open]` | 在 `127.0.0.1` 启动内置浏览器 [Trace Viewer](../trace-viewer.md) |
|
|
14
|
+
| 准备和验证本地环境 | `anyswarm setup`、`anyswarm doctor --smoke` |
|
|
15
|
+
| 升级 CLI | `anyswarm update` 打印当前全局安装对应的 npm 升级命令。在同一 Node/npm 环境下执行该命令。 |
|
|
16
|
+
| 运行可编辑 Harness | `anyswarm run ./project.ts --cwd ./input --config ./config.ts --prompt "检查项目"` |
|
|
17
|
+
| 运行内置 Harness 或连接客户端 | `anyswarm --harness subagents --prompt "读取 README.md" --output-dir ./runs`,或 `anyswarm --harness subagents --mode rpc` |
|
|
18
|
+
| 导出源码与精确绑定的 SDK | `anyswarm eject example --dir ./my-harness` |
|
|
19
|
+
| 查看记录或恢复待清理资源 | `anyswarm trace --root ./runs --port 8787 --open`、`anyswarm recover --run-dir <dir> --config <module>` |
|
|
25
20
|
|
|
26
|
-
|
|
21
|
+
`anyswarm --version` 显示已安装版本。安装方式、本地准备和连接已有 OpenSandbox 的步骤见[快速上手](../quickstart.md)。
|
|
27
22
|
|
|
28
|
-
|
|
23
|
+
## 运行 Harness
|
|
29
24
|
|
|
30
|
-
|
|
31
|
-
# 对当前目录前台运行内置 Subagents
|
|
32
|
-
anyswarm --harness subagents --prompt "修复解析器并补充测试"
|
|
25
|
+
参数可为内置名称、显式 TypeScript 或 ESM 路径,也可为从启动目录解析的 npm 包。内置名称有 `subagents`、`autoresearch`、`taskpool`、`peermesh`、`substrate`、`lead-worker`、`notes` 和 `messages`。项目默认为启动目录,`--cwd` 可指定其他目录,`--config` 可指定可信模块,`--output-dir` 可指定 Run 记录根目录。
|
|
33
26
|
|
|
34
|
-
|
|
35
|
-
anyswarm --harness taskpool \
|
|
36
|
-
--cwd ./my-project \
|
|
37
|
-
--config ./taskpool.config.mjs \
|
|
38
|
-
--output-dir ./runs \
|
|
39
|
-
--prompt "修复所有失败的单元测试"
|
|
27
|
+
单次运行由 prompt 开始。直接用 `run` 启动源码 Harness 时,可以省略 prompt 并使用默认值。标准输出连接终端时,显示 Run、Agent 和可见的 Service 阶段,产物路径、清理状态,以及查看 Trace 的命令。重定向标准输出时,只输出一条 JSON 结果或启动错误。源码和 Harness 诊断写到标准错误。`run` 也可执行普通的可信源码脚本,并传递原始参数。
|
|
40
28
|
|
|
41
|
-
|
|
42
|
-
anyswarm --harness ./review-harness.mjs --prompt "审计错误处理分支"
|
|
29
|
+
多轮客户端使用 `--mode rpc`。收到 JSONL 的 `ready` 后,发送带 `cwd` 和 `prompt` 的 `run` 请求。Harness 支持交互生命周期时可传 `--lifetime interactive`,客户端能回答问题时可传 `--interaction questions`。回应、事件和最终结果写到标准输出。用 `describe` 查询控制能力,用 `stop` 开始清理。[HarnessSession 示例](../../../examples/harness-session/README.md)
|
|
43
30
|
|
|
44
|
-
|
|
45
|
-
anyswarm --harness subagents --mode rpc --output-dir ./runs
|
|
46
|
-
```
|
|
31
|
+
导出后,在导出目录执行 `npm install`,再用项目本地 CLI 启动可编辑入口,例如 `npm run start -- --prompt "检查项目"`。[Code](../../../examples/code/README.md) 和 [Personal](../../../examples/super/README.md) 展示进阶 SDK 用法。
|
|
47
32
|
|
|
48
|
-
|
|
49
|
-
- **模块解析规则**:可传内置名称、显式 `.mjs`/ESM `.js` 路径,或当前启动目录已安装的 npm 包名。
|
|
50
|
-
- **RPC 协议(`--mode rpc`)**:`stdout` 输出 JSONL 协议帧,`stderr` 输出诊断信息。收到 `ready` 后发送包含 `cwd` 与 `prompt` 的 `run` 请求启动任务。
|
|
33
|
+
### AutoResearch
|
|
51
34
|
|
|
52
|
-
|
|
35
|
+
AutoResearch 是非交互研究示例。在独立 Sandbox 中启动平级成员,通过研究 Service 协作,并将候选、train 和 final 记录保留在 [Trace Viewer](../trace-viewer.md)。
|
|
36
|
+
|
|
37
|
+
```sh
|
|
38
|
+
anyswarm --harness autoresearch --config ./research.ts --prompt "研究目标" --output-dir ./runs
|
|
39
|
+
```
|
|
53
40
|
|
|
54
|
-
|
|
55
|
-
- **人机问答(`--interaction none|questions`)**:默认 `none`;设为 `questions` 表示客户端支持在运行中途响应 Agent 发起的授权提问。
|
|
56
|
-
- **消息通道**:带 `--prompt` 的前台命令会立即发起工作;在 `interactive` 或 `questions` 模式下,后续控制命令通过 JSONL 通道交互。`--mode rpc` 则等待 `run` 命令后再启动。
|
|
57
|
-
- **支持的操作**:`describe`(查询能力)、`status`(读取快照)、`answer`(按 `questionId` 回答提问)、`stop`(收尾整次 Run);成员查询与控制包括 `agent.getState`、`agent.getStats`、`agent.getMessages` 以及 `agent.configure`、`agent.compact`、`agent.abortRetry`、`agent.clearQueue`、`agent.send`、`agent.interrupt`、`agent.stop`(实际开放范围由具体 Harness 与执行器决定)。最终结果会分别记录报告保存状态与清理事实。
|
|
41
|
+
[AutoResearch 指南](../../../examples/autoresearch/README.md)包含固定版本的 FrontierCS-2 demo 准备步骤及源码导出方式。
|
|
58
42
|
|
|
59
43
|
## 统一环境变量清单
|
|
60
44
|
|
|
@@ -112,7 +96,7 @@ swarm agent stop <agent-id> --request-id stop-1
|
|
|
112
96
|
在已构建的 `anyswarm` 源码仓库中开发或运行 `taskpool`/`peermesh` 评测夹具时,还可以使用以下两个开发者脚本(通过 `stdin` JSON 行支持 `status`、`kickoff`、`input`、`wait`、`stop`):
|
|
113
97
|
|
|
114
98
|
```bash
|
|
115
|
-
node dist/scripts/run-harness.js --config <host-config.
|
|
99
|
+
node dist/scripts/run-harness.js --config <host-config.ts>
|
|
116
100
|
node dist/scripts/read-harness-result.js --run-directory <dir> --runtime-id <id>
|
|
117
101
|
```
|
|
118
102
|
|
|
@@ -121,7 +105,7 @@ node dist/scripts/read-harness-result.js --run-directory <dir> --runtime-id <id>
|
|
|
121
105
|
## `anyswarm recover`(持久化恢复清理)
|
|
122
106
|
|
|
123
107
|
```bash
|
|
124
|
-
anyswarm recover --run-dir /private/runs/original-runtime-id --config /private/recovery.
|
|
108
|
+
anyswarm recover --run-dir /private/runs/original-runtime-id --config /private/recovery.ts
|
|
125
109
|
```
|
|
126
110
|
|
|
127
111
|
配置模块应默认导出原始 Runtime options 对象,或返回该对象的零参数异步工厂。该命令仅以清理模式恢复控制权、调用 `close()` 并打印清理回执;只有确认清理完成时才会以退出码 `0` 结束。执行恢复要求满足同主机、同次启动(same-host, same-boot)的独占写入归属且持久化配置匹配;账本会继续跟踪未完成清理的资源,直至对账确认执行已停止且资源已删除。必需导出失败时,在回执中的 `expiresAt` 前重试。详见 [Runtime 持久化恢复](../runtime.md#6-持久化恢复与-kubernetes)。
|
package/docs/zh/runtime.md
CHANGED
|
@@ -64,7 +64,7 @@ const runtime = await createRuntime({
|
|
|
64
64
|
|
|
65
65
|
调用成功后,`anyswarm` 会在宿主机自动初始化本次运行的目录、Model Gateway 和 Service Bridge,但**尚未启动任何沙箱**——具体何时启动 Agent 由你的 Harness 调用 `runtime.spawn()` 决定(见下一章 [Agent 与 Profile](agents.md))。
|
|
66
66
|
|
|
67
|
-
> **灵活的执行器与模型选项**:除了 `'pi'
|
|
67
|
+
> **灵活的执行器与模型选项**:除了 跟随实际安装版本的 `'pi'` 和 `'codex'` 简写外,还可以用 `createPiExecutor({ version: '1.4.0' })`、`createCodexExecutor(...)` 或 `createExecutorAdapter(...)` 指定执行器版本或镜像内自定义执行器;Pi 同时支持 **Responses** 与 **Chat Completions** 协议(详见 [SDK 与 API 参考](reference/api.md))。
|
|
68
68
|
|
|
69
69
|
### 自定义推理模型
|
|
70
70
|
|
|
@@ -208,7 +208,7 @@ const runtime = await recoverRuntime({
|
|
|
208
208
|
- **纯清理恢复(CLI)**:如果只需要把中断遗留的沙箱归档并清理干净,可传入 `cleanupOnly: true` 或直接运行:
|
|
209
209
|
|
|
210
210
|
```bash
|
|
211
|
-
anyswarm recover --run-dir /private/runs/original-runtime-id --config /private/recovery.
|
|
211
|
+
anyswarm recover --run-dir /private/runs/original-runtime-id --config /private/recovery.ts
|
|
212
212
|
```
|
|
213
213
|
|
|
214
214
|
配置模块的默认导出可以是原始 `options` 对象或返回该对象的无参异步函数。`anyswarm recover` 只接管清理权限、调用 `close()` 并打印回执(全部清理完成退出码为 `0`,仍有未清理项则为 `1`,未清理资源继续留在待处理清单中)。如果必选产物导出失败,沙箱会暂留至 `expiresAt`,请在到期前排查重试;若输出标记 `retain-at-risk`,说明底层服务未能确认预期的保留时长。
|
package/docs/zh/sandbox.md
CHANGED
|
@@ -23,10 +23,10 @@ export OPEN_SANDBOX_API_KEY='<管理员提供的密钥>'
|
|
|
23
23
|
anyswarm setup --mode existing \
|
|
24
24
|
--endpoint https://sandbox.example.net \
|
|
25
25
|
--public-url https://runtime.example.net/anyswarm
|
|
26
|
-
anyswarm doctor --smoke
|
|
26
|
+
anyswarm doctor --mode existing --smoke
|
|
27
27
|
```
|
|
28
28
|
|
|
29
|
-
`--mode existing` 会先校验管理端 API 密钥,再保存远程连接配置(写入仅当前用户可读写的本地配置文件),不会提前启动容器。随后运行 `anyswarm doctor --smoke`,会创建一个临时沙箱并走完完整清理流程,依次验证「宿主机访问 Worker → 沙箱回连 Runtime → 文件导出 → 沙箱销毁」整条链路。
|
|
29
|
+
`--mode existing` 会先校验管理端 API 密钥,再保存远程连接配置(写入仅当前用户可读写的本地配置文件),不会提前启动容器。随后运行 `anyswarm doctor --mode existing --smoke`,会创建一个临时沙箱并走完完整清理流程,依次验证「宿主机访问 Worker → 沙箱回连 Runtime → 文件导出 → 沙箱销毁」整条链路。
|
|
30
30
|
|
|
31
31
|
在远程模式下,Worker 镜像由服务端管理员预置,使用 `ANYSWARM_WORKER_IMAGE` 选择。运行 `anyswarm` 的控制端只需具备 Node.js 环境和网络连通性。跨不可信网络传输凭据时,请务必启用 TLS(HTTPS)或走可信私网。
|
|
32
32
|
|
|
@@ -49,7 +49,7 @@ const remote = createSandbox({
|
|
|
49
49
|
|
|
50
50
|
连接配置的生效优先级从高到低为:**SDK/CLI 显式传参 > 环境变量 > `anyswarm setup` 保存的本地配置 > 本地默认值**。`createSandbox()` 只负责校验并冻结配置,不会立即创建容器;直到调用 `runtime.spawn()` 时才会实际分配沙箱。
|
|
51
51
|
|
|
52
|
-
如果沙箱运行在远程主机或反向代理之后,可在 `createRuntime()` 中通过 `connection: { publicUrl: 'https://runtime.example.net/anyswarm' }` 声明一个沙箱可访问的统一回调地址(反向代理的路径前缀会自动保留;高级场景可配合 `bindHost` 和 `bindPort` 固定监听端口)。运行 `anyswarm doctor` 可查看当前生效的回调地址;若沙箱无法回连 Runtime,`--smoke` 探测会明确提示排查回调地址、监听端口和代理路由。同时,OpenSandbox 服务端也需向外发布控制端可达的 endpoint 及所需请求头。
|
|
52
|
+
如果沙箱运行在远程主机或反向代理之后,可在 `createRuntime()` 中通过 `connection: { publicUrl: 'https://runtime.example.net/anyswarm' }` 声明一个沙箱可访问的统一回调地址(反向代理的路径前缀会自动保留;高级场景可配合 `bindHost` 和 `bindPort` 固定监听端口)。运行 `anyswarm doctor --mode existing` 可查看当前生效的回调地址;若沙箱无法回连 Runtime,`--smoke` 探测会明确提示排查回调地址、监听端口和代理路由。同时,OpenSandbox 服务端也需向外发布控制端可达的 endpoint 及所需请求头。
|
|
53
53
|
|
|
54
54
|
## 4. 资源与旧配置迁移
|
|
55
55
|
|
package/docs/zh/services.md
CHANGED
|
@@ -88,6 +88,10 @@ MCP 的 `structuredContent` 成为业务结果。声明输出 Schema 的成功
|
|
|
88
88
|
|
|
89
89
|
关闭或退役时封闭业务入口并收束在途工作。可选的 `exportState` 提供 [Trace Viewer](trace-viewer.md) 可查看的公开 JSON。接入包可以附加真实采集时点、业务版本、字段说明、摘要和表格配置。状态导出用于观测,业务持久化由 Service 自己提交。[Runtime 恢复](runtime.md) 说明原 Run 和存储身份要求。
|
|
90
90
|
|
|
91
|
+
要在 Run 进行中展示业务状态,实现 `ServiceAdapter.readState({ signal })`,返回 `{ state, capturedAt, revision?, presentation? }`。明确选择可公开字段,为 I/O 传入 signal,并提供 ISO 格式的采集时点。摘要项和表格列使用 JSON Pointer 指定取值位置。展示提示可供读取实时状态的 SDK 或 RPC 客户端使用。
|
|
92
|
+
|
|
93
|
+
Runtime 的拥有者调用 `runtime.services.listState()` 和 `runtime.services.readState(name)`。HarnessSession 客户端调用 `session.services.list()` 和 `session.services.read(runtimeId, name)`。单次读取限时一秒,上限 64 KiB。失败回执区分不支持、不可用、超时和错误,并在可用时附上上一次采集时间。这个读取入口只向宿主开放。[Persistent Board 示例](../../examples/services/persistent-board/README.md#watch-a-live-board) 展示了通过公开 SDK 开发的 Service 和 Harness。
|
|
94
|
+
|
|
91
95
|
## 更新现有 SDK 调用
|
|
92
96
|
|
|
93
97
|
把 `registerService({ manifest, adapter })` 改成 `register(name, definition)`。仍需对接已有 Manifest 协议的应用可以用 `services.register(...serviceFromManifest({ manifest, adapter }))`。将 `Profile.session.tools` 移到 `Profile.tools`,将 `Profile.prompt` 改成 `Profile.addedSystemPrompt`。通用 CLI 成功响应的业务数据在 `.result`,本地命令用法错误仍写入 stderr。旧 Trace 文件仍可读取。
|
package/examples/README.md
CHANGED
|
@@ -12,6 +12,16 @@ artifact export. Its same default definition is used by SDK, foreground and
|
|
|
12
12
|
RPC. [HarnessSession clients](harness-session/README.md) exercise the public
|
|
13
13
|
protocol with a zero-Runtime fixture.
|
|
14
14
|
|
|
15
|
+
## AutoResearch showcase
|
|
16
|
+
|
|
17
|
+
[AutoResearch](autoresearch/README.md) runs equal peers through a finite
|
|
18
|
+
research task with shared budgets, a trusted evaluator and browser Trace
|
|
19
|
+
records. The guide includes the pinned FrontierCS-2 demo and a configurable
|
|
20
|
+
evaluator path.
|
|
21
|
+
|
|
22
|
+
[Code](code/README.md), [Personal](super/README.md), and
|
|
23
|
+
[HarnessSession](harness-session/README.md) are advanced SDK examples.
|
|
24
|
+
|
|
15
25
|
## Choose a collaboration example
|
|
16
26
|
|
|
17
27
|
| Directory | Coordination | Services created by the example | Facilities you supply |
|
|
@@ -39,18 +49,15 @@ number.
|
|
|
39
49
|
```sh
|
|
40
50
|
npm init -y
|
|
41
51
|
npm install --ignore-scripts "${ANYSWARM_SDK_ARCHIVE:-@anyswarm/core@0.5.0}"
|
|
42
|
-
npm install --save-dev typescript @types/node
|
|
43
52
|
sdk=node_modules/@anyswarm/core
|
|
44
53
|
cp -R "$sdk"/examples/subagents demo
|
|
45
54
|
cd demo
|
|
46
|
-
|
|
47
|
-
npm run build
|
|
48
|
-
npm run start -- --cwd /absolute/path/to/project --prompt 'Implement and verify the requested change'
|
|
55
|
+
../node_modules/.bin/anyswarm run ./project.ts --cwd /absolute/path/to/project --prompt 'Implement and verify the requested change'
|
|
49
56
|
```
|
|
50
57
|
|
|
51
58
|
For another collaboration mechanism, replace `subagents` in the copy command
|
|
52
59
|
with `taskpool`, `peermesh`, `lead-worker` or `substrate`. The copied project
|
|
53
|
-
resolves the SDK
|
|
60
|
+
resolves the SDK from its parent installation. The CLI loads TS directly, including multi-file imports and TS configuration.
|
|
54
61
|
|
|
55
62
|
For current repository sources, build the matching SDK archive from that
|
|
56
63
|
checkout's root first. Record its commit and SHA-256, and set the absolute
|
|
@@ -59,27 +66,43 @@ archive path before running the commands above.
|
|
|
59
66
|
```sh
|
|
60
67
|
npm ci --ignore-scripts
|
|
61
68
|
pack_dir=$(mktemp -d)
|
|
62
|
-
archive=$(npm
|
|
63
|
-
sha256sum "$
|
|
64
|
-
export ANYSWARM_SDK_ARCHIVE="$
|
|
69
|
+
archive=$(npm run --silent pack:release -- "$pack_dir")
|
|
70
|
+
sha256sum "$archive"
|
|
71
|
+
export ANYSWARM_SDK_ARCHIVE="$archive"
|
|
65
72
|
```
|
|
66
73
|
|
|
67
74
|
When editing an existing example directly in this checkout, install this
|
|
68
75
|
archive with `npm install --no-save "$ANYSWARM_SDK_ARCHIVE"` in that example's
|
|
69
|
-
directory before its
|
|
76
|
+
directory before running its TypeScript entry.
|
|
70
77
|
|
|
71
78
|
Use the example's README for its configuration and external facilities.
|
|
72
|
-
Run `anyswarm
|
|
79
|
+
Run `anyswarm run /absolute/path/to/example/project.ts --prompt '…'` from
|
|
73
80
|
the input project to use the same editable example from elsewhere. The
|
|
74
81
|
CLI also includes each example's built-in name as a convenience. The host
|
|
75
82
|
captures the initial directory and writes outputs outside it by default.
|
|
76
|
-
Use `--config` for trusted
|
|
83
|
+
Use `--config ./config.ts` for trusted TypeScript run configuration.
|
|
77
84
|
|
|
78
85
|
The model, executor and Sandbox environment variables are documented in
|
|
79
86
|
[Quickstart](../docs/en/quickstart.md). Existing scoped variables remain
|
|
80
87
|
fallbacks. Separate benchmarks take explicit configuration and fixtures.
|
|
81
88
|
See [FATE](../benchmarks/fate/README.md) and [Lead–Worker Orders](../benchmarks/lead-worker-orders/README.md).
|
|
82
89
|
|
|
90
|
+
## Export an editable Harness
|
|
91
|
+
|
|
92
|
+
```sh
|
|
93
|
+
anyswarm eject example --dir ./my-harness
|
|
94
|
+
cd my-harness
|
|
95
|
+
npm install
|
|
96
|
+
npm run start
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
Edit `business.ts` and run it again to see your own result. Export includes the
|
|
100
|
+
complete source and an SDK archive dependency bound to that package's contents.
|
|
101
|
+
Run `npm install` to install that local archive when moving the export to another
|
|
102
|
+
machine. `anyswarm-source.json` records source revision, SDK source, content and
|
|
103
|
+
archive digests. Application teams register the same source manifest for
|
|
104
|
+
`anyswarm eject code`, `anyswarm eject autoresearch` and `anyswarm eject super`.
|
|
105
|
+
|
|
83
106
|
## Smaller SDK tutorials
|
|
84
107
|
|
|
85
108
|
| Example | Host entry | What to verify |
|
|
@@ -98,7 +121,7 @@ The [Service examples index](services/README.md) also links the optional
|
|
|
98
121
|
|
|
99
122
|
Read the Host entry for Worker settings, the named registrations and each
|
|
100
123
|
Profile’s grants. Follow the runner for Agent input, business checks and the
|
|
101
|
-
close receipt. Each example's README gives its
|
|
124
|
+
close receipt. Each example's README gives its launch and evidence paths.
|
|
102
125
|
|
|
103
126
|
## Repository boundaries
|
|
104
127
|
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Editable TypeScript Harness
|
|
2
|
+
|
|
3
|
+
Run this complete example with the installed AnySwarm CLI.
|
|
4
|
+
|
|
5
|
+
```sh
|
|
6
|
+
anyswarm run ./harness.ts
|
|
7
|
+
anyswarm run ./harness.ts --config ./config.ts --prompt 'Create a greeting'
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
Edit `business.ts` and run the command again to change the result. `harness.ts`
|
|
11
|
+
defines the Harness lifecycle, `business.ts` contains its rule, and `config.ts`
|
|
12
|
+
provides its default public configuration. This example uses no model or Sandbox.
|
|
13
|
+
|
|
14
|
+
`anyswarm eject example --dir ./my-harness` exports these sources and a local SDK
|
|
15
|
+
archive. The generated package depends on that archive, so `npm install` retains
|
|
16
|
+
the exact candidate SDK. Direct `anyswarm run` can also resolve the invoking CLI's SDK.
|
|
17
|
+
Use the same candidate CLI recorded in `anyswarm-source.json`.
|
|
18
|
+
|
|
19
|
+
Application authors use the same export mechanism by providing `eject.json` in
|
|
20
|
+
`examples/code`, `examples/autoresearch`, or `examples/super`. Its `apiVersion`
|
|
21
|
+
is `1`, `entry` names the runnable TS entry, and `files` explicitly lists every
|
|
22
|
+
relative source, prompt, Service, public config and README needed by that app.
|
|
23
|
+
Credentials, `.env`, runtime records, dependencies and build directories are
|
|
24
|
+
excluded by the engine. Exporting into a nonempty directory fails.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { Harness } from '@anyswarm/core';
|
|
2
|
+
import { greeting } from './business.js';
|
|
3
|
+
import defaults from './config.js';
|
|
4
|
+
|
|
5
|
+
/** A complete finite Harness with editable business logic and no external resources. */
|
|
6
|
+
const harness: Harness = {
|
|
7
|
+
apiVersion: 1,
|
|
8
|
+
id: 'editable-typescript-example',
|
|
9
|
+
lifetimes: ['task'],
|
|
10
|
+
async run(context) {
|
|
11
|
+
context.markRunning();
|
|
12
|
+
const config = (context.configuration ?? defaults) as typeof defaults;
|
|
13
|
+
const message = greeting(config.name);
|
|
14
|
+
context.updateStatus({ business: { message } });
|
|
15
|
+
return {
|
|
16
|
+
outcome: 'completed', reason: 'greeting-created', result: { message }, artifacts: [],
|
|
17
|
+
export: { status: 'complete' }, cleanup: { status: 'complete' },
|
|
18
|
+
};
|
|
19
|
+
},
|
|
20
|
+
};
|
|
21
|
+
export default harness;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# AutoResearch
|
|
2
|
+
|
|
3
|
+
An AutoResearch Run starts equal peers in separate AnySwarm Sandboxes. Each peer chooses a direction, writes a patch, and can read, review and build on another peer's patch. The Harness provides the shared research Service and enforces the team's budget. A trusted evaluator decides whether a candidate is valid and returns the score used for selection.
|
|
4
|
+
|
|
5
|
+
## FrontierCS-2 quickstart
|
|
6
|
+
|
|
7
|
+
Use a Linux x86-64 machine with Git LFS, Python 3, a local Docker daemon and an existing authenticated OpenSandbox deployment with `dns+nft` egress. Prepare a supported Pi Worker using the normal AnySwarm setup flow. Configure the existing Kimi K3 Responses route using `ANYSWARM_MODEL_URL`, `ANYSWARM_MODEL_TOKEN`, `ANYSWARM_MODEL_PROVIDER=kimi_proxy` and `ANYSWARM_MODEL_ID=k3`. Keep the token in trusted host configuration if your proxy requires one.
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
anyswarm eject autoresearch --dir ./research-demo
|
|
11
|
+
cd ./research-demo
|
|
12
|
+
npm install
|
|
13
|
+
npm exec -- anyswarm run ./prepare-demo.ts
|
|
14
|
+
npm run start -- --config ./frontiercs2-config.ts --prompt "Run the prepared FrontierCS-2 task." --output-dir ./runs
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
Preparation prints prerequisite checks and the resource plan. It reports K3 configuration and HTTP route reachability separately, and reports inference as not attempted. It fetches only the pinned task and shared dependencies, checks the Pumpkin release hash, builds images, completes an independent no-model reference run and checks the authorized submission role. Initial image builds can take several minutes. Rerunning preparation reuses verified materials and images. Reference records are environment evidence. The model receives a clean starter and only public train feedback.
|
|
18
|
+
|
|
19
|
+
The demo configuration selects the clean pinned starter and trusted FrontierCS-2 evaluator. The
|
|
20
|
+
terminal prints Run and Agent milestones. Use `anyswarm trace --root ./runs`
|
|
21
|
+
during or after the Run for peer claims, patches, reviews, train scores and final
|
|
22
|
+
records. For a remote controller, forward the Trace port over SSH.
|
|
23
|
+
|
|
24
|
+
The default smoke budget is four Kimi K3 peers, a shared twelve-minute work window and eight train admissions. The demo records actual model usage without capping the request count. The application reserves additional time for final and cleanup. The result includes every frozen candidate, its hash and author, best candidate, Pumpkin record, final result and cleanup receipt. A valid candidate with a low score is a completed evaluation. A run without a valid candidate returns failure, even when it records an official zero for a selected invalid candidate.
|
|
25
|
+
|
|
26
|
+
## Run your own project
|
|
27
|
+
|
|
28
|
+
```sh
|
|
29
|
+
anyswarm --harness autoresearch --config ./research.ts --prompt "Your objective" --output-dir ./runs
|
|
30
|
+
anyswarm eject autoresearch --dir ./my-research
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
The trusted TypeScript configuration exports a `ResearchConfiguration` object. Set `targetPath` relative to the invocation directory, `goal`, `direction` (`max` or `min`), optional `targetScore`, shared `budget` with an optional `maxModelRequests`, `model`, `executor`, `image`, `sandbox` and `connection`. The evaluator receives an immutable copy of the patch. Its `train(patch, signal, admitted)` returns `{valid, score, feedback}`. Call `admitted` with the trusted job identifier when one exists. `final(patch, signal)` returns the result of the independent final evaluation. The optional `start` and `close` own evaluator resources. All callbacks run as trusted host code. Run candidate code only inside an evaluator-owned isolated environment. Apply the patch to a fresh copy of the baseline, keep evaluator rules inaccessible to it and honor each supplied abort signal.
|
|
34
|
+
|
|
35
|
+
The exported `project.ts` is the editable Harness. Run `npm install` in the export directory
|
|
36
|
+
to install the pinned SDK, then run
|
|
37
|
+
`npm run start -- --cwd /path/to/project --config ./research.ts --prompt "Your objective"`.
|
|
38
|
+
The export includes the FrontierCS-2 preparation and adapter sources.
|
|
39
|
+
|
|
40
|
+
See [the requirements](REQUIREMENTS.zh.md).
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# AutoResearch 需求
|
|
2
|
+
|
|
3
|
+
用户配置目标、可信评测和总预算后,团队自动研究、评测、选择候选并收尾。单次命令显示运行阶段和清理结果。Trace 提供认领方向、候选、train 反馈、消息、复核和回执,可在运行中查看,结束后回放。SDK 和 RPC 客户端可以向成员发送建议、中断当前轮次或停止成员。
|
|
4
|
+
|
|
5
|
+
FrontierCS-2 demo 固定 `7e48965c7cef2a567c2669c8e2f10b06386289c9` 的 `binary_fuse_filter` 和该版本的 Pumpkin。团队至少四名平级 AnySwarm Worker,同一次 Run 使用真实 `kimi_proxy/k3`,没有统一 Lead。成员自行认领研究方向、交流和选择沿用的成果。Harness 管理资源、共享预算与可信评测。demo 的研究窗口为 12 分钟,官方 train 额度为 8 次,记录模型请求数但不限制次数。官方 train 公开反馈进入看板,final 结果只写入用户记录。
|
|
6
|
+
|
|
7
|
+
参照[快速上手](README.md)准备并运行。
|
|
8
|
+
|
|
9
|
+
验收从候选包开始。独立 reference 完成无模型 train/final。实际 demo 从干净 starter 开始,保存四路真实 K3 活动重叠的证据、至少一次可关联到具体候选的同行复核或采用,以及 Worker 候选、官方 train、最终保存、final 和资源回收的关联记录。记录全队的资源、模型用量与费用。未知回执和待清理资源保留可核对的标识。官方零分作为求解结果记录。
|
|
10
|
+
|
|
11
|
+
研究范围以 [#337](https://github.com/AnySwarm/anyswarm/issues/337) 和随后确认的四成员、Agensh 式扁平协作、实时 Trace 为准。宿主入口遵循 [#351](https://github.com/AnySwarm/anyswarm/issues/351)。
|