@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
|
@@ -40,19 +40,19 @@ This section is generated from executable exports and checked against the source
|
|
|
40
40
|
| [test-support/taskpool-legacy/services-bridge.ts](../../test-support/taskpool-legacy/services-bridge.ts) | `7bb38b8ef1d8930a89accbf2cdd72695c4c27f5754ab3b85ee43d3f44ada5ebd` |
|
|
41
41
|
| [examples/services/mathlib-search/service.json](../../examples/services/mathlib-search/service.json) | `caecf2c6344e0f2777b7135a3c6a7fccb3f93d618d11430480b800551038bfae` |
|
|
42
42
|
| [src/errors.ts](../../src/errors.ts) | `c2b15623faa55162f9e0474b9810d1c5f1eea6255520cd423b0dad155511dc65` |
|
|
43
|
-
| [src/core/index.ts](../../src/core/index.ts) | `
|
|
44
|
-
| [src/core/types.ts](../../src/core/types.ts) | `
|
|
45
|
-
| [src/core/services.ts](../../src/core/services.ts) | `
|
|
46
|
-
| [src/core/service-types.ts](../../src/core/service-types.ts) | `
|
|
43
|
+
| [src/core/index.ts](../../src/core/index.ts) | `a78f159604cb21264b987079532cf295832420374297d976e1f838e536a103d0` |
|
|
44
|
+
| [src/core/types.ts](../../src/core/types.ts) | `9245229cd72d6408cb0fe801b8e0181603d5afcb27c50fb689a2e8e404d446d5` |
|
|
45
|
+
| [src/core/services.ts](../../src/core/services.ts) | `5accc123c4c681a3c4d7aadad616e44e83725b52aead10250b172b127f784b1e` |
|
|
46
|
+
| [src/core/service-types.ts](../../src/core/service-types.ts) | `f30edaca5a6fe5d40b3ba90f49210af32aca3b773f74ff005fa0823556d21e93` |
|
|
47
47
|
| [src/core/service-lifecycle-types.ts](../../src/core/service-lifecycle-types.ts) | `d2eef2921b59ed7fdb6bbf91ee44802e96996bed85277c3f01193aad19767570` |
|
|
48
|
-
| [src/core/service-observation-types.ts](../../src/core/service-observation-types.ts) | `
|
|
49
|
-
| [src/core/service-process.ts](../../src/core/service-process.ts) | `
|
|
50
|
-
| [src/core/mcp-service.ts](../../src/core/mcp-service.ts) | `
|
|
51
|
-
| [src/core/sandbox/opensandbox-backend.ts](../../src/core/sandbox/opensandbox-backend.ts) | `
|
|
52
|
-
| [src/core/sandbox/executor-driver.ts](../../src/core/sandbox/executor-driver.ts) | `
|
|
48
|
+
| [src/core/service-observation-types.ts](../../src/core/service-observation-types.ts) | `150ea4a963166f7de86d0158f19e032f9518109fc2ad97cdfd6131ad1c429dc5` |
|
|
49
|
+
| [src/core/service-process.ts](../../src/core/service-process.ts) | `80ce634ac724c9bcff9ecd9b719266f70d8daeece3e3db92f557c67c94b91684` |
|
|
50
|
+
| [src/core/mcp-service.ts](../../src/core/mcp-service.ts) | `ea2cd9865f6252413ea52ee787d357c485470eb2328aaaee029986ed9d01a485` |
|
|
51
|
+
| [src/core/sandbox/opensandbox-backend.ts](../../src/core/sandbox/opensandbox-backend.ts) | `a7aa96e86f1d193929123872432d23454882a014839cd95f23d2a19a3c5cf634` |
|
|
52
|
+
| [src/core/sandbox/executor-driver.ts](../../src/core/sandbox/executor-driver.ts) | `6b3a8a1d93c5bbca00f2df00d75d593344cd02d642e563391e58910a70dbe828` |
|
|
53
53
|
| [src/core/backend-config.ts](../../src/core/backend-config.ts) | `be1c5c7db4876f5632f6f855af3e16e8f59c46a5a76b3f27a934508e15cbdf47` |
|
|
54
54
|
| [src/core/sandbox/opensandbox-provider.ts](../../src/core/sandbox/opensandbox-provider.ts) | `eb98901a846c1ce294621d7a173cec46787ba4bf18b4edc65afc5c867e968c37` |
|
|
55
|
-
| [src/core/sandbox/sandbox-connection.ts](../../src/core/sandbox/sandbox-connection.ts) | `
|
|
55
|
+
| [src/core/sandbox/sandbox-connection.ts](../../src/core/sandbox/sandbox-connection.ts) | `cb7f8d271b986b6dff9cdc29718f0bf03dbd4fe86cc11f12eaf5437edbc7f782` |
|
|
56
56
|
|
|
57
57
|
### TaskPool command operation surface
|
|
58
58
|
|
|
@@ -3100,9 +3100,10 @@ import type { CreateRuntimeOptions, RecoverRuntimeOptions, Runtime } from './typ
|
|
|
3100
3100
|
export type * from './session-types.js';
|
|
3101
3101
|
export { createHarnessSession } from '../harness/project-harness.js';
|
|
3102
3102
|
export type { Harness, HarnessContext, HarnessInput, HarnessInputHandler, HarnessInputPreparation, HarnessJson, HarnessStatusInfo, ProjectHarness, ProjectHarnessContext, ProjectHarnessResult, } from '../harness/project-harness.js';
|
|
3103
|
-
export type { HarnessAgentHandler, HarnessAgentReceipt, HarnessAgentRegistration, HarnessAgents, HarnessAnswer, HarnessAnswerReceipt, HarnessCapability, HarnessDescriptor, HarnessEvent, HarnessInputDescriptor, HarnessInputReceipt, HarnessLifetime, HarnessOperation, HarnessPhase, HarnessQuestion, HarnessQuestionKind, HarnessQuestionRequest, HarnessQuestionSource, HarnessRequest, HarnessDispatchRequest, HarnessResult, HarnessSession, HarnessSessionOptions, HarnessStartReceipt, HarnessState, HarnessStopReceipt, HarnessSubscriptionOptions, } from '../harness/harness-session-types.js';
|
|
3103
|
+
export type { HarnessAgentHandler, HarnessAgentReceipt, HarnessAgentRegistration, HarnessAgents, HarnessAnswer, HarnessAnswerReceipt, HarnessCapability, HarnessDescriptor, HarnessEvent, HarnessInputDescriptor, HarnessInputReceipt, HarnessLifetime, HarnessOperation, HarnessPhase, HarnessQuestion, HarnessQuestionKind, HarnessQuestionRequest, HarnessQuestionSource, HarnessRequest, HarnessDispatchRequest, HarnessResult, HarnessSession, HarnessServices, HarnessSessionOptions, HarnessStartReceipt, HarnessState, HarnessStopReceipt, HarnessSubscriptionOptions, } from '../harness/harness-session-types.js';
|
|
3104
3104
|
export { ProjectPreflightError } from '../harness/project-input.js';
|
|
3105
3105
|
export { HarnessRpcClient } from '../harness/project-rpc-client.js';
|
|
3106
|
+
export { runProjectRpc } from '../harness/project-rpc.js';
|
|
3106
3107
|
export type { HarnessRpcClientOptions, HarnessRpcReady, HarnessRpcTransport } from '../harness/project-rpc-client.js';
|
|
3107
3108
|
export { observeProjectRuntime, projectConfiguration, projectResult } from '../harness/project-runtime.js';
|
|
3108
3109
|
export { runInput, type RunInputResult } from '../harness/run-input.js';
|
|
@@ -3114,6 +3115,7 @@ export { httpClient } from '../harness/http.js';
|
|
|
3114
3115
|
export { checkGitProject, seedTeamRepository, seededCheckoutInstruction } from '../harness/project-git.js';
|
|
3115
3116
|
export { initializeGitRepository, importGitTree, commitGitTree, isGitTreePath } from '../harness/git-tree.js';
|
|
3116
3117
|
export { decodeFileSeed as decodeFileTree, snapshotFileSeed as snapshotFileTree, completeDigest as completeFileTreeDigest } from './files/core-file-seed.js';
|
|
3118
|
+
export { resolveFilePolicy } from './file-policy.js';
|
|
3117
3119
|
export { AnySwarmError } from '../errors.js';
|
|
3118
3120
|
export { requestHttp } from '../protocol/http-request.js';
|
|
3119
3121
|
export { stableStringify } from '../protocol/stable-json.js';
|
|
@@ -3126,7 +3128,7 @@ export { DEFAULT_WORKER_IMAGE, workerImageFor } from './worker-image.js';
|
|
|
3126
3128
|
export { ServiceRegistry, serviceFromManifest, inProcessService, httpService, createInProcessAdapter, createHttpJsonAdapter, createServiceReplyAdapter } from './services.js';
|
|
3127
3129
|
export { mcpService } from './mcp-service.js';
|
|
3128
3130
|
export type { McpServiceOptions, McpHttpServiceOptions, McpStdioServiceOptions } from './mcp-service.js';
|
|
3129
|
-
export type { ServiceStateMetadata, ServiceStatePresentation } from './service-observation-types.js';
|
|
3131
|
+
export type { ServiceLiveState, ServiceStateMetadata, ServiceStatePresentation, ServiceStateRead, ServiceStateSource } from './service-observation-types.js';
|
|
3130
3132
|
export { managedProcessLifecycle } from './service-process.js';
|
|
3131
3133
|
export type { ManagedProcessOptions } from './service-process.js';
|
|
3132
3134
|
export type { ServiceLifecycle, ServiceLifecycleContext, ServiceStorage, ServiceResources } from './service-lifecycle-types.js';
|
|
@@ -3152,6 +3154,7 @@ import type { ExecutorSelection } from './executor-adapter.js';
|
|
|
3152
3154
|
import type { FilePolicy } from './file-policy.js';
|
|
3153
3155
|
import type { ServiceRegistration, ServiceRegistry } from './services.js';
|
|
3154
3156
|
import type { ServiceStorage, ServiceResources } from './service-lifecycle-types.js';
|
|
3157
|
+
import type { ServiceStateRead, ServiceStateSource } from './service-observation-types.js';
|
|
3155
3158
|
import type { JsonValue, ServiceDefinition, ServiceToolMode, ServiceManifest } from './service-types.js';
|
|
3156
3159
|
import type { AgentSessionConfig, ContextInput, ContextInputReceipt, ContextSendOptions, RuntimeHooks, RuntimeSession, SessionEvent } from './session-types.js';
|
|
3157
3160
|
export {};
|
|
@@ -3611,6 +3614,8 @@ export interface Runtime {
|
|
|
3611
3614
|
register(input: RuntimeServiceRegistration): Promise<RuntimeServiceDefinition>;
|
|
3612
3615
|
get(id: string): RuntimeServiceDefinition | null;
|
|
3613
3616
|
list(): readonly RuntimeServiceDefinition[];
|
|
3617
|
+
listState(): readonly ServiceStateSource[];
|
|
3618
|
+
readState(serviceId: string): Promise<ServiceStateRead>;
|
|
3614
3619
|
start(input: ServiceRetirement): Promise<RuntimeServiceDefinition>;
|
|
3615
3620
|
stop(input: ServiceRetirement): Promise<RuntimeServiceDefinition>;
|
|
3616
3621
|
restart(input: ServiceRetirement): Promise<RuntimeServiceDefinition>;
|
|
@@ -3711,7 +3716,7 @@ export declare function invokeServiceReply(registration: ServiceRegistration, {
|
|
|
3711
3716
|
/** Business result helper for the in-process compatibility paths. Bridge uses the full reply. */
|
|
3712
3717
|
export declare function invokeService(registration: ServiceRegistration, invocation: ServiceInvocation, timeoutMs?: number): Promise<JsonValue>;
|
|
3713
3718
|
export type ServiceHandler = (input: JsonValue, context: ServiceRequest) => JsonValue | Promise<JsonValue>;
|
|
3714
|
-
export declare function inProcessService(definition: ServiceInterface, handlers: Readonly<Record<string, ServiceHandler
|
|
3719
|
+
export declare function inProcessService(definition: ServiceInterface, handlers: Readonly<Record<string, ServiceHandler>>, observation?: Pick<ServiceAdapter, 'readState'>): ServiceDefinition;
|
|
3715
3720
|
/** Bind an explicit provider-reply handler without inspecting arbitrary business values. */
|
|
3716
3721
|
export declare function createServiceReplyAdapter(invokeReply: NonNullable<ServiceAdapter['invokeReply']>): ServiceAdapter;
|
|
3717
3722
|
export declare function setAdapterPrivateValues(adapter: ServiceAdapter, values: readonly string[]): void;
|
|
@@ -3746,7 +3751,7 @@ export declare function createHttpJsonAdapter({ token, timeoutMs, fetchImpl }?:
|
|
|
3746
3751
|
#### dist/src/core/service-types.d.ts
|
|
3747
3752
|
|
|
3748
3753
|
```ts
|
|
3749
|
-
import type { ServiceStateMetadata } from './service-observation-types.js';
|
|
3754
|
+
import type { ServiceLiveState, ServiceStateMetadata } from './service-observation-types.js';
|
|
3750
3755
|
import type { ServiceLifecycle } from './service-lifecycle-types.js';
|
|
3751
3756
|
export type JsonValue = null | boolean | number | string | JsonValue[] | {
|
|
3752
3757
|
[key: string]: JsonValue;
|
|
@@ -3873,6 +3878,10 @@ export interface ServiceAdapter {
|
|
|
3873
3878
|
confirmQuiescent?(options: {
|
|
3874
3879
|
signal: AbortSignal;
|
|
3875
3880
|
}): boolean | Promise<boolean>;
|
|
3881
|
+
/** Optional host-only read of an explicitly public, bounded projection while ready. */
|
|
3882
|
+
readState?(options: {
|
|
3883
|
+
signal: AbortSignal;
|
|
3884
|
+
}): ServiceLiveState | Promise<ServiceLiveState>;
|
|
3876
3885
|
/** Optional bounded host-only snapshot called during retirement or Runtime close. */
|
|
3877
3886
|
exportState?(options: {
|
|
3878
3887
|
signal: AbortSignal;
|
|
@@ -3929,7 +3938,8 @@ export interface ServiceLifecycle {
|
|
|
3929
3938
|
#### dist/src/core/service-observation-types.d.ts
|
|
3930
3939
|
|
|
3931
3940
|
```ts
|
|
3932
|
-
|
|
3941
|
+
import type { JsonValue } from './service-types.js';
|
|
3942
|
+
/** Data-only display hints evaluated against a JSON state using JSON Pointer. */
|
|
3933
3943
|
export interface ServiceStatePresentation {
|
|
3934
3944
|
summary?: readonly {
|
|
3935
3945
|
label: string;
|
|
@@ -3951,6 +3961,25 @@ export interface ServiceStateMetadata {
|
|
|
3951
3961
|
description?: string;
|
|
3952
3962
|
presentation?: ServiceStatePresentation;
|
|
3953
3963
|
}
|
|
3964
|
+
/** Explicit public projection produced by a running Service. */
|
|
3965
|
+
export interface ServiceLiveState {
|
|
3966
|
+
readonly state: JsonValue;
|
|
3967
|
+
readonly capturedAt: string;
|
|
3968
|
+
readonly revision?: string;
|
|
3969
|
+
readonly presentation?: ServiceStatePresentation;
|
|
3970
|
+
}
|
|
3971
|
+
export interface ServiceStateSource {
|
|
3972
|
+
readonly name: string;
|
|
3973
|
+
readonly supported: boolean;
|
|
3974
|
+
}
|
|
3975
|
+
export type ServiceStateRead = (ServiceLiveState & {
|
|
3976
|
+
readonly status: 'available';
|
|
3977
|
+
}) | {
|
|
3978
|
+
readonly status: 'unsupported' | 'timeout' | 'error' | 'unavailable';
|
|
3979
|
+
readonly reason: string;
|
|
3980
|
+
/** Last successful capture by this Service instance, when available. */
|
|
3981
|
+
readonly capturedAt?: string;
|
|
3982
|
+
};
|
|
3954
3983
|
```
|
|
3955
3984
|
|
|
3956
3985
|
#### dist/src/core/service-process.d.ts
|
|
@@ -3977,7 +4006,7 @@ export type ProcessIdentity = {
|
|
|
3977
4006
|
export declare function processIdentity(pid: number): Promise<ProcessIdentity | undefined>;
|
|
3978
4007
|
export declare function matchProcessIdentity(prior: ProcessIdentity): Promise<ProcessIdentity | undefined>;
|
|
3979
4008
|
export declare function stopManagedProcess(prior: ProcessIdentity, signal: AbortSignal): Promise<void>;
|
|
3980
|
-
/**
|
|
4009
|
+
/** Same-host process ownership with argv execution and PID reuse protection. */
|
|
3981
4010
|
export declare function managedProcessLifecycle(options: ManagedProcessOptions): ServiceLifecycle;
|
|
3982
4011
|
```
|
|
3983
4012
|
|
|
@@ -4064,6 +4093,7 @@ interface BackendAgent {
|
|
|
4064
4093
|
started?: boolean;
|
|
4065
4094
|
executionEpoch?: number;
|
|
4066
4095
|
sessionReady?: boolean;
|
|
4096
|
+
executorVersion?: string;
|
|
4067
4097
|
loadedResources?: readonly unknown[];
|
|
4068
4098
|
activeMessageId?: string;
|
|
4069
4099
|
sessionCommands?: Map<string, {
|
|
@@ -4078,6 +4108,7 @@ interface BackendAgent {
|
|
|
4078
4108
|
decisions?: Set<string>;
|
|
4079
4109
|
workerStartDispatched?: boolean;
|
|
4080
4110
|
polling?: Promise<void>;
|
|
4111
|
+
eventRead?: Promise<boolean>;
|
|
4081
4112
|
submissions?: Map<string, InputSubmission>;
|
|
4082
4113
|
executionStopped?: boolean;
|
|
4083
4114
|
lease?: {
|
|
@@ -4352,9 +4383,8 @@ type Model = ModelConfig;
|
|
|
4352
4383
|
export interface ExecutorDriver {
|
|
4353
4384
|
readonly kind: string;
|
|
4354
4385
|
readonly name: string;
|
|
4355
|
-
readonly version
|
|
4386
|
+
readonly version?: string;
|
|
4356
4387
|
readonly capabilities: ExecutorCapabilities;
|
|
4357
|
-
readonly compatibleVersions: readonly string[];
|
|
4358
4388
|
readonly adapter?: ExecutorAdapter;
|
|
4359
4389
|
readonly defaultMaxOutputTokens?: null;
|
|
4360
4390
|
assertEnvironment?(environment: Readonly<Record<string, string>> | undefined): void;
|
|
@@ -4367,6 +4397,7 @@ export interface ExecutorDriver {
|
|
|
4367
4397
|
model: Model;
|
|
4368
4398
|
baseUrl: string;
|
|
4369
4399
|
forkSession: boolean;
|
|
4400
|
+
version: string;
|
|
4370
4401
|
}): {
|
|
4371
4402
|
command: 'pi';
|
|
4372
4403
|
args: string[];
|
|
@@ -4384,6 +4415,8 @@ export interface ExecutorDriver {
|
|
|
4384
4415
|
externalExecutor: ExecutorAdapter;
|
|
4385
4416
|
};
|
|
4386
4417
|
}
|
|
4418
|
+
/** Preserve the contract for explicitly prepared deployments without a version pin. */
|
|
4419
|
+
export declare function legacyImageExecutorVersion(kind: string): "0.172.0" | "1.3.0" | undefined;
|
|
4387
4420
|
export declare function createPiExecutor({ version }?: {
|
|
4388
4421
|
version?: string;
|
|
4389
4422
|
}): BuiltinExecutorSelection;
|
|
@@ -4600,6 +4633,7 @@ interface ConnectionInput {
|
|
|
4600
4633
|
apiKey?: string;
|
|
4601
4634
|
endpointHost?: string;
|
|
4602
4635
|
advertiseHost?: string;
|
|
4636
|
+
advertiseHostDiscovery?: 'docker-network';
|
|
4603
4637
|
publicUrl?: string;
|
|
4604
4638
|
image?: string;
|
|
4605
4639
|
useServerProxy?: boolean;
|
|
@@ -4616,6 +4650,7 @@ export declare function resolveSandboxConnectionWithSources(input?: ConnectionIn
|
|
|
4616
4650
|
lifecycleBaseUrl: string;
|
|
4617
4651
|
apiKey: string | undefined;
|
|
4618
4652
|
advertiseHost: string | undefined;
|
|
4653
|
+
advertiseHostDiscovery: "docker-network" | undefined;
|
|
4619
4654
|
publicUrl: string | undefined;
|
|
4620
4655
|
image: string | undefined;
|
|
4621
4656
|
useServerProxy: boolean | undefined;
|
|
@@ -66,9 +66,26 @@ Durable state can outlive a Session, but runtime recovery still has to validate
|
|
|
66
66
|
|
|
67
67
|
The SQL below is the complete exported create-schema text, including checks, keys and indexes. It is schema text, not an export of a user database. The `tasks` interpolation is expanded. Constructors initialize the current schema on new databases. Shared `operations` declarations intentionally appear in several owners because the services can share a SQLite connection.
|
|
68
68
|
|
|
69
|
+
### Personal inbox, work and delivery
|
|
70
|
+
|
|
71
|
+
Source: [examples/super/inbox.ts](../../examples/super/inbox.ts); source SHA-256: `501f767c001a5d981aa000c26c2eaf1f9ed30a960ba98114b788ad11f7945f65`.
|
|
72
|
+
|
|
73
|
+
```sql
|
|
74
|
+
PRAGMA journal_mode = WAL;
|
|
75
|
+
PRAGMA synchronous = FULL;
|
|
76
|
+
CREATE TABLE IF NOT EXISTS jobs (id TEXT PRIMARY KEY, thread INTEGER UNIQUE NOT NULL, pull INTEGER UNIQUE, data TEXT NOT NULL);
|
|
77
|
+
CREATE TABLE IF NOT EXISTS events (
|
|
78
|
+
seq INTEGER PRIMARY KEY, id TEXT UNIQUE NOT NULL, job TEXT NOT NULL, hash TEXT NOT NULL,
|
|
79
|
+
input TEXT NOT NULL, state TEXT NOT NULL, delivery TEXT, problem TEXT
|
|
80
|
+
);
|
|
81
|
+
CREATE INDEX IF NOT EXISTS events_queue ON events (job, state, seq);
|
|
82
|
+
CREATE TABLE IF NOT EXISTS conflicts (id TEXT PRIMARY KEY, detected TEXT NOT NULL);
|
|
83
|
+
CREATE TABLE IF NOT EXISTS metadata (key TEXT PRIMARY KEY, data TEXT NOT NULL);
|
|
84
|
+
```
|
|
85
|
+
|
|
69
86
|
### Core Runtime allocation ownership
|
|
70
87
|
|
|
71
|
-
Source: [src/core/allocation-ledger.ts](../../src/core/allocation-ledger.ts); source SHA-256: `
|
|
88
|
+
Source: [src/core/allocation-ledger.ts](../../src/core/allocation-ledger.ts); source SHA-256: `e01591de943cf331f4eea952f55d3631979af3412710a72b36693d8c4c2f63ae`.
|
|
72
89
|
|
|
73
90
|
```sql
|
|
74
91
|
CREATE TABLE IF NOT EXISTS allocation_run (id INTEGER PRIMARY KEY CHECK (id = 1), body TEXT NOT NULL);
|