deepline 0.3.356 → 0.3.358

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 (103) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/bundling-sources/shared_libs/monitors/deactivation-reasons.ts +14 -1
  3. package/dist/bundling-sources/shared_libs/play-runtime/async-operation.ts +52 -19
  4. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +77 -25
  5. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/run-ledger-outbox-recovery.ts +202 -44
  6. package/dist/cli/{auth-PFLCB6IL.mjs → auth-QSEB4OI6.mjs} +6 -4
  7. package/dist/cli/auth-VP5WIGFS.js +33 -0
  8. package/dist/cli/{billing-T3K2KS55.mjs → billing-KNJ6ZHSN.mjs} +5 -5
  9. package/dist/cli/{billing-TJOZMRIV.js → billing-UE2CP5O5.js} +74 -74
  10. package/dist/cli/{chunk-NAMT3YP5.mjs → chunk-3DP24EZA.mjs} +15 -15
  11. package/dist/cli/{chunk-35AZMPQV.mjs → chunk-4IUOBUNS.mjs} +1 -1
  12. package/dist/cli/{chunk-6GOZN6ZF.js → chunk-5PJ6XYRV.js} +64 -60
  13. package/dist/cli/{chunk-26FD35VW.js → chunk-5RWJSROL.js} +8 -8
  14. package/dist/cli/{chunk-HBN5ORV2.js → chunk-BVPN57AD.js} +6 -6
  15. package/dist/cli/{chunk-6S2HRJIV.mjs → chunk-EL62MLRD.mjs} +1 -1
  16. package/dist/cli/{chunk-AUQYSGGD.mjs → chunk-EVPWVNJV.mjs} +7 -7
  17. package/dist/cli/{chunk-OXNEO6OS.js → chunk-GYDSDOXB.js} +75 -50
  18. package/dist/cli/{chunk-X4PJURJH.mjs → chunk-HGLESMAC.mjs} +27 -2
  19. package/dist/cli/{chunk-447A2YBS.js → chunk-HKRJUIRL.js} +47 -47
  20. package/dist/cli/{chunk-MK3WFSJN.js → chunk-HNAFCPM4.js} +8 -8
  21. package/dist/cli/{chunk-UC27KYXC.js → chunk-KIRDHNX5.js} +11 -11
  22. package/dist/cli/{chunk-2EYFTDKU.js → chunk-LOSZZCER.js} +2 -2
  23. package/dist/cli/{chunk-GD4YCB5C.mjs → chunk-NMHQTEIQ.mjs} +2 -2
  24. package/dist/cli/{chunk-OIJR6SCZ.js → chunk-OO3MYL2Y.js} +26 -26
  25. package/dist/cli/{chunk-YILVDBYO.js → chunk-OVUDXZCK.js} +1 -1
  26. package/dist/cli/{chunk-YFLAUIJN.mjs → chunk-Q77PWYDF.mjs} +4 -4
  27. package/dist/cli/chunk-QFBHEQCQ.mjs +1421 -0
  28. package/dist/cli/{chunk-W3VTKDQK.mjs → chunk-QH6PV7IJ.mjs} +3 -3
  29. package/dist/cli/chunk-QILHWZFP.js +1421 -0
  30. package/dist/cli/{chunk-2CTZ4MRZ.mjs → chunk-SJY4SUCH.mjs} +1 -1
  31. package/dist/cli/{chunk-2RMJLL3R.mjs → chunk-SPJ3IDR4.mjs} +2 -2
  32. package/dist/cli/{chunk-A544Z3OR.js → chunk-UZQWPQ6V.js} +5 -5
  33. package/dist/cli/{chunk-HXL4ZESY.js → chunk-V4MVLHOW.js} +231 -231
  34. package/dist/cli/{chunk-WF5BHZWA.mjs → chunk-VZBNBCEB.mjs} +3 -3
  35. package/dist/cli/{chunk-LDOOR6AE.js → chunk-WVO6AJM7.js} +15 -15
  36. package/dist/cli/{chunk-RPALAI2R.mjs → chunk-WYVUMIEF.mjs} +8 -8
  37. package/dist/cli/{chunk-7LFNGGH6.mjs → chunk-YWGKGXSH.mjs} +6 -2
  38. package/dist/cli/client-I4RRFLPM.js +20 -0
  39. package/dist/cli/{client-XMFAODL2.mjs → client-M2TQV23S.mjs} +4 -4
  40. package/dist/cli/command-docs.d.mts +50 -0
  41. package/dist/cli/command-docs.d.ts +50 -0
  42. package/dist/cli/command-docs.js +13 -0
  43. package/dist/cli/command-docs.mjs +13 -0
  44. package/dist/cli/{csv-NLCVCEZ3.mjs → csv-OQUTHAMD.mjs} +3 -3
  45. package/dist/cli/{csv-4TMZI4RY.js → csv-VSVZWQ24.js} +12 -12
  46. package/dist/cli/{db-PWID5GLT.js → db-6QNWRH47.js} +30 -30
  47. package/dist/cli/{db-IMLYZF3N.mjs → db-QH56PKPT.mjs} +5 -5
  48. package/dist/cli/{describe-LTYF5NWH.js → describe-BKJNG2I5.js} +21 -21
  49. package/dist/cli/{describe-LFKBFDRQ.mjs → describe-NCUJW2JG.mjs} +16 -16
  50. package/dist/cli/{executions-RB4WIKFH.js → executions-63CSEYKE.js} +7 -7
  51. package/dist/cli/{executions-6UVFDX2O.mjs → executions-NOZELHEN.mjs} +5 -5
  52. package/dist/cli/{feedback-PH3WH5LE.mjs → feedback-GL7YHJAK.mjs} +3 -3
  53. package/dist/cli/{feedback-EOUSGLRS.js → feedback-T4FGM7DY.js} +7 -7
  54. package/dist/cli/git-4EBFGJAN.js +23 -0
  55. package/dist/cli/{git-BLVZPTBC.mjs → git-C3SPUEUB.mjs} +4 -4
  56. package/dist/cli/index.js +183 -83
  57. package/dist/cli/index.mjs +145 -45
  58. package/dist/cli/{legacy-noops-5JDDNT4H.mjs → legacy-noops-BBDNHMAW.mjs} +4 -4
  59. package/dist/cli/{legacy-noops-KQBQ4WMC.js → legacy-noops-W6UWORVY.js} +7 -7
  60. package/dist/cli/{monitors-JL7A5ZOX.mjs → monitors-LEGM63T3.mjs} +5 -5
  61. package/dist/cli/{monitors-IETMP6ER.js → monitors-R32SKFE3.js} +86 -86
  62. package/dist/cli/{org-L6TG5MRM.mjs → org-RBIBSVP3.mjs} +5 -5
  63. package/dist/cli/{org-HL2CWV6W.js → org-RYRHB22V.js} +61 -61
  64. package/dist/cli/{play-42RA7JRU.mjs → play-FMPNHLXU.mjs} +11 -11
  65. package/dist/cli/play-GDDOUU3I.js +153 -0
  66. package/dist/cli/{providers-RH5ZPZXO.mjs → providers-5JHHZWMF.mjs} +5 -5
  67. package/dist/cli/{providers-MASSERVB.js → providers-WAUWYRTK.js} +8 -8
  68. package/dist/cli/{quickstart-OMZY743O.mjs → quickstart-RYKNMAFN.mjs} +5 -5
  69. package/dist/cli/{quickstart-6AYK534A.js → quickstart-V5LHMW2X.js} +7 -7
  70. package/dist/cli/{search-TBOZ5R36.mjs → search-B2BB2MHO.mjs} +6 -6
  71. package/dist/cli/search-RQLY5D2A.js +26 -0
  72. package/dist/cli/{secrets-74CH44OT.js → secrets-BEAESK2H.js} +14 -14
  73. package/dist/cli/{secrets-IN4XCGBJ.mjs → secrets-XJOXWVUG.mjs} +5 -5
  74. package/dist/cli/{sessions-KK47BDGG.js → sessions-ELBTWKLS.js} +5 -5
  75. package/dist/cli/{sessions-BAMVNM3F.mjs → sessions-VRDJCPKE.mjs} +4 -4
  76. package/dist/cli/{settings-HZFVYTEW.mjs → settings-QEL2SD7N.mjs} +8 -8
  77. package/dist/cli/{settings-VSKWLX2B.js → settings-V5RI4UWE.js} +75 -75
  78. package/dist/cli/{setup-IYVMYYZW.js → setup-CS3IACGU.js} +43 -43
  79. package/dist/cli/{setup-3YOU6BBX.mjs → setup-FNVP5XQR.mjs} +8 -8
  80. package/dist/cli/{skills-DB3TE5LF.mjs → skills-73PM6I6F.mjs} +4 -4
  81. package/dist/cli/skills-OH3X3OUA.js +28 -0
  82. package/dist/cli/tools-BY6D7M4I.js +40 -0
  83. package/dist/cli/{tools-AMNLACHH.mjs → tools-N2H5HJYP.mjs} +8 -8
  84. package/dist/cli/{update-3PBHH5FL.mjs → update-MUMZ6L7J.mjs} +6 -6
  85. package/dist/cli/update-PEGDRQ3G.js +28 -0
  86. package/dist/cli/{workflow-C2KGKJJD.mjs → workflow-WY2CL73A.mjs} +9 -9
  87. package/dist/cli/{workflow-5YDAWSKH.js → workflow-X66V6L3H.js} +19 -19
  88. package/dist/index.js +13 -13
  89. package/dist/index.mjs +12 -12
  90. package/dist/install-integrity.json +80 -74
  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 +6 -1
  96. package/dist/cli/auth-IHV3XXSN.js +0 -31
  97. package/dist/cli/client-TDH32IGR.js +0 -20
  98. package/dist/cli/git-V6HWB6JB.js +0 -23
  99. package/dist/cli/play-QQLZQILD.js +0 -153
  100. package/dist/cli/search-FR6FXEXN.js +0 -26
  101. package/dist/cli/skills-3HFZGYM7.js +0 -28
  102. package/dist/cli/tools-GJ7TH2T3.js +0 -40
  103. package/dist/cli/update-SUNCN4SV.js +0 -28
@@ -2,9 +2,6 @@ import {
2
2
  apiErrorCodeFromResponse,
3
3
  apiErrorMessage
4
4
  } from "./chunk-DLIRSHV6.mjs";
5
- import {
6
- SDK_RELEASE
7
- } from "./chunk-2CTZ4MRZ.mjs";
8
5
  import {
9
6
  DeeplineError,
10
7
  TOOL_EXECUTION_ERROR_SCHEMA_VERSION,
@@ -15,6 +12,9 @@ import {
15
12
  isProviderTransientFailure,
16
13
  serializeToolExecutionFailure
17
14
  } from "./chunk-NXGCO4JB.mjs";
15
+ import {
16
+ SDK_RELEASE
17
+ } from "./chunk-SJY4SUCH.mjs";
18
18
 
19
19
  // src/errors.ts
20
20
  var CustomerDbQueryOutcomeUnknownError = class extends DeeplineError {
@@ -1,17 +1,17 @@
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 _chunk2EYFTDKUjs = require('./chunk-2EYFTDKU.js');
4
+ var _chunkLOSZZCERjs = require('./chunk-LOSZZCER.js');
5
5
 
6
6
 
7
7
 
8
- var _chunk6GOZN6ZFjs = require('./chunk-6GOZN6ZF.js');
8
+ var _chunk5PJ6XYRVjs = require('./chunk-5PJ6XYRV.js');
9
9
 
10
10
 
11
- var _chunkHBN5ORV2js = require('./chunk-HBN5ORV2.js');
11
+ var _chunkBVPN57ADjs = require('./chunk-BVPN57AD.js');
12
12
 
13
13
 
14
- var _chunkA544Z3ORjs = require('./chunk-A544Z3OR.js');
14
+ var _chunkUZQWPQ6Vjs = require('./chunk-UZQWPQ6V.js');
15
15
 
16
16
  // src/cli/commands/update.ts
17
17
  var _child_process = require('child_process');
@@ -489,7 +489,7 @@ function normalizedNpmPrefix(value) {
489
489
  }
490
490
  function resolveNpmGlobalPrefix(env) {
491
491
  try {
492
- const plan = _chunk6GOZN6ZFjs.resolveShellSpawn.call(void 0, "npm", ["prefix", "-g"], process.platform, env);
492
+ const plan = _chunk5PJ6XYRVjs.resolveShellSpawn.call(void 0, "npm", ["prefix", "-g"], process.platform, env);
493
493
  const result = _child_process.spawnSync.call(void 0, plan.command, plan.args, {
494
494
  encoding: "utf8",
495
495
  env,
@@ -545,8 +545,8 @@ function resolveUpdatePlan(options = {}) {
545
545
  const npmGlobalPrefix = options.npmGlobalPrefix !== void 0 ? options.npmGlobalPrefix : resolveNpmGlobalPrefix(env);
546
546
  const hasVerifiedNpmOwnership = inferredInstallPrefix !== null && normalizedNpmPrefix(inferredInstallPrefix) === normalizedNpmPrefix(npmGlobalPrefix);
547
547
  const installPrefix = options.requireVerifiedNpmOwnership ? hasVerifiedNpmOwnership ? inferredInstallPrefix : null : inferredInstallPrefix;
548
- const npmVersion = options.npmVersion === void 0 ? _chunk2EYFTDKUjs.readNpmVersion.call(void 0, env) : options.npmVersion;
549
- const npmGlobalInstallFlags = _chunk2EYFTDKUjs.npmSupportsAllowScripts.call(void 0, npmVersion) ? [...NPM_SDK_INSTALL_COMMON_FLAGS, "--allow-scripts=esbuild"] : NPM_SDK_INSTALL_COMMON_FLAGS;
548
+ const npmVersion = options.npmVersion === void 0 ? _chunkLOSZZCERjs.readNpmVersion.call(void 0, env) : options.npmVersion;
549
+ const npmGlobalInstallFlags = _chunkLOSZZCERjs.npmSupportsAllowScripts.call(void 0, npmVersion) ? [...NPM_SDK_INSTALL_COMMON_FLAGS, "--allow-scripts=esbuild"] : NPM_SDK_INSTALL_COMMON_FLAGS;
550
550
  const args = installPrefix ? [
551
551
  "install",
552
552
  "-g",
@@ -556,7 +556,7 @@ function resolveUpdatePlan(options = {}) {
556
556
  packageSpec
557
557
  ] : ["install", "-g", ...npmGlobalInstallFlags, packageSpec];
558
558
  const fallbackRegistryUrl = options.npmFallbackRegistryUrl !== void 0 ? options.npmFallbackRegistryUrl : publicNpmFallbackRegistryUrl(
559
- _optionalChain([env, 'access', _18 => _18.DEEPLINE_HOST_URL, 'optionalAccess', _19 => _19.trim, 'call', _20 => _20()]) || _chunkA544Z3ORjs.autoDetectBaseUrl.call(void 0, )
559
+ _optionalChain([env, 'access', _18 => _18.DEEPLINE_HOST_URL, 'optionalAccess', _19 => _19.trim, 'call', _20 => _20()]) || _chunkUZQWPQ6Vjs.autoDetectBaseUrl.call(void 0, )
560
560
  );
561
561
  return {
562
562
  kind: "npm-global",
@@ -703,7 +703,7 @@ function sidecarInstallFailure(versionDir) {
703
703
  function runCommand(command, args, env = process.env) {
704
704
  return new Promise((resolveResult) => {
705
705
  let output = "";
706
- const plan = _chunk6GOZN6ZFjs.resolveShellSpawn.call(void 0, command, args, process.platform, env);
706
+ const plan = _chunk5PJ6XYRVjs.resolveShellSpawn.call(void 0, command, args, process.platform, env);
707
707
  const child = _child_process.spawn.call(void 0, plan.command, plan.args, {
708
708
  stdio: ["inherit", "pipe", "pipe"],
709
709
  shell: plan.shell,
@@ -1079,14 +1079,14 @@ async function publishedVersionSupportsPin(version, fallbackRegistryUrl) {
1079
1079
  throw _nullishCoalesce(lastError, () => ( new Error("No npm registry was available")));
1080
1080
  }
1081
1081
  async function runUpdateCommand(options, dependencies = {}) {
1082
- const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => ( _chunkA544Z3ORjs.autoDetectBaseUrl));
1082
+ const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => ( _chunkUZQWPQ6Vjs.autoDetectBaseUrl));
1083
1083
  const resolvePlan = _nullishCoalesce(dependencies.resolvePlan, () => ( resolveUpdatePlan));
1084
1084
  const runPlan = _nullishCoalesce(dependencies.runPlan, () => ( runUpdatePlan));
1085
1085
  const syncSkills = _nullishCoalesce(dependencies.syncSkillsIfNeeded, () => ( (async () => {
1086
1086
  const originalWrite = process.stdout.write.bind(process.stdout);
1087
1087
  process.stdout.write = (() => true);
1088
1088
  try {
1089
- const exitCode = await _chunk6GOZN6ZFjs.runSkillsCommand.call(void 0, { json: true });
1089
+ const exitCode = await _chunk5PJ6XYRVjs.runSkillsCommand.call(void 0, { json: true });
1090
1090
  if (exitCode !== 0) {
1091
1091
  throw new Error(
1092
1092
  `Deepline skills update failed with exit ${exitCode}.`
@@ -1157,11 +1157,11 @@ async function runUpdateCommand(options, dependencies = {}) {
1157
1157
  ]
1158
1158
  };
1159
1159
  if (options.json && !options.executeWithJson) {
1160
- _chunkHBN5ORV2js.printCommandEnvelope.call(void 0, { ...plan, render }, { json: true });
1160
+ _chunkBVPN57ADjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: true });
1161
1161
  return 0;
1162
1162
  }
1163
1163
  if (options.printCommand) {
1164
- _chunkHBN5ORV2js.printCommandEnvelope.call(void 0,
1164
+ _chunkBVPN57ADjs.printCommandEnvelope.call(void 0,
1165
1165
  {
1166
1166
  ...plan,
1167
1167
  render: {
@@ -1174,7 +1174,7 @@ async function runUpdateCommand(options, dependencies = {}) {
1174
1174
  return 0;
1175
1175
  }
1176
1176
  if (plan.kind === "source" || plan.kind === "homebrew") {
1177
- _chunkHBN5ORV2js.printCommandEnvelope.call(void 0, { ...plan, render }, { json: false });
1177
+ _chunkBVPN57ADjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: false });
1178
1178
  return 0;
1179
1179
  }
1180
1180
  stderr.write(`Updating Deepline SDK/CLI with: ${plan.manualCommand}
@@ -1204,7 +1204,7 @@ To retry with full installer output, run: deepline skills --json
1204
1204
  );
1205
1205
  }
1206
1206
  if (options.executeWithJson && options.json) {
1207
- _chunkHBN5ORV2js.printCommandEnvelope.call(void 0,
1207
+ _chunkBVPN57ADjs.printCommandEnvelope.call(void 0,
1208
1208
  {
1209
1209
  ok: true,
1210
1210
  pinnedVersion
@@ -11,7 +11,7 @@ import {
11
11
  import {
12
12
  recentSearchRef,
13
13
  registerDeprecatedSearchCommand
14
- } from "./chunk-W3VTKDQK.mjs";
14
+ } from "./chunk-QH6PV7IJ.mjs";
15
15
  import {
16
16
  extractSummaryFields,
17
17
  projectRowOutput,
@@ -20,10 +20,13 @@ import {
20
20
  writeCsvOutputFile,
21
21
  writeJsonOutputFile
22
22
  } from "./chunk-MIMASXO4.mjs";
23
+ import {
24
+ playToolListGetterMode
25
+ } from "./chunk-7E66A24V.mjs";
23
26
  import {
24
27
  DeeplineClient,
25
28
  validateExecutionIdempotencyKey
26
- } from "./chunk-AUQYSGGD.mjs";
29
+ } from "./chunk-EVPWVNJV.mjs";
27
30
  import {
28
31
  beginToolExecuteCommand,
29
32
  getToolExecuteInvocationId,
@@ -37,14 +40,11 @@ import {
37
40
  printJsonError,
38
41
  renderCommandEnvelopeText,
39
42
  shouldEmitJson
40
- } from "./chunk-6S2HRJIV.mjs";
43
+ } from "./chunk-EL62MLRD.mjs";
41
44
  import {
42
45
  resolveConfig,
43
46
  sdkCliStateDirPath
44
- } from "./chunk-WF5BHZWA.mjs";
45
- import {
46
- playToolListGetterMode
47
- } from "./chunk-7E66A24V.mjs";
47
+ } from "./chunk-VZBNBCEB.mjs";
48
48
  import {
49
49
  DeeplineError
50
50
  } from "./chunk-NXGCO4JB.mjs";
@@ -1030,7 +1030,7 @@ Examples:
1030
1030
  process.exitCode = await narrowView();
1031
1031
  return;
1032
1032
  }
1033
- const { describeAnything } = await import("./describe-LFKBFDRQ.mjs");
1033
+ const { describeAnything } = await import("./describe-NCUJW2JG.mjs");
1034
1034
  process.exitCode = await describeAnything(
1035
1035
  toolId,
1036
1036
  { ...options, kinds: ["tools", "monitors"], fetchedTool: metadata },
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-GAMFK2ZP.mjs";
4
4
  import {
5
5
  printCommandEnvelope
6
- } from "./chunk-6S2HRJIV.mjs";
6
+ } from "./chunk-EL62MLRD.mjs";
7
7
  import {
8
8
  DEFAULT_SKILL_AGENTS,
9
9
  KNOWN_SKILL_AGENTS,
@@ -22,7 +22,7 @@ import {
22
22
  sdkCliStateDirPath,
23
23
  skillsAgentPathSegment,
24
24
  writeSdkSkillsLocalVersion
25
- } from "./chunk-WF5BHZWA.mjs";
25
+ } from "./chunk-VZBNBCEB.mjs";
26
26
  import {
27
27
  DeeplineError
28
28
  } from "./chunk-NXGCO4JB.mjs";
@@ -81,6 +81,10 @@ var DEFAULT_V1_SKILL_NAMES = [
81
81
  "clay-to-deepline",
82
82
  "deepline-analytics",
83
83
  "deepline-engine",
84
+ // Retired: its guidance lives in `feedback send --help` and `sessions send
85
+ // --help`. Kept as a stub because installed CLIs list it and refuse to
86
+ // sync any skill when the published index lacks a listed name. Move to
87
+ // LEGACY_SKILL_NAMES_TO_REMOVE once those CLIs are out of the field.
84
88
  "deepline-feedback",
85
89
  "deepline-gtm",
86
90
  "deepline-plays",
@@ -0,0 +1,20 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+
5
+
6
+ var _chunkKIRDHNX5js = require('./chunk-KIRDHNX5.js');
7
+ require('./chunk-S6R3OX7B.js');
8
+ require('./chunk-LA46MMTL.js');
9
+ require('./chunk-UZQWPQ6V.js');
10
+ require('./chunk-XNYIZMNQ.js');
11
+ require('./chunk-7P5AA3SN.js');
12
+ require('./chunk-OVUDXZCK.js');
13
+ require('./chunk-OG64RBAC.js');
14
+ require('./chunk-COGTRVWW.js');
15
+
16
+
17
+
18
+
19
+
20
+ exports.DeeplineClient = _chunkKIRDHNX5js.DeeplineClient; exports.MONITOR_JOB_PHASES = _chunkKIRDHNX5js.MONITOR_JOB_PHASES; exports.MONITOR_JOB_RECONCILIATION_STATES = _chunkKIRDHNX5js.MONITOR_JOB_RECONCILIATION_STATES; exports.MONITOR_JOB_STATES = _chunkKIRDHNX5js.MONITOR_JOB_STATES;
@@ -3,13 +3,13 @@ import {
3
3
  MONITOR_JOB_PHASES,
4
4
  MONITOR_JOB_RECONCILIATION_STATES,
5
5
  MONITOR_JOB_STATES
6
- } from "./chunk-AUQYSGGD.mjs";
6
+ } from "./chunk-EVPWVNJV.mjs";
7
+ import "./chunk-6IKARAYD.mjs";
7
8
  import "./chunk-CBVIJSHF.mjs";
8
- import "./chunk-WF5BHZWA.mjs";
9
+ import "./chunk-VZBNBCEB.mjs";
9
10
  import "./chunk-DLIRSHV6.mjs";
10
- import "./chunk-2CTZ4MRZ.mjs";
11
- import "./chunk-6IKARAYD.mjs";
12
11
  import "./chunk-NXGCO4JB.mjs";
12
+ import "./chunk-SJY4SUCH.mjs";
13
13
  import "./chunk-WZYKRD7T.mjs";
14
14
  import "./chunk-KRD6H754.mjs";
15
15
  export {
@@ -0,0 +1,50 @@
1
+ /// <reference path="./text-imports.d.ts" />
2
+ /**
3
+ * The command explanations, and the only place they are written down.
4
+ *
5
+ * `deepline <command> --help` appends the `core` text after commander's own
6
+ * help output, or `core` and then `verbose` the first time that command's help
7
+ * is read in an agent session (see help-seen.ts); `--help --verbose` always
8
+ * appends both; `--help --quiet` appends nothing. The MCP server serves the
9
+ * same text through the `deepline_help` tool, so a restricted client reads the
10
+ * identical explanation an agent with a shell would see.
11
+ *
12
+ * Every entry answers, in this order: what the command is for, when to reach
13
+ * for it, exactly what input it accepts, exactly what it prints, whether it
14
+ * spends credits, and what not to do with it. Agents guess input and output
15
+ * formats when a help page leaves them out, and then write parsing code for
16
+ * cases that do not exist; keep those two sections literal.
17
+ *
18
+ * Keys are the command path without the `deepline` prefix. The
19
+ * `command-docs.test.ts` suite fails when a key names a command that does not
20
+ * exist and when a golden-path command has no entry, so a rename or removal
21
+ * cannot leave stale text behind.
22
+ */
23
+ type CommandDoc = {
24
+ /** Shown by default at the end of `--help`. */
25
+ core: string;
26
+ /** Shown after `core` with `--help --verbose`. */
27
+ verbose?: string;
28
+ };
29
+ type HelpDetail = 'quiet' | 'core' | 'verbose';
30
+ declare const COMMAND_DOCS: Record<string, CommandDoc>;
31
+ /** The command path (without the program name) for a commander command. */
32
+ declare function commandDocKey(command: {
33
+ name(): string;
34
+ parent: {
35
+ name(): string;
36
+ parent: unknown;
37
+ } | null;
38
+ }): string;
39
+ declare function helpDetailFromArgv(argv: readonly string[]): HelpDetail;
40
+ /**
41
+ * The explanation text for one command at one detail level, or '' when the
42
+ * level is quiet or the command has no entry. The returned text is complete:
43
+ * it ends with the pointer to the other detail level.
44
+ */
45
+ declare function renderCommandExplanation(key: string, detail: HelpDetail, options?: {
46
+ pointer?: boolean;
47
+ firstRead?: boolean;
48
+ }): string;
49
+
50
+ export { COMMAND_DOCS, type CommandDoc, type HelpDetail, commandDocKey, helpDetailFromArgv, renderCommandExplanation };
@@ -0,0 +1,50 @@
1
+ /// <reference path="./text-imports.d.ts" />
2
+ /**
3
+ * The command explanations, and the only place they are written down.
4
+ *
5
+ * `deepline <command> --help` appends the `core` text after commander's own
6
+ * help output, or `core` and then `verbose` the first time that command's help
7
+ * is read in an agent session (see help-seen.ts); `--help --verbose` always
8
+ * appends both; `--help --quiet` appends nothing. The MCP server serves the
9
+ * same text through the `deepline_help` tool, so a restricted client reads the
10
+ * identical explanation an agent with a shell would see.
11
+ *
12
+ * Every entry answers, in this order: what the command is for, when to reach
13
+ * for it, exactly what input it accepts, exactly what it prints, whether it
14
+ * spends credits, and what not to do with it. Agents guess input and output
15
+ * formats when a help page leaves them out, and then write parsing code for
16
+ * cases that do not exist; keep those two sections literal.
17
+ *
18
+ * Keys are the command path without the `deepline` prefix. The
19
+ * `command-docs.test.ts` suite fails when a key names a command that does not
20
+ * exist and when a golden-path command has no entry, so a rename or removal
21
+ * cannot leave stale text behind.
22
+ */
23
+ type CommandDoc = {
24
+ /** Shown by default at the end of `--help`. */
25
+ core: string;
26
+ /** Shown after `core` with `--help --verbose`. */
27
+ verbose?: string;
28
+ };
29
+ type HelpDetail = 'quiet' | 'core' | 'verbose';
30
+ declare const COMMAND_DOCS: Record<string, CommandDoc>;
31
+ /** The command path (without the program name) for a commander command. */
32
+ declare function commandDocKey(command: {
33
+ name(): string;
34
+ parent: {
35
+ name(): string;
36
+ parent: unknown;
37
+ } | null;
38
+ }): string;
39
+ declare function helpDetailFromArgv(argv: readonly string[]): HelpDetail;
40
+ /**
41
+ * The explanation text for one command at one detail level, or '' when the
42
+ * level is quiet or the command has no entry. The returned text is complete:
43
+ * it ends with the pointer to the other detail level.
44
+ */
45
+ declare function renderCommandExplanation(key: string, detail: HelpDetail, options?: {
46
+ pointer?: boolean;
47
+ firstRead?: boolean;
48
+ }): string;
49
+
50
+ export { COMMAND_DOCS, type CommandDoc, type HelpDetail, commandDocKey, helpDetailFromArgv, renderCommandExplanation };
@@ -0,0 +1,13 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+
5
+
6
+ var _chunkQILHWZFPjs = require('./chunk-QILHWZFP.js');
7
+ require('./chunk-COGTRVWW.js');
8
+
9
+
10
+
11
+
12
+
13
+ exports.COMMAND_DOCS = _chunkQILHWZFPjs.COMMAND_DOCS; exports.commandDocKey = _chunkQILHWZFPjs.commandDocKey; exports.helpDetailFromArgv = _chunkQILHWZFPjs.helpDetailFromArgv; exports.renderCommandExplanation = _chunkQILHWZFPjs.renderCommandExplanation;
@@ -0,0 +1,13 @@
1
+ import {
2
+ COMMAND_DOCS,
3
+ commandDocKey,
4
+ helpDetailFromArgv,
5
+ renderCommandExplanation
6
+ } from "./chunk-QFBHEQCQ.mjs";
7
+ import "./chunk-KRD6H754.mjs";
8
+ export {
9
+ COMMAND_DOCS,
10
+ commandDocKey,
11
+ helpDetailFromArgv,
12
+ renderCommandExplanation
13
+ };
@@ -4,11 +4,11 @@ import {
4
4
  printCommandEnvelope,
5
5
  printJson,
6
6
  readCsvRows
7
- } from "./chunk-6S2HRJIV.mjs";
8
- import "./chunk-WF5BHZWA.mjs";
7
+ } from "./chunk-EL62MLRD.mjs";
8
+ import "./chunk-VZBNBCEB.mjs";
9
9
  import "./chunk-DLIRSHV6.mjs";
10
- import "./chunk-2CTZ4MRZ.mjs";
11
10
  import "./chunk-NXGCO4JB.mjs";
11
+ import "./chunk-SJY4SUCH.mjs";
12
12
  import "./chunk-WZYKRD7T.mjs";
13
13
  import "./chunk-KRD6H754.mjs";
14
14
 
@@ -4,11 +4,11 @@
4
4
 
5
5
 
6
6
 
7
- var _chunkHBN5ORV2js = require('./chunk-HBN5ORV2.js');
8
- require('./chunk-A544Z3OR.js');
7
+ var _chunkBVPN57ADjs = require('./chunk-BVPN57AD.js');
8
+ require('./chunk-UZQWPQ6V.js');
9
9
  require('./chunk-XNYIZMNQ.js');
10
- require('./chunk-YILVDBYO.js');
11
10
  require('./chunk-7P5AA3SN.js');
11
+ require('./chunk-OVUDXZCK.js');
12
12
  require('./chunk-OG64RBAC.js');
13
13
  require('./chunk-COGTRVWW.js');
14
14
 
@@ -126,7 +126,7 @@ function renderTable(rows, totalRows, verbose, footer = `showing ${rows.length}
126
126
  column.length,
127
127
  ...rows.map((row) => {
128
128
  const value = _nullishCoalesce(row[column], () => ( ""));
129
- return (verbose ? value : _chunkHBN5ORV2js.clip.call(void 0, value, 42)).length;
129
+ return (verbose ? value : _chunkBVPN57ADjs.clip.call(void 0, value, 42)).length;
130
130
  })
131
131
  )
132
132
  ])
@@ -136,7 +136,7 @@ function renderTable(rows, totalRows, verbose, footer = `showing ${rows.length}
136
136
  const body = rows.map(
137
137
  (row) => columns.map((column) => {
138
138
  const raw = _nullishCoalesce(row[column], () => ( ""));
139
- const display = verbose ? raw : _chunkHBN5ORV2js.clip.call(void 0, raw, 42);
139
+ const display = verbose ? raw : _chunkBVPN57ADjs.clip.call(void 0, raw, 42);
140
140
  return display.padEnd(widths[column]);
141
141
  }).join(" | ")
142
142
  );
@@ -156,7 +156,7 @@ async function handleCsvShow(path, options, command) {
156
156
  { exitCode: 2 }
157
157
  );
158
158
  }
159
- const allRows = _chunkHBN5ORV2js.readCsvRows.call(void 0, csvPath);
159
+ const allRows = _chunkBVPN57ADjs.readCsvRows.call(void 0, csvPath);
160
160
  const [rowStart, rowEnd] = parseRowRange(options.rows);
161
161
  const rows = options.summary && options.rows === void 0 ? allRows : selectRows(allRows, rowStart, rowEnd);
162
162
  const { rows: selected, columns } = selectColumns(
@@ -169,7 +169,7 @@ async function handleCsvShow(path, options, command) {
169
169
  if (options.summary) {
170
170
  const summaries = summarizeColumns(selected, columns);
171
171
  if (format === "json") {
172
- _chunkHBN5ORV2js.printJson.call(void 0, {
172
+ _chunkBVPN57ADjs.printJson.call(void 0, {
173
173
  rows: summaries,
174
174
  total_rows: selected.length,
175
175
  source_total_rows: allRows.length
@@ -178,7 +178,7 @@ async function handleCsvShow(path, options, command) {
178
178
  }
179
179
  const displayRows = summaryDisplayRows(summaries);
180
180
  if (format === "csv") {
181
- process.stdout.write(_chunkHBN5ORV2js.csvStringFromRows.call(void 0, displayRows));
181
+ process.stdout.write(_chunkBVPN57ADjs.csvStringFromRows.call(void 0, displayRows));
182
182
  return;
183
183
  }
184
184
  process.stdout.write(
@@ -193,7 +193,7 @@ async function handleCsvShow(path, options, command) {
193
193
  return;
194
194
  }
195
195
  if (format === "json") {
196
- _chunkHBN5ORV2js.printJson.call(void 0, {
196
+ _chunkBVPN57ADjs.printJson.call(void 0, {
197
197
  rows: selected.map((row, index) => ({ __row: rowStart + index, ...row }))
198
198
  });
199
199
  return;
@@ -436,7 +436,7 @@ async function handleCsvRenderStart(options) {
436
436
  if (log) {
437
437
  detail = `
438
438
  CSV render log:
439
- ${_chunkHBN5ORV2js.clip.call(void 0, log, 2e3)}`;
439
+ ${_chunkBVPN57ADjs.clip.call(void 0, log, 2e3)}`;
440
440
  }
441
441
  } catch (e7) {
442
442
  }
@@ -487,7 +487,7 @@ async function handleCsvRenderStatus(options) {
487
487
  if (payload.pid) lines.push(`Render PID: ${payload.pid}`);
488
488
  if (payload.url) lines.push(`Render URL: ${payload.url}`);
489
489
  lines.push(`Render Health: ${payload.health_status}`);
490
- _chunkHBN5ORV2js.printCommandEnvelope.call(void 0, payload, {
490
+ _chunkBVPN57ADjs.printCommandEnvelope.call(void 0, payload, {
491
491
  json: options.json,
492
492
  text: `${lines.join("\n")}
493
493
  `
@@ -523,7 +523,7 @@ async function handleCsvRenderStop(options) {
523
523
  };
524
524
  const text = stopped.length > 0 ? `Stopped CSV render process(es): ${stopped.join(" ")}
525
525
  ` : "No running CSV render process found.\n";
526
- _chunkHBN5ORV2js.printCommandEnvelope.call(void 0, payload, { json: options.json, text });
526
+ _chunkBVPN57ADjs.printCommandEnvelope.call(void 0, payload, { json: options.json, text });
527
527
  }
528
528
  async function handleCsvRender(action, options) {
529
529
  const normalized = _nullishCoalesce(action, () => ( "start"));