deepline 0.3.509 → 0.3.511

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 (152) hide show
  1. package/dist/bundling-sources/sdk/src/client-core.ts +159 -0
  2. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  3. package/dist/bundling-sources/shared_libs/monitors/org-monitor-limits.ts +7 -2
  4. package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +3 -3
  5. package/dist/bundling-sources/shared_libs/play-runtime/deployment/commands/roll-execution-relay.ts +94 -43
  6. package/dist/bundling-sources/shared_libs/play-runtime/deployment/commands/roll-receipt-gateway.ts +111 -27
  7. package/dist/bundling-sources/shared_libs/play-runtime/deployment/commands/runtime-topology.ts +79 -6
  8. package/dist/bundling-sources/shared_libs/play-runtime/deployment/fly-machines.ts +80 -6
  9. package/dist/bundling-sources/shared_libs/play-runtime/deployment/fly-transient-retry.ts +571 -0
  10. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +218 -33
  11. package/dist/cli/artifacts-G6JHRHY5.mjs +268 -0
  12. package/dist/cli/artifacts-PLF5ZUS7.js +268 -0
  13. package/dist/cli/{auth-6IR2QH4N.mjs → auth-2XMJMDWG.mjs} +5 -5
  14. package/dist/cli/auth-PI2KS2CD.js +43 -0
  15. package/dist/cli/{billing-WEWHH6ST.mjs → billing-6C5AI42X.mjs} +7 -7
  16. package/dist/cli/{billing-SYBK3ZYU.js → billing-Z3XFXP3H.js} +82 -82
  17. package/dist/cli/{chunk-JZJNA57M.js → chunk-2Q4H2Y6N.js} +6 -6
  18. package/dist/cli/{chunk-VTVZ7EUA.js → chunk-2YVRIXVR.js} +9 -9
  19. package/dist/cli/{chunk-RSKAPLST.mjs → chunk-5WTLXL6O.mjs} +1 -1
  20. package/dist/cli/{chunk-YJM3NOME.mjs → chunk-77DPQI6W.mjs} +94 -10
  21. package/dist/cli/{chunk-FNLGMMJJ.mjs → chunk-ASXOFBF7.mjs} +2 -2
  22. package/dist/cli/{chunk-AO63MXT6.js → chunk-BHV7JKXQ.js} +1 -1
  23. package/dist/cli/{chunk-RA2NKHV5.js → chunk-D5VWSR4D.js} +5 -5
  24. package/dist/cli/{chunk-CMSPA5VX.js → chunk-FAGSSIOY.js} +6 -6
  25. package/dist/cli/{chunk-J5P4PDRT.js → chunk-FF25PDQ2.js} +94 -10
  26. package/dist/cli/{chunk-SEQIB5WJ.mjs → chunk-FTT2SBBH.mjs} +5 -5
  27. package/dist/cli/{chunk-5Y3I5LEQ.js → chunk-FV4PASXH.js} +16 -16
  28. package/dist/cli/{chunk-GTAU4C44.js → chunk-GD3ES3JU.js} +14 -14
  29. package/dist/cli/{chunk-HMAETS53.js → chunk-GGQHOLH6.js} +3 -3
  30. package/dist/cli/{chunk-T67NAGSD.mjs → chunk-GJWL4KTY.mjs} +4 -4
  31. package/dist/cli/{chunk-6KBVQ76G.mjs → chunk-HLEZQDEZ.mjs} +2 -2
  32. package/dist/cli/{chunk-WJ6H2W3O.mjs → chunk-ISY7PBIK.mjs} +5 -5
  33. package/dist/cli/{chunk-AD45WJHN.js → chunk-IYWN7M4I.js} +5 -5
  34. package/dist/cli/{chunk-3CZHC24N.mjs → chunk-JDDKJIZU.mjs} +1 -1
  35. package/dist/cli/{chunk-E3HWUGDT.mjs → chunk-JHBZBCU4.mjs} +1 -1
  36. package/dist/cli/{chunk-7KALZEDZ.js → chunk-JIY25SUX.js} +4 -4
  37. package/dist/cli/{chunk-726UDAV2.js → chunk-JYFLIQPE.js} +7 -7
  38. package/dist/cli/{chunk-DGOSW42X.js → chunk-K4JB2BZP.js} +96 -96
  39. package/dist/cli/{chunk-XEQH65DT.mjs → chunk-KK6NZHAJ.mjs} +1 -1
  40. package/dist/cli/chunk-KUDNPJ43.js +77 -0
  41. package/dist/cli/{chunk-IZW7IOD6.mjs → chunk-KXGH4YUQ.mjs} +1 -1
  42. package/dist/cli/{chunk-Q7G6WORO.js → chunk-KZBKQPSA.js} +2 -2
  43. package/dist/cli/{chunk-4DVANPBN.js → chunk-LDZYGM7W.js} +41 -41
  44. package/dist/cli/{chunk-XPKBYMJH.js → chunk-LKSJXTRP.js} +53 -53
  45. package/dist/cli/{chunk-Q5UO2ENN.js → chunk-NVMNMKZW.js} +3 -3
  46. package/dist/cli/{chunk-VZ773N7G.js → chunk-O37BQ2CG.js} +21 -10
  47. package/dist/cli/{chunk-OOD5LGUS.mjs → chunk-OQ4YBPOQ.mjs} +3 -3
  48. package/dist/cli/{chunk-UART6FGK.mjs → chunk-PCI4MMH7.mjs} +1 -1
  49. package/dist/cli/{chunk-2ZJRCAHG.js → chunk-PI45LZ5B.js} +11 -11
  50. package/dist/cli/{chunk-O527H5GY.js → chunk-PUFEARWT.js} +16 -16
  51. package/dist/cli/{chunk-25MAOMVS.mjs → chunk-QDWNVTTO.mjs} +2 -2
  52. package/dist/cli/{chunk-WUKNKFB3.mjs → chunk-RPPU3XB3.mjs} +2 -2
  53. package/dist/cli/{chunk-XIBNY6H6.mjs → chunk-S5C4CWSS.mjs} +5 -5
  54. package/dist/cli/{chunk-2U7Z4LFG.mjs → chunk-S6KEACD3.mjs} +6 -6
  55. package/dist/cli/{chunk-Y4M5HPQV.mjs → chunk-SI4QXATV.mjs} +5 -5
  56. package/dist/cli/{chunk-R2KNJMOY.mjs → chunk-VEOFISLZ.mjs} +1 -1
  57. package/dist/cli/{chunk-Z2LVZDO5.js → chunk-VHFTN6VY.js} +44 -44
  58. package/dist/cli/{chunk-54YPOG5W.mjs → chunk-VQ74WMKG.mjs} +15 -4
  59. package/dist/cli/{chunk-ZXGMWXZW.js → chunk-WDBEWOU6.js} +2 -2
  60. package/dist/cli/{chunk-6TBRWRJ2.js → chunk-XGXXNT4O.js} +270 -199
  61. package/dist/cli/chunk-XREZY4FA.mjs +77 -0
  62. package/dist/cli/{chunk-K2RCVD7S.mjs → chunk-XSBGWMI6.mjs} +72 -1
  63. package/dist/cli/{chunk-S7JEF2MR.mjs → chunk-XXQZYLLL.mjs} +2 -2
  64. package/dist/cli/{chunk-EEEWADSR.mjs → chunk-XZ6IZIQJ.mjs} +2 -2
  65. package/dist/cli/{chunk-WPBTWRKG.js → chunk-YX7E2VQM.js} +26 -26
  66. package/dist/cli/{chunk-FQCIYGQY.mjs → chunk-ZFJ2U76O.mjs} +2 -2
  67. package/dist/cli/{chunk-7NMPGX3W.js → chunk-ZWGBQKW7.js} +21 -21
  68. package/dist/cli/{chunk-VH522HUP.mjs → chunk-ZYVR4A4P.mjs} +10 -10
  69. package/dist/cli/command-docs.js +2 -2
  70. package/dist/cli/command-docs.mjs +1 -1
  71. package/dist/cli/{csv-4LAJ2ZKG.mjs → csv-CNK6ZF3T.mjs} +4 -4
  72. package/dist/cli/{csv-5KNONIAX.js → csv-S44OGG2O.js} +13 -13
  73. package/dist/cli/{db-BEVCJI66.mjs → db-AVO6QJU6.mjs} +6 -6
  74. package/dist/cli/{db-5PEXOSN3.js → db-WKZ6EXNG.js} +27 -27
  75. package/dist/cli/{describe-TDJIUSD6.mjs → describe-2HQRT5MI.mjs} +18 -18
  76. package/dist/cli/describe-CCK77NER.js +50 -0
  77. package/dist/cli/describe-core.d.mts +2 -2
  78. package/dist/cli/describe-core.d.ts +2 -2
  79. package/dist/cli/{executions-KXCPU6YC.mjs → executions-DKHOR7HD.mjs} +6 -6
  80. package/dist/cli/{executions-36GV3A27.js → executions-MTAHNARA.js} +8 -8
  81. package/dist/cli/{feedback-GEUUT4S7.mjs → feedback-K6SJS4LG.mjs} +11 -7
  82. package/dist/cli/{feedback-SPQABV33.js → feedback-R2UABU3E.js} +15 -11
  83. package/dist/cli/{git-AE36X2R6.mjs → git-3EPA7433.mjs} +5 -5
  84. package/dist/cli/git-7L3PY2A4.js +25 -0
  85. package/dist/cli/index.js +177 -156
  86. package/dist/cli/index.mjs +80 -59
  87. package/dist/cli/{legacy-noops-TKPHN7WT.js → legacy-noops-3Q2D2F24.js} +9 -8
  88. package/dist/cli/{legacy-noops-LUEDAK7J.mjs → legacy-noops-66OPCJJD.mjs} +6 -5
  89. package/dist/cli/{monitors-JHJZ5XG7.mjs → monitors-2PYPRWT4.mjs} +7 -7
  90. package/dist/cli/{monitors-B2EAIGZI.js → monitors-KHH4MZDF.js} +100 -100
  91. package/dist/cli/{org-GUICCEBZ.mjs → org-WAW3OL7B.mjs} +6 -6
  92. package/dist/cli/{org-PYCPXEAU.js → org-X5G36B2Q.js} +72 -72
  93. package/dist/cli/{pages-Y2XI36HY.mjs → pages-KABWXDGW.mjs} +6 -6
  94. package/dist/cli/{pages-CV4TQNFY.js → pages-XDPHCHHU.js} +18 -18
  95. package/dist/cli/{play-VWCQNGZZ.mjs → play-654B2HQU.mjs} +18 -18
  96. package/dist/cli/{play-MTVK66JK.js → play-UE5FKQCO.js} +317 -317
  97. package/dist/cli/{providers-N72BUCXZ.js → providers-QT2BZMJ7.js} +9 -9
  98. package/dist/cli/{providers-ZOZTST3A.mjs → providers-SKNGX6IT.mjs} +6 -6
  99. package/dist/cli/{quickstart-DXIC3NHS.mjs → quickstart-BX7XMJIQ.mjs} +4 -4
  100. package/dist/cli/{quickstart-FK53VZB3.js → quickstart-XWDVAQTT.js} +6 -6
  101. package/dist/cli/{run-NNAYDCEN.js → run-C6YYD4AK.js} +41 -41
  102. package/dist/cli/{run-IL2KI33N.mjs → run-JTU4K4MY.mjs} +23 -23
  103. package/dist/cli/{search-7IPVMQCO.mjs → search-NHV4Y4SX.mjs} +8 -8
  104. package/dist/cli/search-RIFW5JCK.js +33 -0
  105. package/dist/cli/{search-output-ZY2GE35S.mjs → search-output-AAOMFK7K.mjs} +4 -4
  106. package/dist/cli/{search-output-YHTWLSDE.js → search-output-WLFFEGCY.js} +6 -6
  107. package/dist/cli/{secrets-ZML76SH2.js → secrets-H4WTLQJJ.js} +15 -15
  108. package/dist/cli/{secrets-BGUMHDZ7.mjs → secrets-S66PZSRO.mjs} +6 -6
  109. package/dist/cli/sessions-EFWO62XJ.js +18 -0
  110. package/dist/cli/{sessions-F5XO6HZJ.mjs → sessions-PY6FJX3O.mjs} +6 -5
  111. package/dist/cli/{settings-73SMIICV.mjs → settings-V7BM42KQ.mjs} +39 -12
  112. package/dist/cli/{settings-TOX2P5M5.js → settings-YO4FFPN6.js} +109 -82
  113. package/dist/cli/{setup-DNFHFQ7N.js → setup-IFZYYQ2W.js} +50 -50
  114. package/dist/cli/{setup-FDJZYBMS.mjs → setup-VUBM2HMH.mjs} +10 -10
  115. package/dist/cli/{skills-6HJ2IAY6.mjs → skills-EYWRSQQJ.mjs} +8 -8
  116. package/dist/cli/skills-LFP53SWQ.js +37 -0
  117. package/dist/cli/tools-SR2Q7KC5.js +57 -0
  118. package/dist/cli/{tools-4FJIIE4R.mjs → tools-VZOW4MUD.mjs} +17 -17
  119. package/dist/cli/update-ADZBZZZS.js +35 -0
  120. package/dist/cli/{update-UMRPPILV.mjs → update-CQDJJYU2.mjs} +10 -10
  121. package/dist/cli/{workflow-LSFOG5VU.mjs → workflow-2VRDIPF3.mjs} +7 -7
  122. package/dist/cli/{workflow-SK3BUHB4.js → workflow-XS3JEU6X.js} +17 -17
  123. package/dist/{client-DMpsMNH9.d.mts → client-By7bUS8h.d.mts} +1 -1
  124. package/dist/{client-BlwD-G4v.d.ts → client-CmlKSBXd.d.ts} +1 -1
  125. package/dist/{client-core-DwBLuEkm.d.ts → client-core-BM0mKhgp.d.ts} +93 -1
  126. package/dist/{client-core-CITtRTbB.d.mts → client-core-BZ3tpY_J.d.mts} +93 -1
  127. package/dist/index.d.mts +3 -3
  128. package/dist/index.d.ts +3 -3
  129. package/dist/index.js +9 -9
  130. package/dist/index.mjs +6 -6
  131. package/dist/install-integrity.json +111 -106
  132. package/dist/plays/play-description.d.mts +1 -1
  133. package/dist/plays/play-description.d.ts +1 -1
  134. package/dist/plays/run-request.d.mts +1 -1
  135. package/dist/plays/run-request.d.ts +1 -1
  136. package/dist/release.d.mts +1 -1
  137. package/dist/release.d.ts +1 -1
  138. package/dist/release.js +2 -2
  139. package/dist/release.mjs +1 -1
  140. package/dist/server.d.mts +2 -2
  141. package/dist/server.d.ts +2 -2
  142. package/dist/server.js +5 -5
  143. package/dist/server.mjs +3 -3
  144. package/package.json +1 -1
  145. package/dist/cli/auth-SUTQ4SZQ.js +0 -43
  146. package/dist/cli/describe-ZB6G6DOV.js +0 -50
  147. package/dist/cli/git-UX7L6R32.js +0 -25
  148. package/dist/cli/search-OZHP5ZE2.js +0 -33
  149. package/dist/cli/sessions-WDINUUZ3.js +0 -17
  150. package/dist/cli/skills-NE7WN5PP.js +0 -37
  151. package/dist/cli/tools-ETX4MNNO.js +0 -57
  152. package/dist/cli/update-N2DMPSUH.js +0 -35
@@ -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 _chunkQ7G6WOROjs = require('./chunk-Q7G6WORO.js');
4
+ var _chunkKZBKQPSAjs = require('./chunk-KZBKQPSA.js');
5
5
 
6
6
 
7
- var _chunk4DVANPBNjs = require('./chunk-4DVANPBN.js');
7
+ var _chunkLDZYGM7Wjs = require('./chunk-LDZYGM7W.js');
8
8
 
9
9
 
10
- var _chunkZ2LVZDO5js = require('./chunk-Z2LVZDO5.js');
10
+ var _chunkVHFTN6VYjs = require('./chunk-VHFTN6VY.js');
11
11
 
12
12
 
13
- var _chunk726UDAV2js = require('./chunk-726UDAV2.js');
13
+ var _chunkJYFLIQPEjs = require('./chunk-JYFLIQPE.js');
14
14
 
15
15
 
16
- var _chunkHMAETS53js = require('./chunk-HMAETS53.js');
16
+ var _chunkGGQHOLH6js = require('./chunk-GGQHOLH6.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 = _chunkZ2LVZDO5js.resolveShellSpawn.call(void 0,
498
+ const plan = _chunkVHFTN6VYjs.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 ? _chunkQ7G6WOROjs.readNpmVersion.call(void 0, env) : options.npmVersion;
560
- const npmGlobalInstallFlags = _chunkQ7G6WOROjs.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 ? _chunkKZBKQPSAjs.readNpmVersion.call(void 0, env) : options.npmVersion;
560
+ const npmGlobalInstallFlags = _chunkKZBKQPSAjs.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()]) || _chunkHMAETS53js.autoDetectBaseUrl.call(void 0, )
570
+ _optionalChain([env, 'access', _22 => _22.DEEPLINE_HOST_URL, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()]) || _chunkGGQHOLH6js.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 = _chunkZ2LVZDO5js.resolveShellSpawn.call(void 0, command, args, process.platform, env);
819
+ const plan = _chunkVHFTN6VYjs.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, () => ( _chunkHMAETS53js.autoDetectBaseUrl));
1202
+ const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => ( _chunkGGQHOLH6js.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 _chunk4DVANPBNjs.runSkillsCommand.call(void 0, { json: true });
1209
+ const exitCode = await _chunkLDZYGM7Wjs.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
- _chunk726UDAV2js.printCommandEnvelope.call(void 0, { ...plan, render }, { json: true });
1280
+ _chunkJYFLIQPEjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: true });
1281
1281
  return 0;
1282
1282
  }
1283
1283
  if (options.printCommand) {
1284
- _chunk726UDAV2js.printCommandEnvelope.call(void 0,
1284
+ _chunkJYFLIQPEjs.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
- _chunk726UDAV2js.printCommandEnvelope.call(void 0, { ...plan, render }, { json: false });
1297
+ _chunkJYFLIQPEjs.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 install
1324
1324
  );
1325
1325
  }
1326
1326
  if (options.executeWithJson && options.json) {
1327
- _chunk726UDAV2js.printCommandEnvelope.call(void 0,
1327
+ _chunkJYFLIQPEjs.printCommandEnvelope.call(void 0,
1328
1328
  {
1329
1329
  ok: true,
1330
1330
  pinnedVersion
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  autoDetectBaseUrl,
3
3
  resolveApiKeyForBaseUrl
4
- } from "./chunk-R2KNJMOY.mjs";
4
+ } from "./chunk-VEOFISLZ.mjs";
5
5
  import {
6
6
  SDK_VERSION,
7
7
  agentSessionIdFromEnvironment,
8
8
  deploymentProtectionHeaders,
9
9
  detectAgentRuntime
10
- } from "./chunk-3CZHC24N.mjs";
10
+ } from "./chunk-JDDKJIZU.mjs";
11
11
  import {
12
12
  DeeplineError
13
13
  } from "./chunk-HBL4PM5Q.mjs";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-F6QV42MC.mjs";
4
4
  import {
5
5
  parseLogLevel
6
- } from "./chunk-K2RCVD7S.mjs";
6
+ } from "./chunk-XSBGWMI6.mjs";
7
7
  import {
8
8
  setDottedInputValue
9
9
  } from "./chunk-N4TR6QRI.mjs";
@@ -11,7 +11,7 @@ import {
11
11
  argsWantJson,
12
12
  jsonFieldArgs,
13
13
  parseJsonFields
14
- } from "./chunk-6KBVQ76G.mjs";
14
+ } from "./chunk-HLEZQDEZ.mjs";
15
15
  import {
16
16
  DeeplineError
17
17
  } from "./chunk-HBL4PM5Q.mjs";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  getActiveCliProgress
3
- } from "./chunk-UART6FGK.mjs";
3
+ } from "./chunk-PCI4MMH7.mjs";
4
4
  import {
5
5
  maybeReportAutomaticSkillsSyncFailure
6
- } from "./chunk-25MAOMVS.mjs";
6
+ } from "./chunk-QDWNVTTO.mjs";
7
7
  import {
8
8
  DEFAULT_SKILL_AGENTS,
9
9
  KNOWN_SKILL_AGENTS,
@@ -14,17 +14,17 @@ import {
14
14
  sdkCliStateDirPath,
15
15
  skillsAgentPathSegment,
16
16
  writeSdkSkillsLocalVersion
17
- } from "./chunk-R2KNJMOY.mjs";
17
+ } from "./chunk-VEOFISLZ.mjs";
18
18
  import {
19
19
  SDK_API_CONTRACT,
20
20
  SDK_API_MAJOR,
21
21
  SDK_VERSION,
22
22
  deploymentProtectionHeaders,
23
23
  detectAgentRuntime
24
- } from "./chunk-3CZHC24N.mjs";
24
+ } from "./chunk-JDDKJIZU.mjs";
25
25
  import {
26
26
  SDK_RELEASE
27
- } from "./chunk-RSKAPLST.mjs";
27
+ } from "./chunk-5WTLXL6O.mjs";
28
28
 
29
29
  // src/compat.ts
30
30
  import { randomUUID } from "crypto";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  seedToolListScript
3
- } from "./chunk-VH522HUP.mjs";
3
+ } from "./chunk-ZYVR4A4P.mjs";
4
4
  import {
5
5
  addDescribeOptions
6
- } from "./chunk-E3HWUGDT.mjs";
6
+ } from "./chunk-JHBZBCU4.mjs";
7
7
  import {
8
8
  describeLookupsFor,
9
9
  describeName,
@@ -14,18 +14,18 @@ import {
14
14
  } from "./chunk-ITJ7NB2D.mjs";
15
15
  import {
16
16
  DeeplineClient
17
- } from "./chunk-FQCIYGQY.mjs";
17
+ } from "./chunk-ZFJ2U76O.mjs";
18
18
  import {
19
19
  failureReportHeaders,
20
20
  isFailureReportingDisabled
21
- } from "./chunk-25MAOMVS.mjs";
21
+ } from "./chunk-QDWNVTTO.mjs";
22
22
  import {
23
23
  printCommandEnvelope
24
- } from "./chunk-6KBVQ76G.mjs";
24
+ } from "./chunk-HLEZQDEZ.mjs";
25
25
  import {
26
26
  autoDetectBaseUrl,
27
27
  resolveApiKeyForBaseUrl
28
- } from "./chunk-R2KNJMOY.mjs";
28
+ } from "./chunk-VEOFISLZ.mjs";
29
29
 
30
30
  // src/cli/commands/describe.ts
31
31
  import { writeFileSync } from "fs";
@@ -3,18 +3,18 @@ import {
3
3
  } from "./chunk-5AEDYVB6.mjs";
4
4
  import {
5
5
  DeeplineClient
6
- } from "./chunk-FQCIYGQY.mjs";
6
+ } from "./chunk-ZFJ2U76O.mjs";
7
7
  import {
8
8
  resolveSdkCliFailureExitCode
9
- } from "./chunk-25MAOMVS.mjs";
9
+ } from "./chunk-QDWNVTTO.mjs";
10
10
  import {
11
11
  errorToJsonPayload,
12
12
  printCommandEnvelope
13
- } from "./chunk-6KBVQ76G.mjs";
13
+ } from "./chunk-HLEZQDEZ.mjs";
14
14
  import {
15
15
  resolveConfig,
16
16
  sdkCliStateDirPath
17
- } from "./chunk-R2KNJMOY.mjs";
17
+ } from "./chunk-VEOFISLZ.mjs";
18
18
 
19
19
  // src/cli/commands/search.ts
20
20
  import { Option } from "commander";
@@ -136,7 +136,7 @@ async function runSearch(queryInputs, options, types, exclude = []) {
136
136
  }
137
137
  const client = new DeeplineClient();
138
138
  const json = options.json === true;
139
- const renderer = json ? void 0 : await import("./search-output-ZY2GE35S.mjs");
139
+ const renderer = json ? void 0 : await import("./search-output-AAOMFK7K.mjs");
140
140
  const searches = [];
141
141
  const chunks = [];
142
142
  const refs = /* @__PURE__ */ new Map();
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  HttpClient,
3
3
  detectAgentRuntime
4
- } from "./chunk-3CZHC24N.mjs";
4
+ } from "./chunk-JDDKJIZU.mjs";
5
5
  import {
6
6
  ConfigError
7
7
  } from "./chunk-4QF2K7TM.mjs";
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } 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 _chunkQ5UO2ENNjs = require('./chunk-Q5UO2ENN.js');
3
+ var _chunkNVMNMKZWjs = require('./chunk-NVMNMKZW.js');
4
4
 
5
5
 
6
- var _chunkGTAU4C44js = require('./chunk-GTAU4C44.js');
6
+ var _chunkGD3ES3JUjs = require('./chunk-GD3ES3JU.js');
7
7
 
8
8
 
9
9
 
@@ -14,17 +14,17 @@ var _chunkGTAU4C44js = require('./chunk-GTAU4C44.js');
14
14
 
15
15
 
16
16
 
17
- var _chunkHMAETS53js = require('./chunk-HMAETS53.js');
17
+ var _chunkGGQHOLH6js = require('./chunk-GGQHOLH6.js');
18
18
 
19
19
 
20
20
 
21
21
 
22
22
 
23
23
 
24
- var _chunk7KALZEDZjs = require('./chunk-7KALZEDZ.js');
24
+ var _chunkJIY25SUXjs = require('./chunk-JIY25SUX.js');
25
25
 
26
26
 
27
- var _chunkAO63MXT6js = require('./chunk-AO63MXT6.js');
27
+ var _chunkBHV7JKXQjs = require('./chunk-BHV7JKXQ.js');
28
28
 
29
29
  // src/compat.ts
30
30
  var _crypto = require('crypto');
@@ -59,7 +59,7 @@ function shouldSkipCompatibilityCheck() {
59
59
  return value === "1" || value === "true" || value === "yes";
60
60
  }
61
61
  function sdkCompatibilityCachePath(baseUrl, homeDir = _optionalChain([process, 'access', _7 => _7.env, 'access', _8 => _8.HOME, 'optionalAccess', _9 => _9.trim, 'call', _10 => _10()]) || _os.homedir.call(void 0, )) {
62
- return _path.join.call(void 0, _chunkHMAETS53js.sdkCliStateDirPath.call(void 0, baseUrl, homeDir), "compat-cache.json");
62
+ return _path.join.call(void 0, _chunkGGQHOLH6js.sdkCliStateDirPath.call(void 0, baseUrl, homeDir), "compat-cache.json");
63
63
  }
64
64
  function legacySdkCompatibilityCachePath(homeDir = _optionalChain([process, 'access', _11 => _11.env, 'access', _12 => _12.HOME, 'optionalAccess', _13 => _13.trim, 'call', _14 => _14()]) || _os.homedir.call(void 0, )) {
65
65
  return _path.join.call(void 0, homeDir, ".cache", "deepline", "sdk-compat-cache.json");
@@ -67,9 +67,9 @@ function legacySdkCompatibilityCachePath(homeDir = _optionalChain([process, 'acc
67
67
  function compatibilityCacheKey(baseUrl, command, skillsVersion) {
68
68
  return JSON.stringify({
69
69
  baseUrl: baseUrl.replace(/\/$/, ""),
70
- version: _chunk7KALZEDZjs.SDK_VERSION,
71
- apiContract: _chunk7KALZEDZjs.SDK_API_CONTRACT,
72
- apiMajor: _chunk7KALZEDZjs.SDK_API_MAJOR,
70
+ version: _chunkJIY25SUXjs.SDK_VERSION,
71
+ apiContract: _chunkJIY25SUXjs.SDK_API_CONTRACT,
72
+ apiMajor: _chunkJIY25SUXjs.SDK_API_MAJOR,
73
73
  command: _optionalChain([command, 'optionalAccess', _15 => _15.trim, 'call', _16 => _16()]) || null,
74
74
  skillsVersion: _nullishCoalesce(skillsVersion, () => ( null))
75
75
  });
@@ -77,8 +77,8 @@ function compatibilityCacheKey(baseUrl, command, skillsVersion) {
77
77
  function legacyCompatibilityCacheKey(baseUrl, command) {
78
78
  return JSON.stringify({
79
79
  baseUrl: baseUrl.replace(/\/$/, ""),
80
- version: _chunk7KALZEDZjs.SDK_VERSION,
81
- apiContract: _chunk7KALZEDZjs.SDK_API_CONTRACT,
80
+ version: _chunkJIY25SUXjs.SDK_VERSION,
81
+ apiContract: _chunkJIY25SUXjs.SDK_API_CONTRACT,
82
82
  command: _optionalChain([command, 'optionalAccess', _17 => _17.trim, 'call', _18 => _18()]) || null
83
83
  });
84
84
  }
@@ -103,7 +103,7 @@ function isSavedWithin(savedAt, windowMs, now) {
103
103
  }
104
104
  var UPDATE_ADVISORY_INTERVAL_MS = 24 * 60 * 60 * 1e3;
105
105
  function claimUpdateAdvisory(baseUrl, now = Date.now()) {
106
- const path = _path.join.call(void 0, _chunkHMAETS53js.sdkCliStateDirPath.call(void 0, baseUrl), "update-advisory.json");
106
+ const path = _path.join.call(void 0, _chunkGGQHOLH6js.sdkCliStateDirPath.call(void 0, baseUrl), "update-advisory.json");
107
107
  try {
108
108
  const { shownAt } = JSON.parse(_fs.readFileSync.call(void 0, path, "utf8"));
109
109
  if (isSavedWithin(shownAt, UPDATE_ADVISORY_INTERVAL_MS, now)) return false;
@@ -190,7 +190,7 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
190
190
  );
191
191
  try {
192
192
  const url = new URL("/api/v2/sdk/compat", baseUrl);
193
- url.searchParams.set("version", _chunk7KALZEDZjs.SDK_VERSION);
193
+ url.searchParams.set("version", _chunkJIY25SUXjs.SDK_VERSION);
194
194
  if (_optionalChain([options, 'access', _34 => _34.command, 'optionalAccess', _35 => _35.trim, 'call', _36 => _36()])) {
195
195
  url.searchParams.set("command", options.command.trim());
196
196
  }
@@ -198,7 +198,7 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
198
198
  url.searchParams.set("skills_version", _nullishCoalesce(options.skillsVersion, () => ( "")));
199
199
  url.searchParams.set(
200
200
  "skills_cli_capability",
201
- String(_chunkAO63MXT6js.SDK_RELEASE.packageCapabilities.skillsGuidance)
201
+ String(_chunkBHV7JKXQjs.SDK_RELEASE.packageCapabilities.skillsGuidance)
202
202
  );
203
203
  }
204
204
  if (options.catalog) {
@@ -210,14 +210,14 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
210
210
  const response = await fetch(url, {
211
211
  method: "GET",
212
212
  headers: {
213
- ..._chunk7KALZEDZjs.deploymentProtectionHeaders.call(void 0, ),
214
- "User-Agent": `deepline-ts-sdk/${_chunk7KALZEDZjs.SDK_VERSION}`,
215
- "X-Deepline-SDK-Version": _chunk7KALZEDZjs.SDK_VERSION,
216
- "X-Deepline-API-Major": String(_chunk7KALZEDZjs.SDK_API_MAJOR),
217
- "X-Deepline-API-Contract": _chunk7KALZEDZjs.SDK_API_CONTRACT,
213
+ ..._chunkJIY25SUXjs.deploymentProtectionHeaders.call(void 0, ),
214
+ "User-Agent": `deepline-ts-sdk/${_chunkJIY25SUXjs.SDK_VERSION}`,
215
+ "X-Deepline-SDK-Version": _chunkJIY25SUXjs.SDK_VERSION,
216
+ "X-Deepline-API-Major": String(_chunkJIY25SUXjs.SDK_API_MAJOR),
217
+ "X-Deepline-API-Contract": _chunkJIY25SUXjs.SDK_API_CONTRACT,
218
218
  "X-Deepline-CLI-Update-Preferences": "1",
219
219
  "X-Deepline-CLI-Auto-Update-Capability": SDK_CLI_AUTO_UPDATE_CAPABILITY,
220
- ...options.catalog ? { Authorization: `Bearer ${_chunkHMAETS53js.resolveApiKeyForBaseUrl.call(void 0, baseUrl)}` } : {},
220
+ ...options.catalog ? { Authorization: `Bearer ${_chunkGGQHOLH6js.resolveApiKeyForBaseUrl.call(void 0, baseUrl)}` } : {},
221
221
  ..._optionalChain([options, 'access', _37 => _37.catalog, 'optionalAccess', _38 => _38.cliInvocationId]) ? { "X-Deepline-CLI-Invocation-ID": options.catalog.cliInvocationId } : {}
222
222
  },
223
223
  signal: controller.signal
@@ -386,7 +386,7 @@ function skillsSourceUrl(baseUrl) {
386
386
  function buildSkillsAddArgs(baseUrl, skillName, options = {}) {
387
387
  const skillNames = Array.isArray(skillName) ? skillName : [skillName];
388
388
  const [firstSkillName, ...extraSkillNames] = skillNames;
389
- const agents = _nullishCoalesce(options.agents, () => ( _chunkHMAETS53js.DEFAULT_SKILL_AGENTS));
389
+ const agents = _nullishCoalesce(options.agents, () => ( _chunkGGQHOLH6js.DEFAULT_SKILL_AGENTS));
390
390
  const values = {
391
391
  skills_index_url: skillsIndexUrl(baseUrl),
392
392
  skills_source_url: skillsSourceUrl(baseUrl),
@@ -514,25 +514,25 @@ var CHECK_TIMEOUT_MS2 = 3e3;
514
514
  var INSTALLER_PROBE_TIMEOUT_MS = 1e3;
515
515
  var PUBLISHED_VERIFICATION_RETRY_MS = 5 * 6e4;
516
516
  function shouldSkipSkillsSync() {
517
- if (_chunk7KALZEDZjs.detectAgentRuntime.call(void 0, ) === "claude_cowork" || isCiEnvironment()) {
517
+ if (_chunkJIY25SUXjs.detectAgentRuntime.call(void 0, ) === "claude_cowork" || isCiEnvironment()) {
518
518
  return true;
519
519
  }
520
520
  const value = _optionalChain([process, 'access', _57 => _57.env, 'access', _58 => _58.DEEPLINE_SKIP_SKILLS_SYNC, 'optionalAccess', _59 => _59.trim, 'call', _60 => _60(), 'access', _61 => _61.toLowerCase, 'call', _62 => _62()]);
521
521
  return value === "1" || value === "true" || value === "yes" || value === "on" || !isCliSkillsSyncEnabled();
522
522
  }
523
523
  function unavailableSkillsNoticePath(baseUrl) {
524
- return _path.join.call(void 0, _chunkHMAETS53js.sdkCliStateDirPath.call(void 0, baseUrl), "skills-sync-unavailable-version");
524
+ return _path.join.call(void 0, _chunkGGQHOLH6js.sdkCliStateDirPath.call(void 0, baseUrl), "skills-sync-unavailable-version");
525
525
  }
526
526
  var SKILLS_SYNC_IN_PROGRESS_TTL_MS = 10 * 60 * 1e3;
527
527
  var SKILLS_SYNC_IN_PROGRESS_PID_CAP_MS = 6 * 60 * 60 * 1e3;
528
- var agentLeaseSegment = _chunkHMAETS53js.skillsAgentPathSegment;
528
+ var agentLeaseSegment = _chunkGGQHOLH6js.skillsAgentPathSegment;
529
529
  function sortedLeaseAgents(agents) {
530
- const expanded = agents.includes("*") ? [...agents, ..._chunkHMAETS53js.KNOWN_SKILL_AGENTS] : agents;
530
+ const expanded = agents.includes("*") ? [...agents, ..._chunkGGQHOLH6js.KNOWN_SKILL_AGENTS] : agents;
531
531
  return [...new Set(expanded)].sort((a, b) => a.localeCompare(b));
532
532
  }
533
533
  function inProgressSkillsSyncPath(baseUrl, agent) {
534
534
  return _path.join.call(void 0,
535
- _chunkHMAETS53js.sdkCliStateDirPath.call(void 0, baseUrl),
535
+ _chunkGGQHOLH6js.sdkCliStateDirPath.call(void 0, baseUrl),
536
536
  `skills-sync-in-progress-${agentLeaseSegment(agent)}`
537
537
  );
538
538
  }
@@ -691,7 +691,7 @@ var SkillsStateUnavailableError = class extends Error {
691
691
  constructor(baseUrl, error) {
692
692
  const detail = error instanceof Error ? error.message : String(error);
693
693
  super(
694
- `Could not save skills state in ${_chunkHMAETS53js.sdkCliStateDirPath.call(void 0, baseUrl)}: ${detail}`
694
+ `Could not save skills state in ${_chunkGGQHOLH6js.sdkCliStateDirPath.call(void 0, baseUrl)}: ${detail}`
695
695
  );
696
696
  this.name = "SkillsStateUnavailableError";
697
697
  }
@@ -776,7 +776,7 @@ function skillsInstallLeasePath(baseUrl, agents) {
776
776
  }
777
777
  function deferredSkillsNoticePath(baseUrl, agents) {
778
778
  return _path.join.call(void 0,
779
- _chunkHMAETS53js.sdkCliStateDirPath.call(void 0, baseUrl),
779
+ _chunkGGQHOLH6js.sdkCliStateDirPath.call(void 0, baseUrl),
780
780
  `skills-sync-notice-${sortedLeaseAgents(agents).map(agentLeaseSegment).join("-")}`
781
781
  );
782
782
  }
@@ -810,8 +810,8 @@ function flushDeferredSkillsNotices(baseUrl, agents) {
810
810
  if (text.trim()) writeSdkSkillsStatusLine(text.trimEnd());
811
811
  }
812
812
  function flushDeferredSkillsSyncNotices(baseUrl) {
813
- if (shouldSkipSkillsSync() || _chunkHMAETS53js.hasActivePluginSkills.call(void 0, )) return;
814
- const agents = _chunkHMAETS53js.resolveAutoSyncSkillAgents.call(void 0, );
813
+ if (shouldSkipSkillsSync() || _chunkGGQHOLH6js.hasActivePluginSkills.call(void 0, )) return;
814
+ const agents = _chunkGGQHOLH6js.resolveAutoSyncSkillAgents.call(void 0, );
815
815
  if (agents.length === 0) return;
816
816
  flushDeferredSkillsNotices(baseUrl, agents);
817
817
  }
@@ -827,7 +827,7 @@ function spawnDetachedSkillsSyncChild(argv, onSpawnError) {
827
827
  }
828
828
  function failedSkillsSyncPath(baseUrl, agents) {
829
829
  return _path.join.call(void 0,
830
- _chunkHMAETS53js.sdkCliStateDirPath.call(void 0, baseUrl),
830
+ _chunkGGQHOLH6js.sdkCliStateDirPath.call(void 0, baseUrl),
831
831
  `skills-sync-failed-${sortedLeaseAgents(agents).map(agentLeaseSegment).join("-")}-version`
832
832
  );
833
833
  }
@@ -856,7 +856,7 @@ function writeUnavailableSkillsNotice(baseUrl, remoteVersion, skillNames, reason
856
856
  if (hasMarkedSkillsSyncVersion(path, remoteVersion)) return;
857
857
  writeMarkedSkillsSyncVersion(path, remoteVersion);
858
858
  const probes = reason === "no-installer" ? _nullishCoalesce(knownProbes, () => ( probeInstallers())) : null;
859
- const manualCommand = _optionalChain([probes, 'optionalAccess', _66 => _66.npx]) === "missing" && probes.bunx !== "missing" ? `bunx ${buildBunxSkillsInstallArgs(baseUrl, skillNames, _chunkHMAETS53js.DEFAULT_SKILL_AGENTS).map(shellQuote).join(" ")}` : `npx ${buildSkillsInstallArgs(baseUrl, skillNames).join(" ")}`;
859
+ const manualCommand = _optionalChain([probes, 'optionalAccess', _66 => _66.npx]) === "missing" && probes.bunx !== "missing" ? `bunx ${buildBunxSkillsInstallArgs(baseUrl, skillNames, _chunkGGQHOLH6js.DEFAULT_SKILL_AGENTS).map(shellQuote).join(" ")}` : `npx ${buildSkillsInstallArgs(baseUrl, skillNames).join(" ")}`;
860
860
  const explanation = reason === "unsupported-agent" ? "the detected agent has no automatic skills sync target. Automatic sync was skipped." : _optionalChain([probes, 'optionalAccess', _67 => _67.bunx]) === "missing" && probes.npx === "missing" ? "neither `bunx` nor `npx` was found on PATH. Make one available." : `installer version check failed for ${Object.entries(_nullishCoalesce(probes, () => ( {}))).filter(([, result]) => result === "failed").map(([command]) => `\`${command}\``).join(" and ")}. Check those commands with --version.`;
861
861
  notice(
862
862
  `Deepline agent skills are out of date, but ${explanation} To install manually, run:
@@ -944,7 +944,7 @@ function buildSdkSkillNames(v1SkillNames2) {
944
944
  return sortedUniqueSkillNames(v1SkillNames2);
945
945
  }
946
946
  function isDefaultAgentSet(agents) {
947
- return agents.length === _chunkHMAETS53js.DEFAULT_SKILL_AGENTS.length && agents.every((agent, index) => agent === _chunkHMAETS53js.DEFAULT_SKILL_AGENTS[index]);
947
+ return agents.length === _chunkGGQHOLH6js.DEFAULT_SKILL_AGENTS.length && agents.every((agent, index) => agent === _chunkGGQHOLH6js.DEFAULT_SKILL_AGENTS[index]);
948
948
  }
949
949
  function safeSkillFilePath(value) {
950
950
  if (typeof value !== "string" || !value) return false;
@@ -1101,10 +1101,10 @@ async function fetchSkillsUpdate(baseUrl, localVersion) {
1101
1101
  method: "POST",
1102
1102
  headers: { "Content-Type": "application/json" },
1103
1103
  body: JSON.stringify({
1104
- sdk_cli: { version: _chunk7KALZEDZjs.SDK_VERSION },
1104
+ sdk_cli: { version: _chunkJIY25SUXjs.SDK_VERSION },
1105
1105
  skills: {
1106
1106
  version: localVersion,
1107
- capability: _chunkAO63MXT6js.SDK_RELEASE.packageCapabilities.skillsGuidance
1107
+ capability: _chunkBHV7JKXQjs.SDK_RELEASE.packageCapabilities.skillsGuidance
1108
1108
  }
1109
1109
  }),
1110
1110
  signal: controller.signal
@@ -1143,7 +1143,7 @@ function probeInstallers(timeoutMs) {
1143
1143
  }
1144
1144
  function noInstallerProbePath(baseUrl) {
1145
1145
  return _path.join.call(void 0,
1146
- _chunkHMAETS53js.sdkCliStateDirPath.call(void 0, baseUrl),
1146
+ _chunkGGQHOLH6js.sdkCliStateDirPath.call(void 0, baseUrl),
1147
1147
  "skills-sync-no-installer-unknown.json"
1148
1148
  );
1149
1149
  }
@@ -1222,7 +1222,7 @@ function temporarySkillsSyncSkipCommand() {
1222
1222
  function resolveSkillsInstallSpawn(install, platform = process.platform) {
1223
1223
  return resolveShellSpawn(install.command, install.args, platform);
1224
1224
  }
1225
- function resolveSkillsInstallCommands(baseUrl, skillNames = DEFAULT_SDK_SKILL_NAMES, agents = _chunkHMAETS53js.DEFAULT_SKILL_AGENTS, knownProbes) {
1225
+ function resolveSkillsInstallCommands(baseUrl, skillNames = DEFAULT_SDK_SKILL_NAMES, agents = _chunkGGQHOLH6js.DEFAULT_SKILL_AGENTS, knownProbes) {
1226
1226
  const commands = [];
1227
1227
  const probes = _nullishCoalesce(knownProbes, () => ( probeInstallers()));
1228
1228
  if (probes.bunx === "available") {
@@ -1364,7 +1364,7 @@ function runLegacySkillsCleanup(agents) {
1364
1364
  }
1365
1365
  }
1366
1366
  function writeSdkSkillsStatusLine(line) {
1367
- const progress = _chunkQ5UO2ENNjs.getActiveCliProgress.call(void 0, );
1367
+ const progress = _chunkNVMNMKZWjs.getActiveCliProgress.call(void 0, );
1368
1368
  if (progress) {
1369
1369
  progress.writeLine(line);
1370
1370
  return;
@@ -1375,11 +1375,11 @@ function writeSdkSkillsStatusLine(line) {
1375
1375
  async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
1376
1376
  const skip = shouldSkipSkillsSync();
1377
1377
  if (skip && !options.claim) return;
1378
- const usingPluginSkills = _chunkHMAETS53js.hasActivePluginSkills.call(void 0, );
1378
+ const usingPluginSkills = _chunkGGQHOLH6js.hasActivePluginSkills.call(void 0, );
1379
1379
  if (usingPluginSkills) {
1380
1380
  return;
1381
1381
  }
1382
- const agents = _chunkHMAETS53js.resolveAutoSyncSkillAgents.call(void 0, );
1382
+ const agents = _chunkGGQHOLH6js.resolveAutoSyncSkillAgents.call(void 0, );
1383
1383
  if (options.mode === "detached" && agents.length > 0) {
1384
1384
  flushDeferredSkillsNotices(baseUrl, agents);
1385
1385
  }
@@ -1411,7 +1411,7 @@ async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
1411
1411
  return;
1412
1412
  }
1413
1413
  try {
1414
- const localVersion = _chunkHMAETS53js.readSdkSkillsLocalVersion.call(void 0, baseUrl);
1414
+ const localVersion = _chunkGGQHOLH6js.readSdkSkillsLocalVersion.call(void 0, baseUrl);
1415
1415
  const update = options.update === void 0 ? claimedVersion ? { needsUpdate: true, remoteVersion: claimedVersion } : await fetchSkillsUpdate(baseUrl, localVersion) : options.update ? {
1416
1416
  needsUpdate: options.update.needs_update,
1417
1417
  remoteVersion: options.update.remote.version
@@ -1533,7 +1533,7 @@ async function runInlineSkillsSync(baseUrl, remoteVersion, agents, notices) {
1533
1533
  update.remoteVersion,
1534
1534
  agents
1535
1535
  );
1536
- void _chunkGTAU4C44js.maybeReportAutomaticSkillsSyncFailure.call(void 0, {
1536
+ void _chunkGD3ES3JUjs.maybeReportAutomaticSkillsSyncFailure.call(void 0, {
1537
1537
  baseUrl,
1538
1538
  remoteSkillsVersion: update.remoteVersion,
1539
1539
  agents,
@@ -1564,7 +1564,7 @@ async function runInlineSkillsSync(baseUrl, remoteVersion, agents, notices) {
1564
1564
  notice(
1565
1565
  publishedFailure ? `Deepline could not verify the published skills: ${detail}. The local version remains stale; it will retry automatically on a later command.` : `Deepline agent-skills refresh could not verify the five installed targets: ${detail}. The local version remains stale. After fixing the install, remove ${failedSkillsSyncPath(baseUrl, agents)} to retry this version automatically.`
1566
1566
  );
1567
- void _chunkGTAU4C44js.maybeReportAutomaticSkillsSyncFailure.call(void 0, {
1567
+ void _chunkGD3ES3JUjs.maybeReportAutomaticSkillsSyncFailure.call(void 0, {
1568
1568
  baseUrl,
1569
1569
  remoteSkillsVersion: update.remoteVersion,
1570
1570
  agents,
@@ -1577,7 +1577,7 @@ async function runInlineSkillsSync(baseUrl, remoteVersion, agents, notices) {
1577
1577
  }
1578
1578
  }
1579
1579
  runLegacySkillsCleanup(agents);
1580
- if (!_chunkHMAETS53js.writeSdkSkillsLocalVersion.call(void 0, baseUrl, update.remoteVersion, agents)) {
1580
+ if (!_chunkGGQHOLH6js.writeSdkSkillsLocalVersion.call(void 0, baseUrl, update.remoteVersion, agents)) {
1581
1581
  notice(
1582
1582
  "Deepline agent skills installed, but the local skills version could not be recorded. A later command will retry the refresh."
1583
1583
  );
@@ -1,10 +1,13 @@
1
+ import {
2
+ rejectRestrictedFeedback
3
+ } from "./chunk-XREZY4FA.mjs";
1
4
  import {
2
5
  getAuthedHttpClient,
3
6
  printCommandEnvelope
4
- } from "./chunk-6KBVQ76G.mjs";
7
+ } from "./chunk-HLEZQDEZ.mjs";
5
8
  import {
6
9
  agentSessionIdFromEnvironment
7
- } from "./chunk-3CZHC24N.mjs";
10
+ } from "./chunk-JDDKJIZU.mjs";
8
11
 
9
12
  // src/cli/commands/sessions.ts
10
13
  import {
@@ -505,6 +508,7 @@ async function uploadChunkedSessions(sessions, options) {
505
508
  );
506
509
  }
507
510
  async function handleSessionsSend(options) {
511
+ if (rejectRestrictedFeedback(options)) return;
508
512
  const rating = parseSessionRating(options.rating);
509
513
  if (options.file) {
510
514
  const filePath = resolve(options.file);
@@ -717,8 +721,10 @@ function registerSessionSendRenderCommands(parent, familyName) {
717
721
  parent.command("send").description("Upload session transcript(s) or a local file to Deepline.").addHelpText(
718
722
  "after",
719
723
  `
724
+ In the default ask mode, ask the user first and pass --requested if they agree.
725
+
720
726
  Examples:
721
- deepline ${familyName} send --current-session
727
+ deepline ${familyName} send --current-session --requested
722
728
  deepline ${familyName} send --agent codex --current-session
723
729
  deepline ${familyName} send --session-id 5a3bfb97-a2d9-49d9-82c6-52ccc03dadca --label "pilot run"
724
730
  deepline ${familyName} send --current-session --rating poor # tag the session as one that went poorly
@@ -742,9 +748,14 @@ Examples:
742
748
  "--current-session",
743
749
  "Use the calling agent's session, else the newest in this directory"
744
750
  ).option("--file <path>", "Upload a raw local file instead of a session").option(
751
+ "--requested",
752
+ "Mark the upload as requested or approved by the user"
753
+ ).option(
745
754
  "--rating <good|poor|neutral>",
746
755
  "Tag the upload by outcome, not tone, so Deepline can filter sessions: good = the user's goal was met without product problems; poor = the goal was missed, or a product failure, bug, or avoidable friction (including a substantial workaround) got in the way; neutral = partly met or unclear."
747
- ).option("--json", "Emit JSON output").action(handleSessionsSend);
756
+ ).option("--json", "Emit JSON output").action(
757
+ (options, command) => handleSessionsSend({ ...options, json: command.optsWithGlobals().json })
758
+ );
748
759
  parent.command("render").description("Render local session transcript(s) to an HTML viewer.").addHelpText(
749
760
  "after",
750
761
  `
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
2
2
 
3
- var _chunk726UDAV2js = require('./chunk-726UDAV2.js');
3
+ var _chunkJYFLIQPEjs = require('./chunk-JYFLIQPE.js');
4
4
 
5
5
  // src/cli/maintenance-policy.ts
6
6
  var _commander = require('commander');
@@ -33,7 +33,7 @@ function recordCliTrace(event) {
33
33
  sinceStartMs: now - cliTraceStartedAt,
34
34
  ...event
35
35
  };
36
- _chunk726UDAV2js.writeRawStderr.call(void 0, `[cli-trace] ${JSON.stringify(payload)}
36
+ _chunkJYFLIQPEjs.writeRawStderr.call(void 0, `[cli-trace] ${JSON.stringify(payload)}
37
37
  `);
38
38
  }
39
39
  async function traceCliSpan(phase, fields, run) {