@byteplus-iga-pages/agent 0.0.0-stage → 1.0.4
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/LICENSE +20 -0
- package/README.md +84 -2
- package/dist/cjs/261.js +77 -0
- package/dist/cjs/341.js +43 -0
- package/dist/cjs/401.js +3632 -0
- package/dist/cjs/419.js +854 -0
- package/dist/cjs/504.js +760 -0
- package/dist/cjs/521.js +242 -0
- package/dist/cjs/594.js +79 -0
- package/dist/cjs/647.js +1367 -0
- package/dist/cjs/808.js +322 -0
- package/dist/cjs/82.js +10089 -0
- package/dist/cjs/893.js +17720 -0
- package/dist/cjs/893.js.LICENSE.txt +13 -0
- package/dist/cjs/951.js +59 -0
- package/dist/cjs/package.json +3 -0
- package/dist/cjs/runtime.js +79 -0
- package/dist/cjs/sandbox/host.js +125 -0
- package/dist/cjs/sandbox/index.js +286 -0
- package/dist/cjs/store/claude.js +209 -0
- package/dist/cjs/store/host.js +92 -0
- package/dist/cjs/store/index.js +43 -0
- package/dist/cjs/store/langgraph.js +581 -0
- package/dist/cjs/store/openai.js +118 -0
- package/dist/cjs/tools/claude.js +59 -0
- package/dist/cjs/tools/index.js +37 -0
- package/dist/cjs/tools/langchain.js +52 -0
- package/dist/cjs/tools/openai-agents.js +43 -0
- package/dist/cjs/tools/openai.js +43 -0
- package/dist/esm/128.js +10381 -0
- package/dist/esm/261.js +67 -0
- package/dist/esm/341.js +30 -0
- package/dist/esm/392.js +4453 -0
- package/dist/esm/417.js +704 -0
- package/dist/esm/521.js +230 -0
- package/dist/esm/594.js +67 -0
- package/dist/esm/613.js +19042 -0
- package/dist/esm/613.js.LICENSE.txt +13 -0
- package/dist/esm/951.js +44 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/runtime.js +39 -0
- package/dist/esm/sandbox/host.js +1 -0
- package/dist/esm/sandbox/index.js +183 -0
- package/dist/esm/store/claude.js +172 -0
- package/dist/esm/store/host.js +46 -0
- package/dist/esm/store/index.js +2 -0
- package/dist/esm/store/langgraph.js +542 -0
- package/dist/esm/store/openai.js +81 -0
- package/dist/esm/tools/claude.js +22 -0
- package/dist/esm/tools/index.js +1 -0
- package/dist/esm/tools/langchain.js +16 -0
- package/dist/esm/tools/openai-agents.js +6 -0
- package/dist/esm/tools/openai.js +6 -0
- package/dist/types/_internal/data-plane/control-plane-request.d.ts +12 -0
- package/dist/types/_internal/data-plane/control-plane.d.ts +3 -0
- package/dist/types/_internal/data-plane/credential-provider.d.ts +25 -0
- package/dist/types/_internal/data-plane/errors.d.ts +19 -0
- package/dist/types/_internal/data-plane/index.d.ts +11 -0
- package/dist/types/_internal/data-plane/supabase-client.d.ts +12 -0
- package/dist/types/_internal/data-plane/token-client.d.ts +23 -0
- package/dist/types/sandbox/api-client.d.ts +37 -0
- package/dist/types/sandbox/api-types.d.ts +81 -0
- package/dist/types/sandbox/binding-repository.d.ts +62 -0
- package/dist/types/sandbox/error.d.ts +22 -0
- package/dist/types/sandbox/expiry.d.ts +11 -0
- package/dist/types/sandbox/host.d.ts +6 -0
- package/dist/types/sandbox/iga-sandbox.d.ts +208 -0
- package/dist/types/sandbox/index.d.ts +8 -0
- package/dist/types/sandbox/public-surface.d.ts +19 -0
- package/dist/types/sandbox/runtime-sandbox.d.ts +32 -0
- package/dist/types/sandbox/types.d.ts +238 -0
- package/dist/types/store/append.d.ts +41 -0
- package/dist/types/store/claude-repository.d.ts +36 -0
- package/dist/types/store/claude.d.ts +3 -0
- package/dist/types/store/control-plane-request.d.ts +2 -0
- package/dist/types/store/credential-error.d.ts +2 -0
- package/dist/types/store/credential-provider.d.ts +29 -0
- package/dist/types/store/errors.d.ts +29 -0
- package/dist/types/store/factory.d.ts +31 -0
- package/dist/types/store/host.d.ts +5 -0
- package/dist/types/store/index.d.ts +6 -0
- package/dist/types/store/json.d.ts +7 -0
- package/dist/types/store/langgraph-repository.d.ts +98 -0
- package/dist/types/store/langgraph.d.ts +43 -0
- package/dist/types/store/openai.d.ts +12 -0
- package/dist/types/store/pagination.d.ts +27 -0
- package/dist/types/store/runtime-data-plane.d.ts +8 -0
- package/dist/types/store/runtime-provider.d.ts +1 -0
- package/dist/types/store/runtime-store.d.ts +20 -0
- package/dist/types/store/store.d.ts +240 -0
- package/dist/types/store/supabase-transport.d.ts +43 -0
- package/dist/types/store/token-client.d.ts +7 -0
- package/dist/types/tools/adapters.d.ts +5 -0
- package/dist/types/tools/claude.d.ts +4 -0
- package/dist/types/tools/index.d.ts +2 -0
- package/dist/types/tools/langchain.d.ts +16 -0
- package/dist/types/tools/model-output.d.ts +8 -0
- package/dist/types/tools/openai-agents.d.ts +4 -0
- package/dist/types/tools/openai.d.ts +5 -0
- package/dist/types/tools/registry.d.ts +16 -0
- package/dist/types/tools/result.d.ts +17 -0
- package/dist/types/tools/sandbox-result-mappers.d.ts +10 -0
- package/dist/types/tools/sandbox-tools.d.ts +17 -0
- package/dist/types/tools/types.d.ts +307 -0
- package/package.json +136 -4
|
@@ -0,0 +1,307 @@
|
|
|
1
|
+
import type { ZodIssue, ZodType } from "zod";
|
|
2
|
+
import type { IgaErrorInfo } from "../sandbox/index.js";
|
|
3
|
+
export type ToolFramework = "claude-agent-sdk" | "openai-sdk" | "openai-agents-sdk";
|
|
4
|
+
export interface ShellExecInput {
|
|
5
|
+
command: string;
|
|
6
|
+
cwd?: string;
|
|
7
|
+
/** 超时时间,单位为秒。 */
|
|
8
|
+
timeout?: number;
|
|
9
|
+
}
|
|
10
|
+
export interface FilesReadInput {
|
|
11
|
+
path: string;
|
|
12
|
+
startLine?: number;
|
|
13
|
+
endLine?: number;
|
|
14
|
+
}
|
|
15
|
+
export interface FilesWriteInput {
|
|
16
|
+
path: string;
|
|
17
|
+
content: string;
|
|
18
|
+
append?: boolean;
|
|
19
|
+
}
|
|
20
|
+
export interface FilesListInput {
|
|
21
|
+
path: string;
|
|
22
|
+
recursive?: boolean;
|
|
23
|
+
}
|
|
24
|
+
export interface FilesSearchInput {
|
|
25
|
+
path: string;
|
|
26
|
+
pattern: string;
|
|
27
|
+
maxResults?: number;
|
|
28
|
+
}
|
|
29
|
+
export interface FilesFindInput {
|
|
30
|
+
path: string;
|
|
31
|
+
glob: string;
|
|
32
|
+
}
|
|
33
|
+
export interface CodeRunInput {
|
|
34
|
+
language: "python" | "javascript";
|
|
35
|
+
code: string;
|
|
36
|
+
/** 超时时间,单位为秒。 */
|
|
37
|
+
timeout?: number;
|
|
38
|
+
}
|
|
39
|
+
export interface BrowserFetchInput {
|
|
40
|
+
url: string;
|
|
41
|
+
}
|
|
42
|
+
export interface BrowserScreenshotInput {
|
|
43
|
+
fullPage?: boolean;
|
|
44
|
+
}
|
|
45
|
+
/** 内置工具的标准入参;模型原始输入仍在执行时校验和转换。 */
|
|
46
|
+
export type ToolInputMap = {
|
|
47
|
+
shell_exec: ShellExecInput;
|
|
48
|
+
files_read: FilesReadInput;
|
|
49
|
+
files_write: FilesWriteInput;
|
|
50
|
+
files_list: FilesListInput;
|
|
51
|
+
files_search: FilesSearchInput;
|
|
52
|
+
files_find: FilesFindInput;
|
|
53
|
+
code_run: CodeRunInput;
|
|
54
|
+
browser_fetch: BrowserFetchInput;
|
|
55
|
+
browser_screenshot: BrowserScreenshotInput;
|
|
56
|
+
};
|
|
57
|
+
export interface ShellConsoleEntry {
|
|
58
|
+
readonly ps1: string;
|
|
59
|
+
readonly command: string;
|
|
60
|
+
readonly output?: string;
|
|
61
|
+
}
|
|
62
|
+
export interface ShellExecOutput {
|
|
63
|
+
readonly sessionId: string;
|
|
64
|
+
readonly command: string;
|
|
65
|
+
readonly output?: string;
|
|
66
|
+
readonly console?: readonly ShellConsoleEntry[];
|
|
67
|
+
readonly exitCode?: number;
|
|
68
|
+
}
|
|
69
|
+
export interface FilesReadOutput {
|
|
70
|
+
readonly content: string;
|
|
71
|
+
readonly file: string;
|
|
72
|
+
}
|
|
73
|
+
export interface FilesWriteOutput {
|
|
74
|
+
readonly file: string;
|
|
75
|
+
readonly bytesWritten?: number;
|
|
76
|
+
}
|
|
77
|
+
export interface FileListEntry {
|
|
78
|
+
readonly name: string;
|
|
79
|
+
readonly path: string;
|
|
80
|
+
readonly isDirectory: boolean;
|
|
81
|
+
readonly size?: number;
|
|
82
|
+
readonly modifiedTime?: string;
|
|
83
|
+
readonly permissions?: string;
|
|
84
|
+
readonly extension?: string;
|
|
85
|
+
}
|
|
86
|
+
export interface FilesListOutput {
|
|
87
|
+
readonly path: string;
|
|
88
|
+
readonly files?: readonly FileListEntry[];
|
|
89
|
+
readonly totalCount?: number;
|
|
90
|
+
readonly directoryCount?: number;
|
|
91
|
+
readonly fileCount?: number;
|
|
92
|
+
}
|
|
93
|
+
export interface FileSearchMatch {
|
|
94
|
+
readonly file: string;
|
|
95
|
+
readonly lineNumber: number;
|
|
96
|
+
readonly lineContent: string;
|
|
97
|
+
readonly contextBefore?: readonly string[];
|
|
98
|
+
readonly contextAfter?: readonly string[];
|
|
99
|
+
}
|
|
100
|
+
export interface FilesSearchOutput {
|
|
101
|
+
readonly path: string;
|
|
102
|
+
readonly pattern: string;
|
|
103
|
+
readonly matches?: readonly FileSearchMatch[];
|
|
104
|
+
readonly matchCount?: number;
|
|
105
|
+
readonly filesSearched?: number;
|
|
106
|
+
readonly filesMatched?: number;
|
|
107
|
+
readonly truncated?: boolean;
|
|
108
|
+
}
|
|
109
|
+
export interface FilesFindOutput {
|
|
110
|
+
readonly path: string;
|
|
111
|
+
readonly files?: readonly string[];
|
|
112
|
+
}
|
|
113
|
+
export interface CodeRunOutput {
|
|
114
|
+
readonly language: "python" | "javascript";
|
|
115
|
+
readonly outputs?: readonly Readonly<Record<string, unknown>>[];
|
|
116
|
+
readonly code: string;
|
|
117
|
+
readonly stdout?: string;
|
|
118
|
+
readonly stderr?: string;
|
|
119
|
+
readonly exitCode?: number;
|
|
120
|
+
readonly traceback?: readonly string[];
|
|
121
|
+
readonly sessionId?: string;
|
|
122
|
+
}
|
|
123
|
+
export interface BrowserFetchOutput {
|
|
124
|
+
readonly content: string;
|
|
125
|
+
readonly url?: string;
|
|
126
|
+
readonly title?: string;
|
|
127
|
+
readonly status?: number;
|
|
128
|
+
readonly loadTimeMs?: number;
|
|
129
|
+
}
|
|
130
|
+
/** 完整截图;长度字段保留给日志和已有调用方。 */
|
|
131
|
+
export interface BrowserScreenshotOutput {
|
|
132
|
+
readonly base64Image: string;
|
|
133
|
+
readonly mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
|
|
134
|
+
readonly base64ImageLength: number;
|
|
135
|
+
}
|
|
136
|
+
export type ToolOutputMap = {
|
|
137
|
+
shell_exec: ShellExecOutput;
|
|
138
|
+
files_read: FilesReadOutput;
|
|
139
|
+
files_write: FilesWriteOutput;
|
|
140
|
+
files_list: FilesListOutput;
|
|
141
|
+
files_search: FilesSearchOutput;
|
|
142
|
+
files_find: FilesFindOutput;
|
|
143
|
+
code_run: CodeRunOutput;
|
|
144
|
+
browser_fetch: BrowserFetchOutput;
|
|
145
|
+
browser_screenshot: BrowserScreenshotOutput;
|
|
146
|
+
};
|
|
147
|
+
/** 注册表内置的全部工具名,属性访问(tools.files_read)的类型来源。 */
|
|
148
|
+
export type SandboxToolName = keyof ToolInputMap;
|
|
149
|
+
export type ToolDomain = "shell" | "files" | "code" | "browser";
|
|
150
|
+
/**
|
|
151
|
+
* 工具入参的 JSON Schema。带索引签名,这样能直接赋给 OpenAI 官方 SDK 的
|
|
152
|
+
* FunctionParameters(Record<string, unknown>)——interface 没有索引签名时
|
|
153
|
+
* TS 会拒绝这种赋值,调用方就得层层 cast。
|
|
154
|
+
*/
|
|
155
|
+
export interface JsonSchema {
|
|
156
|
+
readonly type: "object";
|
|
157
|
+
readonly properties: Record<string, unknown>;
|
|
158
|
+
readonly required?: readonly string[];
|
|
159
|
+
readonly additionalProperties?: boolean;
|
|
160
|
+
readonly [key: string]: unknown;
|
|
161
|
+
}
|
|
162
|
+
export interface ToolError extends IgaErrorInfo {
|
|
163
|
+
readonly tool: string;
|
|
164
|
+
/** Original API error or business-failure response body, with credentials redacted. */
|
|
165
|
+
readonly upstream?: unknown;
|
|
166
|
+
/** Complete local validation issues, with credentials redacted. */
|
|
167
|
+
readonly issues?: readonly ZodIssue[];
|
|
168
|
+
}
|
|
169
|
+
/** Tool invocation status. */
|
|
170
|
+
export type ToolResult<Output = unknown> = {
|
|
171
|
+
readonly status: "success";
|
|
172
|
+
readonly data: Output;
|
|
173
|
+
} | {
|
|
174
|
+
readonly status: "error";
|
|
175
|
+
readonly error: ToolError;
|
|
176
|
+
};
|
|
177
|
+
export interface ToolExecuteOptions {
|
|
178
|
+
abortSignal?: AbortSignal;
|
|
179
|
+
}
|
|
180
|
+
export type ToolContent = {
|
|
181
|
+
readonly type: "text";
|
|
182
|
+
readonly text: string;
|
|
183
|
+
} | {
|
|
184
|
+
readonly type: "image";
|
|
185
|
+
readonly data: string;
|
|
186
|
+
readonly mimeType: string;
|
|
187
|
+
};
|
|
188
|
+
export type OpenAIAgentsImageContent = {
|
|
189
|
+
type: "text";
|
|
190
|
+
text: string;
|
|
191
|
+
} | {
|
|
192
|
+
type: "image";
|
|
193
|
+
image: string;
|
|
194
|
+
};
|
|
195
|
+
export type OpenAIAgentsInvokeResult<Output> = unknown extends Output ? ToolResult<Output> | OpenAIAgentsImageContent[] : Output extends BrowserScreenshotOutput ? ToolResult<Output> | OpenAIAgentsImageContent[] : ToolResult<Output>;
|
|
196
|
+
export type LangChainImageContent = {
|
|
197
|
+
type: "text";
|
|
198
|
+
text: string;
|
|
199
|
+
} | {
|
|
200
|
+
type: "image_url";
|
|
201
|
+
image_url: {
|
|
202
|
+
url: string;
|
|
203
|
+
};
|
|
204
|
+
};
|
|
205
|
+
export type OpenAIModelMessage = {
|
|
206
|
+
role: "tool";
|
|
207
|
+
tool_call_id: string;
|
|
208
|
+
content: string;
|
|
209
|
+
} | {
|
|
210
|
+
role: "user";
|
|
211
|
+
content: LangChainImageContent[];
|
|
212
|
+
};
|
|
213
|
+
export interface ToolDefinition<Input = unknown, Output = unknown> {
|
|
214
|
+
readonly name: string;
|
|
215
|
+
readonly description: string;
|
|
216
|
+
readonly inputSchema: JsonSchema;
|
|
217
|
+
execute(input: Input, options?: ToolExecuteOptions): Promise<ToolResult<Output>>;
|
|
218
|
+
}
|
|
219
|
+
export interface OpenAIToolDeclaration {
|
|
220
|
+
readonly type: "function";
|
|
221
|
+
readonly function: {
|
|
222
|
+
readonly name: string;
|
|
223
|
+
readonly description: string;
|
|
224
|
+
readonly parameters: JsonSchema;
|
|
225
|
+
};
|
|
226
|
+
}
|
|
227
|
+
export interface OpenAISdkTool<Input = unknown, Output = unknown> extends OpenAIToolDeclaration {
|
|
228
|
+
execute(input: Input, options?: ToolExecuteOptions): Promise<ToolResult<Output>>;
|
|
229
|
+
/** Chat Completions: append all tool messages before any returned user image messages. */
|
|
230
|
+
toModelMessages(result: ToolResult<Output>, toolCallId: string): OpenAIModelMessage[];
|
|
231
|
+
}
|
|
232
|
+
export interface OpenAIAgentsTool<Input = unknown, Output = unknown> {
|
|
233
|
+
readonly type: "function";
|
|
234
|
+
readonly name: string;
|
|
235
|
+
readonly description: string;
|
|
236
|
+
readonly strict: true;
|
|
237
|
+
readonly parameters: JsonSchema;
|
|
238
|
+
execute(input: Input, options?: ToolExecuteOptions): Promise<ToolResult<Output>>;
|
|
239
|
+
invoke(contextOrInput: unknown, input?: unknown, details?: {
|
|
240
|
+
readonly signal?: AbortSignal;
|
|
241
|
+
}): Promise<OpenAIAgentsInvokeResult<Output>>;
|
|
242
|
+
needsApproval(input?: unknown): Promise<false>;
|
|
243
|
+
isEnabled(input?: unknown): Promise<true>;
|
|
244
|
+
}
|
|
245
|
+
export interface ClaudeAgentSdkTool<Input = unknown, Output = unknown> extends ClaudeMcpTool {
|
|
246
|
+
execute(input: Input, options?: ToolExecuteOptions): Promise<ToolResult<Output>>;
|
|
247
|
+
}
|
|
248
|
+
export interface ClaudeMcpToolResult {
|
|
249
|
+
/** MCP CallToolResult permits protocol extension fields. */
|
|
250
|
+
readonly [key: string]: unknown;
|
|
251
|
+
readonly content: ToolContent[];
|
|
252
|
+
readonly isError?: boolean;
|
|
253
|
+
}
|
|
254
|
+
export interface ClaudeMcpTool {
|
|
255
|
+
readonly name: string;
|
|
256
|
+
readonly description: string;
|
|
257
|
+
readonly inputSchema: Record<string, ZodType<unknown>>;
|
|
258
|
+
handler(input: Record<string, unknown>, extra?: unknown): Promise<ClaudeMcpToolResult>;
|
|
259
|
+
readonly _meta?: {
|
|
260
|
+
readonly "anthropic/alwaysLoad": true;
|
|
261
|
+
};
|
|
262
|
+
}
|
|
263
|
+
export interface ClaudeMcpConfigOptions {
|
|
264
|
+
alwaysLoad?: boolean;
|
|
265
|
+
/** Select the tools to register and include in allowedTools. */
|
|
266
|
+
names?: readonly string[];
|
|
267
|
+
}
|
|
268
|
+
/** Claude integration configuration; does not create or register a server. */
|
|
269
|
+
export interface ClaudeMcpConfig {
|
|
270
|
+
readonly name: string;
|
|
271
|
+
readonly tools: ClaudeMcpTool[];
|
|
272
|
+
/** Suggested Claude Agent pre-approval list; not an MCP server option. */
|
|
273
|
+
readonly allowedTools: string[];
|
|
274
|
+
}
|
|
275
|
+
export type FrameworkTool<T extends ToolFramework | undefined = undefined, Input = unknown, Output = unknown> = T extends undefined ? ToolDefinition<Input, Output> : T extends "openai-sdk" ? OpenAISdkTool<Input, Output> : T extends "openai-agents-sdk" ? OpenAIAgentsTool<Input, Output> : T extends "claude-agent-sdk" ? ClaudeAgentSdkTool<Input, Output> : never;
|
|
276
|
+
type NamedTools<T extends ToolFramework | undefined> = {
|
|
277
|
+
[K in SandboxToolName]: FrameworkTool<T, ToolInputMap[K], ToolOutputMap[K]>;
|
|
278
|
+
};
|
|
279
|
+
type ToolInputLookup = ToolInputMap & Record<string, unknown>;
|
|
280
|
+
type ToolOutputLookup = ToolOutputMap & Record<string, unknown>;
|
|
281
|
+
/**
|
|
282
|
+
* getTools() 的返回值:属性访问 + get() 两形态。
|
|
283
|
+
*
|
|
284
|
+
* - tools.files_read / tools.get("files_read"):按名称推导 execute 的输入和输出;
|
|
285
|
+
* - tools.get(name: string):动态工具保留 unknown 输入和输出,入参由运行时校验。
|
|
286
|
+
* 两种形态未知名都抛错并列出合法名。
|
|
287
|
+
*/
|
|
288
|
+
export interface Tools<T extends ToolFramework | undefined = undefined> extends NamedTools<T> {
|
|
289
|
+
all(): FrameworkTool<T>[];
|
|
290
|
+
get<K extends string>(name: K): FrameworkTool<T, ToolInputLookup[K], ToolOutputLookup[K]>;
|
|
291
|
+
files(): FrameworkTool<T>[];
|
|
292
|
+
shell(): FrameworkTool<T>[];
|
|
293
|
+
code(): FrameworkTool<T>[];
|
|
294
|
+
browser(): FrameworkTool<T>[];
|
|
295
|
+
definitions(names?: readonly string[]): ToolDefinition[];
|
|
296
|
+
}
|
|
297
|
+
/** 通用工具集,每个工具提供 inputSchema 和 execute()。 */
|
|
298
|
+
export type PortableTools = Tools<undefined>;
|
|
299
|
+
/** OpenAI SDK 工具声明及执行入口。 */
|
|
300
|
+
export type OpenAISdkTools = Tools<"openai-sdk">;
|
|
301
|
+
/** 可交给 OpenAI Agents SDK 的工具集。 */
|
|
302
|
+
export type OpenAIAgentsTools = Tools<"openai-agents-sdk">;
|
|
303
|
+
/** Native Claude MCP tools, with direct execution and bundle registration. */
|
|
304
|
+
export interface ClaudeAgentTools extends Tools<"claude-agent-sdk"> {
|
|
305
|
+
toMcpConfig(name?: string, options?: ClaudeMcpConfigOptions): ClaudeMcpConfig;
|
|
306
|
+
}
|
|
307
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,138 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@byteplus-iga-pages/agent",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "1.0.4",
|
|
4
|
+
"description": "Server-only Agent SDK for BytePlus IGA Pages",
|
|
5
|
+
"license": "SEE LICENSE IN LICENSE",
|
|
6
|
+
"sideEffects": false,
|
|
7
|
+
"type": "commonjs",
|
|
8
|
+
"typesVersions": {
|
|
9
|
+
"*": {
|
|
10
|
+
"store": [
|
|
11
|
+
"dist/types/store/index.d.ts"
|
|
12
|
+
],
|
|
13
|
+
"store/host": [
|
|
14
|
+
"dist/types/store/host.d.ts"
|
|
15
|
+
],
|
|
16
|
+
"store/openai": [
|
|
17
|
+
"dist/types/store/openai.d.ts"
|
|
18
|
+
],
|
|
19
|
+
"store/langgraph": [
|
|
20
|
+
"dist/types/store/langgraph.d.ts"
|
|
21
|
+
],
|
|
22
|
+
"store/claude": [
|
|
23
|
+
"dist/types/store/claude.d.ts"
|
|
24
|
+
],
|
|
25
|
+
"sandbox": [
|
|
26
|
+
"dist/types/sandbox/index.d.ts"
|
|
27
|
+
],
|
|
28
|
+
"sandbox/host": [
|
|
29
|
+
"dist/types/sandbox/host.d.ts"
|
|
30
|
+
],
|
|
31
|
+
"tools": [
|
|
32
|
+
"dist/types/tools/index.d.ts"
|
|
33
|
+
],
|
|
34
|
+
"tools/openai": [
|
|
35
|
+
"dist/types/tools/openai.d.ts"
|
|
36
|
+
],
|
|
37
|
+
"tools/openai-agents": [
|
|
38
|
+
"dist/types/tools/openai-agents.d.ts"
|
|
39
|
+
],
|
|
40
|
+
"tools/claude": [
|
|
41
|
+
"dist/types/tools/claude.d.ts"
|
|
42
|
+
],
|
|
43
|
+
"tools/langchain": [
|
|
44
|
+
"dist/types/tools/langchain.d.ts"
|
|
45
|
+
]
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"exports": {
|
|
49
|
+
"./store": {
|
|
50
|
+
"types": "./dist/types/store/index.d.ts",
|
|
51
|
+
"import": "./dist/esm/store/index.js",
|
|
52
|
+
"require": "./dist/cjs/store/index.js"
|
|
53
|
+
},
|
|
54
|
+
"./store/host": {
|
|
55
|
+
"types": "./dist/types/store/host.d.ts",
|
|
56
|
+
"import": "./dist/esm/store/host.js",
|
|
57
|
+
"require": "./dist/cjs/store/host.js"
|
|
58
|
+
},
|
|
59
|
+
"./store/openai": {
|
|
60
|
+
"types": "./dist/types/store/openai.d.ts",
|
|
61
|
+
"import": "./dist/esm/store/openai.js",
|
|
62
|
+
"require": "./dist/cjs/store/openai.js"
|
|
63
|
+
},
|
|
64
|
+
"./store/langgraph": {
|
|
65
|
+
"types": "./dist/types/store/langgraph.d.ts",
|
|
66
|
+
"import": "./dist/esm/store/langgraph.js",
|
|
67
|
+
"require": "./dist/cjs/store/langgraph.js"
|
|
68
|
+
},
|
|
69
|
+
"./store/claude": {
|
|
70
|
+
"types": "./dist/types/store/claude.d.ts",
|
|
71
|
+
"import": "./dist/esm/store/claude.js",
|
|
72
|
+
"require": "./dist/cjs/store/claude.js"
|
|
73
|
+
},
|
|
74
|
+
"./sandbox": {
|
|
75
|
+
"types": "./dist/types/sandbox/index.d.ts",
|
|
76
|
+
"import": "./dist/esm/sandbox/index.js",
|
|
77
|
+
"require": "./dist/cjs/sandbox/index.js"
|
|
78
|
+
},
|
|
79
|
+
"./sandbox/host": {
|
|
80
|
+
"types": "./dist/types/sandbox/host.d.ts",
|
|
81
|
+
"import": "./dist/esm/sandbox/host.js",
|
|
82
|
+
"require": "./dist/cjs/sandbox/host.js"
|
|
83
|
+
},
|
|
84
|
+
"./tools": {
|
|
85
|
+
"types": "./dist/types/tools/index.d.ts",
|
|
86
|
+
"import": "./dist/esm/tools/index.js",
|
|
87
|
+
"require": "./dist/cjs/tools/index.js"
|
|
88
|
+
},
|
|
89
|
+
"./tools/openai": {
|
|
90
|
+
"types": "./dist/types/tools/openai.d.ts",
|
|
91
|
+
"import": "./dist/esm/tools/openai.js",
|
|
92
|
+
"require": "./dist/cjs/tools/openai.js"
|
|
93
|
+
},
|
|
94
|
+
"./tools/openai-agents": {
|
|
95
|
+
"types": "./dist/types/tools/openai-agents.d.ts",
|
|
96
|
+
"import": "./dist/esm/tools/openai-agents.js",
|
|
97
|
+
"require": "./dist/cjs/tools/openai-agents.js"
|
|
98
|
+
},
|
|
99
|
+
"./tools/claude": {
|
|
100
|
+
"types": "./dist/types/tools/claude.d.ts",
|
|
101
|
+
"import": "./dist/esm/tools/claude.js",
|
|
102
|
+
"require": "./dist/cjs/tools/claude.js"
|
|
103
|
+
},
|
|
104
|
+
"./tools/langchain": {
|
|
105
|
+
"types": "./dist/types/tools/langchain.d.ts",
|
|
106
|
+
"import": "./dist/esm/tools/langchain.js",
|
|
107
|
+
"require": "./dist/cjs/tools/langchain.js"
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
"files": [
|
|
111
|
+
"dist"
|
|
112
|
+
],
|
|
113
|
+
"engines": {
|
|
114
|
+
"node": ">=20"
|
|
115
|
+
},
|
|
116
|
+
"dependencies": {
|
|
117
|
+
"@agent-infra/sandbox": "^1.0.17",
|
|
118
|
+
"@supabase/supabase-js": "2.106.2",
|
|
119
|
+
"axios": "^1.20.0",
|
|
120
|
+
"zod": "^3.25.76"
|
|
121
|
+
},
|
|
122
|
+
"peerDependencies": {
|
|
123
|
+
"@anthropic-ai/claude-agent-sdk": ">=0.2.113 <0.4",
|
|
124
|
+
"@langchain/core": ">=0.3 <2",
|
|
125
|
+
"@langchain/langgraph-checkpoint": "^1.1.4"
|
|
126
|
+
},
|
|
127
|
+
"peerDependenciesMeta": {
|
|
128
|
+
"@anthropic-ai/claude-agent-sdk": {
|
|
129
|
+
"optional": true
|
|
130
|
+
},
|
|
131
|
+
"@langchain/core": {
|
|
132
|
+
"optional": true
|
|
133
|
+
},
|
|
134
|
+
"@langchain/langgraph-checkpoint": {
|
|
135
|
+
"optional": true
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}
|