deepline 0.3.432 → 0.3.433

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 (117) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/bundling-sources/shared_libs/monitors/billing/credit-recovery.ts +97 -6
  3. package/dist/bundling-sources/shared_libs/monitors/billing/state.ts +33 -0
  4. package/dist/bundling-sources/shared_libs/monitors/deactivation-reasons.ts +94 -10
  5. package/dist/bundling-sources/shared_libs/monitors/signal-radars/inbound-dead-letter.ts +46 -2
  6. package/dist/bundling-sources/shared_libs/monitors/signal-radars/inbound-message.ts +4 -0
  7. package/dist/bundling-sources/shared_libs/observability/queue-health.ts +4 -4
  8. package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +36 -0
  9. package/dist/bundling-sources/shared_libs/product-notifications/catalog.ts +95 -8
  10. package/dist/bundling-sources/shared_libs/product-notifications/default-policy.ts +1 -1
  11. package/dist/bundling-sources/shared_libs/product-notifications/events.ts +5 -1
  12. package/dist/cli/{auth-J7PBL7MX.mjs → auth-5LF5G3Z2.mjs} +4 -4
  13. package/dist/cli/auth-FGHYE2JG.js +40 -0
  14. package/dist/cli/{billing-MQG6ZJVV.mjs → billing-I7ZADV7D.mjs} +4 -4
  15. package/dist/cli/{billing-SJIZYLAY.js → billing-M34SJBAB.js} +73 -73
  16. package/dist/cli/{chunk-NVHT5QVI.mjs → chunk-2TNGO4DZ.mjs} +3 -3
  17. package/dist/cli/{chunk-7EH5BMGH.mjs → chunk-3C25DYSE.mjs} +3 -3
  18. package/dist/cli/{chunk-T5H4QYFP.mjs → chunk-3CZEDR4K.mjs} +5 -5
  19. package/dist/cli/{chunk-6K6BT5BB.mjs → chunk-3ET2ZKZS.mjs} +1 -1
  20. package/dist/cli/{chunk-XEZE25CL.mjs → chunk-42JTV4IM.mjs} +1 -1
  21. package/dist/cli/{chunk-ZM23AO4D.js → chunk-6R6SQQGQ.js} +4 -4
  22. package/dist/cli/{chunk-7FEOBXCX.mjs → chunk-B3XEZMYS.mjs} +8 -8
  23. package/dist/cli/{chunk-3PFDDZSK.mjs → chunk-BSQH4V3Y.mjs} +1 -1
  24. package/dist/cli/{chunk-BH3ZPOWQ.js → chunk-CXGNMAFV.js} +16 -16
  25. package/dist/cli/{chunk-4UEGE3TL.js → chunk-DAEODAWB.js} +35 -35
  26. package/dist/cli/{chunk-LNDWFZLO.js → chunk-FYDPU4QV.js} +26 -26
  27. package/dist/cli/{chunk-MXCJJGKV.mjs → chunk-G4P74R2F.mjs} +2 -2
  28. package/dist/cli/{chunk-2LN26ID6.mjs → chunk-GZS6ZB55.mjs} +1 -1
  29. package/dist/cli/{chunk-4FE6NO56.mjs → chunk-HAC6SRO5.mjs} +1 -1
  30. package/dist/cli/{chunk-YBD74BIU.js → chunk-I5CB3UUX.js} +50 -50
  31. package/dist/cli/{chunk-TWDC5S4Y.js → chunk-JNX4Y37G.js} +1 -1
  32. package/dist/cli/{chunk-2ZU5KRRK.js → chunk-JUZW32YP.js} +8 -8
  33. package/dist/cli/{chunk-DUFJ3BW3.js → chunk-KAWPJNUO.js} +20 -20
  34. package/dist/cli/{chunk-A27LVC2E.js → chunk-KQ5VO34X.js} +10 -10
  35. package/dist/cli/{chunk-WERGMZWN.js → chunk-N5VOE6KZ.js} +6 -6
  36. package/dist/cli/{chunk-VDPY5H2O.js → chunk-O7X44YGX.js} +8 -8
  37. package/dist/cli/{chunk-6PGOKDU6.js → chunk-PKOCM6JB.js} +52 -52
  38. package/dist/cli/{chunk-SH6USDDK.mjs → chunk-PM3DL6YP.mjs} +3 -3
  39. package/dist/cli/{chunk-YX7MZDHZ.mjs → chunk-PRA2CG4B.mjs} +1 -1
  40. package/dist/cli/{chunk-TZ4TBQ2Z.js → chunk-T77HG3R7.js} +2 -2
  41. package/dist/cli/{chunk-LRBTRCUF.mjs → chunk-UAUHERWW.mjs} +2 -2
  42. package/dist/cli/{chunk-WDXXERQH.js → chunk-UDJXL4SM.js} +79 -79
  43. package/dist/cli/{chunk-HVDBBCAX.mjs → chunk-VMCJGLJL.mjs} +2 -2
  44. package/dist/cli/{chunk-RP4IYLHA.js → chunk-WVCAELST.js} +6 -6
  45. package/dist/cli/{chunk-LUMGUYE2.mjs → chunk-XSEQLAHE.mjs} +2 -2
  46. package/dist/cli/{chunk-IDFPNLVX.mjs → chunk-YBSOJ6D4.mjs} +4 -4
  47. package/dist/cli/{chunk-GZRBC7HZ.js → chunk-ZMRP5UXN.js} +2 -2
  48. package/dist/cli/{csv-2KJBPEMG.mjs → csv-3TCORDI3.mjs} +3 -3
  49. package/dist/cli/{csv-Q47QCDHB.js → csv-R5I5ZWSC.js} +12 -12
  50. package/dist/cli/{db-FRBOGK6B.js → db-BXEK3WX2.js} +25 -25
  51. package/dist/cli/{db-RKW225IP.mjs → db-D7NC4XAM.mjs} +4 -4
  52. package/dist/cli/{describe-VEREOGGY.js → describe-LSOFG74H.js} +16 -16
  53. package/dist/cli/{describe-3Q7NYXXU.mjs → describe-SXYZTJQ5.mjs} +12 -12
  54. package/dist/cli/describe-core.d.mts +1 -1
  55. package/dist/cli/describe-core.d.ts +1 -1
  56. package/dist/cli/{executions-I4L6VJZB.js → executions-BF5YRFHH.js} +6 -6
  57. package/dist/cli/{executions-FL3NUICN.mjs → executions-ULXJPGV4.mjs} +4 -4
  58. package/dist/cli/{feedback-NAGE2PRW.mjs → feedback-6FJOHQJB.mjs} +3 -3
  59. package/dist/cli/{feedback-WTZLQVI3.js → feedback-VJM56OFG.js} +7 -7
  60. package/dist/cli/git-TSBBSAK3.js +24 -0
  61. package/dist/cli/{git-QNJZP2MW.mjs → git-WGZMHPW3.mjs} +4 -4
  62. package/dist/cli/index.js +131 -131
  63. package/dist/cli/index.mjs +36 -36
  64. package/dist/cli/{legacy-noops-N5YDGZUF.mjs → legacy-noops-EVFQBQ6H.mjs} +4 -4
  65. package/dist/cli/{legacy-noops-2RXFVWWK.js → legacy-noops-ZRDESRRJ.js} +7 -7
  66. package/dist/cli/{monitors-ONRSWSUR.mjs → monitors-4PMVB7RD.mjs} +4 -4
  67. package/dist/cli/{monitors-CAZWVMZQ.js → monitors-FR4OSX77.js} +84 -84
  68. package/dist/cli/{org-VEDGZPM5.js → org-HSY6TVRI.js} +64 -64
  69. package/dist/cli/{org-XNOK4ER3.mjs → org-QBENPGXU.mjs} +4 -4
  70. package/dist/cli/{play-IGZ5BFVM.mjs → play-7O7GXOWT.mjs} +10 -10
  71. package/dist/cli/{play-HQVDEYK4.js → play-JSY4OSLN.js} +283 -283
  72. package/dist/cli/{providers-YCUFONNU.mjs → providers-76OM5TQ7.mjs} +4 -4
  73. package/dist/cli/{providers-JQIY4LTO.js → providers-RLLSVNR6.js} +7 -7
  74. package/dist/cli/{quickstart-2VOWSIUB.js → quickstart-MZZDW6VC.js} +5 -5
  75. package/dist/cli/{quickstart-TMYBEJO5.mjs → quickstart-UHB5GNJV.mjs} +3 -3
  76. package/dist/cli/search-GCMZS6IK.js +30 -0
  77. package/dist/cli/{search-KDSGVOKV.mjs → search-X5P34RAU.mjs} +5 -5
  78. package/dist/cli/{secrets-MOAG6VTW.js → secrets-EKVWSDQT.js} +13 -13
  79. package/dist/cli/{secrets-727RQLRS.mjs → secrets-L43HK4A6.mjs} +4 -4
  80. package/dist/cli/{sessions-GTOWZM56.js → sessions-IPV23HXJ.js} +5 -5
  81. package/dist/cli/{sessions-FOJSYLPP.mjs → sessions-QPK5NPXO.mjs} +4 -4
  82. package/dist/cli/{settings-GH2LESJC.js → settings-5CJ6SMAN.js} +75 -75
  83. package/dist/cli/{settings-PHQWG5PA.mjs → settings-NF4VMLGN.mjs} +8 -8
  84. package/dist/cli/{setup-3MLWDT7O.mjs → setup-3JVUB4V6.mjs} +7 -7
  85. package/dist/cli/{setup-K3QF5D4M.js → setup-FHK6S4JC.js} +42 -42
  86. package/dist/cli/{skills-O7LZQCX7.mjs → skills-HZLL2C7G.mjs} +5 -5
  87. package/dist/cli/skills-U2R75N5D.js +29 -0
  88. package/dist/cli/tools-N57LENEU.js +44 -0
  89. package/dist/cli/{tools-JFR7OIWE.mjs → tools-TG5SDGNS.mjs} +12 -12
  90. package/dist/cli/{update-XAIGSL6B.mjs → update-4UZ6PUZK.mjs} +7 -7
  91. package/dist/cli/update-WYEO75YZ.js +31 -0
  92. package/dist/cli/{workflow-7MJHESH5.mjs → workflow-FAJY6TR4.mjs} +5 -5
  93. package/dist/cli/{workflow-OBS3E5YV.js → workflow-UTPL4KIF.js} +15 -15
  94. package/dist/{client-C0VoQB5b.d.ts → client-CgmfMj_N.d.ts} +73 -4
  95. package/dist/{client-BuCrTjW6.d.mts → client-DIY1WpSW.d.mts} +73 -4
  96. package/dist/index.d.mts +2 -2
  97. package/dist/index.d.ts +2 -2
  98. package/dist/index.js +6 -6
  99. package/dist/index.mjs +3 -3
  100. package/dist/install-integrity.json +80 -80
  101. package/dist/plays/play-description.d.mts +1 -1
  102. package/dist/plays/play-description.d.ts +1 -1
  103. package/dist/plays/run-request.d.mts +1 -1
  104. package/dist/plays/run-request.d.ts +1 -1
  105. package/dist/release.d.mts +1 -1
  106. package/dist/release.d.ts +1 -1
  107. package/dist/release.js +2 -2
  108. package/dist/release.mjs +1 -1
  109. package/dist/viewer/viewer.css +4 -0
  110. package/dist/viewer/viewer.js +19 -3
  111. package/package.json +1 -1
  112. package/dist/cli/auth-CAEXNNLE.js +0 -40
  113. package/dist/cli/git-YVMBJSIX.js +0 -24
  114. package/dist/cli/search-OFXBZEHY.js +0 -30
  115. package/dist/cli/skills-4TXIFS73.js +0 -29
  116. package/dist/cli/tools-WXKOQ2KT.js +0 -44
  117. package/dist/cli/update-MNROQP5A.js +0 -31
@@ -1,19 +1,19 @@
1
1
  import {
2
2
  npmSupportsAllowScripts,
3
3
  readNpmVersion
4
- } from "./chunk-YX7MZDHZ.mjs";
4
+ } from "./chunk-PRA2CG4B.mjs";
5
5
  import {
6
6
  runSkillsCommand
7
- } from "./chunk-SH6USDDK.mjs";
7
+ } from "./chunk-PM3DL6YP.mjs";
8
8
  import {
9
9
  resolveShellSpawn
10
- } from "./chunk-7EH5BMGH.mjs";
10
+ } from "./chunk-3C25DYSE.mjs";
11
11
  import {
12
12
  printCommandEnvelope
13
- } from "./chunk-4FE6NO56.mjs";
13
+ } from "./chunk-HAC6SRO5.mjs";
14
14
  import {
15
15
  autoDetectBaseUrl
16
- } from "./chunk-6K6BT5BB.mjs";
16
+ } from "./chunk-3ET2ZKZS.mjs";
17
17
 
18
18
  // src/cli/commands/update.ts
19
19
  import { spawn, spawnSync } from "child_process";
@@ -17,7 +17,7 @@ import {
17
17
  } from "./chunk-E4IXDAZI.mjs";
18
18
  import {
19
19
  SDK_RELEASE
20
- } from "./chunk-XEZE25CL.mjs";
20
+ } from "./chunk-42JTV4IM.mjs";
21
21
 
22
22
  // src/config.ts
23
23
  import {
@@ -49,7 +49,7 @@ var SDK_RELEASE = {
49
49
  // getters keep their established compatibility behavior.
50
50
  // 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
51
51
  // 0.3.90 is the first deliberately versioned SDK release for API v3.
52
- version: "0.3.432",
52
+ version: "0.3.433",
53
53
  updateSummary: {
54
54
  introducedIn: "0.3.90",
55
55
  summary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release."
@@ -17,7 +17,7 @@ var _chunkXNYIZMNQjs = require('./chunk-XNYIZMNQ.js');
17
17
  var _chunkPPDBRJRWjs = require('./chunk-PPDBRJRW.js');
18
18
 
19
19
 
20
- var _chunkTWDC5S4Yjs = require('./chunk-TWDC5S4Y.js');
20
+ var _chunkJNX4Y37Gjs = require('./chunk-JNX4Y37G.js');
21
21
 
22
22
  // src/config.ts
23
23
 
@@ -649,9 +649,9 @@ function resolveCliCommandContext(inputConfig, requestedScope) {
649
649
  }
650
650
 
651
651
  // src/version.ts
652
- var SDK_VERSION = _chunkTWDC5S4Yjs.SDK_RELEASE.version;
653
- var SDK_API_MAJOR = _chunkTWDC5S4Yjs.SDK_RELEASE.contracts.api.currentMajor;
654
- var SDK_API_CONTRACT = _nullishCoalesce(_chunkTWDC5S4Yjs.SDK_RELEASE.contracts.api.legacyWireIds[0], () => ( `api-v${SDK_API_MAJOR}`));
652
+ var SDK_VERSION = _chunkJNX4Y37Gjs.SDK_RELEASE.version;
653
+ var SDK_API_MAJOR = _chunkJNX4Y37Gjs.SDK_RELEASE.contracts.api.currentMajor;
654
+ var SDK_API_CONTRACT = _nullishCoalesce(_chunkJNX4Y37Gjs.SDK_RELEASE.contracts.api.legacyWireIds[0], () => ( `api-v${SDK_API_MAJOR}`));
655
655
 
656
656
  // src/agent-runtime.ts
657
657
 
@@ -5,7 +5,7 @@ import {
5
5
  import {
6
6
  recentSearchRef,
7
7
  registerDeprecatedSearchCommand
8
- } from "./chunk-NVHT5QVI.mjs";
8
+ } from "./chunk-2TNGO4DZ.mjs";
9
9
  import {
10
10
  arrayField,
11
11
  formatModelDescription,
@@ -45,7 +45,7 @@ import {
45
45
  import {
46
46
  DeeplineClient,
47
47
  validateExecutionIdempotencyKey
48
- } from "./chunk-2LN26ID6.mjs";
48
+ } from "./chunk-GZS6ZB55.mjs";
49
49
  import {
50
50
  stableStringify
51
51
  } from "./chunk-UBKA33KY.mjs";
@@ -55,18 +55,18 @@ import {
55
55
  maybeAutoUpdateAndRelaunch,
56
56
  registerCompatibilityCatalog,
57
57
  runToolExecuteStage
58
- } from "./chunk-IDFPNLVX.mjs";
58
+ } from "./chunk-YBSOJ6D4.mjs";
59
59
  import {
60
60
  isCliTraceEnabled,
61
61
  recordCliTrace,
62
62
  resolveCliMaintenancePolicy
63
- } from "./chunk-3PFDDZSK.mjs";
63
+ } from "./chunk-BSQH4V3Y.mjs";
64
64
  import {
65
65
  checkSdkCompatibility,
66
66
  enforceSdkCompatibilityResponse,
67
67
  flushDeferredSkillsSyncNotices,
68
68
  syncSdkSkillsIfNeeded
69
- } from "./chunk-7EH5BMGH.mjs";
69
+ } from "./chunk-3C25DYSE.mjs";
70
70
  import {
71
71
  printCommandEnvelope,
72
72
  printCompactJson,
@@ -74,12 +74,12 @@ import {
74
74
  printJsonError,
75
75
  renderCommandEnvelopeText,
76
76
  shouldEmitJson
77
- } from "./chunk-4FE6NO56.mjs";
77
+ } from "./chunk-HAC6SRO5.mjs";
78
78
  import {
79
79
  readSdkSkillsLocalVersion,
80
80
  resolveConfig,
81
81
  sdkCliStateDirPath
82
- } from "./chunk-6K6BT5BB.mjs";
82
+ } from "./chunk-3ET2ZKZS.mjs";
83
83
  import {
84
84
  DeeplineError
85
85
  } from "./chunk-E4IXDAZI.mjs";
@@ -936,7 +936,7 @@ Examples:
936
936
  process.exitCode = await narrowView();
937
937
  return;
938
938
  }
939
- const { describeAnything } = await import("./describe-3Q7NYXXU.mjs");
939
+ const { describeAnything } = await import("./describe-SXYZTJQ5.mjs");
940
940
  process.exitCode = await describeAnything(
941
941
  toolId,
942
942
  {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  writeRawStderr
3
- } from "./chunk-4FE6NO56.mjs";
3
+ } from "./chunk-HAC6SRO5.mjs";
4
4
 
5
5
  // src/cli/maintenance-policy.ts
6
6
  import { InvalidArgumentError } from "commander";
@@ -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 _chunkGZRBC7HZjs = require('./chunk-GZRBC7HZ.js');
4
+ var _chunkZMRP5UXNjs = require('./chunk-ZMRP5UXN.js');
5
5
 
6
6
 
7
- var _chunk4UEGE3TLjs = require('./chunk-4UEGE3TL.js');
7
+ var _chunkDAEODAWBjs = require('./chunk-DAEODAWB.js');
8
8
 
9
9
 
10
- var _chunk6PGOKDU6js = require('./chunk-6PGOKDU6.js');
10
+ var _chunkPKOCM6JBjs = require('./chunk-PKOCM6JB.js');
11
11
 
12
12
 
13
- var _chunkWERGMZWNjs = require('./chunk-WERGMZWN.js');
13
+ var _chunkN5VOE6KZjs = require('./chunk-N5VOE6KZ.js');
14
14
 
15
15
 
16
- var _chunkZM23AO4Djs = require('./chunk-ZM23AO4D.js');
16
+ var _chunk6R6SQQGQjs = require('./chunk-6R6SQQGQ.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 = _chunk6PGOKDU6js.resolveShellSpawn.call(void 0,
498
+ const plan = _chunkPKOCM6JBjs.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 ? _chunkGZRBC7HZjs.readNpmVersion.call(void 0, env) : options.npmVersion;
560
- const npmGlobalInstallFlags = _chunkGZRBC7HZjs.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 ? _chunkZMRP5UXNjs.readNpmVersion.call(void 0, env) : options.npmVersion;
560
+ const npmGlobalInstallFlags = _chunkZMRP5UXNjs.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()]) || _chunkZM23AO4Djs.autoDetectBaseUrl.call(void 0, )
570
+ _optionalChain([env, 'access', _22 => _22.DEEPLINE_HOST_URL, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()]) || _chunk6R6SQQGQjs.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 = _chunk6PGOKDU6js.resolveShellSpawn.call(void 0, command, args, process.platform, env);
819
+ const plan = _chunkPKOCM6JBjs.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, () => ( _chunkZM23AO4Djs.autoDetectBaseUrl));
1202
+ const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => ( _chunk6R6SQQGQjs.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 _chunk4UEGE3TLjs.runSkillsCommand.call(void 0, { json: true });
1209
+ const exitCode = await _chunkDAEODAWBjs.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
- _chunkWERGMZWNjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: true });
1280
+ _chunkN5VOE6KZjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: true });
1281
1281
  return 0;
1282
1282
  }
1283
1283
  if (options.printCommand) {
1284
- _chunkWERGMZWNjs.printCommandEnvelope.call(void 0,
1284
+ _chunkN5VOE6KZjs.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
- _chunkWERGMZWNjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: false });
1297
+ _chunkN5VOE6KZjs.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
- _chunkWERGMZWNjs.printCommandEnvelope.call(void 0,
1327
+ _chunkN5VOE6KZjs.printCommandEnvelope.call(void 0,
1328
1328
  {
1329
1329
  ok: true,
1330
1330
  pinnedVersion
@@ -11,10 +11,10 @@
11
11
 
12
12
 
13
13
 
14
- var _chunk6PGOKDU6js = require('./chunk-6PGOKDU6.js');
14
+ var _chunkPKOCM6JBjs = require('./chunk-PKOCM6JB.js');
15
15
 
16
16
 
17
- var _chunkWERGMZWNjs = require('./chunk-WERGMZWN.js');
17
+ var _chunkN5VOE6KZjs = require('./chunk-N5VOE6KZ.js');
18
18
 
19
19
 
20
20
 
@@ -22,7 +22,7 @@ var _chunkWERGMZWNjs = require('./chunk-WERGMZWN.js');
22
22
 
23
23
 
24
24
 
25
- var _chunkZM23AO4Djs = require('./chunk-ZM23AO4D.js');
25
+ var _chunk6R6SQQGQjs = require('./chunk-6R6SQQGQ.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 = _chunkZM23AO4Djs.resolveProjectPinTarget.call(void 0, );
78
+ const target = _chunk6R6SQQGQjs.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, () => ( _chunkZM23AO4Djs.detectAgentRuntime.call(void 0, )));
89
+ const runtime = _nullishCoalesce(input.runtime, () => ( _chunk6R6SQQGQjs.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, _chunkZM23AO4Djs.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, _chunk6R6SQQGQjs.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 = [..._chunk6PGOKDU6js.LEGACY_SKILL_NAMES_TO_REMOVE].sort(
108
+ const legacyNames = [..._chunkPKOCM6JBjs.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=${_chunk6PGOKDU6js.SKILLS_NPX_PACKAGE}`,
122
+ `--package=${_chunkPKOCM6JBjs.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=${_chunk6PGOKDU6js.SKILLS_NPX_PACKAGE}`,
138
+ `--package=${_chunkPKOCM6JBjs.SKILLS_NPX_PACKAGE}`,
139
139
  "--",
140
140
  "skills",
141
141
  "add",
142
- _chunk6PGOKDU6js.skillsSourceUrl.call(void 0, input.baseUrl),
142
+ _chunkPKOCM6JBjs.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 = _chunk6PGOKDU6js.resolveShellSpawn.call(void 0,
179
+ const plan = _chunkPKOCM6JBjs.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
- `${_chunk6PGOKDU6js.SKILLS_NPX_PACKAGE} timed out after ${SKILLS_PROCESS_TIMEOUT_MS}ms.`
201
+ `${_chunkPKOCM6JBjs.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(`${_chunk6PGOKDU6js.SKILLS_NPX_PACKAGE} exited ${code}.
212
+ process.stderr.write(`${_chunkPKOCM6JBjs.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
- _chunkWERGMZWNjs.printCommandEnvelope.call(void 0,
226
+ _chunkN5VOE6KZjs.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 = _chunkZM23AO4Djs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
238
+ const baseUrl = _chunk6R6SQQGQjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
239
239
  const catalog = {
240
- skillNames: [..._chunk6PGOKDU6js.DEFAULT_SDK_SKILL_NAMES],
241
- version: _chunkZM23AO4Djs.SDK_VERSION
240
+ skillNames: [..._chunkPKOCM6JBjs.DEFAULT_SDK_SKILL_NAMES],
241
+ version: _chunk6R6SQQGQjs.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
- _chunkWERGMZWNjs.printCommandEnvelope.call(void 0,
246
+ _chunkN5VOE6KZjs.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)) && !_chunk6PGOKDU6js.hasFailedAutomaticSkillsSync.call(void 0, baseUrl, agents)) {
253
- _chunkWERGMZWNjs.printCommandEnvelope.call(void 0,
252
+ if (isSkillsPlanCurrent(plan, readSkillsInstallState(plan.statePath)) && !_chunkPKOCM6JBjs.hasFailedAutomaticSkillsSync.call(void 0, baseUrl, agents)) {
253
+ _chunkN5VOE6KZjs.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, ..._chunk6PGOKDU6js.LEGACY_SKILL_NAMES_TO_REMOVE])
285
+ .../* @__PURE__ */ new Set([...plan.skillNames, ..._chunkPKOCM6JBjs.LEGACY_SKILL_NAMES_TO_REMOVE])
286
286
  ];
287
287
  const agentRoots = workspaceSkillRootsForAgents(plan.agents);
288
- _chunkZM23AO4Djs.ensureProjectPrivatePathsIgnored.call(void 0, root, [
288
+ _chunk6R6SQQGQjs.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 _chunk6PGOKDU6js.acquireSkillsInstallLease.call(void 0, baseUrl, agents, plan.version, {
297
+ lease = scope === "global" ? await _chunkPKOCM6JBjs.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 _chunk6PGOKDU6js.SkillsStateUnavailableError)) throw error;
306
- _chunkWERGMZWNjs.printCommandEnvelope.call(void 0,
305
+ if (!(error instanceof _chunkPKOCM6JBjs.SkillsStateUnavailableError)) throw error;
306
+ _chunkN5VOE6KZjs.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
- _chunkWERGMZWNjs.printCommandEnvelope.call(void 0,
322
+ _chunkN5VOE6KZjs.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 ${_chunk6PGOKDU6js.skillsInstallLeasePath.call(void 0, baseUrl, agents)}`
331
+ next: `Retry in a moment: deepline skills --scope ${scope}. If no refresh is running, remove ${_chunkPKOCM6JBjs.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
- _chunkWERGMZWNjs.printCommandEnvelope.call(void 0,
368
+ _chunkN5VOE6KZjs.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: _chunkZM23AO4Djs.SDK_VERSION,
407
+ cliVersion: _chunk6R6SQQGQjs.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
- _chunk6PGOKDU6js.clearFailedAutomaticSkillsSync.call(void 0, baseUrl, agents);
420
+ _chunkPKOCM6JBjs.clearFailedAutomaticSkillsSync.call(void 0, baseUrl, agents);
421
421
  }
422
- _chunkWERGMZWNjs.printCommandEnvelope.call(void 0,
422
+ _chunkN5VOE6KZjs.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 ${_chunk6PGOKDU6js.SKILLS_NPX_PACKAGE},
453
+ This command reinstalls current Deepline-managed skills using ${_chunkPKOCM6JBjs.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(_chunk6PGOKDU6js.SKILLS_AUTO_SYNC_COMMAND, { hidden: true }).description("Refresh Deepline agent skills in the background.").option(
465
+ program.command(_chunkPKOCM6JBjs.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
- _chunkWERGMZWNjs.printCommandEnvelope.call(void 0,
471
+ _chunkN5VOE6KZjs.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 _chunk6PGOKDU6js.syncSdkSkillsIfNeeded.call(void 0, _chunkZM23AO4Djs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, ""), {
484
+ await _chunkPKOCM6JBjs.syncSdkSkillsIfNeeded.call(void 0, _chunk6R6SQQGQjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, ""), {
485
485
  mode: "inline",
486
486
  notices: "defer",
487
487
  claim