deepline 0.3.355 → 0.3.356

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/client.ts +1 -0
  2. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  3. package/dist/bundling-sources/sdk/src/types.ts +24 -0
  4. package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +18 -0
  5. package/dist/bundling-sources/shared_libs/observability/scheduled-work-manual.ts +1 -0
  6. package/dist/cli/auth-IHV3XXSN.js +31 -0
  7. package/dist/cli/{auth-3IQKHFUS.mjs → auth-PFLCB6IL.mjs} +4 -4
  8. package/dist/cli/{billing-2O2HPRIQ.mjs → billing-T3K2KS55.mjs} +4 -4
  9. package/dist/cli/{billing-QACLO2L4.js → billing-TJOZMRIV.js} +73 -73
  10. package/dist/cli/{chunk-J6I4RSDG.js → chunk-26FD35VW.js} +16 -8
  11. package/dist/cli/{chunk-R2O2BKDH.mjs → chunk-2CTZ4MRZ.mjs} +1 -1
  12. package/dist/cli/{chunk-QYKLKWQO.js → chunk-2EYFTDKU.js} +2 -2
  13. package/dist/cli/{chunk-IQJBKSMD.mjs → chunk-2RMJLL3R.mjs} +2 -2
  14. package/dist/cli/{chunk-B2C2PR6I.mjs → chunk-35AZMPQV.mjs} +1 -1
  15. package/dist/cli/{chunk-63CWWQE6.js → chunk-447A2YBS.js} +45 -45
  16. package/dist/cli/{chunk-CG5JEYRX.js → chunk-6GOZN6ZF.js} +60 -60
  17. package/dist/cli/{chunk-5TFTY4H5.mjs → chunk-6S2HRJIV.mjs} +1 -1
  18. package/dist/cli/{chunk-DYWM3EZG.mjs → chunk-7LFNGGH6.mjs} +2 -2
  19. package/dist/cli/{chunk-WMULUP2K.js → chunk-A544Z3OR.js} +4 -4
  20. package/dist/cli/{chunk-6745OKK5.mjs → chunk-AUQYSGGD.mjs} +3 -2
  21. package/dist/cli/{chunk-UAPP5IVJ.mjs → chunk-GD4YCB5C.mjs} +2 -2
  22. package/dist/cli/{chunk-J2WSV37F.js → chunk-HBN5ORV2.js} +6 -6
  23. package/dist/cli/{chunk-CL6NZN6X.js → chunk-HXL4ZESY.js} +227 -224
  24. package/dist/cli/{chunk-GGM6CX2R.js → chunk-LDOOR6AE.js} +15 -15
  25. package/dist/cli/{chunk-CKBJ2PQR.js → chunk-MK3WFSJN.js} +8 -8
  26. package/dist/cli/{chunk-XXC7ST6U.mjs → chunk-NAMT3YP5.mjs} +9 -6
  27. package/dist/cli/{chunk-56UZ4LCT.js → chunk-OIJR6SCZ.js} +26 -26
  28. package/dist/cli/{chunk-CQXFJZ57.js → chunk-OXNEO6OS.js} +48 -48
  29. package/dist/cli/{chunk-FC2SOWXT.mjs → chunk-RPALAI2R.mjs} +5 -5
  30. package/dist/cli/{chunk-PGBSGPQ3.js → chunk-UC27KYXC.js} +11 -10
  31. package/dist/cli/{chunk-USB6LFMD.mjs → chunk-W3VTKDQK.mjs} +11 -3
  32. package/dist/cli/{chunk-SDZW7NSO.mjs → chunk-WF5BHZWA.mjs} +1 -1
  33. package/dist/cli/{chunk-VALEHQXO.mjs → chunk-X4PJURJH.mjs} +2 -2
  34. package/dist/cli/{chunk-64YA2SCL.mjs → chunk-YFLAUIJN.mjs} +4 -4
  35. package/dist/cli/{chunk-TKWCYYIM.js → chunk-YILVDBYO.js} +1 -1
  36. package/dist/cli/client-TDH32IGR.js +20 -0
  37. package/dist/cli/{client-QQMVHMOY.mjs → client-XMFAODL2.mjs} +3 -3
  38. package/dist/cli/{csv-DQBAUFB6.js → csv-4TMZI4RY.js} +12 -12
  39. package/dist/cli/{csv-DWIYPLLH.mjs → csv-NLCVCEZ3.mjs} +3 -3
  40. package/dist/cli/{db-LFLTGHKA.mjs → db-IMLYZF3N.mjs} +4 -4
  41. package/dist/cli/{db-QET2DLHP.js → db-PWID5GLT.js} +29 -29
  42. package/dist/cli/{describe-LR5QXOKB.mjs → describe-LFKBFDRQ.mjs} +8 -8
  43. package/dist/cli/{describe-Z2YFVBNO.js → describe-LTYF5NWH.js} +15 -15
  44. package/dist/cli/{executions-ARKMIMHM.mjs → executions-6UVFDX2O.mjs} +4 -4
  45. package/dist/cli/{executions-5T2TL6CL.js → executions-RB4WIKFH.js} +6 -6
  46. package/dist/cli/{feedback-4POM6CBJ.js → feedback-EOUSGLRS.js} +7 -7
  47. package/dist/cli/{feedback-YAEIOXMS.mjs → feedback-PH3WH5LE.mjs} +3 -3
  48. package/dist/cli/{git-OCMBR5FC.mjs → git-BLVZPTBC.mjs} +4 -4
  49. package/dist/cli/git-V6HWB6JB.js +23 -0
  50. package/dist/cli/index.js +79 -79
  51. package/dist/cli/index.mjs +31 -31
  52. package/dist/cli/{legacy-noops-DCZUS7ES.mjs → legacy-noops-5JDDNT4H.mjs} +4 -4
  53. package/dist/cli/{legacy-noops-IKM26VQP.js → legacy-noops-KQBQ4WMC.js} +7 -7
  54. package/dist/cli/{monitors-P5FGTRL3.js → monitors-IETMP6ER.js} +85 -85
  55. package/dist/cli/{monitors-FYDK5HOY.mjs → monitors-JL7A5ZOX.mjs} +4 -4
  56. package/dist/cli/{org-HAQEVMOO.js → org-HL2CWV6W.js} +60 -60
  57. package/dist/cli/{org-P3EKASXE.mjs → org-L6TG5MRM.mjs} +4 -4
  58. package/dist/cli/{play-VQPA3FJM.mjs → play-42RA7JRU.mjs} +7 -7
  59. package/dist/cli/play-QQLZQILD.js +153 -0
  60. package/dist/cli/{providers-M34KOQTE.js → providers-MASSERVB.js} +7 -7
  61. package/dist/cli/{providers-ATI5HUBZ.mjs → providers-RH5ZPZXO.mjs} +4 -4
  62. package/dist/cli/{quickstart-WBAHFDVT.js → quickstart-6AYK534A.js} +5 -5
  63. package/dist/cli/{quickstart-7YP5G2PM.mjs → quickstart-OMZY743O.mjs} +3 -3
  64. package/dist/cli/search-FR6FXEXN.js +26 -0
  65. package/dist/cli/{search-5DI73SZD.mjs → search-TBOZ5R36.mjs} +5 -5
  66. package/dist/cli/{secrets-C4HJ7BTJ.js → secrets-74CH44OT.js} +13 -13
  67. package/dist/cli/{secrets-F6TOYGUG.mjs → secrets-IN4XCGBJ.mjs} +4 -4
  68. package/dist/cli/{sessions-JG5Y4YHP.mjs → sessions-BAMVNM3F.mjs} +4 -4
  69. package/dist/cli/{sessions-P6ED3JWC.js → sessions-KK47BDGG.js} +5 -5
  70. package/dist/cli/{settings-YERL4MKN.mjs → settings-HZFVYTEW.mjs} +7 -7
  71. package/dist/cli/{settings-UVT6MUZH.js → settings-VSKWLX2B.js} +74 -74
  72. package/dist/cli/{setup-C6NYXZX4.mjs → setup-3YOU6BBX.mjs} +6 -6
  73. package/dist/cli/{setup-LREJO56L.js → setup-IYVMYYZW.js} +41 -41
  74. package/dist/cli/skills-3HFZGYM7.js +28 -0
  75. package/dist/cli/{skills-4HU5RV5M.mjs → skills-DB3TE5LF.mjs} +4 -4
  76. package/dist/cli/{tools-SR46KMKA.mjs → tools-AMNLACHH.mjs} +6 -6
  77. package/dist/cli/tools-GJ7TH2T3.js +40 -0
  78. package/dist/cli/{update-XFV6ELFK.mjs → update-3PBHH5FL.mjs} +6 -6
  79. package/dist/cli/update-SUNCN4SV.js +28 -0
  80. package/dist/cli/{workflow-E2BSA6OI.js → workflow-5YDAWSKH.js} +15 -15
  81. package/dist/cli/{workflow-OHS4NXMP.mjs → workflow-C2KGKJJD.mjs} +5 -5
  82. package/dist/{client-jV6bQunU.d.mts → client-BmKft6Pr.d.mts} +25 -0
  83. package/dist/{client-Chzd2LFo.d.ts → client-Bra0Nc2D.d.ts} +25 -0
  84. package/dist/index.d.mts +2 -2
  85. package/dist/index.d.ts +2 -2
  86. package/dist/index.js +6 -6
  87. package/dist/index.mjs +3 -3
  88. package/dist/install-integrity.json +76 -76
  89. package/dist/plays/run-request.d.mts +1 -1
  90. package/dist/plays/run-request.d.ts +1 -1
  91. package/dist/release.d.mts +1 -1
  92. package/dist/release.d.ts +1 -1
  93. package/dist/release.js +2 -2
  94. package/dist/release.mjs +1 -1
  95. package/package.json +1 -1
  96. package/dist/cli/auth-Q4OX2XOA.js +0 -31
  97. package/dist/cli/client-ISC4LLIX.js +0 -20
  98. package/dist/cli/git-RZCZI3ER.js +0 -23
  99. package/dist/cli/play-YEQ4JQUW.js +0 -153
  100. package/dist/cli/search-USWDT7PW.js +0 -26
  101. package/dist/cli/skills-74GBPOGS.js +0 -28
  102. package/dist/cli/tools-GUFCJGVW.js +0 -40
  103. package/dist/cli/update-K47QQUCB.js +0 -28
@@ -2,7 +2,7 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkJ2WSV37Fjs = require('./chunk-J2WSV37F.js');
5
+ var _chunkHBN5ORV2js = require('./chunk-HBN5ORV2.js');
6
6
 
7
7
 
8
8
 
@@ -25,7 +25,7 @@ var _chunkJ2WSV37Fjs = require('./chunk-J2WSV37F.js');
25
25
 
26
26
 
27
27
 
28
- var _chunkWMULUP2Kjs = require('./chunk-WMULUP2K.js');
28
+ var _chunkA544Z3ORjs = require('./chunk-A544Z3OR.js');
29
29
 
30
30
  // src/cli/commands/auth.ts
31
31
 
@@ -52,7 +52,7 @@ function statusBannerLine(value) {
52
52
  return `Service notice: ${banner.message}`;
53
53
  }
54
54
  function envFilePath(baseUrl) {
55
- return _chunkWMULUP2Kjs.hostEnvFilePath.call(void 0, baseUrl);
55
+ return _chunkA544Z3ORjs.hostEnvFilePath.call(void 0, baseUrl);
56
56
  }
57
57
  function normalizeAuthScope(value) {
58
58
  if (!value || value === "global") return "global";
@@ -65,7 +65,7 @@ function parseAuthScope(args) {
65
65
  }
66
66
  function pendingClaimPath(baseUrl, scope) {
67
67
  if (scope === "folder") {
68
- const target = _chunkWMULUP2Kjs.resolveProjectPinTarget.call(void 0, );
68
+ const target = _chunkA544Z3ORjs.resolveProjectPinTarget.call(void 0, );
69
69
  if (!target.ok) {
70
70
  throw new Error(
71
71
  `Cowork project folder is ambiguous. Candidate folders: ${target.candidates.join(
@@ -75,10 +75,10 @@ function pendingClaimPath(baseUrl, scope) {
75
75
  }
76
76
  return _path.join.call(void 0, target.dir, ".deepline", "setup", "pending-auth.json");
77
77
  }
78
- return `${_chunkWMULUP2Kjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-auth.json`;
78
+ return `${_chunkA544Z3ORjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-auth.json`;
79
79
  }
80
80
  function legacyPendingClaimTokenPath(baseUrl) {
81
- return `${_chunkWMULUP2Kjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-claim-token`;
81
+ return `${_chunkA544Z3ORjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-claim-token`;
82
82
  }
83
83
  function savePendingClaim(baseUrl, claim) {
84
84
  const filePath = pendingClaimPath(baseUrl, claim.scope);
@@ -180,21 +180,21 @@ function parseRegisterWaitMode(args) {
180
180
  function shouldWaitForRegisterClaim(mode) {
181
181
  if (mode === "yes") return true;
182
182
  if (mode === "no") return false;
183
- return _chunkWMULUP2Kjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
183
+ return _chunkA544Z3ORjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
184
184
  }
185
185
  function saveEnvValues(values, baseUrl, scope) {
186
186
  const filtered = {
187
- ...values[_chunkWMULUP2Kjs.HOST_URL_ENV] ? { [_chunkWMULUP2Kjs.HOST_URL_ENV]: values[_chunkWMULUP2Kjs.HOST_URL_ENV] } : {},
188
- ...values[_chunkWMULUP2Kjs.API_KEY_ENV] ? { [_chunkWMULUP2Kjs.API_KEY_ENV]: values[_chunkWMULUP2Kjs.API_KEY_ENV] } : {},
189
- ...values[_chunkWMULUP2Kjs.ACTIVE_ORG_ID_ENV] ? { [_chunkWMULUP2Kjs.ACTIVE_ORG_ID_ENV]: values[_chunkWMULUP2Kjs.ACTIVE_ORG_ID_ENV] } : {},
190
- ...Object.prototype.hasOwnProperty.call(values, _chunkWMULUP2Kjs.ACTIVE_ORG_NAME_ENV) ? { [_chunkWMULUP2Kjs.ACTIVE_ORG_NAME_ENV]: values[_chunkWMULUP2Kjs.ACTIVE_ORG_NAME_ENV] } : {},
187
+ ...values[_chunkA544Z3ORjs.HOST_URL_ENV] ? { [_chunkA544Z3ORjs.HOST_URL_ENV]: values[_chunkA544Z3ORjs.HOST_URL_ENV] } : {},
188
+ ...values[_chunkA544Z3ORjs.API_KEY_ENV] ? { [_chunkA544Z3ORjs.API_KEY_ENV]: values[_chunkA544Z3ORjs.API_KEY_ENV] } : {},
189
+ ...values[_chunkA544Z3ORjs.ACTIVE_ORG_ID_ENV] ? { [_chunkA544Z3ORjs.ACTIVE_ORG_ID_ENV]: values[_chunkA544Z3ORjs.ACTIVE_ORG_ID_ENV] } : {},
190
+ ...Object.prototype.hasOwnProperty.call(values, _chunkA544Z3ORjs.ACTIVE_ORG_NAME_ENV) ? { [_chunkA544Z3ORjs.ACTIVE_ORG_NAME_ENV]: values[_chunkA544Z3ORjs.ACTIVE_ORG_NAME_ENV] } : {},
191
191
  // An explicit empty list must reach the store: it clears a stale line.
192
- ...Object.prototype.hasOwnProperty.call(values, _chunkWMULUP2Kjs.FEATURES_ENV) ? { [_chunkWMULUP2Kjs.FEATURES_ENV]: values[_chunkWMULUP2Kjs.FEATURES_ENV] } : {}
192
+ ...Object.prototype.hasOwnProperty.call(values, _chunkA544Z3ORjs.FEATURES_ENV) ? { [_chunkA544Z3ORjs.FEATURES_ENV]: values[_chunkA544Z3ORjs.FEATURES_ENV] } : {}
193
193
  };
194
194
  if (scope === "folder") {
195
- _chunkWMULUP2Kjs.saveProjectDeeplineEnvValues.call(void 0, filtered);
195
+ _chunkA544Z3ORjs.saveProjectDeeplineEnvValues.call(void 0, filtered);
196
196
  } else {
197
- _chunkWMULUP2Kjs.saveHostEnvValues.call(void 0, baseUrl, filtered);
197
+ _chunkA544Z3ORjs.saveHostEnvValues.call(void 0, baseUrl, filtered);
198
198
  }
199
199
  }
200
200
  function activeOrgEnvValues(data) {
@@ -202,21 +202,21 @@ function activeOrgEnvValues(data) {
202
202
  if (!orgId) return {};
203
203
  const orgName = typeof data.org_name === "string" ? data.org_name.trim() : "";
204
204
  return {
205
- [_chunkWMULUP2Kjs.ACTIVE_ORG_ID_ENV]: orgId,
206
- [_chunkWMULUP2Kjs.ACTIVE_ORG_NAME_ENV]: orgName,
207
- ..._chunkWMULUP2Kjs.featureEnvValues.call(void 0, data)
205
+ [_chunkA544Z3ORjs.ACTIVE_ORG_ID_ENV]: orgId,
206
+ [_chunkA544Z3ORjs.ACTIVE_ORG_NAME_ENV]: orgName,
207
+ ..._chunkA544Z3ORjs.featureEnvValues.call(void 0, data)
208
208
  };
209
209
  }
210
210
  async function httpJson(method, url, apiKey, body, timeoutMs = AUTH_HTTP_TIMEOUT_MS) {
211
211
  const headers = {
212
212
  "Content-Type": "application/json",
213
- "User-Agent": `deepline-ts-sdk/${_chunkWMULUP2Kjs.SDK_VERSION}`,
213
+ "User-Agent": `deepline-ts-sdk/${_chunkA544Z3ORjs.SDK_VERSION}`,
214
214
  "X-Deepline-Client-Family": "sdk",
215
215
  "X-Deepline-CLI-Family": "sdk",
216
- "X-Deepline-Agent-Runtime": _chunkWMULUP2Kjs.detectAgentRuntime.call(void 0, ),
217
- "X-Deepline-CLI-Version": _chunkWMULUP2Kjs.SDK_VERSION,
218
- "X-Deepline-SDK-Version": _chunkWMULUP2Kjs.SDK_VERSION,
219
- "X-Deepline-API-Contract": _chunkWMULUP2Kjs.SDK_API_CONTRACT
216
+ "X-Deepline-Agent-Runtime": _chunkA544Z3ORjs.detectAgentRuntime.call(void 0, ),
217
+ "X-Deepline-CLI-Version": _chunkA544Z3ORjs.SDK_VERSION,
218
+ "X-Deepline-SDK-Version": _chunkA544Z3ORjs.SDK_VERSION,
219
+ "X-Deepline-API-Contract": _chunkA544Z3ORjs.SDK_API_CONTRACT
220
220
  };
221
221
  if (apiKey) headers["Authorization"] = `Bearer ${apiKey}`;
222
222
  const bypassToken = _optionalChain([process, 'access', _7 => _7.env, 'access', _8 => _8.VERCEL_PROTECTION_BYPASS_TOKEN, 'optionalAccess', _9 => _9.trim, 'call', _10 => _10()]);
@@ -254,7 +254,7 @@ async function httpJson(method, url, apiKey, body, timeoutMs = AUTH_HTTP_TIMEOUT
254
254
  throw lastError instanceof Error ? lastError : new Error(String(lastError));
255
255
  }
256
256
  async function reportSetupCompleted(input) {
257
- const apiKey = input.authScope === "folder" ? _chunkWMULUP2Kjs.resolveProjectApiKeyForBaseUrl.call(void 0, input.baseUrl) : _chunkWMULUP2Kjs.resolveGlobalApiKeyForBaseUrl.call(void 0, input.baseUrl);
257
+ const apiKey = input.authScope === "folder" ? _chunkA544Z3ORjs.resolveProjectApiKeyForBaseUrl.call(void 0, input.baseUrl) : _chunkA544Z3ORjs.resolveGlobalApiKeyForBaseUrl.call(void 0, input.baseUrl);
258
258
  if (!apiKey) return;
259
259
  try {
260
260
  await httpJson(
@@ -351,7 +351,7 @@ async function printClaimSuccessBanner(baseUrl, apiKey, statusData) {
351
351
  }
352
352
  }
353
353
  async function handleRegister(args) {
354
- const baseUrl = _chunkWMULUP2Kjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
354
+ const baseUrl = _chunkA544Z3ORjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
355
355
  let orgName = "";
356
356
  let orgId = "";
357
357
  let agentName = "";
@@ -406,19 +406,19 @@ async function handleRegister(args) {
406
406
  });
407
407
  saveEnvValues(
408
408
  {
409
- [_chunkWMULUP2Kjs.HOST_URL_ENV]: baseUrl
409
+ [_chunkA544Z3ORjs.HOST_URL_ENV]: baseUrl
410
410
  },
411
411
  baseUrl,
412
412
  authScope
413
413
  );
414
414
  }
415
415
  if (claimUrl) {
416
- const shouldOpen = waitMode !== "no" && _chunkWMULUP2Kjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
416
+ const shouldOpen = waitMode !== "no" && _chunkA544Z3ORjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
417
417
  console.log(
418
418
  shouldOpen ? " Opening approval page in your browser." : " Open this approval page in your browser:"
419
419
  );
420
420
  console.log(` ${claimUrl}`);
421
- if (shouldOpen) _chunkJ2WSV37Fjs.openInBrowser.call(void 0, claimUrl);
421
+ if (shouldOpen) _chunkHBN5ORV2js.openInBrowser.call(void 0, claimUrl);
422
422
  }
423
423
  if (data.cli_message) {
424
424
  console.log(String(data.cli_message));
@@ -461,8 +461,8 @@ async function handleRegister(args) {
461
461
  if (apiKey) {
462
462
  saveEnvValues(
463
463
  {
464
- [_chunkWMULUP2Kjs.HOST_URL_ENV]: baseUrl,
465
- [_chunkWMULUP2Kjs.API_KEY_ENV]: apiKey,
464
+ [_chunkA544Z3ORjs.HOST_URL_ENV]: baseUrl,
465
+ [_chunkA544Z3ORjs.API_KEY_ENV]: apiKey,
466
466
  ...activeOrgEnvValues(statusData)
467
467
  },
468
468
  baseUrl,
@@ -484,7 +484,7 @@ async function handleRegister(args) {
484
484
  }
485
485
  }
486
486
  async function handleWait(args) {
487
- const baseUrl = _chunkWMULUP2Kjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
487
+ const baseUrl = _chunkA544Z3ORjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
488
488
  let timeoutSeconds = 300;
489
489
  let requestedScope;
490
490
  if (args.includes("--auth-scope")) {
@@ -508,7 +508,7 @@ async function handleWait(args) {
508
508
  const authScope = resumed.scope;
509
509
  const claimToken = _nullishCoalesce(_optionalChain([pendingClaim, 'optionalAccess', _11 => _11.claimToken]), () => ( ""));
510
510
  if (!pendingClaim) {
511
- const scopedApiKey = authScope === "folder" ? _chunkWMULUP2Kjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkWMULUP2Kjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl);
511
+ const scopedApiKey = authScope === "folder" ? _chunkA544Z3ORjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkA544Z3ORjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl);
512
512
  if (scopedApiKey) {
513
513
  console.log("Already connected.");
514
514
  return EXIT_OK;
@@ -551,8 +551,8 @@ async function handleWait(args) {
551
551
  if (apiKey) {
552
552
  saveEnvValues(
553
553
  {
554
- [_chunkWMULUP2Kjs.HOST_URL_ENV]: baseUrl,
555
- [_chunkWMULUP2Kjs.API_KEY_ENV]: apiKey,
554
+ [_chunkA544Z3ORjs.HOST_URL_ENV]: baseUrl,
555
+ [_chunkA544Z3ORjs.API_KEY_ENV]: apiKey,
556
556
  ...activeOrgEnvValues(data)
557
557
  },
558
558
  baseUrl,
@@ -576,9 +576,9 @@ async function handleWait(args) {
576
576
  return EXIT_AUTH;
577
577
  }
578
578
  async function handleStatus(args) {
579
- const baseUrl = _chunkWMULUP2Kjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
579
+ const baseUrl = _chunkA544Z3ORjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
580
580
  const reveal = args.includes("--reveal");
581
- const jsonOutput = _chunkJ2WSV37Fjs.argsWantJson.call(void 0, args);
581
+ const jsonOutput = _chunkHBN5ORV2js.argsWantJson.call(void 0, args);
582
582
  const hasExplicitAuthScope = args.includes("--auth-scope");
583
583
  let authScope = null;
584
584
  if (hasExplicitAuthScope) {
@@ -618,14 +618,14 @@ async function handleStatus(args) {
618
618
  };
619
619
  hostLines.push(`Host: ${baseUrl} (unreachable)`);
620
620
  }
621
- const apiKey = authScope === "folder" ? _chunkWMULUP2Kjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : authScope === "global" ? _chunkWMULUP2Kjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkWMULUP2Kjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
621
+ const apiKey = authScope === "folder" ? _chunkA544Z3ORjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : authScope === "global" ? _chunkA544Z3ORjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkA544Z3ORjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
622
622
  if (!apiKey) {
623
623
  const { claim: pendingClaim } = resolvePendingAuthClaimForResume(
624
624
  baseUrl,
625
625
  _nullishCoalesce(authScope, () => ( void 0))
626
626
  );
627
627
  if (pendingClaim) {
628
- _chunkJ2WSV37Fjs.printCommandEnvelope.call(void 0,
628
+ _chunkHBN5ORV2js.printCommandEnvelope.call(void 0,
629
629
  {
630
630
  ..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
631
631
  status: "pending",
@@ -646,7 +646,7 @@ async function handleStatus(args) {
646
646
  );
647
647
  return EXIT_OK;
648
648
  }
649
- _chunkJ2WSV37Fjs.printCommandEnvelope.call(void 0,
649
+ _chunkHBN5ORV2js.printCommandEnvelope.call(void 0,
650
650
  {
651
651
  ..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
652
652
  status: "not connected",
@@ -679,7 +679,7 @@ async function handleStatus(args) {
679
679
  }
680
680
  );
681
681
  if (status === 401 || status === 403) {
682
- _chunkJ2WSV37Fjs.printCommandEnvelope.call(void 0,
682
+ _chunkHBN5ORV2js.printCommandEnvelope.call(void 0,
683
683
  {
684
684
  ..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
685
685
  status: "unauthorized",
@@ -706,7 +706,7 @@ async function handleStatus(args) {
706
706
  console.error(`Auth status error (status ${status}).`);
707
707
  return EXIT_SERVER;
708
708
  }
709
- const resolvedAuthScope = _nullishCoalesce(authScope, () => ( (_chunkWMULUP2Kjs.getResolvedProjectAuthSource.call(void 0, baseUrl, apiKey) ? "folder" : "global")));
709
+ const resolvedAuthScope = _nullishCoalesce(authScope, () => ( (_chunkA544Z3ORjs.getResolvedProjectAuthSource.call(void 0, baseUrl, apiKey) ? "folder" : "global")));
710
710
  clearSatisfiedPendingClaim(
711
711
  baseUrl,
712
712
  resolvedAuthScope,
@@ -734,28 +734,28 @@ async function handleStatus(args) {
734
734
  if (apiKeyResp) {
735
735
  saveEnvValues(
736
736
  {
737
- [_chunkWMULUP2Kjs.HOST_URL_ENV]: baseUrl,
738
- [_chunkWMULUP2Kjs.API_KEY_ENV]: apiKeyResp,
737
+ [_chunkA544Z3ORjs.HOST_URL_ENV]: baseUrl,
738
+ [_chunkA544Z3ORjs.API_KEY_ENV]: apiKeyResp,
739
739
  ...activeOrgEnvValues(data)
740
740
  },
741
741
  baseUrl,
742
742
  resolvedAuthScope
743
743
  );
744
744
  if (resolvedAuthScope === "folder") {
745
- const target = _chunkWMULUP2Kjs.resolveProjectPinTarget.call(void 0, );
745
+ const target = _chunkA544Z3ORjs.resolveProjectPinTarget.call(void 0, );
746
746
  savedApiKeyPath = target.ok ? _path.join.call(void 0, target.dir, ".env.deepline") : null;
747
747
  } else {
748
748
  savedApiKeyPath = envFilePath(baseUrl);
749
749
  }
750
750
  }
751
- } else if (resolvedAuthScope === "folder" || _chunkWMULUP2Kjs.storedHostApiKey.call(void 0, baseUrl) === apiKey) {
752
- saveEnvValues(_chunkWMULUP2Kjs.featureEnvValues.call(void 0, data), baseUrl, resolvedAuthScope);
751
+ } else if (resolvedAuthScope === "folder" || _chunkA544Z3ORjs.storedHostApiKey.call(void 0, baseUrl) === apiKey) {
752
+ saveEnvValues(_chunkA544Z3ORjs.featureEnvValues.call(void 0, data), baseUrl, resolvedAuthScope);
753
753
  }
754
- _chunkJ2WSV37Fjs.printCommandEnvelope.call(void 0,
754
+ _chunkHBN5ORV2js.printCommandEnvelope.call(void 0,
755
755
  {
756
756
  ...payload,
757
- ..._chunkWMULUP2Kjs.detectAgentRuntime.call(void 0, ) !== "unknown" ? {
758
- command_context: _chunkWMULUP2Kjs.resolveCliCommandContext.call(void 0,
757
+ ..._chunkA544Z3ORjs.detectAgentRuntime.call(void 0, ) !== "unknown" ? {
758
+ command_context: _chunkA544Z3ORjs.resolveCliCommandContext.call(void 0,
759
759
  { baseUrl, apiKey },
760
760
  resolvedAuthScope
761
761
  )
@@ -11,7 +11,7 @@ import {
11
11
  import {
12
12
  recentSearchRef,
13
13
  registerDeprecatedSearchCommand
14
- } from "./chunk-USB6LFMD.mjs";
14
+ } from "./chunk-W3VTKDQK.mjs";
15
15
  import {
16
16
  extractSummaryFields,
17
17
  projectRowOutput,
@@ -23,7 +23,7 @@ import {
23
23
  import {
24
24
  DeeplineClient,
25
25
  validateExecutionIdempotencyKey
26
- } from "./chunk-6745OKK5.mjs";
26
+ } from "./chunk-AUQYSGGD.mjs";
27
27
  import {
28
28
  beginToolExecuteCommand,
29
29
  getToolExecuteInvocationId,
@@ -37,11 +37,11 @@ import {
37
37
  printJsonError,
38
38
  renderCommandEnvelopeText,
39
39
  shouldEmitJson
40
- } from "./chunk-5TFTY4H5.mjs";
40
+ } from "./chunk-6S2HRJIV.mjs";
41
41
  import {
42
42
  resolveConfig,
43
43
  sdkCliStateDirPath
44
- } from "./chunk-SDZW7NSO.mjs";
44
+ } from "./chunk-WF5BHZWA.mjs";
45
45
  import {
46
46
  playToolListGetterMode
47
47
  } from "./chunk-7E66A24V.mjs";
@@ -1030,7 +1030,7 @@ Examples:
1030
1030
  process.exitCode = await narrowView();
1031
1031
  return;
1032
1032
  }
1033
- const { describeAnything } = await import("./describe-LR5QXOKB.mjs");
1033
+ const { describeAnything } = await import("./describe-LFKBFDRQ.mjs");
1034
1034
  process.exitCode = await describeAnything(
1035
1035
  toolId,
1036
1036
  { ...options, kinds: ["tools", "monitors"], fetchedTool: metadata },
@@ -15,7 +15,7 @@ var _chunkLA46MMTLjs = require('./chunk-LA46MMTL.js');
15
15
 
16
16
 
17
17
 
18
- var _chunkWMULUP2Kjs = require('./chunk-WMULUP2K.js');
18
+ var _chunkA544Z3ORjs = require('./chunk-A544Z3OR.js');
19
19
 
20
20
 
21
21
 
@@ -167,7 +167,7 @@ async function queryCustomerDatabase(http, input) {
167
167
  if (error instanceof _chunk7P5AA3SNjs.DeeplineError && (_optionalChain([error, 'access', _2 => _2.code, 'optionalAccess', _3 => _3.startsWith, 'call', _4 => _4("NETWORK_")]) || // Older API readers return PostgreSQL errors as HTTP 400, including
168
168
  // lost connections and explicitly unknown transaction resolution.
169
169
  /^08[A-Z0-9]{3}$/.test(_nullishCoalesce(error.code, () => ( ""))) || ["57P01", "57P02", "57P03"].includes(_nullishCoalesce(error.code, () => ( ""))) || error.statusCode === 408 || (_nullishCoalesce(error.statusCode, () => ( 0))) >= 500)) {
170
- throw new (0, _chunkWMULUP2Kjs.CustomerDbQueryOutcomeUnknownError)(
170
+ throw new (0, _chunkA544Z3ORjs.CustomerDbQueryOutcomeUnknownError)(
171
171
  error,
172
172
  plan.request.body.operation_key
173
173
  );
@@ -175,7 +175,7 @@ async function queryCustomerDatabase(http, input) {
175
175
  throw error;
176
176
  }
177
177
  if (!result || typeof result !== "object" || Array.isArray(result) || typeof result.command !== "string" || !Array.isArray(result.columns) || !Array.isArray(result.rows) || typeof result.truncated !== "boolean" || result.row_count !== null && (!Number.isSafeInteger(result.row_count) || result.row_count < 0) || !Number.isSafeInteger(result.row_count_returned) || result.row_count_returned < 0) {
178
- throw new (0, _chunkWMULUP2Kjs.CustomerDbQueryOutcomeUnknownError)(
178
+ throw new (0, _chunkA544Z3ORjs.CustomerDbQueryOutcomeUnknownError)(
179
179
  new (0, _chunk7P5AA3SNjs.DeeplineError)(
180
180
  "The SQL response did not contain a valid result.",
181
181
  200,
@@ -186,7 +186,7 @@ async function queryCustomerDatabase(http, input) {
186
186
  }
187
187
  const operation = result.operation;
188
188
  if (input.operationKey !== void 0 && (!operation || operation.operation_key !== input.operationKey || !Number.isSafeInteger(operation.completed_at_ms) || operation.completed_at_ms < 0 || !["executed", "operation_recovery"].includes(operation.source))) {
189
- throw new (0, _chunkWMULUP2Kjs.CustomerDbQueryOutcomeUnknownError)(
189
+ throw new (0, _chunkA544Z3ORjs.CustomerDbQueryOutcomeUnknownError)(
190
190
  new (0, _chunk7P5AA3SNjs.DeeplineError)(
191
191
  "The server did not confirm the original atomic SQL operation.",
192
192
  200,
@@ -2910,8 +2910,8 @@ function runtimeSelectionHeaders(runtime) {
2910
2910
  }
2911
2911
  const receivers = _optionalChain([process, 'access', _104 => _104.env, 'access', _105 => _105.DEEPLINE_RUNTIME_RETAINED_PIPELINE_RECEIVERS, 'optionalAccess', _106 => _106.trim, 'call', _107 => _107()]);
2912
2912
  return {
2913
- [_chunkWMULUP2Kjs.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
2914
- ...receivers ? { [_chunkWMULUP2Kjs.RETAINED_PIPELINE_RECEIVERS_HEADER]: receivers } : {}
2913
+ [_chunkA544Z3ORjs.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
2914
+ ...receivers ? { [_chunkA544Z3ORjs.RETAINED_PIPELINE_RECEIVERS_HEADER]: receivers } : {}
2915
2915
  };
2916
2916
  }
2917
2917
  function isolatedCiRuntimeEventReadHeaders() {
@@ -2927,7 +2927,7 @@ function isolatedCiRuntimeEventReadHeaders() {
2927
2927
  "RUNTIME_EVENT_INTERNAL_TOKEN_REQUIRED"
2928
2928
  );
2929
2929
  }
2930
- return { [_chunkWMULUP2Kjs.COORDINATOR_INTERNAL_TOKEN_HEADER]: token };
2930
+ return { [_chunkA544Z3ORjs.COORDINATOR_INTERNAL_TOKEN_HEADER]: token };
2931
2931
  }
2932
2932
  function normalizeTestPolicyOverrides(value, source) {
2933
2933
  if (value && typeof value === "object" && !Array.isArray(value)) {
@@ -3217,8 +3217,8 @@ var DeeplineClient = (_class = class _DeeplineClient {
3217
3217
  * @throws {@link ConfigError} if no API key can be resolved from any source.
3218
3218
  */
3219
3219
  constructor(options) {
3220
- this.config = _chunkWMULUP2Kjs.resolveConfig.call(void 0, options);
3221
- this.http = new (0, _chunkWMULUP2Kjs.HttpClient)(this.config);
3220
+ this.config = _chunkA544Z3ORjs.resolveConfig.call(void 0, options);
3221
+ this.http = new (0, _chunkA544Z3ORjs.HttpClient)(this.config);
3222
3222
  this.toolCalls = new ToolCalls(
3223
3223
  this.http,
3224
3224
  this.config.timeout,
@@ -3451,7 +3451,8 @@ var DeeplineClient = (_class = class _DeeplineClient {
3451
3451
  latestRunId: _nullishCoalesce(_nullishCoalesce(play.latestRunId, () => ( _optionalChain([detail, 'access', _175 => _175.latestRuns, 'access', _176 => _176[0], 'optionalAccess', _177 => _177.workflowId]))), () => ( null)),
3452
3452
  ...play.triggerMetadata ? { triggerMetadata: play.triggerMetadata } : {},
3453
3453
  ...play.runtimeLimit ? { runtimeLimit: play.runtimeLimit } : {},
3454
- ...play.activeScheduledPlays ? { activeScheduledPlays: play.activeScheduledPlays } : {}
3454
+ ...play.activeScheduledPlays ? { activeScheduledPlays: play.activeScheduledPlays } : {},
3455
+ ...play.observedCost ? { observedCost: play.observedCost } : {}
3455
3456
  };
3456
3457
  }
3457
3458
  // ——————————————————————————————————————————————————————————
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  DeeplineClient
3
- } from "./chunk-6745OKK5.mjs";
3
+ } from "./chunk-AUQYSGGD.mjs";
4
4
  import {
5
5
  printCommandEnvelope,
6
6
  renderCommandEnvelopeText
7
- } from "./chunk-5TFTY4H5.mjs";
7
+ } from "./chunk-6S2HRJIV.mjs";
8
8
  import {
9
9
  resolveConfig,
10
10
  sdkCliStateDirPath
11
- } from "./chunk-SDZW7NSO.mjs";
11
+ } from "./chunk-WF5BHZWA.mjs";
12
12
 
13
13
  // src/cli/commands/search.ts
14
14
  import { Option } from "commander";
@@ -70,6 +70,14 @@ function clipSummary(value) {
70
70
  }
71
71
  function pricingDisplay(item) {
72
72
  const pricing = item.pricing;
73
+ const observedCost = item.observedCost;
74
+ if (observedCost) {
75
+ return observedCost.status === "available" ? {
76
+ cost: `${observedCost.avgCredits}/${observedCost.unit} (observed)`,
77
+ // Unclipped: the sample size at the end is what qualifies the figure.
78
+ notes: [`Cost: ${observedCost.displayText}`]
79
+ } : { cost: "no data yet", notes: [] };
80
+ }
73
81
  if (!pricing)
74
82
  return { cost: item.kind === "tool" ? "unknown" : "\u2014", notes: [] };
75
83
  const range = pricing.estimatedRange;
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-DLIRSHV6.mjs";
5
5
  import {
6
6
  SDK_RELEASE
7
- } from "./chunk-R2O2BKDH.mjs";
7
+ } from "./chunk-2CTZ4MRZ.mjs";
8
8
  import {
9
9
  DeeplineError,
10
10
  TOOL_EXECUTION_ERROR_SCHEMA_VERSION,
@@ -2,7 +2,7 @@ import {
2
2
  argsWantJson,
3
3
  openInBrowser,
4
4
  printCommandEnvelope
5
- } from "./chunk-5TFTY4H5.mjs";
5
+ } from "./chunk-6S2HRJIV.mjs";
6
6
  import {
7
7
  ACTIVE_ORG_ID_ENV,
8
8
  ACTIVE_ORG_NAME_ENV,
@@ -25,7 +25,7 @@ import {
25
25
  saveHostEnvValues,
26
26
  saveProjectDeeplineEnvValues,
27
27
  storedHostApiKey
28
- } from "./chunk-SDZW7NSO.mjs";
28
+ } from "./chunk-WF5BHZWA.mjs";
29
29
 
30
30
  // src/cli/commands/auth.ts
31
31
  import {
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  npmSupportsAllowScripts,
3
3
  readNpmVersion
4
- } from "./chunk-B2C2PR6I.mjs";
4
+ } from "./chunk-35AZMPQV.mjs";
5
5
  import {
6
6
  resolveShellSpawn,
7
7
  runSkillsCommand
8
- } from "./chunk-DYWM3EZG.mjs";
8
+ } from "./chunk-7LFNGGH6.mjs";
9
9
  import {
10
10
  printCommandEnvelope
11
- } from "./chunk-5TFTY4H5.mjs";
11
+ } from "./chunk-6S2HRJIV.mjs";
12
12
  import {
13
13
  autoDetectBaseUrl
14
- } from "./chunk-SDZW7NSO.mjs";
14
+ } from "./chunk-WF5BHZWA.mjs";
15
15
 
16
16
  // src/cli/commands/update.ts
17
17
  import { spawn, spawnSync } from "child_process";
@@ -49,7 +49,7 @@ var SDK_RELEASE = {
49
49
  // getters keep their established compatibility behavior.
50
50
  // 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
51
51
  // 0.3.90 is the first deliberately versioned SDK release for API v3.
52
- version: "0.3.355",
52
+ version: "0.3.356",
53
53
  updateSummary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release.",
54
54
  packageCapabilities: {
55
55
  updatePreferences: 1
@@ -0,0 +1,20 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+
5
+
6
+ var _chunkUC27KYXCjs = require('./chunk-UC27KYXC.js');
7
+ require('./chunk-LA46MMTL.js');
8
+ require('./chunk-A544Z3OR.js');
9
+ require('./chunk-XNYIZMNQ.js');
10
+ require('./chunk-YILVDBYO.js');
11
+ require('./chunk-S6R3OX7B.js');
12
+ require('./chunk-7P5AA3SN.js');
13
+ require('./chunk-OG64RBAC.js');
14
+ require('./chunk-COGTRVWW.js');
15
+
16
+
17
+
18
+
19
+
20
+ exports.DeeplineClient = _chunkUC27KYXCjs.DeeplineClient; exports.MONITOR_JOB_PHASES = _chunkUC27KYXCjs.MONITOR_JOB_PHASES; exports.MONITOR_JOB_RECONCILIATION_STATES = _chunkUC27KYXCjs.MONITOR_JOB_RECONCILIATION_STATES; exports.MONITOR_JOB_STATES = _chunkUC27KYXCjs.MONITOR_JOB_STATES;
@@ -3,11 +3,11 @@ import {
3
3
  MONITOR_JOB_PHASES,
4
4
  MONITOR_JOB_RECONCILIATION_STATES,
5
5
  MONITOR_JOB_STATES
6
- } from "./chunk-6745OKK5.mjs";
6
+ } from "./chunk-AUQYSGGD.mjs";
7
7
  import "./chunk-CBVIJSHF.mjs";
8
- import "./chunk-SDZW7NSO.mjs";
8
+ import "./chunk-WF5BHZWA.mjs";
9
9
  import "./chunk-DLIRSHV6.mjs";
10
- import "./chunk-R2O2BKDH.mjs";
10
+ import "./chunk-2CTZ4MRZ.mjs";
11
11
  import "./chunk-6IKARAYD.mjs";
12
12
  import "./chunk-NXGCO4JB.mjs";
13
13
  import "./chunk-WZYKRD7T.mjs";
@@ -4,10 +4,10 @@
4
4
 
5
5
 
6
6
 
7
- var _chunkJ2WSV37Fjs = require('./chunk-J2WSV37F.js');
8
- require('./chunk-WMULUP2K.js');
7
+ var _chunkHBN5ORV2js = require('./chunk-HBN5ORV2.js');
8
+ require('./chunk-A544Z3OR.js');
9
9
  require('./chunk-XNYIZMNQ.js');
10
- require('./chunk-TKWCYYIM.js');
10
+ require('./chunk-YILVDBYO.js');
11
11
  require('./chunk-7P5AA3SN.js');
12
12
  require('./chunk-OG64RBAC.js');
13
13
  require('./chunk-COGTRVWW.js');
@@ -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 : _chunkJ2WSV37Fjs.clip.call(void 0, value, 42)).length;
129
+ return (verbose ? value : _chunkHBN5ORV2js.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 : _chunkJ2WSV37Fjs.clip.call(void 0, raw, 42);
139
+ const display = verbose ? raw : _chunkHBN5ORV2js.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 = _chunkJ2WSV37Fjs.readCsvRows.call(void 0, csvPath);
159
+ const allRows = _chunkHBN5ORV2js.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
- _chunkJ2WSV37Fjs.printJson.call(void 0, {
172
+ _chunkHBN5ORV2js.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(_chunkJ2WSV37Fjs.csvStringFromRows.call(void 0, displayRows));
181
+ process.stdout.write(_chunkHBN5ORV2js.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
- _chunkJ2WSV37Fjs.printJson.call(void 0, {
196
+ _chunkHBN5ORV2js.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
- ${_chunkJ2WSV37Fjs.clip.call(void 0, log, 2e3)}`;
439
+ ${_chunkHBN5ORV2js.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
- _chunkJ2WSV37Fjs.printCommandEnvelope.call(void 0, payload, {
490
+ _chunkHBN5ORV2js.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
- _chunkJ2WSV37Fjs.printCommandEnvelope.call(void 0, payload, { json: options.json, text });
526
+ _chunkHBN5ORV2js.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"));
@@ -4,10 +4,10 @@ import {
4
4
  printCommandEnvelope,
5
5
  printJson,
6
6
  readCsvRows
7
- } from "./chunk-5TFTY4H5.mjs";
8
- import "./chunk-SDZW7NSO.mjs";
7
+ } from "./chunk-6S2HRJIV.mjs";
8
+ import "./chunk-WF5BHZWA.mjs";
9
9
  import "./chunk-DLIRSHV6.mjs";
10
- import "./chunk-R2O2BKDH.mjs";
10
+ import "./chunk-2CTZ4MRZ.mjs";
11
11
  import "./chunk-NXGCO4JB.mjs";
12
12
  import "./chunk-WZYKRD7T.mjs";
13
13
  import "./chunk-KRD6H754.mjs";