agenttwin 0.3.19 → 0.3.21
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/README.md +7 -9
- package/dist/api.js +9240 -1135
- package/dist/cli.js +26 -21
- package/dist/dashboard/assets/next/static/chunks/1250-7571b1a697f6bb4a.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/2868-424d32cfc8ae81c9.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/9675.d833ca9b2d89cf8a.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/_not-found/page-9390b6ace45cc1ff.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/about/page-f7d9ffd4f6138e0e.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/api-policy/page-aa11ba1b9100c0ca.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/auth/page-aa11ba1b9100c0ca.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/blog/layout-1e8a656895b65474.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/compare/page-aa11ba1b9100c0ca.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/contact/page-aa11ba1b9100c0ca.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/dashboard/layout-2d0408d8f22d7921.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/dashboard/page-9c11295678539a5f.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/developers/page-aa11ba1b9100c0ca.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/docs/[[...slug]]/page-f9fca2c08f779fa0.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/enterprise/page-220e50b34fd67668.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/guides/page-aa11ba1b9100c0ca.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/layout-cd911546738f01ed.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/not-found-aa11ba1b9100c0ca.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/page-6d01bfbee0186f28.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/pricing/page-1200305185e4183f.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/privacy/page-aa11ba1b9100c0ca.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/sandbox/page-aa11ba1b9100c0ca.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/v2/dashboard/{layout-a5cf565e017886d3.js → layout-a1c12faf8094e40e.js} +1 -1
- package/dist/dashboard/assets/next/static/chunks/app/v2/page-07c8054d57c9089b.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/what-is-agenttwin/page-aa11ba1b9100c0ca.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/webpack-40324749d289e4a5.js +1 -0
- package/dist/dashboard/assets/next/static/css/1d1b20bd9fb076d4.css +1 -0
- package/dist/dashboard/assets/next/static/css/2c38dfe54afd9bb6.css +1 -0
- package/dist/dashboard/assets/next/static/css/39133c9a03c8edb8.css +1 -0
- package/dist/dashboard/assets/next/static/css/{18afa3e32331c41d.css → 42045de5f39b50ca.css} +1 -1
- package/dist/dashboard/assets/next/static/css/{77c0c440ebb56bc4.css → 423c6df577acd447.css} +1 -1
- package/dist/dashboard/assets/next/static/css/{d131a6499fe6cf19.css → 4bbe78c2fe206b92.css} +1 -1
- package/dist/dashboard/assets/next/static/css/7109685b391c1c46.css +1 -0
- package/dist/dashboard/assets/next/static/css/96134c7d160c4fc3.css +1 -0
- package/dist/dashboard/assets/next/static/css/b068ffd8e6f22102.css +1 -0
- package/dist/dashboard/assets/next/static/css/bbce83b7ab716064.css +1 -0
- package/dist/dashboard/index.html +6 -2
- package/dist/engine.js +21898 -10960
- package/dist/gateway.js +9254 -1142
- package/dist/worker.js +1641 -62
- package/dist/world-host.js +2380 -80
- package/package.json +18 -3
- package/dist/dashboard/assets/next/static/chunks/1482.c28f7cd0f92885c1.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/2868-b80a3af454408935.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/3056.ffa9a4d44a274b29.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/5531-fde254dbd21c3153.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/9675.14739028910476e4.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/_not-found/page-43db8aef3fa81958.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/about/page-3f5dbcdbf95bb2fc.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/api-policy/page-3f5dbcdbf95bb2fc.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/auth/page-3f5dbcdbf95bb2fc.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/blog/layout-563d8763d65d66b5.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/compare/page-3f5dbcdbf95bb2fc.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/contact/page-3f5dbcdbf95bb2fc.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/dashboard/layout-1afe915ed22ac5ed.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/dashboard/page-0eb9937f1e5e9c1e.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/developers/page-3f5dbcdbf95bb2fc.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/docs/[[...slug]]/page-1800a8f06aeb4acb.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/enterprise/page-1fd02494889ae794.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/guides/page-3f5dbcdbf95bb2fc.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/layout-993a96283a3ceb07.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/page-2e622bb9a3459541.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/pricing/page-40f352fe5093a0ff.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/privacy/page-3f5dbcdbf95bb2fc.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/sandbox/page-3f5dbcdbf95bb2fc.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/v2/page-3905446ec0206fb5.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/what-is-agenttwin/page-3f5dbcdbf95bb2fc.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/webpack-d20e6727e78cdbc8.js +0 -1
- package/dist/dashboard/assets/next/static/css/7263c178012081d9.css +0 -1
- package/dist/dashboard/assets/next/static/css/d5d08788c3435fdf.css +0 -1
- /package/dist/dashboard/assets/next/static/{JSI_XeT8MHbUAs8aF59pe → 5ub3D2yzS8DE7w2qZd1nv}/_buildManifest.js +0 -0
- /package/dist/dashboard/assets/next/static/{JSI_XeT8MHbUAs8aF59pe → 5ub3D2yzS8DE7w2qZd1nv}/_ssgManifest.js +0 -0
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@ The default `run` runner executes reviewed bundled Node code on your computer, w
|
|
|
6
6
|
|
|
7
7
|
## Install and discover
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
Works with any Node.js version. Run discovery from your project; npx installs the CLI automatically:
|
|
10
10
|
|
|
11
11
|
```sh
|
|
12
12
|
npx agenttwin init
|
|
@@ -22,8 +22,6 @@ Discovery writes the inventory, workflow candidates, `agenttwin.config.json`, `E
|
|
|
22
22
|
|
|
23
23
|
Seeded exploration includes an unfaulted control and up to 31 timeout-after-write trials. A seed controls the selected service/path and delay, not OS scheduling or arbitrary application randomness. Each trial uses fresh service state. Captured application files, checks, fault cases and receipts stay under `.agenttwin/explorations/`. Replay uses the captured application; patch verification uses current application files with the captured checks and fault cases. Hash mismatches reject accidental snapshot edits. This is local evidence, not a tamper-proof security boundary; protected CI anchors saved regression checks in a trusted Git baseline. Unexercised fault targets and unsupported provider operations remain incomplete.
|
|
24
24
|
|
|
25
|
-
This guided entry point describes the current source checkout. It reaches public `npx` users only after this package is published; verify the installed version when using a registry release.
|
|
26
|
-
|
|
27
25
|
Installed packages and source references are clues, not proof that an integration is active. Credentials, environment keys and deployment configuration are kept separately. Unmatched `.env` entries do not require setup and are never turned into services by an interactive prompt.
|
|
28
26
|
|
|
29
27
|
Exclude unused integrations by name; your choices are remembered for this repository:
|
|
@@ -91,7 +89,7 @@ Every twin is a bounded subset, not a vendor clone. Unsupported operations retur
|
|
|
91
89
|
|
|
92
90
|
## Operate the API
|
|
93
91
|
|
|
94
|
-
The package includes `dist/gateway.js`. Deploy it on a server with Node
|
|
92
|
+
The package includes `dist/gateway.js`. Deploy it on a server with Node 20 or newer, HTTPS ingress and persistent disk. See the repository's `docs/HOSTED-RUNTIME.md` for deployment, accounts, limits and operational boundaries. The gateway stores synced discovery and CLI results, serves chat, and can optionally dispatch cloud jobs. It starts without E2B credentials; cloud submissions then return a clear unavailable response. Applications submitted for cloud execution run in separate E2B sandboxes.
|
|
95
93
|
|
|
96
94
|
MIT license.
|
|
97
95
|
|
|
@@ -142,7 +140,7 @@ Older releases without this updater cannot update themselves. After the new rele
|
|
|
142
140
|
|
|
143
141
|
### Coding session and dashboard discovery
|
|
144
142
|
|
|
145
|
-
Run `npx agenttwin init` inside your repository (Node.js
|
|
143
|
+
Run `npx agenttwin init` inside your repository (any Node.js version). Interactive init connects your account, syncs project discovery and opens the guided repository menu. It does not launch another coding agent automatically. `npx agenttwin init --agent opencode` launches OpenCode explicitly with your configured provider and its normal permission controls. Provider authentication and usage belong to your coding-agent account. Other coding agents can use `.agenttwin/AGENT-TASK.md`. To give Claude Code or Cursor the local MCP tools and skills in one install, add the [AgentTwin plugin](https://github.com/Sashank-Singh/agenttwin-agent-tools) (`/plugin marketplace add Sashank-Singh/agenttwin-agent-tools` in Claude Code).
|
|
146
144
|
|
|
147
145
|
The session traces workflows across files, records intents and production failure hypotheses in `.agenttwin/WORKFLOWS.md`, and writes metadata to `.agenttwin/agent-discovery.json`. Static candidates retain their original evidence. Agent candidates remain unverified until the workflow is explicitly prepared and executed. Static discovery preserves distinct exported side-effect entrypoints, including repositories with 100 candidates; it does not prove that every business workflow has been found.
|
|
148
146
|
|
|
@@ -183,7 +181,7 @@ Command metrics include category, CLI version, Node major, platform, duration, e
|
|
|
183
181
|
|
|
184
182
|
`agenttwin test` reuses the test selected during `init`; it still requires the proposal’s separate approval. Alternatively, save a reviewed workflow-test scenario as `agenttwin.test.json` in your repository. Explicit `--file` and `--preparation` override automatic selection. A missing or unreviewed test stops with setup instructions; it never silently runs the sample.
|
|
185
183
|
|
|
186
|
-
## Audit export
|
|
184
|
+
## Audit export
|
|
187
185
|
|
|
188
186
|
```sh
|
|
189
187
|
agenttwin audit export --file path/to/run.json --world path/to/agenttwin.world.json --out audit.json --fault none
|
|
@@ -191,7 +189,7 @@ agenttwin audit export --file path/to/run.json --world path/to/agenttwin.world.j
|
|
|
191
189
|
|
|
192
190
|
Recomputes the existing verifier before exporting a bounded JSON summary. Use the same fault and scenario selection as the original run; omit `--fault` to use the world's default. PostgreSQL evidence requires Docker for independent SQL recomputation. The output fingerprints the receipt, world, optional scenario and selection. It omits raw state, application output, source filenames and verifier detail text; creates a private file; and refuses to overwrite existing files. Exit 0 means verified, 1 means failed or invalid, and 2 means stale evidence or inputs changing during verification. Usage errors exit 3. The original receipts remain unchanged. This is local evidence, not a signature, compliance certification, safety score or zero-retention guarantee.
|
|
193
191
|
|
|
194
|
-
## Verify a proposed repair
|
|
192
|
+
## Verify a proposed repair
|
|
195
193
|
|
|
196
194
|
```sh
|
|
197
195
|
agenttwin repair verify --regression .agenttwin/regressions/mail.json \
|
|
@@ -205,7 +203,7 @@ Only modifications to existing application source in the regression's recorded c
|
|
|
205
203
|
|
|
206
204
|
Evidence is saved privately under `.agenttwin/repairs/<id>/`: `report.json` and the proposed patch, plus an exact baseline `regression.json` only after successful verification. These local files can contain synthetic state, source changes and application output; nothing is uploaded. Review and commit the captured regression before using it as a permanent CI check. Keep the original revision and patch: the unreferenced candidate commit can be garbage-collected. Exit 0 means verified, 1 rejected, 2 incomplete, 3 invalid usage. No automatic patch generation, source edit, merge or production deployment is performed. Passing the recorded checks does not prove all application behavior.
|
|
207
205
|
|
|
208
|
-
## Generate and verify a repair
|
|
206
|
+
## Generate and verify a repair
|
|
209
207
|
|
|
210
208
|
```sh
|
|
211
209
|
agenttwin repair run --agent codex --regression .agenttwin/regressions/mail.json \
|
|
@@ -218,7 +216,7 @@ The original isolated assertion or policy failure must reproduce before the agen
|
|
|
218
216
|
|
|
219
217
|
Requires a native Codex version supporting `exec`, `--ignore-user-config`, `--ignore-rules`, `--ephemeral`, `--sandbox read-only` and structured output flags. Default timeout is five minutes; `--timeout-ms` accepts 30,000–900,000. Temporary proposal files are removed. Private `generation.json` records hashes and transport status alongside verification evidence; transport failures retain local failure evidence without accepting a repair. Raw client diagnostics are not uploaded or copied to command output. Review the generated patch and commit the captured regression before using it in CI. This command does not change your working source, staged changes or branch, or automatically merge/deploy a patch. Native-model generation is distinct from independent Docker verification; fake-provider orchestration tests do not prove a live model can repair a customer workflow.
|
|
220
218
|
|
|
221
|
-
## Prepare CI after a verified repair
|
|
219
|
+
## Prepare CI after a verified repair
|
|
222
220
|
|
|
223
221
|
Add `--install-ci --tooling-revision FULL_REVIEWED_AGENTTWIN_SHA --check-name mail-retries` to `repair verify` or `repair run` to prepare a named GitHub Actions workflow after verification succeeds. The working regression must exactly match the committed trusted baseline; a rejected repair, changed regression, unsupported CI runtime or existing workflow prevents installation. A CI setup error returns an incomplete status while preserving the verified repair evidence.
|
|
224
222
|
|