deepline 0.3.455 → 0.3.457

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 (113) hide show
  1. package/dist/bundling-sources/sdk/src/client.ts +23 -0
  2. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  3. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona.ts +1 -1
  4. package/dist/cli/{auth-BGPCPVHW.mjs → auth-MZG5NF5U.mjs} +4 -4
  5. package/dist/cli/auth-O3XJDECG.js +40 -0
  6. package/dist/cli/{billing-6BLEXHCR.mjs → billing-DWKZIL66.mjs} +4 -4
  7. package/dist/cli/{billing-FCC2YOKB.js → billing-RG3LF5OU.js} +73 -73
  8. package/dist/cli/{chunk-VMGTYM3A.js → chunk-5TIASNUT.js} +20 -20
  9. package/dist/cli/{chunk-R2GLGLDR.mjs → chunk-77Z5BO7D.mjs} +21 -0
  10. package/dist/cli/{chunk-RYGDM5BG.mjs → chunk-7IIRZXCO.mjs} +1 -1
  11. package/dist/cli/{chunk-LQH2KJ53.js → chunk-7JW4WIWU.js} +81 -81
  12. package/dist/cli/{chunk-NMJ4D2WO.js → chunk-AQFHU3DW.js} +21 -0
  13. package/dist/cli/{chunk-YIFCV77L.mjs → chunk-BD5A242C.mjs} +2 -2
  14. package/dist/cli/{chunk-DPTEABFU.mjs → chunk-CHBYYJ7Q.mjs} +1 -1
  15. package/dist/cli/{chunk-LRA5YJVV.mjs → chunk-CQHTN3RY.mjs} +1 -1
  16. package/dist/cli/{chunk-SMZUU4NY.js → chunk-CTWD4ZHP.js} +2 -2
  17. package/dist/cli/{chunk-3E4WSS35.mjs → chunk-E5BGIERY.mjs} +1 -1
  18. package/dist/cli/{chunk-6TOMXZX3.js → chunk-EHEBXARN.js} +1 -1
  19. package/dist/cli/{chunk-IUSGWMGK.mjs → chunk-EXOCQILY.mjs} +2 -2
  20. package/dist/cli/{chunk-3RQY2OG7.mjs → chunk-F64XBZ3A.mjs} +2 -2
  21. package/dist/cli/{chunk-EXZOUJCD.js → chunk-GLXYOSEL.js} +3 -3
  22. package/dist/cli/{chunk-MFKTYIBJ.js → chunk-J2ZS4PEC.js} +51 -51
  23. package/dist/cli/{chunk-4Z3X5CWI.mjs → chunk-JANCYPKP.mjs} +1 -1
  24. package/dist/cli/{chunk-RQMEYYN4.js → chunk-JCWEQQGE.js} +35 -35
  25. package/dist/cli/{chunk-2SN2EEQW.js → chunk-JL5DCH37.js} +16 -16
  26. package/dist/cli/{chunk-J7WYWQF4.js → chunk-KKPKLLNB.js} +6 -6
  27. package/dist/cli/{chunk-CZREA5NE.js → chunk-KTAVYWYI.js} +8 -8
  28. package/dist/cli/{chunk-BCB2QNG4.js → chunk-KVXBMYRY.js} +2 -2
  29. package/dist/cli/{chunk-WBULEVM4.mjs → chunk-L7WE7Q63.mjs} +1 -1
  30. package/dist/cli/{chunk-FCQ52RUB.mjs → chunk-LHHJATXY.mjs} +2 -2
  31. package/dist/cli/{chunk-YKEWDVZC.js → chunk-LKAITV2M.js} +26 -26
  32. package/dist/cli/{chunk-PQ4JU2MV.mjs → chunk-LVGCJZ5S.mjs} +12 -1
  33. package/dist/cli/{chunk-B7K3QD5W.mjs → chunk-MU4ZDVQK.mjs} +8 -8
  34. package/dist/cli/{chunk-6F7TD4M4.js → chunk-MWRPRDHW.js} +6 -6
  35. package/dist/cli/{chunk-VIGEE67Z.mjs → chunk-NMVLO3JM.mjs} +3 -3
  36. package/dist/cli/{chunk-4BZFRLKU.mjs → chunk-QGLFBQ43.mjs} +5 -5
  37. package/dist/cli/{chunk-W3DIXRDT.js → chunk-SFCNYJ4B.js} +21 -10
  38. package/dist/cli/{chunk-2R7JD2NY.js → chunk-TTBQOHG4.js} +4 -4
  39. package/dist/cli/{chunk-UVJLG5KD.js → chunk-US3SZ7VQ.js} +50 -50
  40. package/dist/cli/{chunk-MCMLQ7GD.js → chunk-VLL6RRIA.js} +8 -8
  41. package/dist/cli/{chunk-2VHR5DXQ.mjs → chunk-W3IZ55XS.mjs} +3 -3
  42. package/dist/cli/{chunk-WVGPAP7A.mjs → chunk-X4XNGIPL.mjs} +3 -3
  43. package/dist/cli/{chunk-R5VMRVRN.mjs → chunk-YVQVS7SF.mjs} +4 -4
  44. package/dist/cli/command-docs.js +2 -2
  45. package/dist/cli/command-docs.mjs +1 -1
  46. package/dist/cli/{csv-27T3L4RC.mjs → csv-27M4PREP.mjs} +3 -3
  47. package/dist/cli/{csv-TEAA2YV5.js → csv-QSAAPCYE.js} +12 -12
  48. package/dist/cli/{db-N3NRYYI4.mjs → db-H73PJID6.mjs} +4 -4
  49. package/dist/cli/{db-J3PPU7GX.js → db-LYPTNAPX.js} +25 -25
  50. package/dist/cli/{describe-PX7XBLZF.js → describe-KYLGQSMO.js} +17 -17
  51. package/dist/cli/{describe-SJBCCTR7.mjs → describe-Y5BHLZLH.mjs} +13 -13
  52. package/dist/cli/describe-core.d.mts +1 -1
  53. package/dist/cli/describe-core.d.ts +1 -1
  54. package/dist/cli/{executions-WXIL4C5M.js → executions-DHGYCPFO.js} +6 -6
  55. package/dist/cli/{executions-XN376RR4.mjs → executions-ZGQEWS2X.mjs} +4 -4
  56. package/dist/cli/{feedback-LG5NWE3R.js → feedback-3YQPYCMT.js} +7 -7
  57. package/dist/cli/{feedback-KHJXJ2K7.mjs → feedback-EBXU4ANA.mjs} +3 -3
  58. package/dist/cli/git-4ACVGA4W.js +24 -0
  59. package/dist/cli/{git-726A5HHA.mjs → git-CFPU33DJ.mjs} +4 -4
  60. package/dist/cli/index.js +136 -136
  61. package/dist/cli/index.mjs +38 -38
  62. package/dist/cli/{legacy-noops-QI6VN34P.js → legacy-noops-CDKZ7RYT.js} +7 -7
  63. package/dist/cli/{legacy-noops-V4WS63SD.mjs → legacy-noops-TFGIWA5C.mjs} +4 -4
  64. package/dist/cli/{monitors-AAWRYPHY.mjs → monitors-6ED5RJYG.mjs} +5 -5
  65. package/dist/cli/{monitors-ICQ2Q4XT.js → monitors-PCMAB7NP.js} +89 -89
  66. package/dist/cli/{org-5JV6KYY2.js → org-KAARC2XN.js} +66 -66
  67. package/dist/cli/{org-7VJKBTZX.mjs → org-V4QYXLOL.mjs} +4 -4
  68. package/dist/cli/{play-2D6ZIJEV.mjs → play-OTTJ6S2G.mjs} +11 -11
  69. package/dist/cli/{play-HDI2MLJL.js → play-PPWCRYME.js} +284 -284
  70. package/dist/cli/{providers-GIE2W4ZG.js → providers-ICY74FM5.js} +50 -8
  71. package/dist/cli/{providers-KSKVBQFP.mjs → providers-ULL5EJHY.mjs} +46 -4
  72. package/dist/cli/{quickstart-7OGLDF3M.mjs → quickstart-QLVS53TD.mjs} +3 -3
  73. package/dist/cli/{quickstart-JKNKNDXG.js → quickstart-YOUCGJQP.js} +5 -5
  74. package/dist/cli/{search-CPKXOGV4.mjs → search-AGYQR6YQ.mjs} +5 -5
  75. package/dist/cli/search-XNU6FOOH.js +30 -0
  76. package/dist/cli/{secrets-LFQXTVIE.js → secrets-OA3HHNHP.js} +13 -13
  77. package/dist/cli/{secrets-QHGLI7O6.mjs → secrets-PJFO3RZW.mjs} +4 -4
  78. package/dist/cli/{sessions-HVMTS7N5.js → sessions-OYTROOOG.js} +5 -5
  79. package/dist/cli/{sessions-M4OT6NPP.mjs → sessions-WNRZQEBL.mjs} +4 -4
  80. package/dist/cli/{settings-BJBOMHL2.mjs → settings-JIYDWBPM.mjs} +10 -10
  81. package/dist/cli/{settings-42WLEHAZ.js → settings-RXGOZAZI.js} +77 -77
  82. package/dist/cli/{setup-6TZ4L5LT.js → setup-VXNSUQYT.js} +43 -43
  83. package/dist/cli/{setup-ILUF7GCP.mjs → setup-YAYE7KQM.mjs} +8 -8
  84. package/dist/cli/skills-5UCGZVCN.js +30 -0
  85. package/dist/cli/{skills-7RIWQDD6.mjs → skills-XYDBLLRK.mjs} +6 -6
  86. package/dist/cli/{tools-J3VDLDF2.mjs → tools-TRDYMDPL.mjs} +13 -13
  87. package/dist/cli/tools-UMSFNX5B.js +45 -0
  88. package/dist/cli/update-K5AOROYI.js +32 -0
  89. package/dist/cli/{update-GMXJF4WT.mjs → update-KH36JGLK.mjs} +8 -8
  90. package/dist/cli/{workflow-LVVK2N3T.js → workflow-CQZBGIQ2.js} +15 -15
  91. package/dist/cli/{workflow-W7NQS26K.mjs → workflow-EYWCMD4D.mjs} +5 -5
  92. package/dist/{client-BbU5_j7n.d.mts → client-BX2EVlPo.d.mts} +14 -0
  93. package/dist/{client-CYqG23K1.d.ts → client-CRz2laoR.d.ts} +14 -0
  94. package/dist/index.d.mts +2 -2
  95. package/dist/index.d.ts +2 -2
  96. package/dist/index.js +6 -6
  97. package/dist/index.mjs +3 -3
  98. package/dist/install-integrity.json +84 -84
  99. package/dist/plays/play-description.d.mts +1 -1
  100. package/dist/plays/play-description.d.ts +1 -1
  101. package/dist/plays/run-request.d.mts +1 -1
  102. package/dist/plays/run-request.d.ts +1 -1
  103. package/dist/release.d.mts +1 -1
  104. package/dist/release.d.ts +1 -1
  105. package/dist/release.js +2 -2
  106. package/dist/release.mjs +1 -1
  107. package/package.json +1 -1
  108. package/dist/cli/auth-SRR4DW75.js +0 -40
  109. package/dist/cli/git-PXYOFDQH.js +0 -24
  110. package/dist/cli/search-LOWDQS5X.js +0 -30
  111. package/dist/cli/skills-I5OWZZ2Z.js +0 -30
  112. package/dist/cli/tools-Y4SPWXFJ.js +0 -45
  113. package/dist/cli/update-HQ5WT3G6.js +0 -32
@@ -11,10 +11,10 @@
11
11
 
12
12
 
13
13
 
14
- var _chunkMFKTYIBJjs = require('./chunk-MFKTYIBJ.js');
14
+ var _chunkJ2ZS4PECjs = require('./chunk-J2ZS4PEC.js');
15
15
 
16
16
 
17
- var _chunkJ7WYWQF4js = require('./chunk-J7WYWQF4.js');
17
+ var _chunkKKPKLLNBjs = require('./chunk-KKPKLLNB.js');
18
18
 
19
19
 
20
20
 
@@ -22,7 +22,7 @@ var _chunkJ7WYWQF4js = require('./chunk-J7WYWQF4.js');
22
22
 
23
23
 
24
24
 
25
- var _chunk2R7JD2NYjs = require('./chunk-2R7JD2NY.js');
25
+ var _chunkTTBQOHG4js = require('./chunk-TTBQOHG4.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 = _chunk2R7JD2NYjs.resolveProjectPinTarget.call(void 0, );
78
+ const target = _chunkTTBQOHG4js.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, () => ( _chunk2R7JD2NYjs.detectAgentRuntime.call(void 0, )));
89
+ const runtime = _nullishCoalesce(input.runtime, () => ( _chunkTTBQOHG4js.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, _chunk2R7JD2NYjs.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, _chunkTTBQOHG4js.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 = [..._chunkMFKTYIBJjs.LEGACY_SKILL_NAMES_TO_REMOVE].sort(
108
+ const legacyNames = [..._chunkJ2ZS4PECjs.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=${_chunkMFKTYIBJjs.SKILLS_NPX_PACKAGE}`,
122
+ `--package=${_chunkJ2ZS4PECjs.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=${_chunkMFKTYIBJjs.SKILLS_NPX_PACKAGE}`,
138
+ `--package=${_chunkJ2ZS4PECjs.SKILLS_NPX_PACKAGE}`,
139
139
  "--",
140
140
  "skills",
141
141
  "add",
142
- _chunkMFKTYIBJjs.skillsSourceUrl.call(void 0, input.baseUrl),
142
+ _chunkJ2ZS4PECjs.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 = _chunkMFKTYIBJjs.resolveShellSpawn.call(void 0,
179
+ const plan = _chunkJ2ZS4PECjs.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
- `${_chunkMFKTYIBJjs.SKILLS_NPX_PACKAGE} timed out after ${SKILLS_PROCESS_TIMEOUT_MS}ms.`
201
+ `${_chunkJ2ZS4PECjs.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(`${_chunkMFKTYIBJjs.SKILLS_NPX_PACKAGE} exited ${code}.
212
+ process.stderr.write(`${_chunkJ2ZS4PECjs.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
- _chunkJ7WYWQF4js.printCommandEnvelope.call(void 0,
226
+ _chunkKKPKLLNBjs.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 = _chunk2R7JD2NYjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
238
+ const baseUrl = _chunkTTBQOHG4js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
239
239
  const catalog = {
240
- skillNames: [..._chunkMFKTYIBJjs.DEFAULT_SDK_SKILL_NAMES],
241
- version: _chunk2R7JD2NYjs.SDK_VERSION
240
+ skillNames: [..._chunkJ2ZS4PECjs.DEFAULT_SDK_SKILL_NAMES],
241
+ version: _chunkTTBQOHG4js.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
- _chunkJ7WYWQF4js.printCommandEnvelope.call(void 0,
246
+ _chunkKKPKLLNBjs.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)) && !_chunkMFKTYIBJjs.hasFailedAutomaticSkillsSync.call(void 0, baseUrl, agents)) {
253
- _chunkJ7WYWQF4js.printCommandEnvelope.call(void 0,
252
+ if (isSkillsPlanCurrent(plan, readSkillsInstallState(plan.statePath)) && !_chunkJ2ZS4PECjs.hasFailedAutomaticSkillsSync.call(void 0, baseUrl, agents)) {
253
+ _chunkKKPKLLNBjs.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, ..._chunkMFKTYIBJjs.LEGACY_SKILL_NAMES_TO_REMOVE])
285
+ .../* @__PURE__ */ new Set([...plan.skillNames, ..._chunkJ2ZS4PECjs.LEGACY_SKILL_NAMES_TO_REMOVE])
286
286
  ];
287
287
  const agentRoots = workspaceSkillRootsForAgents(plan.agents);
288
- _chunk2R7JD2NYjs.ensureProjectPrivatePathsIgnored.call(void 0, root, [
288
+ _chunkTTBQOHG4js.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 _chunkMFKTYIBJjs.acquireSkillsInstallLease.call(void 0, baseUrl, agents, plan.version, {
297
+ lease = scope === "global" ? await _chunkJ2ZS4PECjs.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 _chunkMFKTYIBJjs.SkillsStateUnavailableError)) throw error;
306
- _chunkJ7WYWQF4js.printCommandEnvelope.call(void 0,
305
+ if (!(error instanceof _chunkJ2ZS4PECjs.SkillsStateUnavailableError)) throw error;
306
+ _chunkKKPKLLNBjs.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
- _chunkJ7WYWQF4js.printCommandEnvelope.call(void 0,
322
+ _chunkKKPKLLNBjs.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 ${_chunkMFKTYIBJjs.skillsInstallLeasePath.call(void 0, baseUrl, agents)}`
331
+ next: `Retry in a moment: deepline skills --scope ${scope}. If no refresh is running, remove ${_chunkJ2ZS4PECjs.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
- _chunkJ7WYWQF4js.printCommandEnvelope.call(void 0,
368
+ _chunkKKPKLLNBjs.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: _chunk2R7JD2NYjs.SDK_VERSION,
407
+ cliVersion: _chunkTTBQOHG4js.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
- _chunkMFKTYIBJjs.clearFailedAutomaticSkillsSync.call(void 0, baseUrl, agents);
420
+ _chunkJ2ZS4PECjs.clearFailedAutomaticSkillsSync.call(void 0, baseUrl, agents);
421
421
  }
422
- _chunkJ7WYWQF4js.printCommandEnvelope.call(void 0,
422
+ _chunkKKPKLLNBjs.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 ${_chunkMFKTYIBJjs.SKILLS_NPX_PACKAGE},
453
+ This command reinstalls current Deepline-managed skills using ${_chunkJ2ZS4PECjs.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(_chunkMFKTYIBJjs.SKILLS_AUTO_SYNC_COMMAND, { hidden: true }).description("Refresh Deepline agent skills in the background.").option(
465
+ program.command(_chunkJ2ZS4PECjs.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
- _chunkJ7WYWQF4js.printCommandEnvelope.call(void 0,
471
+ _chunkKKPKLLNBjs.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 _chunkMFKTYIBJjs.syncSdkSkillsIfNeeded.call(void 0, _chunk2R7JD2NYjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, ""), {
484
+ await _chunkJ2ZS4PECjs.syncSdkSkillsIfNeeded.call(void 0, _chunkTTBQOHG4js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, ""), {
485
485
  mode: "inline",
486
486
  notices: "defer",
487
487
  claim
@@ -1,19 +1,19 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
3
 
4
- var _chunkBCB2QNG4js = require('./chunk-BCB2QNG4.js');
4
+ var _chunkKVXBMYRYjs = require('./chunk-KVXBMYRY.js');
5
5
 
6
6
 
7
- var _chunkRQMEYYN4js = require('./chunk-RQMEYYN4.js');
7
+ var _chunkJCWEQQGEjs = require('./chunk-JCWEQQGE.js');
8
8
 
9
9
 
10
- var _chunkMFKTYIBJjs = require('./chunk-MFKTYIBJ.js');
10
+ var _chunkJ2ZS4PECjs = require('./chunk-J2ZS4PEC.js');
11
11
 
12
12
 
13
- var _chunkJ7WYWQF4js = require('./chunk-J7WYWQF4.js');
13
+ var _chunkKKPKLLNBjs = require('./chunk-KKPKLLNB.js');
14
14
 
15
15
 
16
- var _chunk2R7JD2NYjs = require('./chunk-2R7JD2NY.js');
16
+ var _chunkTTBQOHG4js = require('./chunk-TTBQOHG4.js');
17
17
 
18
18
  // src/cli/commands/update.ts
19
19
  var _child_process = require('child_process');
@@ -495,7 +495,7 @@ function normalizedNpmPrefix(value) {
495
495
  }
496
496
  function resolveNpmGlobalPrefix(env) {
497
497
  try {
498
- const plan = _chunkMFKTYIBJjs.resolveShellSpawn.call(void 0,
498
+ const plan = _chunkJ2ZS4PECjs.resolveShellSpawn.call(void 0,
499
499
  "npm",
500
500
  ["prefix", "-g"],
501
501
  process.platform,
@@ -556,8 +556,8 @@ function resolveUpdatePlan(options = {}) {
556
556
  const npmGlobalPrefix = options.npmGlobalPrefix !== void 0 ? options.npmGlobalPrefix : resolveNpmGlobalPrefix(env);
557
557
  const hasVerifiedNpmOwnership = inferredInstallPrefix !== null && normalizedNpmPrefix(inferredInstallPrefix) === normalizedNpmPrefix(npmGlobalPrefix);
558
558
  const installPrefix = options.requireVerifiedNpmOwnership ? hasVerifiedNpmOwnership ? inferredInstallPrefix : null : inferredInstallPrefix;
559
- const npmVersion = options.npmVersion === void 0 ? _chunkBCB2QNG4js.readNpmVersion.call(void 0, env) : options.npmVersion;
560
- const npmGlobalInstallFlags = _chunkBCB2QNG4js.npmSupportsAllowScripts.call(void 0, npmVersion) ? [...NPM_SDK_INSTALL_COMMON_FLAGS, "--allow-scripts=esbuild"] : NPM_SDK_INSTALL_COMMON_FLAGS;
559
+ const npmVersion = options.npmVersion === void 0 ? _chunkKVXBMYRYjs.readNpmVersion.call(void 0, env) : options.npmVersion;
560
+ const npmGlobalInstallFlags = _chunkKVXBMYRYjs.npmSupportsAllowScripts.call(void 0, npmVersion) ? [...NPM_SDK_INSTALL_COMMON_FLAGS, "--allow-scripts=esbuild"] : NPM_SDK_INSTALL_COMMON_FLAGS;
561
561
  const args = installPrefix ? [
562
562
  "install",
563
563
  "-g",
@@ -567,7 +567,7 @@ function resolveUpdatePlan(options = {}) {
567
567
  packageSpec
568
568
  ] : ["install", "-g", ...npmGlobalInstallFlags, packageSpec];
569
569
  const fallbackRegistryUrl = options.npmFallbackRegistryUrl !== void 0 ? options.npmFallbackRegistryUrl : publicNpmFallbackRegistryUrl(
570
- _optionalChain([env, 'access', _22 => _22.DEEPLINE_HOST_URL, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()]) || _chunk2R7JD2NYjs.autoDetectBaseUrl.call(void 0, )
570
+ _optionalChain([env, 'access', _22 => _22.DEEPLINE_HOST_URL, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()]) || _chunkTTBQOHG4js.autoDetectBaseUrl.call(void 0, )
571
571
  );
572
572
  return {
573
573
  kind: "npm-global",
@@ -816,7 +816,7 @@ function sidecarInstallFailure(versionDir) {
816
816
  function runCommand(command, args, env = process.env) {
817
817
  return new Promise((resolveResult) => {
818
818
  let output = "";
819
- const plan = _chunkMFKTYIBJjs.resolveShellSpawn.call(void 0, command, args, process.platform, env);
819
+ const plan = _chunkJ2ZS4PECjs.resolveShellSpawn.call(void 0, command, args, process.platform, env);
820
820
  const child = _child_process.spawn.call(void 0, plan.command, plan.args, {
821
821
  stdio: ["inherit", "pipe", "pipe"],
822
822
  shell: plan.shell,
@@ -1199,14 +1199,14 @@ async function publishedVersionSupportsPin(version, fallbackRegistryUrl) {
1199
1199
  throw _nullishCoalesce(lastError, () => ( new Error("No npm registry was available")));
1200
1200
  }
1201
1201
  async function runUpdateCommand(options, dependencies = {}) {
1202
- const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => ( _chunk2R7JD2NYjs.autoDetectBaseUrl));
1202
+ const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => ( _chunkTTBQOHG4js.autoDetectBaseUrl));
1203
1203
  const resolvePlan = _nullishCoalesce(dependencies.resolvePlan, () => ( resolveUpdatePlan));
1204
1204
  const runPlan = _nullishCoalesce(dependencies.runPlan, () => ( runUpdatePlan));
1205
1205
  const syncSkills = _nullishCoalesce(dependencies.syncSkillsIfNeeded, () => ( (async () => {
1206
1206
  const originalWrite = process.stdout.write.bind(process.stdout);
1207
1207
  process.stdout.write = (() => true);
1208
1208
  try {
1209
- const exitCode = await _chunkRQMEYYN4js.runSkillsCommand.call(void 0, { json: true });
1209
+ const exitCode = await _chunkJCWEQQGEjs.runSkillsCommand.call(void 0, { json: true });
1210
1210
  if (exitCode !== 0) {
1211
1211
  throw new Error(
1212
1212
  `Deepline skills update failed with exit ${exitCode}.`
@@ -1277,11 +1277,11 @@ async function runUpdateCommand(options, dependencies = {}) {
1277
1277
  ]
1278
1278
  };
1279
1279
  if (options.json && !options.executeWithJson) {
1280
- _chunkJ7WYWQF4js.printCommandEnvelope.call(void 0, { ...plan, render }, { json: true });
1280
+ _chunkKKPKLLNBjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: true });
1281
1281
  return 0;
1282
1282
  }
1283
1283
  if (options.printCommand) {
1284
- _chunkJ7WYWQF4js.printCommandEnvelope.call(void 0,
1284
+ _chunkKKPKLLNBjs.printCommandEnvelope.call(void 0,
1285
1285
  {
1286
1286
  ...plan,
1287
1287
  render: {
@@ -1294,7 +1294,7 @@ async function runUpdateCommand(options, dependencies = {}) {
1294
1294
  return 0;
1295
1295
  }
1296
1296
  if (plan.kind === "source" || plan.kind === "homebrew") {
1297
- _chunkJ7WYWQF4js.printCommandEnvelope.call(void 0, { ...plan, render }, { json: false });
1297
+ _chunkKKPKLLNBjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: false });
1298
1298
  return 0;
1299
1299
  }
1300
1300
  stderr.write(`Updating Deepline SDK/CLI with: ${plan.manualCommand}
@@ -1324,7 +1324,7 @@ To retry with full installer output, run: deepline skills
1324
1324
  );
1325
1325
  }
1326
1326
  if (options.executeWithJson && options.json) {
1327
- _chunkJ7WYWQF4js.printCommandEnvelope.call(void 0,
1327
+ _chunkKKPKLLNBjs.printCommandEnvelope.call(void 0,
1328
1328
  {
1329
1329
  ok: true,
1330
1330
  pinnedVersion
@@ -3,7 +3,7 @@
3
3
 
4
4
 
5
5
 
6
- var _chunk2R7JD2NYjs = require('./chunk-2R7JD2NY.js');
6
+ var _chunkTTBQOHG4js = require('./chunk-TTBQOHG4.js');
7
7
 
8
8
 
9
9
 
@@ -288,8 +288,8 @@ var BROWSER_OPEN_COOLDOWN_MS = 3e4;
288
288
  var SAME_URL_BROWSER_OPEN_COOLDOWN_MS = 5 * 6e4;
289
289
  var defaultBrowserCommandRunner = childProcess;
290
290
  function getAuthedHttpClient() {
291
- const config = _chunk2R7JD2NYjs.resolveConfig.call(void 0, );
292
- return { config, http: new (0, _chunk2R7JD2NYjs.HttpClient)(config) };
291
+ const config = _chunkTTBQOHG4js.resolveConfig.call(void 0, );
292
+ return { config, http: new (0, _chunkTTBQOHG4js.HttpClient)(config) };
293
293
  }
294
294
  function stableOsUserId() {
295
295
  try {
@@ -629,7 +629,7 @@ function collectLocalEnvInfo() {
629
629
  os: `${process.platform} ${process.arch}`,
630
630
  node_version: process.version,
631
631
  home_dir: homeDir,
632
- agent_runtime: _chunk2R7JD2NYjs.detectAgentRuntime.call(void 0, )
632
+ agent_runtime: _chunkTTBQOHG4js.detectAgentRuntime.call(void 0, )
633
633
  };
634
634
  const env = process.env;
635
635
  const optional = {
@@ -876,9 +876,9 @@ function markdownTableFromRows(rows, preferredColumns = []) {
876
876
  }
877
877
  function withAgentCommandContext(value) {
878
878
  const valueRecord = value !== null && typeof value === "object" && !Array.isArray(value) ? value : null;
879
- return _chunk2R7JD2NYjs.detectAgentRuntime.call(void 0, ) !== "unknown" && valueRecord && !Object.prototype.hasOwnProperty.call(valueRecord, "command_context") ? {
879
+ return _chunkTTBQOHG4js.detectAgentRuntime.call(void 0, ) !== "unknown" && valueRecord && !Object.prototype.hasOwnProperty.call(valueRecord, "command_context") ? {
880
880
  ...valueRecord,
881
- command_context: _chunk2R7JD2NYjs.resolveCliCommandContext.call(void 0, )
881
+ command_context: _chunkTTBQOHG4js.resolveCliCommandContext.call(void 0, )
882
882
  } : value;
883
883
  }
884
884
  function printJson(value, fields) {
@@ -3,15 +3,15 @@
3
3
  var _chunkZM2YPJQJjs = require('./chunk-ZM2YPJQJ.js');
4
4
 
5
5
 
6
- var _chunkW3DIXRDTjs = require('./chunk-W3DIXRDT.js');
6
+ var _chunkSFCNYJ4Bjs = require('./chunk-SFCNYJ4B.js');
7
7
 
8
8
 
9
9
 
10
- var _chunkJ7WYWQF4js = require('./chunk-J7WYWQF4.js');
10
+ var _chunkKKPKLLNBjs = require('./chunk-KKPKLLNB.js');
11
11
 
12
12
 
13
13
 
14
- var _chunk2R7JD2NYjs = require('./chunk-2R7JD2NY.js');
14
+ var _chunkTTBQOHG4js = require('./chunk-TTBQOHG4.js');
15
15
 
16
16
 
17
17
 
@@ -5713,7 +5713,7 @@ var _fs = require('fs');
5713
5713
  var _path = require('path');
5714
5714
  var SEARCH_REF_TTL_MS = 15 * 6e4;
5715
5715
  function lastSearchPath() {
5716
- return _path.join.call(void 0, _chunk2R7JD2NYjs.sdkCliStateDirPath.call(void 0, _chunk2R7JD2NYjs.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
5716
+ return _path.join.call(void 0, _chunkTTBQOHG4js.sdkCliStateDirPath.call(void 0, _chunkTTBQOHG4js.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
5717
5717
  }
5718
5718
  function rememberSearchRef(searchRef) {
5719
5719
  try {
@@ -5877,7 +5877,7 @@ var OPTIONAL_COLUMNS = [
5877
5877
  ];
5878
5878
  function renderSearchResults(result, summaryWidth = DEFAULT_SUMMARY_WIDTH) {
5879
5879
  if (result.results.length === 0)
5880
- return _chunkJ7WYWQF4js.renderCommandEnvelopeText.call(void 0, result);
5880
+ return _chunkKKPKLLNBjs.renderCommandEnvelopeText.call(void 0, result);
5881
5881
  const rows = result.results.map((item) => searchRow(item, summaryWidth));
5882
5882
  const kinds = new Set(rows.map((row) => row.kind));
5883
5883
  const onlyTools = kinds.size === 1 && kinds.has("tool");
@@ -5902,7 +5902,7 @@ function renderSearchResults(result, summaryWidth = DEFAULT_SUMMARY_WIDTH) {
5902
5902
  actions: _optionalChain([render, 'optionalAccess', _12 => _12.actions])
5903
5903
  };
5904
5904
  const followUps = _optionalChain([remaining, 'access', _13 => _13.sections, 'optionalAccess', _14 => _14.length]) || _optionalChain([remaining, 'access', _15 => _15.actions, 'optionalAccess', _16 => _16.length]) ? `
5905
- ${_chunkJ7WYWQF4js.renderCommandEnvelopeText.call(void 0, { render: remaining })}` : "";
5905
+ ${_chunkKKPKLLNBjs.renderCommandEnvelopeText.call(void 0, { render: remaining })}` : "";
5906
5906
  const notes = rows.flatMap(
5907
5907
  (row) => row.notes.map((note) => ` ${row.id}: ${note}`)
5908
5908
  );
@@ -5987,7 +5987,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
5987
5987
  console.error("--summary-width must be an integer of at least 2.");
5988
5988
  return 1;
5989
5989
  }
5990
- const { search_ref: searchRef, ...result } = await new (0, _chunkW3DIXRDTjs.DeeplineClient)().search({
5990
+ const { search_ref: searchRef, ...result } = await new (0, _chunkSFCNYJ4Bjs.DeeplineClient)().search({
5991
5991
  query,
5992
5992
  types,
5993
5993
  exclude,
@@ -6001,7 +6001,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
6001
6001
  });
6002
6002
  if (searchRef) rememberSearchRef(searchRef);
6003
6003
  pointAtDescribe(result);
6004
- _chunkJ7WYWQF4js.printCommandEnvelope.call(void 0, result, {
6004
+ _chunkKKPKLLNBjs.printCommandEnvelope.call(void 0, result, {
6005
6005
  json: options.json === true,
6006
6006
  text: renderSearchResults(result, summaryWidth)
6007
6007
  });
@@ -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(); } } 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 _chunkMFKTYIBJjs = require('./chunk-MFKTYIBJ.js');
3
+ var _chunkJ2ZS4PECjs = require('./chunk-J2ZS4PEC.js');
4
4
 
5
5
  // src/cli/npm-script-policy.ts
6
6
  var _child_process = require('child_process');
@@ -13,7 +13,7 @@ function npmSupportsAllowScripts(version) {
13
13
  }
14
14
  function readNpmVersion(env) {
15
15
  try {
16
- const plan = _chunkMFKTYIBJjs.resolveShellSpawn.call(void 0, "npm", ["--version"], process.platform, env);
16
+ const plan = _chunkJ2ZS4PECjs.resolveShellSpawn.call(void 0, "npm", ["--version"], process.platform, env);
17
17
  const result = _child_process.spawnSync.call(void 0, plan.command, plan.args, {
18
18
  encoding: "utf8",
19
19
  env,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  writeRawStderr
3
- } from "./chunk-RYGDM5BG.mjs";
3
+ } from "./chunk-7IIRZXCO.mjs";
4
4
 
5
5
  // src/cli/maintenance-policy.ts
6
6
  import { InvalidArgumentError } from "commander";
@@ -2,7 +2,7 @@ import {
2
2
  argsWantJson,
3
3
  openInBrowser,
4
4
  printCommandEnvelope
5
- } from "./chunk-RYGDM5BG.mjs";
5
+ } from "./chunk-7IIRZXCO.mjs";
6
6
  import {
7
7
  ACTIVE_ORG_ID_ENV,
8
8
  ACTIVE_ORG_NAME_ENV,
@@ -25,7 +25,7 @@ import {
25
25
  saveHostEnvValues,
26
26
  saveProjectDeeplineEnvValues,
27
27
  storedHostApiKey
28
- } from "./chunk-LRA5YJVV.mjs";
28
+ } from "./chunk-CQHTN3RY.mjs";
29
29
 
30
30
  // src/cli/commands/auth.ts
31
31
  import {