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
|
@@ -1,19 +1,23 @@
|
|
|
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; }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkYUA6HA6Djs = require('./chunk-YUA6HA6D.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkFM7LPUPAjs = require('./chunk-FM7LPUPA.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunk2B5B5KAWjs = require('./chunk-2B5B5KAW.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkXLIHTJVMjs = require('./chunk-XLIHTJVM.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
var _chunkMLABYI4Mjs = require('./chunk-MLABYI4M.js');
|
|
17
21
|
|
|
18
22
|
// src/cli/commands/update.ts
|
|
19
23
|
var _child_process = require('child_process');
|
|
@@ -495,7 +499,7 @@ function normalizedNpmPrefix(value) {
|
|
|
495
499
|
}
|
|
496
500
|
function resolveNpmGlobalPrefix(env) {
|
|
497
501
|
try {
|
|
498
|
-
const plan =
|
|
502
|
+
const plan = _chunk2B5B5KAWjs.resolveShellSpawn.call(void 0,
|
|
499
503
|
"npm",
|
|
500
504
|
["prefix", "-g"],
|
|
501
505
|
process.platform,
|
|
@@ -557,8 +561,8 @@ function resolveUpdatePlan(options = {}) {
|
|
|
557
561
|
const npmGlobalPrefix = options.npmGlobalPrefix !== void 0 ? options.npmGlobalPrefix : resolveNpmGlobalPrefix(env);
|
|
558
562
|
const hasVerifiedNpmOwnership = inferredInstallPrefix !== null && normalizedNpmPrefix(inferredInstallPrefix) === normalizedNpmPrefix(npmGlobalPrefix);
|
|
559
563
|
const installPrefix = options.requireVerifiedNpmOwnership ? hasVerifiedNpmOwnership ? inferredInstallPrefix : null : inferredInstallPrefix;
|
|
560
|
-
const npmVersion = options.npmVersion === void 0 ?
|
|
561
|
-
const npmGlobalInstallFlags =
|
|
564
|
+
const npmVersion = options.npmVersion === void 0 ? _chunkYUA6HA6Djs.readNpmVersion.call(void 0, env) : options.npmVersion;
|
|
565
|
+
const npmGlobalInstallFlags = _chunkYUA6HA6Djs.npmSupportsAllowScripts.call(void 0, npmVersion) ? [...NPM_SDK_INSTALL_COMMON_FLAGS, "--allow-scripts=esbuild"] : NPM_SDK_INSTALL_COMMON_FLAGS;
|
|
562
566
|
const args = installPrefix ? [
|
|
563
567
|
"install",
|
|
564
568
|
"-g",
|
|
@@ -568,7 +572,7 @@ function resolveUpdatePlan(options = {}) {
|
|
|
568
572
|
packageSpec
|
|
569
573
|
] : ["install", "-g", ...npmGlobalInstallFlags, packageSpec];
|
|
570
574
|
const fallbackRegistryUrl = options.npmFallbackRegistryUrl !== void 0 ? options.npmFallbackRegistryUrl : publicNpmFallbackRegistryUrl(
|
|
571
|
-
_optionalChain([env, 'access', _22 => _22.DEEPLINE_HOST_URL, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()]) ||
|
|
575
|
+
_optionalChain([env, 'access', _22 => _22.DEEPLINE_HOST_URL, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()]) || _chunkMLABYI4Mjs.autoDetectBaseUrl.call(void 0, )
|
|
572
576
|
);
|
|
573
577
|
return {
|
|
574
578
|
kind: "npm-global",
|
|
@@ -817,7 +821,7 @@ function sidecarInstallFailure(versionDir) {
|
|
|
817
821
|
function runCommand(command, args, env = process.env) {
|
|
818
822
|
return new Promise((resolveResult) => {
|
|
819
823
|
let output = "";
|
|
820
|
-
const plan =
|
|
824
|
+
const plan = _chunk2B5B5KAWjs.resolveShellSpawn.call(void 0, command, args, process.platform, env);
|
|
821
825
|
const child = _child_process.spawn.call(void 0, plan.command, plan.args, {
|
|
822
826
|
windowsHide: true,
|
|
823
827
|
stdio: ["inherit", "pipe", "pipe"],
|
|
@@ -1163,52 +1167,130 @@ function normalizePinnedVersion(value) {
|
|
|
1163
1167
|
const normalized = _nullishCoalesce(_optionalChain([value, 'optionalAccess', _37 => _37.trim, 'call', _38 => _38(), 'access', _39 => _39.replace, 'call', _40 => _40(/^v/, "")]), () => ( ""));
|
|
1164
1168
|
return /^\d+\.\d+\.\d+(?:-[0-9A-Za-z.-]+)?$/.test(normalized) ? normalized : null;
|
|
1165
1169
|
}
|
|
1166
|
-
async function
|
|
1170
|
+
async function readPinMetadata(registryUrl, version) {
|
|
1171
|
+
const controller = new AbortController();
|
|
1172
|
+
const timeout = setTimeout(() => controller.abort(), _chunkMLABYI4Mjs.DEFAULT_TIMEOUT);
|
|
1173
|
+
try {
|
|
1174
|
+
const response = await fetch(
|
|
1175
|
+
new URL(
|
|
1176
|
+
`deepline/${encodeURIComponent(version)}`,
|
|
1177
|
+
registryUrl.endsWith("/") ? registryUrl : `${registryUrl}/`
|
|
1178
|
+
),
|
|
1179
|
+
{
|
|
1180
|
+
headers: { accept: "application/json" },
|
|
1181
|
+
signal: controller.signal
|
|
1182
|
+
}
|
|
1183
|
+
);
|
|
1184
|
+
if (response.status === 404) return { kind: "answer", supportsPin: false };
|
|
1185
|
+
if (!response.ok) {
|
|
1186
|
+
return {
|
|
1187
|
+
kind: "miss",
|
|
1188
|
+
transient: _chunkMLABYI4Mjs.TRANSIENT_HTTP_STATUSES.has(response.status),
|
|
1189
|
+
error: new Error(`${registryUrl} returned HTTP ${response.status}`)
|
|
1190
|
+
};
|
|
1191
|
+
}
|
|
1192
|
+
const text = await response.text();
|
|
1193
|
+
let metadata;
|
|
1194
|
+
try {
|
|
1195
|
+
metadata = JSON.parse(text);
|
|
1196
|
+
} catch (e16) {
|
|
1197
|
+
return {
|
|
1198
|
+
kind: "miss",
|
|
1199
|
+
transient: false,
|
|
1200
|
+
error: new Error(`${registryUrl} returned malformed package metadata`)
|
|
1201
|
+
};
|
|
1202
|
+
}
|
|
1203
|
+
return {
|
|
1204
|
+
kind: "answer",
|
|
1205
|
+
supportsPin: _optionalChain([metadata, 'optionalAccess', _41 => _41.deepline, 'optionalAccess', _42 => _42.updatePreferences]) === 1
|
|
1206
|
+
};
|
|
1207
|
+
} catch (error) {
|
|
1208
|
+
return {
|
|
1209
|
+
kind: "miss",
|
|
1210
|
+
transient: true,
|
|
1211
|
+
error: error instanceof Error ? error : new Error(String(error))
|
|
1212
|
+
};
|
|
1213
|
+
} finally {
|
|
1214
|
+
clearTimeout(timeout);
|
|
1215
|
+
}
|
|
1216
|
+
}
|
|
1217
|
+
async function publishedVersionSupportsPin(version, fallbackRegistryUrl, retry = {}) {
|
|
1167
1218
|
const registryUrls = [
|
|
1168
1219
|
"https://registry.npmjs.org/",
|
|
1169
1220
|
...fallbackRegistryUrl ? [fallbackRegistryUrl] : []
|
|
1170
1221
|
];
|
|
1222
|
+
const maxRetries = _nullishCoalesce(retry.maxRetries, () => ( _chunkMLABYI4Mjs.DEFAULT_MAX_RETRIES));
|
|
1223
|
+
const backoffMs = _nullishCoalesce(retry.backoffMs, () => ( _chunkMLABYI4Mjs.defaultRetryBackoffMs));
|
|
1171
1224
|
let lastError = null;
|
|
1172
|
-
for (
|
|
1173
|
-
|
|
1174
|
-
const
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
registryUrl.endsWith("/") ? registryUrl : `${registryUrl}/`
|
|
1180
|
-
),
|
|
1181
|
-
{
|
|
1182
|
-
headers: { accept: "application/json" },
|
|
1183
|
-
signal: controller.signal
|
|
1184
|
-
}
|
|
1185
|
-
);
|
|
1186
|
-
if (response.status === 404) return false;
|
|
1187
|
-
if (!response.ok) {
|
|
1188
|
-
lastError = new Error(
|
|
1189
|
-
`${registryUrl} returned HTTP ${response.status}`
|
|
1190
|
-
);
|
|
1191
|
-
continue;
|
|
1192
|
-
}
|
|
1193
|
-
const metadata = await response.json();
|
|
1194
|
-
return _optionalChain([metadata, 'access', _41 => _41.deepline, 'optionalAccess', _42 => _42.updatePreferences]) === 1;
|
|
1195
|
-
} catch (error) {
|
|
1196
|
-
lastError = error instanceof Error ? error : new Error(String(error));
|
|
1197
|
-
} finally {
|
|
1198
|
-
clearTimeout(timeout);
|
|
1225
|
+
for (let round = 1; ; round += 1) {
|
|
1226
|
+
let transientOnly = true;
|
|
1227
|
+
for (const registryUrl of registryUrls) {
|
|
1228
|
+
const read = await readPinMetadata(registryUrl, version);
|
|
1229
|
+
if (read.kind === "answer") return read.supportsPin;
|
|
1230
|
+
lastError = read.error;
|
|
1231
|
+
if (!read.transient) transientOnly = false;
|
|
1199
1232
|
}
|
|
1233
|
+
if (!transientOnly || round > maxRetries) break;
|
|
1234
|
+
await new Promise((resolve3) => setTimeout(resolve3, backoffMs(round)));
|
|
1200
1235
|
}
|
|
1201
1236
|
throw _nullishCoalesce(lastError, () => ( new Error("No npm registry was available")));
|
|
1202
1237
|
}
|
|
1238
|
+
var PUBLISHED_LATEST_READ_TIMEOUT_MS = 5e3;
|
|
1239
|
+
async function readPublishedLatestVersion(registryUrl) {
|
|
1240
|
+
const controller = new AbortController();
|
|
1241
|
+
const timeout = setTimeout(
|
|
1242
|
+
() => controller.abort(),
|
|
1243
|
+
PUBLISHED_LATEST_READ_TIMEOUT_MS
|
|
1244
|
+
);
|
|
1245
|
+
try {
|
|
1246
|
+
const response = await fetch(
|
|
1247
|
+
new URL(
|
|
1248
|
+
"deepline/latest",
|
|
1249
|
+
registryUrl.endsWith("/") ? registryUrl : `${registryUrl}/`
|
|
1250
|
+
),
|
|
1251
|
+
{ headers: { accept: "application/json" }, signal: controller.signal }
|
|
1252
|
+
);
|
|
1253
|
+
if (!response.ok) return null;
|
|
1254
|
+
const metadata = await response.json();
|
|
1255
|
+
return typeof _optionalChain([metadata, 'optionalAccess', _43 => _43.version]) === "string" && parseSemver(metadata.version) ? metadata.version : null;
|
|
1256
|
+
} catch (e17) {
|
|
1257
|
+
return null;
|
|
1258
|
+
} finally {
|
|
1259
|
+
clearTimeout(timeout);
|
|
1260
|
+
}
|
|
1261
|
+
}
|
|
1262
|
+
async function resolveInstalledVersionIfLatest(plan) {
|
|
1263
|
+
if (plan.kind !== "npm-global" && plan.kind !== "python-sidecar") {
|
|
1264
|
+
return null;
|
|
1265
|
+
}
|
|
1266
|
+
if (autoUpdatePackageSpec(plan) !== "deepline@latest") return null;
|
|
1267
|
+
let installedVersion = "";
|
|
1268
|
+
try {
|
|
1269
|
+
installedVersion = installedUpdateVersion(resolveUpdateInstallation(plan));
|
|
1270
|
+
} catch (e18) {
|
|
1271
|
+
return null;
|
|
1272
|
+
}
|
|
1273
|
+
if (!parseSemver(installedVersion)) return null;
|
|
1274
|
+
const registryUrls = plan.kind === "python-sidecar" ? [plan.registryUrl] : [
|
|
1275
|
+
_nullishCoalesce(plan.primaryRegistryUrl, () => ( "https://registry.npmjs.org/")),
|
|
1276
|
+
...plan.fallbackRegistryUrl ? [plan.fallbackRegistryUrl] : []
|
|
1277
|
+
];
|
|
1278
|
+
for (const registryUrl of registryUrls) {
|
|
1279
|
+
const latestVersion = await readPublishedLatestVersion(registryUrl);
|
|
1280
|
+
if (!latestVersion) continue;
|
|
1281
|
+
return compareUpdateVersions(installedVersion, latestVersion) === 0 ? installedVersion : null;
|
|
1282
|
+
}
|
|
1283
|
+
return null;
|
|
1284
|
+
}
|
|
1203
1285
|
async function runUpdateCommand(options, dependencies = {}) {
|
|
1204
|
-
const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => (
|
|
1286
|
+
const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => ( _chunkMLABYI4Mjs.autoDetectBaseUrl));
|
|
1205
1287
|
const resolvePlan = _nullishCoalesce(dependencies.resolvePlan, () => ( resolveUpdatePlan));
|
|
1206
1288
|
const runPlan = _nullishCoalesce(dependencies.runPlan, () => ( runUpdatePlan));
|
|
1207
1289
|
const syncSkills = _nullishCoalesce(dependencies.syncSkillsIfNeeded, () => ( (async () => {
|
|
1208
1290
|
const originalWrite = process.stdout.write.bind(process.stdout);
|
|
1209
1291
|
process.stdout.write = (() => true);
|
|
1210
1292
|
try {
|
|
1211
|
-
const exitCode = await
|
|
1293
|
+
const exitCode = await _chunkFM7LPUPAjs.runSkillsCommand.call(void 0, { json: true });
|
|
1212
1294
|
if (exitCode !== 0) {
|
|
1213
1295
|
throw new Error(
|
|
1214
1296
|
`Deepline skills update failed with exit ${exitCode}.`
|
|
@@ -1222,6 +1304,7 @@ async function runUpdateCommand(options, dependencies = {}) {
|
|
|
1222
1304
|
const setPinnedVersion = _nullishCoalesce(dependencies.setPinnedVersion, () => ( setCliPinnedVersion));
|
|
1223
1305
|
const clearPinnedVersion = _nullishCoalesce(dependencies.clearPinnedVersion, () => ( clearCliPinnedVersion));
|
|
1224
1306
|
const targetSupportsPin = _nullishCoalesce(dependencies.targetSupportsPin, () => ( publishedVersionSupportsPin));
|
|
1307
|
+
const resolveUpToDateVersion = _nullishCoalesce(dependencies.resolveUpToDateVersion, () => ( resolveInstalledVersionIfLatest));
|
|
1225
1308
|
const pinnedVersion = options.pin ? normalizePinnedVersion(options.pin) : null;
|
|
1226
1309
|
if (options.pin && !pinnedVersion) {
|
|
1227
1310
|
stderr.write(
|
|
@@ -1279,11 +1362,20 @@ async function runUpdateCommand(options, dependencies = {}) {
|
|
|
1279
1362
|
]
|
|
1280
1363
|
};
|
|
1281
1364
|
if (options.json && !options.executeWithJson) {
|
|
1282
|
-
|
|
1365
|
+
const upToDateVersion2 = pinnedVersion || options.force ? null : await resolveUpToDateVersion(plan);
|
|
1366
|
+
_chunkXLIHTJVMjs.printCommandEnvelope.call(void 0,
|
|
1367
|
+
{
|
|
1368
|
+
...plan,
|
|
1369
|
+
updated: false,
|
|
1370
|
+
...upToDateVersion2 ? { upToDate: true, version: upToDateVersion2 } : {},
|
|
1371
|
+
render
|
|
1372
|
+
},
|
|
1373
|
+
{ json: true }
|
|
1374
|
+
);
|
|
1283
1375
|
return 0;
|
|
1284
1376
|
}
|
|
1285
1377
|
if (options.printCommand) {
|
|
1286
|
-
|
|
1378
|
+
_chunkXLIHTJVMjs.printCommandEnvelope.call(void 0,
|
|
1287
1379
|
{
|
|
1288
1380
|
...plan,
|
|
1289
1381
|
render: {
|
|
@@ -1296,14 +1388,22 @@ async function runUpdateCommand(options, dependencies = {}) {
|
|
|
1296
1388
|
return 0;
|
|
1297
1389
|
}
|
|
1298
1390
|
if (plan.kind === "source" || plan.kind === "homebrew") {
|
|
1299
|
-
|
|
1391
|
+
_chunkXLIHTJVMjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: false });
|
|
1300
1392
|
return 0;
|
|
1301
1393
|
}
|
|
1302
|
-
|
|
1394
|
+
const upToDateVersion = pinnedVersion || options.force ? null : await resolveUpToDateVersion(plan);
|
|
1395
|
+
if (upToDateVersion) {
|
|
1396
|
+
stderr.write(
|
|
1397
|
+
`Deepline CLI is already up to date (${upToDateVersion}). Run deepline update --force to reinstall it.
|
|
1398
|
+
`
|
|
1399
|
+
);
|
|
1400
|
+
} else {
|
|
1401
|
+
stderr.write(`Updating Deepline SDK/CLI with: ${plan.manualCommand}
|
|
1303
1402
|
`);
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1403
|
+
const updateExitCode = await runPlan(plan);
|
|
1404
|
+
if (updateExitCode !== 0) {
|
|
1405
|
+
return updateExitCode;
|
|
1406
|
+
}
|
|
1307
1407
|
}
|
|
1308
1408
|
if (pinnedVersion) {
|
|
1309
1409
|
setPinnedVersion(pinnedVersion);
|
|
@@ -1326,10 +1426,12 @@ To retry with full installer output, run: deepline skills install
|
|
|
1326
1426
|
);
|
|
1327
1427
|
}
|
|
1328
1428
|
if (options.executeWithJson && options.json) {
|
|
1329
|
-
|
|
1429
|
+
_chunkXLIHTJVMjs.printCommandEnvelope.call(void 0,
|
|
1330
1430
|
{
|
|
1331
1431
|
ok: true,
|
|
1332
|
-
pinnedVersion
|
|
1432
|
+
pinnedVersion,
|
|
1433
|
+
updated: !upToDateVersion,
|
|
1434
|
+
...upToDateVersion ? { version: upToDateVersion } : {}
|
|
1333
1435
|
},
|
|
1334
1436
|
{ json: true }
|
|
1335
1437
|
);
|
|
@@ -1341,7 +1443,9 @@ function registerUpdateCommand(program) {
|
|
|
1341
1443
|
"after",
|
|
1342
1444
|
`
|
|
1343
1445
|
Notes:
|
|
1344
|
-
For the published npm CLI, this runs npm install -g deepline@latest
|
|
1446
|
+
For the published npm CLI, this runs npm install -g deepline@latest, unless
|
|
1447
|
+
the installed version is already the latest published one. Use --force to
|
|
1448
|
+
reinstall anyway.
|
|
1345
1449
|
Automatic updates are enabled by default and run before normal commands.
|
|
1346
1450
|
Configure automatic updates with deepline settings autoupdate.
|
|
1347
1451
|
For a Homebrew installation, this prints brew upgrade deepline; Homebrew
|
|
@@ -1354,9 +1458,12 @@ Notes:
|
|
|
1354
1458
|
Examples:
|
|
1355
1459
|
deepline update
|
|
1356
1460
|
deepline update --print-command
|
|
1357
|
-
deepline update
|
|
1461
|
+
deepline update --force
|
|
1358
1462
|
`
|
|
1359
|
-
).option("--print-command", "Print the update command without running it").option("--json", "Emit the resolved update plan as JSON").
|
|
1463
|
+
).option("--print-command", "Print the update command without running it").option("--json", "Emit the resolved update plan as JSON").option(
|
|
1464
|
+
"--force",
|
|
1465
|
+
"Reinstall even when the installed CLI is already the latest version"
|
|
1466
|
+
).action(async (options) => {
|
|
1360
1467
|
process.exitCode = await runUpdateCommand(options);
|
|
1361
1468
|
});
|
|
1362
1469
|
}
|
|
@@ -1373,4 +1480,5 @@ Examples:
|
|
|
1373
1480
|
|
|
1374
1481
|
|
|
1375
1482
|
|
|
1376
|
-
|
|
1483
|
+
|
|
1484
|
+
exports.readCliUpdatePreferences = readCliUpdatePreferences; exports.setCliAutoUpdateEnabled = setCliAutoUpdateEnabled; exports.shouldRunCliAutoUpdate = shouldRunCliAutoUpdate; exports.canAutomaticallyApplyUpdatePlan = canAutomaticallyApplyUpdatePlan; exports.resolveUpdatePlan = resolveUpdatePlan; exports.runAutomaticUpdatePlan = runAutomaticUpdatePlan; exports.compareUpdateVersions = compareUpdateVersions; exports.runUpdatePlan = runUpdatePlan; exports.publishedVersionSupportsPin = publishedVersionSupportsPin; exports.resolveInstalledVersionIfLatest = resolveInstalledVersionIfLatest; exports.runUpdateCommand = runUpdateCommand; exports.registerUpdateCommand = registerUpdateCommand;
|
|
@@ -1,29 +1,29 @@
|
|
|
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
|
|
3
|
+
var _chunk7GEMELKIjs = require('./chunk-7GEMELKI.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkDP2VH7COjs = require('./chunk-DP2VH7CO.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkIH6GDNKWjs = require('./chunk-IH6GDNKW.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkTFEXSHPMjs = require('./chunk-TFEXSHPM.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkJLGP5XAJjs = require('./chunk-JLGP5XAJ.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _chunkXLIHTJVMjs = require('./chunk-XLIHTJVM.js');
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
var
|
|
26
|
+
var _chunkMLABYI4Mjs = require('./chunk-MLABYI4M.js');
|
|
27
27
|
|
|
28
28
|
// src/cli/commands/describe.ts
|
|
29
29
|
var _fs = require('fs');
|
|
@@ -32,14 +32,14 @@ var _path = require('path');
|
|
|
32
32
|
// src/cli/doc-read-reporting.ts
|
|
33
33
|
var REPORT_TIMEOUT_MS = 1e3;
|
|
34
34
|
async function reportDocRead(docId) {
|
|
35
|
-
if (
|
|
35
|
+
if (_chunkXLIHTJVMjs.isFailureReportingDisabled.call(void 0, )) return;
|
|
36
36
|
try {
|
|
37
|
-
const baseUrl =
|
|
38
|
-
const apiKey =
|
|
37
|
+
const baseUrl = _chunkMLABYI4Mjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
38
|
+
const apiKey = _chunkMLABYI4Mjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
39
39
|
if (!apiKey) return;
|
|
40
40
|
await fetch(new URL("/api/v2/telemetry/doc-read", baseUrl), {
|
|
41
41
|
method: "POST",
|
|
42
|
-
headers:
|
|
42
|
+
headers: _chunkXLIHTJVMjs.failureReportHeaders.call(void 0, apiKey),
|
|
43
43
|
body: JSON.stringify({ doc_id: docId }),
|
|
44
44
|
signal: AbortSignal.timeout(REPORT_TIMEOUT_MS)
|
|
45
45
|
});
|
|
@@ -52,16 +52,16 @@ function nothingNamed(name) {
|
|
|
52
52
|
return `Nothing named "${name}". Search for it: deepline search ${JSON.stringify(name.replace(/[-_./]+/g, " "))}`;
|
|
53
53
|
}
|
|
54
54
|
function findNamed2(name, options) {
|
|
55
|
-
return
|
|
55
|
+
return _chunkIH6GDNKWjs.findNamed.call(void 0, name, options, _chunkIH6GDNKWjs.describeLookupsFor.call(void 0, new (0, _chunkJLGP5XAJjs.DeeplineClient)()));
|
|
56
56
|
}
|
|
57
57
|
async function describeAnything(name, options, onMissing) {
|
|
58
|
-
const client = new (0,
|
|
59
|
-
const lookups =
|
|
60
|
-
const outcome = await
|
|
58
|
+
const client = new (0, _chunkJLGP5XAJjs.DeeplineClient)();
|
|
59
|
+
const lookups = _chunkIH6GDNKWjs.describeLookupsFor.call(void 0, client);
|
|
60
|
+
const outcome = await _chunkIH6GDNKWjs.describeName.call(void 0, name, options, {
|
|
61
61
|
...lookups,
|
|
62
62
|
// `tools describe` has already fetched the tool for its compatibility check.
|
|
63
63
|
tool: async (toolName) => _nullishCoalesce(options.fetchedTool, () => ( lookups.tool(toolName))),
|
|
64
|
-
seedStarterScript:
|
|
64
|
+
seedStarterScript: _chunk7GEMELKIjs.seedToolListScript
|
|
65
65
|
});
|
|
66
66
|
if (outcome.status === "missing") {
|
|
67
67
|
if (onMissing) return onMissing();
|
|
@@ -90,18 +90,18 @@ function deliver(envelope, lines, { json, out }) {
|
|
|
90
90
|
` : text;
|
|
91
91
|
_fs.writeFileSync.call(void 0, path, content);
|
|
92
92
|
const bytes = Buffer.byteLength(content);
|
|
93
|
-
|
|
93
|
+
_chunkXLIHTJVMjs.printCommandEnvelope.call(void 0,
|
|
94
94
|
{ path, bytes },
|
|
95
95
|
{ json, text: `Wrote ${path} (${bytes} bytes)
|
|
96
96
|
` }
|
|
97
97
|
);
|
|
98
98
|
return 0;
|
|
99
99
|
}
|
|
100
|
-
|
|
100
|
+
_chunkXLIHTJVMjs.printCommandEnvelope.call(void 0, envelope, { json, text });
|
|
101
101
|
return 0;
|
|
102
102
|
}
|
|
103
103
|
function registerDescribeCommand(program) {
|
|
104
|
-
|
|
104
|
+
_chunkDP2VH7COjs.addDescribeOptions.call(void 0, program.command("describe <name>")).option("--web-url", "Print only a play's play page URL").description(
|
|
105
105
|
"Describe anything search returns: a tool, monitor type, or play."
|
|
106
106
|
).addHelpText(
|
|
107
107
|
"after",
|
|
@@ -114,7 +114,7 @@ What you can describe:
|
|
|
114
114
|
docs/skills/<name> prints that skill.
|
|
115
115
|
|
|
116
116
|
When a name is taken twice:
|
|
117
|
-
A play your
|
|
117
|
+
A play your org created is shown instead of a Deepline tool, monitor
|
|
118
118
|
type or prebuilt play with the same name, and the output says so.
|
|
119
119
|
Name it deepline/<name> to see the Deepline one (--prebuilt does the same).
|
|
120
120
|
|
|
@@ -142,7 +142,7 @@ Schema size and format:
|
|
|
142
142
|
by default; the output names them, and --verbose shows them.
|
|
143
143
|
--fields email,miss_reason shows only the fields you name, plus every
|
|
144
144
|
required input, and names the rest. Use it when you know what you need.
|
|
145
|
-
A schema over ${
|
|
145
|
+
A schema over ${_chunkTFEXSHPMjs.SCHEMA_LINE_LIMIT} lines is folded: deeper objects show only their field
|
|
146
146
|
names. A shape used more than once is printed once under Types.
|
|
147
147
|
--full-schema the normal output, with the schema not folded
|
|
148
148
|
--schema-only only the schema, not folded, and nothing else
|