deepline 0.3.499 → 0.3.501

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 (178) hide show
  1. package/dist/bundling-sources/sdk/src/plays/client-core.ts +45 -7
  2. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  3. package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +36 -0
  4. package/dist/bundling-sources/shared_libs/play-data-plane/r2.ts +155 -0
  5. package/dist/bundling-sources/shared_libs/play-runtime/app-runtime-api.ts +7 -1
  6. package/dist/bundling-sources/shared_libs/play-runtime/context.ts +2 -1
  7. package/dist/bundling-sources/shared_libs/play-runtime/durable-invocation-fence.ts +3 -1
  8. package/dist/bundling-sources/shared_libs/play-runtime/internal-bootstrap-token.ts +54 -1
  9. package/dist/bundling-sources/shared_libs/play-runtime/launch-identity.ts +12 -0
  10. package/dist/bundling-sources/shared_libs/play-runtime/protocol.ts +13 -0
  11. package/dist/bundling-sources/shared_libs/play-runtime/run-identity.ts +56 -0
  12. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +21 -10
  13. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/runtime-heartbeat.ts +1 -1
  14. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/runtime-progress-push.ts +1 -2
  15. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/runtime-terminal-push.ts +1 -1
  16. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-launch-transport.ts +9 -2
  17. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-lifecycle.ts +31 -1
  18. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-payload-transport.ts +74 -3
  19. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-runtime-watchdog.ts +226 -2
  20. package/dist/bundling-sources/shared_libs/play-runtime/runtime-api-paths.ts +41 -0
  21. package/dist/bundling-sources/shared_libs/play-runtime/runtime-api.ts +5 -1
  22. package/dist/bundling-sources/shared_libs/play-runtime/runtime-app-transport.ts +374 -0
  23. package/dist/bundling-sources/shared_libs/play-runtime/runtime-authority.ts +5 -0
  24. package/dist/bundling-sources/shared_libs/play-runtime/runtime-environment.ts +49 -9
  25. package/dist/bundling-sources/shared_libs/play-runtime/runtime-gateway-oidc.ts +25 -3
  26. package/dist/bundling-sources/shared_libs/play-runtime/runtime-gateway-profile.ts +12 -1
  27. package/dist/bundling-sources/shared_libs/play-runtime/runtime-gateway-sandbox-credential.ts +338 -0
  28. package/dist/bundling-sources/shared_libs/play-runtime/runtime-gateway-staging.ts +417 -0
  29. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backend.ts +15 -0
  30. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +184 -11
  31. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-shared.ts +17 -3
  32. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/gateway-progress-registry.ts +9 -0
  33. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-progress.ts +18 -2
  34. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +176 -16
  35. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-gateway-attempt.ts +81 -0
  36. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-gateway-staging-journal.ts +708 -0
  37. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-gateway-staging-teardown.ts +160 -0
  38. package/dist/bundling-sources/shared_libs/play-runtime/workflow-executor-auth.ts +4 -0
  39. package/dist/cli/{auth-TECJ27G3.mjs → auth-6ECHXOI4.mjs} +5 -5
  40. package/dist/cli/auth-VP7PMXKQ.js +43 -0
  41. package/dist/cli/{billing-PMKO73VG.mjs → billing-75NZYRXA.mjs} +8 -8
  42. package/dist/cli/{billing-ULZGAED6.js → billing-QRR7O6BD.js} +81 -81
  43. package/dist/cli/{chunk-K54BUQSK.js → chunk-463ZOO2L.js} +7 -7
  44. package/dist/cli/{chunk-L6C7C7IJ.js → chunk-4OXHLTCP.js} +1 -1
  45. package/dist/cli/{chunk-3GP52OHV.mjs → chunk-5S7MLAI7.mjs} +11 -11
  46. package/dist/cli/{chunk-7OQZZHZ4.js → chunk-5X4AUFYW.js} +7 -7
  47. package/dist/cli/{chunk-56JE475N.mjs → chunk-66XDYH5T.mjs} +2 -2
  48. package/dist/cli/{chunk-A2VCFBZN.mjs → chunk-7L6QNHUL.mjs} +1 -1
  49. package/dist/cli/{chunk-UOQUCFAK.js → chunk-APAHMCGR.js} +53 -53
  50. package/dist/cli/{chunk-UBKA33KY.mjs → chunk-BMCRTI6Z.mjs} +22 -1
  51. package/dist/cli/{chunk-WSOM3TY6.js → chunk-BOFCF4L7.js} +3 -3
  52. package/dist/cli/{chunk-SLWCXGKP.js → chunk-CJJ7JBM2.js} +16 -16
  53. package/dist/cli/{chunk-JM52ATUS.mjs → chunk-EHVFBD36.mjs} +1 -1
  54. package/dist/cli/{chunk-7WUMIRBV.js → chunk-EKF4DKUA.js} +5 -5
  55. package/dist/cli/{chunk-AGZRRHSB.js → chunk-EKZQ5LQO.js} +3 -3
  56. package/dist/cli/{chunk-5IDORX4E.mjs → chunk-EOO7OSS4.mjs} +4 -4
  57. package/dist/cli/{chunk-2PKZ3RUU.js → chunk-FS7XYDOF.js} +16 -16
  58. package/dist/cli/{chunk-Z2MO7FZG.js → chunk-HDKXSHGA.js} +53 -53
  59. package/dist/cli/{chunk-YRQWGWRJ.js → chunk-J6SVNKRP.js} +2 -2
  60. package/dist/cli/{chunk-QXI2W7YY.mjs → chunk-J74N375S.mjs} +4 -4
  61. package/dist/cli/{chunk-KLQ5CR77.js → chunk-KTOAJP4N.js} +6 -6
  62. package/dist/cli/{chunk-ZVAD65CF.mjs → chunk-MADTHS56.mjs} +1 -1
  63. package/dist/cli/{chunk-UMPCQ4EE.mjs → chunk-MSLXAVVK.mjs} +2 -2
  64. package/dist/cli/{chunk-JIZHGOZ5.js → chunk-N2TJJNCW.js} +96 -96
  65. package/dist/cli/{chunk-CS2AEAD6.mjs → chunk-N4TR6QRI.mjs} +1 -1
  66. package/dist/cli/{chunk-43ZERPGR.mjs → chunk-NA3J3F2Z.mjs} +1 -1
  67. package/dist/cli/{chunk-JQHJKARU.mjs → chunk-O3DDVP7Z.mjs} +1 -1
  68. package/dist/cli/{chunk-JUQESEJX.mjs → chunk-OKOXB3LY.mjs} +2 -2
  69. package/dist/cli/{chunk-FG5OZ5FB.js → chunk-PNF2ZU4R.js} +8 -8
  70. package/dist/cli/{chunk-KZJKRU24.mjs → chunk-PXIF74UJ.mjs} +4 -4
  71. package/dist/cli/{chunk-TUDYBF4Y.js → chunk-QQ3JJYE2.js} +14 -14
  72. package/dist/cli/{chunk-IGCSKXGK.mjs → chunk-RFV7PPLS.mjs} +3 -3
  73. package/dist/cli/{chunk-EQR5O2D2.js → chunk-RNSHCJME.js} +3 -3
  74. package/dist/cli/{chunk-PE3UHMMZ.js → chunk-RU5ROUFO.js} +5 -5
  75. package/dist/cli/{chunk-2RZHMCDL.js → chunk-SV2TEZ2M.js} +4 -4
  76. package/dist/cli/{chunk-P3MGNLZF.mjs → chunk-T4U245E4.mjs} +2 -2
  77. package/dist/cli/{chunk-7UC2UZYW.mjs → chunk-T7E3XEPG.mjs} +6 -6
  78. package/dist/cli/{chunk-LUNXREUI.js → chunk-TOE7LHEA.js} +6 -6
  79. package/dist/cli/{chunk-OWHQ4OG5.mjs → chunk-UJRN6YP6.mjs} +3 -3
  80. package/dist/cli/{chunk-XSUQAUG4.js → chunk-UR7JOSLT.js} +360 -300
  81. package/dist/cli/{chunk-KOD45UP5.mjs → chunk-V5NHEYU7.mjs} +5 -5
  82. package/dist/cli/{chunk-PSYGSXDS.mjs → chunk-VD2374K7.mjs} +1 -1
  83. package/dist/cli/{chunk-57LW4TGY.js → chunk-VL72UKNW.js} +26 -26
  84. package/dist/cli/{chunk-YAW7ET4P.mjs → chunk-VTDAJZIJ.mjs} +90 -30
  85. package/dist/cli/{chunk-AKLI4XSG.js → chunk-VVEMPC2I.js} +2 -2
  86. package/dist/cli/{chunk-L7O7AFSF.js → chunk-W6JTHVPF.js} +21 -21
  87. package/dist/cli/{chunk-MQ5YPD7K.mjs → chunk-WJUDAHIQ.mjs} +1 -1
  88. package/dist/cli/{chunk-XDVT3GOM.js → chunk-WSGXBROE.js} +22 -1
  89. package/dist/cli/{chunk-G7BB2VOC.js → chunk-XEBFJ2PH.js} +41 -41
  90. package/dist/cli/{chunk-WEVIUQGZ.mjs → chunk-Z6AUOV7D.mjs} +2 -2
  91. package/dist/cli/{chunk-BBFWIYAF.mjs → chunk-ZUOKIBLJ.mjs} +2 -2
  92. package/dist/cli/{chunk-C2V5U6HO.mjs → chunk-ZUQHQGC5.mjs} +5 -5
  93. package/dist/cli/{csv-VGSQ3JYE.js → csv-JXX2LXK5.js} +13 -13
  94. package/dist/cli/{csv-ACO5YC46.mjs → csv-RZJ4SOIL.mjs} +4 -4
  95. package/dist/cli/{db-CXNZOXGM.mjs → db-MUTT2NWI.mjs} +8 -8
  96. package/dist/cli/{db-QOUPHFFN.js → db-T2KJNONM.js} +29 -29
  97. package/dist/cli/{describe-J4O5GCJS.mjs → describe-K3UMAAVO.mjs} +19 -19
  98. package/dist/cli/describe-SEXUJLE4.js +50 -0
  99. package/dist/cli/describe-core.d.mts +2 -2
  100. package/dist/cli/describe-core.d.ts +2 -2
  101. package/dist/cli/{executions-YIECH2CL.js → executions-7HSLDRHR.js} +10 -10
  102. package/dist/cli/{executions-SJETRLXW.mjs → executions-PHS4R2OX.mjs} +8 -8
  103. package/dist/cli/{feedback-5BRCNERV.js → feedback-BJZRM637.js} +8 -8
  104. package/dist/cli/{feedback-GSAFFMF6.mjs → feedback-RWMDCIDF.mjs} +4 -4
  105. package/dist/cli/git-VNS7UQWN.js +25 -0
  106. package/dist/cli/{git-SF5XIGLU.mjs → git-YW6VHYZG.mjs} +5 -5
  107. package/dist/cli/index.js +137 -137
  108. package/dist/cli/index.mjs +40 -40
  109. package/dist/cli/{legacy-noops-5TBT4XC6.js → legacy-noops-2WUV2XD7.js} +8 -8
  110. package/dist/cli/{legacy-noops-TZA3CALE.mjs → legacy-noops-5UBSUPGG.mjs} +5 -5
  111. package/dist/cli/{monitors-XAYWJNSV.mjs → monitors-HWOQO3OK.mjs} +9 -9
  112. package/dist/cli/{monitors-XNB5YNC3.js → monitors-YZZRKSTG.js} +97 -97
  113. package/dist/cli/{org-2UYWJXG7.js → org-JY7HLHBA.js} +74 -74
  114. package/dist/cli/{org-S5VZL5KZ.mjs → org-NCXT6RB4.mjs} +8 -8
  115. package/dist/cli/{pages-ZQRRTZIT.js → pages-6ZOHXL6X.js} +20 -20
  116. package/dist/cli/{pages-NGVJO7PA.mjs → pages-QJO53QAT.mjs} +8 -8
  117. package/dist/cli/{play-3JNERHSC.mjs → play-SQRS7JN3.mjs} +20 -20
  118. package/dist/cli/{play-P3OYQ7JV.js → play-TAYGSR35.js} +336 -336
  119. package/dist/cli/{providers-27O6BOAP.mjs → providers-3IR3N5DT.mjs} +8 -8
  120. package/dist/cli/{providers-2FFGAPUR.js → providers-4Q5LOIQ5.js} +11 -11
  121. package/dist/cli/{quickstart-5G2UPKJV.js → quickstart-ITNUZENY.js} +6 -6
  122. package/dist/cli/{quickstart-B2EXIAU6.mjs → quickstart-KCZCYO6B.mjs} +4 -4
  123. package/dist/cli/{run-3QFXYV3Z.mjs → run-JCWRWDSK.mjs} +24 -24
  124. package/dist/cli/{run-2TGD7FAL.js → run-YQ57LMKN.js} +42 -42
  125. package/dist/cli/run-identity-HFYABUJS.js +31 -0
  126. package/dist/cli/{run-identity-MRNCEGV2.mjs → run-identity-MNRZS2N3.mjs} +9 -3
  127. package/dist/cli/{search-GXEEOMVD.mjs → search-FUM27HQP.mjs} +9 -9
  128. package/dist/cli/search-I425FRTK.js +32 -0
  129. package/dist/cli/{search-output-DMIJQTAA.mjs → search-output-EWEYT34M.mjs} +4 -4
  130. package/dist/cli/{search-output-I4RZPHU6.js → search-output-XAMWKRJH.js} +6 -6
  131. package/dist/cli/{secrets-MJMNRXZX.js → secrets-2IRRRZBL.js} +17 -17
  132. package/dist/cli/{secrets-DQI5YCS6.mjs → secrets-YTI4IAKR.mjs} +8 -8
  133. package/dist/cli/{sessions-HAUN3VYE.mjs → sessions-EFS4KUPF.mjs} +5 -5
  134. package/dist/cli/{sessions-QS74ZTRH.js → sessions-HWTRDXBQ.js} +6 -6
  135. package/dist/cli/{settings-VQBOS6VU.js → settings-FRVEIOKR.js} +80 -80
  136. package/dist/cli/{settings-E64HIUXW.mjs → settings-NTOO42DY.mjs} +13 -13
  137. package/dist/cli/{setup-KRW3JCJE.js → setup-6ZIOAE2V.js} +49 -49
  138. package/dist/cli/{setup-NRUG42F2.mjs → setup-PAVQPALX.mjs} +9 -9
  139. package/dist/cli/{skills-AHLZRTKZ.mjs → skills-3O3XTPUM.mjs} +7 -7
  140. package/dist/cli/skills-6ZNMO2PR.js +36 -0
  141. package/dist/cli/{tools-INRRIWOU.mjs → tools-7QSB65UL.mjs} +18 -18
  142. package/dist/cli/tools-DPV2JES6.js +57 -0
  143. package/dist/cli/update-Q5GUDEAW.js +34 -0
  144. package/dist/cli/{update-ETOWEJ7D.mjs → update-T6CYS5ZT.mjs} +9 -9
  145. package/dist/cli/{workflow-RUAYQK4D.js → workflow-4KMJBMGX.js} +19 -19
  146. package/dist/cli/{workflow-JT2DOSCJ.mjs → workflow-OMSXZ73T.mjs} +9 -9
  147. package/dist/{client-Cj3UqrCZ.d.ts → client-Bn8FwKGO.d.ts} +1 -1
  148. package/dist/{client-DSCTVVRj.d.mts → client-CfNRmjLK.d.mts} +1 -1
  149. package/dist/{client-core-dI4KTuWS.d.ts → client-core-B91EV0WS.d.ts} +19 -0
  150. package/dist/{client-core-B-8DTIN1.d.mts → client-core-BG8Cgrmk.d.mts} +19 -0
  151. package/dist/index.d.mts +3 -3
  152. package/dist/index.d.ts +3 -3
  153. package/dist/index.js +19 -19
  154. package/dist/index.mjs +8 -8
  155. package/dist/install-integrity.json +114 -108
  156. package/dist/plays/play-description.d.mts +1 -1
  157. package/dist/plays/play-description.d.ts +1 -1
  158. package/dist/plays/run-request.d.mts +1 -1
  159. package/dist/plays/run-request.d.ts +1 -1
  160. package/dist/plays/run-request.js +3 -3
  161. package/dist/plays/run-request.mjs +2 -2
  162. package/dist/release.d.mts +1 -1
  163. package/dist/release.d.ts +1 -1
  164. package/dist/release.js +2 -2
  165. package/dist/release.mjs +1 -1
  166. package/dist/server.d.mts +2 -2
  167. package/dist/server.d.ts +2 -2
  168. package/dist/server.js +7 -7
  169. package/dist/server.mjs +5 -5
  170. package/package.json +1 -1
  171. package/dist/cli/auth-32FRISRT.js +0 -43
  172. package/dist/cli/describe-DEXYQMBO.js +0 -50
  173. package/dist/cli/git-RDKLITUC.js +0 -25
  174. package/dist/cli/run-identity-G257GQED.js +0 -25
  175. package/dist/cli/search-YKTYDBCN.js +0 -32
  176. package/dist/cli/skills-PGVIJK6Q.js +0 -36
  177. package/dist/cli/tools-IXXN2RE4.js +0 -57
  178. package/dist/cli/update-QW4RV2UX.js +0 -34
@@ -0,0 +1,160 @@
1
+ import { RuntimeGatewayStagingJournal } from './runtime-gateway-staging-journal';
2
+
3
+ type QueryClient = ConstructorParameters<
4
+ typeof RuntimeGatewayStagingJournal
5
+ >[0];
6
+
7
+ /**
8
+ * Object storage the teardown needs: delete, then prove absence, in the
9
+ * bucket `bucketFingerprint` names (`getR2BucketFingerprint`). `signal`
10
+ * aborts a call at its deadline.
11
+ */
12
+ export type RuntimeGatewayStagingTeardownStore = {
13
+ bucketFingerprint: string;
14
+ delete(key: string, options: { signal: AbortSignal }): Promise<void>;
15
+ confirmAbsent(
16
+ key: string,
17
+ options: { signal: AbortSignal },
18
+ ): Promise<boolean>;
19
+ };
20
+
21
+ /** Ceiling on one teardown object-store call, as for the reconciler. */
22
+ export const RUNTIME_GATEWAY_STAGING_TEARDOWN_CALL_TIMEOUT_MS = 15_000;
23
+
24
+ /**
25
+ * Run one object-store call under the per-call ceiling. The signal is
26
+ * aborted at the deadline and the caller stops waiting even if the store
27
+ * ignores it, so a stalled call fails this row instead of hanging teardown.
28
+ */
29
+ async function withTeardownCallDeadline<T>(
30
+ operation: string,
31
+ call: (signal: AbortSignal) => Promise<T>,
32
+ ): Promise<T> {
33
+ const controller = new AbortController();
34
+ let timer: ReturnType<typeof setTimeout> | undefined;
35
+ const timedOut = new Promise<never>((_, reject) => {
36
+ timer = setTimeout(() => {
37
+ const error = new Error(
38
+ `staged-body ${operation} did not finish within ${RUNTIME_GATEWAY_STAGING_TEARDOWN_CALL_TIMEOUT_MS} ms`,
39
+ );
40
+ controller.abort(error);
41
+ reject(error);
42
+ }, RUNTIME_GATEWAY_STAGING_TEARDOWN_CALL_TIMEOUT_MS);
43
+ });
44
+ try {
45
+ return await Promise.race([call(controller.signal), timedOut]);
46
+ } finally {
47
+ clearTimeout(timer);
48
+ }
49
+ }
50
+
51
+ export type RuntimeGatewayStagingTeardownResult = Readonly<{
52
+ schema: string;
53
+ /** False when the schema has no staging journal (nothing was ever staged). */
54
+ journalPresent: boolean;
55
+ /** Rows whose object was not confirmed absent before this pass. */
56
+ unconfirmedBefore: number;
57
+ retired: number;
58
+ /** Rows still holding custody; the schema must not be dropped while > 0. */
59
+ unconfirmedAfter: number;
60
+ failures: ReadonlyArray<{ uploadId: string; error: string }>;
61
+ }>;
62
+
63
+ const BATCH = 32;
64
+
65
+ /**
66
+ * Before a scheduler schema is dropped, retire every staged body it still
67
+ * holds custody of: delete the object, read back its absence, and only then
68
+ * mark the row deleted. Rows that are not yet due are retired too, because
69
+ * the drop would otherwise lose the only record of their objects. Rows whose
70
+ * upload grant is still live are not touched (their URL could recreate the
71
+ * key) and rows reserved against another bucket are refused; both stay
72
+ * unconfirmed, so the caller refuses the drop and a later rerun finishes.
73
+ *
74
+ * `reportOnly` counts and returns without any mutation. A failed or
75
+ * ambiguous delete keeps its row (the claim is released) and is reported;
76
+ * the caller refuses to drop while `unconfirmedAfter > 0`.
77
+ */
78
+ export async function retireRuntimeGatewayStagedBodiesForTeardown(input: {
79
+ client: QueryClient;
80
+ schema: string;
81
+ reportOnly: boolean;
82
+ store: () =>
83
+ | RuntimeGatewayStagingTeardownStore
84
+ | Promise<RuntimeGatewayStagingTeardownStore>;
85
+ }): Promise<RuntimeGatewayStagingTeardownResult> {
86
+ const journal = new RuntimeGatewayStagingJournal(input.client, input.schema);
87
+ const before = await journal.countUnconfirmedCustody();
88
+ if (before === null) {
89
+ return {
90
+ schema: input.schema,
91
+ journalPresent: false,
92
+ unconfirmedBefore: 0,
93
+ retired: 0,
94
+ unconfirmedAfter: 0,
95
+ failures: [],
96
+ };
97
+ }
98
+ if (input.reportOnly || before === 0) {
99
+ return {
100
+ schema: input.schema,
101
+ journalPresent: true,
102
+ unconfirmedBefore: before,
103
+ retired: 0,
104
+ unconfirmedAfter: before,
105
+ failures: [],
106
+ };
107
+ }
108
+ const store = await input.store();
109
+ const failures: Array<{ uploadId: string; error: string }> = [];
110
+ const failed = new Set<string>();
111
+ let retired = 0;
112
+ for (;;) {
113
+ // A failed row keeps custody and is not retried in this pass.
114
+ const claimed = await journal.claimForcedRetirements(BATCH, [...failed]);
115
+ if (claimed.length === 0) break;
116
+ for (const body of claimed) {
117
+ try {
118
+ if (
119
+ body.bucketFingerprint !== null &&
120
+ body.bucketFingerprint !== store.bucketFingerprint
121
+ ) {
122
+ throw new Error(
123
+ 'reserved against a different object-storage bucket than this teardown addresses',
124
+ );
125
+ }
126
+ await withTeardownCallDeadline('delete', (signal) =>
127
+ store.delete(body.objectKey, { signal }),
128
+ );
129
+ const absent = await withTeardownCallDeadline(
130
+ 'absence readback',
131
+ (signal) => store.confirmAbsent(body.objectKey, { signal }),
132
+ );
133
+ if (!absent) {
134
+ throw new Error('object still present after delete');
135
+ }
136
+ if (
137
+ !(await journal.confirmForcedDeleted(body, store.bucketFingerprint))
138
+ ) {
139
+ throw new Error('custody changed before the delete was recorded');
140
+ }
141
+ retired += 1;
142
+ } catch (error) {
143
+ failed.add(body.uploadId);
144
+ failures.push({
145
+ uploadId: body.uploadId,
146
+ error: error instanceof Error ? error.message : String(error),
147
+ });
148
+ await journal.releaseRetirement(body);
149
+ }
150
+ }
151
+ }
152
+ return {
153
+ schema: input.schema,
154
+ journalPresent: true,
155
+ unconfirmedBefore: before,
156
+ retired,
157
+ unconfirmedAfter: (await journal.countUnconfirmedCustody()) ?? 0,
158
+ failures,
159
+ };
160
+ }
@@ -119,6 +119,8 @@ export async function mintWorkflowExecutorToken(input: {
119
119
  terminalContract?: DirectCompletedTerminalContract | null;
120
120
  capabilities?: readonly RuntimeExecutionCapability[];
121
121
  runtimeOrigin?: string | null;
122
+ runtimeGatewayDeploymentId?: string | null;
123
+ runtimeGatewayProfileId?: string | null;
122
124
  runLedgerIngressPrefixOrigin?: string | null;
123
125
  }) {
124
126
  const playName = input.playName?.trim() || input.workflowId;
@@ -142,6 +144,8 @@ export async function mintWorkflowExecutorToken(input: {
142
144
  terminalContract: input.terminalContract,
143
145
  capabilities: input.capabilities,
144
146
  runtimeOrigin: input.runtimeOrigin,
147
+ runtimeGatewayDeploymentId: input.runtimeGatewayDeploymentId,
148
+ runtimeGatewayProfileId: input.runtimeGatewayProfileId,
145
149
  runLedgerIngressPrefixOrigin: input.runLedgerIngressPrefixOrigin,
146
150
  });
147
151
  }
@@ -14,14 +14,14 @@ import {
14
14
  reportSetupCompleted,
15
15
  resolvePendingAuthClaimForResume,
16
16
  statusBannerLine
17
- } from "./chunk-IGCSKXGK.mjs";
18
- import "./chunk-56JE475N.mjs";
19
- import "./chunk-ZVAD65CF.mjs";
20
- import "./chunk-JM52ATUS.mjs";
17
+ } from "./chunk-RFV7PPLS.mjs";
18
+ import "./chunk-66XDYH5T.mjs";
19
+ import "./chunk-MADTHS56.mjs";
20
+ import "./chunk-EHVFBD36.mjs";
21
21
  import "./chunk-4QF2K7TM.mjs";
22
22
  import "./chunk-DLIRSHV6.mjs";
23
23
  import "./chunk-HBL4PM5Q.mjs";
24
- import "./chunk-A2VCFBZN.mjs";
24
+ import "./chunk-7L6QNHUL.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 _chunkHDKXSHGAjs = require('./chunk-HDKXSHGA.js');
18
+ require('./chunk-5X4AUFYW.js');
19
+ require('./chunk-BOFCF4L7.js');
20
+ require('./chunk-SV2TEZ2M.js');
21
+ require('./chunk-ALJJRZNJ.js');
22
+ require('./chunk-XNYIZMNQ.js');
23
+ require('./chunk-DIAWYWT5.js');
24
+ require('./chunk-4OXHLTCP.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 = _chunkHDKXSHGAjs.EXIT_WORKSPACE_MISMATCH; exports.authStatusLine = _chunkHDKXSHGAjs.authStatusLine; exports.clearPendingClaim = _chunkHDKXSHGAjs.clearPendingClaim; exports.clearSatisfiedPendingClaim = _chunkHDKXSHGAjs.clearSatisfiedPendingClaim; exports.handleRegister = _chunkHDKXSHGAjs.handleRegister; exports.handleStatus = _chunkHDKXSHGAjs.handleStatus; exports.handleWait = _chunkHDKXSHGAjs.handleWait; exports.httpJson = _chunkHDKXSHGAjs.httpJson; exports.readPendingAuthClaim = _chunkHDKXSHGAjs.readPendingAuthClaim; exports.readStatusBanner = _chunkHDKXSHGAjs.readStatusBanner; exports.registerAuthCommands = _chunkHDKXSHGAjs.registerAuthCommands; exports.reportApprovalLinkShown = _chunkHDKXSHGAjs.reportApprovalLinkShown; exports.reportSetupCompleted = _chunkHDKXSHGAjs.reportSetupCompleted; exports.resolvePendingAuthClaimForResume = _chunkHDKXSHGAjs.resolvePendingAuthClaimForResume; exports.statusBannerLine = _chunkHDKXSHGAjs.statusBannerLine;
@@ -3,24 +3,24 @@ import {
3
3
  } from "./chunk-7I4B6V2S.mjs";
4
4
  import {
5
5
  DeeplineClient
6
- } from "./chunk-BBFWIYAF.mjs";
6
+ } from "./chunk-ZUOKIBLJ.mjs";
7
7
  import {
8
8
  iterateCursorPages,
9
9
  requireBillingIdempotencyKey
10
- } from "./chunk-YAW7ET4P.mjs";
10
+ } from "./chunk-VTDAJZIJ.mjs";
11
11
  import "./chunk-L2VKAASU.mjs";
12
- import "./chunk-CS2AEAD6.mjs";
12
+ import "./chunk-N4TR6QRI.mjs";
13
13
  import "./chunk-S3A4IXBQ.mjs";
14
- import "./chunk-UBKA33KY.mjs";
14
+ import "./chunk-BMCRTI6Z.mjs";
15
15
  import {
16
16
  createTimestampedName,
17
17
  getAuthedHttpClient,
18
18
  openInBrowser,
19
19
  printCommandEnvelope,
20
20
  shouldEmitJson
21
- } from "./chunk-56JE475N.mjs";
22
- import "./chunk-ZVAD65CF.mjs";
23
- import "./chunk-JM52ATUS.mjs";
21
+ } from "./chunk-66XDYH5T.mjs";
22
+ import "./chunk-MADTHS56.mjs";
23
+ import "./chunk-EHVFBD36.mjs";
24
24
  import {
25
25
  AuthError,
26
26
  ConfigError
@@ -29,7 +29,7 @@ import "./chunk-DLIRSHV6.mjs";
29
29
  import {
30
30
  DeeplineError
31
31
  } from "./chunk-HBL4PM5Q.mjs";
32
- import "./chunk-A2VCFBZN.mjs";
32
+ import "./chunk-7L6QNHUL.mjs";
33
33
  import "./chunk-WZYKRD7T.mjs";
34
34
  import "./chunk-KRD6H754.mjs";
35
35