agenttwin 0.3.39 → 0.3.42
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 +15 -2
- package/dist/api.js +4969 -2504
- package/dist/dashboard/assets/dashboard/agent-home.css +9 -0
- package/dist/dashboard/assets/next/static/0c5Jl9bTubWj2XMQXJ8Nb/_buildManifest.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/2960-520ffde27b062af4.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/_not-found/page-99068bea25396c07.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/about/page-e0162fbc9ea8f526.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/account/password/page-87426eee9ff89b47.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/api-policy/page-59f706ed0c769951.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/auth/page-59f706ed0c769951.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/blog/agenttwin-vs-arga-labs/page-f01a377f117e9baa.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/blog/agenttwin-vs-mockoon/page-f01a377f117e9baa.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/blog/agenttwin-vs-pact/page-f01a377f117e9baa.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/blog/agenttwin-vs-testcontainers/page-f01a377f117e9baa.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/blog/agenttwin-vs-wiremock/page-f01a377f117e9baa.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/blog/ai-agent-refunded-twice-after-timeout/page-f01a377f117e9baa.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/blog/arga-labs-alternatives/page-f01a377f117e9baa.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/blog/choose-first-agent-workflow-test/page-f01a377f117e9baa.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/blog/clean-baseline-before-fault-injection/page-f01a377f117e9baa.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/blog/find-agent-workflows-that-run-twice/page-f01a377f117e9baa.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/blog/free-digital-twins-for-agent-testing/page-f01a377f117e9baa.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/blog/idempotency-keys-and-safe-retries/page-f01a377f117e9baa.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/blog/inject-timeouts-and-rate-limits-into-agent-tool-calls/page-f01a377f117e9baa.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/blog/keep-real-service-tests-with-digital-twins/page-f01a377f117e9baa.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/blog/keploy-alternatives-for-database-and-payment-workflows/page-f01a377f117e9baa.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/blog/{layout-d92d0846e7847b0f.js → layout-e74b3f054cea722b.js} +1 -1
- package/dist/dashboard/assets/next/static/chunks/app/blog/page-f01a377f117e9baa.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/blog/read-workflow-test-receipts/page-f01a377f117e9baa.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/blog/regression-tests-for-ai-agent-database-and-slack/page-f01a377f117e9baa.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/blog/reset-test-environment-between-runs/page-f01a377f117e9baa.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/blog/simulate-timeouts-and-duplicate-events/page-f01a377f117e9baa.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/blog/test-boundaries-for-ai-agents/page-f01a377f117e9baa.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/blog/timeout-retry-double-charge/page-f01a377f117e9baa.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/blog/we-ran-50-real-incidents-through-agenttwin/page-f01a377f117e9baa.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/blog/why-ai-agents-delete-production-databases/page-f01a377f117e9baa.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/blog/workflow-testing-evaluation-checklist/page-f01a377f117e9baa.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/blog/write-better-workflow-assertions/page-f01a377f117e9baa.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/compare/page-59f706ed0c769951.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/contact/page-59f706ed0c769951.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/dashboard/layout-01d0e188ef39b91d.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/dashboard/page-29686920d4a10c85.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/demo/page-a45480cc30d7977f.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/developers/page-59f706ed0c769951.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/docs/[[...slug]]/page-ce5eacfa8a31b499.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/dpa/page-59f706ed0c769951.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/enterprise/page-d2b196defc0da48d.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/guides/page-59f706ed0c769951.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/{layout-13d2f06cab6f3ef6.js → layout-a5f6bc8dd2520b40.js} +1 -1
- package/dist/dashboard/assets/next/static/chunks/app/login/page-d1b57c1494a2d7ab.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/not-found-59f706ed0c769951.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/onboarding/{page-c4292b08dedb1e5c.js → page-3ea1e6c4c169f8f7.js} +1 -1
- package/dist/dashboard/assets/next/static/chunks/app/page-4221b5faf18851c6.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/pricing/page-0ff1007ece01b086.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/privacy/page-59f706ed0c769951.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/sandbox/page-59f706ed0c769951.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/scoreboard/page-59f706ed0c769951.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/security/page-59f706ed0c769951.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/signup/page-d1b57c1494a2d7ab.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/sitemap.xml/route-f01a377f117e9baa.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/status/page-60e19a4df9ad208d.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/subprocessors/page-59f706ed0c769951.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/terms/page-59f706ed0c769951.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/v2/dashboard/layout-3b8cd4f1799185eb.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/v2/dashboard/page-a960ae1dc5ac6e50.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/v2/layout-545711057a05740e.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/v2/login/page-e165b48f179946e0.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/v2/onboarding/{page-921ad64530803c42.js → page-8f3a34b3fab5a5ce.js} +1 -1
- package/dist/dashboard/assets/next/static/chunks/app/v2/{page-d0b682a723aa566f.js → page-ee9cc48281b2d5cf.js} +1 -1
- package/dist/dashboard/assets/next/static/chunks/app/v2/signup/page-e165b48f179946e0.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/what-is-agenttwin/page-59f706ed0c769951.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/{main-app-cc626a1cec570e8f.js → main-app-87e6f191ff894764.js} +1 -1
- package/dist/dashboard/assets/next/static/chunks/{webpack-a48857e1e72fd84a.js → webpack-0c96245bd731f5b7.js} +1 -1
- package/dist/dashboard/assets/next/static/css/01ccda6fe65cfe45.css +1 -0
- package/dist/dashboard/assets/next/static/css/41d14b615c51789f.css +1 -0
- package/dist/dashboard/assets/next/static/css/8f1b98de253e73ed.css +1 -0
- package/dist/dashboard/assets/next/static/css/c3d3b671693fb96d.css +1 -0
- package/dist/dashboard/assets/next/static/css/{47a1237f6559b428.css → f55186d294d5c4d4.css} +1 -1
- package/dist/dashboard/index.html +2 -2
- package/dist/discover-worker.js +164 -1
- package/dist/engine.js +7248 -4121
- package/dist/gateway.js +4960 -2496
- package/dist/live-tui/board.js +1312 -0
- package/dist/scan-worker.js +43 -4
- package/dist/worker.js +28 -4
- package/dist/world-host.js +60 -17
- package/package.json +19 -4
- package/dist/dashboard/assets/next/static/KNTxh0SQ8GqNZPTSXNcRe/_buildManifest.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/424-5191e91fec0be2c7.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/_not-found/page-f05b53aa432a7110.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/about/page-8378255082922f7c.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/account/password/page-4db0777af7564cb4.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/api-policy/page-6706d2afc96be601.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/auth/page-6706d2afc96be601.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/blog/agenttwin-vs-mockoon/page-46b9ffc514b56c84.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/blog/agenttwin-vs-pact/page-46b9ffc514b56c84.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/blog/agenttwin-vs-testcontainers/page-46b9ffc514b56c84.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/blog/agenttwin-vs-wiremock/page-46b9ffc514b56c84.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/blog/choose-first-agent-workflow-test/page-46b9ffc514b56c84.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/blog/clean-baseline-before-fault-injection/page-46b9ffc514b56c84.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/blog/idempotency-keys-and-safe-retries/page-46b9ffc514b56c84.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/blog/keep-real-service-tests-with-digital-twins/page-46b9ffc514b56c84.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/blog/keploy-alternatives-for-database-and-payment-workflows/page-46b9ffc514b56c84.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/blog/page-46b9ffc514b56c84.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/blog/read-workflow-test-receipts/page-46b9ffc514b56c84.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/blog/reset-test-environment-between-runs/page-46b9ffc514b56c84.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/blog/simulate-timeouts-and-duplicate-events/page-46b9ffc514b56c84.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/blog/test-boundaries-for-ai-agents/page-46b9ffc514b56c84.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/blog/timeout-retry-double-charge/page-46b9ffc514b56c84.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/blog/we-ran-50-real-incidents-through-agenttwin/page-46b9ffc514b56c84.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/blog/why-ai-agents-delete-production-databases/page-46b9ffc514b56c84.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/blog/workflow-testing-evaluation-checklist/page-46b9ffc514b56c84.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/blog/write-better-workflow-assertions/page-46b9ffc514b56c84.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/compare/page-6706d2afc96be601.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/contact/page-6706d2afc96be601.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/dashboard/layout-cbd7e31c6d430a1a.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/dashboard/page-f45f96c066eb9de2.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/demo/page-db243af5ea4b6376.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/developers/page-6706d2afc96be601.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/docs/[[...slug]]/page-83fc0a3aa3425b02.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/dpa/page-6706d2afc96be601.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/enterprise/page-2451558ccbe066c9.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/guides/page-6706d2afc96be601.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/login/page-589519cc705ec22f.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/not-found-6706d2afc96be601.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/page-bfcf9194963bf52b.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/pricing/page-e65353f9ee62da36.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/privacy/page-6706d2afc96be601.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/sandbox/page-6706d2afc96be601.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/scoreboard/page-6706d2afc96be601.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/security/page-6706d2afc96be601.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/signup/page-589519cc705ec22f.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/sitemap.xml/route-46b9ffc514b56c84.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/status/page-47f0d1533bf1206f.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/subprocessors/page-6706d2afc96be601.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/terms/page-6706d2afc96be601.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/v2/dashboard/layout-76020499f90782bd.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/v2/dashboard/page-cb63082b6709d22e.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/v2/layout-d3227c5987005526.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/v2/login/page-40a3cf0903538784.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/v2/signup/page-40a3cf0903538784.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/what-is-agenttwin/page-6706d2afc96be601.js +0 -1
- package/dist/dashboard/assets/next/static/css/37d81e1d2804cc5f.css +0 -1
- package/dist/dashboard/assets/next/static/css/423c6df577acd447.css +0 -1
- package/dist/dashboard/assets/next/static/css/e7f08eacc20752f3.css +0 -1
- /package/dist/dashboard/assets/next/static/{KNTxh0SQ8GqNZPTSXNcRe → 0c5Jl9bTubWj2XMQXJ8Nb}/_ssgManifest.js +0 -0
package/dist/scan-worker.js
CHANGED
|
@@ -1980,7 +1980,7 @@ function wrappedHandler(init) {
|
|
|
1980
1980
|
|
|
1981
1981
|
// src/flow/analyze.ts
|
|
1982
1982
|
var WHOLE_INPUT = "$input";
|
|
1983
|
-
var PROVIDER_MODULES = { "@octokit/rest": "github", octokit: "github", "@octokit/core": "github", "@notionhq/client": "notion", "@linear/sdk": "linear", openai: "openai", "groq-sdk": "openai", "@mistralai/mistralai": "openai", "together-ai": "openai", "@anthropic-ai/sdk": "anthropic", stripe: "stripe", "@slack/web-api": "slack", pg: "postgres", postgres: "postgres", "@neondatabase/serverless": "postgres", googleapis: "gmail", "@googleapis/gmail": "gmail", twilio: "twilio", "@hubspot/api-client": "hubspot", ioredis: "redis", redis: "redis", "@aws-sdk/client-s3": "aws", "@aws-sdk/client-dynamodb": "aws", "@aws-sdk/client-sqs": "aws", "@aws-sdk/client-sns": "aws", "@aws-sdk/lib-dynamodb": "aws" };
|
|
1983
|
+
var PROVIDER_MODULES = { "@octokit/rest": "github", octokit: "github", "@octokit/core": "github", "@notionhq/client": "notion", "@linear/sdk": "linear", openai: "openai", "groq-sdk": "openai", "@mistralai/mistralai": "openai", "together-ai": "openai", "@anthropic-ai/sdk": "anthropic", stripe: "stripe", "@slack/web-api": "slack", pg: "postgres", postgres: "postgres", "@neondatabase/serverless": "postgres", "@libsql/client": "sqlite", libsql: "sqlite", googleapis: "gmail", "@googleapis/gmail": "gmail", twilio: "twilio", "@hubspot/api-client": "hubspot", ioredis: "redis", redis: "redis", "@aws-sdk/client-s3": "aws", "@aws-sdk/client-dynamodb": "aws", "@aws-sdk/client-sqs": "aws", "@aws-sdk/client-sns": "aws", "@aws-sdk/lib-dynamodb": "aws" };
|
|
1984
1984
|
var FETCH_HOSTS = [[/^https:\/\/slack\.com\/api\//, "slack"], [/^https:\/\/api\.openai\.com\//, "openai"], [/^https:\/\/api\.anthropic\.com\//, "anthropic"], [/^https:\/\/api\.stripe\.com\//, "stripe"], [/^https:\/\/gmail\.googleapis\.com\//, "gmail"], [/^https:\/\/api\.hubapi\.com\//, "hubspot"], [/^https:\/\/api\.twilio\.com\//, "twilio"], [/^https:\/\/[a-z0-9-]+\.zendesk\.com\//, "zendesk"], [/^https:\/\/[a-z0-9-]+\.atlassian\.net\//, "jira"], [/^https:\/\/[a-z0-9-]+\.myshopify\.com\//, "shopify"], [/^https:\/\/gitlab\.com\/api\//, "gitlab"], [/^https:\/\/api\.(?:us5\.)?datadoghq\.(?:com|eu)\//, "datadog"]];
|
|
1985
1985
|
var KNOWN_PROVIDERS = /* @__PURE__ */ new Set([...FETCH_HOSTS.map(([, provider]) => provider), ...Object.values(PROVIDER_MODULES)]);
|
|
1986
1986
|
var escapeHost = (h) => h.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
@@ -2437,6 +2437,21 @@ async function analyzeWorkflows(root2, opts = {}) {
|
|
|
2437
2437
|
return !!(p.dependencies?.["@slack/bolt"] ?? p.devDependencies?.["@slack/bolt"]);
|
|
2438
2438
|
}).catch(() => false);
|
|
2439
2439
|
const byFile = /* @__PURE__ */ new Map();
|
|
2440
|
+
const arrayFieldCache = /* @__PURE__ */ new Map();
|
|
2441
|
+
const arrayFieldsOf = (file, text, name) => {
|
|
2442
|
+
const key2 = `${file}#${name}`, hit = arrayFieldCache.get(key2);
|
|
2443
|
+
if (hit) return hit;
|
|
2444
|
+
const declared = text.indexOf(`interface ${name}`), aliased = text.indexOf(`type ${name} =`);
|
|
2445
|
+
const start = declared >= 0 ? declared : aliased, open = start < 0 ? -1 : text.indexOf("{", start), close = open < 0 ? -1 : text.indexOf("}", open);
|
|
2446
|
+
const found = [];
|
|
2447
|
+
if (open >= 0 && close > open) {
|
|
2448
|
+
const body = text.slice(open + 1, close), re = /(?:^|[;,\n])\s*(?:readonly\s+)?([A-Za-z_$][\w$]*)\??\s*:\s*([^;,\n]+)/g;
|
|
2449
|
+
for (let m = re.exec(body); m; m = re.exec(body)) if (/(\[\]|\bArray<|\bReadonlyArray<)/.test(m[2])) found.push(m[1]);
|
|
2450
|
+
}
|
|
2451
|
+
arrayFieldCache.set(key2, found);
|
|
2452
|
+
return found;
|
|
2453
|
+
};
|
|
2454
|
+
const isArrayNode = (t) => t?.type === "TSArrayType" || t?.type === "TSTypeReference" && ["Array", "ReadonlyArray"].includes(String(t.typeName?.name));
|
|
2440
2455
|
const reparsed = /* @__PURE__ */ new Map();
|
|
2441
2456
|
const treeOf = (file, text) => {
|
|
2442
2457
|
let map = reparsed.get(file);
|
|
@@ -2447,7 +2462,7 @@ async function analyzeWorkflows(root2, opts = {}) {
|
|
|
2447
2462
|
}
|
|
2448
2463
|
map = facts(text, file, root2).functions;
|
|
2449
2464
|
reparsed.set(file, map);
|
|
2450
|
-
if (reparsed.size >
|
|
2465
|
+
if (reparsed.size > 8) reparsed.delete(reparsed.keys().next().value);
|
|
2451
2466
|
return map;
|
|
2452
2467
|
};
|
|
2453
2468
|
for (const file of files) {
|
|
@@ -2861,7 +2876,7 @@ async function analyzeWorkflows(root2, opts = {}) {
|
|
|
2861
2876
|
});
|
|
2862
2877
|
}
|
|
2863
2878
|
}
|
|
2864
|
-
const write = provider === "postgres" ? !!sql && !/^\s*select\b/i.test(sql) : provider === "openai" || provider === "anthropic" ? false : provider === "redis" ? !/^(get|mget|hget|hgetall|exists|ttl|keys|scan|smembers|lrange|zrange)$/i.test(operation) : provider === "aws" ? /^(Put|Create|Update|Delete|Send|Publish|Write|Copy|Batch)/.test(operation) : !READ_OPS.test(operation);
|
|
2879
|
+
const write = provider === "postgres" ? !!sql && !/^\s*select\b/i.test(sql) : provider === "openai" || provider === "anthropic" || provider === "sqlite" ? false : provider === "redis" ? !/^(get|mget|hget|hgetall|exists|ttl|keys|scan|smembers|lrange|zrange)$/i.test(operation) : provider === "aws" ? /^(Put|Create|Update|Delete|Send|Publish|Write|Copy|Batch)/.test(operation) : !READ_OPS.test(operation);
|
|
2865
2880
|
let sdkHosts, urlHost, urlPath;
|
|
2866
2881
|
if (provider.startsWith("sdk:")) {
|
|
2867
2882
|
sdkHosts = sdkInfo(root2, provider.slice(4))?.hosts;
|
|
@@ -2984,7 +2999,31 @@ async function analyzeWorkflows(root2, opts = {}) {
|
|
|
2984
2999
|
if (param?.type === "Identifier") {
|
|
2985
3000
|
const u = usage(param.name);
|
|
2986
3001
|
input = { name: param.name, fields: u.fields, ...u.methods.length ? { methods: u.methods } : {}, ...u.called ? { called: true } : {} };
|
|
2987
|
-
|
|
3002
|
+
const annotation = param.typeAnnotation?.typeAnnotation;
|
|
3003
|
+
if (annotation) {
|
|
3004
|
+
const inline = annotation.type === "TSTypeLiteral" ? (annotation.members ?? []).filter((m) => m.type === "TSPropertySignature" && isArrayNode(m.typeAnnotation?.typeAnnotation)).map((m) => String(m.key?.name ?? m.key?.value)) : void 0;
|
|
3005
|
+
const named = annotation.type === "TSTypeReference" ? String(annotation.typeName?.name ?? "") : "";
|
|
3006
|
+
const arrays = inline ?? (named ? arrayFieldsOf(file, byFile.get(file)?.text ?? "", named) : []);
|
|
3007
|
+
if (arrays.length) input.arrays = arrays;
|
|
3008
|
+
}
|
|
3009
|
+
} else if (param?.type === "ObjectPattern") {
|
|
3010
|
+
const nested = {}, deep = {};
|
|
3011
|
+
for (const p of param.properties.filter((p2) => p2.type === "ObjectProperty" && !p2.computed)) {
|
|
3012
|
+
const key2 = String(p.key.name ?? p.key.value);
|
|
3013
|
+
if (p.value?.type === "ObjectPattern") {
|
|
3014
|
+
const inner = p.value.properties.filter((q) => q.type === "ObjectProperty" && !q.computed);
|
|
3015
|
+
nested[key2] = inner.map((q) => String(q.key.name ?? q.key.value));
|
|
3016
|
+
for (const q of inner) if (q.value?.type === "Identifier") {
|
|
3017
|
+
const u = usage(q.value.name);
|
|
3018
|
+
if (u.fields.length) deep[`${key2}.${String(q.key.name ?? q.key.value)}`] = u.fields;
|
|
3019
|
+
}
|
|
3020
|
+
} else if (p.value?.type === "Identifier") {
|
|
3021
|
+
const u = usage(p.value.name);
|
|
3022
|
+
if (u.fields.length) nested[key2] = u.fields;
|
|
3023
|
+
}
|
|
3024
|
+
}
|
|
3025
|
+
input = { name: "input", fields: param.properties.filter((p) => p.type === "ObjectProperty").map((p) => String(p.key.name ?? p.key.value)), ...Object.keys(nested).length ? { nested } : {}, ...Object.keys(deep).length ? { deep } : {} };
|
|
3026
|
+
}
|
|
2988
3027
|
const moreInputs = (fn.params ?? []).slice(1).filter((p) => p?.type === "Identifier").map((p) => ({ name: p.name, ...usage(p.name) }));
|
|
2989
3028
|
let web;
|
|
2990
3029
|
if (SVELTE_ROUTE_FILE.test(file) && /^(GET|POST|PUT|PATCH|DELETE)$/.test(exportName)) {
|
package/dist/worker.js
CHANGED
|
@@ -1121,10 +1121,12 @@ var toLua = (s) => Uint8Array.from(Buffer.from(s, "latin1"));
|
|
|
1121
1121
|
var fromLua = (b) => Buffer.from(b).toString("latin1");
|
|
1122
1122
|
var RedisScripts = class {
|
|
1123
1123
|
/** `run` executes one command on the engine and returns its RESP reply. */
|
|
1124
|
-
constructor(run2) {
|
|
1124
|
+
constructor(run2, unsupported2) {
|
|
1125
1125
|
this.run = run2;
|
|
1126
|
+
this.unsupported = unsupported2;
|
|
1126
1127
|
}
|
|
1127
1128
|
run;
|
|
1129
|
+
unsupported;
|
|
1128
1130
|
cache = /* @__PURE__ */ new Map();
|
|
1129
1131
|
command(name, args) {
|
|
1130
1132
|
if (name === "script") {
|
|
@@ -1173,6 +1175,16 @@ var RedisScripts = class {
|
|
|
1173
1175
|
lua.lua_getfield(L, -1, toLua("unpack"));
|
|
1174
1176
|
lua.lua_setglobal(L, toLua("unpack"));
|
|
1175
1177
|
lua.lua_pop(L, 1);
|
|
1178
|
+
lua.lua_createtable(L, 0, 4);
|
|
1179
|
+
for (const method of ["pack", "unpack", "unpack_one", "unpack_limit"]) {
|
|
1180
|
+
lua.lua_pushcfunction(L, (state) => {
|
|
1181
|
+
const text2 = `Lua cmsgpack.${method} is outside the AgentTwin in-process Redis engine`;
|
|
1182
|
+
this.unsupported(`redis: ${text2}`);
|
|
1183
|
+
return lauxlib.luaL_error(state, toLua(`${text2}; use a redis-server binary or Docker for full Redis`));
|
|
1184
|
+
});
|
|
1185
|
+
lua.lua_setfield(L, -2, toLua(method));
|
|
1186
|
+
}
|
|
1187
|
+
lua.lua_setglobal(L, toLua("cmsgpack"));
|
|
1176
1188
|
const table2 = (items, global) => {
|
|
1177
1189
|
lua.lua_createtable(L, items.length, 0);
|
|
1178
1190
|
items.forEach((v, i) => {
|
|
@@ -1444,7 +1456,7 @@ var InProcessRedis = class {
|
|
|
1444
1456
|
run(args) {
|
|
1445
1457
|
const name = args[0].toLowerCase(), a = args.slice(1);
|
|
1446
1458
|
try {
|
|
1447
|
-
if (["eval", "evalsha", "eval_ro", "evalsha_ro", "script"].includes(name)) return (this.scripts ??= new RedisScripts((c) => this.run(c))).command(name, a);
|
|
1459
|
+
if (["eval", "evalsha", "eval_ro", "evalsha_ro", "script"].includes(name)) return (this.scripts ??= new RedisScripts((c) => this.run(c), (text2) => this.recordUnsupported(text2))).command(name, a);
|
|
1448
1460
|
const reply = this.command(name, a);
|
|
1449
1461
|
if (WRITES.has(name)) for (const k of commandKeys(name, a)) this.touch(k);
|
|
1450
1462
|
return reply;
|
|
@@ -1452,6 +1464,9 @@ var InProcessRedis = class {
|
|
|
1452
1464
|
return encode.error(error instanceof Error ? error.message : String(error));
|
|
1453
1465
|
}
|
|
1454
1466
|
}
|
|
1467
|
+
recordUnsupported(text2) {
|
|
1468
|
+
if (this.unsupported.length < 1e3 && !this.unsupported.includes(text2)) this.unsupported.push(text2);
|
|
1469
|
+
}
|
|
1455
1470
|
int(s) {
|
|
1456
1471
|
if (s === void 0 || !/^-?\d+$/.test(s)) throw new Error(NOT_INT);
|
|
1457
1472
|
return Number(s);
|
|
@@ -1854,7 +1869,7 @@ var InProcessRedis = class {
|
|
|
1854
1869
|
return encode.int(0);
|
|
1855
1870
|
default: {
|
|
1856
1871
|
const text2 = `redis: ${name.toUpperCase()} is outside the AgentTwin in-process Redis engine`;
|
|
1857
|
-
|
|
1872
|
+
this.recordUnsupported(text2);
|
|
1858
1873
|
return encode.error(`ERR unknown command '${name}' (AgentTwin in-process Redis; use a redis-server binary or Docker for full Redis)`);
|
|
1859
1874
|
}
|
|
1860
1875
|
}
|
|
@@ -7121,7 +7136,15 @@ var HttpWorld = class {
|
|
|
7121
7136
|
reason = first.bytes.toString("utf8").slice(0, 120);
|
|
7122
7137
|
}
|
|
7123
7138
|
this.record(service.name, "rejected", path, `${method} ${path} \u2192 ${first.status}${reason ? `: ${reason}` : ""}`);
|
|
7124
|
-
} else if (method === "GET")
|
|
7139
|
+
} else if (method === "GET") {
|
|
7140
|
+
let listed;
|
|
7141
|
+
try {
|
|
7142
|
+
const parsed = JSON.parse(first.bytes.toString("utf8"));
|
|
7143
|
+
if (parsed.object === "list" && Array.isArray(parsed.data)) listed = { query: Object.fromEntries(new URL(req.url ?? "/", "http://twin.local").searchParams), rows: parsed.data.length };
|
|
7144
|
+
} catch {
|
|
7145
|
+
}
|
|
7146
|
+
this.record(service.name, "read", path, `${first.status}`, listed);
|
|
7147
|
+
}
|
|
7125
7148
|
const target = wrote.find(matchesFault) ?? wrote[0];
|
|
7126
7149
|
if (target && fault?.type === "duplicate-write" && fault.service === service.name && !requestKey && matchesFault(target) && faultOrdinalsFor?.includes(this.candidateIndex(faultKey))) {
|
|
7127
7150
|
const second = await serialized(call);
|
|
@@ -7301,6 +7324,7 @@ function evaluateState(spec, initial, final, events) {
|
|
|
7301
7324
|
kind: "required-outcome",
|
|
7302
7325
|
service: a.service,
|
|
7303
7326
|
path: a.path,
|
|
7327
|
+
...a.where ? { where: a.where } : {},
|
|
7304
7328
|
passed: actual === a.count,
|
|
7305
7329
|
expected: a.count,
|
|
7306
7330
|
actual: actual ?? null,
|
package/dist/world-host.js
CHANGED
|
@@ -902,10 +902,12 @@ var init_redis_lua = __esm({
|
|
|
902
902
|
fromLua = (b) => Buffer.from(b).toString("latin1");
|
|
903
903
|
RedisScripts = class {
|
|
904
904
|
/** `run` executes one command on the engine and returns its RESP reply. */
|
|
905
|
-
constructor(run3) {
|
|
905
|
+
constructor(run3, unsupported2) {
|
|
906
906
|
this.run = run3;
|
|
907
|
+
this.unsupported = unsupported2;
|
|
907
908
|
}
|
|
908
909
|
run;
|
|
910
|
+
unsupported;
|
|
909
911
|
cache = /* @__PURE__ */ new Map();
|
|
910
912
|
command(name, args) {
|
|
911
913
|
if (name === "script") {
|
|
@@ -954,6 +956,16 @@ var init_redis_lua = __esm({
|
|
|
954
956
|
lua.lua_getfield(L, -1, toLua("unpack"));
|
|
955
957
|
lua.lua_setglobal(L, toLua("unpack"));
|
|
956
958
|
lua.lua_pop(L, 1);
|
|
959
|
+
lua.lua_createtable(L, 0, 4);
|
|
960
|
+
for (const method of ["pack", "unpack", "unpack_one", "unpack_limit"]) {
|
|
961
|
+
lua.lua_pushcfunction(L, (state) => {
|
|
962
|
+
const text2 = `Lua cmsgpack.${method} is outside the AgentTwin in-process Redis engine`;
|
|
963
|
+
this.unsupported(`redis: ${text2}`);
|
|
964
|
+
return lauxlib.luaL_error(state, toLua(`${text2}; use a redis-server binary or Docker for full Redis`));
|
|
965
|
+
});
|
|
966
|
+
lua.lua_setfield(L, -2, toLua(method));
|
|
967
|
+
}
|
|
968
|
+
lua.lua_setglobal(L, toLua("cmsgpack"));
|
|
957
969
|
const table2 = (items, global) => {
|
|
958
970
|
lua.lua_createtable(L, items.length, 0);
|
|
959
971
|
items.forEach((v, i) => {
|
|
@@ -1642,7 +1654,7 @@ var init_redis = __esm({
|
|
|
1642
1654
|
run(args) {
|
|
1643
1655
|
const name = args[0].toLowerCase(), a = args.slice(1);
|
|
1644
1656
|
try {
|
|
1645
|
-
if (["eval", "evalsha", "eval_ro", "evalsha_ro", "script"].includes(name)) return (this.scripts ??= new RedisScripts((c) => this.run(c))).command(name, a);
|
|
1657
|
+
if (["eval", "evalsha", "eval_ro", "evalsha_ro", "script"].includes(name)) return (this.scripts ??= new RedisScripts((c) => this.run(c), (text2) => this.recordUnsupported(text2))).command(name, a);
|
|
1646
1658
|
const reply = this.command(name, a);
|
|
1647
1659
|
if (WRITES.has(name)) for (const k of commandKeys(name, a)) this.touch(k);
|
|
1648
1660
|
return reply;
|
|
@@ -1650,6 +1662,9 @@ var init_redis = __esm({
|
|
|
1650
1662
|
return encode.error(error instanceof Error ? error.message : String(error));
|
|
1651
1663
|
}
|
|
1652
1664
|
}
|
|
1665
|
+
recordUnsupported(text2) {
|
|
1666
|
+
if (this.unsupported.length < 1e3 && !this.unsupported.includes(text2)) this.unsupported.push(text2);
|
|
1667
|
+
}
|
|
1653
1668
|
int(s) {
|
|
1654
1669
|
if (s === void 0 || !/^-?\d+$/.test(s)) throw new Error(NOT_INT);
|
|
1655
1670
|
return Number(s);
|
|
@@ -2052,7 +2067,7 @@ var init_redis = __esm({
|
|
|
2052
2067
|
return encode.int(0);
|
|
2053
2068
|
default: {
|
|
2054
2069
|
const text2 = `redis: ${name.toUpperCase()} is outside the AgentTwin in-process Redis engine`;
|
|
2055
|
-
|
|
2070
|
+
this.recordUnsupported(text2);
|
|
2056
2071
|
return encode.error(`ERR unknown command '${name}' (AgentTwin in-process Redis; use a redis-server binary or Docker for full Redis)`);
|
|
2057
2072
|
}
|
|
2058
2073
|
}
|
|
@@ -7478,7 +7493,15 @@ var init_http_world = __esm({
|
|
|
7478
7493
|
reason = first.bytes.toString("utf8").slice(0, 120);
|
|
7479
7494
|
}
|
|
7480
7495
|
this.record(service.name, "rejected", path, `${method} ${path} \u2192 ${first.status}${reason ? `: ${reason}` : ""}`);
|
|
7481
|
-
} else if (method === "GET")
|
|
7496
|
+
} else if (method === "GET") {
|
|
7497
|
+
let listed;
|
|
7498
|
+
try {
|
|
7499
|
+
const parsed = JSON.parse(first.bytes.toString("utf8"));
|
|
7500
|
+
if (parsed.object === "list" && Array.isArray(parsed.data)) listed = { query: Object.fromEntries(new URL(req.url ?? "/", "http://twin.local").searchParams), rows: parsed.data.length };
|
|
7501
|
+
} catch {
|
|
7502
|
+
}
|
|
7503
|
+
this.record(service.name, "read", path, `${first.status}`, listed);
|
|
7504
|
+
}
|
|
7482
7505
|
const target = wrote.find(matchesFault) ?? wrote[0];
|
|
7483
7506
|
if (target && fault?.type === "duplicate-write" && fault.service === service.name && !requestKey && matchesFault(target) && faultOrdinalsFor?.includes(this.candidateIndex(faultKey))) {
|
|
7484
7507
|
const second = await serialized(call);
|
|
@@ -7666,6 +7689,13 @@ var init_node_options = __esm({
|
|
|
7666
7689
|
}
|
|
7667
7690
|
});
|
|
7668
7691
|
|
|
7692
|
+
// src/flow/notice.ts
|
|
7693
|
+
var init_notice = __esm({
|
|
7694
|
+
"src/flow/notice.ts"() {
|
|
7695
|
+
"use strict";
|
|
7696
|
+
}
|
|
7697
|
+
});
|
|
7698
|
+
|
|
7669
7699
|
// src/flow/offline-package-manager.ts
|
|
7670
7700
|
import { spawn as spawn2 } from "child_process";
|
|
7671
7701
|
import { mkdir as mkdir2, readFile, writeFile as writeFile4 } from "fs/promises";
|
|
@@ -7673,6 +7703,7 @@ import { join as join7 } from "path";
|
|
|
7673
7703
|
var init_offline_package_manager = __esm({
|
|
7674
7704
|
"src/flow/offline-package-manager.ts"() {
|
|
7675
7705
|
"use strict";
|
|
7706
|
+
init_notice();
|
|
7676
7707
|
}
|
|
7677
7708
|
});
|
|
7678
7709
|
|
|
@@ -8240,6 +8271,7 @@ function evaluateState(spec, initial, final, events) {
|
|
|
8240
8271
|
kind: "required-outcome",
|
|
8241
8272
|
service: a.service,
|
|
8242
8273
|
path: a.path,
|
|
8274
|
+
...a.where ? { where: a.where } : {},
|
|
8243
8275
|
passed: actual === a.count,
|
|
8244
8276
|
expected: a.count,
|
|
8245
8277
|
actual: actual ?? null,
|
|
@@ -9164,17 +9196,17 @@ function rewrite(r, p) {
|
|
|
9164
9196
|
if (r.add && !p.startsWith(r.add)) p = r.add + (p === "/" ? "" : p);
|
|
9165
9197
|
return p;
|
|
9166
9198
|
}
|
|
9167
|
-
async function
|
|
9199
|
+
async function namedCurveKey(file) {
|
|
9200
|
+
await run2("openssl", ["ecparam", "-name", "prime256v1", "-genkey", "-noout", "-param_enc", "named_curve", "-out", file]);
|
|
9201
|
+
}
|
|
9202
|
+
async function createAuthority(dir) {
|
|
9168
9203
|
const ca = { key: join13(dir, "ca.key"), cert: join13(dir, "ca.pem") };
|
|
9204
|
+
await namedCurveKey(ca.key);
|
|
9169
9205
|
await run2("openssl", [
|
|
9170
9206
|
"req",
|
|
9171
9207
|
"-x509",
|
|
9172
|
-
"-
|
|
9173
|
-
"
|
|
9174
|
-
"-pkeyopt",
|
|
9175
|
-
"ec_paramgen_curve:prime256v1",
|
|
9176
|
-
"-nodes",
|
|
9177
|
-
"-keyout",
|
|
9208
|
+
"-new",
|
|
9209
|
+
"-key",
|
|
9178
9210
|
ca.key,
|
|
9179
9211
|
"-out",
|
|
9180
9212
|
ca.cert,
|
|
@@ -9182,6 +9214,7 @@ async function runAuthority(dir) {
|
|
|
9182
9214
|
"2",
|
|
9183
9215
|
"-subj",
|
|
9184
9216
|
"/CN=AgentTwin run CA (this run only)",
|
|
9217
|
+
"-sha256",
|
|
9185
9218
|
"-addext",
|
|
9186
9219
|
"basicConstraints=critical,CA:TRUE",
|
|
9187
9220
|
"-addext",
|
|
@@ -9204,8 +9237,9 @@ subjectAltName=DNS:${host}
|
|
|
9204
9237
|
subjectKeyIdentifier=hash
|
|
9205
9238
|
authorityKeyIdentifier=keyid,issuer
|
|
9206
9239
|
`);
|
|
9207
|
-
await
|
|
9208
|
-
await run2("openssl", ["
|
|
9240
|
+
await namedCurveKey(base + ".key");
|
|
9241
|
+
await run2("openssl", ["req", "-new", "-key", base + ".key", "-out", base + ".csr", "-subj", `/CN=${host}`]);
|
|
9242
|
+
await run2("openssl", ["x509", "-req", "-in", base + ".csr", "-CA", ca.cert, "-CAkey", ca.key, "-sha256", "-set_serial", "0x" + Buffer.from(host).toString("hex").slice(0, 30).padEnd(16, "1"), "-days", "2", "-out", base + ".pem", "-extfile", base + ".ext"]);
|
|
9209
9243
|
return createSecureContext({ key: await readFile4(base + ".key"), cert: await readFile4(base + ".pem") });
|
|
9210
9244
|
})();
|
|
9211
9245
|
contexts.set(host, ctx);
|
|
@@ -9216,7 +9250,7 @@ authorityKeyIdentifier=keyid,issuer
|
|
|
9216
9250
|
}
|
|
9217
9251
|
async function startTwinProxy(routes2) {
|
|
9218
9252
|
const dir = await mkdtemp6(join13(tmpdir6(), "agenttwin-proxy-"));
|
|
9219
|
-
const authority = await
|
|
9253
|
+
const authority = await createAuthority(dir).catch((error) => {
|
|
9220
9254
|
throw new Error(`The twin proxy needs the openssl command to make this run's certificate authority: ${error instanceof Error ? error.message : error}`);
|
|
9221
9255
|
});
|
|
9222
9256
|
const blocked = [];
|
|
@@ -9334,6 +9368,13 @@ var init_twin_proxy = __esm({
|
|
|
9334
9368
|
}
|
|
9335
9369
|
});
|
|
9336
9370
|
|
|
9371
|
+
// src/runtime/credential-placeholders.ts
|
|
9372
|
+
var init_credential_placeholders = __esm({
|
|
9373
|
+
"src/runtime/credential-placeholders.ts"() {
|
|
9374
|
+
"use strict";
|
|
9375
|
+
}
|
|
9376
|
+
});
|
|
9377
|
+
|
|
9337
9378
|
// src/runtime/twin-routing.ts
|
|
9338
9379
|
import { mkdtemp as mkdtemp7, readFile as readFile5, rm as rm7, writeFile as writeFile8 } from "fs/promises";
|
|
9339
9380
|
import { tmpdir as tmpdir7 } from "os";
|
|
@@ -9362,6 +9403,7 @@ var PROVIDER_HOSTS, TWIN_PRELOAD;
|
|
|
9362
9403
|
var init_twin_routing = __esm({
|
|
9363
9404
|
"src/runtime/twin-routing.ts"() {
|
|
9364
9405
|
"use strict";
|
|
9406
|
+
init_credential_placeholders();
|
|
9365
9407
|
init_node_options();
|
|
9366
9408
|
init_packs();
|
|
9367
9409
|
PROVIDER_HOSTS = {
|
|
@@ -9735,13 +9777,14 @@ async function startPostgresEngine(options = {}) {
|
|
|
9735
9777
|
}
|
|
9736
9778
|
}
|
|
9737
9779
|
const createOptions = (extra = {}) => ({ ...extra, ...Object.keys(extensions).length ? { extensions } : {} });
|
|
9738
|
-
let db = await PGlite.create(createOptions());
|
|
9780
|
+
let db = await PGlite.create(createOptions(options.dataDir ? { loadDataDir: options.dataDir } : {}));
|
|
9739
9781
|
const version = String((await db.query("show server_version")).rows[0]?.server_version ?? "17");
|
|
9740
9782
|
const statements = [];
|
|
9741
9783
|
const events = [], unsupported2 = [], gate = new FaultGate("postgres", events), listeners = [];
|
|
9742
9784
|
const lockWaitMs = options.lockWaitMs ?? 5e3;
|
|
9743
9785
|
const conns = /* @__PURE__ */ new Set();
|
|
9744
|
-
let nextId2 = 1, owner = null, busy = false
|
|
9786
|
+
let nextId2 = 1, owner = null, busy = false;
|
|
9787
|
+
let baseline = options.dataDir;
|
|
9745
9788
|
const queue = [];
|
|
9746
9789
|
const pump = () => {
|
|
9747
9790
|
if (busy) return;
|
|
@@ -10081,7 +10124,7 @@ async function startPostgresEngine(options = {}) {
|
|
|
10081
10124
|
}
|
|
10082
10125
|
baseline = await db.dumpDataDir("none");
|
|
10083
10126
|
});
|
|
10084
|
-
if (options.seed) try {
|
|
10127
|
+
if (options.seed && !options.dataDir) try {
|
|
10085
10128
|
await seed(options.seed);
|
|
10086
10129
|
} catch (error) {
|
|
10087
10130
|
disconnect();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agenttwin",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.42",
|
|
4
4
|
"description": "AgentTwin builds digital twins for testing AI agents. The current CLI prepares supported Node.js workflows with synthetic services, failures, and outcome checks.",
|
|
5
5
|
"mcpName": "io.github.AgentTwin/agenttwin",
|
|
6
6
|
"keywords": [
|
|
@@ -49,6 +49,7 @@
|
|
|
49
49
|
"@electric-sql/pglite": "0.5.13",
|
|
50
50
|
"@electric-sql/pglite-pgvector": "0.0.14",
|
|
51
51
|
"@electric-sql/pglite-socket": "0.2.16",
|
|
52
|
+
"@libsql/client": "^0.18.0",
|
|
52
53
|
"@simplewebauthn/browser": "^14.0.0",
|
|
53
54
|
"@simplewebauthn/server": "^14.0.3",
|
|
54
55
|
"amqplib": "2.2.1",
|
|
@@ -56,12 +57,12 @@
|
|
|
56
57
|
"e2b": "^2.52.1",
|
|
57
58
|
"esbuild": "0.28.2",
|
|
58
59
|
"fengari": "0.1.5",
|
|
59
|
-
"ink": "
|
|
60
|
+
"ink": "8.0.0",
|
|
60
61
|
"openid-client": "^6.8.8",
|
|
61
62
|
"pg": "^8.23.1",
|
|
62
63
|
"playwright": "1.64.1",
|
|
63
64
|
"postgres": "3.4.9",
|
|
64
|
-
"react": "
|
|
65
|
+
"react": "19.3.1",
|
|
65
66
|
"tsx": "^4.23.15",
|
|
66
67
|
"yaml": "^2.9.1"
|
|
67
68
|
},
|
|
@@ -73,10 +74,12 @@
|
|
|
73
74
|
"@aws-sdk/client-sns": "^3.1161.0",
|
|
74
75
|
"@aws-sdk/client-sqs": "^3.1161.0",
|
|
75
76
|
"@composio/core": "0.18.0",
|
|
77
|
+
"@opentui/core": "0.9.12",
|
|
78
|
+
"@opentui/react": "0.9.12",
|
|
76
79
|
"@slack/web-api": "^7.19.0",
|
|
77
80
|
"@types/node": "^26.6.4",
|
|
78
81
|
"@types/pg": "^8.23.1",
|
|
79
|
-
"@types/react": "
|
|
82
|
+
"@types/react": "19.3.3",
|
|
80
83
|
"ajv": "8.18.0",
|
|
81
84
|
"ajv-formats": "3.0.1",
|
|
82
85
|
"drizzle-orm": "0.45.4",
|
|
@@ -97,5 +100,17 @@
|
|
|
97
100
|
"repository": {
|
|
98
101
|
"type": "git",
|
|
99
102
|
"url": "git+https://github.com/AgentTwin/AgentTwin.git"
|
|
103
|
+
},
|
|
104
|
+
"peerDependencies": {
|
|
105
|
+
"@opentui/core": "0.9.12",
|
|
106
|
+
"@opentui/react": "0.9.12"
|
|
107
|
+
},
|
|
108
|
+
"peerDependenciesMeta": {
|
|
109
|
+
"@opentui/core": {
|
|
110
|
+
"optional": true
|
|
111
|
+
},
|
|
112
|
+
"@opentui/react": {
|
|
113
|
+
"optional": true
|
|
114
|
+
}
|
|
100
115
|
}
|
|
101
116
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
self.__BUILD_MANIFEST=function(e,r,t,_){return{__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},__routerFilterStatic:{numItems:51,errorRate:1e-4,numBits:978,numHashes:14,bitArray:[1,0,1,0,e,r,r,r,e,r,e,e,r,r,r,r,e,e,r,r,r,e,r,e,e,e,e,r,r,e,e,e,e,r,e,r,r,r,r,e,r,r,e,r,r,r,e,r,e,r,r,r,r,e,e,r,e,e,e,e,e,r,e,e,r,e,e,r,r,e,r,e,e,r,e,e,e,r,e,r,r,r,e,r,e,e,r,r,e,e,r,e,r,e,r,e,e,e,r,e,e,e,r,r,r,e,e,r,r,r,e,e,e,r,e,e,e,e,e,e,r,r,r,e,e,e,e,r,e,r,e,e,r,e,r,r,r,r,r,e,r,e,e,r,r,e,e,e,e,r,e,r,r,r,e,e,r,r,e,e,r,r,r,e,r,r,r,e,r,e,r,r,e,r,r,e,r,r,r,r,r,e,r,e,r,e,r,e,r,r,r,r,e,e,r,r,e,r,e,e,e,r,e,r,e,e,r,e,e,r,e,e,r,e,e,r,r,e,e,r,r,e,r,e,r,e,e,e,r,r,r,r,e,r,r,r,e,r,r,e,e,e,e,r,e,e,e,e,r,r,r,e,e,r,e,e,e,e,e,e,e,r,e,e,e,e,r,e,r,e,e,r,r,r,e,r,r,r,r,r,r,r,e,r,e,e,r,r,r,e,e,r,e,e,r,r,r,e,r,r,r,e,r,r,r,e,e,e,e,e,r,e,r,e,e,e,r,r,e,r,e,e,e,e,r,e,r,r,r,e,r,r,r,r,e,e,r,r,e,r,e,e,e,e,e,e,e,r,r,e,e,r,r,r,r,r,r,r,e,e,e,e,r,e,e,r,r,e,e,r,e,r,r,e,r,r,e,r,r,r,e,r,e,r,e,r,e,r,e,r,r,e,e,e,e,r,r,r,r,r,r,r,r,e,r,r,r,r,r,e,r,r,e,r,r,e,r,r,e,r,r,r,e,e,e,r,e,e,e,r,e,r,r,r,e,e,r,r,r,r,e,e,e,e,e,r,r,e,e,e,r,r,e,r,e,r,e,e,e,r,e,e,r,r,e,e,e,e,e,r,e,e,r,r,e,r,e,r,r,r,r,r,e,r,e,r,e,e,e,e,e,e,e,r,e,r,r,e,r,e,r,r,e,r,e,r,r,e,e,r,r,e,e,r,r,e,e,e,e,r,e,e,e,r,r,e,e,r,e,r,e,r,r,r,e,e,r,e,r,e,e,e,e,e,r,e,e,e,r,r,r,e,e,e,r,e,r,e,e,e,e,r,e,r,e,r,r,e,e,e,e,r,e,r,r,r,e,e,r,r,e,e,r,e,r,r,e,r,e,e,e,e,r,e,e,r,r,r,e,e,e,r,e,e,r,r,e,r,r,r,e,r,e,e,e,r,e,r,e,e,e,r,r,e,r,r,r,e,r,e,r,r,e,e,e,e,e,r,r,r,r,r,e,e,r,e,r,e,r,r,r,r,e,r,r,e,r,r,r,e,e,e,r,e,e,e,r,e,e,r,e,r,e,r,r,r,r,r,e,e,r,r,r,r,e,r,r,r,e,r,e,e,e,e,e,e,e,r,e,e,r,r,r,e,r,e,r,e,e,r,r,r,r,e,r,e,r,e,e,e,r,e,e,r,e,r,r,r,r,r,r,r,r,e,e,r,e,e,e,r,r,e,r,r,r,r,e,e,r,e,r,e,r,e,r,r,e,e,r,r,e,e,r,r,e,e,r,e,e,e,e,r,r,r,e,r,e,e,e,e,r,e,e,e,e,e,r,e,r,r,e,r,e,e,r,r,e,e,r,r,r,e,e,r,e,e,r,e,e,e,e,r,r,e,e,e,e,r,e,r,r,e,e,e,e,e,r,e,r,r,r,e,e,r,e,e,e,r,r,e,e,r,e,r,r,r,e,r,e,r,e,r,r,r,r,e,r,e,r,r,e,r,e,r,e,e,r,e,r,r,r,r,r,e,e,r,e,r,r,e,r,r,r,r,r,e,r,e,e,e,r,e,r,r,e,r,r,r,r,e,e,r,r,e,e,e,e,r,e,e,r,r,e,r,r,e,e,r,e,e,e,e,r,r,e,e,e,e,r,e,r,r,r,e,r,e,r,e,e,r,r,r,e,r,e,r,r,r,e,r,e,r,r,r,r,r,r,e,e,e,r,e,e,e,e,r,e,e,e,e,e,e,e,e,e,r,e,e]},__routerFilterDynamic:{numItems:e,errorRate:1e-4,numBits:20,numHashes:14,bitArray:[r,r,e,e,r,r,e,e,e,e,r,r,e,e,r,e,r,e,e,r]},"/_error":["static/chunks/pages/_error-94812ad32cad7365.js"],sortedPages:["/_app","/_error"]}}(1,0,1e-4,14),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB();
|