@enclave-vm/client 0.0.1 → 2.8.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/index.js ADDED
@@ -0,0 +1,434 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // libs/enclavejs-client/src/index.ts
21
+ var index_exports = {};
22
+ __export(index_exports, {
23
+ ConnectionState: () => import_stream2.ConnectionState,
24
+ EnclaveClient: () => EnclaveClient,
25
+ EnclaveClientError: () => EnclaveClientError
26
+ });
27
+ module.exports = __toCommonJS(index_exports);
28
+
29
+ // libs/enclavejs-client/src/client.ts
30
+ var import_types = require("@enclave-vm/types");
31
+ var import_stream = require("@enclave-vm/stream");
32
+
33
+ // libs/enclavejs-client/src/types.ts
34
+ var EnclaveClientError = class extends Error {
35
+ code;
36
+ cause;
37
+ constructor(code, message, cause) {
38
+ super(message);
39
+ this.name = "EnclaveClientError";
40
+ this.code = code;
41
+ this.cause = cause;
42
+ }
43
+ };
44
+
45
+ // libs/enclavejs-client/src/client.ts
46
+ var DEFAULT_CONFIG = {
47
+ timeout: 6e4,
48
+ autoReconnect: true,
49
+ maxReconnectAttempts: 3,
50
+ reconnectDelay: 1e3,
51
+ heartbeatTimeoutMs: 3e4
52
+ };
53
+ var EnclaveClient = class {
54
+ config;
55
+ activeSessions = /* @__PURE__ */ new Map();
56
+ /**
57
+ * Create a new EnclaveClient instance.
58
+ */
59
+ constructor(config) {
60
+ const baseUrl = config.baseUrl.replace(/\/$/, "");
61
+ this.config = {
62
+ baseUrl,
63
+ headers: config.headers,
64
+ timeout: config.timeout ?? DEFAULT_CONFIG.timeout,
65
+ autoReconnect: config.autoReconnect ?? DEFAULT_CONFIG.autoReconnect,
66
+ maxReconnectAttempts: config.maxReconnectAttempts ?? DEFAULT_CONFIG.maxReconnectAttempts,
67
+ reconnectDelay: config.reconnectDelay ?? DEFAULT_CONFIG.reconnectDelay,
68
+ fetch: config.fetch ?? globalThis.fetch.bind(globalThis)
69
+ };
70
+ }
71
+ /**
72
+ * Execute code and return the result.
73
+ *
74
+ * @example
75
+ * ```ts
76
+ * const result = await client.execute('return 1 + 1');
77
+ * if (result.success) {
78
+ * console.log(result.value);
79
+ * }
80
+ * ```
81
+ */
82
+ async execute(code, options = {}) {
83
+ const handle = this.executeStream(code, options);
84
+ return handle.wait();
85
+ }
86
+ /**
87
+ * Execute code and return a session handle for streaming.
88
+ *
89
+ * @example
90
+ * ```ts
91
+ * const session = client.executeStream('return 1 + 1', {
92
+ * onStdout: (chunk) => console.log(chunk),
93
+ * onToolCall: (callId, name, args) => console.log('Tool:', name),
94
+ * });
95
+ *
96
+ * const result = await session.wait();
97
+ * ```
98
+ */
99
+ executeStream(code, options = {}) {
100
+ const sessionId = options.sessionId ?? (0, import_types.generateSessionId)();
101
+ const abortController = new AbortController();
102
+ if (options.signal) {
103
+ options.signal.addEventListener("abort", () => {
104
+ abortController.abort(options.signal?.reason);
105
+ });
106
+ }
107
+ let resolveResult;
108
+ let rejectResult;
109
+ const resultPromise = new Promise((resolve, reject) => {
110
+ resolveResult = resolve;
111
+ rejectResult = reject;
112
+ });
113
+ const reconnectState = new import_stream.ReconnectionStateMachine({
114
+ config: {
115
+ maxRetries: this.config.maxReconnectAttempts,
116
+ initialDelayMs: this.config.reconnectDelay
117
+ },
118
+ onEvent: (event) => {
119
+ if (event.type === "retry_started") {
120
+ this.reconnectSession(sessionId);
121
+ }
122
+ }
123
+ });
124
+ const heartbeatMonitor = new import_stream.HeartbeatMonitor({
125
+ timeoutMs: DEFAULT_CONFIG.heartbeatTimeoutMs,
126
+ onTimeout: () => {
127
+ if (this.config.autoReconnect) {
128
+ const session2 = this.activeSessions.get(sessionId);
129
+ if (session2) {
130
+ reconnectState.onDisconnected("Heartbeat timeout");
131
+ }
132
+ }
133
+ }
134
+ });
135
+ const session = {
136
+ sessionId,
137
+ events: [],
138
+ abortController,
139
+ resolve: resolveResult,
140
+ reject: rejectResult,
141
+ handlers: options,
142
+ startTime: Date.now(),
143
+ toolCallCount: 0,
144
+ stdoutBytes: 0,
145
+ reconnectState,
146
+ heartbeatMonitor,
147
+ lastSequence: 0
148
+ };
149
+ this.activeSessions.set(sessionId, session);
150
+ this.startSession(session, code, options.limits).catch((error) => {
151
+ this.handleSessionError(sessionId, error);
152
+ });
153
+ const eventsRef = session.events;
154
+ return {
155
+ sessionId,
156
+ wait: () => resultPromise,
157
+ cancel: async (reason) => {
158
+ await this.cancelSession(sessionId, reason);
159
+ },
160
+ getEvents: () => [...eventsRef],
161
+ isActive: () => this.activeSessions.has(sessionId)
162
+ };
163
+ }
164
+ /**
165
+ * Get information about a session.
166
+ */
167
+ async getSession(sessionId) {
168
+ const url = `${this.config.baseUrl}/sessions/${sessionId}`;
169
+ try {
170
+ const response = await this.config.fetch(url, {
171
+ method: "GET",
172
+ headers: this.buildHeaders()
173
+ });
174
+ if (response.status === 404) {
175
+ return null;
176
+ }
177
+ if (!response.ok) {
178
+ throw new EnclaveClientError("SESSION_ERROR", `Failed to get session: ${response.status}`);
179
+ }
180
+ return await response.json();
181
+ } catch (error) {
182
+ if (error instanceof EnclaveClientError) throw error;
183
+ throw new EnclaveClientError(
184
+ "NETWORK_ERROR",
185
+ "Failed to get session",
186
+ error instanceof Error ? error : void 0
187
+ );
188
+ }
189
+ }
190
+ /**
191
+ * Cancel a running session.
192
+ */
193
+ async cancelSession(sessionId, reason) {
194
+ const session = this.activeSessions.get(sessionId);
195
+ if (!session) {
196
+ return;
197
+ }
198
+ session.heartbeatMonitor.stop();
199
+ session.reconnectState.close();
200
+ session.abortController.abort(reason);
201
+ const url = `${this.config.baseUrl}/sessions/${sessionId}/cancel`;
202
+ try {
203
+ await this.config.fetch(url, {
204
+ method: "POST",
205
+ headers: this.buildHeaders(),
206
+ body: JSON.stringify({ reason })
207
+ });
208
+ } catch {
209
+ }
210
+ this.completeSession(sessionId, {
211
+ success: false,
212
+ sessionId,
213
+ error: { code: "CANCELLED", message: reason ?? "Session cancelled" },
214
+ events: session.events,
215
+ stats: {
216
+ durationMs: Date.now() - session.startTime,
217
+ toolCallCount: session.toolCallCount,
218
+ stdoutBytes: session.stdoutBytes
219
+ }
220
+ });
221
+ }
222
+ /**
223
+ * Start a session and begin streaming events.
224
+ */
225
+ async startSession(session, code, limits) {
226
+ const url = `${this.config.baseUrl}/sessions`;
227
+ const body = {
228
+ sessionId: session.sessionId,
229
+ code
230
+ };
231
+ if (limits) {
232
+ body.config = {
233
+ maxExecutionMs: limits.sessionTtlMs,
234
+ maxToolCalls: limits.maxToolCalls,
235
+ heartbeatIntervalMs: limits.heartbeatIntervalMs
236
+ };
237
+ }
238
+ try {
239
+ const response = await this.config.fetch(url, {
240
+ method: "POST",
241
+ headers: {
242
+ ...this.buildHeaders(),
243
+ "Content-Type": "application/json",
244
+ Accept: "application/x-ndjson"
245
+ },
246
+ body: JSON.stringify(body),
247
+ signal: session.abortController.signal
248
+ });
249
+ if (!response.ok) {
250
+ const errorText = await response.text();
251
+ throw new EnclaveClientError("SESSION_ERROR", `Failed to start session: ${response.status} - ${errorText}`);
252
+ }
253
+ session.reconnectState.onConnected();
254
+ session.heartbeatMonitor.start();
255
+ await this.streamResponse(session, response);
256
+ } catch (error) {
257
+ if (error instanceof Error && error.name === "AbortError") {
258
+ return;
259
+ }
260
+ if (this.config.autoReconnect && session.reconnectState.canReconnect()) {
261
+ session.reconnectState.onDisconnected(error instanceof Error ? error.message : "Connection lost");
262
+ return;
263
+ }
264
+ throw error;
265
+ }
266
+ }
267
+ /**
268
+ * Stream and parse the NDJSON response.
269
+ */
270
+ async streamResponse(session, response) {
271
+ const body = response.body;
272
+ if (!body) {
273
+ throw new EnclaveClientError("PARSE_ERROR", "No response body");
274
+ }
275
+ try {
276
+ for await (const event of (0, import_stream.parseNdjsonStream)(body)) {
277
+ this.handleEvent(session, event);
278
+ }
279
+ } catch (error) {
280
+ if (error instanceof Error && error.name === "AbortError") {
281
+ return;
282
+ }
283
+ if (this.config.autoReconnect && session.reconnectState.canReconnect()) {
284
+ session.reconnectState.onDisconnected(error instanceof Error ? error.message : "Stream error");
285
+ return;
286
+ }
287
+ throw error;
288
+ }
289
+ }
290
+ /**
291
+ * Handle a received stream event.
292
+ */
293
+ handleEvent(session, event) {
294
+ if (event.seq !== void 0) {
295
+ session.lastSequence = event.seq;
296
+ }
297
+ session.events.push(event);
298
+ session.handlers.onEvent?.(event);
299
+ if ((0, import_types.isSessionInitEvent)(event)) {
300
+ session.handlers.onSessionInit?.(event);
301
+ } else if ((0, import_types.isStdoutEvent)(event)) {
302
+ session.stdoutBytes += event.payload.chunk.length;
303
+ session.handlers.onStdout?.(event.payload.chunk);
304
+ } else if ((0, import_types.isLogEvent)(event)) {
305
+ session.handlers.onLog?.(event.payload.level, event.payload.message, event.payload.data);
306
+ } else if ((0, import_types.isToolCallEvent)(event)) {
307
+ session.toolCallCount++;
308
+ session.handlers.onToolCall?.(event.payload.callId, event.payload.toolName, event.payload.args);
309
+ } else if ((0, import_types.isToolResultAppliedEvent)(event)) {
310
+ session.handlers.onToolResultApplied?.(event.payload.callId);
311
+ } else if ((0, import_types.isHeartbeatEvent)(event)) {
312
+ session.heartbeatMonitor.onHeartbeat();
313
+ session.handlers.onHeartbeat?.();
314
+ } else if ((0, import_types.isErrorEvent)(event)) {
315
+ session.handlers.onError?.(event.payload.code ?? "UNKNOWN", event.payload.message);
316
+ } else if ((0, import_types.isFinalEvent)(event)) {
317
+ this.handleFinalEvent(session, event);
318
+ }
319
+ }
320
+ /**
321
+ * Handle the final event and complete the session.
322
+ */
323
+ handleFinalEvent(session, event) {
324
+ session.heartbeatMonitor.stop();
325
+ session.reconnectState.close();
326
+ const result = {
327
+ success: event.payload.ok,
328
+ sessionId: session.sessionId,
329
+ events: session.events,
330
+ stats: {
331
+ durationMs: Date.now() - session.startTime,
332
+ toolCallCount: session.toolCallCount,
333
+ stdoutBytes: session.stdoutBytes
334
+ }
335
+ };
336
+ if (event.payload.ok) {
337
+ result.value = event.payload.result;
338
+ } else {
339
+ result.error = {
340
+ code: event.payload.error?.code,
341
+ message: event.payload.error?.message ?? "Unknown error"
342
+ };
343
+ }
344
+ this.completeSession(session.sessionId, result);
345
+ }
346
+ /**
347
+ * Handle a session error.
348
+ */
349
+ handleSessionError(sessionId, error) {
350
+ const session = this.activeSessions.get(sessionId);
351
+ if (!session) return;
352
+ session.heartbeatMonitor.stop();
353
+ session.reconnectState.close();
354
+ const clientError = error instanceof EnclaveClientError ? error : new EnclaveClientError(
355
+ "NETWORK_ERROR",
356
+ error instanceof Error ? error.message : "Unknown error",
357
+ error instanceof Error ? error : void 0
358
+ );
359
+ this.completeSession(sessionId, {
360
+ success: false,
361
+ sessionId,
362
+ error: { code: clientError.code, message: clientError.message },
363
+ events: session.events,
364
+ stats: {
365
+ durationMs: Date.now() - session.startTime,
366
+ toolCallCount: session.toolCallCount,
367
+ stdoutBytes: session.stdoutBytes
368
+ }
369
+ });
370
+ }
371
+ /**
372
+ * Complete a session and clean up.
373
+ */
374
+ completeSession(sessionId, result) {
375
+ const session = this.activeSessions.get(sessionId);
376
+ if (!session) return;
377
+ this.activeSessions.delete(sessionId);
378
+ session.resolve(result);
379
+ }
380
+ /**
381
+ * Attempt to reconnect a session.
382
+ */
383
+ async reconnectSession(sessionId) {
384
+ const session = this.activeSessions.get(sessionId);
385
+ if (!session) return;
386
+ const url = `${this.config.baseUrl}/sessions/${sessionId}/stream`;
387
+ const params = new URLSearchParams();
388
+ if (session.lastSequence > 0) {
389
+ params.set("from", String(session.lastSequence + 1));
390
+ }
391
+ try {
392
+ const response = await this.config.fetch(`${url}?${params}`, {
393
+ method: "GET",
394
+ headers: {
395
+ ...this.buildHeaders(),
396
+ Accept: "application/x-ndjson"
397
+ },
398
+ signal: session.abortController.signal
399
+ });
400
+ if (!response.ok) {
401
+ throw new EnclaveClientError("RECONNECT_FAILED", `Reconnection failed: ${response.status}`);
402
+ }
403
+ session.reconnectState.onConnected();
404
+ session.heartbeatMonitor.start();
405
+ await this.streamResponse(session, response);
406
+ } catch (error) {
407
+ if (error instanceof Error && error.name === "AbortError") {
408
+ return;
409
+ }
410
+ if (session.reconnectState.canReconnect()) {
411
+ session.reconnectState.onDisconnected(error instanceof Error ? error.message : "Reconnection failed");
412
+ } else {
413
+ this.handleSessionError(sessionId, error);
414
+ }
415
+ }
416
+ }
417
+ /**
418
+ * Build request headers.
419
+ */
420
+ buildHeaders() {
421
+ return {
422
+ ...this.config.headers
423
+ };
424
+ }
425
+ };
426
+
427
+ // libs/enclavejs-client/src/index.ts
428
+ var import_stream2 = require("@enclave-vm/stream");
429
+ // Annotate the CommonJS export names for ESM import in node:
430
+ 0 && (module.exports = {
431
+ ConnectionState,
432
+ EnclaveClient,
433
+ EnclaveClientError
434
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enclave-vm/client",
3
- "version": "0.0.1",
3
+ "version": "2.8.0",
4
4
  "description": "Browser and Node.js client SDK for the EnclaveJS streaming runtime",
5
5
  "author": "AgentFront <info@agentfront.dev>",
6
6
  "homepage": "https://github.com/agentfront/enclave",
@@ -20,19 +20,20 @@
20
20
  "bugs": {
21
21
  "url": "https://github.com/agentfront/enclave/issues"
22
22
  },
23
- "main": "./src/index.js",
24
- "types": "./src/index.d.ts",
23
+ "main": "./index.js",
24
+ "module": "./esm/index.mjs",
25
+ "types": "./index.d.ts",
25
26
  "exports": {
26
27
  "./package.json": "./package.json",
27
28
  ".": {
28
- "types": "./src/index.d.ts",
29
- "import": "./src/index.js",
30
- "default": "./src/index.js"
29
+ "types": "./index.d.ts",
30
+ "import": "./esm/index.mjs",
31
+ "require": "./index.js",
32
+ "default": "./index.js"
31
33
  }
32
34
  },
33
35
  "dependencies": {
34
- "@enclave-vm/types": "0.0.1",
35
- "@enclave-vm/stream": "0.0.1"
36
- },
37
- "type": "commonjs"
36
+ "@enclave-vm/types": "2.8.0",
37
+ "@enclave-vm/stream": "2.8.0"
38
+ }
38
39
  }
package/types.d.ts.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAE/E;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAEjC;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB;;;OAGG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAE9B;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,KAAK,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC;IAEtB;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC,aAAa,CAAC,CAAC;IAEhC;;OAEG;IAC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