deepline 0.3.552 → 0.3.553
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 +107 -12
- package/dist/bundling-sources/sdk/src/compat.ts +239 -87
- package/dist/bundling-sources/sdk/src/config.ts +113 -2
- package/dist/bundling-sources/sdk/src/errors.ts +2 -0
- package/dist/bundling-sources/sdk/src/http-core.ts +118 -8
- package/dist/bundling-sources/sdk/src/index.ts +2 -0
- package/dist/bundling-sources/sdk/src/integrations.ts +6 -4
- package/dist/bundling-sources/sdk/src/play.ts +3 -0
- 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/runs/watch-polling.ts +8 -1
- package/dist/bundling-sources/sdk/src/tool-calls.ts +2 -1
- package/dist/bundling-sources/sdk/src/tool-failure-hint.ts +104 -0
- package/dist/bundling-sources/sdk/src/types.ts +9 -1
- package/dist/bundling-sources/shared_libs/integration-contracts/billing-entitlements.ts +4 -2
- package/dist/bundling-sources/shared_libs/integration-contracts/billing-plan-skus.ts +25 -0
- package/dist/bundling-sources/shared_libs/monitors/action-actor.ts +2 -0
- package/dist/bundling-sources/shared_libs/monitors/billing/credit-recovery.ts +58 -4
- package/dist/bundling-sources/shared_libs/monitors/billing/policy-builders.ts +8 -0
- package/dist/bundling-sources/shared_libs/monitors/billing/pricing.ts +11 -0
- package/dist/bundling-sources/shared_libs/monitors/billing/types.ts +13 -0
- package/dist/bundling-sources/shared_libs/monitors/deactivation-reasons.ts +103 -5
- package/dist/bundling-sources/shared_libs/monitors/fleets/converge-admission.ts +133 -0
- package/dist/bundling-sources/shared_libs/monitors/fleets/fence-attention.ts +165 -0
- package/dist/bundling-sources/shared_libs/monitors/fleets/fence-release.ts +726 -0
- package/dist/bundling-sources/shared_libs/monitors/fleets/fence-walk.ts +274 -0
- package/dist/bundling-sources/shared_libs/monitors/fleets/issues.ts +1 -0
- package/dist/bundling-sources/shared_libs/monitors/fleets/limits.ts +28 -0
- package/dist/bundling-sources/shared_libs/monitors/fleets/provider-bulk-wait.ts +126 -0
- package/dist/bundling-sources/shared_libs/monitors/fleets/shared-payload.ts +189 -0
- package/dist/bundling-sources/shared_libs/monitors/http-error-response.ts +28 -0
- package/dist/bundling-sources/shared_libs/monitors/inbound-publish-key.ts +4 -0
- package/dist/bundling-sources/shared_libs/monitors/inventory-counter-errors.ts +25 -0
- package/dist/bundling-sources/shared_libs/monitors/org-monitor-limits.ts +65 -0
- package/dist/bundling-sources/shared_libs/monitors/package.json +9 -0
- package/dist/bundling-sources/shared_libs/monitors/provider-callback-verification.ts +152 -1
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-batch-operation.ts +6 -0
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-capability.ts +390 -10
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-errors.ts +34 -0
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-identity-claims.ts +66 -30
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-state.ts +30 -0
- package/dist/bundling-sources/shared_libs/monitors/provider-resource-failure.ts +26 -3
- package/dist/bundling-sources/shared_libs/monitors/signal-radars/inbound-dead-letter.ts +41 -13
- package/dist/bundling-sources/shared_libs/monitors/signal-radars/raw-receipt-causes.ts +219 -0
- package/dist/bundling-sources/shared_libs/monitors/snitcher-ip2company.ts +21 -10
- package/dist/bundling-sources/shared_libs/monitors/starter-templates.ts +13 -0
- package/dist/bundling-sources/shared_libs/monitors/tracking-provider-guidance.ts +6 -0
- package/dist/bundling-sources/shared_libs/monitors/tracking-provider-integrations.ts +13 -0
- package/dist/bundling-sources/shared_libs/observability/dlq.ts +1 -1
- package/dist/bundling-sources/shared_libs/observability/log-metadata.ts +5 -3
- package/dist/bundling-sources/shared_libs/observability/queue-health.ts +10 -1
- package/dist/bundling-sources/shared_libs/observability/queue-item-connectors.ts +1 -0
- package/dist/bundling-sources/shared_libs/observability/redaction.ts +24 -1
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +168 -41
- package/dist/bundling-sources/shared_libs/observability/scheduled-work-manual.ts +1 -2
- package/dist/bundling-sources/shared_libs/play-data-plane/preview-r2-oidc.ts +188 -0
- package/dist/bundling-sources/shared_libs/play-data-plane/r2.ts +170 -16
- package/dist/bundling-sources/shared_libs/play-data-plane/runtime-sheet-storage-contract.ts +5 -0
- package/dist/bundling-sources/shared_libs/play-runtime/app-runtime-api.ts +68 -2
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +444 -39
- package/dist/bundling-sources/shared_libs/play-runtime/ctx-fetch-caller-deadline.ts +200 -0
- package/dist/bundling-sources/shared_libs/play-runtime/ctx-types.ts +6 -0
- package/dist/bundling-sources/shared_libs/play-runtime/deployment/runtime-topology.ts +21 -1
- package/dist/bundling-sources/shared_libs/play-runtime/durable-call-cache.ts +3 -2
- package/dist/bundling-sources/shared_libs/play-runtime/durable-summary-events.ts +70 -2
- package/dist/bundling-sources/shared_libs/play-runtime/durable-tool-identity.ts +3 -3
- package/dist/bundling-sources/shared_libs/play-runtime/execution-capabilities.ts +16 -0
- package/dist/bundling-sources/shared_libs/play-runtime/experiment-switches.ts +72 -0
- package/dist/bundling-sources/shared_libs/play-runtime/fixture-behavior.ts +1 -0
- package/dist/bundling-sources/shared_libs/play-runtime/governor/policy.ts +7 -1
- package/dist/bundling-sources/shared_libs/play-runtime/internal-bootstrap-token.ts +62 -0
- package/dist/bundling-sources/shared_libs/play-runtime/map-memory-limits.ts +74 -3
- package/dist/bundling-sources/shared_libs/play-runtime/output-size-limits.ts +31 -3
- package/dist/bundling-sources/shared_libs/play-runtime/play-http-request.ts +6 -0
- package/dist/bundling-sources/shared_libs/play-runtime/protocol.ts +8 -0
- package/dist/bundling-sources/shared_libs/play-runtime/query-result-dataset.ts +19 -0
- package/dist/bundling-sources/shared_libs/play-runtime/resource-governor.ts +39 -2
- package/dist/bundling-sources/shared_libs/play-runtime/run-failure.ts +9 -1
- package/dist/bundling-sources/shared_libs/play-runtime/run-identity.ts +33 -0
- package/dist/bundling-sources/shared_libs/play-runtime/run-ledger-projection-contract.ts +24 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +254 -44
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-payload-transport.ts +87 -6
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/modal.ts +241 -10
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/early-sandbox-egress.ts +161 -14
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/early-sandbox.ts +16 -3
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-api-compression.ts +37 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-api-paths.ts +9 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-api.ts +259 -52
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-authority.ts +13 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-constants.ts +30 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-operation-contract.ts +62 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-scheduler-topology.ts +36 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-sheet-row-transition.ts +36 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-speed-profile.ts +206 -2
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-pool.ts +42 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +185 -64
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-worker-slot-ledger.ts +157 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/early-sandbox-lane.ts +110 -2
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/early-sandbox-listener-hint.ts +323 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/executor-attempt-standing.ts +72 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/integration-operation-value-storage.ts +23 -4
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-workspace-purge.ts +199 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +632 -66
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/run-ledger-outbox-recovery.ts +517 -16
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-api-origin.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-receipt-value-storage.ts +9 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-worker-wake.ts +599 -2
- package/dist/bundling-sources/shared_libs/play-runtime/secret-resolution-retry-policy.ts +26 -1
- package/dist/bundling-sources/shared_libs/play-runtime/startup-read-tool-ids.ts +60 -0
- package/dist/bundling-sources/shared_libs/play-runtime/test-runtime-seams.ts +51 -0
- package/dist/bundling-sources/shared_libs/play-runtime/tool-call-retry-facts.ts +2 -0
- package/dist/bundling-sources/shared_libs/play-runtime/tool-execute-retry-policy.ts +113 -3
- package/dist/bundling-sources/shared_libs/play-runtime/tool-http-errors.ts +5 -7
- package/dist/bundling-sources/shared_libs/play-runtime/work-receipt-storage-contract.ts +2 -0
- package/dist/bundling-sources/shared_libs/play-runtime/workflow-executor-auth.ts +3 -0
- package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +40 -5
- package/dist/bundling-sources/shared_libs/plays/deploy/api-client.ts +3 -0
- package/dist/bundling-sources/shared_libs/plays/deploy/control-plane-types.ts +16 -0
- package/dist/bundling-sources/shared_libs/plays/deploy/run-deployment.ts +10 -41
- package/dist/bundling-sources/shared_libs/plays/extension-bridge.ts +33 -0
- package/dist/bundling-sources/shared_libs/plays/row-identity.ts +18 -1
- package/dist/bundling-sources/shared_libs/plays/tool-execution-error.ts +108 -0
- package/dist/bundling-sources/shared_libs/plays/trigger-config-contract.ts +14 -0
- package/dist/bundling-sources/shared_libs/product-notifications/catalog.ts +171 -0
- package/dist/bundling-sources/shared_libs/product-notifications/events.ts +27 -1
- package/dist/bundling-sources/shared_libs/security/email-blacklist.ts +9 -24
- package/dist/bundling-sources/shared_libs/security/secret-redaction.ts +178 -5
- package/dist/bundling-sources/shared_libs/security/signup-email-dns-screen.ts +148 -0
- package/dist/bundling-sources/shared_libs/tool-execution-error.ts +108 -0
- package/dist/cli/{auth-KVSBJZOX.mjs → auth-I3QAU4RV.mjs} +8 -7
- package/dist/cli/auth-MQCN7WGZ.js +44 -0
- package/dist/cli/{billing-54RHFEBI.mjs → billing-3IC54OQQ.mjs} +197 -61
- package/dist/cli/{billing-FQREA7UA.js → billing-YGFFVAIC.js} +297 -161
- package/dist/cli/{chunk-4MK42735.js → chunk-2B5B5KAW.js} +210 -128
- package/dist/cli/{chunk-UBKA33KY.mjs → chunk-2MGZAI54.mjs} +17 -0
- package/dist/cli/{chunk-4NQF6KJ3.js → chunk-3NTP2OSG.js} +13 -13
- package/dist/cli/{chunk-HYC4MKGK.mjs → chunk-45OAVGU6.mjs} +5 -5
- package/dist/cli/{chunk-WLN3SUIA.js → chunk-4747TPLV.js} +3 -3
- package/dist/cli/{chunk-AZQ264ID.mjs → chunk-4BFTDNHU.mjs} +1 -1
- package/dist/cli/{chunk-BGBJV26E.mjs → chunk-4HYNMXXF.mjs} +4 -4
- package/dist/cli/{chunk-DJ2JDK4O.mjs → chunk-4SMCFQ23.mjs} +1 -1
- package/dist/cli/{chunk-QPKH23EC.mjs → chunk-55F6HNOY.mjs} +5 -5
- package/dist/cli/{chunk-LX35AXTN.mjs → chunk-5TYLSS4Q.mjs} +6 -6
- package/dist/cli/{chunk-634ZDA3F.js → chunk-6NE3RRRY.js} +1 -1
- package/dist/cli/{chunk-EITMD3A5.js → chunk-6VLFQZK6.js} +8 -8
- package/dist/cli/{chunk-EOPEYCY7.mjs → chunk-72V4PDH5.mjs} +18 -18
- package/dist/cli/{chunk-IHRKLXZN.js → chunk-74RES4DS.js} +5 -5
- package/dist/cli/{chunk-45PVGZST.js → chunk-7GEMELKI.js} +366 -320
- package/dist/cli/{chunk-4UUR4TCH.js → chunk-7O6J6A7P.js} +1871 -92
- package/dist/cli/{chunk-XVB7V4N7.js → chunk-7SERLBNR.js} +161 -53
- package/dist/cli/{chunk-F2LH7TGF.js → chunk-7YRJ5UC4.js} +21 -21
- package/dist/cli/{chunk-YJHE3O5M.mjs → chunk-A7DLBE5K.mjs} +136 -54
- package/dist/cli/{chunk-6PRW5UBA.mjs → chunk-AGICYWGN.mjs} +299 -69
- package/dist/cli/{chunk-S5S355UY.mjs → chunk-AGIQDA2T.mjs} +12 -12
- package/dist/cli/{chunk-RBEUVDZF.js → chunk-AGLR6QVN.js} +249 -107
- package/dist/cli/{chunk-NURW5XH4.mjs → chunk-ASB47RXJ.mjs} +1 -1
- package/dist/cli/{chunk-RQZQVFCJ.js → chunk-BVDKFS2T.js} +2 -2
- package/dist/cli/{chunk-PFO3ISXA.js → chunk-CACFJODG.js} +174 -129
- package/dist/cli/{chunk-6RZOWL2V.mjs → chunk-CAEBJOYU.mjs} +1 -1
- package/dist/cli/{chunk-XDVT3GOM.js → chunk-CFJFUVX2.js} +18 -1
- package/dist/cli/{chunk-6YCA5NKJ.js → chunk-DP2VH7CO.js} +12 -12
- package/dist/cli/{chunk-AWJPDPMA.mjs → chunk-DP64MD6U.mjs} +1 -1
- package/dist/cli/{chunk-PTVD2GVQ.mjs → chunk-DZA7RFGL.mjs} +5 -5
- package/dist/cli/{chunk-V436Z54K.js → chunk-E2G2DNAB.js} +3 -1
- package/dist/cli/{chunk-GGGAEVCX.mjs → chunk-E7WZOX2A.mjs} +22 -18
- package/dist/cli/{chunk-IDVVIXPJ.js → chunk-FM7LPUPA.js} +41 -41
- package/dist/cli/{chunk-AQWQ2BFX.mjs → chunk-GAVZ4EOD.mjs} +1 -1
- package/dist/cli/{chunk-GKYAYLRI.js → chunk-HEBO3XNZ.js} +27 -31
- package/dist/cli/{chunk-IYSTRCLX.mjs → chunk-HSJ6X2AQ.mjs} +4 -4
- package/dist/cli/{chunk-UPMRIVZB.js → chunk-HVI55MTK.js} +61 -10
- package/dist/cli/{chunk-KWSH5T7K.js → chunk-IH6GDNKW.js} +21 -21
- package/dist/cli/{chunk-HO3XK3R7.js → chunk-IMX7J4DU.js} +8 -8
- package/dist/cli/{chunk-EUPVF4SU.mjs → chunk-INEMTYMT.mjs} +8 -8
- package/dist/cli/{chunk-3FD5EQ62.js → chunk-IUOGII7D.js} +6 -7
- package/dist/cli/{chunk-U7QRMBIY.mjs → chunk-JJGWHITQ.mjs} +5 -5
- package/dist/cli/{chunk-SHLFOPD6.js → chunk-JLGP5XAJ.js} +5 -5
- package/dist/cli/{chunk-4TALT2M3.mjs → chunk-LFOERUQY.mjs} +69 -3
- package/dist/cli/{chunk-BBTKAASQ.js → chunk-LFQJW4S2.js} +42 -1
- package/dist/cli/{chunk-Z5TSLLOW.mjs → chunk-LH5PZKER.mjs} +63 -18
- package/dist/cli/{chunk-S46HWQKO.js → chunk-LRDHPOZW.js} +69 -69
- package/dist/cli/{chunk-6ZORHRKB.mjs → chunk-LRZGS6RZ.mjs} +2 -0
- package/dist/cli/{chunk-SL6MYJYM.js → chunk-MJTVX4QK.js} +35 -35
- package/dist/cli/{chunk-7IKQKKNX.js → chunk-MLABYI4M.js} +90 -24
- package/dist/cli/{chunk-ZIAXDBXX.mjs → chunk-NDNHYONK.mjs} +17 -21
- package/dist/cli/{chunk-YLTMXJFC.mjs → chunk-OTV2UUKW.mjs} +158 -16
- package/dist/cli/{chunk-G4O75EXF.js → chunk-Q6Z6N3A7.js} +18 -18
- package/dist/cli/{chunk-WE5HES3H.mjs → chunk-QG6JIWUL.mjs} +151 -43
- package/dist/cli/{chunk-QY3ZNU6Z.mjs → chunk-QI5S5HWB.mjs} +2 -2
- package/dist/cli/{chunk-CBV7AKWM.js → chunk-R6DZ6NQ2.js} +5 -5
- package/dist/cli/{chunk-57VZVF5D.mjs → chunk-RMNOZKRI.mjs} +3 -3
- package/dist/cli/{chunk-BAIST2BR.js → chunk-RTV4RF7N.js} +36 -36
- package/dist/cli/{chunk-JWUAX6OP.js → chunk-SBH4CKPN.js} +11 -11
- package/dist/cli/{chunk-FTJLJCE5.mjs → chunk-SG3LUONJ.mjs} +3 -3
- package/dist/cli/{chunk-2WFPHBR4.js → chunk-TFEXSHPM.js} +22 -18
- package/dist/cli/{chunk-QAORXEY3.mjs → chunk-TN4TY6TT.mjs} +6 -7
- package/dist/cli/{chunk-WEHCBH5R.mjs → chunk-UEVKMZLR.mjs} +54 -3
- package/dist/cli/{chunk-QILKGXYF.mjs → chunk-UVQJYV76.mjs} +2 -2
- package/dist/cli/{chunk-FSIVF2SI.mjs → chunk-VZGLIK5U.mjs} +1 -1
- package/dist/cli/{chunk-MF2GHZDO.js → chunk-WOCHZCUJ.js} +2 -2
- package/dist/cli/{chunk-VQALXEXO.js → chunk-XLIHTJVM.js} +348 -118
- package/dist/cli/{chunk-ADRC5I3R.js → chunk-Y6SP3JMI.js} +22 -22
- package/dist/cli/{chunk-77AAAGVB.js → chunk-YUA6HA6D.js} +2 -2
- package/dist/cli/{chunk-JL2OTMSG.mjs → chunk-Z3A2S3QM.mjs} +41 -0
- package/dist/cli/{chunk-6O5HOODW.mjs → chunk-Z6XPSHKM.mjs} +87 -41
- package/dist/cli/{chunk-QX7LFGJR.mjs → chunk-Z7AOIHFE.mjs} +1870 -91
- package/dist/cli/command-docs.js +3 -3
- package/dist/cli/command-docs.mjs +2 -2
- package/dist/cli/concurrent-runs-help-CFJH4KXV.js +22 -0
- package/dist/cli/{concurrent-runs-help-Q4KPAUJX.mjs → concurrent-runs-help-DNV2X5AZ.mjs} +9 -8
- package/dist/cli/{csv-F5VAGX4K.js → csv-SA6ELJY6.js} +16 -15
- package/dist/cli/{csv-2PTVDNO6.mjs → csv-ZXZGHWOM.mjs} +7 -6
- package/dist/cli/{db-IEDXAUF7.mjs → db-A54SP6AD.mjs} +16 -16
- package/dist/cli/{db-Z3OIUFMM.js → db-JHFEIQBU.js} +43 -43
- package/dist/cli/describe-PHQ33AGS.mjs +50 -0
- package/dist/cli/describe-RHJ4XRFI.js +50 -0
- package/dist/cli/describe-core.d.mts +3 -3
- package/dist/cli/describe-core.d.ts +3 -3
- package/dist/cli/describe-core.js +6 -6
- package/dist/cli/describe-core.mjs +5 -5
- package/dist/cli/{executions-R3LP74QN.mjs → executions-HL2M2DFU.mjs} +10 -10
- package/dist/cli/{executions-H6H5655J.js → executions-TLFZRHBJ.js} +12 -12
- package/dist/cli/{feedback-VFOUR66B.js → feedback-5UEX5UZK.js} +17 -16
- package/dist/cli/{feedback-WL3MRVT5.mjs → feedback-QMBTNXVG.mjs} +9 -8
- package/dist/cli/git-4JWOOHBG.js +26 -0
- package/dist/cli/{git-YX2J4GCI.mjs → git-LKGXVIVC.mjs} +8 -7
- package/dist/cli/index.js +170 -158
- package/dist/cli/index.mjs +60 -48
- package/dist/cli/{integrations-E2JZYKHS.js → integrations-6RUTLMN7.js} +23 -27
- package/dist/cli/{integrations-5ZK5KLVP.mjs → integrations-FGGRVUJ7.mjs} +15 -19
- package/dist/cli/{legacy-noops-3VW4IJTH.js → legacy-noops-J3Z7QRWZ.js} +12 -11
- package/dist/cli/{legacy-noops-SMN3GSXY.mjs → legacy-noops-YIPRMVXZ.mjs} +9 -8
- package/dist/cli/{mcp-UQV2K4EW.js → mcp-6LWFP7RW.js} +121 -48
- package/dist/cli/{mcp-V6MGCYAG.mjs → mcp-CHDYFO7F.mjs} +100 -27
- package/dist/cli/{monitors-R3BBDCRC.js → monitors-STM6A7OU.js} +221 -186
- package/dist/cli/{monitors-GGKS5W6M.mjs → monitors-UGRY2BXI.mjs} +58 -23
- package/dist/cli/org-3SYOUQCX.mjs +2289 -0
- package/dist/cli/org-ZOBSNSIB.js +2289 -0
- package/dist/cli/outcomes-H4YYAT5X.js +2865 -0
- package/dist/cli/outcomes-Z3P2JE67.mjs +2865 -0
- package/dist/cli/{play-2MVO27VO.js → play-SM4CW2GS.js} +1116 -846
- package/dist/cli/{play-MDWPR4XG.mjs → play-SN5YWLS7.mjs} +375 -105
- package/dist/cli/{providers-AKDYFZJZ.mjs → providers-WZ4YBR5Y.mjs} +10 -10
- package/dist/cli/{providers-2AACRUZH.js → providers-WZARYMCF.js} +13 -13
- package/dist/cli/{quickstart-QDGRJFZY.mjs → quickstart-2575BNKA.mjs} +7 -6
- package/dist/cli/{quickstart-H6IV3PV3.js → quickstart-PS4YHQJ6.js} +9 -8
- package/dist/cli/{run-2634REDK.js → run-FLZ6OTM7.js} +51 -51
- package/dist/cli/{run-RTSQNGRD.mjs → run-ZUHCZOJS.mjs} +31 -31
- package/dist/cli/run-identity-LMLFMACS.js +31 -0
- package/dist/cli/{run-identity-MRNCEGV2.mjs → run-identity-MAZ7ANH5.mjs} +9 -3
- package/dist/cli/{search-6AOJ4XPP.mjs → search-HLPPKQEO.mjs} +11 -11
- package/dist/cli/search-JJWVHR3N.js +32 -0
- package/dist/cli/{search-output-6ADMTOU5.mjs → search-output-PDAXNOGP.mjs} +9 -8
- package/dist/cli/{search-output-S5ODBL5E.js → search-output-RXJLU36B.js} +12 -11
- package/dist/cli/{secrets-TFIFBFB3.mjs → secrets-CGELYQ3H.mjs} +11 -11
- package/dist/cli/{secrets-LHCIIHMT.js → secrets-QJNG7G2Y.js} +20 -20
- package/dist/cli/sessions-DHTBT2GN.js +23 -0
- package/dist/cli/{sessions-WHBVUHVW.mjs → sessions-ELMWVR4M.mjs} +9 -8
- package/dist/cli/{settings-CP4FVK2W.js → settings-44I44P5F.js} +89 -89
- package/dist/cli/{settings-EBONWL5C.mjs → settings-RR3LZXL7.mjs} +16 -16
- package/dist/cli/{setup-I5AZE3IU.mjs → setup-KGWRWH4B.mjs} +20 -19
- package/dist/cli/{setup-LFGHTNLQ.js → setup-KTEYOCJO.js} +60 -59
- package/dist/cli/skills-EPZPEXI2.js +37 -0
- package/dist/cli/{skills-W76AO5XE.mjs → skills-FPRID2I5.mjs} +10 -9
- package/dist/cli/tools-IGQQ5TML.js +57 -0
- package/dist/cli/{tools-7IJHGF6W.mjs → tools-PI4WMDLY.mjs} +23 -23
- package/dist/cli/update-4RNCVYGE.js +37 -0
- package/dist/cli/{update-GFOPZTHY.mjs → update-VJOJAZ7B.mjs} +14 -11
- package/dist/cli/{views-BPL2TQJ4.js → views-NTUOLNQU.js} +62 -64
- package/dist/cli/{views-D4NX4SBG.mjs → views-OVPSINZO.mjs} +47 -49
- package/dist/cli/{workflow-ZYNAUCKC.js → workflow-2UDYDM6F.js} +23 -23
- package/dist/cli/{workflow-YXP42FUI.mjs → workflow-7OEFNXZC.mjs} +13 -13
- package/dist/{client-CyXGrO4D.d.mts → client-B8f7RNF8.d.mts} +1 -1
- package/dist/{client-Bf3IpUKN.d.ts → client-C5TgXmJQ.d.ts} +1 -1
- package/dist/{client-core-BxsLnXlm.d.mts → client-core-SLLGBTht.d.mts} +268 -23
- package/dist/{client-core-BWd0lX0Z.d.ts → client-core-p0sOxnkl.d.ts} +268 -23
- package/dist/{compiler-manifest-BqwVrOri.d.ts → compiler-manifest-D_zZEh9Q.d.mts} +70 -5
- package/dist/{compiler-manifest-BqwVrOri.d.mts → compiler-manifest-D_zZEh9Q.d.ts} +70 -5
- package/dist/{errors-BU8FB99X.d.mts → errors-CZCrBFrQ.d.mts} +1 -1
- package/dist/{errors-DfVN_FUG.d.ts → errors-DsUkLrdZ.d.ts} +1 -1
- package/dist/{index-BGnvtYGc.d.ts → index-B6RTOZGC.d.ts} +1 -1
- package/dist/{index-DjZgwpGw.d.mts → index-DeOVrEmX.d.mts} +1 -1
- package/dist/index.d.mts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +66 -55
- package/dist/index.mjs +25 -14
- package/dist/install-integrity.json +161 -142
- 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 +23 -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 +4 -4
- package/dist/plays/run-request.mjs +3 -3
- 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 +4 -4
- package/dist/server.d.ts +4 -4
- package/dist/server.js +15 -13
- package/dist/server.mjs +9 -7
- package/package.json +1 -1
- package/dist/cli/auth-MMNVWATX.js +0 -43
- package/dist/cli/concurrent-runs-help-FQAIHKKC.js +0 -21
- package/dist/cli/describe-QDANCTS3.mjs +0 -50
- package/dist/cli/describe-VUTT5ZKU.js +0 -50
- package/dist/cli/git-ETB3GH3K.js +0 -25
- package/dist/cli/org-GRYVMNSW.js +0 -1282
- package/dist/cli/org-Z37NGJV4.mjs +0 -1282
- package/dist/cli/run-identity-G257GQED.js +0 -25
- package/dist/cli/search-VTW2YNBS.js +0 -32
- package/dist/cli/sessions-CJ4FJ2WB.js +0 -22
- package/dist/cli/skills-R7EBXREW.js +0 -36
- package/dist/cli/tools-V7U2BDXM.js +0 -57
- package/dist/cli/update-4COPZETK.js +0 -34
|
@@ -9,37 +9,37 @@ import {
|
|
|
9
9
|
registerToolsCommands,
|
|
10
10
|
seedToolListScript,
|
|
11
11
|
writeToolReceipt
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-Z6XPSHKM.mjs";
|
|
13
|
+
import "./chunk-SG3LUONJ.mjs";
|
|
14
|
+
import "./chunk-NDNHYONK.mjs";
|
|
15
|
+
import "./chunk-55F6HNOY.mjs";
|
|
16
16
|
import "./chunk-5AEDYVB6.mjs";
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-UEVKMZLR.mjs";
|
|
18
|
+
import "./chunk-E7WZOX2A.mjs";
|
|
19
19
|
import "./chunk-OVDNJAJN.mjs";
|
|
20
20
|
import "./chunk-FR2ILQ4G.mjs";
|
|
21
21
|
import "./chunk-FIVKWNMT.mjs";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-QI5S5HWB.mjs";
|
|
23
23
|
import "./chunk-2GEYN3H4.mjs";
|
|
24
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-LH5PZKER.mjs";
|
|
25
25
|
import "./chunk-FZHMNK6F.mjs";
|
|
26
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-5TYLSS4Q.mjs";
|
|
27
27
|
import "./chunk-PSX3WHIH.mjs";
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-
|
|
34
|
-
import "./chunk-
|
|
35
|
-
import "./chunk-
|
|
36
|
-
import "./chunk-
|
|
37
|
-
import "./chunk-
|
|
38
|
-
import "./chunk-
|
|
39
|
-
import "./chunk-NURW5XH4.mjs";
|
|
28
|
+
import "./chunk-DZA7RFGL.mjs";
|
|
29
|
+
import "./chunk-CAEBJOYU.mjs";
|
|
30
|
+
import "./chunk-QG6JIWUL.mjs";
|
|
31
|
+
import "./chunk-4SMCFQ23.mjs";
|
|
32
|
+
import "./chunk-HSJ6X2AQ.mjs";
|
|
33
|
+
import "./chunk-A7DLBE5K.mjs";
|
|
34
|
+
import "./chunk-4BFTDNHU.mjs";
|
|
35
|
+
import "./chunk-AGICYWGN.mjs";
|
|
36
|
+
import "./chunk-LFOERUQY.mjs";
|
|
37
|
+
import "./chunk-OTV2UUKW.mjs";
|
|
38
|
+
import "./chunk-ASB47RXJ.mjs";
|
|
40
39
|
import "./chunk-DLIRSHV6.mjs";
|
|
41
|
-
import "./chunk-
|
|
42
|
-
import "./chunk-
|
|
40
|
+
import "./chunk-Z3A2S3QM.mjs";
|
|
41
|
+
import "./chunk-2MGZAI54.mjs";
|
|
42
|
+
import "./chunk-GAVZ4EOD.mjs";
|
|
43
43
|
import "./chunk-WZYKRD7T.mjs";
|
|
44
44
|
import "./chunk-5JPKRDFC.mjs";
|
|
45
45
|
import "./chunk-KRD6H754.mjs";
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
var _chunk7SERLBNRjs = require('./chunk-7SERLBNR.js');
|
|
12
|
+
require('./chunk-YUA6HA6D.js');
|
|
13
|
+
require('./chunk-FM7LPUPA.js');
|
|
14
|
+
require('./chunk-2B5B5KAW.js');
|
|
15
|
+
require('./chunk-4747TPLV.js');
|
|
16
|
+
require('./chunk-XLIHTJVM.js');
|
|
17
|
+
require('./chunk-MLABYI4M.js');
|
|
18
|
+
require('./chunk-AGLR6QVN.js');
|
|
19
|
+
require('./chunk-6VLFQZK6.js');
|
|
20
|
+
require('./chunk-XNYIZMNQ.js');
|
|
21
|
+
require('./chunk-LFQJW4S2.js');
|
|
22
|
+
require('./chunk-CFJFUVX2.js');
|
|
23
|
+
require('./chunk-6NE3RRRY.js');
|
|
24
|
+
require('./chunk-OG64RBAC.js');
|
|
25
|
+
require('./chunk-RLX5ZFNX.js');
|
|
26
|
+
require('./chunk-COGTRVWW.js');
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
exports.canAutomaticallyApplyUpdatePlan = _chunk7SERLBNRjs.canAutomaticallyApplyUpdatePlan; exports.compareUpdateVersions = _chunk7SERLBNRjs.compareUpdateVersions; exports.publishedVersionSupportsPin = _chunk7SERLBNRjs.publishedVersionSupportsPin; exports.registerUpdateCommand = _chunk7SERLBNRjs.registerUpdateCommand; exports.resolveInstalledVersionIfLatest = _chunk7SERLBNRjs.resolveInstalledVersionIfLatest; exports.resolveUpdatePlan = _chunk7SERLBNRjs.resolveUpdatePlan; exports.runAutomaticUpdatePlan = _chunk7SERLBNRjs.runAutomaticUpdatePlan; exports.runUpdateCommand = _chunk7SERLBNRjs.runUpdateCommand; exports.runUpdatePlan = _chunk7SERLBNRjs.runUpdatePlan;
|
|
@@ -3,22 +3,24 @@ import {
|
|
|
3
3
|
compareUpdateVersions,
|
|
4
4
|
publishedVersionSupportsPin,
|
|
5
5
|
registerUpdateCommand,
|
|
6
|
+
resolveInstalledVersionIfLatest,
|
|
6
7
|
resolveUpdatePlan,
|
|
7
8
|
runAutomaticUpdatePlan,
|
|
8
9
|
runUpdateCommand,
|
|
9
10
|
runUpdatePlan
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-QG6JIWUL.mjs";
|
|
12
|
+
import "./chunk-4SMCFQ23.mjs";
|
|
13
|
+
import "./chunk-HSJ6X2AQ.mjs";
|
|
14
|
+
import "./chunk-A7DLBE5K.mjs";
|
|
15
|
+
import "./chunk-4BFTDNHU.mjs";
|
|
16
|
+
import "./chunk-AGICYWGN.mjs";
|
|
17
|
+
import "./chunk-LFOERUQY.mjs";
|
|
18
|
+
import "./chunk-OTV2UUKW.mjs";
|
|
19
|
+
import "./chunk-ASB47RXJ.mjs";
|
|
19
20
|
import "./chunk-DLIRSHV6.mjs";
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-Z3A2S3QM.mjs";
|
|
22
|
+
import "./chunk-2MGZAI54.mjs";
|
|
23
|
+
import "./chunk-GAVZ4EOD.mjs";
|
|
22
24
|
import "./chunk-WZYKRD7T.mjs";
|
|
23
25
|
import "./chunk-5JPKRDFC.mjs";
|
|
24
26
|
import "./chunk-KRD6H754.mjs";
|
|
@@ -27,6 +29,7 @@ export {
|
|
|
27
29
|
compareUpdateVersions,
|
|
28
30
|
publishedVersionSupportsPin,
|
|
29
31
|
registerUpdateCommand,
|
|
32
|
+
resolveInstalledVersionIfLatest,
|
|
30
33
|
resolveUpdatePlan,
|
|
31
34
|
runAutomaticUpdatePlan,
|
|
32
35
|
runUpdateCommand,
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var _chunkJLGP5XAJjs = require('./chunk-JLGP5XAJ.js');
|
|
4
|
+
require('./chunk-CACFJODG.js');
|
|
5
5
|
require('./chunk-4WAM6TLD.js');
|
|
6
|
-
require('./chunk-
|
|
6
|
+
require('./chunk-MJTVX4QK.js');
|
|
7
7
|
require('./chunk-PMH4GLMD.js');
|
|
8
|
-
require('./chunk-XDVT3GOM.js');
|
|
9
8
|
|
|
10
9
|
|
|
11
|
-
var
|
|
10
|
+
var _chunkXLIHTJVMjs = require('./chunk-XLIHTJVM.js');
|
|
12
11
|
|
|
13
12
|
|
|
14
|
-
var
|
|
15
|
-
require('./chunk-
|
|
16
|
-
require('./chunk-
|
|
13
|
+
var _chunkMLABYI4Mjs = require('./chunk-MLABYI4M.js');
|
|
14
|
+
require('./chunk-AGLR6QVN.js');
|
|
15
|
+
require('./chunk-6VLFQZK6.js');
|
|
17
16
|
require('./chunk-XNYIZMNQ.js');
|
|
18
|
-
require('./chunk-
|
|
19
|
-
require('./chunk-
|
|
17
|
+
require('./chunk-LFQJW4S2.js');
|
|
18
|
+
require('./chunk-CFJFUVX2.js');
|
|
19
|
+
require('./chunk-6NE3RRRY.js');
|
|
20
20
|
require('./chunk-OG64RBAC.js');
|
|
21
21
|
require('./chunk-COGTRVWW.js');
|
|
22
22
|
|
|
@@ -24,7 +24,7 @@ require('./chunk-COGTRVWW.js');
|
|
|
24
24
|
var _promises = require('fs/promises');
|
|
25
25
|
var VIEWS_FEATURE = "views";
|
|
26
26
|
function print(command, json, data, lines) {
|
|
27
|
-
|
|
27
|
+
_chunkXLIHTJVMjs.printCommandEnvelope.call(void 0,
|
|
28
28
|
{ command, ...data, render: { sections: [{ title: command, lines }] } },
|
|
29
29
|
{ json: Boolean(json), text: `${lines.join("\n")}
|
|
30
30
|
` }
|
|
@@ -47,16 +47,27 @@ async function readJsonOption(value, flag) {
|
|
|
47
47
|
throw new Error(`${flag} takes JSON, or @path to a JSON file.`);
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
|
+
var VIEW_ACCESS_WORDS = {
|
|
51
|
+
workspace: "workspace-only (people in the view's workspace)",
|
|
52
|
+
org: "org-visible (every org member)",
|
|
53
|
+
public: "public"
|
|
54
|
+
};
|
|
55
|
+
function parseViewAccess(value) {
|
|
56
|
+
if (value === "workspace" || value === "org" || value === "public") {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
throw new Error("Access is workspace, org, or public.");
|
|
60
|
+
}
|
|
50
61
|
function viewLines(view) {
|
|
51
62
|
return [
|
|
52
63
|
view.name,
|
|
53
64
|
` ${view.url}`,
|
|
54
|
-
` id ${view.id} \xB7 Play ${view.play} \xB7 ${view.access
|
|
65
|
+
` id ${view.id} \xB7 Play ${view.play} \xB7 ${_nullishCoalesce(VIEW_ACCESS_WORDS[view.access], () => ( view.access))}`,
|
|
55
66
|
...view.description ? [` ${view.description}`] : []
|
|
56
67
|
];
|
|
57
68
|
}
|
|
58
69
|
function registerViewsCommands(program) {
|
|
59
|
-
const views = program.command("views", { hidden: !
|
|
70
|
+
const views = program.command("views", { hidden: !_chunkMLABYI4Mjs.cliFeatureEnabled.call(void 0, VIEWS_FEATURE) }).description(
|
|
60
71
|
"Show what a Play returns at a fixed URL on views.deepline.com."
|
|
61
72
|
).addHelpText(
|
|
62
73
|
"after",
|
|
@@ -67,9 +78,9 @@ Examples:
|
|
|
67
78
|
deepline views set-access <id> public
|
|
68
79
|
`
|
|
69
80
|
);
|
|
70
|
-
views.command("list").description("List this
|
|
81
|
+
views.command("list").description("List this org's views.").option("--cursor <cursor>", "Continue from a previous page of results").option("--limit <n>", "Results per request, up to 100", Number).option("--json", "Emit raw JSON response").action(
|
|
71
82
|
async (options) => run(async () => {
|
|
72
|
-
const result = await new (0,
|
|
83
|
+
const result = await new (0, _chunkJLGP5XAJjs.DeeplineClient)().listViews({
|
|
73
84
|
cursor: options.cursor,
|
|
74
85
|
limit: options.limit
|
|
75
86
|
});
|
|
@@ -84,17 +95,14 @@ Examples:
|
|
|
84
95
|
);
|
|
85
96
|
views.command("get <id>").description("Show one view and what you may do with it.").option("--json", "Emit raw JSON response").action(
|
|
86
97
|
async (id, options) => run(async () => {
|
|
87
|
-
const view = await new (0,
|
|
98
|
+
const view = await new (0, _chunkJLGP5XAJjs.DeeplineClient)().getView(id);
|
|
88
99
|
print("views get", options.json, view, [
|
|
89
100
|
...viewLines(view),
|
|
90
101
|
` saved input ${JSON.stringify(view.input)}`
|
|
91
102
|
]);
|
|
92
103
|
})
|
|
93
104
|
);
|
|
94
|
-
views.command("create").description("Create a view that shows a Play's runs at a fixed URL.").requiredOption("--name <name>", "View name").requiredOption(
|
|
95
|
-
"--play <play>",
|
|
96
|
-
"Play in this workspace, or prebuilt/<name>"
|
|
97
|
-
).option(
|
|
105
|
+
views.command("create").description("Create a view that shows a Play's runs at a fixed URL.").requiredOption("--name <name>", "View name").requiredOption("--play <play>", "Play in this org, or prebuilt/<name>").option(
|
|
98
106
|
"--input <json>",
|
|
99
107
|
"Saved input Refresh runs the Play with (JSON or @file)"
|
|
100
108
|
).option("--description <text>", "What the view is").option("--json", "Emit raw JSON response").addHelpText(
|
|
@@ -106,7 +114,7 @@ Examples:
|
|
|
106
114
|
`
|
|
107
115
|
).action(
|
|
108
116
|
async (options) => run(async () => {
|
|
109
|
-
const view = await new (0,
|
|
117
|
+
const view = await new (0, _chunkJLGP5XAJjs.DeeplineClient)().createView({
|
|
110
118
|
name: options.name,
|
|
111
119
|
play: options.play,
|
|
112
120
|
...options.input !== void 0 ? {
|
|
@@ -123,9 +131,7 @@ Examples:
|
|
|
123
131
|
]);
|
|
124
132
|
})
|
|
125
133
|
);
|
|
126
|
-
views.command("edit <id>").description(
|
|
127
|
-
"Change a view's name, Play, saved input, or description."
|
|
128
|
-
).option("--name <name>", "New name").option("--play <play>", "Play in this workspace, or prebuilt/<name>").option(
|
|
134
|
+
views.command("edit <id>").description("Change a view's name, Play, saved input, or description.").option("--name <name>", "New name").option("--play <play>", "Play in this org, or prebuilt/<name>").option(
|
|
129
135
|
"--input <json>",
|
|
130
136
|
"Saved input Refresh runs the Play with (JSON or @file)"
|
|
131
137
|
).option("--description <text>", "What the view is").option("--json", "Emit raw JSON response").action(
|
|
@@ -142,22 +148,15 @@ Examples:
|
|
|
142
148
|
} : {}
|
|
143
149
|
};
|
|
144
150
|
if (Object.keys(fields).length === 0) {
|
|
145
|
-
throw new Error(
|
|
146
|
-
"Nothing to change. See: deepline views edit --help"
|
|
147
|
-
);
|
|
151
|
+
throw new Error("Nothing to change. See: deepline views edit --help");
|
|
148
152
|
}
|
|
149
|
-
const view = await new (0,
|
|
150
|
-
print(
|
|
151
|
-
"views edit",
|
|
152
|
-
options.json,
|
|
153
|
-
view,
|
|
154
|
-
viewLines(view)
|
|
155
|
-
);
|
|
153
|
+
const view = await new (0, _chunkJLGP5XAJjs.DeeplineClient)().updateView(id, fields);
|
|
154
|
+
print("views edit", options.json, view, viewLines(view));
|
|
156
155
|
})
|
|
157
156
|
);
|
|
158
157
|
views.command("runs <id>").description("List runs of the view's Play, newest first.").option("--limit <n>", "Runs to list, up to 100", Number).option("--json", "Emit raw JSON response").action(
|
|
159
158
|
async (id, options) => run(async () => {
|
|
160
|
-
const result = await new (0,
|
|
159
|
+
const result = await new (0, _chunkJLGP5XAJjs.DeeplineClient)().listViewRuns(id, {
|
|
161
160
|
limit: options.limit
|
|
162
161
|
});
|
|
163
162
|
print("views runs", options.json, result, [
|
|
@@ -176,7 +175,7 @@ Examples:
|
|
|
176
175
|
).option("--json", "Emit raw JSON response").action(
|
|
177
176
|
async (id, options) => run(async () => {
|
|
178
177
|
const input = options.input !== void 0 ? await readJsonOption(options.input, "--input") : void 0;
|
|
179
|
-
const started = await new (0,
|
|
178
|
+
const started = await new (0, _chunkJLGP5XAJjs.DeeplineClient)().refreshView(id, input);
|
|
180
179
|
print("views refresh", options.json, started, [
|
|
181
180
|
`Started run ${started.workflowId}.`,
|
|
182
181
|
`Watch it: deepline runs get ${started.workflowId}`
|
|
@@ -184,35 +183,29 @@ Examples:
|
|
|
184
183
|
})
|
|
185
184
|
);
|
|
186
185
|
views.command("set-access <id> <access>").description(
|
|
187
|
-
"Choose who can open a view: workspace or public. Public shows every run of its Play to anyone with the link."
|
|
186
|
+
"Choose who can open a view: workspace (people in the view's workspace; a view in a named workspace only), org (every org member), or public. Public shows every run of its Play to anyone with the link. Refreshing and managing a view stay with its workspace."
|
|
188
187
|
).option("--json", "Emit raw JSON response").action(
|
|
189
188
|
async (id, access, options) => run(async () => {
|
|
190
|
-
|
|
191
|
-
throw new Error("Access is workspace or public.");
|
|
192
|
-
}
|
|
193
|
-
const view = await new (0, _chunkSHLFOPD6js.DeeplineClient)().setViewAccess(
|
|
189
|
+
const view = await new (0, _chunkJLGP5XAJjs.DeeplineClient)().setViewAccess(
|
|
194
190
|
id,
|
|
195
|
-
access
|
|
196
|
-
);
|
|
197
|
-
print(
|
|
198
|
-
"views set-access",
|
|
199
|
-
options.json,
|
|
200
|
-
view,
|
|
201
|
-
viewLines(view)
|
|
191
|
+
parseViewAccess(access)
|
|
202
192
|
);
|
|
193
|
+
print("views set-access", options.json, view, viewLines(view));
|
|
203
194
|
})
|
|
204
195
|
);
|
|
205
196
|
const links = views.command("links").description(
|
|
206
|
-
"Share a view with people outside the
|
|
197
|
+
"Share a view with people outside the org through signed links, which can expire, be revoked, and be emailed from Deepline."
|
|
207
198
|
);
|
|
208
199
|
function linkLine(link) {
|
|
209
200
|
const expires = link.expires_at === null ? "no expiry" : `expires ${new Date(link.expires_at).toISOString()}`;
|
|
210
201
|
const sent = link.sent_to.length ? ` \xB7 sent to ${link.sent_to.join(", ")}` : "";
|
|
211
202
|
return `${link.id} ${link.status} ${_nullishCoalesce(link.label, () => ( "(no label)"))} ${expires}${sent}`;
|
|
212
203
|
}
|
|
213
|
-
links.command("list <id>", { isDefault: true }).description(
|
|
204
|
+
links.command("list <id>", { isDefault: true }).description(
|
|
205
|
+
"List a view's share links. Their URLs are shown only once, when created."
|
|
206
|
+
).option("--json", "Emit raw JSON response").action(
|
|
214
207
|
async (id, options) => run(async () => {
|
|
215
|
-
const result = await new (0,
|
|
208
|
+
const result = await new (0, _chunkJLGP5XAJjs.DeeplineClient)().listViewShareLinks(id);
|
|
216
209
|
print(
|
|
217
210
|
"views links list",
|
|
218
211
|
options.json,
|
|
@@ -223,10 +216,16 @@ Examples:
|
|
|
223
216
|
);
|
|
224
217
|
links.command("create <id>").description(
|
|
225
218
|
"Create a share link. Whoever holds it can open the view, see every run and its input, but not refresh it or start Plays. The URL is printed once; keep it."
|
|
226
|
-
).requiredOption(
|
|
219
|
+
).requiredOption(
|
|
220
|
+
"--expires <expiry>",
|
|
221
|
+
"How long the link lasts: 1d, 7d, 30d or never"
|
|
222
|
+
).option("--label <label>", "What the link is for, shown in the list").option(
|
|
223
|
+
"--email <emails>",
|
|
224
|
+
"Comma-separated addresses Deepline emails the link to"
|
|
225
|
+
).option("--json", "Emit raw JSON response").action(
|
|
227
226
|
async (id, options) => run(async () => {
|
|
228
227
|
const emails = options.email ? String(options.email).split(",").map((email) => email.trim()).filter(Boolean) : void 0;
|
|
229
|
-
const link = await new (0,
|
|
228
|
+
const link = await new (0, _chunkJLGP5XAJjs.DeeplineClient)().createViewShareLink(id, {
|
|
230
229
|
expires: options.expires,
|
|
231
230
|
...options.label ? { label: options.label } : {},
|
|
232
231
|
...emails ? { emails } : {}
|
|
@@ -242,24 +241,22 @@ Examples:
|
|
|
242
241
|
);
|
|
243
242
|
links.command("revoke <id> <linkId>").description("Revoke a share link. It stops opening the view at once.").option("--json", "Emit raw JSON response").action(
|
|
244
243
|
async (id, linkId, options) => run(async () => {
|
|
245
|
-
const link = await new (0,
|
|
244
|
+
const link = await new (0, _chunkJLGP5XAJjs.DeeplineClient)().revokeViewShareLink(id, linkId);
|
|
246
245
|
print("views links revoke", options.json, link, [linkLine(link)]);
|
|
247
246
|
})
|
|
248
247
|
);
|
|
249
248
|
views.command("delete <id>").description("Delete a view. Its Play and runs are not touched.").option("--json", "Emit raw JSON response").action(
|
|
250
249
|
async (id, options) => run(async () => {
|
|
251
|
-
const result = await new (0,
|
|
252
|
-
print("views delete", options.json, result, [
|
|
253
|
-
`Deleted view ${id}.`
|
|
254
|
-
]);
|
|
250
|
+
const result = await new (0, _chunkJLGP5XAJjs.DeeplineClient)().deleteView(id);
|
|
251
|
+
print("views delete", options.json, result, [`Deleted view ${id}.`]);
|
|
255
252
|
})
|
|
256
253
|
);
|
|
257
254
|
const permissions = views.command("permissions").description(
|
|
258
255
|
"Show or change who may create, edit, delete, publish, and refresh views."
|
|
259
256
|
);
|
|
260
|
-
permissions.command("get", { isDefault: true }).description("Show the
|
|
257
|
+
permissions.command("get", { isDefault: true }).description("Show the org's view rules and what you may do.").option("--json", "Emit raw JSON response").action(
|
|
261
258
|
async (options) => run(async () => {
|
|
262
|
-
const result = await new (0,
|
|
259
|
+
const result = await new (0, _chunkJLGP5XAJjs.DeeplineClient)().getViewPermissions();
|
|
263
260
|
print("views permissions", options.json, result, [
|
|
264
261
|
...Object.entries(result.rules).map(
|
|
265
262
|
([verb, level]) => `${verb}: ${level}`
|
|
@@ -277,9 +274,10 @@ Examples:
|
|
|
277
274
|
"setAccess",
|
|
278
275
|
"refresh"
|
|
279
276
|
];
|
|
280
|
-
permissions.command("set").description(
|
|
281
|
-
"
|
|
282
|
-
|
|
277
|
+
permissions.command("set").description("Change view rules (admins only). Each is members or admins.").option("--create <level>", "Create views").option("--edit <level>", "Edit views").option("--delete <level>", "Delete views").option(
|
|
278
|
+
"--set-access <level>",
|
|
279
|
+
"Change who can open views (workspace, org or public), and manage share links"
|
|
280
|
+
).option("--refresh <level>", "Refresh views and start Plays from them").option("--json", "Emit raw JSON response").action(
|
|
283
281
|
async (options) => run(async () => {
|
|
284
282
|
const rules = {};
|
|
285
283
|
for (const verb of verbs) {
|
|
@@ -297,7 +295,7 @@ Examples:
|
|
|
297
295
|
"Pass at least one rule. See: deepline views permissions set --help"
|
|
298
296
|
);
|
|
299
297
|
}
|
|
300
|
-
const result = await new (0,
|
|
298
|
+
const result = await new (0, _chunkJLGP5XAJjs.DeeplineClient)().setViewPermissions(rules);
|
|
301
299
|
print(
|
|
302
300
|
"views permissions set",
|
|
303
301
|
options.json,
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DeeplineClient
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-QI5S5HWB.mjs";
|
|
4
|
+
import "./chunk-LH5PZKER.mjs";
|
|
5
5
|
import "./chunk-FZHMNK6F.mjs";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-5TYLSS4Q.mjs";
|
|
7
7
|
import "./chunk-PSX3WHIH.mjs";
|
|
8
|
-
import "./chunk-UBKA33KY.mjs";
|
|
9
8
|
import {
|
|
10
9
|
printCommandEnvelope
|
|
11
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-AGICYWGN.mjs";
|
|
12
11
|
import {
|
|
13
12
|
cliFeatureEnabled
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
13
|
+
} from "./chunk-LFOERUQY.mjs";
|
|
14
|
+
import "./chunk-OTV2UUKW.mjs";
|
|
15
|
+
import "./chunk-ASB47RXJ.mjs";
|
|
17
16
|
import "./chunk-DLIRSHV6.mjs";
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-Z3A2S3QM.mjs";
|
|
18
|
+
import "./chunk-2MGZAI54.mjs";
|
|
19
|
+
import "./chunk-GAVZ4EOD.mjs";
|
|
20
20
|
import "./chunk-WZYKRD7T.mjs";
|
|
21
21
|
import "./chunk-KRD6H754.mjs";
|
|
22
22
|
|
|
@@ -47,11 +47,22 @@ async function readJsonOption(value, flag) {
|
|
|
47
47
|
throw new Error(`${flag} takes JSON, or @path to a JSON file.`);
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
|
+
var VIEW_ACCESS_WORDS = {
|
|
51
|
+
workspace: "workspace-only (people in the view's workspace)",
|
|
52
|
+
org: "org-visible (every org member)",
|
|
53
|
+
public: "public"
|
|
54
|
+
};
|
|
55
|
+
function parseViewAccess(value) {
|
|
56
|
+
if (value === "workspace" || value === "org" || value === "public") {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
throw new Error("Access is workspace, org, or public.");
|
|
60
|
+
}
|
|
50
61
|
function viewLines(view) {
|
|
51
62
|
return [
|
|
52
63
|
view.name,
|
|
53
64
|
` ${view.url}`,
|
|
54
|
-
` id ${view.id} \xB7 Play ${view.play} \xB7 ${view.access
|
|
65
|
+
` id ${view.id} \xB7 Play ${view.play} \xB7 ${VIEW_ACCESS_WORDS[view.access] ?? view.access}`,
|
|
55
66
|
...view.description ? [` ${view.description}`] : []
|
|
56
67
|
];
|
|
57
68
|
}
|
|
@@ -67,7 +78,7 @@ Examples:
|
|
|
67
78
|
deepline views set-access <id> public
|
|
68
79
|
`
|
|
69
80
|
);
|
|
70
|
-
views.command("list").description("List this
|
|
81
|
+
views.command("list").description("List this org's views.").option("--cursor <cursor>", "Continue from a previous page of results").option("--limit <n>", "Results per request, up to 100", Number).option("--json", "Emit raw JSON response").action(
|
|
71
82
|
async (options) => run(async () => {
|
|
72
83
|
const result = await new DeeplineClient().listViews({
|
|
73
84
|
cursor: options.cursor,
|
|
@@ -91,10 +102,7 @@ Examples:
|
|
|
91
102
|
]);
|
|
92
103
|
})
|
|
93
104
|
);
|
|
94
|
-
views.command("create").description("Create a view that shows a Play's runs at a fixed URL.").requiredOption("--name <name>", "View name").requiredOption(
|
|
95
|
-
"--play <play>",
|
|
96
|
-
"Play in this workspace, or prebuilt/<name>"
|
|
97
|
-
).option(
|
|
105
|
+
views.command("create").description("Create a view that shows a Play's runs at a fixed URL.").requiredOption("--name <name>", "View name").requiredOption("--play <play>", "Play in this org, or prebuilt/<name>").option(
|
|
98
106
|
"--input <json>",
|
|
99
107
|
"Saved input Refresh runs the Play with (JSON or @file)"
|
|
100
108
|
).option("--description <text>", "What the view is").option("--json", "Emit raw JSON response").addHelpText(
|
|
@@ -123,9 +131,7 @@ Examples:
|
|
|
123
131
|
]);
|
|
124
132
|
})
|
|
125
133
|
);
|
|
126
|
-
views.command("edit <id>").description(
|
|
127
|
-
"Change a view's name, Play, saved input, or description."
|
|
128
|
-
).option("--name <name>", "New name").option("--play <play>", "Play in this workspace, or prebuilt/<name>").option(
|
|
134
|
+
views.command("edit <id>").description("Change a view's name, Play, saved input, or description.").option("--name <name>", "New name").option("--play <play>", "Play in this org, or prebuilt/<name>").option(
|
|
129
135
|
"--input <json>",
|
|
130
136
|
"Saved input Refresh runs the Play with (JSON or @file)"
|
|
131
137
|
).option("--description <text>", "What the view is").option("--json", "Emit raw JSON response").action(
|
|
@@ -142,17 +148,10 @@ Examples:
|
|
|
142
148
|
} : {}
|
|
143
149
|
};
|
|
144
150
|
if (Object.keys(fields).length === 0) {
|
|
145
|
-
throw new Error(
|
|
146
|
-
"Nothing to change. See: deepline views edit --help"
|
|
147
|
-
);
|
|
151
|
+
throw new Error("Nothing to change. See: deepline views edit --help");
|
|
148
152
|
}
|
|
149
153
|
const view = await new DeeplineClient().updateView(id, fields);
|
|
150
|
-
print(
|
|
151
|
-
"views edit",
|
|
152
|
-
options.json,
|
|
153
|
-
view,
|
|
154
|
-
viewLines(view)
|
|
155
|
-
);
|
|
154
|
+
print("views edit", options.json, view, viewLines(view));
|
|
156
155
|
})
|
|
157
156
|
);
|
|
158
157
|
views.command("runs <id>").description("List runs of the view's Play, newest first.").option("--limit <n>", "Runs to list, up to 100", Number).option("--json", "Emit raw JSON response").action(
|
|
@@ -184,33 +183,27 @@ Examples:
|
|
|
184
183
|
})
|
|
185
184
|
);
|
|
186
185
|
views.command("set-access <id> <access>").description(
|
|
187
|
-
"Choose who can open a view: workspace or public. Public shows every run of its Play to anyone with the link."
|
|
186
|
+
"Choose who can open a view: workspace (people in the view's workspace; a view in a named workspace only), org (every org member), or public. Public shows every run of its Play to anyone with the link. Refreshing and managing a view stay with its workspace."
|
|
188
187
|
).option("--json", "Emit raw JSON response").action(
|
|
189
188
|
async (id, access, options) => run(async () => {
|
|
190
|
-
if (access !== "workspace" && access !== "public") {
|
|
191
|
-
throw new Error("Access is workspace or public.");
|
|
192
|
-
}
|
|
193
189
|
const view = await new DeeplineClient().setViewAccess(
|
|
194
190
|
id,
|
|
195
|
-
access
|
|
196
|
-
);
|
|
197
|
-
print(
|
|
198
|
-
"views set-access",
|
|
199
|
-
options.json,
|
|
200
|
-
view,
|
|
201
|
-
viewLines(view)
|
|
191
|
+
parseViewAccess(access)
|
|
202
192
|
);
|
|
193
|
+
print("views set-access", options.json, view, viewLines(view));
|
|
203
194
|
})
|
|
204
195
|
);
|
|
205
196
|
const links = views.command("links").description(
|
|
206
|
-
"Share a view with people outside the
|
|
197
|
+
"Share a view with people outside the org through signed links, which can expire, be revoked, and be emailed from Deepline."
|
|
207
198
|
);
|
|
208
199
|
function linkLine(link) {
|
|
209
200
|
const expires = link.expires_at === null ? "no expiry" : `expires ${new Date(link.expires_at).toISOString()}`;
|
|
210
201
|
const sent = link.sent_to.length ? ` \xB7 sent to ${link.sent_to.join(", ")}` : "";
|
|
211
202
|
return `${link.id} ${link.status} ${link.label ?? "(no label)"} ${expires}${sent}`;
|
|
212
203
|
}
|
|
213
|
-
links.command("list <id>", { isDefault: true }).description(
|
|
204
|
+
links.command("list <id>", { isDefault: true }).description(
|
|
205
|
+
"List a view's share links. Their URLs are shown only once, when created."
|
|
206
|
+
).option("--json", "Emit raw JSON response").action(
|
|
214
207
|
async (id, options) => run(async () => {
|
|
215
208
|
const result = await new DeeplineClient().listViewShareLinks(id);
|
|
216
209
|
print(
|
|
@@ -223,7 +216,13 @@ Examples:
|
|
|
223
216
|
);
|
|
224
217
|
links.command("create <id>").description(
|
|
225
218
|
"Create a share link. Whoever holds it can open the view, see every run and its input, but not refresh it or start Plays. The URL is printed once; keep it."
|
|
226
|
-
).requiredOption(
|
|
219
|
+
).requiredOption(
|
|
220
|
+
"--expires <expiry>",
|
|
221
|
+
"How long the link lasts: 1d, 7d, 30d or never"
|
|
222
|
+
).option("--label <label>", "What the link is for, shown in the list").option(
|
|
223
|
+
"--email <emails>",
|
|
224
|
+
"Comma-separated addresses Deepline emails the link to"
|
|
225
|
+
).option("--json", "Emit raw JSON response").action(
|
|
227
226
|
async (id, options) => run(async () => {
|
|
228
227
|
const emails = options.email ? String(options.email).split(",").map((email) => email.trim()).filter(Boolean) : void 0;
|
|
229
228
|
const link = await new DeeplineClient().createViewShareLink(id, {
|
|
@@ -249,15 +248,13 @@ Examples:
|
|
|
249
248
|
views.command("delete <id>").description("Delete a view. Its Play and runs are not touched.").option("--json", "Emit raw JSON response").action(
|
|
250
249
|
async (id, options) => run(async () => {
|
|
251
250
|
const result = await new DeeplineClient().deleteView(id);
|
|
252
|
-
print("views delete", options.json, result, [
|
|
253
|
-
`Deleted view ${id}.`
|
|
254
|
-
]);
|
|
251
|
+
print("views delete", options.json, result, [`Deleted view ${id}.`]);
|
|
255
252
|
})
|
|
256
253
|
);
|
|
257
254
|
const permissions = views.command("permissions").description(
|
|
258
255
|
"Show or change who may create, edit, delete, publish, and refresh views."
|
|
259
256
|
);
|
|
260
|
-
permissions.command("get", { isDefault: true }).description("Show the
|
|
257
|
+
permissions.command("get", { isDefault: true }).description("Show the org's view rules and what you may do.").option("--json", "Emit raw JSON response").action(
|
|
261
258
|
async (options) => run(async () => {
|
|
262
259
|
const result = await new DeeplineClient().getViewPermissions();
|
|
263
260
|
print("views permissions", options.json, result, [
|
|
@@ -277,9 +274,10 @@ Examples:
|
|
|
277
274
|
"setAccess",
|
|
278
275
|
"refresh"
|
|
279
276
|
];
|
|
280
|
-
permissions.command("set").description(
|
|
281
|
-
"
|
|
282
|
-
|
|
277
|
+
permissions.command("set").description("Change view rules (admins only). Each is members or admins.").option("--create <level>", "Create views").option("--edit <level>", "Edit views").option("--delete <level>", "Delete views").option(
|
|
278
|
+
"--set-access <level>",
|
|
279
|
+
"Change who can open views (workspace, org or public), and manage share links"
|
|
280
|
+
).option("--refresh <level>", "Refresh views and start Plays from them").option("--json", "Emit raw JSON response").action(
|
|
283
281
|
async (options) => run(async () => {
|
|
284
282
|
const rules = {};
|
|
285
283
|
for (const verb of verbs) {
|