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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference path="./text-imports.d.ts" />
|
|
2
|
-
export { P as PlayDescription, aD as PlayDescriptionOptions, g as PlayDetail,
|
|
3
|
-
import '../compiler-manifest-
|
|
2
|
+
export { P as PlayDescription, aD as PlayDescriptionOptions, g as PlayDetail, ca as cloneEditStarter, cb as describePlayDetail, cc as describePlayListItem } from '../client-74k4IPh6.mjs';
|
|
3
|
+
import '../compiler-manifest-lzWpbV3w.mjs';
|
|
4
4
|
import '@sinclair/typebox';
|
|
5
5
|
import 'zod';
|
|
6
6
|
import '../monitor-fleet-contract.mjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference path="./text-imports.d.ts" />
|
|
2
|
-
export { P as PlayDescription, aD as PlayDescriptionOptions, g as PlayDetail,
|
|
3
|
-
import '../compiler-manifest-
|
|
2
|
+
export { P as PlayDescription, aD as PlayDescriptionOptions, g as PlayDetail, ca as cloneEditStarter, cb as describePlayDetail, cc as describePlayListItem } from '../client-C1IK1f8c.js';
|
|
3
|
+
import '../compiler-manifest-lzWpbV3w.js';
|
|
4
4
|
import '@sinclair/typebox';
|
|
5
5
|
import 'zod';
|
|
6
6
|
import '../monitor-fleet-contract.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference path="./text-imports.d.ts" />
|
|
2
|
-
export { V as DeeplineError } from '../compiler-manifest-
|
|
3
|
-
export {
|
|
2
|
+
export { V as DeeplineError } from '../compiler-manifest-lzWpbV3w.mjs';
|
|
3
|
+
export { cd as CLI_PLAY_RUN_START_PATH, ce as CLI_PLAY_RUN_START_STREAM_PATH, cf as CLI_PLAY_RUN_SUPPORTED_HEADER, cg as CSV_DATA_INPUT_KEY, ch as CliPlayAdmissionUnsupportedError, ci as FileInputBinding, cj as LocalFileInput, ck as MintStagedFileUpload, cl as PLAY_FILES_STAGE_MINT_PATH, cm as PLAY_FILES_STAGE_PATH, cn as PLAY_RUN_START_PATH, co as PLAY_RUN_START_STREAM_PATH, cp as PlayRunHttp, cq as PlayRunStartOptions, cr as ResolvedStartPlayRunRequest, cs as STAGE_LEGACY_MULTIPART_MAX_BYTES, ct as StagedFileCodec, cu as StagedFileInputs, cv as StagedFileUpload, cw as buildNamedPlayRunRequest, cx as buildPlayRunStartBody, cy as createSessionPlayRunHttp, cz as createStagedFileUpload, cA as fileInputBindingsFromPlaySchema, cB as fileInputBindingsFromStaticPipeline, cC as getDottedInputValue, cD as isPlayRunPackage, cE as mintStagedPlayFileUploads, cF as normalizePlayRunStart, cG as playRunFileInputBindings, cH as preparePlayRunAdmission, cI as setDottedInputValue, cJ as stageFileInputs, cK as stagePlayFiles, cL as stagedFileContentType, cM as startPlayRun, cN as webStagedFileCodec } from '../client-74k4IPh6.mjs';
|
|
4
4
|
import '@sinclair/typebox';
|
|
5
5
|
import 'zod';
|
|
6
6
|
import '../monitor-fleet-contract.mjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference path="./text-imports.d.ts" />
|
|
2
|
-
export { V as DeeplineError } from '../compiler-manifest-
|
|
3
|
-
export {
|
|
2
|
+
export { V as DeeplineError } from '../compiler-manifest-lzWpbV3w.js';
|
|
3
|
+
export { cd as CLI_PLAY_RUN_START_PATH, ce as CLI_PLAY_RUN_START_STREAM_PATH, cf as CLI_PLAY_RUN_SUPPORTED_HEADER, cg as CSV_DATA_INPUT_KEY, ch as CliPlayAdmissionUnsupportedError, ci as FileInputBinding, cj as LocalFileInput, ck as MintStagedFileUpload, cl as PLAY_FILES_STAGE_MINT_PATH, cm as PLAY_FILES_STAGE_PATH, cn as PLAY_RUN_START_PATH, co as PLAY_RUN_START_STREAM_PATH, cp as PlayRunHttp, cq as PlayRunStartOptions, cr as ResolvedStartPlayRunRequest, cs as STAGE_LEGACY_MULTIPART_MAX_BYTES, ct as StagedFileCodec, cu as StagedFileInputs, cv as StagedFileUpload, cw as buildNamedPlayRunRequest, cx as buildPlayRunStartBody, cy as createSessionPlayRunHttp, cz as createStagedFileUpload, cA as fileInputBindingsFromPlaySchema, cB as fileInputBindingsFromStaticPipeline, cC as getDottedInputValue, cD as isPlayRunPackage, cE as mintStagedPlayFileUploads, cF as normalizePlayRunStart, cG as playRunFileInputBindings, cH as preparePlayRunAdmission, cI as setDottedInputValue, cJ as stageFileInputs, cK as stagePlayFiles, cL as stagedFileContentType, cM as startPlayRun, cN as webStagedFileCodec } from '../client-C1IK1f8c.js';
|
|
4
4
|
import '@sinclair/typebox';
|
|
5
5
|
import 'zod';
|
|
6
6
|
import '../monitor-fleet-contract.js';
|
|
@@ -23,12 +23,16 @@
|
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
var _chunk2H4EY7KHjs = require('../cli/chunk-2H4EY7KH.js');
|
|
27
31
|
require('../cli/chunk-XDVT3GOM.js');
|
|
28
32
|
require('../cli/chunk-XNYIZMNQ.js');
|
|
29
33
|
|
|
30
34
|
|
|
31
|
-
var
|
|
35
|
+
var _chunkPPDBRJRWjs = require('../cli/chunk-PPDBRJRW.js');
|
|
32
36
|
require('../cli/chunk-COGTRVWW.js');
|
|
33
37
|
|
|
34
38
|
|
|
@@ -56,4 +60,8 @@ require('../cli/chunk-COGTRVWW.js');
|
|
|
56
60
|
|
|
57
61
|
|
|
58
62
|
|
|
59
|
-
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
exports.CLI_PLAY_RUN_START_PATH = _chunk2H4EY7KHjs.CLI_PLAY_RUN_START_PATH; exports.CLI_PLAY_RUN_START_STREAM_PATH = _chunk2H4EY7KHjs.CLI_PLAY_RUN_START_STREAM_PATH; exports.CLI_PLAY_RUN_SUPPORTED_HEADER = _chunk2H4EY7KHjs.CLI_PLAY_RUN_SUPPORTED_HEADER; exports.CSV_DATA_INPUT_KEY = _chunk2H4EY7KHjs.CSV_DATA_INPUT_KEY; exports.CliPlayAdmissionUnsupportedError = _chunk2H4EY7KHjs.CliPlayAdmissionUnsupportedError; exports.DeeplineError = _chunkPPDBRJRWjs.DeeplineError; exports.PLAY_FILES_STAGE_MINT_PATH = _chunk2H4EY7KHjs.PLAY_FILES_STAGE_MINT_PATH; exports.PLAY_FILES_STAGE_PATH = _chunk2H4EY7KHjs.PLAY_FILES_STAGE_PATH; exports.PLAY_RUN_START_PATH = _chunk2H4EY7KHjs.PLAY_RUN_START_PATH; exports.PLAY_RUN_START_STREAM_PATH = _chunk2H4EY7KHjs.PLAY_RUN_START_STREAM_PATH; exports.STAGE_LEGACY_MULTIPART_MAX_BYTES = _chunk2H4EY7KHjs.STAGE_LEGACY_MULTIPART_MAX_BYTES; exports.buildNamedPlayRunRequest = _chunk2H4EY7KHjs.buildNamedPlayRunRequest; exports.buildPlayRunStartBody = _chunk2H4EY7KHjs.buildPlayRunStartBody; exports.createSessionPlayRunHttp = _chunk2H4EY7KHjs.createSessionPlayRunHttp; exports.createStagedFileUpload = _chunk2H4EY7KHjs.createStagedFileUpload; exports.fileInputBindingsFromPlaySchema = _chunk2H4EY7KHjs.fileInputBindingsFromPlaySchema; exports.fileInputBindingsFromStaticPipeline = _chunk2H4EY7KHjs.fileInputBindingsFromStaticPipeline; exports.getDottedInputValue = _chunk2H4EY7KHjs.getDottedInputValue; exports.isPlayRunPackage = _chunk2H4EY7KHjs.isPlayRunPackage; exports.mintStagedPlayFileUploads = _chunk2H4EY7KHjs.mintStagedPlayFileUploads; exports.normalizePlayRunStart = _chunk2H4EY7KHjs.normalizePlayRunStart; exports.playRunFileInputBindings = _chunk2H4EY7KHjs.playRunFileInputBindings; exports.preparePlayRunAdmission = _chunk2H4EY7KHjs.preparePlayRunAdmission; exports.setDottedInputValue = _chunk2H4EY7KHjs.setDottedInputValue; exports.stageFileInputs = _chunk2H4EY7KHjs.stageFileInputs; exports.stagePlayFiles = _chunk2H4EY7KHjs.stagePlayFiles; exports.stagedFileContentType = _chunk2H4EY7KHjs.stagedFileContentType; exports.startPlayRun = _chunk2H4EY7KHjs.startPlayRun; exports.webStagedFileCodec = _chunk2H4EY7KHjs.webStagedFileCodec;
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
|
+
CLI_PLAY_RUN_START_PATH,
|
|
3
|
+
CLI_PLAY_RUN_START_STREAM_PATH,
|
|
4
|
+
CLI_PLAY_RUN_SUPPORTED_HEADER,
|
|
2
5
|
CSV_DATA_INPUT_KEY,
|
|
6
|
+
CliPlayAdmissionUnsupportedError,
|
|
3
7
|
PLAY_FILES_STAGE_MINT_PATH,
|
|
4
8
|
PLAY_FILES_STAGE_PATH,
|
|
5
9
|
PLAY_RUN_START_PATH,
|
|
@@ -23,15 +27,19 @@ import {
|
|
|
23
27
|
stagedFileContentType,
|
|
24
28
|
startPlayRun,
|
|
25
29
|
webStagedFileCodec
|
|
26
|
-
} from "../cli/chunk-
|
|
30
|
+
} from "../cli/chunk-KCC3FKIW.mjs";
|
|
27
31
|
import "../cli/chunk-UBKA33KY.mjs";
|
|
28
32
|
import "../cli/chunk-DLIRSHV6.mjs";
|
|
29
33
|
import {
|
|
30
34
|
DeeplineError
|
|
31
|
-
} from "../cli/chunk-
|
|
35
|
+
} from "../cli/chunk-E4IXDAZI.mjs";
|
|
32
36
|
import "../cli/chunk-KRD6H754.mjs";
|
|
33
37
|
export {
|
|
38
|
+
CLI_PLAY_RUN_START_PATH,
|
|
39
|
+
CLI_PLAY_RUN_START_STREAM_PATH,
|
|
40
|
+
CLI_PLAY_RUN_SUPPORTED_HEADER,
|
|
34
41
|
CSV_DATA_INPUT_KEY,
|
|
42
|
+
CliPlayAdmissionUnsupportedError,
|
|
35
43
|
DeeplineError,
|
|
36
44
|
PLAY_FILES_STAGE_MINT_PATH,
|
|
37
45
|
PLAY_FILES_STAGE_PATH,
|
package/dist/release.d.mts
CHANGED
|
@@ -134,11 +134,17 @@ type SdkRelease = {
|
|
|
134
134
|
*/
|
|
135
135
|
version: string;
|
|
136
136
|
/**
|
|
137
|
-
* One concise, agent-readable explanation
|
|
138
|
-
*
|
|
139
|
-
*
|
|
137
|
+
* One concise, agent-readable explanation of what a named release changed.
|
|
138
|
+
* The compatibility route shows it only to clients older than
|
|
139
|
+
* `introducedIn`, labelled with that version. `version` above is bumped on
|
|
140
|
+
* every publish while this text is written by hand, so labelling it with the
|
|
141
|
+
* latest version would repeat the same line for releases it does not
|
|
142
|
+
* describe. Keep it actionable; older installed CLIs print it too.
|
|
140
143
|
*/
|
|
141
|
-
updateSummary?:
|
|
144
|
+
updateSummary?: {
|
|
145
|
+
introducedIn: string;
|
|
146
|
+
summary: string;
|
|
147
|
+
};
|
|
142
148
|
/** Capabilities stamped into the published package's `deepline` metadata. */
|
|
143
149
|
packageCapabilities: {
|
|
144
150
|
updatePreferences: 1;
|
|
@@ -151,8 +157,11 @@ type SdkRelease = {
|
|
|
151
157
|
supportPolicy: SdkSupportPolicy;
|
|
152
158
|
};
|
|
153
159
|
declare const SDK_RELEASE: {
|
|
154
|
-
readonly version: "0.3.
|
|
155
|
-
readonly updateSummary:
|
|
160
|
+
readonly version: "0.3.411";
|
|
161
|
+
readonly updateSummary: {
|
|
162
|
+
readonly introducedIn: "0.3.90";
|
|
163
|
+
readonly summary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release.";
|
|
164
|
+
};
|
|
156
165
|
readonly packageCapabilities: {
|
|
157
166
|
readonly updatePreferences: 1;
|
|
158
167
|
readonly skillsGuidance: 1;
|
package/dist/release.d.ts
CHANGED
|
@@ -134,11 +134,17 @@ type SdkRelease = {
|
|
|
134
134
|
*/
|
|
135
135
|
version: string;
|
|
136
136
|
/**
|
|
137
|
-
* One concise, agent-readable explanation
|
|
138
|
-
*
|
|
139
|
-
*
|
|
137
|
+
* One concise, agent-readable explanation of what a named release changed.
|
|
138
|
+
* The compatibility route shows it only to clients older than
|
|
139
|
+
* `introducedIn`, labelled with that version. `version` above is bumped on
|
|
140
|
+
* every publish while this text is written by hand, so labelling it with the
|
|
141
|
+
* latest version would repeat the same line for releases it does not
|
|
142
|
+
* describe. Keep it actionable; older installed CLIs print it too.
|
|
140
143
|
*/
|
|
141
|
-
updateSummary?:
|
|
144
|
+
updateSummary?: {
|
|
145
|
+
introducedIn: string;
|
|
146
|
+
summary: string;
|
|
147
|
+
};
|
|
142
148
|
/** Capabilities stamped into the published package's `deepline` metadata. */
|
|
143
149
|
packageCapabilities: {
|
|
144
150
|
updatePreferences: 1;
|
|
@@ -151,8 +157,11 @@ type SdkRelease = {
|
|
|
151
157
|
supportPolicy: SdkSupportPolicy;
|
|
152
158
|
};
|
|
153
159
|
declare const SDK_RELEASE: {
|
|
154
|
-
readonly version: "0.3.
|
|
155
|
-
readonly updateSummary:
|
|
160
|
+
readonly version: "0.3.411";
|
|
161
|
+
readonly updateSummary: {
|
|
162
|
+
readonly introducedIn: "0.3.90";
|
|
163
|
+
readonly summary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release.";
|
|
164
|
+
};
|
|
156
165
|
readonly packageCapabilities: {
|
|
157
166
|
readonly updatePreferences: 1;
|
|
158
167
|
readonly skillsGuidance: 1;
|
package/dist/release.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkRMINBDYYjs = require('./cli/chunk-RMINBDYY.js');
|
|
4
4
|
require('./cli/chunk-OG64RBAC.js');
|
|
5
5
|
require('./cli/chunk-COGTRVWW.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
exports.SDK_RELEASE =
|
|
8
|
+
exports.SDK_RELEASE = _chunkRMINBDYYjs.SDK_RELEASE;
|
package/dist/release.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "deepline",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.411",
|
|
4
4
|
"description": "GTM data CLI and TypeScript SDK for coding agents",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://code.deepline.com",
|
|
@@ -96,7 +96,6 @@
|
|
|
96
96
|
"csv-parse": "^5.6.0",
|
|
97
97
|
"csv-stringify": "^6.5.0",
|
|
98
98
|
"handlebars": "4.7.8",
|
|
99
|
-
"table": "^6.9.0",
|
|
100
99
|
"undici": "^6.22.0",
|
|
101
100
|
"zod": "^4.0.0"
|
|
102
101
|
},
|
|
@@ -111,6 +110,7 @@
|
|
|
111
110
|
"@deepline/plays": "workspace:*",
|
|
112
111
|
"@deepline/product-notifications": "workspace:*",
|
|
113
112
|
"@types/node": "^20.0.0",
|
|
113
|
+
"table": "^6.9.0",
|
|
114
114
|
"tsup": "^8.0.0",
|
|
115
115
|
"typescript": "^6.0.2"
|
|
116
116
|
},
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
var _chunkO3VSXP2Fjs = require('./chunk-O3VSXP2F.js');
|
|
17
|
-
require('./chunk-YD7B53RW.js');
|
|
18
|
-
require('./chunk-FJCIUF34.js');
|
|
19
|
-
require('./chunk-Q2E4E4FJ.js');
|
|
20
|
-
require('./chunk-XNYIZMNQ.js');
|
|
21
|
-
require('./chunk-7P5AA3SN.js');
|
|
22
|
-
require('./chunk-DEC3JECC.js');
|
|
23
|
-
require('./chunk-OG64RBAC.js');
|
|
24
|
-
require('./chunk-COGTRVWW.js');
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
exports.EXIT_WORKSPACE_MISMATCH = _chunkO3VSXP2Fjs.EXIT_WORKSPACE_MISMATCH; exports.authStatusLine = _chunkO3VSXP2Fjs.authStatusLine; exports.clearPendingClaim = _chunkO3VSXP2Fjs.clearPendingClaim; exports.clearSatisfiedPendingClaim = _chunkO3VSXP2Fjs.clearSatisfiedPendingClaim; exports.handleRegister = _chunkO3VSXP2Fjs.handleRegister; exports.handleStatus = _chunkO3VSXP2Fjs.handleStatus; exports.handleWait = _chunkO3VSXP2Fjs.handleWait; exports.httpJson = _chunkO3VSXP2Fjs.httpJson; exports.readPendingAuthClaim = _chunkO3VSXP2Fjs.readPendingAuthClaim; exports.readStatusBanner = _chunkO3VSXP2Fjs.readStatusBanner; exports.registerAuthCommands = _chunkO3VSXP2Fjs.registerAuthCommands; exports.reportSetupCompleted = _chunkO3VSXP2Fjs.reportSetupCompleted; exports.resolvePendingAuthClaimForResume = _chunkO3VSXP2Fjs.resolvePendingAuthClaimForResume; exports.statusBannerLine = _chunkO3VSXP2Fjs.statusBannerLine;
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
isJsonOutputMode
|
|
3
|
-
} from "./chunk-JRAVVJ3T.mjs";
|
|
4
|
-
|
|
5
|
-
// src/cli/compatibility-catalog.ts
|
|
6
|
-
var readers = /* @__PURE__ */ new WeakMap();
|
|
7
|
-
function registerCompatibilityCatalog(command, read) {
|
|
8
|
-
readers.set(command, read);
|
|
9
|
-
}
|
|
10
|
-
function compatibilityCatalog(command) {
|
|
11
|
-
return readers.get(command)?.();
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
// src/cli/tool-execute-observability.ts
|
|
15
|
-
import { randomUUID } from "crypto";
|
|
16
|
-
var TOOL_EXECUTE_PROGRESS_INTERVAL_MS = 15e3;
|
|
17
|
-
var activeToolExecuteCommand = null;
|
|
18
|
-
function progressLine(line) {
|
|
19
|
-
if (!isJsonOutputMode()) console.error(line);
|
|
20
|
-
}
|
|
21
|
-
function beginToolExecuteCommand() {
|
|
22
|
-
if (activeToolExecuteCommand) return activeToolExecuteCommand.invocationId;
|
|
23
|
-
const invocationId = randomUUID();
|
|
24
|
-
activeToolExecuteCommand = {
|
|
25
|
-
invocationId,
|
|
26
|
-
startedAt: performance.now()
|
|
27
|
-
};
|
|
28
|
-
progressLine(`[tools execute ${invocationId}] started`);
|
|
29
|
-
return invocationId;
|
|
30
|
-
}
|
|
31
|
-
function getToolExecuteInvocationId() {
|
|
32
|
-
return activeToolExecuteCommand?.invocationId ?? null;
|
|
33
|
-
}
|
|
34
|
-
async function runToolExecuteStage(stage, action) {
|
|
35
|
-
const command = activeToolExecuteCommand;
|
|
36
|
-
if (!command) return action();
|
|
37
|
-
const startedAt = performance.now();
|
|
38
|
-
const elapsedMs = () => Math.round(performance.now() - startedAt);
|
|
39
|
-
progressLine(`[tools execute ${command.invocationId}] ${stage} started`);
|
|
40
|
-
const progressTimer = setInterval(() => {
|
|
41
|
-
progressLine(
|
|
42
|
-
`[tools execute ${command.invocationId}] ${stage} still running (${elapsedMs()}ms)`
|
|
43
|
-
);
|
|
44
|
-
}, TOOL_EXECUTE_PROGRESS_INTERVAL_MS);
|
|
45
|
-
progressTimer.unref?.();
|
|
46
|
-
try {
|
|
47
|
-
const result = await action();
|
|
48
|
-
if (result === false) {
|
|
49
|
-
progressLine(
|
|
50
|
-
`[tools execute ${command.invocationId}] ${stage} failed after ${elapsedMs()}ms`
|
|
51
|
-
);
|
|
52
|
-
} else {
|
|
53
|
-
progressLine(
|
|
54
|
-
`[tools execute ${command.invocationId}] ${stage} completed in ${elapsedMs()}ms`
|
|
55
|
-
);
|
|
56
|
-
}
|
|
57
|
-
return result;
|
|
58
|
-
} catch (error) {
|
|
59
|
-
progressLine(
|
|
60
|
-
`[tools execute ${command.invocationId}] ${stage} failed after ${elapsedMs()}ms`
|
|
61
|
-
);
|
|
62
|
-
throw error;
|
|
63
|
-
} finally {
|
|
64
|
-
clearInterval(progressTimer);
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
function finishToolExecuteCommand() {
|
|
68
|
-
const command = activeToolExecuteCommand;
|
|
69
|
-
if (!command) return;
|
|
70
|
-
progressLine(
|
|
71
|
-
`[tools execute ${command.invocationId}] finished in ${Math.round(performance.now() - command.startedAt)}ms`
|
|
72
|
-
);
|
|
73
|
-
activeToolExecuteCommand = null;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
export {
|
|
77
|
-
registerCompatibilityCatalog,
|
|
78
|
-
compatibilityCatalog,
|
|
79
|
-
beginToolExecuteCommand,
|
|
80
|
-
getToolExecuteInvocationId,
|
|
81
|
-
runToolExecuteStage,
|
|
82
|
-
finishToolExecuteCommand
|
|
83
|
-
};
|
|
@@ -1,155 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
isJsonOutputMode
|
|
3
|
-
} from "./chunk-JRAVVJ3T.mjs";
|
|
4
|
-
|
|
5
|
-
// src/cli/progress.ts
|
|
6
|
-
import { Worker } from "worker_threads";
|
|
7
|
-
var CliProgress = class {
|
|
8
|
-
lastMessage = null;
|
|
9
|
-
interactive = Boolean(process.stderr.isTTY);
|
|
10
|
-
grey = "\x1B[90m";
|
|
11
|
-
cyan = "\x1B[36m";
|
|
12
|
-
dim = "\x1B[2m";
|
|
13
|
-
reset = "\x1B[0m";
|
|
14
|
-
worker = null;
|
|
15
|
-
enabled;
|
|
16
|
-
// --json output is one JSON document: progress never renders under it.
|
|
17
|
-
constructor(enabled) {
|
|
18
|
-
this.enabled = enabled && !isJsonOutputMode();
|
|
19
|
-
}
|
|
20
|
-
phase(message) {
|
|
21
|
-
if (!this.enabled || this.lastMessage === message) {
|
|
22
|
-
return;
|
|
23
|
-
}
|
|
24
|
-
if (this.interactive && this.lastMessage) {
|
|
25
|
-
this.settle("\u2713");
|
|
26
|
-
}
|
|
27
|
-
this.lastMessage = message;
|
|
28
|
-
if (!this.interactive) {
|
|
29
|
-
process.stderr.write(`${message}
|
|
30
|
-
`);
|
|
31
|
-
return;
|
|
32
|
-
}
|
|
33
|
-
this.ensureWorker();
|
|
34
|
-
this.worker?.postMessage({ type: "phase", message });
|
|
35
|
-
}
|
|
36
|
-
complete() {
|
|
37
|
-
this.settle("\u2713");
|
|
38
|
-
}
|
|
39
|
-
fail() {
|
|
40
|
-
this.settle("\u2717");
|
|
41
|
-
}
|
|
42
|
-
writeLogLine(line) {
|
|
43
|
-
if (isJsonOutputMode()) return;
|
|
44
|
-
if (!this.enabled) {
|
|
45
|
-
process.stderr.write(`${line}
|
|
46
|
-
`);
|
|
47
|
-
return;
|
|
48
|
-
}
|
|
49
|
-
const message = this.interactive ? `${this.cyan}[logs]${this.reset} ${this.dim}${line}${this.reset}` : `[logs] ${line}`;
|
|
50
|
-
if (!this.interactive) {
|
|
51
|
-
process.stderr.write(`${message}
|
|
52
|
-
`);
|
|
53
|
-
return;
|
|
54
|
-
}
|
|
55
|
-
const activeMessage = this.lastMessage;
|
|
56
|
-
this.worker?.terminate().catch(() => void 0);
|
|
57
|
-
this.worker = null;
|
|
58
|
-
process.stderr.write(`\r\x1B[2K${message}
|
|
59
|
-
`);
|
|
60
|
-
if (activeMessage) {
|
|
61
|
-
this.startWorker().postMessage({ type: "phase", message: activeMessage });
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
writeLine(line, stream = process.stderr) {
|
|
65
|
-
if (!this.enabled || !this.interactive) {
|
|
66
|
-
stream.write(`${line}
|
|
67
|
-
`);
|
|
68
|
-
return;
|
|
69
|
-
}
|
|
70
|
-
const activeMessage = this.lastMessage;
|
|
71
|
-
this.worker?.terminate().catch(() => void 0);
|
|
72
|
-
this.worker = null;
|
|
73
|
-
stream.write(`\r\x1B[2K${line}
|
|
74
|
-
`);
|
|
75
|
-
if (activeMessage) {
|
|
76
|
-
this.startWorker().postMessage({ type: "phase", message: activeMessage });
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
settle(mark) {
|
|
80
|
-
if (!this.enabled || !this.lastMessage) {
|
|
81
|
-
return;
|
|
82
|
-
}
|
|
83
|
-
if (this.interactive) {
|
|
84
|
-
this.worker?.terminate().catch(() => void 0);
|
|
85
|
-
this.worker = null;
|
|
86
|
-
process.stderr.write(
|
|
87
|
-
`\r\x1B[2K${this.grey}${mark} ${this.lastMessage}${this.reset}
|
|
88
|
-
`
|
|
89
|
-
);
|
|
90
|
-
}
|
|
91
|
-
this.lastMessage = null;
|
|
92
|
-
}
|
|
93
|
-
ensureWorker() {
|
|
94
|
-
this.startWorker();
|
|
95
|
-
}
|
|
96
|
-
startWorker() {
|
|
97
|
-
if (this.worker) {
|
|
98
|
-
return this.worker;
|
|
99
|
-
}
|
|
100
|
-
this.worker = new Worker(
|
|
101
|
-
`
|
|
102
|
-
const { parentPort } = require('node:worker_threads');
|
|
103
|
-
const { writeSync } = require('node:fs');
|
|
104
|
-
const frames = ['\u2014', '\\\\', '|', '/'];
|
|
105
|
-
const grey = '\\x1b[90m';
|
|
106
|
-
const reset = '\\x1b[0m';
|
|
107
|
-
let message = '';
|
|
108
|
-
let frameIndex = 0;
|
|
109
|
-
let timer = null;
|
|
110
|
-
function render() {
|
|
111
|
-
if (!message) return;
|
|
112
|
-
const frame = frames[frameIndex % frames.length] || '\u2014';
|
|
113
|
-
frameIndex += 1;
|
|
114
|
-
writeSync(2, '\\r\\x1b[2K' + grey + frame + ' ' + message + reset);
|
|
115
|
-
}
|
|
116
|
-
parentPort.on('message', (event) => {
|
|
117
|
-
if (event.type === 'phase') {
|
|
118
|
-
message = String(event.message || '');
|
|
119
|
-
frameIndex = 0;
|
|
120
|
-
render();
|
|
121
|
-
if (!timer) {
|
|
122
|
-
timer = setInterval(render, 120);
|
|
123
|
-
timer.unref && timer.unref();
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
if (event.type === 'stop') {
|
|
127
|
-
if (timer) clearInterval(timer);
|
|
128
|
-
timer = null;
|
|
129
|
-
writeSync(2, '\\r\\x1b[2K');
|
|
130
|
-
}
|
|
131
|
-
});
|
|
132
|
-
`,
|
|
133
|
-
{ eval: true }
|
|
134
|
-
);
|
|
135
|
-
this.worker.unref();
|
|
136
|
-
return this.worker;
|
|
137
|
-
}
|
|
138
|
-
};
|
|
139
|
-
var activeProgress = null;
|
|
140
|
-
function setActiveCliProgress(progress) {
|
|
141
|
-
activeProgress = progress;
|
|
142
|
-
}
|
|
143
|
-
function getActiveCliProgress() {
|
|
144
|
-
return activeProgress;
|
|
145
|
-
}
|
|
146
|
-
function createCliProgress(enabled) {
|
|
147
|
-
const progress = new CliProgress(enabled);
|
|
148
|
-
setActiveCliProgress(progress);
|
|
149
|
-
return progress;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
export {
|
|
153
|
-
getActiveCliProgress,
|
|
154
|
-
createCliProgress
|
|
155
|
-
};
|