deepline 0.3.532 → 0.3.533

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 (132) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/bundling-sources/shared_libs/play-runtime/context.ts +129 -62
  3. package/dist/bundling-sources/shared_libs/play-runtime/play-runs/attempts/engine-suspension.ts +1 -0
  4. package/dist/bundling-sources/shared_libs/play-runtime/play-runs/attempts/ports.ts +2 -0
  5. package/dist/bundling-sources/shared_libs/play-runtime/play-runs/attempts/postgres-fence-adapter.ts +2 -1
  6. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +1 -0
  7. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +6 -0
  8. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-capacity.ts +8 -0
  9. package/dist/cli/{auth-ZB3NN4E7.mjs → auth-2TZNPIJQ.mjs} +5 -5
  10. package/dist/cli/auth-KE6RFHUE.js +43 -0
  11. package/dist/cli/{billing-32EF4HJM.js → billing-HQYTRIV3.js} +79 -79
  12. package/dist/cli/{billing-5GGO7DQS.mjs → billing-LR4WJIHO.mjs} +6 -6
  13. package/dist/cli/{chunk-L5V5SLI7.js → chunk-274Y66HP.js} +2 -2
  14. package/dist/cli/{chunk-THQPLSJD.mjs → chunk-2TMNRF5R.mjs} +1 -1
  15. package/dist/cli/{chunk-S2HHY26V.mjs → chunk-2UYERVXF.mjs} +2 -2
  16. package/dist/cli/{chunk-FU4MMUGM.js → chunk-33SNTG5F.js} +16 -16
  17. package/dist/cli/{chunk-TS6XF2QP.js → chunk-352XVCGE.js} +5 -5
  18. package/dist/cli/{chunk-AOAXIJL2.mjs → chunk-3KQBV2CG.mjs} +3 -3
  19. package/dist/cli/{chunk-VWEDIFHT.mjs → chunk-3O3AL5RI.mjs} +4 -4
  20. package/dist/cli/{chunk-AQHMHYXX.js → chunk-425ERNBL.js} +44 -44
  21. package/dist/cli/{chunk-KQW27FSR.js → chunk-4CYNH47Y.js} +53 -53
  22. package/dist/cli/{chunk-JJSJ47CA.js → chunk-4UADZTU5.js} +22 -22
  23. package/dist/cli/{chunk-HR2RDDAC.js → chunk-4YP2YAIZ.js} +26 -26
  24. package/dist/cli/{chunk-NQDUXVBK.js → chunk-5XTXC45Z.js} +41 -41
  25. package/dist/cli/{chunk-7S3DJFW5.js → chunk-735ZOYQN.js} +11 -11
  26. package/dist/cli/{chunk-SMDX4BM5.js → chunk-A4JP6RPX.js} +2 -2
  27. package/dist/cli/{chunk-MHTKWZM3.js → chunk-B4ZNWXUW.js} +9 -9
  28. package/dist/cli/{chunk-GABQIZJR.mjs → chunk-BSI7UHQZ.mjs} +5 -5
  29. package/dist/cli/{chunk-NBIDYAN6.js → chunk-BWZHMWM5.js} +6 -6
  30. package/dist/cli/{chunk-B77ZRM6M.mjs → chunk-CANHB6DH.mjs} +2 -2
  31. package/dist/cli/{chunk-VZKCZO4J.mjs → chunk-CWIGRIIX.mjs} +3 -3
  32. package/dist/cli/{chunk-WU33X2QL.js → chunk-E4VWBU2E.js} +16 -16
  33. package/dist/cli/{chunk-BQ2KAFVQ.js → chunk-EYWES7F5.js} +3 -3
  34. package/dist/cli/{chunk-C6VCDDDD.mjs → chunk-G3GJ3IGU.mjs} +5 -5
  35. package/dist/cli/{chunk-T2QY36E3.mjs → chunk-G3RVDRYL.mjs} +1 -1
  36. package/dist/cli/{chunk-O7JU5GUR.js → chunk-HOTJSXLY.js} +5 -5
  37. package/dist/cli/{chunk-HREGFD2I.mjs → chunk-HPOVAUQF.mjs} +1 -1
  38. package/dist/cli/{chunk-VN432I4S.mjs → chunk-IETLUG4C.mjs} +1 -1
  39. package/dist/cli/{chunk-TFWREZYG.mjs → chunk-JZ7LJS3P.mjs} +6 -6
  40. package/dist/cli/{chunk-F2YLC4ZG.mjs → chunk-KKUOIVQO.mjs} +1 -1
  41. package/dist/cli/{chunk-2T7YE5UH.js → chunk-LTF2J3JM.js} +2 -2
  42. package/dist/cli/{chunk-VIC2MI4W.mjs → chunk-LZ3PBEQH.mjs} +2 -2
  43. package/dist/cli/{chunk-DSNTHXR7.mjs → chunk-LZMRCUVD.mjs} +2 -2
  44. package/dist/cli/{chunk-47UF3DDN.mjs → chunk-MKUYZ7LR.mjs} +1 -1
  45. package/dist/cli/{chunk-GBVTSWL3.js → chunk-MNAEALPG.js} +98 -98
  46. package/dist/cli/{chunk-W5KSUNTE.mjs → chunk-NFDYVMGC.mjs} +10 -10
  47. package/dist/cli/{chunk-CRWX26LR.mjs → chunk-NKVW552R.mjs} +1 -1
  48. package/dist/cli/{chunk-YM6JAKYP.mjs → chunk-NW736SOD.mjs} +2 -2
  49. package/dist/cli/{chunk-CSMLW5VE.js → chunk-O7RSUW75.js} +4 -4
  50. package/dist/cli/{chunk-6LBD6G6U.mjs → chunk-PIACHLYY.mjs} +2 -2
  51. package/dist/cli/{chunk-KEE57BF2.js → chunk-QZWURUBP.js} +7 -7
  52. package/dist/cli/{chunk-QZINISXP.js → chunk-R7YDZSN7.js} +3 -3
  53. package/dist/cli/{chunk-VHHD5D44.js → chunk-SVVUC3B4.js} +7 -7
  54. package/dist/cli/{chunk-4S3ONSLF.js → chunk-TU56J4OV.js} +13 -13
  55. package/dist/cli/{chunk-VCRCMK7M.mjs → chunk-USAQ42OG.mjs} +5 -5
  56. package/dist/cli/{chunk-EJLCIQA4.mjs → chunk-VKGNQC2S.mjs} +5 -5
  57. package/dist/cli/{chunk-H6OYTU2Y.js → chunk-VPQDKL5O.js} +6 -6
  58. package/dist/cli/{chunk-2ZGZBN6D.js → chunk-WF652G74.js} +14 -14
  59. package/dist/cli/{chunk-O2A4C4WP.mjs → chunk-XUX5KGCQ.mjs} +2 -2
  60. package/dist/cli/{chunk-RRCSFOF3.mjs → chunk-XZN3DBTP.mjs} +1 -1
  61. package/dist/cli/{chunk-3NUYO5QO.mjs → chunk-YZK5RSUL.mjs} +1 -1
  62. package/dist/cli/{chunk-64CEFPF4.js → chunk-ZH5HCAN3.js} +1 -1
  63. package/dist/cli/{csv-LM44ZFL3.mjs → csv-CJKKHGNQ.mjs} +4 -4
  64. package/dist/cli/{csv-4JBCPMEH.js → csv-MBSCHS4H.js} +13 -13
  65. package/dist/cli/{db-UVNXGK6L.js → db-45HNPCY3.js} +27 -27
  66. package/dist/cli/{db-IFJEGJ6M.mjs → db-EAFR6N45.mjs} +6 -6
  67. package/dist/cli/{describe-TWTOPGII.mjs → describe-IXW3LDGC.mjs} +18 -18
  68. package/dist/cli/describe-PYLZAVRI.js +50 -0
  69. package/dist/cli/{executions-3I6RU7AO.js → executions-SZAES2S4.js} +8 -8
  70. package/dist/cli/{executions-NEV2P5MX.mjs → executions-ZATZV7O6.mjs} +6 -6
  71. package/dist/cli/{feedback-NHO56EWZ.js → feedback-KXLF4GR4.js} +14 -14
  72. package/dist/cli/{feedback-IO5ZAWKK.mjs → feedback-NY63KEK2.mjs} +6 -6
  73. package/dist/cli/{git-MQISNZ5F.mjs → git-BSSSTR6N.mjs} +5 -5
  74. package/dist/cli/git-T5JTVBYZ.js +25 -0
  75. package/dist/cli/index.js +141 -141
  76. package/dist/cli/index.mjs +43 -43
  77. package/dist/cli/{legacy-noops-DNRJHNQB.mjs → legacy-noops-CYF6DJBF.mjs} +6 -6
  78. package/dist/cli/{legacy-noops-SLAQE7HN.js → legacy-noops-XQANGML3.js} +9 -9
  79. package/dist/cli/{monitors-NAX7SUAR.mjs → monitors-ABJVLWIP.mjs} +7 -7
  80. package/dist/cli/{monitors-JRNATYS2.js → monitors-F3PTNP45.js} +100 -100
  81. package/dist/cli/{org-34VCNPUD.mjs → org-BHF6Y5R7.mjs} +6 -6
  82. package/dist/cli/{org-BHOREX5D.js → org-WQAPZI5Q.js} +86 -86
  83. package/dist/cli/{pages-GB337AQG.js → pages-U3EJ2NPL.js} +18 -18
  84. package/dist/cli/{pages-ZWVHNJOE.mjs → pages-W4HWVJUG.mjs} +6 -6
  85. package/dist/cli/{play-DAUQ7OAO.js → play-2UHKONON.js} +317 -317
  86. package/dist/cli/{play-GJ7OEYSB.mjs → play-3T4X3ZKH.mjs} +18 -18
  87. package/dist/cli/{providers-KA2RKD6E.mjs → providers-2G2VTNDG.mjs} +6 -6
  88. package/dist/cli/{providers-W7QY5FUK.js → providers-LUK5LIUA.js} +9 -9
  89. package/dist/cli/{quickstart-D4DPUR7R.js → quickstart-76P6PGID.js} +6 -6
  90. package/dist/cli/{quickstart-7KOAL3BD.mjs → quickstart-XP4PJZ7N.mjs} +4 -4
  91. package/dist/cli/{run-AYJSQED7.mjs → run-ACIHA53A.mjs} +23 -23
  92. package/dist/cli/{run-QFVN2WUQ.js → run-S2KHGBCM.js} +41 -41
  93. package/dist/cli/search-5MD65V43.js +33 -0
  94. package/dist/cli/{search-MEE7OV2B.mjs → search-VFIJCUZL.mjs} +8 -8
  95. package/dist/cli/{search-output-G36JH6D6.mjs → search-output-2KFLZS5F.mjs} +4 -4
  96. package/dist/cli/{search-output-OW6UPOI6.js → search-output-GV7NNB4X.js} +6 -6
  97. package/dist/cli/{secrets-CJJQJUJC.js → secrets-KJSFEW2F.js} +15 -15
  98. package/dist/cli/{secrets-OFNYIJT6.mjs → secrets-MAQLBVC4.mjs} +6 -6
  99. package/dist/cli/sessions-FDMO7PAA.js +22 -0
  100. package/dist/cli/{sessions-B6VCVU4Z.mjs → sessions-G5MWNJ75.mjs} +6 -6
  101. package/dist/cli/{settings-PPFLSXDP.mjs → settings-MR6UFOK5.mjs} +13 -13
  102. package/dist/cli/{settings-H4Q524LF.js → settings-VXGRPFXP.js} +86 -86
  103. package/dist/cli/{setup-SJAM7XHR.js → setup-C74BRK7N.js} +50 -50
  104. package/dist/cli/{setup-WI3WDRRE.mjs → setup-ZOBXMONM.mjs} +10 -10
  105. package/dist/cli/{skills-QSRYGMG2.mjs → skills-4CG3MHOY.mjs} +8 -8
  106. package/dist/cli/skills-KRUL7QCT.js +37 -0
  107. package/dist/cli/tools-CGHOSCPS.js +57 -0
  108. package/dist/cli/{tools-RUC4ULAD.mjs → tools-YXCXZ4ZD.mjs} +17 -17
  109. package/dist/cli/update-S2TILEHZ.js +35 -0
  110. package/dist/cli/{update-DPWNL2UB.mjs → update-Z3C5W3I4.mjs} +10 -10
  111. package/dist/cli/{views-JP66QRA3.mjs → views-45B2FZQT.mjs} +6 -6
  112. package/dist/cli/{views-CVDVQALA.js → views-XGP2GZ52.js} +18 -18
  113. package/dist/cli/{workflow-JM6JUI7I.js → workflow-DWO35XHZ.js} +17 -17
  114. package/dist/cli/{workflow-MVTX2PY3.mjs → workflow-KQRWSNBH.mjs} +7 -7
  115. package/dist/index.js +9 -9
  116. package/dist/index.mjs +6 -6
  117. package/dist/install-integrity.json +104 -104
  118. package/dist/release.d.mts +1 -1
  119. package/dist/release.d.ts +1 -1
  120. package/dist/release.js +2 -2
  121. package/dist/release.mjs +1 -1
  122. package/dist/server.js +5 -5
  123. package/dist/server.mjs +3 -3
  124. package/package.json +1 -1
  125. package/dist/cli/auth-7YWTPQSQ.js +0 -43
  126. package/dist/cli/describe-AF73GGH6.js +0 -50
  127. package/dist/cli/git-AOKC6WL3.js +0 -25
  128. package/dist/cli/search-JVCK5AB4.js +0 -33
  129. package/dist/cli/sessions-DXN6BQ7Q.js +0 -22
  130. package/dist/cli/skills-6MNJK2VQ.js +0 -37
  131. package/dist/cli/tools-OT43MSZE.js +0 -57
  132. package/dist/cli/update-PHOSO3TL.js +0 -35
@@ -11,20 +11,20 @@
11
11
 
12
12
 
13
13
 
14
- var _chunkAQHMHYXXjs = require('./chunk-AQHMHYXX.js');
14
+ var _chunk425ERNBLjs = require('./chunk-425ERNBL.js');
15
15
 
16
16
 
17
- var _chunkKEE57BF2js = require('./chunk-KEE57BF2.js');
17
+ var _chunkQZWURUBPjs = require('./chunk-QZWURUBP.js');
18
18
 
19
19
 
20
20
 
21
21
 
22
22
 
23
- var _chunkBQ2KAFVQjs = require('./chunk-BQ2KAFVQ.js');
23
+ var _chunkEYWES7F5js = require('./chunk-EYWES7F5.js');
24
24
 
25
25
 
26
26
 
27
- var _chunkCSMLW5VEjs = require('./chunk-CSMLW5VE.js');
27
+ var _chunkO7RSUW75js = require('./chunk-O7RSUW75.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 = _chunkBQ2KAFVQjs.resolveProjectPinTarget.call(void 0, );
148
+ const target = _chunkEYWES7F5js.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, () => ( _chunkCSMLW5VEjs.detectAgentRuntime.call(void 0, )));
159
+ const runtime = _nullishCoalesce(input.runtime, () => ( _chunkO7RSUW75js.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, _chunkBQ2KAFVQjs.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, _chunkEYWES7F5js.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 = [..._chunkAQHMHYXXjs.LEGACY_SKILL_NAMES_TO_REMOVE].sort(
178
+ const legacyNames = [..._chunk425ERNBLjs.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=${_chunkAQHMHYXXjs.SKILLS_NPX_PACKAGE}`,
192
+ `--package=${_chunk425ERNBLjs.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=${_chunkAQHMHYXXjs.SKILLS_NPX_PACKAGE}`,
208
+ `--package=${_chunk425ERNBLjs.SKILLS_NPX_PACKAGE}`,
209
209
  "--",
210
210
  "skills",
211
211
  "add",
212
- _chunkAQHMHYXXjs.skillsSourceUrl.call(void 0, input.baseUrl),
212
+ _chunk425ERNBLjs.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 = _chunkAQHMHYXXjs.resolveShellSpawn.call(void 0,
249
+ const plan = _chunk425ERNBLjs.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
- `${_chunkAQHMHYXXjs.SKILLS_NPX_PACKAGE} timed out after ${SKILLS_PROCESS_TIMEOUT_MS}ms.`
271
+ `${_chunk425ERNBLjs.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(`${_chunkAQHMHYXXjs.SKILLS_NPX_PACKAGE} exited ${code}.
282
+ process.stderr.write(`${_chunk425ERNBLjs.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 = _chunkBQ2KAFVQjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
290
+ const baseUrl = _chunkEYWES7F5js.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
- _chunkKEE57BF2js.printCommandEnvelope.call(void 0,
303
+ _chunkQZWURUBPjs.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
- _chunkKEE57BF2js.printCommandEnvelope.call(void 0,
313
+ _chunkQZWURUBPjs.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
- _chunkKEE57BF2js.printCommandEnvelope.call(void 0,
330
+ _chunkQZWURUBPjs.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
- _chunkKEE57BF2js.printCommandEnvelope.call(void 0,
353
+ _chunkQZWURUBPjs.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 = _chunkBQ2KAFVQjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
365
+ const baseUrl = _chunkEYWES7F5js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
366
366
  const catalog = {
367
- skillNames: [..._chunkAQHMHYXXjs.DEFAULT_SDK_SKILL_NAMES],
368
- version: _chunkCSMLW5VEjs.SDK_VERSION
367
+ skillNames: [..._chunk425ERNBLjs.DEFAULT_SDK_SKILL_NAMES],
368
+ version: _chunkO7RSUW75js.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
- _chunkKEE57BF2js.printCommandEnvelope.call(void 0,
373
+ _chunkQZWURUBPjs.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)) && !_chunkAQHMHYXXjs.hasFailedAutomaticSkillsSync.call(void 0, baseUrl, agents)) {
380
- _chunkKEE57BF2js.printCommandEnvelope.call(void 0,
379
+ if (isSkillsPlanCurrent(plan, readSkillsInstallState(plan.statePath)) && !_chunk425ERNBLjs.hasFailedAutomaticSkillsSync.call(void 0, baseUrl, agents)) {
380
+ _chunkQZWURUBPjs.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, ..._chunkAQHMHYXXjs.LEGACY_SKILL_NAMES_TO_REMOVE])
412
+ .../* @__PURE__ */ new Set([...plan.skillNames, ..._chunk425ERNBLjs.LEGACY_SKILL_NAMES_TO_REMOVE])
413
413
  ];
414
414
  const agentRoots = workspaceSkillRootsForAgents(plan.agents);
415
- _chunkBQ2KAFVQjs.ensureProjectPrivatePathsIgnored.call(void 0, root, [
415
+ _chunkEYWES7F5js.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 _chunkAQHMHYXXjs.acquireSkillsInstallLease.call(void 0, baseUrl, agents, plan.version, {
424
+ lease = scope === "global" ? await _chunk425ERNBLjs.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 _chunkAQHMHYXXjs.SkillsStateUnavailableError)) throw error;
433
- _chunkKEE57BF2js.printCommandEnvelope.call(void 0,
432
+ if (!(error instanceof _chunk425ERNBLjs.SkillsStateUnavailableError)) throw error;
433
+ _chunkQZWURUBPjs.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
- _chunkKEE57BF2js.printCommandEnvelope.call(void 0,
449
+ _chunkQZWURUBPjs.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 ${_chunkAQHMHYXXjs.skillsInstallLeasePath.call(void 0, baseUrl, agents)}`
458
+ next: `Retry in a moment: deepline skills install --scope ${scope}. If no refresh is running, remove ${_chunk425ERNBLjs.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
- _chunkKEE57BF2js.printCommandEnvelope.call(void 0,
507
+ _chunkQZWURUBPjs.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
- _chunkKEE57BF2js.printCommandEnvelope.call(void 0,
523
+ _chunkQZWURUBPjs.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: _chunkCSMLW5VEjs.SDK_VERSION,
563
+ cliVersion: _chunkO7RSUW75js.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
- _chunkAQHMHYXXjs.clearFailedAutomaticSkillsSync.call(void 0, baseUrl, agents);
576
+ _chunk425ERNBLjs.clearFailedAutomaticSkillsSync.call(void 0, baseUrl, agents);
577
577
  }
578
- _chunkKEE57BF2js.printCommandEnvelope.call(void 0,
578
+ _chunkQZWURUBPjs.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 ${_chunkAQHMHYXXjs.SKILLS_NPX_PACKAGE},
627
+ This command reinstalls current Deepline-managed skills using ${_chunk425ERNBLjs.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(_chunkAQHMHYXXjs.SKILLS_AUTO_SYNC_COMMAND, { hidden: true }).description("Refresh Deepline agent skills in the background.").option(
639
+ program.command(_chunk425ERNBLjs.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
- _chunkKEE57BF2js.printCommandEnvelope.call(void 0,
645
+ _chunkQZWURUBPjs.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 _chunkAQHMHYXXjs.syncSdkSkillsIfNeeded.call(void 0, _chunkBQ2KAFVQjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, ""), {
658
+ await _chunk425ERNBLjs.syncSdkSkillsIfNeeded.call(void 0, _chunkEYWES7F5js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, ""), {
659
659
  mode: "inline",
660
660
  notices: "defer",
661
661
  claim
@@ -3,18 +3,18 @@
3
3
  var _chunkD3BCSAN7js = require('./chunk-D3BCSAN7.js');
4
4
 
5
5
 
6
- var _chunkO7JU5GURjs = require('./chunk-O7JU5GUR.js');
6
+ var _chunkHOTJSXLYjs = require('./chunk-HOTJSXLY.js');
7
7
 
8
8
 
9
- var _chunk2ZGZBN6Djs = require('./chunk-2ZGZBN6D.js');
9
+ var _chunkWF652G74js = require('./chunk-WF652G74.js');
10
10
 
11
11
 
12
12
 
13
- var _chunkKEE57BF2js = require('./chunk-KEE57BF2.js');
13
+ var _chunkQZWURUBPjs = require('./chunk-QZWURUBP.js');
14
14
 
15
15
 
16
16
 
17
- var _chunkBQ2KAFVQjs = require('./chunk-BQ2KAFVQ.js');
17
+ var _chunkEYWES7F5js = require('./chunk-EYWES7F5.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, _chunkBQ2KAFVQjs.sdkCliStateDirPath.call(void 0, _chunkBQ2KAFVQjs.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
27
+ return _path.join.call(void 0, _chunkEYWES7F5js.sdkCliStateDirPath.call(void 0, _chunkEYWES7F5js.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, _chunkO7JU5GURjs.DeeplineClient)();
137
+ const client = new (0, _chunkHOTJSXLYjs.DeeplineClient)();
138
138
  const json = options.json === true;
139
- const renderer = json ? void 0 : await Promise.resolve().then(() => _interopRequireWildcard(require("./search-output-OW6UPOI6.js")));
139
+ const renderer = json ? void 0 : await Promise.resolve().then(() => _interopRequireWildcard(require("./search-output-GV7NNB4X.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
- _chunkKEE57BF2js.printCommandEnvelope.call(void 0, result, { json, text });
162
+ _chunkQZWURUBPjs.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 = _chunkKEE57BF2js.errorToJsonPayload.call(void 0, error);
177
- const queryExitCode = _nullishCoalesce(payload.exitCode, () => ( _chunk2ZGZBN6Djs.resolveSdkCliFailureExitCode.call(void 0, error)));
176
+ const payload = _chunkQZWURUBPjs.errorToJsonPayload.call(void 0, error);
177
+ const queryExitCode = _nullishCoalesce(payload.exitCode, () => ( _chunkWF652G74js.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
- _chunkKEE57BF2js.printCommandEnvelope.call(void 0,
189
+ _chunkQZWURUBPjs.printCommandEnvelope.call(void 0,
190
190
  { searches },
191
191
  {
192
192
  json,
@@ -1,6 +1,6 @@
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 _chunkKEE57BF2js = require('./chunk-KEE57BF2.js');
3
+ var _chunkQZWURUBPjs = require('./chunk-QZWURUBP.js');
4
4
 
5
5
  // src/cli/maintenance-policy.ts
6
6
  var _commander = require('commander');
@@ -33,7 +33,7 @@ function recordCliTrace(event) {
33
33
  sinceStartMs: now - cliTraceStartedAt,
34
34
  ...event
35
35
  };
36
- _chunkKEE57BF2js.writeRawStderr.call(void 0, `[cli-trace] ${JSON.stringify(payload)}
36
+ _chunkQZWURUBPjs.writeRawStderr.call(void 0, `[cli-trace] ${JSON.stringify(payload)}
37
37
  `);
38
38
  }
39
39
  async function traceCliSpan(phase, fields, run) {
@@ -3,7 +3,7 @@
3
3
  var _chunkVLEVVDWGjs = require('./chunk-VLEVVDWG.js');
4
4
 
5
5
 
6
- var _chunkVHHD5D44js = require('./chunk-VHHD5D44.js');
6
+ var _chunkSVVUC3B4js = require('./chunk-SVVUC3B4.js');
7
7
 
8
8
 
9
9
  var _chunk2KHUFWTKjs = require('./chunk-2KHUFWTK.js');
@@ -11,7 +11,7 @@ var _chunk2KHUFWTKjs = require('./chunk-2KHUFWTK.js');
11
11
 
12
12
 
13
13
 
14
- var _chunkKEE57BF2js = require('./chunk-KEE57BF2.js');
14
+ var _chunkQZWURUBPjs = require('./chunk-QZWURUBP.js');
15
15
 
16
16
 
17
17
  var _chunkSQWET4SLjs = require('./chunk-SQWET4SL.js');
@@ -581,7 +581,7 @@ function parseInputFlagValue(raw) {
581
581
  return raw;
582
582
  }
583
583
  function parsePlayRunOptions(args, initialInput = null) {
584
- const selection = _chunkKEE57BF2js.parseJsonFields.call(void 0, args, "run");
584
+ const selection = _chunkQZWURUBPjs.parseJsonFields.call(void 0, args, "run");
585
585
  args = selection.args;
586
586
  const usage = "Usage: deepline plays run <play-name> [--input '{...}'] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--full] [--<input> value]\n deepline plays run <play-file.ts> [--input '{...}'] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--full] [--<input> value]\n deepline plays run --file <play-file.ts> [--input '{...}'] [--profile <id>] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--full] [--<input> value]\n deepline plays run --name <name> [--input '{...}'] [--profile <id>] [--live|--latest|--revision-id <id>] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--json] [--full] [--<input> value]\n Runs use the Absurd CJS runtime.\n --header '<name>: <value>' may repeat; each is sent on every request for this run.\n Unknown --<input> value flags, such as --limit 5, are passed into play input.\nRun `deepline plays run --help` for idempotent call caching and deepline.dataset guidance.";
587
587
  let filePath = null;
@@ -593,7 +593,7 @@ function parsePlayRunOptions(args, initialInput = null) {
593
593
  let revisionSelector = null;
594
594
  const watch = !args.includes("--no-wait");
595
595
  const dryRun = args.includes("--dry-run");
596
- let jsonOutput = dryRun ? _chunkKEE57BF2js.argsWantJson.call(void 0, args) : watch ? args.includes("--json") : _chunkKEE57BF2js.argsWantJson.call(void 0, args);
596
+ let jsonOutput = dryRun ? _chunkQZWURUBPjs.argsWantJson.call(void 0, args) : watch ? args.includes("--json") : _chunkQZWURUBPjs.argsWantJson.call(void 0, args);
597
597
  const fullJson = args.includes("--full");
598
598
  const force = args.includes("--force") || args.includes("--from-start");
599
599
  const forceToolRefresh = args.includes("--force-tool-refresh") || args.includes("--refresh-cache");
@@ -656,7 +656,7 @@ function parsePlayRunOptions(args, initialInput = null) {
656
656
  "--log-level requires one of: debug, info, warn, error."
657
657
  );
658
658
  }
659
- const parsed = _chunkVHHD5D44js.parseLogLevel.call(void 0, value);
659
+ const parsed = _chunkSVVUC3B4js.parseLogLevel.call(void 0, value);
660
660
  if (!parsed) {
661
661
  throw new Error(
662
662
  `Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
@@ -974,7 +974,7 @@ function resolvePlayRunCliOptions(target, options, inputArgs = [], maintenancePo
974
974
  const hasExplicitLogLevel = options.logLevel !== void 0 || inputArgs.some(
975
975
  (arg) => arg === "--log-level" || arg.startsWith("--log-level=")
976
976
  );
977
- let logLevel = options.logLevel === void 0 ? base.logLevel : _chunkVHHD5D44js.parseLogLevel.call(void 0, options.logLevel);
977
+ let logLevel = options.logLevel === void 0 ? base.logLevel : _chunkSVVUC3B4js.parseLogLevel.call(void 0, options.logLevel);
978
978
  if (!logLevel)
979
979
  throw new Error("--log-level requires one of: debug, info, warn, error.");
980
980
  const debugAlias = options.logs || options.debug === true || inputArgs.some(
@@ -988,13 +988,13 @@ function resolvePlayRunCliOptions(target, options, inputArgs = [], maintenancePo
988
988
  if (debugAlias || debugMapLatency && logLevel === "info")
989
989
  logLevel = "debug";
990
990
  const fullJson = _nullishCoalesce(options.full, () => ( base.fullJson));
991
- const jsonFields = options.json === void 0 ? base.jsonFields : _chunkKEE57BF2js.parseJsonFields.call(void 0,
992
- [...fullJson ? ["--full"] : [], ..._chunkKEE57BF2js.jsonFieldArgs.call(void 0, options.json)],
991
+ const jsonFields = options.json === void 0 ? base.jsonFields : _chunkQZWURUBPjs.parseJsonFields.call(void 0,
992
+ [...fullJson ? ["--full"] : [], ..._chunkQZWURUBPjs.jsonFieldArgs.call(void 0, options.json)],
993
993
  "run"
994
994
  ).fields;
995
995
  const watch = options.wait === false ? false : base.watch;
996
996
  const explicitJson = options.json !== void 0 ? options.json !== false : base.jsonOutput;
997
- const jsonOutput = dryRun || !watch ? explicitJson || _chunkKEE57BF2js.argsWantJson.call(void 0, []) : explicitJson;
997
+ const jsonOutput = dryRun || !watch ? explicitJson || _chunkQZWURUBPjs.argsWantJson.call(void 0, []) : explicitJson;
998
998
  const verboseLogs = Boolean(
999
999
  debugAlias || logLevel === "debug" || debugMapLatency
1000
1000
  );
@@ -1,19 +1,19 @@
1
1
  import {
2
2
  npmSupportsAllowScripts,
3
3
  readNpmVersion
4
- } from "./chunk-CRWX26LR.mjs";
4
+ } from "./chunk-NKVW552R.mjs";
5
5
  import {
6
6
  runSkillsCommand
7
- } from "./chunk-VWEDIFHT.mjs";
7
+ } from "./chunk-3O3AL5RI.mjs";
8
8
  import {
9
9
  resolveShellSpawn
10
- } from "./chunk-VCRCMK7M.mjs";
10
+ } from "./chunk-USAQ42OG.mjs";
11
11
  import {
12
12
  printCommandEnvelope
13
- } from "./chunk-S2HHY26V.mjs";
13
+ } from "./chunk-2UYERVXF.mjs";
14
14
  import {
15
15
  autoDetectBaseUrl
16
- } from "./chunk-VN432I4S.mjs";
16
+ } from "./chunk-IETLUG4C.mjs";
17
17
 
18
18
  // src/cli/commands/update.ts
19
19
  import { spawn, spawnSync } from "child_process";
@@ -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 _chunkSMDX4BM5js = require('./chunk-SMDX4BM5.js');
3
+ var _chunkA4JP6RPXjs = require('./chunk-A4JP6RPX.js');
4
4
 
5
5
 
6
6
 
7
7
 
8
- var _chunkAQHMHYXXjs = require('./chunk-AQHMHYXX.js');
8
+ var _chunk425ERNBLjs = require('./chunk-425ERNBL.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") _chunkAQHMHYXXjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
22
- const compatibility = await _chunkSMDX4BM5js.traceCliSpan.call(void 0,
21
+ if (maintenancePolicy !== "off") _chunk425ERNBLjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
22
+ const compatibility = await _chunkA4JP6RPXjs.traceCliSpan.call(void 0,
23
23
  "cli.sdk_compatibility",
24
24
  { baseUrl, command: "plays run" },
25
- () => _chunkAQHMHYXXjs.checkSdkCompatibility.call(void 0, baseUrl, {
25
+ () => _chunk425ERNBLjs.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
- _chunkAQHMHYXXjs.enforceSdkCompatibilityResponse.call(void 0, compatibility.response, {
33
+ _chunk425ERNBLjs.enforceSdkCompatibilityResponse.call(void 0, compatibility.response, {
34
34
  quietAdvisory: true
35
35
  });
36
36
  }
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  traceCliSpan
3
- } from "./chunk-F2YLC4ZG.mjs";
3
+ } from "./chunk-KKUOIVQO.mjs";
4
4
  import {
5
5
  checkSdkCompatibility,
6
6
  enforceSdkCompatibilityResponse,
7
7
  flushDeferredSkillsSyncNotices
8
- } from "./chunk-VCRCMK7M.mjs";
8
+ } from "./chunk-USAQ42OG.mjs";
9
9
 
10
10
  // src/cli/play-run-admission.ts
11
11
  function usesInlinePlayAdmission(command, args) {
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  rejectRestrictedFeedback
3
- } from "./chunk-HREGFD2I.mjs";
3
+ } from "./chunk-HPOVAUQF.mjs";
4
4
  import {
5
5
  getAuthedHttpClient,
6
6
  printCommandEnvelope
7
- } from "./chunk-S2HHY26V.mjs";
7
+ } from "./chunk-2UYERVXF.mjs";
8
8
  import {
9
9
  agentSessionIdFromEnvironment,
10
10
  claudeProjectsRoots,
11
11
  coworkTranscriptFromEnvironment
12
- } from "./chunk-47UF3DDN.mjs";
12
+ } from "./chunk-MKUYZ7LR.mjs";
13
13
 
14
14
  // src/cli/commands/sessions.ts
15
15
  import {
@@ -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(); } }
2
2
 
3
- var _chunkGBVTSWL3js = require('./chunk-GBVTSWL3.js');
3
+ var _chunkMNAEALPGjs = require('./chunk-MNAEALPG.js');
4
4
 
5
5
 
6
- var _chunkH6OYTU2Yjs = require('./chunk-H6OYTU2Y.js');
6
+ var _chunkVPQDKL5Ojs = require('./chunk-VPQDKL5O.js');
7
7
 
8
8
 
9
9
 
@@ -14,18 +14,18 @@ var _chunk5YAJGRWBjs = require('./chunk-5YAJGRWB.js');
14
14
  var _chunkXYIECA7Mjs = require('./chunk-XYIECA7M.js');
15
15
 
16
16
 
17
- var _chunkO7JU5GURjs = require('./chunk-O7JU5GUR.js');
17
+ var _chunkHOTJSXLYjs = require('./chunk-HOTJSXLY.js');
18
18
 
19
19
 
20
20
 
21
- var _chunk2ZGZBN6Djs = require('./chunk-2ZGZBN6D.js');
21
+ var _chunkWF652G74js = require('./chunk-WF652G74.js');
22
22
 
23
23
 
24
- var _chunkKEE57BF2js = require('./chunk-KEE57BF2.js');
24
+ var _chunkQZWURUBPjs = require('./chunk-QZWURUBP.js');
25
25
 
26
26
 
27
27
 
28
- var _chunkBQ2KAFVQjs = require('./chunk-BQ2KAFVQ.js');
28
+ var _chunkEYWES7F5js = require('./chunk-EYWES7F5.js');
29
29
 
30
30
  // src/cli/commands/describe.ts
31
31
  var _fs = require('fs');
@@ -34,14 +34,14 @@ var _path = require('path');
34
34
  // src/cli/doc-read-reporting.ts
35
35
  var REPORT_TIMEOUT_MS = 1e3;
36
36
  async function reportDocRead(docId) {
37
- if (_chunk2ZGZBN6Djs.isFailureReportingDisabled.call(void 0, )) return;
37
+ if (_chunkWF652G74js.isFailureReportingDisabled.call(void 0, )) return;
38
38
  try {
39
- const baseUrl = _chunkBQ2KAFVQjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
40
- const apiKey = _chunkBQ2KAFVQjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
39
+ const baseUrl = _chunkEYWES7F5js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
40
+ const apiKey = _chunkEYWES7F5js.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
41
41
  if (!apiKey) return;
42
42
  await fetch(new URL("/api/v2/telemetry/doc-read", baseUrl), {
43
43
  method: "POST",
44
- headers: _chunk2ZGZBN6Djs.failureReportHeaders.call(void 0, apiKey),
44
+ headers: _chunkWF652G74js.failureReportHeaders.call(void 0, apiKey),
45
45
  body: JSON.stringify({ doc_id: docId }),
46
46
  signal: AbortSignal.timeout(REPORT_TIMEOUT_MS)
47
47
  });
@@ -54,16 +54,16 @@ function nothingNamed(name) {
54
54
  return `Nothing named "${name}". Search for it: deepline search ${JSON.stringify(name.replace(/[-_./]+/g, " "))}`;
55
55
  }
56
56
  function findNamed2(name, options) {
57
- return _chunk5YAJGRWBjs.findNamed.call(void 0, name, options, _chunk5YAJGRWBjs.describeLookupsFor.call(void 0, new (0, _chunkO7JU5GURjs.DeeplineClient)()));
57
+ return _chunk5YAJGRWBjs.findNamed.call(void 0, name, options, _chunk5YAJGRWBjs.describeLookupsFor.call(void 0, new (0, _chunkHOTJSXLYjs.DeeplineClient)()));
58
58
  }
59
59
  async function describeAnything(name, options, onMissing) {
60
- const client = new (0, _chunkO7JU5GURjs.DeeplineClient)();
60
+ const client = new (0, _chunkHOTJSXLYjs.DeeplineClient)();
61
61
  const lookups = _chunk5YAJGRWBjs.describeLookupsFor.call(void 0, client);
62
62
  const outcome = await _chunk5YAJGRWBjs.describeName.call(void 0, name, options, {
63
63
  ...lookups,
64
64
  // `tools describe` has already fetched the tool for its compatibility check.
65
65
  tool: async (toolName) => _nullishCoalesce(options.fetchedTool, () => ( lookups.tool(toolName))),
66
- seedStarterScript: _chunkGBVTSWL3js.seedToolListScript
66
+ seedStarterScript: _chunkMNAEALPGjs.seedToolListScript
67
67
  });
68
68
  if (outcome.status === "missing") {
69
69
  if (onMissing) return onMissing();
@@ -89,18 +89,18 @@ function deliver(envelope, lines, { json, out }) {
89
89
  ` : text;
90
90
  _fs.writeFileSync.call(void 0, path, content);
91
91
  const bytes = Buffer.byteLength(content);
92
- _chunkKEE57BF2js.printCommandEnvelope.call(void 0,
92
+ _chunkQZWURUBPjs.printCommandEnvelope.call(void 0,
93
93
  { path, bytes },
94
94
  { json, text: `Wrote ${path} (${bytes} bytes)
95
95
  ` }
96
96
  );
97
97
  return 0;
98
98
  }
99
- _chunkKEE57BF2js.printCommandEnvelope.call(void 0, envelope, { json, text });
99
+ _chunkQZWURUBPjs.printCommandEnvelope.call(void 0, envelope, { json, text });
100
100
  return 0;
101
101
  }
102
102
  function registerDescribeCommand(program) {
103
- _chunkH6OYTU2Yjs.addDescribeOptions.call(void 0, program.command("describe <name>")).option("--web-url", "Print only a play's play page URL").description(
103
+ _chunkVPQDKL5Ojs.addDescribeOptions.call(void 0, program.command("describe <name>")).option("--web-url", "Print only a play's play page URL").description(
104
104
  "Describe anything search returns: a tool, monitor type, or play."
105
105
  ).addHelpText(
106
106
  "after",