lody 0.110.0-nightly.2 → 0.110.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/dist/acp-interaction-owner-CdfQZsA1.js +506 -0
- package/dist/{agent-execution-hlYU1cH3.js → agent-execution-BDaiNzV1.js} +4 -4
- package/dist/baguette-worker.js +5 -5
- package/dist/chunks/{vendor-@agentclientprotocol-sdk-BUeGxMBH.js → vendor-@agentclientprotocol-sdk-CPEUKdYX.js} +2 -2
- package/dist/chunks/{vendor-@effect-platform-node-shared-DjCEqkC9.js → vendor-@effect-platform-node-shared-DPHSenVC.js} +2 -2
- package/dist/chunks/{vendor-@loro-dev-streams-client-Dk7A1vH6.js → vendor-@loro-dev-streams-client-CpTcEBa6.js} +2 -2
- package/dist/chunks/{vendor-@loro-dev-streams-crdt-CXaz0KAj.js → vendor-@loro-dev-streams-crdt-DvmYdPir.js} +106 -54
- package/dist/chunks/{vendor-@modelcontextprotocol-client-BlwxOh_1.js → vendor-@modelcontextprotocol-client-bw7HkPGf.js} +3 -3
- package/dist/chunks/{vendor-@modelcontextprotocol-core-tzYK5mm7.js → vendor-@modelcontextprotocol-core-C9sSLfHz.js} +2 -2
- package/dist/chunks/{vendor-@modelcontextprotocol-node-DS52uW4W.js → vendor-@modelcontextprotocol-node-Cru6i8sK.js} +2 -2
- package/dist/chunks/{vendor-@modelcontextprotocol-server-BAWNhyqZ.js → vendor-@modelcontextprotocol-server-CRe5__5l.js} +3 -3
- package/dist/chunks/{vendor-@opencode-codemode-CUE108XC.js → vendor-@opencode-codemode-BFbWzBBw.js} +2 -2
- package/dist/chunks/{vendor-effect-C22e2_AS.js → vendor-effect-qEtB86Xz.js} +37 -37
- package/dist/chunks/vendor-ignore-BCfhnyrk.js +467 -0
- package/dist/chunks/{vendor-loro-mirror-D0y5f7tQ.js → vendor-loro-mirror-g7rEjGgt.js} +29 -2
- package/dist/chunks/{vendor-loro-repo-D3xGk94w.js → vendor-loro-repo-CINiPL9T.js} +2 -2
- package/dist/chunks/{vendor-zod-DiMyHyms.js → vendor-zod-CBWGVFD-.js} +3 -3
- package/dist/{client-C0dVBPrw.js → client-CdDGKDiJ.js} +41 -19
- package/dist/{cloudflared-native-Dr-ONwkj.js → cloudflared-native-BVXRY6r-.js} +4 -4
- package/dist/cloudflared-worker.js +6 -6
- package/dist/{code-collab-BBrJdOB3.js → code-collab-Q9UJxF5f.js} +888 -82
- package/dist/code-collab-watch-worker.js +9 -2
- package/dist/{daemon-session-tools-BFzk4fvS.js → daemon-session-tools-B2o_Rn8o.js} +41 -19
- package/dist/{diff-line-counts-ZFoUuNm3.js → diff-line-counts-Cfd7ywAS.js} +2 -2
- package/dist/{diff-worker-task-BUYBfBiQ.js → diff-worker-task-D7Ri1Pxx.js} +2 -2
- package/dist/diff-worker.js +5 -5
- package/dist/{directory-handle-BHhLBxii.js → directory-handle-D3jV-baK.js} +164 -31
- package/dist/{dsh-plugins-C48QLrR-.js → dsh-plugins-bpB7jsn7.js} +54 -53
- package/dist/file-index-scan-worker.js +32 -21
- package/dist/{file-lock-B_Tx2uPq.js → file-lock-De7Gp7uV.js} +42 -20
- package/dist/{index-DEA18Z-q.js → index-CCkzRWUs.js} +45 -24
- package/dist/index-Ct3cdpLb.js +550 -0
- package/dist/{index-BIQRmTxq.js → index-DCYryhva.js} +4 -4
- package/dist/{index-xKJslFlw.js → index-DCvrDzQ4.js} +42 -20
- package/dist/{index-DCexJ77O.js → index-Dr_w9T6F.js} +42 -20
- package/dist/index.js +40 -18
- package/dist/{ios-simulator-B_JXXf0N.js → ios-simulator-BJjtVdO8.js} +15 -10
- package/dist/{process-BXohi61W.js → process-CWlMaHnu.js} +3 -3
- package/dist/{process-options-BERNSpsz.js → process-options-D4mni5t2.js} +27 -4
- package/dist/{realtime-journal-r8dEOOCR.js → realtime-journal-3xRwHQnE.js} +2 -2
- package/dist/{register-vuICGnhj.js → register-D7pWlArd.js} +3076 -6111
- package/dist/{remote-pairing-CdjaMcY8.js → remote-pairing-1sJYblth.js} +43 -22
- package/dist/{reset-identity-C3VkcfQ_.js → reset-identity-DdzOplMy.js} +44 -23
- package/dist/{review-viewer-hHV1PHBW.js → review-viewer-Be1SFRPK.js} +6 -6
- package/dist/{schedule-command-client-BFjoy6RX.js → schedule-command-client--Bl9vjMS.js} +6 -113
- package/dist/{telemetry-BH2inD0x.js → telemetry-CHUhwRVv.js} +14100 -1333
- package/dist/{workspace-legacy-DQr1icus.js → workspace-legacy-CAbHfoet.js} +178 -40
- package/dist/workspace-watch-path-policy-CxHey7qg.js +33 -0
- package/dist/{workspace-watch-path-policy-BRzhvEkG.js → workspace-watch-protocol-CKvroybp.js} +8 -26
- package/package.json +2 -1
- package/dist/schedule-repository-B9V6swHf.js +0 -399
- /package/dist/{zstd.wasm → chunks/zstd.wasm} +0 -0
|
@@ -0,0 +1,506 @@
|
|
|
1
|
+
import { createHash } from "node:crypto";
|
|
2
|
+
import { aT as e2eeAcpInteractionInputContext, aU as e2eeAcpInteractionResponseContext } from "./telemetry-CHUhwRVv.js";
|
|
3
|
+
import "./chunks/vendor-effect-qEtB86Xz.js";
|
|
4
|
+
import "./chunks/vendor-commander-B86VeeRa.js";
|
|
5
|
+
import "node:events";
|
|
6
|
+
import "node:child_process";
|
|
7
|
+
import "node:path";
|
|
8
|
+
import "node:fs";
|
|
9
|
+
import "node:process";
|
|
10
|
+
import "./chunks/commonjs-helpers-CCIqAdii.js";
|
|
11
|
+
import "./ios-simulator-BJjtVdO8.js";
|
|
12
|
+
import "./chunks/vendor-zod-CBWGVFD-.js";
|
|
13
|
+
import "./code-collab-Q9UJxF5f.js";
|
|
14
|
+
import "./chunks/vendor-immer-F2vkwr8n.js";
|
|
15
|
+
import "./chunks/vendor-loro-crdt-B0fZaMbx.js";
|
|
16
|
+
import "./chunks/vendor-loro-mirror-g7rEjGgt.js";
|
|
17
|
+
import "./chunks/vendor-croner-B5ClZHUj.js";
|
|
18
|
+
import "./chunks/vendor-mdast-util-from-markdown-DQq6W3Ku.js";
|
|
19
|
+
import "./chunks/vendor-micromark-util-decode-numeric-character-reference-CsVBVMCu.js";
|
|
20
|
+
import "./chunks/vendor-micromark-util-decode-string-CnfYQNdL.js";
|
|
21
|
+
import "./chunks/vendor-decode-named-character-reference-Cg-JoaDu.js";
|
|
22
|
+
import "./chunks/vendor-character-entities-Bxv0AsGv.js";
|
|
23
|
+
import "./chunks/vendor-micromark-util-normalize-identifier-CuJVDrso.js";
|
|
24
|
+
import "./chunks/vendor-micromark-ClMM9aU1.js";
|
|
25
|
+
import "./chunks/vendor-micromark-util-combine-extensions-CP27u0Ku.js";
|
|
26
|
+
import "./chunks/vendor-micromark-util-chunked-C1m2KFE6.js";
|
|
27
|
+
import "./chunks/vendor-micromark-factory-space-CPfaxdhZ.js";
|
|
28
|
+
import "./chunks/vendor-micromark-util-character-CzH0fY4C.js";
|
|
29
|
+
import "./chunks/vendor-micromark-core-commonmark-CqPHqiv_.js";
|
|
30
|
+
import "./chunks/vendor-micromark-util-classify-character-xx4e3DlD.js";
|
|
31
|
+
import "./chunks/vendor-micromark-util-resolve-all-DOI1xbmr.js";
|
|
32
|
+
import "./chunks/vendor-micromark-util-subtokenize-IWrw0Dr7.js";
|
|
33
|
+
import "./chunks/vendor-micromark-factory-destination-CJ-Iubzz.js";
|
|
34
|
+
import "./chunks/vendor-micromark-factory-label-B03sLwXb.js";
|
|
35
|
+
import "./chunks/vendor-micromark-factory-title-Culd8Onz.js";
|
|
36
|
+
import "./chunks/vendor-micromark-factory-whitespace-Dg9BFbm3.js";
|
|
37
|
+
import "./chunks/vendor-micromark-util-html-tag-name-CslaPeLE.js";
|
|
38
|
+
import "./chunks/vendor-unist-util-stringify-position-DD2_lbmV.js";
|
|
39
|
+
import "./chunks/vendor-mdast-util-to-string-cbiyYImb.js";
|
|
40
|
+
import "./chunks/vendor-@loro-dev-streams-crdt-DvmYdPir.js";
|
|
41
|
+
import "./chunks/vendor-@loro-dev-streams-client-CpTcEBa6.js";
|
|
42
|
+
import "./chunks/vendor-@loro-dev-flock-wasm-DEhVwup8.js";
|
|
43
|
+
import "node:util";
|
|
44
|
+
import "node:os";
|
|
45
|
+
import "./process-CWlMaHnu.js";
|
|
46
|
+
import "node:url";
|
|
47
|
+
import "./chunks/vendor-cross-spawn-BK3s9AWC.js";
|
|
48
|
+
import "child_process";
|
|
49
|
+
import "path";
|
|
50
|
+
import "./chunks/vendor-which-TJLVTxoK.js";
|
|
51
|
+
import "./chunks/vendor-isexe-BmdU-Sy7.js";
|
|
52
|
+
import "fs";
|
|
53
|
+
import "./chunks/vendor-path-key-Dc8-E0k2.js";
|
|
54
|
+
import "./chunks/vendor-shebang-command-CiljJy-j.js";
|
|
55
|
+
import "./chunks/vendor-shebang-regex-CzQXTLh9.js";
|
|
56
|
+
import "./chunks/vendor-@effect-platform-node-shared-DPHSenVC.js";
|
|
57
|
+
import "node:stream";
|
|
58
|
+
import "node:buffer";
|
|
59
|
+
import "node:net";
|
|
60
|
+
import "node:tls";
|
|
61
|
+
import "events";
|
|
62
|
+
import "https";
|
|
63
|
+
import "http";
|
|
64
|
+
import "net";
|
|
65
|
+
import "tls";
|
|
66
|
+
import "crypto";
|
|
67
|
+
import "stream";
|
|
68
|
+
import "url";
|
|
69
|
+
import "zlib";
|
|
70
|
+
import "buffer";
|
|
71
|
+
import "util";
|
|
72
|
+
import "node:zlib";
|
|
73
|
+
import "node:readline";
|
|
74
|
+
import "node:http";
|
|
75
|
+
import "node:string_decoder";
|
|
76
|
+
import "./process-options-D4mni5t2.js";
|
|
77
|
+
import "./chunks/vendor-winston-LrGS-jQo.js";
|
|
78
|
+
import "string_decoder";
|
|
79
|
+
import "./chunks/vendor-logform-BH1Pfpxu.js";
|
|
80
|
+
import "./chunks/vendor-@colors-colors-7IEFuFeu.js";
|
|
81
|
+
import "os";
|
|
82
|
+
import "./chunks/vendor-triple-beam-BRouMyGQ.js";
|
|
83
|
+
import "./chunks/vendor-safe-stable-stringify-BHnCD80T.js";
|
|
84
|
+
import "./chunks/vendor-ms-Dn3Df89R.js";
|
|
85
|
+
import "./chunks/vendor-fecha-gUTAK55l.js";
|
|
86
|
+
import "./chunks/vendor-winston-transport-C2Om-fvA.js";
|
|
87
|
+
import "./chunks/vendor-readable-stream-CZmjmoRx.js";
|
|
88
|
+
import "./chunks/vendor-inherits-D_59AHwA.js";
|
|
89
|
+
import "./chunks/vendor-util-deprecate-B38qAuKi.js";
|
|
90
|
+
import "./chunks/vendor-string_decoder-D1bkpHzU.js";
|
|
91
|
+
import "./chunks/vendor-safe-buffer-CGWFcXiG.js";
|
|
92
|
+
import "./chunks/vendor-async-D6M8gbQw.js";
|
|
93
|
+
import "./chunks/vendor-@dabh-diagnostics-Cx3Fd-5h.js";
|
|
94
|
+
import "tty";
|
|
95
|
+
import "./chunks/vendor-@so-ric-colorspace-BKoLHgiw.js";
|
|
96
|
+
import "./chunks/vendor-kuler-DHNT81Xq.js";
|
|
97
|
+
import "./chunks/vendor-enabled-DJ4p4XmL.js";
|
|
98
|
+
import "./chunks/vendor-is-stream-D718fFkh.js";
|
|
99
|
+
import "./chunks/vendor-one-time-DD_3ni3j.js";
|
|
100
|
+
import "./chunks/vendor-fn.name-BP8EuNdj.js";
|
|
101
|
+
import "./chunks/vendor-stack-trace-B9LDz9q9.js";
|
|
102
|
+
import "./chunks/vendor-winston-daily-rotate-file-CTce6wji.js";
|
|
103
|
+
import "./chunks/vendor-object-hash-HzXrbOJn.js";
|
|
104
|
+
import "./chunks/vendor-file-stream-rotator-CxV9o5zx.js";
|
|
105
|
+
import "./chunks/vendor-moment-CvzSeL6T.js";
|
|
106
|
+
import "node:fs/promises";
|
|
107
|
+
import "./chunks/vendor-chalk-MVIUzg44.js";
|
|
108
|
+
import "node:tty";
|
|
109
|
+
import "./chunks/vendor-ora-VZtLV0pD.js";
|
|
110
|
+
import "./chunks/vendor-cli-cursor-BxGMzrFe.js";
|
|
111
|
+
import "./chunks/vendor-restore-cursor-CwD-7Pii.js";
|
|
112
|
+
import "./chunks/vendor-onetime-DSKa82UT.js";
|
|
113
|
+
import "./chunks/vendor-mimic-function-CHO1qCx1.js";
|
|
114
|
+
import "./chunks/vendor-signal-exit-DRdlFQBM.js";
|
|
115
|
+
import "./chunks/vendor-cli-spinners-E-5QnvGa.js";
|
|
116
|
+
import "./chunks/vendor-log-symbols-C8q_g-wm.js";
|
|
117
|
+
import "./chunks/vendor-is-unicode-supported-CEShE-o6.js";
|
|
118
|
+
import "./chunks/vendor-strip-ansi-CxB8r69M.js";
|
|
119
|
+
import "./chunks/vendor-ansi-regex-CsTjVdGp.js";
|
|
120
|
+
import "./chunks/vendor-string-width-BwzuLEZH.js";
|
|
121
|
+
import "./chunks/vendor-get-east-asian-width-DgBfHITC.js";
|
|
122
|
+
import "./chunks/vendor-emoji-regex-DynepNLl.js";
|
|
123
|
+
import "./chunks/vendor-is-fullwidth-code-point-BgRCYA7I.js";
|
|
124
|
+
import "./chunks/vendor-is-interactive-B_OFCXvN.js";
|
|
125
|
+
import "./chunks/vendor-stdin-discarder-n_NjWtpp.js";
|
|
126
|
+
import "./chunks/vendor-better-auth-D1bP-dEy.js";
|
|
127
|
+
import "./chunks/vendor-@better-auth-core-C7hql1k7.js";
|
|
128
|
+
import "./chunks/vendor-nanostores-U58ckFTK.js";
|
|
129
|
+
import "./chunks/vendor-defu-BJ13cSX9.js";
|
|
130
|
+
import "./chunks/vendor-@better-fetch-fetch-Cuh8CnyA.js";
|
|
131
|
+
import "./chunks/vendor-@better-auth-api-key-Dy9PtbSj.js";
|
|
132
|
+
import "./chunks/vendor-@convex-dev-better-auth-DvFvwHmk.js";
|
|
133
|
+
import "perf_hooks";
|
|
134
|
+
import "./chunks/vendor-ws-DPfDb9HP.js";
|
|
135
|
+
import "./chunks/vendor-loro-repo-CINiPL9T.js";
|
|
136
|
+
import "better-sqlite3";
|
|
137
|
+
import "./chunks/vendor-proxy-from-env-agT35mrt.js";
|
|
138
|
+
import "./chunks/vendor-https-proxy-agent-BJYUwzkZ.js";
|
|
139
|
+
import "assert";
|
|
140
|
+
import "./chunks/vendor-debug-ywhXvw99.js";
|
|
141
|
+
import "./chunks/vendor-supports-color-Ddvw3sLl.js";
|
|
142
|
+
import "./chunks/vendor-agent-base-Chp0lO_8.js";
|
|
143
|
+
import "fs/promises";
|
|
144
|
+
import "node:diagnostics_channel";
|
|
145
|
+
import "./chunks/vendor-undici-BBneXIsH.js";
|
|
146
|
+
import "node:assert";
|
|
147
|
+
import "node:querystring";
|
|
148
|
+
import "node:perf_hooks";
|
|
149
|
+
import "node:util/types";
|
|
150
|
+
import "node:worker_threads";
|
|
151
|
+
import "node:async_hooks";
|
|
152
|
+
import "node:console";
|
|
153
|
+
import "node:dns";
|
|
154
|
+
import "./chunks/vendor-uuid-B-b1kXnZ.js";
|
|
155
|
+
import "./chunks/vendor-convex-wRAQitRr.js";
|
|
156
|
+
import "module";
|
|
157
|
+
import "./chunks/vendor-@modelcontextprotocol-server-CRe5__5l.js";
|
|
158
|
+
import "./chunks/vendor-@modelcontextprotocol-core-C9sSLfHz.js";
|
|
159
|
+
import "node:timers/promises";
|
|
160
|
+
import "./chunks/vendor-cli-table3-B99hA5do.js";
|
|
161
|
+
import "./chunks/vendor-yaml-D87Y_V4L.js";
|
|
162
|
+
import "process";
|
|
163
|
+
import "./chunks/vendor-@modelcontextprotocol-node-Cru6i8sK.js";
|
|
164
|
+
import "./chunks/vendor-@hono-node-server-C5GxSa1x.js";
|
|
165
|
+
import "http2";
|
|
166
|
+
import "./chunks/vendor-posthog-node-Bf37-Nem.js";
|
|
167
|
+
import "./chunks/vendor-@posthog-core-Cam3Z07F.js";
|
|
168
|
+
function createAcpInteractionOwner(options) {
|
|
169
|
+
const sessions = /* @__PURE__ */ new Map();
|
|
170
|
+
const tombstones = /* @__PURE__ */ new Map();
|
|
171
|
+
const tombstoneKey = (device, id) => `${device}:${id}`;
|
|
172
|
+
const tombstoneLifetime = 9e5;
|
|
173
|
+
const now = options.now ?? Date.now;
|
|
174
|
+
const capacity = options.maxSessions ?? 32;
|
|
175
|
+
const lifetime = Math.min(options.maxLifetimeMs ?? 3e5, 3e5);
|
|
176
|
+
if (!Number.isFinite(lifetime) || lifetime <= 0) throw new Error("e2ee_acp_invalid_lifetime");
|
|
177
|
+
const closeTimeout = options.closeTimeoutMs ?? 1e3;
|
|
178
|
+
if (!Number.isFinite(closeTimeout) || closeTimeout <= 0 || closeTimeout > 3e4)
|
|
179
|
+
throw new Error("e2ee_acp_invalid_close_timeout");
|
|
180
|
+
let closed = false;
|
|
181
|
+
const remove = (id, session) => {
|
|
182
|
+
if (session.authority && session.onRevoke)
|
|
183
|
+
session.authority.signal.removeEventListener("abort", session.onRevoke);
|
|
184
|
+
if (sessions.get(id) === session) sessions.delete(id);
|
|
185
|
+
};
|
|
186
|
+
const stop = (session, state) => {
|
|
187
|
+
if (session.state !== "running") {
|
|
188
|
+
if (state === "expired") {
|
|
189
|
+
session.state = state;
|
|
190
|
+
session.progress = [];
|
|
191
|
+
session.progressBytes = 0;
|
|
192
|
+
session.result = void 0;
|
|
193
|
+
session.recipient = void 0;
|
|
194
|
+
}
|
|
195
|
+
return;
|
|
196
|
+
}
|
|
197
|
+
session.state = state;
|
|
198
|
+
session.progress = [];
|
|
199
|
+
session.progressBytes = 0;
|
|
200
|
+
session.result = void 0;
|
|
201
|
+
session.recipient = void 0;
|
|
202
|
+
session.controller.abort();
|
|
203
|
+
if (session.work)
|
|
204
|
+
void Promise.resolve().then(() => session.work?.cancel()).catch(() => void 0);
|
|
205
|
+
};
|
|
206
|
+
const checkAuthority = (session) => {
|
|
207
|
+
let current = !closed;
|
|
208
|
+
try {
|
|
209
|
+
current = current && (!session.authority || !session.authority.signal.aborted && session.authority.isCurrent());
|
|
210
|
+
} catch {
|
|
211
|
+
current = false;
|
|
212
|
+
}
|
|
213
|
+
if (!current) {
|
|
214
|
+
if (session.state === "running") stop(session, "cancelled");
|
|
215
|
+
else {
|
|
216
|
+
session.state = "cancelled";
|
|
217
|
+
session.progress = [];
|
|
218
|
+
session.progressBytes = 0;
|
|
219
|
+
session.result = void 0;
|
|
220
|
+
session.recipient = void 0;
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
return current;
|
|
224
|
+
};
|
|
225
|
+
const expire = (id, session) => {
|
|
226
|
+
stop(session, "expired");
|
|
227
|
+
if (session.settled) remove(id, session);
|
|
228
|
+
};
|
|
229
|
+
const ensureLive = (id, session) => {
|
|
230
|
+
checkAuthority(session);
|
|
231
|
+
if (now() >= session.deadline) expire(id, session);
|
|
232
|
+
};
|
|
233
|
+
const bounded = (value) => {
|
|
234
|
+
const text = JSON.stringify(value);
|
|
235
|
+
if (text === void 0 || Buffer.byteLength(text) > 65536)
|
|
236
|
+
throw new Error("e2ee_acp_content_limit");
|
|
237
|
+
return JSON.parse(text);
|
|
238
|
+
};
|
|
239
|
+
const reply = async (id, session, context) => {
|
|
240
|
+
if (!checkAuthority(session)) throw new Error("e2ee_acp_authority_revoked");
|
|
241
|
+
ensureLive(id, session);
|
|
242
|
+
const progress = session.progress[0];
|
|
243
|
+
if (progress) progress.pinned = true;
|
|
244
|
+
const state = progress ? "running" : session.state;
|
|
245
|
+
const result = { type: "machine/acp-interaction", interactionRequestId: id, state };
|
|
246
|
+
if (state === "running" && session.recipient)
|
|
247
|
+
result.inputPublicKey = session.recipient.publicKey;
|
|
248
|
+
const content = progress ? { progress: progress.value, progressCursor: progress.cursor } : state === "completed" ? { result: { kind: session.start.kind, response: session.result } } : void 0;
|
|
249
|
+
if (content) {
|
|
250
|
+
result.responseEnvelope = await options.encrypt(
|
|
251
|
+
session.start.responseKey,
|
|
252
|
+
JSON.stringify(content),
|
|
253
|
+
e2eeAcpInteractionResponseContext({
|
|
254
|
+
workspaceId: options.workspaceId,
|
|
255
|
+
machineId: options.machineId,
|
|
256
|
+
requesterDevice: session.requester,
|
|
257
|
+
interactionRequestId: id,
|
|
258
|
+
requestId: context.requestId
|
|
259
|
+
})
|
|
260
|
+
);
|
|
261
|
+
if (!checkAuthority(session)) throw new Error("e2ee_acp_authority_revoked");
|
|
262
|
+
ensureLive(id, session);
|
|
263
|
+
if (progress && session.progress[0]?.cursor === progress.cursor) {
|
|
264
|
+
session.deliveredCursor = Math.max(session.deliveredCursor, progress.cursor);
|
|
265
|
+
} else if (!progress && session.state !== state) return reply(id, session, context);
|
|
266
|
+
if (progress && now() >= session.deadline) return reply(id, session, context);
|
|
267
|
+
}
|
|
268
|
+
return result;
|
|
269
|
+
};
|
|
270
|
+
return {
|
|
271
|
+
async handle(params, context) {
|
|
272
|
+
if (closed || !/^[0-9a-f]{64}$/.test(context.requesterDevice) || !/^[0-9a-f]{32}$/.test(context.requestId) || !Number.isFinite(context.expiresAt) || context.expiresAt <= now())
|
|
273
|
+
throw new Error("e2ee_acp_invalid_context");
|
|
274
|
+
const id = params.action === "start" ? context.requestId : params.interactionRequestId;
|
|
275
|
+
if (params.action === "start") {
|
|
276
|
+
if (tombstones.has(tombstoneKey(context.requesterDevice, id)))
|
|
277
|
+
throw new Error("e2ee_acp_cancelled_before_start");
|
|
278
|
+
if (sessions.has(id)) throw new Error("e2ee_acp_duplicate_start");
|
|
279
|
+
if (sessions.size >= capacity) throw new Error("e2ee_acp_capacity");
|
|
280
|
+
const deadline = now() + lifetime;
|
|
281
|
+
const session2 = {
|
|
282
|
+
requester: context.requesterDevice,
|
|
283
|
+
start: params,
|
|
284
|
+
deadline,
|
|
285
|
+
state: "running",
|
|
286
|
+
controller: new AbortController(),
|
|
287
|
+
consumed: /* @__PURE__ */ new Set(),
|
|
288
|
+
submitted: /* @__PURE__ */ new Set(),
|
|
289
|
+
progress: [],
|
|
290
|
+
progressBytes: 0,
|
|
291
|
+
nextCursor: 1,
|
|
292
|
+
deliveredCursor: 0,
|
|
293
|
+
acknowledgedCursor: 0,
|
|
294
|
+
timer: setTimeout(() => expire(id, session2), Math.max(1, deadline - now())),
|
|
295
|
+
settled: false,
|
|
296
|
+
ready: false,
|
|
297
|
+
activated: false,
|
|
298
|
+
authority: context.authority
|
|
299
|
+
};
|
|
300
|
+
sessions.set(id, session2);
|
|
301
|
+
if (session2.authority) {
|
|
302
|
+
session2.onRevoke = () => {
|
|
303
|
+
checkAuthority(session2);
|
|
304
|
+
};
|
|
305
|
+
session2.authority.signal.addEventListener("abort", session2.onRevoke, { once: true });
|
|
306
|
+
}
|
|
307
|
+
try {
|
|
308
|
+
if (!checkAuthority(session2)) throw new Error("e2ee_acp_authority_revoked");
|
|
309
|
+
session2.recipient = await options.createRecipient();
|
|
310
|
+
ensureLive(id, session2);
|
|
311
|
+
if (now() >= context.expiresAt) throw new Error("e2ee_acp_start_expired");
|
|
312
|
+
if (!checkAuthority(session2)) throw new Error("e2ee_acp_authority_revoked");
|
|
313
|
+
if (closed || session2.state !== "running") {
|
|
314
|
+
session2.recipient = void 0;
|
|
315
|
+
session2.settled = true;
|
|
316
|
+
expire(id, session2);
|
|
317
|
+
return reply(id, session2, context);
|
|
318
|
+
}
|
|
319
|
+
session2.ready = true;
|
|
320
|
+
session2.settled = true;
|
|
321
|
+
return await reply(id, session2, context);
|
|
322
|
+
} catch (error) {
|
|
323
|
+
stop(session2, "cancelled");
|
|
324
|
+
if (!session2.work) session2.settled = true;
|
|
325
|
+
throw error;
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
const session = sessions.get(id);
|
|
329
|
+
if (!session && params.action === "cancel") {
|
|
330
|
+
if (context.authority && (context.authority.signal.aborted || !context.authority.isCurrent()))
|
|
331
|
+
throw new Error("e2ee_acp_authority_revoked");
|
|
332
|
+
const key = tombstoneKey(context.requesterDevice, id);
|
|
333
|
+
if (!tombstones.has(key)) {
|
|
334
|
+
if (tombstones.size >= 128) throw new Error("e2ee_acp_tombstone_capacity");
|
|
335
|
+
tombstones.set(
|
|
336
|
+
key,
|
|
337
|
+
setTimeout(() => tombstones.delete(key), tombstoneLifetime)
|
|
338
|
+
);
|
|
339
|
+
}
|
|
340
|
+
return { type: "machine/acp-interaction", interactionRequestId: id, state: "cancelled" };
|
|
341
|
+
}
|
|
342
|
+
if (!session || session.requester !== context.requesterDevice)
|
|
343
|
+
throw new Error("e2ee_acp_not_found");
|
|
344
|
+
if (!checkAuthority(session)) throw new Error("e2ee_acp_authority_revoked");
|
|
345
|
+
ensureLive(id, session);
|
|
346
|
+
if (params.action === "activate") {
|
|
347
|
+
if (context.authority && (context.authority.signal.aborted || !context.authority.isCurrent()))
|
|
348
|
+
throw new Error("e2ee_acp_authority_revoked");
|
|
349
|
+
if (session.state !== "running" || !session.ready || session.activated)
|
|
350
|
+
throw new Error("e2ee_acp_activation_unavailable");
|
|
351
|
+
session.activated = true;
|
|
352
|
+
session.settled = false;
|
|
353
|
+
const deadline = session.deadline;
|
|
354
|
+
const start = session.start;
|
|
355
|
+
try {
|
|
356
|
+
session.work = options.start({
|
|
357
|
+
requestId: id,
|
|
358
|
+
configId: start.configId,
|
|
359
|
+
kind: start.kind,
|
|
360
|
+
...start.kind === "probe" ? { force: start.force } : { methodId: start.methodId },
|
|
361
|
+
signal: session.controller.signal,
|
|
362
|
+
onProgress: (progress) => {
|
|
363
|
+
if (!checkAuthority(session) || session.state !== "running" || now() >= deadline)
|
|
364
|
+
return;
|
|
365
|
+
try {
|
|
366
|
+
const value = bounded(progress);
|
|
367
|
+
const bytes = Buffer.byteLength(JSON.stringify(value));
|
|
368
|
+
const previous = session.progress[session.progress.length - 1];
|
|
369
|
+
const current = value;
|
|
370
|
+
const prior = previous?.value;
|
|
371
|
+
const replaceable = current && prior && !Array.isArray(current) && !Array.isArray(prior) && previous && !previous.pinned && (current.status === "runtime-download" && prior.status === current.status && prior.runtimeName === current.runtimeName && prior.runtimePhase === current.runtimePhase || current.type === "machine/acp-binary-progress" && prior.type === current.type && current.status === prior.status && current.agentType === prior.agentType || current.status === "output" && prior.status === "output" && current.stream === prior.stream && typeof current.output === "string" && typeof prior.output === "string");
|
|
372
|
+
if (replaceable && previous) {
|
|
373
|
+
const merged = current.status === "output" ? {
|
|
374
|
+
...current,
|
|
375
|
+
output: (String(prior?.output) + String(current.output)).slice(-8192)
|
|
376
|
+
} : value;
|
|
377
|
+
const mergedBytes = Buffer.byteLength(JSON.stringify(merged));
|
|
378
|
+
if (session.progressBytes - previous.bytes + mergedBytes <= 262144) {
|
|
379
|
+
session.progressBytes += mergedBytes - previous.bytes;
|
|
380
|
+
previous.value = merged;
|
|
381
|
+
previous.bytes = mergedBytes;
|
|
382
|
+
return;
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
if (session.progress.length >= 32 || session.progressBytes + bytes > 262144) {
|
|
386
|
+
const queued = session.progress;
|
|
387
|
+
const queuedBytes = session.progressBytes;
|
|
388
|
+
stop(session, "cancelled");
|
|
389
|
+
session.progress = queued;
|
|
390
|
+
session.progressBytes = queuedBytes;
|
|
391
|
+
return;
|
|
392
|
+
}
|
|
393
|
+
session.progress.push({ cursor: session.nextCursor++, value, bytes });
|
|
394
|
+
session.progressBytes += bytes;
|
|
395
|
+
} catch {
|
|
396
|
+
stop(session, "cancelled");
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
});
|
|
400
|
+
if (session.state !== "running") {
|
|
401
|
+
session.controller.abort();
|
|
402
|
+
void Promise.resolve().then(() => session.work?.cancel()).catch(() => void 0);
|
|
403
|
+
}
|
|
404
|
+
void session.work.result.then(
|
|
405
|
+
(result) => {
|
|
406
|
+
if (!checkAuthority(session) || session.state !== "running" || now() >= deadline)
|
|
407
|
+
return;
|
|
408
|
+
try {
|
|
409
|
+
session.result = bounded(result);
|
|
410
|
+
session.state = "completed";
|
|
411
|
+
session.recipient = void 0;
|
|
412
|
+
} catch {
|
|
413
|
+
stop(session, "cancelled");
|
|
414
|
+
}
|
|
415
|
+
},
|
|
416
|
+
() => {
|
|
417
|
+
stop(session, "cancelled");
|
|
418
|
+
}
|
|
419
|
+
).finally(() => {
|
|
420
|
+
session.settled = true;
|
|
421
|
+
if (now() >= deadline || closed) {
|
|
422
|
+
clearTimeout(session.timer);
|
|
423
|
+
remove(id, session);
|
|
424
|
+
}
|
|
425
|
+
});
|
|
426
|
+
return await reply(id, session, context);
|
|
427
|
+
} catch (error) {
|
|
428
|
+
stop(session, "cancelled");
|
|
429
|
+
if (!session.work) session.settled = true;
|
|
430
|
+
throw error;
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
if (params.action === "poll" && params.progressAck !== void 0) {
|
|
434
|
+
if (params.progressAck > session.deliveredCursor) throw new Error("e2ee_acp_invalid_ack");
|
|
435
|
+
if (params.progressAck > session.acknowledgedCursor) {
|
|
436
|
+
session.acknowledgedCursor = params.progressAck;
|
|
437
|
+
while (session.progress[0] && session.progress[0].cursor <= params.progressAck) {
|
|
438
|
+
const removed = session.progress.shift();
|
|
439
|
+
if (removed) session.progressBytes -= removed.bytes;
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
if (params.action === "cancel") stop(session, "cancelled");
|
|
444
|
+
if (params.action === "submit") {
|
|
445
|
+
if (session.state !== "running" || !session.recipient || session.start.kind !== "authenticate" || !session.activated)
|
|
446
|
+
throw new Error("e2ee_acp_input_unavailable");
|
|
447
|
+
const fingerprint = createHash("sha256").update(JSON.stringify(params.inputEnvelope)).digest("hex");
|
|
448
|
+
if (session.consumed.has(fingerprint) || session.submitted.has(params.interactionId) || session.consumed.size >= 128)
|
|
449
|
+
throw new Error("e2ee_acp_input_replay");
|
|
450
|
+
session.consumed.add(fingerprint);
|
|
451
|
+
session.submitted.add(params.interactionId);
|
|
452
|
+
let invoked = false;
|
|
453
|
+
try {
|
|
454
|
+
const input = await session.recipient.decrypt(
|
|
455
|
+
params.inputEnvelope,
|
|
456
|
+
e2eeAcpInteractionInputContext({
|
|
457
|
+
workspaceId: options.workspaceId,
|
|
458
|
+
machineId: options.machineId,
|
|
459
|
+
requesterDevice: session.requester,
|
|
460
|
+
interactionRequestId: id,
|
|
461
|
+
interactionId: params.interactionId
|
|
462
|
+
})
|
|
463
|
+
);
|
|
464
|
+
if (!checkAuthority(session)) throw new Error("e2ee_acp_authority_revoked");
|
|
465
|
+
ensureLive(id, session);
|
|
466
|
+
if (session.state !== "running" || Buffer.byteLength(input) > 65536)
|
|
467
|
+
throw new Error("e2ee_acp_input_unavailable");
|
|
468
|
+
invoked = true;
|
|
469
|
+
await options.submit({ requestId: id, interactionId: params.interactionId, input });
|
|
470
|
+
} finally {
|
|
471
|
+
if (!invoked) session.submitted.delete(params.interactionId);
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
return reply(id, session, context);
|
|
475
|
+
},
|
|
476
|
+
async close() {
|
|
477
|
+
closed = true;
|
|
478
|
+
for (const timer of tombstones.values()) clearTimeout(timer);
|
|
479
|
+
tombstones.clear();
|
|
480
|
+
const pending = [];
|
|
481
|
+
for (const [id, session] of sessions) {
|
|
482
|
+
clearTimeout(session.timer);
|
|
483
|
+
stop(session, "cancelled");
|
|
484
|
+
if (session.work)
|
|
485
|
+
pending.push(
|
|
486
|
+
session.work.result.catch(() => void 0).finally(() => remove(id, session))
|
|
487
|
+
);
|
|
488
|
+
else if (session.settled) remove(id, session);
|
|
489
|
+
}
|
|
490
|
+
if (pending.length) {
|
|
491
|
+
let timer;
|
|
492
|
+
await Promise.race([
|
|
493
|
+
Promise.all(pending),
|
|
494
|
+
new Promise((resolve) => {
|
|
495
|
+
timer = setTimeout(resolve, closeTimeout);
|
|
496
|
+
})
|
|
497
|
+
]);
|
|
498
|
+
if (timer) clearTimeout(timer);
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
};
|
|
502
|
+
}
|
|
503
|
+
export {
|
|
504
|
+
createAcpInteractionOwner
|
|
505
|
+
};
|
|
506
|
+
//# sourceMappingURL=acp-interaction-owner-CdfQZsA1.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { existsSync } from "node:fs";
|
|
2
|
-
import { RealtimeJournal, RealtimeJournalError } from "./realtime-journal-
|
|
2
|
+
import { RealtimeJournal, RealtimeJournalError } from "./realtime-journal-3xRwHQnE.js";
|
|
3
3
|
import { D as DERIVED_START_GRACE_MS, M as MAX_DERIVED_TURNS_PER_ORIGIN } from "./derivation-limits-Nj5xnYK2.js";
|
|
4
|
-
import { f as fnUntraced, b as fail, H as currentTimeMillis, w as try_, a2 as map, a1 as succeed } from "./chunks/vendor-effect-
|
|
5
|
-
import { o as object, f as array, c as string, j as unknown, u as union, z as tuple, a as literal } from "./chunks/vendor-zod-
|
|
4
|
+
import { f as fnUntraced, b as fail, H as currentTimeMillis, w as try_, a2 as map, a1 as succeed } from "./chunks/vendor-effect-qEtB86Xz.js";
|
|
5
|
+
import { o as object, f as array, c as string, j as unknown, u as union, z as tuple, a as literal } from "./chunks/vendor-zod-CBWGVFD-.js";
|
|
6
6
|
import "node:crypto";
|
|
7
7
|
import "node:path";
|
|
8
8
|
import "better-sqlite3";
|
|
@@ -198,4 +198,4 @@ export {
|
|
|
198
198
|
lazyExecutionJournal,
|
|
199
199
|
makeEncryptedAgentExecution
|
|
200
200
|
};
|
|
201
|
-
//# sourceMappingURL=agent-execution-
|
|
201
|
+
//# sourceMappingURL=agent-execution-BDaiNzV1.js.map
|
package/dist/baguette-worker.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { s as startProcessLegacy, t as terminateChildTreeLegacy, b as runCommand, p as processLayer } from "./process-
|
|
1
|
+
import { s as startProcessLegacy, t as terminateChildTreeLegacy, b as runCommand, p as processLayer } from "./process-CWlMaHnu.js";
|
|
2
2
|
import { createServer } from "node:net";
|
|
3
3
|
import { setTimeout as setTimeout$1 } from "node:timers/promises";
|
|
4
4
|
import { mkdtemp, writeFile, rm } from "node:fs/promises";
|
|
5
5
|
import { tmpdir } from "node:os";
|
|
6
6
|
import { join } from "node:path";
|
|
7
|
-
import { cz as runPromise, bG as raceAll, v as promise, J as sleep, ak as provide } from "./chunks/vendor-effect-
|
|
8
|
-
import { c as string, o as object, u as union, g as _enum, n as number, a as literal } from "./chunks/vendor-zod-
|
|
9
|
-
import { I as IosSimulatorDeviceControlSchema } from "./ios-simulator-
|
|
7
|
+
import { cz as runPromise, bG as raceAll, v as promise, J as sleep, ak as provide } from "./chunks/vendor-effect-qEtB86Xz.js";
|
|
8
|
+
import { c as string, o as object, u as union, g as _enum, n as number, a as literal } from "./chunks/vendor-zod-CBWGVFD-.js";
|
|
9
|
+
import { I as IosSimulatorDeviceControlSchema } from "./ios-simulator-BJjtVdO8.js";
|
|
10
10
|
import "node:child_process";
|
|
11
11
|
import "node:fs";
|
|
12
12
|
import "node:url";
|
|
@@ -20,7 +20,7 @@ import "fs";
|
|
|
20
20
|
import "./chunks/vendor-path-key-Dc8-E0k2.js";
|
|
21
21
|
import "./chunks/vendor-shebang-command-CiljJy-j.js";
|
|
22
22
|
import "./chunks/vendor-shebang-regex-CzQXTLh9.js";
|
|
23
|
-
import "./chunks/vendor-@effect-platform-node-shared-
|
|
23
|
+
import "./chunks/vendor-@effect-platform-node-shared-DPHSenVC.js";
|
|
24
24
|
import "node:stream";
|
|
25
25
|
import "node:buffer";
|
|
26
26
|
import "node:tls";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { f as array, j as unknown, N as NEVER, o as object, r as record, c as string, u as union, a as literal, n as number, y as int, e as boolean, i as intersection, q as url } from "./vendor-zod-
|
|
1
|
+
import { f as array, j as unknown, N as NEVER, o as object, r as record, c as string, u as union, a as literal, n as number, y as int, e as boolean, i as intersection, q as url } from "./vendor-zod-CBWGVFD-.js";
|
|
2
2
|
const AGENT_METHODS = {
|
|
3
3
|
initialize: "initialize",
|
|
4
4
|
authenticate: "authenticate",
|
|
@@ -4009,4 +4009,4 @@ export {
|
|
|
4009
4009
|
methods as m,
|
|
4010
4010
|
ndJsonStream as n
|
|
4011
4011
|
};
|
|
4012
|
-
//# sourceMappingURL=vendor-@agentclientprotocol-sdk-
|
|
4012
|
+
//# sourceMappingURL=vendor-@agentclientprotocol-sdk-CPEUKdYX.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { al as fromChannel, am as mapDone, an as fromTransform, a1 as succeed, K as flatMap, ao as callback, M as sync, L as void_, ap as forever, aq as identity, ar as catchDone, as as done, A as raceFirst, b as fail, at as fromChannel$1, au as make, av as as, aw as addFinalizer, R as fail$1, $ as suspend, ax as makeUnsafe, ay as of, az as UnknownError, aA as Done, aB as systemError, aj as effect, aC as FileSystem, a2 as map, aD as serviceOption, aE as WatchBackend, aF as make$1, aG as tryPromise, aH as acquireRelease, ab as orDie, aI as flatMap$1, aJ as getOrElse, aK as unwrap, aL as badArgument, aM as effectify, w as try_, aN as some, aO as bytes, aP as none, aQ as fromNullishOr, aR as pipe, f as fnUntraced, aS as callback$1, aT as toNumber, aU as FileTypeId, aV as offerUnsafe, aW as runFork, aX as matchEffect, aY as offer, aZ as failCauseUnsafe, X as fail$2, a_ as endUnsafe } from "./vendor-effect-
|
|
1
|
+
import { al as fromChannel, am as mapDone, an as fromTransform, a1 as succeed, K as flatMap, ao as callback, M as sync, L as void_, ap as forever, aq as identity, ar as catchDone, as as done, A as raceFirst, b as fail, at as fromChannel$1, au as make, av as as, aw as addFinalizer, R as fail$1, $ as suspend, ax as makeUnsafe, ay as of, az as UnknownError, aA as Done, aB as systemError, aj as effect, aC as FileSystem, a2 as map, aD as serviceOption, aE as WatchBackend, aF as make$1, aG as tryPromise, aH as acquireRelease, ab as orDie, aI as flatMap$1, aJ as getOrElse, aK as unwrap, aL as badArgument, aM as effectify, w as try_, aN as some, aO as bytes, aP as none, aQ as fromNullishOr, aR as pipe, f as fnUntraced, aS as callback$1, aT as toNumber, aU as FileTypeId, aV as offerUnsafe, aW as runFork, aX as matchEffect, aY as offer, aZ as failCauseUnsafe, X as fail$2, a_ as endUnsafe } from "./vendor-effect-qEtB86Xz.js";
|
|
2
2
|
import "node:stream";
|
|
3
3
|
import "node:child_process";
|
|
4
4
|
import "node:buffer";
|
|
@@ -579,4 +579,4 @@ export {
|
|
|
579
579
|
fromWritable as f,
|
|
580
580
|
layer as l
|
|
581
581
|
};
|
|
582
|
-
//# sourceMappingURL=vendor-@effect-platform-node-shared-
|
|
582
|
+
//# sourceMappingURL=vendor-@effect-platform-node-shared-DPHSenVC.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h as gen, m as make, aw as addFinalizer, p as provide, a as make$1, a$ as make$2, b0 as cached, W as run, j as exit, N as close, Z as tap, M as sync, k as isFailure, c as combine, b1 as andThen, b2 as succeed, Q as asVoid, a9 as empty, I as doneUnsafe, L as void_, X as fail, b3 as isPromise, $ as suspend, i as interrupt, aG as tryPromise, b4 as catchIf, b5 as add, E as isSuccess, D as hasInterruptsOnly, K as flatMap, O as join, b6 as forEach, _ as _await, b7 as isDoneUnsafe, P as interruptible, a3 as TaggedError, S as void_$1, a4 as Service, a0 as succeed$1, a1 as succeed$2, a5 as Reference, f as fnUntraced, C as Clock, d as die, b8 as make$3, b as fail$1, e as make$4, aH as acquireRelease, v as promise, B as failCause, ab as orDie, u as mapError, ag as HttpClientError, ah as TransportError, A as raceFirst, J as sleep$1, z as makeUnsafe, y as timeoutOrElse, ao as callback, b9 as all, ad as ensuring, V as addFinalizer$1, U as catchCause, Y as uninterruptibleMask, R as fail$2, n as done, ba as failCause$1, af as fromWeb, bb as onExit, bc as acquireUseRelease, a7 as await_, bd as annotateCurrentSpan, be as withSpan, bf as onInterrupt, G as findErrorOption, o as make$5, bg as setHeaders, r as bearerToken, s as setHeader, t as provideService, T as TracerDisabledWhen } from "./vendor-effect-
|
|
1
|
+
import { h as gen, m as make, aw as addFinalizer, p as provide, a as make$1, a$ as make$2, b0 as cached, W as run, j as exit, N as close, Z as tap, M as sync, k as isFailure, c as combine, b1 as andThen, b2 as succeed, Q as asVoid, a9 as empty, I as doneUnsafe, L as void_, X as fail, b3 as isPromise, $ as suspend, i as interrupt, aG as tryPromise, b4 as catchIf, b5 as add, E as isSuccess, D as hasInterruptsOnly, K as flatMap, O as join, b6 as forEach, _ as _await, b7 as isDoneUnsafe, P as interruptible, a3 as TaggedError, S as void_$1, a4 as Service, a0 as succeed$1, a1 as succeed$2, a5 as Reference, f as fnUntraced, C as Clock, d as die, b8 as make$3, b as fail$1, e as make$4, aH as acquireRelease, v as promise, B as failCause, ab as orDie, u as mapError, ag as HttpClientError, ah as TransportError, A as raceFirst, J as sleep$1, z as makeUnsafe, y as timeoutOrElse, ao as callback, b9 as all, ad as ensuring, V as addFinalizer$1, U as catchCause, Y as uninterruptibleMask, R as fail$2, n as done, ba as failCause$1, af as fromWeb, bb as onExit, bc as acquireUseRelease, a7 as await_, bd as annotateCurrentSpan, be as withSpan, bf as onInterrupt, G as findErrorOption, o as make$5, bg as setHeaders, r as bearerToken, s as setHeader, t as provideService, T as TracerDisabledWhen } from "./vendor-effect-qEtB86Xz.js";
|
|
2
2
|
const NETWORK_CODES = /* @__PURE__ */ new Set([
|
|
3
3
|
"ENOTFOUND",
|
|
4
4
|
"EAI_AGAIN",
|
|
@@ -3279,4 +3279,4 @@ export {
|
|
|
3279
3279
|
safeRequestId as s,
|
|
3280
3280
|
thrownToStreamError as t
|
|
3281
3281
|
};
|
|
3282
|
-
//# sourceMappingURL=vendor-@loro-dev-streams-client-
|
|
3282
|
+
//# sourceMappingURL=vendor-@loro-dev-streams-client-CpTcEBa6.js.map
|