deepline 0.3.539 → 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 (160) 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/scheduler-backends/absurd-execution-queries.ts +2 -2
  5. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-pool.ts +20 -7
  6. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +30 -11
  7. package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +1 -1
  8. package/dist/cli/{auth-QD7QGD3B.mjs → auth-32TURPHH.mjs} +5 -5
  9. package/dist/cli/auth-XA3K5LH2.js +43 -0
  10. package/dist/cli/{billing-KOQAF6WS.js → billing-6433M4BX.js} +105 -94
  11. package/dist/cli/{billing-FIZXMHBW.mjs → billing-NSH3NOHV.mjs} +21 -10
  12. package/dist/cli/{chunk-FH3P3E4S.js → chunk-2U4VACUA.js} +2 -2
  13. package/dist/cli/{chunk-GLKUC5PO.mjs → chunk-37VFUQMU.mjs} +2 -2
  14. package/dist/cli/chunk-3GVIVIER.js +54 -0
  15. package/dist/cli/{chunk-55ITVU2V.mjs → chunk-AB6DFHGL.mjs} +2 -2
  16. package/dist/cli/{chunk-V7DEGIYO.js → chunk-AJVK4XC5.js} +4 -4
  17. package/dist/cli/{chunk-K5MZHTK7.js → chunk-AOYW62XO.js} +3 -3
  18. package/dist/cli/{chunk-GEO2EMM7.mjs → chunk-B6UZUQ2O.mjs} +1 -1
  19. package/dist/cli/{chunk-JHEZQMOM.mjs → chunk-BD3VAPB4.mjs} +1 -1
  20. package/dist/cli/{chunk-XZBXQCRJ.js → chunk-BGBRA2S6.js} +22 -22
  21. package/dist/cli/{chunk-EAZS52DL.js → chunk-BNNGM2E5.js} +15 -15
  22. package/dist/cli/{chunk-6NZBLFL4.mjs → chunk-BZVVSUE2.mjs} +1 -1
  23. package/dist/cli/{chunk-TZBCJHV6.js → chunk-DV3ESQ4X.js} +1 -1
  24. package/dist/cli/{chunk-FIRV7BXJ.mjs → chunk-DWE2VE5I.mjs} +1 -1
  25. package/dist/cli/{chunk-KQTX545E.js → chunk-EXAXDEIF.js} +13 -13
  26. package/dist/cli/chunk-FANIRW74.mjs +9 -0
  27. package/dist/cli/{chunk-F43MXIN3.mjs → chunk-FR3AII3W.mjs} +2 -2
  28. package/dist/cli/chunk-GWHA4DAC.js +9 -0
  29. package/dist/cli/{chunk-FSQCB5SJ.js → chunk-H6IA6XRE.js} +2 -2
  30. package/dist/cli/{chunk-K22EKW6L.js → chunk-HKWJD45V.js} +5 -5
  31. package/dist/cli/{chunk-APKZGUTU.mjs → chunk-HLHDCFKL.mjs} +4 -4
  32. package/dist/cli/{chunk-E7D37PLM.mjs → chunk-IDDKNMFX.mjs} +36 -0
  33. package/dist/cli/{chunk-RULRGMMM.mjs → chunk-IYQZVEV4.mjs} +5 -5
  34. package/dist/cli/{chunk-5RUB53KG.js → chunk-J3TAEPFA.js} +26 -26
  35. package/dist/cli/{chunk-GNCIMHO2.mjs → chunk-JGFGWWOF.mjs} +10 -10
  36. package/dist/cli/{chunk-Y66ZMOJI.mjs → chunk-JPU5YLQG.mjs} +1 -1
  37. package/dist/cli/{chunk-JBCQFG7G.mjs → chunk-KFAJYK2N.mjs} +3 -3
  38. package/dist/cli/chunk-KN6ELDPL.mjs +54 -0
  39. package/dist/cli/{chunk-NR5PLMNG.js → chunk-LPMI4CYW.js} +107 -107
  40. package/dist/cli/{chunk-YMQFQO3K.js → chunk-LXLCQP4A.js} +16 -16
  41. package/dist/cli/{chunk-KAEVL62Q.js → chunk-M4DB6BBP.js} +44 -44
  42. package/dist/cli/{chunk-GLEGINSP.mjs → chunk-MH22LQKZ.mjs} +2 -2
  43. package/dist/cli/{chunk-MI53W4DN.js → chunk-MLDLN6WG.js} +53 -53
  44. package/dist/cli/{chunk-ISXX5DUD.js → chunk-MVIVF4BW.js} +3 -3
  45. package/dist/cli/{chunk-3YDI2PTN.js → chunk-N6DMKVKO.js} +10 -10
  46. package/dist/cli/{chunk-ADV2IB2C.mjs → chunk-PJOMRUFP.mjs} +5 -5
  47. package/dist/cli/{chunk-6V3LNYK5.mjs → chunk-S3ULSGFH.mjs} +2 -2
  48. package/dist/cli/{chunk-2XMFT44N.mjs → chunk-SGMDRYAD.mjs} +1 -1
  49. package/dist/cli/{chunk-MKESK3SW.mjs → chunk-SINNEITW.mjs} +4 -4
  50. package/dist/cli/{chunk-LE5KN7CZ.mjs → chunk-SXVYFOBG.mjs} +3 -3
  51. package/dist/cli/{chunk-FTBWFDF3.js → chunk-TNUM4DFA.js} +7 -7
  52. package/dist/cli/{chunk-E4QHTDPF.mjs → chunk-TZVW5JH3.mjs} +1 -1
  53. package/dist/cli/{chunk-W32KT6LM.js → chunk-UJYX4VLX.js} +5 -5
  54. package/dist/cli/{chunk-XTYHZEJ2.js → chunk-V4EYJKGJ.js} +36 -0
  55. package/dist/cli/{chunk-LEREPTAE.js → chunk-VAOGM5VS.js} +19 -19
  56. package/dist/cli/{chunk-6KG4KVTH.mjs → chunk-WCM64BRH.mjs} +5 -5
  57. package/dist/cli/{chunk-CQJCLHBE.js → chunk-WDHHQEWQ.js} +41 -41
  58. package/dist/cli/{chunk-5YF35HAV.js → chunk-WHYNYL3M.js} +6 -6
  59. package/dist/cli/{chunk-Q4HNK7JX.js → chunk-XIIQNSWA.js} +8 -8
  60. package/dist/cli/{chunk-VK5UTS5B.js → chunk-XL3CEPZA.js} +9 -9
  61. package/dist/cli/{chunk-G3UFDUYU.mjs → chunk-XYM3SQZN.mjs} +1 -1
  62. package/dist/cli/{chunk-SDAP5MCO.mjs → chunk-Y6647AIY.mjs} +2 -2
  63. package/dist/cli/{chunk-N3LPGGWD.mjs → chunk-Z2OYTXLK.mjs} +1 -1
  64. package/dist/cli/{chunk-DZFVVP3S.mjs → chunk-ZJFU2COM.mjs} +5 -5
  65. package/dist/cli/{chunk-5QL4GJB2.js → chunk-ZTJQKHLM.js} +2 -2
  66. package/dist/cli/command-docs.js +3 -2
  67. package/dist/cli/command-docs.mjs +2 -1
  68. package/dist/cli/concurrent-runs-help-DU5STFGB.mjs +21 -0
  69. package/dist/cli/concurrent-runs-help-HIPM5BBV.js +21 -0
  70. package/dist/cli/{csv-BWWJYV2C.js → csv-FBNS6SM3.js} +13 -13
  71. package/dist/cli/{csv-G5RQQ74W.mjs → csv-OJCMBODT.mjs} +4 -4
  72. package/dist/cli/{db-AJZHWB3V.mjs → db-43RQRF64.mjs} +6 -6
  73. package/dist/cli/{db-5KNDLADE.js → db-XRGJJ2KA.js} +27 -27
  74. package/dist/cli/{describe-QY5TKWVD.mjs → describe-I42Y3PWR.mjs} +17 -17
  75. package/dist/cli/describe-LWZCGAXU.js +49 -0
  76. package/dist/cli/describe-core.d.mts +3 -3
  77. package/dist/cli/describe-core.d.ts +3 -3
  78. package/dist/cli/{executions-BCCW76BI.js → executions-LH46O4PG.js} +8 -8
  79. package/dist/cli/{executions-SJPH3MZT.mjs → executions-QXGVQHQF.mjs} +6 -6
  80. package/dist/cli/{feedback-S6SZOFGK.mjs → feedback-ELFINGTM.mjs} +6 -6
  81. package/dist/cli/{feedback-GF65JKK6.js → feedback-ERYIV6MT.js} +14 -14
  82. package/dist/cli/git-OV2TGYVE.js +25 -0
  83. package/dist/cli/{git-F5FT5YVB.mjs → git-V2XWB6LN.mjs} +5 -5
  84. package/dist/cli/index.js +153 -143
  85. package/dist/cli/index.mjs +53 -43
  86. package/dist/cli/{legacy-noops-NOA4P5NE.mjs → legacy-noops-ULL2EA37.mjs} +6 -6
  87. package/dist/cli/{legacy-noops-ECR6FS6U.js → legacy-noops-Y3OKNVWH.js} +9 -9
  88. package/dist/cli/{monitors-DEWBSURN.js → monitors-DNQXCRJZ.js} +100 -100
  89. package/dist/cli/{monitors-CTYSAGP4.mjs → monitors-L34NROM3.mjs} +7 -7
  90. package/dist/cli/{org-ZM2UUMZZ.js → org-JETA62CO.js} +86 -86
  91. package/dist/cli/{org-EKSKKT7H.mjs → org-L3HTEEXL.mjs} +6 -6
  92. package/dist/cli/{play-6JQOM6DE.js → play-GTGJRNWI.js} +473 -455
  93. package/dist/cli/{play-R2BH374J.mjs → play-JHGLSSJP.mjs} +35 -17
  94. package/dist/cli/{providers-CMIYHEMN.js → providers-7VH7PH2Q.js} +9 -9
  95. package/dist/cli/{providers-X7WMIWO4.mjs → providers-IQVHZJ27.mjs} +6 -6
  96. package/dist/cli/{quickstart-6HVPAMSW.js → quickstart-M25JNU3O.js} +6 -6
  97. package/dist/cli/{quickstart-ZZ7L6VZJ.mjs → quickstart-ZDBC45PM.mjs} +4 -4
  98. package/dist/cli/{run-OOHYH3GI.js → run-MPZGX3YD.js} +42 -42
  99. package/dist/cli/{run-FP32RKBU.mjs → run-NEEWZBTX.mjs} +22 -22
  100. package/dist/cli/search-HUN2YRQE.js +32 -0
  101. package/dist/cli/{search-BDDNC23Z.mjs → search-YXAFB4QQ.mjs} +7 -7
  102. package/dist/cli/{search-output-5VZIQQAM.js → search-output-4PH5HSJC.js} +6 -6
  103. package/dist/cli/{search-output-QXJ6CV5G.mjs → search-output-67BBIXIZ.mjs} +4 -4
  104. package/dist/cli/{secrets-Z7CQSQGC.mjs → secrets-445FER3C.mjs} +6 -6
  105. package/dist/cli/{secrets-EN2HQCO3.js → secrets-HLUBDN3H.js} +15 -15
  106. package/dist/cli/{sessions-I2H37OTJ.mjs → sessions-CCKXJNWT.mjs} +6 -6
  107. package/dist/cli/sessions-T2RNWC6B.js +22 -0
  108. package/dist/cli/{settings-IYSC5PPQ.mjs → settings-3XCZGGVF.mjs} +12 -12
  109. package/dist/cli/{settings-CTRAPFNZ.js → settings-WXJIQS5J.js} +85 -85
  110. package/dist/cli/{setup-XIN53GEW.js → setup-CKETRFFN.js} +49 -49
  111. package/dist/cli/{setup-PU3HOVI3.mjs → setup-TOSX6NER.mjs} +9 -9
  112. package/dist/cli/skills-FXM2RHHO.js +36 -0
  113. package/dist/cli/{skills-TYBML2ZO.mjs → skills-Q7NLCIJJ.mjs} +7 -7
  114. package/dist/cli/{tools-ZVNE6M6J.mjs → tools-GY6QMYTZ.mjs} +16 -16
  115. package/dist/cli/tools-XLVDZTWQ.js +56 -0
  116. package/dist/cli/{update-54WENBNT.mjs → update-A7JRUN4S.mjs} +9 -9
  117. package/dist/cli/update-AZINHILP.js +34 -0
  118. package/dist/cli/{views-7L75EZOJ.js → views-GUWC4SNI.js} +21 -21
  119. package/dist/cli/{views-EUBB4ONT.mjs → views-JG7FDEJR.mjs} +6 -6
  120. package/dist/cli/{workflow-EZVYCR6Y.js → workflow-CXNW7ICH.js} +17 -17
  121. package/dist/cli/{workflow-GUKGFJ72.mjs → workflow-QZCYSQ5G.mjs} +7 -7
  122. package/dist/{client-DZTnAv4B.d.ts → client-B1fixtK1.d.ts} +1 -1
  123. package/dist/{client-D0uDBybG.d.mts → client-CE4QBVbp.d.mts} +1 -1
  124. package/dist/{client-core-BhWf8Y1b.d.mts → client-core-2BkNBgrx.d.mts} +3 -1
  125. package/dist/{client-core-og3AP1LL.d.ts → client-core-C-3FVlVq.d.ts} +3 -1
  126. package/dist/{compiler-manifest-Bes3OVA3.d.ts → compiler-manifest-Cys06iYg.d.mts} +14 -0
  127. package/dist/{compiler-manifest-Bes3OVA3.d.mts → compiler-manifest-Cys06iYg.d.ts} +14 -0
  128. package/dist/{errors-Dc5r42ks.d.mts → errors-B6eMjKcr.d.mts} +1 -1
  129. package/dist/{errors-BJm4lLWc.d.ts → errors-rdOUqcU2.d.ts} +1 -1
  130. package/dist/{index-DTkiz_Ur.d.mts → index-CZdYO81A.d.mts} +1 -1
  131. package/dist/{index-BfV7mRPF.d.ts → index-ejWadAL5.d.ts} +1 -1
  132. package/dist/index.d.mts +7 -7
  133. package/dist/index.d.ts +7 -7
  134. package/dist/index.js +9 -9
  135. package/dist/index.mjs +6 -6
  136. package/dist/install-integrity.json +118 -112
  137. package/dist/plays/bundle-play-file.d.mts +3 -3
  138. package/dist/plays/bundle-play-file.d.ts +3 -3
  139. package/dist/plays/bundle-play-file.mjs +1 -1
  140. package/dist/plays/play-description.d.mts +2 -2
  141. package/dist/plays/play-description.d.ts +2 -2
  142. package/dist/plays/run-request.d.mts +2 -2
  143. package/dist/plays/run-request.d.ts +2 -2
  144. package/dist/release.d.mts +1 -1
  145. package/dist/release.d.ts +1 -1
  146. package/dist/release.js +2 -2
  147. package/dist/release.mjs +1 -1
  148. package/dist/server.d.mts +4 -4
  149. package/dist/server.d.ts +4 -4
  150. package/dist/server.js +5 -5
  151. package/dist/server.mjs +3 -3
  152. package/package.json +1 -1
  153. package/dist/cli/auth-O5Y2VYXK.js +0 -43
  154. package/dist/cli/describe-B6CN6CFJ.js +0 -49
  155. package/dist/cli/git-DX6NB7VF.js +0 -25
  156. package/dist/cli/search-34C6LFOJ.js +0 -32
  157. package/dist/cli/sessions-RYQX3NDD.js +0 -22
  158. package/dist/cli/skills-576CX7DK.js +0 -36
  159. package/dist/cli/tools-EXMUWA3Z.js +0 -56
  160. package/dist/cli/update-RAHETNL2.js +0 -34
@@ -1,17 +1,24 @@
1
+ import {
2
+ concurrentRunsLine
3
+ } from "./chunk-KN6ELDPL.mjs";
4
+ import "./chunk-SXVYFOBG.mjs";
1
5
  import {
2
6
  DeeplineClient
3
- } from "./chunk-55ITVU2V.mjs";
7
+ } from "./chunk-AB6DFHGL.mjs";
4
8
  import {
5
9
  iterateCursorPages,
6
10
  requireBillingIdempotencyKey
7
- } from "./chunk-GEO2EMM7.mjs";
11
+ } from "./chunk-B6UZUQ2O.mjs";
8
12
  import "./chunk-L2VKAASU.mjs";
9
13
  import "./chunk-Z2XA6YU4.mjs";
10
14
  import "./chunk-PSX3WHIH.mjs";
11
15
  import "./chunk-UBKA33KY.mjs";
12
16
  import {
13
17
  PLAY_RUNTIME_PRICING_NOTE
14
- } from "./chunk-E7D37PLM.mjs";
18
+ } from "./chunk-IDDKNMFX.mjs";
19
+ import {
20
+ PRICING_PAGE_NOTE
21
+ } from "./chunk-FANIRW74.mjs";
15
22
  import "./chunk-5LUF4LAR.mjs";
16
23
  import {
17
24
  PLAY_SANDBOX_SIZE_INPUTS
@@ -22,9 +29,9 @@ import {
22
29
  openInBrowser,
23
30
  printCommandEnvelope,
24
31
  shouldEmitJson
25
- } from "./chunk-GLKUC5PO.mjs";
26
- import "./chunk-FIRV7BXJ.mjs";
27
- import "./chunk-G3UFDUYU.mjs";
32
+ } from "./chunk-37VFUQMU.mjs";
33
+ import "./chunk-DWE2VE5I.mjs";
34
+ import "./chunk-XYM3SQZN.mjs";
28
35
  import {
29
36
  AuthError,
30
37
  ConfigError
@@ -33,7 +40,7 @@ import "./chunk-DLIRSHV6.mjs";
33
40
  import {
34
41
  DeeplineError
35
42
  } from "./chunk-JL2OTMSG.mjs";
36
- import "./chunk-E4QHTDPF.mjs";
43
+ import "./chunk-TZVW5JH3.mjs";
37
44
  import "./chunk-WZYKRD7T.mjs";
38
45
  import "./chunk-KRD6H754.mjs";
39
46
 
@@ -1281,13 +1288,15 @@ async function handleIncludedCompute(options) {
1281
1288
  ] : [],
1282
1289
  `Standard sandbox price: ${formatComputeAmount(60, Math.round(rate * 60))}`,
1283
1290
  `Allowance resets: ${payload.period_end_at.slice(0, 10)} (UTC)`,
1284
- PLAY_RUNTIME_PRICING_NOTE
1291
+ PLAY_RUNTIME_PRICING_NOTE,
1292
+ PRICING_PAGE_NOTE
1285
1293
  ] : payload.status === "off" ? [
1286
1294
  "Included compute: off; Play compute is billed at provider cost.",
1287
1295
  `Allowance if enabled: ${formatComputeAmount(payload.plan.included_minutes, payload.plan.included_minutes * payload.plan.credits_per_minute)} per month`,
1288
1296
  `Standard sandbox price if enabled: ${formatComputeAmount(60, Math.round(payload.plan.credits_per_minute * 60))}`,
1289
1297
  PLAY_RUNTIME_PRICING_NOTE,
1290
- "Run deepline billing compute --enable to turn on included compute. It cannot be turned off again."
1298
+ "Run deepline billing compute --enable to turn on included compute. It cannot be turned off again.",
1299
+ PRICING_PAGE_NOTE
1291
1300
  ] : [
1292
1301
  "Included compute is not available for this workspace yet."
1293
1302
  ]
@@ -1310,6 +1319,7 @@ async function handleEntitlements(options) {
1310
1319
  title: "billing entitlements",
1311
1320
  lines: [
1312
1321
  `Plan: ${payload.plan?.name ?? "Legacy billing"}`,
1322
+ ...concurrentRunsLine(payload) ? [`Concurrent runs: ${concurrentRunsLine(payload)}`] : [],
1313
1323
  ...Object.entries(payload.benefits).flatMap(
1314
1324
  ([key, grant]) => "value" in grant ? [
1315
1325
  `${key}: ${grant.status}, ${JSON.stringify(grant.value)}${grant.expiresAt === void 0 ? "" : `, expires ${new Date(grant.expiresAt).toISOString()}`}`
@@ -1323,7 +1333,8 @@ async function handleEntitlements(options) {
1323
1333
  ] : [],
1324
1334
  ...Object.entries(payload.effective_limits).map(
1325
1335
  ([key, limit]) => `${key} rate: ${limit.effective}/minute (${limit.source}; plan baseline ${limit.baseline})`
1326
- )
1336
+ ),
1337
+ PRICING_PAGE_NOTE
1327
1338
  ]
1328
1339
  }
1329
1340
  ]
@@ -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(); } } 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 _chunkKAEVL62Qjs = require('./chunk-KAEVL62Q.js');
3
+ var _chunkM4DB6BBPjs = require('./chunk-M4DB6BBP.js');
4
4
 
5
5
  // src/cli/npm-script-policy.ts
6
6
  var _child_process = require('child_process');
@@ -13,7 +13,7 @@ function npmSupportsAllowScripts(version) {
13
13
  }
14
14
  function readNpmVersion(env) {
15
15
  try {
16
- const plan = _chunkKAEVL62Qjs.resolveShellSpawn.call(void 0, "npm", ["--version"], process.platform, env);
16
+ const plan = _chunkM4DB6BBPjs.resolveShellSpawn.call(void 0, "npm", ["--version"], process.platform, env);
17
17
  const result = _child_process.spawnSync.call(void 0, plan.command, plan.args, {
18
18
  encoding: "utf8",
19
19
  env,
@@ -4,13 +4,13 @@ import {
4
4
  resolveApiKeyForBaseUrl,
5
5
  resolveCliCommandContext,
6
6
  resolveConfig
7
- } from "./chunk-FIRV7BXJ.mjs";
7
+ } from "./chunk-DWE2VE5I.mjs";
8
8
  import {
9
9
  SDK_VERSION,
10
10
  agentSessionIdFromEnvironment,
11
11
  deploymentProtectionHeaders,
12
12
  detectAgentRuntime
13
- } from "./chunk-G3UFDUYU.mjs";
13
+ } from "./chunk-XYM3SQZN.mjs";
14
14
  import {
15
15
  DeeplineError,
16
16
  normalizeToolExecutionFailure,
@@ -0,0 +1,54 @@
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
+
3
+ var _chunkMLDLN6WGjs = require('./chunk-MLDLN6WG.js');
4
+
5
+
6
+ var _chunkGWHA4DACjs = require('./chunk-GWHA4DAC.js');
7
+
8
+
9
+
10
+ var _chunkMVIVF4BWjs = require('./chunk-MVIVF4BW.js');
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 = _optionalChain([payload, 'access', _ => _.plan, 'optionalAccess', _2 => _2.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 = _chunkMVIVF4BWjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
28
+ const apiKey = _chunkMVIVF4BWjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
29
+ if (!apiKey) return "";
30
+ try {
31
+ const { status, data } = await _chunkMLDLN6WGjs.httpJson.call(void 0,
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
+ ${_chunkGWHA4DACjs.PRICING_PAGE_NOTE}
44
+ ` : "";
45
+ } catch (e) {
46
+ return "";
47
+ }
48
+ }
49
+
50
+
51
+
52
+
53
+
54
+ exports.CONCURRENT_RUNS_HELP_COMMANDS = CONCURRENT_RUNS_HELP_COMMANDS; exports.concurrentRunsLine = concurrentRunsLine; exports.concurrentRunsHelpStatus = concurrentRunsHelpStatus;
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  DeeplineClient
3
- } from "./chunk-GEO2EMM7.mjs";
3
+ } from "./chunk-B6UZUQ2O.mjs";
4
4
  import {
5
5
  HttpClient,
6
6
  resolveConfig
7
- } from "./chunk-FIRV7BXJ.mjs";
7
+ } from "./chunk-DWE2VE5I.mjs";
8
8
 
9
9
  // src/client.ts
10
10
  var DeeplineClient2 = class extends DeeplineClient {
@@ -17,12 +17,12 @@ var _chunkXNYIZMNQjs = require('./chunk-XNYIZMNQ.js');
17
17
  var _chunkBBTKAASQjs = require('./chunk-BBTKAASQ.js');
18
18
 
19
19
 
20
- var _chunkTZBCJHV6js = require('./chunk-TZBCJHV6.js');
20
+ var _chunkDV3ESQ4Xjs = require('./chunk-DV3ESQ4X.js');
21
21
 
22
22
  // src/version.ts
23
- var SDK_VERSION = _chunkTZBCJHV6js.SDK_RELEASE.version;
24
- var SDK_API_MAJOR = _chunkTZBCJHV6js.SDK_RELEASE.contracts.api.currentMajor;
25
- var SDK_API_CONTRACT = _nullishCoalesce(_chunkTZBCJHV6js.SDK_RELEASE.contracts.api.legacyWireIds[0], () => ( `api-v${SDK_API_MAJOR}`));
23
+ var SDK_VERSION = _chunkDV3ESQ4Xjs.SDK_RELEASE.version;
24
+ var SDK_API_MAJOR = _chunkDV3ESQ4Xjs.SDK_RELEASE.contracts.api.currentMajor;
25
+ var SDK_API_CONTRACT = _nullishCoalesce(_chunkDV3ESQ4Xjs.SDK_RELEASE.contracts.api.legacyWireIds[0], () => ( `api-v${SDK_API_MAJOR}`));
26
26
 
27
27
  // src/agent-runtime.ts
28
28
  var _fs = require('fs');
@@ -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 _chunkLEREPTAEjs = require('./chunk-LEREPTAE.js');
3
+ var _chunkVAOGM5VSjs = require('./chunk-VAOGM5VS.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 && !_chunkLEREPTAEjs.isJsonOutputMode.call(void 0, );
22
+ this.enabled = enabled && !_chunkVAOGM5VSjs.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 (_chunkLEREPTAEjs.isJsonOutputMode.call(void 0, )) return;
62
+ if (_chunkVAOGM5VSjs.isJsonOutputMode.call(void 0, )) return;
63
63
  if (!this.enabled) {
64
64
  process.stderr.write(`${line}
65
65
  `);
@@ -32,7 +32,7 @@ import {
32
32
  RETAINED_PIPELINE_RECEIVERS_HEADER,
33
33
  RUNTIME_ENVIRONMENT_TOKEN_HEADER,
34
34
  SDK_API_MAJOR
35
- } from "./chunk-G3UFDUYU.mjs";
35
+ } from "./chunk-XYM3SQZN.mjs";
36
36
  import {
37
37
  CustomerDbQueryOutcomeUnknownError
38
38
  } from "./chunk-CQBIO6HW.mjs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  isJsonOutputMode
3
- } from "./chunk-GLKUC5PO.mjs";
3
+ } from "./chunk-37VFUQMU.mjs";
4
4
 
5
5
  // src/cli/progress.ts
6
6
  import { Worker } from "worker_threads";
@@ -4,21 +4,21 @@
4
4
 
5
5
 
6
6
 
7
- var _chunkYMQFQO3Kjs = require('./chunk-YMQFQO3K.js');
7
+ var _chunkLXLCQP4Ajs = require('./chunk-LXLCQP4A.js');
8
8
 
9
9
 
10
10
 
11
- var _chunkKAEVL62Qjs = require('./chunk-KAEVL62Q.js');
11
+ var _chunkM4DB6BBPjs = require('./chunk-M4DB6BBP.js');
12
12
 
13
13
 
14
14
 
15
- var _chunkLEREPTAEjs = require('./chunk-LEREPTAE.js');
15
+ var _chunkVAOGM5VSjs = require('./chunk-VAOGM5VS.js');
16
16
 
17
17
 
18
- var _chunkISXX5DUDjs = require('./chunk-ISXX5DUD.js');
18
+ var _chunkMVIVF4BWjs = require('./chunk-MVIVF4BW.js');
19
19
 
20
20
 
21
- var _chunkV7DEGIYOjs = require('./chunk-V7DEGIYO.js');
21
+ var _chunkAJVK4XC5js = require('./chunk-AJVK4XC5.js');
22
22
 
23
23
  // src/cli/compatibility-catalog.ts
24
24
  var readers = /* @__PURE__ */ new WeakMap();
@@ -45,7 +45,7 @@ function trustedAutoUpdateRegistryUrl(baseUrl) {
45
45
  async function reportAutoUpdateEvent(input) {
46
46
  let apiKey = "";
47
47
  try {
48
- apiKey = _chunkISXX5DUDjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
48
+ apiKey = _chunkMVIVF4BWjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
49
49
  } catch (e2) {
50
50
  return;
51
51
  }
@@ -61,15 +61,15 @@ async function reportAutoUpdateEvent(input) {
61
61
  headers: {
62
62
  Authorization: `Bearer ${apiKey}`,
63
63
  "Content-Type": "application/json",
64
- "User-Agent": `deepline-ts-sdk/${_chunkV7DEGIYOjs.SDK_VERSION}`,
64
+ "User-Agent": `deepline-ts-sdk/${_chunkAJVK4XC5js.SDK_VERSION}`,
65
65
  "X-Deepline-Client-Family": "sdk",
66
66
  "X-Deepline-CLI-Family": "sdk",
67
- "X-Deepline-CLI-Version": _chunkV7DEGIYOjs.SDK_VERSION,
68
- "X-Deepline-SDK-Version": _chunkV7DEGIYOjs.SDK_VERSION
67
+ "X-Deepline-CLI-Version": _chunkAJVK4XC5js.SDK_VERSION,
68
+ "X-Deepline-SDK-Version": _chunkAJVK4XC5js.SDK_VERSION
69
69
  },
70
70
  body: JSON.stringify({
71
71
  event: input.event,
72
- current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) || _chunkV7DEGIYOjs.SDK_VERSION,
72
+ current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) || _chunkAJVK4XC5js.SDK_VERSION,
73
73
  target_version: input.response.latest,
74
74
  reason: _optionalChain([input, 'access', _8 => _8.response, 'access', _9 => _9.auto_update, 'optionalAccess', _10 => _10.reason]),
75
75
  command: _nullishCoalesce(input.response.command, () => ( null)),
@@ -88,13 +88,13 @@ function envTruthy(name) {
88
88
  return value === "1" || value === "true" || value === "yes";
89
89
  }
90
90
  function shouldSkipSelfUpdate(policy) {
91
- return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !_chunkYMQFQO3Kjs.shouldRunCliAutoUpdate.call(void 0, ) || _chunkKAEVL62Qjs.isCiEnvironment.call(void 0, );
91
+ return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !_chunkLXLCQP4Ajs.shouldRunCliAutoUpdate.call(void 0, ) || _chunkM4DB6BBPjs.isCiEnvironment.call(void 0, );
92
92
  }
93
93
  function isDowngradeAutoUpdateResponse(response) {
94
94
  const target = _optionalChain([response, 'optionalAccess', _17 => _17.latest, 'optionalAccess', _18 => _18.trim, 'call', _19 => _19()]);
95
- const current = _optionalChain([response, 'optionalAccess', _20 => _20.current, 'optionalAccess', _21 => _21.trim, 'call', _22 => _22()]) || _chunkV7DEGIYOjs.SDK_VERSION;
95
+ const current = _optionalChain([response, 'optionalAccess', _20 => _20.current, 'optionalAccess', _21 => _21.trim, 'call', _22 => _22()]) || _chunkAJVK4XC5js.SDK_VERSION;
96
96
  if (!target) return false;
97
- return _chunkYMQFQO3Kjs.compareUpdateVersions.call(void 0, target, current) < 0;
97
+ return _chunkLXLCQP4Ajs.compareUpdateVersions.call(void 0, target, current) < 0;
98
98
  }
99
99
  function relaunchCurrentCommand(plan, runtime = {}) {
100
100
  return new Promise((resolve) => {
@@ -147,7 +147,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
147
147
  }
148
148
  if (isDowngradeAutoUpdateResponse(response)) {
149
149
  const target = response.latest;
150
- const current = _optionalChain([response, 'access', _26 => _26.current, 'optionalAccess', _27 => _27.trim, 'call', _28 => _28()]) || _chunkV7DEGIYOjs.SDK_VERSION;
150
+ const current = _optionalChain([response, 'access', _26 => _26.current, 'optionalAccess', _27 => _27.trim, 'call', _28 => _28()]) || _chunkAJVK4XC5js.SDK_VERSION;
151
151
  process.stderr.write(
152
152
  `Deepline SDK/CLI auto-update refused: server advertised older ${target} than current ${current}. Continuing without mutating the CLI.
153
153
  `
@@ -155,21 +155,21 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
155
155
  return false;
156
156
  }
157
157
  const packageSpec = response.latest ? `deepline@${response.latest}` : void 0;
158
- const plan = _chunkYMQFQO3Kjs.resolveUpdatePlan.call(void 0, {
158
+ const plan = _chunkLXLCQP4Ajs.resolveUpdatePlan.call(void 0, {
159
159
  packageSpec,
160
160
  requireVerifiedNpmOwnership: true,
161
161
  npmFallbackRegistryUrl: trustedAutoUpdateRegistryUrl(baseUrl)
162
162
  });
163
- if (!_chunkYMQFQO3Kjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) {
163
+ if (!_chunkLXLCQP4Ajs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) {
164
164
  return false;
165
165
  }
166
166
  if (!autoUpdate.required && autoUpdate.reason !== "rollback_forced") {
167
167
  deferredAutoUpdate = async () => {
168
168
  await applyAutoUpdate(response, baseUrl, plan, "next_command");
169
169
  };
170
- if (_chunkLEREPTAEjs.isJsonOutputMode.call(void 0, )) {
170
+ if (_chunkVAOGM5VSjs.isJsonOutputMode.call(void 0, )) {
171
171
  const target = _optionalChain([response, 'access', _29 => _29.latest, 'optionalAccess', _30 => _30.trim, 'call', _31 => _31()]);
172
- _chunkLEREPTAEjs.addJsonNotice.call(void 0, {
172
+ _chunkVAOGM5VSjs.addJsonNotice.call(void 0, {
173
173
  code: "sdk_update_queued",
174
174
  message: `Deepline SDK/CLI update${target ? ` to ${target}` : ""} is queued after this command; the next command will use it if installation succeeds.`
175
175
  });
@@ -182,7 +182,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
182
182
  return true;
183
183
  }
184
184
  async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
185
- if (!_chunkYMQFQO3Kjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) return false;
185
+ if (!_chunkLXLCQP4Ajs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) return false;
186
186
  const autoUpdate = response.auto_update;
187
187
  const label = _optionalChain([autoUpdate, 'optionalAccess', _32 => _32.reason]) === "rollback_forced" ? "has a server rollback pending and needs the latest rollback-aware CLI" : _optionalChain([autoUpdate, 'optionalAccess', _33 => _33.reason]) === "deprecated" ? "is deprecated and will update automatically" : _optionalChain([autoUpdate, 'optionalAccess', _34 => _34.required]) ? "requires an update" : "has an update available and will update automatically";
188
188
  process.stderr.write(
@@ -195,7 +195,7 @@ async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
195
195
  event: "started",
196
196
  installKind: plan.kind
197
197
  });
198
- const updateResult = await _chunkYMQFQO3Kjs.runAutomaticUpdatePlan.call(void 0, plan);
198
+ const updateResult = await _chunkLXLCQP4Ajs.runAutomaticUpdatePlan.call(void 0, plan);
199
199
  if (updateResult.status === "skipped_previous_failure") {
200
200
  void reportAutoUpdateEvent({
201
201
  baseUrl,
@@ -233,7 +233,7 @@ async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
233
233
  exitCode: 0
234
234
  });
235
235
  try {
236
- await _chunkKAEVL62Qjs.syncSdkSkillsIfNeeded.call(void 0, baseUrl, {
236
+ await _chunkM4DB6BBPjs.syncSdkSkillsIfNeeded.call(void 0, baseUrl, {
237
237
  mode: "detached",
238
238
  update: _optionalChain([response, 'access', _36 => _36.skills, 'optionalAccess', _37 => _37.requires_cli_update]) ? void 0 : response.skills,
239
239
  afterCliUpdate: {
@@ -260,7 +260,7 @@ var _crypto = require('crypto');
260
260
  var TOOL_EXECUTE_PROGRESS_INTERVAL_MS = 15e3;
261
261
  var activeToolExecuteCommand = null;
262
262
  function progressLine(line) {
263
- if (!_chunkLEREPTAEjs.isJsonOutputMode.call(void 0, )) console.error(line);
263
+ if (!_chunkVAOGM5VSjs.isJsonOutputMode.call(void 0, )) console.error(line);
264
264
  }
265
265
  function beginToolExecuteCommand() {
266
266
  if (activeToolExecuteCommand) return activeToolExecuteCommand.invocationId;
@@ -1,9 +1,9 @@
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 _chunkNR5PLMNGjs = require('./chunk-NR5PLMNG.js');
3
+ var _chunkLPMI4CYWjs = require('./chunk-LPMI4CYW.js');
4
4
 
5
5
 
6
- var _chunkFTBWFDF3js = require('./chunk-FTBWFDF3.js');
6
+ var _chunkTNUM4DFAjs = require('./chunk-TNUM4DFA.js');
7
7
 
8
8
 
9
9
 
@@ -14,16 +14,16 @@ var _chunkIPVRMYWTjs = require('./chunk-IPVRMYWT.js');
14
14
  var _chunkXYIECA7Mjs = require('./chunk-XYIECA7M.js');
15
15
 
16
16
 
17
- var _chunkW32KT6LMjs = require('./chunk-W32KT6LM.js');
17
+ var _chunkUJYX4VLXjs = require('./chunk-UJYX4VLX.js');
18
18
 
19
19
 
20
20
 
21
21
 
22
- var _chunkLEREPTAEjs = require('./chunk-LEREPTAE.js');
22
+ var _chunkVAOGM5VSjs = require('./chunk-VAOGM5VS.js');
23
23
 
24
24
 
25
25
 
26
- var _chunkISXX5DUDjs = require('./chunk-ISXX5DUD.js');
26
+ var _chunkMVIVF4BWjs = require('./chunk-MVIVF4BW.js');
27
27
 
28
28
  // src/cli/commands/describe.ts
29
29
  var _fs = require('fs');
@@ -32,14 +32,14 @@ var _path = require('path');
32
32
  // src/cli/doc-read-reporting.ts
33
33
  var REPORT_TIMEOUT_MS = 1e3;
34
34
  async function reportDocRead(docId) {
35
- if (_chunkLEREPTAEjs.isFailureReportingDisabled.call(void 0, )) return;
35
+ if (_chunkVAOGM5VSjs.isFailureReportingDisabled.call(void 0, )) return;
36
36
  try {
37
- const baseUrl = _chunkISXX5DUDjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
38
- const apiKey = _chunkISXX5DUDjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
37
+ const baseUrl = _chunkMVIVF4BWjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
38
+ const apiKey = _chunkMVIVF4BWjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
39
39
  if (!apiKey) return;
40
40
  await fetch(new URL("/api/v2/telemetry/doc-read", baseUrl), {
41
41
  method: "POST",
42
- headers: _chunkLEREPTAEjs.failureReportHeaders.call(void 0, apiKey),
42
+ headers: _chunkVAOGM5VSjs.failureReportHeaders.call(void 0, apiKey),
43
43
  body: JSON.stringify({ doc_id: docId }),
44
44
  signal: AbortSignal.timeout(REPORT_TIMEOUT_MS)
45
45
  });
@@ -52,16 +52,16 @@ function nothingNamed(name) {
52
52
  return `Nothing named "${name}". Search for it: deepline search ${JSON.stringify(name.replace(/[-_./]+/g, " "))}`;
53
53
  }
54
54
  function findNamed2(name, options) {
55
- return _chunkIPVRMYWTjs.findNamed.call(void 0, name, options, _chunkIPVRMYWTjs.describeLookupsFor.call(void 0, new (0, _chunkW32KT6LMjs.DeeplineClient)()));
55
+ return _chunkIPVRMYWTjs.findNamed.call(void 0, name, options, _chunkIPVRMYWTjs.describeLookupsFor.call(void 0, new (0, _chunkUJYX4VLXjs.DeeplineClient)()));
56
56
  }
57
57
  async function describeAnything(name, options, onMissing) {
58
- const client = new (0, _chunkW32KT6LMjs.DeeplineClient)();
58
+ const client = new (0, _chunkUJYX4VLXjs.DeeplineClient)();
59
59
  const lookups = _chunkIPVRMYWTjs.describeLookupsFor.call(void 0, client);
60
60
  const outcome = await _chunkIPVRMYWTjs.describeName.call(void 0, name, options, {
61
61
  ...lookups,
62
62
  // `tools describe` has already fetched the tool for its compatibility check.
63
63
  tool: async (toolName) => _nullishCoalesce(options.fetchedTool, () => ( lookups.tool(toolName))),
64
- seedStarterScript: _chunkNR5PLMNGjs.seedToolListScript
64
+ seedStarterScript: _chunkLPMI4CYWjs.seedToolListScript
65
65
  });
66
66
  if (outcome.status === "missing") {
67
67
  if (onMissing) return onMissing();
@@ -87,18 +87,18 @@ function deliver(envelope, lines, { json, out }) {
87
87
  ` : text;
88
88
  _fs.writeFileSync.call(void 0, path, content);
89
89
  const bytes = Buffer.byteLength(content);
90
- _chunkLEREPTAEjs.printCommandEnvelope.call(void 0,
90
+ _chunkVAOGM5VSjs.printCommandEnvelope.call(void 0,
91
91
  { path, bytes },
92
92
  { json, text: `Wrote ${path} (${bytes} bytes)
93
93
  ` }
94
94
  );
95
95
  return 0;
96
96
  }
97
- _chunkLEREPTAEjs.printCommandEnvelope.call(void 0, envelope, { json, text });
97
+ _chunkVAOGM5VSjs.printCommandEnvelope.call(void 0, envelope, { json, text });
98
98
  return 0;
99
99
  }
100
100
  function registerDescribeCommand(program) {
101
- _chunkFTBWFDF3js.addDescribeOptions.call(void 0, program.command("describe <name>")).option("--web-url", "Print only a play's play page URL").description(
101
+ _chunkTNUM4DFAjs.addDescribeOptions.call(void 0, program.command("describe <name>")).option("--web-url", "Print only a play's play page URL").description(
102
102
  "Describe anything search returns: a tool, monitor type, or play."
103
103
  ).addHelpText(
104
104
  "after",
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  printCommandEnvelope
3
- } from "./chunk-GLKUC5PO.mjs";
3
+ } from "./chunk-37VFUQMU.mjs";
4
4
 
5
5
  // src/cli/feedback-preferences.ts
6
6
  import {
@@ -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.539",
52
+ version: "0.3.540",
53
53
  updateSummary: {
54
54
  introducedIn: "0.3.90",
55
55
  summary: "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."
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  HttpClient,
3
3
  detectAgentRuntime
4
- } from "./chunk-G3UFDUYU.mjs";
4
+ } from "./chunk-XYM3SQZN.mjs";
5
5
  import {
6
6
  ConfigError
7
7
  } from "./chunk-CQBIO6HW.mjs";
@@ -1,15 +1,15 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunk5QL4GJB2js = require('./chunk-5QL4GJB2.js');
3
+ var _chunkZTJQKHLMjs = require('./chunk-ZTJQKHLM.js');
4
4
 
5
5
 
6
6
 
7
- var _chunkLEREPTAEjs = require('./chunk-LEREPTAE.js');
7
+ var _chunkVAOGM5VSjs = require('./chunk-VAOGM5VS.js');
8
8
 
9
9
 
10
10
 
11
11
 
12
- var _chunkV7DEGIYOjs = require('./chunk-V7DEGIYO.js');
12
+ var _chunkAJVK4XC5js = require('./chunk-AJVK4XC5.js');
13
13
 
14
14
  // src/cli/commands/sessions.ts
15
15
 
@@ -55,7 +55,7 @@ function codexSessionsRoot() {
55
55
  }
56
56
  function listClaudeSessionFiles() {
57
57
  const files = [];
58
- for (const root of _chunkV7DEGIYOjs.claudeProjectsRoots.call(void 0, )) {
58
+ for (const root of _chunkAJVK4XC5js.claudeProjectsRoots.call(void 0, )) {
59
59
  files.push(...listClaudeSessionFilesIn(root));
60
60
  }
61
61
  return files;
@@ -147,7 +147,7 @@ function currentSessionFile(agent) {
147
147
  const newestFirst = listSessionFiles(agent).sort(
148
148
  (a, b) => b.mtimeMs - a.mtimeMs
149
149
  );
150
- const sessionId = _chunkV7DEGIYOjs.agentSessionIdFromEnvironment.call(void 0,
150
+ const sessionId = _chunkAJVK4XC5js.agentSessionIdFromEnvironment.call(void 0,
151
151
  process.env,
152
152
  agent === "auto" ? void 0 : agent === "claude" ? "claude_code" : "codex"
153
153
  );
@@ -156,7 +156,7 @@ function currentSessionFile(agent) {
156
156
  (candidate) => candidate.sessionId === sessionId
157
157
  );
158
158
  if (named) return named;
159
- const cowork = agent === "codex" ? null : _chunkV7DEGIYOjs.coworkTranscriptFromEnvironment.call(void 0, );
159
+ const cowork = agent === "codex" ? null : _chunkAJVK4XC5js.coworkTranscriptFromEnvironment.call(void 0, );
160
160
  const coworkStat = cowork ? statIfReadable(cowork.filePath) : null;
161
161
  if (cowork && coworkStat) {
162
162
  return { agent: "claude", ...cowork, mtimeMs: coworkStat.mtimeMs };
@@ -166,7 +166,7 @@ function currentSessionFile(agent) {
166
166
  ), () => ( newestFirst[0])), () => ( null));
167
167
  }
168
168
  function feedbackAgentSessionId(agentRuntime) {
169
- return _nullishCoalesce(_chunkV7DEGIYOjs.agentSessionIdFromEnvironment.call(void 0, process.env, agentRuntime), () => ( (agentRuntime === "claude_cowork" || agentRuntime === "claude_code" ? _nullishCoalesce(_optionalChain([_chunkV7DEGIYOjs.coworkTranscriptFromEnvironment.call(void 0, ), 'optionalAccess', _17 => _17.sessionId]), () => ( null)) : null)));
169
+ return _nullishCoalesce(_chunkAJVK4XC5js.agentSessionIdFromEnvironment.call(void 0, process.env, agentRuntime), () => ( (agentRuntime === "claude_cowork" || agentRuntime === "claude_code" ? _nullishCoalesce(_optionalChain([_chunkAJVK4XC5js.coworkTranscriptFromEnvironment.call(void 0, ), 'optionalAccess', _17 => _17.sessionId]), () => ( null)) : null)));
170
170
  }
171
171
  function sessionStartedInDirectory(candidate, cwd) {
172
172
  if (candidate.agent === "claude") {
@@ -215,7 +215,7 @@ function readCodexSessionId(filePath) {
215
215
  return null;
216
216
  }
217
217
  function sessionSearchDescription(agent) {
218
- const claude = _chunkV7DEGIYOjs.claudeProjectsRoots.call(void 0, ).map((root) => _path.join.call(void 0, root, "*", "<session-id>.jsonl")).join(", ");
218
+ const claude = _chunkAJVK4XC5js.claudeProjectsRoots.call(void 0, ).map((root) => _path.join.call(void 0, root, "*", "<session-id>.jsonl")).join(", ");
219
219
  if (agent === "claude") return claude;
220
220
  if (agent === "codex") return "~/.codex/sessions/**/*.jsonl";
221
221
  return `${claude} or ~/.codex/sessions/**/*.jsonl`;
@@ -472,7 +472,7 @@ function buildSessionUploadContent(raw) {
472
472
  return { encodedContent: encoded, needsChunking: true };
473
473
  }
474
474
  async function uploadPayload(path, payload) {
475
- const { http } = _chunkLEREPTAEjs.getAuthedHttpClient.call(void 0, );
475
+ const { http } = _chunkVAOGM5VSjs.getAuthedHttpClient.call(void 0, );
476
476
  return await http.post(path, payload);
477
477
  }
478
478
  async function uploadChunkedSessions(sessions, options) {
@@ -550,7 +550,7 @@ async function uploadAgentSession(agentRuntime) {
550
550
  return target.sessionId;
551
551
  }
552
552
  async function handleSessionsSend(options) {
553
- if (_chunk5QL4GJB2js.rejectRestrictedFeedback.call(void 0, options)) return;
553
+ if (_chunkZTJQKHLMjs.rejectRestrictedFeedback.call(void 0, options)) return;
554
554
  const rating = parseSessionRating(options.rating);
555
555
  if (options.file) {
556
556
  const filePath = _path.resolve.call(void 0, options.file);
@@ -562,7 +562,7 @@ async function handleSessionsSend(options) {
562
562
  filename: _path.basename.call(void 0, filePath),
563
563
  ...rating ? { rating } : {}
564
564
  });
565
- _chunkLEREPTAEjs.printCommandEnvelope.call(void 0,
565
+ _chunkVAOGM5VSjs.printCommandEnvelope.call(void 0,
566
566
  {
567
567
  ...response2,
568
568
  ok: true,
@@ -594,7 +594,7 @@ async function handleSessionsSend(options) {
594
594
  labeled: Boolean(_optionalChain([options, 'access', _27 => _27.label, 'optionalAccess', _28 => _28.length]))
595
595
  });
596
596
  const sessionIds = built.map((session) => session.sessionId);
597
- _chunkLEREPTAEjs.printCommandEnvelope.call(void 0,
597
+ _chunkVAOGM5VSjs.printCommandEnvelope.call(void 0,
598
598
  {
599
599
  ...response,
600
600
  ok: true,
@@ -702,7 +702,7 @@ ${refreshMeta}
702
702
  </body>
703
703
  </html>`;
704
704
  _fs.writeFileSync.call(void 0, outputPath, html, "utf8");
705
- _chunkLEREPTAEjs.printCommandEnvelope.call(void 0,
705
+ _chunkVAOGM5VSjs.printCommandEnvelope.call(void 0,
706
706
  {
707
707
  ok: true,
708
708
  file: outputPath,
@@ -0,0 +1,9 @@
1
+ // ../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
+ export {
8
+ PRICING_PAGE_NOTE
9
+ };