deepline 0.3.525 → 0.3.527

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 (139) hide show
  1. package/dist/bundling-sources/sdk/src/agent-runtime.ts +98 -0
  2. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  3. package/dist/bundling-sources/shared_libs/observability/dlq.ts +14 -5
  4. package/dist/bundling-sources/shared_libs/play-runtime/run-failure-class.ts +98 -0
  5. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-lifecycle.ts +24 -3
  6. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +35 -5
  7. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/durable-run-inventory.ts +2 -2
  8. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/durable-run-sql.ts +39 -0
  9. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-capacity.ts +12 -0
  10. package/dist/bundling-sources/shared_libs/play-runtime/tool-execute-retry-policy.ts +50 -8
  11. package/dist/cli/auth-C7BBYIQD.js +43 -0
  12. package/dist/cli/{auth-TH3VGYBK.mjs → auth-LRMMQFJ4.mjs} +5 -5
  13. package/dist/cli/{billing-TWKVUFU2.js → billing-M76MMWZB.js} +82 -82
  14. package/dist/cli/{billing-CMHFI2LN.mjs → billing-WZZDXVRJ.mjs} +7 -7
  15. package/dist/cli/{chunk-CQSANB3V.js → chunk-2A6IRSE6.js} +5 -5
  16. package/dist/cli/{chunk-CZNEQMJR.mjs → chunk-2L3HVEBM.mjs} +1 -1
  17. package/dist/cli/{chunk-DYS3KWYF.js → chunk-3L2DNG5X.js} +11 -11
  18. package/dist/cli/{chunk-2WFVLOB7.js → chunk-3PQDEBO6.js} +1 -1
  19. package/dist/cli/{chunk-KPINGHIF.mjs → chunk-4YN7DZEA.mjs} +2 -2
  20. package/dist/cli/{chunk-OXFIJYN3.mjs → chunk-5YR6CDJ2.mjs} +6 -6
  21. package/dist/cli/{chunk-5JFAQUZS.js → chunk-66YLAQ2X.js} +26 -26
  22. package/dist/cli/{chunk-U4M32NFS.mjs → chunk-77VNC2KF.mjs} +1 -1
  23. package/dist/cli/{chunk-TFEGJEYO.js → chunk-7DPWGAOU.js} +3 -3
  24. package/dist/cli/{chunk-WEYFSBAD.mjs → chunk-7FCD34YS.mjs} +18 -11
  25. package/dist/cli/{chunk-CLTL7ZJI.mjs → chunk-AXFHQWGA.mjs} +1 -1
  26. package/dist/cli/{chunk-4UWXFXQF.js → chunk-C7A44BZ7.js} +3 -3
  27. package/dist/cli/{chunk-LAMGJQDY.mjs → chunk-E4TEZE62.mjs} +2 -2
  28. package/dist/cli/{chunk-S5LUY3KJ.js → chunk-EOL7PXLW.js} +7 -7
  29. package/dist/cli/{chunk-N4MMU3QF.js → chunk-ETXQZGQU.js} +16 -16
  30. package/dist/cli/{chunk-IMO3HXWZ.mjs → chunk-GIRMVMXP.mjs} +1 -1
  31. package/dist/cli/{chunk-YC7FKAJ4.mjs → chunk-HA2J2OAS.mjs} +10 -10
  32. package/dist/cli/{chunk-NRBCETWL.js → chunk-HB3YUHEL.js} +44 -44
  33. package/dist/cli/{chunk-P62LON53.js → chunk-HQZLTK3P.js} +2 -2
  34. package/dist/cli/{chunk-UQYKSOGO.mjs → chunk-JEIGNX3G.mjs} +5 -5
  35. package/dist/cli/{chunk-LE537GBC.js → chunk-JSEISVAZ.js} +138 -78
  36. package/dist/cli/{chunk-GCLNX72G.mjs → chunk-JSVHBJE2.mjs} +2 -2
  37. package/dist/cli/{chunk-ETHVJ2ZE.mjs → chunk-KDFUQRVU.mjs} +1 -1
  38. package/dist/cli/{chunk-QR7VYYNM.js → chunk-LHMHUA5D.js} +7 -7
  39. package/dist/cli/{chunk-ZWFTHEPT.mjs → chunk-M45S7JAY.mjs} +2 -2
  40. package/dist/cli/{chunk-WGRDOPAK.mjs → chunk-MIL5YDKZ.mjs} +2 -2
  41. package/dist/cli/{chunk-TXSBPBHB.mjs → chunk-MMM2WMTF.mjs} +5 -5
  42. package/dist/cli/{chunk-EP6YH6QJ.mjs → chunk-NVII3RWQ.mjs} +2 -2
  43. package/dist/cli/{chunk-V2GN4PLK.js → chunk-OKRBGXDI.js} +5 -5
  44. package/dist/cli/{chunk-LXKH4MKH.js → chunk-OLSATEDQ.js} +6 -6
  45. package/dist/cli/{chunk-V65J64FL.js → chunk-OXHY3LD3.js} +53 -53
  46. package/dist/cli/{chunk-OWQF6WVH.mjs → chunk-P5ZU5ZHA.mjs} +61 -1
  47. package/dist/cli/{chunk-RMZ6CISE.mjs → chunk-QKKT5G4K.mjs} +3 -3
  48. package/dist/cli/{chunk-JVWSIA2V.mjs → chunk-QKY3H3HA.mjs} +4 -4
  49. package/dist/cli/{chunk-WA3FG7DH.js → chunk-R6IWWPY7.js} +14 -14
  50. package/dist/cli/{chunk-MRUFGOJR.js → chunk-RGL2YGJZ.js} +2 -2
  51. package/dist/cli/{chunk-7C4F4TLR.mjs → chunk-RMCKTV4R.mjs} +1 -1
  52. package/dist/cli/{chunk-NO4URKKT.mjs → chunk-RTPLRMEB.mjs} +5 -5
  53. package/dist/cli/{chunk-ESWM2JW4.js → chunk-SRQQAUXN.js} +2 -2
  54. package/dist/cli/{chunk-CKTRQSRA.js → chunk-UAQ7ZWRP.js} +22 -22
  55. package/dist/cli/{chunk-7OF3A4KJ.mjs → chunk-UJHS2O5O.mjs} +84 -57
  56. package/dist/cli/{chunk-VYIAWAKJ.mjs → chunk-UKOG6PCB.mjs} +1 -1
  57. package/dist/cli/{chunk-UXF3ODJJ.mjs → chunk-VTXBV4AX.mjs} +1 -1
  58. package/dist/cli/{chunk-M43ZYNDA.mjs → chunk-VV2AFJ3I.mjs} +5 -5
  59. package/dist/cli/{chunk-CWRL6IQP.js → chunk-WL6GAZBD.js} +18 -11
  60. package/dist/cli/{chunk-NB2ECLQE.js → chunk-XI47UAVU.js} +9 -9
  61. package/dist/cli/{chunk-AVDEYOVP.js → chunk-XYG4IOJK.js} +98 -98
  62. package/dist/cli/{chunk-KEZ3KBWW.js → chunk-YJ4YVFXC.js} +97 -70
  63. package/dist/cli/{chunk-5BSGWIQD.mjs → chunk-YKPMIJJ2.mjs} +2 -2
  64. package/dist/cli/{chunk-MHBSRNI7.js → chunk-YSDPYQBH.js} +41 -41
  65. package/dist/cli/{chunk-KBOSALBI.js → chunk-YUYDP2EG.js} +6 -6
  66. package/dist/cli/{chunk-TO72GW5I.js → chunk-ZHY7AY5V.js} +16 -16
  67. package/dist/cli/command-docs.js +2 -2
  68. package/dist/cli/command-docs.mjs +1 -1
  69. package/dist/cli/{csv-OO554TPX.mjs → csv-FEFNXZF7.mjs} +4 -4
  70. package/dist/cli/{csv-5JHWVJ5N.js → csv-IRP6VT7Q.js} +13 -13
  71. package/dist/cli/{db-SQKJ6RKU.mjs → db-IHECMWZ3.mjs} +6 -6
  72. package/dist/cli/{db-CYQJ4OXF.js → db-Y5VNPNRD.js} +27 -27
  73. package/dist/cli/describe-MNJVJHRE.js +50 -0
  74. package/dist/cli/{describe-N7AKTUQV.mjs → describe-XCVC2WLL.mjs} +18 -18
  75. package/dist/cli/{executions-F34DORW6.mjs → executions-3FWZYUJV.mjs} +6 -6
  76. package/dist/cli/{executions-K7EGCRKX.js → executions-QH3KJ6MA.js} +8 -8
  77. package/dist/cli/{feedback-NOQVCA3Q.js → feedback-BGHWMOLH.js} +65 -17
  78. package/dist/cli/{feedback-GQHKCS66.mjs → feedback-F3OZXOPM.mjs} +61 -13
  79. package/dist/cli/git-MDOHEW5J.js +25 -0
  80. package/dist/cli/{git-2EEITXDB.mjs → git-RWPH3D75.mjs} +5 -5
  81. package/dist/cli/index.js +145 -145
  82. package/dist/cli/index.mjs +44 -44
  83. package/dist/cli/{legacy-noops-JHMY5XRB.mjs → legacy-noops-5ADSTBJ5.mjs} +6 -6
  84. package/dist/cli/{legacy-noops-RFNHQ7RG.js → legacy-noops-G6CYD5LM.js} +9 -9
  85. package/dist/cli/{monitors-RDMP6SPZ.mjs → monitors-AFNAU3A2.mjs} +7 -7
  86. package/dist/cli/{monitors-UKRZ4BDK.js → monitors-VZCBZO26.js} +100 -100
  87. package/dist/cli/{org-RF3G4KMB.mjs → org-JVLYTU24.mjs} +6 -6
  88. package/dist/cli/{org-OX7TYTHV.js → org-X4QRYBC4.js} +86 -86
  89. package/dist/cli/{pages-FBM3MGSP.mjs → pages-VELKZKBL.mjs} +6 -6
  90. package/dist/cli/{pages-MKQT5LFV.js → pages-YMM4KBW5.js} +18 -18
  91. package/dist/cli/{play-OOVX2DMV.js → play-J7DEBHI7.js} +317 -317
  92. package/dist/cli/{play-YWC2UORM.mjs → play-MIY6BYRB.mjs} +18 -18
  93. package/dist/cli/{providers-3PEQESIU.mjs → providers-2H3W3W7G.mjs} +6 -6
  94. package/dist/cli/{providers-2CGZYLER.js → providers-TOUB7Y2A.js} +9 -9
  95. package/dist/cli/{quickstart-KVB36SOW.mjs → quickstart-GKAS5265.mjs} +4 -4
  96. package/dist/cli/{quickstart-6AANHKQZ.js → quickstart-LHY2LN3P.js} +6 -6
  97. package/dist/cli/{run-QC23NRKO.mjs → run-KYGNOWYD.mjs} +23 -23
  98. package/dist/cli/{run-NJ7WV5TK.js → run-QCAVDPE5.js} +41 -41
  99. package/dist/cli/search-G67CEHR7.js +33 -0
  100. package/dist/cli/{search-7BMFFZI2.mjs → search-YPGAIFDX.mjs} +8 -8
  101. package/dist/cli/{search-output-XC2AVBFX.js → search-output-ASELNQ2U.js} +6 -6
  102. package/dist/cli/{search-output-CALZ4ZI2.mjs → search-output-OOC3VK4T.mjs} +4 -4
  103. package/dist/cli/{secrets-VHU4B2D4.js → secrets-KX3TQB4R.js} +15 -15
  104. package/dist/cli/{secrets-7ZHA57DI.mjs → secrets-VJ4XYSMZ.mjs} +6 -6
  105. package/dist/cli/sessions-KUN7H7E5.mjs +22 -0
  106. package/dist/cli/sessions-QILPX4XQ.js +22 -0
  107. package/dist/cli/{settings-WV77QJGD.js → settings-5NIF4BU7.js} +86 -86
  108. package/dist/cli/{settings-AVY4NNHI.mjs → settings-JKFYZ2IT.mjs} +13 -13
  109. package/dist/cli/{setup-AOUJ3RMU.mjs → setup-5AX3TN6G.mjs} +10 -10
  110. package/dist/cli/{setup-GE5TLTC4.js → setup-MYV3IHPS.js} +50 -50
  111. package/dist/cli/{skills-FVWO2G66.mjs → skills-JLS4CINQ.mjs} +8 -8
  112. package/dist/cli/skills-NG32XTZI.js +37 -0
  113. package/dist/cli/tools-OZG3V77R.js +57 -0
  114. package/dist/cli/{tools-URE655B4.mjs → tools-VBYKD3MJ.mjs} +17 -17
  115. package/dist/cli/{update-5B4G4345.mjs → update-QWAIVJRI.mjs} +10 -10
  116. package/dist/cli/update-YL5WVSKU.js +35 -0
  117. package/dist/cli/{views-GSECJ5IK.mjs → views-TBWGZAVZ.mjs} +6 -6
  118. package/dist/cli/{views-IC762HEQ.js → views-ZW56JZB5.js} +18 -18
  119. package/dist/cli/{workflow-EME7ZEOV.js → workflow-EKSZST6M.js} +17 -17
  120. package/dist/cli/{workflow-6UQM565I.mjs → workflow-X7UQPJMQ.mjs} +7 -7
  121. package/dist/index.js +9 -9
  122. package/dist/index.mjs +6 -6
  123. package/dist/install-integrity.json +107 -106
  124. package/dist/release.d.mts +1 -1
  125. package/dist/release.d.ts +1 -1
  126. package/dist/release.js +2 -2
  127. package/dist/release.mjs +1 -1
  128. package/dist/server.js +5 -5
  129. package/dist/server.mjs +3 -3
  130. package/package.json +1 -1
  131. package/dist/cli/auth-K7PMRXNG.js +0 -43
  132. package/dist/cli/describe-PASXOL3R.js +0 -50
  133. package/dist/cli/git-UU4YFJ2Q.js +0 -25
  134. package/dist/cli/search-NH4DTXUK.js +0 -33
  135. package/dist/cli/sessions-2TE5JWVP.js +0 -18
  136. package/dist/cli/sessions-YYULWFZE.mjs +0 -18
  137. package/dist/cli/skills-OL7LD6QX.js +0 -37
  138. package/dist/cli/tools-VQ5JO6DI.js +0 -57
  139. package/dist/cli/update-7ZOIOTZN.js +0 -35
@@ -1,13 +1,15 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunkP62LON53js = require('./chunk-P62LON53.js');
3
+ var _chunkHQZLTK3Pjs = require('./chunk-HQZLTK3P.js');
4
4
 
5
5
 
6
6
 
7
- var _chunkS5LUY3KJjs = require('./chunk-S5LUY3KJ.js');
7
+ var _chunkEOL7PXLWjs = require('./chunk-EOL7PXLW.js');
8
8
 
9
9
 
10
- var _chunkLE537GBCjs = require('./chunk-LE537GBC.js');
10
+
11
+
12
+ var _chunkJSEISVAZjs = require('./chunk-JSEISVAZ.js');
11
13
 
12
14
  // src/cli/commands/sessions.ts
13
15
 
@@ -48,14 +50,17 @@ function detectShellContext() {
48
50
  cwd: process.cwd()
49
51
  };
50
52
  }
51
- function claudeProjectsRoot() {
52
- return _path.join.call(void 0, homeDir(), ".claude", "projects");
53
- }
54
53
  function codexSessionsRoot() {
55
54
  return _path.join.call(void 0, homeDir(), ".codex", "sessions");
56
55
  }
57
56
  function listClaudeSessionFiles() {
58
- const root = claudeProjectsRoot();
57
+ const files = [];
58
+ for (const root of _chunkJSEISVAZjs.claudeProjectsRoots.call(void 0, )) {
59
+ files.push(...listClaudeSessionFilesIn(root));
60
+ }
61
+ return files;
62
+ }
63
+ function listClaudeSessionFilesIn(root) {
59
64
  if (!_fs.existsSync.call(void 0, root)) return [];
60
65
  const projectDirs = readDirectoryNames(root);
61
66
  const files = [];
@@ -142,14 +147,26 @@ function currentSessionFile(agent) {
142
147
  const newestFirst = listSessionFiles(agent).sort(
143
148
  (a, b) => b.mtimeMs - a.mtimeMs
144
149
  );
145
- const sessionId = _chunkLE537GBCjs.agentSessionIdFromEnvironment.call(void 0,
150
+ const sessionId = _chunkJSEISVAZjs.agentSessionIdFromEnvironment.call(void 0,
146
151
  process.env,
147
152
  agent === "auto" ? void 0 : agent === "claude" ? "claude_code" : "codex"
148
153
  );
149
154
  const cwd = process.cwd();
150
- return _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(newestFirst.find((candidate) => candidate.sessionId === sessionId), () => ( newestFirst.find(
155
+ const named = newestFirst.find(
156
+ (candidate) => candidate.sessionId === sessionId
157
+ );
158
+ if (named) return named;
159
+ const cowork = agent === "codex" ? null : _chunkJSEISVAZjs.coworkTranscriptFromEnvironment.call(void 0, );
160
+ const coworkStat = cowork ? statIfReadable(cowork.filePath) : null;
161
+ if (cowork && coworkStat) {
162
+ return { agent: "claude", ...cowork, mtimeMs: coworkStat.mtimeMs };
163
+ }
164
+ return _nullishCoalesce(_nullishCoalesce(newestFirst.find(
151
165
  (candidate) => sessionStartedInDirectory(candidate, cwd)
152
- ))), () => ( newestFirst[0])), () => ( null));
166
+ ), () => ( newestFirst[0])), () => ( null));
167
+ }
168
+ function feedbackAgentSessionId(agentRuntime) {
169
+ return _nullishCoalesce(_chunkJSEISVAZjs.agentSessionIdFromEnvironment.call(void 0, process.env, agentRuntime), () => ( (agentRuntime === "claude_cowork" || agentRuntime === "claude_code" ? _nullishCoalesce(_optionalChain([_chunkJSEISVAZjs.coworkTranscriptFromEnvironment.call(void 0, ), 'optionalAccess', _17 => _17.sessionId]), () => ( null)) : null)));
153
170
  }
154
171
  function sessionStartedInDirectory(candidate, cwd) {
155
172
  if (candidate.agent === "claude") {
@@ -164,7 +181,7 @@ function readCodexSessionCwd(filePath) {
164
181
  const head = Buffer.alloc(8192);
165
182
  const length = _fs.readSync.call(void 0, fd, head, 0, head.length, 0);
166
183
  const match = head.toString("utf8", 0, length).match(/"cwd":("(?:[^"\\]|\\.)*")/);
167
- return _optionalChain([match, 'optionalAccess', _17 => _17[1]]) ? JSON.parse(match[1]) : null;
184
+ return _optionalChain([match, 'optionalAccess', _18 => _18[1]]) ? JSON.parse(match[1]) : null;
168
185
  } finally {
169
186
  _fs.closeSync.call(void 0, fd);
170
187
  }
@@ -177,7 +194,7 @@ function sessionIdFromClaudeFilePath(filePath) {
177
194
  }
178
195
  function sessionIdFromCodexFilePath(filePath) {
179
196
  const match = _path.basename.call(void 0, filePath, ".jsonl").match(UUID_IN_TEXT_RE);
180
- return _nullishCoalesce(_optionalChain([match, 'optionalAccess', _18 => _18[0]]), () => ( null));
197
+ return _nullishCoalesce(_optionalChain([match, 'optionalAccess', _19 => _19[0]]), () => ( null));
181
198
  }
182
199
  function readCodexSessionId(filePath) {
183
200
  try {
@@ -189,7 +206,7 @@ function readCodexSessionId(filePath) {
189
206
  if (!parsed || typeof parsed !== "object") continue;
190
207
  const record = parsed;
191
208
  const payload = record.payload && typeof record.payload === "object" ? record.payload : null;
192
- const id = record.type === "session_meta" && typeof _optionalChain([payload, 'optionalAccess', _19 => _19.id]) === "string" ? payload.id : null;
209
+ const id = record.type === "session_meta" && typeof _optionalChain([payload, 'optionalAccess', _20 => _20.id]) === "string" ? payload.id : null;
193
210
  if (id && UUID_RE.test(id)) return id;
194
211
  }
195
212
  } catch (e5) {
@@ -198,9 +215,10 @@ function readCodexSessionId(filePath) {
198
215
  return null;
199
216
  }
200
217
  function sessionSearchDescription(agent) {
201
- if (agent === "claude") return "~/.claude/projects/*/<session-id>.jsonl";
218
+ const claude = _chunkJSEISVAZjs.claudeProjectsRoots.call(void 0, ).map((root) => _path.join.call(void 0, root, "*", "<session-id>.jsonl")).join(", ");
219
+ if (agent === "claude") return claude;
202
220
  if (agent === "codex") return "~/.codex/sessions/**/*.jsonl";
203
- return "~/.claude/projects/*/<session-id>.jsonl or ~/.codex/sessions/**/*.jsonl";
221
+ return `${claude} or ~/.codex/sessions/**/*.jsonl`;
204
222
  }
205
223
  function parseSessionAgent(value) {
206
224
  const normalized = String(value || "auto").trim().toLowerCase();
@@ -257,7 +275,7 @@ function resolveSessionTargets(input) {
257
275
  }
258
276
  targets.push({
259
277
  sessionId,
260
- label: _nullishCoalesce(_optionalChain([input, 'access', _20 => _20.labels, 'optionalAccess', _21 => _21[index]]), () => ( `${candidate.agent}-session-${sessionId}`)),
278
+ label: _nullishCoalesce(_optionalChain([input, 'access', _21 => _21.labels, 'optionalAccess', _22 => _22[index]]), () => ( `${candidate.agent}-session-${sessionId}`)),
261
279
  filePath: candidate.filePath,
262
280
  agent: candidate.agent
263
281
  });
@@ -454,7 +472,7 @@ function buildSessionUploadContent(raw) {
454
472
  return { encodedContent: encoded, needsChunking: true };
455
473
  }
456
474
  async function uploadPayload(path, payload) {
457
- const { http } = _chunkS5LUY3KJjs.getAuthedHttpClient.call(void 0, );
475
+ const { http } = _chunkEOL7PXLWjs.getAuthedHttpClient.call(void 0, );
458
476
  return await http.post(path, payload);
459
477
  }
460
478
  async function uploadChunkedSessions(sessions, options) {
@@ -479,36 +497,60 @@ async function uploadChunkedSessions(sessions, options) {
479
497
  });
480
498
  }
481
499
  }
482
- const response = await uploadPayload("/api/v2/cli/send-session/finalize", {
500
+ return await uploadPayload("/api/v2/cli/send-session/finalize", {
483
501
  upload_id: uploadId,
484
502
  session_ids: sessions.map((session) => session.sessionId),
485
503
  labels: sessions.map((session) => session.label),
486
504
  environments: sessions.map(() => detectShellContext()),
487
505
  ...options.rating ? { rating: options.rating } : {}
488
506
  });
489
- const sessionIds = sessions.map((session) => session.sessionId);
490
- _chunkS5LUY3KJjs.printCommandEnvelope.call(void 0,
491
- {
492
- ...response,
493
- ok: true,
494
- uploaded: sessions.length,
495
- session_ids: sessionIds,
496
- render: {
497
- sections: [
498
- {
499
- title: "sessions send",
500
- lines: [
501
- `Session ${sessionIds.join(", ")} uploaded to #internal-reports (chunked).`
502
- ]
503
- }
504
- ]
505
- }
506
- },
507
- { json: options.json }
508
- );
507
+ }
508
+ async function uploadBuiltSessions(built, options) {
509
+ if (built.some((session) => session.needsChunking)) {
510
+ return {
511
+ response: await uploadChunkedSessions(built, { rating: options.rating }),
512
+ chunked: true
513
+ };
514
+ }
515
+ const { rating } = options;
516
+ const response = built.length === 1 && !options.labeled ? await uploadPayload("/api/v2/cli/send-session", {
517
+ session_id: _optionalChain([built, 'access', _23 => _23[0], 'optionalAccess', _24 => _24.sessionId]),
518
+ content: _optionalChain([built, 'access', _25 => _25[0], 'optionalAccess', _26 => _26.encodedContent]),
519
+ environment: detectShellContext(),
520
+ ...rating ? { rating } : {}
521
+ }) : await uploadPayload("/api/v2/cli/send-session", {
522
+ sessions: built.map((session) => ({
523
+ session_id: session.sessionId,
524
+ content: session.encodedContent,
525
+ label: session.label,
526
+ environment: detectShellContext()
527
+ })),
528
+ environment: detectShellContext(),
529
+ ...rating ? { rating } : {}
530
+ });
531
+ return { response, chunked: false };
532
+ }
533
+ function buildSession(target) {
534
+ return {
535
+ ...target,
536
+ ...buildSessionUploadContent(_fs.readFileSync.call(void 0, target.filePath))
537
+ };
538
+ }
539
+ async function uploadAgentSession(agentRuntime) {
540
+ const sessionId = feedbackAgentSessionId(agentRuntime);
541
+ if (!sessionId) {
542
+ throw new Error(
543
+ `No ${agentRuntime} session was found to attach. To find one, Deepline needs a session ID set by the agent or a Claude Cowork session.`
544
+ );
545
+ }
546
+ const agent = agentRuntime === "codex" ? "codex" : agentRuntime.startsWith("claude_") ? "claude" : "auto";
547
+ const [target] = resolveSessionTargets({ sessionIds: [sessionId], agent });
548
+ if (!target) throw new Error(`Session file not found: ${sessionId}`);
549
+ await uploadBuiltSessions([buildSession(target)], { labeled: false });
550
+ return target.sessionId;
509
551
  }
510
552
  async function handleSessionsSend(options) {
511
- if (_chunkP62LON53js.rejectRestrictedFeedback.call(void 0, options)) return;
553
+ if (_chunkHQZLTK3Pjs.rejectRestrictedFeedback.call(void 0, options)) return;
512
554
  const rating = parseSessionRating(options.rating);
513
555
  if (options.file) {
514
556
  const filePath = _path.resolve.call(void 0, options.file);
@@ -520,7 +562,7 @@ async function handleSessionsSend(options) {
520
562
  filename: _path.basename.call(void 0, filePath),
521
563
  ...rating ? { rating } : {}
522
564
  });
523
- _chunkS5LUY3KJjs.printCommandEnvelope.call(void 0,
565
+ _chunkEOL7PXLWjs.printCommandEnvelope.call(void 0,
524
566
  {
525
567
  ...response2,
526
568
  ok: true,
@@ -546,31 +588,13 @@ async function handleSessionsSend(options) {
546
588
  currentSession: options.currentSession,
547
589
  agent: options.agent
548
590
  });
549
- const built = targets.map((target) => {
550
- const upload = buildSessionUploadContent(_fs.readFileSync.call(void 0, target.filePath));
551
- return { ...target, ...upload };
552
- });
553
- if (built.some((session) => session.needsChunking)) {
554
- await uploadChunkedSessions(built, { json: options.json, rating });
555
- return;
556
- }
557
- const response = built.length === 1 && !_optionalChain([options, 'access', _22 => _22.label, 'optionalAccess', _23 => _23.length]) ? await uploadPayload("/api/v2/cli/send-session", {
558
- session_id: _optionalChain([built, 'access', _24 => _24[0], 'optionalAccess', _25 => _25.sessionId]),
559
- content: _optionalChain([built, 'access', _26 => _26[0], 'optionalAccess', _27 => _27.encodedContent]),
560
- environment: detectShellContext(),
561
- ...rating ? { rating } : {}
562
- }) : await uploadPayload("/api/v2/cli/send-session", {
563
- sessions: built.map((session) => ({
564
- session_id: session.sessionId,
565
- content: session.encodedContent,
566
- label: session.label,
567
- environment: detectShellContext()
568
- })),
569
- environment: detectShellContext(),
570
- ...rating ? { rating } : {}
591
+ const built = targets.map(buildSession);
592
+ const { response, chunked } = await uploadBuiltSessions(built, {
593
+ rating,
594
+ labeled: Boolean(_optionalChain([options, 'access', _27 => _27.label, 'optionalAccess', _28 => _28.length]))
571
595
  });
572
596
  const sessionIds = built.map((session) => session.sessionId);
573
- _chunkS5LUY3KJjs.printCommandEnvelope.call(void 0,
597
+ _chunkEOL7PXLWjs.printCommandEnvelope.call(void 0,
574
598
  {
575
599
  ...response,
576
600
  ok: true,
@@ -581,7 +605,7 @@ async function handleSessionsSend(options) {
581
605
  {
582
606
  title: "sessions send",
583
607
  lines: [
584
- `Session ${sessionIds.join(", ")} uploaded to #internal-reports.`
608
+ `Session ${sessionIds.join(", ")} uploaded to #internal-reports${chunked ? " (chunked)" : ""}.`
585
609
  ]
586
610
  }
587
611
  ]
@@ -591,7 +615,7 @@ async function handleSessionsSend(options) {
591
615
  );
592
616
  }
593
617
  function loadViewerAssets() {
594
- const cliEntry = _optionalChain([process, 'access', _28 => _28.argv, 'access', _29 => _29[1], 'optionalAccess', _30 => _30.trim, 'call', _31 => _31()]) ? _fs.realpathSync.call(void 0, _path.resolve.call(void 0, process.argv[1])) : null;
618
+ const cliEntry = _optionalChain([process, 'access', _29 => _29.argv, 'access', _30 => _30[1], 'optionalAccess', _31 => _31.trim, 'call', _32 => _32()]) ? _fs.realpathSync.call(void 0, _path.resolve.call(void 0, process.argv[1])) : null;
595
619
  const candidateRoots = [
596
620
  ...cliEntry ? [
597
621
  _path.join.call(void 0, _path.dirname.call(void 0, _path.dirname.call(void 0, cliEntry)), "viewer"),
@@ -644,7 +668,7 @@ async function handleSessionsRender(options) {
644
668
  _fs.mkdirSync.call(void 0, outputDir, { recursive: true });
645
669
  outputPath = _path.join.call(void 0,
646
670
  outputDir,
647
- targets.length > 1 ? "session-viewer.html" : `session-${_optionalChain([targets, 'access', _32 => _32[0], 'optionalAccess', _33 => _33.sessionId])}.html`
671
+ targets.length > 1 ? "session-viewer.html" : `session-${_optionalChain([targets, 'access', _33 => _33[0], 'optionalAccess', _34 => _34.sessionId])}.html`
648
672
  );
649
673
  } else {
650
674
  _fs.mkdirSync.call(void 0, _path.dirname.call(void 0, outputPath), { recursive: true });
@@ -678,7 +702,7 @@ ${refreshMeta}
678
702
  </body>
679
703
  </html>`;
680
704
  _fs.writeFileSync.call(void 0, outputPath, html, "utf8");
681
- _chunkS5LUY3KJjs.printCommandEnvelope.call(void 0,
705
+ _chunkEOL7PXLWjs.printCommandEnvelope.call(void 0,
682
706
  {
683
707
  ok: true,
684
708
  file: outputPath,
@@ -705,8 +729,9 @@ function registerSessionsCommands(program) {
705
729
  `
706
730
  Notes:
707
731
  Session commands operate on local Claude and Codex JSONL files under
708
- ~/.claude/projects and ~/.codex/sessions. send uploads a compacted transcript
709
- or file to Deepline. render writes a local HTML viewer.
732
+ ~/.claude/projects (or $CLAUDE_CONFIG_DIR/projects, or a Claude Cowork
733
+ session's ~/mnt/.claude/projects) and ~/.codex/sessions. send uploads a
734
+ compacted transcript or file to Deepline. render writes a local HTML viewer.
710
735
 
711
736
  Examples:
712
737
  deepline sessions send --current-session
@@ -788,4 +813,6 @@ Examples:
788
813
 
789
814
 
790
815
 
791
- exports.registerSessionsCommands = registerSessionsCommands; exports.registerSessionSendRenderCommands = registerSessionSendRenderCommands;
816
+
817
+
818
+ exports.feedbackAgentSessionId = feedbackAgentSessionId; exports.uploadAgentSession = uploadAgentSession; exports.registerSessionsCommands = registerSessionsCommands; exports.registerSessionSendRenderCommands = registerSessionSendRenderCommands;
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-F6QV42MC.mjs";
4
4
  import {
5
5
  parseLogLevel
6
- } from "./chunk-CZNEQMJR.mjs";
6
+ } from "./chunk-2L3HVEBM.mjs";
7
7
  import {
8
8
  setDottedInputValue
9
9
  } from "./chunk-FKD3KL5Q.mjs";
@@ -11,7 +11,7 @@ import {
11
11
  argsWantJson,
12
12
  jsonFieldArgs,
13
13
  parseJsonFields
14
- } from "./chunk-GCLNX72G.mjs";
14
+ } from "./chunk-JSVHBJE2.mjs";
15
15
  import {
16
16
  DeeplineError
17
17
  } from "./chunk-ZPGGW27Q.mjs";
@@ -11,20 +11,20 @@
11
11
 
12
12
 
13
13
 
14
- var _chunkNRBCETWLjs = require('./chunk-NRBCETWL.js');
14
+ var _chunkHB3YUHELjs = require('./chunk-HB3YUHEL.js');
15
15
 
16
16
 
17
- var _chunkS5LUY3KJjs = require('./chunk-S5LUY3KJ.js');
17
+ var _chunkEOL7PXLWjs = require('./chunk-EOL7PXLW.js');
18
18
 
19
19
 
20
20
 
21
21
 
22
22
 
23
- var _chunkTFEGJEYOjs = require('./chunk-TFEGJEYO.js');
23
+ var _chunk7DPWGAOUjs = require('./chunk-7DPWGAOU.js');
24
24
 
25
25
 
26
26
 
27
- var _chunkLE537GBCjs = require('./chunk-LE537GBC.js');
27
+ var _chunkJSEISVAZjs = require('./chunk-JSEISVAZ.js');
28
28
 
29
29
 
30
30
  var _chunkRLX5ZFNXjs = require('./chunk-RLX5ZFNX.js');
@@ -145,7 +145,7 @@ function inferActiveSkillsScope(entrypoint = _nullishCoalesce(process.argv[1], (
145
145
  return /[\\/]\.deepline[\\/]runtime[\\/]/.test(entrypoint) ? "local" : "global";
146
146
  }
147
147
  function resolveLocalRoot() {
148
- const target = _chunkTFEGJEYOjs.resolveProjectPinTarget.call(void 0, );
148
+ const target = _chunk7DPWGAOUjs.resolveProjectPinTarget.call(void 0, );
149
149
  if (!target.ok) {
150
150
  throw new Error(
151
151
  `Cowork project folder is ambiguous. Candidate folders: ${target.candidates.join(
@@ -156,7 +156,7 @@ function resolveLocalRoot() {
156
156
  return target.dir;
157
157
  }
158
158
  function detectSkillsAgents(input) {
159
- const runtime = _nullishCoalesce(input.runtime, () => ( _chunkLE537GBCjs.detectAgentRuntime.call(void 0, )));
159
+ const runtime = _nullishCoalesce(input.runtime, () => ( _chunkJSEISVAZjs.detectAgentRuntime.call(void 0, )));
160
160
  const knownAgent = RUNTIME_TO_SKILLS_AGENT[runtime];
161
161
  if (knownAgent) return [knownAgent];
162
162
  const roots = [
@@ -171,11 +171,11 @@ function detectSkillsAgents(input) {
171
171
  return detected.length > 0 ? detected : ["*"];
172
172
  }
173
173
  function skillsStatePathForScope(baseUrl, scope, root) {
174
- return scope === "local" && root ? _path.join.call(void 0, root, ".deepline", "setup", "skills.json") : _path.join.call(void 0, _chunkTFEGJEYOjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-install.json");
174
+ return scope === "local" && root ? _path.join.call(void 0, root, ".deepline", "setup", "skills.json") : _path.join.call(void 0, _chunk7DPWGAOUjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-install.json");
175
175
  }
176
176
  function buildSkillsPlan(input) {
177
177
  const scopeArgs = input.scope === "global" ? ["--global"] : [];
178
- const legacyNames = [..._chunkNRBCETWLjs.LEGACY_SKILL_NAMES_TO_REMOVE].sort(
178
+ const legacyNames = [..._chunkHB3YUHELjs.LEGACY_SKILL_NAMES_TO_REMOVE].sort(
179
179
  (a, b) => a.localeCompare(b)
180
180
  );
181
181
  return {
@@ -189,7 +189,7 @@ function buildSkillsPlan(input) {
189
189
  args: [
190
190
  "exec",
191
191
  "--yes",
192
- `--package=${_chunkNRBCETWLjs.SKILLS_NPX_PACKAGE}`,
192
+ `--package=${_chunkHB3YUHELjs.SKILLS_NPX_PACKAGE}`,
193
193
  "--",
194
194
  "skills",
195
195
  "remove",
@@ -205,11 +205,11 @@ function buildSkillsPlan(input) {
205
205
  args: [
206
206
  "exec",
207
207
  "--yes",
208
- `--package=${_chunkNRBCETWLjs.SKILLS_NPX_PACKAGE}`,
208
+ `--package=${_chunkHB3YUHELjs.SKILLS_NPX_PACKAGE}`,
209
209
  "--",
210
210
  "skills",
211
211
  "add",
212
- _chunkNRBCETWLjs.skillsSourceUrl.call(void 0, input.baseUrl),
212
+ _chunkHB3YUHELjs.skillsSourceUrl.call(void 0, input.baseUrl),
213
213
  "--agent",
214
214
  ...input.agents,
215
215
  ...scopeArgs,
@@ -246,7 +246,7 @@ function readSkillsInstallState(path) {
246
246
  }
247
247
  function runProcess(command, args, cwd) {
248
248
  return new Promise((resolve, reject) => {
249
- const plan = _chunkNRBCETWLjs.resolveShellSpawn.call(void 0,
249
+ const plan = _chunkHB3YUHELjs.resolveShellSpawn.call(void 0,
250
250
  command,
251
251
  args,
252
252
  process.platform,
@@ -268,7 +268,7 @@ function runProcess(command, args, cwd) {
268
268
  child.kill("SIGTERM");
269
269
  reject(
270
270
  new Error(
271
- `${_chunkNRBCETWLjs.SKILLS_NPX_PACKAGE} timed out after ${SKILLS_PROCESS_TIMEOUT_MS}ms.`
271
+ `${_chunkHB3YUHELjs.SKILLS_NPX_PACKAGE} timed out after ${SKILLS_PROCESS_TIMEOUT_MS}ms.`
272
272
  )
273
273
  );
274
274
  }, SKILLS_PROCESS_TIMEOUT_MS);
@@ -279,7 +279,7 @@ function runProcess(command, args, cwd) {
279
279
  child.once("close", (code) => {
280
280
  clearTimeout(timeout);
281
281
  if (code && stderr.trim()) {
282
- process.stderr.write(`${_chunkNRBCETWLjs.SKILLS_NPX_PACKAGE} exited ${code}.
282
+ process.stderr.write(`${_chunkHB3YUHELjs.SKILLS_NPX_PACKAGE} exited ${code}.
283
283
  `);
284
284
  }
285
285
  resolve(_nullishCoalesce(code, () => ( 1)));
@@ -287,7 +287,7 @@ function runProcess(command, args, cwd) {
287
287
  });
288
288
  }
289
289
  async function showSkills(options, name) {
290
- const baseUrl = _chunkTFEGJEYOjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
290
+ const baseUrl = _chunk7DPWGAOUjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
291
291
  const url = name ? `${baseUrl}/.well-known/skills/${encodeURIComponent(name)}/SKILL.md` : `${baseUrl}/.well-known/skills/index.json`;
292
292
  try {
293
293
  const response = await fetch(url, {
@@ -300,7 +300,7 @@ async function showSkills(options, name) {
300
300
  }
301
301
  if (name) {
302
302
  const markdown = await response.text();
303
- _chunkS5LUY3KJjs.printCommandEnvelope.call(void 0,
303
+ _chunkEOL7PXLWjs.printCommandEnvelope.call(void 0,
304
304
  { ok: true, status: "completed", skill: { name, markdown } },
305
305
  { json: options.json, text: markdown }
306
306
  );
@@ -310,7 +310,7 @@ async function showSkills(options, name) {
310
310
  const skills = (_nullishCoalesce(index.skills, () => ( []))).filter(
311
311
  (skill) => skill.install_surface === "v1" && skill.name
312
312
  );
313
- _chunkS5LUY3KJjs.printCommandEnvelope.call(void 0,
313
+ _chunkEOL7PXLWjs.printCommandEnvelope.call(void 0,
314
314
  {
315
315
  ok: true,
316
316
  status: "completed",
@@ -327,7 +327,7 @@ Read one with: deepline skills show <name>
327
327
  );
328
328
  return 0;
329
329
  } catch (error) {
330
- _chunkS5LUY3KJjs.printCommandEnvelope.call(void 0,
330
+ _chunkEOL7PXLWjs.printCommandEnvelope.call(void 0,
331
331
  {
332
332
  ok: false,
333
333
  status: "failed",
@@ -350,7 +350,7 @@ async function runSkillsCommand(options, dependencies = {}) {
350
350
  scope = normalizeScope(options.scope);
351
351
  root = scope === "local" ? resolveLocalRoot() : null;
352
352
  } catch (error) {
353
- _chunkS5LUY3KJjs.printCommandEnvelope.call(void 0,
353
+ _chunkEOL7PXLWjs.printCommandEnvelope.call(void 0,
354
354
  {
355
355
  ok: false,
356
356
  status: "failed",
@@ -362,22 +362,22 @@ async function runSkillsCommand(options, dependencies = {}) {
362
362
  );
363
363
  return 2;
364
364
  }
365
- const baseUrl = _chunkTFEGJEYOjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
365
+ const baseUrl = _chunk7DPWGAOUjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
366
366
  const catalog = {
367
- skillNames: [..._chunkNRBCETWLjs.DEFAULT_SDK_SKILL_NAMES],
368
- version: _chunkLE537GBCjs.SDK_VERSION
367
+ skillNames: [..._chunkHB3YUHELjs.DEFAULT_SDK_SKILL_NAMES],
368
+ version: _chunkJSEISVAZjs.SDK_VERSION
369
369
  };
370
370
  const agents = options.agent ? [options.agent] : detectSkillsAgents({ scope, root });
371
371
  const plan = buildSkillsPlan({ baseUrl, scope, root, agents, ...catalog });
372
372
  if (options.dryRun) {
373
- _chunkS5LUY3KJjs.printCommandEnvelope.call(void 0,
373
+ _chunkEOL7PXLWjs.printCommandEnvelope.call(void 0,
374
374
  { ok: true, status: "planned", dryRun: true, ...plan },
375
375
  { json: options.json }
376
376
  );
377
377
  return 0;
378
378
  }
379
- if (isSkillsPlanCurrent(plan, readSkillsInstallState(plan.statePath)) && !_chunkNRBCETWLjs.hasFailedAutomaticSkillsSync.call(void 0, baseUrl, agents)) {
380
- _chunkS5LUY3KJjs.printCommandEnvelope.call(void 0,
379
+ if (isSkillsPlanCurrent(plan, readSkillsInstallState(plan.statePath)) && !_chunkHB3YUHELjs.hasFailedAutomaticSkillsSync.call(void 0, baseUrl, agents)) {
380
+ _chunkEOL7PXLWjs.printCommandEnvelope.call(void 0,
381
381
  {
382
382
  ok: true,
383
383
  status: "current",
@@ -409,10 +409,10 @@ async function runSkillsCommand(options, dependencies = {}) {
409
409
  }
410
410
  if (scope === "local" && root) {
411
411
  const managedNames = [
412
- .../* @__PURE__ */ new Set([...plan.skillNames, ..._chunkNRBCETWLjs.LEGACY_SKILL_NAMES_TO_REMOVE])
412
+ .../* @__PURE__ */ new Set([...plan.skillNames, ..._chunkHB3YUHELjs.LEGACY_SKILL_NAMES_TO_REMOVE])
413
413
  ];
414
414
  const agentRoots = workspaceSkillRootsForAgents(plan.agents);
415
- _chunkTFEGJEYOjs.ensureProjectPrivatePathsIgnored.call(void 0, root, [
415
+ _chunk7DPWGAOUjs.ensureProjectPrivatePathsIgnored.call(void 0, root, [
416
416
  ".deepline/",
417
417
  ...agentRoots.flatMap(
418
418
  (agentRoot) => managedNames.map((name) => `${agentRoot}/skills/${name}/`)
@@ -421,7 +421,7 @@ async function runSkillsCommand(options, dependencies = {}) {
421
421
  }
422
422
  let lease;
423
423
  try {
424
- lease = scope === "global" ? await _chunkNRBCETWLjs.acquireSkillsInstallLease.call(void 0, baseUrl, agents, plan.version, {
424
+ lease = scope === "global" ? await _chunkHB3YUHELjs.acquireSkillsInstallLease.call(void 0, baseUrl, agents, plan.version, {
425
425
  waitMs: _nullishCoalesce(dependencies.installLeaseWaitMs, () => ( SKILLS_INSTALL_LEASE_WAIT_MS)),
426
426
  onWait: () => process.stderr.write(
427
427
  "Waiting for a background Deepline skills refresh to finish...\n"
@@ -429,8 +429,8 @@ async function runSkillsCommand(options, dependencies = {}) {
429
429
  }) : { release: () => {
430
430
  } };
431
431
  } catch (error) {
432
- if (!(error instanceof _chunkNRBCETWLjs.SkillsStateUnavailableError)) throw error;
433
- _chunkS5LUY3KJjs.printCommandEnvelope.call(void 0,
432
+ if (!(error instanceof _chunkHB3YUHELjs.SkillsStateUnavailableError)) throw error;
433
+ _chunkEOL7PXLWjs.printCommandEnvelope.call(void 0,
434
434
  {
435
435
  ok: false,
436
436
  status: "failed",
@@ -446,7 +446,7 @@ async function runSkillsCommand(options, dependencies = {}) {
446
446
  return 5;
447
447
  }
448
448
  if (!lease) {
449
- _chunkS5LUY3KJjs.printCommandEnvelope.call(void 0,
449
+ _chunkEOL7PXLWjs.printCommandEnvelope.call(void 0,
450
450
  {
451
451
  ok: false,
452
452
  status: "failed",
@@ -455,7 +455,7 @@ async function runSkillsCommand(options, dependencies = {}) {
455
455
  scope,
456
456
  agents,
457
457
  message: "A background Deepline skills refresh is still running for these agents.",
458
- next: `Retry in a moment: deepline skills install --scope ${scope}. If no refresh is running, remove ${_chunkNRBCETWLjs.skillsInstallLeasePath.call(void 0, baseUrl, agents)}`
458
+ next: `Retry in a moment: deepline skills install --scope ${scope}. If no refresh is running, remove ${_chunkHB3YUHELjs.skillsInstallLeasePath.call(void 0, baseUrl, agents)}`
459
459
  },
460
460
  { json: options.json }
461
461
  );
@@ -504,7 +504,7 @@ async function runSkillsInstallWithLease(input) {
504
504
  }
505
505
  }
506
506
  } catch (error) {
507
- _chunkS5LUY3KJjs.printCommandEnvelope.call(void 0,
507
+ _chunkEOL7PXLWjs.printCommandEnvelope.call(void 0,
508
508
  {
509
509
  ok: false,
510
510
  status: "failed",
@@ -520,7 +520,7 @@ async function runSkillsInstallWithLease(input) {
520
520
  return 5;
521
521
  }
522
522
  if (missing.length > 0) {
523
- _chunkS5LUY3KJjs.printCommandEnvelope.call(void 0,
523
+ _chunkEOL7PXLWjs.printCommandEnvelope.call(void 0,
524
524
  {
525
525
  ok: false,
526
526
  status: "failed",
@@ -560,7 +560,7 @@ async function runSkillsInstallWithLease(input) {
560
560
  {
561
561
  schemaVersion: 1,
562
562
  installedAt: (/* @__PURE__ */ new Date()).toISOString(),
563
- cliVersion: _chunkLE537GBCjs.SDK_VERSION,
563
+ cliVersion: _chunkJSEISVAZjs.SDK_VERSION,
564
564
  scope,
565
565
  agents,
566
566
  skillsVersion: plan.version,
@@ -573,9 +573,9 @@ async function runSkillsInstallWithLease(input) {
573
573
  "utf8"
574
574
  );
575
575
  if (scope === "global") {
576
- _chunkNRBCETWLjs.clearFailedAutomaticSkillsSync.call(void 0, baseUrl, agents);
576
+ _chunkHB3YUHELjs.clearFailedAutomaticSkillsSync.call(void 0, baseUrl, agents);
577
577
  }
578
- _chunkS5LUY3KJjs.printCommandEnvelope.call(void 0,
578
+ _chunkEOL7PXLWjs.printCommandEnvelope.call(void 0,
579
579
  {
580
580
  ok: true,
581
581
  status: "complete",
@@ -624,7 +624,7 @@ Examples:
624
624
  "after",
625
625
  `
626
626
  Notes:
627
- This command reinstalls current Deepline-managed skills using ${_chunkNRBCETWLjs.SKILLS_NPX_PACKAGE},
627
+ This command reinstalls current Deepline-managed skills using ${_chunkHB3YUHELjs.SKILLS_NPX_PACKAGE},
628
628
  then removes legacy Deepline skill names. Local scope writes into the resolved
629
629
  persistent project.
630
630
 
@@ -636,13 +636,13 @@ Examples:
636
636
  ).action(async (options) => {
637
637
  process.exitCode = await runSkillsCommand(options);
638
638
  });
639
- program.command(_chunkNRBCETWLjs.SKILLS_AUTO_SYNC_COMMAND, { hidden: true }).description("Refresh Deepline agent skills in the background.").option(
639
+ program.command(_chunkHB3YUHELjs.SKILLS_AUTO_SYNC_COMMAND, { hidden: true }).description("Refresh Deepline agent skills in the background.").option(
640
640
  "--claim <token>",
641
641
  "Owner token of the leases this child was started for."
642
642
  ).action(async (options) => {
643
643
  const claim = _optionalChain([options, 'access', _9 => _9.claim, 'optionalAccess', _10 => _10.trim, 'call', _11 => _11()]);
644
644
  if (!claim) {
645
- _chunkS5LUY3KJjs.printCommandEnvelope.call(void 0,
645
+ _chunkEOL7PXLWjs.printCommandEnvelope.call(void 0,
646
646
  {
647
647
  ok: false,
648
648
  status: "failed",
@@ -655,7 +655,7 @@ Examples:
655
655
  process.exitCode = 2;
656
656
  return;
657
657
  }
658
- await _chunkNRBCETWLjs.syncSdkSkillsIfNeeded.call(void 0, _chunkTFEGJEYOjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, ""), {
658
+ await _chunkHB3YUHELjs.syncSdkSkillsIfNeeded.call(void 0, _chunk7DPWGAOUjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, ""), {
659
659
  mode: "inline",
660
660
  notices: "defer",
661
661
  claim