deepline 0.3.460 → 0.3.462
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/client-core.ts +7593 -0
- package/dist/bundling-sources/sdk/src/client.ts +8 -7366
- package/dist/bundling-sources/sdk/src/http-core.ts +1239 -0
- package/dist/bundling-sources/sdk/src/http.ts +6 -1231
- package/dist/bundling-sources/sdk/src/index.ts +4 -1
- package/dist/bundling-sources/sdk/src/play.ts +5 -5
- package/dist/bundling-sources/sdk/src/plays/client-core.ts +437 -0
- package/dist/bundling-sources/sdk/src/plays/client.ts +4 -421
- package/dist/bundling-sources/sdk/src/plays/input-example.ts +3 -4
- package/dist/bundling-sources/sdk/src/plays/play-description.ts +1 -1
- package/dist/bundling-sources/sdk/src/plays/run-request.ts +1 -1
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/sdk/src/server.ts +43 -0
- package/dist/bundling-sources/sdk/src/types.ts +15 -5
- package/dist/bundling-sources/shared_libs/integration-contracts/billing-entitlements.ts +15 -0
- package/dist/bundling-sources/shared_libs/monitors/billing/state.ts +28 -0
- package/dist/bundling-sources/shared_libs/monitors/callback-security.ts +0 -307
- package/dist/bundling-sources/shared_libs/monitors/http-error-response.ts +3 -0
- package/dist/bundling-sources/shared_libs/monitors/lifecycle-notifications.ts +3 -2
- package/dist/bundling-sources/shared_libs/monitors/package.json +2 -0
- package/dist/bundling-sources/shared_libs/monitors/provider-callback-verification.ts +34 -0
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-batch-operation.ts +59 -0
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-upstream-identity.ts +94 -1
- package/dist/bundling-sources/shared_libs/monitors/signal-radars/inbound-dead-letter.ts +35 -1
- package/dist/bundling-sources/shared_libs/monitors/signal-radars/inbound-failure-codes.ts +24 -0
- package/dist/bundling-sources/shared_libs/observability/dlq.ts +32 -0
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +57 -3
- package/dist/bundling-sources/shared_libs/observability/scheduled-work.ts +1 -0
- package/dist/bundling-sources/shared_libs/play-data-plane/r2.ts +66 -1
- package/dist/bundling-sources/shared_libs/play-data-plane/sheet-column-storage.ts +36 -7
- package/dist/bundling-sources/shared_libs/play-runtime/app-runtime-api.ts +250 -11
- package/dist/bundling-sources/shared_libs/play-runtime/array-input-store.ts +319 -0
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +991 -359
- package/dist/bundling-sources/shared_libs/play-runtime/ctx-types.ts +17 -0
- package/dist/bundling-sources/shared_libs/play-runtime/daytona-sandbox-janitor.ts +13 -0
- package/dist/bundling-sources/shared_libs/play-runtime/daytona-sandbox-reaper.ts +110 -0
- package/dist/bundling-sources/shared_libs/play-runtime/deployment/fly-machines.ts +155 -6
- package/dist/bundling-sources/shared_libs/play-runtime/deployment/fly-registry.ts +110 -6
- package/dist/bundling-sources/shared_libs/play-runtime/durable-receipt-execution.ts +127 -13
- package/dist/bundling-sources/shared_libs/play-runtime/execution-capabilities.ts +14 -1
- package/dist/bundling-sources/shared_libs/play-runtime/fixture-behavior.ts +57 -1
- package/dist/bundling-sources/shared_libs/play-runtime/free-company-lookup-batching.ts +218 -0
- package/dist/bundling-sources/shared_libs/play-runtime/gateway-postgres-admission.ts +42 -5
- package/dist/bundling-sources/shared_libs/play-runtime/governor/app-runtime-budget-state-backend.ts +6 -1
- package/dist/bundling-sources/shared_libs/play-runtime/governor/app-runtime-rate-state-backend.ts +92 -31
- package/dist/bundling-sources/shared_libs/play-runtime/governor/block-reserving-budget-state-backend.ts +69 -14
- package/dist/bundling-sources/shared_libs/play-runtime/governor/governor.ts +93 -23
- package/dist/bundling-sources/shared_libs/play-runtime/governor/in-memory-rate-state-backend.ts +15 -4
- package/dist/bundling-sources/shared_libs/play-runtime/governor/policy.ts +22 -18
- package/dist/bundling-sources/shared_libs/play-runtime/governor/rate-state-backend.ts +5 -0
- package/dist/bundling-sources/shared_libs/play-runtime/launch-identity.ts +2 -0
- package/dist/bundling-sources/shared_libs/play-runtime/map-memory-limits.ts +190 -14
- package/dist/bundling-sources/shared_libs/play-runtime/memory-ledger.ts +131 -0
- package/dist/bundling-sources/shared_libs/play-runtime/modal-runtime-config.ts +77 -2
- package/dist/bundling-sources/shared_libs/play-runtime/output-size-limits.ts +271 -2
- package/dist/bundling-sources/shared_libs/play-runtime/play-run-recovery-policy.ts +51 -0
- package/dist/bundling-sources/shared_libs/play-runtime/play-runs/sandbox-cleanup/contracts.ts +2 -0
- package/dist/bundling-sources/shared_libs/play-runtime/play-runs/sandbox-cleanup/job.ts +27 -1
- package/dist/bundling-sources/shared_libs/play-runtime/play-runtime-batching-registry.ts +2 -0
- package/dist/bundling-sources/shared_libs/play-runtime/protocol.ts +3 -0
- package/dist/bundling-sources/shared_libs/play-runtime/provider-text-for-log.ts +63 -0
- package/dist/bundling-sources/shared_libs/play-runtime/resource-governor.ts +19 -0
- package/dist/bundling-sources/shared_libs/play-runtime/run-ledger-event-transport.ts +112 -16
- package/dist/bundling-sources/shared_libs/play-runtime/run-ledger.ts +104 -2
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +265 -151
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/runtime-gateway-transport.ts +17 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/runtime-progress-push.ts +35 -14
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/runtime-sheet-persistence-retry.ts +12 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-control-transport.ts +4 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-labels.ts +36 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-launch-transport.ts +136 -70
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-lifecycle.ts +237 -36
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-runtime-watchdog.ts +148 -4
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-session-execution.ts +6 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona.ts +285 -32
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/modal.ts +251 -56
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/runtime-sandbox-reconciliation.ts +29 -4
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/sandbox-create-outcome.ts +27 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/types.ts +22 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-api.ts +1397 -382
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-array-input-receipts.ts +920 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-constants.ts +16 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-environment.ts +38 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-flow.ts +6 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-incident-drills.ts +26 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-operation-contract.ts +30 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-receipt-store-adapter.ts +14 -3
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-receipt-writer.ts +31 -4
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-sheet-row-transition.ts +47 -0
- package/dist/bundling-sources/shared_libs/play-runtime/sandbox-compute-usage.ts +20 -7
- package/dist/bundling-sources/shared_libs/play-runtime/sandbox-runs/contract.ts +12 -0
- package/dist/bundling-sources/shared_libs/play-runtime/sandbox-runs/index.ts +9 -0
- package/dist/bundling-sources/shared_libs/play-runtime/sandbox-runs/runner-backend-adapter.ts +10 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backend.ts +4 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +1496 -320
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-worker-required-env.ts +31 -1
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +1389 -129
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/receipt-gateway.ts +36 -0
- 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 +162 -23
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-event-search.ts +499 -115
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-capacity.ts +377 -9
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-ledger-reconciliation.ts +117 -8
- package/dist/bundling-sources/shared_libs/play-runtime/secret-resolution-retry-policy.ts +25 -0
- package/dist/bundling-sources/shared_libs/play-runtime/terminal-runtime-performance.ts +391 -0
- package/dist/bundling-sources/shared_libs/play-runtime/test-runtime-seams.ts +40 -0
- package/dist/bundling-sources/shared_libs/play-runtime/tool-call/index.ts +6 -0
- package/dist/bundling-sources/shared_libs/play-runtime/tool-call/mapped-calls.ts +171 -0
- package/dist/bundling-sources/shared_libs/play-runtime/tool-call/receipt-cohort.ts +16 -1
- package/dist/bundling-sources/shared_libs/play-runtime/tool-execute-retry-policy.ts +26 -3
- package/dist/bundling-sources/shared_libs/play-runtime/tool-result.ts +16 -2
- package/dist/bundling-sources/shared_libs/play-runtime/transport-error-diagnostics.ts +28 -0
- package/dist/bundling-sources/shared_libs/play-runtime/work-receipt-storage-contract.ts +55 -5
- package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +41 -1
- package/dist/bundling-sources/shared_libs/plays/contracts.ts +4 -0
- package/dist/bundling-sources/shared_libs/plays/dataset.ts +9 -3
- package/dist/bundling-sources/shared_libs/plays/deploy/manifest-contract.ts +2 -0
- package/dist/bundling-sources/shared_libs/plays/deploy/manifest.ts +3 -2
- package/dist/bundling-sources/shared_libs/plays/deploy/project-serializer.ts +2 -2
- package/dist/bundling-sources/shared_libs/plays/run-output-summary.ts +66 -0
- package/dist/bundling-sources/shared_libs/plays/script-entry.ts +1 -1
- package/dist/bundling-sources/shared_libs/product-notifications/catalog.ts +43 -1
- package/dist/bundling-sources/shared_libs/product-notifications/content.ts +9 -0
- package/dist/bundling-sources/shared_libs/product-notifications/email.ts +91 -13
- package/dist/bundling-sources/shared_libs/product-notifications/events.ts +3 -0
- package/dist/bundling-sources/shared_libs/product-notifications/slack-delivery.ts +41 -24
- package/dist/bundling-sources/shared_libs/security/attested-client-ip.ts +91 -0
- package/dist/bundling-sources/shared_libs/security/internal-actor.ts +0 -11
- package/dist/cli/{auth-HKA6ZVHQ.mjs → auth-JDLEY7VU.mjs} +5 -4
- package/dist/cli/auth-UXKY6TCC.js +41 -0
- package/dist/cli/{billing-MTO2ZZ3G.js → billing-HXAXB3XZ.js} +152 -78
- package/dist/cli/{billing-26G44S5N.mjs → billing-SDHLBLMV.mjs} +84 -10
- package/dist/cli/{chunk-BHGII2D6.js → chunk-3ACMRZRV.js} +8 -6
- package/dist/cli/{chunk-S4Q2XCGM.mjs → chunk-3KZCFOZ6.mjs} +1 -1
- package/dist/cli/chunk-4KQ6SIBC.mjs +1038 -0
- package/dist/cli/{chunk-Z2GUFYT6.js → chunk-5LEAXRHV.js} +11 -11
- package/dist/cli/{chunk-XAYO3Q2X.mjs → chunk-6NNVJDVR.mjs} +7 -5
- package/dist/cli/{chunk-NMJ4D2WO.js → chunk-6PMCRYDA.js} +216 -91
- package/dist/cli/{chunk-OMM54B3X.mjs → chunk-6RNQGWFD.mjs} +16 -806
- package/dist/cli/{chunk-EBU7LQ64.js → chunk-6V7KVRR5.js} +3 -3
- package/dist/cli/{chunk-RDPTDDKX.js → chunk-7LFIMWMW.js} +2 -2
- package/dist/cli/chunk-7MJ6VI2T.mjs +19 -0
- package/dist/cli/chunk-7SWNPNML.js +1039 -0
- package/dist/cli/{chunk-CTRPCARW.mjs → chunk-7U3XNPOA.mjs} +267 -38
- package/dist/cli/{chunk-RBTTUYZZ.js → chunk-7VZHXVOQ.js} +1 -1
- package/dist/cli/{chunk-YVBWO647.mjs → chunk-AT636LLU.mjs} +2 -2
- package/dist/cli/{chunk-VTODQWQA.js → chunk-BGTPIMSM.js} +392 -261
- package/dist/cli/{chunk-KADIT5NV.mjs → chunk-CKSOY47X.mjs} +2 -2
- package/dist/cli/{chunk-7DH2FD7Y.mjs → chunk-D464JW3N.mjs} +5 -85
- package/dist/cli/chunk-D6DXOUTO.mjs +827 -0
- package/dist/cli/{describe-QW54QQNB.js → chunk-EM4TXCCI.js} +27 -44
- package/dist/cli/chunk-F6QV42MC.mjs +91 -0
- package/dist/cli/chunk-FKVYR3QA.mjs +1039 -0
- package/dist/cli/{chunk-LMAULZLF.js → chunk-GEGW5HPZ.js} +29 -27
- package/dist/cli/{chunk-M52JQSLK.js → chunk-HUB3CCM2.js} +13 -4
- package/dist/cli/{chunk-YHTQM5XI.js → chunk-I6VHOU5O.js} +27 -27
- package/dist/cli/{chunk-Z2XUZC34.js → chunk-IAYSWZDJ.js} +188 -76
- package/dist/cli/chunk-JF3TLIMQ.js +19 -0
- package/dist/cli/{chunk-HDFRJ4IT.mjs → chunk-JVHOS3K3.mjs} +177 -65
- package/dist/cli/{chunk-LAWEURCT.mjs → chunk-LFXLQEZN.mjs} +1 -1
- package/dist/cli/{chunk-2PBN4SZE.js → chunk-LROWFPGN.js} +16 -16
- package/dist/cli/{chunk-SLEUWLJE.mjs → chunk-MSY22NQW.mjs} +5 -5
- package/dist/cli/{chunk-LVJOFUU7.mjs → chunk-MUUQZIOF.mjs} +23 -49
- package/dist/cli/{chunk-2XHWOQF4.js → chunk-NBLSCHKK.js} +52 -50
- package/dist/cli/{chunk-526R2HON.mjs → chunk-NHRWZPWZ.mjs} +4 -2
- package/dist/cli/{chunk-KXMNM4AQ.js → chunk-NMU3VR5U.js} +4 -5
- package/dist/cli/{chunk-W3BE3CHK.mjs → chunk-O2RX5A66.mjs} +14 -12
- package/dist/cli/{chunk-UKFZT7RF.js → chunk-OMQ23IXL.js} +2 -2
- package/dist/cli/{chunk-LJTFZOHU.js → chunk-OPJAJBD4.js} +28 -54
- package/dist/cli/{chunk-MLFR6DVF.mjs → chunk-PHSEINNH.mjs} +5 -5
- package/dist/cli/{chunk-3DNKFH2G.mjs → chunk-PKHVSIJG.mjs} +19 -1
- package/dist/cli/{chunk-WIYWSYDS.mjs → chunk-Q2EIZKVX.mjs} +3 -3
- package/dist/cli/{chunk-VJAEA4CS.js → chunk-QJZ6WNWD.js} +8 -8
- package/dist/cli/{chunk-EIMG75BT.mjs → chunk-S3A4IXBQ.mjs} +4 -5
- package/dist/cli/{chunk-RZSTT45F.mjs → chunk-S42YIQNE.mjs} +13 -8
- package/dist/cli/{chunk-YULBYKAK.mjs → chunk-S6UAJR6V.mjs} +3 -3
- package/dist/cli/{chunk-G7L27KZB.mjs → chunk-TKAQR3IB.mjs} +31 -21
- package/dist/cli/{chunk-QWRHGGUH.js → chunk-UAJFWWZE.js} +20 -2
- package/dist/cli/{chunk-ZR2RLI4O.mjs → chunk-UDRPEZ5F.mjs} +223 -92
- package/dist/cli/{chunk-QGAWTBIR.js → chunk-ULK7JGGI.js} +511 -282
- package/dist/cli/chunk-V335HGX5.js +1038 -0
- package/dist/cli/{chunk-NH6JSJW6.mjs → chunk-V3MEA7NB.mjs} +7 -5
- package/dist/cli/{chunk-NRGGFVVB.js → chunk-VFGVXXZP.js} +37 -35
- package/dist/cli/chunk-VLEVVDWG.js +91 -0
- package/dist/cli/{chunk-R2GLGLDR.mjs → chunk-VPHN2HAL.mjs} +216 -91
- package/dist/cli/{chunk-CFUTOWE4.js → chunk-WG3KGAII.js} +8 -88
- package/dist/cli/{describe-TOMIAT37.mjs → chunk-WIY6U6GD.mjs} +19 -36
- package/dist/cli/{chunk-YS2YBSJB.js → chunk-XANRM3QA.js} +6 -6
- package/dist/cli/{chunk-KGQNIA37.js → chunk-XQCTG5OO.js} +44 -34
- package/dist/cli/{chunk-EJGBLXDZ.mjs → chunk-XZAFIOUQ.mjs} +1 -1
- package/dist/cli/chunk-Y4DPU4OM.js +827 -0
- package/dist/cli/chunk-YT5EODJO.js +920 -0
- package/dist/cli/{chunk-2WRO2UJ5.js → chunk-ZGQSFYD2.js} +56 -51
- package/dist/cli/{chunk-OJ6RUKVT.mjs → chunk-ZUK6LIJB.mjs} +10 -1
- package/dist/cli/command-docs.d.mts +5 -0
- package/dist/cli/command-docs.d.ts +5 -0
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-6FNFYJUC.js → csv-C56GSCEU.js} +13 -12
- package/dist/cli/{csv-MDHT4BKK.mjs → csv-L54JS7TF.mjs} +4 -3
- package/dist/cli/{db-D6AMVOEW.js → db-MOGRMZTA.js} +30 -27
- package/dist/cli/{db-74O3RFWY.mjs → db-YVBUW2DX.mjs} +10 -7
- package/dist/cli/describe-KYEULWPG.js +48 -0
- package/dist/cli/describe-NLZKKT7C.mjs +48 -0
- package/dist/cli/describe-core.d.mts +153 -5
- package/dist/cli/describe-core.d.ts +153 -5
- package/dist/cli/describe-core.js +9 -5
- package/dist/cli/describe-core.mjs +10 -6
- package/dist/cli/{executions-N4FMGVSC.js → executions-A7L4ULPP.js} +9 -7
- package/dist/cli/{executions-PVSF4HUF.mjs → executions-ZBGSTT37.mjs} +7 -5
- package/dist/cli/{feedback-OB7NANZW.mjs → feedback-G6GU37FD.mjs} +6 -5
- package/dist/cli/{feedback-WFSPCAI2.js → feedback-OHLY7RYD.js} +10 -9
- package/dist/cli/getting-started.d.mts +6 -6
- package/dist/cli/getting-started.d.ts +6 -6
- package/dist/cli/getting-started.js +2 -2
- package/dist/cli/getting-started.mjs +1 -1
- package/dist/cli/git-P76N4NDQ.js +25 -0
- package/dist/cli/{git-FHUSPAEU.mjs → git-PKZW3QD5.mjs} +5 -4
- package/dist/cli/index.js +152 -142
- package/dist/cli/index.mjs +56 -46
- package/dist/cli/{legacy-noops-ECHNA5HN.js → legacy-noops-5LM3D724.js} +8 -7
- package/dist/cli/{legacy-noops-HMK4BSCI.mjs → legacy-noops-LJJYG6YA.mjs} +5 -4
- package/dist/cli/{monitors-U7VQ3EZM.mjs → monitors-72QV4ALO.mjs} +19 -6
- package/dist/cli/{monitors-XLLFNENH.js → monitors-UX3H5DC2.js} +103 -90
- package/dist/cli/{org-6H3USO5M.mjs → org-6RRRKOCP.mjs} +9 -6
- package/dist/cli/{org-QX6ER2HN.js → org-IF7ISUVB.js} +70 -67
- package/dist/cli/pages-3SU3HKL7.js +252 -0
- package/dist/cli/pages-DXDYYKEK.mjs +252 -0
- package/dist/cli/{play-MOB2WYOR.mjs → play-AHASKRLA.mjs} +512 -1508
- package/dist/cli/{play-WNB7HBZK.js → play-EUIUVLUH.js} +1090 -2086
- package/dist/cli/{providers-CXEZ23E2.mjs → providers-GWGE3WY3.mjs} +7 -5
- package/dist/cli/{providers-7M3DISKX.js → providers-V5WU4VXJ.js} +10 -8
- package/dist/cli/{quickstart-ZFCHKHF6.mjs → quickstart-OXKQ5ZST.mjs} +5 -4
- package/dist/cli/{quickstart-CLJT4AZL.js → quickstart-QP65I5PF.js} +13 -12
- package/dist/cli/run-6MM72IGL.mjs +443 -0
- package/dist/cli/run-F3FTYS56.js +443 -0
- package/dist/cli/search-OYKOOI7A.js +32 -0
- package/dist/cli/{search-FVYWYIC3.mjs → search-ZMEBVJZB.mjs} +8 -6
- package/dist/cli/{secrets-YRLKZQS5.js → secrets-ACND5N6A.js} +16 -14
- package/dist/cli/{secrets-WAMPTQFC.mjs → secrets-XRCJFF3L.mjs} +7 -5
- package/dist/cli/{sessions-IQ332BJH.mjs → sessions-RTK3CEW6.mjs} +5 -4
- package/dist/cli/{sessions-44J6WIVU.js → sessions-ZGRJPCFF.js} +6 -5
- package/dist/cli/{settings-4IJR2I2T.js → settings-PD5KWQQZ.js} +80 -77
- package/dist/cli/{settings-22S6NIFQ.mjs → settings-XDRBPRDE.mjs} +14 -11
- package/dist/cli/{setup-OZUPKKPW.mjs → setup-3HPYAOCC.mjs} +12 -10
- package/dist/cli/{setup-3FWSRNOX.js → setup-E2Q6PXHC.js} +53 -51
- package/dist/cli/{skills-5CW3NFP3.mjs → skills-OOQFMPOV.mjs} +7 -6
- package/dist/cli/skills-XYWV52KB.js +31 -0
- package/dist/cli/tools-ASCDZJCK.js +55 -0
- package/dist/cli/tools-C5ZT3UIC.mjs +55 -0
- package/dist/cli/update-5RQSEIFM.js +33 -0
- package/dist/cli/{update-IBULOV7P.mjs → update-ZWJTADIW.mjs} +9 -8
- package/dist/cli/{workflow-MVZT7MWT.mjs → workflow-23NMPAJ7.mjs} +10 -8
- package/dist/cli/{workflow-Z7FW6GT2.js → workflow-TCXU5YJV.js} +20 -18
- package/dist/client-DS2IWYZF.d.ts +10 -0
- package/dist/client-DTwnz_AW.d.mts +10 -0
- package/dist/{client-CYqG23K1.d.ts → client-core-B_6HAIBy.d.ts} +385 -12
- package/dist/{client-BbU5_j7n.d.mts → client-core-DzBSlY1U.d.mts} +385 -12
- package/dist/{compiler-manifest-CWz_sNOQ.d.mts → compiler-manifest-Dcyd3-Zd.d.mts} +43 -1
- package/dist/{compiler-manifest-CWz_sNOQ.d.ts → compiler-manifest-Dcyd3-Zd.d.ts} +43 -1
- package/dist/errors-d-sTrZhe.d.mts +142 -0
- package/dist/errors-yQwfgrcX.d.ts +142 -0
- package/dist/{index-BF2JB_Ug.d.mts → index-C6oXchjN.d.mts} +1 -1
- package/dist/{index-4NPXDzlD.d.ts → index-P56zy_z5.d.ts} +1 -1
- package/dist/index.d.mts +11 -147
- package/dist/index.d.ts +11 -147
- package/dist/index.js +15 -11
- package/dist/index.mjs +14 -10
- package/dist/install-integrity.json +141 -104
- 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 +2 -1
- package/dist/plays/play-description.d.mts +2 -2
- package/dist/plays/play-description.d.ts +2 -2
- package/dist/plays/play-description.js +2 -2
- package/dist/plays/play-description.mjs +1 -1
- package/dist/plays/run-request.d.mts +2 -2
- package/dist/plays/run-request.d.ts +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 +17 -0
- package/dist/server.d.ts +17 -0
- package/dist/server.js +76 -0
- package/dist/server.mjs +76 -0
- package/package.json +6 -1
- package/dist/cli/auth-VDOCNR7H.js +0 -40
- package/dist/cli/chunk-PQUUWFXY.js +0 -95
- package/dist/cli/chunk-QJLKYYPX.js +0 -1710
- package/dist/cli/chunk-YBWAG72P.mjs +0 -95
- package/dist/cli/git-4PMBJSH5.js +0 -24
- package/dist/cli/search-4CCQCTVD.js +0 -30
- package/dist/cli/skills-LMNM6B5F.js +0 -30
- package/dist/cli/tools-AGBBDJ7P.js +0 -45
- package/dist/cli/tools-NOPBDRGW.mjs +0 -45
- package/dist/cli/update-U3W6USVD.js +0 -32
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } var _class; var _class2;require('./chunk-I5YZLGMG.js');
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkJF3TLIMQjs = require('./chunk-JF3TLIMQ.js');
|
|
5
|
+
require('./chunk-BGTPIMSM.js');
|
|
5
6
|
require('./chunk-E4CABWXL.js');
|
|
6
7
|
require('./chunk-JKVRBCZL.js');
|
|
7
|
-
require('./chunk-
|
|
8
|
+
require('./chunk-NMU3VR5U.js');
|
|
8
9
|
require('./chunk-XDVT3GOM.js');
|
|
9
10
|
|
|
10
11
|
|
|
@@ -16,14 +17,15 @@ require('./chunk-UNEMDKXN.js');
|
|
|
16
17
|
var _chunkIF75RD6Ujs = require('./chunk-IF75RD6U.js');
|
|
17
18
|
|
|
18
19
|
|
|
19
|
-
var
|
|
20
|
+
var _chunkHUB3CCM2js = require('./chunk-HUB3CCM2.js');
|
|
20
21
|
|
|
21
22
|
|
|
22
23
|
|
|
23
24
|
|
|
24
25
|
|
|
25
|
-
var
|
|
26
|
-
require('./chunk-
|
|
26
|
+
var _chunk3ACMRZRVjs = require('./chunk-3ACMRZRV.js');
|
|
27
|
+
require('./chunk-Y4DPU4OM.js');
|
|
28
|
+
require('./chunk-YT5EODJO.js');
|
|
27
29
|
|
|
28
30
|
|
|
29
31
|
var _chunkALJJRZNJjs = require('./chunk-ALJJRZNJ.js');
|
|
@@ -31,7 +33,7 @@ require('./chunk-XNYIZMNQ.js');
|
|
|
31
33
|
|
|
32
34
|
|
|
33
35
|
var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
|
|
34
|
-
require('./chunk-
|
|
36
|
+
require('./chunk-7VZHXVOQ.js');
|
|
35
37
|
require('./chunk-OG64RBAC.js');
|
|
36
38
|
require('./chunk-COGTRVWW.js');
|
|
37
39
|
|
|
@@ -109,10 +111,10 @@ function reportMonitorsFailure(error, options) {
|
|
|
109
111
|
const exitCode = monitorsErrorExitCode(error);
|
|
110
112
|
const next = monitorsFailureNextCommand(error, exitCode, options);
|
|
111
113
|
const retrySafe = exitCode === 5 && _optionalChain([options, 'optionalAccess', _9 => _9.retryCommand]) !== void 0;
|
|
112
|
-
const wantsJson =
|
|
114
|
+
const wantsJson = _chunk3ACMRZRVjs.shouldEmitJson.call(void 0, process.argv.includes("--json"));
|
|
113
115
|
if (wantsJson) {
|
|
114
|
-
const payload =
|
|
115
|
-
|
|
116
|
+
const payload = _chunk3ACMRZRVjs.errorToJsonPayload.call(void 0, error);
|
|
117
|
+
_chunk3ACMRZRVjs.printJson.call(void 0, {
|
|
116
118
|
ok: false,
|
|
117
119
|
exitCode,
|
|
118
120
|
...next ? { next } : {},
|
|
@@ -527,14 +529,14 @@ Preview the plan first with:
|
|
|
527
529
|
);
|
|
528
530
|
}
|
|
529
531
|
async function handleMonitorsStatus(options) {
|
|
530
|
-
const payload = await new (0,
|
|
532
|
+
const payload = await new (0, _chunkJF3TLIMQjs.DeeplineClient)().monitors.status();
|
|
531
533
|
const hasAccess = payload.has_access === true;
|
|
532
534
|
const reason = typeof payload.reason === "string" && payload.reason.trim() ? payload.reason.trim() : void 0;
|
|
533
535
|
const text = hasAccess ? `\u2713 You have access to Deepline Monitors${reason ? `
|
|
534
536
|
${reason}` : ""}
|
|
535
537
|
` : `\u2717 No access to Deepline Monitors${reason ? ` \u2014 ${reason}` : ""}
|
|
536
538
|
`;
|
|
537
|
-
|
|
539
|
+
_chunk3ACMRZRVjs.printCommandEnvelope.call(void 0,
|
|
538
540
|
{ has_access: hasAccess, ...reason ? { reason } : {} },
|
|
539
541
|
{ json: options.json, text }
|
|
540
542
|
);
|
|
@@ -600,14 +602,14 @@ async function handleMonitorsAvailable(toolId, options) {
|
|
|
600
602
|
}
|
|
601
603
|
}
|
|
602
604
|
const tool = _nullishCoalesce(toolId, () => ( options.tool));
|
|
603
|
-
const payload = await new (0,
|
|
605
|
+
const payload = await new (0, _chunkJF3TLIMQjs.DeeplineClient)().monitors.available(tool, {
|
|
604
606
|
...options.provider ? { provider: options.provider } : {},
|
|
605
607
|
...options.search ? { search: options.search } : {},
|
|
606
608
|
...options.limit ? { limit: options.limit } : {},
|
|
607
609
|
...options.full ? { full: true } : {},
|
|
608
610
|
...options.compact ? { compact: true } : {}
|
|
609
611
|
});
|
|
610
|
-
|
|
612
|
+
_chunk3ACMRZRVjs.printCommandEnvelope.call(void 0, payload, {
|
|
611
613
|
json: options.json,
|
|
612
614
|
// Human list view shows id + name + deployed_count ("deployed: N") so
|
|
613
615
|
// can-deploy vs already-deployed is visible in one view. Describing a
|
|
@@ -710,14 +712,14 @@ async function handleMonitorsList(options) {
|
|
|
710
712
|
"`--compact` is deprecated and now does nothing; returning the complete monitor records.\n"
|
|
711
713
|
);
|
|
712
714
|
}
|
|
713
|
-
const payload = await new (0,
|
|
715
|
+
const payload = await new (0, _chunkJF3TLIMQjs.DeeplineClient)().monitors.list({
|
|
714
716
|
...state ? { state } : {},
|
|
715
717
|
...options.status ? { status: options.status } : {},
|
|
716
718
|
...options.limit ? { limit: options.limit } : {},
|
|
717
719
|
...options.cursor ? { cursor: options.cursor } : {},
|
|
718
720
|
...options.includeConsumers ? { includeConsumers: true } : {}
|
|
719
721
|
});
|
|
720
|
-
|
|
722
|
+
_chunk3ACMRZRVjs.printCommandEnvelope.call(void 0, payload, {
|
|
721
723
|
json: options.json,
|
|
722
724
|
text: renderDeployedListText(
|
|
723
725
|
payload,
|
|
@@ -733,10 +735,10 @@ async function handleMonitorsCheck(definition, options) {
|
|
|
733
735
|
argLabel: "<definition>",
|
|
734
736
|
command: "deepline monitors check"
|
|
735
737
|
});
|
|
736
|
-
const payload = await new (0,
|
|
738
|
+
const payload = await new (0, _chunkJF3TLIMQjs.DeeplineClient)().monitors.check(
|
|
737
739
|
body
|
|
738
740
|
);
|
|
739
|
-
|
|
741
|
+
_chunk3ACMRZRVjs.printCommandEnvelope.call(void 0, payload, { json: options.json });
|
|
740
742
|
}
|
|
741
743
|
function previewText(value) {
|
|
742
744
|
return typeof value === "string" && value.trim() ? value.trim() : "-";
|
|
@@ -794,22 +796,22 @@ async function handleMonitorsPreview(definition, options) {
|
|
|
794
796
|
if (limit !== void 0 && !Number.isInteger(limit)) {
|
|
795
797
|
throw new MonitorsUsageError("--limit must be a whole number from 1 to 3.");
|
|
796
798
|
}
|
|
797
|
-
const wantsJson =
|
|
799
|
+
const wantsJson = _chunk3ACMRZRVjs.shouldEmitJson.call(void 0, options.json);
|
|
798
800
|
if (options.idempotencyKey === void 0 && wantsJson) {
|
|
799
801
|
throw new MonitorsUsageError(
|
|
800
802
|
"--json requires --idempotency-key <key>. Choose a new key for each new preview and keep it: rerunning with the same key returns the result without paying again."
|
|
801
803
|
);
|
|
802
804
|
}
|
|
803
805
|
const idempotencyKey = _nullishCoalesce(options.idempotencyKey, () => ( `monitor-preview-${_crypto.randomUUID.call(void 0, )}`));
|
|
804
|
-
const progress =
|
|
806
|
+
const progress = _chunkHUB3CCM2js.createCliProgress.call(void 0, !wantsJson);
|
|
805
807
|
progress.phase(`Preview key: ${idempotencyKey}`);
|
|
806
808
|
try {
|
|
807
|
-
const payload = await new (0,
|
|
809
|
+
const payload = await new (0, _chunkJF3TLIMQjs.DeeplineClient)().monitors.preview(
|
|
808
810
|
body,
|
|
809
811
|
{ idempotencyKey, ...limit === void 0 ? {} : { limit } }
|
|
810
812
|
);
|
|
811
813
|
progress.complete();
|
|
812
|
-
|
|
814
|
+
_chunk3ACMRZRVjs.printCommandEnvelope.call(void 0, payload, {
|
|
813
815
|
json: options.json,
|
|
814
816
|
text: renderMonitorPreviewText(payload)
|
|
815
817
|
});
|
|
@@ -854,7 +856,7 @@ async function handleMonitorsDeploy(definition, options) {
|
|
|
854
856
|
argLabel: "<definition>",
|
|
855
857
|
command: "deepline monitors deploy"
|
|
856
858
|
});
|
|
857
|
-
const client = new (0,
|
|
859
|
+
const client = new (0, _chunkJF3TLIMQjs.DeeplineClient)();
|
|
858
860
|
const definitionArg = body;
|
|
859
861
|
if (options.dryRun) {
|
|
860
862
|
const payload2 = await client.monitors.deploy(definitionArg, {
|
|
@@ -862,7 +864,7 @@ async function handleMonitorsDeploy(definition, options) {
|
|
|
862
864
|
});
|
|
863
865
|
const valid = payload2.valid !== false;
|
|
864
866
|
const hasIdentityConflict = Boolean(_optionalChain([asRecord, 'call', _23 => _23(payload2), 'optionalAccess', _24 => _24.identity_conflict]));
|
|
865
|
-
|
|
867
|
+
_chunk3ACMRZRVjs.printCommandEnvelope.call(void 0,
|
|
866
868
|
{ dry_run: true, ...payload2 },
|
|
867
869
|
{ json: options.json, text: renderMonitorDeployPlan(payload2) }
|
|
868
870
|
);
|
|
@@ -872,7 +874,7 @@ async function handleMonitorsDeploy(definition, options) {
|
|
|
872
874
|
return;
|
|
873
875
|
}
|
|
874
876
|
const payload = await client.monitors.deploy(definitionArg);
|
|
875
|
-
|
|
877
|
+
_chunk3ACMRZRVjs.printCommandEnvelope.call(void 0, payload, {
|
|
876
878
|
json: options.json,
|
|
877
879
|
text: renderMonitorDeployCompletion(payload)
|
|
878
880
|
});
|
|
@@ -884,29 +886,29 @@ async function handleMonitorsSync(definition, options) {
|
|
|
884
886
|
argLabel: "<definition>",
|
|
885
887
|
command: "deepline monitors sync"
|
|
886
888
|
});
|
|
887
|
-
const payload = await new (0,
|
|
889
|
+
const payload = await new (0, _chunkJF3TLIMQjs.DeeplineClient)().monitors.sync(body, {
|
|
888
890
|
...options.dryRun ? { dryRun: true } : {},
|
|
889
891
|
idempotencyKey: _nullishCoalesce(options.idempotencyKey, () => ( monitorJobIdempotencyKey("scalar-sync", void 0)))
|
|
890
892
|
});
|
|
891
893
|
if (options.dryRun) {
|
|
892
894
|
const plan = payload;
|
|
893
|
-
|
|
895
|
+
_chunk3ACMRZRVjs.printCommandEnvelope.call(void 0,
|
|
894
896
|
{ dry_run: true, ...plan },
|
|
895
897
|
{ json: options.json, text: renderMonitorDeployPlan(plan) }
|
|
896
898
|
);
|
|
897
899
|
return;
|
|
898
900
|
}
|
|
899
|
-
|
|
901
|
+
_chunk3ACMRZRVjs.printCommandEnvelope.call(void 0, payload, {
|
|
900
902
|
json: options.json,
|
|
901
903
|
text: renderMonitorJob(payload)
|
|
902
904
|
});
|
|
903
905
|
}
|
|
904
906
|
async function handleScalarMonitorLifecycle(action, key, options) {
|
|
905
|
-
const payload = await new (0,
|
|
907
|
+
const payload = await new (0, _chunkJF3TLIMQjs.DeeplineClient)().monitors[action](key, {
|
|
906
908
|
...options.dryRun ? { dryRun: true } : {},
|
|
907
909
|
idempotencyKey: _nullishCoalesce(options.idempotencyKey, () => ( monitorJobIdempotencyKey(`${action}-${key}`, void 0)))
|
|
908
910
|
});
|
|
909
|
-
|
|
911
|
+
_chunk3ACMRZRVjs.printCommandEnvelope.call(void 0, payload, {
|
|
910
912
|
json: options.json,
|
|
911
913
|
text: options.dryRun ? void 0 : renderMonitorJob(payload)
|
|
912
914
|
});
|
|
@@ -995,11 +997,11 @@ async function handleMonitorJobBatchDeploy(options, idempotencyKey) {
|
|
|
995
997
|
lint.issues.filter((issue) => issue.severity === "error").map((issue) => `${issue.path || "batch"}: ${issue.message}`).join("; ")
|
|
996
998
|
);
|
|
997
999
|
}
|
|
998
|
-
const payload = await new (0,
|
|
1000
|
+
const payload = await new (0, _chunkJF3TLIMQjs.DeeplineClient)().monitors.batch.deploy(
|
|
999
1001
|
lint.normalized.monitors,
|
|
1000
1002
|
{ idempotencyKey }
|
|
1001
1003
|
);
|
|
1002
|
-
|
|
1004
|
+
_chunk3ACMRZRVjs.printCommandEnvelope.call(void 0,
|
|
1003
1005
|
{
|
|
1004
1006
|
...payload,
|
|
1005
1007
|
idempotency_key: idempotencyKey,
|
|
@@ -1032,7 +1034,7 @@ async function handleNamedMonitorBatchSync(batchId, options) {
|
|
|
1032
1034
|
);
|
|
1033
1035
|
}
|
|
1034
1036
|
if (options.dryRun) {
|
|
1035
|
-
|
|
1037
|
+
_chunk3ACMRZRVjs.printCommandEnvelope.call(void 0,
|
|
1036
1038
|
{
|
|
1037
1039
|
ok: true,
|
|
1038
1040
|
dry_run: true,
|
|
@@ -1049,7 +1051,7 @@ async function handleNamedMonitorBatchSync(batchId, options) {
|
|
|
1049
1051
|
"sync",
|
|
1050
1052
|
options.idempotencyKey
|
|
1051
1053
|
);
|
|
1052
|
-
const payload = await new (0,
|
|
1054
|
+
const payload = await new (0, _chunkJF3TLIMQjs.DeeplineClient)().monitors.batches.sync(
|
|
1053
1055
|
batchId,
|
|
1054
1056
|
lint.normalized.monitors,
|
|
1055
1057
|
{
|
|
@@ -1057,14 +1059,14 @@ async function handleNamedMonitorBatchSync(batchId, options) {
|
|
|
1057
1059
|
...parsedGeneration === void 0 ? {} : { expectedGeneration: parsedGeneration }
|
|
1058
1060
|
}
|
|
1059
1061
|
);
|
|
1060
|
-
|
|
1062
|
+
_chunk3ACMRZRVjs.printCommandEnvelope.call(void 0,
|
|
1061
1063
|
{ ...payload, idempotency_key: idempotencyKey },
|
|
1062
1064
|
{ json: options.json, text: renderMonitorJob(payload) }
|
|
1063
1065
|
);
|
|
1064
1066
|
}
|
|
1065
1067
|
async function handleNamedMonitorBatchLifecycle(batchId, intent, options) {
|
|
1066
1068
|
if (options.dryRun) {
|
|
1067
|
-
|
|
1069
|
+
_chunk3ACMRZRVjs.printCommandEnvelope.call(void 0,
|
|
1068
1070
|
{
|
|
1069
1071
|
ok: true,
|
|
1070
1072
|
dry_run: true,
|
|
@@ -1080,17 +1082,17 @@ async function handleNamedMonitorBatchLifecycle(batchId, intent, options) {
|
|
|
1080
1082
|
intent,
|
|
1081
1083
|
options.idempotencyKey
|
|
1082
1084
|
);
|
|
1083
|
-
const payload = await new (0,
|
|
1085
|
+
const payload = await new (0, _chunkJF3TLIMQjs.DeeplineClient)().monitors.batches[intent](batchId, {
|
|
1084
1086
|
idempotencyKey
|
|
1085
1087
|
});
|
|
1086
|
-
|
|
1088
|
+
_chunk3ACMRZRVjs.printCommandEnvelope.call(void 0,
|
|
1087
1089
|
{ ...payload, idempotency_key: idempotencyKey },
|
|
1088
1090
|
{ json: options.json, text: renderMonitorJob(payload) }
|
|
1089
1091
|
);
|
|
1090
1092
|
}
|
|
1091
1093
|
async function handleNamedMonitorBatchGet(batchId, options) {
|
|
1092
|
-
const payload = await new (0,
|
|
1093
|
-
|
|
1094
|
+
const payload = await new (0, _chunkJF3TLIMQjs.DeeplineClient)().monitors.batches.get(batchId);
|
|
1095
|
+
_chunk3ACMRZRVjs.printCommandEnvelope.call(void 0, payload, {
|
|
1094
1096
|
json: options.json,
|
|
1095
1097
|
text: renderMonitorJob(payload)
|
|
1096
1098
|
});
|
|
@@ -1104,7 +1106,7 @@ async function handleMonitorBatchLint(options) {
|
|
|
1104
1106
|
const result = _chunkIF75RD6Ujs.lintMonitorBatchInput.call(void 0,
|
|
1105
1107
|
readMonitorDefinitionsJsonFile(options.file)
|
|
1106
1108
|
);
|
|
1107
|
-
|
|
1109
|
+
_chunk3ACMRZRVjs.printCommandEnvelope.call(void 0,
|
|
1108
1110
|
{
|
|
1109
1111
|
ok: !result.issues.some((issue) => issue.severity === "error"),
|
|
1110
1112
|
...result.normalized ? { normalized: result.normalized } : {},
|
|
@@ -1124,7 +1126,7 @@ async function handleMonitorFleetLint(options) {
|
|
|
1124
1126
|
const result = _chunkC374C22Yjs.lintMonitorFleetInput.call(void 0,
|
|
1125
1127
|
readMonitorDefinitionsJsonFile(options.file)
|
|
1126
1128
|
);
|
|
1127
|
-
|
|
1129
|
+
_chunk3ACMRZRVjs.printCommandEnvelope.call(void 0,
|
|
1128
1130
|
{
|
|
1129
1131
|
ok: !result.issues.some((issue) => issue.severity === "error"),
|
|
1130
1132
|
...result.normalized ? { normalized: result.normalized } : {},
|
|
@@ -1136,32 +1138,32 @@ async function handleMonitorFleetLint(options) {
|
|
|
1136
1138
|
process.exitCode = 2;
|
|
1137
1139
|
}
|
|
1138
1140
|
async function handleMonitorJobGet(jobId, options) {
|
|
1139
|
-
const payload = await new (0,
|
|
1140
|
-
|
|
1141
|
+
const payload = await new (0, _chunkJF3TLIMQjs.DeeplineClient)().monitors.jobs.get(jobId);
|
|
1142
|
+
_chunk3ACMRZRVjs.printCommandEnvelope.call(void 0, payload, {
|
|
1141
1143
|
json: options.json,
|
|
1142
1144
|
text: renderMonitorJob(payload)
|
|
1143
1145
|
});
|
|
1144
1146
|
}
|
|
1145
1147
|
async function handleMonitorJobWait(jobId, options) {
|
|
1146
|
-
const payload = await new (0,
|
|
1148
|
+
const payload = await new (0, _chunkJF3TLIMQjs.DeeplineClient)().monitors.jobs.wait(jobId, {
|
|
1147
1149
|
timeoutMs: fleetTimeoutMs(options.timeout),
|
|
1148
1150
|
pollIntervalMs: FLEET_POLL_INTERVAL_MS
|
|
1149
1151
|
});
|
|
1150
|
-
|
|
1152
|
+
_chunk3ACMRZRVjs.printCommandEnvelope.call(void 0, payload, {
|
|
1151
1153
|
json: options.json,
|
|
1152
1154
|
text: renderMonitorJob(payload)
|
|
1153
1155
|
});
|
|
1154
1156
|
}
|
|
1155
1157
|
async function handleMonitorJobLogs(jobId, options) {
|
|
1156
1158
|
const limit = options.limit ? fleetIntegerOption(options.limit, "--limit") : void 0;
|
|
1157
|
-
const payload = await new (0,
|
|
1159
|
+
const payload = await new (0, _chunkJF3TLIMQjs.DeeplineClient)().monitors.jobs.logs(jobId, {
|
|
1158
1160
|
...limit === void 0 ? {} : { limit }
|
|
1159
1161
|
});
|
|
1160
|
-
|
|
1162
|
+
_chunk3ACMRZRVjs.printCommandEnvelope.call(void 0, payload, { json: options.json });
|
|
1161
1163
|
}
|
|
1162
1164
|
async function handleMonitorJobCancel(jobId, options) {
|
|
1163
|
-
const payload = await new (0,
|
|
1164
|
-
|
|
1165
|
+
const payload = await new (0, _chunkJF3TLIMQjs.DeeplineClient)().monitors.jobs.cancel(jobId);
|
|
1166
|
+
_chunk3ACMRZRVjs.printCommandEnvelope.call(void 0, payload, {
|
|
1165
1167
|
json: options.json,
|
|
1166
1168
|
text: renderMonitorJob(payload)
|
|
1167
1169
|
});
|
|
@@ -1450,6 +1452,17 @@ function renderFleetDeactivatePlan(payload, fleetId) {
|
|
|
1450
1452
|
`Deactivate fleet ${fleetId} \u2014 plan only, nothing changed`,
|
|
1451
1453
|
` would deactivate ${_nullishCoalesce(asFiniteNumber(radius.monitors), () => ( 0))} monitors \xB7 ${_nullishCoalesce(asFiniteNumber(radius.accounts), () => ( 0))} accounts`
|
|
1452
1454
|
];
|
|
1455
|
+
if (payload.already === true) {
|
|
1456
|
+
lines.push(" already deactivated or deactivating; no new drain starts");
|
|
1457
|
+
}
|
|
1458
|
+
const plan = Object.entries(_nullishCoalesce(asRecord(radius.plan), () => ( {}))).filter(
|
|
1459
|
+
([, count]) => (_nullishCoalesce(asFiniteNumber(count), () => ( 0))) > 0
|
|
1460
|
+
);
|
|
1461
|
+
if (plan.length > 0) {
|
|
1462
|
+
lines.push(
|
|
1463
|
+
` plan ${plan.map(([name, count]) => `${name.replaceAll("_", " ")} ${String(count)}`).join(" \xB7 ")}`
|
|
1464
|
+
);
|
|
1465
|
+
}
|
|
1453
1466
|
const note = asString(payload.note);
|
|
1454
1467
|
if (note) lines.push(` ${note}`);
|
|
1455
1468
|
lines.push(
|
|
@@ -1459,7 +1472,7 @@ function renderFleetDeactivatePlan(payload, fleetId) {
|
|
|
1459
1472
|
`;
|
|
1460
1473
|
}
|
|
1461
1474
|
function reportFleetState(payload, error, options) {
|
|
1462
|
-
|
|
1475
|
+
_chunk3ACMRZRVjs.printCommandEnvelope.call(void 0,
|
|
1463
1476
|
{
|
|
1464
1477
|
...payload,
|
|
1465
1478
|
code: error.code,
|
|
@@ -1574,7 +1587,7 @@ async function handleMonitorFleetsInit(fleetId, options) {
|
|
|
1574
1587
|
_fs.writeFileSync.call(void 0, file, `${JSON.stringify(definition, null, 2)}
|
|
1575
1588
|
`, "utf8");
|
|
1576
1589
|
const next = `deepline monitors fleets deploy --file ${fleetShellArg(file)} --dry-run`;
|
|
1577
|
-
|
|
1590
|
+
_chunk3ACMRZRVjs.printCommandEnvelope.call(void 0,
|
|
1578
1591
|
{ schemaVersion: 2, file, definition, next },
|
|
1579
1592
|
{
|
|
1580
1593
|
json: options.json,
|
|
@@ -1636,7 +1649,7 @@ async function handleMonitorFleetsSync(target, options, idempotencyKey) {
|
|
|
1636
1649
|
'The Fleet definition has no id. Add a top-level "id" and re-run.'
|
|
1637
1650
|
);
|
|
1638
1651
|
}
|
|
1639
|
-
const client = new (0,
|
|
1652
|
+
const client = new (0, _chunkJF3TLIMQjs.DeeplineClient)();
|
|
1640
1653
|
const payload = await client.monitors.fleets.sync(
|
|
1641
1654
|
_nullishCoalesce(definition, () => ( fleetId)),
|
|
1642
1655
|
{
|
|
@@ -1658,7 +1671,7 @@ async function handleMonitorFleetsSync(target, options, idempotencyKey) {
|
|
|
1658
1671
|
}
|
|
1659
1672
|
const accepted = { ...payload, idempotency_key: idempotencyKey };
|
|
1660
1673
|
if (!options.wait || options.dryRun) {
|
|
1661
|
-
|
|
1674
|
+
_chunk3ACMRZRVjs.printCommandEnvelope.call(void 0, accepted, {
|
|
1662
1675
|
json: options.json,
|
|
1663
1676
|
text: renderFleetSync(payload, {
|
|
1664
1677
|
fleetId,
|
|
@@ -1684,7 +1697,7 @@ async function handleMonitorFleetsSync(target, options, idempotencyKey) {
|
|
|
1684
1697
|
const status = fleetStatus(final);
|
|
1685
1698
|
const summary = renderFleetGet(final);
|
|
1686
1699
|
if (status === "converged") {
|
|
1687
|
-
|
|
1700
|
+
_chunk3ACMRZRVjs.printCommandEnvelope.call(void 0, envelope, { json: options.json, text: summary });
|
|
1688
1701
|
return;
|
|
1689
1702
|
}
|
|
1690
1703
|
const driftCommand = `deepline monitors fleets get ${fleetShellArg(fleetId)} --drift`;
|
|
@@ -1717,14 +1730,14 @@ async function handleMonitorFleetsGet(fleetId, options) {
|
|
|
1717
1730
|
);
|
|
1718
1731
|
}
|
|
1719
1732
|
const limit = options.limit === void 0 ? void 0 : fleetIntegerOption(options.limit, "--limit");
|
|
1720
|
-
const client = new (0,
|
|
1733
|
+
const client = new (0, _chunkJF3TLIMQjs.DeeplineClient)();
|
|
1721
1734
|
const payload = await client.monitors.fleets.get(fleetId, {
|
|
1722
1735
|
...options.drift ? { drift: true } : {},
|
|
1723
1736
|
...limit !== void 0 ? { limit } : {}
|
|
1724
1737
|
});
|
|
1725
1738
|
const text = fleetId ? renderFleetGet(payload) : renderFleetList(payload);
|
|
1726
1739
|
if (!options.check) {
|
|
1727
|
-
|
|
1740
|
+
_chunk3ACMRZRVjs.printCommandEnvelope.call(void 0, payload, { json: options.json, text });
|
|
1728
1741
|
return;
|
|
1729
1742
|
}
|
|
1730
1743
|
const statuses = fleetId ? [fleetStatus(payload)] : (Array.isArray(payload.fleets) ? payload.fleets : []).map(
|
|
@@ -1732,7 +1745,7 @@ async function handleMonitorFleetsGet(fleetId, options) {
|
|
|
1732
1745
|
);
|
|
1733
1746
|
const unconverged = statuses.filter((status) => status !== "converged");
|
|
1734
1747
|
if (unconverged.length === 0) {
|
|
1735
|
-
|
|
1748
|
+
_chunk3ACMRZRVjs.printCommandEnvelope.call(void 0, payload, { json: options.json, text });
|
|
1736
1749
|
return;
|
|
1737
1750
|
}
|
|
1738
1751
|
const target = _nullishCoalesce(fleetId, () => ( "<fleet-id>"));
|
|
@@ -1771,13 +1784,13 @@ async function handleMonitorFleetsReactivate(fleetId, options, idempotencyKey) {
|
|
|
1771
1784
|
${fleetReactivateCommandLine(fleetId, options)}`
|
|
1772
1785
|
);
|
|
1773
1786
|
}
|
|
1774
|
-
const client = new (0,
|
|
1787
|
+
const client = new (0, _chunkJF3TLIMQjs.DeeplineClient)();
|
|
1775
1788
|
const payload = await client.monitors.fleets.reactivate(fleetId, {
|
|
1776
1789
|
idempotencyKey
|
|
1777
1790
|
});
|
|
1778
1791
|
const accepted = { ...payload, idempotency_key: idempotencyKey };
|
|
1779
1792
|
if (!options.wait) {
|
|
1780
|
-
|
|
1793
|
+
_chunk3ACMRZRVjs.printCommandEnvelope.call(void 0, accepted, {
|
|
1781
1794
|
json: options.json,
|
|
1782
1795
|
text: `Fleet ${fleetId} \u2014 ${readMonitorState(payload) ? `state ${readMonitorState(payload)}` : "reactivation accepted"}
|
|
1783
1796
|
idempotency key ${idempotencyKey}
|
|
@@ -1800,7 +1813,7 @@ async function handleMonitorFleetsReactivate(fleetId, options, idempotencyKey) {
|
|
|
1800
1813
|
const envelope = { ...accepted, ...final };
|
|
1801
1814
|
const text = renderFleetGet(final);
|
|
1802
1815
|
if (fleetStatus(final) === "converged") {
|
|
1803
|
-
|
|
1816
|
+
_chunk3ACMRZRVjs.printCommandEnvelope.call(void 0, envelope, { json: options.json, text });
|
|
1804
1817
|
return;
|
|
1805
1818
|
}
|
|
1806
1819
|
reportFleetState(
|
|
@@ -1842,7 +1855,7 @@ async function confirmFleetDeactivate(fleetId, plan) {
|
|
|
1842
1855
|
}
|
|
1843
1856
|
}
|
|
1844
1857
|
async function handleMonitorFleetsDeactivate(fleetId, options, idempotencyKey) {
|
|
1845
|
-
const client = new (0,
|
|
1858
|
+
const client = new (0, _chunkJF3TLIMQjs.DeeplineClient)();
|
|
1846
1859
|
if (options.dryRun) {
|
|
1847
1860
|
const plan = await client.monitors.fleets.deactivate(fleetId, {
|
|
1848
1861
|
dryRun: true,
|
|
@@ -1852,7 +1865,7 @@ async function handleMonitorFleetsDeactivate(fleetId, options, idempotencyKey) {
|
|
|
1852
1865
|
command: "deepline monitors fleets deactivate",
|
|
1853
1866
|
mutation: "fleet deactivate"
|
|
1854
1867
|
});
|
|
1855
|
-
|
|
1868
|
+
_chunk3ACMRZRVjs.printCommandEnvelope.call(void 0, plan, {
|
|
1856
1869
|
json: options.json,
|
|
1857
1870
|
text: renderFleetDeactivatePlan(plan, fleetId)
|
|
1858
1871
|
});
|
|
@@ -1890,7 +1903,7 @@ Preview the blast radius first:
|
|
|
1890
1903
|
});
|
|
1891
1904
|
const accepted = { ...payload, idempotency_key: idempotencyKey };
|
|
1892
1905
|
if (payload.already === true) {
|
|
1893
|
-
|
|
1906
|
+
_chunk3ACMRZRVjs.printCommandEnvelope.call(void 0, accepted, {
|
|
1894
1907
|
json: options.json,
|
|
1895
1908
|
text: `Fleet ${fleetId} is already deactivated.
|
|
1896
1909
|
`
|
|
@@ -1902,7 +1915,7 @@ Preview the blast radius first:
|
|
|
1902
1915
|
` + (fleetServerNext(payload) ? `Next: ${fleetServerNext(payload)}
|
|
1903
1916
|
` : "");
|
|
1904
1917
|
if (!options.wait) {
|
|
1905
|
-
|
|
1918
|
+
_chunk3ACMRZRVjs.printCommandEnvelope.call(void 0, accepted, {
|
|
1906
1919
|
json: options.json,
|
|
1907
1920
|
text: acceptedText
|
|
1908
1921
|
});
|
|
@@ -1924,7 +1937,7 @@ Preview the blast radius first:
|
|
|
1924
1937
|
const envelope = { ...accepted, ...final };
|
|
1925
1938
|
const summary = renderFleetGet(final);
|
|
1926
1939
|
if (fleetStatus(final) === "deactivated") {
|
|
1927
|
-
|
|
1940
|
+
_chunk3ACMRZRVjs.printCommandEnvelope.call(void 0, envelope, { json: options.json, text: summary });
|
|
1928
1941
|
return;
|
|
1929
1942
|
}
|
|
1930
1943
|
reportFleetState(
|
|
@@ -1955,7 +1968,7 @@ function handleMonitorFleetsOverview(options) {
|
|
|
1955
1968
|
"Agent notes:",
|
|
1956
1969
|
...MONITOR_FLEET_AGENT_NOTES.map((note) => ` ${note}`)
|
|
1957
1970
|
];
|
|
1958
|
-
|
|
1971
|
+
_chunk3ACMRZRVjs.printCommandEnvelope.call(void 0,
|
|
1959
1972
|
{
|
|
1960
1973
|
schemaVersion: 1,
|
|
1961
1974
|
lifecycle: MONITOR_FLEET_LIFECYCLE,
|
|
@@ -2116,7 +2129,7 @@ function renderMonitorGet(payload) {
|
|
|
2116
2129
|
`;
|
|
2117
2130
|
}
|
|
2118
2131
|
async function handleMonitorsGet(key, options) {
|
|
2119
|
-
const client = new (0,
|
|
2132
|
+
const client = new (0, _chunkJF3TLIMQjs.DeeplineClient)();
|
|
2120
2133
|
const payload = await client.monitors.get(key);
|
|
2121
2134
|
const boundPlays = Array.isArray(payload.bound_plays) ? payload.bound_plays : null;
|
|
2122
2135
|
const dependents = boundPlays ? {
|
|
@@ -2124,24 +2137,24 @@ async function handleMonitorsGet(key, options) {
|
|
|
2124
2137
|
truncated: payload.consumer_health_truncated === true
|
|
2125
2138
|
} : await client.monitors.dependents(key);
|
|
2126
2139
|
const detail = { ...payload, dependents };
|
|
2127
|
-
|
|
2140
|
+
_chunk3ACMRZRVjs.printCommandEnvelope.call(void 0, detail, {
|
|
2128
2141
|
json: options.json,
|
|
2129
2142
|
text: renderMonitorGet(detail)
|
|
2130
2143
|
});
|
|
2131
2144
|
}
|
|
2132
2145
|
async function handleMonitorsTest(key, payload, options) {
|
|
2133
2146
|
const explicitPayload = parseJsonObjectArg(payload, "<payload>");
|
|
2134
|
-
const result = await new (0,
|
|
2147
|
+
const result = await new (0, _chunkJF3TLIMQjs.DeeplineClient)().monitors.test(key, explicitPayload);
|
|
2135
2148
|
const text = `Monitor diagnostic for ${key}: ${result.accepted === true ? "accepted" : "rejected"}
|
|
2136
2149
|
mode: validation_only (no rows written, credits spent, or Plays dispatched)
|
|
2137
2150
|
persisted rows: ${_nullishCoalesce(asFiniteNumber(result.persisted_rows), () => ( 0))}
|
|
2138
2151
|
dispatched bound Plays: ${_nullishCoalesce(asFiniteNumber(result.dispatched_bound_plays), () => ( 0))}
|
|
2139
2152
|
`;
|
|
2140
|
-
|
|
2153
|
+
_chunk3ACMRZRVjs.printCommandEnvelope.call(void 0, result, { json: options.json, text });
|
|
2141
2154
|
}
|
|
2142
2155
|
async function handleMonitorsValidate(key, options) {
|
|
2143
|
-
const result = await new (0,
|
|
2144
|
-
|
|
2156
|
+
const result = await new (0, _chunkJF3TLIMQjs.DeeplineClient)().monitors.validate(key);
|
|
2157
|
+
_chunk3ACMRZRVjs.printCommandEnvelope.call(void 0, result, { json: options.json });
|
|
2145
2158
|
if (result.valid === false) process.exitCode = 7;
|
|
2146
2159
|
}
|
|
2147
2160
|
async function confirmMonitorDelete(key) {
|
|
@@ -2159,14 +2172,14 @@ async function confirmMonitorDelete(key) {
|
|
|
2159
2172
|
}
|
|
2160
2173
|
}
|
|
2161
2174
|
async function handleMonitorsDelete(key, options) {
|
|
2162
|
-
const client = new (0,
|
|
2175
|
+
const client = new (0, _chunkJF3TLIMQjs.DeeplineClient)();
|
|
2163
2176
|
if (options.dryRun) {
|
|
2164
2177
|
const payload2 = await client.monitors.delete(key, { dryRun: true });
|
|
2165
2178
|
assertMonitorDryRunAcknowledged(payload2, {
|
|
2166
2179
|
command: "deepline monitors delete",
|
|
2167
2180
|
mutation: "delete"
|
|
2168
2181
|
});
|
|
2169
|
-
|
|
2182
|
+
_chunk3ACMRZRVjs.printCommandEnvelope.call(void 0, payload2, {
|
|
2170
2183
|
json: options.json,
|
|
2171
2184
|
text: renderMonitorDeletePlan(payload2, key)
|
|
2172
2185
|
});
|
|
@@ -2186,7 +2199,7 @@ async function handleMonitorsDelete(key, options) {
|
|
|
2186
2199
|
}
|
|
2187
2200
|
}
|
|
2188
2201
|
const payload = await client.monitors.delete(key);
|
|
2189
|
-
|
|
2202
|
+
_chunk3ACMRZRVjs.printCommandEnvelope.call(void 0, payload, { json: options.json });
|
|
2190
2203
|
}
|
|
2191
2204
|
async function handleMonitorsUpdate(key, patch, options) {
|
|
2192
2205
|
const body = resolveMonitorJsonBody({
|
|
@@ -2195,25 +2208,25 @@ async function handleMonitorsUpdate(key, patch, options) {
|
|
|
2195
2208
|
argLabel: "<patch>",
|
|
2196
2209
|
command: `deepline monitors update ${key}`
|
|
2197
2210
|
});
|
|
2198
|
-
const payload = await new (0,
|
|
2199
|
-
|
|
2211
|
+
const payload = await new (0, _chunkJF3TLIMQjs.DeeplineClient)().monitors.update(key, body);
|
|
2212
|
+
_chunk3ACMRZRVjs.printCommandEnvelope.call(void 0, payload, { json: options.json });
|
|
2200
2213
|
}
|
|
2201
2214
|
async function handleMonitorsReactivate(key, options) {
|
|
2202
|
-
const client = new (0,
|
|
2215
|
+
const client = new (0, _chunkJF3TLIMQjs.DeeplineClient)();
|
|
2203
2216
|
if (options.dryRun) {
|
|
2204
2217
|
const payload2 = await client.monitors.reactivate(key, { dryRun: true });
|
|
2205
2218
|
assertMonitorDryRunAcknowledged(payload2, {
|
|
2206
2219
|
command: "deepline monitors reactivate",
|
|
2207
2220
|
mutation: "reactivate"
|
|
2208
2221
|
});
|
|
2209
|
-
|
|
2222
|
+
_chunk3ACMRZRVjs.printCommandEnvelope.call(void 0, payload2, {
|
|
2210
2223
|
json: options.json,
|
|
2211
2224
|
text: renderMonitorReactivatePlan(payload2, key)
|
|
2212
2225
|
});
|
|
2213
2226
|
return;
|
|
2214
2227
|
}
|
|
2215
2228
|
const payload = await client.monitors.reactivate(key);
|
|
2216
|
-
|
|
2229
|
+
_chunk3ACMRZRVjs.printCommandEnvelope.call(void 0, payload, { json: options.json });
|
|
2217
2230
|
}
|
|
2218
2231
|
var MONITOR_VERB_POLL_INTERVAL_MS = 2e3;
|
|
2219
2232
|
function monitorHealthLine(health) {
|
|
@@ -2335,7 +2348,7 @@ function monitorHealthText(health) {
|
|
|
2335
2348
|
`;
|
|
2336
2349
|
}
|
|
2337
2350
|
async function handleMonitorsAudit(options) {
|
|
2338
|
-
const client = new (0,
|
|
2351
|
+
const client = new (0, _chunkJF3TLIMQjs.DeeplineClient)();
|
|
2339
2352
|
const fleetId = _optionalChain([options, 'access', _75 => _75.fleet, 'optionalAccess', _76 => _76.trim, 'call', _77 => _77()]) || void 0;
|
|
2340
2353
|
const scope = fleetId ? { fleetId } : {};
|
|
2341
2354
|
let result = await client.monitors.audit(scope);
|
|
@@ -2379,7 +2392,7 @@ async function handleMonitorsAudit(options) {
|
|
|
2379
2392
|
"",
|
|
2380
2393
|
monitorHealthText(health)
|
|
2381
2394
|
].join("\n");
|
|
2382
|
-
|
|
2395
|
+
_chunk3ACMRZRVjs.printCommandEnvelope.call(void 0,
|
|
2383
2396
|
{ ...result, audit: { ...result.audit, totals }, health },
|
|
2384
2397
|
{ json: options.json, text }
|
|
2385
2398
|
);
|
|
@@ -2392,10 +2405,10 @@ async function handleMonitorsRepair(options) {
|
|
|
2392
2405
|
}
|
|
2393
2406
|
async function handleMonitorsHealth(options) {
|
|
2394
2407
|
const fleetId = _optionalChain([options, 'access', _81 => _81.fleet, 'optionalAccess', _82 => _82.trim, 'call', _83 => _83()]) || void 0;
|
|
2395
|
-
const health = await new (0,
|
|
2408
|
+
const health = await new (0, _chunkJF3TLIMQjs.DeeplineClient)().monitors.health(
|
|
2396
2409
|
fleetId ? { fleetId } : {}
|
|
2397
2410
|
);
|
|
2398
|
-
|
|
2411
|
+
_chunk3ACMRZRVjs.printCommandEnvelope.call(void 0, health, {
|
|
2399
2412
|
json: options.json,
|
|
2400
2413
|
text: monitorHealthText(health)
|
|
2401
2414
|
});
|
|
@@ -2469,14 +2482,14 @@ async function handleMonitorBatchDeploy(options) {
|
|
|
2469
2482
|
"deploy",
|
|
2470
2483
|
options.idempotencyKey
|
|
2471
2484
|
);
|
|
2472
|
-
const result = await new (0,
|
|
2485
|
+
const result = await new (0, _chunkJF3TLIMQjs.DeeplineClient)().monitors.batch.submit({
|
|
2473
2486
|
kind: "deploy",
|
|
2474
2487
|
manifestNdjson,
|
|
2475
2488
|
dryRun: options.dryRun === true,
|
|
2476
2489
|
idempotencyKey
|
|
2477
2490
|
});
|
|
2478
2491
|
const operation = result.operation;
|
|
2479
|
-
|
|
2492
|
+
_chunk3ACMRZRVjs.printCommandEnvelope.call(void 0,
|
|
2480
2493
|
{ ...result, idempotency_key: idempotencyKey },
|
|
2481
2494
|
{
|
|
2482
2495
|
json: options.json,
|
|
@@ -2504,7 +2517,7 @@ async function handleMonitorBatch(kind, options) {
|
|
|
2504
2517
|
kind,
|
|
2505
2518
|
options.idempotencyKey
|
|
2506
2519
|
);
|
|
2507
|
-
const result = await new (0,
|
|
2520
|
+
const result = await new (0, _chunkJF3TLIMQjs.DeeplineClient)().monitors.batch.submit({
|
|
2508
2521
|
kind,
|
|
2509
2522
|
scope,
|
|
2510
2523
|
dryRun: options.dryRun === true,
|
|
@@ -2517,14 +2530,14 @@ async function handleMonitorBatch(kind, options) {
|
|
|
2517
2530
|
`state ${operation.state} \xB7 retry key ${idempotencyKey}`,
|
|
2518
2531
|
`inspect: deepline monitors batch get ${operation.runId}`
|
|
2519
2532
|
].join("\n");
|
|
2520
|
-
|
|
2533
|
+
_chunk3ACMRZRVjs.printCommandEnvelope.call(void 0,
|
|
2521
2534
|
{ ...result, idempotency_key: idempotencyKey },
|
|
2522
2535
|
{ json: options.json, text: `${text}
|
|
2523
2536
|
` }
|
|
2524
2537
|
);
|
|
2525
2538
|
}
|
|
2526
2539
|
async function handleMonitorBatchGet(operationId, options) {
|
|
2527
|
-
const result = await new (0,
|
|
2540
|
+
const result = await new (0, _chunkJF3TLIMQjs.DeeplineClient)().monitors.batch.get(operationId, {
|
|
2528
2541
|
...options.cursor ? { cursor: options.cursor } : {}
|
|
2529
2542
|
});
|
|
2530
2543
|
const summary = _nullishCoalesce(result.operation.summary, () => ( {}));
|
|
@@ -2536,7 +2549,7 @@ async function handleMonitorBatchGet(operationId, options) {
|
|
|
2536
2549
|
`results ${result.results.page.length}${result.results.isDone ? "" : " (more; pass --cursor)"}`
|
|
2537
2550
|
] : []
|
|
2538
2551
|
].join("\n");
|
|
2539
|
-
|
|
2552
|
+
_chunk3ACMRZRVjs.printCommandEnvelope.call(void 0, result, { json: options.json, text: `${text}
|
|
2540
2553
|
` });
|
|
2541
2554
|
}
|
|
2542
2555
|
function registerMonitorsCommands(program) {
|