@anyswarm/core 0.5.1 → 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 +13 -6
- package/dist/examples/README.md +16 -5
- package/dist/examples/authoring/README.md +4 -4
- package/dist/examples/autoresearch/README.md +15 -8
- package/dist/examples/autoresearch/REQUIREMENTS.zh.md +3 -10
- package/dist/examples/autoresearch/demo.js +1 -1
- package/dist/examples/autoresearch/eject.json +2 -0
- package/dist/examples/autoresearch/frontiercs2-config.d.ts +2 -0
- package/dist/examples/autoresearch/frontiercs2-config.js +3 -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.js +3 -3
- package/dist/examples/autoresearch/project.d.ts +0 -94
- package/dist/examples/autoresearch/project.js +2 -20
- package/dist/examples/code/README.md +25 -17
- package/dist/examples/code/REQUIREMENTS.zh.md +3 -3
- package/dist/examples/harness-session/README.md +3 -3
- package/dist/examples/messages/README.md +1 -1
- package/dist/examples/notes/README.md +3 -3
- package/dist/examples/services/mathlib-search/README.md +1 -1
- package/dist/examples/services/persistent-board/README.md +5 -2
- package/dist/examples/subagents/README.md +2 -2
- package/dist/examples/subagents/config.js +3 -3
- package/dist/examples/substrate/README.md +2 -2
- package/dist/examples/super/README.md +34 -22
- package/dist/examples/super/actions.d.ts +1 -1
- package/dist/examples/super/actions.js +11 -11
- package/dist/examples/super/config.js +3 -3
- package/dist/examples/super/eject.json +1 -1
- package/dist/examples/super/location.js +1 -1
- package/dist/examples/super/operator.d.ts +1 -0
- package/dist/examples/super/operator.js +31 -0
- package/dist/examples/super/project.d.ts +0 -107
- package/dist/examples/super/project.js +1 -3
- package/dist/scripts/anyswarm-arguments.d.ts +7 -25
- package/dist/scripts/anyswarm-arguments.js +69 -97
- package/dist/scripts/anyswarm-eject.js +1 -1
- package/dist/scripts/anyswarm-harnesses.d.ts +0 -1
- package/dist/scripts/anyswarm-harnesses.js +1 -22
- package/dist/scripts/anyswarm-installation.d.ts +7 -40
- package/dist/scripts/anyswarm-installation.js +17 -291
- package/dist/scripts/anyswarm-launch.d.ts +6 -36
- package/dist/scripts/anyswarm-launch.js +32 -81
- package/dist/scripts/anyswarm-progress.d.ts +6 -0
- package/dist/scripts/anyswarm-progress.js +102 -0
- package/dist/scripts/anyswarm-project.d.ts +1 -9
- package/dist/scripts/anyswarm-project.js +40 -127
- package/dist/scripts/anyswarm-source-runner.js +9 -41
- package/dist/scripts/anyswarm.js +6 -26
- package/dist/scripts/build-provenance.json +1 -1
- package/dist/scripts/local-environment.d.ts +10 -4
- package/dist/scripts/local-environment.js +67 -20
- package/dist/scripts/local-setup.d.ts +3 -0
- package/dist/scripts/local-setup.js +135 -107
- package/dist/scripts/pack-release.js +4 -1
- package/dist/src/core/worker-image.js +1 -1
- package/dist/src/harness/project-harness.d.ts +1 -0
- package/dist/src/harness/project-harness.js +2 -2
- package/dist/src/harness/project-runtime.js +3 -1
- package/docs/INDEX.md +2 -1
- package/docs/architecture/04-services.md +1 -1
- package/docs/architecture/07-run-configuration.md +28 -14
- package/docs/architecture/12-code-coverage.md +56 -57
- package/docs/architecture/17-harness-reporting.md +1 -1
- package/docs/architecture/22-website.md +4 -7
- package/docs/architecture/23-project-harness.md +48 -23
- package/docs/architecture/26-code.md +20 -5
- package/docs/architecture/27-personal.md +23 -8
- package/docs/architecture/28-autoresearch.md +18 -6
- package/docs/architecture/INDEX.md +1 -2
- package/docs/architecture/prompts/source-manifest.json +5 -5
- package/docs/architecture/source-map.json +51 -71
- package/docs/designs/core-harness/01-core.md +2 -2
- package/docs/designs/core-harness/06-project-harness.md +3 -3
- package/docs/designs/core-harness/README.md +2 -2
- package/docs/en/agents.md +1 -1
- package/docs/en/build-your-harness.md +1 -1
- package/docs/en/changelog.md +7 -0
- package/docs/en/first-harness.md +6 -6
- 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 +9 -5
- package/docs/en/quickstart.md +20 -41
- package/docs/en/reference/api.md +1 -1
- package/docs/en/reference/cli.md +47 -85
- package/docs/en/sandbox.md +3 -3
- package/docs/operations/trace-viewer.md +1 -1
- package/docs/third-party-notices.md +0 -1
- package/docs/workflows/development.md +14 -12
- package/docs/workflows/release-and-docs-versioning.md +13 -12
- package/docs/workflows/release-cli-acceptance.md +85 -0
- package/docs/zh/agents.md +1 -1
- package/docs/zh/build-your-harness.md +1 -1
- package/docs/zh/changelog.md +8 -1
- package/docs/zh/first-harness.md +7 -7
- 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 +9 -5
- package/docs/zh/quickstart.md +20 -41
- package/docs/zh/reference/api.md +1 -1
- package/docs/zh/reference/cli.md +19 -79
- package/docs/zh/sandbox.md +3 -3
- package/examples/README.md +16 -5
- package/examples/authoring/README.md +4 -4
- package/examples/autoresearch/README.md +15 -8
- package/examples/autoresearch/REQUIREMENTS.zh.md +3 -10
- package/examples/autoresearch/demo.ts +1 -1
- package/examples/autoresearch/eject.json +2 -0
- package/examples/autoresearch/frontiercs2-config.ts +4 -0
- package/examples/autoresearch/prepare-demo.ts +15 -0
- package/examples/autoresearch/prepare.ts +3 -3
- package/examples/autoresearch/project.ts +2 -19
- package/examples/code/README.md +25 -17
- package/examples/code/REQUIREMENTS.zh.md +3 -3
- package/examples/harness-session/README.md +3 -3
- package/examples/messages/README.md +1 -1
- package/examples/notes/README.md +3 -3
- package/examples/services/mathlib-search/README.md +1 -1
- package/examples/services/persistent-board/README.md +5 -2
- package/examples/subagents/README.md +2 -2
- package/examples/subagents/config.ts +4 -3
- package/examples/substrate/README.md +2 -2
- package/examples/super/README.md +34 -22
- package/examples/super/actions.ts +11 -11
- package/examples/super/config.ts +3 -3
- package/examples/super/eject.json +1 -1
- package/examples/super/location.ts +1 -1
- package/examples/super/operator.ts +28 -0
- package/examples/super/project.ts +1 -3
- package/npm-shrinkwrap.development.json +42 -1541
- package/npm-shrinkwrap.json +3 -43
- package/package.development.json +2 -6
- package/package.json +2 -5
- package/scripts/anyswarm-arguments.ts +67 -96
- package/scripts/anyswarm-eject.ts +1 -1
- package/scripts/anyswarm-harnesses.ts +1 -18
- package/scripts/anyswarm-installation.ts +18 -294
- package/scripts/anyswarm-launch.ts +30 -102
- package/scripts/anyswarm-progress.ts +95 -0
- package/scripts/anyswarm-project.ts +31 -123
- package/scripts/anyswarm-source-runner.ts +9 -36
- package/scripts/anyswarm.ts +4 -24
- package/scripts/local-environment.ts +71 -20
- package/scripts/local-setup.ts +134 -94
- package/scripts/pack-release.ts +4 -1
- package/src/core/worker-image.ts +1 -1
- package/src/harness/project-harness.ts +2 -2
- package/src/harness/project-runtime.ts +2 -1
- package/dist/scripts/anyswarm-applications.d.ts +0 -19
- package/dist/scripts/anyswarm-applications.js +0 -19
- package/dist/scripts/anyswarm-tui-config.d.ts +0 -36
- package/dist/scripts/anyswarm-tui-config.js +0 -189
- package/dist/scripts/anyswarm-tui-session.d.ts +0 -66
- package/dist/scripts/anyswarm-tui-session.js +0 -304
- package/dist/scripts/anyswarm-tui-terminal.d.ts +0 -41
- package/dist/scripts/anyswarm-tui-terminal.js +0 -154
- package/dist/scripts/anyswarm-tui.d.ts +0 -2
- package/dist/scripts/anyswarm-tui.js +0 -1012
- package/docs/architecture/25-foreground-tui.md +0 -51
- package/scripts/anyswarm-applications.ts +0 -39
- package/scripts/anyswarm-tui-config.ts +0 -174
- package/scripts/anyswarm-tui-session.ts +0 -295
- package/scripts/anyswarm-tui-terminal.ts +0 -147
- package/scripts/anyswarm-tui.ts +0 -912
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
".github/workflows/ci.yml",
|
|
39
39
|
".github/workflows/deploy-website.yml",
|
|
40
40
|
".github/workflows/release.yml",
|
|
41
|
+
".github/publish-npm-release.sh",
|
|
41
42
|
"examples/taskpool/.npmignore",
|
|
42
43
|
"benchmarks/programbench-pastel/pastel-code.ts"
|
|
43
44
|
],
|
|
@@ -120,8 +121,7 @@
|
|
|
120
121
|
"path": "src/harness/harness-session.ts",
|
|
121
122
|
"category": "Project Harness",
|
|
122
123
|
"chapters": [
|
|
123
|
-
"docs/architecture/23-project-harness.md"
|
|
124
|
-
"docs/architecture/25-foreground-tui.md"
|
|
124
|
+
"docs/architecture/23-project-harness.md"
|
|
125
125
|
],
|
|
126
126
|
"role": "Shared project Session admission, request replay, question lifecycle, events and stop barriers"
|
|
127
127
|
},
|
|
@@ -495,8 +495,7 @@
|
|
|
495
495
|
"chapters": [
|
|
496
496
|
"docs/architecture/00-overview.md",
|
|
497
497
|
"docs/architecture/07-run-configuration.md",
|
|
498
|
-
"docs/architecture/15-core-runtime.md"
|
|
499
|
-
"docs/architecture/25-foreground-tui.md"
|
|
498
|
+
"docs/architecture/15-core-runtime.md"
|
|
500
499
|
],
|
|
501
500
|
"role": "Node support, dependency requirements and executable package scripts"
|
|
502
501
|
},
|
|
@@ -1879,6 +1878,7 @@
|
|
|
1879
1878
|
"path": "examples/subagents/config.ts",
|
|
1880
1879
|
"category": "Execution and control",
|
|
1881
1880
|
"chapters": [
|
|
1881
|
+
"docs/architecture/07-run-configuration.md",
|
|
1882
1882
|
"docs/architecture/17-harness-reporting.md"
|
|
1883
1883
|
],
|
|
1884
1884
|
"role": "Local subagents host model, resource and deadline configuration"
|
|
@@ -2079,7 +2079,6 @@
|
|
|
2079
2079
|
"chapters": [
|
|
2080
2080
|
"docs/architecture/17-harness-reporting.md",
|
|
2081
2081
|
"docs/architecture/23-project-harness.md",
|
|
2082
|
-
"docs/architecture/25-foreground-tui.md",
|
|
2083
2082
|
"docs/architecture/28-autoresearch.md"
|
|
2084
2083
|
],
|
|
2085
2084
|
"role": "Installed project command, stream ownership, signal handling and protocol flush"
|
|
@@ -2427,14 +2426,6 @@
|
|
|
2427
2426
|
],
|
|
2428
2427
|
"role": "Public site icon"
|
|
2429
2428
|
},
|
|
2430
|
-
{
|
|
2431
|
-
"path": "website/public/install.sh",
|
|
2432
|
-
"category": "public documentation website",
|
|
2433
|
-
"chapters": [
|
|
2434
|
-
"docs/architecture/22-website.md"
|
|
2435
|
-
],
|
|
2436
|
-
"role": "Public CLI installer for the latest GitHub Release or a staged candidate tarball"
|
|
2437
|
-
},
|
|
2438
2429
|
{
|
|
2439
2430
|
"path": "website/public/licenses/caveat.txt",
|
|
2440
2431
|
"category": "public documentation website",
|
|
@@ -2682,7 +2673,7 @@
|
|
|
2682
2673
|
"chapters": [
|
|
2683
2674
|
"docs/architecture/07-run-configuration.md"
|
|
2684
2675
|
],
|
|
2685
|
-
"role": "Change classification for Core, website, and public
|
|
2676
|
+
"role": "Change classification for Core, website, and public npm command verification"
|
|
2686
2677
|
},
|
|
2687
2678
|
{
|
|
2688
2679
|
"path": ".github/workflows/deploy-website.yml",
|
|
@@ -2811,8 +2802,7 @@
|
|
|
2811
2802
|
"category": "launch and composition",
|
|
2812
2803
|
"chapters": [
|
|
2813
2804
|
"docs/architecture/07-run-configuration.md",
|
|
2814
|
-
"docs/architecture/24-runtime-recovery.md"
|
|
2815
|
-
"docs/architecture/25-foreground-tui.md"
|
|
2805
|
+
"docs/architecture/24-runtime-recovery.md"
|
|
2816
2806
|
],
|
|
2817
2807
|
"role": "Host CLI dispatch, current-project interactive entry, signal handling and exit status"
|
|
2818
2808
|
},
|
|
@@ -2820,8 +2810,7 @@
|
|
|
2820
2810
|
"path": "scripts/anyswarm-arguments.ts",
|
|
2821
2811
|
"category": "launch and composition",
|
|
2822
2812
|
"chapters": [
|
|
2823
|
-
"docs/architecture/07-run-configuration.md"
|
|
2824
|
-
"docs/architecture/25-foreground-tui.md"
|
|
2813
|
+
"docs/architecture/07-run-configuration.md"
|
|
2825
2814
|
],
|
|
2826
2815
|
"role": "Shared host command syntax and setup wrapper arguments"
|
|
2827
2816
|
},
|
|
@@ -3069,13 +3058,21 @@
|
|
|
3069
3058
|
],
|
|
3070
3059
|
"role": "Local Worker image selectors, legacy GHCR identity matching and package and protocol version constants"
|
|
3071
3060
|
},
|
|
3061
|
+
{
|
|
3062
|
+
"path": ".github/publish-npm-release.sh",
|
|
3063
|
+
"category": "launch and composition",
|
|
3064
|
+
"chapters": [
|
|
3065
|
+
"docs/architecture/07-run-configuration.md"
|
|
3066
|
+
],
|
|
3067
|
+
"role": "Verified npm publication, retry integrity and stable distribution tag checks"
|
|
3068
|
+
},
|
|
3072
3069
|
{
|
|
3073
3070
|
"path": ".github/workflows/release.yml",
|
|
3074
3071
|
"category": "launch and composition",
|
|
3075
3072
|
"chapters": [
|
|
3076
3073
|
"docs/architecture/07-run-configuration.md"
|
|
3077
3074
|
],
|
|
3078
|
-
"role": "
|
|
3075
|
+
"role": "Release archive verification, stable GitHub publication and npm Trusted Publishing"
|
|
3079
3076
|
},
|
|
3080
3077
|
{
|
|
3081
3078
|
"path": "website/src/pages/latest.astro",
|
|
@@ -3727,10 +3724,9 @@
|
|
|
3727
3724
|
"category": "launch and composition",
|
|
3728
3725
|
"chapters": [
|
|
3729
3726
|
"docs/architecture/07-run-configuration.md",
|
|
3730
|
-
"docs/architecture/22-website.md"
|
|
3731
|
-
"docs/architecture/25-foreground-tui.md"
|
|
3727
|
+
"docs/architecture/22-website.md"
|
|
3732
3728
|
],
|
|
3733
|
-
"role": "
|
|
3729
|
+
"role": "Installed CLI ownership checks and package-manager update guidance"
|
|
3734
3730
|
},
|
|
3735
3731
|
{
|
|
3736
3732
|
"path": "src/core/sandbox/local-executor.ts",
|
|
@@ -3788,8 +3784,7 @@
|
|
|
3788
3784
|
"path": "src/core/service-observation-types.ts",
|
|
3789
3785
|
"category": "Service examples and observation",
|
|
3790
3786
|
"chapters": [
|
|
3791
|
-
"docs/architecture/06-observability-experiments.md"
|
|
3792
|
-
"docs/architecture/25-foreground-tui.md"
|
|
3787
|
+
"docs/architecture/06-observability-experiments.md"
|
|
3793
3788
|
],
|
|
3794
3789
|
"role": "Service public capture facts and declarative JSON Pointer summary and table contract"
|
|
3795
3790
|
},
|
|
@@ -3813,8 +3808,7 @@
|
|
|
3813
3808
|
"path": "examples/services/persistent-board/index.ts",
|
|
3814
3809
|
"category": "Service examples and observation",
|
|
3815
3810
|
"chapters": [
|
|
3816
|
-
"docs/architecture/06-observability-experiments.md"
|
|
3817
|
-
"docs/architecture/25-foreground-tui.md"
|
|
3811
|
+
"docs/architecture/06-observability-experiments.md"
|
|
3818
3812
|
],
|
|
3819
3813
|
"role": "Per-Run Board lifecycle, authenticated caller mapping and state presentation"
|
|
3820
3814
|
},
|
|
@@ -4073,16 +4067,6 @@
|
|
|
4073
4067
|
],
|
|
4074
4068
|
"role": "Installed Node hooks for trusted TypeScript entries and configuration modules"
|
|
4075
4069
|
},
|
|
4076
|
-
{
|
|
4077
|
-
"path": "scripts/anyswarm-applications.ts",
|
|
4078
|
-
"category": "launch and composition",
|
|
4079
|
-
"chapters": [
|
|
4080
|
-
"docs/architecture/25-foreground-tui.md",
|
|
4081
|
-
"docs/architecture/23-project-harness.md",
|
|
4082
|
-
"docs/architecture/27-personal.md"
|
|
4083
|
-
],
|
|
4084
|
-
"role": "Bundled aliases, application module locations and terminal lifetime defaults"
|
|
4085
|
-
},
|
|
4086
4070
|
{
|
|
4087
4071
|
"path": "scripts/anyswarm-author.ts",
|
|
4088
4072
|
"category": "launch and composition",
|
|
@@ -4114,62 +4098,34 @@
|
|
|
4114
4098
|
"path": "scripts/anyswarm-harnesses.ts",
|
|
4115
4099
|
"category": "launch and composition",
|
|
4116
4100
|
"chapters": [
|
|
4117
|
-
"docs/architecture/23-project-harness.md"
|
|
4118
|
-
"docs/architecture/25-foreground-tui.md"
|
|
4101
|
+
"docs/architecture/23-project-harness.md"
|
|
4119
4102
|
],
|
|
4120
|
-
"role": "Installed Harness
|
|
4103
|
+
"role": "Installed built-in Harness aliases"
|
|
4121
4104
|
},
|
|
4122
4105
|
{
|
|
4123
4106
|
"path": "scripts/anyswarm-launch.ts",
|
|
4124
4107
|
"category": "launch and composition",
|
|
4125
4108
|
"chapters": [
|
|
4126
4109
|
"docs/architecture/23-project-harness.md",
|
|
4127
|
-
"docs/architecture/25-foreground-tui.md",
|
|
4128
4110
|
"docs/architecture/28-autoresearch.md"
|
|
4129
4111
|
],
|
|
4130
|
-
"role": "
|
|
4112
|
+
"role": "Trusted Harness module loading, workspace selection and Session creation"
|
|
4131
4113
|
},
|
|
4132
4114
|
{
|
|
4133
|
-
"path": "scripts/anyswarm-
|
|
4115
|
+
"path": "scripts/anyswarm-progress.ts",
|
|
4134
4116
|
"category": "launch and composition",
|
|
4135
4117
|
"chapters": [
|
|
4136
|
-
"docs/architecture/25-foreground-tui.md"
|
|
4137
|
-
],
|
|
4138
|
-
"role": "Trusted launcher configuration selection, diagnostics and owner-only preferences"
|
|
4139
|
-
},
|
|
4140
|
-
{
|
|
4141
|
-
"path": "scripts/anyswarm-tui-session.ts",
|
|
4142
|
-
"category": "launch and composition",
|
|
4143
|
-
"chapters": [
|
|
4144
|
-
"docs/architecture/25-foreground-tui.md"
|
|
4145
|
-
],
|
|
4146
|
-
"role": "Bounded Session stream observation, stable control identities and receipt reconciliation"
|
|
4147
|
-
},
|
|
4148
|
-
{
|
|
4149
|
-
"path": "scripts/anyswarm-tui-terminal.ts",
|
|
4150
|
-
"category": "launch and composition",
|
|
4151
|
-
"chapters": [
|
|
4152
|
-
"docs/architecture/25-foreground-tui.md"
|
|
4153
|
-
],
|
|
4154
|
-
"role": "Raw terminal mode, Unicode input, bracketed paste and restoration"
|
|
4155
|
-
},
|
|
4156
|
-
{
|
|
4157
|
-
"path": "scripts/anyswarm-tui.ts",
|
|
4158
|
-
"category": "launch and composition",
|
|
4159
|
-
"chapters": [
|
|
4160
|
-
"docs/architecture/25-foreground-tui.md",
|
|
4161
4118
|
"docs/architecture/23-project-harness.md",
|
|
4162
4119
|
"docs/architecture/28-autoresearch.md"
|
|
4163
4120
|
],
|
|
4164
|
-
"role": "
|
|
4121
|
+
"role": "Human-readable foreground lifecycle, artifact and Trace output"
|
|
4165
4122
|
},
|
|
4166
4123
|
{
|
|
4167
4124
|
"path": "examples/services/persistent-board/live.ts",
|
|
4168
4125
|
"category": "launch and composition",
|
|
4169
4126
|
"chapters": [
|
|
4170
4127
|
"docs/architecture/15-core-runtime.md",
|
|
4171
|
-
"docs/architecture/23-project-harness.md"
|
|
4172
|
-
"docs/architecture/25-foreground-tui.md"
|
|
4128
|
+
"docs/architecture/23-project-harness.md"
|
|
4173
4129
|
],
|
|
4174
4130
|
"role": "Package-root live Board Harness with committed SQLite inputs and bounded observation"
|
|
4175
4131
|
},
|
|
@@ -4225,6 +4181,14 @@
|
|
|
4225
4181
|
],
|
|
4226
4182
|
"role": "Prepared FrontierCS-2 demo and public train / private final adapter"
|
|
4227
4183
|
},
|
|
4184
|
+
{
|
|
4185
|
+
"path": "examples/autoresearch/frontiercs2-config.ts",
|
|
4186
|
+
"category": "Harness",
|
|
4187
|
+
"chapters": [
|
|
4188
|
+
"docs/architecture/28-autoresearch.md"
|
|
4189
|
+
],
|
|
4190
|
+
"role": "Trusted configuration for the prepared FrontierCS-2 Run"
|
|
4191
|
+
},
|
|
4228
4192
|
{
|
|
4229
4193
|
"path": "examples/autoresearch/frontiercs2.ts",
|
|
4230
4194
|
"category": "Harness",
|
|
@@ -4241,6 +4205,14 @@
|
|
|
4241
4205
|
],
|
|
4242
4206
|
"role": "FrontierCS-2 environment probes, reference run, image preparation and prepared manifest"
|
|
4243
4207
|
},
|
|
4208
|
+
{
|
|
4209
|
+
"path": "examples/autoresearch/prepare-demo.ts",
|
|
4210
|
+
"category": "Harness",
|
|
4211
|
+
"chapters": [
|
|
4212
|
+
"docs/architecture/28-autoresearch.md"
|
|
4213
|
+
],
|
|
4214
|
+
"role": "Example source command for trusted FrontierCS-2 preparation"
|
|
4215
|
+
},
|
|
4244
4216
|
{
|
|
4245
4217
|
"path": "examples/autoresearch/process.ts",
|
|
4246
4218
|
"category": "Harness",
|
|
@@ -4464,7 +4436,15 @@
|
|
|
4464
4436
|
"chapters": [
|
|
4465
4437
|
"docs/architecture/27-personal.md"
|
|
4466
4438
|
],
|
|
4467
|
-
"role": "
|
|
4439
|
+
"role": "Operator commands and background process admission"
|
|
4440
|
+
},
|
|
4441
|
+
{
|
|
4442
|
+
"path": "examples/super/operator.ts",
|
|
4443
|
+
"category": "Personal",
|
|
4444
|
+
"chapters": [
|
|
4445
|
+
"docs/architecture/27-personal.md"
|
|
4446
|
+
],
|
|
4447
|
+
"role": "Example source command for daemon operations and signal handling"
|
|
4468
4448
|
},
|
|
4469
4449
|
{
|
|
4470
4450
|
"path": "examples/super/daemon.ts",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
[#271](https://github.com/AnySwarm/anyswarm/issues/271) 在 `f522a42f1b381394206b3ab650144dd9ca264702` 设计基线上确认了 Agent 会话配置、结构化输入、查询、事件、压缩前控制和 HarnessSession。该决定更新本文涉及的启动前固定配置和固定四工具限制。默认仍提供 read/write/edit/bash,可在启动时显式选择受支持的工具和资源。Profile.session 提供默认值,spawn.session 按字段覆盖单个实例;runtime.session 允许动态修改 thinking、compaction/retry 开关与两种输入队列模式。模型、动态资源 reload、Session reset/switch/restore 与 Pi UI 桥继续由后续需求定义。
|
|
11
11
|
|
|
12
|
-
runtime.session 是指定 Agent 的能力分组。HarnessSession 是一次多 Agent Run 的公共句柄,ProjectHarness.run(context) 继续定义协作过程。HarnessSession 的能力取执行器、Harness 授权和当前目标状态的交集,调度敏感操作由 Harness 登记处理器。SDK 与 RPC
|
|
12
|
+
runtime.session 是指定 Agent 的能力分组。HarnessSession 是一次多 Agent Run 的公共句柄,ProjectHarness.run(context) 继续定义协作过程。HarnessSession 的能力取执行器、Harness 授权和当前目标状态的交集,调度敏感操作由 Harness 登记处理器。SDK 与 RPC 共用受理、去重、问答和运行观察。持久用户工作流、候选/apply 和后台 attach/detach 见 #252,宿主 CLI 范围以 #351 为准。实现细节见 [Core Runtime](../../architecture/15-core-runtime.md#agent-session-control) 与 [Guest bridge](../../architecture/16-pi-opensandbox-backend.md#guest-sdk-session-bridge)。本次设计、实现、迁移、候选产物、测试和文档通过同一个 #271 实现 PR 评审。
|
|
13
13
|
|
|
14
14
|
## 迁移反馈确认的推理档位修正
|
|
15
15
|
|
|
@@ -133,7 +133,7 @@ const runtime = await createRuntime({
|
|
|
133
133
|
|
|
134
134
|
`createSandbox` 校验并捕获部署配置或外部 Provider,返回不透明的接入对象。Runtime 为自己的 Agent 持有实际 Sandbox 和清理记录;在创建派发前记录原请求和服务身份,获得 ID 后按服务身份与 Sandbox ID 的组合寻址。响应丢失、查询、文件操作与删除均回原服务核对。沿用 [#236](https://github.com/AnySwarm/anyswarm/issues/236) 的资源归属;默认接入取消同机限制。Provider 声明、检查和落实可选隔离能力。默认 OpenSandbox 核验 Lifecycle、Execd 和 Worker 管理鉴权,并在启动前以低权限 UID 检查凭据隔离、回环访问及实测 CPU/内存上限。它依赖部署提供网络策略,对工作区磁盘上限、显式网络白名单和共享挂载在能力缺失时提前报错。严格本地模式继续要求同机 Docker、Landlock ABI 5 与管理员准备的隔离能力。OpenSandbox 管理凭据和模型上游 headers 留在可信宿主,Agent 仅使用自身的 Bridge/网关凭据;日志和返回对象脱敏。setup、doctor 与显式 Harness 运行共用连接配置解析,已有 endpoint 路径仅需 Linux Controller 的 JS 环境,本地路径先验证 OpenSandbox 然后启动所选 Pi 或 Codex Worker。普通 doctor 不分配 Sandbox。
|
|
135
135
|
|
|
136
|
-
[#309](https://github.com/AnySwarm/anyswarm/issues/309) 和 [#315](https://github.com/AnySwarm/anyswarm/issues/315) 更新了此前的安装决策。项目通过依赖和锁独立选择 SDK,使用本机已安装的 Pi 或 Codex 与随包材料本地构建 Worker。官方安装器负责 CLI 版本切换。按 owner 的后续决定,本次沿用显式 AnySwarm 模型配置,不导入本机 Agent 的设置,也不迁移旧配置。移除 `init
|
|
136
|
+
[#309](https://github.com/AnySwarm/anyswarm/issues/309) 和 [#315](https://github.com/AnySwarm/anyswarm/issues/315) 更新了此前的安装决策。项目通过依赖和锁独立选择 SDK,使用本机已安装的 Pi 或 Codex 与随包材料本地构建 Worker。官方安装器负责 CLI 版本切换。按 owner 的后续决定,本次沿用显式 AnySwarm 模型配置,不导入本机 Agent 的设置,也不迁移旧配置。移除 `init`,按 #351 裸命令输出 Quickstart。上述调整保留已审阅的隔离、鉴权、文件预算与资源归属合同。
|
|
137
137
|
|
|
138
138
|
`getExecutorCapabilities(executor)` 同步读取静态能力,无网络、监听器和资源分配。Pi 支持上下文分支及 `all`、`one-at-a-time`;Codex 不支持分支且仅支持 `all`。两者报告 active steer、follow-up、条件输入、已排队输入清除能力。Profile 或 spawn 请求不支持的能力时前置拒绝。内置执行器继续使用各自原生 Session 归档格式,并可选择经验证的兼容版本。外部 adapter 随 Worker 镜像部署,Worker 核验协议、实际版本和能力后以 Agent 身份执行。
|
|
139
139
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# 项目 Harness 的共同入口
|
|
2
2
|
|
|
3
|
-
[#334](https://github.com/AnySwarm/anyswarm/issues/334) 以 [45775d7 设计修订](https://github.com/AnySwarm/anyswarm/tree/45775d7312e62a791ab8a097c5e7715dc3c9d548/docs/designs/core-harness) 为基线,替代 #280
|
|
3
|
+
[#334](https://github.com/AnySwarm/anyswarm/issues/334) 以 [45775d7 设计修订](https://github.com/AnySwarm/anyswarm/tree/45775d7312e62a791ab8a097c5e7715dc3c9d548/docs/designs/core-harness) 为基线,替代 #280 的冲突条款。后续安装决策统一宿主入口为 `anyswarm`,由 npm 管理安装和更新。Worker 内部继续使用 `swarm`。[#351](https://github.com/AnySwarm/anyswarm/issues/351) 将宿主 CLI 收口到显式单次执行、JSONL RPC、源码导出及环境与记录管理。Run 拥有者可以控制任意已登记成员,动作以 Agent ID 和 requestId 标识,Harness 负责同步任务与生命周期。Service 显式提供独立的只读实时状态。作者以 TypeScript 源码和配置为入口,发行包继续使用构建产物,显式 JS/MJS 入口保持兼容。三应用用同一个源码导出机制,业务代码及导出清单分别由应用工单交付。成员控制、状态变化和导出后的修改验证沿用 #334,安装与升级门禁以 #351 为准。
|
|
4
4
|
|
|
5
5
|
本页记录随 [#257](https://github.com/AnySwarm/anyswarm/issues/257) 实施 PR 一起评审的共同入口合同;当前实现见 [Project Harness](../../architecture/23-project-harness.md),验收状态由原 Issue/PR 跟踪。Core 文件、事件和停止合同以 [#255](https://github.com/AnySwarm/anyswarm/issues/255) 的最终实现版本为准。仓库的 [Architecture](../../architecture/INDEX.md) 说明已实现的行为。
|
|
6
6
|
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
## #337 AutoResearch
|
|
19
19
|
|
|
20
|
-
[#337](https://github.com/AnySwarm/anyswarm/issues/337) 采用 [45775d7 的 Core 和 Harness 合同](https://github.com/AnySwarm/anyswarm/tree/45775d7312e62a791ab8a097c5e7715dc3c9d548/docs/designs/core-harness)。demo 使用四个平级 Kimi K3
|
|
20
|
+
[#337](https://github.com/AnySwarm/anyswarm/issues/337) 采用 [45775d7 的 Core 和 Harness 合同](https://github.com/AnySwarm/anyswarm/tree/45775d7312e62a791ab8a097c5e7715dc3c9d548/docs/designs/core-harness)。demo 使用四个平级 Kimi K3 成员,成员自行认领方向、交流、复核与采用候选。宿主负责共享预算、可信评测和收尾。[#351](https://github.com/AnySwarm/anyswarm/issues/351) 为 demo 保留单次任务入口和 Trace,成员控制由 SDK/RPC 提供。自定义 evaluator 配置与正式 benchmark 适配复用同一 Harness。包外、正式评测和资源验收沿用 #337。[AutoResearch 实现](../../architecture/28-autoresearch.md)
|
|
21
21
|
|
|
22
22
|
## 模块与路径
|
|
23
23
|
|
|
@@ -77,4 +77,4 @@ CLI、RPC、Worker 和安装后的调用路径执行 [#257 的 A1–A12](https:/
|
|
|
77
77
|
|
|
78
78
|
## Personal 后台应用
|
|
79
79
|
|
|
80
|
-
[#338](https://github.com/AnySwarm/anyswarm/issues/338) 和 [#340 的 owner 决定](https://github.com/AnySwarm/anyswarm/pull/340#issuecomment-7346879555) 在 [45775d7 版入口设计](https://github.com/AnySwarm/anyswarm/blob/45775d7312e62a791ab8a097c5e7715dc3c9d548/docs/designs/core-harness/06-project-harness.md)
|
|
80
|
+
[#338](https://github.com/AnySwarm/anyswarm/issues/338) 和 [#340 的 owner 决定](https://github.com/AnySwarm/anyswarm/pull/340#issuecomment-7346879555) 在 [45775d7 版入口设计](https://github.com/AnySwarm/anyswarm/blob/45775d7312e62a791ab8a097c5e7715dc3c9d548/docs/designs/core-harness/06-project-harness.md) 基础上增加应用拥有的后台生命周期。SDK 客户端通过 `observe` 连接既有 Session。按 #351,Personal 的源码入口分别提供启动、查询和单笔审批命令。退出观察客户端后后台继续运行。用户和 Inbox 把业务输入交给 Router。Router 在一个 Runtime 中调度 Worker 和 Reviewer,应用负责来源授权、持久化、工作队列、按任务发布和外部回复。验收通过候选安装包完成真实来源、实际产物、原会话回执及后续修改。详见 [Personal 实现手册](../../architecture/27-personal.md)。
|
|
@@ -77,9 +77,9 @@ TaskPool 现有宿主注入 `snapshotProject` 和已支持的公共 Workspace、
|
|
|
77
77
|
|
|
78
78
|
[#237](https://github.com/AnySwarm/anyswarm/issues/237) 完成仓库外的初版 SDK 消费。其证据对应原候选。[#255](https://github.com/AnySwarm/anyswarm/issues/255) 以 `main@ea400e2dc020022f94426d328644c6cca87aa03c` 为首次核查基线,规定六个根导出、Sandbox 与 Runtime 配置职责、唯一 send/事件入口、单步文件替换和应用内收尾。[Core 设计](01-core.md) 与 [Harness 设计](02-harness.md) 规定行为,[交付与验收](03-delivery-and-validation.md#公共-sdk-的外部应用验收) 规定 M0–M6、A1–A16 和两条 E2E。M0 是同一实施 PR 内核对基线与接口的工作项,不要求先评审或合入设计提交;设计、实现与验收证据一起审阅。验证和部署继续复用 [#236](https://github.com/AnySwarm/anyswarm/issues/236) 已交付的设施边界。
|
|
79
79
|
|
|
80
|
-
## 后续扩展 · CLI
|
|
80
|
+
## 后续扩展 · CLI 和 HarnessSession
|
|
81
81
|
|
|
82
|
-
[#271](https://github.com/AnySwarm/anyswarm/issues/271) 第 12–15 节确认前台 `HarnessSession`。这是一次协作 Run 的公共句柄,供 SDK
|
|
82
|
+
[#271](https://github.com/AnySwarm/anyswarm/issues/271) 第 12–15 节确认前台 `HarnessSession`。这是一次协作 Run 的公共句柄,供 SDK 和 JSONL RPC 客户端管理运行、成员控制、快照以及 Harness 级问答。`runtime.session` 单独提供每 Agent 的执行器会话配置、查询与控制。该决定替代 #252 中暂缓命名及采用上层 Session 的旧描述。持久用户工作流程、本地成果候选与 apply、后台 Host 和 attach/detach 见 [#252](https://github.com/AnySwarm/anyswarm/issues/252),宿主 CLI 范围以 [#351](https://github.com/AnySwarm/anyswarm/issues/351) 为准。
|
|
83
83
|
|
|
84
84
|
## 文档迁移与版本来源
|
|
85
85
|
|
package/docs/en/agents.md
CHANGED
|
@@ -179,7 +179,7 @@ To cap automatic context compactions (for example, stopping an Agent before a 4t
|
|
|
179
179
|
### Session events and runnable example
|
|
180
180
|
|
|
181
181
|
- **Session event stream**: Subscribe to `runtime.onEvent()` before sending work. Session events arrive as `{ type: 'session', agentId, event }`. Streaming `messageStart`, `textDelta`, and `messageEnd` events share a `messageId` (accumulate deltas per message and content block, then replace with the final `messageEnd` payload); `toolActivity` lists currently running tool calls. Session totals and current context usage are reported separately (forked history can contribute to session totals), and cost is `null` when model pricing is unconfigured.
|
|
182
|
-
- **Runnable example**: See `examples/agent-session.ts` for a complete program demonstrating the 3-compaction stop policy, `append`/`nextTurn` context injection, state/stats/message inspection, and shutdown receipts. Run `
|
|
182
|
+
- **Runnable example**: See `examples/agent-session.ts` for a complete program demonstrating the 3-compaction stop policy, `append`/`nextTurn` context injection, state/stats/message inspection, and shutdown receipts. Run `anyswarm run ./examples/agent-session.ts /absolute/config.ts worker 'Your prompt'` (the config module default-exports `CreateRuntimeOptions` with a 120s work window and 30s cleanup window).
|
|
183
183
|
|
|
184
184
|
---
|
|
185
185
|
|
|
@@ -34,7 +34,7 @@ The scheduler must reserve each Agent’s input for the duration of its turn. In
|
|
|
34
34
|
```bash
|
|
35
35
|
mkdir -p input
|
|
36
36
|
printf 'export const cache = new Map<string, string>();\n' > input/cache.ts
|
|
37
|
-
./node_modules/.bin/
|
|
37
|
+
./node_modules/.bin/anyswarm run ./harness.ts --cwd ./input \
|
|
38
38
|
--prompt 'Review cache.ts for resource risks and publish concrete findings.' --output-dir ./runs
|
|
39
39
|
./node_modules/.bin/anyswarm trace --root ./runs
|
|
40
40
|
```
|
package/docs/en/changelog.md
CHANGED
|
@@ -7,6 +7,13 @@ order: 16
|
|
|
7
7
|
|
|
8
8
|
All notable changes to **AnySwarm** (`@anyswarm/core`) are tracked here and in the repository's [`CHANGELOG.md`](../../CHANGELOG.md). For the current install commands, see [Releases](latest.md).
|
|
9
9
|
|
|
10
|
+
## v0.5.2
|
|
11
|
+
|
|
12
|
+
- The host CLI opens with Quickstart. Replace terminal aliases with `anyswarm --harness <name> --prompt <text>` for one-shot work or `--mode rpc` for multiple turns. One-shot Runs show milestones and a Trace command on a terminal. Code and Personal are available as editable SDK examples. [CLI reference](reference/cli.md)
|
|
13
|
+
- Install the CLI with npm. The homepage and Quickstart offer one command. npm owns upgrades and removal, and `anyswarm update` displays the command for the active prefix.
|
|
14
|
+
- Setup and doctor default to local OpenSandbox, detect the installed backend and Docker, and reuse saved local settings. Checking a remote service requires explicit existing mode.
|
|
15
|
+
- The host command is `anyswarm`. Replace `anys` in commands and scripts. Worker images supply their internal `swarm` command. Existing script-managed installations can switch after their old links are cleared. [Upgrade instructions](quickstart.md#update-the-cli)
|
|
16
|
+
|
|
10
17
|
## v0.5.1
|
|
11
18
|
|
|
12
19
|
- AutoResearch runs four equal Kimi K3 peers on the official FrontierCS-2 demo and shows research activity in the terminal stream and in live Trace. Configure a trusted evaluator for your project or export the editable Harness. [CLI reference](reference/cli.md#autoresearch). End-to-end acceptance on the default Kimi K3 route is tracked in [#337](https://github.com/AnySwarm/anyswarm/issues/337).
|
package/docs/en/first-harness.md
CHANGED
|
@@ -9,7 +9,7 @@ A publisher reads a reference from its workspace and asks you where to send it.
|
|
|
9
9
|
|
|
10
10
|
## 1. Pick your SDK version
|
|
11
11
|
|
|
12
|
-
This tutorial uses `
|
|
12
|
+
This tutorial uses `anyswarm run` from [AnySwarm v0.5.1](latest.md#v051). Copy the examples from the same SDK package you install below.
|
|
13
13
|
|
|
14
14
|
## 2. Install and connect
|
|
15
15
|
|
|
@@ -17,10 +17,10 @@ In a fresh directory, install the SDK as a normal dependency and run its own CLI
|
|
|
17
17
|
|
|
18
18
|
```bash
|
|
19
19
|
npm init -y
|
|
20
|
-
npm install
|
|
20
|
+
npm install @anyswarm/core@0.5.1
|
|
21
21
|
```
|
|
22
22
|
|
|
23
|
-
To prepare a new local OpenSandbox, first [install a supported Pi](quickstart.md#2-prepare-opensandbox-and-the-worker), then run `./node_modules/.bin/anyswarm setup --mode local --backend pi`. With an existing deployment, [configure its endpoint, authentication, callback and Worker image](
|
|
23
|
+
To prepare a new local OpenSandbox, first [install a supported Pi](quickstart.md#2-prepare-opensandbox-and-the-worker), then run `./node_modules/.bin/anyswarm setup --mode local --backend pi`. With an existing deployment, [configure its endpoint, authentication, callback and Worker image](sandbox.md), then run `./node_modules/.bin/anyswarm setup --mode existing` and `./node_modules/.bin/anyswarm doctor --mode existing --smoke`.
|
|
24
24
|
|
|
25
25
|
Wait for `"infrastructure": "ready"` and `"ok": true`. The controlled smoke checks Worker startup, Service calls, Gateway traffic, files, export and deletion. The example uses `resolveSandboxConnection()` to read the connection in the same environment. Its own imported SDK prepares the local image from that package’s build materials if needed.
|
|
26
26
|
|
|
@@ -52,9 +52,9 @@ The Harness owns two Profiles and the Handoff Service. The publisher reads the u
|
|
|
52
52
|
|
|
53
53
|
```bash
|
|
54
54
|
mkdir -p input
|
|
55
|
-
./node_modules/.bin/
|
|
56
|
-
PATH="$PWD/node_modules/.bin:$PATH" ./node_modules/.bin/
|
|
57
|
-
ANYSWARM_FIRST_CHANNEL=beta-east ./node_modules/.bin/
|
|
55
|
+
./node_modules/.bin/anyswarm run ./session.ts ./input 'Prepare a release handoff.'
|
|
56
|
+
PATH="$PWD/node_modules/.bin:$PATH" ./node_modules/.bin/anyswarm run ./session.ts --rpc ./input 'Prepare a release handoff.'
|
|
57
|
+
ANYSWARM_FIRST_CHANNEL=beta-east ./node_modules/.bin/anyswarm run ./harness.ts --cwd ./input --prompt 'Prepare a release handoff.'
|
|
58
58
|
```
|
|
59
59
|
|
|
60
60
|
Use a separate input directory so capture excludes the example's dependencies and Run output. Both clients prompt for a channel such as `beta-east`. The one-shot foreground takes its channel from `ANYSWARM_FIRST_CHANNEL` and prints a final JSON record. JSONL clients may run explicit foreground with `--interaction questions` and answer by `questionId`. A successful run has `outcome: "completed"`, `acceptance.status: "verified"`, `export.status: "complete"` and `cleanup.status: "complete"`. Read the file named by the acceptance receipt, check its `channel=` line and compare its SHA‑256. Use the same Run's `reportPath` for the complete Host report.
|
|
@@ -113,7 +113,7 @@ From a built checkout, prepare OpenSandbox, a compatible Pi Worker image, a Gite
|
|
|
113
113
|
|
|
114
114
|
```bash
|
|
115
115
|
# Set run ID, immutable worker image, OpenSandbox URL, Gitea admin credentials, and model URL
|
|
116
|
-
|
|
116
|
+
anyswarm run ./benchmarks/lead-worker-orders/main.ts ./benchmarks/lead-worker-orders/config.ts
|
|
117
117
|
```
|
|
118
118
|
|
|
119
119
|
On close, the host fences new Board writes and calls `runtime.close()`. It closes the Board connection and revokes owned Gitea credentials only after Core confirms stopped execution and complete cleanup. Unknown execution, required export failures or Board evidence failures leave dependencies pending for reconciliation. The shared repository, Board database, commits and PRs remain for review. Inspect `harness-report.json` for business failure, delivered and unfinished work, uncertain inputs, cleanup and report-save outcomes.
|
|
@@ -113,7 +113,7 @@ export ANYSWARM_PEERMESH_MODEL_URL='https://your-model-endpoint/v1/responses'
|
|
|
113
113
|
export ANYSWARM_PEERMESH_PEERS=4
|
|
114
114
|
# Plus Gitea, Mattermost, and Board MySQL DSN host variables
|
|
115
115
|
|
|
116
|
-
|
|
116
|
+
anyswarm run ./scripts/run-harness.ts --config ./examples/peermesh/config.ts
|
|
117
117
|
```
|
|
118
118
|
|
|
119
119
|
Once `ready` is emitted, send JSON-line commands over `stdin` to observe or steer peers, or let the team run to its configured `durationMs`:
|
|
@@ -128,7 +128,7 @@ Inspect saved reports, merge receipts, and archive digests afterward:
|
|
|
128
128
|
|
|
129
129
|
```bash
|
|
130
130
|
runtime_id=RUNTIME_ID_FROM_RESULT
|
|
131
|
-
|
|
131
|
+
anyswarm run ./scripts/read-harness-result.ts \
|
|
132
132
|
--run-directory "./peermesh-runs/$runtime_id" \
|
|
133
133
|
--runtime-id "$runtime_id"
|
|
134
134
|
```
|
|
@@ -162,10 +162,10 @@ export ANYSWARM_MODEL_TOKEN='your-bearer-token'
|
|
|
162
162
|
# Optional: override the default prebuilt Worker image
|
|
163
163
|
# export ANYSWARM_WORKER_IMAGE='your-registry.example/compatible-worker:tag'
|
|
164
164
|
|
|
165
|
-
|
|
165
|
+
anyswarm run ./examples/subagents/main.ts ./examples/subagents/config.ts \
|
|
166
166
|
'Split this task into two independent checks and summarize the results.'
|
|
167
167
|
|
|
168
|
-
|
|
168
|
+
anyswarm run ./examples/subagents/main.ts ./examples/subagents/config.ts --interactive
|
|
169
169
|
```
|
|
170
170
|
|
|
171
171
|
Or embed `createSubagentsHarness` in Node.js:
|
|
@@ -96,11 +96,11 @@ export ANYSWARM_SUBSTRATE_RUN=research-01
|
|
|
96
96
|
export ANYSWARM_SUBSTRATE_MODEL_URL='https://your-model-endpoint/v1/responses'
|
|
97
97
|
export ANYSWARM_SUBSTRATE_MODEL_TOKEN='your-bearer-token'
|
|
98
98
|
|
|
99
|
-
|
|
99
|
+
anyswarm run ./examples/substrate/main.ts ./examples/substrate/config.ts > substrate-result.json
|
|
100
100
|
|
|
101
101
|
# Read saved receipts without loading model configuration:
|
|
102
102
|
runtime_id=RUNTIME_ID_FROM_RESULT
|
|
103
|
-
|
|
103
|
+
anyswarm run ./examples/substrate/main.ts --result "./substrate-runs/$runtime_id" --runtime-id "$runtime_id"
|
|
104
104
|
```
|
|
105
105
|
|
|
106
106
|
[collaboration-evidence.ts](https://github.com/AnySwarm/anyswarm/blob/main/examples/substrate/harness/collaboration-evidence.ts) audits `substrate_contents`, `substrate_references`, and `substrate_reads` to inspect a cross-peer reuse chain:
|
|
@@ -127,8 +127,8 @@ export ANYSWARM_FATE_BENCHMARK=FATE-X
|
|
|
127
127
|
export ANYSWARM_FATE_PROJECT=/path/to/fate-x
|
|
128
128
|
export ANYSWARM_FATE_LEAN=/path/to/lean-4.28.0
|
|
129
129
|
|
|
130
|
-
|
|
131
|
-
|
|
130
|
+
anyswarm run ./benchmarks/fate/main.ts --fate-prepare "$ANYSWARM_FATE_PROJECT" "$ANYSWARM_FATE_LEAN" FATE-X
|
|
131
|
+
anyswarm run ./benchmarks/fate/main.ts --fate-run ./benchmarks/fate/fate-config.ts
|
|
132
132
|
```
|
|
133
133
|
|
|
134
134
|
## Source files
|
|
@@ -84,7 +84,7 @@ For custom store compositions via the repository's foreground runner, provide an
|
|
|
84
84
|
After building the repository and creating that host module:
|
|
85
85
|
|
|
86
86
|
```bash
|
|
87
|
-
|
|
87
|
+
anyswarm run ./scripts/run-harness.ts --config ./my-taskpool-config.ts
|
|
88
88
|
```
|
|
89
89
|
|
|
90
90
|
The host accepts JSON-line `status`, Task-directed `input`, and `stop` commands. Task-directed input is resolved against the current Execution owner. It is not an arbitrary direct message to an Agent. The final record contains the Runtime identity and report path; the [foreground protocol](../../architecture/17-harness-reporting.md#foreground-harness-control) defines its commands and result codes.
|
|
@@ -92,7 +92,7 @@ The host accepts JSON-line `status`, Task-directed `input`, and `stop` commands.
|
|
|
92
92
|
Saved reports can be read without loading model configuration:
|
|
93
93
|
|
|
94
94
|
```bash
|
|
95
|
-
|
|
95
|
+
anyswarm run ./scripts/read-harness-result.ts \
|
|
96
96
|
--run-directory ./runs/RUNTIME_ID_FROM_RESULT \
|
|
97
97
|
--runtime-id RUNTIME_ID_FROM_RESULT
|
|
98
98
|
```
|
package/docs/en/latest.md
CHANGED
|
@@ -5,25 +5,29 @@ section: RELEASES
|
|
|
5
5
|
order: 15
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
-
## v0.5.
|
|
8
|
+
## v0.5.1
|
|
9
9
|
|
|
10
|
-
v0.5.
|
|
10
|
+
v0.5.1 adds the streaming terminal, Code, Personal, AutoResearch, and native macOS setup. See the [v0.5.1 changelog](changelog.md#v051) for platform requirements and verification status.
|
|
11
11
|
|
|
12
12
|
Install the CLI globally with npm and check the installed version.
|
|
13
13
|
|
|
14
14
|
```sh
|
|
15
|
-
npm install -g @anyswarm/core@0.5.
|
|
15
|
+
npm install -g @anyswarm/core@0.5.1
|
|
16
16
|
anyswarm --version
|
|
17
17
|
```
|
|
18
18
|
|
|
19
|
-
The [
|
|
19
|
+
The [v0.5.1 GitHub Release](https://github.com/AnySwarm/anyswarm/releases/tag/v0.5.1) also includes the npm archive.
|
|
20
20
|
|
|
21
21
|
To add the SDK as a dependency, run this command in your project.
|
|
22
22
|
|
|
23
23
|
```sh
|
|
24
|
-
npm install @anyswarm/core@0.5.
|
|
24
|
+
npm install @anyswarm/core@0.5.1
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
See [Install the SDK](reference/api.md#install-the-sdk) for SDK imports and the project-local CLI.
|
|
28
28
|
|
|
29
|
+
## v0.5.0
|
|
30
|
+
|
|
31
|
+
v0.5.0 was the first supported release of `@anyswarm/core`. See the [v0.5.0 changelog](changelog.md#v050) for that release.
|
|
32
|
+
|
|
29
33
|
Earlier releases used different npm package names. Their source and release artifacts are in the [GitHub release history](https://github.com/AnySwarm/anyswarm/releases).
|