deepline 0.3.451 → 0.3.452

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 (101) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +5 -1
  3. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-lifecycle.ts +49 -11
  4. package/dist/bundling-sources/shared_libs/play-runtime/sandbox-runs/contract.ts +4 -0
  5. package/dist/bundling-sources/shared_libs/play-runtime/sandbox-runs/runner-backend-adapter.ts +6 -0
  6. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +3 -1
  7. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-capacity.ts +17 -2
  8. package/dist/cli/auth-36DQP46D.js +40 -0
  9. package/dist/cli/{auth-YLBWEMRW.mjs → auth-DKZLB6GN.mjs} +4 -4
  10. package/dist/cli/{billing-GWG5D3P6.js → billing-CN3XSVER.js} +73 -73
  11. package/dist/cli/{billing-DUFOEOPT.mjs → billing-DOFXWAZR.mjs} +4 -4
  12. package/dist/cli/{chunk-OKTCLFKM.mjs → chunk-2GMAPSJU.mjs} +5 -5
  13. package/dist/cli/{chunk-LPPAJJJN.mjs → chunk-2SICEJBN.mjs} +1 -1
  14. package/dist/cli/{chunk-6TFACCXN.js → chunk-2VERHTKO.js} +2 -2
  15. package/dist/cli/{chunk-HSKLAPMD.js → chunk-5DRGDSJL.js} +26 -26
  16. package/dist/cli/{chunk-F2DW7DFE.js → chunk-74BPYDDG.js} +8 -8
  17. package/dist/cli/{chunk-L2IUGWV5.js → chunk-7JSZOUNU.js} +1 -1
  18. package/dist/cli/{chunk-EJ6YI46S.js → chunk-7OI33KE5.js} +2 -2
  19. package/dist/cli/{chunk-JUCEEIEC.mjs → chunk-ELULDUX3.mjs} +1 -1
  20. package/dist/cli/{chunk-WDOWAOYB.js → chunk-ETFVH7PO.js} +4 -4
  21. package/dist/cli/{chunk-WLVGRU5A.mjs → chunk-FIQ2F5LA.mjs} +2 -2
  22. package/dist/cli/{chunk-Z3DBS4IB.js → chunk-G5BMPTZD.js} +81 -81
  23. package/dist/cli/{chunk-7VRWERTM.js → chunk-J5O4AXSO.js} +10 -10
  24. package/dist/cli/{chunk-4C7HPD57.mjs → chunk-JJOSUZMS.mjs} +1 -1
  25. package/dist/cli/{chunk-ZNDE2BTH.js → chunk-JT4ZSWBK.js} +16 -16
  26. package/dist/cli/{chunk-BJOVX7EB.mjs → chunk-KQUDU3ZE.mjs} +2 -2
  27. package/dist/cli/{chunk-O3KVUHCG.js → chunk-L2GATUZK.js} +20 -20
  28. package/dist/cli/{chunk-JRPNCMMN.js → chunk-L6YCGSL4.js} +35 -35
  29. package/dist/cli/{chunk-5DUMNKQG.js → chunk-M4FFNUF4.js} +50 -50
  30. package/dist/cli/{chunk-XLOXUW5Y.mjs → chunk-PBQSX6ES.mjs} +1 -1
  31. package/dist/cli/{chunk-YXXIFMXI.mjs → chunk-POSAVPQZ.mjs} +2 -2
  32. package/dist/cli/{chunk-E7V5CRA2.mjs → chunk-QK65KBWN.mjs} +8 -8
  33. package/dist/cli/{chunk-37CPEQBE.mjs → chunk-R7YZKHN5.mjs} +3 -3
  34. package/dist/cli/{chunk-ZPV7DMAA.mjs → chunk-RFDIXLRX.mjs} +1 -1
  35. package/dist/cli/{chunk-RFPP4Q66.mjs → chunk-RNM4HG3W.mjs} +3 -3
  36. package/dist/cli/{chunk-PJYTV24I.mjs → chunk-SM5RZ5JC.mjs} +1 -1
  37. package/dist/cli/{chunk-3HT47QPJ.mjs → chunk-TXN27XQQ.mjs} +2 -2
  38. package/dist/cli/{chunk-33EM4SMH.mjs → chunk-UGPGB4C6.mjs} +3 -3
  39. package/dist/cli/{chunk-TFCLUWDQ.js → chunk-WW63S4RC.js} +6 -6
  40. package/dist/cli/{chunk-BQQLTSGC.mjs → chunk-X4IMX5AO.mjs} +4 -4
  41. package/dist/cli/{chunk-C4NPWUZY.js → chunk-YWL4ULLT.js} +52 -52
  42. package/dist/cli/{chunk-CH2WDSBC.js → chunk-ZH6HFV7Y.js} +8 -8
  43. package/dist/cli/{chunk-6G6KX7I7.js → chunk-ZKGK2JU3.js} +6 -6
  44. package/dist/cli/{csv-4CHXZQXO.js → csv-N25FMDZQ.js} +12 -12
  45. package/dist/cli/{csv-RL7WQD6Y.mjs → csv-QUNUQZYC.mjs} +3 -3
  46. package/dist/cli/{db-MRI5IM2A.js → db-2SGG56WR.js} +25 -25
  47. package/dist/cli/{db-ZDBAWV7B.mjs → db-WYWDUYXS.mjs} +4 -4
  48. package/dist/cli/{describe-RRQUUJQ3.mjs → describe-4RBUIHR7.mjs} +12 -12
  49. package/dist/cli/{describe-2FYKXM5B.js → describe-QQ2XL6PV.js} +16 -16
  50. package/dist/cli/{executions-RJL76TJS.mjs → executions-WOBIMQ7H.mjs} +4 -4
  51. package/dist/cli/{executions-KDBD47A5.js → executions-YLJHAHHX.js} +6 -6
  52. package/dist/cli/{feedback-2CE24NHD.js → feedback-D653FAXY.js} +7 -7
  53. package/dist/cli/{feedback-KOYLXHYE.mjs → feedback-VCGVROTY.mjs} +3 -3
  54. package/dist/cli/{git-RDUHU6L6.mjs → git-SZ6RSLFN.mjs} +4 -4
  55. package/dist/cli/git-T6LBJEY6.js +24 -0
  56. package/dist/cli/index.js +131 -131
  57. package/dist/cli/index.mjs +36 -36
  58. package/dist/cli/{legacy-noops-7FOMGBMN.js → legacy-noops-TXZ75CWS.js} +7 -7
  59. package/dist/cli/{legacy-noops-4HS2LYP6.mjs → legacy-noops-UGLTI2ZY.mjs} +4 -4
  60. package/dist/cli/{monitors-JLBTNBVU.mjs → monitors-HLIW4AIL.mjs} +4 -4
  61. package/dist/cli/{monitors-IJXNK5BL.js → monitors-VC6YSBYX.js} +84 -84
  62. package/dist/cli/{org-JL7SW6VY.js → org-I3VQDIGZ.js} +66 -66
  63. package/dist/cli/{org-OWP6K4AA.mjs → org-X4MVTSKM.mjs} +4 -4
  64. package/dist/cli/{play-LLNZWHT6.js → play-7TLGGN66.js} +283 -283
  65. package/dist/cli/{play-FNOVKU74.mjs → play-EAYGEAMI.mjs} +10 -10
  66. package/dist/cli/{providers-E4XIEUC7.js → providers-IZ3YWZ4E.js} +7 -7
  67. package/dist/cli/{providers-WBOEOKE7.mjs → providers-MBTMUEGX.mjs} +4 -4
  68. package/dist/cli/{quickstart-3FUHKGEY.js → quickstart-MBDEV4RJ.js} +5 -5
  69. package/dist/cli/{quickstart-6G5G3BVA.mjs → quickstart-MDW2NMAS.mjs} +3 -3
  70. package/dist/cli/{search-CNMB4Z6M.mjs → search-4PQZYRQO.mjs} +5 -5
  71. package/dist/cli/search-5B4ZM7VS.js +30 -0
  72. package/dist/cli/{secrets-BDSWOYAT.js → secrets-3S7KUS2H.js} +13 -13
  73. package/dist/cli/{secrets-5FY5APVK.mjs → secrets-S55UCYYR.mjs} +4 -4
  74. package/dist/cli/{sessions-PMIKVPQN.mjs → sessions-T6XVN737.mjs} +4 -4
  75. package/dist/cli/{sessions-B7T2CHYK.js → sessions-UEHVIB6W.js} +5 -5
  76. package/dist/cli/{settings-4TAYLTPR.mjs → settings-CGP7XMJZ.mjs} +8 -8
  77. package/dist/cli/{settings-RXQJRRLR.js → settings-MYAUWNTF.js} +75 -75
  78. package/dist/cli/{setup-ZTMETGSO.js → setup-5Z5HAWEG.js} +42 -42
  79. package/dist/cli/{setup-LVUISLVO.mjs → setup-U66NZQXB.mjs} +7 -7
  80. package/dist/cli/{skills-NSJ43Z5Q.mjs → skills-2JS3SNFA.mjs} +5 -5
  81. package/dist/cli/skills-JXPQFJAJ.js +29 -0
  82. package/dist/cli/{tools-CFCKIGDY.mjs → tools-G3VYZKTO.mjs} +12 -12
  83. package/dist/cli/tools-RHRJ4SLY.js +44 -0
  84. package/dist/cli/update-5YBPJ3EQ.js +31 -0
  85. package/dist/cli/{update-HYOCBXJO.mjs → update-C7CLWWIW.mjs} +7 -7
  86. package/dist/cli/{workflow-RKX45RJ4.mjs → workflow-EUMRVXU7.mjs} +5 -5
  87. package/dist/cli/{workflow-U6S4SWTF.js → workflow-TBKVIN4S.js} +15 -15
  88. package/dist/index.js +6 -6
  89. package/dist/index.mjs +3 -3
  90. package/dist/install-integrity.json +78 -78
  91. package/dist/release.d.mts +1 -1
  92. package/dist/release.d.ts +1 -1
  93. package/dist/release.js +2 -2
  94. package/dist/release.mjs +1 -1
  95. package/package.json +1 -1
  96. package/dist/cli/auth-WPQBEOES.js +0 -40
  97. package/dist/cli/git-DZ5GROPH.js +0 -24
  98. package/dist/cli/search-4ECC773X.js +0 -30
  99. package/dist/cli/skills-MIENPTOD.js +0 -29
  100. package/dist/cli/tools-CXJO5XSH.js +0 -44
  101. package/dist/cli/update-B2LQGEXF.js +0 -31
@@ -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 _chunkEJ6YI46Sjs = require('./chunk-EJ6YI46S.js');
4
+ var _chunk7OI33KE5js = require('./chunk-7OI33KE5.js');
5
5
 
6
6
 
7
- var _chunkJRPNCMMNjs = require('./chunk-JRPNCMMN.js');
7
+ var _chunkL6YCGSL4js = require('./chunk-L6YCGSL4.js');
8
8
 
9
9
 
10
- var _chunkC4NPWUZYjs = require('./chunk-C4NPWUZY.js');
10
+ var _chunkYWL4ULLTjs = require('./chunk-YWL4ULLT.js');
11
11
 
12
12
 
13
- var _chunk6G6KX7I7js = require('./chunk-6G6KX7I7.js');
13
+ var _chunkZKGK2JU3js = require('./chunk-ZKGK2JU3.js');
14
14
 
15
15
 
16
- var _chunkWDOWAOYBjs = require('./chunk-WDOWAOYB.js');
16
+ var _chunkETFVH7POjs = require('./chunk-ETFVH7PO.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 = _chunkC4NPWUZYjs.resolveShellSpawn.call(void 0,
498
+ const plan = _chunkYWL4ULLTjs.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 ? _chunkEJ6YI46Sjs.readNpmVersion.call(void 0, env) : options.npmVersion;
560
- const npmGlobalInstallFlags = _chunkEJ6YI46Sjs.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 ? _chunk7OI33KE5js.readNpmVersion.call(void 0, env) : options.npmVersion;
560
+ const npmGlobalInstallFlags = _chunk7OI33KE5js.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()]) || _chunkWDOWAOYBjs.autoDetectBaseUrl.call(void 0, )
570
+ _optionalChain([env, 'access', _22 => _22.DEEPLINE_HOST_URL, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()]) || _chunkETFVH7POjs.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 = _chunkC4NPWUZYjs.resolveShellSpawn.call(void 0, command, args, process.platform, env);
819
+ const plan = _chunkYWL4ULLTjs.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, () => ( _chunkWDOWAOYBjs.autoDetectBaseUrl));
1202
+ const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => ( _chunkETFVH7POjs.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 _chunkJRPNCMMNjs.runSkillsCommand.call(void 0, { json: true });
1209
+ const exitCode = await _chunkL6YCGSL4js.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
- _chunk6G6KX7I7js.printCommandEnvelope.call(void 0, { ...plan, render }, { json: true });
1280
+ _chunkZKGK2JU3js.printCommandEnvelope.call(void 0, { ...plan, render }, { json: true });
1281
1281
  return 0;
1282
1282
  }
1283
1283
  if (options.printCommand) {
1284
- _chunk6G6KX7I7js.printCommandEnvelope.call(void 0,
1284
+ _chunkZKGK2JU3js.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
- _chunk6G6KX7I7js.printCommandEnvelope.call(void 0, { ...plan, render }, { json: false });
1297
+ _chunkZKGK2JU3js.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
- _chunk6G6KX7I7js.printCommandEnvelope.call(void 0,
1327
+ _chunkZKGK2JU3js.printCommandEnvelope.call(void 0,
1328
1328
  {
1329
1329
  ok: true,
1330
1330
  pinnedVersion
@@ -2,7 +2,7 @@ import {
2
2
  argsWantJson,
3
3
  openInBrowser,
4
4
  printCommandEnvelope
5
- } from "./chunk-XLOXUW5Y.mjs";
5
+ } from "./chunk-PBQSX6ES.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-PJYTV24I.mjs";
28
+ } from "./chunk-SM5RZ5JC.mjs";
29
29
 
30
30
  // src/cli/commands/auth.ts
31
31
  import {
@@ -4,18 +4,18 @@
4
4
 
5
5
 
6
6
 
7
- var _chunkZNDE2BTHjs = require('./chunk-ZNDE2BTH.js');
7
+ var _chunkJT4ZSWBKjs = require('./chunk-JT4ZSWBK.js');
8
8
 
9
9
 
10
- var _chunkC4NPWUZYjs = require('./chunk-C4NPWUZY.js');
10
+ var _chunkYWL4ULLTjs = require('./chunk-YWL4ULLT.js');
11
11
 
12
12
 
13
13
 
14
- var _chunk6G6KX7I7js = require('./chunk-6G6KX7I7.js');
14
+ var _chunkZKGK2JU3js = require('./chunk-ZKGK2JU3.js');
15
15
 
16
16
 
17
17
 
18
- var _chunkWDOWAOYBjs = require('./chunk-WDOWAOYB.js');
18
+ var _chunkETFVH7POjs = require('./chunk-ETFVH7PO.js');
19
19
 
20
20
  // src/cli/compatibility-catalog.ts
21
21
  var readers = /* @__PURE__ */ new WeakMap();
@@ -42,7 +42,7 @@ function trustedAutoUpdateRegistryUrl(baseUrl) {
42
42
  async function reportAutoUpdateEvent(input) {
43
43
  let apiKey = "";
44
44
  try {
45
- apiKey = _chunkWDOWAOYBjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
45
+ apiKey = _chunkETFVH7POjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
46
46
  } catch (e2) {
47
47
  return;
48
48
  }
@@ -58,15 +58,15 @@ async function reportAutoUpdateEvent(input) {
58
58
  headers: {
59
59
  Authorization: `Bearer ${apiKey}`,
60
60
  "Content-Type": "application/json",
61
- "User-Agent": `deepline-ts-sdk/${_chunkWDOWAOYBjs.SDK_VERSION}`,
61
+ "User-Agent": `deepline-ts-sdk/${_chunkETFVH7POjs.SDK_VERSION}`,
62
62
  "X-Deepline-Client-Family": "sdk",
63
63
  "X-Deepline-CLI-Family": "sdk",
64
- "X-Deepline-CLI-Version": _chunkWDOWAOYBjs.SDK_VERSION,
65
- "X-Deepline-SDK-Version": _chunkWDOWAOYBjs.SDK_VERSION
64
+ "X-Deepline-CLI-Version": _chunkETFVH7POjs.SDK_VERSION,
65
+ "X-Deepline-SDK-Version": _chunkETFVH7POjs.SDK_VERSION
66
66
  },
67
67
  body: JSON.stringify({
68
68
  event: input.event,
69
- current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) || _chunkWDOWAOYBjs.SDK_VERSION,
69
+ current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) || _chunkETFVH7POjs.SDK_VERSION,
70
70
  target_version: input.response.latest,
71
71
  reason: _optionalChain([input, 'access', _8 => _8.response, 'access', _9 => _9.auto_update, 'optionalAccess', _10 => _10.reason]),
72
72
  command: _nullishCoalesce(input.response.command, () => ( null)),
@@ -85,13 +85,13 @@ function envTruthy(name) {
85
85
  return value === "1" || value === "true" || value === "yes";
86
86
  }
87
87
  function shouldSkipSelfUpdate(policy) {
88
- return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !_chunkZNDE2BTHjs.shouldRunCliAutoUpdate.call(void 0, ) || _chunkC4NPWUZYjs.isCiEnvironment.call(void 0, );
88
+ return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !_chunkJT4ZSWBKjs.shouldRunCliAutoUpdate.call(void 0, ) || _chunkYWL4ULLTjs.isCiEnvironment.call(void 0, );
89
89
  }
90
90
  function isDowngradeAutoUpdateResponse(response) {
91
91
  const target = _optionalChain([response, 'optionalAccess', _17 => _17.latest, 'optionalAccess', _18 => _18.trim, 'call', _19 => _19()]);
92
- const current = _optionalChain([response, 'optionalAccess', _20 => _20.current, 'optionalAccess', _21 => _21.trim, 'call', _22 => _22()]) || _chunkWDOWAOYBjs.SDK_VERSION;
92
+ const current = _optionalChain([response, 'optionalAccess', _20 => _20.current, 'optionalAccess', _21 => _21.trim, 'call', _22 => _22()]) || _chunkETFVH7POjs.SDK_VERSION;
93
93
  if (!target) return false;
94
- return _chunkZNDE2BTHjs.compareUpdateVersions.call(void 0, target, current) < 0;
94
+ return _chunkJT4ZSWBKjs.compareUpdateVersions.call(void 0, target, current) < 0;
95
95
  }
96
96
  function relaunchCurrentCommand(plan, runtime = {}) {
97
97
  return new Promise((resolve) => {
@@ -144,7 +144,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
144
144
  }
145
145
  if (isDowngradeAutoUpdateResponse(response)) {
146
146
  const target = response.latest;
147
- const current = _optionalChain([response, 'access', _26 => _26.current, 'optionalAccess', _27 => _27.trim, 'call', _28 => _28()]) || _chunkWDOWAOYBjs.SDK_VERSION;
147
+ const current = _optionalChain([response, 'access', _26 => _26.current, 'optionalAccess', _27 => _27.trim, 'call', _28 => _28()]) || _chunkETFVH7POjs.SDK_VERSION;
148
148
  process.stderr.write(
149
149
  `Deepline SDK/CLI auto-update refused: server advertised older ${target} than current ${current}. Continuing without mutating the CLI.
150
150
  `
@@ -152,21 +152,21 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
152
152
  return false;
153
153
  }
154
154
  const packageSpec = response.latest ? `deepline@${response.latest}` : void 0;
155
- const plan = _chunkZNDE2BTHjs.resolveUpdatePlan.call(void 0, {
155
+ const plan = _chunkJT4ZSWBKjs.resolveUpdatePlan.call(void 0, {
156
156
  packageSpec,
157
157
  requireVerifiedNpmOwnership: true,
158
158
  npmFallbackRegistryUrl: trustedAutoUpdateRegistryUrl(baseUrl)
159
159
  });
160
- if (!_chunkZNDE2BTHjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) {
160
+ if (!_chunkJT4ZSWBKjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) {
161
161
  return false;
162
162
  }
163
163
  if (!autoUpdate.required && autoUpdate.reason !== "rollback_forced") {
164
164
  deferredAutoUpdate = async () => {
165
165
  await applyAutoUpdate(response, baseUrl, plan, "next_command");
166
166
  };
167
- if (_chunk6G6KX7I7js.isJsonOutputMode.call(void 0, )) {
167
+ if (_chunkZKGK2JU3js.isJsonOutputMode.call(void 0, )) {
168
168
  const target = _optionalChain([response, 'access', _29 => _29.latest, 'optionalAccess', _30 => _30.trim, 'call', _31 => _31()]);
169
- _chunk6G6KX7I7js.addJsonNotice.call(void 0, {
169
+ _chunkZKGK2JU3js.addJsonNotice.call(void 0, {
170
170
  code: "sdk_update_queued",
171
171
  message: `Deepline SDK/CLI update${target ? ` to ${target}` : ""} is queued after this command; the next command will use it if installation succeeds.`
172
172
  });
@@ -179,7 +179,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
179
179
  return true;
180
180
  }
181
181
  async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
182
- if (!_chunkZNDE2BTHjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) return false;
182
+ if (!_chunkJT4ZSWBKjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) return false;
183
183
  const autoUpdate = response.auto_update;
184
184
  const label = _optionalChain([autoUpdate, 'optionalAccess', _32 => _32.reason]) === "rollback_forced" ? "has a server rollback pending and needs the latest rollback-aware CLI" : _optionalChain([autoUpdate, 'optionalAccess', _33 => _33.reason]) === "deprecated" ? "is deprecated and will update automatically" : _optionalChain([autoUpdate, 'optionalAccess', _34 => _34.required]) ? "requires an update" : "has an update available and will update automatically";
185
185
  process.stderr.write(
@@ -192,7 +192,7 @@ async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
192
192
  event: "started",
193
193
  installKind: plan.kind
194
194
  });
195
- const updateResult = await _chunkZNDE2BTHjs.runAutomaticUpdatePlan.call(void 0, plan);
195
+ const updateResult = await _chunkJT4ZSWBKjs.runAutomaticUpdatePlan.call(void 0, plan);
196
196
  if (updateResult.status === "skipped_previous_failure") {
197
197
  void reportAutoUpdateEvent({
198
198
  baseUrl,
@@ -243,7 +243,7 @@ var _crypto = require('crypto');
243
243
  var TOOL_EXECUTE_PROGRESS_INTERVAL_MS = 15e3;
244
244
  var activeToolExecuteCommand = null;
245
245
  function progressLine(line) {
246
- if (!_chunk6G6KX7I7js.isJsonOutputMode.call(void 0, )) console.error(line);
246
+ if (!_chunkZKGK2JU3js.isJsonOutputMode.call(void 0, )) console.error(line);
247
247
  }
248
248
  function beginToolExecuteCommand() {
249
249
  if (activeToolExecuteCommand) return activeToolExecuteCommand.invocationId;
@@ -11,10 +11,10 @@
11
11
 
12
12
 
13
13
 
14
- var _chunkC4NPWUZYjs = require('./chunk-C4NPWUZY.js');
14
+ var _chunkYWL4ULLTjs = require('./chunk-YWL4ULLT.js');
15
15
 
16
16
 
17
- var _chunk6G6KX7I7js = require('./chunk-6G6KX7I7.js');
17
+ var _chunkZKGK2JU3js = require('./chunk-ZKGK2JU3.js');
18
18
 
19
19
 
20
20
 
@@ -22,7 +22,7 @@ var _chunk6G6KX7I7js = require('./chunk-6G6KX7I7.js');
22
22
 
23
23
 
24
24
 
25
- var _chunkWDOWAOYBjs = require('./chunk-WDOWAOYB.js');
25
+ var _chunkETFVH7POjs = require('./chunk-ETFVH7PO.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 = _chunkWDOWAOYBjs.resolveProjectPinTarget.call(void 0, );
78
+ const target = _chunkETFVH7POjs.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, () => ( _chunkWDOWAOYBjs.detectAgentRuntime.call(void 0, )));
89
+ const runtime = _nullishCoalesce(input.runtime, () => ( _chunkETFVH7POjs.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, _chunkWDOWAOYBjs.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, _chunkETFVH7POjs.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 = [..._chunkC4NPWUZYjs.LEGACY_SKILL_NAMES_TO_REMOVE].sort(
108
+ const legacyNames = [..._chunkYWL4ULLTjs.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=${_chunkC4NPWUZYjs.SKILLS_NPX_PACKAGE}`,
122
+ `--package=${_chunkYWL4ULLTjs.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=${_chunkC4NPWUZYjs.SKILLS_NPX_PACKAGE}`,
138
+ `--package=${_chunkYWL4ULLTjs.SKILLS_NPX_PACKAGE}`,
139
139
  "--",
140
140
  "skills",
141
141
  "add",
142
- _chunkC4NPWUZYjs.skillsSourceUrl.call(void 0, input.baseUrl),
142
+ _chunkYWL4ULLTjs.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 = _chunkC4NPWUZYjs.resolveShellSpawn.call(void 0,
179
+ const plan = _chunkYWL4ULLTjs.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
- `${_chunkC4NPWUZYjs.SKILLS_NPX_PACKAGE} timed out after ${SKILLS_PROCESS_TIMEOUT_MS}ms.`
201
+ `${_chunkYWL4ULLTjs.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(`${_chunkC4NPWUZYjs.SKILLS_NPX_PACKAGE} exited ${code}.
212
+ process.stderr.write(`${_chunkYWL4ULLTjs.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
- _chunk6G6KX7I7js.printCommandEnvelope.call(void 0,
226
+ _chunkZKGK2JU3js.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 = _chunkWDOWAOYBjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
238
+ const baseUrl = _chunkETFVH7POjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
239
239
  const catalog = {
240
- skillNames: [..._chunkC4NPWUZYjs.DEFAULT_SDK_SKILL_NAMES],
241
- version: _chunkWDOWAOYBjs.SDK_VERSION
240
+ skillNames: [..._chunkYWL4ULLTjs.DEFAULT_SDK_SKILL_NAMES],
241
+ version: _chunkETFVH7POjs.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
- _chunk6G6KX7I7js.printCommandEnvelope.call(void 0,
246
+ _chunkZKGK2JU3js.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)) && !_chunkC4NPWUZYjs.hasFailedAutomaticSkillsSync.call(void 0, baseUrl, agents)) {
253
- _chunk6G6KX7I7js.printCommandEnvelope.call(void 0,
252
+ if (isSkillsPlanCurrent(plan, readSkillsInstallState(plan.statePath)) && !_chunkYWL4ULLTjs.hasFailedAutomaticSkillsSync.call(void 0, baseUrl, agents)) {
253
+ _chunkZKGK2JU3js.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, ..._chunkC4NPWUZYjs.LEGACY_SKILL_NAMES_TO_REMOVE])
285
+ .../* @__PURE__ */ new Set([...plan.skillNames, ..._chunkYWL4ULLTjs.LEGACY_SKILL_NAMES_TO_REMOVE])
286
286
  ];
287
287
  const agentRoots = workspaceSkillRootsForAgents(plan.agents);
288
- _chunkWDOWAOYBjs.ensureProjectPrivatePathsIgnored.call(void 0, root, [
288
+ _chunkETFVH7POjs.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 _chunkC4NPWUZYjs.acquireSkillsInstallLease.call(void 0, baseUrl, agents, plan.version, {
297
+ lease = scope === "global" ? await _chunkYWL4ULLTjs.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 _chunkC4NPWUZYjs.SkillsStateUnavailableError)) throw error;
306
- _chunk6G6KX7I7js.printCommandEnvelope.call(void 0,
305
+ if (!(error instanceof _chunkYWL4ULLTjs.SkillsStateUnavailableError)) throw error;
306
+ _chunkZKGK2JU3js.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
- _chunk6G6KX7I7js.printCommandEnvelope.call(void 0,
322
+ _chunkZKGK2JU3js.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 ${_chunkC4NPWUZYjs.skillsInstallLeasePath.call(void 0, baseUrl, agents)}`
331
+ next: `Retry in a moment: deepline skills --scope ${scope}. If no refresh is running, remove ${_chunkYWL4ULLTjs.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
- _chunk6G6KX7I7js.printCommandEnvelope.call(void 0,
368
+ _chunkZKGK2JU3js.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: _chunkWDOWAOYBjs.SDK_VERSION,
407
+ cliVersion: _chunkETFVH7POjs.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
- _chunkC4NPWUZYjs.clearFailedAutomaticSkillsSync.call(void 0, baseUrl, agents);
420
+ _chunkYWL4ULLTjs.clearFailedAutomaticSkillsSync.call(void 0, baseUrl, agents);
421
421
  }
422
- _chunk6G6KX7I7js.printCommandEnvelope.call(void 0,
422
+ _chunkZKGK2JU3js.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 ${_chunkC4NPWUZYjs.SKILLS_NPX_PACKAGE},
453
+ This command reinstalls current Deepline-managed skills using ${_chunkYWL4ULLTjs.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(_chunkC4NPWUZYjs.SKILLS_AUTO_SYNC_COMMAND, { hidden: true }).description("Refresh Deepline agent skills in the background.").option(
465
+ program.command(_chunkYWL4ULLTjs.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
- _chunk6G6KX7I7js.printCommandEnvelope.call(void 0,
471
+ _chunkZKGK2JU3js.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 _chunkC4NPWUZYjs.syncSdkSkillsIfNeeded.call(void 0, _chunkWDOWAOYBjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, ""), {
484
+ await _chunkYWL4ULLTjs.syncSdkSkillsIfNeeded.call(void 0, _chunkETFVH7POjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, ""), {
485
485
  mode: "inline",
486
486
  notices: "defer",
487
487
  claim