deepline 0.3.520 → 0.3.522

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 (185) hide show
  1. package/dist/bundling-sources/sdk/src/plays/client-core.ts +16 -45
  2. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  3. package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +0 -18
  4. package/dist/bundling-sources/shared_libs/play-data-plane/r2.ts +0 -155
  5. package/dist/bundling-sources/shared_libs/play-runtime/durable-runs-rollout.ts +8 -1
  6. package/dist/bundling-sources/shared_libs/play-runtime/fixture-behavior.ts +24 -0
  7. package/dist/bundling-sources/shared_libs/play-runtime/internal-bootstrap-token.ts +1 -54
  8. package/dist/bundling-sources/shared_libs/play-runtime/launch-identity.ts +2 -7
  9. package/dist/bundling-sources/shared_libs/play-runtime/protocol.ts +0 -13
  10. package/dist/bundling-sources/shared_libs/play-runtime/run-identity.ts +0 -56
  11. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +10 -21
  12. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/runtime-heartbeat.ts +1 -1
  13. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/runtime-progress-push.ts +2 -1
  14. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/runtime-terminal-push.ts +1 -1
  15. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-lifecycle.ts +2 -37
  16. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-payload-transport.ts +3 -74
  17. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-runtime-watchdog.ts +2 -226
  18. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/modal.ts +3 -36
  19. package/dist/bundling-sources/shared_libs/play-runtime/runtime-api-paths.ts +0 -26
  20. package/dist/bundling-sources/shared_libs/play-runtime/runtime-api.ts +1 -9
  21. package/dist/bundling-sources/shared_libs/play-runtime/runtime-authority.ts +0 -5
  22. package/dist/bundling-sources/shared_libs/play-runtime/runtime-environment.ts +9 -49
  23. package/dist/bundling-sources/shared_libs/play-runtime/runtime-gateway-oidc.ts +11 -447
  24. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backend.ts +5 -4
  25. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +12 -207
  26. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-shared.ts +3 -17
  27. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/gateway-progress-registry.ts +0 -9
  28. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-progress.ts +2 -18
  29. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +15 -175
  30. package/dist/bundling-sources/shared_libs/play-runtime/workflow-executor-auth.ts +0 -4
  31. package/dist/cli/{artifacts-4DSPSIU5.js → artifacts-GIZZH5VA.js} +20 -20
  32. package/dist/cli/{artifacts-D6PU7SBC.mjs → artifacts-RY2MK74N.mjs} +8 -8
  33. package/dist/cli/auth-JSES2JOQ.js +43 -0
  34. package/dist/cli/{auth-MXKNPUXW.mjs → auth-YIBY5IKT.mjs} +5 -5
  35. package/dist/cli/{billing-SQ26NKGH.mjs → billing-G3IX3SNY.mjs} +8 -8
  36. package/dist/cli/{billing-WEYCNJIR.js → billing-UDKL53GI.js} +81 -81
  37. package/dist/cli/{chunk-6Y3DDRRN.js → chunk-2KHUFWTK.js} +3 -3
  38. package/dist/cli/{chunk-4VR5OTYP.js → chunk-37SXIFIU.js} +44 -44
  39. package/dist/cli/{chunk-QSWPDYOP.mjs → chunk-3KMGVOBM.mjs} +4 -4
  40. package/dist/cli/{chunk-7VJKHJY7.js → chunk-4DFWDA2Q.js} +14 -14
  41. package/dist/cli/{chunk-VSPNBBRT.js → chunk-4MF44THR.js} +66 -119
  42. package/dist/cli/{chunk-NLIO6QLP.mjs → chunk-4TUMKJZX.mjs} +2 -2
  43. package/dist/cli/{chunk-KKSMHTQO.mjs → chunk-52MHE7B4.mjs} +1 -1
  44. package/dist/cli/{chunk-AVW2LKRF.js → chunk-534YYHIF.js} +6 -6
  45. package/dist/cli/{chunk-QQGRQRCS.mjs → chunk-5477PEHL.mjs} +1 -1
  46. package/dist/cli/{chunk-YHHLLONU.js → chunk-5BQPEHEP.js} +14 -14
  47. package/dist/cli/{chunk-GVTHFDKN.js → chunk-5H22VJPE.js} +6 -6
  48. package/dist/cli/{chunk-LUIPBI6P.js → chunk-6SJPZV5E.js} +2 -2
  49. package/dist/cli/{chunk-NNUJQ5O2.mjs → chunk-7J5PLHII.mjs} +1 -1
  50. package/dist/cli/{chunk-I4GBCKBL.js → chunk-7JEN3FX4.js} +5 -5
  51. package/dist/cli/{chunk-VSLU4JZV.mjs → chunk-BONXEWYF.mjs} +3 -3
  52. package/dist/cli/{chunk-AM7HMWNA.js → chunk-BZY335JP.js} +5 -5
  53. package/dist/cli/{chunk-YP3G2CP6.mjs → chunk-C6WGMODR.mjs} +2 -2
  54. package/dist/cli/{chunk-V6BUWQBI.mjs → chunk-CFXERH7F.mjs} +1 -1
  55. package/dist/cli/{chunk-ORAWUIMN.js → chunk-DARD7TJ7.js} +53 -53
  56. package/dist/cli/{chunk-BHAP6FIZ.js → chunk-DLDWAPA5.js} +4 -4
  57. package/dist/cli/{chunk-FWGTBR3W.js → chunk-DNJJ3ULJ.js} +2 -2
  58. package/dist/cli/{chunk-Y5QYWFRI.js → chunk-DRDZBRXV.js} +7 -7
  59. package/dist/cli/{chunk-JO2MQ6XR.js → chunk-EJBW7Y6Z.js} +98 -98
  60. package/dist/cli/{chunk-2EDGA7OE.mjs → chunk-ENWJFUWK.mjs} +2 -2
  61. package/dist/cli/{chunk-6XJA23MZ.js → chunk-F5D623KO.js} +26 -26
  62. package/dist/cli/{chunk-HT675XNR.mjs → chunk-FKD3KL5Q.mjs} +1 -1
  63. package/dist/cli/{chunk-2BJILUE3.js → chunk-FNHUDCJE.js} +10 -10
  64. package/dist/cli/{chunk-XU57CH42.mjs → chunk-FQQAAR3Q.mjs} +1 -1
  65. package/dist/cli/{chunk-6T2LB43P.mjs → chunk-G65FJ5JX.mjs} +2 -2
  66. package/dist/cli/{chunk-UA4MXESL.js → chunk-GMYDVW7Z.js} +3 -3
  67. package/dist/cli/{chunk-74MOIEDC.js → chunk-GVKW3LCA.js} +11 -11
  68. package/dist/cli/{chunk-D5VTWJ7K.js → chunk-ISUUSSS4.js} +16 -16
  69. package/dist/cli/{chunk-KTAOVRXT.js → chunk-KMBF3N2Z.js} +16 -16
  70. package/dist/cli/{chunk-5TEXJM6F.mjs → chunk-LFSOBW7E.mjs} +11 -11
  71. package/dist/cli/{chunk-A5VR463F.mjs → chunk-MD524MRB.mjs} +1 -1
  72. package/dist/cli/{chunk-NPRSGUHB.mjs → chunk-NDNG3MAT.mjs} +5 -5
  73. package/dist/cli/{chunk-NWSKBWQM.mjs → chunk-OAQIVJFY.mjs} +2 -2
  74. package/dist/cli/{chunk-6VY2SJ6B.mjs → chunk-PDLRUZ42.mjs} +5 -5
  75. package/dist/cli/{chunk-M6YHS5V7.mjs → chunk-RDJTCW3I.mjs} +3 -3
  76. package/dist/cli/{chunk-3YHS4BLB.js → chunk-RI672VNY.js} +2 -2
  77. package/dist/cli/{chunk-TQTQ3YYA.mjs → chunk-RKE5YTHY.mjs} +5 -5
  78. package/dist/cli/{chunk-SHB2BNI6.mjs → chunk-SFMCKB57.mjs} +37 -90
  79. package/dist/cli/{chunk-BMCRTI6Z.mjs → chunk-UBKA33KY.mjs} +1 -22
  80. package/dist/cli/{chunk-6GI7BYSL.mjs → chunk-UV6XCHOZ.mjs} +1 -1
  81. package/dist/cli/{chunk-U5646OVV.mjs → chunk-VFCVH2LV.mjs} +5 -5
  82. package/dist/cli/{chunk-7QAX5VBT.js → chunk-VIM6I7RC.js} +41 -41
  83. package/dist/cli/{chunk-WSGXBROE.js → chunk-XDVT3GOM.js} +1 -22
  84. package/dist/cli/{chunk-KCISDDNK.mjs → chunk-XR6TN5DT.mjs} +6 -6
  85. package/dist/cli/{chunk-XXDY7K7F.js → chunk-XT25FX6T.js} +3 -3
  86. package/dist/cli/{chunk-ASGGZ6BI.mjs → chunk-XXY4E57R.mjs} +2 -2
  87. package/dist/cli/{chunk-YVQLXMJU.mjs → chunk-Y3LDRCMB.mjs} +3 -3
  88. package/dist/cli/{chunk-5ECMRQCL.js → chunk-ZUAKRBZB.js} +1 -1
  89. package/dist/cli/{chunk-DQQ6FDE6.mjs → chunk-ZZ7U4YJS.mjs} +1 -1
  90. package/dist/cli/{chunk-LYIJ3YUP.js → chunk-ZZLZCO6Y.js} +22 -22
  91. package/dist/cli/{csv-VJNR6FOZ.js → csv-3HIE4VCO.js} +13 -13
  92. package/dist/cli/{csv-T7HIELZ2.mjs → csv-PE35WGRO.mjs} +4 -4
  93. package/dist/cli/{db-OE2EXZXL.mjs → db-L7ZMMQKW.mjs} +8 -8
  94. package/dist/cli/{db-JF2I54V7.js → db-O2YRTTDO.js} +29 -29
  95. package/dist/cli/describe-EB336DAO.js +50 -0
  96. package/dist/cli/{describe-HXZZC3LC.mjs → describe-NI324Y2M.mjs} +20 -20
  97. package/dist/cli/describe-core.d.mts +2 -2
  98. package/dist/cli/describe-core.d.ts +2 -2
  99. package/dist/cli/{executions-4BXRIJFF.mjs → executions-T6KU2OKK.mjs} +8 -8
  100. package/dist/cli/{executions-UQ2H6MJZ.js → executions-VH4DKLFI.js} +10 -10
  101. package/dist/cli/{feedback-TXF5CQKA.mjs → feedback-SCSJC3FX.mjs} +5 -5
  102. package/dist/cli/{feedback-MKFN7DYY.js → feedback-ZLC6G5OK.js} +10 -10
  103. package/dist/cli/git-23T7TXAH.js +25 -0
  104. package/dist/cli/{git-MG3NAV65.mjs → git-I4LVQCID.mjs} +5 -5
  105. package/dist/cli/index.js +141 -141
  106. package/dist/cli/index.mjs +43 -43
  107. package/dist/cli/{legacy-noops-XSDY46XD.mjs → legacy-noops-44FQ2256.mjs} +6 -6
  108. package/dist/cli/{legacy-noops-R76I2OWW.js → legacy-noops-UPFWEHPG.js} +9 -9
  109. package/dist/cli/{monitors-FS3DIDM7.js → monitors-JN6IQGK6.js} +102 -102
  110. package/dist/cli/{monitors-NVT5YQKV.mjs → monitors-LMSASWXE.mjs} +9 -9
  111. package/dist/cli/{org-SBI6FC6D.js → org-F7O3ZU5O.js} +74 -74
  112. package/dist/cli/{org-XU7JONWS.mjs → org-QYLVEE7A.mjs} +8 -8
  113. package/dist/cli/{pages-AFB5DVBR.mjs → pages-5XE4LBZN.mjs} +8 -8
  114. package/dist/cli/{pages-2CZFJJV6.js → pages-KEL3Y4L4.js} +20 -20
  115. package/dist/cli/{play-EQEIT5S4.mjs → play-MWQG3G32.mjs} +21 -21
  116. package/dist/cli/{play-WZH72UGC.js → play-OURHH6KV.js} +338 -338
  117. package/dist/cli/{providers-3VXTATHF.mjs → providers-IQY7LUBB.mjs} +8 -8
  118. package/dist/cli/{providers-SHSVUQA3.js → providers-ZCBWPE3C.js} +11 -11
  119. package/dist/cli/{quickstart-45YS4SOD.mjs → quickstart-L45NGRMI.mjs} +4 -4
  120. package/dist/cli/{quickstart-KPVPK3VL.js → quickstart-O53OXTN6.js} +6 -6
  121. package/dist/cli/{run-XEHRZT57.mjs → run-VCSIWLEU.mjs} +25 -25
  122. package/dist/cli/{run-U5RWBX5J.js → run-W745Z3Z5.js} +43 -43
  123. package/dist/cli/run-identity-G257GQED.js +25 -0
  124. package/dist/cli/{run-identity-MNRZS2N3.mjs → run-identity-MRNCEGV2.mjs} +3 -9
  125. package/dist/cli/search-R6K7ZAMU.js +33 -0
  126. package/dist/cli/{search-V7XIWBQ2.mjs → search-THELKULN.mjs} +10 -10
  127. package/dist/cli/{search-output-3KAJUV2A.mjs → search-output-N7MJLYYD.mjs} +4 -4
  128. package/dist/cli/{search-output-ZNIICV5Z.js → search-output-SJW7LEOM.js} +6 -6
  129. package/dist/cli/{secrets-SCSG3QXJ.mjs → secrets-44ST3FJH.mjs} +8 -8
  130. package/dist/cli/{secrets-53TUV6JK.js → secrets-GDXPX3KB.js} +17 -17
  131. package/dist/cli/sessions-2V5ZFOWL.js +18 -0
  132. package/dist/cli/{sessions-MCTHLLK3.mjs → sessions-LYCBI77S.mjs} +6 -6
  133. package/dist/cli/{settings-ZNOXOIX2.js → settings-3WOFF642.js} +88 -88
  134. package/dist/cli/{settings-Q2HKACSE.mjs → settings-GXPDMJFG.mjs} +15 -15
  135. package/dist/cli/{setup-GO4EULLY.js → setup-YHLMBJP4.js} +50 -50
  136. package/dist/cli/{setup-WKM35SZJ.mjs → setup-YM6JEB64.mjs} +10 -10
  137. package/dist/cli/{skills-DZZLW6OV.mjs → skills-WX4XWEAT.mjs} +8 -8
  138. package/dist/cli/skills-XNGADDO6.js +37 -0
  139. package/dist/cli/{tools-EKVSK6X4.mjs → tools-K24VSQ7S.mjs} +19 -19
  140. package/dist/cli/tools-ROUMCB7B.js +57 -0
  141. package/dist/cli/{update-FPHYVHSC.mjs → update-PSSCF5AT.mjs} +10 -10
  142. package/dist/cli/update-RXURGIRW.js +35 -0
  143. package/dist/cli/{workflow-5YAZK5EI.mjs → workflow-DGOPYATO.mjs} +9 -9
  144. package/dist/cli/{workflow-27H3NCNY.js → workflow-FPVI3NIA.js} +19 -19
  145. package/dist/{client-DhEOE19l.d.ts → client-B-2Am2y6.d.ts} +1 -1
  146. package/dist/{client-lJmz2QwF.d.mts → client-DA71-2_u.d.mts} +1 -1
  147. package/dist/{client-core-BGiSMrBD.d.mts → client-core-BXbds1cb.d.mts} +0 -19
  148. package/dist/{client-core-DYCGaRBZ.d.ts → client-core-C0IzDKMJ.d.ts} +0 -19
  149. package/dist/index.d.mts +3 -3
  150. package/dist/index.d.ts +3 -3
  151. package/dist/index.js +19 -19
  152. package/dist/index.mjs +8 -8
  153. package/dist/install-integrity.json +114 -122
  154. package/dist/plays/play-description.d.mts +1 -1
  155. package/dist/plays/play-description.d.ts +1 -1
  156. package/dist/plays/run-request.d.mts +1 -1
  157. package/dist/plays/run-request.d.ts +1 -1
  158. package/dist/plays/run-request.js +3 -3
  159. package/dist/plays/run-request.mjs +2 -2
  160. package/dist/release.d.mts +1 -1
  161. package/dist/release.d.ts +1 -1
  162. package/dist/release.js +2 -2
  163. package/dist/release.mjs +1 -1
  164. package/dist/server.d.mts +2 -2
  165. package/dist/server.d.ts +2 -2
  166. package/dist/server.js +7 -7
  167. package/dist/server.mjs +5 -5
  168. package/package.json +1 -1
  169. package/dist/bundling-sources/shared_libs/play-runtime/runtime-app-transport.ts +0 -374
  170. package/dist/bundling-sources/shared_libs/play-runtime/runtime-gateway-egress.ts +0 -55
  171. package/dist/bundling-sources/shared_libs/play-runtime/runtime-gateway-profile.ts +0 -329
  172. package/dist/bundling-sources/shared_libs/play-runtime/runtime-gateway-sandbox-credential.ts +0 -338
  173. package/dist/bundling-sources/shared_libs/play-runtime/runtime-gateway-staging.ts +0 -417
  174. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-gateway-attempt.ts +0 -81
  175. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-gateway-staging-journal.ts +0 -708
  176. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-gateway-staging-teardown.ts +0 -160
  177. package/dist/cli/auth-TH4JV6BH.js +0 -43
  178. package/dist/cli/describe-4FLGKRCA.js +0 -50
  179. package/dist/cli/git-B2QO3SLK.js +0 -25
  180. package/dist/cli/run-identity-HFYABUJS.js +0 -31
  181. package/dist/cli/search-Z2V43OPM.js +0 -33
  182. package/dist/cli/sessions-BOJCVLR7.js +0 -18
  183. package/dist/cli/skills-B4BAH2B2.js +0 -37
  184. package/dist/cli/tools-Z5NCKIAB.js +0 -57
  185. package/dist/cli/update-XCL7F5T6.js +0 -35
@@ -11,20 +11,20 @@
11
11
 
12
12
 
13
13
 
14
- var _chunk4VR5OTYPjs = require('./chunk-4VR5OTYP.js');
14
+ var _chunk37SXIFIUjs = require('./chunk-37SXIFIU.js');
15
15
 
16
16
 
17
- var _chunkY5QYWFRIjs = require('./chunk-Y5QYWFRI.js');
17
+ var _chunkDRDZBRXVjs = require('./chunk-DRDZBRXV.js');
18
18
 
19
19
 
20
20
 
21
21
 
22
22
 
23
- var _chunkUA4MXESLjs = require('./chunk-UA4MXESL.js');
23
+ var _chunkGMYDVW7Zjs = require('./chunk-GMYDVW7Z.js');
24
24
 
25
25
 
26
26
 
27
- var _chunkBHAP6FIZjs = require('./chunk-BHAP6FIZ.js');
27
+ var _chunkDLDWAPA5js = require('./chunk-DLDWAPA5.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 = _chunkUA4MXESLjs.resolveProjectPinTarget.call(void 0, );
148
+ const target = _chunkGMYDVW7Zjs.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, () => ( _chunkBHAP6FIZjs.detectAgentRuntime.call(void 0, )));
159
+ const runtime = _nullishCoalesce(input.runtime, () => ( _chunkDLDWAPA5js.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, _chunkUA4MXESLjs.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, _chunkGMYDVW7Zjs.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 = [..._chunk4VR5OTYPjs.LEGACY_SKILL_NAMES_TO_REMOVE].sort(
178
+ const legacyNames = [..._chunk37SXIFIUjs.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=${_chunk4VR5OTYPjs.SKILLS_NPX_PACKAGE}`,
192
+ `--package=${_chunk37SXIFIUjs.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=${_chunk4VR5OTYPjs.SKILLS_NPX_PACKAGE}`,
208
+ `--package=${_chunk37SXIFIUjs.SKILLS_NPX_PACKAGE}`,
209
209
  "--",
210
210
  "skills",
211
211
  "add",
212
- _chunk4VR5OTYPjs.skillsSourceUrl.call(void 0, input.baseUrl),
212
+ _chunk37SXIFIUjs.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 = _chunk4VR5OTYPjs.resolveShellSpawn.call(void 0,
249
+ const plan = _chunk37SXIFIUjs.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
- `${_chunk4VR5OTYPjs.SKILLS_NPX_PACKAGE} timed out after ${SKILLS_PROCESS_TIMEOUT_MS}ms.`
271
+ `${_chunk37SXIFIUjs.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(`${_chunk4VR5OTYPjs.SKILLS_NPX_PACKAGE} exited ${code}.
282
+ process.stderr.write(`${_chunk37SXIFIUjs.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 = _chunkUA4MXESLjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
290
+ const baseUrl = _chunkGMYDVW7Zjs.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
- _chunkY5QYWFRIjs.printCommandEnvelope.call(void 0,
303
+ _chunkDRDZBRXVjs.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
- _chunkY5QYWFRIjs.printCommandEnvelope.call(void 0,
313
+ _chunkDRDZBRXVjs.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
- _chunkY5QYWFRIjs.printCommandEnvelope.call(void 0,
330
+ _chunkDRDZBRXVjs.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
- _chunkY5QYWFRIjs.printCommandEnvelope.call(void 0,
353
+ _chunkDRDZBRXVjs.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 = _chunkUA4MXESLjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
365
+ const baseUrl = _chunkGMYDVW7Zjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
366
366
  const catalog = {
367
- skillNames: [..._chunk4VR5OTYPjs.DEFAULT_SDK_SKILL_NAMES],
368
- version: _chunkBHAP6FIZjs.SDK_VERSION
367
+ skillNames: [..._chunk37SXIFIUjs.DEFAULT_SDK_SKILL_NAMES],
368
+ version: _chunkDLDWAPA5js.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
- _chunkY5QYWFRIjs.printCommandEnvelope.call(void 0,
373
+ _chunkDRDZBRXVjs.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)) && !_chunk4VR5OTYPjs.hasFailedAutomaticSkillsSync.call(void 0, baseUrl, agents)) {
380
- _chunkY5QYWFRIjs.printCommandEnvelope.call(void 0,
379
+ if (isSkillsPlanCurrent(plan, readSkillsInstallState(plan.statePath)) && !_chunk37SXIFIUjs.hasFailedAutomaticSkillsSync.call(void 0, baseUrl, agents)) {
380
+ _chunkDRDZBRXVjs.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, ..._chunk4VR5OTYPjs.LEGACY_SKILL_NAMES_TO_REMOVE])
412
+ .../* @__PURE__ */ new Set([...plan.skillNames, ..._chunk37SXIFIUjs.LEGACY_SKILL_NAMES_TO_REMOVE])
413
413
  ];
414
414
  const agentRoots = workspaceSkillRootsForAgents(plan.agents);
415
- _chunkUA4MXESLjs.ensureProjectPrivatePathsIgnored.call(void 0, root, [
415
+ _chunkGMYDVW7Zjs.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 _chunk4VR5OTYPjs.acquireSkillsInstallLease.call(void 0, baseUrl, agents, plan.version, {
424
+ lease = scope === "global" ? await _chunk37SXIFIUjs.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 _chunk4VR5OTYPjs.SkillsStateUnavailableError)) throw error;
433
- _chunkY5QYWFRIjs.printCommandEnvelope.call(void 0,
432
+ if (!(error instanceof _chunk37SXIFIUjs.SkillsStateUnavailableError)) throw error;
433
+ _chunkDRDZBRXVjs.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
- _chunkY5QYWFRIjs.printCommandEnvelope.call(void 0,
449
+ _chunkDRDZBRXVjs.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 ${_chunk4VR5OTYPjs.skillsInstallLeasePath.call(void 0, baseUrl, agents)}`
458
+ next: `Retry in a moment: deepline skills install --scope ${scope}. If no refresh is running, remove ${_chunk37SXIFIUjs.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
- _chunkY5QYWFRIjs.printCommandEnvelope.call(void 0,
507
+ _chunkDRDZBRXVjs.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
- _chunkY5QYWFRIjs.printCommandEnvelope.call(void 0,
523
+ _chunkDRDZBRXVjs.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: _chunkBHAP6FIZjs.SDK_VERSION,
563
+ cliVersion: _chunkDLDWAPA5js.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
- _chunk4VR5OTYPjs.clearFailedAutomaticSkillsSync.call(void 0, baseUrl, agents);
576
+ _chunk37SXIFIUjs.clearFailedAutomaticSkillsSync.call(void 0, baseUrl, agents);
577
577
  }
578
- _chunkY5QYWFRIjs.printCommandEnvelope.call(void 0,
578
+ _chunkDRDZBRXVjs.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 ${_chunk4VR5OTYPjs.SKILLS_NPX_PACKAGE},
627
+ This command reinstalls current Deepline-managed skills using ${_chunk37SXIFIUjs.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(_chunk4VR5OTYPjs.SKILLS_AUTO_SYNC_COMMAND, { hidden: true }).description("Refresh Deepline agent skills in the background.").option(
639
+ program.command(_chunk37SXIFIUjs.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
- _chunkY5QYWFRIjs.printCommandEnvelope.call(void 0,
645
+ _chunkDRDZBRXVjs.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 _chunk4VR5OTYPjs.syncSdkSkillsIfNeeded.call(void 0, _chunkUA4MXESLjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, ""), {
658
+ await _chunk37SXIFIUjs.syncSdkSkillsIfNeeded.call(void 0, _chunkGMYDVW7Zjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, ""), {
659
659
  mode: "inline",
660
660
  notices: "defer",
661
661
  claim
@@ -292,27 +292,6 @@ function buildAsyncPlayRequestFingerprint(input) {
292
292
  })
293
293
  );
294
294
  }
295
- var PLAY_RUN_ID_MAX_LENGTH = 256;
296
- var RUNTIME_SCOPE_RUN_ID_PATTERN = /^[A-Za-z0-9_.:@/-]+$/;
297
- function isRuntimeScopeRunId(value) {
298
- return typeof value === "string" && value.length > 0 && value.length <= PLAY_RUN_ID_MAX_LENGTH && RUNTIME_SCOPE_RUN_ID_PATTERN.test(value);
299
- }
300
- var PLAY_RUN_ID_PATTERN = /^play\/([a-z0-9-]+(?:\/[a-z0-9-]+)*)\/run\/\d{8}t\d{6}-\d{3}(?:-[a-z0-9]{8}(-caller-[a-f0-9]{64})?|(-async-[a-f0-9]{20})|(-rerun-[a-f0-9]{20}))?$/;
301
- function parsePlayRunId(value) {
302
- if (!isRuntimeScopeRunId(value)) return null;
303
- const match = PLAY_RUN_ID_PATTERN.exec(value);
304
- if (!match) return null;
305
- const startedAtMs = canonicalPlayRunStartedAtMs(value);
306
- if (startedAtMs === null) return null;
307
- return Object.freeze({
308
- familyKey: match[1],
309
- startedAtMs,
310
- kind: match[2] ? "caller" : match[3] ? "async" : match[4] ? "rerun" : "root"
311
- });
312
- }
313
-
314
-
315
-
316
295
 
317
296
 
318
297
 
@@ -328,4 +307,4 @@ function parsePlayRunId(value) {
328
307
 
329
308
 
330
309
 
331
- exports.stableStringify = stableStringify; exports.sha256Hex = sha256Hex; exports.normalizeTableNamespace = normalizeTableNamespace; exports.buildPlayWorkflowFamilyKey = buildPlayWorkflowFamilyKey; exports.buildPlayWorkflowRunSuffix = buildPlayWorkflowRunSuffix; exports.canonicalPlayRunStartedAtMs = canonicalPlayRunStartedAtMs; exports.buildPlayWorkflowId = buildPlayWorkflowId; exports.buildCallerPlayWorkflowId = buildCallerPlayWorkflowId; exports.callerPlayWorkflowIdMatchesRequest = callerPlayWorkflowIdMatchesRequest; exports.buildPlayRunIdentity = buildPlayRunIdentity; exports.buildAsyncPlayRunIdentity = buildAsyncPlayRunIdentity; exports.buildRerunPlayRunIdentity = buildRerunPlayRunIdentity; exports.buildAsyncPlayRequestFingerprint = buildAsyncPlayRequestFingerprint; exports.PLAY_RUN_ID_MAX_LENGTH = PLAY_RUN_ID_MAX_LENGTH; exports.isRuntimeScopeRunId = isRuntimeScopeRunId; exports.parsePlayRunId = parsePlayRunId;
310
+ exports.stableStringify = stableStringify; exports.sha256Hex = sha256Hex; exports.normalizeTableNamespace = normalizeTableNamespace; exports.buildPlayWorkflowFamilyKey = buildPlayWorkflowFamilyKey; exports.buildPlayWorkflowRunSuffix = buildPlayWorkflowRunSuffix; exports.canonicalPlayRunStartedAtMs = canonicalPlayRunStartedAtMs; exports.buildPlayWorkflowId = buildPlayWorkflowId; exports.buildCallerPlayWorkflowId = buildCallerPlayWorkflowId; exports.callerPlayWorkflowIdMatchesRequest = callerPlayWorkflowIdMatchesRequest; exports.buildPlayRunIdentity = buildPlayRunIdentity; exports.buildAsyncPlayRunIdentity = buildAsyncPlayRunIdentity; exports.buildRerunPlayRunIdentity = buildRerunPlayRunIdentity; exports.buildAsyncPlayRequestFingerprint = buildAsyncPlayRequestFingerprint;
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  seedToolListScript
3
- } from "./chunk-5TEXJM6F.mjs";
3
+ } from "./chunk-LFSOBW7E.mjs";
4
4
  import {
5
5
  addDescribeOptions
6
- } from "./chunk-A5VR463F.mjs";
6
+ } from "./chunk-MD524MRB.mjs";
7
7
  import {
8
8
  describeLookupsFor,
9
9
  describeName,
@@ -14,18 +14,18 @@ import {
14
14
  } from "./chunk-ITJ7NB2D.mjs";
15
15
  import {
16
16
  DeeplineClient
17
- } from "./chunk-6T2LB43P.mjs";
17
+ } from "./chunk-G65FJ5JX.mjs";
18
18
  import {
19
19
  failureReportHeaders,
20
20
  isFailureReportingDisabled
21
- } from "./chunk-ASGGZ6BI.mjs";
21
+ } from "./chunk-XXY4E57R.mjs";
22
22
  import {
23
23
  printCommandEnvelope
24
- } from "./chunk-NLIO6QLP.mjs";
24
+ } from "./chunk-4TUMKJZX.mjs";
25
25
  import {
26
26
  autoDetectBaseUrl,
27
27
  resolveApiKeyForBaseUrl
28
- } from "./chunk-QQGRQRCS.mjs";
28
+ } from "./chunk-5477PEHL.mjs";
29
29
 
30
30
  // src/cli/commands/describe.ts
31
31
  import { writeFileSync } from "fs";
@@ -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 _chunkY5QYWFRIjs = require('./chunk-Y5QYWFRI.js');
3
+ var _chunkDRDZBRXVjs = require('./chunk-DRDZBRXV.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 && !_chunkY5QYWFRIjs.isJsonOutputMode.call(void 0, );
22
+ this.enabled = enabled && !_chunkDRDZBRXVjs.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 (_chunkY5QYWFRIjs.isJsonOutputMode.call(void 0, )) return;
62
+ if (_chunkDRDZBRXVjs.isJsonOutputMode.call(void 0, )) return;
63
63
  if (!this.enabled) {
64
64
  process.stderr.write(`${line}
65
65
  `);
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  autoDetectBaseUrl,
3
3
  resolveApiKeyForBaseUrl
4
- } from "./chunk-QQGRQRCS.mjs";
4
+ } from "./chunk-5477PEHL.mjs";
5
5
  import {
6
6
  SDK_VERSION,
7
7
  agentSessionIdFromEnvironment,
8
8
  deploymentProtectionHeaders,
9
9
  detectAgentRuntime
10
- } from "./chunk-XU57CH42.mjs";
10
+ } from "./chunk-FQQAAR3Q.mjs";
11
11
  import {
12
12
  DeeplineError
13
13
  } from "./chunk-ZPGGW27Q.mjs";
@@ -3,15 +3,15 @@ import {
3
3
  } from "./chunk-F6QV42MC.mjs";
4
4
  import {
5
5
  parseLogLevel
6
- } from "./chunk-SHB2BNI6.mjs";
6
+ } from "./chunk-SFMCKB57.mjs";
7
7
  import {
8
8
  setDottedInputValue
9
- } from "./chunk-HT675XNR.mjs";
9
+ } from "./chunk-FKD3KL5Q.mjs";
10
10
  import {
11
11
  argsWantJson,
12
12
  jsonFieldArgs,
13
13
  parseJsonFields
14
- } from "./chunk-NLIO6QLP.mjs";
14
+ } from "./chunk-4TUMKJZX.mjs";
15
15
  import {
16
16
  DeeplineError
17
17
  } from "./chunk-ZPGGW27Q.mjs";
@@ -49,7 +49,7 @@ var SDK_RELEASE = {
49
49
  // getters keep their established compatibility behavior.
50
50
  // 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
51
51
  // 0.3.90 is the first deliberately versioned SDK release for API v3.
52
- version: "0.3.520",
52
+ version: "0.3.522",
53
53
  updateSummary: {
54
54
  introducedIn: "0.3.90",
55
55
  summary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release."
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  isJsonOutputMode
3
- } from "./chunk-NLIO6QLP.mjs";
3
+ } from "./chunk-4TUMKJZX.mjs";
4
4
 
5
5
  // src/cli/progress.ts
6
6
  import { Worker } from "worker_threads";
@@ -4,21 +4,21 @@
4
4
 
5
5
 
6
6
 
7
- var _chunkD5VTWJ7Kjs = require('./chunk-D5VTWJ7K.js');
7
+ var _chunkISUUSSS4js = require('./chunk-ISUUSSS4.js');
8
8
 
9
9
 
10
10
 
11
- var _chunk4VR5OTYPjs = require('./chunk-4VR5OTYP.js');
11
+ var _chunk37SXIFIUjs = require('./chunk-37SXIFIU.js');
12
12
 
13
13
 
14
14
 
15
- var _chunkY5QYWFRIjs = require('./chunk-Y5QYWFRI.js');
15
+ var _chunkDRDZBRXVjs = require('./chunk-DRDZBRXV.js');
16
16
 
17
17
 
18
- var _chunkUA4MXESLjs = require('./chunk-UA4MXESL.js');
18
+ var _chunkGMYDVW7Zjs = require('./chunk-GMYDVW7Z.js');
19
19
 
20
20
 
21
- var _chunkBHAP6FIZjs = require('./chunk-BHAP6FIZ.js');
21
+ var _chunkDLDWAPA5js = require('./chunk-DLDWAPA5.js');
22
22
 
23
23
  // src/cli/compatibility-catalog.ts
24
24
  var readers = /* @__PURE__ */ new WeakMap();
@@ -45,7 +45,7 @@ function trustedAutoUpdateRegistryUrl(baseUrl) {
45
45
  async function reportAutoUpdateEvent(input) {
46
46
  let apiKey = "";
47
47
  try {
48
- apiKey = _chunkUA4MXESLjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
48
+ apiKey = _chunkGMYDVW7Zjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
49
49
  } catch (e2) {
50
50
  return;
51
51
  }
@@ -61,15 +61,15 @@ async function reportAutoUpdateEvent(input) {
61
61
  headers: {
62
62
  Authorization: `Bearer ${apiKey}`,
63
63
  "Content-Type": "application/json",
64
- "User-Agent": `deepline-ts-sdk/${_chunkBHAP6FIZjs.SDK_VERSION}`,
64
+ "User-Agent": `deepline-ts-sdk/${_chunkDLDWAPA5js.SDK_VERSION}`,
65
65
  "X-Deepline-Client-Family": "sdk",
66
66
  "X-Deepline-CLI-Family": "sdk",
67
- "X-Deepline-CLI-Version": _chunkBHAP6FIZjs.SDK_VERSION,
68
- "X-Deepline-SDK-Version": _chunkBHAP6FIZjs.SDK_VERSION
67
+ "X-Deepline-CLI-Version": _chunkDLDWAPA5js.SDK_VERSION,
68
+ "X-Deepline-SDK-Version": _chunkDLDWAPA5js.SDK_VERSION
69
69
  },
70
70
  body: JSON.stringify({
71
71
  event: input.event,
72
- current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) || _chunkBHAP6FIZjs.SDK_VERSION,
72
+ current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) || _chunkDLDWAPA5js.SDK_VERSION,
73
73
  target_version: input.response.latest,
74
74
  reason: _optionalChain([input, 'access', _8 => _8.response, 'access', _9 => _9.auto_update, 'optionalAccess', _10 => _10.reason]),
75
75
  command: _nullishCoalesce(input.response.command, () => ( null)),
@@ -88,13 +88,13 @@ function envTruthy(name) {
88
88
  return value === "1" || value === "true" || value === "yes";
89
89
  }
90
90
  function shouldSkipSelfUpdate(policy) {
91
- return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !_chunkD5VTWJ7Kjs.shouldRunCliAutoUpdate.call(void 0, ) || _chunk4VR5OTYPjs.isCiEnvironment.call(void 0, );
91
+ return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !_chunkISUUSSS4js.shouldRunCliAutoUpdate.call(void 0, ) || _chunk37SXIFIUjs.isCiEnvironment.call(void 0, );
92
92
  }
93
93
  function isDowngradeAutoUpdateResponse(response) {
94
94
  const target = _optionalChain([response, 'optionalAccess', _17 => _17.latest, 'optionalAccess', _18 => _18.trim, 'call', _19 => _19()]);
95
- const current = _optionalChain([response, 'optionalAccess', _20 => _20.current, 'optionalAccess', _21 => _21.trim, 'call', _22 => _22()]) || _chunkBHAP6FIZjs.SDK_VERSION;
95
+ const current = _optionalChain([response, 'optionalAccess', _20 => _20.current, 'optionalAccess', _21 => _21.trim, 'call', _22 => _22()]) || _chunkDLDWAPA5js.SDK_VERSION;
96
96
  if (!target) return false;
97
- return _chunkD5VTWJ7Kjs.compareUpdateVersions.call(void 0, target, current) < 0;
97
+ return _chunkISUUSSS4js.compareUpdateVersions.call(void 0, target, current) < 0;
98
98
  }
99
99
  function relaunchCurrentCommand(plan, runtime = {}) {
100
100
  return new Promise((resolve) => {
@@ -147,7 +147,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
147
147
  }
148
148
  if (isDowngradeAutoUpdateResponse(response)) {
149
149
  const target = response.latest;
150
- const current = _optionalChain([response, 'access', _26 => _26.current, 'optionalAccess', _27 => _27.trim, 'call', _28 => _28()]) || _chunkBHAP6FIZjs.SDK_VERSION;
150
+ const current = _optionalChain([response, 'access', _26 => _26.current, 'optionalAccess', _27 => _27.trim, 'call', _28 => _28()]) || _chunkDLDWAPA5js.SDK_VERSION;
151
151
  process.stderr.write(
152
152
  `Deepline SDK/CLI auto-update refused: server advertised older ${target} than current ${current}. Continuing without mutating the CLI.
153
153
  `
@@ -155,21 +155,21 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
155
155
  return false;
156
156
  }
157
157
  const packageSpec = response.latest ? `deepline@${response.latest}` : void 0;
158
- const plan = _chunkD5VTWJ7Kjs.resolveUpdatePlan.call(void 0, {
158
+ const plan = _chunkISUUSSS4js.resolveUpdatePlan.call(void 0, {
159
159
  packageSpec,
160
160
  requireVerifiedNpmOwnership: true,
161
161
  npmFallbackRegistryUrl: trustedAutoUpdateRegistryUrl(baseUrl)
162
162
  });
163
- if (!_chunkD5VTWJ7Kjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) {
163
+ if (!_chunkISUUSSS4js.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) {
164
164
  return false;
165
165
  }
166
166
  if (!autoUpdate.required && autoUpdate.reason !== "rollback_forced") {
167
167
  deferredAutoUpdate = async () => {
168
168
  await applyAutoUpdate(response, baseUrl, plan, "next_command");
169
169
  };
170
- if (_chunkY5QYWFRIjs.isJsonOutputMode.call(void 0, )) {
170
+ if (_chunkDRDZBRXVjs.isJsonOutputMode.call(void 0, )) {
171
171
  const target = _optionalChain([response, 'access', _29 => _29.latest, 'optionalAccess', _30 => _30.trim, 'call', _31 => _31()]);
172
- _chunkY5QYWFRIjs.addJsonNotice.call(void 0, {
172
+ _chunkDRDZBRXVjs.addJsonNotice.call(void 0, {
173
173
  code: "sdk_update_queued",
174
174
  message: `Deepline SDK/CLI update${target ? ` to ${target}` : ""} is queued after this command; the next command will use it if installation succeeds.`
175
175
  });
@@ -182,7 +182,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
182
182
  return true;
183
183
  }
184
184
  async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
185
- if (!_chunkD5VTWJ7Kjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) return false;
185
+ if (!_chunkISUUSSS4js.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) return false;
186
186
  const autoUpdate = response.auto_update;
187
187
  const label = _optionalChain([autoUpdate, 'optionalAccess', _32 => _32.reason]) === "rollback_forced" ? "has a server rollback pending and needs the latest rollback-aware CLI" : _optionalChain([autoUpdate, 'optionalAccess', _33 => _33.reason]) === "deprecated" ? "is deprecated and will update automatically" : _optionalChain([autoUpdate, 'optionalAccess', _34 => _34.required]) ? "requires an update" : "has an update available and will update automatically";
188
188
  process.stderr.write(
@@ -195,7 +195,7 @@ async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
195
195
  event: "started",
196
196
  installKind: plan.kind
197
197
  });
198
- const updateResult = await _chunkD5VTWJ7Kjs.runAutomaticUpdatePlan.call(void 0, plan);
198
+ const updateResult = await _chunkISUUSSS4js.runAutomaticUpdatePlan.call(void 0, plan);
199
199
  if (updateResult.status === "skipped_previous_failure") {
200
200
  void reportAutoUpdateEvent({
201
201
  baseUrl,
@@ -233,7 +233,7 @@ async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
233
233
  exitCode: 0
234
234
  });
235
235
  try {
236
- await _chunk4VR5OTYPjs.syncSdkSkillsIfNeeded.call(void 0, baseUrl, {
236
+ await _chunk37SXIFIUjs.syncSdkSkillsIfNeeded.call(void 0, baseUrl, {
237
237
  mode: "detached",
238
238
  update: _optionalChain([response, 'access', _36 => _36.skills, 'optionalAccess', _37 => _37.requires_cli_update]) ? void 0 : response.skills,
239
239
  afterCliUpdate: {
@@ -260,7 +260,7 @@ var _crypto = require('crypto');
260
260
  var TOOL_EXECUTE_PROGRESS_INTERVAL_MS = 15e3;
261
261
  var activeToolExecuteCommand = null;
262
262
  function progressLine(line) {
263
- if (!_chunkY5QYWFRIjs.isJsonOutputMode.call(void 0, )) console.error(line);
263
+ if (!_chunkDRDZBRXVjs.isJsonOutputMode.call(void 0, )) console.error(line);
264
264
  }
265
265
  function beginToolExecuteCommand() {
266
266
  if (activeToolExecuteCommand) return activeToolExecuteCommand.invocationId;