agentbox-sdk 0.1.503 → 0.1.511
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 +141 -0
- package/dist/agents/index.d.ts +15 -4
- package/dist/agents/index.js +8 -4
- package/dist/{chunk-TUBBWIOM.js → chunk-76AFK7XN.js} +1 -1
- package/dist/{chunk-34LDITII.js → chunk-G3VEVR6Y.js} +1584 -530
- package/dist/{chunk-AVXJMCBC.js → chunk-MTQ2S46C.js} +22 -0
- package/dist/events/index.d.ts +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +8 -4
- package/dist/sandboxes/index.js +2 -2
- package/dist/{types-3VRJIiW0.d.ts → types-B4yy80AJ.d.ts} +86 -4
- package/package.json +5 -3
|
@@ -156,6 +156,27 @@ import { setTimeout as sleepTimeout } from "timers/promises";
|
|
|
156
156
|
async function sleep(ms) {
|
|
157
157
|
await sleepTimeout(ms);
|
|
158
158
|
}
|
|
159
|
+
async function getAvailablePort(host = "127.0.0.1") {
|
|
160
|
+
return new Promise((resolve, reject) => {
|
|
161
|
+
const server = net.createServer();
|
|
162
|
+
server.once("error", reject);
|
|
163
|
+
server.listen(0, host, () => {
|
|
164
|
+
const address = server.address();
|
|
165
|
+
if (!address || typeof address === "string") {
|
|
166
|
+
reject(new Error("Could not determine an available port."));
|
|
167
|
+
return;
|
|
168
|
+
}
|
|
169
|
+
const { port } = address;
|
|
170
|
+
server.close((error) => {
|
|
171
|
+
if (error) {
|
|
172
|
+
reject(error);
|
|
173
|
+
return;
|
|
174
|
+
}
|
|
175
|
+
resolve(port);
|
|
176
|
+
});
|
|
177
|
+
});
|
|
178
|
+
});
|
|
179
|
+
}
|
|
159
180
|
async function waitFor(predicate, options) {
|
|
160
181
|
const timeoutMs = options?.timeoutMs ?? 15e3;
|
|
161
182
|
const intervalMs = options?.intervalMs ?? 250;
|
|
@@ -270,6 +291,7 @@ export {
|
|
|
270
291
|
debugRelay,
|
|
271
292
|
time,
|
|
272
293
|
sleep,
|
|
294
|
+
getAvailablePort,
|
|
273
295
|
waitFor,
|
|
274
296
|
readStreamAsText,
|
|
275
297
|
readStreamAsBytes,
|
package/dist/events/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as AISDKEvent,
|
|
1
|
+
export { A as AISDKEvent, C as BackgroundTask, D as BackgroundTasksEvent, W as MessageCompletedEvent, X as MessageInjectedEvent, Y as MessageStartedEvent, Z as NativePlanEvent, _ as NormalizedAgentEvent, $ as NormalizedAgentEventBase, a0 as NormalizedAgentEventType, a7 as PermissionRequestedEvent, a8 as PermissionResolvedEvent, a9 as RawAgentEvent, aa as ReasoningDeltaEvent, ac as RunCancelledEvent, ad as RunCompletedEvent, ae as RunErrorEvent, af as RunStartedEvent, ah as TextDeltaEvent, aj as ToolCallCompletedEvent, ak as ToolCallDeltaEvent, al as ToolCallStartedEvent, ao as createNormalizedEvent, ap as normalizeRawAgentEvent, aq as toAISDKEvent, ar as toAISDKStream } from '../types-B4yy80AJ.js';
|
|
2
2
|
import { AgentProvider } from '../enums.js';
|
|
3
3
|
import '../Sandbox-DcKAU-E3.js';
|
|
4
4
|
import 'e2b';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { A as AISDKEvent, a as AgentApprovalMode, b as AgentAttachRequest, c as AgentCommandConfig, d as AgentCostData, e as AgentExecutionRequest, f as AgentLocalMcpConfig, g as AgentMcpConfig, h as AgentOptions, i as AgentOptionsBase, j as AgentOptionsMap, k as AgentPermissionDecision, l as AgentPermissionKind, m as AgentPermissionResponse, n as AgentProviderAdapter, o as AgentProviderName, p as AgentReasoningEffort, q as AgentRemoteMcpConfig, r as AgentResult, s as AgentRun, t as AgentRunConfig, u as AgentRunSink, v as AgentSetupRequest, w as AgentSkillConfig, x as AgentSubAgentConfig, y as AttachedRun, C as ClaudeCodeAgentOptions,
|
|
2
|
-
export { AGENT_RESERVED_PORTS, Agent, agentboxRoot, collectAllAgentReservedPorts, getAgentLayout } from './agents/index.js';
|
|
1
|
+
export { A as AISDKEvent, a as AgentApprovalMode, b as AgentAttachRequest, c as AgentCommandConfig, d as AgentCostData, e as AgentExecutionRequest, f as AgentLocalMcpConfig, g as AgentMcpConfig, h as AgentOptions, i as AgentOptionsBase, j as AgentOptionsMap, k as AgentPermissionDecision, l as AgentPermissionKind, m as AgentPermissionResponse, n as AgentProviderAdapter, o as AgentProviderName, p as AgentReasoningEffort, q as AgentRemoteMcpConfig, r as AgentResult, s as AgentRun, t as AgentRunConfig, u as AgentRunSink, v as AgentSetupRequest, w as AgentSkillConfig, x as AgentSubAgentConfig, y as AgentUserAnswer, z as AgentUserQuestion, B as AttachedRun, C as BackgroundTask, D as BackgroundTasksEvent, E as ClaudeCodeAgentOptions, F as ClaudeCodeHookConfig, G as ClaudeCodeHookEvent, H as ClaudeCodeHookHandler, I as ClaudeCodeHookMatcherGroup, J as ClaudeCodeHooksConfig, K as ClaudeCodeProviderOptions, L as CodexAgentOptions, M as CodexCommandHook, N as CodexHookEvent, O as CodexHookMatcherGroup, P as CodexHooksConfig, Q as CodexModelProviderConfig, R as CodexProviderOptions, S as DataContent, T as EmbeddedSkillConfig, U as FilePart, V as ImagePart, W as MessageCompletedEvent, X as MessageInjectedEvent, Y as MessageStartedEvent, Z as NativePlanEvent, _ as NormalizedAgentEvent, $ as NormalizedAgentEventBase, a0 as NormalizedAgentEventType, a1 as OpenCodeAgentOptions, a2 as OpenCodePluginConfig, a3 as OpenCodePluginEvent, a4 as OpenCodePluginHookConfig, a5 as OpenCodeProviderOptions, a6 as OpenRouterPlugin, a7 as PermissionRequestedEvent, a8 as PermissionResolvedEvent, a9 as RawAgentEvent, aa as ReasoningDeltaEvent, ab as RepoSkillConfig, ac as RunCancelledEvent, ad as RunCompletedEvent, ae as RunErrorEvent, af as RunStartedEvent, ag as SetupLayout, ah as TextDeltaEvent, ai as TextPart, aj as ToolCallCompletedEvent, ak as ToolCallDeltaEvent, al as ToolCallStartedEvent, am as UserContent, an as UserContentPart, ao as createNormalizedEvent, ap as normalizeRawAgentEvent, aq as toAISDKEvent, ar as toAISDKStream } from './types-B4yy80AJ.js';
|
|
2
|
+
export { AGENT_RESERVED_PORTS, Agent, HarnessCapabilities, HarnessCommand, agentboxRoot, collectAllAgentReservedPorts, getAgentLayout, harnessCapabilities, resolveHarnessCommand } from './agents/index.js';
|
|
3
3
|
export { A as AsyncCommandHandle, C as CommandEvent, a as CommandOptions, b as CommandResult, D as DaytonaProviderOptions, c as DaytonaSandboxOptions, E as E2bProviderOptions, d as E2bSandboxOptions, G as GitCloneOptions, L as LocalDockerProviderOptions, e as LocalDockerSandboxOptions, M as ModalProviderOptions, f as ModalSandboxOptions, S as Sandbox, g as SandboxDescriptor, h as SandboxListOptions, i as SandboxOptions, j as SandboxOptionsBase, k as SandboxOptionsMap, l as SandboxProviderName, m as SandboxRaw, n as SandboxRawMap, o as SandboxResourceSpec, T as TarballEntry, V as VercelGitSource, p as VercelProviderOptions, q as VercelSandboxOptions } from './Sandbox-DcKAU-E3.js';
|
|
4
4
|
export { SandboxAdapter, buildGitCloneCommand } from './sandboxes/index.js';
|
|
5
5
|
export { ProviderLogAssembler } from './events/index.js';
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Agent,
|
|
3
3
|
agentboxRoot,
|
|
4
|
-
getAgentLayout
|
|
5
|
-
|
|
4
|
+
getAgentLayout,
|
|
5
|
+
harnessCapabilities,
|
|
6
|
+
resolveHarnessCommand
|
|
7
|
+
} from "./chunk-G3VEVR6Y.js";
|
|
6
8
|
import {
|
|
7
9
|
ProviderLogAssembler,
|
|
8
10
|
createNormalizedEvent,
|
|
@@ -14,11 +16,11 @@ import {
|
|
|
14
16
|
Sandbox,
|
|
15
17
|
SandboxAdapter,
|
|
16
18
|
buildGitCloneCommand
|
|
17
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-76AFK7XN.js";
|
|
18
20
|
import {
|
|
19
21
|
AGENT_RESERVED_PORTS,
|
|
20
22
|
collectAllAgentReservedPorts
|
|
21
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-MTQ2S46C.js";
|
|
22
24
|
import "./chunk-NSJM57Z4.js";
|
|
23
25
|
import {
|
|
24
26
|
AgentProvider,
|
|
@@ -37,7 +39,9 @@ export {
|
|
|
37
39
|
collectAllAgentReservedPorts,
|
|
38
40
|
createNormalizedEvent,
|
|
39
41
|
getAgentLayout,
|
|
42
|
+
harnessCapabilities,
|
|
40
43
|
normalizeRawAgentEvent,
|
|
44
|
+
resolveHarnessCommand,
|
|
41
45
|
toAISDKEvent,
|
|
42
46
|
toAISDKStream
|
|
43
47
|
};
|
package/dist/sandboxes/index.js
CHANGED
|
@@ -9,7 +9,7 @@ interface RawAgentEvent<TPayload = unknown> {
|
|
|
9
9
|
payload: TPayload;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
type NormalizedAgentEventType = "run.started" | "message.started" | "message.injected" | "text.delta" | "reasoning.delta" | "tool.call.started" | "tool.call.delta" | "tool.call.completed" | "permission.requested" | "permission.resolved" | "message.completed" | "run.completed" | "run.cancelled" | "run.error";
|
|
12
|
+
type NormalizedAgentEventType = "plan.completed" | "run.started" | "message.started" | "message.injected" | "text.delta" | "reasoning.delta" | "tool.call.started" | "tool.call.delta" | "tool.call.completed" | "permission.requested" | "permission.resolved" | "message.completed" | "background.tasks" | "run.completed" | "run.cancelled" | "run.error";
|
|
13
13
|
interface NormalizedAgentEventBase {
|
|
14
14
|
provider: string;
|
|
15
15
|
runId: string;
|
|
@@ -72,6 +72,8 @@ interface PermissionRequestedEvent extends NormalizedAgentEventBase {
|
|
|
72
72
|
type: "permission.requested";
|
|
73
73
|
requestId: string;
|
|
74
74
|
kind: AgentPermissionKind;
|
|
75
|
+
toolName?: string;
|
|
76
|
+
questions?: AgentUserQuestion[];
|
|
75
77
|
title?: string;
|
|
76
78
|
message?: string;
|
|
77
79
|
input?: unknown;
|
|
@@ -82,6 +84,7 @@ interface PermissionResolvedEvent extends NormalizedAgentEventBase {
|
|
|
82
84
|
requestId: string;
|
|
83
85
|
decision: AgentPermissionDecision;
|
|
84
86
|
remember?: boolean;
|
|
87
|
+
answers?: AgentUserAnswer[];
|
|
85
88
|
}
|
|
86
89
|
interface MessageCompletedEvent extends NormalizedAgentEventBase {
|
|
87
90
|
type: "message.completed";
|
|
@@ -93,6 +96,21 @@ interface MessageCompletedEvent extends NormalizedAgentEventBase {
|
|
|
93
96
|
*/
|
|
94
97
|
messageId?: string;
|
|
95
98
|
}
|
|
99
|
+
/** Work the harness left running past its turn (background shell, monitor,
|
|
100
|
+
* background subagent, scheduled wakeup). */
|
|
101
|
+
interface BackgroundTask {
|
|
102
|
+
id: string;
|
|
103
|
+
/** Harness task type, e.g. `local_bash`, `local_agent`, `scheduled_wakeup`. */
|
|
104
|
+
type: string;
|
|
105
|
+
description: string;
|
|
106
|
+
}
|
|
107
|
+
interface BackgroundTasksEvent extends NormalizedAgentEventBase {
|
|
108
|
+
type: "background.tasks";
|
|
109
|
+
/** Every live background task after the change (replace semantics). */
|
|
110
|
+
tasks: BackgroundTask[];
|
|
111
|
+
/** True once the harness ended its turn and the run stays open only for these tasks. */
|
|
112
|
+
waiting: boolean;
|
|
113
|
+
}
|
|
96
114
|
interface RunCompletedEvent extends NormalizedAgentEventBase {
|
|
97
115
|
type: "run.completed";
|
|
98
116
|
text?: string;
|
|
@@ -105,7 +123,11 @@ interface RunErrorEvent extends NormalizedAgentEventBase {
|
|
|
105
123
|
type: "run.error";
|
|
106
124
|
error: string;
|
|
107
125
|
}
|
|
108
|
-
|
|
126
|
+
interface NativePlanEvent extends NormalizedAgentEventBase {
|
|
127
|
+
type: "plan.completed";
|
|
128
|
+
text: string;
|
|
129
|
+
}
|
|
130
|
+
type NormalizedAgentEvent = NativePlanEvent | RunStartedEvent | MessageStartedEvent | MessageInjectedEvent | TextDeltaEvent | ReasoningDeltaEvent | ToolCallStartedEvent | ToolCallDeltaEvent | ToolCallCompletedEvent | PermissionRequestedEvent | PermissionResolvedEvent | MessageCompletedEvent | BackgroundTasksEvent | RunCompletedEvent | RunCancelledEvent | RunErrorEvent;
|
|
109
131
|
declare function createNormalizedEvent<TType extends NormalizedAgentEventType>(type: TType, base: Omit<NormalizedAgentEventBase, "type" | "timestamp"> & {
|
|
110
132
|
timestamp?: string;
|
|
111
133
|
}, extra?: Record<string, unknown>): NormalizedAgentEvent;
|
|
@@ -382,17 +404,53 @@ interface AgentRunConfig {
|
|
|
382
404
|
*/
|
|
383
405
|
forkAtMessageId?: string;
|
|
384
406
|
reasoning?: AgentReasoningEffort;
|
|
407
|
+
/** Native collaboration mode; independent of tool permissions. */
|
|
408
|
+
mode?: "plan" | "default";
|
|
409
|
+
/** Native goal objective. Unsupported harnesses reject it. */
|
|
410
|
+
goal?: string;
|
|
385
411
|
}
|
|
386
412
|
type AgentApprovalMode = "auto" | "interactive";
|
|
387
|
-
type AgentPermissionKind = "bash" | "edit" | "tool" | "network" | "file-change" | "unknown";
|
|
413
|
+
type AgentPermissionKind = "bash" | "edit" | "tool" | "network" | "file-change" | "question" | "plan" | "unknown";
|
|
388
414
|
type AgentPermissionDecision = "allow" | "deny";
|
|
415
|
+
interface AgentUserQuestion {
|
|
416
|
+
id: string;
|
|
417
|
+
question: string;
|
|
418
|
+
header?: string;
|
|
419
|
+
options: Array<{
|
|
420
|
+
label: string;
|
|
421
|
+
description?: string;
|
|
422
|
+
}>;
|
|
423
|
+
multiple: boolean;
|
|
424
|
+
allowCustom: boolean;
|
|
425
|
+
}
|
|
426
|
+
interface AgentUserAnswer {
|
|
427
|
+
questionId: string;
|
|
428
|
+
values: string[];
|
|
429
|
+
}
|
|
389
430
|
interface AgentPermissionResponse {
|
|
390
431
|
requestId: string;
|
|
391
432
|
decision: AgentPermissionDecision;
|
|
392
433
|
remember?: boolean;
|
|
434
|
+
/** Required when allowing a question request. Never changes tool arguments. */
|
|
435
|
+
answers?: AgentUserAnswer[];
|
|
393
436
|
}
|
|
394
437
|
interface AgentOptionsBase {
|
|
395
438
|
sandbox?: Sandbox;
|
|
439
|
+
/** Use the host harness's own settings and built-in prompt without generating
|
|
440
|
+
* AgentBox configuration, skills, hooks, plugins, or MCP definitions.
|
|
441
|
+
* Available only for host execution. The default remains "managed".
|
|
442
|
+
*/
|
|
443
|
+
configuration?: "managed" | "native";
|
|
444
|
+
/** Private, persistent host directory for generated configuration and sessions.
|
|
445
|
+
* Use one directory per execution environment. Must be absolute; unavailable
|
|
446
|
+
* for sandbox-backed agents, whose state belongs inside the sandbox.
|
|
447
|
+
*/
|
|
448
|
+
stateDirectory?: string;
|
|
449
|
+
/** Host process ownership. Use "inherited" only when the caller supervises
|
|
450
|
+
* an existing POSIX process group and will terminate its descendants.
|
|
451
|
+
* The default "owned" gives each native runtime its own process group.
|
|
452
|
+
*/
|
|
453
|
+
processGroup?: "owned" | "inherited";
|
|
396
454
|
cwd?: string;
|
|
397
455
|
env?: Record<string, string>;
|
|
398
456
|
/**
|
|
@@ -424,13 +482,37 @@ interface AgentOptionsBase {
|
|
|
424
482
|
* in particular are subject to upstream support.
|
|
425
483
|
*/
|
|
426
484
|
customHeaders?: Record<string, string>;
|
|
485
|
+
/**
|
|
486
|
+
* Max time a run may spend waiting, after turn ends, for background work
|
|
487
|
+
* (background shells, monitors, background subagents, scheduled wakeups)
|
|
488
|
+
* that will wake the model again. Counted across the whole run — time
|
|
489
|
+
* spent in follow-up turns does not count — so re-arming a monitor on
|
|
490
|
+
* every wake-up cannot extend it. Default 30 minutes. `0` restores the
|
|
491
|
+
* legacy behaviour (settle at the first turn end and abandon background
|
|
492
|
+
* work); `Infinity` waits forever. On expiry the tasks are stopped
|
|
493
|
+
* best-effort and the run completes with the last turn's text. Progress
|
|
494
|
+
* is reported through `background.tasks` events.
|
|
495
|
+
*/
|
|
496
|
+
backgroundTaskTimeoutMs?: number;
|
|
427
497
|
approvalMode?: AgentApprovalMode;
|
|
498
|
+
/** Route questions and plan approvals to the caller even with automatic tool approval. */
|
|
499
|
+
interactiveQuestions?: boolean;
|
|
500
|
+
/** Explicitly bypass the harness tool sandbox; does not answer user questions. */
|
|
501
|
+
fullAccess?: boolean;
|
|
428
502
|
mcps?: AgentMcpConfig[];
|
|
429
503
|
skills?: AgentSkillConfig[];
|
|
430
504
|
subAgents?: AgentSubAgentConfig[];
|
|
431
505
|
commands?: AgentCommandConfig[];
|
|
432
506
|
}
|
|
433
507
|
interface CodexProviderOptions {
|
|
508
|
+
/** Explicit policy for new, resumed, and forked native sessions. */
|
|
509
|
+
approvalPolicy?: "untrusted" | "on-request" | "never";
|
|
510
|
+
/** Managed host execution defaults to read-only; native configuration uses the CLI's settings. */
|
|
511
|
+
sandboxMode?: "read-only" | "workspace-write" | "danger-full-access";
|
|
512
|
+
/** Additional task worktrees permitted by native Codex's write sandbox. */
|
|
513
|
+
writableRoots?: string[];
|
|
514
|
+
/** Network access for an explicit host workspace-write policy; defaults to false. */
|
|
515
|
+
networkAccess?: boolean;
|
|
434
516
|
binary?: string;
|
|
435
517
|
env?: Record<string, string>;
|
|
436
518
|
brokerEndpoint?: string;
|
|
@@ -729,4 +811,4 @@ interface AgentProviderAdapter<P extends AgentProviderName = AgentProviderName>
|
|
|
729
811
|
attachSendMessage(request: AgentAttachRequest<P>, content: UserContent): Promise<void>;
|
|
730
812
|
}
|
|
731
813
|
|
|
732
|
-
export { type
|
|
814
|
+
export { type NormalizedAgentEventBase as $, type AISDKEvent as A, type AttachedRun as B, type BackgroundTask as C, type BackgroundTasksEvent as D, type ClaudeCodeAgentOptions as E, type ClaudeCodeHookConfig as F, type ClaudeCodeHookEvent as G, type ClaudeCodeHookHandler as H, type ClaudeCodeHookMatcherGroup as I, type ClaudeCodeHooksConfig as J, type ClaudeCodeProviderOptions as K, type CodexAgentOptions as L, type CodexCommandHook as M, type CodexHookEvent as N, type CodexHookMatcherGroup as O, type CodexHooksConfig as P, type CodexModelProviderConfig as Q, type CodexProviderOptions as R, type DataContent as S, type EmbeddedSkillConfig as T, type FilePart as U, type ImagePart as V, type MessageCompletedEvent as W, type MessageInjectedEvent as X, type MessageStartedEvent as Y, type NativePlanEvent as Z, type NormalizedAgentEvent as _, type AgentApprovalMode as a, type NormalizedAgentEventType as a0, type OpenCodeAgentOptions as a1, type OpenCodePluginConfig as a2, type OpenCodePluginEvent as a3, type OpenCodePluginHookConfig as a4, type OpenCodeProviderOptions as a5, type OpenRouterPlugin as a6, type PermissionRequestedEvent as a7, type PermissionResolvedEvent as a8, type RawAgentEvent as a9, type ReasoningDeltaEvent as aa, type RepoSkillConfig as ab, type RunCancelledEvent as ac, type RunCompletedEvent as ad, type RunErrorEvent as ae, type RunStartedEvent as af, type SetupLayout as ag, type TextDeltaEvent as ah, type TextPart as ai, type ToolCallCompletedEvent as aj, type ToolCallDeltaEvent as ak, type ToolCallStartedEvent as al, type UserContent as am, type UserContentPart as an, createNormalizedEvent as ao, normalizeRawAgentEvent as ap, toAISDKEvent as aq, toAISDKStream as ar, type AgentAttachRequest as b, type AgentCommandConfig as c, type AgentCostData as d, type AgentExecutionRequest as e, type AgentLocalMcpConfig as f, type AgentMcpConfig as g, type AgentOptions as h, type AgentOptionsBase as i, type AgentOptionsMap as j, type AgentPermissionDecision as k, type AgentPermissionKind as l, type AgentPermissionResponse as m, type AgentProviderAdapter as n, type AgentProviderName as o, type AgentReasoningEffort as p, type AgentRemoteMcpConfig as q, type AgentResult as r, type AgentRun as s, type AgentRunConfig as t, type AgentRunSink as u, type AgentSetupRequest as v, type AgentSkillConfig as w, type AgentSubAgentConfig as x, type AgentUserAnswer as y, type AgentUserQuestion as z };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agentbox-sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.511",
|
|
4
4
|
"description": "Swappable coding agents and sandbox providers for Bun and TypeScript.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -42,6 +42,7 @@
|
|
|
42
42
|
"scripts": {
|
|
43
43
|
"dev": "tsup src/index.ts src/enums.ts src/agents/index.ts src/sandboxes/index.ts src/events/index.ts src/cli.ts --format esm --dts --clean --watch",
|
|
44
44
|
"build": "tsup src/index.ts src/enums.ts src/agents/index.ts src/sandboxes/index.ts src/events/index.ts src/cli.ts --format esm --dts --clean",
|
|
45
|
+
"prepack": "npm run build",
|
|
45
46
|
"typecheck": "tsc --noEmit",
|
|
46
47
|
"lint": "eslint . --max-warnings=0",
|
|
47
48
|
"lint:fix": "eslint . --fix",
|
|
@@ -58,6 +59,7 @@
|
|
|
58
59
|
"bun": ">=1.1.0"
|
|
59
60
|
},
|
|
60
61
|
"dependencies": {
|
|
62
|
+
"@anthropic-ai/claude-agent-sdk": "0.2.141",
|
|
61
63
|
"@daytonaio/sdk": "^0.171.0",
|
|
62
64
|
"@types/debug": "^4.1.13",
|
|
63
65
|
"@vercel/sandbox": "2.0.0-beta.13",
|
|
@@ -67,10 +69,10 @@
|
|
|
67
69
|
"eventsource-parser": "^3.0.6",
|
|
68
70
|
"modal": "^0.7.4",
|
|
69
71
|
"tar-stream": "^3.1.8",
|
|
70
|
-
"ws": "^8.20.0"
|
|
72
|
+
"ws": "^8.20.0",
|
|
73
|
+
"zod": "4.3.6"
|
|
71
74
|
},
|
|
72
75
|
"devDependencies": {
|
|
73
|
-
"@anthropic-ai/claude-agent-sdk": "^0.2.123",
|
|
74
76
|
"@eslint/js": "^10.0.1",
|
|
75
77
|
"@types/dockerode": "^3.3.42",
|
|
76
78
|
"@types/node": "^25.5.2",
|