@tangle-network/agent-app 3.0.16 → 3.0.18
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/dist/chat-routes/index.js +2 -2
- package/dist/{chunk-T6ZDWHP5.js → chunk-FBZR6634.js} +5 -3
- package/dist/chunk-FBZR6634.js.map +1 -0
- package/dist/{chunk-LKDPKY7R.js → chunk-XB6ZY367.js} +2 -2
- package/dist/journeys/cli.js +11 -1
- package/dist/journeys/cli.js.map +1 -1
- package/dist/public-consultation/index.js +2 -2
- package/dist/sandbox/index.js +1 -1
- package/dist/sandbox/model.d.ts +4 -0
- package/dist/sandbox/prompt-profile.d.ts +1 -0
- package/package.json +1 -1
- package/dist/chunk-T6ZDWHP5.js.map +0 -1
- /package/dist/{chunk-LKDPKY7R.js.map → chunk-XB6ZY367.js.map} +0 -0
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
sandboxRunFailureDetail,
|
|
29
29
|
streamSandboxPrompt,
|
|
30
30
|
turnStorageBindings
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-FBZR6634.js";
|
|
32
32
|
import {
|
|
33
33
|
redactErrorMessage
|
|
34
34
|
} from "./chunk-MH74DY2I.js";
|
|
@@ -4154,4 +4154,4 @@ export {
|
|
|
4154
4154
|
createChatTurnRoutes,
|
|
4155
4155
|
streamChatRouteAsSandboxEvents
|
|
4156
4156
|
};
|
|
4157
|
-
//# sourceMappingURL=chunk-
|
|
4157
|
+
//# sourceMappingURL=chunk-XB6ZY367.js.map
|
package/dist/journeys/cli.js
CHANGED
|
@@ -90,7 +90,17 @@ async function main(argv) {
|
|
|
90
90
|
if (!journey || !label) throw new UsageError("frames needs a journey and a context label");
|
|
91
91
|
const config = await loadJourneysConfig();
|
|
92
92
|
const dir = journeyDir(config, journey);
|
|
93
|
-
|
|
93
|
+
const video = join(dir, "video", `${label}-full.mp4`);
|
|
94
|
+
if (!existsSync(video)) {
|
|
95
|
+
console.error(`agent-app-journeys: frames read ${dir}, which has no video/${label}-full.mp4; pass the run's output folder, such as ${join(config.outDir, journey)}`);
|
|
96
|
+
return 1;
|
|
97
|
+
}
|
|
98
|
+
const frames = extractFrames(video, join(dir, "video", `${label}.srt`), dir, times.map(Number));
|
|
99
|
+
if (!frames.length) {
|
|
100
|
+
console.error(`agent-app-journeys: no frames from ${video}: video/${label}.srt is missing and no seconds were given`);
|
|
101
|
+
return 1;
|
|
102
|
+
}
|
|
103
|
+
console.log(frames.join("\n"));
|
|
94
104
|
return 0;
|
|
95
105
|
}
|
|
96
106
|
case "rebuild": {
|
package/dist/journeys/cli.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/journeys/cli.ts"],"sourcesContent":["#!/usr/bin/env node\n/**\n * `agent-app-journeys` — record real-user journeys through an agent app and\n * turn them into files a reviewer can watch.\n *\n * Runs in the app's repository, which holds `journeys.config.mjs` (see\n * docs/journeys.md). Credentials arrive as environment variables named by the\n * config; this command never prints a value.\n *\n * agent-app-journeys run <journey.ts> [args…] run one journey script\n * agent-app-journeys env-names credential variable names the config needs\n * agent-app-journeys signin <identity> sign in over HTTP and cache the session\n * agent-app-journeys frames <journey> <label> [s…] PNG frames from a full video (default: one per chapter)\n * agent-app-journeys rebuild <journey> <label> re-render videos after editing chapters\n * agent-app-journeys scrub <journey> re-scrub raw traces and re-check for secrets\n * agent-app-journeys index <folder> [--critic <file>] [--title <text>] [--out <file>]\n * write INDEX.md: highlights, scorecard, ranked fixes, turns, videos\n * agent-app-journeys scoreboard <summary.json> --app <app> [--versions <file>] [--out <file>] [--legacy-ids]\n * the shared readiness board's writes for one run (JSON batch)\n *\n * Exits 0 on success, 1 on a failed run or a refused folder, 2 on a usage error.\n */\nimport { spawnSync } from 'node:child_process'\nimport { existsSync, readdirSync, readFileSync, statSync, writeFileSync } from 'node:fs'\nimport { isAbsolute, join, resolve } from 'node:path'\nimport { invokedAsScript } from '../signoff/invoked-as-script.js'\nimport { credentialNames, loadJourneysConfig, type ResolvedJourneysConfig } from './config.js'\nimport { collectJourneyFiles, renderIndex, type CriticResult } from './report.js'\nimport { scoreboardRows, type JourneySummary } from './scoreboard.js'\nimport { assertNoSecrets, scrubTrace } from './scrub.js'\nimport { secretNeedles, storageStateFor } from './session.js'\nimport { extractFrames, probeSeconds, rebuildVideo } from './video.js'\n\nconst USAGE = [\n 'usage: agent-app-journeys run <journey.ts> [args…]',\n ' agent-app-journeys env-names',\n ' agent-app-journeys signin <identity>',\n ' agent-app-journeys frames <journey> <label> [seconds…]',\n ' agent-app-journeys rebuild <journey> <label>',\n ' agent-app-journeys scrub <journey>',\n ' agent-app-journeys index <folder> [--critic <file>] [--title <text>] [--out <file>]',\n ' agent-app-journeys scoreboard <summary.json> --app <app> [--versions <file>] [--out <file>] [--legacy-ids]',\n].join('\\n')\n\nclass UsageError extends Error {}\n\nfunction missingCredentials(config: ResolvedJourneysConfig): string[] {\n return credentialNames(config).filter((name) => !process.env[name]?.trim())\n}\n\n/** The journey's output folder: a path, or an id under the config's outDir. */\nfunction journeyDir(config: ResolvedJourneysConfig, journey: string): string {\n if (isAbsolute(journey) || existsSync(journey)) return resolve(journey)\n return join(config.outDir, journey)\n}\n\n/** Newest raw recording folder for a journey id. */\nfunction newestRaw(config: ResolvedJourneysConfig, id: string): string {\n const root = join(config.stateDir, 'raw')\n const runs = existsSync(root) ? readdirSync(root).filter((d) => d.startsWith(`${id}-2`)).map((d) => join(root, d)) : []\n const newest = runs.sort((a, b) => statSync(b).mtimeMs - statSync(a).mtimeMs)[0]\n if (!newest) throw new UsageError(`no raw recording for ${id} under ${root}`)\n return newest\n}\n\nfunction option(args: string[], name: string): string | undefined {\n const i = args.indexOf(name)\n if (i < 0) return undefined\n const value = args[i + 1]\n if (!value || value.startsWith('--')) throw new UsageError(`${name} needs a value`)\n args.splice(i, 2)\n return value\n}\n\nexport async function main(argv: readonly string[]): Promise<number> {\n const [command, ...rest] = argv\n const args = [...rest]\n switch (command) {\n case 'run': {\n const [script, ...scriptArgs] = args\n if (!script) throw new UsageError('run needs a journey script')\n const config = await loadJourneysConfig()\n const missing = missingCredentials(config)\n if (missing.length) {\n console.error(`agent-app-journeys: ${missing.join(', ')} unset; load them from the host's vault into this process first`)\n return 2\n }\n const run = spawnSync(process.execPath, [resolve(script), ...scriptArgs], { stdio: 'inherit' })\n return run.status ?? 1\n }\n case 'env-names': {\n const config = await loadJourneysConfig()\n console.log(credentialNames(config).join('\\n'))\n return 0\n }\n case 'signin': {\n const [identity] = args\n if (!identity) throw new UsageError('signin needs an identity name from the config')\n const config = await loadJourneysConfig()\n const { user } = await storageStateFor(config, identity)\n console.log(`${identity}: signed in as user ${user.id}${user.emailVerified ? ', email verified' : ', email NOT verified'}`)\n return 0\n }\n case 'frames': {\n const [journey, label, ...times] = args\n if (!journey || !label) throw new UsageError('frames needs a journey and a context label')\n const config = await loadJourneysConfig()\n const dir = journeyDir(config, journey)\n console.log(extractFrames(join(dir, 'video', `${label}-full.mp4`), join(dir, 'video', `${label}.srt`), dir, times.map(Number)).join('\\n'))\n return 0\n }\n case 'rebuild': {\n const [journey, label] = args\n if (!journey || !label) throw new UsageError('rebuild needs a journey id and a context label')\n const config = await loadJourneysConfig()\n const dir = journeyDir(config, journey)\n const raw = join(newestRaw(config, journey), label)\n rebuildVideo(raw, join(dir, 'video'), label, existsSync(join(dir, 'video', `${label}-x2.mp4`)))\n return 0\n }\n case 'scrub': {\n const [journey] = args\n if (!journey) throw new UsageError('scrub needs a journey id')\n const config = await loadJourneysConfig()\n const dir = journeyDir(config, journey)\n const run = newestRaw(config, journey)\n const needles = secretNeedles(config)\n for (const label of readdirSync(run)) {\n const raw = join(run, label, 'trace.raw.zip')\n if (existsSync(raw)) scrubTrace(raw, join(dir, 'video', `${label}-trace.zip`), [...needles.hard, ...needles.soft])\n }\n assertNoSecrets(dir, needles)\n console.log(`clean: ${dir}`)\n return 0\n }\n case 'index': {\n const out = option(args, '--out')\n const criticFile = option(args, '--critic')\n const title = option(args, '--title')\n const [folder] = args\n if (!folder) throw new UsageError('index needs the folder that holds the journeys')\n const root = resolve(folder)\n const critic = criticFile ? (JSON.parse(readFileSync(resolve(criticFile), 'utf8')) as CriticResult) : undefined\n const probe = (file: string) => {\n try {\n return probeSeconds(file)\n } catch {\n return null\n }\n }\n const markdown = renderIndex({ title: title ?? 'Recorded journeys: what to watch', critic, journeys: collectJourneyFiles(root, probe) })\n const target = out ? resolve(out) : join(root, 'INDEX.md')\n writeFileSync(target, markdown)\n console.log(target)\n return 0\n }\n case 'scoreboard': {\n const app = option(args, '--app')\n const versionsFile = option(args, '--versions')\n const out = option(args, '--out')\n const legacyAt = args.indexOf('--legacy-ids')\n const legacyIds = legacyAt >= 0\n if (legacyIds) args.splice(legacyAt, 1)\n const [summaryFile] = args\n if (!summaryFile || !app) throw new UsageError('scoreboard needs a summary.json and --app <app>')\n const summary = JSON.parse(readFileSync(resolve(summaryFile), 'utf8')) as JourneySummary\n // `versions` maps `collection/docId` to the version a read of the board's store returned.\n const versions = versionsFile ? (JSON.parse(readFileSync(resolve(versionsFile), 'utf8')) as Record<string, number>) : undefined\n let result\n try {\n result = scoreboardRows(summary, { app, legacyIds, ...(versions ? { versions } : {}) })\n } catch (error) {\n throw new UsageError(error instanceof Error ? error.message : String(error))\n }\n for (const warning of result.warnings) console.error(`scoreboard: ${warning}`)\n const json = JSON.stringify(result.writes, null, 2) + '\\n'\n if (out) { writeFileSync(resolve(out), json); console.log(resolve(out)) } else process.stdout.write(json)\n return 0\n }\n case undefined:\n case '--help':\n case '-h':\n console.log(USAGE)\n return command === undefined ? 2 : 0\n default:\n throw new UsageError(`unknown command ${command}`)\n }\n}\n\nif (invokedAsScript(import.meta.url, process.argv[1])) {\n main(process.argv.slice(2)).then(\n (code) => process.exit(code),\n (error: unknown) => {\n if (error instanceof UsageError) {\n console.error(`agent-app-journeys: ${error.message}\\n${USAGE}`)\n process.exit(2)\n }\n console.error(`agent-app-journeys: ${error instanceof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,CAAC,EAAG,CAAC;AAAA,MACxF,SAAS,OAAO;AACd,cAAM,IAAI,WAAW,iBAAiB,QAAQ,MAAM,UAAU,OAAO,KAAK,CAAC;AAAA,MAC7E;AACA,iBAAW,WAAW,OAAO,SAAU,SAAQ,MAAM,eAAe,OAAO,EAAE;AAC7E,YAAM,OAAO,KAAK,UAAU,OAAO,QAAQ,MAAM,CAAC,IAAI;AACtD,UAAI,KAAK;AAAE,sBAAc,QAAQ,GAAG,GAAG,IAAI;AAAG,gBAAQ,IAAI,QAAQ,GAAG,CAAC;AAAA,MAAE,MAAO,SAAQ,OAAO,MAAM,IAAI;AACxG,aAAO;AAAA,IACT;AAAA,IACA,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AACH,cAAQ,IAAI,KAAK;AACjB,aAAO,YAAY,SAAY,IAAI;AAAA,IACrC;AACE,YAAM,IAAI,WAAW,mBAAmB,OAAO,EAAE;AAAA,EACrD;AACF;AAEA,IAAI,gBAAgB,YAAY,KAAK,QAAQ,KAAK,CAAC,CAAC,GAAG;AACrD,OAAK,QAAQ,KAAK,MAAM,CAAC,CAAC,EAAE;AAAA,IAC1B,CAAC,SAAS,QAAQ,KAAK,IAAI;AAAA,IAC3B,CAAC,UAAmB;AAClB,UAAI,iBAAiB,YAAY;AAC/B,gBAAQ,MAAM,uBAAuB,MAAM,OAAO;AAAA,EAAK,KAAK,EAAE;AAC9D,gBAAQ,KAAK,CAAC;AAAA,MAChB;AACA,cAAQ,MAAM,uBAAuB,iBAAiB,QAAQ,MAAM,UAAU,OAAO,KAAK,CAAC,EAAE;AAC7F,cAAQ,KAAK,CAAC;AAAA,IAChB;AAAA,EACF;AACF;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../src/journeys/cli.ts"],"sourcesContent":["#!/usr/bin/env node\n/**\n * `agent-app-journeys` — record real-user journeys through an agent app and\n * turn them into files a reviewer can watch.\n *\n * Runs in the app's repository, which holds `journeys.config.mjs` (see\n * docs/journeys.md). Credentials arrive as environment variables named by the\n * config; this command never prints a value.\n *\n * agent-app-journeys run <journey.ts> [args…] run one journey script\n * agent-app-journeys env-names credential variable names the config needs\n * agent-app-journeys signin <identity> sign in over HTTP and cache the session\n * agent-app-journeys frames <journey> <label> [s…] PNG frames from a full video (default: one per chapter)\n * agent-app-journeys rebuild <journey> <label> re-render videos after editing chapters\n * agent-app-journeys scrub <journey> re-scrub raw traces and re-check for secrets\n * agent-app-journeys index <folder> [--critic <file>] [--title <text>] [--out <file>]\n * write INDEX.md: highlights, scorecard, ranked fixes, turns, videos\n * agent-app-journeys scoreboard <summary.json> --app <app> [--versions <file>] [--out <file>] [--legacy-ids]\n * the shared readiness board's writes for one run (JSON batch)\n *\n * Exits 0 on success, 1 on a failed run or a refused folder, 2 on a usage error.\n */\nimport { spawnSync } from 'node:child_process'\nimport { existsSync, readdirSync, readFileSync, statSync, writeFileSync } from 'node:fs'\nimport { isAbsolute, join, resolve } from 'node:path'\nimport { invokedAsScript } from '../signoff/invoked-as-script.js'\nimport { credentialNames, loadJourneysConfig, type ResolvedJourneysConfig } from './config.js'\nimport { collectJourneyFiles, renderIndex, type CriticResult } from './report.js'\nimport { scoreboardRows, type JourneySummary } from './scoreboard.js'\nimport { assertNoSecrets, scrubTrace } from './scrub.js'\nimport { secretNeedles, storageStateFor } from './session.js'\nimport { extractFrames, probeSeconds, rebuildVideo } from './video.js'\n\nconst USAGE = [\n 'usage: agent-app-journeys run <journey.ts> [args…]',\n ' agent-app-journeys env-names',\n ' agent-app-journeys signin <identity>',\n ' agent-app-journeys frames <journey> <label> [seconds…]',\n ' agent-app-journeys rebuild <journey> <label>',\n ' agent-app-journeys scrub <journey>',\n ' agent-app-journeys index <folder> [--critic <file>] [--title <text>] [--out <file>]',\n ' agent-app-journeys scoreboard <summary.json> --app <app> [--versions <file>] [--out <file>] [--legacy-ids]',\n].join('\\n')\n\nclass UsageError extends Error {}\n\nfunction missingCredentials(config: ResolvedJourneysConfig): string[] {\n return credentialNames(config).filter((name) => !process.env[name]?.trim())\n}\n\n/** The journey's output folder: a path, or an id under the config's outDir. */\nfunction journeyDir(config: ResolvedJourneysConfig, journey: string): string {\n if (isAbsolute(journey) || existsSync(journey)) return resolve(journey)\n return join(config.outDir, journey)\n}\n\n/** Newest raw recording folder for a journey id. */\nfunction newestRaw(config: ResolvedJourneysConfig, id: string): string {\n const root = join(config.stateDir, 'raw')\n const runs = existsSync(root) ? readdirSync(root).filter((d) => d.startsWith(`${id}-2`)).map((d) => join(root, d)) : []\n const newest = runs.sort((a, b) => statSync(b).mtimeMs - statSync(a).mtimeMs)[0]\n if (!newest) throw new UsageError(`no raw recording for ${id} under ${root}`)\n return newest\n}\n\nfunction option(args: string[], name: string): string | undefined {\n const i = args.indexOf(name)\n if (i < 0) return undefined\n const value = args[i + 1]\n if (!value || value.startsWith('--')) throw new UsageError(`${name} needs a value`)\n args.splice(i, 2)\n return value\n}\n\nexport async function main(argv: readonly string[]): Promise<number> {\n const [command, ...rest] = argv\n const args = [...rest]\n switch (command) {\n case 'run': {\n const [script, ...scriptArgs] = args\n if (!script) throw new UsageError('run needs a journey script')\n const config = await loadJourneysConfig()\n const missing = missingCredentials(config)\n if (missing.length) {\n console.error(`agent-app-journeys: ${missing.join(', ')} unset; load them from the host's vault into this process first`)\n return 2\n }\n const run = spawnSync(process.execPath, [resolve(script), ...scriptArgs], { stdio: 'inherit' })\n return run.status ?? 1\n }\n case 'env-names': {\n const config = await loadJourneysConfig()\n console.log(credentialNames(config).join('\\n'))\n return 0\n }\n case 'signin': {\n const [identity] = args\n if (!identity) throw new UsageError('signin needs an identity name from the config')\n const config = await loadJourneysConfig()\n const { user } = await storageStateFor(config, identity)\n console.log(`${identity}: signed in as user ${user.id}${user.emailVerified ? ', email verified' : ', email NOT verified'}`)\n return 0\n }\n case 'frames': {\n const [journey, label, ...times] = args\n if (!journey || !label) throw new UsageError('frames needs a journey and a context label')\n const config = await loadJourneysConfig()\n const dir = journeyDir(config, journey)\n const video = join(dir, 'video', `${label}-full.mp4`)\n if (!existsSync(video)) {\n console.error(`agent-app-journeys: frames read ${dir}, which has no video/${label}-full.mp4; pass the run's output folder, such as ${join(config.outDir, journey)}`)\n return 1\n }\n const frames = extractFrames(video, join(dir, 'video', `${label}.srt`), dir, times.map(Number))\n if (!frames.length) {\n console.error(`agent-app-journeys: no frames from ${video}: video/${label}.srt is missing and no seconds were given`)\n return 1\n }\n console.log(frames.join('\\n'))\n return 0\n }\n case 'rebuild': {\n const [journey, label] = args\n if (!journey || !label) throw new UsageError('rebuild needs a journey id and a context label')\n const config = await loadJourneysConfig()\n const dir = journeyDir(config, journey)\n const raw = join(newestRaw(config, journey), label)\n rebuildVideo(raw, join(dir, 'video'), label, existsSync(join(dir, 'video', `${label}-x2.mp4`)))\n return 0\n }\n case 'scrub': {\n const [journey] = args\n if (!journey) throw new UsageError('scrub needs a journey id')\n const config = await loadJourneysConfig()\n const dir = journeyDir(config, journey)\n const run = newestRaw(config, journey)\n const needles = secretNeedles(config)\n for (const label of readdirSync(run)) {\n const raw = join(run, label, 'trace.raw.zip')\n if (existsSync(raw)) scrubTrace(raw, join(dir, 'video', `${label}-trace.zip`), [...needles.hard, ...needles.soft])\n }\n assertNoSecrets(dir, needles)\n console.log(`clean: ${dir}`)\n return 0\n }\n case 'index': {\n const out = option(args, '--out')\n const criticFile = option(args, '--critic')\n const title = option(args, '--title')\n const [folder] = args\n if (!folder) throw new UsageError('index needs the folder that holds the journeys')\n const root = resolve(folder)\n const critic = criticFile ? (JSON.parse(readFileSync(resolve(criticFile), 'utf8')) as CriticResult) : undefined\n const probe = (file: string) => {\n try {\n return probeSeconds(file)\n } catch {\n return null\n }\n }\n const markdown = renderIndex({ title: title ?? 'Recorded journeys: what to watch', critic, journeys: collectJourneyFiles(root, probe) })\n const target = out ? resolve(out) : join(root, 'INDEX.md')\n writeFileSync(target, markdown)\n console.log(target)\n return 0\n }\n case 'scoreboard': {\n const app = option(args, '--app')\n const versionsFile = option(args, '--versions')\n const out = option(args, '--out')\n const legacyAt = args.indexOf('--legacy-ids')\n const legacyIds = legacyAt >= 0\n if (legacyIds) args.splice(legacyAt, 1)\n const [summaryFile] = args\n if (!summaryFile || !app) throw new UsageError('scoreboard needs a summary.json and --app <app>')\n const summary = JSON.parse(readFileSync(resolve(summaryFile), 'utf8')) as JourneySummary\n // `versions` maps `collection/docId` to the version a read of the board's store returned.\n const versions = versionsFile ? (JSON.parse(readFileSync(resolve(versionsFile), 'utf8')) as Record<string, number>) : undefined\n let result\n try {\n result = scoreboardRows(summary, { app, legacyIds, ...(versions ? { versions } : {}) })\n } catch (error) {\n throw new UsageError(error instanceof Error ? error.message : String(error))\n }\n for (const warning of result.warnings) console.error(`scoreboard: ${warning}`)\n const json = JSON.stringify(result.writes, null, 2) + '\\n'\n if (out) { writeFileSync(resolve(out), json); console.log(resolve(out)) } else process.stdout.write(json)\n return 0\n }\n case undefined:\n case '--help':\n case '-h':\n console.log(USAGE)\n return command === undefined ? 2 : 0\n default:\n throw new UsageError(`unknown command ${command}`)\n }\n}\n\nif (invokedAsScript(import.meta.url, process.argv[1])) {\n main(process.argv.slice(2)).then(\n (code) => process.exit(code),\n (error: unknown) => {\n if (error instanceof UsageError) {\n console.error(`agent-app-journeys: ${error.message}\\n${USAGE}`)\n process.exit(2)\n }\n console.error(`agent-app-journeys: ${error instanceof Error ? error.message : String(error)}`)\n process.exit(1)\n },\n )\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAsBA,SAAS,iBAAiB;AAC1B,SAAS,YAAY,aAAa,cAAc,UAAU,qBAAqB;AAC/E,SAAS,YAAY,MAAM,eAAe;AAS1C,IAAM,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,EAAE,KAAK,IAAI;AAEX,IAAM,aAAN,cAAyB,MAAM;AAAC;AAEhC,SAAS,mBAAmB,QAA0C;AACpE,SAAO,gBAAgB,MAAM,EAAE,OAAO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AAC;AAAA,MAC7E;AACA,iBAAW,WAAW,OAAO,SAAU,SAAQ,MAAM,eAAe,OAAO,EAAE;AAC7E,YAAM,OAAO,KAAK,UAAU,OAAO,QAAQ,MAAM,CAAC,IAAI;AACtD,UAAI,KAAK;AAAE,sBAAc,QAAQ,GAAG,GAAG,IAAI;AAAG,gBAAQ,IAAI,QAAQ,GAAG,CAAC;AAAA,MAAE,MAAO,SAAQ,OAAO,MAAM,IAAI;AACxG,aAAO;AAAA,IACT;AAAA,IACA,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AACH,cAAQ,IAAI,KAAK;AACjB,aAAO,YAAY,SAAY,IAAI;AAAA,IACrC;AACE,YAAM,IAAI,WAAW,mBAAmB,OAAO,EAAE;AAAA,EACrD;AACF;AAEA,IAAI,gBAAgB,YAAY,KAAK,QAAQ,KAAK,CAAC,CAAC,GAAG;AACrD,OAAK,QAAQ,KAAK,MAAM,CAAC,CAAC,EAAE;AAAA,IAC1B,CAAC,SAAS,QAAQ,KAAK,IAAI;AAAA,IAC3B,CAAC,UAAmB;AAClB,UAAI,iBAAiB,YAAY;AAC/B,gBAAQ,MAAM,uBAAuB,MAAM,OAAO;AAAA,EAAK,KAAK,EAAE;AAC9D,gBAAQ,KAAK,CAAC;AAAA,MAChB;AACA,cAAQ,MAAM,uBAAuB,iBAAiB,QAAQ,MAAM,UAAU,OAAO,KAAK,CAAC,EAAE;AAC7F,cAAQ,KAAK,CAAC;AAAA,IAChB;AAAA,EACF;AACF;","names":[]}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createChatTurnRoutes,
|
|
3
3
|
streamChatRouteAsSandboxEvents
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-XB6ZY367.js";
|
|
5
5
|
import "../chunk-SBHFMDR7.js";
|
|
6
6
|
import "../chunk-H6BRJU5M.js";
|
|
7
7
|
import "../chunk-4DBHC63F.js";
|
|
8
8
|
import "../chunk-RN4WPTBH.js";
|
|
9
9
|
import "../chunk-MM6RLOXF.js";
|
|
10
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-FBZR6634.js";
|
|
11
11
|
import "../chunk-F4TUZYMX.js";
|
|
12
12
|
import "../chunk-MH74DY2I.js";
|
|
13
13
|
import "../chunk-5DAEU3CP.js";
|
package/dist/sandbox/index.js
CHANGED
package/dist/sandbox/model.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export interface ProviderResolutionConfig {
|
|
|
8
8
|
openaiApiKey?: string;
|
|
9
9
|
allowKeylessModel?: boolean;
|
|
10
10
|
apiKeyEnv?: string;
|
|
11
|
+
mode?: 'api' | 'cli';
|
|
11
12
|
}
|
|
12
13
|
/** Represent a fully configured model with optional API key and base URL for sandbox platform integration */
|
|
13
14
|
/**
|
|
@@ -23,6 +24,7 @@ export declare function backendModelFields(model: ResolvedModel): {
|
|
|
23
24
|
apiKey?: string;
|
|
24
25
|
apiKeyEnv?: string;
|
|
25
26
|
baseUrl?: string;
|
|
27
|
+
mode?: 'api' | 'cli';
|
|
26
28
|
};
|
|
27
29
|
};
|
|
28
30
|
export interface ResolvedModel {
|
|
@@ -32,6 +34,8 @@ export interface ResolvedModel {
|
|
|
32
34
|
/** A stored-secret reference standing in for `apiKey`; see {@link ProviderResolutionConfig.apiKeyEnv}. */
|
|
33
35
|
apiKeyEnv?: string;
|
|
34
36
|
baseUrl?: string;
|
|
37
|
+
/** See {@link ProviderResolutionConfig.mode}. */
|
|
38
|
+
mode?: 'api' | 'cli';
|
|
35
39
|
}
|
|
36
40
|
/**
|
|
37
41
|
* Why a model failed to resolve into something transportable to the sandbox
|
|
@@ -43,6 +43,7 @@ export declare function resolveSandboxPromptBackend(shell: SandboxPromptConfig,
|
|
|
43
43
|
apiKey?: string;
|
|
44
44
|
apiKeyEnv?: string;
|
|
45
45
|
baseUrl?: string;
|
|
46
|
+
mode?: 'api' | 'cli';
|
|
46
47
|
} | undefined;
|
|
47
48
|
type: import("@tangle-network/sandbox").BackendType;
|
|
48
49
|
profile: AgentProfile;
|
package/package.json
CHANGED