deepline 0.3.500 → 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.
- package/dist/bundling-sources/sdk/src/plays/client-core.ts +45 -7
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +18 -0
- package/dist/bundling-sources/shared_libs/play-data-plane/r2.ts +155 -0
- package/dist/bundling-sources/shared_libs/play-runtime/app-runtime-api.ts +7 -1
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +2 -1
- package/dist/bundling-sources/shared_libs/play-runtime/durable-invocation-fence.ts +3 -1
- package/dist/bundling-sources/shared_libs/play-runtime/internal-bootstrap-token.ts +54 -1
- package/dist/bundling-sources/shared_libs/play-runtime/launch-identity.ts +12 -0
- package/dist/bundling-sources/shared_libs/play-runtime/protocol.ts +13 -0
- package/dist/bundling-sources/shared_libs/play-runtime/run-identity.ts +56 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +21 -10
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/runtime-heartbeat.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/runtime-progress-push.ts +1 -2
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/runtime-terminal-push.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-launch-transport.ts +9 -2
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-lifecycle.ts +31 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-payload-transport.ts +74 -3
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-runtime-watchdog.ts +226 -2
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-api-paths.ts +41 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-api.ts +5 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-app-transport.ts +374 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-authority.ts +5 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-environment.ts +49 -9
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-gateway-oidc.ts +25 -3
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-gateway-profile.ts +12 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-gateway-sandbox-credential.ts +338 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-gateway-staging.ts +417 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backend.ts +15 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +184 -11
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-shared.ts +17 -3
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/gateway-progress-registry.ts +9 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-progress.ts +18 -2
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +176 -16
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-gateway-attempt.ts +81 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-gateway-staging-journal.ts +708 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-gateway-staging-teardown.ts +160 -0
- package/dist/bundling-sources/shared_libs/play-runtime/workflow-executor-auth.ts +4 -0
- package/dist/cli/{auth-WK3FDPRP.mjs → auth-6ECHXOI4.mjs} +5 -5
- package/dist/cli/auth-VP7PMXKQ.js +43 -0
- package/dist/cli/{billing-O3LVKXE7.mjs → billing-75NZYRXA.mjs} +8 -8
- package/dist/cli/{billing-K7UHZUF4.js → billing-QRR7O6BD.js} +81 -81
- package/dist/cli/{chunk-RAZ3TMOS.js → chunk-463ZOO2L.js} +7 -7
- package/dist/cli/{chunk-W64Y7GE7.js → chunk-4OXHLTCP.js} +1 -1
- package/dist/cli/{chunk-5TVY5OEH.mjs → chunk-5S7MLAI7.mjs} +11 -11
- package/dist/cli/{chunk-SNJNPRIV.js → chunk-5X4AUFYW.js} +7 -7
- package/dist/cli/{chunk-CIV5GJAE.mjs → chunk-66XDYH5T.mjs} +2 -2
- package/dist/cli/{chunk-SRS2D27G.mjs → chunk-7L6QNHUL.mjs} +1 -1
- package/dist/cli/{chunk-GBRI644Y.js → chunk-APAHMCGR.js} +53 -53
- package/dist/cli/{chunk-UBKA33KY.mjs → chunk-BMCRTI6Z.mjs} +22 -1
- package/dist/cli/{chunk-K3BHKRMS.js → chunk-BOFCF4L7.js} +3 -3
- package/dist/cli/{chunk-KEBNXJSK.js → chunk-CJJ7JBM2.js} +16 -16
- package/dist/cli/{chunk-5JXGYSXH.mjs → chunk-EHVFBD36.mjs} +1 -1
- package/dist/cli/{chunk-5KAZGZG7.js → chunk-EKF4DKUA.js} +5 -5
- package/dist/cli/{chunk-IX2DPYIV.js → chunk-EKZQ5LQO.js} +3 -3
- package/dist/cli/{chunk-JHNFUCVT.mjs → chunk-EOO7OSS4.mjs} +4 -4
- package/dist/cli/{chunk-GOO4VI5M.js → chunk-FS7XYDOF.js} +16 -16
- package/dist/cli/{chunk-G3NA4R7M.js → chunk-HDKXSHGA.js} +53 -53
- package/dist/cli/{chunk-PHGMC33I.js → chunk-J6SVNKRP.js} +2 -2
- package/dist/cli/{chunk-L7X6ADNM.mjs → chunk-J74N375S.mjs} +4 -4
- package/dist/cli/{chunk-X7ODM2LK.js → chunk-KTOAJP4N.js} +6 -6
- package/dist/cli/{chunk-CBZTKDXW.mjs → chunk-MADTHS56.mjs} +1 -1
- package/dist/cli/{chunk-IZ6YWXIK.mjs → chunk-MSLXAVVK.mjs} +2 -2
- package/dist/cli/{chunk-Q2FXZ4Z5.js → chunk-N2TJJNCW.js} +96 -96
- package/dist/cli/{chunk-CS2AEAD6.mjs → chunk-N4TR6QRI.mjs} +1 -1
- package/dist/cli/{chunk-XCBOOB73.mjs → chunk-NA3J3F2Z.mjs} +1 -1
- package/dist/cli/{chunk-QRKCCY4L.mjs → chunk-O3DDVP7Z.mjs} +1 -1
- package/dist/cli/{chunk-XUOZYAP5.mjs → chunk-OKOXB3LY.mjs} +2 -2
- package/dist/cli/{chunk-SNPZ2QWL.js → chunk-PNF2ZU4R.js} +8 -8
- package/dist/cli/{chunk-X5SO7RV5.mjs → chunk-PXIF74UJ.mjs} +4 -4
- package/dist/cli/{chunk-74VKLBJD.js → chunk-QQ3JJYE2.js} +14 -14
- package/dist/cli/{chunk-4CJWOLOS.mjs → chunk-RFV7PPLS.mjs} +3 -3
- package/dist/cli/{chunk-EQR5O2D2.js → chunk-RNSHCJME.js} +3 -3
- package/dist/cli/{chunk-REIKJREB.js → chunk-RU5ROUFO.js} +5 -5
- package/dist/cli/{chunk-TOGCDNMH.js → chunk-SV2TEZ2M.js} +4 -4
- package/dist/cli/{chunk-MAHLIWOF.mjs → chunk-T4U245E4.mjs} +2 -2
- package/dist/cli/{chunk-T4AGTOKQ.mjs → chunk-T7E3XEPG.mjs} +6 -6
- package/dist/cli/{chunk-RHE4YI4H.js → chunk-TOE7LHEA.js} +6 -6
- package/dist/cli/{chunk-FJZUG633.mjs → chunk-UJRN6YP6.mjs} +3 -3
- package/dist/cli/{chunk-BIE57V6K.js → chunk-UR7JOSLT.js} +360 -300
- package/dist/cli/{chunk-5AC7NUQN.mjs → chunk-V5NHEYU7.mjs} +5 -5
- package/dist/cli/{chunk-PGRPNRP6.mjs → chunk-VD2374K7.mjs} +1 -1
- package/dist/cli/{chunk-VLCY4F6E.js → chunk-VL72UKNW.js} +26 -26
- package/dist/cli/{chunk-56QAHX2K.mjs → chunk-VTDAJZIJ.mjs} +90 -30
- package/dist/cli/{chunk-Z5LE7NXM.js → chunk-VVEMPC2I.js} +2 -2
- package/dist/cli/{chunk-U5GFP26N.js → chunk-W6JTHVPF.js} +21 -21
- package/dist/cli/{chunk-C7355NMU.mjs → chunk-WJUDAHIQ.mjs} +1 -1
- package/dist/cli/{chunk-XDVT3GOM.js → chunk-WSGXBROE.js} +22 -1
- package/dist/cli/{chunk-LNMY2T5S.js → chunk-XEBFJ2PH.js} +41 -41
- package/dist/cli/{chunk-HI2BFS5S.mjs → chunk-Z6AUOV7D.mjs} +2 -2
- package/dist/cli/{chunk-VPVEPGYS.mjs → chunk-ZUOKIBLJ.mjs} +2 -2
- package/dist/cli/{chunk-V7MZYIA7.mjs → chunk-ZUQHQGC5.mjs} +5 -5
- package/dist/cli/{csv-MWCWNIBJ.js → csv-JXX2LXK5.js} +13 -13
- package/dist/cli/{csv-DEUOSTEB.mjs → csv-RZJ4SOIL.mjs} +4 -4
- package/dist/cli/{db-QM5R5BRY.mjs → db-MUTT2NWI.mjs} +8 -8
- package/dist/cli/{db-Q6IRXTTG.js → db-T2KJNONM.js} +29 -29
- package/dist/cli/{describe-CQZ7TBOG.mjs → describe-K3UMAAVO.mjs} +19 -19
- package/dist/cli/describe-SEXUJLE4.js +50 -0
- package/dist/cli/describe-core.d.mts +2 -2
- package/dist/cli/describe-core.d.ts +2 -2
- package/dist/cli/{executions-DCCDXSQI.js → executions-7HSLDRHR.js} +10 -10
- package/dist/cli/{executions-SWBKFCY2.mjs → executions-PHS4R2OX.mjs} +8 -8
- package/dist/cli/{feedback-EU3EYF4V.js → feedback-BJZRM637.js} +8 -8
- package/dist/cli/{feedback-Q27HN3SB.mjs → feedback-RWMDCIDF.mjs} +4 -4
- package/dist/cli/git-VNS7UQWN.js +25 -0
- package/dist/cli/{git-SEQFTQ4N.mjs → git-YW6VHYZG.mjs} +5 -5
- package/dist/cli/index.js +137 -137
- package/dist/cli/index.mjs +40 -40
- package/dist/cli/{legacy-noops-LCQDEVA3.js → legacy-noops-2WUV2XD7.js} +8 -8
- package/dist/cli/{legacy-noops-XKH4VREG.mjs → legacy-noops-5UBSUPGG.mjs} +5 -5
- package/dist/cli/{monitors-4XWBV46I.mjs → monitors-HWOQO3OK.mjs} +9 -9
- package/dist/cli/{monitors-DJCID6X5.js → monitors-YZZRKSTG.js} +97 -97
- package/dist/cli/{org-BU4FG5PN.js → org-JY7HLHBA.js} +74 -74
- package/dist/cli/{org-PSBGXBRW.mjs → org-NCXT6RB4.mjs} +8 -8
- package/dist/cli/{pages-3PHJYXYB.js → pages-6ZOHXL6X.js} +20 -20
- package/dist/cli/{pages-7QLXLJGQ.mjs → pages-QJO53QAT.mjs} +8 -8
- package/dist/cli/{play-4OLYXRCG.mjs → play-SQRS7JN3.mjs} +20 -20
- package/dist/cli/{play-S3CWPQKB.js → play-TAYGSR35.js} +336 -336
- package/dist/cli/{providers-JT7C2QTC.mjs → providers-3IR3N5DT.mjs} +8 -8
- package/dist/cli/{providers-U4JUMLB2.js → providers-4Q5LOIQ5.js} +11 -11
- package/dist/cli/{quickstart-OUSMXLYZ.js → quickstart-ITNUZENY.js} +6 -6
- package/dist/cli/{quickstart-DQF5CF2I.mjs → quickstart-KCZCYO6B.mjs} +4 -4
- package/dist/cli/{run-RECNI77K.mjs → run-JCWRWDSK.mjs} +24 -24
- package/dist/cli/{run-6XXHLB4X.js → run-YQ57LMKN.js} +42 -42
- package/dist/cli/run-identity-HFYABUJS.js +31 -0
- package/dist/cli/{run-identity-MRNCEGV2.mjs → run-identity-MNRZS2N3.mjs} +9 -3
- package/dist/cli/{search-JN7K3GC6.mjs → search-FUM27HQP.mjs} +9 -9
- package/dist/cli/search-I425FRTK.js +32 -0
- package/dist/cli/{search-output-L6PC5SPM.mjs → search-output-EWEYT34M.mjs} +4 -4
- package/dist/cli/{search-output-JGNYXDWZ.js → search-output-XAMWKRJH.js} +6 -6
- package/dist/cli/{secrets-TX6PCZ77.js → secrets-2IRRRZBL.js} +17 -17
- package/dist/cli/{secrets-UOXZWHBY.mjs → secrets-YTI4IAKR.mjs} +8 -8
- package/dist/cli/{sessions-DTE733EH.mjs → sessions-EFS4KUPF.mjs} +5 -5
- package/dist/cli/{sessions-GCEIX4KB.js → sessions-HWTRDXBQ.js} +6 -6
- package/dist/cli/{settings-UGXSDHR5.js → settings-FRVEIOKR.js} +80 -80
- package/dist/cli/{settings-ZGIMRCTC.mjs → settings-NTOO42DY.mjs} +13 -13
- package/dist/cli/{setup-JYB6Z376.js → setup-6ZIOAE2V.js} +49 -49
- package/dist/cli/{setup-UT7AO53D.mjs → setup-PAVQPALX.mjs} +9 -9
- package/dist/cli/{skills-4QJCMN7J.mjs → skills-3O3XTPUM.mjs} +7 -7
- package/dist/cli/skills-6ZNMO2PR.js +36 -0
- package/dist/cli/{tools-RGNXIAA6.mjs → tools-7QSB65UL.mjs} +18 -18
- package/dist/cli/tools-DPV2JES6.js +57 -0
- package/dist/cli/update-Q5GUDEAW.js +34 -0
- package/dist/cli/{update-Q62EVSXZ.mjs → update-T6CYS5ZT.mjs} +9 -9
- package/dist/cli/{workflow-GENV47RD.js → workflow-4KMJBMGX.js} +19 -19
- package/dist/cli/{workflow-YNIOWM7J.mjs → workflow-OMSXZ73T.mjs} +9 -9
- package/dist/{client-Cj3UqrCZ.d.ts → client-Bn8FwKGO.d.ts} +1 -1
- package/dist/{client-DSCTVVRj.d.mts → client-CfNRmjLK.d.mts} +1 -1
- package/dist/{client-core-dI4KTuWS.d.ts → client-core-B91EV0WS.d.ts} +19 -0
- package/dist/{client-core-B-8DTIN1.d.mts → client-core-BG8Cgrmk.d.mts} +19 -0
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +19 -19
- package/dist/index.mjs +8 -8
- package/dist/install-integrity.json +114 -108
- package/dist/plays/play-description.d.mts +1 -1
- package/dist/plays/play-description.d.ts +1 -1
- package/dist/plays/run-request.d.mts +1 -1
- package/dist/plays/run-request.d.ts +1 -1
- package/dist/plays/run-request.js +3 -3
- package/dist/plays/run-request.mjs +2 -2
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/dist/server.d.mts +2 -2
- package/dist/server.d.ts +2 -2
- package/dist/server.js +7 -7
- package/dist/server.mjs +5 -5
- package/package.json +1 -1
- package/dist/cli/auth-H4PCVUN3.js +0 -43
- package/dist/cli/describe-BZ544347.js +0 -50
- package/dist/cli/git-NW6BAXX2.js +0 -25
- package/dist/cli/run-identity-G257GQED.js +0 -25
- package/dist/cli/search-BIQ62ZBE.js +0 -32
- package/dist/cli/skills-53LCPB5R.js +0 -36
- package/dist/cli/tools-HKJK6UNJ.js +0 -57
- package/dist/cli/update-QMZSFTFZ.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-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
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-
|
|
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-
|
|
6
|
+
} from "./chunk-ZUOKIBLJ.mjs";
|
|
7
7
|
import {
|
|
8
8
|
iterateCursorPages,
|
|
9
9
|
requireBillingIdempotencyKey
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-VTDAJZIJ.mjs";
|
|
11
11
|
import "./chunk-L2VKAASU.mjs";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-N4TR6QRI.mjs";
|
|
13
13
|
import "./chunk-S3A4IXBQ.mjs";
|
|
14
|
-
import "./chunk-
|
|
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-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
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-
|
|
32
|
+
import "./chunk-7L6QNHUL.mjs";
|
|
33
33
|
import "./chunk-WZYKRD7T.mjs";
|
|
34
34
|
import "./chunk-KRD6H754.mjs";
|
|
35
35
|
|