deepline 0.3.525 → 0.3.526

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 (135) 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/scheduler-backends/durable-run-inventory.ts +2 -2
  6. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/durable-run-sql.ts +39 -0
  7. package/dist/cli/{auth-TH3VGYBK.mjs → auth-JATW5XZE.mjs} +5 -5
  8. package/dist/cli/auth-L2POG3LL.js +43 -0
  9. package/dist/cli/{billing-TWKVUFU2.js → billing-TSHBJIJS.js} +82 -82
  10. package/dist/cli/{billing-CMHFI2LN.mjs → billing-UT5LIESH.mjs} +7 -7
  11. package/dist/cli/{chunk-ZWFTHEPT.mjs → chunk-26ULNPQ7.mjs} +2 -2
  12. package/dist/cli/{chunk-OWQF6WVH.mjs → chunk-2GJW4RAQ.mjs} +61 -1
  13. package/dist/cli/{chunk-CZNEQMJR.mjs → chunk-2JNX3MDG.mjs} +1 -1
  14. package/dist/cli/{chunk-QR7VYYNM.js → chunk-3MYI3IXW.js} +7 -7
  15. package/dist/cli/{chunk-5JFAQUZS.js → chunk-3ZEV5BS5.js} +26 -26
  16. package/dist/cli/{chunk-NB2ECLQE.js → chunk-46HEYGLY.js} +9 -9
  17. package/dist/cli/{chunk-CKTRQSRA.js → chunk-477PXM65.js} +22 -22
  18. package/dist/cli/{chunk-WGRDOPAK.mjs → chunk-6COGHW7B.mjs} +2 -2
  19. package/dist/cli/{chunk-ESWM2JW4.js → chunk-6DHEV6IA.js} +2 -2
  20. package/dist/cli/{chunk-TO72GW5I.js → chunk-6H56LKJB.js} +16 -16
  21. package/dist/cli/{chunk-NO4URKKT.mjs → chunk-6JMWATX5.mjs} +5 -5
  22. package/dist/cli/{chunk-5BSGWIQD.mjs → chunk-77RAGJIZ.mjs} +2 -2
  23. package/dist/cli/{chunk-LE537GBC.js → chunk-7COEN3IR.js} +138 -78
  24. package/dist/cli/{chunk-WEYFSBAD.mjs → chunk-7FCD34YS.mjs} +18 -11
  25. package/dist/cli/{chunk-4UWXFXQF.js → chunk-B33J4YCC.js} +3 -3
  26. package/dist/cli/{chunk-7OF3A4KJ.mjs → chunk-BFH3DJYV.mjs} +84 -57
  27. package/dist/cli/{chunk-EP6YH6QJ.mjs → chunk-BVITYMBK.mjs} +2 -2
  28. package/dist/cli/{chunk-DYS3KWYF.js → chunk-BYEF4RBX.js} +11 -11
  29. package/dist/cli/{chunk-UXF3ODJJ.mjs → chunk-C3EW6I65.mjs} +1 -1
  30. package/dist/cli/{chunk-LXKH4MKH.js → chunk-CDP3LMDT.js} +6 -6
  31. package/dist/cli/{chunk-KBOSALBI.js → chunk-CYN2AHR6.js} +6 -6
  32. package/dist/cli/{chunk-OXFIJYN3.mjs → chunk-D2XMFXFM.mjs} +6 -6
  33. package/dist/cli/{chunk-AVDEYOVP.js → chunk-D5OEUPPM.js} +98 -98
  34. package/dist/cli/{chunk-YC7FKAJ4.mjs → chunk-DY2AT3JQ.mjs} +10 -10
  35. package/dist/cli/{chunk-N4MMU3QF.js → chunk-ED2N4NRI.js} +16 -16
  36. package/dist/cli/{chunk-7C4F4TLR.mjs → chunk-EEYZLTXX.mjs} +1 -1
  37. package/dist/cli/{chunk-CQSANB3V.js → chunk-F5KFGF45.js} +5 -5
  38. package/dist/cli/{chunk-2WFVLOB7.js → chunk-FMPGWAIR.js} +1 -1
  39. package/dist/cli/{chunk-KPINGHIF.mjs → chunk-HPACLONQ.mjs} +2 -2
  40. package/dist/cli/{chunk-TXSBPBHB.mjs → chunk-IMP7WR22.mjs} +5 -5
  41. package/dist/cli/{chunk-RMZ6CISE.mjs → chunk-IWLDJQGV.mjs} +3 -3
  42. package/dist/cli/{chunk-P62LON53.js → chunk-J5OXJ4JI.js} +2 -2
  43. package/dist/cli/{chunk-UQYKSOGO.mjs → chunk-MQB25LMV.mjs} +5 -5
  44. package/dist/cli/{chunk-KEZ3KBWW.js → chunk-O7WUATQC.js} +97 -70
  45. package/dist/cli/{chunk-V2GN4PLK.js → chunk-RZJWHL7L.js} +5 -5
  46. package/dist/cli/{chunk-NRBCETWL.js → chunk-SCLRGDF4.js} +44 -44
  47. package/dist/cli/{chunk-V65J64FL.js → chunk-SJ6KUCGM.js} +53 -53
  48. package/dist/cli/{chunk-MHBSRNI7.js → chunk-TBQC2XS3.js} +41 -41
  49. package/dist/cli/{chunk-JVWSIA2V.mjs → chunk-TCLJXJAG.mjs} +4 -4
  50. package/dist/cli/{chunk-ETHVJ2ZE.mjs → chunk-TVHDWS5U.mjs} +1 -1
  51. package/dist/cli/{chunk-U4M32NFS.mjs → chunk-TXJW6RIM.mjs} +1 -1
  52. package/dist/cli/{chunk-LAMGJQDY.mjs → chunk-U6OUX47C.mjs} +2 -2
  53. package/dist/cli/{chunk-S5LUY3KJ.js → chunk-UTCGCES2.js} +7 -7
  54. package/dist/cli/{chunk-VYIAWAKJ.mjs → chunk-UUIC2JFZ.mjs} +1 -1
  55. package/dist/cli/{chunk-WA3FG7DH.js → chunk-UWCEBS7F.js} +14 -14
  56. package/dist/cli/{chunk-MRUFGOJR.js → chunk-WBY3R55B.js} +2 -2
  57. package/dist/cli/{chunk-TFEGJEYO.js → chunk-WITNIMLE.js} +3 -3
  58. package/dist/cli/{chunk-CWRL6IQP.js → chunk-WL6GAZBD.js} +18 -11
  59. package/dist/cli/{chunk-CLTL7ZJI.mjs → chunk-WOLY6SU4.mjs} +1 -1
  60. package/dist/cli/{chunk-GCLNX72G.mjs → chunk-XVIMOB2U.mjs} +2 -2
  61. package/dist/cli/{chunk-IMO3HXWZ.mjs → chunk-Y47OCS5V.mjs} +1 -1
  62. package/dist/cli/{chunk-M43ZYNDA.mjs → chunk-YNFPZVII.mjs} +5 -5
  63. package/dist/cli/command-docs.js +2 -2
  64. package/dist/cli/command-docs.mjs +1 -1
  65. package/dist/cli/{csv-OO554TPX.mjs → csv-4BLFRED6.mjs} +4 -4
  66. package/dist/cli/{csv-5JHWVJ5N.js → csv-KSJB5Z3M.js} +13 -13
  67. package/dist/cli/{db-CYQJ4OXF.js → db-G7Z5CKO2.js} +27 -27
  68. package/dist/cli/{db-SQKJ6RKU.mjs → db-OVW6C3DV.mjs} +6 -6
  69. package/dist/cli/describe-KMYR2JBC.js +50 -0
  70. package/dist/cli/{describe-N7AKTUQV.mjs → describe-OEFTD7WQ.mjs} +18 -18
  71. package/dist/cli/{executions-F34DORW6.mjs → executions-7ZKQ4ZU3.mjs} +6 -6
  72. package/dist/cli/{executions-K7EGCRKX.js → executions-O7USCBCW.js} +8 -8
  73. package/dist/cli/{feedback-GQHKCS66.mjs → feedback-KUBL5E3I.mjs} +61 -13
  74. package/dist/cli/{feedback-NOQVCA3Q.js → feedback-Y55WCRIQ.js} +65 -17
  75. package/dist/cli/{git-2EEITXDB.mjs → git-C6ZAU5JA.mjs} +5 -5
  76. package/dist/cli/git-NBVQ3VGW.js +25 -0
  77. package/dist/cli/index.js +145 -145
  78. package/dist/cli/index.mjs +44 -44
  79. package/dist/cli/{legacy-noops-JHMY5XRB.mjs → legacy-noops-MUXD4HRC.mjs} +6 -6
  80. package/dist/cli/{legacy-noops-RFNHQ7RG.js → legacy-noops-OVWX4KB3.js} +9 -9
  81. package/dist/cli/{monitors-RDMP6SPZ.mjs → monitors-2ZSGBY52.mjs} +7 -7
  82. package/dist/cli/{monitors-UKRZ4BDK.js → monitors-3QVYGYWA.js} +100 -100
  83. package/dist/cli/{org-RF3G4KMB.mjs → org-RDSPE5FB.mjs} +6 -6
  84. package/dist/cli/{org-OX7TYTHV.js → org-S6Z3SDLI.js} +86 -86
  85. package/dist/cli/{pages-FBM3MGSP.mjs → pages-K5DSMHLJ.mjs} +6 -6
  86. package/dist/cli/{pages-MKQT5LFV.js → pages-VUWF2OR7.js} +18 -18
  87. package/dist/cli/{play-YWC2UORM.mjs → play-PZLXOYEX.mjs} +18 -18
  88. package/dist/cli/{play-OOVX2DMV.js → play-SQOJTUFC.js} +317 -317
  89. package/dist/cli/{providers-3PEQESIU.mjs → providers-AMIGP3D4.mjs} +6 -6
  90. package/dist/cli/{providers-2CGZYLER.js → providers-FZBEPUOI.js} +9 -9
  91. package/dist/cli/{quickstart-KVB36SOW.mjs → quickstart-HNOQKGOF.mjs} +4 -4
  92. package/dist/cli/{quickstart-6AANHKQZ.js → quickstart-QIHZDBGM.js} +6 -6
  93. package/dist/cli/{run-NJ7WV5TK.js → run-IQGM3TO2.js} +41 -41
  94. package/dist/cli/{run-QC23NRKO.mjs → run-JDW6BDNT.mjs} +23 -23
  95. package/dist/cli/search-BNWRL3YY.js +33 -0
  96. package/dist/cli/{search-7BMFFZI2.mjs → search-DMVUKJ23.mjs} +8 -8
  97. package/dist/cli/{search-output-CALZ4ZI2.mjs → search-output-5UAPUUHH.mjs} +4 -4
  98. package/dist/cli/{search-output-XC2AVBFX.js → search-output-UUW6UNHF.js} +6 -6
  99. package/dist/cli/{secrets-7ZHA57DI.mjs → secrets-46KSTPFN.mjs} +6 -6
  100. package/dist/cli/{secrets-VHU4B2D4.js → secrets-U532KN24.js} +15 -15
  101. package/dist/cli/sessions-JZUONXH4.js +22 -0
  102. package/dist/cli/sessions-RUNWYHYX.mjs +22 -0
  103. package/dist/cli/{settings-AVY4NNHI.mjs → settings-56L3WHCY.mjs} +13 -13
  104. package/dist/cli/{settings-WV77QJGD.js → settings-O2A37FFA.js} +86 -86
  105. package/dist/cli/{setup-GE5TLTC4.js → setup-ETFSMSCH.js} +50 -50
  106. package/dist/cli/{setup-AOUJ3RMU.mjs → setup-Q27X6JZY.mjs} +10 -10
  107. package/dist/cli/skills-IKDJ5JDN.js +37 -0
  108. package/dist/cli/{skills-FVWO2G66.mjs → skills-WFQRZL4D.mjs} +8 -8
  109. package/dist/cli/tools-B735AA67.js +57 -0
  110. package/dist/cli/{tools-URE655B4.mjs → tools-EV6CKJOX.mjs} +17 -17
  111. package/dist/cli/update-CNNURAM3.js +35 -0
  112. package/dist/cli/{update-5B4G4345.mjs → update-KIPPFVCH.mjs} +10 -10
  113. package/dist/cli/{views-IC762HEQ.js → views-DNZ2HFTA.js} +18 -18
  114. package/dist/cli/{views-GSECJ5IK.mjs → views-LMJXWD4N.mjs} +6 -6
  115. package/dist/cli/{workflow-6UQM565I.mjs → workflow-3XKUQ73U.mjs} +7 -7
  116. package/dist/cli/{workflow-EME7ZEOV.js → workflow-ZUDTIOK6.js} +17 -17
  117. package/dist/index.js +9 -9
  118. package/dist/index.mjs +6 -6
  119. package/dist/install-integrity.json +107 -106
  120. package/dist/release.d.mts +1 -1
  121. package/dist/release.d.ts +1 -1
  122. package/dist/release.js +2 -2
  123. package/dist/release.mjs +1 -1
  124. package/dist/server.js +5 -5
  125. package/dist/server.mjs +3 -3
  126. package/package.json +1 -1
  127. package/dist/cli/auth-K7PMRXNG.js +0 -43
  128. package/dist/cli/describe-PASXOL3R.js +0 -50
  129. package/dist/cli/git-UU4YFJ2Q.js +0 -25
  130. package/dist/cli/search-NH4DTXUK.js +0 -33
  131. package/dist/cli/sessions-2TE5JWVP.js +0 -18
  132. package/dist/cli/sessions-YYULWFZE.mjs +0 -18
  133. package/dist/cli/skills-OL7LD6QX.js +0 -37
  134. package/dist/cli/tools-VQ5JO6DI.js +0 -57
  135. package/dist/cli/update-7ZOIOTZN.js +0 -35
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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; } var _class;
2
2
 
3
- var _chunkS5LUY3KJjs = require('./chunk-S5LUY3KJ.js');
3
+ var _chunkUTCGCES2js = require('./chunk-UTCGCES2.js');
4
4
 
5
5
  // src/cli/progress.ts
6
6
  var _worker_threads = require('worker_threads');
@@ -19,7 +19,7 @@ var CliProgress = (_class = class {
19
19
  __init9() {this.quiet = false}
20
20
  // --json output is one JSON document: progress never renders under it.
21
21
  constructor(enabled) {;_class.prototype.__init.call(this);_class.prototype.__init2.call(this);_class.prototype.__init3.call(this);_class.prototype.__init4.call(this);_class.prototype.__init5.call(this);_class.prototype.__init6.call(this);_class.prototype.__init7.call(this);_class.prototype.__init8.call(this);_class.prototype.__init9.call(this);
22
- this.enabled = enabled && !_chunkS5LUY3KJjs.isJsonOutputMode.call(void 0, );
22
+ this.enabled = enabled && !_chunkUTCGCES2js.isJsonOutputMode.call(void 0, );
23
23
  }
24
24
  setLogWriter(writer) {
25
25
  this.logWriter = writer;
@@ -59,7 +59,7 @@ var CliProgress = (_class = class {
59
59
  this.logWriter(line);
60
60
  return;
61
61
  }
62
- if (_chunkS5LUY3KJjs.isJsonOutputMode.call(void 0, )) return;
62
+ if (_chunkUTCGCES2js.isJsonOutputMode.call(void 0, )) return;
63
63
  if (!this.enabled) {
64
64
  process.stderr.write(`${line}
65
65
  `);
@@ -1,13 +1,15 @@
1
1
  import {
2
2
  rejectRestrictedFeedback
3
- } from "./chunk-VYIAWAKJ.mjs";
3
+ } from "./chunk-UUIC2JFZ.mjs";
4
4
  import {
5
5
  getAuthedHttpClient,
6
6
  printCommandEnvelope
7
- } from "./chunk-GCLNX72G.mjs";
7
+ } from "./chunk-XVIMOB2U.mjs";
8
8
  import {
9
- agentSessionIdFromEnvironment
10
- } from "./chunk-OWQF6WVH.mjs";
9
+ agentSessionIdFromEnvironment,
10
+ claudeProjectsRoots,
11
+ coworkTranscriptFromEnvironment
12
+ } from "./chunk-2GJW4RAQ.mjs";
11
13
 
12
14
  // src/cli/commands/sessions.ts
13
15
  import {
@@ -48,14 +50,17 @@ function detectShellContext() {
48
50
  cwd: process.cwd()
49
51
  };
50
52
  }
51
- function claudeProjectsRoot() {
52
- return join(homeDir(), ".claude", "projects");
53
- }
54
53
  function codexSessionsRoot() {
55
54
  return join(homeDir(), ".codex", "sessions");
56
55
  }
57
56
  function listClaudeSessionFiles() {
58
- const root = claudeProjectsRoot();
57
+ const files = [];
58
+ for (const root of claudeProjectsRoots()) {
59
+ files.push(...listClaudeSessionFilesIn(root));
60
+ }
61
+ return files;
62
+ }
63
+ function listClaudeSessionFilesIn(root) {
59
64
  if (!existsSync(root)) return [];
60
65
  const projectDirs = readDirectoryNames(root);
61
66
  const files = [];
@@ -147,10 +152,22 @@ function currentSessionFile(agent) {
147
152
  agent === "auto" ? void 0 : agent === "claude" ? "claude_code" : "codex"
148
153
  );
149
154
  const cwd = process.cwd();
150
- return 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 : coworkTranscriptFromEnvironment();
160
+ const coworkStat = cowork ? statIfReadable(cowork.filePath) : null;
161
+ if (cowork && coworkStat) {
162
+ return { agent: "claude", ...cowork, mtimeMs: coworkStat.mtimeMs };
163
+ }
164
+ return newestFirst.find(
151
165
  (candidate) => sessionStartedInDirectory(candidate, cwd)
152
166
  ) ?? newestFirst[0] ?? null;
153
167
  }
168
+ function feedbackAgentSessionId(agentRuntime) {
169
+ return agentSessionIdFromEnvironment(process.env, agentRuntime) ?? (agentRuntime === "claude_cowork" || agentRuntime === "claude_code" ? coworkTranscriptFromEnvironment()?.sessionId ?? null : null);
170
+ }
154
171
  function sessionStartedInDirectory(candidate, cwd) {
155
172
  if (candidate.agent === "claude") {
156
173
  return basename(dirname(candidate.filePath)) === cwd.replace(/[^a-zA-Z0-9]/g, "-");
@@ -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 = claudeProjectsRoots().map((root) => join(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();
@@ -479,33 +497,57 @@ 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
- printCommandEnvelope(
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: built[0]?.sessionId,
518
+ content: built[0]?.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(readFileSync(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
553
  if (rejectRestrictedFeedback(options)) return;
@@ -546,28 +588,10 @@ 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(readFileSync(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 && !options.label?.length ? await uploadPayload("/api/v2/cli/send-session", {
558
- session_id: built[0]?.sessionId,
559
- content: built[0]?.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(options.label?.length)
571
595
  });
572
596
  const sessionIds = built.map((session) => session.sessionId);
573
597
  printCommandEnvelope(
@@ -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
  ]
@@ -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
@@ -786,6 +811,8 @@ Examples:
786
811
  }
787
812
 
788
813
  export {
814
+ feedbackAgentSessionId,
815
+ uploadAgentSession,
789
816
  registerSessionsCommands,
790
817
  registerSessionSendRenderCommands
791
818
  };
@@ -2,10 +2,10 @@ import {
2
2
  getAuthedHttpClient,
3
3
  openInBrowser,
4
4
  printCommandEnvelope
5
- } from "./chunk-GCLNX72G.mjs";
5
+ } from "./chunk-XVIMOB2U.mjs";
6
6
  import {
7
7
  resolveBaseUrlOnly
8
- } from "./chunk-U4M32NFS.mjs";
8
+ } from "./chunk-TXJW6RIM.mjs";
9
9
 
10
10
  // src/cli/commands/git.ts
11
11
  function shellQuote(value) {
@@ -3,18 +3,18 @@
3
3
  var _chunkD3BCSAN7js = require('./chunk-D3BCSAN7.js');
4
4
 
5
5
 
6
- var _chunkV2GN4PLKjs = require('./chunk-V2GN4PLK.js');
6
+ var _chunkRZJWHL7Ljs = require('./chunk-RZJWHL7L.js');
7
7
 
8
8
 
9
- var _chunkWA3FG7DHjs = require('./chunk-WA3FG7DH.js');
9
+ var _chunkUWCEBS7Fjs = require('./chunk-UWCEBS7F.js');
10
10
 
11
11
 
12
12
 
13
- var _chunkS5LUY3KJjs = require('./chunk-S5LUY3KJ.js');
13
+ var _chunkUTCGCES2js = require('./chunk-UTCGCES2.js');
14
14
 
15
15
 
16
16
 
17
- var _chunkTFEGJEYOjs = require('./chunk-TFEGJEYO.js');
17
+ var _chunkWITNIMLEjs = require('./chunk-WITNIMLE.js');
18
18
 
19
19
  // src/cli/commands/search.ts
20
20
  var _commander = require('commander');
@@ -24,7 +24,7 @@ var _fs = require('fs');
24
24
  var _path = require('path');
25
25
  var SEARCH_REF_TTL_MS = 15 * 6e4;
26
26
  function lastSearchPath() {
27
- return _path.join.call(void 0, _chunkTFEGJEYOjs.sdkCliStateDirPath.call(void 0, _chunkTFEGJEYOjs.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
27
+ return _path.join.call(void 0, _chunkWITNIMLEjs.sdkCliStateDirPath.call(void 0, _chunkWITNIMLEjs.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
28
28
  }
29
29
  function rememberSearchRef(searchRef) {
30
30
  writeSearchRefs({ searchRef });
@@ -134,9 +134,9 @@ async function runSearch(queryInputs, options, types, exclude = []) {
134
134
  console.error("--summary-width must be an integer of at least 2.");
135
135
  return 1;
136
136
  }
137
- const client = new (0, _chunkV2GN4PLKjs.DeeplineClient)();
137
+ const client = new (0, _chunkRZJWHL7Ljs.DeeplineClient)();
138
138
  const json = options.json === true;
139
- const renderer = json ? void 0 : await Promise.resolve().then(() => _interopRequireWildcard(require("./search-output-XC2AVBFX.js")));
139
+ const renderer = json ? void 0 : await Promise.resolve().then(() => _interopRequireWildcard(require("./search-output-UUW6UNHF.js")));
140
140
  const searches = [];
141
141
  const chunks = [];
142
142
  const refs = /* @__PURE__ */ new Map();
@@ -159,7 +159,7 @@ async function runSearch(queryInputs, options, types, exclude = []) {
159
159
  const text = _optionalChain([renderer, 'optionalAccess', _12 => _12.renderSearchResults, 'call', _13 => _13(result, summaryWidth)]);
160
160
  if (!multiple) {
161
161
  if (searchRef) rememberSearchRef(searchRef);
162
- _chunkS5LUY3KJjs.printCommandEnvelope.call(void 0, result, { json, text });
162
+ _chunkUTCGCES2js.printCommandEnvelope.call(void 0, result, { json, text });
163
163
  return 0;
164
164
  }
165
165
  searches.push({ ...result, query });
@@ -173,8 +173,8 @@ ${text}`);
173
173
  }
174
174
  } catch (error) {
175
175
  if (!multiple) throw error;
176
- const payload = _chunkS5LUY3KJjs.errorToJsonPayload.call(void 0, error);
177
- const queryExitCode = _nullishCoalesce(payload.exitCode, () => ( _chunkWA3FG7DHjs.resolveSdkCliFailureExitCode.call(void 0, error)));
176
+ const payload = _chunkUTCGCES2js.errorToJsonPayload.call(void 0, error);
177
+ const queryExitCode = _nullishCoalesce(payload.exitCode, () => ( _chunkUWCEBS7Fjs.resolveSdkCliFailureExitCode.call(void 0, error)));
178
178
  searches.push({ ...payload, query, exitCode: queryExitCode });
179
179
  if (!json) {
180
180
  console.error(`${JSON.stringify(query)}: ${payload.error.message}`);
@@ -186,7 +186,7 @@ Search failed.
186
186
  }
187
187
  }
188
188
  rememberSearchRefsByTool(refs);
189
- _chunkS5LUY3KJjs.printCommandEnvelope.call(void 0,
189
+ _chunkUTCGCES2js.printCommandEnvelope.call(void 0,
190
190
  { searches },
191
191
  {
192
192
  json,
@@ -8,7 +8,7 @@ import {
8
8
  csvStringFromRows,
9
9
  markJsonOutputHandled,
10
10
  writeRawStderr
11
- } from "./chunk-GCLNX72G.mjs";
11
+ } from "./chunk-XVIMOB2U.mjs";
12
12
 
13
13
  // src/cli/describe-options.ts
14
14
  function addDescribeOptions(command, options = {}) {
@@ -1,11 +1,11 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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 _chunkMRUFGOJRjs = require('./chunk-MRUFGOJR.js');
3
+ var _chunkWBY3R55Bjs = require('./chunk-WBY3R55B.js');
4
4
 
5
5
 
6
6
 
7
7
 
8
- var _chunkNRBCETWLjs = require('./chunk-NRBCETWL.js');
8
+ var _chunkSCLRGDF4js = require('./chunk-SCLRGDF4.js');
9
9
 
10
10
  // src/cli/play-run-admission.ts
11
11
  function usesInlinePlayAdmission(command, args) {
@@ -18,11 +18,11 @@ function usesCliPlayAdmission(command, args) {
18
18
  }
19
19
  async function checkPlayRunCompatibility(baseUrl, maintenancePolicy = "configured", signal) {
20
20
  _optionalChain([signal, 'optionalAccess', _ => _.throwIfAborted, 'call', _2 => _2()]);
21
- if (maintenancePolicy !== "off") _chunkNRBCETWLjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
22
- const compatibility = await _chunkMRUFGOJRjs.traceCliSpan.call(void 0,
21
+ if (maintenancePolicy !== "off") _chunkSCLRGDF4js.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
22
+ const compatibility = await _chunkWBY3R55Bjs.traceCliSpan.call(void 0,
23
23
  "cli.sdk_compatibility",
24
24
  { baseUrl, command: "plays run" },
25
- () => _chunkNRBCETWLjs.checkSdkCompatibility.call(void 0, baseUrl, {
25
+ () => _chunkSCLRGDF4js.checkSdkCompatibility.call(void 0, baseUrl, {
26
26
  command: "plays run",
27
27
  persistCache: maintenancePolicy !== "off",
28
28
  signal
@@ -30,7 +30,7 @@ async function checkPlayRunCompatibility(baseUrl, maintenancePolicy = "configure
30
30
  );
31
31
  _optionalChain([signal, 'optionalAccess', _3 => _3.throwIfAborted, 'call', _4 => _4()]);
32
32
  if (compatibility.error) throw compatibility.error;
33
- _chunkNRBCETWLjs.enforceSdkCompatibilityResponse.call(void 0, compatibility.response, {
33
+ _chunkSCLRGDF4js.enforceSdkCompatibilityResponse.call(void 0, compatibility.response, {
34
34
  quietAdvisory: true
35
35
  });
36
36
  }
@@ -8,7 +8,7 @@ var _chunkXYIECA7Mjs = require('./chunk-XYIECA7M.js');
8
8
 
9
9
 
10
10
 
11
- var _chunkS5LUY3KJjs = require('./chunk-S5LUY3KJ.js');
11
+ var _chunkUTCGCES2js = require('./chunk-UTCGCES2.js');
12
12
 
13
13
  // src/cli/describe-options.ts
14
14
  function addDescribeOptions(command, options = {}) {
@@ -249,7 +249,7 @@ function projectRunDatasetCell(value) {
249
249
  const logicalValue = parseSerializedDatasetValue(value);
250
250
  if (logicalValue === null || logicalValue === void 0) return logicalValue;
251
251
  if (typeof logicalValue === "object") {
252
- return _chunkS5LUY3KJjs.csvSafeJsonString.call(void 0, canonicalDatasetJson(logicalValue));
252
+ return _chunkUTCGCES2js.csvSafeJsonString.call(void 0, canonicalDatasetJson(logicalValue));
253
253
  }
254
254
  return logicalValue;
255
255
  }
@@ -641,7 +641,7 @@ function csvText(rows, columns = []) {
641
641
  rows: rows.map((row) => record(row) ? row : { value: row }),
642
642
  columns
643
643
  });
644
- return _chunkS5LUY3KJjs.csvStringFromRows.call(void 0, projection.rows, projection.columns);
644
+ return _chunkUTCGCES2js.csvStringFromRows.call(void 0, projection.rows, projection.columns);
645
645
  }
646
646
  function writeExecutionOutput(result, options, { skipReceiptFile = false } = {}) {
647
647
  let temp;
@@ -768,7 +768,7 @@ function writeExecutionOutput(result, options, { skipReceiptFile = false } = {})
768
768
  };
769
769
  if (options.receiptOut && !skipReceiptFile) {
770
770
  persist(options.receiptOut, jsonText(receipt));
771
- _chunkS5LUY3KJjs.markJsonOutputHandled.call(void 0, );
771
+ _chunkUTCGCES2js.markJsonOutputHandled.call(void 0, );
772
772
  } else {
773
773
  printReceipt(receipt, options, {
774
774
  data: hasData ? result.data : void 0,
@@ -1027,8 +1027,8 @@ function printReceipt(receipt, options, extra) {
1027
1027
  const text = options.receiptJson ? `${JSON.stringify(receipt, null, 2)}
1028
1028
  ` : receiptText(receipt, options, extra);
1029
1029
  if (options.receiptOut !== void 0) {
1030
- _chunkS5LUY3KJjs.writeRawStderr.call(void 0, text);
1031
- _chunkS5LUY3KJjs.markJsonOutputHandled.call(void 0, );
1030
+ _chunkUTCGCES2js.writeRawStderr.call(void 0, text);
1031
+ _chunkUTCGCES2js.markJsonOutputHandled.call(void 0, );
1032
1032
  } else {
1033
1033
  (dataOnStdout(options) ? process.stderr : process.stdout).write(text);
1034
1034
  }
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  seedToolListScript
3
- } from "./chunk-YC7FKAJ4.mjs";
3
+ } from "./chunk-DY2AT3JQ.mjs";
4
4
  import {
5
5
  addDescribeOptions
6
- } from "./chunk-UXF3ODJJ.mjs";
6
+ } from "./chunk-C3EW6I65.mjs";
7
7
  import {
8
8
  describeLookupsFor,
9
9
  describeName,
@@ -14,18 +14,18 @@ import {
14
14
  } from "./chunk-7AOFSZJM.mjs";
15
15
  import {
16
16
  DeeplineClient
17
- } from "./chunk-KPINGHIF.mjs";
17
+ } from "./chunk-HPACLONQ.mjs";
18
18
  import {
19
19
  failureReportHeaders,
20
20
  isFailureReportingDisabled
21
- } from "./chunk-WGRDOPAK.mjs";
21
+ } from "./chunk-6COGHW7B.mjs";
22
22
  import {
23
23
  printCommandEnvelope
24
- } from "./chunk-GCLNX72G.mjs";
24
+ } from "./chunk-XVIMOB2U.mjs";
25
25
  import {
26
26
  autoDetectBaseUrl,
27
27
  resolveApiKeyForBaseUrl
28
- } from "./chunk-U4M32NFS.mjs";
28
+ } from "./chunk-TXJW6RIM.mjs";
29
29
 
30
30
  // src/cli/commands/describe.ts
31
31
  import { writeFileSync } from "fs";