lody 0.109.0-nightly.4 → 0.109.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.
Files changed (52) hide show
  1. package/README.md +45 -5
  2. package/dist/baguette-worker.js +5 -5
  3. package/dist/chunks/agent-execution-BRPxxHLD.js +138 -0
  4. package/dist/chunks/{cloudflared-native-DTVu8K0C.js → cloudflared-native-CX1Ige5K.js} +6 -6
  5. package/dist/chunks/{daemon-session-tools-DAu7gdnF.js → daemon-session-tools-D5bwueKw.js} +30 -29
  6. package/dist/chunks/{diff-line-counts-CILo4AKG.js → diff-line-counts-CQEe2j_T.js} +2 -2
  7. package/dist/chunks/{diff-worker-task-B0k7VMzS.js → diff-worker-task-oYYmyhkY.js} +2 -2
  8. package/dist/chunks/{directory-handle-BGFSZlvR.js → directory-handle-D5Ha5HM_.js} +22 -22
  9. package/dist/chunks/{dsh-plugins-BFmC3rG6.js → dsh-plugins-DAZ5gOKZ.js} +30 -29
  10. package/dist/chunks/{file-lock-QgdbOcmU.js → file-lock-B5SRVVY0.js} +30 -29
  11. package/dist/chunks/{index-C4DTBX0D.js → index-BUcwGDnJ.js} +4 -4
  12. package/dist/chunks/index-CgxbXqOV.js +409 -0
  13. package/dist/chunks/{index-Dy4YHjW8.js → index-DJqkQsvr.js} +30 -29
  14. package/dist/chunks/{ios-simulator-WH1yZKKc.js → ios-simulator-C2JuTiTF.js} +4 -4
  15. package/dist/chunks/{process-BASYc5i9.js → process-DYHqcr6r.js} +3 -3
  16. package/dist/chunks/{realtime-journal-Df9-DHIW.js → realtime-journal-CcK7OKet.js} +2 -2
  17. package/dist/chunks/{remote-pairing-Di27IeI3.js → remote-pairing-DE-oEvF3.js} +46 -42
  18. package/dist/chunks/{reset-identity-D9Ph1eHH.js → reset-identity-BlWk1u3O.js} +44 -40
  19. package/dist/chunks/{review-viewer-D07ZJpn2.js → review-viewer-BketCpbl.js} +9 -9
  20. package/dist/chunks/{vendor-@agentclientprotocol-sdk-DPc_uaGl.js → vendor-@agentclientprotocol-sdk-DNQV5gcW.js} +2 -2
  21. package/dist/chunks/{vendor-@effect-platform-node-shared-CCqT39Rv.js → vendor-@effect-platform-node-shared-DcKj04Z6.js} +2 -2
  22. package/dist/chunks/{vendor-@hpke-chacha20poly1305-D3t_iB8N.js → vendor-@hpke-chacha20poly1305-Y4xAAwgB.js} +2 -2
  23. package/dist/chunks/vendor-@hpke-common-C5CIeEOC.js +1465 -0
  24. package/dist/chunks/{vendor-@hpke-core-CuEm_3Pg.js → vendor-@hpke-core-gyjCrGzY.js} +2 -2
  25. package/dist/chunks/vendor-@hpke-dhkem-x25519-CYdLk4Fn.js +284 -0
  26. package/dist/chunks/{vendor-@loro-dev-roost-DPHh-RmI.js → vendor-@loro-dev-roost-Z-HLOKsr.js} +3 -3
  27. package/dist/chunks/{vendor-@loro-dev-streams-client-CtsmZsQu.js → vendor-@loro-dev-streams-client-znM2UhtQ.js} +2 -2
  28. package/dist/chunks/{vendor-@loro-dev-streams-crdt-TOa47lr8.js → vendor-@loro-dev-streams-crdt-BYCBC9xK.js} +3 -3
  29. package/dist/chunks/{vendor-@modelcontextprotocol-client-CQPdw3Fg.js → vendor-@modelcontextprotocol-client-4Jjqe8Po.js} +9 -4
  30. package/dist/chunks/{vendor-@modelcontextprotocol-core-EReXIu-6.js → vendor-@modelcontextprotocol-core-DvESUh04.js} +2 -2
  31. package/dist/chunks/{vendor-@modelcontextprotocol-node-BQ7TJdFt.js → vendor-@modelcontextprotocol-node-ke-O_ZbL.js} +2 -2
  32. package/dist/chunks/{vendor-@modelcontextprotocol-server-BYLcwmDl.js → vendor-@modelcontextprotocol-server-BjUTZJW6.js} +3 -3
  33. package/dist/chunks/{vendor-@noble-curves-BW4_U5K-.js → vendor-@noble-curves-D0YjJAJX.js} +2 -2
  34. package/dist/chunks/{vendor-@noble-ed25519-B8D0nzk3.js → vendor-@noble-ed25519-Ds7aTPMa.js} +33 -1
  35. package/dist/chunks/{vendor-@noble-hashes-fg0MY0Lc.js → vendor-@noble-hashes-HEu7jBCG.js} +3 -3
  36. package/dist/chunks/{vendor-agent-base-B1IMITIB.js → vendor-agent-base-Chp0lO_8.js} +10 -10
  37. package/dist/chunks/{vendor-effect-DiTphhO4.js → vendor-effect-BEAbDORP.js} +175 -166
  38. package/dist/chunks/{vendor-https-proxy-agent-DYXJVRmJ.js → vendor-https-proxy-agent-BJYUwzkZ.js} +2 -2
  39. package/dist/chunks/{vendor-loro-repo-CQ1eckJK.js → vendor-loro-repo-RetIQXsY.js} +4 -3
  40. package/dist/chunks/{vendor-werift-Bue4jFjZ.js → vendor-werift-DEsnUBfP.js} +2 -2
  41. package/dist/chunks/{vendor-winston-Cjqu0qa7.js → vendor-winston-LrGS-jQo.js} +4 -4
  42. package/dist/chunks/{vendor-winston-daily-rotate-file-DmBhIiyK.js → vendor-winston-daily-rotate-file-CTce6wji.js} +2 -2
  43. package/dist/chunks/{vendor-ws-CnPT7Y4f.js → vendor-ws-DSn-BAa0.js} +9 -9
  44. package/dist/chunks/{vendor-zod-DMmgJuIC.js → vendor-zod-CiEWn807.js} +4 -4
  45. package/dist/chunks/{workspace-legacy-waFpJZK1.js → workspace-legacy-CNBaGhlB.js} +7487 -4072
  46. package/dist/cloudflared-worker.js +7 -7
  47. package/dist/diff-worker.js +5 -5
  48. package/dist/file-index-scan-worker.js +6 -6
  49. package/dist/index.js +5545 -2618
  50. package/package.json +1 -1
  51. package/dist/chunks/index-CTN4DHBt.js +0 -496
  52. package/dist/chunks/vendor-@hpke-common-Ca8XaEAI.js +0 -651
package/README.md CHANGED
@@ -17,23 +17,32 @@ npm install -g lody@next
17
17
  ## Encrypted remote execution authorization
18
18
 
19
19
  The encrypted workspace host exposes
20
- `authorizeExecution(workspaceId, requesterDevice): Effect<ExecutionAuthorization>`.
20
+ `authorizeExecution(workspaceId, requesterDevice, localProjectId?): Effect<ExecutionAuthorization>`.
21
21
  The requester is the lowercase hex signing public key from an independently verified
22
22
  request. The result is `Authorized`, or `Denied` with `invalid-request`,
23
- `not-authorized`, `unavailable`, or `closed`. Use it immediately before a new execution;
23
+ `not-authorized`, `e2ee_machine_not_shared`, `unavailable`, or `closed`. Use it immediately before a new execution;
24
24
  request integrity, target binding and the durable journal claim remain separate checks.
25
25
 
26
26
  The machine reads the ledger with its own device credential and verifies every page
27
27
  through the existing runtime. Grants are isolated by workspace host and requesting
28
28
  device, kept only in memory for less than 15 minutes from read start, and checked
29
29
  against currently known membership on every call. Owner/Admin/Member personal or
30
- machine devices qualify; Guest, recovery, removed and revoked devices do not.
30
+ machine devices qualify directly when they share the target machine's verified ledger
31
+ membership. Cross-member execution requires a current owner-signed machine policy
32
+ and, for a local project, its project switch. Missing authorization returns `e2ee_machine_not_shared` (“机器或本地项目未共享,请联系机器所有者”). See the [native policy host](../../packages/e2ee-machine-sharing/README.md).
33
+ Guest, recovery, removed and revoked devices do not qualify.
31
34
  Restart requires another authenticated read. A connection or forwarded proof cannot
32
35
  renew a grant. Concurrent misses share a refresh, bounded to 30 seconds; failure
33
36
  rejects those new execution requests and permits retry without stopping local editing,
34
37
  already running work or other workspace hosts. No RPC/agent dispatch is enabled by
35
38
  this interface alone.
36
39
 
40
+ Execution identity comes from the verified original update's device and ledger
41
+ actor. UI account IDs are display metadata: they neither grant nor deny execution
42
+ and are never compared with crypto user IDs. The host checks the signing device's
43
+ current membership, role, revocation and machine/project authorization before a
44
+ new claim. Ordinary workspace visibility/project-sharing checks remain unchanged.
45
+
37
46
  ## Local encrypted execution log recovery
38
47
 
39
48
  Stop the journal's execution owners, then run:
@@ -57,8 +66,29 @@ readable request keys before archival; unreadable current request keys refuse re
57
66
  and preserve the original for repair. No legacy data is imported.
58
67
 
59
68
  This maintenance command is available by its explicit name and hidden from general
60
- CLI help. The journal has no product dispatch caller yet, so there is no default
61
- product path or desktop reset button. See the
69
+ CLI help. Encrypted agent starts, including Meta/history dispatch and RPC offers,
70
+ share a `userTurnId` execution claim in `execution.sqlite` under the active encrypted
71
+ workspace's `repositoryDirectory`. Stop the daemon before reset. There is no desktop
72
+ reset button. The execution gate resolves the turn's original signed update, checks its verified
73
+ signer, then calls the same host's `authorizeExecution(workspaceId, requesterDevice)`
74
+ by default. `LodyOptions.authorizeEncryptedExecution` can override this capability
75
+ with the same signature. Missing signer or authorization denies new starts;
76
+ revoking a device cannot borrow another device's authority from the same user.
77
+ Original ciphertext receipts live in `execution-origins.sqlite`; snapshot authors
78
+ cannot substitute for the original turn signer. Snapshot recovery backfills retained
79
+ signed updates from Streams. Missing originals keep the turn pending and retryable
80
+ until its original window expires; they never grant a start. Each backfill attempt
81
+ has a three-second/eight-page bound; stop cancels the watcher's delayed retry.
82
+ Confirmed whole-member removal or machine-device revocation during backfill is
83
+ terminal: it immediately fences new execution and invalidates cached grants before
84
+ the existing owner drain. Late authorization results cannot claim a journal start.
85
+ Member removal retains its identity-verified receipt/erasure path; single-device
86
+ revocation closes the workspace while retaining local originals. Ordinary transport
87
+ failures continue to leave missing-origin turns pending.
88
+ Ordinary workspaces do not open this log.
89
+ Transport frames keep their own original request/response receipts; execution evidence
90
+ contains intent identities and a settlement marker, never prompt or response plaintext.
91
+ See the
62
92
  [recovery decision](../../.agents/notes/proposed/bug-fix/2026-10-27-e2ee-realtime-journal-recovery.md).
63
93
 
64
94
  ## Development type checking
@@ -251,3 +281,13 @@ cloud conversations/settings, and disables execution of imported sessions/schedu
251
281
  Roost and unsupported formats fail before record uploads. Source data is retained;
252
282
  rerunning resumes the frozen snapshot. It does not copy code directories or native
253
283
  agent credentials. See [migration and recovery](src/lib/oss-migration/README.md).
284
+
285
+ ## Local export
286
+
287
+ `lody export` includes encrypted workspaces, including `--all-workspace`. The
288
+ workspace manager reads verified, decrypted session documents through the same
289
+ protected replica used by chat, then writes JSON and Markdown on this device.
290
+ `--offline` reads its retained local cache. Unsupported encrypted schedule rooms
291
+ are omitted; ordinary workspace exports keep their existing schedule data.
292
+ Desktop conversation copy and image export likewise use the local history and
293
+ save/clipboard bridges, without publishing a share.
@@ -1,12 +1,12 @@
1
- import { s as startProcessLegacy, t as terminateChildTreeLegacy, b as runCommand, p as processLayer } from "./chunks/process-BASYc5i9.js";
1
+ import { s as startProcessLegacy, t as terminateChildTreeLegacy, b as runCommand, p as processLayer } from "./chunks/process-DYHqcr6r.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 { c4 as runPromise, c5 as raceAll, v as promise, J as sleep, ak as provide } from "./chunks/vendor-effect-DiTphhO4.js";
8
- import { I as IosSimulatorDeviceControlSchema } from "./chunks/ios-simulator-WH1yZKKc.js";
9
- import { s as string, o as object, b as union, k as _enum, n as number, l as literal } from "./chunks/vendor-zod-DMmgJuIC.js";
7
+ import { b$ as runPromise, c0 as raceAll, v as promise, J as sleep, ak as provide } from "./chunks/vendor-effect-BEAbDORP.js";
8
+ import { I as IosSimulatorDeviceControlSchema } from "./chunks/ios-simulator-C2JuTiTF.js";
9
+ import { s as string, o as object, b as union, k as _enum, n as number, l as literal } from "./chunks/vendor-zod-CiEWn807.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-CCqT39Rv.js";
23
+ import "./chunks/vendor-@effect-platform-node-shared-DcKj04Z6.js";
24
24
  import "node:stream";
25
25
  import "node:buffer";
26
26
  import "node:tls";
@@ -0,0 +1,138 @@
1
+ import { existsSync } from "node:fs";
2
+ import { RealtimeJournal, RealtimeJournalError } from "./realtime-journal-CcK7OKet.js";
3
+ import { f as fnUntraced, b as fail, H as currentTimeMillis, w as try_ } from "./vendor-effect-BEAbDORP.js";
4
+ import { o as object, s as string, u as unknown, b as union, z as tuple, l as literal } from "./vendor-zod-CiEWn807.js";
5
+ import "node:crypto";
6
+ import "node:path";
7
+ import "better-sqlite3";
8
+ const attempt = (body) => try_({ try: body, catch: (cause) => cause });
9
+ const retainedIntentSchema = union([
10
+ tuple([literal(1), string(), string()]),
11
+ tuple([literal(1), string(), string(), string()])
12
+ ]);
13
+ const intentSchema = object({
14
+ workspaceId: string().min(1),
15
+ sessionId: string().min(1),
16
+ userTurnId: string().min(1),
17
+ /** Display metadata only; execution identity comes from the verified signer. */
18
+ requesterUserId: string().optional(),
19
+ inputConfig: unknown().optional(),
20
+ localProjectId: string().min(1).optional()
21
+ });
22
+ function makeEncryptedAgentExecution(options) {
23
+ const claim = fnUntraced(function* (input) {
24
+ const intent = yield* attempt(() => intentSchema.parse(input));
25
+ if (intent.workspaceId !== options.workspaceId)
26
+ return yield* fail(new RealtimeJournalError("identity_conflict"));
27
+ const key = {
28
+ genesis: options.genesis,
29
+ workspaceId: intent.workspaceId,
30
+ targetMachineId: options.targetMachineId,
31
+ requestId: `agent-start:${intent.userTurnId}`
32
+ };
33
+ const frame = Buffer.from(JSON.stringify([1, intent.sessionId, intent.userTurnId]));
34
+ const journal = yield* attempt(options.journal);
35
+ const read = () => {
36
+ const retained2 = journal.read(key);
37
+ if (retained2) {
38
+ const saved = retainedIntentSchema.parse(
39
+ JSON.parse(Buffer.from(retained2.frame).toString("utf8"))
40
+ );
41
+ if (saved[1] !== intent.sessionId || saved[2] !== intent.userTurnId)
42
+ throw new RealtimeJournalError("identity_conflict");
43
+ }
44
+ return retained2;
45
+ };
46
+ let retained = yield* attempt(read);
47
+ if (retained && retained.state !== "received") return { state: retained.state };
48
+ if (options.isExecutionOpen?.() === false) return { state: "denied" };
49
+ const verified = yield* options.resolveVerifiedOriginal(intent);
50
+ if (verified && "state" in verified) {
51
+ return {
52
+ state: (yield* currentTimeMillis) >= verified.expiresAt ? "expired" : "pending-evidence"
53
+ };
54
+ }
55
+ if (!verified || !/^[0-9a-f]{64}$/.test(verified.requesterDevice) || !Number.isSafeInteger(verified.expiresAt) || verified.expiresAt < 0)
56
+ return { state: "denied" };
57
+ const authorizeExecution = options.authorizeExecution;
58
+ if (!authorizeExecution) return { state: "denied" };
59
+ let authorization = yield* authorizeExecution(
60
+ intent.workspaceId,
61
+ verified.requesterDevice,
62
+ intent.localProjectId
63
+ );
64
+ if (authorization._tag !== "Authorized")
65
+ return authorization.reason === "e2ee_machine_not_shared" ? { state: "denied", reason: "e2ee_machine_not_shared" } : { state: "denied" };
66
+ let scheduleCurrent;
67
+ if (verified.schedule) {
68
+ if (!options.authorizeSchedule) return { state: "denied" };
69
+ const schedule = yield* options.authorizeSchedule(verified.schedule, intent.localProjectId);
70
+ if (schedule._tag !== "Authorized")
71
+ return {
72
+ state: schedule.reason === "e2ee_schedule_evidence_pending" ? (yield* currentTimeMillis) < verified.expiresAt ? "pending-evidence" : "expired" : "denied",
73
+ ...schedule.reason === "e2ee_machine_not_shared" ? { reason: "e2ee_machine_not_shared" } : {}
74
+ };
75
+ scheduleCurrent = schedule.isCurrent;
76
+ authorization = yield* authorizeExecution(
77
+ intent.workspaceId,
78
+ verified.requesterDevice,
79
+ intent.localProjectId
80
+ );
81
+ if (authorization._tag !== "Authorized")
82
+ return {
83
+ state: "denied",
84
+ ...authorization.reason === "e2ee_machine_not_shared" ? { reason: "e2ee_machine_not_shared" } : {}
85
+ };
86
+ }
87
+ retained = yield* attempt(read);
88
+ if (retained && verified.expiresAt < retained.expiresAt) return { state: "denied" };
89
+ if (retained && retained.requester !== verified.requesterDevice)
90
+ return yield* fail(new RealtimeJournalError("identity_conflict"));
91
+ const request = retained ?? {
92
+ ...key,
93
+ requester: verified.requesterDevice,
94
+ expiresAt: verified.expiresAt,
95
+ frame
96
+ };
97
+ const executionCurrent = authorization.isCurrent;
98
+ return yield* attempt(() => {
99
+ if (options.isExecutionOpen?.() === false || executionCurrent?.() === false || scheduleCurrent?.() === false)
100
+ return { state: "denied" };
101
+ journal.receive(request);
102
+ const result = journal.claim(request);
103
+ if (result.state === "claimed") {
104
+ try {
105
+ options.onClaim?.(intent.userTurnId);
106
+ } catch {
107
+ }
108
+ }
109
+ return result.state === "existing" ? {
110
+ state: result.record.state === "completed" ? "completed" : "uncertain"
111
+ } : result;
112
+ });
113
+ });
114
+ const complete = (permit) => attempt(() => {
115
+ options.journal().finish(permit, Buffer.from('{"state":"settled"}'));
116
+ });
117
+ return { claim, complete };
118
+ }
119
+ function lazyExecutionJournal(filename, now) {
120
+ let journal;
121
+ return () => {
122
+ if (journal) return journal;
123
+ if (existsSync(filename) || existsSync(`${filename}.control.sqlite`))
124
+ return journal = new RealtimeJournal(filename, now);
125
+ try {
126
+ return journal = RealtimeJournal.create(filename, now);
127
+ } catch (cause) {
128
+ if (cause instanceof RealtimeJournalError && cause.cause instanceof Error && "code" in cause.cause && cause.cause.code === "EEXIST")
129
+ return journal = new RealtimeJournal(filename, now);
130
+ throw cause;
131
+ }
132
+ };
133
+ }
134
+ export {
135
+ lazyExecutionJournal,
136
+ makeEncryptedAgentExecution
137
+ };
138
+ //# sourceMappingURL=agent-execution-BRPxxHLD.js.map
@@ -1,7 +1,7 @@
1
- import { p as processLayer, n as nodeProcessLive, s as startProcessLegacy } from "./process-BASYc5i9.js";
1
+ import { p as processLayer, n as nodeProcessLive, s as startProcessLegacy } from "./process-DYHqcr6r.js";
2
2
  import { EventEmitter } from "node:events";
3
- import { w as winston } from "./vendor-winston-Cjqu0qa7.js";
4
- import { D as DailyRotateFile } from "./vendor-winston-daily-rotate-file-DmBhIiyK.js";
3
+ import { w as winston } from "./vendor-winston-LrGS-jQo.js";
4
+ import { D as DailyRotateFile } from "./vendor-winston-daily-rotate-file-CTce6wji.js";
5
5
  import require$$0, { promisify, inspect } from "node:util";
6
6
  import fs__default from "node:fs";
7
7
  import path__default, { join } from "node:path";
@@ -9,8 +9,8 @@ import os__default, { tmpdir } from "node:os";
9
9
  import fs__default$1, { mkdtemp, writeFile, rm } from "node:fs/promises";
10
10
  import Zlib__default from "node:zlib";
11
11
  import { T as TransportStream } from "./vendor-winston-transport-C2Om-fvA.js";
12
- import { bs as merge, c6 as layer, c7 as tracerLogger, c8 as make, c9 as CurrentLogAnnotations, a0 as succeed, b_ as MinimumLogLevel } from "./vendor-effect-DiTphhO4.js";
13
- import { o as object, k as _enum, s as string } from "./vendor-zod-DMmgJuIC.js";
12
+ import { bs as merge, c1 as layer, c2 as tracerLogger, c3 as make, c4 as CurrentLogAnnotations, a0 as succeed, b_ as MinimumLogLevel } from "./vendor-effect-BEAbDORP.js";
13
+ import { o as object, k as _enum, s as string } from "./vendor-zod-CiEWn807.js";
14
14
  const PLATFORM_ENV_VAR = "LODY_PLATFORM";
15
15
  const LOCAL_WORKSPACE_ID_PREFIX = "lw_";
16
16
  const LOCAL_USER_ID_PREFIX = "local:";
@@ -1197,4 +1197,4 @@ export {
1197
1197
  createFileLogger as y,
1198
1198
  processOptions as z
1199
1199
  };
1200
- //# sourceMappingURL=cloudflared-native-DTVu8K0C.js.map
1200
+ //# sourceMappingURL=cloudflared-native-CX1Ige5K.js.map
@@ -5,8 +5,8 @@ import "./vendor-@posthog-core-Cam3Z07F.js";
5
5
  import "node:fs";
6
6
  import "node:readline";
7
7
  import "node:async_hooks";
8
- import "./cloudflared-native-DTVu8K0C.js";
9
- import "./process-BASYc5i9.js";
8
+ import "./cloudflared-native-CX1Ige5K.js";
9
+ import "./process-DYHqcr6r.js";
10
10
  import "node:child_process";
11
11
  import "node:path";
12
12
  import "node:url";
@@ -19,8 +19,8 @@ import "fs";
19
19
  import "./vendor-path-key-Dc8-E0k2.js";
20
20
  import "./vendor-shebang-command-CiljJy-j.js";
21
21
  import "./vendor-shebang-regex-CzQXTLh9.js";
22
- import "./vendor-@effect-platform-node-shared-CCqT39Rv.js";
23
- import "./vendor-effect-DiTphhO4.js";
22
+ import "./vendor-@effect-platform-node-shared-DcKj04Z6.js";
23
+ import "./vendor-effect-BEAbDORP.js";
24
24
  import "node:stream";
25
25
  import "node:buffer";
26
26
  import "node:net";
@@ -40,7 +40,7 @@ import "node:crypto";
40
40
  import "node:os";
41
41
  import "node:zlib";
42
42
  import "node:events";
43
- import "./vendor-winston-Cjqu0qa7.js";
43
+ import "./vendor-winston-LrGS-jQo.js";
44
44
  import "string_decoder";
45
45
  import "./vendor-logform-BH1Pfpxu.js";
46
46
  import "./vendor-@colors-colors-7IEFuFeu.js";
@@ -65,23 +65,23 @@ import "./vendor-is-stream-D718fFkh.js";
65
65
  import "./vendor-one-time-DD_3ni3j.js";
66
66
  import "./vendor-fn.name-BP8EuNdj.js";
67
67
  import "./vendor-stack-trace-B9LDz9q9.js";
68
- import "./vendor-winston-daily-rotate-file-DmBhIiyK.js";
68
+ import "./vendor-winston-daily-rotate-file-CTce6wji.js";
69
69
  import "./vendor-object-hash-HzXrbOJn.js";
70
70
  import "./vendor-file-stream-rotator-CxV9o5zx.js";
71
71
  import "./vendor-moment-CvzSeL6T.js";
72
72
  import "node:util";
73
73
  import "node:fs/promises";
74
- import "./vendor-zod-DMmgJuIC.js";
74
+ import "./vendor-zod-CiEWn807.js";
75
75
  import "./vendor-commander-B86VeeRa.js";
76
76
  import "node:process";
77
- import "./vendor-@loro-dev-streams-crdt-TOa47lr8.js";
78
- import "./vendor-@loro-dev-streams-client-CtsmZsQu.js";
77
+ import "./vendor-@loro-dev-streams-crdt-BYCBC9xK.js";
78
+ import "./vendor-@loro-dev-streams-client-znM2UhtQ.js";
79
79
  import "./vendor-loro-crdt-B0fZaMbx.js";
80
80
  import "./vendor-@loro-dev-flock-wasm-DEhVwup8.js";
81
- import "./directory-handle-BGFSZlvR.js";
82
- import "./diff-line-counts-CILo4AKG.js";
81
+ import "./directory-handle-D5Ha5HM_.js";
82
+ import "./diff-line-counts-CQEe2j_T.js";
83
83
  import "./vendor-diff-1FyGa8Sd.js";
84
- import "./ios-simulator-WH1yZKKc.js";
84
+ import "./ios-simulator-C2JuTiTF.js";
85
85
  import "./vendor-croner-B5ClZHUj.js";
86
86
  import "node:diagnostics_channel";
87
87
  import "./vendor-undici-BBneXIsH.js";
@@ -93,12 +93,12 @@ import "node:util/types";
93
93
  import "node:worker_threads";
94
94
  import "node:console";
95
95
  import "node:dns";
96
- import "./vendor-https-proxy-agent-DYXJVRmJ.js";
96
+ import "./vendor-https-proxy-agent-BJYUwzkZ.js";
97
97
  import "assert";
98
98
  import "./vendor-debug-ywhXvw99.js";
99
99
  import "./vendor-supports-color-Ddvw3sLl.js";
100
100
  import "node:tty";
101
- import "./vendor-agent-base-B1IMITIB.js";
101
+ import "./vendor-agent-base-Chp0lO_8.js";
102
102
  import "./vendor-proxy-from-env-agT35mrt.js";
103
103
  import "./vendor-uuid-C8a1NCtP.js";
104
104
  import "./vendor-chalk-MVIUzg44.js";
@@ -132,12 +132,12 @@ import "fs/promises";
132
132
  import "./workspace-watch-path-policy-BRzhvEkG.js";
133
133
  import "node:string_decoder";
134
134
  import "perf_hooks";
135
- import "./vendor-ws-CnPT7Y4f.js";
136
- import "./vendor-loro-repo-CQ1eckJK.js";
135
+ import "./vendor-ws-DSn-BAa0.js";
136
+ import "./vendor-loro-repo-RetIQXsY.js";
137
137
  import "better-sqlite3";
138
138
  import "./vendor-convex-wRAQitRr.js";
139
139
  import "module";
140
- import "./vendor-@agentclientprotocol-sdk-DPc_uaGl.js";
140
+ import "./vendor-@agentclientprotocol-sdk-DNQV5gcW.js";
141
141
  import "./vendor-iconv-lite-HWexUuLF.js";
142
142
  import "./vendor-safer-buffer-Cphkircd.js";
143
143
  import "node:stream/promises";
@@ -152,7 +152,7 @@ import "./vendor-pend-DoKdb5WF.js";
152
152
  import "./vendor-zstd-stream-46u8wyoZ.js";
153
153
  import "./vendor-@anthropic-ai-claude-agent-sdk-ClZwgB-P.js";
154
154
  import "node:dns/promises";
155
- import "./vendor-werift-Bue4jFjZ.js";
155
+ import "./vendor-werift-DEsnUBfP.js";
156
156
  import "dgram";
157
157
  import "./vendor-@fidm-x509-CI97kvtK.js";
158
158
  import "./vendor-tweetnacl-D68dIQNZ.js";
@@ -183,23 +183,24 @@ import "./vendor-is-property-C16lxVuH.js";
183
183
  import "./vendor-is-plain-object-BRO4wf7a.js";
184
184
  import "./vendor-isobject-D9Nd6hCz.js";
185
185
  import "./vendor-types-CL7_yDUV.js";
186
- import "./vendor-@noble-curves-BW4_U5K-.js";
187
- import "./vendor-@noble-hashes-fg0MY0Lc.js";
186
+ import "./vendor-@noble-curves-D0YjJAJX.js";
187
+ import "./vendor-@noble-hashes-HEu7jBCG.js";
188
188
  import "timers/promises";
189
189
  import "node:timers/promises";
190
190
  import "./vendor-multicast-dns-Ct48tHMc.js";
191
191
  import "./vendor-dns-packet-CP3bbX9g.js";
192
192
  import "./vendor-@leichtgewicht-ip-codec-CuxpkJkV.js";
193
193
  import "./vendor-thunky-DLFjp7XU.js";
194
- import "./vendor-@modelcontextprotocol-client-CQPdw3Fg.js";
195
- import "./vendor-pkce-challenge-Cq0elRmW.js";
196
- import "./vendor-eventsource-parser-CGZtgUzy.js";
197
- import "./vendor-@modelcontextprotocol-core-EReXIu-6.js";
198
194
  import "@loro-dev/roost-node";
199
- import "./vendor-@loro-dev-roost-DPHh-RmI.js";
195
+ import "./vendor-@loro-dev-roost-Z-HLOKsr.js";
200
196
  import "./vendor-eventemitter3-BTaPclo1.js";
201
197
  import "./vendor-cli-table3-B99hA5do.js";
202
- import "./diff-worker-task-B0k7VMzS.js";
198
+ import "./diff-worker-task-oYYmyhkY.js";
199
+ import "@napi-rs/keyring";
200
+ import "./vendor-@modelcontextprotocol-client-4Jjqe8Po.js";
201
+ import "./vendor-pkce-challenge-Cq0elRmW.js";
202
+ import "./vendor-eventsource-parser-CGZtgUzy.js";
203
+ import "./vendor-@modelcontextprotocol-core-DvESUh04.js";
203
204
  import "node:module";
204
205
  import "node:v8";
205
206
  import "./vendor-inquirer-DW05GzYy.js";
@@ -251,8 +252,8 @@ import "./vendor-micromark-factory-whitespace-Dg9BFbm3.js";
251
252
  import "./vendor-micromark-util-html-tag-name-CslaPeLE.js";
252
253
  import "./vendor-unist-util-stringify-position-DD2_lbmV.js";
253
254
  import "./vendor-mdast-util-to-string-cbiyYImb.js";
254
- import "./vendor-@modelcontextprotocol-server-BYLcwmDl.js";
255
- import "./vendor-@modelcontextprotocol-node-BQ7TJdFt.js";
255
+ import "./vendor-@modelcontextprotocol-server-BjUTZJW6.js";
256
+ import "./vendor-@modelcontextprotocol-node-ke-O_ZbL.js";
256
257
  import "./vendor-@hono-node-server-C5GxSa1x.js";
257
258
  import "http2";
258
259
  let handlers;
@@ -283,4 +284,4 @@ async function executeDaemonSessionTool(context, name, args) {
283
284
  export {
284
285
  executeDaemonSessionTool
285
286
  };
286
- //# sourceMappingURL=daemon-session-tools-DAu7gdnF.js.map
287
+ //# sourceMappingURL=daemon-session-tools-D5bwueKw.js.map
@@ -2,7 +2,7 @@ import { mkdtempSync, writeFileSync, rmSync } from "node:fs";
2
2
  import os__default from "node:os";
3
3
  import path__default from "node:path";
4
4
  import { d as diffLines } from "./vendor-diff-1FyGa8Sd.js";
5
- import { r as runCommandTextSyncLegacy } from "./process-BASYc5i9.js";
5
+ import { r as runCommandTextSyncLegacy } from "./process-DYHqcr6r.js";
6
6
  const MAX_EDIT_LENGTH = 600;
7
7
  const MAX_LINES_FOR_JSDIFF = 2e5;
8
8
  const GIT_NUMSTAT_MAX_BUFFER = 64 * 1024 * 1024;
@@ -133,4 +133,4 @@ export {
133
133
  countTextLines as a,
134
134
  computeLineCounts as c
135
135
  };
136
- //# sourceMappingURL=diff-line-counts-CILo4AKG.js.map
136
+ //# sourceMappingURL=diff-line-counts-CQEe2j_T.js.map
@@ -1,6 +1,6 @@
1
1
  import { createHash } from "node:crypto";
2
2
  import { open, stat } from "node:fs/promises";
3
- import { c as computeLineCounts } from "./diff-line-counts-CILo4AKG.js";
3
+ import { c as computeLineCounts } from "./diff-line-counts-CQEe2j_T.js";
4
4
  async function runDiffWorkerTask(input) {
5
5
  const lineCounts = computeLineCounts(input.oldText, input.newText);
6
6
  if (input.kind === "line-count") return { kind: input.kind, lineCounts };
@@ -58,4 +58,4 @@ function nodeErrorCode(error) {
58
58
  export {
59
59
  runDiffWorkerTask as r
60
60
  };
61
- //# sourceMappingURL=diff-worker-task-B0k7VMzS.js.map
61
+ //# sourceMappingURL=diff-worker-task-oYYmyhkY.js.map
@@ -1,8 +1,8 @@
1
- import { s as string, o as object, a as array, c as boolean, n as number, l as literal, r as record, k as _enum, q as discriminatedUnion, b as union, z as tuple, u as unknown } from "./vendor-zod-DMmgJuIC.js";
1
+ import { s as string, o as object, a as array, c as boolean, n as number, l as literal, r as record, k as _enum, q as discriminatedUnion, b as union, z as tuple, u as unknown } from "./vendor-zod-CiEWn807.js";
2
2
  import { realpath, readFile } from "node:fs/promises";
3
3
  import path__default from "node:path";
4
- import { a as runCommandTextLegacy } from "./process-BASYc5i9.js";
5
- import { a as countTextLines } from "./diff-line-counts-CILo4AKG.js";
4
+ import { a as runCommandTextLegacy } from "./process-DYHqcr6r.js";
5
+ import { a as countTextLines } from "./diff-line-counts-CQEe2j_T.js";
6
6
  function isSafeProjectPath(value) {
7
7
  return value.length > 0 && value.split("/").every(
8
8
  (part) => part.length > 0 && part !== "." && part !== ".." && !Array.from(part).some((char) => char.charCodeAt(0) < 32) && !/[\\<>:"|?*]/.test(part) && !/[. ]$/.test(part) && !/^(?:\.git|con|prn|aux|nul|com[1-9]|lpt[1-9])(?:\.|$)/i.test(part)
@@ -1499,10 +1499,10 @@ async function closeDirectoryQuietly(directory) {
1499
1499
  }
1500
1500
  export {
1501
1501
  CODE_COLLAB_V2_ALL_CHANGES_DIFF_LIMITS as $,
1502
- CodeCollabV2InitDirectoryOkSchema as A,
1503
- CodeCollabV2LspUnsupportedSchema as B,
1504
- CodeCollabV2FileIndexRequestSchema as C,
1505
- CodeCollabV2ErrorSchema as D,
1502
+ CodeCollabV2OpenAllChangesDiffRequestSchema as A,
1503
+ CodeCollabV2OpenTurnDiffRequestSchema as B,
1504
+ CodeCollabV2FileIndexSnapshotSchema as C,
1505
+ CodeCollabV2InitDirectoryRequestSchema as D,
1506
1506
  getProjectRepositoryFullName as E,
1507
1507
  resolveSessionFilePath as F,
1508
1508
  isSafeProjectPath as G,
@@ -1535,25 +1535,25 @@ export {
1535
1535
  closeDirectoryQuietly as d,
1536
1536
  decodeSessionFilePath as e,
1537
1537
  SessionFileRootIdSchema as f,
1538
- CodeCollabV2OpenTextRequestSchema as g,
1539
- CodeCollabV2RefreshTextRequestSchema as h,
1538
+ CodeCollabV2OpenTextOkSchema as g,
1539
+ CodeCollabV2RefreshTextResponseSchema as h,
1540
1540
  isInsideGitWorktree as i,
1541
1541
  joinWorkspacePath as j,
1542
- CodeCollabV2SaveTextRequestSchema as k,
1543
- CodeCollabV2OpenCurrentDiffRequestSchema as l,
1544
- CodeCollabV2OpenAllChangesDiffRequestSchema as m,
1542
+ CodeCollabV2SaveTextResponseSchema as k,
1543
+ CodeCollabV2OpenCurrentDiffResponseSchema as l,
1544
+ CodeCollabV2OpenAllChangesDiffResponseSchema as m,
1545
1545
  normalizeWorkspaceProject as n,
1546
- CodeCollabV2OpenTurnDiffRequestSchema as o,
1546
+ CodeCollabV2OpenTurnDiffResponseSchema as o,
1547
1547
  pathSegmentComparisonKey as p,
1548
- CodeCollabV2InitDirectoryRequestSchema as q,
1548
+ CodeCollabV2InitDirectoryOkSchema as q,
1549
1549
  resolveProjectGitDirectory as r,
1550
1550
  scanGitDirectoryEntries as s,
1551
- CodeCollabV2FileIndexSnapshotSchema as t,
1552
- CodeCollabV2OpenTextOkSchema as u,
1553
- CodeCollabV2RefreshTextResponseSchema as v,
1554
- CodeCollabV2SaveTextResponseSchema as w,
1555
- CodeCollabV2OpenCurrentDiffResponseSchema as x,
1556
- CodeCollabV2OpenAllChangesDiffResponseSchema as y,
1557
- CodeCollabV2OpenTurnDiffResponseSchema as z
1551
+ CodeCollabV2LspUnsupportedSchema as t,
1552
+ CodeCollabV2ErrorSchema as u,
1553
+ CodeCollabV2FileIndexRequestSchema as v,
1554
+ CodeCollabV2OpenTextRequestSchema as w,
1555
+ CodeCollabV2RefreshTextRequestSchema as x,
1556
+ CodeCollabV2SaveTextRequestSchema as y,
1557
+ CodeCollabV2OpenCurrentDiffRequestSchema as z
1558
1558
  };
1559
- //# sourceMappingURL=directory-handle-BGFSZlvR.js.map
1559
+ //# sourceMappingURL=directory-handle-D5Ha5HM_.js.map