deepline 0.3.551 → 0.3.552

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/client-core.ts +23 -0
  2. package/dist/bundling-sources/sdk/src/http-core.ts +6 -2
  3. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  4. package/dist/bundling-sources/sdk/src/runs/watch-polling.ts +58 -29
  5. package/dist/bundling-sources/shared_libs/monitors/package.json +2 -0
  6. package/dist/bundling-sources/shared_libs/monitors/provider-monitor-upstream-identity.ts +80 -13
  7. package/dist/bundling-sources/shared_libs/monitors/tamradar-countries.ts +285 -0
  8. package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +144 -0
  9. package/dist/bundling-sources/shared_libs/play-runtime/context.ts +137 -0
  10. package/dist/bundling-sources/shared_libs/play-runtime/durable-runs-rollout.ts +14 -2
  11. package/dist/bundling-sources/shared_libs/play-runtime/experiment-switches.ts +20 -16
  12. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +47 -14
  13. package/dist/bundling-sources/shared_libs/play-runtime/runtime-api.ts +48 -3
  14. package/dist/bundling-sources/shared_libs/play-runtime/runtime-constants.ts +9 -0
  15. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-rate-state.ts +32 -10
  16. package/dist/bundling-sources/shared_libs/play-runtime/tool-result.ts +37 -7
  17. package/dist/cli/{auth-E7BH4GMJ.mjs → auth-KVSBJZOX.mjs} +5 -5
  18. package/dist/cli/auth-MMNVWATX.js +43 -0
  19. package/dist/cli/{billing-OXKU462W.mjs → billing-54RHFEBI.mjs} +19 -12
  20. package/dist/cli/{billing-DNQAZGX7.js → billing-FQREA7UA.js} +105 -98
  21. package/dist/cli/{chunk-5VVSEU67.js → chunk-3FD5EQ62.js} +6 -6
  22. package/dist/cli/{chunk-WKBHUB6R.js → chunk-45PVGZST.js} +99 -99
  23. package/dist/cli/{chunk-COGREZAO.js → chunk-4MK42735.js} +44 -44
  24. package/dist/cli/{chunk-T2B5BVZE.js → chunk-4NQF6KJ3.js} +13 -13
  25. package/dist/cli/{chunk-V6SCP4B7.mjs → chunk-4TALT2M3.mjs} +1 -1
  26. package/dist/cli/{chunk-C4CUZH57.js → chunk-4UUR4TCH.js} +2 -2
  27. package/dist/cli/{chunk-PM7MO62Y.mjs → chunk-57VZVF5D.mjs} +3 -3
  28. package/dist/cli/{chunk-VTGG2RT3.js → chunk-634ZDA3F.js} +1 -1
  29. package/dist/cli/{chunk-E64HFB4L.mjs → chunk-6O5HOODW.mjs} +11 -11
  30. package/dist/cli/{chunk-GGB3JYCW.mjs → chunk-6PRW5UBA.mjs} +2 -2
  31. package/dist/cli/{chunk-GVYLCCKN.mjs → chunk-6RZOWL2V.mjs} +1 -1
  32. package/dist/cli/{chunk-POLUE7D5.js → chunk-6YCA5NKJ.js} +7 -7
  33. package/dist/cli/{chunk-5LUF4LAR.mjs → chunk-6ZORHRKB.mjs} +1 -0
  34. package/dist/cli/{chunk-PPSDCN6C.js → chunk-77AAAGVB.js} +2 -2
  35. package/dist/cli/{chunk-UDXULACQ.js → chunk-7IKQKKNX.js} +3 -3
  36. package/dist/cli/{chunk-2ZYRBMQM.js → chunk-ADRC5I3R.js} +22 -22
  37. package/dist/cli/{chunk-2UXDHFSF.mjs → chunk-AQWQ2BFX.mjs} +1 -1
  38. package/dist/cli/{chunk-D6M5HFBB.mjs → chunk-AWJPDPMA.mjs} +1 -1
  39. package/dist/cli/{chunk-CLRAANWH.mjs → chunk-AZQ264ID.mjs} +1 -1
  40. package/dist/cli/{chunk-NMWGZD6Y.js → chunk-BAIST2BR.js} +26 -26
  41. package/dist/cli/{chunk-5S6PHKRV.mjs → chunk-DJ2JDK4O.mjs} +1 -1
  42. package/dist/cli/{chunk-MNSTCJMX.mjs → chunk-EOPEYCY7.mjs} +3 -3
  43. package/dist/cli/{chunk-HEHVGEZV.mjs → chunk-EUPVF4SU.mjs} +5 -5
  44. package/dist/cli/{chunk-3G6QZACZ.js → chunk-F2LH7TGF.js} +15 -15
  45. package/dist/cli/{chunk-BIIJATTX.mjs → chunk-FTJLJCE5.mjs} +1 -1
  46. package/dist/cli/{chunk-XYE5XPGF.js → chunk-G4O75EXF.js} +9 -9
  47. package/dist/cli/{chunk-Z2FIOG3V.js → chunk-GKYAYLRI.js} +12 -12
  48. package/dist/cli/{chunk-3KYBDAR3.js → chunk-HO3XK3R7.js} +5 -5
  49. package/dist/cli/{chunk-FOTGUFVK.mjs → chunk-HYC4MKGK.mjs} +2 -2
  50. package/dist/cli/{chunk-44I675YK.js → chunk-IDVVIXPJ.js} +41 -41
  51. package/dist/cli/{chunk-ZCDKE4UH.js → chunk-IHRKLXZN.js} +5 -5
  52. package/dist/cli/{chunk-6PWJKMFQ.mjs → chunk-IYSTRCLX.mjs} +4 -4
  53. package/dist/cli/{chunk-CQ6JYQSW.js → chunk-JWUAX6OP.js} +10 -10
  54. package/dist/cli/{chunk-W2ZWQUHT.js → chunk-MF2GHZDO.js} +2 -2
  55. package/dist/cli/{chunk-LPJPCGT3.js → chunk-PFO3ISXA.js} +26 -15
  56. package/dist/cli/{chunk-W425ERWN.mjs → chunk-PTVD2GVQ.mjs} +5 -5
  57. package/dist/cli/{chunk-5IL7SC45.mjs → chunk-QAORXEY3.mjs} +2 -2
  58. package/dist/cli/{chunk-RE5MJBEV.mjs → chunk-QILKGXYF.mjs} +2 -2
  59. package/dist/cli/{chunk-VWLHRZFG.mjs → chunk-QPKH23EC.mjs} +4 -4
  60. package/dist/cli/{chunk-7DOQ3OEX.mjs → chunk-QX7LFGJR.mjs} +1 -1
  61. package/dist/cli/{chunk-3T65J5RG.mjs → chunk-QY3ZNU6Z.mjs} +2 -2
  62. package/dist/cli/{chunk-PACD5DGC.js → chunk-RBEUVDZF.js} +10 -6
  63. package/dist/cli/{chunk-4OMAGJ6U.js → chunk-RQZQVFCJ.js} +2 -2
  64. package/dist/cli/{chunk-MR5LTVHD.js → chunk-S46HWQKO.js} +53 -53
  65. package/dist/cli/{chunk-44KSACJW.mjs → chunk-S5S355UY.mjs} +2 -2
  66. package/dist/cli/{chunk-QM6Y6S4E.js → chunk-SHLFOPD6.js} +5 -5
  67. package/dist/cli/{chunk-MXGA6JFI.mjs → chunk-U7QRMBIY.mjs} +2 -2
  68. package/dist/cli/{chunk-R7J7CJPZ.js → chunk-V436Z54K.js} +1 -0
  69. package/dist/cli/{chunk-ZDQFBJPO.js → chunk-VQALXEXO.js} +19 -19
  70. package/dist/cli/{chunk-7WQNWJQW.mjs → chunk-WE5HES3H.mjs} +5 -5
  71. package/dist/cli/{chunk-54EEYLTF.js → chunk-WLN3SUIA.js} +3 -3
  72. package/dist/cli/{chunk-7RSIFA72.js → chunk-XVB7V4N7.js} +16 -16
  73. package/dist/cli/{chunk-I4VKGNAQ.mjs → chunk-YJHE3O5M.mjs} +5 -5
  74. package/dist/cli/{chunk-4D3WIZST.mjs → chunk-YLTMXJFC.mjs} +7 -3
  75. package/dist/cli/{chunk-ZMNGZ6XS.mjs → chunk-Z5TSLLOW.mjs} +19 -8
  76. package/dist/cli/{chunk-S7IZWGUA.mjs → chunk-ZIAXDBXX.mjs} +2 -2
  77. package/dist/cli/command-docs.js +3 -3
  78. package/dist/cli/command-docs.mjs +2 -2
  79. package/dist/cli/concurrent-runs-help-FQAIHKKC.js +21 -0
  80. package/dist/cli/{concurrent-runs-help-C6L6I5OR.mjs → concurrent-runs-help-Q4KPAUJX.mjs} +6 -6
  81. package/dist/cli/{csv-SYSDXFEM.mjs → csv-2PTVDNO6.mjs} +4 -4
  82. package/dist/cli/{csv-QMF4FWE7.js → csv-F5VAGX4K.js} +13 -13
  83. package/dist/cli/{db-Q7HURWRZ.mjs → db-IEDXAUF7.mjs} +6 -6
  84. package/dist/cli/{db-YSHPPA4H.js → db-Z3OIUFMM.js} +27 -27
  85. package/dist/cli/{describe-YGMQBV44.mjs → describe-QDANCTS3.mjs} +18 -18
  86. package/dist/cli/describe-VUTT5ZKU.js +50 -0
  87. package/dist/cli/describe-core.d.mts +2 -2
  88. package/dist/cli/describe-core.d.ts +2 -2
  89. package/dist/cli/{executions-MWBC5TAW.js → executions-H6H5655J.js} +8 -8
  90. package/dist/cli/{executions-G7U3VUXN.mjs → executions-R3LP74QN.mjs} +6 -6
  91. package/dist/cli/{feedback-SD55OY6H.js → feedback-VFOUR66B.js} +14 -14
  92. package/dist/cli/{feedback-GMHIFLBJ.mjs → feedback-WL3MRVT5.mjs} +6 -6
  93. package/dist/cli/git-ETB3GH3K.js +25 -0
  94. package/dist/cli/{git-HPE45OPD.mjs → git-YX2J4GCI.mjs} +5 -5
  95. package/dist/cli/index.js +147 -147
  96. package/dist/cli/index.mjs +46 -46
  97. package/dist/cli/{integrations-2W4MGIQR.mjs → integrations-5ZK5KLVP.mjs} +7 -7
  98. package/dist/cli/{integrations-HFKVBY6G.js → integrations-E2JZYKHS.js} +15 -15
  99. package/dist/cli/{legacy-noops-SXVNDEXN.js → legacy-noops-3VW4IJTH.js} +9 -9
  100. package/dist/cli/{legacy-noops-GZYKNU2Z.mjs → legacy-noops-SMN3GSXY.mjs} +6 -6
  101. package/dist/cli/{mcp-PJRHQHHU.js → mcp-UQV2K4EW.js} +24 -24
  102. package/dist/cli/{mcp-BWA6KULG.mjs → mcp-V6MGCYAG.mjs} +4 -4
  103. package/dist/cli/{monitors-SYQKCATO.mjs → monitors-GGKS5W6M.mjs} +7 -7
  104. package/dist/cli/{monitors-K2WSI6CR.js → monitors-R3BBDCRC.js} +100 -100
  105. package/dist/cli/{org-YQ2CR32B.js → org-GRYVMNSW.js} +88 -88
  106. package/dist/cli/{org-5KD7X7IA.mjs → org-Z37NGJV4.mjs} +6 -6
  107. package/dist/cli/{play-SZXY2F2S.js → play-2MVO27VO.js} +319 -319
  108. package/dist/cli/{play-TTMABJEI.mjs → play-MDWPR4XG.mjs} +18 -18
  109. package/dist/cli/{providers-YDHCTZAF.js → providers-2AACRUZH.js} +9 -9
  110. package/dist/cli/{providers-GQIOMRQO.mjs → providers-AKDYFZJZ.mjs} +6 -6
  111. package/dist/cli/{quickstart-BNYOXQXG.js → quickstart-H6IV3PV3.js} +6 -6
  112. package/dist/cli/{quickstart-PHSSMKCA.mjs → quickstart-QDGRJFZY.mjs} +4 -4
  113. package/dist/cli/{run-GFIAZXVL.js → run-2634REDK.js} +43 -43
  114. package/dist/cli/{run-74C3C75C.mjs → run-RTSQNGRD.mjs} +23 -23
  115. package/dist/cli/{search-3SWUB7KX.mjs → search-6AOJ4XPP.mjs} +7 -7
  116. package/dist/cli/search-VTW2YNBS.js +32 -0
  117. package/dist/cli/{search-output-K2SWHVHQ.mjs → search-output-6ADMTOU5.mjs} +4 -4
  118. package/dist/cli/{search-output-6JF3S4TP.js → search-output-S5ODBL5E.js} +6 -6
  119. package/dist/cli/{secrets-2SAKLH2H.js → secrets-LHCIIHMT.js} +15 -15
  120. package/dist/cli/{secrets-2M4XWEKE.mjs → secrets-TFIFBFB3.mjs} +6 -6
  121. package/dist/cli/sessions-CJ4FJ2WB.js +22 -0
  122. package/dist/cli/{sessions-A64BCXTO.mjs → sessions-WHBVUHVW.mjs} +6 -6
  123. package/dist/cli/{settings-HV64WIJF.js → settings-CP4FVK2W.js} +85 -85
  124. package/dist/cli/{settings-SVGEC3FI.mjs → settings-EBONWL5C.mjs} +12 -12
  125. package/dist/cli/{setup-EDC3NEJ3.mjs → setup-I5AZE3IU.mjs} +9 -9
  126. package/dist/cli/{setup-FHXOLQGQ.js → setup-LFGHTNLQ.js} +49 -49
  127. package/dist/cli/skills-R7EBXREW.js +36 -0
  128. package/dist/cli/{skills-3HGHZMXB.mjs → skills-W76AO5XE.mjs} +7 -7
  129. package/dist/cli/{tools-P2QS6A6Q.mjs → tools-7IJHGF6W.mjs} +17 -17
  130. package/dist/cli/tools-V7U2BDXM.js +57 -0
  131. package/dist/cli/update-4COPZETK.js +34 -0
  132. package/dist/cli/{update-552BYQM4.mjs → update-GFOPZTHY.mjs} +9 -9
  133. package/dist/cli/{views-PA25NAE3.js → views-BPL2TQJ4.js} +21 -21
  134. package/dist/cli/{views-LD5HXJYY.mjs → views-D4NX4SBG.mjs} +6 -6
  135. package/dist/cli/{workflow-LDYFGBYP.mjs → workflow-YXP42FUI.mjs} +7 -7
  136. package/dist/cli/{workflow-FIDBUQV6.js → workflow-ZYNAUCKC.js} +17 -17
  137. package/dist/{client-t9HZAkFD.d.ts → client-Bf3IpUKN.d.ts} +1 -1
  138. package/dist/{client-DuDFiJDU.d.mts → client-CyXGrO4D.d.mts} +1 -1
  139. package/dist/{client-core-CJRzLanv.d.ts → client-core-BWd0lX0Z.d.ts} +17 -0
  140. package/dist/{client-core-DydMQOft.d.mts → client-core-BxsLnXlm.d.mts} +17 -0
  141. package/dist/index.d.mts +3 -3
  142. package/dist/index.d.ts +3 -3
  143. package/dist/index.js +9 -9
  144. package/dist/index.mjs +6 -6
  145. package/dist/install-integrity.json +119 -118
  146. package/dist/plays/play-description.d.mts +1 -1
  147. package/dist/plays/play-description.d.ts +1 -1
  148. package/dist/plays/run-request.d.mts +1 -1
  149. package/dist/plays/run-request.d.ts +1 -1
  150. package/dist/release.d.mts +1 -1
  151. package/dist/release.d.ts +1 -1
  152. package/dist/release.js +2 -2
  153. package/dist/release.mjs +1 -1
  154. package/dist/server.d.mts +2 -2
  155. package/dist/server.d.ts +2 -2
  156. package/dist/server.js +5 -5
  157. package/dist/server.mjs +3 -3
  158. package/package.json +1 -1
  159. package/dist/cli/auth-B4PI7GVY.js +0 -43
  160. package/dist/cli/concurrent-runs-help-JEFQZTJI.js +0 -21
  161. package/dist/cli/describe-PXTSBJTL.js +0 -50
  162. package/dist/cli/git-I3JV7IGH.js +0 -25
  163. package/dist/cli/search-2RRRF4LW.js +0 -32
  164. package/dist/cli/sessions-SBH27JNW.js +0 -22
  165. package/dist/cli/skills-Y3SRLOYD.js +0 -36
  166. package/dist/cli/tools-OFYPUPUV.js +0 -57
  167. package/dist/cli/update-SOUSCLB7.js +0 -34
@@ -1907,7 +1907,8 @@ async function acquireWithConcurrency(
1907
1907
  requested: number,
1908
1908
  ): Promise<InternalAcquireOutcome> {
1909
1909
  let probeBaselineSupported = true;
1910
- if (rateStateCollapsedAcquireEnabled()) {
1910
+ const requesterId = normalizeRequesterId(input);
1911
+ if (rateStateCollapsedAcquireEnabled(requesterId)) {
1911
1912
  while (true) {
1912
1913
  try {
1913
1914
  return await collapsedGrantWithConcurrency(
@@ -1933,7 +1934,7 @@ async function acquireWithConcurrency(
1933
1934
  while (true) {
1934
1935
  const lockSql = `SELECT bucket_id FROM ${scopeHoldTableName(input)}
1935
1936
  WHERE bucket_id = $1 FOR UPDATE`;
1936
- const singleTripOpening = rateStateSingleTripEnabled()
1937
+ const singleTripOpening = rateStateSingleTripEnabled(requesterId)
1937
1938
  ? renderRateStateStatementForSingleTrip(lockSql, [input.bucketId])
1938
1939
  : null;
1939
1940
  if (singleTripOpening === null) {
@@ -2023,7 +2024,7 @@ async function collapsedGrantWithConcurrency(
2023
2024
  const grant = renderRateStateStatementForSingleTrip(
2024
2025
  sql,
2025
2026
  parameters,
2026
- rateStateRenderOptions(),
2027
+ rateStateRenderOptions(normalizeRequesterId(input)),
2027
2028
  );
2028
2029
  if (grant === null) {
2029
2030
  open = true;
@@ -2243,10 +2244,27 @@ function rateStateArrayParameterText(
2243
2244
  return `{${elements.join(',')}}`;
2244
2245
  }
2245
2246
 
2246
- function rateStateCollapsedAcquireEnabled(): boolean {
2247
+ /**
2248
+ * Whether this acquire's requester is an organization listed in
2249
+ * `rateStateOneRequestOrgIds`. A call with no requester, or a run-only
2250
+ * requester, is never listed.
2251
+ */
2252
+ function rateStateOneRequestOrgListed(
2253
+ requesterId: string | null | undefined,
2254
+ ): boolean {
2255
+ if (!requesterId?.startsWith('org:')) return false;
2256
+ const orgIds: readonly string[] =
2257
+ DURABLE_RUNS_ROLLOUT.rateStateOneRequestOrgIds;
2258
+ return orgIds.includes(requesterId.slice('org:'.length));
2259
+ }
2260
+
2261
+ function rateStateCollapsedAcquireEnabled(
2262
+ requesterId: string | null = null,
2263
+ ): boolean {
2247
2264
  const enabled: boolean =
2248
- DURABLE_RUNS_ROLLOUT.rateStateCollapsedAcquire &&
2249
- DURABLE_RUNS_ROLLOUT.rateStateSingleTripTransactions;
2265
+ (DURABLE_RUNS_ROLLOUT.rateStateCollapsedAcquire &&
2266
+ DURABLE_RUNS_ROLLOUT.rateStateSingleTripTransactions) ||
2267
+ rateStateOneRequestOrgListed(requesterId);
2250
2268
  return enabled;
2251
2269
  }
2252
2270
 
@@ -2255,17 +2273,21 @@ function rateStateCollapsedAcquireEnabled(): boolean {
2255
2273
  * rate-state statement binds the bucket id (text) as `$1`; it is compared with
2256
2274
  * and written to text columns only, so its uses may stay uncast.
2257
2275
  */
2258
- function rateStateRenderOptions(): {
2276
+ function rateStateRenderOptions(requesterId: string | null = null): {
2259
2277
  arrays?: boolean;
2260
2278
  textParameters?: readonly number[];
2261
2279
  } {
2262
- return rateStateCollapsedAcquireEnabled()
2280
+ return rateStateCollapsedAcquireEnabled(requesterId)
2263
2281
  ? { arrays: true, textParameters: [1] }
2264
2282
  : {};
2265
2283
  }
2266
2284
 
2267
- function rateStateSingleTripEnabled(): boolean {
2268
- const enabled: boolean = DURABLE_RUNS_ROLLOUT.rateStateSingleTripTransactions;
2285
+ function rateStateSingleTripEnabled(
2286
+ requesterId: string | null = null,
2287
+ ): boolean {
2288
+ const enabled: boolean =
2289
+ DURABLE_RUNS_ROLLOUT.rateStateSingleTripTransactions ||
2290
+ rateStateOneRequestOrgListed(requesterId);
2269
2291
  return enabled;
2270
2292
  }
2271
2293
 
@@ -2048,8 +2048,7 @@ export function docflowToolResultPreviewProjection(value: unknown): unknown {
2048
2048
  let outputs: string[];
2049
2049
  try {
2050
2050
  if (!isToolExecuteResult(value)) return value;
2051
- const extractors = (value._metadata as { extractors?: unknown })
2052
- .extractors;
2051
+ const extractors = (value._metadata as { extractors?: unknown }).extractors;
2053
2052
  outputs = isRecord(extractors) ? Object.keys(extractors) : [];
2054
2053
  } catch {
2055
2054
  return value;
@@ -2460,10 +2459,11 @@ function rawWithSerializedListRows(input: {
2460
2459
 
2461
2460
  let root: unknown = { toolResponse: { raw: input.raw } };
2462
2461
  for (const [name, rows] of Object.entries(input.listRows)) {
2463
- const sourcePath =
2464
- input.listDatasets?.[name]?.sourceLabel ??
2465
- input.lists[name]?.path ??
2466
- name;
2462
+ const sourcePath = serializedListPath(
2463
+ root,
2464
+ [input.listDatasets?.[name]?.sourceLabel, input.lists[name]?.path],
2465
+ name,
2466
+ );
2467
2467
  const candidates = [...candidateResultPaths(sourcePath)].filter(
2468
2468
  (candidate, index, all) => all.indexOf(candidate) === index,
2469
2469
  );
@@ -2485,6 +2485,32 @@ function rawWithSerializedListRows(input: {
2485
2485
  : input.raw;
2486
2486
  }
2487
2487
 
2488
+ /**
2489
+ * A serialized dataset's sourceLabel is usually its list path, but query
2490
+ * datasets label themselves for display ('query result rows'). Use the first
2491
+ * candidate (then the list name) that addresses an array in the response, so
2492
+ * the complete rows land on the list path readList selects instead of leaving
2493
+ * its preview there.
2494
+ */
2495
+ function serializedListPath(
2496
+ root: unknown,
2497
+ paths: ReadonlyArray<string | null | undefined>,
2498
+ name: string,
2499
+ ): string {
2500
+ const named = paths.filter(
2501
+ (path): path is string => typeof path === 'string' && path.length > 0,
2502
+ );
2503
+ return (
2504
+ [...named, name].find((path) =>
2505
+ candidateResultPaths(path).some((candidate) =>
2506
+ Array.isArray(getAtPath(root, candidate)),
2507
+ ),
2508
+ ) ??
2509
+ named[0] ??
2510
+ name
2511
+ );
2512
+ }
2513
+
2488
2514
  function createDatasetFromSerializedToolList(
2489
2515
  serialized: SerializedPlayDataset<Record<string, unknown>>,
2490
2516
  rows?: Array<Record<string, unknown>>,
@@ -2578,7 +2604,11 @@ function applySerializedListDatasets(
2578
2604
  createDatasetFromSerializedToolList(serialized, listRows?.[name]);
2579
2605
  const existingMetadata = result._metadata.lists[name];
2580
2606
  result._metadata.lists[name] = {
2581
- path: serialized.sourceLabel ?? existingMetadata?.path ?? name,
2607
+ path: serializedListPath(
2608
+ { toolResponse: { raw: result.toolResponse.raw } },
2609
+ [serialized.sourceLabel, existingMetadata?.path],
2610
+ name,
2611
+ ),
2582
2612
  count: serialized.count,
2583
2613
  keys: existingMetadata?.keys ?? {},
2584
2614
  };
@@ -14,14 +14,14 @@ import {
14
14
  reportSetupCompleted,
15
15
  resolvePendingAuthClaimForResume,
16
16
  statusBannerLine
17
- } from "./chunk-MNSTCJMX.mjs";
18
- import "./chunk-GGB3JYCW.mjs";
19
- import "./chunk-V6SCP4B7.mjs";
20
- import "./chunk-4D3WIZST.mjs";
17
+ } from "./chunk-EOPEYCY7.mjs";
18
+ import "./chunk-6PRW5UBA.mjs";
19
+ import "./chunk-4TALT2M3.mjs";
20
+ import "./chunk-YLTMXJFC.mjs";
21
21
  import "./chunk-NURW5XH4.mjs";
22
22
  import "./chunk-DLIRSHV6.mjs";
23
23
  import "./chunk-JL2OTMSG.mjs";
24
- import "./chunk-2UXDHFSF.mjs";
24
+ import "./chunk-AQWQ2BFX.mjs";
25
25
  import "./chunk-WZYKRD7T.mjs";
26
26
  import "./chunk-KRD6H754.mjs";
27
27
  export {
@@ -0,0 +1,43 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+
5
+
6
+
7
+
8
+
9
+
10
+
11
+
12
+
13
+
14
+
15
+
16
+
17
+ var _chunkS46HWQKOjs = require('./chunk-S46HWQKO.js');
18
+ require('./chunk-VQALXEXO.js');
19
+ require('./chunk-7IKQKKNX.js');
20
+ require('./chunk-RBEUVDZF.js');
21
+ require('./chunk-EITMD3A5.js');
22
+ require('./chunk-XNYIZMNQ.js');
23
+ require('./chunk-BBTKAASQ.js');
24
+ require('./chunk-634ZDA3F.js');
25
+ require('./chunk-OG64RBAC.js');
26
+ require('./chunk-COGTRVWW.js');
27
+
28
+
29
+
30
+
31
+
32
+
33
+
34
+
35
+
36
+
37
+
38
+
39
+
40
+
41
+
42
+
43
+ exports.EXIT_WORKSPACE_MISMATCH = _chunkS46HWQKOjs.EXIT_WORKSPACE_MISMATCH; exports.authStatusLine = _chunkS46HWQKOjs.authStatusLine; exports.clearPendingClaim = _chunkS46HWQKOjs.clearPendingClaim; exports.clearSatisfiedPendingClaim = _chunkS46HWQKOjs.clearSatisfiedPendingClaim; exports.handleRegister = _chunkS46HWQKOjs.handleRegister; exports.handleStatus = _chunkS46HWQKOjs.handleStatus; exports.handleWait = _chunkS46HWQKOjs.handleWait; exports.httpJson = _chunkS46HWQKOjs.httpJson; exports.readPendingAuthClaim = _chunkS46HWQKOjs.readPendingAuthClaim; exports.readStatusBanner = _chunkS46HWQKOjs.readStatusBanner; exports.registerAuthCommands = _chunkS46HWQKOjs.registerAuthCommands; exports.reportApprovalLinkShown = _chunkS46HWQKOjs.reportApprovalLinkShown; exports.reportSetupCompleted = _chunkS46HWQKOjs.reportSetupCompleted; exports.resolvePendingAuthClaimForResume = _chunkS46HWQKOjs.resolvePendingAuthClaimForResume; exports.statusBannerLine = _chunkS46HWQKOjs.statusBannerLine;
@@ -1,25 +1,25 @@
1
1
  import {
2
2
  concurrentRunsLine
3
- } from "./chunk-FOTGUFVK.mjs";
4
- import "./chunk-MNSTCJMX.mjs";
3
+ } from "./chunk-HYC4MKGK.mjs";
4
+ import "./chunk-EOPEYCY7.mjs";
5
5
  import {
6
6
  DeeplineClient
7
- } from "./chunk-3T65J5RG.mjs";
7
+ } from "./chunk-QY3ZNU6Z.mjs";
8
8
  import {
9
9
  iterateCursorPages,
10
10
  requireBillingIdempotencyKey
11
- } from "./chunk-ZMNGZ6XS.mjs";
11
+ } from "./chunk-Z5TSLLOW.mjs";
12
12
  import "./chunk-FZHMNK6F.mjs";
13
13
  import "./chunk-LX35AXTN.mjs";
14
14
  import "./chunk-PSX3WHIH.mjs";
15
15
  import "./chunk-UBKA33KY.mjs";
16
16
  import {
17
17
  PLAY_RUNTIME_PRICING_NOTE
18
- } from "./chunk-7DOQ3OEX.mjs";
18
+ } from "./chunk-QX7LFGJR.mjs";
19
19
  import {
20
20
  PRICING_PAGE_NOTE
21
21
  } from "./chunk-2RIKOPIM.mjs";
22
- import "./chunk-5LUF4LAR.mjs";
22
+ import "./chunk-6ZORHRKB.mjs";
23
23
  import {
24
24
  PLAY_SANDBOX_SIZE_INPUTS
25
25
  } from "./chunk-7I4B6V2S.mjs";
@@ -29,9 +29,9 @@ import {
29
29
  openInBrowser,
30
30
  printCommandEnvelope,
31
31
  shouldEmitJson
32
- } from "./chunk-GGB3JYCW.mjs";
33
- import "./chunk-V6SCP4B7.mjs";
34
- import "./chunk-4D3WIZST.mjs";
32
+ } from "./chunk-6PRW5UBA.mjs";
33
+ import "./chunk-4TALT2M3.mjs";
34
+ import "./chunk-YLTMXJFC.mjs";
35
35
  import {
36
36
  AuthError,
37
37
  ConfigError
@@ -40,7 +40,7 @@ import "./chunk-DLIRSHV6.mjs";
40
40
  import {
41
41
  DeeplineError
42
42
  } from "./chunk-JL2OTMSG.mjs";
43
- import "./chunk-2UXDHFSF.mjs";
43
+ import "./chunk-AQWQ2BFX.mjs";
44
44
  import "./chunk-WZYKRD7T.mjs";
45
45
  import "./chunk-KRD6H754.mjs";
46
46
 
@@ -798,7 +798,8 @@ function planPriceText(priceUsd, priceInterval) {
798
798
  function targetPlanLine(plan) {
799
799
  const firstMonth = plan.first_month_price_usd != null ? ` (first month $${plan.first_month_price_usd})` : "";
800
800
  const bonus = plan.bonus_credits != null ? ` (+${plan.bonus_credits} bonus credits once paid)` : "";
801
- return `${plan.display_name ?? plan.name} (${plan.sku}) | ${planPriceText(plan.recurring_price_usd, plan.interval)}${firstMonth}${bonus} | ${plan.included_credits} included credits/month | $${plan.purchased_credit_price_usd}/purchased credit | ${plan.acquisition_enabled ? "available" : "unavailable"}`;
801
+ const annual = plan.annual_price_usd != null ? ` (or $${plan.annual_price_usd}/year with --annual${plan.annual_offer_label ? `, ${plan.annual_offer_label}` : ""})` : "";
802
+ return `${plan.display_name ?? plan.name} (${plan.sku}) | ${planPriceText(plan.recurring_price_usd, plan.interval)}${firstMonth}${bonus}${annual} | ${plan.included_credits} included credits/month | $${plan.purchased_credit_price_usd}/purchased credit | ${plan.acquisition_enabled ? "available" : "unavailable"}`;
802
803
  }
803
804
  async function handlePlans(options) {
804
805
  const client = new DeeplineClient();
@@ -1674,6 +1675,7 @@ async function handleTargetPlan(planSku, options) {
1674
1675
  targetPlanSku: planSku,
1675
1676
  ...options.billingEmail ? { billingEmail: options.billingEmail } : {},
1676
1677
  ...options.promoCode ? { promoCode: options.promoCode } : {},
1678
+ ...options.annual ? { billingInterval: "year" } : {},
1677
1679
  idempotencyKey
1678
1680
  });
1679
1681
  printCommandEnvelope(
@@ -2091,6 +2093,9 @@ Examples:
2091
2093
  ).option(
2092
2094
  "--promo-code <code>",
2093
2095
  "Plan promo code; an unknown, expired, or used code refuses the change"
2096
+ ).option(
2097
+ "--annual",
2098
+ "Pay for a year up front where `billing plans` shows an annual price; credits stay monthly and a cancellation takes effect at the end of the paid year"
2094
2099
  ).option("--idempotency-key <key>", "Stable retry key").option("--json", "Emit JSON output").action(handleTargetPlan);
2095
2100
  billing.command("cancel-plan").description("Cancel a target subscription at period end, or undo it.").option("--undo", "Undo a pending period-end cancellation").option("--idempotency-key <key>", "Stable retry key").option("--json", "Emit JSON output").action(handleTargetPlanCancellation);
2096
2101
  billing.command("portal").description("Open the Stripe-hosted billing recovery portal.").option("--billing-address", "Open the billing address editor directly").option("--no-open", "Print the URL without opening a browser").option("--json", "Emit JSON output").action(handleTargetPortal);
@@ -2103,7 +2108,9 @@ Notes:
2103
2108
  and current acquisition availability. All amounts are Deepline credits and
2104
2109
  Deepline-facing USD, never raw provider spend. Change to an available plan
2105
2110
  with: deepline billing change-plan <plan_sku>. A first-month price or bonus
2106
- credits appear on a plan when the workspace is offered them. With
2111
+ credits appear on a plan when the workspace is offered them. An annual
2112
+ price appears when the workspace may pay for a year up front; buy it with
2113
+ change-plan <plan_sku> --annual. With
2107
2114
  --promo-code, prices are quoted with that code and its outcome is shown;
2108
2115
  pass the same code to change-plan.
2109
2116