deepline 0.3.522 → 0.3.524

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 (176) hide show
  1. package/dist/bundling-sources/sdk/src/client-core.ts +178 -60
  2. package/dist/bundling-sources/sdk/src/index.ts +3 -0
  3. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  4. package/dist/bundling-sources/shared_libs/monitors/signal-radars/inbound-dead-letter.ts +60 -14
  5. package/dist/bundling-sources/shared_libs/monitors/signal-radars/inbound-queue-delivery.ts +9 -3
  6. package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +1 -1
  7. package/dist/bundling-sources/shared_libs/play-runtime/context.ts +406 -40
  8. package/dist/bundling-sources/shared_libs/play-runtime/ctx-types.ts +1 -0
  9. package/dist/bundling-sources/shared_libs/play-runtime/db-session-renewal.ts +209 -0
  10. package/dist/bundling-sources/shared_libs/play-runtime/durable-runs-rollout.ts +16 -6
  11. package/dist/bundling-sources/shared_libs/play-runtime/freshness-receipt-execution.ts +388 -13
  12. package/dist/bundling-sources/shared_libs/play-runtime/launch-identity.ts +28 -0
  13. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/runtime-tool-hooks.ts +5 -0
  14. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-modal-fallback.ts +1 -0
  15. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona.ts +38 -5
  16. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/modal.ts +92 -10
  17. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-deadline-reconciliation.ts +96 -25
  18. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +29 -0
  19. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd.ts +139 -17
  20. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/durable-run-sql.ts +26 -3
  21. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +145 -5
  22. package/dist/bundling-sources/shared_libs/play-runtime/tool-cache-policy.ts +190 -10
  23. package/dist/bundling-sources/shared_libs/play-runtime/tool-execute-retry-policy.ts +85 -5
  24. package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +21 -11
  25. package/dist/cli/auth-OKPHHMMP.js +43 -0
  26. package/dist/cli/{auth-YIBY5IKT.mjs → auth-QXJMVLPN.mjs} +5 -5
  27. package/dist/cli/{billing-UDKL53GI.js → billing-N5R4HTHT.js} +82 -82
  28. package/dist/cli/{billing-G3IX3SNY.mjs → billing-SNSIFM4B.mjs} +7 -7
  29. package/dist/cli/{chunk-EJBW7Y6Z.js → chunk-2ZWNIS54.js} +108 -96
  30. package/dist/cli/{chunk-3KMGVOBM.mjs → chunk-2ZX7XSAQ.mjs} +4 -4
  31. package/dist/cli/{chunk-4TUMKJZX.mjs → chunk-3WWTBQHC.mjs} +2 -2
  32. package/dist/cli/{chunk-MD524MRB.mjs → chunk-536TGWR6.mjs} +1 -1
  33. package/dist/cli/{chunk-37SXIFIU.js → chunk-66N76YZG.js} +44 -44
  34. package/dist/cli/{chunk-BZY335JP.js → chunk-7E6B7VMS.js} +5 -5
  35. package/dist/cli/{chunk-HYR34KFA.js → chunk-7OQGZBDG.js} +109 -24
  36. package/dist/cli/{chunk-GVKW3LCA.js → chunk-7QM6DNR4.js} +11 -11
  37. package/dist/cli/{chunk-DNJJ3ULJ.js → chunk-ANKD3AIR.js} +2 -2
  38. package/dist/cli/{chunk-4DFWDA2Q.js → chunk-ATATJNJ6.js} +9 -9
  39. package/dist/cli/{chunk-ZZ7U4YJS.mjs → chunk-BXIQD2IY.mjs} +1 -1
  40. package/dist/cli/{chunk-XT25FX6T.js → chunk-BXVYVIMB.js} +3 -3
  41. package/dist/cli/{chunk-XR6TN5DT.mjs → chunk-CH7JVSA7.mjs} +6 -6
  42. package/dist/cli/{chunk-RKE5YTHY.mjs → chunk-EO55Y4QW.mjs} +5 -5
  43. package/dist/cli/{chunk-RI672VNY.js → chunk-EQNAQENZ.js} +2 -2
  44. package/dist/cli/{chunk-LFSOBW7E.mjs → chunk-FXTV5B3D.mjs} +22 -10
  45. package/dist/cli/{chunk-C6WGMODR.mjs → chunk-GMO3JDZA.mjs} +2 -2
  46. package/dist/cli/{chunk-DRDZBRXV.js → chunk-GTGJBZVH.js} +7 -7
  47. package/dist/cli/{chunk-SFMCKB57.mjs → chunk-HLAFGQPV.mjs} +76 -34
  48. package/dist/cli/{chunk-534YYHIF.js → chunk-HTYT2OHB.js} +6 -6
  49. package/dist/cli/{chunk-ZZLZCO6Y.js → chunk-I75VRGQG.js} +22 -22
  50. package/dist/cli/{chunk-Y3LDRCMB.mjs → chunk-II3BJKCH.mjs} +2 -2
  51. package/dist/cli/{chunk-5BQPEHEP.js → chunk-JDIQBZ6O.js} +14 -14
  52. package/dist/cli/{chunk-ENWJFUWK.mjs → chunk-KKPBCB6D.mjs} +2 -2
  53. package/dist/cli/{chunk-BONXEWYF.mjs → chunk-KSQXBLRW.mjs} +3 -3
  54. package/dist/cli/{chunk-7JEN3FX4.js → chunk-LRWDZDBS.js} +5 -5
  55. package/dist/cli/{chunk-5477PEHL.mjs → chunk-MW3YMPD2.mjs} +1 -1
  56. package/dist/cli/{chunk-VFCVH2LV.mjs → chunk-NUC7ZVDG.mjs} +5 -5
  57. package/dist/cli/{chunk-DLDWAPA5.js → chunk-OCT4SUJA.js} +4 -4
  58. package/dist/cli/{chunk-FQQAAR3Q.mjs → chunk-OQ5G7RFQ.mjs} +1 -1
  59. package/dist/cli/{chunk-VIM6I7RC.js → chunk-PFKKZVFK.js} +41 -41
  60. package/dist/cli/{chunk-OAQIVJFY.mjs → chunk-PFKWKWUJ.mjs} +2 -2
  61. package/dist/cli/{chunk-52MHE7B4.mjs → chunk-R457IMHJ.mjs} +1 -1
  62. package/dist/cli/{chunk-UV6XCHOZ.mjs → chunk-RIX26ZJD.mjs} +1 -1
  63. package/dist/cli/{chunk-RDJTCW3I.mjs → chunk-RTDX5NNN.mjs} +3 -3
  64. package/dist/cli/{chunk-FNHUDCJE.js → chunk-RUULUCBP.js} +10 -10
  65. package/dist/cli/{chunk-GMYDVW7Z.js → chunk-SF4QJVBE.js} +3 -3
  66. package/dist/cli/{chunk-DARD7TJ7.js → chunk-SMWFOGUT.js} +53 -53
  67. package/dist/cli/{chunk-XXY4E57R.mjs → chunk-T43FF5PF.mjs} +2 -2
  68. package/dist/cli/{chunk-ZUAKRBZB.js → chunk-TZTWH53O.js} +1 -1
  69. package/dist/cli/{chunk-7J5PLHII.mjs → chunk-V2YIBBVT.mjs} +1 -1
  70. package/dist/cli/{chunk-6SJPZV5E.js → chunk-V4RJ57MA.js} +2 -2
  71. package/dist/cli/{chunk-4MF44THR.js → chunk-V7KUBDEB.js} +82 -40
  72. package/dist/cli/{chunk-ISUUSSS4.js → chunk-VHTVXS5A.js} +16 -16
  73. package/dist/cli/{chunk-NDNG3MAT.mjs → chunk-WCVIPZWX.mjs} +5 -5
  74. package/dist/cli/{chunk-F5D623KO.js → chunk-WOEPDSO3.js} +26 -26
  75. package/dist/cli/{chunk-VE6FHVXZ.mjs → chunk-XURWFEXM.mjs} +109 -24
  76. package/dist/cli/{chunk-G65FJ5JX.mjs → chunk-YCIXY66B.mjs} +2 -2
  77. package/dist/cli/{chunk-CFXERH7F.mjs → chunk-YGOI5ZE5.mjs} +1 -1
  78. package/dist/cli/{chunk-PDLRUZ42.mjs → chunk-YKFW3NNA.mjs} +5 -5
  79. package/dist/cli/{chunk-5H22VJPE.js → chunk-YXVYPYIP.js} +6 -6
  80. package/dist/cli/{chunk-KMBF3N2Z.js → chunk-Z4MOEQSY.js} +16 -16
  81. package/dist/cli/command-docs.js +2 -2
  82. package/dist/cli/command-docs.mjs +1 -1
  83. package/dist/cli/{csv-PE35WGRO.mjs → csv-HT2JBCW2.mjs} +4 -4
  84. package/dist/cli/{csv-3HIE4VCO.js → csv-Q2LWKXAV.js} +13 -13
  85. package/dist/cli/{db-L7ZMMQKW.mjs → db-CS3XQ2LX.mjs} +6 -6
  86. package/dist/cli/{db-O2YRTTDO.js → db-XEV4WEE4.js} +27 -27
  87. package/dist/cli/describe-5G5NXO5E.js +50 -0
  88. package/dist/cli/{describe-NI324Y2M.mjs → describe-OUTXLDGZ.mjs} +18 -18
  89. package/dist/cli/describe-core.d.mts +3 -3
  90. package/dist/cli/describe-core.d.ts +3 -3
  91. package/dist/cli/{executions-VH4DKLFI.js → executions-JCC34WAD.js} +8 -8
  92. package/dist/cli/{executions-T6KU2OKK.mjs → executions-L6XFG5MP.mjs} +6 -6
  93. package/dist/cli/{feedback-SCSJC3FX.mjs → feedback-AWBDO5I6.mjs} +5 -5
  94. package/dist/cli/{feedback-ZLC6G5OK.js → feedback-HV2M2G7N.js} +10 -10
  95. package/dist/cli/git-GDPTG52F.js +25 -0
  96. package/dist/cli/{git-I4LVQCID.mjs → git-S4LRXTRX.mjs} +5 -5
  97. package/dist/cli/index.js +146 -146
  98. package/dist/cli/index.mjs +45 -45
  99. package/dist/cli/{legacy-noops-44FQ2256.mjs → legacy-noops-7MOKBL4O.mjs} +6 -6
  100. package/dist/cli/{legacy-noops-UPFWEHPG.js → legacy-noops-RGSZUD6V.js} +9 -9
  101. package/dist/cli/{monitors-JN6IQGK6.js → monitors-JEFM2C5W.js} +100 -100
  102. package/dist/cli/{monitors-LMSASWXE.mjs → monitors-XQNXDZPQ.mjs} +7 -7
  103. package/dist/cli/{org-F7O3ZU5O.js → org-GYLA5V32.js} +235 -72
  104. package/dist/cli/{org-QYLVEE7A.mjs → org-KTMJZGTN.mjs} +169 -6
  105. package/dist/cli/{pages-KEL3Y4L4.js → pages-RY4U7OCL.js} +18 -18
  106. package/dist/cli/{pages-5XE4LBZN.mjs → pages-WOMU2T2O.mjs} +6 -6
  107. package/dist/cli/{play-OURHH6KV.js → play-2Q6MWJ3D.js} +363 -323
  108. package/dist/cli/{play-MWQG3G32.mjs → play-KOYGGNYS.mjs} +64 -24
  109. package/dist/cli/{providers-IQY7LUBB.mjs → providers-7YKDITJC.mjs} +6 -6
  110. package/dist/cli/{providers-ZCBWPE3C.js → providers-HOIRHMN2.js} +9 -9
  111. package/dist/cli/{quickstart-O53OXTN6.js → quickstart-OWCJOSQA.js} +6 -6
  112. package/dist/cli/{quickstart-L45NGRMI.mjs → quickstart-RDXHSMVX.mjs} +4 -4
  113. package/dist/cli/{run-W745Z3Z5.js → run-MT2ABKO5.js} +41 -41
  114. package/dist/cli/{run-VCSIWLEU.mjs → run-RT73NDP5.mjs} +23 -23
  115. package/dist/cli/search-7VBA6IGS.js +33 -0
  116. package/dist/cli/{search-THELKULN.mjs → search-CJPKIGSA.mjs} +8 -8
  117. package/dist/cli/{search-output-N7MJLYYD.mjs → search-output-AREMA544.mjs} +4 -4
  118. package/dist/cli/{search-output-SJW7LEOM.js → search-output-OSBZ7WK6.js} +6 -6
  119. package/dist/cli/{secrets-44ST3FJH.mjs → secrets-BTIY2FEJ.mjs} +6 -6
  120. package/dist/cli/{secrets-GDXPX3KB.js → secrets-OV6KH633.js} +15 -15
  121. package/dist/cli/{sessions-LYCBI77S.mjs → sessions-3CO3ZFOD.mjs} +6 -6
  122. package/dist/cli/sessions-B3WNEWRW.js +18 -0
  123. package/dist/cli/{settings-GXPDMJFG.mjs → settings-7BQIC7QN.mjs} +13 -13
  124. package/dist/cli/{settings-3WOFF642.js → settings-LBIECYDB.js} +86 -86
  125. package/dist/cli/{setup-YHLMBJP4.js → setup-QZE7QR3F.js} +50 -50
  126. package/dist/cli/{setup-YM6JEB64.mjs → setup-XPTSNNES.mjs} +10 -10
  127. package/dist/cli/{skills-WX4XWEAT.mjs → skills-TGGKIQLT.mjs} +8 -8
  128. package/dist/cli/skills-TXBRTWEV.js +37 -0
  129. package/dist/cli/{tools-K24VSQ7S.mjs → tools-MKIFX2TQ.mjs} +17 -17
  130. package/dist/cli/tools-RZJV4X3J.js +57 -0
  131. package/dist/cli/{update-PSSCF5AT.mjs → update-5R3D3WNH.mjs} +10 -10
  132. package/dist/cli/update-YWGGPWUA.js +35 -0
  133. package/dist/cli/{artifacts-RY2MK74N.mjs → views-VHKDHHUP.mjs} +76 -76
  134. package/dist/cli/views-VPWEINIA.js +270 -0
  135. package/dist/cli/{workflow-FPVI3NIA.js → workflow-7K2VEQ4V.js} +17 -17
  136. package/dist/cli/{workflow-DGOPYATO.mjs → workflow-D5DF65N6.mjs} +7 -7
  137. package/dist/{client-DA71-2_u.d.mts → client-C5_6W8yd.d.mts} +1 -1
  138. package/dist/{client-core-C0IzDKMJ.d.ts → client-core-B-GPfmaC.d.ts} +121 -44
  139. package/dist/{client-core-BXbds1cb.d.mts → client-core-Dob428Z4.d.mts} +121 -44
  140. package/dist/{client-B-2Am2y6.d.ts → client-iXW4TOat.d.ts} +1 -1
  141. package/dist/{compiler-manifest-B4mIIbw7.d.mts → compiler-manifest-DsxsQP-T.d.mts} +14 -7
  142. package/dist/{compiler-manifest-B4mIIbw7.d.ts → compiler-manifest-DsxsQP-T.d.ts} +14 -7
  143. package/dist/{errors-Gj9i5Rkd.d.ts → errors-Bk5h1D-C.d.ts} +1 -1
  144. package/dist/{errors-C2F4qzAq.d.mts → errors-qdJUVQ3g.d.mts} +1 -1
  145. package/dist/{index-5JZBufdF.d.mts → index-PaupwX1B.d.mts} +1 -1
  146. package/dist/{index-BXtSj8bv.d.ts → index-bL66eHYz.d.ts} +1 -1
  147. package/dist/index.d.mts +7 -7
  148. package/dist/index.d.ts +7 -7
  149. package/dist/index.js +9 -9
  150. package/dist/index.mjs +6 -6
  151. package/dist/install-integrity.json +117 -116
  152. package/dist/plays/bundle-play-file.d.mts +3 -3
  153. package/dist/plays/bundle-play-file.d.ts +3 -3
  154. package/dist/plays/bundle-play-file.mjs +7 -5
  155. package/dist/plays/play-description.d.mts +2 -2
  156. package/dist/plays/play-description.d.ts +2 -2
  157. package/dist/plays/run-request.d.mts +2 -2
  158. package/dist/plays/run-request.d.ts +2 -2
  159. package/dist/release.d.mts +1 -1
  160. package/dist/release.d.ts +1 -1
  161. package/dist/release.js +2 -2
  162. package/dist/release.mjs +1 -1
  163. package/dist/server.d.mts +4 -4
  164. package/dist/server.d.ts +4 -4
  165. package/dist/server.js +5 -5
  166. package/dist/server.mjs +3 -3
  167. package/package.json +1 -1
  168. package/dist/cli/artifacts-GIZZH5VA.js +0 -270
  169. package/dist/cli/auth-JSES2JOQ.js +0 -43
  170. package/dist/cli/describe-EB336DAO.js +0 -50
  171. package/dist/cli/git-23T7TXAH.js +0 -25
  172. package/dist/cli/search-R6K7ZAMU.js +0 -33
  173. package/dist/cli/sessions-2V5ZFOWL.js +0 -18
  174. package/dist/cli/skills-XNGADDO6.js +0 -37
  175. package/dist/cli/tools-ROUMCB7B.js +0 -57
  176. package/dist/cli/update-RXURGIRW.js +0 -35
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
2
2
 
3
- var _chunkDRDZBRXVjs = require('./chunk-DRDZBRXV.js');
3
+ var _chunkGTGJBZVHjs = require('./chunk-GTGJBZVH.js');
4
4
 
5
5
  // src/cli/maintenance-policy.ts
6
6
  var _commander = require('commander');
@@ -33,7 +33,7 @@ function recordCliTrace(event) {
33
33
  sinceStartMs: now - cliTraceStartedAt,
34
34
  ...event
35
35
  };
36
- _chunkDRDZBRXVjs.writeRawStderr.call(void 0, `[cli-trace] ${JSON.stringify(payload)}
36
+ _chunkGTGJBZVHjs.writeRawStderr.call(void 0, `[cli-trace] ${JSON.stringify(payload)}
37
37
  `);
38
38
  }
39
39
  async function traceCliSpan(phase, fields, run) {
@@ -3,7 +3,7 @@
3
3
  var _chunkVLEVVDWGjs = require('./chunk-VLEVVDWG.js');
4
4
 
5
5
 
6
- var _chunk4MF44THRjs = require('./chunk-4MF44THR.js');
6
+ var _chunkV7KUBDEBjs = require('./chunk-V7KUBDEB.js');
7
7
 
8
8
 
9
9
  var _chunk2KHUFWTKjs = require('./chunk-2KHUFWTK.js');
@@ -11,7 +11,7 @@ var _chunk2KHUFWTKjs = require('./chunk-2KHUFWTK.js');
11
11
 
12
12
 
13
13
 
14
- var _chunkDRDZBRXVjs = require('./chunk-DRDZBRXV.js');
14
+ var _chunkGTGJBZVHjs = require('./chunk-GTGJBZVH.js');
15
15
 
16
16
 
17
17
  var _chunkSQWET4SLjs = require('./chunk-SQWET4SL.js');
@@ -581,7 +581,7 @@ function parseInputFlagValue(raw) {
581
581
  return raw;
582
582
  }
583
583
  function parsePlayRunOptions(args, initialInput = null) {
584
- const selection = _chunkDRDZBRXVjs.parseJsonFields.call(void 0, args, "run");
584
+ const selection = _chunkGTGJBZVHjs.parseJsonFields.call(void 0, args, "run");
585
585
  args = selection.args;
586
586
  const usage = "Usage: deepline plays run <play-name> [--input '{...}'] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--full] [--<input> value]\n deepline plays run <play-file.ts> [--input '{...}'] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--full] [--<input> value]\n deepline plays run --file <play-file.ts> [--input '{...}'] [--profile <id>] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--full] [--<input> value]\n deepline plays run --name <name> [--input '{...}'] [--profile <id>] [--live|--latest|--revision-id <id>] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--json] [--full] [--<input> value]\n Runs use the Absurd CJS runtime.\n --header '<name>: <value>' may repeat; each is sent on every request for this run.\n Unknown --<input> value flags, such as --limit 5, are passed into play input.\nRun `deepline plays run --help` for idempotent call caching and deepline.dataset guidance.";
587
587
  let filePath = null;
@@ -593,7 +593,7 @@ function parsePlayRunOptions(args, initialInput = null) {
593
593
  let revisionSelector = null;
594
594
  const watch = !args.includes("--no-wait");
595
595
  const dryRun = args.includes("--dry-run");
596
- let jsonOutput = dryRun ? _chunkDRDZBRXVjs.argsWantJson.call(void 0, args) : watch ? args.includes("--json") : _chunkDRDZBRXVjs.argsWantJson.call(void 0, args);
596
+ let jsonOutput = dryRun ? _chunkGTGJBZVHjs.argsWantJson.call(void 0, args) : watch ? args.includes("--json") : _chunkGTGJBZVHjs.argsWantJson.call(void 0, args);
597
597
  const fullJson = args.includes("--full");
598
598
  const force = args.includes("--force") || args.includes("--from-start");
599
599
  const forceToolRefresh = args.includes("--force-tool-refresh") || args.includes("--refresh-cache");
@@ -656,7 +656,7 @@ function parsePlayRunOptions(args, initialInput = null) {
656
656
  "--log-level requires one of: debug, info, warn, error."
657
657
  );
658
658
  }
659
- const parsed = _chunk4MF44THRjs.parseLogLevel.call(void 0, value);
659
+ const parsed = _chunkV7KUBDEBjs.parseLogLevel.call(void 0, value);
660
660
  if (!parsed) {
661
661
  throw new Error(
662
662
  `Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
@@ -974,7 +974,7 @@ function resolvePlayRunCliOptions(target, options, inputArgs = [], maintenancePo
974
974
  const hasExplicitLogLevel = options.logLevel !== void 0 || inputArgs.some(
975
975
  (arg) => arg === "--log-level" || arg.startsWith("--log-level=")
976
976
  );
977
- let logLevel = options.logLevel === void 0 ? base.logLevel : _chunk4MF44THRjs.parseLogLevel.call(void 0, options.logLevel);
977
+ let logLevel = options.logLevel === void 0 ? base.logLevel : _chunkV7KUBDEBjs.parseLogLevel.call(void 0, options.logLevel);
978
978
  if (!logLevel)
979
979
  throw new Error("--log-level requires one of: debug, info, warn, error.");
980
980
  const debugAlias = options.logs || options.debug === true || inputArgs.some(
@@ -988,13 +988,13 @@ function resolvePlayRunCliOptions(target, options, inputArgs = [], maintenancePo
988
988
  if (debugAlias || debugMapLatency && logLevel === "info")
989
989
  logLevel = "debug";
990
990
  const fullJson = _nullishCoalesce(options.full, () => ( base.fullJson));
991
- const jsonFields = options.json === void 0 ? base.jsonFields : _chunkDRDZBRXVjs.parseJsonFields.call(void 0,
992
- [...fullJson ? ["--full"] : [], ..._chunkDRDZBRXVjs.jsonFieldArgs.call(void 0, options.json)],
991
+ const jsonFields = options.json === void 0 ? base.jsonFields : _chunkGTGJBZVHjs.parseJsonFields.call(void 0,
992
+ [...fullJson ? ["--full"] : [], ..._chunkGTGJBZVHjs.jsonFieldArgs.call(void 0, options.json)],
993
993
  "run"
994
994
  ).fields;
995
995
  const watch = options.wait === false ? false : base.watch;
996
996
  const explicitJson = options.json !== void 0 ? options.json !== false : base.jsonOutput;
997
- const jsonOutput = dryRun || !watch ? explicitJson || _chunkDRDZBRXVjs.argsWantJson.call(void 0, []) : explicitJson;
997
+ const jsonOutput = dryRun || !watch ? explicitJson || _chunkGTGJBZVHjs.argsWantJson.call(void 0, []) : explicitJson;
998
998
  const verboseLogs = Boolean(
999
999
  debugAlias || logLevel === "debug" || debugMapLatency
1000
1000
  );
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  isJsonOutputMode
3
- } from "./chunk-4TUMKJZX.mjs";
3
+ } from "./chunk-3WWTBQHC.mjs";
4
4
 
5
5
  // src/cli/progress.ts
6
6
  import { Worker } from "worker_threads";
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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; } var _class;
2
2
 
3
- var _chunkDRDZBRXVjs = require('./chunk-DRDZBRXV.js');
3
+ var _chunkGTGJBZVHjs = require('./chunk-GTGJBZVH.js');
4
4
 
5
5
  // src/cli/progress.ts
6
6
  var _worker_threads = require('worker_threads');
@@ -19,7 +19,7 @@ var CliProgress = (_class = class {
19
19
  __init9() {this.quiet = false}
20
20
  // --json output is one JSON document: progress never renders under it.
21
21
  constructor(enabled) {;_class.prototype.__init.call(this);_class.prototype.__init2.call(this);_class.prototype.__init3.call(this);_class.prototype.__init4.call(this);_class.prototype.__init5.call(this);_class.prototype.__init6.call(this);_class.prototype.__init7.call(this);_class.prototype.__init8.call(this);_class.prototype.__init9.call(this);
22
- this.enabled = enabled && !_chunkDRDZBRXVjs.isJsonOutputMode.call(void 0, );
22
+ this.enabled = enabled && !_chunkGTGJBZVHjs.isJsonOutputMode.call(void 0, );
23
23
  }
24
24
  setLogWriter(writer) {
25
25
  this.logWriter = writer;
@@ -59,7 +59,7 @@ var CliProgress = (_class = class {
59
59
  this.logWriter(line);
60
60
  return;
61
61
  }
62
- if (_chunkDRDZBRXVjs.isJsonOutputMode.call(void 0, )) return;
62
+ if (_chunkGTGJBZVHjs.isJsonOutputMode.call(void 0, )) return;
63
63
  if (!this.enabled) {
64
64
  process.stderr.write(`${line}
65
65
  `);
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  seedToolListScript
3
- } from "./chunk-LFSOBW7E.mjs";
3
+ } from "./chunk-FXTV5B3D.mjs";
4
4
  import {
5
5
  addDescribeOptions
6
- } from "./chunk-MD524MRB.mjs";
6
+ } from "./chunk-536TGWR6.mjs";
7
7
  import {
8
8
  describeLookupsFor,
9
9
  describeName,
@@ -14,18 +14,18 @@ import {
14
14
  } from "./chunk-ITJ7NB2D.mjs";
15
15
  import {
16
16
  DeeplineClient
17
- } from "./chunk-G65FJ5JX.mjs";
17
+ } from "./chunk-YCIXY66B.mjs";
18
18
  import {
19
19
  failureReportHeaders,
20
20
  isFailureReportingDisabled
21
- } from "./chunk-XXY4E57R.mjs";
21
+ } from "./chunk-T43FF5PF.mjs";
22
22
  import {
23
23
  printCommandEnvelope
24
- } from "./chunk-4TUMKJZX.mjs";
24
+ } from "./chunk-3WWTBQHC.mjs";
25
25
  import {
26
26
  autoDetectBaseUrl,
27
27
  resolveApiKeyForBaseUrl
28
- } from "./chunk-5477PEHL.mjs";
28
+ } from "./chunk-MW3YMPD2.mjs";
29
29
 
30
30
  // src/cli/commands/describe.ts
31
31
  import { writeFileSync } from "fs";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  getActiveCliProgress
3
- } from "./chunk-ZZ7U4YJS.mjs";
3
+ } from "./chunk-BXIQD2IY.mjs";
4
4
  import {
5
5
  maybeReportAutomaticSkillsSyncFailure
6
- } from "./chunk-XXY4E57R.mjs";
6
+ } from "./chunk-T43FF5PF.mjs";
7
7
  import {
8
8
  DEFAULT_SKILL_AGENTS,
9
9
  KNOWN_SKILL_AGENTS,
@@ -14,17 +14,17 @@ import {
14
14
  sdkCliStateDirPath,
15
15
  skillsAgentPathSegment,
16
16
  writeSdkSkillsLocalVersion
17
- } from "./chunk-5477PEHL.mjs";
17
+ } from "./chunk-MW3YMPD2.mjs";
18
18
  import {
19
19
  SDK_API_CONTRACT,
20
20
  SDK_API_MAJOR,
21
21
  SDK_VERSION,
22
22
  deploymentProtectionHeaders,
23
23
  detectAgentRuntime
24
- } from "./chunk-FQQAAR3Q.mjs";
24
+ } from "./chunk-OQ5G7RFQ.mjs";
25
25
  import {
26
26
  SDK_RELEASE
27
- } from "./chunk-UV6XCHOZ.mjs";
27
+ } from "./chunk-RIX26ZJD.mjs";
28
28
 
29
29
  // src/compat.ts
30
30
  import { randomUUID } from "crypto";
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunkDRDZBRXVjs = require('./chunk-DRDZBRXV.js');
3
+ var _chunkGTGJBZVHjs = require('./chunk-GTGJBZVH.js');
4
4
 
5
5
  // src/cli/feedback-preferences.ts
6
6
 
@@ -57,7 +57,7 @@ function rejectRestrictedFeedback(options) {
57
57
  const code = restriction === "off" ? "FEEDBACK_DISABLED" : "FEEDBACK_APPROVAL_REQUIRED";
58
58
  const message = restriction === "off" ? 'Feedback is in mode "off". Do not ask the user if they want to send feedback. Use --requested only if they explicitly request it without being prompted.' : "Ask the user if they wish to send feedback. If they agree, rerun the send command with --requested. To change the setting, run deepline settings feedback --help. Agents must get user approval before turning feedback on.";
59
59
  if (options.json) {
60
- _chunkDRDZBRXVjs.printCommandEnvelope.call(void 0,
60
+ _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0,
61
61
  { ok: false, code, exitCode: 2, message },
62
62
  { json: true }
63
63
  );
@@ -2,11 +2,11 @@ import {
2
2
  addDescribeOptions,
3
3
  recordApiResponse,
4
4
  writeExecutionOutput
5
- } from "./chunk-MD524MRB.mjs";
5
+ } from "./chunk-536TGWR6.mjs";
6
6
  import {
7
7
  recentSearchRef,
8
8
  registerDeprecatedSearchCommand
9
- } from "./chunk-VFCVH2LV.mjs";
9
+ } from "./chunk-NUC7ZVDG.mjs";
10
10
  import {
11
11
  Capability,
12
12
  arrayField,
@@ -46,10 +46,10 @@ import {
46
46
  } from "./chunk-FIVKWNMT.mjs";
47
47
  import {
48
48
  DeeplineClient
49
- } from "./chunk-G65FJ5JX.mjs";
49
+ } from "./chunk-YCIXY66B.mjs";
50
50
  import {
51
51
  validateExecutionIdempotencyKey
52
- } from "./chunk-SFMCKB57.mjs";
52
+ } from "./chunk-HLAFGQPV.mjs";
53
53
  import {
54
54
  stableStringify
55
55
  } from "./chunk-UBKA33KY.mjs";
@@ -59,18 +59,18 @@ import {
59
59
  maybeAutoUpdateAndRelaunch,
60
60
  registerCompatibilityCatalog,
61
61
  runToolExecuteStage
62
- } from "./chunk-NDNG3MAT.mjs";
62
+ } from "./chunk-WCVIPZWX.mjs";
63
63
  import {
64
64
  isCliTraceEnabled,
65
65
  recordCliTrace,
66
66
  resolveCliMaintenancePolicy
67
- } from "./chunk-52MHE7B4.mjs";
67
+ } from "./chunk-R457IMHJ.mjs";
68
68
  import {
69
69
  checkSdkCompatibility,
70
70
  enforceSdkCompatibilityResponse,
71
71
  flushDeferredSkillsSyncNotices,
72
72
  syncSdkSkillsIfNeeded
73
- } from "./chunk-RKE5YTHY.mjs";
73
+ } from "./chunk-EO55Y4QW.mjs";
74
74
  import {
75
75
  printCommandEnvelope,
76
76
  printCompactJson,
@@ -78,12 +78,12 @@ import {
78
78
  printJsonError,
79
79
  renderCommandEnvelopeText,
80
80
  shouldEmitJson
81
- } from "./chunk-4TUMKJZX.mjs";
81
+ } from "./chunk-3WWTBQHC.mjs";
82
82
  import {
83
83
  readSdkSkillsLocalVersion,
84
84
  resolveConfig,
85
85
  sdkCliStateDirPath
86
- } from "./chunk-5477PEHL.mjs";
86
+ } from "./chunk-MW3YMPD2.mjs";
87
87
  import {
88
88
  DeeplineError
89
89
  } from "./chunk-ZPGGW27Q.mjs";
@@ -829,6 +829,18 @@ Output:
829
829
  activity.
830
830
  `
831
831
  );
832
+ tools.command("balance <provider>").description(
833
+ "Read a fresh balance using this workspace\u2019s own provider connection (LeadMagic)."
834
+ ).option("--json", "Print the balance and observation timestamp as JSON").action(async (provider, options) => {
835
+ const balance = await new DeeplineClient().getIntegrationBalance(
836
+ provider
837
+ );
838
+ if (shouldEmitJson(options.json)) console.log(JSON.stringify(balance));
839
+ else
840
+ console.log(
841
+ `${balance.provider}: ${balance.balance.value} ${balance.unit} (observed ${balance.observedAt})`
842
+ );
843
+ });
832
844
  tools.command("connect <provider>").description(
833
845
  "Get a dashboard connection link or connect a provider with credentials or OAuth."
834
846
  ).addOption(
@@ -1054,7 +1066,7 @@ Examples:
1054
1066
  process.exitCode = await narrowView();
1055
1067
  return;
1056
1068
  }
1057
- const { describeAnything } = await import("./describe-NI324Y2M.mjs");
1069
+ const { describeAnything } = await import("./describe-OUTXLDGZ.mjs");
1058
1070
  process.exitCode = await describeAnything(
1059
1071
  toolId,
1060
1072
  {
@@ -2,10 +2,10 @@ import {
2
2
  getAuthedHttpClient,
3
3
  openInBrowser,
4
4
  printCommandEnvelope
5
- } from "./chunk-4TUMKJZX.mjs";
5
+ } from "./chunk-3WWTBQHC.mjs";
6
6
  import {
7
7
  resolveBaseUrlOnly
8
- } from "./chunk-5477PEHL.mjs";
8
+ } from "./chunk-MW3YMPD2.mjs";
9
9
 
10
10
  // src/cli/commands/git.ts
11
11
  function shellQuote(value) {
@@ -2,10 +2,10 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkGMYDVW7Zjs = require('./chunk-GMYDVW7Z.js');
5
+ var _chunkSF4QJVBEjs = require('./chunk-SF4QJVBE.js');
6
6
 
7
7
 
8
- var _chunkDLDWAPA5js = require('./chunk-DLDWAPA5.js');
8
+ var _chunkOCT4SUJAjs = require('./chunk-OCT4SUJA.js');
9
9
 
10
10
 
11
11
 
@@ -294,8 +294,8 @@ var BROWSER_OPEN_COOLDOWN_MS = 3e4;
294
294
  var SAME_URL_BROWSER_OPEN_COOLDOWN_MS = 5 * 6e4;
295
295
  var defaultBrowserCommandRunner = childProcess;
296
296
  function getAuthedHttpClient() {
297
- const config = _chunkGMYDVW7Zjs.resolveConfig.call(void 0, );
298
- return { config, http: new (0, _chunkGMYDVW7Zjs.HttpClient)(config) };
297
+ const config = _chunkSF4QJVBEjs.resolveConfig.call(void 0, );
298
+ return { config, http: new (0, _chunkSF4QJVBEjs.HttpClient)(config) };
299
299
  }
300
300
  function stableOsUserId() {
301
301
  try {
@@ -635,7 +635,7 @@ function collectLocalEnvInfo() {
635
635
  os: `${process.platform} ${process.arch}`,
636
636
  node_version: process.version,
637
637
  home_dir: homeDir,
638
- agent_runtime: _chunkDLDWAPA5js.detectAgentRuntime.call(void 0, )
638
+ agent_runtime: _chunkOCT4SUJAjs.detectAgentRuntime.call(void 0, )
639
639
  };
640
640
  const env = process.env;
641
641
  const optional = {
@@ -882,9 +882,9 @@ function markdownTableFromRows(rows, preferredColumns = []) {
882
882
  }
883
883
  function withAgentCommandContext(value) {
884
884
  const valueRecord = value !== null && typeof value === "object" && !Array.isArray(value) ? value : null;
885
- return _chunkDLDWAPA5js.detectAgentRuntime.call(void 0, ) !== "unknown" && valueRecord && !Object.prototype.hasOwnProperty.call(valueRecord, "command_context") ? {
885
+ return _chunkOCT4SUJAjs.detectAgentRuntime.call(void 0, ) !== "unknown" && valueRecord && !Object.prototype.hasOwnProperty.call(valueRecord, "command_context") ? {
886
886
  ...valueRecord,
887
- command_context: _chunkGMYDVW7Zjs.resolveCliCommandContext.call(void 0, )
887
+ command_context: _chunkSF4QJVBEjs.resolveCliCommandContext.call(void 0, )
888
888
  } : value;
889
889
  }
890
890
  function printJson(value, fields) {
@@ -31,7 +31,7 @@ import {
31
31
  RETAINED_PIPELINE_RECEIVERS_HEADER,
32
32
  RUNTIME_ENVIRONMENT_TOKEN_HEADER,
33
33
  SDK_API_MAJOR
34
- } from "./chunk-FQQAAR3Q.mjs";
34
+ } from "./chunk-OQ5G7RFQ.mjs";
35
35
  import {
36
36
  CustomerDbQueryOutcomeUnknownError
37
37
  } from "./chunk-QNHHZ63P.mjs";
@@ -3566,7 +3566,44 @@ var DeeplineClient = class _DeeplineClient {
3566
3566
  `/api/v2/auth/workspace/members/${encodeURIComponent(memberId)}/role`,
3567
3567
  { role: grants.join(",") }
3568
3568
  ),
3569
- create: (options) => this.createWorkspace(options)
3569
+ create: (options) => this.createWorkspace(options),
3570
+ serviceAccounts: {
3571
+ list: () => this.http.get("/api/v2/auth/workspace/service-accounts"),
3572
+ // Creating an account or a key is not idempotent, so a transport
3573
+ // retry or localhost failover after a lost response could report a
3574
+ // false failure or mint a second live key. Surface the ambiguity;
3575
+ // `list` shows what exists.
3576
+ create: (options) => this.http.post(
3577
+ "/api/v2/auth/workspace/service-accounts",
3578
+ options,
3579
+ void 0,
3580
+ { maxRetries: 0, exactUrlOnly: true }
3581
+ ),
3582
+ setRole: (serviceAccountId, role) => this.http.patch(
3583
+ `/api/v2/auth/workspace/service-accounts/${encodeURIComponent(serviceAccountId)}`,
3584
+ { role }
3585
+ ),
3586
+ delete: (serviceAccountId) => this.http.delete(
3587
+ `/api/v2/auth/workspace/service-accounts/${encodeURIComponent(serviceAccountId)}`
3588
+ ),
3589
+ createKey: (serviceAccountId) => this.http.post(
3590
+ `/api/v2/auth/workspace/service-accounts/${encodeURIComponent(serviceAccountId)}/keys`,
3591
+ {},
3592
+ void 0,
3593
+ { maxRetries: 0, exactUrlOnly: true }
3594
+ ),
3595
+ // A retried rotate after a lost response would revoke the key it
3596
+ // just issued, so it is not retried either.
3597
+ rotateKey: (serviceAccountId) => this.http.post(
3598
+ `/api/v2/auth/workspace/service-accounts/${encodeURIComponent(serviceAccountId)}/keys/rotate`,
3599
+ {},
3600
+ void 0,
3601
+ { maxRetries: 0, exactUrlOnly: true }
3602
+ ),
3603
+ revokeKey: (serviceAccountId, keyId) => this.http.delete(
3604
+ `/api/v2/auth/workspace/service-accounts/${encodeURIComponent(serviceAccountId)}/keys/${encodeURIComponent(keyId)}`
3605
+ )
3606
+ }
3570
3607
  };
3571
3608
  this.monitors = {
3572
3609
  status: () => this.getMonitorsAccess(),
@@ -3710,75 +3747,75 @@ var DeeplineClient = class _DeeplineClient {
3710
3747
  );
3711
3748
  }
3712
3749
  // ——————————————————————————————————————————————————————————
3713
- // Artifacts
3750
+ // Views
3714
3751
  // ——————————————————————————————————————————————————————————
3715
- /** List this workspace's artifacts, most recently changed first. */
3716
- async listArtifacts(input) {
3752
+ /** List this workspace's views, most recently changed first. */
3753
+ async listViews(input) {
3717
3754
  const params = new URLSearchParams();
3718
3755
  if (input?.cursor) params.set("cursor", input.cursor);
3719
3756
  if (input?.limit) params.set("limit", String(input.limit));
3720
3757
  const query = params.size > 0 ? `?${params}` : "";
3721
- return await this.http.get(`/api/v2/artifacts${query}`);
3758
+ return await this.http.get(`/api/v2/views${query}`);
3722
3759
  }
3723
- /** One artifact and what the caller may do with it. */
3724
- async getArtifact(id) {
3760
+ /** One view and what the caller may do with it. */
3761
+ async getView(id) {
3725
3762
  return await this.http.get(
3726
- `/api/v2/artifacts/${encodeURIComponent(id)}`
3763
+ `/api/v2/views/${encodeURIComponent(id)}`
3727
3764
  );
3728
3765
  }
3729
- /** Create an artifact that shows a Play's runs at a fixed URL. */
3730
- async createArtifact(input) {
3731
- return await this.http.post("/api/v2/artifacts", input);
3766
+ /** Create a view that shows a Play's runs at a fixed URL. */
3767
+ async createView(input) {
3768
+ return await this.http.post("/api/v2/views", input);
3732
3769
  }
3733
3770
  /** Change the name, description, Play, or saved input. */
3734
- async updateArtifact(id, input) {
3771
+ async updateView(id, input) {
3735
3772
  return await this.http.patch(
3736
- `/api/v2/artifacts/${encodeURIComponent(id)}`,
3773
+ `/api/v2/views/${encodeURIComponent(id)}`,
3737
3774
  input
3738
3775
  );
3739
3776
  }
3740
- /** Who can open an artifact: workspace members, or anyone with its URL. */
3741
- async setArtifactAccess(id, access) {
3777
+ /** Who can open a view: workspace members, or anyone with its URL. */
3778
+ async setViewAccess(id, access) {
3742
3779
  return await this.http.post(
3743
- `/api/v2/artifacts/${encodeURIComponent(id)}/access`,
3780
+ `/api/v2/views/${encodeURIComponent(id)}/access`,
3744
3781
  { access }
3745
3782
  );
3746
3783
  }
3747
- /** Every run of the artifact's Play, newest first. */
3748
- async listArtifactRuns(id, input) {
3784
+ /** Every run of the view's Play, newest first. */
3785
+ async listViewRuns(id, input) {
3749
3786
  const params = new URLSearchParams();
3750
3787
  if (input?.limit) params.set("limit", String(input.limit));
3751
3788
  if (input?.offset) params.set("offset", String(input.offset));
3752
3789
  const query = params.size > 0 ? `?${params}` : "";
3753
3790
  return await this.http.get(
3754
- `/api/v2/artifacts/${encodeURIComponent(id)}/runs${query}`
3791
+ `/api/v2/views/${encodeURIComponent(id)}/runs${query}`
3755
3792
  );
3756
3793
  }
3757
3794
  /**
3758
- * Refresh an artifact: run its Play with its saved input (or `input`). The run
3759
- * goes through the normal run API; the artifact shows it when it finishes.
3795
+ * Refresh a view: run its Play with its saved input (or `input`). The run
3796
+ * goes through the normal run API; the view shows it when it finishes.
3760
3797
  */
3761
- async refreshArtifact(id, input) {
3762
- const intent = await this.http.post(`/api/v2/artifacts/${encodeURIComponent(id)}/refresh`, {});
3798
+ async refreshView(id, input) {
3799
+ const intent = await this.http.post(`/api/v2/views/${encodeURIComponent(id)}/refresh`, {});
3763
3800
  const started = await this.startPlayRun({
3764
3801
  name: intent.play,
3765
3802
  input: input ?? intent.input
3766
3803
  });
3767
- return { ...started, artifact: intent.id };
3804
+ return { ...started, view: intent.id };
3768
3805
  }
3769
- /** Delete an artifact. Its Play and runs are not touched. */
3770
- async deleteArtifact(id) {
3806
+ /** Delete a view. Its Play and runs are not touched. */
3807
+ async deleteView(id) {
3771
3808
  return await this.http.delete(
3772
- `/api/v2/artifacts/${encodeURIComponent(id)}`
3809
+ `/api/v2/views/${encodeURIComponent(id)}`
3773
3810
  );
3774
3811
  }
3775
- /** The workspace artifact rules and what the caller may do. */
3776
- async getArtifactPermissions() {
3777
- return await this.http.get("/api/v2/artifacts/permissions");
3812
+ /** The workspace view rules and what the caller may do. */
3813
+ async getViewPermissions() {
3814
+ return await this.http.get("/api/v2/views/permissions");
3778
3815
  }
3779
- /** Change artifact rules. Admins only; omitted verbs keep their rule. */
3780
- async setArtifactPermissions(rules) {
3781
- return await this.http.put("/api/v2/artifacts/permissions", { rules });
3816
+ /** Change view rules. Admins only; omitted verbs keep their rule. */
3817
+ async setViewPermissions(rules) {
3818
+ return await this.http.put("/api/v2/views/permissions", { rules });
3782
3819
  }
3783
3820
  /** List secret metadata visible to the current workspace. */
3784
3821
  async listSecrets() {
@@ -5507,6 +5544,11 @@ var DeeplineClient = class _DeeplineClient {
5507
5544
  async getNotificationSettings() {
5508
5545
  return this.http.get("/api/v2/settings/notifications");
5509
5546
  }
5547
+ /** Fresh balance of the active workspace's own provider credential. */
5548
+ async getIntegrationBalance(provider) {
5549
+ const params = new URLSearchParams({ provider });
5550
+ return this.http.get(`/api/v2/integrations/balance?${params}`);
5551
+ }
5510
5552
  /** Get the dashboard link where a workspace owner or admin can connect a provider. */
5511
5553
  async getIntegrationConnectLink(provider) {
5512
5554
  const params = new URLSearchParams({ provider });
@@ -1,11 +1,11 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunkDNJJ3ULJjs = require('./chunk-DNJJ3ULJ.js');
3
+ var _chunkANKD3AIRjs = require('./chunk-ANKD3AIR.js');
4
4
 
5
5
 
6
6
 
7
7
 
8
- var _chunk37SXIFIUjs = require('./chunk-37SXIFIU.js');
8
+ var _chunk66N76YZGjs = require('./chunk-66N76YZG.js');
9
9
 
10
10
  // src/cli/play-run-admission.ts
11
11
  function usesInlinePlayAdmission(command, args) {
@@ -18,11 +18,11 @@ function usesCliPlayAdmission(command, args) {
18
18
  }
19
19
  async function checkPlayRunCompatibility(baseUrl, maintenancePolicy = "configured", signal) {
20
20
  _optionalChain([signal, 'optionalAccess', _ => _.throwIfAborted, 'call', _2 => _2()]);
21
- if (maintenancePolicy !== "off") _chunk37SXIFIUjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
22
- const compatibility = await _chunkDNJJ3ULJjs.traceCliSpan.call(void 0,
21
+ if (maintenancePolicy !== "off") _chunk66N76YZGjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
22
+ const compatibility = await _chunkANKD3AIRjs.traceCliSpan.call(void 0,
23
23
  "cli.sdk_compatibility",
24
24
  { baseUrl, command: "plays run" },
25
- () => _chunk37SXIFIUjs.checkSdkCompatibility.call(void 0, baseUrl, {
25
+ () => _chunk66N76YZGjs.checkSdkCompatibility.call(void 0, baseUrl, {
26
26
  command: "plays run",
27
27
  persistCache: maintenancePolicy !== "off",
28
28
  signal
@@ -30,7 +30,7 @@ async function checkPlayRunCompatibility(baseUrl, maintenancePolicy = "configure
30
30
  );
31
31
  _optionalChain([signal, 'optionalAccess', _3 => _3.throwIfAborted, 'call', _4 => _4()]);
32
32
  if (compatibility.error) throw compatibility.error;
33
- _chunk37SXIFIUjs.enforceSdkCompatibilityResponse.call(void 0, compatibility.response, {
33
+ _chunk66N76YZGjs.enforceSdkCompatibilityResponse.call(void 0, compatibility.response, {
34
34
  quietAdvisory: true
35
35
  });
36
36
  }