deepline 0.3.409 → 0.3.411
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/agent-runtime.ts +18 -1
- package/dist/bundling-sources/sdk/src/client.ts +206 -333
- package/dist/bundling-sources/sdk/src/compat.ts +45 -2
- package/dist/bundling-sources/sdk/src/db/query.ts +9 -10
- package/dist/bundling-sources/sdk/src/http.ts +38 -20
- package/dist/bundling-sources/sdk/src/index.ts +4 -5
- package/dist/bundling-sources/sdk/src/play.ts +10 -10
- package/dist/bundling-sources/sdk/src/plays/bundle-play-file.ts +6 -4
- package/dist/bundling-sources/sdk/src/plays/check-local-play-graph.ts +114 -0
- package/dist/bundling-sources/sdk/src/plays/client.ts +431 -0
- package/dist/bundling-sources/sdk/src/plays/local-play-execution.ts +2 -2
- package/dist/bundling-sources/sdk/src/plays/run-request.ts +106 -16
- package/dist/bundling-sources/sdk/src/release.ts +13 -7
- package/dist/bundling-sources/sdk/src/runs/read-errors.ts +8 -0
- package/dist/bundling-sources/sdk/src/runs/watch-polling.ts +124 -13
- package/dist/bundling-sources/sdk/src/tool-calls.ts +108 -19
- package/dist/bundling-sources/sdk/src/types.ts +18 -0
- package/dist/bundling-sources/shared_libs/integration-contracts/execute-retry-contract.ts +37 -0
- package/dist/bundling-sources/shared_libs/integration-contracts/package.json +3 -0
- package/dist/bundling-sources/shared_libs/monitors/package.json +1 -1
- package/dist/bundling-sources/shared_libs/play-data-plane/r2.ts +3 -1
- package/dist/bundling-sources/shared_libs/play-runtime/async-operation.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +277 -76
- package/dist/bundling-sources/shared_libs/play-runtime/ctx-types.ts +6 -0
- package/dist/bundling-sources/shared_libs/play-runtime/dataset-row-input.ts +124 -0
- package/dist/bundling-sources/shared_libs/play-runtime/durable-call-cache.ts +6 -62
- package/dist/bundling-sources/shared_libs/play-runtime/durable-receipt-execution.ts +1 -0
- package/dist/bundling-sources/shared_libs/play-runtime/durable-tool-identity.ts +67 -0
- package/dist/bundling-sources/shared_libs/play-runtime/execute-server-timing.ts +64 -6
- package/dist/bundling-sources/shared_libs/play-runtime/freshness-receipt-execution.ts +1 -5
- package/dist/bundling-sources/shared_libs/play-runtime/ledger-safe-payload.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/play-artifact-runtime-contract.ts +3 -0
- package/dist/bundling-sources/shared_libs/play-runtime/play-http-request.ts +10 -0
- package/dist/bundling-sources/shared_libs/play-runtime/query-result-dataset.ts +3 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/egress-probe.ts +3 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +26 -16
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/runtime-heartbeat.ts +36 -11
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/runtime-terminal-push.ts +35 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-launch-transport.ts +21 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-payload-transport.ts +21 -6
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-session-execution.ts +11 -2
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona.ts +85 -20
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-api.ts +71 -13
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-execution-queries.ts +100 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-pool.ts +9 -5
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +337 -146
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-shared.ts +26 -12
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-rate-state.ts +3 -1
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +425 -102
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/run-ledger-dispatch-authority.ts +4 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/run-ledger-outbox-recovery.ts +4 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-event-search.ts +9 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-capacity.ts +181 -124
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-worker-wake.ts +152 -0
- package/dist/bundling-sources/shared_libs/play-runtime/test-runtime-seams.ts +5 -3
- package/dist/bundling-sources/shared_libs/play-runtime/tool-cache-policy.ts +31 -0
- package/dist/bundling-sources/shared_libs/play-runtime/transient-service-error.ts +10 -0
- package/dist/bundling-sources/shared_libs/plays/ambiguous-write-error.ts +25 -0
- package/dist/bundling-sources/shared_libs/plays/artifact-types.ts +4 -0
- package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +63 -68
- package/dist/bundling-sources/shared_libs/plays/bundling/index.ts +129 -63
- package/dist/bundling-sources/shared_libs/plays/contracts.ts +14 -0
- package/dist/bundling-sources/shared_libs/plays/enrich-play-compiler.ts +58 -16
- package/dist/bundling-sources/shared_libs/plays/fetch-http-error.ts +50 -0
- package/dist/bundling-sources/shared_libs/plays/source-authoring-edition.ts +351 -0
- package/dist/bundling-sources/shared_libs/plays/tool-list-getter-mode.ts +9 -0
- package/dist/bundling-sources/shared_libs/plays/tool-result-types.ts +1 -1
- package/dist/cli/auth-M7TBLW55.js +40 -0
- package/dist/cli/{auth-5HIIACF7.mjs → auth-YD6ZTMB2.mjs} +6 -6
- package/dist/cli/{billing-4275N7FL.js → billing-2L3MOB42.js} +84 -84
- package/dist/cli/{billing-EVZ3ZWKC.mjs → billing-ZT46GV4C.mjs} +8 -8
- package/dist/cli/{chunk-ZAAKSJAS.js → chunk-27GJKC5Q.js} +17 -10
- package/dist/cli/{chunk-UHNDVD3P.js → chunk-2H4EY7KH.js} +100 -41
- package/dist/cli/{chunk-GAICVLKL.js → chunk-2NI6DHN7.js} +2 -2
- package/dist/cli/{chunk-JGHG4NBA.js → chunk-2WUY3VNK.js} +19 -4
- package/dist/cli/{chunk-FHPCKULR.mjs → chunk-4BA6ATHA.mjs} +2 -2
- package/dist/cli/{chunk-RTCDW2GU.js → chunk-4O4WNFFC.js} +170 -49
- package/dist/cli/{chunk-OSDXE27V.mjs → chunk-4PG4ARL2.mjs} +17 -10
- package/dist/cli/{chunk-AU4OFDFX.js → chunk-5IGDNBG7.js} +26 -26
- package/dist/cli/{chunk-WYQO2CBS.mjs → chunk-5LRWWMRV.mjs} +149 -28
- package/dist/cli/{chunk-PMVFAYL7.mjs → chunk-63ILLN5H.mjs} +2 -2
- package/dist/cli/chunk-6AUE6JXY.js +35 -0
- package/dist/cli/chunk-7DSMMCXP.js +501 -0
- package/dist/cli/{chunk-6BJK4EJ3.mjs → chunk-AARWVK4C.mjs} +2132 -65
- package/dist/cli/{chunk-FERRDNMO.js → chunk-AD47BXN2.js} +5 -5
- package/dist/cli/{chunk-J6DCKJNM.mjs → chunk-BJV3VSKE.mjs} +16 -1
- package/dist/cli/{chunk-S6R3OX7B.js → chunk-E4CABWXL.js} +25 -2
- package/dist/cli/{chunk-NXGCO4JB.mjs → chunk-E4IXDAZI.mjs} +5 -0
- package/dist/cli/{chunk-BEVLCKXG.mjs → chunk-E4KBNNNB.mjs} +1 -1
- package/dist/cli/{chunk-2PRO2JTX.mjs → chunk-E52TKKVI.mjs} +36 -284
- package/dist/cli/chunk-FR2ILQ4G.mjs +8 -0
- package/dist/cli/{chunk-2GI3QD3L.js → chunk-FRVPOXGB.js} +644 -330
- package/dist/cli/chunk-G43JLBDE.mjs +501 -0
- package/dist/cli/{chunk-BZAMOCPA.mjs → chunk-IMZ56EOH.mjs} +3 -3
- package/dist/cli/chunk-IPGV6VFA.mjs +6084 -0
- package/dist/cli/{chunk-IT3XBJQR.mjs → chunk-IR3AKJAY.mjs} +330 -625
- package/dist/cli/chunk-J33TSWO5.js +8 -0
- package/dist/cli/chunk-JQMZUWNM.mjs +35 -0
- package/dist/cli/chunk-JYHSEGRM.js +6084 -0
- package/dist/cli/{chunk-JI2B4RZP.mjs → chunk-KCC3FKIW.mjs} +71 -12
- package/dist/cli/{chunk-6IKARAYD.mjs → chunk-L2VKAASU.mjs} +23 -0
- package/dist/cli/{chunk-O3VSXP2F.js → chunk-LWBM5FFL.js} +50 -50
- package/dist/cli/{chunk-VWBTTJYQ.mjs → chunk-M6OASCVL.mjs} +6 -3
- package/dist/cli/{chunk-YHPYUZZX.mjs → chunk-MAMVGOSC.mjs} +1 -1
- package/dist/cli/{chunk-Q2E4E4FJ.js → chunk-NPBJI7RE.js} +8 -8
- package/dist/cli/chunk-NQWIZ5PZ.js +313 -0
- package/dist/cli/{chunk-HQXL5526.mjs → chunk-NUX2QHNC.mjs} +1 -1
- package/dist/cli/{chunk-TQNHMWUR.mjs → chunk-OGSXENOF.mjs} +5 -2
- package/dist/cli/{chunk-SEFMGO3Z.js → chunk-OQQOXSYA.js} +2184 -117
- package/dist/cli/{chunk-FJCIUF34.js → chunk-OZSC6CEW.js} +128 -376
- package/dist/cli/{chunk-NZSF57UO.mjs → chunk-PO2VU6WV.mjs} +2 -2
- package/dist/cli/{chunk-7P5AA3SN.js → chunk-PPDBRJRW.js} +6 -1
- package/dist/cli/{chunk-ILHRA7AD.js → chunk-QADCFSGH.js} +7 -7
- package/dist/cli/{chunk-N44JHMKY.mjs → chunk-RFES6Q2J.mjs} +452 -138
- package/dist/cli/{chunk-DEC3JECC.js → chunk-RMINBDYY.js} +5 -2
- package/dist/cli/{chunk-WLOCMJWV.js → chunk-TPFD4F5S.js} +426 -721
- package/dist/cli/{chunk-V76R6HMV.js → chunk-U5AQKE3T.js} +1029 -806
- package/dist/cli/{chunk-PBZYY7VZ.mjs → chunk-UAEVKAUR.mjs} +734 -511
- package/dist/cli/{chunk-WHG43Z67.js → chunk-VGHWJL4W.js} +11 -8
- package/dist/cli/chunk-VKKVSFRD.js +62 -0
- package/dist/cli/{chunk-GSK6NHVM.js → chunk-WU4U6VSB.js} +5 -5
- package/dist/cli/chunk-XAB47ZRV.mjs +313 -0
- package/dist/cli/{chunk-JRAVVJ3T.mjs → chunk-XJD6LZCO.mjs} +2 -2
- package/dist/cli/chunk-ZCALLYF6.mjs +62 -0
- package/dist/cli/{chunk-YD7B53RW.js → chunk-ZHWBU36H.js} +12 -12
- package/dist/cli/{csv-A2MP6EFV.mjs → csv-BKNRRW7D.mjs} +5 -5
- package/dist/cli/{csv-BBOTCGQY.js → csv-SVDP2EU7.js} +14 -14
- package/dist/cli/{db-3W5DMTUX.mjs → db-LU4KLRM6.mjs} +15 -20
- package/dist/cli/{db-G4CODDCA.js → db-OQ6S7TTZ.js} +42 -47
- package/dist/cli/{describe-PQTQ5B6F.js → describe-45TGETKR.js} +27 -22
- package/dist/cli/{describe-XYJ2ZT4M.mjs → describe-U4KOGDRA.mjs} +20 -15
- package/dist/cli/describe-core.d.mts +2 -2
- package/dist/cli/describe-core.d.ts +2 -2
- package/dist/cli/describe-core.js +6 -6
- package/dist/cli/describe-core.mjs +5 -5
- package/dist/cli/{executions-UR67CA5H.mjs → executions-2GAAUXLA.mjs} +8 -8
- package/dist/cli/{executions-TLANVR7Y.js → executions-VZN56VRC.js} +10 -10
- package/dist/cli/{feedback-6C2YTRJL.js → feedback-NS76B5GU.js} +13 -9
- package/dist/cli/{feedback-WHCMGEIL.mjs → feedback-XW5IWA5R.mjs} +11 -7
- package/dist/cli/{git-GWLB6VSA.mjs → git-CLI66XP6.mjs} +6 -6
- package/dist/cli/git-VGYRGFEN.js +24 -0
- package/dist/cli/index.js +236 -348
- package/dist/cli/index.mjs +162 -274
- package/dist/cli/{legacy-noops-ZUFA7RWI.js → legacy-noops-HCFB3ZOV.js} +9 -9
- package/dist/cli/{legacy-noops-KF4XIFEF.mjs → legacy-noops-ODDOMLBL.mjs} +6 -6
- package/dist/cli/{monitors-TB3K2IVE.js → monitors-7WXQ7JFT.js} +94 -94
- package/dist/cli/{monitors-6UOIDIMB.mjs → monitors-ZXX456TE.mjs} +8 -8
- package/dist/cli/{org-CKWMBPIR.js → org-YLX5PHBQ.js} +68 -68
- package/dist/cli/{org-WGHHMVDZ.mjs → org-YUN3TLNP.mjs} +8 -8
- package/dist/cli/{play-LYPAXCLD.mjs → play-LL73A7EP.mjs} +533 -98
- package/dist/cli/{play-N2B3KAVS.js → play-YGOXL52D.js} +1067 -632
- package/dist/cli/{providers-6DI5BVZJ.mjs → providers-35QSAUHL.mjs} +8 -8
- package/dist/cli/{providers-UR42MD6Z.js → providers-RHCIU2PX.js} +11 -11
- package/dist/cli/{quickstart-MNA2S6PO.mjs → quickstart-6BN3LCZH.mjs} +5 -5
- package/dist/cli/{quickstart-FCJG4XGB.js → quickstart-ORMM4NRK.js} +7 -7
- package/dist/cli/search-EWDMUPHR.js +30 -0
- package/dist/cli/{search-VPPYUJ2M.mjs → search-GAERWLSE.mjs} +9 -9
- package/dist/cli/{secrets-QOSMVO36.js → secrets-3AFCTGT7.js} +17 -17
- package/dist/cli/{secrets-DRI4W7Z5.mjs → secrets-FCL5PALY.mjs} +8 -8
- package/dist/cli/sessions-3OEHEQG7.js +16 -0
- package/dist/cli/{sessions-DQNUKP43.mjs → sessions-RSSL7I7O.mjs} +6 -6
- package/dist/cli/{settings-DWDK3Y2R.mjs → settings-GE4NRE7Y.mjs} +12 -12
- package/dist/cli/{settings-JUGGCOPS.js → settings-RX5K4I7H.js} +79 -79
- package/dist/cli/{setup-AWBHNYXK.js → setup-N3ZNAEL5.js} +45 -44
- package/dist/cli/{setup-D5DWVNY4.mjs → setup-X3RXGG4F.mjs} +11 -10
- package/dist/cli/{skills-YV2XR35J.mjs → skills-5JEAJBDE.mjs} +7 -7
- package/dist/cli/skills-VAAQVEQC.js +29 -0
- package/dist/cli/tools-BYYOT2DU.js +44 -0
- package/dist/cli/{tools-VFJYHNV2.mjs → tools-JOKUWEBZ.mjs} +19 -14
- package/dist/cli/update-36G4ZD7B.js +31 -0
- package/dist/cli/{update-IM6VOTGL.mjs → update-UBHEVFR3.mjs} +11 -9
- package/dist/cli/{workflow-26URBWPV.mjs → workflow-FR6EXAXF.mjs} +44 -20
- package/dist/cli/{workflow-3BS6U6SL.js → workflow-SZAVOHN6.js} +54 -30
- package/dist/{client-BfInrZPB.d.mts → client-74k4IPh6.d.mts} +135 -54
- package/dist/{client-BMjJFpan.d.ts → client-C1IK1f8c.d.ts} +135 -54
- package/dist/{compiler-manifest-Ycx-hoAr.d.mts → compiler-manifest-lzWpbV3w.d.mts} +83 -66
- package/dist/{compiler-manifest-Ycx-hoAr.d.ts → compiler-manifest-lzWpbV3w.d.ts} +83 -66
- package/dist/{index-CZXgiN3E.d.mts → index-C8Cy-YTm.d.ts} +5 -1
- package/dist/{index-NPG5pqxQ.d.ts → index-CtNK-0nI.d.mts} +5 -1
- package/dist/index.d.mts +47 -9
- package/dist/index.d.ts +47 -9
- package/dist/index.js +17 -14
- package/dist/index.mjs +13 -10
- package/dist/install-integrity.json +118 -102
- package/dist/plays/bundle-play-file.d.mts +3 -3
- package/dist/plays/bundle-play-file.d.ts +3 -3
- package/dist/plays/bundle-play-file.mjs +5 -4
- package/dist/plays/csv-data-input.js +3 -3
- package/dist/plays/csv-data-input.mjs +2 -2
- package/dist/plays/play-description.d.mts +2 -2
- package/dist/plays/play-description.d.ts +2 -2
- package/dist/plays/run-request.d.mts +2 -2
- package/dist/plays/run-request.d.ts +2 -2
- package/dist/plays/run-request.js +11 -3
- package/dist/plays/run-request.mjs +10 -2
- package/dist/release.d.mts +15 -6
- package/dist/release.d.ts +15 -6
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/package.json +2 -2
- package/dist/cli/auth-F6BX32XZ.js +0 -40
- package/dist/cli/chunk-264PC2RN.mjs +0 -83
- package/dist/cli/chunk-44ZTYHMQ.mjs +0 -155
- package/dist/cli/chunk-53HN7WZN.js +0 -392
- package/dist/cli/chunk-7AALNGTA.mjs +0 -392
- package/dist/cli/chunk-ALD4COBH.js +0 -155
- package/dist/cli/chunk-CLJGSOVM.mjs +0 -1716
- package/dist/cli/chunk-WNUR6VP5.js +0 -83
- package/dist/cli/chunk-Z4VNJOF7.js +0 -1716
- package/dist/cli/git-VQFF6D7C.js +0 -24
- package/dist/cli/search-NCEEONMQ.js +0 -30
- package/dist/cli/sessions-3WYKQABW.js +0 -16
- package/dist/cli/skills-AKPAJVSO.js +0 -29
- package/dist/cli/tools-RBKEK6PM.js +0 -39
- package/dist/cli/update-VFNUBLDA.js +0 -29
|
@@ -6,9 +6,9 @@ import {
|
|
|
6
6
|
} from "./chunk-H7HIDGZ7.mjs";
|
|
7
7
|
import {
|
|
8
8
|
DeeplineClient
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-UAEVKAUR.mjs";
|
|
10
|
+
import "./chunk-L2VKAASU.mjs";
|
|
11
|
+
import "./chunk-KCC3FKIW.mjs";
|
|
12
12
|
import "./chunk-EIMG75BT.mjs";
|
|
13
13
|
import "./chunk-UBKA33KY.mjs";
|
|
14
14
|
import {
|
|
@@ -16,12 +16,12 @@ import {
|
|
|
16
16
|
printJson,
|
|
17
17
|
shouldEmitJson,
|
|
18
18
|
sleep
|
|
19
|
-
} from "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
19
|
+
} from "./chunk-XJD6LZCO.mjs";
|
|
20
|
+
import "./chunk-E52TKKVI.mjs";
|
|
21
|
+
import "./chunk-MAMVGOSC.mjs";
|
|
22
22
|
import "./chunk-DLIRSHV6.mjs";
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-E4IXDAZI.mjs";
|
|
24
|
+
import "./chunk-OGSXENOF.mjs";
|
|
25
25
|
import "./chunk-WZYKRD7T.mjs";
|
|
26
26
|
import "./chunk-KRD6H754.mjs";
|
|
27
27
|
|
|
@@ -230,7 +230,7 @@ function renderExecuteStep(command, options = {
|
|
|
230
230
|
const runIfJs = options.nativeRunIf ? "null" : renderRunIfFunction(command) ?? "null";
|
|
231
231
|
const description = command.description ? `,
|
|
232
232
|
description: ${stringLiteral(command.description)}` : "";
|
|
233
|
-
const force = options.force ? `,
|
|
233
|
+
const force = options.force && !options.explicitFreshness ? `,
|
|
234
234
|
force: true` : "";
|
|
235
235
|
const legacyEnvelope = options.legacyEnvelope ? `,
|
|
236
236
|
legacyEnvelope: true` : "";
|
|
@@ -309,8 +309,9 @@ function renderIdiomaticExecuteStep(command, options) {
|
|
|
309
309
|
` id: ${callId},`,
|
|
310
310
|
` tool: ${tool},`,
|
|
311
311
|
` input: ${input} as any,`,
|
|
312
|
+
...options.explicitFreshness ? [` staleAfterSeconds: 0,`] : [],
|
|
312
313
|
` description: ${stringLiteral((command.description ?? "").trim() || `Run ${command.alias} via ${command.tool}.`)},`,
|
|
313
|
-
...options.force ? [` force: true,`] : [],
|
|
314
|
+
...options.force && !options.explicitFreshness ? [` force: true,`] : [],
|
|
314
315
|
` });`,
|
|
315
316
|
` __dlAssertSuccessfulToolResult(result);`,
|
|
316
317
|
` return ${extraction};`,
|
|
@@ -341,7 +342,7 @@ function renderPlayStep(command, options) {
|
|
|
341
342
|
// Enrich validates and normalizes this payload against the certified
|
|
342
343
|
// prebuilt contract before code generation. The attachment retains
|
|
343
344
|
// its concrete input type, while generated payloads are records.
|
|
344
|
-
` await __dlRunInlinePlay(${inlineHandler}, stepCtx, payload as never, ${options.force});`
|
|
345
|
+
options.explicitFreshness ? ` await __dlRunInlinePlay_${inline.sourceHash.slice(0, 16)}(stepCtx, payload as never, ${options.force});` : ` await __dlRunInlinePlay(${inlineHandler}, stepCtx, payload as never, ${options.force});`
|
|
345
346
|
] : [
|
|
346
347
|
` await stepCtx.runPlay(${callId}, ${playRef}, payload, {`,
|
|
347
348
|
` description: ${stringLiteral(command.description ?? command.alias)}`,
|
|
@@ -499,7 +500,7 @@ function renderMetadataColumnStep(config) {
|
|
|
499
500
|
` )`
|
|
500
501
|
].join("\n");
|
|
501
502
|
}
|
|
502
|
-
function renderWaterfallColumns(command, forceAliases, inlineRunJavascript, idiomaticGetters) {
|
|
503
|
+
function renderWaterfallColumns(command, forceAliases, inlineRunJavascript, idiomaticGetters, explicitFreshness) {
|
|
503
504
|
const activeChildren = command.commands.filter(
|
|
504
505
|
(nested) => !isWaterfall(nested) && !nested.disabled
|
|
505
506
|
);
|
|
@@ -522,6 +523,7 @@ function renderWaterfallColumns(command, forceAliases, inlineRunJavascript, idio
|
|
|
522
523
|
nested.alias,
|
|
523
524
|
renderExecuteStep(nested, {
|
|
524
525
|
force,
|
|
526
|
+
explicitFreshness,
|
|
525
527
|
precheck,
|
|
526
528
|
legacyEnvelope: Boolean(nested.extract_js),
|
|
527
529
|
inlineRunJavascript,
|
|
@@ -576,7 +578,8 @@ function compileEnrichConfigToPlaySource(config, options = {}) {
|
|
|
576
578
|
command,
|
|
577
579
|
forceAliases,
|
|
578
580
|
inlineRunJavascript,
|
|
579
|
-
idiomaticGetters
|
|
581
|
+
idiomaticGetters,
|
|
582
|
+
options.explicitFreshness === true
|
|
580
583
|
)
|
|
581
584
|
);
|
|
582
585
|
return;
|
|
@@ -591,6 +594,7 @@ function compileEnrichConfigToPlaySource(config, options = {}) {
|
|
|
591
594
|
command.alias,
|
|
592
595
|
renderExecuteStep(command, {
|
|
593
596
|
force,
|
|
597
|
+
explicitFreshness: options.explicitFreshness,
|
|
594
598
|
inlineRunJavascript,
|
|
595
599
|
idiomaticGetters,
|
|
596
600
|
nativeRunIf: Boolean(runIfSource)
|
|
@@ -611,9 +615,10 @@ function compileEnrichConfigToPlaySource(config, options = {}) {
|
|
|
611
615
|
const generatedDescription = describedColumns.length ? `Enrich CSV rows with ${describedColumns.join(", ")}.` : "Prepare CSV rows for enrichment.";
|
|
612
616
|
const playOptionsSource = [
|
|
613
617
|
`description: ${stringLiteral(generatedDescription)}`,
|
|
618
|
+
...options.explicitFreshness === true ? [`compatibility: { authoringContract: 'explicit-freshness' }`] : [],
|
|
614
619
|
...options.maxCreditsPerRun === void 0 ? [] : [`billing: { maxCreditsPerRun: ${String(options.maxCreditsPerRun)} }`]
|
|
615
620
|
].join(", ");
|
|
616
|
-
const
|
|
621
|
+
const legacyInlineHelper = options.explicitFreshness ? [] : [
|
|
617
622
|
`function __dlRunInlinePlay<TContext, TInput, TOutput>(handler: (ctx: TContext, input: TInput) => Promise<TOutput>, scope: TContext, payload: TInput, force: boolean): Promise<TOutput> {`,
|
|
618
623
|
` if (!force) return handler(scope, payload);`,
|
|
619
624
|
` const runtimeScope = scope as TContext & { __deeplineRunWithForcedTools?: <T>(run: () => Promise<T>) => Promise<T> };`,
|
|
@@ -622,10 +627,24 @@ function compileEnrichConfigToPlaySource(config, options = {}) {
|
|
|
622
627
|
` }`,
|
|
623
628
|
` return runtimeScope.__deeplineRunWithForcedTools(() => handler(scope, payload));`,
|
|
624
629
|
`}`,
|
|
625
|
-
|
|
630
|
+
``
|
|
631
|
+
];
|
|
632
|
+
const body = [
|
|
633
|
+
...legacyInlineHelper,
|
|
626
634
|
...inlineHandlers.flatMap((inline) => [
|
|
627
635
|
`const __dlInlinePlay_${inline.sourceHash.slice(0, 16)} = ${inline.functionExpressionSource};`,
|
|
628
|
-
|
|
636
|
+
``,
|
|
637
|
+
...options.explicitFreshness ? [
|
|
638
|
+
`async function __dlRunInlinePlay_${inline.sourceHash.slice(0, 16)}(scope: Parameters<typeof __dlInlinePlay_${inline.sourceHash.slice(0, 16)}>[0], payload: Parameters<typeof __dlInlinePlay_${inline.sourceHash.slice(0, 16)}>[1], force: boolean): Promise<unknown> {`,
|
|
639
|
+
` if (!force) return __dlInlinePlay_${inline.sourceHash.slice(0, 16)}(scope, payload);`,
|
|
640
|
+
` const runtimeScope = scope as typeof scope & { __deeplineRunWithForcedTools?: <T>(run: () => Promise<T>) => Promise<T> };`,
|
|
641
|
+
` if (typeof runtimeScope.__deeplineRunWithForcedTools !== 'function') {`,
|
|
642
|
+
` throw new Error('This runtime does not support forced certified inline play execution.');`,
|
|
643
|
+
` }`,
|
|
644
|
+
` return runtimeScope.__deeplineRunWithForcedTools(() => __dlInlinePlay_${inline.sourceHash.slice(0, 16)}(scope, payload));`,
|
|
645
|
+
`}`,
|
|
646
|
+
``
|
|
647
|
+
] : []
|
|
629
648
|
]),
|
|
630
649
|
`export default definePlay(${stringLiteral(playName)}, async (ctx, input: EnrichInput) => {`,
|
|
631
650
|
` const sourceRows = await ctx.csv<Record<string, unknown>>(input.file);`,
|
|
@@ -648,7 +667,10 @@ function compileEnrichConfigToPlaySource(config, options = {}) {
|
|
|
648
667
|
` return { rows: enriched, count: await enriched.count() };`,
|
|
649
668
|
`}, { ${playOptionsSource} });`
|
|
650
669
|
];
|
|
651
|
-
const helpers = idiomaticGetters ? selectUsedHelpers(
|
|
670
|
+
const helpers = idiomaticGetters ? selectUsedHelpers(
|
|
671
|
+
helperSource(options.explicitFreshness),
|
|
672
|
+
body.join("\n")
|
|
673
|
+
) : helperSource(options.explicitFreshness);
|
|
652
674
|
const typeImports = idiomaticGetters ? inlineTypeImports : [.../* @__PURE__ */ new Set([...inlineTypeImports, "DeeplinePlayRuntimeContext"])].sort();
|
|
653
675
|
return [
|
|
654
676
|
...inlineRunJavascript && configHasRunJavascript(config) ? ["// @ts-nocheck", "/* eslint-disable */", ""] : [],
|
|
@@ -687,7 +709,7 @@ function selectUsedHelpers(helperBlock, referenceSource) {
|
|
|
687
709
|
}
|
|
688
710
|
return blocks.filter((block) => used.has(block.name)).map((block) => block.source).join("\n\n");
|
|
689
711
|
}
|
|
690
|
-
function helperSource() {
|
|
712
|
+
function helperSource(explicitFreshness = false) {
|
|
691
713
|
return [
|
|
692
714
|
`function __dlWholeNumber(value: unknown, fallback: number): number {`,
|
|
693
715
|
` const numeric = Number(value);`,
|
|
@@ -1414,8 +1436,9 @@ function helperSource() {
|
|
|
1414
1436
|
` id: input.callId,`,
|
|
1415
1437
|
` tool: input.tool,`,
|
|
1416
1438
|
` input: payload,`,
|
|
1439
|
+
...explicitFreshness ? [` staleAfterSeconds: 0,`] : [],
|
|
1417
1440
|
` ...(input.description ? { description: input.description } : {}),`,
|
|
1418
|
-
` ...(input.force ? { force: true } : {})
|
|
1441
|
+
...explicitFreshness ? [] : [` ...(input.force ? { force: true } : {}),`],
|
|
1419
1442
|
` });`,
|
|
1420
1443
|
` __dlAssertSuccessfulToolResult(result);`,
|
|
1421
1444
|
` return __dlExtract(input.alias, result, input.row, input.extract, Boolean(input.legacyEnvelope));`,
|
|
@@ -1542,6 +1565,7 @@ function compileWorkflowConfigToPlay(config, options) {
|
|
|
1542
1565
|
validateWorkflowConfigForPlay(config);
|
|
1543
1566
|
const playName = deriveWorkflowPlayName(options.workflowName);
|
|
1544
1567
|
const sourceCode = compileEnrichConfigToPlaySource(config, {
|
|
1568
|
+
explicitFreshness: true,
|
|
1545
1569
|
playName,
|
|
1546
1570
|
inlineRunJavascript: true,
|
|
1547
1571
|
idiomaticGetters: true
|
|
@@ -1676,7 +1700,7 @@ async function transformOne(api, workflowId, outDir, publish) {
|
|
|
1676
1700
|
await writeFile(file, compiled.sourceCode, "utf8");
|
|
1677
1701
|
let published = false;
|
|
1678
1702
|
if (publish) {
|
|
1679
|
-
const { handlePlayPublish } = await import("./play-
|
|
1703
|
+
const { handlePlayPublish } = await import("./play-LL73A7EP.mjs");
|
|
1680
1704
|
const code = await handlePlayPublish([file]);
|
|
1681
1705
|
if (code !== 0) {
|
|
1682
1706
|
return {
|
|
@@ -6,9 +6,9 @@ var _chunk3XX5TEA4js = require('./chunk-3XX5TEA4.js');
|
|
|
6
6
|
var _chunk3KC45UVFjs = require('./chunk-3KC45UVF.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
10
|
-
require('./chunk-
|
|
11
|
-
require('./chunk-
|
|
9
|
+
var _chunkU5AQKE3Tjs = require('./chunk-U5AQKE3T.js');
|
|
10
|
+
require('./chunk-E4CABWXL.js');
|
|
11
|
+
require('./chunk-2H4EY7KH.js');
|
|
12
12
|
require('./chunk-KXMNM4AQ.js');
|
|
13
13
|
require('./chunk-XDVT3GOM.js');
|
|
14
14
|
|
|
@@ -16,12 +16,12 @@ require('./chunk-XDVT3GOM.js');
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
20
|
-
require('./chunk-
|
|
21
|
-
require('./chunk-
|
|
19
|
+
var _chunkZHWBU36Hjs = require('./chunk-ZHWBU36H.js');
|
|
20
|
+
require('./chunk-OZSC6CEW.js');
|
|
21
|
+
require('./chunk-NPBJI7RE.js');
|
|
22
22
|
require('./chunk-XNYIZMNQ.js');
|
|
23
|
-
require('./chunk-
|
|
24
|
-
require('./chunk-
|
|
23
|
+
require('./chunk-PPDBRJRW.js');
|
|
24
|
+
require('./chunk-RMINBDYY.js');
|
|
25
25
|
require('./chunk-OG64RBAC.js');
|
|
26
26
|
require('./chunk-COGTRVWW.js');
|
|
27
27
|
|
|
@@ -230,7 +230,7 @@ function renderExecuteStep(command, options = {
|
|
|
230
230
|
const runIfJs = options.nativeRunIf ? "null" : _nullishCoalesce(renderRunIfFunction(command), () => ( "null"));
|
|
231
231
|
const description = command.description ? `,
|
|
232
232
|
description: ${stringLiteral(command.description)}` : "";
|
|
233
|
-
const force = options.force ? `,
|
|
233
|
+
const force = options.force && !options.explicitFreshness ? `,
|
|
234
234
|
force: true` : "";
|
|
235
235
|
const legacyEnvelope = options.legacyEnvelope ? `,
|
|
236
236
|
legacyEnvelope: true` : "";
|
|
@@ -309,8 +309,9 @@ function renderIdiomaticExecuteStep(command, options) {
|
|
|
309
309
|
` id: ${callId},`,
|
|
310
310
|
` tool: ${tool},`,
|
|
311
311
|
` input: ${input} as any,`,
|
|
312
|
+
...options.explicitFreshness ? [` staleAfterSeconds: 0,`] : [],
|
|
312
313
|
` description: ${stringLiteral((_nullishCoalesce(command.description, () => ( ""))).trim() || `Run ${command.alias} via ${command.tool}.`)},`,
|
|
313
|
-
...options.force ? [` force: true,`] : [],
|
|
314
|
+
...options.force && !options.explicitFreshness ? [` force: true,`] : [],
|
|
314
315
|
` });`,
|
|
315
316
|
` __dlAssertSuccessfulToolResult(result);`,
|
|
316
317
|
` return ${extraction};`,
|
|
@@ -341,7 +342,7 @@ function renderPlayStep(command, options) {
|
|
|
341
342
|
// Enrich validates and normalizes this payload against the certified
|
|
342
343
|
// prebuilt contract before code generation. The attachment retains
|
|
343
344
|
// its concrete input type, while generated payloads are records.
|
|
344
|
-
` await __dlRunInlinePlay(${inlineHandler}, stepCtx, payload as never, ${options.force});`
|
|
345
|
+
options.explicitFreshness ? ` await __dlRunInlinePlay_${inline.sourceHash.slice(0, 16)}(stepCtx, payload as never, ${options.force});` : ` await __dlRunInlinePlay(${inlineHandler}, stepCtx, payload as never, ${options.force});`
|
|
345
346
|
] : [
|
|
346
347
|
` await stepCtx.runPlay(${callId}, ${playRef}, payload, {`,
|
|
347
348
|
` description: ${stringLiteral(_nullishCoalesce(command.description, () => ( command.alias)))}`,
|
|
@@ -499,7 +500,7 @@ function renderMetadataColumnStep(config) {
|
|
|
499
500
|
` )`
|
|
500
501
|
].join("\n");
|
|
501
502
|
}
|
|
502
|
-
function renderWaterfallColumns(command, forceAliases, inlineRunJavascript, idiomaticGetters) {
|
|
503
|
+
function renderWaterfallColumns(command, forceAliases, inlineRunJavascript, idiomaticGetters, explicitFreshness) {
|
|
503
504
|
const activeChildren = command.commands.filter(
|
|
504
505
|
(nested) => !isWaterfall(nested) && !nested.disabled
|
|
505
506
|
);
|
|
@@ -522,6 +523,7 @@ function renderWaterfallColumns(command, forceAliases, inlineRunJavascript, idio
|
|
|
522
523
|
nested.alias,
|
|
523
524
|
renderExecuteStep(nested, {
|
|
524
525
|
force,
|
|
526
|
+
explicitFreshness,
|
|
525
527
|
precheck,
|
|
526
528
|
legacyEnvelope: Boolean(nested.extract_js),
|
|
527
529
|
inlineRunJavascript,
|
|
@@ -576,7 +578,8 @@ function compileEnrichConfigToPlaySource(config, options = {}) {
|
|
|
576
578
|
command,
|
|
577
579
|
forceAliases,
|
|
578
580
|
inlineRunJavascript,
|
|
579
|
-
idiomaticGetters
|
|
581
|
+
idiomaticGetters,
|
|
582
|
+
options.explicitFreshness === true
|
|
580
583
|
)
|
|
581
584
|
);
|
|
582
585
|
return;
|
|
@@ -591,6 +594,7 @@ function compileEnrichConfigToPlaySource(config, options = {}) {
|
|
|
591
594
|
command.alias,
|
|
592
595
|
renderExecuteStep(command, {
|
|
593
596
|
force,
|
|
597
|
+
explicitFreshness: options.explicitFreshness,
|
|
594
598
|
inlineRunJavascript,
|
|
595
599
|
idiomaticGetters,
|
|
596
600
|
nativeRunIf: Boolean(runIfSource)
|
|
@@ -611,9 +615,10 @@ function compileEnrichConfigToPlaySource(config, options = {}) {
|
|
|
611
615
|
const generatedDescription = describedColumns.length ? `Enrich CSV rows with ${describedColumns.join(", ")}.` : "Prepare CSV rows for enrichment.";
|
|
612
616
|
const playOptionsSource = [
|
|
613
617
|
`description: ${stringLiteral(generatedDescription)}`,
|
|
618
|
+
...options.explicitFreshness === true ? [`compatibility: { authoringContract: 'explicit-freshness' }`] : [],
|
|
614
619
|
...options.maxCreditsPerRun === void 0 ? [] : [`billing: { maxCreditsPerRun: ${String(options.maxCreditsPerRun)} }`]
|
|
615
620
|
].join(", ");
|
|
616
|
-
const
|
|
621
|
+
const legacyInlineHelper = options.explicitFreshness ? [] : [
|
|
617
622
|
`function __dlRunInlinePlay<TContext, TInput, TOutput>(handler: (ctx: TContext, input: TInput) => Promise<TOutput>, scope: TContext, payload: TInput, force: boolean): Promise<TOutput> {`,
|
|
618
623
|
` if (!force) return handler(scope, payload);`,
|
|
619
624
|
` const runtimeScope = scope as TContext & { __deeplineRunWithForcedTools?: <T>(run: () => Promise<T>) => Promise<T> };`,
|
|
@@ -622,10 +627,24 @@ function compileEnrichConfigToPlaySource(config, options = {}) {
|
|
|
622
627
|
` }`,
|
|
623
628
|
` return runtimeScope.__deeplineRunWithForcedTools(() => handler(scope, payload));`,
|
|
624
629
|
`}`,
|
|
625
|
-
|
|
630
|
+
``
|
|
631
|
+
];
|
|
632
|
+
const body = [
|
|
633
|
+
...legacyInlineHelper,
|
|
626
634
|
...inlineHandlers.flatMap((inline) => [
|
|
627
635
|
`const __dlInlinePlay_${inline.sourceHash.slice(0, 16)} = ${inline.functionExpressionSource};`,
|
|
628
|
-
|
|
636
|
+
``,
|
|
637
|
+
...options.explicitFreshness ? [
|
|
638
|
+
`async function __dlRunInlinePlay_${inline.sourceHash.slice(0, 16)}(scope: Parameters<typeof __dlInlinePlay_${inline.sourceHash.slice(0, 16)}>[0], payload: Parameters<typeof __dlInlinePlay_${inline.sourceHash.slice(0, 16)}>[1], force: boolean): Promise<unknown> {`,
|
|
639
|
+
` if (!force) return __dlInlinePlay_${inline.sourceHash.slice(0, 16)}(scope, payload);`,
|
|
640
|
+
` const runtimeScope = scope as typeof scope & { __deeplineRunWithForcedTools?: <T>(run: () => Promise<T>) => Promise<T> };`,
|
|
641
|
+
` if (typeof runtimeScope.__deeplineRunWithForcedTools !== 'function') {`,
|
|
642
|
+
` throw new Error('This runtime does not support forced certified inline play execution.');`,
|
|
643
|
+
` }`,
|
|
644
|
+
` return runtimeScope.__deeplineRunWithForcedTools(() => __dlInlinePlay_${inline.sourceHash.slice(0, 16)}(scope, payload));`,
|
|
645
|
+
`}`,
|
|
646
|
+
``
|
|
647
|
+
] : []
|
|
629
648
|
]),
|
|
630
649
|
`export default definePlay(${stringLiteral(playName)}, async (ctx, input: EnrichInput) => {`,
|
|
631
650
|
` const sourceRows = await ctx.csv<Record<string, unknown>>(input.file);`,
|
|
@@ -648,7 +667,10 @@ function compileEnrichConfigToPlaySource(config, options = {}) {
|
|
|
648
667
|
` return { rows: enriched, count: await enriched.count() };`,
|
|
649
668
|
`}, { ${playOptionsSource} });`
|
|
650
669
|
];
|
|
651
|
-
const helpers = idiomaticGetters ? selectUsedHelpers(
|
|
670
|
+
const helpers = idiomaticGetters ? selectUsedHelpers(
|
|
671
|
+
helperSource(options.explicitFreshness),
|
|
672
|
+
body.join("\n")
|
|
673
|
+
) : helperSource(options.explicitFreshness);
|
|
652
674
|
const typeImports = idiomaticGetters ? inlineTypeImports : [.../* @__PURE__ */ new Set([...inlineTypeImports, "DeeplinePlayRuntimeContext"])].sort();
|
|
653
675
|
return [
|
|
654
676
|
...inlineRunJavascript && configHasRunJavascript(config) ? ["// @ts-nocheck", "/* eslint-disable */", ""] : [],
|
|
@@ -687,7 +709,7 @@ function selectUsedHelpers(helperBlock, referenceSource) {
|
|
|
687
709
|
}
|
|
688
710
|
return blocks.filter((block) => used.has(block.name)).map((block) => block.source).join("\n\n");
|
|
689
711
|
}
|
|
690
|
-
function helperSource() {
|
|
712
|
+
function helperSource(explicitFreshness = false) {
|
|
691
713
|
return [
|
|
692
714
|
`function __dlWholeNumber(value: unknown, fallback: number): number {`,
|
|
693
715
|
` const numeric = Number(value);`,
|
|
@@ -1414,8 +1436,9 @@ function helperSource() {
|
|
|
1414
1436
|
` id: input.callId,`,
|
|
1415
1437
|
` tool: input.tool,`,
|
|
1416
1438
|
` input: payload,`,
|
|
1439
|
+
...explicitFreshness ? [` staleAfterSeconds: 0,`] : [],
|
|
1417
1440
|
` ...(input.description ? { description: input.description } : {}),`,
|
|
1418
|
-
` ...(input.force ? { force: true } : {})
|
|
1441
|
+
...explicitFreshness ? [] : [` ...(input.force ? { force: true } : {}),`],
|
|
1419
1442
|
` });`,
|
|
1420
1443
|
` __dlAssertSuccessfulToolResult(result);`,
|
|
1421
1444
|
` return __dlExtract(input.alias, result, input.row, input.extract, Boolean(input.legacyEnvelope));`,
|
|
@@ -1542,6 +1565,7 @@ function compileWorkflowConfigToPlay(config, options) {
|
|
|
1542
1565
|
validateWorkflowConfigForPlay(config);
|
|
1543
1566
|
const playName = deriveWorkflowPlayName(options.workflowName);
|
|
1544
1567
|
const sourceCode = compileEnrichConfigToPlaySource(config, {
|
|
1568
|
+
explicitFreshness: true,
|
|
1545
1569
|
playName,
|
|
1546
1570
|
inlineRunJavascript: true,
|
|
1547
1571
|
idiomaticGetters: true
|
|
@@ -1603,18 +1627,18 @@ function noticeToStderr(command) {
|
|
|
1603
1627
|
);
|
|
1604
1628
|
}
|
|
1605
1629
|
function emitPassThrough(command, payload, options) {
|
|
1606
|
-
const json =
|
|
1630
|
+
const json = _chunkZHWBU36Hjs.shouldEmitJson.call(void 0, options.json);
|
|
1607
1631
|
const deprecation = migrationDeprecation(command);
|
|
1608
1632
|
if (json) {
|
|
1609
1633
|
const enriched = payload && typeof payload === "object" && !Array.isArray(payload) ? { ...payload, deprecation } : { result: payload, deprecation };
|
|
1610
|
-
|
|
1634
|
+
_chunkZHWBU36Hjs.printJson.call(void 0, enriched);
|
|
1611
1635
|
return;
|
|
1612
1636
|
}
|
|
1613
|
-
|
|
1637
|
+
_chunkZHWBU36Hjs.printJson.call(void 0, payload);
|
|
1614
1638
|
noticeToStderr(command);
|
|
1615
1639
|
}
|
|
1616
1640
|
function client() {
|
|
1617
|
-
return new (0,
|
|
1641
|
+
return new (0, _chunkU5AQKE3Tjs.DeeplineClient)();
|
|
1618
1642
|
}
|
|
1619
1643
|
function clientWithTimeout(timeoutSeconds) {
|
|
1620
1644
|
if (!timeoutSeconds) return client();
|
|
@@ -1622,7 +1646,7 @@ function clientWithTimeout(timeoutSeconds) {
|
|
|
1622
1646
|
if (!Number.isFinite(seconds) || seconds <= 0) {
|
|
1623
1647
|
throw new Error("--timeout must be a positive number of seconds.");
|
|
1624
1648
|
}
|
|
1625
|
-
return new (0,
|
|
1649
|
+
return new (0, _chunkU5AQKE3Tjs.DeeplineClient)({ timeout: seconds * 1e3 });
|
|
1626
1650
|
}
|
|
1627
1651
|
function readStatus(payload) {
|
|
1628
1652
|
if (!payload || typeof payload !== "object") return null;
|
|
@@ -1676,7 +1700,7 @@ async function transformOne(api, workflowId, outDir, publish) {
|
|
|
1676
1700
|
await _promises.writeFile.call(void 0, file, compiled.sourceCode, "utf8");
|
|
1677
1701
|
let published = false;
|
|
1678
1702
|
if (publish) {
|
|
1679
|
-
const { handlePlayPublish } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-
|
|
1703
|
+
const { handlePlayPublish } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-YGOXL52D.js")));
|
|
1680
1704
|
const code = await handlePlayPublish([file]);
|
|
1681
1705
|
if (code !== 0) {
|
|
1682
1706
|
return {
|
|
@@ -1751,10 +1775,10 @@ async function handleTransform(id, options) {
|
|
|
1751
1775
|
for (const workflowId of ids) {
|
|
1752
1776
|
outcomes.push(await transformOne(api, workflowId, outDir, publish));
|
|
1753
1777
|
}
|
|
1754
|
-
|
|
1778
|
+
_chunkZHWBU36Hjs.printCommandEnvelope.call(void 0,
|
|
1755
1779
|
{ outcomes, deprecation: null },
|
|
1756
1780
|
{
|
|
1757
|
-
json:
|
|
1781
|
+
json: _chunkZHWBU36Hjs.shouldEmitJson.call(void 0, options.json),
|
|
1758
1782
|
text: renderTransformReport(outcomes)
|
|
1759
1783
|
}
|
|
1760
1784
|
);
|
|
@@ -1775,11 +1799,11 @@ async function handleDelete(id, options) {
|
|
|
1775
1799
|
}
|
|
1776
1800
|
async function handleDisable(id, options) {
|
|
1777
1801
|
const result = await client().disableWorkflow(id);
|
|
1778
|
-
|
|
1802
|
+
_chunkZHWBU36Hjs.printJson.call(void 0, result);
|
|
1779
1803
|
}
|
|
1780
1804
|
async function handleEnable(id, options) {
|
|
1781
1805
|
const result = await client().enableWorkflow(id);
|
|
1782
|
-
|
|
1806
|
+
_chunkZHWBU36Hjs.printJson.call(void 0, result);
|
|
1783
1807
|
}
|
|
1784
1808
|
async function handleApply(options) {
|
|
1785
1809
|
const body = await readJsonOption(options.payload, options.file);
|
|
@@ -1844,7 +1868,7 @@ async function handleTail(id, runId, options) {
|
|
|
1844
1868
|
if (status && TERMINAL_RUN_STATUSES.has(status) || Date.now() > deadline) {
|
|
1845
1869
|
return;
|
|
1846
1870
|
}
|
|
1847
|
-
await
|
|
1871
|
+
await _chunkZHWBU36Hjs.sleep.call(void 0, intervalMs);
|
|
1848
1872
|
}
|
|
1849
1873
|
}
|
|
1850
1874
|
function registerWorkflowCommands(program) {
|