agenttwin 0.3.29 → 0.3.31

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.
Files changed (91) hide show
  1. package/README.md +12 -12
  2. package/dist/api.js +5169 -1578
  3. package/dist/dashboard/assets/next/static/chunks/424-83736cfafc224fc6.js +1 -0
  4. package/dist/dashboard/assets/next/static/chunks/app/_not-found/{page-c6f624d554b27b69.js → page-5d1ba67144da5868.js} +1 -1
  5. package/dist/dashboard/assets/next/static/chunks/app/about/{page-43d4854d4b1d86c5.js → page-b09a2d8452522c20.js} +1 -1
  6. package/dist/dashboard/assets/next/static/chunks/app/account/password/page-b9ca284314cace59.js +1 -0
  7. package/dist/dashboard/assets/next/static/chunks/app/api-policy/page-94d508052ae30dcb.js +1 -0
  8. package/dist/dashboard/assets/next/static/chunks/app/auth/page-94d508052ae30dcb.js +1 -0
  9. package/dist/dashboard/assets/next/static/chunks/app/blog/{layout-95d886f62739f4dc.js → layout-b095a34d742bd1fd.js} +1 -1
  10. package/dist/dashboard/assets/next/static/chunks/app/compare/page-94d508052ae30dcb.js +1 -0
  11. package/dist/dashboard/assets/next/static/chunks/app/contact/page-94d508052ae30dcb.js +1 -0
  12. package/dist/dashboard/assets/next/static/chunks/app/dashboard/layout-820e83f47c1bfe08.js +1 -0
  13. package/dist/dashboard/assets/next/static/chunks/app/dashboard/page-8b436163bc85e182.js +1 -0
  14. package/dist/dashboard/assets/next/static/chunks/app/demo/page-ef75632088a6ea0b.js +1 -0
  15. package/dist/dashboard/assets/next/static/chunks/app/developers/page-94d508052ae30dcb.js +1 -0
  16. package/dist/dashboard/assets/next/static/chunks/app/docs/[[...slug]]/page-c25a8cab5ab065c4.js +1 -0
  17. package/dist/dashboard/assets/next/static/chunks/app/dpa/page-94d508052ae30dcb.js +1 -0
  18. package/dist/dashboard/assets/next/static/chunks/app/enterprise/{page-3d29d59a1eb50240.js → page-91c6176f28dfdccd.js} +1 -1
  19. package/dist/dashboard/assets/next/static/chunks/app/guides/page-94d508052ae30dcb.js +1 -0
  20. package/dist/dashboard/assets/next/static/chunks/app/{layout-98d18fdf606bbf5e.js → layout-be64d3e50db4b7a9.js} +1 -1
  21. package/dist/dashboard/assets/next/static/chunks/app/login/page-7ee25051f2743d68.js +1 -0
  22. package/dist/dashboard/assets/next/static/chunks/app/not-found-94d508052ae30dcb.js +1 -0
  23. package/dist/dashboard/assets/next/static/chunks/app/onboarding/page-26b963fb1dc02cc7.js +1 -0
  24. package/dist/dashboard/assets/next/static/chunks/app/page-ede77810f4904ea5.js +1 -0
  25. package/dist/dashboard/assets/next/static/chunks/app/pricing/page-535834810dc4bee1.js +1 -0
  26. package/dist/dashboard/assets/next/static/chunks/app/privacy/page-94d508052ae30dcb.js +1 -0
  27. package/dist/dashboard/assets/next/static/chunks/app/sandbox/page-94d508052ae30dcb.js +1 -0
  28. package/dist/dashboard/assets/next/static/chunks/app/scoreboard/page-94d508052ae30dcb.js +1 -0
  29. package/dist/dashboard/assets/next/static/chunks/app/security/page-94d508052ae30dcb.js +1 -0
  30. package/dist/dashboard/assets/next/static/chunks/app/signup/page-7ee25051f2743d68.js +1 -0
  31. package/dist/dashboard/assets/next/static/chunks/app/status/{page-cd504a0f1f3750ad.js → page-569ae36bd08d867c.js} +1 -1
  32. package/dist/dashboard/assets/next/static/chunks/app/subprocessors/page-94d508052ae30dcb.js +1 -0
  33. package/dist/dashboard/assets/next/static/chunks/app/terms/page-94d508052ae30dcb.js +1 -0
  34. package/dist/dashboard/assets/next/static/chunks/app/v2/dashboard/{layout-dd1a53a7169fae0c.js → layout-b92ad482b0164f93.js} +1 -1
  35. package/dist/dashboard/assets/next/static/chunks/app/v2/dashboard/page-b1341267b2478360.js +1 -0
  36. package/dist/dashboard/assets/next/static/chunks/app/v2/layout-edb84faba63372b4.js +1 -0
  37. package/dist/dashboard/assets/next/static/chunks/app/v2/login/page-bfbe86a28adc6d30.js +1 -0
  38. package/dist/dashboard/assets/next/static/chunks/app/v2/onboarding/page-79cd80f87d39230d.js +1 -0
  39. package/dist/dashboard/assets/next/static/chunks/app/v2/page-1391f1ae01a91dc0.js +1 -0
  40. package/dist/dashboard/assets/next/static/chunks/app/v2/signup/page-bfbe86a28adc6d30.js +1 -0
  41. package/dist/dashboard/assets/next/static/chunks/app/what-is-agenttwin/page-94d508052ae30dcb.js +1 -0
  42. package/dist/dashboard/assets/next/static/chunks/{main-app-fc15c8b77fd4ca78.js → main-app-b4faf61f2e1c2b6d.js} +1 -1
  43. package/dist/dashboard/assets/next/static/chunks/{webpack-e70726be37c03377.js → webpack-1d489f41fe167959.js} +1 -1
  44. package/dist/dashboard/assets/next/static/css/605ac70c9cf7a260.css +1 -0
  45. package/dist/dashboard/assets/next/static/css/734b61a26b31f1d1.css +1 -0
  46. package/dist/dashboard/assets/next/static/m3owxChJUGxcTX3zU04al/_buildManifest.js +1 -0
  47. package/dist/dashboard/index.html +2 -2
  48. package/dist/engine.js +23255 -18770
  49. package/dist/gateway.js +5166 -1575
  50. package/dist/twins/catalog.json +115 -115
  51. package/dist/twins/packs/slack/NOTICE +1 -1
  52. package/dist/twins/packs/slack/index.mjs +8 -8
  53. package/dist/twins/packs/stripe/NOTICE +1 -1
  54. package/dist/twins/packs/stripe/index.mjs +8 -8
  55. package/dist/worker.js +2906 -696
  56. package/dist/world-host.js +4432 -1018
  57. package/package.json +2 -1
  58. package/dist/dashboard/assets/next/static/5EaJ-x_xI1eye7zMTDuOp/_buildManifest.js +0 -1
  59. package/dist/dashboard/assets/next/static/chunks/424-7e795127b0a7cba5.js +0 -1
  60. package/dist/dashboard/assets/next/static/chunks/app/account/password/page-d0060cc659d5ca75.js +0 -1
  61. package/dist/dashboard/assets/next/static/chunks/app/api-policy/page-3c1feb87cb4b4f06.js +0 -1
  62. package/dist/dashboard/assets/next/static/chunks/app/auth/page-3c1feb87cb4b4f06.js +0 -1
  63. package/dist/dashboard/assets/next/static/chunks/app/compare/page-3c1feb87cb4b4f06.js +0 -1
  64. package/dist/dashboard/assets/next/static/chunks/app/contact/page-3c1feb87cb4b4f06.js +0 -1
  65. package/dist/dashboard/assets/next/static/chunks/app/dashboard/layout-9ec3ca4e9632d444.js +0 -1
  66. package/dist/dashboard/assets/next/static/chunks/app/dashboard/page-84db2c0a598045ec.js +0 -1
  67. package/dist/dashboard/assets/next/static/chunks/app/demo/page-0b1c4ff85e5b6348.js +0 -1
  68. package/dist/dashboard/assets/next/static/chunks/app/developers/page-3c1feb87cb4b4f06.js +0 -1
  69. package/dist/dashboard/assets/next/static/chunks/app/docs/[[...slug]]/page-ad2da9c2524e9e28.js +0 -1
  70. package/dist/dashboard/assets/next/static/chunks/app/dpa/page-3c1feb87cb4b4f06.js +0 -1
  71. package/dist/dashboard/assets/next/static/chunks/app/guides/page-3c1feb87cb4b4f06.js +0 -1
  72. package/dist/dashboard/assets/next/static/chunks/app/login/page-879c505c2da4eac0.js +0 -1
  73. package/dist/dashboard/assets/next/static/chunks/app/not-found-3c1feb87cb4b4f06.js +0 -1
  74. package/dist/dashboard/assets/next/static/chunks/app/onboarding/page-e3541aed36a263ad.js +0 -1
  75. package/dist/dashboard/assets/next/static/chunks/app/page-6ea1b60b4e5bed77.js +0 -1
  76. package/dist/dashboard/assets/next/static/chunks/app/pricing/page-ab4c8f622a21cf5c.js +0 -1
  77. package/dist/dashboard/assets/next/static/chunks/app/privacy/page-3c1feb87cb4b4f06.js +0 -1
  78. package/dist/dashboard/assets/next/static/chunks/app/sandbox/page-3c1feb87cb4b4f06.js +0 -1
  79. package/dist/dashboard/assets/next/static/chunks/app/security/page-3c1feb87cb4b4f06.js +0 -1
  80. package/dist/dashboard/assets/next/static/chunks/app/signup/page-879c505c2da4eac0.js +0 -1
  81. package/dist/dashboard/assets/next/static/chunks/app/subprocessors/page-3c1feb87cb4b4f06.js +0 -1
  82. package/dist/dashboard/assets/next/static/chunks/app/terms/page-3c1feb87cb4b4f06.js +0 -1
  83. package/dist/dashboard/assets/next/static/chunks/app/v2/dashboard/page-cdd820c9c823e9d4.js +0 -1
  84. package/dist/dashboard/assets/next/static/chunks/app/v2/layout-be77b6c78ba7b242.js +0 -1
  85. package/dist/dashboard/assets/next/static/chunks/app/v2/login/page-8e3ceb2f28834264.js +0 -1
  86. package/dist/dashboard/assets/next/static/chunks/app/v2/onboarding/page-1a69aae578822c34.js +0 -1
  87. package/dist/dashboard/assets/next/static/chunks/app/v2/page-1f7d68217fedfdbe.js +0 -1
  88. package/dist/dashboard/assets/next/static/chunks/app/v2/signup/page-8e3ceb2f28834264.js +0 -1
  89. package/dist/dashboard/assets/next/static/chunks/app/what-is-agenttwin/page-3c1feb87cb4b4f06.js +0 -1
  90. package/dist/dashboard/assets/next/static/css/83930ae013ae9eac.css +0 -1
  91. /package/dist/dashboard/assets/next/static/{5EaJ-x_xI1eye7zMTDuOp → m3owxChJUGxcTX3zU04al}/_ssgManifest.js +0 -0
package/README.md CHANGED
@@ -12,7 +12,7 @@ npx agenttwin
12
12
 
13
13
  In about ten seconds it picks a workflow, runs it on twins, breaks it on purpose and prints what it found, for example *"Your agent refunded ch_at_1001 twice: $26.00 paid out more than intended"*, with the exact code change that fixes it. Apply and prove the fix with `npx agenttwin --fix`.
14
14
 
15
- - **See it in the dashboard:** `npx agenttwin init` connects your repository to [agenttwin.si](https://agenttwin.si/dashboard/).
15
+ - **See it in the dashboard:** `npx agenttwin` connects your repository to [agenttwin.si](https://agenttwin.si/dashboard/).
16
16
  - **Use it from your coding agent:** `npx agenttwin mcp` gives Claude Code, Cursor, Codex and others the same tools (find_and_fix, run history, team and more).
17
17
  - **Block bad merges:** `npx agenttwin check install` adds the AgentTwin check to pull requests.
18
18
 
@@ -23,25 +23,25 @@ The rest of this page is the full reference.
23
23
  Works with any Node.js version. Run discovery from your project; npx installs the CLI automatically:
24
24
 
25
25
  ```sh
26
- npx agenttwin init
26
+ npx agenttwin
27
27
  ```
28
28
 
29
29
  This command also works in non-JavaScript repositories: the project's language does not have to match the CLI's Node.js implementation. Discovery recognizes dependency and language clues across Node, Python, Go, Java, Ruby, PHP and .NET, with different coverage per ecosystem. Runnable worlds currently require bundled Node applications; discovery support alone does not establish execution support.
30
30
 
31
- The Python entry point is being prepared in `packages/python/` for `uvx agenttwin init`. It is not published to PyPI yet. See that package's README for the source-install command and its Node.js prerequisite. It invokes the same versioned engine and uses the same repository/account flow, rather than implementing a second discovery service.
31
+ The Python entry point is being prepared in `packages/python/` for `uvx agenttwin`. It is not published to PyPI yet. See that package's README for the source-install command and its Node.js prerequisite. It invokes the same versioned engine and uses the same repository/account flow, rather than implementing a second discovery service.
32
32
 
33
- `init` discovers and connects your repository, then shows one recommended next step: set up your first test, or run the test you already selected. You can search and page through detected workflows, load a reviewed test file, and view the last result. Fault exploration, replay, patch verification, regressions, CI setup and runtime selection live under Advanced options. Bare `npx agenttwin` opens the same menu. `npx agenttwin refresh` updates discovery without executing application code. Existing commands remain available to CI and coding agents. Selecting a discovered workflow saves your choice and provides a coding-agent preparation request; it does not automatically create or execute a test.
33
+ `npx agenttwin` scans your repository and saves the project map to `.agenttwin/inventory.json`. In a terminal it offers to sign in (once, through the browser) and uploads the map so the dashboard shows every service and workflow it found. Then it picks a workflow, runs it on twins, breaks it and shows what failed. Choose a workflow with `--workflow <name>`. `npx agenttwin refresh` updates discovery without executing application code. `npx agenttwin sync --watch` stays open to prepare tests you request from the dashboard. Seeded fault trials: `npx agenttwin explore --file world.json`.
34
34
 
35
- Discovery writes the inventory, workflow candidates, `agenttwin.config.json`, `ENVIRONMENT.md`, `REPLICATION.md`, and an offline browser report. A discovered candidate is not an executable specification: the menu accepts a reviewed `agenttwin.world.json` with explicit bundled Node files, synthetic services, invocation and required outcomes. The optional demo is clearly labeled as synthetic. Redirected input and `--yes` only perform discovery; they never start the interactive execution loop. `init --json --dry-run` writes nothing. Interactive init connects and syncs discovery after the first browser approval; saved connections sync without another approval. Noninteractive init never uploads automatically.
35
+ Discovery writes the inventory, workflow candidates, `agenttwin.config.json`, `ENVIRONMENT.md`, `REPLICATION.md`, and an offline browser report. A discovered candidate is not an executable specification: the menu accepts a reviewed `agenttwin.world.json` with explicit bundled Node files, synthetic services, invocation and required outcomes. The optional demo is clearly labeled as synthetic. `refresh --json --dry-run` writes nothing. Sign-in is offered only in an interactive terminal; saved connections sync without another approval. CI and `--yes` runs never open a browser and upload only when a token is already configured.
36
36
 
37
- 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.
37
+ Seeded exploration (`npx agenttwin explore --file world.json [--seed S] [--trials N]`, then `explore replay|verify|save --id ID`) 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.
38
38
 
39
39
  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.
40
40
 
41
41
  Exclude unused integrations by name; your choices are remembered for this repository:
42
42
 
43
43
  ```sh
44
- npx agenttwin init --exclude "Ollama,ClickHouse,AWS,Google Cloud"
44
+ npx agenttwin refresh --exclude "Ollama,ClickHouse,AWS,Google Cloud"
45
45
  ```
46
46
 
47
47
  ## Test through the CLI
@@ -109,7 +109,7 @@ MIT license.
109
109
 
110
110
  ## Discovery dashboard
111
111
 
112
- `agenttwin init --yes` detects project dependencies, tooling and available connector configuration, then writes `.agenttwin/dashboard/index.html`. Open that file to review the detected environment without selecting every connector or uploading inventory. The dashboard includes its assets and an allowlisted discovery payload; account records, credential values and evidence paths are excluded. It starts with no saved run receipts. Detection does not verify provider access or implement an adapter.
112
+ `npx agenttwin --yes` detects project dependencies, tooling and available connector configuration, then writes `.agenttwin/dashboard/index.html`. Open that file to review the detected environment without selecting every connector or uploading inventory. The dashboard includes its assets and an allowlisted discovery payload; account records, credential values and evidence paths are excluded. It starts with no saved run receipts. Detection does not verify provider access or implement an adapter.
113
113
 
114
114
  The website starts empty and does not import this repository’s inventory automatically. Create an account on the website, connect your terminal with `npx agenttwin login`, and run `npx agenttwin sync`, or import discovery JSON manually. Removed detected resources stay excluded until a fresh discovery revision. The generated project dashboard loads its own embedded discovery.
115
115
 
@@ -148,17 +148,17 @@ Supported mapping contracts: bounded Slack operations, PostgreSQL, Redis and cus
148
148
 
149
149
  ### Updates
150
150
 
151
- Interactive `npx agenttwin` and `npx agenttwin init` check the official npm registry on startup and automatically install and run a newer stable release in the same repository. Offline startup continues with an explicit warning. Updates do not run in CI, noninteractive/JSON mode, dry runs, or advanced automation commands. Set `AGENTTWIN_AUTO_UPDATE=0` to retain an installed release; checkouts ahead of the published release are never downgraded.
151
+ Interactive `npx agenttwin` checks the official npm registry on startup and automatically installs and runs a newer stable release in the same repository. Offline startup continues with an explicit warning. Updates do not run in CI, noninteractive/JSON mode, dry runs, or advanced automation commands. Set `AGENTTWIN_AUTO_UPDATE=0` to retain an installed release; checkouts ahead of the published release are never downgraded.
152
152
 
153
- Older releases without this updater cannot update themselves. After the new release is published, bootstrap once with `npx --yes agenttwin@latest init`; normal guided use remains `npx agenttwin init`. npm can otherwise resolve a local or cached older package.
153
+ Older releases without this updater cannot update themselves. After the new release is published, bootstrap once with `npx --yes agenttwin@latest`; normal guided use remains `npx agenttwin`. npm can otherwise resolve a local or cached older package.
154
154
 
155
155
  ### Coding session and dashboard discovery
156
156
 
157
- 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/AgentTwin/agenttwin-agent-tools) (`/plugin marketplace add AgentTwin/agenttwin-agent-tools` in Claude Code).
157
+ Run `npx agenttwin` inside your repository (any Node.js version). It offers sign-in, uploads the project map to your dashboard and tests a workflow. It does not launch a coding agent. 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/AgentTwin/agenttwin-agent-tools) (`/plugin marketplace add AgentTwin/agenttwin-agent-tools` in Claude Code).
158
158
 
159
159
  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.
160
160
 
161
- Create a workspace at https://agenttwin.si/signup/ or run `npx agenttwin login` from your repository. Run `npx agenttwin init`. On first use, sign in in the browser, compare its prefilled connection code with your terminal, and click Connect terminal. Keep init running: project discovery syncs automatically, and onboarding refreshes to show it. Subsequent interactive init runs use the saved connection without another sharing prompt. Terminal credentials are stored with owner-only permissions in `~/.agenttwin/credentials.json`, outside your repository. You can still supply `AGENTTWIN_TOKEN` for automation. Optional `AGENTTWIN_API_URL` selects your API. The website loads account discovery after you connect in Settings, then refreshes while visible. Sync sends names, operations and relative entrypoint metadata; application source uploads happen separately through reviewed bundles. Avoid sensitive names or identifiers in discovery metadata.
161
+ Create a workspace at https://agenttwin.si/signup/ or run `npx agenttwin login` from your repository. Run `npx agenttwin`. On first use, sign in in the browser, compare its prefilled connection code with your terminal, and click Connect terminal. The project map uploads right away, and onboarding refreshes to show it. Later runs use the saved connection without another prompt. To prepare tests from the dashboard, run `npx agenttwin sync --watch` and keep it open. Terminal credentials are stored with owner-only permissions in `~/.agenttwin/credentials.json`, outside your repository. You can still supply `AGENTTWIN_TOKEN` for automation. Optional `AGENTTWIN_API_URL` selects your API. The website loads account discovery after you connect in Settings, then refreshes while visible. Sync sends names, operations and relative entrypoint metadata; application source uploads happen separately through reviewed bundles. Avoid sensitive names or identifiers in discovery metadata.
162
162
 
163
163
  To execute a workflow, supply an executable Node entrypoint, reviewed supported dependency mappings, synthetic fixtures and expected observable outcomes. Run `npx agenttwin prepare --file preparation.json`, review the bundle, and run it through your AgentTwin API or E2B account. Browser/desktop automation and arbitrary vendor SDKs require additional runtimes/adapters. The CLI is the default runner; select a hosted runner only when the workflow requires it. No local Docker is used.
164
164