eve 0.17.1 → 0.18.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/CHANGELOG.md +27 -0
- package/dist/src/channel/types.d.ts +11 -0
- package/dist/src/cli/dev/tui/status-line.d.ts +1 -1
- package/dist/src/compiled/.vendor-stamp.json +2 -2
- package/dist/src/compiled/@chat-adapter/slack/api.d.ts +132 -0
- package/dist/src/compiled/@chat-adapter/slack/api.js +1 -0
- package/dist/src/compiled/@chat-adapter/slack/blocks.js +1 -1
- package/dist/src/compiled/@chat-adapter/slack/format.d.ts +33 -0
- package/dist/src/compiled/@chat-adapter/slack/format.js +1 -0
- package/dist/src/compiled/@chat-adapter/slack/index.js +28 -28
- package/dist/src/compiled/@chat-adapter/slack/types-AntsVifS.d.ts +187 -0
- package/dist/src/compiled/@chat-adapter/slack/webhook.d.ts +10 -0
- package/dist/src/compiled/@chat-adapter/slack/webhook.js +1 -0
- package/dist/src/compiled/@vercel/sandbox/api-client/api-client.d.ts +19 -16
- package/dist/src/compiled/@vercel/sandbox/api-client/index.d.ts +1 -1
- package/dist/src/compiled/@vercel/sandbox/api-client/validators.d.ts +37 -23
- package/dist/src/compiled/@vercel/sandbox/command.d.ts +2 -8
- package/dist/src/compiled/@vercel/sandbox/index.js +5 -5
- package/dist/src/compiled/@vercel/sandbox/sandbox.d.ts +43 -16
- package/dist/src/compiled/@vercel/sandbox/snapshot.d.ts +5 -5
- package/dist/src/compiled/_chunks/node/{auth-DF_ft5ea.js → auth-CWHn3Yve.js} +1 -1
- package/dist/src/compiled/_chunks/node/chunk-AYN7QRWH-B__hKQV7.js +1 -0
- package/dist/src/compiled/_chunks/node/chunk-HFKBBKCJ-CWaVIQuL.js +1 -0
- package/dist/src/compiled/_chunks/node/{version-TugPKZua.js → version-DD-FX9rK.js} +1 -1
- package/dist/src/compiler/manifest.d.ts +2 -2
- package/dist/src/compiler/manifest.js +1 -1
- package/dist/src/compiler/normalize-agent-config.js +1 -1
- package/dist/src/context/keys.d.ts +2 -0
- package/dist/src/context/keys.js +1 -1
- package/dist/src/evals/assertions/run.js +2 -2
- package/dist/src/execution/create-session-step.d.ts +2 -0
- package/dist/src/execution/create-session-step.js +1 -1
- package/dist/src/execution/dispatch-runtime-actions-step.js +1 -1
- package/dist/src/execution/durable-session-store.d.ts +3 -0
- package/dist/src/execution/runtime-context.js +1 -1
- package/dist/src/execution/sandbox/bindings/vercel-create-sdk.js +1 -1
- package/dist/src/execution/sandbox/bindings/vercel.js +1 -1
- package/dist/src/execution/session.d.ts +6 -1
- package/dist/src/execution/session.js +3 -3
- package/dist/src/execution/subagent-tool.js +1 -1
- package/dist/src/execution/workflow-entry.js +1 -1
- package/dist/src/harness/advertised-tools.d.ts +33 -0
- package/dist/src/harness/advertised-tools.js +1 -0
- package/dist/src/harness/subagent-depth.d.ts +17 -0
- package/dist/src/harness/subagent-depth.js +1 -0
- package/dist/src/harness/tool-loop.js +1 -1
- package/dist/src/harness/turn-tag-state.d.ts +30 -22
- package/dist/src/harness/turn-tag-state.js +1 -1
- package/dist/src/harness/types.d.ts +28 -0
- package/dist/src/harness/workflow-continuation-security.d.ts +1 -0
- package/dist/src/harness/workflow-continuation-security.js +1 -1
- package/dist/src/internal/application/package.js +1 -1
- package/dist/src/internal/authored-definition/core.js +1 -1
- package/dist/src/internal/nitro/dev-runtime-source-snapshot-copy.js +1 -1
- package/dist/src/internal/nitro/host/configure-nitro-routes.js +2 -2
- package/dist/src/internal/nitro/routes/channel-dispatch.js +1 -1
- package/dist/src/internal/nitro/routes/channel-route-context.d.ts +5 -0
- package/dist/src/internal/nitro/routes/channel-route-context.js +1 -0
- package/dist/src/internal/nitro/routes/info.d.ts +2 -6
- package/dist/src/internal/nitro/routes/info.js +1 -1
- package/dist/src/protocol/routes.d.ts +2 -4
- package/dist/src/public/channels/auth.d.ts +2 -2
- package/dist/src/public/channels/eve.d.ts +5 -4
- package/dist/src/public/channels/eve.js +1 -1
- package/dist/src/public/channels/slack/api.d.ts +3 -6
- package/dist/src/public/channels/slack/api.js +1 -1
- package/dist/src/public/channels/slack/inbound.d.ts +11 -9
- package/dist/src/public/channels/slack/inbound.js +1 -1
- package/dist/src/public/channels/slack/interactions.d.ts +2 -1
- package/dist/src/public/channels/slack/interactions.js +1 -1
- package/dist/src/public/channels/slack/mrkdwn.d.ts +3 -35
- package/dist/src/public/channels/slack/mrkdwn.js +1 -1
- package/dist/src/public/channels/slack/slackChannel.js +1 -1
- package/dist/src/public/channels/slack/verify.d.ts +4 -42
- package/dist/src/public/channels/slack/verify.js +1 -1
- package/dist/src/public/definitions/agent.d.ts +1 -1
- package/dist/src/public/index.d.ts +1 -1
- package/dist/src/public/sandbox/vercel-sandbox.d.ts +4 -1
- package/dist/src/runtime/governance/auth/oidc.js +1 -1
- package/dist/src/runtime/resolve-agent.js +1 -1
- package/dist/src/setup/boxes/link-project.d.ts +7 -3
- package/dist/src/setup/boxes/link-project.js +1 -1
- package/dist/src/setup/boxes/preflight.js +1 -1
- package/dist/src/setup/boxes/select-model.js +1 -1
- package/dist/src/setup/flows/model.js +1 -1
- package/dist/src/setup/onboarding.js +1 -1
- package/dist/src/setup/scaffold/create/project.d.ts +1 -1
- package/dist/src/setup/scaffold/create/project.js +1 -1
- package/dist/src/setup/scaffold/create/web-template.d.ts +3 -0
- package/dist/src/setup/scaffold/create/web-template.js +1 -1
- package/dist/src/setup/vercel-project-framework.d.ts +10 -0
- package/dist/src/setup/vercel-project-framework.js +1 -0
- package/dist/src/setup/vercel-project.d.ts +8 -3
- package/dist/src/setup/vercel-project.js +0 -0
- package/dist/src/shared/agent-definition.d.ts +37 -0
- package/dist/src/shared/default-agent-model.d.ts +1 -1
- package/dist/src/shared/default-agent-model.js +1 -1
- package/docs/agent-config.md +35 -8
- package/docs/channels/eve.mdx +3 -2
- package/docs/concepts/sessions-runs-and-streaming.md +2 -2
- package/docs/getting-started.mdx +5 -5
- package/docs/reference/typescript-api.md +1 -1
- package/docs/sandbox.mdx +1 -1
- package/docs/subagents.mdx +19 -0
- package/package.json +3 -31
- package/dist/src/compiled/_chunks/node/chunk-AYN7QRWH-Csu8sG38.js +0 -1
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
type SlackHeaderValue = readonly string[] | string | null | undefined;
|
|
2
|
+
type SlackHeaders = Headers | Iterable<readonly [string, string]> | Record<string, SlackHeaderValue>;
|
|
3
|
+
type SlackWebhookVerifier = (request: Request, body: string) => Promise<unknown> | unknown;
|
|
4
|
+
interface SlackVerifyOptions {
|
|
5
|
+
maxSkewSeconds?: number;
|
|
6
|
+
now?: () => number;
|
|
7
|
+
signingSecret?: string;
|
|
8
|
+
webhookVerifier?: SlackWebhookVerifier;
|
|
9
|
+
}
|
|
10
|
+
interface SlackParseOptions {
|
|
11
|
+
contentType?: string | null;
|
|
12
|
+
headers?: SlackHeaders;
|
|
13
|
+
}
|
|
14
|
+
interface SlackReadOptions extends SlackParseOptions, SlackVerifyOptions {
|
|
15
|
+
}
|
|
16
|
+
interface SlackRetry {
|
|
17
|
+
num: number;
|
|
18
|
+
reason?: string;
|
|
19
|
+
}
|
|
20
|
+
interface SlackContinuation {
|
|
21
|
+
channelId: string;
|
|
22
|
+
enterpriseId?: string;
|
|
23
|
+
teamId?: string;
|
|
24
|
+
threadTs: string;
|
|
25
|
+
}
|
|
26
|
+
interface SlackUser {
|
|
27
|
+
id: string;
|
|
28
|
+
name?: string;
|
|
29
|
+
teamId?: string;
|
|
30
|
+
username?: string;
|
|
31
|
+
}
|
|
32
|
+
interface SlackFile {
|
|
33
|
+
downloadUrl?: string;
|
|
34
|
+
filetype?: string;
|
|
35
|
+
id: string;
|
|
36
|
+
mimeType?: string;
|
|
37
|
+
name?: string;
|
|
38
|
+
raw: Record<string, unknown>;
|
|
39
|
+
size?: number;
|
|
40
|
+
title?: string;
|
|
41
|
+
type: "audio" | "file" | "image" | "video";
|
|
42
|
+
url?: string;
|
|
43
|
+
}
|
|
44
|
+
type SlackWebhookPayload = SlackAppMentionPayload | SlackBlockActionsPayload | SlackBlockSuggestionPayload | SlackDirectMessagePayload | SlackSlashCommandPayload | SlackUnsupportedPayload | SlackUrlVerificationPayload | SlackViewClosedPayload | SlackViewSubmissionPayload;
|
|
45
|
+
interface SlackUrlVerificationPayload {
|
|
46
|
+
challenge: string;
|
|
47
|
+
kind: "url_verification";
|
|
48
|
+
raw: Record<string, unknown>;
|
|
49
|
+
retry?: SlackRetry;
|
|
50
|
+
}
|
|
51
|
+
interface SlackEventBasePayload {
|
|
52
|
+
apiAppId?: string;
|
|
53
|
+
channelId: string;
|
|
54
|
+
continuation: SlackContinuation;
|
|
55
|
+
enterpriseId?: string;
|
|
56
|
+
eventId?: string;
|
|
57
|
+
eventTime?: number;
|
|
58
|
+
files?: SlackFile[];
|
|
59
|
+
isExtSharedChannel?: boolean;
|
|
60
|
+
raw: Record<string, unknown>;
|
|
61
|
+
retry?: SlackRetry;
|
|
62
|
+
teamId?: string;
|
|
63
|
+
text: string;
|
|
64
|
+
threadTs: string;
|
|
65
|
+
ts: string;
|
|
66
|
+
userId?: string;
|
|
67
|
+
}
|
|
68
|
+
interface SlackAppMentionPayload extends SlackEventBasePayload {
|
|
69
|
+
eventType: "app_mention";
|
|
70
|
+
kind: "app_mention";
|
|
71
|
+
}
|
|
72
|
+
interface SlackDirectMessagePayload extends SlackEventBasePayload {
|
|
73
|
+
botId?: string;
|
|
74
|
+
eventType: "message";
|
|
75
|
+
kind: "direct_message";
|
|
76
|
+
subtype?: string;
|
|
77
|
+
}
|
|
78
|
+
interface SlackSlashCommandPayload {
|
|
79
|
+
channelId: string;
|
|
80
|
+
channelName?: string;
|
|
81
|
+
command: string;
|
|
82
|
+
enterpriseId?: string;
|
|
83
|
+
isEnterpriseInstall: boolean;
|
|
84
|
+
kind: "slash_command";
|
|
85
|
+
raw: Record<string, string>;
|
|
86
|
+
responseUrl?: string;
|
|
87
|
+
retry?: SlackRetry;
|
|
88
|
+
teamId?: string;
|
|
89
|
+
text: string;
|
|
90
|
+
triggerId?: string;
|
|
91
|
+
userId: string;
|
|
92
|
+
userName?: string;
|
|
93
|
+
}
|
|
94
|
+
interface SlackAction {
|
|
95
|
+
actionId: string;
|
|
96
|
+
blockId?: string;
|
|
97
|
+
label?: string;
|
|
98
|
+
raw: Record<string, unknown>;
|
|
99
|
+
selectedOptionLabel?: string;
|
|
100
|
+
selectedOptionValue?: string;
|
|
101
|
+
type: string;
|
|
102
|
+
user?: SlackUser;
|
|
103
|
+
value?: string;
|
|
104
|
+
}
|
|
105
|
+
interface SlackBlockActionsPayload {
|
|
106
|
+
actions: SlackAction[];
|
|
107
|
+
channelId?: string;
|
|
108
|
+
continuation?: SlackContinuation;
|
|
109
|
+
enterpriseId?: string;
|
|
110
|
+
isEnterpriseInstall?: boolean;
|
|
111
|
+
kind: "block_actions";
|
|
112
|
+
messageBlocks?: unknown[];
|
|
113
|
+
messagePromptBlock?: unknown;
|
|
114
|
+
messagePromptText?: string;
|
|
115
|
+
messageTs?: string;
|
|
116
|
+
raw: Record<string, unknown>;
|
|
117
|
+
responseUrl?: string;
|
|
118
|
+
retry?: SlackRetry;
|
|
119
|
+
teamId?: string;
|
|
120
|
+
threadTs?: string;
|
|
121
|
+
triggerId?: string;
|
|
122
|
+
user?: SlackUser;
|
|
123
|
+
userId: string;
|
|
124
|
+
userName?: string;
|
|
125
|
+
}
|
|
126
|
+
interface SlackBlockSuggestionPayload {
|
|
127
|
+
actionId: string;
|
|
128
|
+
blockId: string;
|
|
129
|
+
channelId?: string;
|
|
130
|
+
enterpriseId?: string;
|
|
131
|
+
kind: "block_suggestion";
|
|
132
|
+
raw: Record<string, unknown>;
|
|
133
|
+
retry?: SlackRetry;
|
|
134
|
+
teamId?: string;
|
|
135
|
+
userId: string;
|
|
136
|
+
value: string;
|
|
137
|
+
}
|
|
138
|
+
interface SlackViewSubmissionPayload {
|
|
139
|
+
callbackId?: string;
|
|
140
|
+
enterpriseId?: string;
|
|
141
|
+
kind: "view_submission";
|
|
142
|
+
privateMetadata?: string;
|
|
143
|
+
raw: Record<string, unknown>;
|
|
144
|
+
responseUrls?: unknown[];
|
|
145
|
+
retry?: SlackRetry;
|
|
146
|
+
teamId?: string;
|
|
147
|
+
user?: SlackUser;
|
|
148
|
+
userId: string;
|
|
149
|
+
values?: SlackViewStateValue[];
|
|
150
|
+
view: Record<string, unknown>;
|
|
151
|
+
}
|
|
152
|
+
interface SlackViewClosedPayload {
|
|
153
|
+
enterpriseId?: string;
|
|
154
|
+
kind: "view_closed";
|
|
155
|
+
raw: Record<string, unknown>;
|
|
156
|
+
retry?: SlackRetry;
|
|
157
|
+
teamId?: string;
|
|
158
|
+
user?: SlackUser;
|
|
159
|
+
userId: string;
|
|
160
|
+
view: Record<string, unknown>;
|
|
161
|
+
}
|
|
162
|
+
interface SlackViewStateValue {
|
|
163
|
+
actionId: string;
|
|
164
|
+
blockId: string;
|
|
165
|
+
raw: Record<string, unknown>;
|
|
166
|
+
selectedOptionLabel?: string;
|
|
167
|
+
selectedOptionValue?: string;
|
|
168
|
+
type?: string;
|
|
169
|
+
value?: string;
|
|
170
|
+
}
|
|
171
|
+
interface SlackUnsupportedPayload {
|
|
172
|
+
kind: "unsupported";
|
|
173
|
+
raw: unknown;
|
|
174
|
+
retry?: SlackRetry;
|
|
175
|
+
type: string;
|
|
176
|
+
}
|
|
177
|
+
declare class SlackWebhookError extends Error {
|
|
178
|
+
constructor(message: string);
|
|
179
|
+
}
|
|
180
|
+
declare class SlackWebhookVerificationError extends SlackWebhookError {
|
|
181
|
+
constructor(message: string);
|
|
182
|
+
}
|
|
183
|
+
declare class SlackWebhookParseError extends SlackWebhookError {
|
|
184
|
+
constructor(message: string);
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
export { type SlackAction as S, type SlackAppMentionPayload as a, type SlackBlockActionsPayload as b, type SlackBlockSuggestionPayload as c, type SlackContinuation as d, type SlackDirectMessagePayload as e, type SlackEventBasePayload as f, type SlackFile as g, type SlackHeaderValue as h, type SlackHeaders as i, type SlackParseOptions as j, type SlackReadOptions as k, type SlackRetry as l, type SlackSlashCommandPayload as m, type SlackUnsupportedPayload as n, type SlackUrlVerificationPayload as o, type SlackUser as p, type SlackVerifyOptions as q, type SlackViewClosedPayload as r, type SlackViewStateValue as s, type SlackViewSubmissionPayload as t, SlackWebhookError as u, SlackWebhookParseError as v, type SlackWebhookPayload as w, SlackWebhookVerificationError as x, type SlackWebhookVerifier as y };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { j as SlackParseOptions, w as SlackWebhookPayload, k as SlackReadOptions, q as SlackVerifyOptions, i as SlackHeaders } from './types-AntsVifS.js';
|
|
2
|
+
export { S as SlackAction, a as SlackAppMentionPayload, b as SlackBlockActionsPayload, c as SlackBlockSuggestionPayload, d as SlackContinuation, e as SlackDirectMessagePayload, f as SlackEventBasePayload, g as SlackFile, h as SlackHeaderValue, l as SlackRetry, m as SlackSlashCommandPayload, n as SlackUnsupportedPayload, o as SlackUrlVerificationPayload, p as SlackUser, r as SlackViewClosedPayload, s as SlackViewStateValue, t as SlackViewSubmissionPayload, u as SlackWebhookError, v as SlackWebhookParseError, x as SlackWebhookVerificationError, y as SlackWebhookVerifier } from './types-AntsVifS.js';
|
|
3
|
+
|
|
4
|
+
declare function parseSlackWebhookBody(body: string, options?: SlackParseOptions): SlackWebhookPayload;
|
|
5
|
+
|
|
6
|
+
declare function readSlackWebhook(request: Request, options: SlackReadOptions): Promise<SlackWebhookPayload>;
|
|
7
|
+
declare function verifySlackRequest(request: Request, options: SlackVerifyOptions): Promise<string>;
|
|
8
|
+
declare function verifySlackSignature(body: string, headers: SlackHeaders, options: SlackVerifyOptions): Promise<void>;
|
|
9
|
+
|
|
10
|
+
export { SlackHeaders, SlackParseOptions, SlackReadOptions, SlackVerifyOptions, SlackWebhookPayload, parseSlackWebhookBody, readSlackWebhook, verifySlackRequest, verifySlackSignature };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as e,i as t,n,o as r,r as i,s as a,t as o}from"../../_chunks/node/chunk-HFKBBKCJ-CWaVIQuL.js";export{o as SlackWebhookError,n as SlackWebhookParseError,i as SlackWebhookVerificationError,t as parseSlackWebhookBody,e as readSlackWebhook,r as verifySlackRequest,a as verifySlackSignature};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseClient, Parsed, RequestParams } from "./base-client.js";
|
|
2
|
-
import { CommandData, CommandFinishedData, CommandFinishedResponse, CommandResponse, CreateSnapshotResponse, InteractiveSessionResponse,
|
|
2
|
+
import { CommandData, CommandFinishedData, CommandFinishedResponse, CommandResponse, CreateSnapshotResponse, InteractiveSessionResponse, LogOutputLine, SessionResponse, SnapshotResponse, StopSessionResponse } from "./validators.js";
|
|
3
3
|
import { FileWriter } from "./file-writer.js";
|
|
4
4
|
import { NetworkPolicy } from "../network-policy.js";
|
|
5
5
|
import { WithPrivate } from "../utils/types.js";
|
|
@@ -35,7 +35,7 @@ declare class APIClient extends BaseClient {
|
|
|
35
35
|
region: string;
|
|
36
36
|
runtime: string;
|
|
37
37
|
timeout: number;
|
|
38
|
-
status: "
|
|
38
|
+
status: "pending" | "running" | "stopping" | "stopped" | "failed" | "aborted" | "snapshotting";
|
|
39
39
|
requestedAt: number;
|
|
40
40
|
createdAt: number;
|
|
41
41
|
cwd: string;
|
|
@@ -170,6 +170,7 @@ declare class APIClient extends BaseClient {
|
|
|
170
170
|
};
|
|
171
171
|
persistent?: boolean;
|
|
172
172
|
runtime?: RUNTIMES | (string & {});
|
|
173
|
+
image?: string;
|
|
173
174
|
networkPolicy?: NetworkPolicy;
|
|
174
175
|
env?: Record<string, string>;
|
|
175
176
|
tags?: Record<string, string>;
|
|
@@ -187,7 +188,7 @@ declare class APIClient extends BaseClient {
|
|
|
187
188
|
createdAt: number;
|
|
188
189
|
updatedAt: number;
|
|
189
190
|
currentSessionId: string;
|
|
190
|
-
status: "
|
|
191
|
+
status: "pending" | "running" | "stopping" | "stopped" | "failed" | "aborted" | "snapshotting";
|
|
191
192
|
region?: string | undefined;
|
|
192
193
|
vcpus?: number | undefined;
|
|
193
194
|
memory?: number | undefined;
|
|
@@ -302,7 +303,7 @@ declare class APIClient extends BaseClient {
|
|
|
302
303
|
region: string;
|
|
303
304
|
runtime: string;
|
|
304
305
|
timeout: number;
|
|
305
|
-
status: "
|
|
306
|
+
status: "pending" | "running" | "stopping" | "stopped" | "failed" | "aborted" | "snapshotting";
|
|
306
307
|
requestedAt: number;
|
|
307
308
|
createdAt: number;
|
|
308
309
|
cwd: string;
|
|
@@ -422,6 +423,8 @@ declare class APIClient extends BaseClient {
|
|
|
422
423
|
env: Record<string, string>;
|
|
423
424
|
sudo: boolean;
|
|
424
425
|
wait: true;
|
|
426
|
+
logs?: boolean;
|
|
427
|
+
onLog?: (log: LogOutputLine) => void;
|
|
425
428
|
timeout?: number;
|
|
426
429
|
signal?: AbortSignal;
|
|
427
430
|
}): Promise<{
|
|
@@ -502,7 +505,7 @@ declare class APIClient extends BaseClient {
|
|
|
502
505
|
region: string;
|
|
503
506
|
runtime: string;
|
|
504
507
|
timeout: number;
|
|
505
|
-
status: "
|
|
508
|
+
status: "pending" | "running" | "stopping" | "stopped" | "failed" | "aborted" | "snapshotting";
|
|
506
509
|
requestedAt: number;
|
|
507
510
|
createdAt: number;
|
|
508
511
|
cwd: string;
|
|
@@ -641,7 +644,7 @@ declare class APIClient extends BaseClient {
|
|
|
641
644
|
id: string;
|
|
642
645
|
sourceSessionId: string;
|
|
643
646
|
region: string;
|
|
644
|
-
status: "
|
|
647
|
+
status: "failed" | "created" | "deleted";
|
|
645
648
|
sizeBytes: number;
|
|
646
649
|
createdAt: number;
|
|
647
650
|
updatedAt: number;
|
|
@@ -679,7 +682,7 @@ declare class APIClient extends BaseClient {
|
|
|
679
682
|
id: string;
|
|
680
683
|
sourceSessionId: string;
|
|
681
684
|
region: string;
|
|
682
|
-
status: "
|
|
685
|
+
status: "failed" | "created" | "deleted";
|
|
683
686
|
sizeBytes: number;
|
|
684
687
|
createdAt: number;
|
|
685
688
|
updatedAt: number;
|
|
@@ -692,7 +695,7 @@ declare class APIClient extends BaseClient {
|
|
|
692
695
|
id: string;
|
|
693
696
|
sourceSessionId: string;
|
|
694
697
|
region: string;
|
|
695
|
-
status: "
|
|
698
|
+
status: "failed" | "created" | "deleted";
|
|
696
699
|
sizeBytes: number;
|
|
697
700
|
createdAt: number;
|
|
698
701
|
updatedAt: number;
|
|
@@ -712,7 +715,7 @@ declare class APIClient extends BaseClient {
|
|
|
712
715
|
id: string;
|
|
713
716
|
sourceSessionId: string;
|
|
714
717
|
region: string;
|
|
715
|
-
status: "
|
|
718
|
+
status: "failed" | "created" | "deleted";
|
|
716
719
|
sizeBytes: number;
|
|
717
720
|
createdAt: number;
|
|
718
721
|
updatedAt: number;
|
|
@@ -725,7 +728,7 @@ declare class APIClient extends BaseClient {
|
|
|
725
728
|
id: string;
|
|
726
729
|
sourceSessionId: string;
|
|
727
730
|
region: string;
|
|
728
|
-
status: "
|
|
731
|
+
status: "failed" | "created" | "deleted";
|
|
729
732
|
sizeBytes: number;
|
|
730
733
|
createdAt: number;
|
|
731
734
|
updatedAt: number;
|
|
@@ -774,7 +777,7 @@ declare class APIClient extends BaseClient {
|
|
|
774
777
|
sessionId: string;
|
|
775
778
|
cmdId: string;
|
|
776
779
|
signal?: AbortSignal;
|
|
777
|
-
}): AsyncGenerator<
|
|
780
|
+
}): AsyncGenerator<LogOutputLine, void, void> & Disposable & {
|
|
778
781
|
close(): void;
|
|
779
782
|
};
|
|
780
783
|
stopSession(params: {
|
|
@@ -816,7 +819,7 @@ declare class APIClient extends BaseClient {
|
|
|
816
819
|
createdAt: number;
|
|
817
820
|
updatedAt: number;
|
|
818
821
|
currentSessionId: string;
|
|
819
|
-
status: "
|
|
822
|
+
status: "pending" | "running" | "stopping" | "stopped" | "failed" | "aborted" | "snapshotting";
|
|
820
823
|
region?: string | undefined;
|
|
821
824
|
vcpus?: number | undefined;
|
|
822
825
|
memory?: number | undefined;
|
|
@@ -931,7 +934,7 @@ declare class APIClient extends BaseClient {
|
|
|
931
934
|
region: string;
|
|
932
935
|
runtime: string;
|
|
933
936
|
timeout: number;
|
|
934
|
-
status: "
|
|
937
|
+
status: "pending" | "running" | "stopping" | "stopped" | "failed" | "aborted" | "snapshotting";
|
|
935
938
|
requestedAt: number;
|
|
936
939
|
createdAt: number;
|
|
937
940
|
cwd: string;
|
|
@@ -1059,7 +1062,7 @@ declare class APIClient extends BaseClient {
|
|
|
1059
1062
|
createdAt: number;
|
|
1060
1063
|
updatedAt: number;
|
|
1061
1064
|
currentSessionId: string;
|
|
1062
|
-
status: "
|
|
1065
|
+
status: "pending" | "running" | "stopping" | "stopped" | "failed" | "aborted" | "snapshotting";
|
|
1063
1066
|
region?: string | undefined;
|
|
1064
1067
|
vcpus?: number | undefined;
|
|
1065
1068
|
memory?: number | undefined;
|
|
@@ -1199,7 +1202,7 @@ declare class APIClient extends BaseClient {
|
|
|
1199
1202
|
createdAt: number;
|
|
1200
1203
|
updatedAt: number;
|
|
1201
1204
|
currentSessionId: string;
|
|
1202
|
-
status: "
|
|
1205
|
+
status: "pending" | "running" | "stopping" | "stopped" | "failed" | "aborted" | "snapshotting";
|
|
1203
1206
|
region?: string | undefined;
|
|
1204
1207
|
vcpus?: number | undefined;
|
|
1205
1208
|
memory?: number | undefined;
|
|
@@ -1323,7 +1326,7 @@ declare class APIClient extends BaseClient {
|
|
|
1323
1326
|
createdAt: number;
|
|
1324
1327
|
updatedAt: number;
|
|
1325
1328
|
currentSessionId: string;
|
|
1326
|
-
status: "
|
|
1329
|
+
status: "pending" | "running" | "stopping" | "stopped" | "failed" | "aborted" | "snapshotting";
|
|
1327
1330
|
region?: string | undefined;
|
|
1328
1331
|
vcpus?: number | undefined;
|
|
1329
1332
|
memory?: number | undefined;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Command, CommandData, CommandFinishedData, CommandFinishedResponse, CommandResponse, CreateSnapshotResponse, InteractiveSessionResponse,
|
|
1
|
+
import { Command, CommandData, CommandFinishedData, CommandFinishedResponse, CommandResponse, CreateSnapshotResponse, InteractiveSessionResponse, LogError, LogLine, LogLineData, LogOutputLine, Sandbox, SandboxMetaData, SandboxRoute, SandboxRouteData, Session, SessionMetaData, SessionResponse, Snapshot, SnapshotMetadata, SnapshotResponse, SnapshotTreeNode, SnapshotTreeNodeData, StopSessionResponse } from "./validators.js";
|
|
2
2
|
import { APIClient } from "./api-client.js";
|
|
@@ -10,12 +10,12 @@ declare const Session: z.ZodObject<{
|
|
|
10
10
|
runtime: z.ZodString;
|
|
11
11
|
timeout: z.ZodNumber;
|
|
12
12
|
status: z.ZodEnum<{
|
|
13
|
-
failed: "failed";
|
|
14
|
-
aborted: "aborted";
|
|
15
13
|
pending: "pending";
|
|
16
14
|
running: "running";
|
|
17
15
|
stopping: "stopping";
|
|
18
16
|
stopped: "stopped";
|
|
17
|
+
failed: "failed";
|
|
18
|
+
aborted: "aborted";
|
|
19
19
|
snapshotting: "snapshotting";
|
|
20
20
|
}>;
|
|
21
21
|
requestedAt: z.ZodNumber;
|
|
@@ -131,9 +131,9 @@ declare const Snapshot: z.ZodObject<{
|
|
|
131
131
|
sourceSessionId: z.ZodString;
|
|
132
132
|
region: z.ZodString;
|
|
133
133
|
status: z.ZodEnum<{
|
|
134
|
+
failed: "failed";
|
|
134
135
|
created: "created";
|
|
135
136
|
deleted: "deleted";
|
|
136
|
-
failed: "failed";
|
|
137
137
|
}>;
|
|
138
138
|
sizeBytes: z.ZodNumber;
|
|
139
139
|
expiresAt: z.ZodOptional<z.ZodNumber>;
|
|
@@ -162,12 +162,12 @@ declare const SessionResponse: z.ZodObject<{
|
|
|
162
162
|
runtime: z.ZodString;
|
|
163
163
|
timeout: z.ZodNumber;
|
|
164
164
|
status: z.ZodEnum<{
|
|
165
|
-
failed: "failed";
|
|
166
|
-
aborted: "aborted";
|
|
167
165
|
pending: "pending";
|
|
168
166
|
running: "running";
|
|
169
167
|
stopping: "stopping";
|
|
170
168
|
stopped: "stopped";
|
|
169
|
+
failed: "failed";
|
|
170
|
+
aborted: "aborted";
|
|
171
171
|
snapshotting: "snapshotting";
|
|
172
172
|
}>;
|
|
173
173
|
requestedAt: z.ZodNumber;
|
|
@@ -299,23 +299,37 @@ declare const CommandFinishedResponse: z.ZodObject<{
|
|
|
299
299
|
exitCode: z.ZodNumber;
|
|
300
300
|
}, z.core.$strip>;
|
|
301
301
|
}, z.core.$strip>;
|
|
302
|
-
declare const
|
|
302
|
+
declare const LogError: z.ZodObject<{
|
|
303
|
+
stream: z.ZodLiteral<"error">;
|
|
304
|
+
data: z.ZodObject<{
|
|
305
|
+
code: z.ZodString;
|
|
306
|
+
message: z.ZodString;
|
|
307
|
+
}, z.core.$strip>;
|
|
308
|
+
}, z.core.$strip>;
|
|
309
|
+
declare const LogLine: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
303
310
|
data: z.ZodString;
|
|
304
311
|
stream: z.ZodLiteral<"stdout">;
|
|
305
|
-
}, z.core.$strip
|
|
306
|
-
declare const LogLineStderr: z.ZodObject<{
|
|
312
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
307
313
|
data: z.ZodString;
|
|
308
314
|
stream: z.ZodLiteral<"stderr">;
|
|
309
|
-
}, z.core.$strip
|
|
315
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
316
|
+
stream: z.ZodLiteral<"error">;
|
|
317
|
+
data: z.ZodObject<{
|
|
318
|
+
code: z.ZodString;
|
|
319
|
+
message: z.ZodString;
|
|
320
|
+
}, z.core.$strip>;
|
|
321
|
+
}, z.core.$strip>], "stream">;
|
|
322
|
+
type LogLineData = z.infer<typeof LogLine>;
|
|
323
|
+
type LogOutputLine = Exclude<LogLineData, z.infer<typeof LogError>>;
|
|
310
324
|
declare const SnapshotTreeNode: z.ZodObject<{
|
|
311
325
|
snapshot: z.ZodObject<{
|
|
312
326
|
id: z.ZodString;
|
|
313
327
|
sourceSessionId: z.ZodString;
|
|
314
328
|
region: z.ZodString;
|
|
315
329
|
status: z.ZodEnum<{
|
|
330
|
+
failed: "failed";
|
|
316
331
|
created: "created";
|
|
317
332
|
deleted: "deleted";
|
|
318
|
-
failed: "failed";
|
|
319
333
|
}>;
|
|
320
334
|
sizeBytes: z.ZodNumber;
|
|
321
335
|
expiresAt: z.ZodOptional<z.ZodNumber>;
|
|
@@ -330,9 +344,9 @@ declare const SnapshotTreeNode: z.ZodObject<{
|
|
|
330
344
|
sourceSessionId: z.ZodString;
|
|
331
345
|
region: z.ZodString;
|
|
332
346
|
status: z.ZodEnum<{
|
|
347
|
+
failed: "failed";
|
|
333
348
|
created: "created";
|
|
334
349
|
deleted: "deleted";
|
|
335
|
-
failed: "failed";
|
|
336
350
|
}>;
|
|
337
351
|
sizeBytes: z.ZodNumber;
|
|
338
352
|
expiresAt: z.ZodOptional<z.ZodNumber>;
|
|
@@ -351,9 +365,9 @@ declare const CreateSnapshotResponse: z.ZodObject<{
|
|
|
351
365
|
sourceSessionId: z.ZodString;
|
|
352
366
|
region: z.ZodString;
|
|
353
367
|
status: z.ZodEnum<{
|
|
368
|
+
failed: "failed";
|
|
354
369
|
created: "created";
|
|
355
370
|
deleted: "deleted";
|
|
356
|
-
failed: "failed";
|
|
357
371
|
}>;
|
|
358
372
|
sizeBytes: z.ZodNumber;
|
|
359
373
|
expiresAt: z.ZodOptional<z.ZodNumber>;
|
|
@@ -371,12 +385,12 @@ declare const CreateSnapshotResponse: z.ZodObject<{
|
|
|
371
385
|
runtime: z.ZodString;
|
|
372
386
|
timeout: z.ZodNumber;
|
|
373
387
|
status: z.ZodEnum<{
|
|
374
|
-
failed: "failed";
|
|
375
|
-
aborted: "aborted";
|
|
376
388
|
pending: "pending";
|
|
377
389
|
running: "running";
|
|
378
390
|
stopping: "stopping";
|
|
379
391
|
stopped: "stopped";
|
|
392
|
+
failed: "failed";
|
|
393
|
+
aborted: "aborted";
|
|
380
394
|
snapshotting: "snapshotting";
|
|
381
395
|
}>;
|
|
382
396
|
requestedAt: z.ZodNumber;
|
|
@@ -487,9 +501,9 @@ declare const SnapshotResponse: z.ZodObject<{
|
|
|
487
501
|
sourceSessionId: z.ZodString;
|
|
488
502
|
region: z.ZodString;
|
|
489
503
|
status: z.ZodEnum<{
|
|
504
|
+
failed: "failed";
|
|
490
505
|
created: "created";
|
|
491
506
|
deleted: "deleted";
|
|
492
|
-
failed: "failed";
|
|
493
507
|
}>;
|
|
494
508
|
sizeBytes: z.ZodNumber;
|
|
495
509
|
expiresAt: z.ZodOptional<z.ZodNumber>;
|
|
@@ -600,12 +614,12 @@ declare const Sandbox: z.ZodObject<{
|
|
|
600
614
|
currentSessionId: z.ZodString;
|
|
601
615
|
currentSnapshotId: z.ZodOptional<z.ZodString>;
|
|
602
616
|
status: z.ZodEnum<{
|
|
603
|
-
failed: "failed";
|
|
604
|
-
aborted: "aborted";
|
|
605
617
|
pending: "pending";
|
|
606
618
|
running: "running";
|
|
607
619
|
stopping: "stopping";
|
|
608
620
|
stopped: "stopped";
|
|
621
|
+
failed: "failed";
|
|
622
|
+
aborted: "aborted";
|
|
609
623
|
snapshotting: "snapshotting";
|
|
610
624
|
}>;
|
|
611
625
|
statusUpdatedAt: z.ZodOptional<z.ZodNumber>;
|
|
@@ -628,12 +642,12 @@ declare const StopSessionResponse: z.ZodObject<{
|
|
|
628
642
|
runtime: z.ZodString;
|
|
629
643
|
timeout: z.ZodNumber;
|
|
630
644
|
status: z.ZodEnum<{
|
|
631
|
-
failed: "failed";
|
|
632
|
-
aborted: "aborted";
|
|
633
645
|
pending: "pending";
|
|
634
646
|
running: "running";
|
|
635
647
|
stopping: "stopping";
|
|
636
648
|
stopped: "stopped";
|
|
649
|
+
failed: "failed";
|
|
650
|
+
aborted: "aborted";
|
|
637
651
|
snapshotting: "snapshotting";
|
|
638
652
|
}>;
|
|
639
653
|
requestedAt: z.ZodNumber;
|
|
@@ -837,12 +851,12 @@ declare const StopSessionResponse: z.ZodObject<{
|
|
|
837
851
|
currentSessionId: z.ZodString;
|
|
838
852
|
currentSnapshotId: z.ZodOptional<z.ZodString>;
|
|
839
853
|
status: z.ZodEnum<{
|
|
840
|
-
failed: "failed";
|
|
841
|
-
aborted: "aborted";
|
|
842
854
|
pending: "pending";
|
|
843
855
|
running: "running";
|
|
844
856
|
stopping: "stopping";
|
|
845
857
|
stopped: "stopped";
|
|
858
|
+
failed: "failed";
|
|
859
|
+
aborted: "aborted";
|
|
846
860
|
snapshotting: "snapshotting";
|
|
847
861
|
}>;
|
|
848
862
|
statusUpdatedAt: z.ZodOptional<z.ZodNumber>;
|
|
@@ -860,9 +874,9 @@ declare const StopSessionResponse: z.ZodObject<{
|
|
|
860
874
|
sourceSessionId: z.ZodString;
|
|
861
875
|
region: z.ZodString;
|
|
862
876
|
status: z.ZodEnum<{
|
|
877
|
+
failed: "failed";
|
|
863
878
|
created: "created";
|
|
864
879
|
deleted: "deleted";
|
|
865
|
-
failed: "failed";
|
|
866
880
|
}>;
|
|
867
881
|
sizeBytes: z.ZodNumber;
|
|
868
882
|
expiresAt: z.ZodOptional<z.ZodNumber>;
|
|
@@ -874,5 +888,5 @@ declare const StopSessionResponse: z.ZodObject<{
|
|
|
874
888
|
}, z.core.$strip>>;
|
|
875
889
|
}, z.core.$strip>;
|
|
876
890
|
//#endregion
|
|
877
|
-
export { Command, CommandData, CommandFinishedData, CommandFinishedResponse, CommandResponse, CreateSnapshotResponse, InteractiveSessionResponse,
|
|
891
|
+
export { Command, CommandData, CommandFinishedData, CommandFinishedResponse, CommandResponse, CreateSnapshotResponse, InteractiveSessionResponse, LogError, LogLine, LogLineData, LogOutputLine, Sandbox, SandboxMetaData, SandboxRoute, SandboxRouteData, Session, SessionMetaData, SessionResponse, Snapshot, SnapshotMetadata, SnapshotResponse, SnapshotTreeNode, SnapshotTreeNodeData, StopSessionResponse };
|
|
878
892
|
//# sourceMappingURL=validators.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CommandData } from "./api-client/validators.js";
|
|
1
|
+
import { CommandData, LogOutputLine } from "./api-client/validators.js";
|
|
2
2
|
import { APIClient } from "./api-client/api-client.js";
|
|
3
3
|
import "./api-client/index.js";
|
|
4
4
|
import { Signal } from "./utils/resolveSignal.js";
|
|
@@ -134,13 +134,7 @@ declare class Command {
|
|
|
134
134
|
*/
|
|
135
135
|
logs(opts?: {
|
|
136
136
|
signal?: AbortSignal;
|
|
137
|
-
}): AsyncGenerator<{
|
|
138
|
-
data: string;
|
|
139
|
-
stream: "stdout";
|
|
140
|
-
} | {
|
|
141
|
-
data: string;
|
|
142
|
-
stream: "stderr";
|
|
143
|
-
}, void, void> & Disposable & {
|
|
137
|
+
}): AsyncGenerator<LogOutputLine, void, void> & Disposable & {
|
|
144
138
|
close(): void;
|
|
145
139
|
};
|
|
146
140
|
/**
|