deepline 0.3.327 → 0.3.329

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 (123) hide show
  1. package/dist/bundling-sources/sdk/src/index.ts +1 -0
  2. package/dist/bundling-sources/sdk/src/play.ts +55 -45
  3. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  4. package/dist/bundling-sources/sdk/src/types.ts +16 -0
  5. package/dist/bundling-sources/shared_libs/observability/queue-health.ts +9 -0
  6. package/dist/bundling-sources/shared_libs/observability/queue-item-connectors.ts +1 -0
  7. package/dist/bundling-sources/shared_libs/play-runtime/context.ts +31 -15
  8. package/dist/bundling-sources/shared_libs/play-runtime/play-runtime-semantics.ts +22 -4
  9. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +29 -11
  10. package/dist/bundling-sources/shared_libs/play-runtime/tool-result.ts +145 -19
  11. package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +37 -10
  12. package/dist/bundling-sources/shared_libs/plays/dataset.ts +3 -0
  13. package/dist/bundling-sources/shared_libs/plays/tool-result-types.ts +59 -10
  14. package/dist/bundling-sources/shared_libs/security/secret-redaction.ts +4 -0
  15. package/dist/cli/{auth-EBBDOKNV.mjs → auth-MFFVOITR.mjs} +4 -4
  16. package/dist/cli/auth-W2MQM6GQ.js +31 -0
  17. package/dist/cli/{billing-IM2QUFX4.mjs → billing-LRBHWLIQ.mjs} +30 -16
  18. package/dist/cli/{billing-6AAB7WPJ.js → billing-V4Y4OVQ7.js} +96 -82
  19. package/dist/cli/{chunk-D6GD5AVN.mjs → chunk-3RZJ3GEG.mjs} +135 -5
  20. package/dist/cli/{chunk-MOP6D7Z5.js → chunk-4FLEXYUC.js} +141 -11
  21. package/dist/cli/{chunk-DSDX6EUW.js → chunk-75ZOTF3K.js} +15 -15
  22. package/dist/cli/{chunk-ZOFARJWH.mjs → chunk-7T6DX5RK.mjs} +21 -14
  23. package/dist/cli/{chunk-3MXRNPBN.js → chunk-AD23W4S5.js} +1 -1
  24. package/dist/cli/{chunk-F45425TB.mjs → chunk-EROOAI5G.mjs} +1 -1
  25. package/dist/cli/{chunk-REP2MYBI.mjs → chunk-ERU2OR6F.mjs} +2 -2
  26. package/dist/cli/{chunk-YIY74KUF.mjs → chunk-EV4QJE4J.mjs} +1 -1
  27. package/dist/cli/{chunk-CCRQ2VGJ.mjs → chunk-FK7PW6BP.mjs} +1 -1
  28. package/dist/cli/{chunk-2HKPAZVJ.js → chunk-FKKNYKDY.js} +14 -3
  29. package/dist/cli/{chunk-G5774EFF.mjs → chunk-GCNER3HV.mjs} +1 -1
  30. package/dist/cli/{chunk-4ZARCCPT.js → chunk-GY2EEO2Y.js} +9 -9
  31. package/dist/cli/{chunk-HOWQKN6J.mjs → chunk-HI7TAWFS.mjs} +79 -26
  32. package/dist/cli/{chunk-RSEVBSFE.mjs → chunk-HVPRQGF4.mjs} +1 -1
  33. package/dist/cli/{chunk-CISKBOXD.js → chunk-J2E5R2VH.js} +60 -60
  34. package/dist/cli/{chunk-7RCJDAJX.js → chunk-KHZQFFOQ.js} +2 -2
  35. package/dist/cli/{chunk-DVV4FPS7.mjs → chunk-MFQQINUY.mjs} +2 -2
  36. package/dist/cli/{chunk-DCAU6PND.mjs → chunk-MO2XSC5I.mjs} +4 -4
  37. package/dist/cli/{chunk-KP7W5NO6.mjs → chunk-NTVTZAVZ.mjs} +13 -2
  38. package/dist/cli/{chunk-HZZJR2GV.js → chunk-OUTIWGKY.js} +26 -26
  39. package/dist/cli/{chunk-QZAP5VOS.mjs → chunk-OZGU7P2S.mjs} +1 -1
  40. package/dist/cli/{chunk-A5SKM3GL.mjs → chunk-SJV5MTOJ.mjs} +1 -1
  41. package/dist/cli/{chunk-UROXKPND.js → chunk-U2N4CYT7.js} +6 -6
  42. package/dist/cli/{chunk-4TO56P22.js → chunk-U4CTHVN7.js} +255 -248
  43. package/dist/cli/{chunk-AGH6YP2T.js → chunk-UQV5M6HN.js} +3 -3
  44. package/dist/cli/{chunk-DM3SHV6U.js → chunk-VDIHLKGG.js} +4 -4
  45. package/dist/cli/{chunk-77RAV5XX.js → chunk-VLDLJZ75.js} +48 -48
  46. package/dist/cli/{chunk-NWIJLTRL.js → chunk-XRYKLK56.js} +119 -66
  47. package/dist/cli/{chunk-3ITDKXNC.mjs → chunk-YNSCELIJ.mjs} +2 -2
  48. package/dist/cli/{chunk-TAGHNT5P.js → chunk-ZXGUYTIT.js} +6 -6
  49. package/dist/cli/client-5AIFBLKQ.js +20 -0
  50. package/dist/cli/{client-JCMSACT4.mjs → client-BNLD775D.mjs} +3 -3
  51. package/dist/cli/{csv-NPMWVM5D.mjs → csv-7MVQECWG.mjs} +3 -3
  52. package/dist/cli/{csv-OILKDKUX.js → csv-ZT6ZRQ3Z.js} +12 -12
  53. package/dist/cli/{db-AZUAOWPQ.mjs → db-ABLWLMX5.mjs} +4 -4
  54. package/dist/cli/{db-MNDRYYEX.js → db-C4BMZXJK.js} +29 -29
  55. package/dist/cli/{describe-KJWOHMKC.mjs → describe-XWOWAR32.mjs} +10 -10
  56. package/dist/cli/{describe-QENLDLM2.js → describe-YALVN4WH.js} +17 -17
  57. package/dist/cli/{executions-QZNQWF6F.mjs → executions-7IZVKQ3O.mjs} +4 -4
  58. package/dist/cli/{executions-P36UHBPG.js → executions-U4TNRP26.js} +6 -6
  59. package/dist/cli/{feedback-RQ6HSZSG.mjs → feedback-GO5XPEKY.mjs} +3 -3
  60. package/dist/cli/{feedback-K4UGTLFD.js → feedback-NWMRT5W4.js} +6 -6
  61. package/dist/cli/{git-PBRMCBMI.mjs → git-R53WS4WA.mjs} +4 -4
  62. package/dist/cli/git-YWRLAOBY.js +23 -0
  63. package/dist/cli/index.js +95 -80
  64. package/dist/cli/index.mjs +54 -39
  65. package/dist/cli/{legacy-noops-G7GWJ5UC.mjs → legacy-noops-6QAZW7WJ.mjs} +4 -4
  66. package/dist/cli/{legacy-noops-X74FM35Q.js → legacy-noops-NJWM53DE.js} +7 -7
  67. package/dist/cli/{monitors-VKURX3YM.js → monitors-2I2MYAPS.js} +85 -85
  68. package/dist/cli/{monitors-KL2MCR57.mjs → monitors-2N4BRU5M.mjs} +4 -4
  69. package/dist/cli/{org-DT53KTNW.mjs → org-D3RHK2Q7.mjs} +4 -4
  70. package/dist/cli/{org-ZYXJDC44.js → org-XVNAE2JV.js} +60 -60
  71. package/dist/cli/{play-WIJGQYTB.mjs → play-L7MYJZ65.mjs} +9 -9
  72. package/dist/cli/play-OYRHI7G3.js +153 -0
  73. package/dist/cli/{providers-GRTW4TXX.js → providers-5BTDAZHN.js} +7 -7
  74. package/dist/cli/{providers-GYGKGS2J.mjs → providers-YM4E7WZD.mjs} +4 -4
  75. package/dist/cli/{quickstart-WB26543C.js → quickstart-5A3FHAH3.js} +5 -5
  76. package/dist/cli/{quickstart-XF3M2M2S.mjs → quickstart-ARPLJOLH.mjs} +3 -3
  77. package/dist/cli/{search-ANJLTOF2.mjs → search-KKJEVV27.mjs} +5 -5
  78. package/dist/cli/search-VE3O3ZEM.js +26 -0
  79. package/dist/cli/{secrets-D6UR5CTW.mjs → secrets-DGRJ4DO5.mjs} +4 -4
  80. package/dist/cli/{secrets-5KBUGMTK.js → secrets-DVPVCSZD.js} +13 -13
  81. package/dist/cli/{sessions-S7N4JEWK.mjs → sessions-56EHXLZD.mjs} +4 -4
  82. package/dist/cli/{sessions-46PXFULL.js → sessions-VG4ATQ5Y.js} +5 -5
  83. package/dist/cli/{settings-V6U3SRTH.mjs → settings-4U5XG7QI.mjs} +7 -7
  84. package/dist/cli/{settings-KMNBITSU.js → settings-BLOTIW2G.js} +74 -74
  85. package/dist/cli/{setup-4K5FY6AU.js → setup-L7AMAXCH.js} +41 -41
  86. package/dist/cli/{setup-OGITSLTN.mjs → setup-RHJAHPOR.mjs} +6 -6
  87. package/dist/cli/skills-QB4OQGGP.js +28 -0
  88. package/dist/cli/{skills-AXWAYPBY.mjs → skills-VU55YFCI.mjs} +4 -4
  89. package/dist/cli/tools-2CPFYNK7.js +40 -0
  90. package/dist/cli/{tools-LJCY6B23.mjs → tools-JS3YIDOH.mjs} +7 -6
  91. package/dist/cli/{update-DDR5XIUB.mjs → update-EHI5QUXM.mjs} +6 -6
  92. package/dist/cli/update-WXP24GU5.js +28 -0
  93. package/dist/cli/{workflow-PRNCVANQ.mjs → workflow-BITLTLRF.mjs} +5 -5
  94. package/dist/cli/{workflow-7CTCDWL3.js → workflow-NE4SYRAT.js} +15 -15
  95. package/dist/{client-wiWPZhnI.d.mts → client-D5XOQKsA.d.mts} +20 -1
  96. package/dist/{client-DHq8dJ56.d.ts → client-l-IoLh8Z.d.ts} +20 -1
  97. package/dist/{compiler-manifest-9TkZ_ykI.d.mts → compiler-manifest-82q4jtfQ.d.mts} +44 -17
  98. package/dist/{compiler-manifest-9TkZ_ykI.d.ts → compiler-manifest-82q4jtfQ.d.ts} +44 -17
  99. package/dist/{index-B-5_Xhud.d.mts → index-BPbW2XHF.d.mts} +1 -1
  100. package/dist/{index-ykksoEyR.d.ts → index-k0rquHIm.d.ts} +1 -1
  101. package/dist/index.d.mts +14 -8
  102. package/dist/index.d.ts +14 -8
  103. package/dist/index.js +194 -69
  104. package/dist/index.mjs +162 -37
  105. package/dist/install-integrity.json +84 -84
  106. package/dist/plays/bundle-play-file.d.mts +3 -3
  107. package/dist/plays/bundle-play-file.d.ts +3 -3
  108. package/dist/plays/bundle-play-file.mjs +2 -2
  109. package/dist/plays/run-request.d.mts +2 -2
  110. package/dist/plays/run-request.d.ts +2 -2
  111. package/dist/release.d.mts +1 -1
  112. package/dist/release.d.ts +1 -1
  113. package/dist/release.js +2 -2
  114. package/dist/release.mjs +1 -1
  115. package/package.json +2 -1
  116. package/dist/cli/auth-67YOPQ6M.js +0 -31
  117. package/dist/cli/client-7LZCG4VD.js +0 -20
  118. package/dist/cli/git-RPFH3NJ2.js +0 -23
  119. package/dist/cli/play-BUQV47E2.js +0 -153
  120. package/dist/cli/search-CR2GZLCM.js +0 -26
  121. package/dist/cli/skills-4FP2MZKL.js +0 -28
  122. package/dist/cli/tools-7YZPH6WC.js +0 -39
  123. package/dist/cli/update-3VUOW6AP.js +0 -28
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  DeeplineClient,
3
3
  iterateCursorPages
4
- } from "./chunk-QZAP5VOS.mjs";
4
+ } from "./chunk-OZGU7P2S.mjs";
5
5
  import "./chunk-CBVIJSHF.mjs";
6
6
  import {
7
7
  createTimestampedName,
@@ -9,13 +9,13 @@ import {
9
9
  openInBrowser,
10
10
  printCommandEnvelope,
11
11
  shouldEmitJson
12
- } from "./chunk-F45425TB.mjs";
12
+ } from "./chunk-EROOAI5G.mjs";
13
13
  import {
14
14
  AuthError,
15
15
  ConfigError
16
- } from "./chunk-CCRQ2VGJ.mjs";
16
+ } from "./chunk-FK7PW6BP.mjs";
17
17
  import "./chunk-DLIRSHV6.mjs";
18
- import "./chunk-G5774EFF.mjs";
18
+ import "./chunk-GCNER3HV.mjs";
19
19
  import "./chunk-6IKARAYD.mjs";
20
20
  import {
21
21
  DeeplineError
@@ -307,41 +307,42 @@ async function handleBalance(options) {
307
307
  const needsCredits = status === "no_billing" || status === "zero_balance" || status === "payment_method_only";
308
308
  const recovery = needsCredits ? balanceRecoveryForCredits() : null;
309
309
  const lines = [`Balance: ${payload.balance ?? "(unknown)"} credits`];
310
+ const detail = [];
310
311
  const temporaryHolds = payload.temporary_hold_credits;
311
312
  if (typeof temporaryHolds === "number" && temporaryHolds > 0) {
312
- lines.push(`Open reservation exposure: ${temporaryHolds} credits.`);
313
+ detail.push(`Open reservation exposure: ${temporaryHolds} credits.`);
313
314
  } else if (temporaryHolds === null) {
314
- lines.push("Temporary reservation status is temporarily unavailable.");
315
+ detail.push("Temporary reservation status is temporarily unavailable.");
315
316
  }
316
317
  if (payload.temporary_hold_credits_truncated === true) {
317
- lines.push("Temporary reservation total may be incomplete.");
318
+ detail.push("Temporary reservation total may be incomplete.");
318
319
  }
319
320
  if (typeof payload.estimated_hold_credits === "number") {
320
- lines.push(
321
+ detail.push(
321
322
  `Estimated holds: ${payload.estimated_hold_credits} credits \u2014 final usage is not recorded yet.`
322
323
  );
323
324
  }
324
325
  if (typeof payload.incurred_unsettled_credits === "number") {
325
- lines.push(
326
+ detail.push(
326
327
  `Incurred, awaiting settlement: ${payload.incurred_unsettled_credits} credits.`
327
328
  );
328
329
  }
329
330
  if (typeof payload.pending_wallet_debit_credits === "number") {
330
- lines.push(
331
+ detail.push(
331
332
  `Pending wallet debit: ${payload.pending_wallet_debit_credits} credits \u2014 excludes amounts already debited for funded holds.`
332
333
  );
333
334
  }
334
335
  if (typeof payload.pending_wallet_refund_credits === "number" && payload.pending_wallet_refund_credits > 0) {
335
- lines.push(
336
+ detail.push(
336
337
  `Pending wallet refund: ${payload.pending_wallet_refund_credits} credits.`
337
338
  );
338
339
  }
339
340
  if (payload.exposure_status === "partial") {
340
- lines.push(
341
+ detail.push(
341
342
  "Exposure amounts are lower bounds: some reservations are unpriced or the scan is incomplete."
342
343
  );
343
344
  } else if (payload.exposure_status !== "complete") {
344
- lines.push(
345
+ detail.push(
345
346
  "The estimated and incurred usage breakdown is temporarily unavailable."
346
347
  );
347
348
  }
@@ -361,13 +362,21 @@ async function handleBalance(options) {
361
362
  lines.push(`If the user approves, run: ${recovery.top_up_command}`);
362
363
  lines.push(`If checkout is required, run: ${recovery.checkout_command}`);
363
364
  }
365
+ const text = [lines[0], ...options.verbose ? detail : [], ...lines.slice(1)];
364
366
  printCommandEnvelope(
365
367
  {
366
368
  ...payload,
367
369
  ...recovery ? { recovery } : {},
368
- render: { sections: [{ title: "billing balance", lines }] }
370
+ render: {
371
+ sections: [
372
+ { title: "billing balance", lines: [lines[0], ...detail, ...lines.slice(1)] }
373
+ ]
374
+ }
369
375
  },
370
- { json: options.json }
376
+ // Short text unless JSON is asked for by name: piping no longer switches
377
+ // this command to JSON.
378
+ options.json ? { json: true } : { json: false, text: `${text.join("\n")}
379
+ ` }
371
380
  );
372
381
  return;
373
382
  }
@@ -1410,11 +1419,16 @@ Notes:
1410
1419
  The balance includes concurrent workspace activity, so a before/after difference
1411
1420
  cannot isolate one command. Use billing usage --request-id <job_id> --json.
1412
1421
 
1422
+ Prints one line, "Balance: N credits", piped or not, plus what to do when
1423
+ the workspace has no credits. --verbose adds reservations and usage awaiting
1424
+ settlement. --json returns the full record.
1425
+
1413
1426
  Examples:
1414
1427
  deepline billing balance
1428
+ deepline billing balance --verbose
1415
1429
  deepline billing balance --json
1416
1430
  `
1417
- ).option("--json", "Emit JSON output. Also automatic when stdout is piped").action(handleBalance);
1431
+ ).option("--json", "Emit the full balance record as JSON").option("--verbose", "Add reservations and usage awaiting settlement").action(handleBalance);
1418
1432
  billing.command("usage").description("Show current usage plus recent calls.").addHelpText(
1419
1433
  "after",
1420
1434
  `