agenttwin 0.2.1 → 0.2.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/README.md CHANGED
@@ -6,7 +6,7 @@ AgentTwin 0.2.0 executes application code in E2B. No local application container
6
6
 
7
7
  ## Install and discover
8
8
 
9
- Node.js 22+ is required. Run discovery from your project; npx installs the CLI automatically:
9
+ Node.js 22.12+ is required. Run discovery from your project; npx installs the CLI automatically:
10
10
 
11
11
  ```sh
12
12
  npx agenttwin init
@@ -107,7 +107,7 @@ Supported mapping contracts: bounded Slack operations, PostgreSQL, Redis and cus
107
107
 
108
108
  ### Coding session and dashboard discovery
109
109
 
110
- Run `npx agenttwin init` inside your repository (Node.js 22+). Interactive init offers an OpenCode session when the CLI is installed; `npx agenttwin init --agent opencode` launches 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`.
110
+ Run `npx agenttwin init` inside your repository (Node.js 22.12+). Interactive init offers an OpenCode session when the CLI is installed; `npx agenttwin init --agent opencode` launches 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`.
111
111
 
112
112
  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.
113
113
 
@@ -433,6 +433,6 @@ $('#detail').addEventListener('click',event=>{if(event.target.closest('#download
433
433
  window.agentTwinDashboard.clearAccount=()=>{
434
434
  runs=runs.filter(r=>!fetched.has(r.runId));fetched.clear();
435
435
  environmentTools=environmentTools.filter(t=>t.declared);environmentWorkflows=[];
436
- inventoryImported=false;environmentProject='Your project';discoverySignature='';discoveryRevision='';dismissedDiscovery.clear();
436
+ inventoryImported=false;environmentProject='Your project';discoverySignature='';discoveryRevision='';dismissedDiscovery.clear();workflowQuery='';$('#environment-message').textContent='';
437
437
  renderEnvironment();renderConnectors();render();
438
438
  };
@@ -5,7 +5,7 @@
5
5
  <title>Workflow dashboard · AgentTwin</title>
6
6
  <meta name="description" content="Inspect actual AgentTwin sandbox runs, state changes, assertions, faults and application logs.">
7
7
  <link rel="icon" href="assets/logo/favicon.svg"><link rel="stylesheet" href="assets/brand.css"><link rel="stylesheet" href="assets/dashboard/dashboard.css">
8
- <script src="assets/dashboard/dashboard.js?v=0.2.1" type="module"></script><script src="assets/dashboard/hosted.js" defer></script>
8
+ <script src="assets/dashboard/dashboard.js?v=0.2.2" type="module"></script><script src="assets/dashboard/hosted.js" defer></script>
9
9
  </head>
10
10
  <body>
11
11
  <a class="skip" href="#main">Skip to content</a>
@@ -24,7 +24,7 @@
24
24
  <p id="api-message" class="coverage" role="status" aria-live="polite"></p>
25
25
  <section id="environment-view">
26
26
  <div class="heading"><div><p class="eyebrow">Project / environment</p><h1>Your environment</h1><p class="muted">Review the tools your workflow uses and what AgentTwin can replicate.</p></div><div class="actions"><label class="upload">Import discovery<input id="inventory-import" type="file" accept="application/json,.json"></label><button id="configure-run" class="primary" type="button">Review workflows →</button></div></div>
27
- <div class="discovery-onboarding"><aside class="terminal-panel"><div class="terminal-title"><img src="assets/icons/ui/terminal.svg" width="16" height="16" alt=""><h2>Discover your project</h2><span>Run in your terminal</span></div><div class="terminal-content"><p class="terminal-comment">Run discovery from your project</p><div class="terminal-command"><span>$</span><code>npx agenttwin init</code><button id="copy-init" type="button" aria-label="Copy discovery command">Copy</button></div><p class="terminal-comment">Node.js 22+ required. Run this inside the project you want to replicate.</p><div class="terminal-output" id="terminal-output"><p>Waiting for your project inventory.</p><p>Connect your account in Settings, then sync from your terminal. Manual inventory import also works.</p></div><div class="terminal-boundary"><p>Init offers an OpenCode session when installed. Use <code>npx agenttwin init --agent opencode</code> to launch explicitly, or use the generated AGENT-TASK.md with any coding agent. After reviewing findings, set AGENTTWIN_TOKEN and run <code>npx agenttwin sync</code>. Source files are uploaded separately for execution.</p></div></div><div class="terminal-footer">Execution happens in hosted sandboxes.</div></aside><section class="workflow-area"><h2>Discovery</h2><div id="environment-workflows"><p class="coverage">Import discovery to review the code paths and dependencies it found. A candidate needs an explicit invocation and supported behavior before it can run.</p></div></section></div>
27
+ <div class="discovery-onboarding"><aside class="terminal-panel"><div class="terminal-title"><img src="assets/icons/ui/terminal.svg" width="16" height="16" alt=""><h2>Discover your project</h2><span>Run in your terminal</span></div><div class="terminal-content"><p class="terminal-comment">Run discovery from your project</p><div class="terminal-command"><span>$</span><code>npx agenttwin init</code><button id="copy-init" type="button" aria-label="Copy discovery command">Copy</button></div><p class="terminal-comment">Node.js 22.12+ required. Run this inside the project you want to replicate.</p><div class="terminal-output" id="terminal-output"><p>Waiting for your project inventory.</p><p>Connect your account in Settings, then sync from your terminal. Manual inventory import also works.</p></div><div class="terminal-boundary"><p>Init offers an OpenCode session when installed. Use <code>npx agenttwin init --agent opencode</code> to launch explicitly, or use the generated AGENT-TASK.md with any coding agent. After reviewing findings, set AGENTTWIN_TOKEN and run <code>npx agenttwin sync</code>. Source files are uploaded separately for execution.</p></div></div><div class="terminal-footer">Execution happens in hosted sandboxes.</div></aside><section class="workflow-area"><h2>Discovery</h2><div id="environment-workflows"><p class="coverage">Import discovery to review the code paths and dependencies it found. A candidate needs an explicit invocation and supported behavior before it can run.</p></div></section></div>
28
28
  <div id="environment-coverage" class="coverage-strip"></div><div class="environment-grid">
29
29
  <section class="discovery-area"><div class="section-title"><h2>Selected resources</h2><div class="actions"><button id="add-app-toggle" type="button">Add custom software</button><button id="select-software" type="button">Select software</button></div></div><p id="inventory-context" class="coverage">No project connected. Import the inventory from your CLI to see its dependencies and workflow candidates.</p>
30
30
  <form id="add-app" class="app-declaration" hidden><label>App or tool name<input id="app-name" required maxlength="80" placeholder="For example, Apple Mail"></label><label>How the agent uses it<select id="app-interface"><option value="desktop">Desktop interface · no API required</option><option value="browser">Browser interface</option><option value="api">API / connector</option><option value="terminal">Terminal / command line</option></select></label><button type="submit">Add to environment</button></form>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agenttwin",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "Give your agent a test world before it touches the real one.",
5
5
  "keywords": [
6
6
  "agent",
@@ -21,7 +21,7 @@
21
21
  "LICENSE"
22
22
  ],
23
23
  "engines": {
24
- "node": ">=22"
24
+ "node": ">=22.12.0"
25
25
  },
26
26
  "license": "MIT",
27
27
  "scripts": {