deepline 0.3.538 → 0.3.540

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 (167) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/bundling-sources/shared_libs/integration-contracts/billing-entitlements.ts +10 -0
  3. package/dist/bundling-sources/shared_libs/play-runtime/activity-observation.ts +8 -4
  4. package/dist/bundling-sources/shared_libs/play-runtime/app-runtime-api.ts +8 -1
  5. package/dist/bundling-sources/shared_libs/play-runtime/baked-runner-image.ts +66 -4
  6. package/dist/bundling-sources/shared_libs/play-runtime/launch-identity.ts +2 -0
  7. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +0 -4
  8. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/modal.ts +14 -5
  9. package/dist/bundling-sources/shared_libs/play-runtime/runtime-speed-profile.ts +136 -0
  10. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backend.ts +7 -0
  11. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-execution-queries.ts +2 -2
  12. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-pool.ts +20 -7
  13. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +30 -11
  14. package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +1 -1
  15. package/dist/cli/{auth-KYH7N7RQ.mjs → auth-32TURPHH.mjs} +5 -5
  16. package/dist/cli/auth-XA3K5LH2.js +43 -0
  17. package/dist/cli/{billing-4KTUVZ4S.js → billing-6433M4BX.js} +105 -94
  18. package/dist/cli/{billing-WK346KAI.mjs → billing-NSH3NOHV.mjs} +21 -10
  19. package/dist/cli/{chunk-KCUQNH4K.js → chunk-2U4VACUA.js} +2 -2
  20. package/dist/cli/{chunk-6JG3MRTM.mjs → chunk-37VFUQMU.mjs} +2 -2
  21. package/dist/cli/chunk-3GVIVIER.js +54 -0
  22. package/dist/cli/{chunk-M3NCXGNN.mjs → chunk-AB6DFHGL.mjs} +2 -2
  23. package/dist/cli/{chunk-LPTBHNGB.js → chunk-AJVK4XC5.js} +4 -4
  24. package/dist/cli/{chunk-B2BTBHX2.js → chunk-AOYW62XO.js} +3 -3
  25. package/dist/cli/{chunk-UE7JHAZ2.mjs → chunk-B6UZUQ2O.mjs} +1 -1
  26. package/dist/cli/{chunk-JTOV5RUA.mjs → chunk-BD3VAPB4.mjs} +1 -1
  27. package/dist/cli/{chunk-ESX3H7Q7.js → chunk-BGBRA2S6.js} +22 -22
  28. package/dist/cli/{chunk-25RGHJQL.js → chunk-BNNGM2E5.js} +15 -15
  29. package/dist/cli/{chunk-VCHV4LS3.mjs → chunk-BZVVSUE2.mjs} +1 -1
  30. package/dist/cli/{chunk-YQURGSRB.js → chunk-DV3ESQ4X.js} +1 -1
  31. package/dist/cli/{chunk-ICTA5ICE.mjs → chunk-DWE2VE5I.mjs} +1 -1
  32. package/dist/cli/{chunk-34PLG5OE.js → chunk-EXAXDEIF.js} +13 -13
  33. package/dist/cli/chunk-FANIRW74.mjs +9 -0
  34. package/dist/cli/{chunk-JPEBKN3K.mjs → chunk-FR3AII3W.mjs} +2 -2
  35. package/dist/cli/chunk-GWHA4DAC.js +9 -0
  36. package/dist/cli/{chunk-VIFLWQXS.js → chunk-H6IA6XRE.js} +2 -2
  37. package/dist/cli/{chunk-JCLRSMUP.js → chunk-HKWJD45V.js} +5 -5
  38. package/dist/cli/{chunk-7XDJKIM2.mjs → chunk-HLHDCFKL.mjs} +4 -4
  39. package/dist/cli/{chunk-E7D37PLM.mjs → chunk-IDDKNMFX.mjs} +36 -0
  40. package/dist/cli/{chunk-35OCRH5C.mjs → chunk-IYQZVEV4.mjs} +5 -5
  41. package/dist/cli/{chunk-6SLQLWWL.js → chunk-J3TAEPFA.js} +26 -26
  42. package/dist/cli/{chunk-FJ5KPGCS.mjs → chunk-JGFGWWOF.mjs} +10 -10
  43. package/dist/cli/{chunk-4NEOGPKD.mjs → chunk-JPU5YLQG.mjs} +1 -1
  44. package/dist/cli/{chunk-4KZF6OYY.mjs → chunk-KFAJYK2N.mjs} +3 -3
  45. package/dist/cli/chunk-KN6ELDPL.mjs +54 -0
  46. package/dist/cli/{chunk-UEZNIPFO.js → chunk-LPMI4CYW.js} +107 -107
  47. package/dist/cli/{chunk-BBS2BLPV.js → chunk-LXLCQP4A.js} +16 -16
  48. package/dist/cli/{chunk-MYSPQUAO.js → chunk-M4DB6BBP.js} +44 -44
  49. package/dist/cli/{chunk-ZDLDCXY3.mjs → chunk-MH22LQKZ.mjs} +2 -2
  50. package/dist/cli/{chunk-OOLBE6FR.js → chunk-MLDLN6WG.js} +53 -53
  51. package/dist/cli/{chunk-IMLFB66A.js → chunk-MVIVF4BW.js} +3 -3
  52. package/dist/cli/{chunk-MNBIGX6O.js → chunk-N6DMKVKO.js} +10 -10
  53. package/dist/cli/{chunk-TWWYCJJW.mjs → chunk-PJOMRUFP.mjs} +5 -5
  54. package/dist/cli/{chunk-KNIYEZVV.mjs → chunk-S3ULSGFH.mjs} +2 -2
  55. package/dist/cli/{chunk-FWE37N2P.mjs → chunk-SGMDRYAD.mjs} +1 -1
  56. package/dist/cli/{chunk-ZU6JBRV5.mjs → chunk-SINNEITW.mjs} +4 -4
  57. package/dist/cli/{chunk-ALARRSMZ.mjs → chunk-SXVYFOBG.mjs} +3 -3
  58. package/dist/cli/{chunk-5VSPRRTI.js → chunk-TNUM4DFA.js} +7 -7
  59. package/dist/cli/{chunk-T6GPTJ5F.mjs → chunk-TZVW5JH3.mjs} +1 -1
  60. package/dist/cli/{chunk-N5HSG4OV.js → chunk-UJYX4VLX.js} +5 -5
  61. package/dist/cli/{chunk-XTYHZEJ2.js → chunk-V4EYJKGJ.js} +36 -0
  62. package/dist/cli/{chunk-PQKD5DMT.js → chunk-VAOGM5VS.js} +19 -19
  63. package/dist/cli/{chunk-A6E7TCK2.mjs → chunk-WCM64BRH.mjs} +5 -5
  64. package/dist/cli/{chunk-P3DP56HB.js → chunk-WDHHQEWQ.js} +41 -41
  65. package/dist/cli/{chunk-ADLDU2QG.js → chunk-WHYNYL3M.js} +6 -6
  66. package/dist/cli/{chunk-3I5TU5XE.js → chunk-XIIQNSWA.js} +8 -8
  67. package/dist/cli/{chunk-YZ2ZPHWR.js → chunk-XL3CEPZA.js} +9 -9
  68. package/dist/cli/{chunk-CLO562KG.mjs → chunk-XYM3SQZN.mjs} +1 -1
  69. package/dist/cli/{chunk-IP3XJTWA.mjs → chunk-Y6647AIY.mjs} +2 -2
  70. package/dist/cli/{chunk-4WQR4DG4.mjs → chunk-Z2OYTXLK.mjs} +1 -1
  71. package/dist/cli/{chunk-N2BCPZVR.mjs → chunk-ZJFU2COM.mjs} +5 -5
  72. package/dist/cli/{chunk-O765M4LT.js → chunk-ZTJQKHLM.js} +2 -2
  73. package/dist/cli/command-docs.js +3 -2
  74. package/dist/cli/command-docs.mjs +2 -1
  75. package/dist/cli/concurrent-runs-help-DU5STFGB.mjs +21 -0
  76. package/dist/cli/concurrent-runs-help-HIPM5BBV.js +21 -0
  77. package/dist/cli/{csv-LM7FBECI.js → csv-FBNS6SM3.js} +13 -13
  78. package/dist/cli/{csv-2YKLUKDR.mjs → csv-OJCMBODT.mjs} +4 -4
  79. package/dist/cli/{db-234UBWJH.mjs → db-43RQRF64.mjs} +6 -6
  80. package/dist/cli/{db-5PMA4IVW.js → db-XRGJJ2KA.js} +27 -27
  81. package/dist/cli/{describe-W26LW5O7.mjs → describe-I42Y3PWR.mjs} +17 -17
  82. package/dist/cli/describe-LWZCGAXU.js +49 -0
  83. package/dist/cli/describe-core.d.mts +3 -3
  84. package/dist/cli/describe-core.d.ts +3 -3
  85. package/dist/cli/{executions-3S736GXX.js → executions-LH46O4PG.js} +8 -8
  86. package/dist/cli/{executions-GD7GXTJM.mjs → executions-QXGVQHQF.mjs} +6 -6
  87. package/dist/cli/{feedback-GBV5HJJZ.mjs → feedback-ELFINGTM.mjs} +6 -6
  88. package/dist/cli/{feedback-BUWTDY4R.js → feedback-ERYIV6MT.js} +14 -14
  89. package/dist/cli/git-OV2TGYVE.js +25 -0
  90. package/dist/cli/{git-YXJGTDQL.mjs → git-V2XWB6LN.mjs} +5 -5
  91. package/dist/cli/index.js +153 -143
  92. package/dist/cli/index.mjs +53 -43
  93. package/dist/cli/{legacy-noops-UJM6GBNP.mjs → legacy-noops-ULL2EA37.mjs} +6 -6
  94. package/dist/cli/{legacy-noops-ZSF64V2U.js → legacy-noops-Y3OKNVWH.js} +9 -9
  95. package/dist/cli/{monitors-XQ2GNH6D.js → monitors-DNQXCRJZ.js} +100 -100
  96. package/dist/cli/{monitors-UERUQ6CT.mjs → monitors-L34NROM3.mjs} +7 -7
  97. package/dist/cli/{org-IF6MPVNR.js → org-JETA62CO.js} +86 -86
  98. package/dist/cli/{org-CP4VLH6M.mjs → org-L3HTEEXL.mjs} +6 -6
  99. package/dist/cli/{play-2NHQO5MO.js → play-GTGJRNWI.js} +473 -455
  100. package/dist/cli/{play-ZWDYYVPI.mjs → play-JHGLSSJP.mjs} +35 -17
  101. package/dist/cli/{providers-LOPXQN56.js → providers-7VH7PH2Q.js} +9 -9
  102. package/dist/cli/{providers-2CVIATU4.mjs → providers-IQVHZJ27.mjs} +6 -6
  103. package/dist/cli/{quickstart-N4WDEQZY.js → quickstart-M25JNU3O.js} +6 -6
  104. package/dist/cli/{quickstart-KVCFXLID.mjs → quickstart-ZDBC45PM.mjs} +4 -4
  105. package/dist/cli/{run-BDT5LK3I.js → run-MPZGX3YD.js} +42 -42
  106. package/dist/cli/{run-RUXHYWLF.mjs → run-NEEWZBTX.mjs} +22 -22
  107. package/dist/cli/search-HUN2YRQE.js +32 -0
  108. package/dist/cli/{search-BFUTNPA5.mjs → search-YXAFB4QQ.mjs} +7 -7
  109. package/dist/cli/{search-output-CTXI2QZU.js → search-output-4PH5HSJC.js} +6 -6
  110. package/dist/cli/{search-output-WUGH4PZA.mjs → search-output-67BBIXIZ.mjs} +4 -4
  111. package/dist/cli/{secrets-Z4XQVTC6.mjs → secrets-445FER3C.mjs} +6 -6
  112. package/dist/cli/{secrets-BZJZYFOU.js → secrets-HLUBDN3H.js} +15 -15
  113. package/dist/cli/{sessions-VZXR3MQZ.mjs → sessions-CCKXJNWT.mjs} +6 -6
  114. package/dist/cli/sessions-T2RNWC6B.js +22 -0
  115. package/dist/cli/{settings-VYEZFR4L.mjs → settings-3XCZGGVF.mjs} +12 -12
  116. package/dist/cli/{settings-WBYA4JMM.js → settings-WXJIQS5J.js} +85 -85
  117. package/dist/cli/{setup-FS2RMSS2.js → setup-CKETRFFN.js} +49 -49
  118. package/dist/cli/{setup-H7KCI4SO.mjs → setup-TOSX6NER.mjs} +9 -9
  119. package/dist/cli/skills-FXM2RHHO.js +36 -0
  120. package/dist/cli/{skills-YQNSJUUG.mjs → skills-Q7NLCIJJ.mjs} +7 -7
  121. package/dist/cli/{tools-ZF6SVEGW.mjs → tools-GY6QMYTZ.mjs} +16 -16
  122. package/dist/cli/tools-XLVDZTWQ.js +56 -0
  123. package/dist/cli/{update-RKQNNJM4.mjs → update-A7JRUN4S.mjs} +9 -9
  124. package/dist/cli/update-AZINHILP.js +34 -0
  125. package/dist/cli/{views-KN7FEDGT.js → views-GUWC4SNI.js} +21 -21
  126. package/dist/cli/{views-JHHOTWDU.mjs → views-JG7FDEJR.mjs} +6 -6
  127. package/dist/cli/{workflow-2WHSKTTV.js → workflow-CXNW7ICH.js} +17 -17
  128. package/dist/cli/{workflow-AAYLCLWA.mjs → workflow-QZCYSQ5G.mjs} +7 -7
  129. package/dist/{client-DZTnAv4B.d.ts → client-B1fixtK1.d.ts} +1 -1
  130. package/dist/{client-D0uDBybG.d.mts → client-CE4QBVbp.d.mts} +1 -1
  131. package/dist/{client-core-BhWf8Y1b.d.mts → client-core-2BkNBgrx.d.mts} +3 -1
  132. package/dist/{client-core-og3AP1LL.d.ts → client-core-C-3FVlVq.d.ts} +3 -1
  133. package/dist/{compiler-manifest-Bes3OVA3.d.mts → compiler-manifest-Cys06iYg.d.mts} +14 -0
  134. package/dist/{compiler-manifest-Bes3OVA3.d.ts → compiler-manifest-Cys06iYg.d.ts} +14 -0
  135. package/dist/{errors-Dc5r42ks.d.mts → errors-B6eMjKcr.d.mts} +1 -1
  136. package/dist/{errors-BJm4lLWc.d.ts → errors-rdOUqcU2.d.ts} +1 -1
  137. package/dist/{index-DTkiz_Ur.d.mts → index-CZdYO81A.d.mts} +1 -1
  138. package/dist/{index-BfV7mRPF.d.ts → index-ejWadAL5.d.ts} +1 -1
  139. package/dist/index.d.mts +7 -7
  140. package/dist/index.d.ts +7 -7
  141. package/dist/index.js +9 -9
  142. package/dist/index.mjs +6 -6
  143. package/dist/install-integrity.json +119 -112
  144. package/dist/plays/bundle-play-file.d.mts +3 -3
  145. package/dist/plays/bundle-play-file.d.ts +3 -3
  146. package/dist/plays/bundle-play-file.mjs +1 -1
  147. package/dist/plays/play-description.d.mts +2 -2
  148. package/dist/plays/play-description.d.ts +2 -2
  149. package/dist/plays/run-request.d.mts +2 -2
  150. package/dist/plays/run-request.d.ts +2 -2
  151. package/dist/release.d.mts +1 -1
  152. package/dist/release.d.ts +1 -1
  153. package/dist/release.js +2 -2
  154. package/dist/release.mjs +1 -1
  155. package/dist/server.d.mts +4 -4
  156. package/dist/server.d.ts +4 -4
  157. package/dist/server.js +5 -5
  158. package/dist/server.mjs +3 -3
  159. package/package.json +1 -1
  160. package/dist/cli/auth-4WEVLYK4.js +0 -43
  161. package/dist/cli/describe-C7GOSGYB.js +0 -49
  162. package/dist/cli/git-YG36MROC.js +0 -25
  163. package/dist/cli/search-ATDDVADT.js +0 -32
  164. package/dist/cli/sessions-HNU35AFM.js +0 -22
  165. package/dist/cli/skills-VPIURCAZ.js +0 -36
  166. package/dist/cli/tools-273GS5HU.js +0 -56
  167. package/dist/cli/update-TOD3XY55.js +0 -34
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-F6QV42MC.mjs";
4
4
  import {
5
5
  parseLogLevel
6
- } from "./chunk-UE7JHAZ2.mjs";
6
+ } from "./chunk-B6UZUQ2O.mjs";
7
7
  import {
8
8
  setDottedInputValue
9
9
  } from "./chunk-Z2XA6YU4.mjs";
@@ -11,7 +11,7 @@ import {
11
11
  argsWantJson,
12
12
  jsonFieldArgs,
13
13
  parseJsonFields
14
- } from "./chunk-6JG3MRTM.mjs";
14
+ } from "./chunk-37VFUQMU.mjs";
15
15
  import {
16
16
  DeeplineError
17
17
  } from "./chunk-JL2OTMSG.mjs";
@@ -0,0 +1,9 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});// ../billing/plan-links.ts
2
+ var PRICING_PAGE_URL = "https://deepline.com/pricing";
3
+ var PLAN_PICKER_URL = "https://code.deepline.com/dashboard/billing?plan";
4
+ var PRICING_PAGE_NOTE = `See the pricing page for full details: ${PRICING_PAGE_URL}`;
5
+ var PLAN_UPGRADE_NOTE = `Agents: give the user ${PLAN_PICKER_URL} to upgrade the plan.`;
6
+
7
+
8
+
9
+ exports.PRICING_PAGE_NOTE = PRICING_PAGE_NOTE;
@@ -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 _chunkPQKD5DMTjs = require('./chunk-PQKD5DMT.js');
3
+ var _chunkVAOGM5VSjs = require('./chunk-VAOGM5VS.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
- _chunkPQKD5DMTjs.writeRawStderr.call(void 0, `[cli-trace] ${JSON.stringify(payload)}
36
+ _chunkVAOGM5VSjs.writeRawStderr.call(void 0, `[cli-trace] ${JSON.stringify(payload)}
37
37
  `);
38
38
  }
39
39
  async function traceCliSpan(phase, fields, run) {
@@ -1,10 +1,10 @@
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 _chunk3I5TU5XEjs = require('./chunk-3I5TU5XE.js');
3
+ var _chunkXIIQNSWAjs = require('./chunk-XIIQNSWA.js');
4
4
 
5
5
 
6
6
 
7
- var _chunkIMLFB66Ajs = require('./chunk-IMLFB66A.js');
7
+ var _chunkMVIVF4BWjs = require('./chunk-MVIVF4BW.js');
8
8
 
9
9
  // src/plays/local-play-execution.ts
10
10
  function importedNodes(graph) {
@@ -137,9 +137,9 @@ async function pinLocalPlayImports(client, graph) {
137
137
 
138
138
  // src/plays/client.ts
139
139
  function createPlayClient(options) {
140
- const config = _chunkIMLFB66Ajs.resolveConfig.call(void 0, options);
141
- return new (0, _chunk3I5TU5XEjs.PlayClient)(
142
- new (0, _chunkIMLFB66Ajs.HttpClient)(config),
140
+ const config = _chunkMVIVF4BWjs.resolveConfig.call(void 0, options);
141
+ return new (0, _chunkXIIQNSWAjs.PlayClient)(
142
+ new (0, _chunkMVIVF4BWjs.HttpClient)(config),
143
143
  _nullishCoalesce(config.environment, () => ( process.env))
144
144
  );
145
145
  }
@@ -3,16 +3,16 @@ import {
3
3
  } from "./chunk-5AEDYVB6.mjs";
4
4
  import {
5
5
  DeeplineClient
6
- } from "./chunk-M3NCXGNN.mjs";
6
+ } from "./chunk-AB6DFHGL.mjs";
7
7
  import {
8
8
  errorToJsonPayload,
9
9
  printCommandEnvelope,
10
10
  resolveSdkCliFailureExitCode
11
- } from "./chunk-6JG3MRTM.mjs";
11
+ } from "./chunk-37VFUQMU.mjs";
12
12
  import {
13
13
  resolveConfig,
14
14
  sdkCliStateDirPath
15
- } from "./chunk-ICTA5ICE.mjs";
15
+ } from "./chunk-DWE2VE5I.mjs";
16
16
 
17
17
  // src/cli/commands/search.ts
18
18
  import { Option } from "commander";
@@ -134,7 +134,7 @@ async function runSearch(queryInputs, options, types, exclude = []) {
134
134
  }
135
135
  const client = new DeeplineClient();
136
136
  const json = options.json === true;
137
- const renderer = json ? void 0 : await import("./search-output-WUGH4PZA.mjs");
137
+ const renderer = json ? void 0 : await import("./search-output-67BBIXIZ.mjs");
138
138
  const searches = [];
139
139
  const chunks = [];
140
140
  const refs = /* @__PURE__ */ new Map();
@@ -1,3 +1,6 @@
1
+ import {
2
+ PRICING_PAGE_NOTE
3
+ } from "./chunk-FANIRW74.mjs";
1
4
  import {
2
5
  PLAY_SANDBOX_COMPUTE_RATE_MULTIPLIERS
3
6
  } from "./chunk-5LUF4LAR.mjs";
@@ -381,6 +384,7 @@ Output:
381
384
  Your runtime price, allowance used, paid overage, and reset date.
382
385
  Usage is shown in standard sandbox minutes at your current rate and in credits.
383
386
  ${PLAY_RUNTIME_PRICING_NOTE}
387
+ ${PRICING_PAGE_NOTE}
384
388
  Cost:
385
389
  Free to check.
386
390
  [[cli:
@@ -1353,6 +1357,17 @@ Output:
1353
1357
  held rateLimit window starts no run and returns the latest run with
1354
1358
  rateLimited {latestRunId, nextAllowedAt, message}.
1355
1359
  ]]
1360
+ Concurrency:
1361
+ A workspace runs as many Plays at once as its plan allows; each run holds
1362
+ one slot while it executes. A run over the limit is not rejected: it waits
1363
+ and starts when another finishes. While it waits, run.activity.summary
1364
+ starts with "Queued:", run.activity.observation.activityId is
1365
+ "run:sandbox-capacity", and warnings names the plan that runs more.
1366
+ [[cli:
1367
+ deepline billing entitlements shows this workspace's plan and limit and
1368
+ every plan's limit; this help prints them too when you are signed in.
1369
+ ]]
1370
+ ${PRICING_PAGE_NOTE}
1356
1371
  Cost:
1357
1372
  Spends Deepline credits through the play's tool calls. Validation errors
1358
1373
  (missing column, bad input) fail before any spend.
@@ -1593,6 +1608,17 @@ Output:
1593
1608
  sqlQualifiedTableName, actions}, and next.*.command, each naming the MCP call for a follow-up.
1594
1609
  With full: true the package is under package, beside the diagnostics.
1595
1610
  ]]
1611
+ Concurrency:
1612
+ A workspace runs as many Plays at once as its plan allows; each run holds
1613
+ one slot while it executes. A run over the limit is not rejected: it waits
1614
+ and starts when another finishes. While it waits, run.activity.summary
1615
+ starts with "Queued:", run.activity.observation.activityId is
1616
+ "run:sandbox-capacity", and warnings names the plan that runs more.
1617
+ [[cli:
1618
+ deepline billing entitlements shows this workspace's plan and limit and
1619
+ every plan's limit; this help prints them too when you are signed in.
1620
+ ]]
1621
+ ${PRICING_PAGE_NOTE}
1596
1622
  Cost:
1597
1623
  Free.
1598
1624
  Avoid:
@@ -1612,6 +1638,16 @@ Output fields:
1612
1638
  run.status queued, running, completed, failed, or stopped. Only
1613
1639
  the last three are terminal.
1614
1640
  run.activity the current step while running, null when finished.
1641
+ A queued capacity activity means it is waiting for a
1642
+ workspace concurrency slot, even if run.status says
1643
+ running. target.limit is the observed limit;
1644
+ target.limitSource=admission means it was pinned at
1645
+ launch. Plan changes apply to new launches, not that
1646
+ recorded limit. Scheduling retries automatically:
1647
+ watch the same run instead of resubmitting it.
1648
+ Read billing entitlements and billing plans for
1649
+ current limits and available plans. No queue ETA is
1650
+ guaranteed.
1615
1651
  run.retries failure-driven retries since the last resume:
1616
1652
  platformRecoveries {preCode, postCode} and
1617
1653
  recoveryOutcome (none, recovering, recovered,
@@ -1,19 +1,19 @@
1
1
  import {
2
2
  npmSupportsAllowScripts,
3
3
  readNpmVersion
4
- } from "./chunk-4NEOGPKD.mjs";
4
+ } from "./chunk-JPU5YLQG.mjs";
5
5
  import {
6
6
  runSkillsCommand
7
- } from "./chunk-ZU6JBRV5.mjs";
7
+ } from "./chunk-SINNEITW.mjs";
8
8
  import {
9
9
  resolveShellSpawn
10
- } from "./chunk-TWWYCJJW.mjs";
10
+ } from "./chunk-PJOMRUFP.mjs";
11
11
  import {
12
12
  printCommandEnvelope
13
- } from "./chunk-6JG3MRTM.mjs";
13
+ } from "./chunk-37VFUQMU.mjs";
14
14
  import {
15
15
  autoDetectBaseUrl
16
- } from "./chunk-ICTA5ICE.mjs";
16
+ } from "./chunk-DWE2VE5I.mjs";
17
17
 
18
18
  // src/cli/commands/update.ts
19
19
  import { spawn, spawnSync } from "child_process";
@@ -2,10 +2,10 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkPQKD5DMTjs = require('./chunk-PQKD5DMT.js');
5
+ var _chunkVAOGM5VSjs = require('./chunk-VAOGM5VS.js');
6
6
 
7
7
 
8
- var _chunkIMLFB66Ajs = require('./chunk-IMLFB66A.js');
8
+ var _chunkMVIVF4BWjs = require('./chunk-MVIVF4BW.js');
9
9
 
10
10
  // src/cli/commands/git.ts
11
11
  function shellQuote(value) {
@@ -32,11 +32,11 @@ function renderDeployment(deployment) {
32
32
  return `${deployment.id} ${source} (${kind}) - ${deployment.status}${suffix}`;
33
33
  }
34
34
  async function handleList(options) {
35
- const { http } = _chunkPQKD5DMTjs.getAuthedHttpClient.call(void 0, );
35
+ const { http } = _chunkVAOGM5VSjs.getAuthedHttpClient.call(void 0, );
36
36
  const payload = await http.get(
37
37
  `/api/v2/play-projects${options.all ? "?includeDisabled=1" : ""}`
38
38
  );
39
- _chunkPQKD5DMTjs.printCommandEnvelope.call(void 0,
39
+ _chunkVAOGM5VSjs.printCommandEnvelope.call(void 0,
40
40
  {
41
41
  projects: payload.projects,
42
42
  count: payload.projects.length,
@@ -73,7 +73,7 @@ function describeInstallationStatus(installation) {
73
73
  }
74
74
  }
75
75
  async function handleStatus(options) {
76
- const { http } = _chunkPQKD5DMTjs.getAuthedHttpClient.call(void 0, );
76
+ const { http } = _chunkVAOGM5VSjs.getAuthedHttpClient.call(void 0, );
77
77
  const payload = await http.get("/api/v2/github/installation");
78
78
  const installation = payload.installation;
79
79
  const others = (_nullishCoalesce(payload.installations, () => ( []))).filter(
@@ -136,7 +136,7 @@ async function handleStatus(options) {
136
136
  )
137
137
  );
138
138
  }
139
- _chunkPQKD5DMTjs.printCommandEnvelope.call(void 0,
139
+ _chunkVAOGM5VSjs.printCommandEnvelope.call(void 0,
140
140
  {
141
141
  installation,
142
142
  installations: _nullishCoalesce(payload.installations, () => ( [])),
@@ -147,10 +147,10 @@ async function handleStatus(options) {
147
147
  );
148
148
  }
149
149
  async function handleRepos(options) {
150
- const { http } = _chunkPQKD5DMTjs.getAuthedHttpClient.call(void 0, );
150
+ const { http } = _chunkVAOGM5VSjs.getAuthedHttpClient.call(void 0, );
151
151
  const query = options.installation ? `?installationId=${encodeURIComponent(options.installation)}` : "";
152
152
  const payload = await http.get(`/api/v2/github/repos${query}`);
153
- _chunkPQKD5DMTjs.printCommandEnvelope.call(void 0,
153
+ _chunkVAOGM5VSjs.printCommandEnvelope.call(void 0,
154
154
  {
155
155
  installation: payload.installation,
156
156
  repositories: payload.repositories,
@@ -171,7 +171,7 @@ async function handleRepos(options) {
171
171
  }
172
172
  async function resolveRepoId(repo, installation) {
173
173
  if (/^\d+$/.test(repo)) return Number(repo);
174
- const { http } = _chunkPQKD5DMTjs.getAuthedHttpClient.call(void 0, );
174
+ const { http } = _chunkVAOGM5VSjs.getAuthedHttpClient.call(void 0, );
175
175
  const query = installation ? `?installationId=${encodeURIComponent(installation)}` : "";
176
176
  const payload = await http.get(
177
177
  `/api/v2/github/repos${query}`
@@ -188,7 +188,7 @@ async function resolveRepoId(repo, installation) {
188
188
  }
189
189
  async function handleLink(repo, options) {
190
190
  const repoId = await resolveRepoId(repo, options.installation);
191
- const { http } = _chunkPQKD5DMTjs.getAuthedHttpClient.call(void 0, );
191
+ const { http } = _chunkVAOGM5VSjs.getAuthedHttpClient.call(void 0, );
192
192
  const payload = await http.post("/api/v2/play-projects", {
193
193
  repoId,
194
194
  ...options.installation !== void 0 ? { installationId: options.installation } : {},
@@ -197,7 +197,7 @@ async function handleLink(repo, options) {
197
197
  ...options.branch !== void 0 ? { productionBranch: options.branch } : {},
198
198
  ...options.prChecks !== void 0 ? { checkOnPullRequest: options.prChecks } : {}
199
199
  });
200
- _chunkPQKD5DMTjs.printCommandEnvelope.call(void 0,
200
+ _chunkVAOGM5VSjs.printCommandEnvelope.call(void 0,
201
201
  {
202
202
  project: payload.project,
203
203
  render: {
@@ -220,11 +220,11 @@ async function handleLink(repo, options) {
220
220
  );
221
221
  }
222
222
  async function handleGet(id, options) {
223
- const { http } = _chunkPQKD5DMTjs.getAuthedHttpClient.call(void 0, );
223
+ const { http } = _chunkVAOGM5VSjs.getAuthedHttpClient.call(void 0, );
224
224
  const payload = await http.get(
225
225
  `/api/v2/play-projects/${encodeURIComponent(id)}`
226
226
  );
227
- _chunkPQKD5DMTjs.printCommandEnvelope.call(void 0,
227
+ _chunkVAOGM5VSjs.printCommandEnvelope.call(void 0,
228
228
  {
229
229
  project: payload.project,
230
230
  render: {
@@ -240,7 +240,7 @@ async function handleGet(id, options) {
240
240
  );
241
241
  }
242
242
  async function handleSet(id, options) {
243
- const { http } = _chunkPQKD5DMTjs.getAuthedHttpClient.call(void 0, );
243
+ const { http } = _chunkVAOGM5VSjs.getAuthedHttpClient.call(void 0, );
244
244
  const payload = await http.patch(
245
245
  `/api/v2/play-projects/${encodeURIComponent(id)}`,
246
246
  {
@@ -251,7 +251,7 @@ async function handleSet(id, options) {
251
251
  ...options.disabled !== void 0 ? { disabled: options.disabled } : {}
252
252
  }
253
253
  );
254
- _chunkPQKD5DMTjs.printCommandEnvelope.call(void 0,
254
+ _chunkVAOGM5VSjs.printCommandEnvelope.call(void 0,
255
255
  {
256
256
  project: payload.project,
257
257
  render: {
@@ -264,9 +264,9 @@ async function handleSet(id, options) {
264
264
  );
265
265
  }
266
266
  async function handleUnlink(id, options) {
267
- const { http } = _chunkPQKD5DMTjs.getAuthedHttpClient.call(void 0, );
267
+ const { http } = _chunkVAOGM5VSjs.getAuthedHttpClient.call(void 0, );
268
268
  await http.delete(`/api/v2/play-projects/${encodeURIComponent(id)}`);
269
- _chunkPQKD5DMTjs.printCommandEnvelope.call(void 0,
269
+ _chunkVAOGM5VSjs.printCommandEnvelope.call(void 0,
270
270
  {
271
271
  ok: true,
272
272
  id,
@@ -286,10 +286,10 @@ async function handleUnlink(id, options) {
286
286
  );
287
287
  }
288
288
  async function handleConnect(options) {
289
- const baseUrl = _chunkIMLFB66Ajs.resolveBaseUrlOnly.call(void 0, );
289
+ const baseUrl = _chunkMVIVF4BWjs.resolveBaseUrlOnly.call(void 0, );
290
290
  const connectUrl = `${baseUrl.replace(/\/$/, "")}/api/v2/github/connect`;
291
- const opened = _chunkPQKD5DMTjs.openInBrowser.call(void 0, connectUrl);
292
- _chunkPQKD5DMTjs.printCommandEnvelope.call(void 0,
291
+ const opened = _chunkVAOGM5VSjs.openInBrowser.call(void 0, connectUrl);
292
+ _chunkVAOGM5VSjs.printCommandEnvelope.call(void 0,
293
293
  {
294
294
  connectUrl,
295
295
  browser: opened,
@@ -311,7 +311,7 @@ async function handleConnect(options) {
311
311
  );
312
312
  }
313
313
  async function handleDeploymentsList(options) {
314
- const { http } = _chunkPQKD5DMTjs.getAuthedHttpClient.call(void 0, );
314
+ const { http } = _chunkVAOGM5VSjs.getAuthedHttpClient.call(void 0, );
315
315
  const query = new URLSearchParams();
316
316
  if (options.repo) query.set("projectId", options.repo);
317
317
  if (options.limit) query.set("limit", options.limit);
@@ -319,7 +319,7 @@ async function handleDeploymentsList(options) {
319
319
  const payload = await http.get(
320
320
  `/api/v2/deployments${suffix}`
321
321
  );
322
- _chunkPQKD5DMTjs.printCommandEnvelope.call(void 0,
322
+ _chunkVAOGM5VSjs.printCommandEnvelope.call(void 0,
323
323
  {
324
324
  deployments: payload.deployments,
325
325
  count: payload.deployments.length,
@@ -363,12 +363,12 @@ function renderDeploymentMonitorLines(results) {
363
363
  ]);
364
364
  }
365
365
  async function handleDeploymentGet(id, options) {
366
- const { http } = _chunkPQKD5DMTjs.getAuthedHttpClient.call(void 0, );
366
+ const { http } = _chunkVAOGM5VSjs.getAuthedHttpClient.call(void 0, );
367
367
  const payload = await http.get(`/api/v2/deployments/${encodeURIComponent(id)}`);
368
368
  const playLines = renderDeploymentPlayLines(payload.deployment.results);
369
369
  const monitorLines = renderDeploymentMonitorLines(payload.deployment.results);
370
370
  const repository = _nullishCoalesce(_optionalChain([payload, 'access', _10 => _10.project, 'optionalAccess', _11 => _11.repoFullName]), () => ( payload.deployment.repoFullName));
371
- _chunkPQKD5DMTjs.printCommandEnvelope.call(void 0,
371
+ _chunkVAOGM5VSjs.printCommandEnvelope.call(void 0,
372
372
  {
373
373
  deployment: payload.deployment,
374
374
  project: payload.project,
@@ -387,9 +387,9 @@ async function handleDeploymentGet(id, options) {
387
387
  );
388
388
  }
389
389
  async function handleDeploymentCancel(id, options) {
390
- const { http } = _chunkPQKD5DMTjs.getAuthedHttpClient.call(void 0, );
390
+ const { http } = _chunkVAOGM5VSjs.getAuthedHttpClient.call(void 0, );
391
391
  const payload = await http.post(`/api/v2/deployments/${encodeURIComponent(id)}/cancel`, {});
392
- _chunkPQKD5DMTjs.printCommandEnvelope.call(void 0,
392
+ _chunkVAOGM5VSjs.printCommandEnvelope.call(void 0,
393
393
  {
394
394
  cancelled: payload.cancelled,
395
395
  deployment: payload.deployment,
@@ -2,11 +2,11 @@ import {
2
2
  addDescribeOptions,
3
3
  recordApiResponse,
4
4
  writeExecutionOutput
5
- } from "./chunk-4WQR4DG4.mjs";
5
+ } from "./chunk-Z2OYTXLK.mjs";
6
6
  import {
7
7
  recentSearchRef,
8
8
  registerDeprecatedSearchCommand
9
- } from "./chunk-7XDJKIM2.mjs";
9
+ } from "./chunk-HLHDCFKL.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-M3NCXGNN.mjs";
49
+ } from "./chunk-AB6DFHGL.mjs";
50
50
  import {
51
51
  validateExecutionIdempotencyKey
52
- } from "./chunk-UE7JHAZ2.mjs";
52
+ } from "./chunk-B6UZUQ2O.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-N2BCPZVR.mjs";
62
+ } from "./chunk-ZJFU2COM.mjs";
63
63
  import {
64
64
  isCliTraceEnabled,
65
65
  recordCliTrace,
66
66
  resolveCliMaintenancePolicy
67
- } from "./chunk-FWE37N2P.mjs";
67
+ } from "./chunk-SGMDRYAD.mjs";
68
68
  import {
69
69
  checkSdkCompatibility,
70
70
  enforceSdkCompatibilityResponse,
71
71
  flushDeferredSkillsSyncNotices,
72
72
  syncSdkSkillsIfNeeded
73
- } from "./chunk-TWWYCJJW.mjs";
73
+ } from "./chunk-PJOMRUFP.mjs";
74
74
  import {
75
75
  errorToJsonPayload,
76
76
  printCommandEnvelope,
@@ -79,12 +79,12 @@ import {
79
79
  printJsonError,
80
80
  renderCommandEnvelopeText,
81
81
  shouldEmitJson
82
- } from "./chunk-6JG3MRTM.mjs";
82
+ } from "./chunk-37VFUQMU.mjs";
83
83
  import {
84
84
  readSdkSkillsLocalVersion,
85
85
  resolveConfig,
86
86
  sdkCliStateDirPath
87
- } from "./chunk-ICTA5ICE.mjs";
87
+ } from "./chunk-DWE2VE5I.mjs";
88
88
  import {
89
89
  DeeplineError
90
90
  } from "./chunk-JL2OTMSG.mjs";
@@ -1137,7 +1137,7 @@ Examples:
1137
1137
  process.exitCode = await narrowView();
1138
1138
  return;
1139
1139
  }
1140
- const { describeAnything } = await import("./describe-W26LW5O7.mjs");
1140
+ const { describeAnything } = await import("./describe-I42Y3PWR.mjs");
1141
1141
  process.exitCode = await describeAnything(
1142
1142
  toolId,
1143
1143
  {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  resolveShellSpawn
3
- } from "./chunk-TWWYCJJW.mjs";
3
+ } from "./chunk-PJOMRUFP.mjs";
4
4
 
5
5
  // src/cli/npm-script-policy.ts
6
6
  import { spawnSync } from "child_process";
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  rejectRestrictedFeedback
3
- } from "./chunk-VCHV4LS3.mjs";
3
+ } from "./chunk-BZVVSUE2.mjs";
4
4
  import {
5
5
  getAuthedHttpClient,
6
6
  printCommandEnvelope
7
- } from "./chunk-6JG3MRTM.mjs";
7
+ } from "./chunk-37VFUQMU.mjs";
8
8
  import {
9
9
  agentSessionIdFromEnvironment,
10
10
  claudeProjectsRoots,
11
11
  coworkTranscriptFromEnvironment
12
- } from "./chunk-CLO562KG.mjs";
12
+ } from "./chunk-XYM3SQZN.mjs";
13
13
 
14
14
  // src/cli/commands/sessions.ts
15
15
  import {
@@ -0,0 +1,54 @@
1
+ import {
2
+ httpJson
3
+ } from "./chunk-SXVYFOBG.mjs";
4
+ import {
5
+ PRICING_PAGE_NOTE
6
+ } from "./chunk-FANIRW74.mjs";
7
+ import {
8
+ autoDetectBaseUrl,
9
+ resolveApiKeyForBaseUrl
10
+ } from "./chunk-DWE2VE5I.mjs";
11
+
12
+ // src/cli/concurrent-runs-help.ts
13
+ var CONCURRENT_RUNS_HELP_COMMANDS = /* @__PURE__ */ new Set([
14
+ "plays run",
15
+ "runs get"
16
+ ]);
17
+ function concurrentRunsLine(payload) {
18
+ const runs = payload.concurrent_runs;
19
+ if (!runs) return null;
20
+ const plan = payload.plan?.name ? ` (${payload.plan.name})` : "";
21
+ const override = runs.source === "override" ? ", a workspace override" : "";
22
+ const here = `This workspace${plan} runs up to ${runs.limit.toLocaleString("en-US")} ${runs.limit === 1 ? "Play" : "Plays"} at once${override}.`;
23
+ const plans = runs.plans.map((entry) => `${entry.name} ${entry.limit.toLocaleString("en-US")}`).join(", ");
24
+ return plans ? `${here} Plan limits: ${plans}.` : here;
25
+ }
26
+ async function concurrentRunsHelpStatus(timeoutMs = 2e3) {
27
+ const baseUrl = autoDetectBaseUrl().replace(/\/$/, "");
28
+ const apiKey = resolveApiKeyForBaseUrl(baseUrl);
29
+ if (!apiKey) return "";
30
+ try {
31
+ const { status, data } = await httpJson(
32
+ "GET",
33
+ `${baseUrl}/api/v2/billing/entitlements`,
34
+ apiKey,
35
+ void 0,
36
+ timeoutMs
37
+ );
38
+ if (status !== 200) return "";
39
+ const line = concurrentRunsLine(data);
40
+ return line ? `
41
+ Your workspace:
42
+ ${line}
43
+ ${PRICING_PAGE_NOTE}
44
+ ` : "";
45
+ } catch {
46
+ return "";
47
+ }
48
+ }
49
+
50
+ export {
51
+ CONCURRENT_RUNS_HELP_COMMANDS,
52
+ concurrentRunsLine,
53
+ concurrentRunsHelpStatus
54
+ };