deepline 0.3.495 → 0.3.496

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 (156) hide show
  1. package/dist/bundling-sources/sdk/src/client-core.ts +91 -1
  2. package/dist/bundling-sources/sdk/src/plays/run-request.ts +5 -19
  3. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  4. package/dist/bundling-sources/shared_libs/monitors/billing/credit-recovery.ts +79 -0
  5. package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +18 -0
  6. package/dist/bundling-sources/shared_libs/observability/scheduled-work-control.ts +19 -3
  7. package/dist/bundling-sources/shared_libs/play-runtime/deployment/fly-machines.ts +7 -1
  8. package/dist/bundling-sources/shared_libs/play-runtime/deployment/runtime-gateway-drain.ts +110 -66
  9. package/dist/bundling-sources/shared_libs/play-runtime/deployment/vercel-fly-rollback-alignment.ts +57 -0
  10. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +15 -0
  11. package/dist/bundling-sources/shared_libs/plays/docflow.ts +19 -10
  12. package/dist/bundling-sources/shared_libs/plays/static-pipeline.ts +26 -6
  13. package/dist/bundling-sources/shared_libs/product-notifications/slack-payload.ts +4 -1
  14. package/dist/cli/{auth-B2YUNFQ6.mjs → auth-EU4EFRDJ.mjs} +5 -5
  15. package/dist/cli/auth-SHWC5FMY.js +43 -0
  16. package/dist/cli/{billing-2Q7TMNRE.js → billing-4JJLTVK4.js} +80 -80
  17. package/dist/cli/{billing-5TR7ZBZM.mjs → billing-GMVH3RBX.mjs} +7 -7
  18. package/dist/cli/{chunk-ACVT5LPN.js → chunk-3HIPDJWJ.js} +53 -53
  19. package/dist/cli/{chunk-DFK5IJMT.mjs → chunk-3KA466RV.mjs} +1 -1
  20. package/dist/cli/{chunk-SC5GHGFD.mjs → chunk-4NKAM4GX.mjs} +2 -2
  21. package/dist/cli/{chunk-Z33PZUWG.js → chunk-5GK6J7MH.js} +5 -5
  22. package/dist/cli/{chunk-TSKVPEVZ.mjs → chunk-5M4PLPTR.mjs} +46 -3
  23. package/dist/cli/{chunk-CTFR52JC.js → chunk-5YSIHOGV.js} +26 -26
  24. package/dist/cli/{chunk-RBBOUPME.mjs → chunk-6QIAEXRH.mjs} +1 -1
  25. package/dist/cli/{chunk-CKLJAQIV.mjs → chunk-6UUZM4FY.mjs} +5 -5
  26. package/dist/cli/{chunk-T4PGA6UD.js → chunk-73CBLBNP.js} +1 -1
  27. package/dist/cli/{chunk-FC4JGTFC.mjs → chunk-7NBDLK3N.mjs} +1 -1
  28. package/dist/cli/{chunk-HJ5LYO6U.mjs → chunk-7Q7VPFPR.mjs} +2 -2
  29. package/dist/cli/{chunk-I66IWCY4.mjs → chunk-7U6W3CKT.mjs} +4 -4
  30. package/dist/cli/{chunk-TUAEM76Y.js → chunk-AOBAVBSX.js} +108 -65
  31. package/dist/cli/{chunk-KG2FUYWB.mjs → chunk-CNMIYEB4.mjs} +3 -3
  32. package/dist/cli/{chunk-DVQHG6AM.mjs → chunk-CS2AEAD6.mjs} +63 -11
  33. package/dist/cli/{chunk-MG3WST3Z.mjs → chunk-DFW6P6ZN.mjs} +2 -2
  34. package/dist/cli/{chunk-L5ZXEYTQ.mjs → chunk-E3KXXJWR.mjs} +6 -6
  35. package/dist/cli/{chunk-PKV5CD3W.js → chunk-EQR5O2D2.js} +87 -35
  36. package/dist/cli/{chunk-CAWE3MS2.js → chunk-EX4JEFYI.js} +16 -16
  37. package/dist/cli/{chunk-S2QARJLX.mjs → chunk-FXPICCUU.mjs} +1 -1
  38. package/dist/cli/{chunk-7OGADAAA.js → chunk-GKZUGHDK.js} +6 -6
  39. package/dist/cli/{chunk-PHO53W67.js → chunk-GRIHMNYM.js} +4 -4
  40. package/dist/cli/{chunk-UKGOZOTT.js → chunk-HIAFBOYA.js} +8 -8
  41. package/dist/cli/{chunk-FLJSK32S.mjs → chunk-IMWJRBV5.mjs} +1 -1
  42. package/dist/cli/{chunk-OFBDI5S3.mjs → chunk-IXPZROZX.mjs} +2 -2
  43. package/dist/cli/{chunk-ZBQBH4IT.js → chunk-J55ZM5CK.js} +3 -3
  44. package/dist/cli/{chunk-TCNILHMS.js → chunk-JEPNE4N5.js} +5 -5
  45. package/dist/cli/{chunk-5OKQPDYJ.js → chunk-JU4LIA2T.js} +7 -7
  46. package/dist/cli/{chunk-UMFZQREB.js → chunk-KKI5GWED.js} +94 -94
  47. package/dist/cli/{chunk-UDFO2MWA.js → chunk-MWQ3WQ4Q.js} +41 -41
  48. package/dist/cli/{chunk-XR6RCBB3.mjs → chunk-O36ZPHJG.mjs} +10 -10
  49. package/dist/cli/{chunk-XAOLMEN5.js → chunk-PHVRS56F.js} +14 -14
  50. package/dist/cli/{chunk-WVL5HGUG.js → chunk-QEBQIGXP.js} +2 -2
  51. package/dist/cli/{chunk-LQKZG5RN.js → chunk-QN6IULFT.js} +53 -53
  52. package/dist/cli/{chunk-SR6VS5PG.mjs → chunk-QYXUZX5N.mjs} +4 -4
  53. package/dist/cli/{chunk-B3ROCZ5Y.js → chunk-QZ7I4NZZ.js} +2 -2
  54. package/dist/cli/{chunk-7LLUJQM5.mjs → chunk-R4H5MCG4.mjs} +4 -4
  55. package/dist/cli/{chunk-H5L2Q2GI.mjs → chunk-SH6HOR25.mjs} +2 -2
  56. package/dist/cli/{chunk-TMO7W4P2.mjs → chunk-U6SE6757.mjs} +1 -1
  57. package/dist/cli/{chunk-7YNZRALI.mjs → chunk-UT3ORL35.mjs} +3 -3
  58. package/dist/cli/{chunk-PEIOQKTA.js → chunk-UTG3STCR.js} +3 -3
  59. package/dist/cli/{chunk-XKYQR3QK.js → chunk-W7DZ6UGP.js} +3 -3
  60. package/dist/cli/{chunk-ZB6UYG5I.mjs → chunk-WCBZHSC4.mjs} +5 -5
  61. package/dist/cli/{chunk-Y2DUGUUU.js → chunk-WEGGJMNF.js} +21 -21
  62. package/dist/cli/{chunk-JRBQC6L4.mjs → chunk-WTZ7Y3IZ.mjs} +2 -2
  63. package/dist/cli/{chunk-TFMV3NKL.mjs → chunk-YHFW7MBT.mjs} +1 -1
  64. package/dist/cli/{chunk-XX6PRYFI.js → chunk-Z27R2BG7.js} +16 -16
  65. package/dist/cli/{chunk-MAMEKGLI.js → chunk-ZL4Q4T3G.js} +7 -7
  66. package/dist/cli/{csv-5UQXKWLE.mjs → csv-ET7ESAPM.mjs} +4 -4
  67. package/dist/cli/{csv-DZQ77T67.js → csv-JWBLNEPC.js} +13 -13
  68. package/dist/cli/{db-JIPLUHA6.js → db-3ZGQXWTQ.js} +28 -28
  69. package/dist/cli/{db-F62BVFTP.mjs → db-4PIWQPR6.mjs} +7 -7
  70. package/dist/cli/describe-KO3OQBIR.js +50 -0
  71. package/dist/cli/{describe-J7KYHONJ.mjs → describe-OREUCFC2.mjs} +18 -18
  72. package/dist/cli/describe-core.d.mts +3 -3
  73. package/dist/cli/describe-core.d.ts +3 -3
  74. package/dist/cli/{executions-XB4F2KZD.mjs → executions-HW6PMZOF.mjs} +7 -7
  75. package/dist/cli/{executions-XQ4FNJ27.js → executions-YR545MRU.js} +9 -9
  76. package/dist/cli/{feedback-5CR4CJ6W.mjs → feedback-B2FJ6HPA.mjs} +4 -4
  77. package/dist/cli/{feedback-Q6JRCMDV.js → feedback-FNVHJQEC.js} +8 -8
  78. package/dist/cli/{git-P5WBBUT3.mjs → git-CCNPW3CA.mjs} +5 -5
  79. package/dist/cli/git-X2QJ2B5O.js +25 -0
  80. package/dist/cli/index.js +137 -137
  81. package/dist/cli/index.mjs +40 -40
  82. package/dist/cli/{legacy-noops-EJAB6III.js → legacy-noops-2EBZS45D.js} +8 -8
  83. package/dist/cli/{legacy-noops-H5JJVYZ2.mjs → legacy-noops-VJLCXTPB.mjs} +5 -5
  84. package/dist/cli/{monitors-QPFAT2J5.mjs → monitors-4AMETRW7.mjs} +190 -8
  85. package/dist/cli/{monitors-7DOGM7RO.js → monitors-JNWKPCN5.js} +318 -136
  86. package/dist/cli/{org-QOBB4IN3.js → org-7FUHVFYU.js} +73 -73
  87. package/dist/cli/{org-BH7ATDIJ.mjs → org-LO6GSCCG.mjs} +7 -7
  88. package/dist/cli/{pages-PJH2TXZQ.mjs → pages-PJ32M2PU.mjs} +7 -7
  89. package/dist/cli/{pages-PLTE54KM.js → pages-TT4TZOOV.js} +19 -19
  90. package/dist/cli/{play-ULTJ3LPA.mjs → play-QJEZAIZB.mjs} +19 -48
  91. package/dist/cli/{play-XZAPTF3T.js → play-VN7DFYDP.js} +618 -647
  92. package/dist/cli/{providers-6NUTRVE4.mjs → providers-24ER3SND.mjs} +7 -7
  93. package/dist/cli/{providers-SKXLW7M3.js → providers-IDFN2FCR.js} +10 -10
  94. package/dist/cli/{quickstart-JFCIIGII.js → quickstart-AQDCRVUQ.js} +6 -6
  95. package/dist/cli/{quickstart-5HMJMXVT.mjs → quickstart-FKENQU34.mjs} +4 -4
  96. package/dist/cli/{run-BRAXLCBC.js → run-HCASJQZY.js} +37 -37
  97. package/dist/cli/{run-2BJZPY4K.mjs → run-KXMRE5ZD.mjs} +23 -23
  98. package/dist/cli/{search-IDXSB2CV.mjs → search-3F2T33OE.mjs} +8 -8
  99. package/dist/cli/search-OGY6SQDJ.js +32 -0
  100. package/dist/cli/{search-output-CJ4TNYF7.js → search-output-GFCEGNCJ.js} +6 -6
  101. package/dist/cli/{search-output-AATMH4QG.mjs → search-output-U6PM5KAH.mjs} +4 -4
  102. package/dist/cli/{secrets-6SMKTBFT.js → secrets-KYVUP755.js} +16 -16
  103. package/dist/cli/{secrets-UQNEJSNG.mjs → secrets-ZZSOVXOX.mjs} +7 -7
  104. package/dist/cli/{sessions-MHTUVPSR.mjs → sessions-4Z62CVHL.mjs} +5 -5
  105. package/dist/cli/{sessions-W3KU4Q4X.js → sessions-7JFKTUQS.js} +6 -6
  106. package/dist/cli/{settings-KNYJ6GXK.mjs → settings-OXG7IRVC.mjs} +12 -12
  107. package/dist/cli/{settings-BA52NEU5.js → settings-X4PSK4EW.js} +79 -79
  108. package/dist/cli/{setup-D5HCJAVU.js → setup-NCJEDW4W.js} +49 -49
  109. package/dist/cli/{setup-TLTZ2YCO.mjs → setup-RB7JE6KA.mjs} +9 -9
  110. package/dist/cli/{skills-DPLM4EGS.mjs → skills-D4BR2WU2.mjs} +7 -7
  111. package/dist/cli/skills-WWWFRDCA.js +36 -0
  112. package/dist/cli/{tools-I4ZOJV23.mjs → tools-CEOD7VD5.mjs} +17 -17
  113. package/dist/cli/tools-QMSAA3LC.js +57 -0
  114. package/dist/cli/update-HTDFPN7L.js +34 -0
  115. package/dist/cli/{update-VIFS7IK5.mjs → update-UKUMQ6FC.mjs} +9 -9
  116. package/dist/cli/{workflow-TAQBNDV7.mjs → workflow-EKKTTSCJ.mjs} +8 -8
  117. package/dist/cli/{workflow-7REPOHXM.js → workflow-LFWQWZKS.js} +18 -18
  118. package/dist/{client-CKVH6tmp.d.ts → client-Cj3UqrCZ.d.ts} +1 -1
  119. package/dist/{client-BDT_LwuM.d.mts → client-DSCTVVRj.d.mts} +1 -1
  120. package/dist/{client-core-CEixe_C0.d.mts → client-core-B-8DTIN1.d.mts} +44 -3
  121. package/dist/{client-core-RS-d-vtY.d.ts → client-core-dI4KTuWS.d.ts} +44 -3
  122. package/dist/{compiler-manifest-CPEF48NM.d.mts → compiler-manifest-DlXDyndN.d.mts} +2 -0
  123. package/dist/{compiler-manifest-CPEF48NM.d.ts → compiler-manifest-DlXDyndN.d.ts} +2 -0
  124. package/dist/{errors-BWbPzqwo.d.mts → errors-BtriA2ld.d.mts} +1 -1
  125. package/dist/{errors-B-PJXveg.d.ts → errors-DmcLykM7.d.ts} +1 -1
  126. package/dist/{index-CvVxPpE8.d.ts → index--Jw-slHY.d.ts} +1 -1
  127. package/dist/{index-BJ8AA1F9.d.mts → index-DI0sR_fX.d.mts} +1 -1
  128. package/dist/index.d.mts +7 -7
  129. package/dist/index.d.ts +7 -7
  130. package/dist/index.js +10 -10
  131. package/dist/index.mjs +7 -7
  132. package/dist/install-integrity.json +110 -110
  133. package/dist/plays/bundle-play-file.d.mts +3 -3
  134. package/dist/plays/bundle-play-file.d.ts +3 -3
  135. package/dist/plays/play-description.d.mts +2 -2
  136. package/dist/plays/play-description.d.ts +2 -2
  137. package/dist/plays/run-request.d.mts +2 -2
  138. package/dist/plays/run-request.d.ts +2 -2
  139. package/dist/plays/run-request.js +2 -2
  140. package/dist/plays/run-request.mjs +1 -1
  141. package/dist/release.d.mts +1 -1
  142. package/dist/release.d.ts +1 -1
  143. package/dist/release.js +2 -2
  144. package/dist/release.mjs +1 -1
  145. package/dist/server.d.mts +4 -4
  146. package/dist/server.d.ts +4 -4
  147. package/dist/server.js +6 -6
  148. package/dist/server.mjs +4 -4
  149. package/package.json +1 -1
  150. package/dist/cli/auth-GAOWVOK4.js +0 -43
  151. package/dist/cli/describe-BA4RAZ7J.js +0 -50
  152. package/dist/cli/git-EAO432S2.js +0 -25
  153. package/dist/cli/search-4MU2G6HV.js +0 -32
  154. package/dist/cli/skills-SVUWVXCE.js +0 -36
  155. package/dist/cli/tools-RJSP76HX.js +0 -57
  156. package/dist/cli/update-YT6JPIC6.js +0 -34
@@ -4,20 +4,20 @@
4
4
 
5
5
 
6
6
 
7
- var _chunkXX6PRYFIjs = require('./chunk-XX6PRYFI.js');
7
+ var _chunkZ27R2BG7js = require('./chunk-Z27R2BG7.js');
8
8
 
9
9
 
10
- var _chunkLQKZG5RNjs = require('./chunk-LQKZG5RN.js');
10
+ var _chunkQN6IULFTjs = require('./chunk-QN6IULFT.js');
11
11
 
12
12
 
13
13
 
14
- var _chunkMAMEKGLIjs = require('./chunk-MAMEKGLI.js');
14
+ var _chunkZL4Q4T3Gjs = require('./chunk-ZL4Q4T3G.js');
15
15
 
16
16
 
17
- var _chunkZBQBH4ITjs = require('./chunk-ZBQBH4IT.js');
17
+ var _chunkJ55ZM5CKjs = require('./chunk-J55ZM5CK.js');
18
18
 
19
19
 
20
- var _chunkPHO53W67js = require('./chunk-PHO53W67.js');
20
+ var _chunkGRIHMNYMjs = require('./chunk-GRIHMNYM.js');
21
21
 
22
22
  // src/cli/compatibility-catalog.ts
23
23
  var readers = /* @__PURE__ */ new WeakMap();
@@ -44,7 +44,7 @@ function trustedAutoUpdateRegistryUrl(baseUrl) {
44
44
  async function reportAutoUpdateEvent(input) {
45
45
  let apiKey = "";
46
46
  try {
47
- apiKey = _chunkZBQBH4ITjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
47
+ apiKey = _chunkJ55ZM5CKjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
48
48
  } catch (e2) {
49
49
  return;
50
50
  }
@@ -60,15 +60,15 @@ async function reportAutoUpdateEvent(input) {
60
60
  headers: {
61
61
  Authorization: `Bearer ${apiKey}`,
62
62
  "Content-Type": "application/json",
63
- "User-Agent": `deepline-ts-sdk/${_chunkPHO53W67js.SDK_VERSION}`,
63
+ "User-Agent": `deepline-ts-sdk/${_chunkGRIHMNYMjs.SDK_VERSION}`,
64
64
  "X-Deepline-Client-Family": "sdk",
65
65
  "X-Deepline-CLI-Family": "sdk",
66
- "X-Deepline-CLI-Version": _chunkPHO53W67js.SDK_VERSION,
67
- "X-Deepline-SDK-Version": _chunkPHO53W67js.SDK_VERSION
66
+ "X-Deepline-CLI-Version": _chunkGRIHMNYMjs.SDK_VERSION,
67
+ "X-Deepline-SDK-Version": _chunkGRIHMNYMjs.SDK_VERSION
68
68
  },
69
69
  body: JSON.stringify({
70
70
  event: input.event,
71
- current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) || _chunkPHO53W67js.SDK_VERSION,
71
+ current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) || _chunkGRIHMNYMjs.SDK_VERSION,
72
72
  target_version: input.response.latest,
73
73
  reason: _optionalChain([input, 'access', _8 => _8.response, 'access', _9 => _9.auto_update, 'optionalAccess', _10 => _10.reason]),
74
74
  command: _nullishCoalesce(input.response.command, () => ( null)),
@@ -87,13 +87,13 @@ function envTruthy(name) {
87
87
  return value === "1" || value === "true" || value === "yes";
88
88
  }
89
89
  function shouldSkipSelfUpdate(policy) {
90
- return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !_chunkXX6PRYFIjs.shouldRunCliAutoUpdate.call(void 0, ) || _chunkLQKZG5RNjs.isCiEnvironment.call(void 0, );
90
+ return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !_chunkZ27R2BG7js.shouldRunCliAutoUpdate.call(void 0, ) || _chunkQN6IULFTjs.isCiEnvironment.call(void 0, );
91
91
  }
92
92
  function isDowngradeAutoUpdateResponse(response) {
93
93
  const target = _optionalChain([response, 'optionalAccess', _17 => _17.latest, 'optionalAccess', _18 => _18.trim, 'call', _19 => _19()]);
94
- const current = _optionalChain([response, 'optionalAccess', _20 => _20.current, 'optionalAccess', _21 => _21.trim, 'call', _22 => _22()]) || _chunkPHO53W67js.SDK_VERSION;
94
+ const current = _optionalChain([response, 'optionalAccess', _20 => _20.current, 'optionalAccess', _21 => _21.trim, 'call', _22 => _22()]) || _chunkGRIHMNYMjs.SDK_VERSION;
95
95
  if (!target) return false;
96
- return _chunkXX6PRYFIjs.compareUpdateVersions.call(void 0, target, current) < 0;
96
+ return _chunkZ27R2BG7js.compareUpdateVersions.call(void 0, target, current) < 0;
97
97
  }
98
98
  function relaunchCurrentCommand(plan, runtime = {}) {
99
99
  return new Promise((resolve) => {
@@ -146,7 +146,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
146
146
  }
147
147
  if (isDowngradeAutoUpdateResponse(response)) {
148
148
  const target = response.latest;
149
- const current = _optionalChain([response, 'access', _26 => _26.current, 'optionalAccess', _27 => _27.trim, 'call', _28 => _28()]) || _chunkPHO53W67js.SDK_VERSION;
149
+ const current = _optionalChain([response, 'access', _26 => _26.current, 'optionalAccess', _27 => _27.trim, 'call', _28 => _28()]) || _chunkGRIHMNYMjs.SDK_VERSION;
150
150
  process.stderr.write(
151
151
  `Deepline SDK/CLI auto-update refused: server advertised older ${target} than current ${current}. Continuing without mutating the CLI.
152
152
  `
@@ -154,21 +154,21 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
154
154
  return false;
155
155
  }
156
156
  const packageSpec = response.latest ? `deepline@${response.latest}` : void 0;
157
- const plan = _chunkXX6PRYFIjs.resolveUpdatePlan.call(void 0, {
157
+ const plan = _chunkZ27R2BG7js.resolveUpdatePlan.call(void 0, {
158
158
  packageSpec,
159
159
  requireVerifiedNpmOwnership: true,
160
160
  npmFallbackRegistryUrl: trustedAutoUpdateRegistryUrl(baseUrl)
161
161
  });
162
- if (!_chunkXX6PRYFIjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) {
162
+ if (!_chunkZ27R2BG7js.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) {
163
163
  return false;
164
164
  }
165
165
  if (!autoUpdate.required && autoUpdate.reason !== "rollback_forced") {
166
166
  deferredAutoUpdate = async () => {
167
167
  await applyAutoUpdate(response, baseUrl, plan, "next_command");
168
168
  };
169
- if (_chunkMAMEKGLIjs.isJsonOutputMode.call(void 0, )) {
169
+ if (_chunkZL4Q4T3Gjs.isJsonOutputMode.call(void 0, )) {
170
170
  const target = _optionalChain([response, 'access', _29 => _29.latest, 'optionalAccess', _30 => _30.trim, 'call', _31 => _31()]);
171
- _chunkMAMEKGLIjs.addJsonNotice.call(void 0, {
171
+ _chunkZL4Q4T3Gjs.addJsonNotice.call(void 0, {
172
172
  code: "sdk_update_queued",
173
173
  message: `Deepline SDK/CLI update${target ? ` to ${target}` : ""} is queued after this command; the next command will use it if installation succeeds.`
174
174
  });
@@ -181,7 +181,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
181
181
  return true;
182
182
  }
183
183
  async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
184
- if (!_chunkXX6PRYFIjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) return false;
184
+ if (!_chunkZ27R2BG7js.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) return false;
185
185
  const autoUpdate = response.auto_update;
186
186
  const label = _optionalChain([autoUpdate, 'optionalAccess', _32 => _32.reason]) === "rollback_forced" ? "has a server rollback pending and needs the latest rollback-aware CLI" : _optionalChain([autoUpdate, 'optionalAccess', _33 => _33.reason]) === "deprecated" ? "is deprecated and will update automatically" : _optionalChain([autoUpdate, 'optionalAccess', _34 => _34.required]) ? "requires an update" : "has an update available and will update automatically";
187
187
  process.stderr.write(
@@ -194,7 +194,7 @@ async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
194
194
  event: "started",
195
195
  installKind: plan.kind
196
196
  });
197
- const updateResult = await _chunkXX6PRYFIjs.runAutomaticUpdatePlan.call(void 0, plan);
197
+ const updateResult = await _chunkZ27R2BG7js.runAutomaticUpdatePlan.call(void 0, plan);
198
198
  if (updateResult.status === "skipped_previous_failure") {
199
199
  void reportAutoUpdateEvent({
200
200
  baseUrl,
@@ -245,7 +245,7 @@ var _crypto = require('crypto');
245
245
  var TOOL_EXECUTE_PROGRESS_INTERVAL_MS = 15e3;
246
246
  var activeToolExecuteCommand = null;
247
247
  function progressLine(line) {
248
- if (!_chunkMAMEKGLIjs.isJsonOutputMode.call(void 0, )) console.error(line);
248
+ if (!_chunkZL4Q4T3Gjs.isJsonOutputMode.call(void 0, )) console.error(line);
249
249
  }
250
250
  function beginToolExecuteCommand() {
251
251
  if (activeToolExecuteCommand) return activeToolExecuteCommand.invocationId;
@@ -2,10 +2,10 @@ import {
2
2
  HttpClient,
3
3
  resolveCliCommandContext,
4
4
  resolveConfig
5
- } from "./chunk-FC4JGTFC.mjs";
5
+ } from "./chunk-7NBDLK3N.mjs";
6
6
  import {
7
7
  detectAgentRuntime
8
- } from "./chunk-FLJSK32S.mjs";
8
+ } from "./chunk-IMWJRBV5.mjs";
9
9
  import {
10
10
  DeeplineError,
11
11
  serializeToolExecutionFailure
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  writeRawStderr
3
- } from "./chunk-JRBQC6L4.mjs";
3
+ } from "./chunk-WTZ7Y3IZ.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 _chunkWVL5HGUGjs = require('./chunk-WVL5HGUG.js');
4
+ var _chunkQEBQIGXPjs = require('./chunk-QEBQIGXP.js');
5
5
 
6
6
 
7
- var _chunkUDFO2MWAjs = require('./chunk-UDFO2MWA.js');
7
+ var _chunkMWQ3WQ4Qjs = require('./chunk-MWQ3WQ4Q.js');
8
8
 
9
9
 
10
- var _chunkLQKZG5RNjs = require('./chunk-LQKZG5RN.js');
10
+ var _chunkQN6IULFTjs = require('./chunk-QN6IULFT.js');
11
11
 
12
12
 
13
- var _chunkMAMEKGLIjs = require('./chunk-MAMEKGLI.js');
13
+ var _chunkZL4Q4T3Gjs = require('./chunk-ZL4Q4T3G.js');
14
14
 
15
15
 
16
- var _chunkZBQBH4ITjs = require('./chunk-ZBQBH4IT.js');
16
+ var _chunkJ55ZM5CKjs = require('./chunk-J55ZM5CK.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 = _chunkLQKZG5RNjs.resolveShellSpawn.call(void 0,
498
+ const plan = _chunkQN6IULFTjs.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 ? _chunkWVL5HGUGjs.readNpmVersion.call(void 0, env) : options.npmVersion;
560
- const npmGlobalInstallFlags = _chunkWVL5HGUGjs.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 ? _chunkQEBQIGXPjs.readNpmVersion.call(void 0, env) : options.npmVersion;
560
+ const npmGlobalInstallFlags = _chunkQEBQIGXPjs.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()]) || _chunkZBQBH4ITjs.autoDetectBaseUrl.call(void 0, )
570
+ _optionalChain([env, 'access', _22 => _22.DEEPLINE_HOST_URL, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()]) || _chunkJ55ZM5CKjs.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 = _chunkLQKZG5RNjs.resolveShellSpawn.call(void 0, command, args, process.platform, env);
819
+ const plan = _chunkQN6IULFTjs.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, () => ( _chunkZBQBH4ITjs.autoDetectBaseUrl));
1202
+ const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => ( _chunkJ55ZM5CKjs.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 _chunkUDFO2MWAjs.runSkillsCommand.call(void 0, { json: true });
1209
+ const exitCode = await _chunkMWQ3WQ4Qjs.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
- _chunkMAMEKGLIjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: true });
1280
+ _chunkZL4Q4T3Gjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: true });
1281
1281
  return 0;
1282
1282
  }
1283
1283
  if (options.printCommand) {
1284
- _chunkMAMEKGLIjs.printCommandEnvelope.call(void 0,
1284
+ _chunkZL4Q4T3Gjs.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
- _chunkMAMEKGLIjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: false });
1297
+ _chunkZL4Q4T3Gjs.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
- _chunkMAMEKGLIjs.printCommandEnvelope.call(void 0,
1327
+ _chunkZL4Q4T3Gjs.printCommandEnvelope.call(void 0,
1328
1328
  {
1329
1329
  ok: true,
1330
1330
  pinnedVersion
@@ -2,10 +2,10 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkZBQBH4ITjs = require('./chunk-ZBQBH4IT.js');
5
+ var _chunkJ55ZM5CKjs = require('./chunk-J55ZM5CK.js');
6
6
 
7
7
 
8
- var _chunkPHO53W67js = require('./chunk-PHO53W67.js');
8
+ var _chunkGRIHMNYMjs = require('./chunk-GRIHMNYM.js');
9
9
 
10
10
 
11
11
 
@@ -290,8 +290,8 @@ var BROWSER_OPEN_COOLDOWN_MS = 3e4;
290
290
  var SAME_URL_BROWSER_OPEN_COOLDOWN_MS = 5 * 6e4;
291
291
  var defaultBrowserCommandRunner = childProcess;
292
292
  function getAuthedHttpClient() {
293
- const config = _chunkZBQBH4ITjs.resolveConfig.call(void 0, );
294
- return { config, http: new (0, _chunkZBQBH4ITjs.HttpClient)(config) };
293
+ const config = _chunkJ55ZM5CKjs.resolveConfig.call(void 0, );
294
+ return { config, http: new (0, _chunkJ55ZM5CKjs.HttpClient)(config) };
295
295
  }
296
296
  function stableOsUserId() {
297
297
  try {
@@ -631,7 +631,7 @@ function collectLocalEnvInfo() {
631
631
  os: `${process.platform} ${process.arch}`,
632
632
  node_version: process.version,
633
633
  home_dir: homeDir,
634
- agent_runtime: _chunkPHO53W67js.detectAgentRuntime.call(void 0, )
634
+ agent_runtime: _chunkGRIHMNYMjs.detectAgentRuntime.call(void 0, )
635
635
  };
636
636
  const env = process.env;
637
637
  const optional = {
@@ -878,9 +878,9 @@ function markdownTableFromRows(rows, preferredColumns = []) {
878
878
  }
879
879
  function withAgentCommandContext(value) {
880
880
  const valueRecord = value !== null && typeof value === "object" && !Array.isArray(value) ? value : null;
881
- return _chunkPHO53W67js.detectAgentRuntime.call(void 0, ) !== "unknown" && valueRecord && !Object.prototype.hasOwnProperty.call(valueRecord, "command_context") ? {
881
+ return _chunkGRIHMNYMjs.detectAgentRuntime.call(void 0, ) !== "unknown" && valueRecord && !Object.prototype.hasOwnProperty.call(valueRecord, "command_context") ? {
882
882
  ...valueRecord,
883
- command_context: _chunkZBQBH4ITjs.resolveCliCommandContext.call(void 0, )
883
+ command_context: _chunkJ55ZM5CKjs.resolveCliCommandContext.call(void 0, )
884
884
  } : value;
885
885
  }
886
886
  function printJson(value, fields) {
@@ -4,13 +4,13 @@ import {
4
4
  printCommandEnvelope,
5
5
  printJson,
6
6
  readCsvRows
7
- } from "./chunk-JRBQC6L4.mjs";
8
- import "./chunk-FC4JGTFC.mjs";
9
- import "./chunk-FLJSK32S.mjs";
7
+ } from "./chunk-WTZ7Y3IZ.mjs";
8
+ import "./chunk-7NBDLK3N.mjs";
9
+ import "./chunk-IMWJRBV5.mjs";
10
10
  import "./chunk-4QF2K7TM.mjs";
11
11
  import "./chunk-DLIRSHV6.mjs";
12
12
  import "./chunk-HBL4PM5Q.mjs";
13
- import "./chunk-DFK5IJMT.mjs";
13
+ import "./chunk-3KA466RV.mjs";
14
14
  import "./chunk-WZYKRD7T.mjs";
15
15
  import "./chunk-KRD6H754.mjs";
16
16
 
@@ -4,13 +4,13 @@
4
4
 
5
5
 
6
6
 
7
- var _chunkMAMEKGLIjs = require('./chunk-MAMEKGLI.js');
8
- require('./chunk-ZBQBH4IT.js');
9
- require('./chunk-PHO53W67.js');
7
+ var _chunkZL4Q4T3Gjs = require('./chunk-ZL4Q4T3G.js');
8
+ require('./chunk-J55ZM5CK.js');
9
+ require('./chunk-GRIHMNYM.js');
10
10
  require('./chunk-ALJJRZNJ.js');
11
11
  require('./chunk-XNYIZMNQ.js');
12
12
  require('./chunk-DIAWYWT5.js');
13
- require('./chunk-T4PGA6UD.js');
13
+ require('./chunk-73CBLBNP.js');
14
14
  require('./chunk-OG64RBAC.js');
15
15
  require('./chunk-COGTRVWW.js');
16
16
 
@@ -128,7 +128,7 @@ function renderTable(rows, totalRows, verbose, footer = `showing ${rows.length}
128
128
  column.length,
129
129
  ...rows.map((row) => {
130
130
  const value = _nullishCoalesce(row[column], () => ( ""));
131
- return (verbose ? value : _chunkMAMEKGLIjs.clip.call(void 0, value, 42)).length;
131
+ return (verbose ? value : _chunkZL4Q4T3Gjs.clip.call(void 0, value, 42)).length;
132
132
  })
133
133
  )
134
134
  ])
@@ -138,7 +138,7 @@ function renderTable(rows, totalRows, verbose, footer = `showing ${rows.length}
138
138
  const body = rows.map(
139
139
  (row) => columns.map((column) => {
140
140
  const raw = _nullishCoalesce(row[column], () => ( ""));
141
- const display = verbose ? raw : _chunkMAMEKGLIjs.clip.call(void 0, raw, 42);
141
+ const display = verbose ? raw : _chunkZL4Q4T3Gjs.clip.call(void 0, raw, 42);
142
142
  return display.padEnd(widths[column]);
143
143
  }).join(" | ")
144
144
  );
@@ -158,7 +158,7 @@ async function handleCsvShow(path, options, command) {
158
158
  { exitCode: 2 }
159
159
  );
160
160
  }
161
- const allRows = _chunkMAMEKGLIjs.readCsvRows.call(void 0, csvPath);
161
+ const allRows = _chunkZL4Q4T3Gjs.readCsvRows.call(void 0, csvPath);
162
162
  const [rowStart, rowEnd] = parseRowRange(options.rows);
163
163
  const rows = options.summary && options.rows === void 0 ? allRows : selectRows(allRows, rowStart, rowEnd);
164
164
  const { rows: selected, columns } = selectColumns(
@@ -171,7 +171,7 @@ async function handleCsvShow(path, options, command) {
171
171
  if (options.summary) {
172
172
  const summaries = summarizeColumns(selected, columns);
173
173
  if (format === "json") {
174
- _chunkMAMEKGLIjs.printJson.call(void 0, {
174
+ _chunkZL4Q4T3Gjs.printJson.call(void 0, {
175
175
  rows: summaries,
176
176
  total_rows: selected.length,
177
177
  source_total_rows: allRows.length
@@ -180,7 +180,7 @@ async function handleCsvShow(path, options, command) {
180
180
  }
181
181
  const displayRows = summaryDisplayRows(summaries);
182
182
  if (format === "csv") {
183
- process.stdout.write(_chunkMAMEKGLIjs.csvStringFromRows.call(void 0, displayRows));
183
+ process.stdout.write(_chunkZL4Q4T3Gjs.csvStringFromRows.call(void 0, displayRows));
184
184
  return;
185
185
  }
186
186
  process.stdout.write(
@@ -195,7 +195,7 @@ async function handleCsvShow(path, options, command) {
195
195
  return;
196
196
  }
197
197
  if (format === "json") {
198
- _chunkMAMEKGLIjs.printJson.call(void 0, {
198
+ _chunkZL4Q4T3Gjs.printJson.call(void 0, {
199
199
  rows: selected.map((row, index) => ({ __row: rowStart + index, ...row }))
200
200
  });
201
201
  return;
@@ -438,7 +438,7 @@ async function handleCsvRenderStart(options) {
438
438
  if (log) {
439
439
  detail = `
440
440
  CSV render log:
441
- ${_chunkMAMEKGLIjs.clip.call(void 0, log, 2e3)}`;
441
+ ${_chunkZL4Q4T3Gjs.clip.call(void 0, log, 2e3)}`;
442
442
  }
443
443
  } catch (e7) {
444
444
  }
@@ -489,7 +489,7 @@ async function handleCsvRenderStatus(options) {
489
489
  if (payload.pid) lines.push(`Render PID: ${payload.pid}`);
490
490
  if (payload.url) lines.push(`Render URL: ${payload.url}`);
491
491
  lines.push(`Render Health: ${payload.health_status}`);
492
- _chunkMAMEKGLIjs.printCommandEnvelope.call(void 0, payload, {
492
+ _chunkZL4Q4T3Gjs.printCommandEnvelope.call(void 0, payload, {
493
493
  json: options.json,
494
494
  text: `${lines.join("\n")}
495
495
  `
@@ -525,7 +525,7 @@ async function handleCsvRenderStop(options) {
525
525
  };
526
526
  const text = stopped.length > 0 ? `Stopped CSV render process(es): ${stopped.join(" ")}
527
527
  ` : "No running CSV render process found.\n";
528
- _chunkMAMEKGLIjs.printCommandEnvelope.call(void 0, payload, { json: options.json, text });
528
+ _chunkZL4Q4T3Gjs.printCommandEnvelope.call(void 0, payload, { json: options.json, text });
529
529
  }
530
530
  async function handleCsvRender(action, options) {
531
531
  const normalized = _nullishCoalesce(action, () => ( "start"));
@@ -3,12 +3,12 @@
3
3
  var _chunkAID3OYVJjs = require('./chunk-AID3OYVJ.js');
4
4
 
5
5
 
6
- var _chunkZ33PZUWGjs = require('./chunk-Z33PZUWG.js');
6
+ var _chunk5GK6J7MHjs = require('./chunk-5GK6J7MH.js');
7
7
 
8
8
 
9
- var _chunkTUAEM76Yjs = require('./chunk-TUAEM76Y.js');
9
+ var _chunkAOBAVBSXjs = require('./chunk-AOBAVBSX.js');
10
10
  require('./chunk-E4CABWXL.js');
11
- require('./chunk-PKV5CD3W.js');
11
+ require('./chunk-EQR5O2D2.js');
12
12
  require('./chunk-NMU3VR5U.js');
13
13
  require('./chunk-XDVT3GOM.js');
14
14
 
@@ -20,9 +20,9 @@ require('./chunk-XDVT3GOM.js');
20
20
 
21
21
 
22
22
 
23
- var _chunkMAMEKGLIjs = require('./chunk-MAMEKGLI.js');
24
- require('./chunk-ZBQBH4IT.js');
25
- require('./chunk-PHO53W67.js');
23
+ var _chunkZL4Q4T3Gjs = require('./chunk-ZL4Q4T3G.js');
24
+ require('./chunk-J55ZM5CK.js');
25
+ require('./chunk-GRIHMNYM.js');
26
26
 
27
27
 
28
28
  var _chunkALJJRZNJjs = require('./chunk-ALJJRZNJ.js');
@@ -30,7 +30,7 @@ require('./chunk-XNYIZMNQ.js');
30
30
 
31
31
 
32
32
  var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
33
- require('./chunk-T4PGA6UD.js');
33
+ require('./chunk-73CBLBNP.js');
34
34
  require('./chunk-OG64RBAC.js');
35
35
  require('./chunk-COGTRVWW.js');
36
36
 
@@ -53,8 +53,8 @@ function formatCell(value) {
53
53
  return text.length > 80 ? `${text.slice(0, 77)}...` : text;
54
54
  }
55
55
  function tableLines(result) {
56
- const rows = _chunkMAMEKGLIjs.dataExportRows.call(void 0, customerDbRows(result));
57
- const responseColumns = _chunkMAMEKGLIjs.dataExportColumns.call(void 0,
56
+ const rows = _chunkZL4Q4T3Gjs.dataExportRows.call(void 0, customerDbRows(result));
57
+ const responseColumns = _chunkZL4Q4T3Gjs.dataExportColumns.call(void 0,
58
58
  rows,
59
59
  customerDbColumnNames(result)
60
60
  );
@@ -100,7 +100,7 @@ function tableLines(result) {
100
100
  return lines;
101
101
  }
102
102
  function customerDbRows(result) {
103
- return _chunkMAMEKGLIjs.recordRows.call(void 0, result.rows);
103
+ return _chunkZL4Q4T3Gjs.recordRows.call(void 0, result.rows);
104
104
  }
105
105
  function customerDbColumnNames(result) {
106
106
  return result.columns.map((column) => column.name).filter(Boolean);
@@ -153,7 +153,7 @@ function writeCustomerDbCsv(result, outPath) {
153
153
  const resolved = _path.resolve.call(void 0, outPath);
154
154
  _fs.writeFileSync.call(void 0,
155
155
  resolved,
156
- _chunkMAMEKGLIjs.dataExportCsvString.call(void 0, customerDbRows(result), customerDbColumnNames(result)),
156
+ _chunkZL4Q4T3Gjs.dataExportCsvString.call(void 0, customerDbRows(result), customerDbColumnNames(result)),
157
157
  "utf-8"
158
158
  );
159
159
  return resolved;
@@ -194,7 +194,7 @@ function dbQueryExportEnvelope(input) {
194
194
  function renderDbQueryResult(result, query, options) {
195
195
  const { sql, maxRows, operationKey } = query;
196
196
  const { format, out: outPath, json: explicitJsonOutput = false } = options;
197
- const jsonOutput = explicitJsonOutput || _chunkMAMEKGLIjs.shouldEmitJson.call(void 0, );
197
+ const jsonOutput = explicitJsonOutput || _chunkZL4Q4T3Gjs.shouldEmitJson.call(void 0, );
198
198
  const toolPayload = JSON.stringify({
199
199
  sql,
200
200
  result_mode: "rows",
@@ -205,7 +205,7 @@ function renderDbQueryResult(result, query, options) {
205
205
  if (format === "csv") {
206
206
  if (outPath) {
207
207
  const exportedPath = writeCustomerDbCsv(result, outPath);
208
- _chunkMAMEKGLIjs.printCommandEnvelope.call(void 0,
208
+ _chunkZL4Q4T3Gjs.printCommandEnvelope.call(void 0,
209
209
  dbQueryExportEnvelope({
210
210
  result,
211
211
  format,
@@ -221,7 +221,7 @@ function renderDbQueryResult(result, query, options) {
221
221
  );
222
222
  return;
223
223
  }
224
- _chunkMAMEKGLIjs.printCommandEnvelope.call(void 0,
224
+ _chunkZL4Q4T3Gjs.printCommandEnvelope.call(void 0,
225
225
  dbQueryExportEnvelope({
226
226
  result,
227
227
  format,
@@ -231,7 +231,7 @@ function renderDbQueryResult(result, query, options) {
231
231
  }),
232
232
  {
233
233
  json: explicitJsonOutput,
234
- text: _chunkMAMEKGLIjs.dataExportCsvString.call(void 0,
234
+ text: _chunkZL4Q4T3Gjs.dataExportCsvString.call(void 0,
235
235
  customerDbRows(result),
236
236
  customerDbColumnNames(result)
237
237
  )
@@ -240,14 +240,14 @@ function renderDbQueryResult(result, query, options) {
240
240
  return;
241
241
  }
242
242
  if (format === "markdown") {
243
- const content = _chunkMAMEKGLIjs.markdownTableFromRows.call(void 0,
243
+ const content = _chunkZL4Q4T3Gjs.markdownTableFromRows.call(void 0,
244
244
  customerDbRows(result),
245
245
  customerDbColumnNames(result)
246
246
  );
247
247
  if (outPath) {
248
248
  const exportedPath = _path.resolve.call(void 0, outPath);
249
249
  _fs.writeFileSync.call(void 0, exportedPath, content, "utf-8");
250
- _chunkMAMEKGLIjs.printCommandEnvelope.call(void 0,
250
+ _chunkZL4Q4T3Gjs.printCommandEnvelope.call(void 0,
251
251
  dbQueryExportEnvelope({
252
252
  result,
253
253
  format,
@@ -263,7 +263,7 @@ function renderDbQueryResult(result, query, options) {
263
263
  );
264
264
  return;
265
265
  }
266
- _chunkMAMEKGLIjs.printCommandEnvelope.call(void 0,
266
+ _chunkZL4Q4T3Gjs.printCommandEnvelope.call(void 0,
267
267
  dbQueryExportEnvelope({
268
268
  result,
269
269
  format,
@@ -278,7 +278,7 @@ function renderDbQueryResult(result, query, options) {
278
278
  );
279
279
  return;
280
280
  }
281
- _chunkMAMEKGLIjs.printCommandEnvelope.call(void 0,
281
+ _chunkZL4Q4T3Gjs.printCommandEnvelope.call(void 0,
282
282
  {
283
283
  ...result,
284
284
  next: {
@@ -352,9 +352,9 @@ async function runDbQueryCommand(options) {
352
352
  ...maxRows === void 0 ? {} : { maxRows },
353
353
  ...operationKey === void 0 ? {} : { operationKey }
354
354
  };
355
- const plan = _chunkTUAEM76Yjs.planCustomerDbQuery.call(void 0, query);
355
+ const plan = _chunkAOBAVBSXjs.planCustomerDbQuery.call(void 0, query);
356
356
  if (options.dryRun) {
357
- _chunkMAMEKGLIjs.printCommandEnvelope.call(void 0,
357
+ _chunkZL4Q4T3Gjs.printCommandEnvelope.call(void 0,
358
358
  {
359
359
  dryRun: true,
360
360
  ...plan,
@@ -367,11 +367,11 @@ async function runDbQueryCommand(options) {
367
367
  ...out === void 0 ? {} : { file: _path.resolve.call(void 0, out) }
368
368
  }
369
369
  },
370
- { json: options.json || _chunkMAMEKGLIjs.shouldEmitJson.call(void 0, ) }
370
+ { json: options.json || _chunkZL4Q4T3Gjs.shouldEmitJson.call(void 0, ) }
371
371
  );
372
372
  return 0;
373
373
  }
374
- const client = new (0, _chunkZ33PZUWGjs.DeeplineClient)();
374
+ const client = new (0, _chunk5GK6J7MHjs.DeeplineClient)();
375
375
  const result = await client.db.query(query);
376
376
  renderDbQueryResult(result, query, {
377
377
  format,
@@ -380,8 +380,8 @@ async function runDbQueryCommand(options) {
380
380
  });
381
381
  return 0;
382
382
  } catch (error) {
383
- if (error instanceof _chunkALJJRZNJjs.CustomerDbQueryOutcomeUnknownError && (options.json || _chunkMAMEKGLIjs.shouldEmitJson.call(void 0, ))) {
384
- _chunkMAMEKGLIjs.printCommandEnvelope.call(void 0,
383
+ if (error instanceof _chunkALJJRZNJjs.CustomerDbQueryOutcomeUnknownError && (options.json || _chunkZL4Q4T3Gjs.shouldEmitJson.call(void 0, ))) {
384
+ _chunkZL4Q4T3Gjs.printCommandEnvelope.call(void 0,
385
385
  {
386
386
  ok: false,
387
387
  error: {
@@ -429,8 +429,8 @@ function dbRepairPlainText(result) {
429
429
  async function handleDbRepair(args) {
430
430
  const providerIndex = args.indexOf("--provider");
431
431
  const provider = providerIndex >= 0 ? _optionalChain([args, 'access', _9 => _9[providerIndex + 1], 'optionalAccess', _10 => _10.trim, 'call', _11 => _11()]) : void 0;
432
- const jsonOutput = _chunkMAMEKGLIjs.argsWantJson.call(void 0, args);
433
- const client = new (0, _chunkZ33PZUWGjs.DeeplineClient)();
432
+ const jsonOutput = _chunkZL4Q4T3Gjs.argsWantJson.call(void 0, args);
433
+ const client = new (0, _chunk5GK6J7MHjs.DeeplineClient)();
434
434
  let result;
435
435
  try {
436
436
  result = await client.repairIngestionStorage(
@@ -446,7 +446,7 @@ async function handleDbRepair(args) {
446
446
  console.error(errorMessage2(error));
447
447
  return 1;
448
448
  }
449
- _chunkMAMEKGLIjs.printCommandEnvelope.call(void 0,
449
+ _chunkZL4Q4T3Gjs.printCommandEnvelope.call(void 0,
450
450
  {
451
451
  command: "db repair",
452
452
  status: result.status,
@@ -3,12 +3,12 @@ import {
3
3
  } from "./chunk-OVDNJAJN.mjs";
4
4
  import {
5
5
  DeeplineClient
6
- } from "./chunk-SC5GHGFD.mjs";
6
+ } from "./chunk-4NKAM4GX.mjs";
7
7
  import {
8
8
  planCustomerDbQuery
9
- } from "./chunk-TSKVPEVZ.mjs";
9
+ } from "./chunk-5M4PLPTR.mjs";
10
10
  import "./chunk-L2VKAASU.mjs";
11
- import "./chunk-DVQHG6AM.mjs";
11
+ import "./chunk-CS2AEAD6.mjs";
12
12
  import "./chunk-S3A4IXBQ.mjs";
13
13
  import "./chunk-UBKA33KY.mjs";
14
14
  import {
@@ -20,9 +20,9 @@ import {
20
20
  printCommandEnvelope,
21
21
  recordRows,
22
22
  shouldEmitJson
23
- } from "./chunk-JRBQC6L4.mjs";
24
- import "./chunk-FC4JGTFC.mjs";
25
- import "./chunk-FLJSK32S.mjs";
23
+ } from "./chunk-WTZ7Y3IZ.mjs";
24
+ import "./chunk-7NBDLK3N.mjs";
25
+ import "./chunk-IMWJRBV5.mjs";
26
26
  import {
27
27
  CustomerDbQueryOutcomeUnknownError
28
28
  } from "./chunk-4QF2K7TM.mjs";
@@ -30,7 +30,7 @@ import "./chunk-DLIRSHV6.mjs";
30
30
  import {
31
31
  DeeplineError
32
32
  } from "./chunk-HBL4PM5Q.mjs";
33
- import "./chunk-DFK5IJMT.mjs";
33
+ import "./chunk-3KA466RV.mjs";
34
34
  import "./chunk-WZYKRD7T.mjs";
35
35
  import "./chunk-KRD6H754.mjs";
36
36