agentkernel 0.19.1 → 0.20.0
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 +1 -1
- package/dist/browser.d.cts +67 -0
- package/dist/browser.d.ts +67 -0
- package/dist/client.d.cts +169 -0
- package/dist/client.d.ts +169 -0
- package/dist/config.d.cts +7 -0
- package/dist/config.d.ts +7 -0
- package/dist/errors.d.cts +34 -0
- package/dist/errors.d.ts +34 -0
- package/dist/index.cjs +338 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -520
- package/dist/index.d.ts +5 -520
- package/dist/index.js +337 -1
- package/dist/index.js.map +1 -1
- package/dist/sandbox.d.cts +39 -0
- package/dist/sandbox.d.ts +39 -0
- package/dist/sse.d.cts +8 -0
- package/dist/sse.d.ts +8 -0
- package/dist/types.d.cts +213 -0
- package/dist/types.d.ts +213 -0
- package/package.json +11 -9
package/dist/types.d.cts
ADDED
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
/** Security profile for sandbox execution. */
|
|
2
|
+
export type SecurityProfile = "permissive" | "moderate" | "restrictive";
|
|
3
|
+
/** Sandbox status. */
|
|
4
|
+
export type SandboxStatus = "running" | "stopped";
|
|
5
|
+
/** SSE event types emitted by /run/stream. */
|
|
6
|
+
export type StreamEventType = "started" | "progress" | "output" | "done" | "error";
|
|
7
|
+
/** Configuration options for the AgentKernel client. */
|
|
8
|
+
export interface AgentKernelOptions {
|
|
9
|
+
/** Base URL of the agentkernel HTTP API. Default: AGENTKERNEL_BASE_URL or http://localhost:18888 */
|
|
10
|
+
baseUrl?: string;
|
|
11
|
+
/** API key for Bearer authentication. Default: AGENTKERNEL_API_KEY env var */
|
|
12
|
+
apiKey?: string;
|
|
13
|
+
/** Request timeout in milliseconds. Default: 30000 */
|
|
14
|
+
timeout?: number;
|
|
15
|
+
}
|
|
16
|
+
/** Options for the run command. */
|
|
17
|
+
export interface RunOptions {
|
|
18
|
+
/** Docker image to use (auto-detected if not specified). */
|
|
19
|
+
image?: string;
|
|
20
|
+
/** Security profile. Default: moderate */
|
|
21
|
+
profile?: SecurityProfile;
|
|
22
|
+
/** Use container pool for faster execution. Default: true */
|
|
23
|
+
fast?: boolean;
|
|
24
|
+
}
|
|
25
|
+
/** Options for creating a sandbox. */
|
|
26
|
+
export interface CreateSandboxOptions {
|
|
27
|
+
/** Docker image to use. Default: alpine:3.24 */
|
|
28
|
+
image?: string;
|
|
29
|
+
vcpus?: number;
|
|
30
|
+
memory_mb?: number;
|
|
31
|
+
profile?: SecurityProfile;
|
|
32
|
+
/** Git repository URL to clone into the sandbox. */
|
|
33
|
+
source_url?: string;
|
|
34
|
+
/** Git ref to checkout after cloning. */
|
|
35
|
+
source_ref?: string;
|
|
36
|
+
/** Volume mounts (slug:/path or slug:/path:ro). Create volumes via CLI first. */
|
|
37
|
+
volumes?: string[];
|
|
38
|
+
/**
|
|
39
|
+
* Secret bindings for proxy-based injection (Gondolin pattern).
|
|
40
|
+
* Secrets are injected as HTTP headers by the host proxy — they never enter the VM.
|
|
41
|
+
* Formats: "KEY=value:host", "KEY:host", "KEY:host:header"
|
|
42
|
+
*/
|
|
43
|
+
secrets?: string[];
|
|
44
|
+
/**
|
|
45
|
+
* Secret keys to inject as files at /run/agentkernel/secrets/KEY.
|
|
46
|
+
* Values are resolved from the secret vault.
|
|
47
|
+
*/
|
|
48
|
+
secret_files?: string[];
|
|
49
|
+
}
|
|
50
|
+
/** Options for executing a command in a sandbox. */
|
|
51
|
+
export interface ExecOptions {
|
|
52
|
+
/** Environment variables (KEY=VALUE). */
|
|
53
|
+
env?: string[];
|
|
54
|
+
/** Working directory inside the container. */
|
|
55
|
+
workdir?: string;
|
|
56
|
+
/** Run as root. */
|
|
57
|
+
sudo?: boolean;
|
|
58
|
+
}
|
|
59
|
+
/** Output from a command execution. */
|
|
60
|
+
export interface RunOutput {
|
|
61
|
+
output: string;
|
|
62
|
+
}
|
|
63
|
+
/** Information about a sandbox. */
|
|
64
|
+
export interface SandboxInfo {
|
|
65
|
+
name: string;
|
|
66
|
+
uuid?: string;
|
|
67
|
+
status: SandboxStatus;
|
|
68
|
+
backend: string;
|
|
69
|
+
image?: string;
|
|
70
|
+
vcpus?: number;
|
|
71
|
+
memory_mb?: number;
|
|
72
|
+
created_at?: string;
|
|
73
|
+
}
|
|
74
|
+
/** SSE stream event. */
|
|
75
|
+
export interface StreamEvent {
|
|
76
|
+
type: StreamEventType;
|
|
77
|
+
data: Record<string, unknown>;
|
|
78
|
+
}
|
|
79
|
+
/** Options for writing a file. */
|
|
80
|
+
export interface FileWriteOptions {
|
|
81
|
+
/** Content encoding: "utf8" (default) or "base64". */
|
|
82
|
+
encoding?: "utf8" | "base64";
|
|
83
|
+
}
|
|
84
|
+
/** Response from reading a file. */
|
|
85
|
+
export interface FileReadResponse {
|
|
86
|
+
content: string;
|
|
87
|
+
encoding: "utf8" | "base64";
|
|
88
|
+
size: number;
|
|
89
|
+
}
|
|
90
|
+
/** A command for batch execution. */
|
|
91
|
+
export interface BatchCommand {
|
|
92
|
+
command: string[];
|
|
93
|
+
}
|
|
94
|
+
/** Result of a single batch command. */
|
|
95
|
+
export interface BatchResult {
|
|
96
|
+
output: string | null;
|
|
97
|
+
error: string | null;
|
|
98
|
+
}
|
|
99
|
+
/** Response from batch execution. */
|
|
100
|
+
export interface BatchRunResponse {
|
|
101
|
+
results: BatchResult[];
|
|
102
|
+
}
|
|
103
|
+
/** Result of a batch file write. */
|
|
104
|
+
export interface BatchFileWriteResponse {
|
|
105
|
+
written: number;
|
|
106
|
+
}
|
|
107
|
+
/** Opaque orchestration payload/response body. */
|
|
108
|
+
export type Orchestration = Record<string, unknown>;
|
|
109
|
+
export type OrchestrationDefinition = Record<string, unknown>;
|
|
110
|
+
/** Opaque object payload/response body. */
|
|
111
|
+
export type DurableObject = Record<string, unknown>;
|
|
112
|
+
/** Opaque schedule payload/response body. */
|
|
113
|
+
export type Schedule = Record<string, unknown>;
|
|
114
|
+
/** Opaque durable store payload/response body. */
|
|
115
|
+
export type DurableStore = Record<string, unknown>;
|
|
116
|
+
export type CreateStoreRequest = Record<string, unknown>;
|
|
117
|
+
export type DurableStoreQueryResponse = Record<string, unknown>;
|
|
118
|
+
export type DurableStoreExecuteResponse = Record<string, unknown>;
|
|
119
|
+
export type DurableStoreCommandResponse = Record<string, unknown>;
|
|
120
|
+
/** Status of a detached command. */
|
|
121
|
+
export type DetachedStatus = "running" | "completed" | "failed";
|
|
122
|
+
/** A detached (background) command running in a sandbox. */
|
|
123
|
+
export interface DetachedCommand {
|
|
124
|
+
id: string;
|
|
125
|
+
sandbox: string;
|
|
126
|
+
command: string[];
|
|
127
|
+
pid: number;
|
|
128
|
+
status: DetachedStatus;
|
|
129
|
+
exit_code: number | null;
|
|
130
|
+
started_at: string;
|
|
131
|
+
}
|
|
132
|
+
/** Response from detached command logs. */
|
|
133
|
+
export interface DetachedLogsResponse {
|
|
134
|
+
stdout?: string;
|
|
135
|
+
stderr?: string;
|
|
136
|
+
}
|
|
137
|
+
/** Opaque payload used when creating orchestrations. */
|
|
138
|
+
export type CreateOrchestrationRequest = Record<string, unknown>;
|
|
139
|
+
/** Opaque payload used when creating objects. */
|
|
140
|
+
export type CreateObjectRequest = Record<string, unknown>;
|
|
141
|
+
/** Opaque payload used when creating schedules. */
|
|
142
|
+
export type CreateScheduleRequest = Record<string, unknown>;
|
|
143
|
+
/** API response wrapper. */
|
|
144
|
+
export interface ApiResponse<T> {
|
|
145
|
+
success: boolean;
|
|
146
|
+
data?: T;
|
|
147
|
+
error?: string;
|
|
148
|
+
}
|
|
149
|
+
/** Response from extending a sandbox's TTL. */
|
|
150
|
+
export interface ExtendTtlResponse {
|
|
151
|
+
expires_at?: string;
|
|
152
|
+
}
|
|
153
|
+
/** Options for extending TTL. */
|
|
154
|
+
export interface ExtendTtlOptions {
|
|
155
|
+
/** Duration string like "1h", "30m", "2d". */
|
|
156
|
+
by: string;
|
|
157
|
+
}
|
|
158
|
+
/** Metadata for a sandbox snapshot. */
|
|
159
|
+
export interface SnapshotMeta {
|
|
160
|
+
name: string;
|
|
161
|
+
sandbox: string;
|
|
162
|
+
image_tag: string;
|
|
163
|
+
backend: string;
|
|
164
|
+
base_image?: string;
|
|
165
|
+
vcpus?: number;
|
|
166
|
+
memory_mb?: number;
|
|
167
|
+
created_at: string;
|
|
168
|
+
}
|
|
169
|
+
/** Options for taking a snapshot. */
|
|
170
|
+
export interface TakeSnapshotOptions {
|
|
171
|
+
/** Name of the sandbox to snapshot. */
|
|
172
|
+
sandbox: string;
|
|
173
|
+
/** Optional snapshot name (auto-generated if not provided). */
|
|
174
|
+
name?: string;
|
|
175
|
+
}
|
|
176
|
+
/** A link extracted from a web page. */
|
|
177
|
+
export interface PageLink {
|
|
178
|
+
text: string;
|
|
179
|
+
href: string;
|
|
180
|
+
}
|
|
181
|
+
/** Result of navigating to a web page. */
|
|
182
|
+
export interface PageResult {
|
|
183
|
+
/** Page title. */
|
|
184
|
+
title: string;
|
|
185
|
+
/** Final URL after redirects. */
|
|
186
|
+
url: string;
|
|
187
|
+
/** Page body text (truncated to ~8KB). */
|
|
188
|
+
text: string;
|
|
189
|
+
/** First 50 links on the page. */
|
|
190
|
+
links: PageLink[];
|
|
191
|
+
}
|
|
192
|
+
/** ARIA accessibility tree snapshot of a web page (v2). */
|
|
193
|
+
export interface AriaSnapshot {
|
|
194
|
+
/** ARIA tree as YAML. */
|
|
195
|
+
snapshot: string;
|
|
196
|
+
/** Current page URL. */
|
|
197
|
+
url: string;
|
|
198
|
+
/** Page title. */
|
|
199
|
+
title: string;
|
|
200
|
+
/** Available ref IDs (e.g. ["e1", "e2", ...]). */
|
|
201
|
+
refs: string[];
|
|
202
|
+
}
|
|
203
|
+
/** A browser interaction event for debugging and context recovery. */
|
|
204
|
+
export interface BrowserEvent {
|
|
205
|
+
/** Monotonic sequence number. */
|
|
206
|
+
seq: number;
|
|
207
|
+
/** Event type (e.g. "page.navigated", "page.clicked"). */
|
|
208
|
+
type: string;
|
|
209
|
+
/** Page name. */
|
|
210
|
+
page: string;
|
|
211
|
+
/** ISO 8601 timestamp. */
|
|
212
|
+
ts: string;
|
|
213
|
+
}
|
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
/** Security profile for sandbox execution. */
|
|
2
|
+
export type SecurityProfile = "permissive" | "moderate" | "restrictive";
|
|
3
|
+
/** Sandbox status. */
|
|
4
|
+
export type SandboxStatus = "running" | "stopped";
|
|
5
|
+
/** SSE event types emitted by /run/stream. */
|
|
6
|
+
export type StreamEventType = "started" | "progress" | "output" | "done" | "error";
|
|
7
|
+
/** Configuration options for the AgentKernel client. */
|
|
8
|
+
export interface AgentKernelOptions {
|
|
9
|
+
/** Base URL of the agentkernel HTTP API. Default: AGENTKERNEL_BASE_URL or http://localhost:18888 */
|
|
10
|
+
baseUrl?: string;
|
|
11
|
+
/** API key for Bearer authentication. Default: AGENTKERNEL_API_KEY env var */
|
|
12
|
+
apiKey?: string;
|
|
13
|
+
/** Request timeout in milliseconds. Default: 30000 */
|
|
14
|
+
timeout?: number;
|
|
15
|
+
}
|
|
16
|
+
/** Options for the run command. */
|
|
17
|
+
export interface RunOptions {
|
|
18
|
+
/** Docker image to use (auto-detected if not specified). */
|
|
19
|
+
image?: string;
|
|
20
|
+
/** Security profile. Default: moderate */
|
|
21
|
+
profile?: SecurityProfile;
|
|
22
|
+
/** Use container pool for faster execution. Default: true */
|
|
23
|
+
fast?: boolean;
|
|
24
|
+
}
|
|
25
|
+
/** Options for creating a sandbox. */
|
|
26
|
+
export interface CreateSandboxOptions {
|
|
27
|
+
/** Docker image to use. Default: alpine:3.24 */
|
|
28
|
+
image?: string;
|
|
29
|
+
vcpus?: number;
|
|
30
|
+
memory_mb?: number;
|
|
31
|
+
profile?: SecurityProfile;
|
|
32
|
+
/** Git repository URL to clone into the sandbox. */
|
|
33
|
+
source_url?: string;
|
|
34
|
+
/** Git ref to checkout after cloning. */
|
|
35
|
+
source_ref?: string;
|
|
36
|
+
/** Volume mounts (slug:/path or slug:/path:ro). Create volumes via CLI first. */
|
|
37
|
+
volumes?: string[];
|
|
38
|
+
/**
|
|
39
|
+
* Secret bindings for proxy-based injection (Gondolin pattern).
|
|
40
|
+
* Secrets are injected as HTTP headers by the host proxy — they never enter the VM.
|
|
41
|
+
* Formats: "KEY=value:host", "KEY:host", "KEY:host:header"
|
|
42
|
+
*/
|
|
43
|
+
secrets?: string[];
|
|
44
|
+
/**
|
|
45
|
+
* Secret keys to inject as files at /run/agentkernel/secrets/KEY.
|
|
46
|
+
* Values are resolved from the secret vault.
|
|
47
|
+
*/
|
|
48
|
+
secret_files?: string[];
|
|
49
|
+
}
|
|
50
|
+
/** Options for executing a command in a sandbox. */
|
|
51
|
+
export interface ExecOptions {
|
|
52
|
+
/** Environment variables (KEY=VALUE). */
|
|
53
|
+
env?: string[];
|
|
54
|
+
/** Working directory inside the container. */
|
|
55
|
+
workdir?: string;
|
|
56
|
+
/** Run as root. */
|
|
57
|
+
sudo?: boolean;
|
|
58
|
+
}
|
|
59
|
+
/** Output from a command execution. */
|
|
60
|
+
export interface RunOutput {
|
|
61
|
+
output: string;
|
|
62
|
+
}
|
|
63
|
+
/** Information about a sandbox. */
|
|
64
|
+
export interface SandboxInfo {
|
|
65
|
+
name: string;
|
|
66
|
+
uuid?: string;
|
|
67
|
+
status: SandboxStatus;
|
|
68
|
+
backend: string;
|
|
69
|
+
image?: string;
|
|
70
|
+
vcpus?: number;
|
|
71
|
+
memory_mb?: number;
|
|
72
|
+
created_at?: string;
|
|
73
|
+
}
|
|
74
|
+
/** SSE stream event. */
|
|
75
|
+
export interface StreamEvent {
|
|
76
|
+
type: StreamEventType;
|
|
77
|
+
data: Record<string, unknown>;
|
|
78
|
+
}
|
|
79
|
+
/** Options for writing a file. */
|
|
80
|
+
export interface FileWriteOptions {
|
|
81
|
+
/** Content encoding: "utf8" (default) or "base64". */
|
|
82
|
+
encoding?: "utf8" | "base64";
|
|
83
|
+
}
|
|
84
|
+
/** Response from reading a file. */
|
|
85
|
+
export interface FileReadResponse {
|
|
86
|
+
content: string;
|
|
87
|
+
encoding: "utf8" | "base64";
|
|
88
|
+
size: number;
|
|
89
|
+
}
|
|
90
|
+
/** A command for batch execution. */
|
|
91
|
+
export interface BatchCommand {
|
|
92
|
+
command: string[];
|
|
93
|
+
}
|
|
94
|
+
/** Result of a single batch command. */
|
|
95
|
+
export interface BatchResult {
|
|
96
|
+
output: string | null;
|
|
97
|
+
error: string | null;
|
|
98
|
+
}
|
|
99
|
+
/** Response from batch execution. */
|
|
100
|
+
export interface BatchRunResponse {
|
|
101
|
+
results: BatchResult[];
|
|
102
|
+
}
|
|
103
|
+
/** Result of a batch file write. */
|
|
104
|
+
export interface BatchFileWriteResponse {
|
|
105
|
+
written: number;
|
|
106
|
+
}
|
|
107
|
+
/** Opaque orchestration payload/response body. */
|
|
108
|
+
export type Orchestration = Record<string, unknown>;
|
|
109
|
+
export type OrchestrationDefinition = Record<string, unknown>;
|
|
110
|
+
/** Opaque object payload/response body. */
|
|
111
|
+
export type DurableObject = Record<string, unknown>;
|
|
112
|
+
/** Opaque schedule payload/response body. */
|
|
113
|
+
export type Schedule = Record<string, unknown>;
|
|
114
|
+
/** Opaque durable store payload/response body. */
|
|
115
|
+
export type DurableStore = Record<string, unknown>;
|
|
116
|
+
export type CreateStoreRequest = Record<string, unknown>;
|
|
117
|
+
export type DurableStoreQueryResponse = Record<string, unknown>;
|
|
118
|
+
export type DurableStoreExecuteResponse = Record<string, unknown>;
|
|
119
|
+
export type DurableStoreCommandResponse = Record<string, unknown>;
|
|
120
|
+
/** Status of a detached command. */
|
|
121
|
+
export type DetachedStatus = "running" | "completed" | "failed";
|
|
122
|
+
/** A detached (background) command running in a sandbox. */
|
|
123
|
+
export interface DetachedCommand {
|
|
124
|
+
id: string;
|
|
125
|
+
sandbox: string;
|
|
126
|
+
command: string[];
|
|
127
|
+
pid: number;
|
|
128
|
+
status: DetachedStatus;
|
|
129
|
+
exit_code: number | null;
|
|
130
|
+
started_at: string;
|
|
131
|
+
}
|
|
132
|
+
/** Response from detached command logs. */
|
|
133
|
+
export interface DetachedLogsResponse {
|
|
134
|
+
stdout?: string;
|
|
135
|
+
stderr?: string;
|
|
136
|
+
}
|
|
137
|
+
/** Opaque payload used when creating orchestrations. */
|
|
138
|
+
export type CreateOrchestrationRequest = Record<string, unknown>;
|
|
139
|
+
/** Opaque payload used when creating objects. */
|
|
140
|
+
export type CreateObjectRequest = Record<string, unknown>;
|
|
141
|
+
/** Opaque payload used when creating schedules. */
|
|
142
|
+
export type CreateScheduleRequest = Record<string, unknown>;
|
|
143
|
+
/** API response wrapper. */
|
|
144
|
+
export interface ApiResponse<T> {
|
|
145
|
+
success: boolean;
|
|
146
|
+
data?: T;
|
|
147
|
+
error?: string;
|
|
148
|
+
}
|
|
149
|
+
/** Response from extending a sandbox's TTL. */
|
|
150
|
+
export interface ExtendTtlResponse {
|
|
151
|
+
expires_at?: string;
|
|
152
|
+
}
|
|
153
|
+
/** Options for extending TTL. */
|
|
154
|
+
export interface ExtendTtlOptions {
|
|
155
|
+
/** Duration string like "1h", "30m", "2d". */
|
|
156
|
+
by: string;
|
|
157
|
+
}
|
|
158
|
+
/** Metadata for a sandbox snapshot. */
|
|
159
|
+
export interface SnapshotMeta {
|
|
160
|
+
name: string;
|
|
161
|
+
sandbox: string;
|
|
162
|
+
image_tag: string;
|
|
163
|
+
backend: string;
|
|
164
|
+
base_image?: string;
|
|
165
|
+
vcpus?: number;
|
|
166
|
+
memory_mb?: number;
|
|
167
|
+
created_at: string;
|
|
168
|
+
}
|
|
169
|
+
/** Options for taking a snapshot. */
|
|
170
|
+
export interface TakeSnapshotOptions {
|
|
171
|
+
/** Name of the sandbox to snapshot. */
|
|
172
|
+
sandbox: string;
|
|
173
|
+
/** Optional snapshot name (auto-generated if not provided). */
|
|
174
|
+
name?: string;
|
|
175
|
+
}
|
|
176
|
+
/** A link extracted from a web page. */
|
|
177
|
+
export interface PageLink {
|
|
178
|
+
text: string;
|
|
179
|
+
href: string;
|
|
180
|
+
}
|
|
181
|
+
/** Result of navigating to a web page. */
|
|
182
|
+
export interface PageResult {
|
|
183
|
+
/** Page title. */
|
|
184
|
+
title: string;
|
|
185
|
+
/** Final URL after redirects. */
|
|
186
|
+
url: string;
|
|
187
|
+
/** Page body text (truncated to ~8KB). */
|
|
188
|
+
text: string;
|
|
189
|
+
/** First 50 links on the page. */
|
|
190
|
+
links: PageLink[];
|
|
191
|
+
}
|
|
192
|
+
/** ARIA accessibility tree snapshot of a web page (v2). */
|
|
193
|
+
export interface AriaSnapshot {
|
|
194
|
+
/** ARIA tree as YAML. */
|
|
195
|
+
snapshot: string;
|
|
196
|
+
/** Current page URL. */
|
|
197
|
+
url: string;
|
|
198
|
+
/** Page title. */
|
|
199
|
+
title: string;
|
|
200
|
+
/** Available ref IDs (e.g. ["e1", "e2", ...]). */
|
|
201
|
+
refs: string[];
|
|
202
|
+
}
|
|
203
|
+
/** A browser interaction event for debugging and context recovery. */
|
|
204
|
+
export interface BrowserEvent {
|
|
205
|
+
/** Monotonic sequence number. */
|
|
206
|
+
seq: number;
|
|
207
|
+
/** Event type (e.g. "page.navigated", "page.clicked"). */
|
|
208
|
+
type: string;
|
|
209
|
+
/** Page name. */
|
|
210
|
+
page: string;
|
|
211
|
+
/** ISO 8601 timestamp. */
|
|
212
|
+
ts: string;
|
|
213
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agentkernel",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.20.0",
|
|
4
4
|
"description": "Node.js SDK for agentkernel — run AI coding agents in secure, isolated microVMs",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -23,9 +23,11 @@
|
|
|
23
23
|
"README.md"
|
|
24
24
|
],
|
|
25
25
|
"scripts": {
|
|
26
|
-
"build": "tsup",
|
|
26
|
+
"build": "tsup && npm run build:types",
|
|
27
|
+
"build:types": "tsc -p tsconfig.build.json && node scripts/finalize-declarations.mjs",
|
|
27
28
|
"test": "vitest run",
|
|
28
29
|
"test:watch": "vitest",
|
|
30
|
+
"test:package": "node tests/package-smoke.mjs && tsc -p tests/tsconfig.package.json && npm pack --dry-run",
|
|
29
31
|
"typecheck": "tsc --noEmit",
|
|
30
32
|
"lint": "tsc --noEmit",
|
|
31
33
|
"prepublishOnly": "npm run build"
|
|
@@ -48,16 +50,16 @@
|
|
|
48
50
|
},
|
|
49
51
|
"homepage": "https://thrashr888.github.io/agentkernel/",
|
|
50
52
|
"engines": {
|
|
51
|
-
"node": ">=
|
|
53
|
+
"node": ">=22.13"
|
|
52
54
|
},
|
|
53
55
|
"dependencies": {
|
|
54
|
-
"eventsource-parser": "^
|
|
56
|
+
"eventsource-parser": "^4.1.0"
|
|
55
57
|
},
|
|
56
58
|
"devDependencies": {
|
|
57
|
-
"@types/node": "^
|
|
58
|
-
"msw": "^2.
|
|
59
|
-
"tsup": "^8.
|
|
60
|
-
"typescript": "^
|
|
61
|
-
"vitest": "^
|
|
59
|
+
"@types/node": "^24.13.3",
|
|
60
|
+
"msw": "^2.15.0",
|
|
61
|
+
"tsup": "^8.5.1",
|
|
62
|
+
"typescript": "^7.0.2",
|
|
63
|
+
"vitest": "^4.1.11"
|
|
62
64
|
}
|
|
63
65
|
}
|