deepline 0.3.448 → 0.3.450

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 (120) hide show
  1. package/dist/bundling-sources/sdk/src/play.ts +1 -1
  2. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  3. package/dist/bundling-sources/shared_libs/monitors/http-error-response.ts +3 -3
  4. package/dist/bundling-sources/shared_libs/monitors/provider-monitor-capability.ts +1 -1
  5. package/dist/bundling-sources/shared_libs/observability/telemetry.ts +2 -1
  6. package/dist/bundling-sources/shared_libs/play-runtime/deployment/commands/roll-execution-relay.ts +2 -13
  7. package/dist/bundling-sources/shared_libs/play-runtime/deployment/commands/roll-receipt-gateway.ts +2 -16
  8. package/dist/bundling-sources/shared_libs/play-runtime/deployment/commands/runtime-topology.ts +23 -1
  9. package/dist/bundling-sources/shared_libs/play-runtime/deployment/runtime-topology.ts +52 -4
  10. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-launch-transport.ts +80 -1
  11. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-lifecycle.ts +16 -3
  12. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona.ts +34 -10
  13. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +14 -11
  14. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +54 -6
  15. package/dist/bundling-sources/shared_libs/product-notifications/catalog.ts +10 -6
  16. package/dist/bundling-sources/shared_libs/product-notifications/default-policy.ts +1 -1
  17. package/dist/cli/auth-3LOZKBPO.js +40 -0
  18. package/dist/cli/{auth-HAJKEPAE.mjs → auth-CHYW6BU3.mjs} +4 -4
  19. package/dist/cli/{billing-ZGQY3GVK.js → billing-NCV2CBLH.js} +73 -73
  20. package/dist/cli/{billing-CMA2G5Y4.mjs → billing-YADYH5P7.mjs} +4 -4
  21. package/dist/cli/{chunk-TKOVC3AP.js → chunk-2SASGLVN.js} +6 -6
  22. package/dist/cli/{chunk-2GVRS7UB.mjs → chunk-2UNTSLTR.mjs} +3 -3
  23. package/dist/cli/{chunk-TBTIA6U4.js → chunk-2VKDHJU3.js} +81 -81
  24. package/dist/cli/{chunk-K5M6UG3D.mjs → chunk-3JEMYGIR.mjs} +1 -1
  25. package/dist/cli/{chunk-5XOPYIT6.mjs → chunk-3SRJO6H4.mjs} +3 -3
  26. package/dist/cli/{chunk-PGE4JW7C.js → chunk-47GRLLV2.js} +6 -6
  27. package/dist/cli/{chunk-XM6A4V77.mjs → chunk-4Z356NPN.mjs} +1 -1
  28. package/dist/cli/{chunk-2BKTT44A.mjs → chunk-5R7YPB5X.mjs} +1 -1
  29. package/dist/cli/{chunk-TEPZMKN7.js → chunk-6TABNDCB.js} +4 -4
  30. package/dist/cli/{chunk-LNBSMAUK.js → chunk-7IUG4STX.js} +50 -50
  31. package/dist/cli/{chunk-YTWQ4G4P.mjs → chunk-AJUNUE32.mjs} +1 -1
  32. package/dist/cli/{chunk-XXHLFL3J.mjs → chunk-B2V2F3KV.mjs} +1 -1
  33. package/dist/cli/{chunk-TOLQMV5C.mjs → chunk-B4T7EFBZ.mjs} +4 -4
  34. package/dist/cli/{chunk-33KZX7WI.mjs → chunk-CA3NM3W4.mjs} +3 -3
  35. package/dist/cli/{chunk-ZNEU3KF2.js → chunk-CBM27PDJ.js} +8 -8
  36. package/dist/cli/{chunk-QS5BY6FO.mjs → chunk-EKVOSR3S.mjs} +5 -5
  37. package/dist/cli/{chunk-HOLESVLX.mjs → chunk-HRRVDDFH.mjs} +8 -8
  38. package/dist/cli/{chunk-7XUVB46D.js → chunk-IESQOIOE.js} +8 -8
  39. package/dist/cli/{chunk-DCQP53KU.js → chunk-IGMBTEF7.js} +26 -26
  40. package/dist/cli/{chunk-CB3Y7THP.js → chunk-IYBC6WON.js} +1 -1
  41. package/dist/cli/{chunk-DP6CINW2.js → chunk-JWZIZH2C.js} +10 -10
  42. package/dist/cli/{chunk-6X5G45GR.js → chunk-LTQCEQOZ.js} +20 -20
  43. package/dist/cli/{chunk-PVG52FJA.mjs → chunk-N42KCXPD.mjs} +2 -2
  44. package/dist/cli/{chunk-PVNPEQCM.js → chunk-NSIOVSNZ.js} +52 -52
  45. package/dist/cli/{chunk-WYU4UYJN.js → chunk-OZ5ME7BP.js} +2 -2
  46. package/dist/cli/{chunk-R76RSTHC.mjs → chunk-QROZFMGC.mjs} +1 -1
  47. package/dist/cli/{chunk-H54AY3OO.mjs → chunk-UJHJXWM4.mjs} +2 -2
  48. package/dist/cli/{chunk-DBNTO3T4.js → chunk-UMA7425N.js} +2 -2
  49. package/dist/cli/{chunk-Z6SRBSI2.js → chunk-VYMLYV2K.js} +16 -16
  50. package/dist/cli/{chunk-JYZVM2VV.js → chunk-XUD5AOQY.js} +35 -35
  51. package/dist/cli/{chunk-JETVD7NN.mjs → chunk-ZEVUPOF6.mjs} +2 -2
  52. package/dist/cli/{chunk-SXPQ4ZSU.mjs → chunk-ZYORWYLP.mjs} +2 -2
  53. package/dist/cli/{csv-64TF4NDO.mjs → csv-7PXCJKYS.mjs} +3 -3
  54. package/dist/cli/{csv-FTRQZV3H.js → csv-VQLS5D7H.js} +12 -12
  55. package/dist/cli/{db-RZUHE4GB.mjs → db-JYLMLQQO.mjs} +4 -4
  56. package/dist/cli/{db-REW2BPP6.js → db-XDUC3MFP.js} +25 -25
  57. package/dist/cli/{describe-3X7HQ3JN.js → describe-G6SRQQHS.js} +16 -16
  58. package/dist/cli/{describe-XU7JL4VM.mjs → describe-LDHY5HTB.mjs} +12 -12
  59. package/dist/cli/describe-core.d.mts +1 -1
  60. package/dist/cli/describe-core.d.ts +1 -1
  61. package/dist/cli/{executions-Y42LOK2X.js → executions-HPI65XBL.js} +6 -6
  62. package/dist/cli/{executions-LFDOGILB.mjs → executions-M7MDBFHA.mjs} +4 -4
  63. package/dist/cli/{feedback-LRF3UIQM.mjs → feedback-6V4DDJVD.mjs} +3 -3
  64. package/dist/cli/{feedback-LIKR4GUV.js → feedback-Y66JKRPN.js} +7 -7
  65. package/dist/cli/{git-GGJXLHN2.mjs → git-BTKGTTGF.mjs} +4 -4
  66. package/dist/cli/git-VVC5BRCG.js +24 -0
  67. package/dist/cli/index.js +131 -131
  68. package/dist/cli/index.mjs +36 -36
  69. package/dist/cli/{legacy-noops-SJMC6NR5.js → legacy-noops-DEVCEE64.js} +7 -7
  70. package/dist/cli/{legacy-noops-QW3P53AG.mjs → legacy-noops-MUBHYOEG.mjs} +4 -4
  71. package/dist/cli/{monitors-VRM5AA7T.js → monitors-2DJFA7XX.js} +90 -91
  72. package/dist/cli/{monitors-Q2UZTDFC.mjs → monitors-SOGDSYPL.mjs} +10 -11
  73. package/dist/cli/{org-BIUKWUM4.mjs → org-D6ZFFG4D.mjs} +4 -4
  74. package/dist/cli/{org-F7OCO7BT.js → org-UWMWVV73.js} +66 -66
  75. package/dist/cli/{play-3WJID2EB.js → play-P423OXCU.js} +283 -283
  76. package/dist/cli/{play-HK6V5JO5.mjs → play-TIR2S6IA.mjs} +10 -10
  77. package/dist/cli/{providers-X3KZO4PN.js → providers-6F5F6D4O.js} +7 -7
  78. package/dist/cli/{providers-RM2PBFPD.mjs → providers-HRDAG3UX.mjs} +4 -4
  79. package/dist/cli/{quickstart-TKNR4AHF.js → quickstart-SOWZOPAS.js} +5 -5
  80. package/dist/cli/{quickstart-L7CAMJUL.mjs → quickstart-UMZS7HBY.mjs} +3 -3
  81. package/dist/cli/{search-XRVV24KN.mjs → search-5FGZVQSP.mjs} +5 -5
  82. package/dist/cli/search-BDIO4BBH.js +30 -0
  83. package/dist/cli/{secrets-K3BXJVSB.js → secrets-7E2TOVYP.js} +13 -13
  84. package/dist/cli/{secrets-W6IACZAX.mjs → secrets-SACNVEWL.mjs} +4 -4
  85. package/dist/cli/{sessions-CITACQM6.mjs → sessions-5VCX7MYU.mjs} +4 -4
  86. package/dist/cli/{sessions-WX6DSVSN.js → sessions-FNON33JD.js} +5 -5
  87. package/dist/cli/{settings-MQTTUMWY.js → settings-6MYQGDQX.js} +75 -75
  88. package/dist/cli/{settings-W7JDSM35.mjs → settings-EJACNJR4.mjs} +8 -8
  89. package/dist/cli/{setup-EQ64XDNX.mjs → setup-KJ7IADVC.mjs} +7 -7
  90. package/dist/cli/{setup-OWHEIGVW.js → setup-QVEIV4R4.js} +42 -42
  91. package/dist/cli/{skills-5JBRC5OR.mjs → skills-SUV3DJEU.mjs} +5 -5
  92. package/dist/cli/skills-YPH2KNH6.js +29 -0
  93. package/dist/cli/{tools-DIXBDNAX.mjs → tools-H4ZL5QDZ.mjs} +12 -12
  94. package/dist/cli/tools-X23MQMNE.js +44 -0
  95. package/dist/cli/{update-EYIS2XVV.mjs → update-5UGF4334.mjs} +7 -7
  96. package/dist/cli/update-GZOPNTGJ.js +31 -0
  97. package/dist/cli/{workflow-YKFU3E2C.mjs → workflow-RABLQNGO.mjs} +6 -6
  98. package/dist/cli/{workflow-OEKRLGWT.js → workflow-THIBJ3VE.js} +16 -16
  99. package/dist/{client-CBitBZpr.d.ts → client-CPRaigLC.d.ts} +1 -0
  100. package/dist/{client-CTUbBRgg.d.mts → client-DstDI5TV.d.mts} +1 -0
  101. package/dist/index.d.mts +3 -3
  102. package/dist/index.d.ts +3 -3
  103. package/dist/index.js +6 -6
  104. package/dist/index.mjs +3 -3
  105. package/dist/install-integrity.json +80 -80
  106. package/dist/plays/play-description.d.mts +1 -1
  107. package/dist/plays/play-description.d.ts +1 -1
  108. package/dist/plays/run-request.d.mts +1 -1
  109. package/dist/plays/run-request.d.ts +1 -1
  110. package/dist/release.d.mts +1 -1
  111. package/dist/release.d.ts +1 -1
  112. package/dist/release.js +2 -2
  113. package/dist/release.mjs +1 -1
  114. package/package.json +1 -1
  115. package/dist/cli/auth-HUJ3DIQI.js +0 -40
  116. package/dist/cli/git-BH7ZZPCT.js +0 -24
  117. package/dist/cli/search-65KJJGHQ.js +0 -30
  118. package/dist/cli/skills-5AXKZGMJ.js +0 -29
  119. package/dist/cli/tools-EXCJ2QMK.js +0 -44
  120. package/dist/cli/update-KSIVBEIH.js +0 -31
@@ -11,10 +11,10 @@
11
11
 
12
12
 
13
13
 
14
- var _chunkPVNPEQCMjs = require('./chunk-PVNPEQCM.js');
14
+ var _chunkNSIOVSNZjs = require('./chunk-NSIOVSNZ.js');
15
15
 
16
16
 
17
- var _chunkPGE4JW7Cjs = require('./chunk-PGE4JW7C.js');
17
+ var _chunk47GRLLV2js = require('./chunk-47GRLLV2.js');
18
18
 
19
19
 
20
20
 
@@ -22,7 +22,7 @@ var _chunkPGE4JW7Cjs = require('./chunk-PGE4JW7C.js');
22
22
 
23
23
 
24
24
 
25
- var _chunkTEPZMKN7js = require('./chunk-TEPZMKN7.js');
25
+ var _chunk6TABNDCBjs = require('./chunk-6TABNDCB.js');
26
26
 
27
27
  // src/cli/commands/skills.ts
28
28
  var _child_process = require('child_process');
@@ -75,7 +75,7 @@ function inferActiveSkillsScope(entrypoint = _nullishCoalesce(process.argv[1], (
75
75
  return /[\\/]\.deepline[\\/]runtime[\\/]/.test(entrypoint) ? "local" : "global";
76
76
  }
77
77
  function resolveLocalRoot() {
78
- const target = _chunkTEPZMKN7js.resolveProjectPinTarget.call(void 0, );
78
+ const target = _chunk6TABNDCBjs.resolveProjectPinTarget.call(void 0, );
79
79
  if (!target.ok) {
80
80
  throw new Error(
81
81
  `Cowork project folder is ambiguous. Candidate folders: ${target.candidates.join(
@@ -86,7 +86,7 @@ function resolveLocalRoot() {
86
86
  return target.dir;
87
87
  }
88
88
  function detectSkillsAgents(input) {
89
- const runtime = _nullishCoalesce(input.runtime, () => ( _chunkTEPZMKN7js.detectAgentRuntime.call(void 0, )));
89
+ const runtime = _nullishCoalesce(input.runtime, () => ( _chunk6TABNDCBjs.detectAgentRuntime.call(void 0, )));
90
90
  const knownAgent = RUNTIME_TO_SKILLS_AGENT[runtime];
91
91
  if (knownAgent) return [knownAgent];
92
92
  const roots = [
@@ -101,11 +101,11 @@ function detectSkillsAgents(input) {
101
101
  return detected.length > 0 ? detected : ["*"];
102
102
  }
103
103
  function skillsStatePathForScope(baseUrl, scope, root) {
104
- return scope === "local" && root ? _path.join.call(void 0, root, ".deepline", "setup", "skills.json") : _path.join.call(void 0, _chunkTEPZMKN7js.sdkCliStateDirPath.call(void 0, baseUrl), "skills-install.json");
104
+ return scope === "local" && root ? _path.join.call(void 0, root, ".deepline", "setup", "skills.json") : _path.join.call(void 0, _chunk6TABNDCBjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-install.json");
105
105
  }
106
106
  function buildSkillsPlan(input) {
107
107
  const scopeArgs = input.scope === "global" ? ["--global"] : [];
108
- const legacyNames = [..._chunkPVNPEQCMjs.LEGACY_SKILL_NAMES_TO_REMOVE].sort(
108
+ const legacyNames = [..._chunkNSIOVSNZjs.LEGACY_SKILL_NAMES_TO_REMOVE].sort(
109
109
  (a, b) => a.localeCompare(b)
110
110
  );
111
111
  return {
@@ -119,7 +119,7 @@ function buildSkillsPlan(input) {
119
119
  args: [
120
120
  "exec",
121
121
  "--yes",
122
- `--package=${_chunkPVNPEQCMjs.SKILLS_NPX_PACKAGE}`,
122
+ `--package=${_chunkNSIOVSNZjs.SKILLS_NPX_PACKAGE}`,
123
123
  "--",
124
124
  "skills",
125
125
  "remove",
@@ -135,11 +135,11 @@ function buildSkillsPlan(input) {
135
135
  args: [
136
136
  "exec",
137
137
  "--yes",
138
- `--package=${_chunkPVNPEQCMjs.SKILLS_NPX_PACKAGE}`,
138
+ `--package=${_chunkNSIOVSNZjs.SKILLS_NPX_PACKAGE}`,
139
139
  "--",
140
140
  "skills",
141
141
  "add",
142
- _chunkPVNPEQCMjs.skillsSourceUrl.call(void 0, input.baseUrl),
142
+ _chunkNSIOVSNZjs.skillsSourceUrl.call(void 0, input.baseUrl),
143
143
  "--agent",
144
144
  ...input.agents,
145
145
  ...scopeArgs,
@@ -176,7 +176,7 @@ function readSkillsInstallState(path) {
176
176
  }
177
177
  function runProcess(command, args, cwd) {
178
178
  return new Promise((resolve, reject) => {
179
- const plan = _chunkPVNPEQCMjs.resolveShellSpawn.call(void 0,
179
+ const plan = _chunkNSIOVSNZjs.resolveShellSpawn.call(void 0,
180
180
  command,
181
181
  args,
182
182
  process.platform,
@@ -198,7 +198,7 @@ function runProcess(command, args, cwd) {
198
198
  child.kill("SIGTERM");
199
199
  reject(
200
200
  new Error(
201
- `${_chunkPVNPEQCMjs.SKILLS_NPX_PACKAGE} timed out after ${SKILLS_PROCESS_TIMEOUT_MS}ms.`
201
+ `${_chunkNSIOVSNZjs.SKILLS_NPX_PACKAGE} timed out after ${SKILLS_PROCESS_TIMEOUT_MS}ms.`
202
202
  )
203
203
  );
204
204
  }, SKILLS_PROCESS_TIMEOUT_MS);
@@ -209,7 +209,7 @@ function runProcess(command, args, cwd) {
209
209
  child.once("close", (code) => {
210
210
  clearTimeout(timeout);
211
211
  if (code && stderr.trim()) {
212
- process.stderr.write(`${_chunkPVNPEQCMjs.SKILLS_NPX_PACKAGE} exited ${code}.
212
+ process.stderr.write(`${_chunkNSIOVSNZjs.SKILLS_NPX_PACKAGE} exited ${code}.
213
213
  `);
214
214
  }
215
215
  resolve(_nullishCoalesce(code, () => ( 1)));
@@ -223,7 +223,7 @@ async function runSkillsCommand(options, dependencies = {}) {
223
223
  scope = normalizeScope(options.scope);
224
224
  root = scope === "local" ? resolveLocalRoot() : null;
225
225
  } catch (error) {
226
- _chunkPGE4JW7Cjs.printCommandEnvelope.call(void 0,
226
+ _chunk47GRLLV2js.printCommandEnvelope.call(void 0,
227
227
  {
228
228
  ok: false,
229
229
  status: "failed",
@@ -235,22 +235,22 @@ async function runSkillsCommand(options, dependencies = {}) {
235
235
  );
236
236
  return 2;
237
237
  }
238
- const baseUrl = _chunkTEPZMKN7js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
238
+ const baseUrl = _chunk6TABNDCBjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
239
239
  const catalog = {
240
- skillNames: [..._chunkPVNPEQCMjs.DEFAULT_SDK_SKILL_NAMES],
241
- version: _chunkTEPZMKN7js.SDK_VERSION
240
+ skillNames: [..._chunkNSIOVSNZjs.DEFAULT_SDK_SKILL_NAMES],
241
+ version: _chunk6TABNDCBjs.SDK_VERSION
242
242
  };
243
243
  const agents = options.agent ? [options.agent] : detectSkillsAgents({ scope, root });
244
244
  const plan = buildSkillsPlan({ baseUrl, scope, root, agents, ...catalog });
245
245
  if (options.dryRun) {
246
- _chunkPGE4JW7Cjs.printCommandEnvelope.call(void 0,
246
+ _chunk47GRLLV2js.printCommandEnvelope.call(void 0,
247
247
  { ok: true, status: "planned", dryRun: true, ...plan },
248
248
  { json: options.json }
249
249
  );
250
250
  return 0;
251
251
  }
252
- if (isSkillsPlanCurrent(plan, readSkillsInstallState(plan.statePath)) && !_chunkPVNPEQCMjs.hasFailedAutomaticSkillsSync.call(void 0, baseUrl, agents)) {
253
- _chunkPGE4JW7Cjs.printCommandEnvelope.call(void 0,
252
+ if (isSkillsPlanCurrent(plan, readSkillsInstallState(plan.statePath)) && !_chunkNSIOVSNZjs.hasFailedAutomaticSkillsSync.call(void 0, baseUrl, agents)) {
253
+ _chunk47GRLLV2js.printCommandEnvelope.call(void 0,
254
254
  {
255
255
  ok: true,
256
256
  status: "current",
@@ -282,10 +282,10 @@ async function runSkillsCommand(options, dependencies = {}) {
282
282
  }
283
283
  if (scope === "local" && root) {
284
284
  const managedNames = [
285
- .../* @__PURE__ */ new Set([...plan.skillNames, ..._chunkPVNPEQCMjs.LEGACY_SKILL_NAMES_TO_REMOVE])
285
+ .../* @__PURE__ */ new Set([...plan.skillNames, ..._chunkNSIOVSNZjs.LEGACY_SKILL_NAMES_TO_REMOVE])
286
286
  ];
287
287
  const agentRoots = workspaceSkillRootsForAgents(plan.agents);
288
- _chunkTEPZMKN7js.ensureProjectPrivatePathsIgnored.call(void 0, root, [
288
+ _chunk6TABNDCBjs.ensureProjectPrivatePathsIgnored.call(void 0, root, [
289
289
  ".deepline/",
290
290
  ...agentRoots.flatMap(
291
291
  (agentRoot) => managedNames.map((name) => `${agentRoot}/skills/${name}/`)
@@ -294,7 +294,7 @@ async function runSkillsCommand(options, dependencies = {}) {
294
294
  }
295
295
  let lease;
296
296
  try {
297
- lease = scope === "global" ? await _chunkPVNPEQCMjs.acquireSkillsInstallLease.call(void 0, baseUrl, agents, plan.version, {
297
+ lease = scope === "global" ? await _chunkNSIOVSNZjs.acquireSkillsInstallLease.call(void 0, baseUrl, agents, plan.version, {
298
298
  waitMs: _nullishCoalesce(dependencies.installLeaseWaitMs, () => ( SKILLS_INSTALL_LEASE_WAIT_MS)),
299
299
  onWait: () => process.stderr.write(
300
300
  "Waiting for a background Deepline skills refresh to finish...\n"
@@ -302,8 +302,8 @@ async function runSkillsCommand(options, dependencies = {}) {
302
302
  }) : { release: () => {
303
303
  } };
304
304
  } catch (error) {
305
- if (!(error instanceof _chunkPVNPEQCMjs.SkillsStateUnavailableError)) throw error;
306
- _chunkPGE4JW7Cjs.printCommandEnvelope.call(void 0,
305
+ if (!(error instanceof _chunkNSIOVSNZjs.SkillsStateUnavailableError)) throw error;
306
+ _chunk47GRLLV2js.printCommandEnvelope.call(void 0,
307
307
  {
308
308
  ok: false,
309
309
  status: "failed",
@@ -319,7 +319,7 @@ async function runSkillsCommand(options, dependencies = {}) {
319
319
  return 5;
320
320
  }
321
321
  if (!lease) {
322
- _chunkPGE4JW7Cjs.printCommandEnvelope.call(void 0,
322
+ _chunk47GRLLV2js.printCommandEnvelope.call(void 0,
323
323
  {
324
324
  ok: false,
325
325
  status: "failed",
@@ -328,7 +328,7 @@ async function runSkillsCommand(options, dependencies = {}) {
328
328
  scope,
329
329
  agents,
330
330
  message: "A background Deepline skills refresh is still running for these agents.",
331
- next: `Retry in a moment: deepline skills --scope ${scope}. If no refresh is running, remove ${_chunkPVNPEQCMjs.skillsInstallLeasePath.call(void 0, baseUrl, agents)}`
331
+ next: `Retry in a moment: deepline skills --scope ${scope}. If no refresh is running, remove ${_chunkNSIOVSNZjs.skillsInstallLeasePath.call(void 0, baseUrl, agents)}`
332
332
  },
333
333
  { json: options.json }
334
334
  );
@@ -365,7 +365,7 @@ async function runSkillsInstallWithLease(input) {
365
365
  throw new Error("Could not install the current Deepline skills.");
366
366
  }
367
367
  } catch (error) {
368
- _chunkPGE4JW7Cjs.printCommandEnvelope.call(void 0,
368
+ _chunk47GRLLV2js.printCommandEnvelope.call(void 0,
369
369
  {
370
370
  ok: false,
371
371
  status: "failed",
@@ -404,7 +404,7 @@ async function runSkillsInstallWithLease(input) {
404
404
  {
405
405
  schemaVersion: 1,
406
406
  installedAt: (/* @__PURE__ */ new Date()).toISOString(),
407
- cliVersion: _chunkTEPZMKN7js.SDK_VERSION,
407
+ cliVersion: _chunk6TABNDCBjs.SDK_VERSION,
408
408
  scope,
409
409
  agents,
410
410
  skillsVersion: plan.version,
@@ -417,9 +417,9 @@ async function runSkillsInstallWithLease(input) {
417
417
  "utf8"
418
418
  );
419
419
  if (scope === "global") {
420
- _chunkPVNPEQCMjs.clearFailedAutomaticSkillsSync.call(void 0, baseUrl, agents);
420
+ _chunkNSIOVSNZjs.clearFailedAutomaticSkillsSync.call(void 0, baseUrl, agents);
421
421
  }
422
- _chunkPGE4JW7Cjs.printCommandEnvelope.call(void 0,
422
+ _chunk47GRLLV2js.printCommandEnvelope.call(void 0,
423
423
  {
424
424
  ok: true,
425
425
  status: "complete",
@@ -450,7 +450,7 @@ function registerSkillsCommand(program) {
450
450
  "after",
451
451
  `
452
452
  Notes:
453
- This command reinstalls current Deepline-managed skills using ${_chunkPVNPEQCMjs.SKILLS_NPX_PACKAGE},
453
+ This command reinstalls current Deepline-managed skills using ${_chunkNSIOVSNZjs.SKILLS_NPX_PACKAGE},
454
454
  then removes legacy Deepline skill names. Local scope writes into the resolved
455
455
  persistent project.
456
456
 
@@ -462,13 +462,13 @@ Examples:
462
462
  ).action(async (options) => {
463
463
  process.exitCode = await runSkillsCommand(options);
464
464
  });
465
- program.command(_chunkPVNPEQCMjs.SKILLS_AUTO_SYNC_COMMAND, { hidden: true }).description("Refresh Deepline agent skills in the background.").option(
465
+ program.command(_chunkNSIOVSNZjs.SKILLS_AUTO_SYNC_COMMAND, { hidden: true }).description("Refresh Deepline agent skills in the background.").option(
466
466
  "--claim <token>",
467
467
  "Owner token of the leases this child was started for."
468
468
  ).action(async (options) => {
469
469
  const claim = _optionalChain([options, 'access', _ => _.claim, 'optionalAccess', _2 => _2.trim, 'call', _3 => _3()]);
470
470
  if (!claim) {
471
- _chunkPGE4JW7Cjs.printCommandEnvelope.call(void 0,
471
+ _chunk47GRLLV2js.printCommandEnvelope.call(void 0,
472
472
  {
473
473
  ok: false,
474
474
  status: "failed",
@@ -481,7 +481,7 @@ Examples:
481
481
  process.exitCode = 2;
482
482
  return;
483
483
  }
484
- await _chunkPVNPEQCMjs.syncSdkSkillsIfNeeded.call(void 0, _chunkTEPZMKN7js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, ""), {
484
+ await _chunkNSIOVSNZjs.syncSdkSkillsIfNeeded.call(void 0, _chunk6TABNDCBjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, ""), {
485
485
  mode: "inline",
486
486
  notices: "defer",
487
487
  claim
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  traceCliSpan
3
- } from "./chunk-K5M6UG3D.mjs";
3
+ } from "./chunk-3JEMYGIR.mjs";
4
4
  import {
5
5
  checkSdkCompatibility,
6
6
  enforceSdkCompatibilityResponse,
7
7
  flushDeferredSkillsSyncNotices
8
- } from "./chunk-2GVRS7UB.mjs";
8
+ } from "./chunk-2UNTSLTR.mjs";
9
9
 
10
10
  // src/cli/play-run-admission.ts
11
11
  function usesInlinePlayAdmission(command, args) {
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  getAuthedHttpClient,
3
3
  printCommandEnvelope
4
- } from "./chunk-XM6A4V77.mjs";
4
+ } from "./chunk-4Z356NPN.mjs";
5
5
  import {
6
6
  agentSessionIdFromEnvironment
7
- } from "./chunk-2BKTT44A.mjs";
7
+ } from "./chunk-5R7YPB5X.mjs";
8
8
 
9
9
  // src/cli/commands/sessions.ts
10
10
  import {
@@ -4,12 +4,12 @@ import {
4
4
  printCommandEnvelope,
5
5
  printJson,
6
6
  readCsvRows
7
- } from "./chunk-XM6A4V77.mjs";
8
- import "./chunk-2BKTT44A.mjs";
7
+ } from "./chunk-4Z356NPN.mjs";
8
+ import "./chunk-5R7YPB5X.mjs";
9
9
  import "./chunk-4QF2K7TM.mjs";
10
10
  import "./chunk-DLIRSHV6.mjs";
11
11
  import "./chunk-HBL4PM5Q.mjs";
12
- import "./chunk-YTWQ4G4P.mjs";
12
+ import "./chunk-AJUNUE32.mjs";
13
13
  import "./chunk-WZYKRD7T.mjs";
14
14
  import "./chunk-KRD6H754.mjs";
15
15
 
@@ -4,12 +4,12 @@
4
4
 
5
5
 
6
6
 
7
- var _chunkPGE4JW7Cjs = require('./chunk-PGE4JW7C.js');
8
- require('./chunk-TEPZMKN7.js');
7
+ var _chunk47GRLLV2js = require('./chunk-47GRLLV2.js');
8
+ require('./chunk-6TABNDCB.js');
9
9
  require('./chunk-ALJJRZNJ.js');
10
10
  require('./chunk-XNYIZMNQ.js');
11
11
  require('./chunk-DIAWYWT5.js');
12
- require('./chunk-CB3Y7THP.js');
12
+ require('./chunk-IYBC6WON.js');
13
13
  require('./chunk-OG64RBAC.js');
14
14
  require('./chunk-COGTRVWW.js');
15
15
 
@@ -127,7 +127,7 @@ function renderTable(rows, totalRows, verbose, footer = `showing ${rows.length}
127
127
  column.length,
128
128
  ...rows.map((row) => {
129
129
  const value = _nullishCoalesce(row[column], () => ( ""));
130
- return (verbose ? value : _chunkPGE4JW7Cjs.clip.call(void 0, value, 42)).length;
130
+ return (verbose ? value : _chunk47GRLLV2js.clip.call(void 0, value, 42)).length;
131
131
  })
132
132
  )
133
133
  ])
@@ -137,7 +137,7 @@ function renderTable(rows, totalRows, verbose, footer = `showing ${rows.length}
137
137
  const body = rows.map(
138
138
  (row) => columns.map((column) => {
139
139
  const raw = _nullishCoalesce(row[column], () => ( ""));
140
- const display = verbose ? raw : _chunkPGE4JW7Cjs.clip.call(void 0, raw, 42);
140
+ const display = verbose ? raw : _chunk47GRLLV2js.clip.call(void 0, raw, 42);
141
141
  return display.padEnd(widths[column]);
142
142
  }).join(" | ")
143
143
  );
@@ -157,7 +157,7 @@ async function handleCsvShow(path, options, command) {
157
157
  { exitCode: 2 }
158
158
  );
159
159
  }
160
- const allRows = _chunkPGE4JW7Cjs.readCsvRows.call(void 0, csvPath);
160
+ const allRows = _chunk47GRLLV2js.readCsvRows.call(void 0, csvPath);
161
161
  const [rowStart, rowEnd] = parseRowRange(options.rows);
162
162
  const rows = options.summary && options.rows === void 0 ? allRows : selectRows(allRows, rowStart, rowEnd);
163
163
  const { rows: selected, columns } = selectColumns(
@@ -170,7 +170,7 @@ async function handleCsvShow(path, options, command) {
170
170
  if (options.summary) {
171
171
  const summaries = summarizeColumns(selected, columns);
172
172
  if (format === "json") {
173
- _chunkPGE4JW7Cjs.printJson.call(void 0, {
173
+ _chunk47GRLLV2js.printJson.call(void 0, {
174
174
  rows: summaries,
175
175
  total_rows: selected.length,
176
176
  source_total_rows: allRows.length
@@ -179,7 +179,7 @@ async function handleCsvShow(path, options, command) {
179
179
  }
180
180
  const displayRows = summaryDisplayRows(summaries);
181
181
  if (format === "csv") {
182
- process.stdout.write(_chunkPGE4JW7Cjs.csvStringFromRows.call(void 0, displayRows));
182
+ process.stdout.write(_chunk47GRLLV2js.csvStringFromRows.call(void 0, displayRows));
183
183
  return;
184
184
  }
185
185
  process.stdout.write(
@@ -194,7 +194,7 @@ async function handleCsvShow(path, options, command) {
194
194
  return;
195
195
  }
196
196
  if (format === "json") {
197
- _chunkPGE4JW7Cjs.printJson.call(void 0, {
197
+ _chunk47GRLLV2js.printJson.call(void 0, {
198
198
  rows: selected.map((row, index) => ({ __row: rowStart + index, ...row }))
199
199
  });
200
200
  return;
@@ -437,7 +437,7 @@ async function handleCsvRenderStart(options) {
437
437
  if (log) {
438
438
  detail = `
439
439
  CSV render log:
440
- ${_chunkPGE4JW7Cjs.clip.call(void 0, log, 2e3)}`;
440
+ ${_chunk47GRLLV2js.clip.call(void 0, log, 2e3)}`;
441
441
  }
442
442
  } catch (e7) {
443
443
  }
@@ -488,7 +488,7 @@ async function handleCsvRenderStatus(options) {
488
488
  if (payload.pid) lines.push(`Render PID: ${payload.pid}`);
489
489
  if (payload.url) lines.push(`Render URL: ${payload.url}`);
490
490
  lines.push(`Render Health: ${payload.health_status}`);
491
- _chunkPGE4JW7Cjs.printCommandEnvelope.call(void 0, payload, {
491
+ _chunk47GRLLV2js.printCommandEnvelope.call(void 0, payload, {
492
492
  json: options.json,
493
493
  text: `${lines.join("\n")}
494
494
  `
@@ -524,7 +524,7 @@ async function handleCsvRenderStop(options) {
524
524
  };
525
525
  const text = stopped.length > 0 ? `Stopped CSV render process(es): ${stopped.join(" ")}
526
526
  ` : "No running CSV render process found.\n";
527
- _chunkPGE4JW7Cjs.printCommandEnvelope.call(void 0, payload, { json: options.json, text });
527
+ _chunk47GRLLV2js.printCommandEnvelope.call(void 0, payload, { json: options.json, text });
528
528
  }
529
529
  async function handleCsvRender(action, options) {
530
530
  const normalized = _nullishCoalesce(action, () => ( "start"));
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  DeeplineClient,
6
6
  planCustomerDbQuery
7
- } from "./chunk-XXHLFL3J.mjs";
7
+ } from "./chunk-B2V2F3KV.mjs";
8
8
  import "./chunk-L2VKAASU.mjs";
9
9
  import "./chunk-FAG4DFUC.mjs";
10
10
  import "./chunk-EIMG75BT.mjs";
@@ -18,8 +18,8 @@ import {
18
18
  printCommandEnvelope,
19
19
  recordRows,
20
20
  shouldEmitJson
21
- } from "./chunk-XM6A4V77.mjs";
22
- import "./chunk-2BKTT44A.mjs";
21
+ } from "./chunk-4Z356NPN.mjs";
22
+ import "./chunk-5R7YPB5X.mjs";
23
23
  import {
24
24
  CustomerDbQueryOutcomeUnknownError
25
25
  } from "./chunk-4QF2K7TM.mjs";
@@ -27,7 +27,7 @@ import "./chunk-DLIRSHV6.mjs";
27
27
  import {
28
28
  DeeplineError
29
29
  } from "./chunk-HBL4PM5Q.mjs";
30
- import "./chunk-YTWQ4G4P.mjs";
30
+ import "./chunk-AJUNUE32.mjs";
31
31
  import "./chunk-WZYKRD7T.mjs";
32
32
  import "./chunk-KRD6H754.mjs";
33
33
 
@@ -4,7 +4,7 @@ var _chunkAID3OYVJjs = require('./chunk-AID3OYVJ.js');
4
4
 
5
5
 
6
6
 
7
- var _chunkDP6CINW2js = require('./chunk-DP6CINW2.js');
7
+ var _chunkJWZIZH2Cjs = require('./chunk-JWZIZH2C.js');
8
8
  require('./chunk-E4CABWXL.js');
9
9
  require('./chunk-JKVRBCZL.js');
10
10
  require('./chunk-KXMNM4AQ.js');
@@ -18,8 +18,8 @@ require('./chunk-XDVT3GOM.js');
18
18
 
19
19
 
20
20
 
21
- var _chunkPGE4JW7Cjs = require('./chunk-PGE4JW7C.js');
22
- require('./chunk-TEPZMKN7.js');
21
+ var _chunk47GRLLV2js = require('./chunk-47GRLLV2.js');
22
+ require('./chunk-6TABNDCB.js');
23
23
 
24
24
 
25
25
  var _chunkALJJRZNJjs = require('./chunk-ALJJRZNJ.js');
@@ -27,7 +27,7 @@ require('./chunk-XNYIZMNQ.js');
27
27
 
28
28
 
29
29
  var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
30
- require('./chunk-CB3Y7THP.js');
30
+ require('./chunk-IYBC6WON.js');
31
31
  require('./chunk-OG64RBAC.js');
32
32
  require('./chunk-COGTRVWW.js');
33
33
 
@@ -50,8 +50,8 @@ function formatCell(value) {
50
50
  return text.length > 80 ? `${text.slice(0, 77)}...` : text;
51
51
  }
52
52
  function tableLines(result) {
53
- const rows = _chunkPGE4JW7Cjs.dataExportRows.call(void 0, customerDbRows(result));
54
- const responseColumns = _chunkPGE4JW7Cjs.dataExportColumns.call(void 0,
53
+ const rows = _chunk47GRLLV2js.dataExportRows.call(void 0, customerDbRows(result));
54
+ const responseColumns = _chunk47GRLLV2js.dataExportColumns.call(void 0,
55
55
  rows,
56
56
  customerDbColumnNames(result)
57
57
  );
@@ -97,7 +97,7 @@ function tableLines(result) {
97
97
  return lines;
98
98
  }
99
99
  function customerDbRows(result) {
100
- return _chunkPGE4JW7Cjs.recordRows.call(void 0, result.rows);
100
+ return _chunk47GRLLV2js.recordRows.call(void 0, result.rows);
101
101
  }
102
102
  function customerDbColumnNames(result) {
103
103
  return result.columns.map((column) => column.name).filter(Boolean);
@@ -150,7 +150,7 @@ function writeCustomerDbCsv(result, outPath) {
150
150
  const resolved = _path.resolve.call(void 0, outPath);
151
151
  _fs.writeFileSync.call(void 0,
152
152
  resolved,
153
- _chunkPGE4JW7Cjs.dataExportCsvString.call(void 0, customerDbRows(result), customerDbColumnNames(result)),
153
+ _chunk47GRLLV2js.dataExportCsvString.call(void 0, customerDbRows(result), customerDbColumnNames(result)),
154
154
  "utf-8"
155
155
  );
156
156
  return resolved;
@@ -191,7 +191,7 @@ function dbQueryExportEnvelope(input) {
191
191
  function renderDbQueryResult(result, query, options) {
192
192
  const { sql, maxRows, operationKey } = query;
193
193
  const { format, out: outPath, json: explicitJsonOutput = false } = options;
194
- const jsonOutput = explicitJsonOutput || _chunkPGE4JW7Cjs.shouldEmitJson.call(void 0, );
194
+ const jsonOutput = explicitJsonOutput || _chunk47GRLLV2js.shouldEmitJson.call(void 0, );
195
195
  const toolPayload = JSON.stringify({
196
196
  sql,
197
197
  result_mode: "rows",
@@ -202,7 +202,7 @@ function renderDbQueryResult(result, query, options) {
202
202
  if (format === "csv") {
203
203
  if (outPath) {
204
204
  const exportedPath = writeCustomerDbCsv(result, outPath);
205
- _chunkPGE4JW7Cjs.printCommandEnvelope.call(void 0,
205
+ _chunk47GRLLV2js.printCommandEnvelope.call(void 0,
206
206
  dbQueryExportEnvelope({
207
207
  result,
208
208
  format,
@@ -218,7 +218,7 @@ function renderDbQueryResult(result, query, options) {
218
218
  );
219
219
  return;
220
220
  }
221
- _chunkPGE4JW7Cjs.printCommandEnvelope.call(void 0,
221
+ _chunk47GRLLV2js.printCommandEnvelope.call(void 0,
222
222
  dbQueryExportEnvelope({
223
223
  result,
224
224
  format,
@@ -228,7 +228,7 @@ function renderDbQueryResult(result, query, options) {
228
228
  }),
229
229
  {
230
230
  json: explicitJsonOutput,
231
- text: _chunkPGE4JW7Cjs.dataExportCsvString.call(void 0,
231
+ text: _chunk47GRLLV2js.dataExportCsvString.call(void 0,
232
232
  customerDbRows(result),
233
233
  customerDbColumnNames(result)
234
234
  )
@@ -237,14 +237,14 @@ function renderDbQueryResult(result, query, options) {
237
237
  return;
238
238
  }
239
239
  if (format === "markdown") {
240
- const content = _chunkPGE4JW7Cjs.markdownTableFromRows.call(void 0,
240
+ const content = _chunk47GRLLV2js.markdownTableFromRows.call(void 0,
241
241
  customerDbRows(result),
242
242
  customerDbColumnNames(result)
243
243
  );
244
244
  if (outPath) {
245
245
  const exportedPath = _path.resolve.call(void 0, outPath);
246
246
  _fs.writeFileSync.call(void 0, exportedPath, content, "utf-8");
247
- _chunkPGE4JW7Cjs.printCommandEnvelope.call(void 0,
247
+ _chunk47GRLLV2js.printCommandEnvelope.call(void 0,
248
248
  dbQueryExportEnvelope({
249
249
  result,
250
250
  format,
@@ -260,7 +260,7 @@ function renderDbQueryResult(result, query, options) {
260
260
  );
261
261
  return;
262
262
  }
263
- _chunkPGE4JW7Cjs.printCommandEnvelope.call(void 0,
263
+ _chunk47GRLLV2js.printCommandEnvelope.call(void 0,
264
264
  dbQueryExportEnvelope({
265
265
  result,
266
266
  format,
@@ -275,7 +275,7 @@ function renderDbQueryResult(result, query, options) {
275
275
  );
276
276
  return;
277
277
  }
278
- _chunkPGE4JW7Cjs.printCommandEnvelope.call(void 0,
278
+ _chunk47GRLLV2js.printCommandEnvelope.call(void 0,
279
279
  {
280
280
  ...result,
281
281
  next: {
@@ -349,9 +349,9 @@ async function runDbQueryCommand(options) {
349
349
  ...maxRows === void 0 ? {} : { maxRows },
350
350
  ...operationKey === void 0 ? {} : { operationKey }
351
351
  };
352
- const plan = _chunkDP6CINW2js.planCustomerDbQuery.call(void 0, query);
352
+ const plan = _chunkJWZIZH2Cjs.planCustomerDbQuery.call(void 0, query);
353
353
  if (options.dryRun) {
354
- _chunkPGE4JW7Cjs.printCommandEnvelope.call(void 0,
354
+ _chunk47GRLLV2js.printCommandEnvelope.call(void 0,
355
355
  {
356
356
  dryRun: true,
357
357
  ...plan,
@@ -364,11 +364,11 @@ async function runDbQueryCommand(options) {
364
364
  ...out === void 0 ? {} : { file: _path.resolve.call(void 0, out) }
365
365
  }
366
366
  },
367
- { json: options.json || _chunkPGE4JW7Cjs.shouldEmitJson.call(void 0, ) }
367
+ { json: options.json || _chunk47GRLLV2js.shouldEmitJson.call(void 0, ) }
368
368
  );
369
369
  return 0;
370
370
  }
371
- const client = new (0, _chunkDP6CINW2js.DeeplineClient)();
371
+ const client = new (0, _chunkJWZIZH2Cjs.DeeplineClient)();
372
372
  const result = await client.db.query(query);
373
373
  renderDbQueryResult(result, query, {
374
374
  format,
@@ -377,8 +377,8 @@ async function runDbQueryCommand(options) {
377
377
  });
378
378
  return 0;
379
379
  } catch (error) {
380
- if (error instanceof _chunkALJJRZNJjs.CustomerDbQueryOutcomeUnknownError && (options.json || _chunkPGE4JW7Cjs.shouldEmitJson.call(void 0, ))) {
381
- _chunkPGE4JW7Cjs.printCommandEnvelope.call(void 0,
380
+ if (error instanceof _chunkALJJRZNJjs.CustomerDbQueryOutcomeUnknownError && (options.json || _chunk47GRLLV2js.shouldEmitJson.call(void 0, ))) {
381
+ _chunk47GRLLV2js.printCommandEnvelope.call(void 0,
382
382
  {
383
383
  ok: false,
384
384
  error: {
@@ -426,8 +426,8 @@ function dbRepairPlainText(result) {
426
426
  async function handleDbRepair(args) {
427
427
  const providerIndex = args.indexOf("--provider");
428
428
  const provider = providerIndex >= 0 ? _optionalChain([args, 'access', _9 => _9[providerIndex + 1], 'optionalAccess', _10 => _10.trim, 'call', _11 => _11()]) : void 0;
429
- const jsonOutput = _chunkPGE4JW7Cjs.argsWantJson.call(void 0, args);
430
- const client = new (0, _chunkDP6CINW2js.DeeplineClient)();
429
+ const jsonOutput = _chunk47GRLLV2js.argsWantJson.call(void 0, args);
430
+ const client = new (0, _chunkJWZIZH2Cjs.DeeplineClient)();
431
431
  let result;
432
432
  try {
433
433
  result = await client.repairIngestionStorage(
@@ -443,7 +443,7 @@ async function handleDbRepair(args) {
443
443
  console.error(errorMessage2(error));
444
444
  return 1;
445
445
  }
446
- _chunkPGE4JW7Cjs.printCommandEnvelope.call(void 0,
446
+ _chunk47GRLLV2js.printCommandEnvelope.call(void 0,
447
447
  {
448
448
  command: "db repair",
449
449
  status: result.status,