deepline 0.3.534 → 0.3.535

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 (166) hide show
  1. package/dist/bundling-sources/sdk/src/client-core.ts +22 -0
  2. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  3. package/dist/bundling-sources/shared_libs/play-runtime/call-requeue-state-machine.ts +420 -0
  4. package/dist/bundling-sources/shared_libs/play-runtime/context.ts +658 -25
  5. package/dist/bundling-sources/shared_libs/play-runtime/ctx-types.ts +26 -0
  6. package/dist/bundling-sources/shared_libs/play-runtime/durable-retry-policy.ts +624 -0
  7. package/dist/bundling-sources/shared_libs/play-runtime/governor/governor.ts +51 -1
  8. package/dist/bundling-sources/shared_libs/play-runtime/map-memory-limits.ts +245 -1
  9. package/dist/bundling-sources/shared_libs/play-runtime/output-size-limits.ts +21 -0
  10. package/dist/bundling-sources/shared_libs/play-runtime/provider-no-progress.ts +6 -2
  11. package/dist/bundling-sources/shared_libs/play-runtime/resource-governor.ts +10 -0
  12. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/runtime-tool-hooks.ts +55 -0
  13. package/dist/bundling-sources/shared_libs/play-runtime/tool-execute-retry-policy.ts +6 -0
  14. package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +101 -0
  15. package/dist/bundling-sources/shared_libs/plays/share/static-pipeline-summary.ts +63 -13
  16. package/dist/cli/auth-VDCU3T6A.js +43 -0
  17. package/dist/cli/{auth-MHQYIMVX.mjs → auth-ZCTMB5RA.mjs} +5 -5
  18. package/dist/cli/{billing-YQLNP4S5.js → billing-GVFKZQH3.js} +82 -82
  19. package/dist/cli/{billing-LX2PSBJ4.mjs → billing-OU2ZHL72.mjs} +7 -7
  20. package/dist/cli/{chunk-MQX363YF.js → chunk-243O3FH5.js} +5 -5
  21. package/dist/cli/{chunk-MYSKWJMA.js → chunk-2D6SWQTK.js} +13 -13
  22. package/dist/cli/{chunk-NDFNBJGL.js → chunk-4NLRWKZB.js} +26 -26
  23. package/dist/cli/{chunk-5LZ5VSOK.mjs → chunk-4QELPWUW.mjs} +2 -2
  24. package/dist/cli/{chunk-GTXSUPCJ.js → chunk-5EKNDNFQ.js} +2 -2
  25. package/dist/cli/{chunk-V7SCRUFQ.js → chunk-6LHX33VN.js} +6 -6
  26. package/dist/cli/{chunk-ENCA6O2D.mjs → chunk-6TYRRNXY.mjs} +2 -2
  27. package/dist/cli/{chunk-AK622KIG.mjs → chunk-7CWSAEYS.mjs} +1 -1
  28. package/dist/cli/{chunk-DZS4JC7I.js → chunk-7PXP2FQK.js} +2 -2
  29. package/dist/cli/{chunk-KJVY7V2X.mjs → chunk-7R5DAANG.mjs} +1 -1
  30. package/dist/cli/{chunk-6IFZPEJE.mjs → chunk-AUEUAPVS.mjs} +1 -1
  31. package/dist/cli/{chunk-XRZJKHUA.mjs → chunk-BF65LB7X.mjs} +3 -3
  32. package/dist/cli/{chunk-B2AS3R5W.js → chunk-CIDATNTY.js} +16 -16
  33. package/dist/cli/{chunk-UWNVFAFN.js → chunk-D4MHCCIR.js} +4 -4
  34. package/dist/cli/{chunk-GVGQ6NZW.js → chunk-DAPKLYST.js} +41 -41
  35. package/dist/cli/{chunk-BDWZBMGV.mjs → chunk-DFJODFMC.mjs} +5 -5
  36. package/dist/cli/{chunk-7GFR5Y4J.mjs → chunk-DWPY6ZID.mjs} +1 -1
  37. package/dist/cli/{chunk-KSA2XE4T.js → chunk-DYIWDUY4.js} +104 -104
  38. package/dist/cli/{chunk-5FXMEEF4.mjs → chunk-E3CLOVG5.mjs} +17 -5
  39. package/dist/cli/{chunk-DGKTHWWH.js → chunk-FGN75ZN6.js} +23 -7
  40. package/dist/cli/{chunk-MG6YL4M7.mjs → chunk-FZKPPB5P.mjs} +17 -1
  41. package/dist/cli/{chunk-2P3NVX65.mjs → chunk-G2DLG32W.mjs} +10 -10
  42. package/dist/cli/{chunk-O53LHONF.mjs → chunk-H6SWS5CG.mjs} +2 -2
  43. package/dist/cli/{chunk-XBK6WCVA.js → chunk-HWPOXCCK.js} +3 -3
  44. package/dist/cli/{chunk-HCD36BP6.js → chunk-HYBZWSSH.js} +44 -44
  45. package/dist/cli/{chunk-BXIUZM5N.mjs → chunk-J75DANZY.mjs} +2 -2
  46. package/dist/cli/{chunk-KXQCUX3X.mjs → chunk-JQQG4QL4.mjs} +3 -3
  47. package/dist/cli/{chunk-62SOZ67Y.mjs → chunk-JWWYLGUT.mjs} +2 -2
  48. package/dist/cli/{chunk-IX45S5VC.js → chunk-K3IPGMGP.js} +11 -11
  49. package/dist/cli/{chunk-OMVVHX4U.mjs → chunk-K53NKWZO.mjs} +5 -5
  50. package/dist/cli/{chunk-WR4WETRU.mjs → chunk-K76AEBFY.mjs} +4 -4
  51. package/dist/cli/{chunk-HPJAE6PP.js → chunk-KA6ZERJL.js} +6 -6
  52. package/dist/cli/{chunk-MQORQ7WL.js → chunk-KOZBZPRM.js} +53 -53
  53. package/dist/cli/{chunk-EGTUOYYG.js → chunk-KWGXHPHL.js} +7 -7
  54. package/dist/cli/{chunk-WDNRPZED.mjs → chunk-LVISZFYO.mjs} +2 -2
  55. package/dist/cli/{chunk-TVINIDHB.js → chunk-OM732MGV.js} +9 -9
  56. package/dist/cli/{chunk-JBBJDFUJ.js → chunk-PHLNYBAA.js} +5 -5
  57. package/dist/cli/{chunk-RH3YRMUY.js → chunk-PI5R65OQ.js} +1 -1
  58. package/dist/cli/{chunk-NNAE7E23.mjs → chunk-QYBAHYP4.mjs} +6 -6
  59. package/dist/cli/{chunk-TQH3533L.mjs → chunk-R2KKEHJN.mjs} +5 -5
  60. package/dist/cli/{chunk-6CEUQYMB.js → chunk-RFQWSH6I.js} +3 -3
  61. package/dist/cli/{chunk-TG2UB3A5.mjs → chunk-RKY4LBX3.mjs} +1 -1
  62. package/dist/cli/{chunk-D3J2Y2BP.js → chunk-T7RBM2WX.js} +14 -14
  63. package/dist/cli/{chunk-DQ5ADV2J.mjs → chunk-TCVCFZP6.mjs} +1 -1
  64. package/dist/cli/{chunk-LGRZCHKC.js → chunk-UUQ2OXMH.js} +16 -16
  65. package/dist/cli/{chunk-E7TP25I2.mjs → chunk-W5YJYU4G.mjs} +1 -1
  66. package/dist/cli/{chunk-VAG5YKP6.mjs → chunk-W6T23EUC.mjs} +1 -1
  67. package/dist/cli/{chunk-EYXUAJAU.mjs → chunk-WAIBM6KX.mjs} +5 -5
  68. package/dist/cli/{chunk-VE7ZPLN2.js → chunk-WNNA4L6Z.js} +22 -22
  69. package/dist/cli/{chunk-SUWTLXCV.js → chunk-XSOTEVOB.js} +17 -5
  70. package/dist/cli/{chunk-6GTGWZJG.mjs → chunk-YFZLZNTH.mjs} +2 -2
  71. package/dist/cli/{chunk-A6HNT4EE.js → chunk-ZUVE63Y7.js} +2 -2
  72. package/dist/cli/command-docs.js +2 -2
  73. package/dist/cli/command-docs.mjs +1 -1
  74. package/dist/cli/{csv-U3M2G76R.js → csv-CD55KEIO.js} +13 -13
  75. package/dist/cli/{csv-4ID4E5W3.mjs → csv-CLPVMIRF.mjs} +4 -4
  76. package/dist/cli/{db-LHX5BBCZ.mjs → db-AU4SMWUN.mjs} +6 -6
  77. package/dist/cli/{db-IHAQIKEQ.js → db-MQKLDAEO.js} +27 -27
  78. package/dist/cli/describe-5BFNHT5V.js +50 -0
  79. package/dist/cli/{describe-CI4MREFF.mjs → describe-AWJUXE2U.mjs} +18 -18
  80. package/dist/cli/describe-core.d.mts +3 -3
  81. package/dist/cli/describe-core.d.ts +3 -3
  82. package/dist/cli/{executions-CJ5LV23G.js → executions-77GOLWRM.js} +8 -8
  83. package/dist/cli/{executions-UJ6JZUL5.mjs → executions-TFIJPUX7.mjs} +6 -6
  84. package/dist/cli/{feedback-YGTPJBRJ.mjs → feedback-2WRSZ5WL.mjs} +6 -6
  85. package/dist/cli/{feedback-TGUBVGRP.js → feedback-OV5YAL3A.js} +14 -14
  86. package/dist/cli/git-HGMX52XU.js +25 -0
  87. package/dist/cli/{git-3DOTQHJO.mjs → git-VNS4ATLZ.mjs} +5 -5
  88. package/dist/cli/index.js +145 -145
  89. package/dist/cli/index.mjs +44 -44
  90. package/dist/cli/{legacy-noops-RBBYRVLG.mjs → legacy-noops-C732QDCY.mjs} +6 -6
  91. package/dist/cli/{legacy-noops-BHEHVFHI.js → legacy-noops-HDOB5C6F.js} +9 -9
  92. package/dist/cli/{monitors-5AJCG6IV.mjs → monitors-2LYEFXOU.mjs} +7 -7
  93. package/dist/cli/{monitors-XECKLAXA.js → monitors-5IUMHH3E.js} +100 -100
  94. package/dist/cli/{org-DOBAIYWG.js → org-ADW2EVAC.js} +86 -86
  95. package/dist/cli/{org-ZAAIEZKB.mjs → org-G4YGZPHS.mjs} +6 -6
  96. package/dist/cli/{pages-FUOSF6BE.mjs → pages-KXKWSCEV.mjs} +6 -6
  97. package/dist/cli/{pages-TLC2N6L7.js → pages-VTJGAI2D.js} +18 -18
  98. package/dist/cli/{play-KLYRMQPF.mjs → play-7GQ56C2D.mjs} +69 -22
  99. package/dist/cli/{play-E74VN6B7.js → play-EHSOSSHT.js} +367 -320
  100. package/dist/cli/{providers-APZ6SOSK.js → providers-PWCF6OOO.js} +9 -9
  101. package/dist/cli/{providers-XTQXV5LB.mjs → providers-WL3YTCSV.mjs} +6 -6
  102. package/dist/cli/{quickstart-X7RHHQCH.mjs → quickstart-323XOPGI.mjs} +4 -4
  103. package/dist/cli/{quickstart-S6WN6NWW.js → quickstart-ZKI5MURA.js} +6 -6
  104. package/dist/cli/{run-3YLIJJ57.js → run-XZPWA6JS.js} +41 -41
  105. package/dist/cli/{run-TZPBBSPX.mjs → run-ZCNZU3K2.mjs} +23 -23
  106. package/dist/cli/{search-VLHE2CMZ.mjs → search-CVLVSFMJ.mjs} +8 -8
  107. package/dist/cli/search-J6EY7DQN.js +33 -0
  108. package/dist/cli/{search-output-73BYB7UE.mjs → search-output-6PY6RN2R.mjs} +4 -4
  109. package/dist/cli/{search-output-GCT7PQIT.js → search-output-7HRSSRBS.js} +6 -6
  110. package/dist/cli/{secrets-RLOTGKQZ.mjs → secrets-6S2ZWDIM.mjs} +6 -6
  111. package/dist/cli/{secrets-J6CEKXKQ.js → secrets-IYD5VKY4.js} +15 -15
  112. package/dist/cli/sessions-7HPIVSQ4.js +22 -0
  113. package/dist/cli/{sessions-7HZ7OZ62.mjs → sessions-GVEX5TUJ.mjs} +6 -6
  114. package/dist/cli/{settings-72K5YCIS.mjs → settings-BN5MJZ3C.mjs} +13 -13
  115. package/dist/cli/{settings-WRV5XEZC.js → settings-CANK4HJQ.js} +86 -86
  116. package/dist/cli/{setup-KQFY6WT4.mjs → setup-JNMSCCU4.mjs} +10 -10
  117. package/dist/cli/{setup-QVXWT2EQ.js → setup-YSGKGLSJ.js} +50 -50
  118. package/dist/cli/{skills-C3K3E473.mjs → skills-QCQN2UM2.mjs} +8 -8
  119. package/dist/cli/skills-WDGSSKJZ.js +37 -0
  120. package/dist/cli/{tools-4A2OH6MB.mjs → tools-CDPOID7V.mjs} +17 -17
  121. package/dist/cli/tools-URNVXSTZ.js +57 -0
  122. package/dist/cli/{update-BS6USKPR.mjs → update-D3ZERUQ3.mjs} +10 -10
  123. package/dist/cli/update-Q6JW32IA.js +35 -0
  124. package/dist/cli/{views-4NZGAXHL.js → views-4NV2KQKA.js} +18 -18
  125. package/dist/cli/{views-WB6GFTRX.mjs → views-RDZRWQBQ.mjs} +6 -6
  126. package/dist/cli/{workflow-2D4WX55R.mjs → workflow-2CG3TVCG.mjs} +7 -7
  127. package/dist/cli/{workflow-L2QTQZYV.js → workflow-RABJCAZC.js} +17 -17
  128. package/dist/{client-DoUVSkqC.d.mts → client-DhSvMO3A.d.mts} +1 -1
  129. package/dist/{client-core-CPlwsC1Q.d.mts → client-core-CVG1Et-4.d.mts} +9 -1
  130. package/dist/{client-core-C7KkUIE_.d.ts → client-core-CdWH6Sii.d.ts} +9 -1
  131. package/dist/{client-DQm56zMs.d.ts → client-oGNJMQFd.d.ts} +1 -1
  132. package/dist/{compiler-manifest-DsxsQP-T.d.mts → compiler-manifest-D2ZlBGxj.d.mts} +44 -0
  133. package/dist/{compiler-manifest-DsxsQP-T.d.ts → compiler-manifest-D2ZlBGxj.d.ts} +44 -0
  134. package/dist/{errors-qdJUVQ3g.d.mts → errors-B-gOQdj-.d.mts} +1 -1
  135. package/dist/{errors-Bk5h1D-C.d.ts → errors-CB0KAmmV.d.ts} +1 -1
  136. package/dist/{index-PaupwX1B.d.mts → index-BbJADro4.d.mts} +1 -1
  137. package/dist/{index-bL66eHYz.d.ts → index-c3nvUGCS.d.ts} +1 -1
  138. package/dist/index.d.mts +7 -7
  139. package/dist/index.d.ts +7 -7
  140. package/dist/index.js +9 -9
  141. package/dist/index.mjs +6 -6
  142. package/dist/install-integrity.json +118 -116
  143. package/dist/plays/bundle-play-file.d.mts +3 -3
  144. package/dist/plays/bundle-play-file.d.ts +3 -3
  145. package/dist/plays/bundle-play-file.mjs +52 -0
  146. package/dist/plays/play-description.d.mts +2 -2
  147. package/dist/plays/play-description.d.ts +2 -2
  148. package/dist/plays/run-request.d.mts +2 -2
  149. package/dist/plays/run-request.d.ts +2 -2
  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 +4 -4
  155. package/dist/server.d.ts +4 -4
  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-UP2RGPI6.js +0 -43
  160. package/dist/cli/describe-IVTSD7ST.js +0 -50
  161. package/dist/cli/git-R3W25XIF.js +0 -25
  162. package/dist/cli/search-NB5CBALV.js +0 -33
  163. package/dist/cli/sessions-SFCZSB77.js +0 -22
  164. package/dist/cli/skills-WIJEHVLA.js +0 -37
  165. package/dist/cli/tools-VMMERMLO.js +0 -57
  166. package/dist/cli/update-54WZQDTS.js +0 -35
@@ -908,6 +908,32 @@ export type PlayAuthoringBindings<TInput = Record<string, unknown>> = {
908
908
  secrets?: readonly string[];
909
909
  };
910
910
 
911
+ /**
912
+ * The failure classes a durable tool call retries (the Durable retry policy's
913
+ * classes). A class listed in `retry.nonRetryable` reaches the Play after the
914
+ * call's first attempt instead of being retried.
915
+ */
916
+ export const PLAY_TOOL_CALL_RETRY_ERROR_CLASSES = [
917
+ 'never_sent',
918
+ 'provider_unavailable',
919
+ 'provider_ambiguous_500',
920
+ 'timeout_after_send',
921
+ 'rate_limit_429',
922
+ 'billing_insufficient_credits',
923
+ 'billing_monthly_cap',
924
+ ] as const;
925
+ export type PlayToolCallRetryErrorClass =
926
+ (typeof PLAY_TOOL_CALL_RETRY_ERROR_CLASSES)[number];
927
+
928
+ /**
929
+ * One durable tool call's retry policy, like a durable-execution activity
930
+ * retry policy. Omitted fields take the live Durable retry policy for the
931
+ * failure's class. Between attempts the run waits on a durable timer.
932
+ */
933
+ export type PlayToolCallRetryPolicy = Static<
934
+ (typeof PLAY_AUTHORING_FIELD_REGISTRY)['ctx.tools.execute.retry']['schema']
935
+ >;
936
+
911
937
  /** The one public type for durable managed-tool calls. */
912
938
  export type PlayToolExecutionRequest = {
913
939
  id: string;
@@ -918,6 +944,14 @@ export type PlayToolExecutionRequest = {
918
944
  staleAfterSeconds?: DurableCallStaleAfterSeconds;
919
945
  timeoutMs?: PlayRuntimeTimeoutMs;
920
946
  receiptWaitMs?: PlayReceiptWaitMs;
947
+ /**
948
+ * The call's retry policy. The Play sees the call's error only after these
949
+ * retries are spent, or at once for a `nonRetryable` class. Set a small
950
+ * `maximumAttempts` (for example 3) on a call whose failure the Play
951
+ * handles itself, such as a waterfall leg that falls back to the next
952
+ * provider, so it never waits on a durable retry.
953
+ */
954
+ retry?: PlayToolCallRetryPolicy;
921
955
  };
922
956
  export type PlayToolCallOptions = Omit<
923
957
  PlayToolExecutionRequest,
@@ -2359,6 +2393,48 @@ export const PLAY_AUTHORING_FIELD_REGISTRY = {
2359
2393
  errorMessage:
2360
2394
  'staleAfterSeconds must be null, 0 (always execute), or a positive whole number of seconds.',
2361
2395
  },
2396
+ 'ctx.tools.execute.retry': {
2397
+ schema: Type.Object(
2398
+ {
2399
+ maximumAttempts: Type.Optional(Type.Integer({ minimum: 1, maximum: 65 })),
2400
+ initialIntervalMs: Type.Optional(
2401
+ Type.Integer({ minimum: 1_000, maximum: 86_400_000 }),
2402
+ ),
2403
+ backoffCoefficient: Type.Optional(
2404
+ Type.Number({ minimum: 1, maximum: 10 }),
2405
+ ),
2406
+ maximumIntervalMs: Type.Optional(
2407
+ Type.Integer({ minimum: 1_000, maximum: 86_400_000 }),
2408
+ ),
2409
+ nonRetryable: Type.Optional(
2410
+ Type.Array(
2411
+ Type.Union(
2412
+ PLAY_TOOL_CALL_RETRY_ERROR_CLASSES.map((errorClass) =>
2413
+ Type.Literal(errorClass),
2414
+ ),
2415
+ ),
2416
+ { uniqueItems: true },
2417
+ ),
2418
+ ),
2419
+ },
2420
+ { additionalProperties: false },
2421
+ ),
2422
+ fixtures: {
2423
+ valid: { maximumAttempts: 1 },
2424
+ invalid: { maximumAttempts: 0 },
2425
+ absent: undefined,
2426
+ unresolved: { expression: 'retryPolicy' },
2427
+ edition1: { maximumAttempts: 1 },
2428
+ },
2429
+ referenceType: 'PlayToolCallRetryPolicy',
2430
+ required: false,
2431
+ resolution: 'runtime-allowed',
2432
+ issueCode: 'play_authoring_durable_policy_invalid',
2433
+ description:
2434
+ "Optional retry policy for this call, like a durable-execution activity retry policy. Omitted fields take the live Durable retry policy for the failure's class. maximumAttempts counts every request the provider receives for the call, the first included, in-call resends and durable retries alike (1 to 65); initialIntervalMs, backoffCoefficient and maximumIntervalMs set the durable wait before each retry (1 s to 24 h; the coefficient 1 to 10); nonRetryable lists failure classes that reach the Play after the first attempt. The Play sees the error only after the retries are spent. Where the Play handles the failure itself, such as a waterfall leg that falls back, set a small maximumAttempts (for example 3) so the call never waits on a durable retry. Setting retry (an empty object takes the class defaults) is what makes a call retry durably for now; a call without it keeps its earlier behaviour.",
2435
+ errorMessage:
2436
+ 'retry must be an object with maximumAttempts (1-65), initialIntervalMs and maximumIntervalMs (1000-86400000 ms), backoffCoefficient (1-10) and nonRetryable (failure classes), and nothing else.',
2437
+ },
2362
2438
  'ctx.tools.execute.id': {
2363
2439
  schema: Type.String({ pattern: '\\S' }),
2364
2440
  fixtures: {
@@ -3389,6 +3465,28 @@ export function validateOptionalPlayAuthoringField(
3389
3465
  validatePlayAuthoringField(path, value);
3390
3466
  }
3391
3467
 
3468
+ /**
3469
+ * Validate a per-call `retry` policy: its shape, then that the longest wait
3470
+ * is not shorter than the first.
3471
+ */
3472
+ export function validatePlayToolCallRetryPolicy(
3473
+ value: unknown,
3474
+ ): asserts value is PlayToolCallRetryPolicy {
3475
+ validatePlayAuthoringField('ctx.tools.execute.retry', value);
3476
+ const policy = value as PlayToolCallRetryPolicy;
3477
+ if (
3478
+ policy.initialIntervalMs !== undefined &&
3479
+ policy.maximumIntervalMs !== undefined &&
3480
+ policy.maximumIntervalMs < policy.initialIntervalMs
3481
+ ) {
3482
+ throw new PlayAuthoringFieldValidationError(
3483
+ 'ctx.tools.execute.retry',
3484
+ PLAY_AUTHORING_FIELD_REGISTRY['ctx.tools.execute.retry'].issueCode,
3485
+ 'retry.maximumIntervalMs must be at least retry.initialIntervalMs.',
3486
+ );
3487
+ }
3488
+ }
3489
+
3392
3490
  /** Normalize the deprecated SqlQuery compatibility shape at the contract seam. */
3393
3491
  export function normalizePlayAuthoringCustomerDbStatement(
3394
3492
  statement: PlaySqlQuery | string,
@@ -3437,6 +3535,8 @@ export const PLAY_AUTHORING_CLOUD_TYPE_DECLARATIONS = [
3437
3535
  `export type DurableCallStaleAfterSeconds = ${cloudReferenceType('ctx.tools.execute.staleAfterSeconds')};`,
3438
3536
  `export type PlayRuntimeTimeoutMs = ${cloudReferenceType('ctx.tools.execute.timeoutMs')};`,
3439
3537
  `export type PlayReceiptWaitMs = ${cloudReferenceType('ctx.tools.execute.receiptWaitMs')};`,
3538
+ `export type PlayToolCallRetryErrorClass = ${PLAY_TOOL_CALL_RETRY_ERROR_CLASSES.map((errorClass) => `'${errorClass}'`).join(' | ')};`,
3539
+ 'export type PlayToolCallRetryPolicy = { readonly maximumAttempts?: number; readonly initialIntervalMs?: number; readonly backoffCoefficient?: number; readonly maximumIntervalMs?: number; readonly nonRetryable?: readonly PlayToolCallRetryErrorClass[] };',
3440
3540
  `export type SqlListenerOperation = ${cloudReferenceType('bindings.sqlListeners[].operations[]')};`,
3441
3541
  'export type SqlListenerFilterScalar = string | number | boolean | null;',
3442
3542
  `export type SqlListenerFilterOperator = { eq?: ${cloudReferenceType('bindings.sqlListeners[].where.*.*.eq')}; neq?: ${cloudReferenceType('bindings.sqlListeners[].where.*.*.neq')}; in?: ${cloudReferenceType('bindings.sqlListeners[].where.*.*.in')}; notIn?: ${cloudReferenceType('bindings.sqlListeners[].where.*.*.notIn')}; isNull?: ${cloudReferenceType('bindings.sqlListeners[].where.*.*.isNull')}; isNotNull?: ${cloudReferenceType('bindings.sqlListeners[].where.*.*.isNotNull')}; ilike?: ${cloudReferenceType('bindings.sqlListeners[].where.*.*.ilike')} };`,
@@ -3453,6 +3553,7 @@ export const PLAY_AUTHORING_CLOUD_TYPE_DECLARATIONS = [
3453
3553
  ' readonly staleAfterSeconds?: DurableCallStaleAfterSeconds;',
3454
3554
  ' readonly timeoutMs?: PlayRuntimeTimeoutMs;',
3455
3555
  ' readonly receiptWaitMs?: PlayReceiptWaitMs;',
3556
+ ` readonly retry?: ${cloudReferenceType('ctx.tools.execute.retry')};`,
3456
3557
  '};',
3457
3558
  'export type PlayCronInput<TInput> = TInput extends readonly unknown[] ? never : TInput extends object ? TInput : never;',
3458
3559
  'export type PlayBindings<TInput = Record<string, unknown>> = {',
@@ -479,6 +479,7 @@ function projectPublicColumnProducer(
479
479
  producer: PlayStaticColumnProducer,
480
480
  depth: number,
481
481
  maxDepth: number,
482
+ includeBindingPaths: boolean,
482
483
  ): PlayStaticColumnProducer {
483
484
  return {
484
485
  id: producer.id,
@@ -493,11 +494,17 @@ function projectPublicColumnProducer(
493
494
  producer.substep,
494
495
  maxDepth === Infinity ? depth + 1 : MAX_PUBLIC_SUBSTEP_DEPTH,
495
496
  maxDepth,
497
+ includeBindingPaths,
496
498
  ),
497
499
  ...(maxDepth === Infinity && producer.steps
498
500
  ? {
499
501
  steps: producer.steps.map((step) =>
500
- projectPublicColumnProducer(step, depth + 1, maxDepth),
502
+ projectPublicColumnProducer(
503
+ step,
504
+ depth + 1,
505
+ maxDepth,
506
+ includeBindingPaths,
507
+ ),
501
508
  ),
502
509
  }
503
510
  : {}),
@@ -507,17 +514,21 @@ function projectPublicColumnProducer(
507
514
  function projectPublicPipeline(
508
515
  pipeline: PlayStaticPipeline,
509
516
  depth: number,
510
- maxDepth = MAX_PUBLIC_SUBSTEP_DEPTH,
517
+ maxDepth: number,
518
+ includeBindingPaths: boolean,
511
519
  ): PlayStaticPipeline {
512
- const safePipeline = buildAppGraphPipeline(pipeline)!;
520
+ const safePipeline = buildProjectedGraphPipeline(
521
+ pipeline,
522
+ includeBindingPaths,
523
+ );
513
524
  if (maxDepth === Infinity) return safePipeline;
514
525
  return {
515
526
  ...safePipeline,
516
527
  stages: (safePipeline.stages ?? []).map((substep) =>
517
- projectPublicSubstep(substep, depth, maxDepth),
528
+ projectPublicSubstep(substep, depth, maxDepth, includeBindingPaths),
518
529
  ),
519
530
  substeps: safePipeline.substeps.map((substep) =>
520
- projectPublicSubstep(substep, depth, maxDepth),
531
+ projectPublicSubstep(substep, depth, maxDepth, includeBindingPaths),
521
532
  ),
522
533
  };
523
534
  }
@@ -526,11 +537,12 @@ function projectPublicSubstep(
526
537
  substep: PlayStaticSubstep,
527
538
  depth: number,
528
539
  maxDepth = MAX_PUBLIC_SUBSTEP_DEPTH,
540
+ includeBindingPaths = false,
529
541
  ): PlayStaticSubstep {
530
542
  const base = publicSubstepBase(substep);
531
543
  const projectChildren = depth < maxDepth;
532
544
  const child = (value: PlayStaticSubstep) =>
533
- projectPublicSubstep(value, depth + 1, maxDepth);
545
+ projectPublicSubstep(value, depth + 1, maxDepth, includeBindingPaths);
534
546
 
535
547
  if (substep.type === 'csv' && maxDepth === Infinity) {
536
548
  return {
@@ -550,7 +562,12 @@ function projectPublicSubstep(
550
562
  source: column.source,
551
563
  ...(column.sqlName ? { sqlName: column.sqlName } : {}),
552
564
  producers: column.producers.map((producer) =>
553
- projectPublicColumnProducer(producer, depth, maxDepth),
565
+ projectPublicColumnProducer(
566
+ producer,
567
+ depth,
568
+ maxDepth,
569
+ includeBindingPaths,
570
+ ),
554
571
  ),
555
572
  })),
556
573
  steps: projectChildren ? (substep.steps ?? []).map(child) : [],
@@ -603,7 +620,12 @@ function projectPublicSubstep(
603
620
  field: substep.field,
604
621
  pipeline:
605
622
  projectChildren && substep.pipeline
606
- ? projectPublicPipeline(substep.pipeline, depth + 1, maxDepth)
623
+ ? projectPublicPipeline(
624
+ substep.pipeline,
625
+ depth + 1,
626
+ maxDepth,
627
+ includeBindingPaths,
628
+ )
607
629
  : null,
608
630
  } as PlayStaticSubstep;
609
631
  }
@@ -615,7 +637,12 @@ function projectPublicSubstep(
615
637
  field: substep.field,
616
638
  pipeline:
617
639
  projectChildren && substep.pipeline
618
- ? projectPublicPipeline(substep.pipeline, depth + 1, maxDepth)
640
+ ? projectPublicPipeline(
641
+ substep.pipeline,
642
+ depth + 1,
643
+ maxDepth,
644
+ includeBindingPaths,
645
+ )
619
646
  : null,
620
647
  } as PlayStaticSubstep;
621
648
  }
@@ -644,11 +671,34 @@ export function buildAppGraphPipeline(
644
671
  staticPipeline: unknown,
645
672
  ): PlayStaticPipeline | null {
646
673
  const pipeline = asPipeline(staticPipeline);
647
- if (!pipeline) return null;
674
+ return pipeline ? buildProjectedGraphPipeline(pipeline, true) : null;
675
+ }
676
+
677
+ function buildProjectedGraphPipeline(
678
+ pipeline: PlayStaticPipeline,
679
+ includeBindingPaths: boolean,
680
+ ): PlayStaticPipeline {
648
681
  const docflow = buildPublicDocflow(pipeline);
682
+ // The authenticated app needs the symbolic bindings to match recorded
683
+ // values to graph nodes. Keep the public share projection unchanged.
684
+ const appDocflow =
685
+ includeBindingPaths && docflow && pipeline.docflow
686
+ ? {
687
+ ...docflow,
688
+ bindings: pipeline.docflow.bindings.map(
689
+ ({ nodeId, line, kind, inputs, outputs }) => ({
690
+ nodeId,
691
+ line,
692
+ ...(kind ? { kind } : {}),
693
+ ...(inputs ? { inputs: [...inputs] } : {}),
694
+ ...(outputs ? { outputs: [...outputs] } : {}),
695
+ }),
696
+ ),
697
+ }
698
+ : docflow;
649
699
  const csvInput = inputFieldFromStaticCsvArg(pipeline.csvArg);
650
700
  return {
651
- ...(docflow ? { docflow } : {}),
701
+ ...(appDocflow ? { docflow: appDocflow } : {}),
652
702
  ...(pipeline.tableNamespace
653
703
  ? { tableNamespace: pipeline.tableNamespace }
654
704
  : {}),
@@ -665,10 +715,10 @@ export function buildAppGraphPipeline(
665
715
  ? { returnFields: pipeline.returnFields.map((field) => ({ ...field })) }
666
716
  : {}),
667
717
  stages: (pipeline.stages ?? []).map((substep) =>
668
- projectPublicSubstep(substep, 0, Infinity),
718
+ projectPublicSubstep(substep, 0, Infinity, includeBindingPaths),
669
719
  ),
670
720
  substeps: pipeline.substeps.map((substep) =>
671
- projectPublicSubstep(substep, 0, Infinity),
721
+ projectPublicSubstep(substep, 0, Infinity, includeBindingPaths),
672
722
  ),
673
723
  ...(pipeline.sheetContract
674
724
  ? { sheetContract: pipeline.sheetContract }
@@ -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 _chunkKOZBZPRMjs = require('./chunk-KOZBZPRM.js');
18
+ require('./chunk-KWGXHPHL.js');
19
+ require('./chunk-HWPOXCCK.js');
20
+ require('./chunk-D4MHCCIR.js');
21
+ require('./chunk-T2N3B7IQ.js');
22
+ require('./chunk-XNYIZMNQ.js');
23
+ require('./chunk-SQWET4SL.js');
24
+ require('./chunk-PI5R65OQ.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 = _chunkKOZBZPRMjs.EXIT_WORKSPACE_MISMATCH; exports.authStatusLine = _chunkKOZBZPRMjs.authStatusLine; exports.clearPendingClaim = _chunkKOZBZPRMjs.clearPendingClaim; exports.clearSatisfiedPendingClaim = _chunkKOZBZPRMjs.clearSatisfiedPendingClaim; exports.handleRegister = _chunkKOZBZPRMjs.handleRegister; exports.handleStatus = _chunkKOZBZPRMjs.handleStatus; exports.handleWait = _chunkKOZBZPRMjs.handleWait; exports.httpJson = _chunkKOZBZPRMjs.httpJson; exports.readPendingAuthClaim = _chunkKOZBZPRMjs.readPendingAuthClaim; exports.readStatusBanner = _chunkKOZBZPRMjs.readStatusBanner; exports.registerAuthCommands = _chunkKOZBZPRMjs.registerAuthCommands; exports.reportApprovalLinkShown = _chunkKOZBZPRMjs.reportApprovalLinkShown; exports.reportSetupCompleted = _chunkKOZBZPRMjs.reportSetupCompleted; exports.resolvePendingAuthClaimForResume = _chunkKOZBZPRMjs.resolvePendingAuthClaimForResume; exports.statusBannerLine = _chunkKOZBZPRMjs.statusBannerLine;
@@ -14,14 +14,14 @@ import {
14
14
  reportSetupCompleted,
15
15
  resolvePendingAuthClaimForResume,
16
16
  statusBannerLine
17
- } from "./chunk-XRZJKHUA.mjs";
18
- import "./chunk-62SOZ67Y.mjs";
19
- import "./chunk-E7TP25I2.mjs";
20
- import "./chunk-TG2UB3A5.mjs";
17
+ } from "./chunk-BF65LB7X.mjs";
18
+ import "./chunk-JWWYLGUT.mjs";
19
+ import "./chunk-W5YJYU4G.mjs";
20
+ import "./chunk-RKY4LBX3.mjs";
21
21
  import "./chunk-QNHHZ63P.mjs";
22
22
  import "./chunk-DLIRSHV6.mjs";
23
23
  import "./chunk-ZPGGW27Q.mjs";
24
- import "./chunk-AK622KIG.mjs";
24
+ import "./chunk-7CWSAEYS.mjs";
25
25
  import "./chunk-WZYKRD7T.mjs";
26
26
  import "./chunk-KRD6H754.mjs";
27
27
  export {