deepline 0.3.538 → 0.3.539

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 (128) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/bundling-sources/shared_libs/play-runtime/app-runtime-api.ts +8 -1
  3. package/dist/bundling-sources/shared_libs/play-runtime/baked-runner-image.ts +66 -4
  4. package/dist/bundling-sources/shared_libs/play-runtime/launch-identity.ts +2 -0
  5. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +0 -4
  6. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/modal.ts +14 -5
  7. package/dist/bundling-sources/shared_libs/play-runtime/runtime-speed-profile.ts +136 -0
  8. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backend.ts +7 -0
  9. package/dist/cli/auth-O5Y2VYXK.js +43 -0
  10. package/dist/cli/{auth-KYH7N7RQ.mjs → auth-QD7QGD3B.mjs} +5 -5
  11. package/dist/cli/{billing-WK346KAI.mjs → billing-FIZXMHBW.mjs} +6 -6
  12. package/dist/cli/{billing-4KTUVZ4S.js → billing-KOQAF6WS.js} +89 -89
  13. package/dist/cli/{chunk-FWE37N2P.mjs → chunk-2XMFT44N.mjs} +1 -1
  14. package/dist/cli/{chunk-MNBIGX6O.js → chunk-3YDI2PTN.js} +10 -10
  15. package/dist/cli/{chunk-M3NCXGNN.mjs → chunk-55ITVU2V.mjs} +2 -2
  16. package/dist/cli/{chunk-O765M4LT.js → chunk-5QL4GJB2.js} +2 -2
  17. package/dist/cli/{chunk-6SLQLWWL.js → chunk-5RUB53KG.js} +26 -26
  18. package/dist/cli/{chunk-ADLDU2QG.js → chunk-5YF35HAV.js} +6 -6
  19. package/dist/cli/{chunk-A6E7TCK2.mjs → chunk-6KG4KVTH.mjs} +5 -5
  20. package/dist/cli/{chunk-VCHV4LS3.mjs → chunk-6NZBLFL4.mjs} +1 -1
  21. package/dist/cli/{chunk-KNIYEZVV.mjs → chunk-6V3LNYK5.mjs} +2 -2
  22. package/dist/cli/{chunk-TWWYCJJW.mjs → chunk-ADV2IB2C.mjs} +5 -5
  23. package/dist/cli/{chunk-7XDJKIM2.mjs → chunk-APKZGUTU.mjs} +4 -4
  24. package/dist/cli/{chunk-P3DP56HB.js → chunk-CQJCLHBE.js} +41 -41
  25. package/dist/cli/{chunk-N2BCPZVR.mjs → chunk-DZFVVP3S.mjs} +5 -5
  26. package/dist/cli/{chunk-T6GPTJ5F.mjs → chunk-E4QHTDPF.mjs} +1 -1
  27. package/dist/cli/{chunk-25RGHJQL.js → chunk-EAZS52DL.js} +15 -15
  28. package/dist/cli/{chunk-JPEBKN3K.mjs → chunk-F43MXIN3.mjs} +2 -2
  29. package/dist/cli/{chunk-KCUQNH4K.js → chunk-FH3P3E4S.js} +2 -2
  30. package/dist/cli/{chunk-ICTA5ICE.mjs → chunk-FIRV7BXJ.mjs} +1 -1
  31. package/dist/cli/{chunk-VIFLWQXS.js → chunk-FSQCB5SJ.js} +2 -2
  32. package/dist/cli/{chunk-5VSPRRTI.js → chunk-FTBWFDF3.js} +7 -7
  33. package/dist/cli/{chunk-CLO562KG.mjs → chunk-G3UFDUYU.mjs} +1 -1
  34. package/dist/cli/{chunk-UE7JHAZ2.mjs → chunk-GEO2EMM7.mjs} +1 -1
  35. package/dist/cli/{chunk-ZDLDCXY3.mjs → chunk-GLEGINSP.mjs} +2 -2
  36. package/dist/cli/{chunk-6JG3MRTM.mjs → chunk-GLKUC5PO.mjs} +2 -2
  37. package/dist/cli/{chunk-FJ5KPGCS.mjs → chunk-GNCIMHO2.mjs} +10 -10
  38. package/dist/cli/{chunk-IMLFB66A.js → chunk-ISXX5DUD.js} +3 -3
  39. package/dist/cli/{chunk-4KZF6OYY.mjs → chunk-JBCQFG7G.mjs} +3 -3
  40. package/dist/cli/{chunk-JTOV5RUA.mjs → chunk-JHEZQMOM.mjs} +1 -1
  41. package/dist/cli/{chunk-JCLRSMUP.js → chunk-K22EKW6L.js} +5 -5
  42. package/dist/cli/{chunk-B2BTBHX2.js → chunk-K5MZHTK7.js} +3 -3
  43. package/dist/cli/{chunk-MYSPQUAO.js → chunk-KAEVL62Q.js} +44 -44
  44. package/dist/cli/{chunk-34PLG5OE.js → chunk-KQTX545E.js} +13 -13
  45. package/dist/cli/{chunk-ALARRSMZ.mjs → chunk-LE5KN7CZ.mjs} +3 -3
  46. package/dist/cli/{chunk-PQKD5DMT.js → chunk-LEREPTAE.js} +19 -19
  47. package/dist/cli/{chunk-OOLBE6FR.js → chunk-MI53W4DN.js} +53 -53
  48. package/dist/cli/{chunk-ZU6JBRV5.mjs → chunk-MKESK3SW.mjs} +4 -4
  49. package/dist/cli/{chunk-4WQR4DG4.mjs → chunk-N3LPGGWD.mjs} +1 -1
  50. package/dist/cli/{chunk-UEZNIPFO.js → chunk-NR5PLMNG.js} +107 -107
  51. package/dist/cli/{chunk-3I5TU5XE.js → chunk-Q4HNK7JX.js} +8 -8
  52. package/dist/cli/{chunk-35OCRH5C.mjs → chunk-RULRGMMM.mjs} +5 -5
  53. package/dist/cli/{chunk-IP3XJTWA.mjs → chunk-SDAP5MCO.mjs} +2 -2
  54. package/dist/cli/{chunk-YQURGSRB.js → chunk-TZBCJHV6.js} +1 -1
  55. package/dist/cli/{chunk-LPTBHNGB.js → chunk-V7DEGIYO.js} +4 -4
  56. package/dist/cli/{chunk-YZ2ZPHWR.js → chunk-VK5UTS5B.js} +9 -9
  57. package/dist/cli/{chunk-N5HSG4OV.js → chunk-W32KT6LM.js} +5 -5
  58. package/dist/cli/{chunk-ESX3H7Q7.js → chunk-XZBXQCRJ.js} +22 -22
  59. package/dist/cli/{chunk-4NEOGPKD.mjs → chunk-Y66ZMOJI.mjs} +1 -1
  60. package/dist/cli/{chunk-BBS2BLPV.js → chunk-YMQFQO3K.js} +16 -16
  61. package/dist/cli/{csv-LM7FBECI.js → csv-BWWJYV2C.js} +13 -13
  62. package/dist/cli/{csv-2YKLUKDR.mjs → csv-G5RQQ74W.mjs} +4 -4
  63. package/dist/cli/{db-5PMA4IVW.js → db-5KNDLADE.js} +27 -27
  64. package/dist/cli/{db-234UBWJH.mjs → db-AJZHWB3V.mjs} +6 -6
  65. package/dist/cli/describe-B6CN6CFJ.js +49 -0
  66. package/dist/cli/{describe-W26LW5O7.mjs → describe-QY5TKWVD.mjs} +17 -17
  67. package/dist/cli/{executions-3S736GXX.js → executions-BCCW76BI.js} +8 -8
  68. package/dist/cli/{executions-GD7GXTJM.mjs → executions-SJPH3MZT.mjs} +6 -6
  69. package/dist/cli/{feedback-BUWTDY4R.js → feedback-GF65JKK6.js} +14 -14
  70. package/dist/cli/{feedback-GBV5HJJZ.mjs → feedback-S6SZOFGK.mjs} +6 -6
  71. package/dist/cli/git-DX6NB7VF.js +25 -0
  72. package/dist/cli/{git-YXJGTDQL.mjs → git-F5FT5YVB.mjs} +5 -5
  73. package/dist/cli/index.js +139 -139
  74. package/dist/cli/index.mjs +41 -41
  75. package/dist/cli/{legacy-noops-ZSF64V2U.js → legacy-noops-ECR6FS6U.js} +9 -9
  76. package/dist/cli/{legacy-noops-UJM6GBNP.mjs → legacy-noops-NOA4P5NE.mjs} +6 -6
  77. package/dist/cli/{monitors-UERUQ6CT.mjs → monitors-CTYSAGP4.mjs} +7 -7
  78. package/dist/cli/{monitors-XQ2GNH6D.js → monitors-DEWBSURN.js} +100 -100
  79. package/dist/cli/{org-CP4VLH6M.mjs → org-EKSKKT7H.mjs} +6 -6
  80. package/dist/cli/{org-IF6MPVNR.js → org-ZM2UUMZZ.js} +86 -86
  81. package/dist/cli/{play-2NHQO5MO.js → play-6JQOM6DE.js} +317 -317
  82. package/dist/cli/{play-ZWDYYVPI.mjs → play-R2BH374J.mjs} +17 -17
  83. package/dist/cli/{providers-LOPXQN56.js → providers-CMIYHEMN.js} +9 -9
  84. package/dist/cli/{providers-2CVIATU4.mjs → providers-X7WMIWO4.mjs} +6 -6
  85. package/dist/cli/{quickstart-N4WDEQZY.js → quickstart-6HVPAMSW.js} +6 -6
  86. package/dist/cli/{quickstart-KVCFXLID.mjs → quickstart-ZZ7L6VZJ.mjs} +4 -4
  87. package/dist/cli/{run-RUXHYWLF.mjs → run-FP32RKBU.mjs} +22 -22
  88. package/dist/cli/{run-BDT5LK3I.js → run-OOHYH3GI.js} +42 -42
  89. package/dist/cli/search-34C6LFOJ.js +32 -0
  90. package/dist/cli/{search-BFUTNPA5.mjs → search-BDDNC23Z.mjs} +7 -7
  91. package/dist/cli/{search-output-CTXI2QZU.js → search-output-5VZIQQAM.js} +6 -6
  92. package/dist/cli/{search-output-WUGH4PZA.mjs → search-output-QXJ6CV5G.mjs} +4 -4
  93. package/dist/cli/{secrets-BZJZYFOU.js → secrets-EN2HQCO3.js} +15 -15
  94. package/dist/cli/{secrets-Z4XQVTC6.mjs → secrets-Z7CQSQGC.mjs} +6 -6
  95. package/dist/cli/{sessions-VZXR3MQZ.mjs → sessions-I2H37OTJ.mjs} +6 -6
  96. package/dist/cli/sessions-RYQX3NDD.js +22 -0
  97. package/dist/cli/{settings-WBYA4JMM.js → settings-CTRAPFNZ.js} +85 -85
  98. package/dist/cli/{settings-VYEZFR4L.mjs → settings-IYSC5PPQ.mjs} +12 -12
  99. package/dist/cli/{setup-H7KCI4SO.mjs → setup-PU3HOVI3.mjs} +9 -9
  100. package/dist/cli/{setup-FS2RMSS2.js → setup-XIN53GEW.js} +49 -49
  101. package/dist/cli/skills-576CX7DK.js +36 -0
  102. package/dist/cli/{skills-YQNSJUUG.mjs → skills-TYBML2ZO.mjs} +7 -7
  103. package/dist/cli/tools-EXMUWA3Z.js +56 -0
  104. package/dist/cli/{tools-ZF6SVEGW.mjs → tools-ZVNE6M6J.mjs} +16 -16
  105. package/dist/cli/{update-RKQNNJM4.mjs → update-54WENBNT.mjs} +9 -9
  106. package/dist/cli/update-RAHETNL2.js +34 -0
  107. package/dist/cli/{views-KN7FEDGT.js → views-7L75EZOJ.js} +21 -21
  108. package/dist/cli/{views-JHHOTWDU.mjs → views-EUBB4ONT.mjs} +6 -6
  109. package/dist/cli/{workflow-2WHSKTTV.js → workflow-EZVYCR6Y.js} +17 -17
  110. package/dist/cli/{workflow-AAYLCLWA.mjs → workflow-GUKGFJ72.mjs} +7 -7
  111. package/dist/index.js +9 -9
  112. package/dist/index.mjs +6 -6
  113. package/dist/install-integrity.json +101 -100
  114. package/dist/release.d.mts +1 -1
  115. package/dist/release.d.ts +1 -1
  116. package/dist/release.js +2 -2
  117. package/dist/release.mjs +1 -1
  118. package/dist/server.js +5 -5
  119. package/dist/server.mjs +3 -3
  120. package/package.json +1 -1
  121. package/dist/cli/auth-4WEVLYK4.js +0 -43
  122. package/dist/cli/describe-C7GOSGYB.js +0 -49
  123. package/dist/cli/git-YG36MROC.js +0 -25
  124. package/dist/cli/search-ATDDVADT.js +0 -32
  125. package/dist/cli/sessions-HNU35AFM.js +0 -22
  126. package/dist/cli/skills-VPIURCAZ.js +0 -36
  127. package/dist/cli/tools-273GS5HU.js +0 -56
  128. package/dist/cli/update-TOD3XY55.js +0 -34
@@ -2,11 +2,11 @@ import {
2
2
  addDescribeOptions,
3
3
  recordApiResponse,
4
4
  writeExecutionOutput
5
- } from "./chunk-4WQR4DG4.mjs";
5
+ } from "./chunk-N3LPGGWD.mjs";
6
6
  import {
7
7
  recentSearchRef,
8
8
  registerDeprecatedSearchCommand
9
- } from "./chunk-7XDJKIM2.mjs";
9
+ } from "./chunk-APKZGUTU.mjs";
10
10
  import {
11
11
  Capability,
12
12
  arrayField,
@@ -46,10 +46,10 @@ import {
46
46
  } from "./chunk-FIVKWNMT.mjs";
47
47
  import {
48
48
  DeeplineClient
49
- } from "./chunk-M3NCXGNN.mjs";
49
+ } from "./chunk-55ITVU2V.mjs";
50
50
  import {
51
51
  validateExecutionIdempotencyKey
52
- } from "./chunk-UE7JHAZ2.mjs";
52
+ } from "./chunk-GEO2EMM7.mjs";
53
53
  import {
54
54
  stableStringify
55
55
  } from "./chunk-UBKA33KY.mjs";
@@ -59,18 +59,18 @@ import {
59
59
  maybeAutoUpdateAndRelaunch,
60
60
  registerCompatibilityCatalog,
61
61
  runToolExecuteStage
62
- } from "./chunk-N2BCPZVR.mjs";
62
+ } from "./chunk-DZFVVP3S.mjs";
63
63
  import {
64
64
  isCliTraceEnabled,
65
65
  recordCliTrace,
66
66
  resolveCliMaintenancePolicy
67
- } from "./chunk-FWE37N2P.mjs";
67
+ } from "./chunk-2XMFT44N.mjs";
68
68
  import {
69
69
  checkSdkCompatibility,
70
70
  enforceSdkCompatibilityResponse,
71
71
  flushDeferredSkillsSyncNotices,
72
72
  syncSdkSkillsIfNeeded
73
- } from "./chunk-TWWYCJJW.mjs";
73
+ } from "./chunk-ADV2IB2C.mjs";
74
74
  import {
75
75
  errorToJsonPayload,
76
76
  printCommandEnvelope,
@@ -79,12 +79,12 @@ import {
79
79
  printJsonError,
80
80
  renderCommandEnvelopeText,
81
81
  shouldEmitJson
82
- } from "./chunk-6JG3MRTM.mjs";
82
+ } from "./chunk-GLKUC5PO.mjs";
83
83
  import {
84
84
  readSdkSkillsLocalVersion,
85
85
  resolveConfig,
86
86
  sdkCliStateDirPath
87
- } from "./chunk-ICTA5ICE.mjs";
87
+ } from "./chunk-FIRV7BXJ.mjs";
88
88
  import {
89
89
  DeeplineError
90
90
  } from "./chunk-JL2OTMSG.mjs";
@@ -1137,7 +1137,7 @@ Examples:
1137
1137
  process.exitCode = await narrowView();
1138
1138
  return;
1139
1139
  }
1140
- const { describeAnything } = await import("./describe-W26LW5O7.mjs");
1140
+ const { describeAnything } = await import("./describe-QY5TKWVD.mjs");
1141
1141
  process.exitCode = await describeAnything(
1142
1142
  toolId,
1143
1143
  {
@@ -1,7 +1,7 @@
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
3
 
4
- var _chunkLPTBHNGBjs = require('./chunk-LPTBHNGB.js');
4
+ var _chunkV7DEGIYOjs = require('./chunk-V7DEGIYO.js');
5
5
 
6
6
 
7
7
  var _chunk2GJZLIKWjs = require('./chunk-2GJZLIKW.js');
@@ -711,7 +711,7 @@ function readSkillsVersionFile(path) {
711
711
  }
712
712
  }
713
713
  function resolveAutoSyncSkillAgents() {
714
- switch (_chunkLPTBHNGBjs.detectAgentRuntime.call(void 0, )) {
714
+ switch (_chunkV7DEGIYOjs.detectAgentRuntime.call(void 0, )) {
715
715
  case "codex":
716
716
  return ["codex"];
717
717
  case "claude_code":
@@ -781,7 +781,7 @@ function writeSdkSkillsLocalVersion(baseUrl, version, agents) {
781
781
  }
782
782
 
783
783
  // src/http.ts
784
- var HttpClient2 = class extends _chunkLPTBHNGBjs.HttpClient {
784
+ var HttpClient2 = class extends _chunkV7DEGIYOjs.HttpClient {
785
785
  constructor(config) {
786
786
  super(config, readSdkSkillsLocalVersion);
787
787
  }
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  rejectRestrictedFeedback
3
- } from "./chunk-VCHV4LS3.mjs";
3
+ } from "./chunk-6NZBLFL4.mjs";
4
4
  import {
5
5
  getAuthedHttpClient,
6
6
  printCommandEnvelope
7
- } from "./chunk-6JG3MRTM.mjs";
7
+ } from "./chunk-GLKUC5PO.mjs";
8
8
  import {
9
9
  agentSessionIdFromEnvironment,
10
10
  claudeProjectsRoots,
11
11
  coworkTranscriptFromEnvironment
12
- } from "./chunk-CLO562KG.mjs";
12
+ } from "./chunk-G3UFDUYU.mjs";
13
13
 
14
14
  // src/cli/commands/sessions.ts
15
15
  import {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  isJsonOutputMode
3
- } from "./chunk-6JG3MRTM.mjs";
3
+ } from "./chunk-GLKUC5PO.mjs";
4
4
 
5
5
  // src/cli/progress.ts
6
6
  import { Worker } from "worker_threads";
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
2
2
 
3
- var _chunk3I5TU5XEjs = require('./chunk-3I5TU5XE.js');
3
+ var _chunkQ4HNK7JXjs = require('./chunk-Q4HNK7JX.js');
4
4
 
5
5
 
6
6
 
7
- var _chunkIMLFB66Ajs = require('./chunk-IMLFB66A.js');
7
+ var _chunkISXX5DUDjs = require('./chunk-ISXX5DUD.js');
8
8
 
9
9
  // src/plays/local-play-execution.ts
10
10
  function importedNodes(graph) {
@@ -137,9 +137,9 @@ async function pinLocalPlayImports(client, graph) {
137
137
 
138
138
  // src/plays/client.ts
139
139
  function createPlayClient(options) {
140
- const config = _chunkIMLFB66Ajs.resolveConfig.call(void 0, options);
141
- return new (0, _chunk3I5TU5XEjs.PlayClient)(
142
- new (0, _chunkIMLFB66Ajs.HttpClient)(config),
140
+ const config = _chunkISXX5DUDjs.resolveConfig.call(void 0, options);
141
+ return new (0, _chunkQ4HNK7JXjs.PlayClient)(
142
+ new (0, _chunkISXX5DUDjs.HttpClient)(config),
143
143
  _nullishCoalesce(config.environment, () => ( process.env))
144
144
  );
145
145
  }
@@ -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 _chunkPQKD5DMTjs = require('./chunk-PQKD5DMT.js');
3
+ var _chunkLEREPTAEjs = require('./chunk-LEREPTAE.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 && !_chunkPQKD5DMTjs.isJsonOutputMode.call(void 0, );
22
+ this.enabled = enabled && !_chunkLEREPTAEjs.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 (_chunkPQKD5DMTjs.isJsonOutputMode.call(void 0, )) return;
62
+ if (_chunkLEREPTAEjs.isJsonOutputMode.call(void 0, )) return;
63
63
  if (!this.enabled) {
64
64
  process.stderr.write(`${line}
65
65
  `);
@@ -1,9 +1,9 @@
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 _chunkB2BTBHX2js = require('./chunk-B2BTBHX2.js');
3
+ var _chunkK5MZHTK7js = require('./chunk-K5MZHTK7.js');
4
4
 
5
5
 
6
- var _chunkPQKD5DMTjs = require('./chunk-PQKD5DMT.js');
6
+ var _chunkLEREPTAEjs = require('./chunk-LEREPTAE.js');
7
7
 
8
8
 
9
9
 
@@ -14,17 +14,17 @@ var _chunkPQKD5DMTjs = require('./chunk-PQKD5DMT.js');
14
14
 
15
15
 
16
16
 
17
- var _chunkIMLFB66Ajs = require('./chunk-IMLFB66A.js');
17
+ var _chunkISXX5DUDjs = require('./chunk-ISXX5DUD.js');
18
18
 
19
19
 
20
20
 
21
21
 
22
22
 
23
23
 
24
- var _chunkLPTBHNGBjs = require('./chunk-LPTBHNGB.js');
24
+ var _chunkV7DEGIYOjs = require('./chunk-V7DEGIYO.js');
25
25
 
26
26
 
27
- var _chunkYQURGSRBjs = require('./chunk-YQURGSRB.js');
27
+ var _chunkTZBCJHV6js = require('./chunk-TZBCJHV6.js');
28
28
 
29
29
  // src/compat.ts
30
30
  var _crypto = require('crypto');
@@ -59,7 +59,7 @@ function shouldSkipCompatibilityCheck() {
59
59
  return value === "1" || value === "true" || value === "yes";
60
60
  }
61
61
  function sdkCompatibilityCachePath(baseUrl, homeDir = _optionalChain([process, 'access', _7 => _7.env, 'access', _8 => _8.HOME, 'optionalAccess', _9 => _9.trim, 'call', _10 => _10()]) || _os.homedir.call(void 0, )) {
62
- return _path.join.call(void 0, _chunkIMLFB66Ajs.sdkCliStateDirPath.call(void 0, baseUrl, homeDir), "compat-cache.json");
62
+ return _path.join.call(void 0, _chunkISXX5DUDjs.sdkCliStateDirPath.call(void 0, baseUrl, homeDir), "compat-cache.json");
63
63
  }
64
64
  function legacySdkCompatibilityCachePath(homeDir = _optionalChain([process, 'access', _11 => _11.env, 'access', _12 => _12.HOME, 'optionalAccess', _13 => _13.trim, 'call', _14 => _14()]) || _os.homedir.call(void 0, )) {
65
65
  return _path.join.call(void 0, homeDir, ".cache", "deepline", "sdk-compat-cache.json");
@@ -67,9 +67,9 @@ function legacySdkCompatibilityCachePath(homeDir = _optionalChain([process, 'acc
67
67
  function compatibilityCacheKey(baseUrl, command, skillsVersion) {
68
68
  return JSON.stringify({
69
69
  baseUrl: baseUrl.replace(/\/$/, ""),
70
- version: _chunkLPTBHNGBjs.SDK_VERSION,
71
- apiContract: _chunkLPTBHNGBjs.SDK_API_CONTRACT,
72
- apiMajor: _chunkLPTBHNGBjs.SDK_API_MAJOR,
70
+ version: _chunkV7DEGIYOjs.SDK_VERSION,
71
+ apiContract: _chunkV7DEGIYOjs.SDK_API_CONTRACT,
72
+ apiMajor: _chunkV7DEGIYOjs.SDK_API_MAJOR,
73
73
  command: _optionalChain([command, 'optionalAccess', _15 => _15.trim, 'call', _16 => _16()]) || null,
74
74
  skillsVersion: _nullishCoalesce(skillsVersion, () => ( null))
75
75
  });
@@ -77,8 +77,8 @@ function compatibilityCacheKey(baseUrl, command, skillsVersion) {
77
77
  function legacyCompatibilityCacheKey(baseUrl, command) {
78
78
  return JSON.stringify({
79
79
  baseUrl: baseUrl.replace(/\/$/, ""),
80
- version: _chunkLPTBHNGBjs.SDK_VERSION,
81
- apiContract: _chunkLPTBHNGBjs.SDK_API_CONTRACT,
80
+ version: _chunkV7DEGIYOjs.SDK_VERSION,
81
+ apiContract: _chunkV7DEGIYOjs.SDK_API_CONTRACT,
82
82
  command: _optionalChain([command, 'optionalAccess', _17 => _17.trim, 'call', _18 => _18()]) || null
83
83
  });
84
84
  }
@@ -103,7 +103,7 @@ function isSavedWithin(savedAt, windowMs, now) {
103
103
  }
104
104
  var UPDATE_ADVISORY_INTERVAL_MS = 24 * 60 * 60 * 1e3;
105
105
  function claimUpdateAdvisory(baseUrl, now = Date.now()) {
106
- const path = _path.join.call(void 0, _chunkIMLFB66Ajs.sdkCliStateDirPath.call(void 0, baseUrl), "update-advisory.json");
106
+ const path = _path.join.call(void 0, _chunkISXX5DUDjs.sdkCliStateDirPath.call(void 0, baseUrl), "update-advisory.json");
107
107
  try {
108
108
  const { shownAt } = JSON.parse(_fs.readFileSync.call(void 0, path, "utf8"));
109
109
  if (isSavedWithin(shownAt, UPDATE_ADVISORY_INTERVAL_MS, now)) return false;
@@ -190,7 +190,7 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
190
190
  );
191
191
  try {
192
192
  const url = new URL("/api/v2/sdk/compat", baseUrl);
193
- url.searchParams.set("version", _chunkLPTBHNGBjs.SDK_VERSION);
193
+ url.searchParams.set("version", _chunkV7DEGIYOjs.SDK_VERSION);
194
194
  if (_optionalChain([options, 'access', _34 => _34.command, 'optionalAccess', _35 => _35.trim, 'call', _36 => _36()])) {
195
195
  url.searchParams.set("command", options.command.trim());
196
196
  }
@@ -198,7 +198,7 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
198
198
  url.searchParams.set("skills_version", _nullishCoalesce(options.skillsVersion, () => ( "")));
199
199
  url.searchParams.set(
200
200
  "skills_cli_capability",
201
- String(_chunkYQURGSRBjs.SDK_RELEASE.packageCapabilities.skillsGuidance)
201
+ String(_chunkTZBCJHV6js.SDK_RELEASE.packageCapabilities.skillsGuidance)
202
202
  );
203
203
  }
204
204
  if (options.catalog) {
@@ -210,14 +210,14 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
210
210
  const response = await fetch(url, {
211
211
  method: "GET",
212
212
  headers: {
213
- ..._chunkLPTBHNGBjs.deploymentProtectionHeaders.call(void 0, ),
214
- "User-Agent": `deepline-ts-sdk/${_chunkLPTBHNGBjs.SDK_VERSION}`,
215
- "X-Deepline-SDK-Version": _chunkLPTBHNGBjs.SDK_VERSION,
216
- "X-Deepline-API-Major": String(_chunkLPTBHNGBjs.SDK_API_MAJOR),
217
- "X-Deepline-API-Contract": _chunkLPTBHNGBjs.SDK_API_CONTRACT,
213
+ ..._chunkV7DEGIYOjs.deploymentProtectionHeaders.call(void 0, ),
214
+ "User-Agent": `deepline-ts-sdk/${_chunkV7DEGIYOjs.SDK_VERSION}`,
215
+ "X-Deepline-SDK-Version": _chunkV7DEGIYOjs.SDK_VERSION,
216
+ "X-Deepline-API-Major": String(_chunkV7DEGIYOjs.SDK_API_MAJOR),
217
+ "X-Deepline-API-Contract": _chunkV7DEGIYOjs.SDK_API_CONTRACT,
218
218
  "X-Deepline-CLI-Update-Preferences": "1",
219
219
  "X-Deepline-CLI-Auto-Update-Capability": SDK_CLI_AUTO_UPDATE_CAPABILITY,
220
- ...options.catalog ? { Authorization: `Bearer ${_chunkIMLFB66Ajs.resolveApiKeyForBaseUrl.call(void 0, baseUrl)}` } : {},
220
+ ...options.catalog ? { Authorization: `Bearer ${_chunkISXX5DUDjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl)}` } : {},
221
221
  ..._optionalChain([options, 'access', _37 => _37.catalog, 'optionalAccess', _38 => _38.cliInvocationId]) ? { "X-Deepline-CLI-Invocation-ID": options.catalog.cliInvocationId } : {}
222
222
  },
223
223
  signal: controller.signal
@@ -386,7 +386,7 @@ function skillsSourceUrl(baseUrl) {
386
386
  function buildSkillsAddArgs(baseUrl, skillName, options = {}) {
387
387
  const skillNames = Array.isArray(skillName) ? skillName : [skillName];
388
388
  const [firstSkillName, ...extraSkillNames] = skillNames;
389
- const agents = _nullishCoalesce(options.agents, () => ( _chunkIMLFB66Ajs.DEFAULT_SKILL_AGENTS));
389
+ const agents = _nullishCoalesce(options.agents, () => ( _chunkISXX5DUDjs.DEFAULT_SKILL_AGENTS));
390
390
  const values = {
391
391
  skills_index_url: skillsIndexUrl(baseUrl),
392
392
  skills_source_url: skillsSourceUrl(baseUrl),
@@ -514,25 +514,25 @@ var CHECK_TIMEOUT_MS2 = 3e3;
514
514
  var INSTALLER_PROBE_TIMEOUT_MS = 1e3;
515
515
  var PUBLISHED_VERIFICATION_RETRY_MS = 5 * 6e4;
516
516
  function shouldSkipSkillsSync() {
517
- if (_chunkLPTBHNGBjs.detectAgentRuntime.call(void 0, ) === "claude_cowork" || isCiEnvironment()) {
517
+ if (_chunkV7DEGIYOjs.detectAgentRuntime.call(void 0, ) === "claude_cowork" || isCiEnvironment()) {
518
518
  return true;
519
519
  }
520
520
  const value = _optionalChain([process, 'access', _57 => _57.env, 'access', _58 => _58.DEEPLINE_SKIP_SKILLS_SYNC, 'optionalAccess', _59 => _59.trim, 'call', _60 => _60(), 'access', _61 => _61.toLowerCase, 'call', _62 => _62()]);
521
521
  return value === "1" || value === "true" || value === "yes" || value === "on" || !isCliSkillsSyncEnabled();
522
522
  }
523
523
  function unavailableSkillsNoticePath(baseUrl) {
524
- return _path.join.call(void 0, _chunkIMLFB66Ajs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-sync-unavailable-version");
524
+ return _path.join.call(void 0, _chunkISXX5DUDjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-sync-unavailable-version");
525
525
  }
526
526
  var SKILLS_SYNC_IN_PROGRESS_TTL_MS = 10 * 60 * 1e3;
527
527
  var SKILLS_SYNC_IN_PROGRESS_PID_CAP_MS = 6 * 60 * 60 * 1e3;
528
- var agentLeaseSegment = _chunkIMLFB66Ajs.skillsAgentPathSegment;
528
+ var agentLeaseSegment = _chunkISXX5DUDjs.skillsAgentPathSegment;
529
529
  function sortedLeaseAgents(agents) {
530
- const expanded = agents.includes("*") ? [...agents, ..._chunkIMLFB66Ajs.KNOWN_SKILL_AGENTS] : agents;
530
+ const expanded = agents.includes("*") ? [...agents, ..._chunkISXX5DUDjs.KNOWN_SKILL_AGENTS] : agents;
531
531
  return [...new Set(expanded)].sort((a, b) => a.localeCompare(b));
532
532
  }
533
533
  function inProgressSkillsSyncPath(baseUrl, agent) {
534
534
  return _path.join.call(void 0,
535
- _chunkIMLFB66Ajs.sdkCliStateDirPath.call(void 0, baseUrl),
535
+ _chunkISXX5DUDjs.sdkCliStateDirPath.call(void 0, baseUrl),
536
536
  `skills-sync-in-progress-${agentLeaseSegment(agent)}`
537
537
  );
538
538
  }
@@ -691,7 +691,7 @@ var SkillsStateUnavailableError = class extends Error {
691
691
  constructor(baseUrl, error) {
692
692
  const detail = error instanceof Error ? error.message : String(error);
693
693
  super(
694
- `Could not save skills state in ${_chunkIMLFB66Ajs.sdkCliStateDirPath.call(void 0, baseUrl)}: ${detail}`
694
+ `Could not save skills state in ${_chunkISXX5DUDjs.sdkCliStateDirPath.call(void 0, baseUrl)}: ${detail}`
695
695
  );
696
696
  this.name = "SkillsStateUnavailableError";
697
697
  }
@@ -776,7 +776,7 @@ function skillsInstallLeasePath(baseUrl, agents) {
776
776
  }
777
777
  function deferredSkillsNoticePath(baseUrl, agents) {
778
778
  return _path.join.call(void 0,
779
- _chunkIMLFB66Ajs.sdkCliStateDirPath.call(void 0, baseUrl),
779
+ _chunkISXX5DUDjs.sdkCliStateDirPath.call(void 0, baseUrl),
780
780
  `skills-sync-notice-${sortedLeaseAgents(agents).map(agentLeaseSegment).join("-")}`
781
781
  );
782
782
  }
@@ -810,8 +810,8 @@ function flushDeferredSkillsNotices(baseUrl, agents) {
810
810
  if (text.trim()) writeSdkSkillsStatusLine(text.trimEnd());
811
811
  }
812
812
  function flushDeferredSkillsSyncNotices(baseUrl) {
813
- if (shouldSkipSkillsSync() || _chunkIMLFB66Ajs.hasActivePluginSkills.call(void 0, )) return;
814
- const agents = _chunkIMLFB66Ajs.resolveAutoSyncSkillAgents.call(void 0, );
813
+ if (shouldSkipSkillsSync() || _chunkISXX5DUDjs.hasActivePluginSkills.call(void 0, )) return;
814
+ const agents = _chunkISXX5DUDjs.resolveAutoSyncSkillAgents.call(void 0, );
815
815
  if (agents.length === 0) return;
816
816
  flushDeferredSkillsNotices(baseUrl, agents);
817
817
  }
@@ -833,7 +833,7 @@ function spawnDetachedSkillsSyncChild(argv, onSpawnError, sidecarPath) {
833
833
  }
834
834
  function failedSkillsSyncPath(baseUrl, agents) {
835
835
  return _path.join.call(void 0,
836
- _chunkIMLFB66Ajs.sdkCliStateDirPath.call(void 0, baseUrl),
836
+ _chunkISXX5DUDjs.sdkCliStateDirPath.call(void 0, baseUrl),
837
837
  `skills-sync-failed-${sortedLeaseAgents(agents).map(agentLeaseSegment).join("-")}-version`
838
838
  );
839
839
  }
@@ -862,7 +862,7 @@ function writeUnavailableSkillsNotice(baseUrl, remoteVersion, skillNames, reason
862
862
  if (hasMarkedSkillsSyncVersion(path, remoteVersion)) return;
863
863
  writeMarkedSkillsSyncVersion(path, remoteVersion);
864
864
  const probes = reason === "no-installer" ? _nullishCoalesce(knownProbes, () => ( probeInstallers())) : null;
865
- const manualCommand = _optionalChain([probes, 'optionalAccess', _66 => _66.npx]) === "missing" && probes.bunx !== "missing" ? `bunx ${buildBunxSkillsInstallArgs(baseUrl, skillNames, _chunkIMLFB66Ajs.DEFAULT_SKILL_AGENTS).map(shellQuote).join(" ")}` : `npx ${buildSkillsInstallArgs(baseUrl, skillNames).join(" ")}`;
865
+ const manualCommand = _optionalChain([probes, 'optionalAccess', _66 => _66.npx]) === "missing" && probes.bunx !== "missing" ? `bunx ${buildBunxSkillsInstallArgs(baseUrl, skillNames, _chunkISXX5DUDjs.DEFAULT_SKILL_AGENTS).map(shellQuote).join(" ")}` : `npx ${buildSkillsInstallArgs(baseUrl, skillNames).join(" ")}`;
866
866
  const explanation = reason === "unsupported-agent" ? "the detected agent has no automatic skills sync target. Automatic sync was skipped." : _optionalChain([probes, 'optionalAccess', _67 => _67.bunx]) === "missing" && probes.npx === "missing" ? "neither `bunx` nor `npx` was found on PATH. Make one available." : `installer version check failed for ${Object.entries(_nullishCoalesce(probes, () => ( {}))).filter(([, result]) => result === "failed").map(([command]) => `\`${command}\``).join(" and ")}. Check those commands with --version.`;
867
867
  notice(
868
868
  `Deepline agent skills are out of date, but ${explanation} To install manually, run:
@@ -950,7 +950,7 @@ function buildSdkSkillNames(v1SkillNames2) {
950
950
  return sortedUniqueSkillNames(v1SkillNames2);
951
951
  }
952
952
  function isDefaultAgentSet(agents) {
953
- return agents.length === _chunkIMLFB66Ajs.DEFAULT_SKILL_AGENTS.length && agents.every((agent, index) => agent === _chunkIMLFB66Ajs.DEFAULT_SKILL_AGENTS[index]);
953
+ return agents.length === _chunkISXX5DUDjs.DEFAULT_SKILL_AGENTS.length && agents.every((agent, index) => agent === _chunkISXX5DUDjs.DEFAULT_SKILL_AGENTS[index]);
954
954
  }
955
955
  function safeSkillFilePath(value) {
956
956
  if (typeof value !== "string" || !value) return false;
@@ -1107,10 +1107,10 @@ async function fetchSkillsUpdate(baseUrl, localVersion) {
1107
1107
  method: "POST",
1108
1108
  headers: { "Content-Type": "application/json" },
1109
1109
  body: JSON.stringify({
1110
- sdk_cli: { version: _chunkLPTBHNGBjs.SDK_VERSION },
1110
+ sdk_cli: { version: _chunkV7DEGIYOjs.SDK_VERSION },
1111
1111
  skills: {
1112
1112
  version: localVersion,
1113
- capability: _chunkYQURGSRBjs.SDK_RELEASE.packageCapabilities.skillsGuidance
1113
+ capability: _chunkTZBCJHV6js.SDK_RELEASE.packageCapabilities.skillsGuidance
1114
1114
  }
1115
1115
  }),
1116
1116
  signal: controller.signal
@@ -1149,7 +1149,7 @@ function probeInstallers(timeoutMs) {
1149
1149
  }
1150
1150
  function noInstallerProbePath(baseUrl) {
1151
1151
  return _path.join.call(void 0,
1152
- _chunkIMLFB66Ajs.sdkCliStateDirPath.call(void 0, baseUrl),
1152
+ _chunkISXX5DUDjs.sdkCliStateDirPath.call(void 0, baseUrl),
1153
1153
  "skills-sync-no-installer-unknown.json"
1154
1154
  );
1155
1155
  }
@@ -1228,7 +1228,7 @@ function temporarySkillsSyncSkipCommand() {
1228
1228
  function resolveSkillsInstallSpawn(install, platform = process.platform) {
1229
1229
  return resolveShellSpawn(install.command, install.args, platform);
1230
1230
  }
1231
- function resolveSkillsInstallCommands(baseUrl, skillNames = DEFAULT_SDK_SKILL_NAMES, agents = _chunkIMLFB66Ajs.DEFAULT_SKILL_AGENTS, knownProbes) {
1231
+ function resolveSkillsInstallCommands(baseUrl, skillNames = DEFAULT_SDK_SKILL_NAMES, agents = _chunkISXX5DUDjs.DEFAULT_SKILL_AGENTS, knownProbes) {
1232
1232
  const commands = [];
1233
1233
  const probes = _nullishCoalesce(knownProbes, () => ( probeInstallers()));
1234
1234
  if (probes.bunx === "available") {
@@ -1370,7 +1370,7 @@ function runLegacySkillsCleanup(agents) {
1370
1370
  }
1371
1371
  }
1372
1372
  function writeSdkSkillsStatusLine(line) {
1373
- const progress = _chunkB2BTBHX2js.getActiveCliProgress.call(void 0, );
1373
+ const progress = _chunkK5MZHTK7js.getActiveCliProgress.call(void 0, );
1374
1374
  if (progress) {
1375
1375
  progress.writeLine(line);
1376
1376
  return;
@@ -1381,11 +1381,11 @@ function writeSdkSkillsStatusLine(line) {
1381
1381
  async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
1382
1382
  const skip = shouldSkipSkillsSync();
1383
1383
  if (skip && !options.claim) return;
1384
- const usingPluginSkills = _chunkIMLFB66Ajs.hasActivePluginSkills.call(void 0, );
1384
+ const usingPluginSkills = _chunkISXX5DUDjs.hasActivePluginSkills.call(void 0, );
1385
1385
  if (usingPluginSkills) {
1386
1386
  return;
1387
1387
  }
1388
- const agents = _chunkIMLFB66Ajs.resolveAutoSyncSkillAgents.call(void 0, );
1388
+ const agents = _chunkISXX5DUDjs.resolveAutoSyncSkillAgents.call(void 0, );
1389
1389
  if (options.mode === "detached" && agents.length > 0) {
1390
1390
  flushDeferredSkillsNotices(baseUrl, agents);
1391
1391
  }
@@ -1422,7 +1422,7 @@ async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
1422
1422
  return;
1423
1423
  }
1424
1424
  try {
1425
- const localVersion = _chunkIMLFB66Ajs.readSdkSkillsLocalVersion.call(void 0, baseUrl);
1425
+ const localVersion = _chunkISXX5DUDjs.readSdkSkillsLocalVersion.call(void 0, baseUrl);
1426
1426
  const update = options.update === void 0 ? claimedVersion ? { needsUpdate: true, remoteVersion: claimedVersion } : await fetchSkillsUpdate(baseUrl, localVersion) : options.update ? {
1427
1427
  needsUpdate: options.update.needs_update,
1428
1428
  remoteVersion: options.update.remote.version
@@ -1544,7 +1544,7 @@ async function runInlineSkillsSync(baseUrl, remoteVersion, agents, notices) {
1544
1544
  update.remoteVersion,
1545
1545
  agents
1546
1546
  );
1547
- void _chunkPQKD5DMTjs.maybeReportAutomaticSkillsSyncFailure.call(void 0, {
1547
+ void _chunkLEREPTAEjs.maybeReportAutomaticSkillsSyncFailure.call(void 0, {
1548
1548
  baseUrl,
1549
1549
  remoteSkillsVersion: update.remoteVersion,
1550
1550
  agents,
@@ -1575,7 +1575,7 @@ async function runInlineSkillsSync(baseUrl, remoteVersion, agents, notices) {
1575
1575
  notice(
1576
1576
  publishedFailure ? `Deepline could not verify the published skills: ${detail}. The local version remains stale; it will retry automatically on a later command.` : `Deepline agent-skills refresh could not verify the five installed targets: ${detail}. The local version remains stale. After fixing the install, remove ${failedSkillsSyncPath(baseUrl, agents)} to retry this version automatically.`
1577
1577
  );
1578
- void _chunkPQKD5DMTjs.maybeReportAutomaticSkillsSyncFailure.call(void 0, {
1578
+ void _chunkLEREPTAEjs.maybeReportAutomaticSkillsSyncFailure.call(void 0, {
1579
1579
  baseUrl,
1580
1580
  remoteSkillsVersion: update.remoteVersion,
1581
1581
  agents,
@@ -1588,7 +1588,7 @@ async function runInlineSkillsSync(baseUrl, remoteVersion, agents, notices) {
1588
1588
  }
1589
1589
  }
1590
1590
  runLegacySkillsCleanup(agents);
1591
- if (!_chunkIMLFB66Ajs.writeSdkSkillsLocalVersion.call(void 0, baseUrl, update.remoteVersion, agents)) {
1591
+ if (!_chunkISXX5DUDjs.writeSdkSkillsLocalVersion.call(void 0, baseUrl, update.remoteVersion, agents)) {
1592
1592
  notice(
1593
1593
  "Deepline agent skills installed, but the local skills version could not be recorded. A later command will retry the refresh."
1594
1594
  );
@@ -1,15 +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 _chunkO765M4LTjs = require('./chunk-O765M4LT.js');
3
+ var _chunk5QL4GJB2js = require('./chunk-5QL4GJB2.js');
4
4
 
5
5
 
6
6
 
7
- var _chunkPQKD5DMTjs = require('./chunk-PQKD5DMT.js');
7
+ var _chunkLEREPTAEjs = require('./chunk-LEREPTAE.js');
8
8
 
9
9
 
10
10
 
11
11
 
12
- var _chunkLPTBHNGBjs = require('./chunk-LPTBHNGB.js');
12
+ var _chunkV7DEGIYOjs = require('./chunk-V7DEGIYO.js');
13
13
 
14
14
  // src/cli/commands/sessions.ts
15
15
 
@@ -55,7 +55,7 @@ function codexSessionsRoot() {
55
55
  }
56
56
  function listClaudeSessionFiles() {
57
57
  const files = [];
58
- for (const root of _chunkLPTBHNGBjs.claudeProjectsRoots.call(void 0, )) {
58
+ for (const root of _chunkV7DEGIYOjs.claudeProjectsRoots.call(void 0, )) {
59
59
  files.push(...listClaudeSessionFilesIn(root));
60
60
  }
61
61
  return files;
@@ -147,7 +147,7 @@ function currentSessionFile(agent) {
147
147
  const newestFirst = listSessionFiles(agent).sort(
148
148
  (a, b) => b.mtimeMs - a.mtimeMs
149
149
  );
150
- const sessionId = _chunkLPTBHNGBjs.agentSessionIdFromEnvironment.call(void 0,
150
+ const sessionId = _chunkV7DEGIYOjs.agentSessionIdFromEnvironment.call(void 0,
151
151
  process.env,
152
152
  agent === "auto" ? void 0 : agent === "claude" ? "claude_code" : "codex"
153
153
  );
@@ -156,7 +156,7 @@ function currentSessionFile(agent) {
156
156
  (candidate) => candidate.sessionId === sessionId
157
157
  );
158
158
  if (named) return named;
159
- const cowork = agent === "codex" ? null : _chunkLPTBHNGBjs.coworkTranscriptFromEnvironment.call(void 0, );
159
+ const cowork = agent === "codex" ? null : _chunkV7DEGIYOjs.coworkTranscriptFromEnvironment.call(void 0, );
160
160
  const coworkStat = cowork ? statIfReadable(cowork.filePath) : null;
161
161
  if (cowork && coworkStat) {
162
162
  return { agent: "claude", ...cowork, mtimeMs: coworkStat.mtimeMs };
@@ -166,7 +166,7 @@ function currentSessionFile(agent) {
166
166
  ), () => ( newestFirst[0])), () => ( null));
167
167
  }
168
168
  function feedbackAgentSessionId(agentRuntime) {
169
- return _nullishCoalesce(_chunkLPTBHNGBjs.agentSessionIdFromEnvironment.call(void 0, process.env, agentRuntime), () => ( (agentRuntime === "claude_cowork" || agentRuntime === "claude_code" ? _nullishCoalesce(_optionalChain([_chunkLPTBHNGBjs.coworkTranscriptFromEnvironment.call(void 0, ), 'optionalAccess', _17 => _17.sessionId]), () => ( null)) : null)));
169
+ return _nullishCoalesce(_chunkV7DEGIYOjs.agentSessionIdFromEnvironment.call(void 0, process.env, agentRuntime), () => ( (agentRuntime === "claude_cowork" || agentRuntime === "claude_code" ? _nullishCoalesce(_optionalChain([_chunkV7DEGIYOjs.coworkTranscriptFromEnvironment.call(void 0, ), 'optionalAccess', _17 => _17.sessionId]), () => ( null)) : null)));
170
170
  }
171
171
  function sessionStartedInDirectory(candidate, cwd) {
172
172
  if (candidate.agent === "claude") {
@@ -215,7 +215,7 @@ function readCodexSessionId(filePath) {
215
215
  return null;
216
216
  }
217
217
  function sessionSearchDescription(agent) {
218
- const claude = _chunkLPTBHNGBjs.claudeProjectsRoots.call(void 0, ).map((root) => _path.join.call(void 0, root, "*", "<session-id>.jsonl")).join(", ");
218
+ const claude = _chunkV7DEGIYOjs.claudeProjectsRoots.call(void 0, ).map((root) => _path.join.call(void 0, root, "*", "<session-id>.jsonl")).join(", ");
219
219
  if (agent === "claude") return claude;
220
220
  if (agent === "codex") return "~/.codex/sessions/**/*.jsonl";
221
221
  return `${claude} or ~/.codex/sessions/**/*.jsonl`;
@@ -472,7 +472,7 @@ function buildSessionUploadContent(raw) {
472
472
  return { encodedContent: encoded, needsChunking: true };
473
473
  }
474
474
  async function uploadPayload(path, payload) {
475
- const { http } = _chunkPQKD5DMTjs.getAuthedHttpClient.call(void 0, );
475
+ const { http } = _chunkLEREPTAEjs.getAuthedHttpClient.call(void 0, );
476
476
  return await http.post(path, payload);
477
477
  }
478
478
  async function uploadChunkedSessions(sessions, options) {
@@ -550,7 +550,7 @@ async function uploadAgentSession(agentRuntime) {
550
550
  return target.sessionId;
551
551
  }
552
552
  async function handleSessionsSend(options) {
553
- if (_chunkO765M4LTjs.rejectRestrictedFeedback.call(void 0, options)) return;
553
+ if (_chunk5QL4GJB2js.rejectRestrictedFeedback.call(void 0, options)) return;
554
554
  const rating = parseSessionRating(options.rating);
555
555
  if (options.file) {
556
556
  const filePath = _path.resolve.call(void 0, options.file);
@@ -562,7 +562,7 @@ async function handleSessionsSend(options) {
562
562
  filename: _path.basename.call(void 0, filePath),
563
563
  ...rating ? { rating } : {}
564
564
  });
565
- _chunkPQKD5DMTjs.printCommandEnvelope.call(void 0,
565
+ _chunkLEREPTAEjs.printCommandEnvelope.call(void 0,
566
566
  {
567
567
  ...response2,
568
568
  ok: true,
@@ -594,7 +594,7 @@ async function handleSessionsSend(options) {
594
594
  labeled: Boolean(_optionalChain([options, 'access', _27 => _27.label, 'optionalAccess', _28 => _28.length]))
595
595
  });
596
596
  const sessionIds = built.map((session) => session.sessionId);
597
- _chunkPQKD5DMTjs.printCommandEnvelope.call(void 0,
597
+ _chunkLEREPTAEjs.printCommandEnvelope.call(void 0,
598
598
  {
599
599
  ...response,
600
600
  ok: true,
@@ -702,7 +702,7 @@ ${refreshMeta}
702
702
  </body>
703
703
  </html>`;
704
704
  _fs.writeFileSync.call(void 0, outputPath, html, "utf8");
705
- _chunkPQKD5DMTjs.printCommandEnvelope.call(void 0,
705
+ _chunkLEREPTAEjs.printCommandEnvelope.call(void 0,
706
706
  {
707
707
  ok: true,
708
708
  file: outputPath,
@@ -2,7 +2,7 @@ import {
2
2
  argsWantJson,
3
3
  openInBrowser,
4
4
  printCommandEnvelope
5
- } from "./chunk-6JG3MRTM.mjs";
5
+ } from "./chunk-GLKUC5PO.mjs";
6
6
  import {
7
7
  ACTIVE_ORG_ID_ENV,
8
8
  ACTIVE_ORG_NAME_ENV,
@@ -22,14 +22,14 @@ import {
22
22
  saveHostEnvValues,
23
23
  saveProjectDeeplineEnvValues,
24
24
  storedHostApiKey
25
- } from "./chunk-ICTA5ICE.mjs";
25
+ } from "./chunk-FIRV7BXJ.mjs";
26
26
  import {
27
27
  SDK_API_CONTRACT,
28
28
  SDK_VERSION,
29
29
  connectionFailureMessage,
30
30
  detectAgentRuntime,
31
31
  networkCauseCode
32
- } from "./chunk-CLO562KG.mjs";
32
+ } from "./chunk-G3UFDUYU.mjs";
33
33
  import {
34
34
  DeeplineError
35
35
  } from "./chunk-JL2OTMSG.mjs";