deepline 0.3.552 → 0.3.554
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-HJUNW7T2.mjs} +8 -7
- package/dist/cli/auth-SP6SKZJZ.js +44 -0
- package/dist/cli/{billing-FQREA7UA.js → billing-4TSA5HEC.js} +297 -161
- package/dist/cli/{billing-54RHFEBI.mjs → billing-SJYRJAQ2.mjs} +197 -61
- package/dist/cli/{chunk-4MK42735.js → chunk-2HMN5H54.js} +215 -130
- package/dist/cli/{chunk-UBKA33KY.mjs → chunk-2MGZAI54.mjs} +17 -0
- package/dist/cli/{chunk-EOPEYCY7.mjs → chunk-2ORPFQUA.mjs} +18 -18
- package/dist/cli/{chunk-RQZQVFCJ.js → chunk-2OVHNHCF.js} +2 -2
- package/dist/cli/{chunk-QX7LFGJR.mjs → chunk-33WRQSQ2.mjs} +1874 -91
- package/dist/cli/{chunk-UPMRIVZB.js → chunk-3IKGZ4CG.js} +74 -13
- package/dist/cli/{chunk-EUPVF4SU.mjs → chunk-3Z4VFCXO.mjs} +8 -8
- package/dist/cli/{chunk-GKYAYLRI.js → chunk-4DOFGIEJ.js} +27 -31
- package/dist/cli/{chunk-4TALT2M3.mjs → chunk-52Q5KETX.mjs} +69 -3
- package/dist/cli/{chunk-RBEUVDZF.js → chunk-5CYZHOKI.js} +249 -107
- package/dist/cli/{chunk-LX35AXTN.mjs → chunk-5TYLSS4Q.mjs} +6 -6
- package/dist/cli/{chunk-IYSTRCLX.mjs → chunk-62AUAWQV.mjs} +4 -4
- package/dist/cli/{chunk-ZIAXDBXX.mjs → chunk-62HWJXST.mjs} +17 -21
- package/dist/cli/{chunk-QY3ZNU6Z.mjs → chunk-6EXOAT6T.mjs} +2 -2
- package/dist/cli/{chunk-EITMD3A5.js → chunk-6VLFQZK6.js} +8 -8
- package/dist/cli/{chunk-ADRC5I3R.js → chunk-7OWI736E.js} +30 -30
- package/dist/cli/{chunk-NURW5XH4.mjs → chunk-ASB47RXJ.mjs} +1 -1
- package/dist/cli/{chunk-PTVD2GVQ.mjs → chunk-B6HO2XWH.mjs} +13 -13
- package/dist/cli/{chunk-YJHE3O5M.mjs → chunk-BOZAP2EM.mjs} +141 -56
- package/dist/cli/chunk-BVXIGOBZ.js +32 -0
- package/dist/cli/{chunk-XDVT3GOM.js → chunk-CFJFUVX2.js} +18 -1
- package/dist/cli/{chunk-WE5HES3H.mjs → chunk-D6Z6POKE.mjs} +151 -43
- package/dist/cli/{chunk-AZQ264ID.mjs → chunk-DSKSFFK2.mjs} +1 -1
- package/dist/cli/{chunk-SHLFOPD6.js → chunk-DUBXUAAO.js} +5 -5
- package/dist/cli/{chunk-V436Z54K.js → chunk-E2G2DNAB.js} +3 -1
- package/dist/cli/{chunk-HO3XK3R7.js → chunk-E74KGKFZ.js} +8 -8
- package/dist/cli/{chunk-77AAAGVB.js → chunk-ECHKAC7M.js} +2 -2
- package/dist/cli/{chunk-KWSH5T7K.js → chunk-EN5NHCCQ.js} +21 -21
- package/dist/cli/{chunk-6RZOWL2V.mjs → chunk-F7CMRKSK.mjs} +1 -1
- package/dist/cli/{chunk-JWUAX6OP.js → chunk-FBAFX43W.js} +11 -11
- package/dist/cli/{chunk-AQWQ2BFX.mjs → chunk-FXQ3JKE3.mjs} +1 -1
- package/dist/cli/{chunk-QPKH23EC.mjs → chunk-GA2M3G3Y.mjs} +5 -5
- package/dist/cli/{chunk-G4O75EXF.js → chunk-GHT2NDL7.js} +18 -18
- package/dist/cli/{chunk-MF2GHZDO.js → chunk-GRZENGNE.js} +2 -2
- package/dist/cli/{chunk-4UUR4TCH.js → chunk-IVZKMJUK.js} +1875 -92
- package/dist/cli/{chunk-FTJLJCE5.mjs → chunk-KVBQY4ST.mjs} +3 -3
- package/dist/cli/{chunk-S5S355UY.mjs → chunk-KZHBDMGF.mjs} +12 -12
- package/dist/cli/{chunk-BBTKAASQ.js → chunk-LFQJW4S2.js} +42 -1
- package/dist/cli/{chunk-6ZORHRKB.mjs → chunk-LRZGS6RZ.mjs} +2 -0
- package/dist/cli/{chunk-2WFPHBR4.js → chunk-LY5MMXFF.js} +47 -29
- package/dist/cli/{chunk-BAIST2BR.js → chunk-M7STM3MZ.js} +36 -36
- package/dist/cli/{chunk-SL6MYJYM.js → chunk-MJTVX4QK.js} +35 -35
- package/dist/cli/{chunk-45PVGZST.js → chunk-OPTV7D2V.js} +508 -361
- package/dist/cli/{chunk-PFO3ISXA.js → chunk-OVEYWO4H.js} +174 -129
- package/dist/cli/{chunk-BGBJV26E.mjs → chunk-PC2FTUCP.mjs} +4 -4
- package/dist/cli/{chunk-WLN3SUIA.js → chunk-PQQMPUCZ.js} +3 -3
- package/dist/cli/{chunk-HYC4MKGK.mjs → chunk-Q7ACILL2.mjs} +5 -5
- package/dist/cli/{chunk-CBV7AKWM.js → chunk-R6DZ6NQ2.js} +5 -5
- package/dist/cli/{chunk-57VZVF5D.mjs → chunk-RBBTCYQB.mjs} +3 -3
- package/dist/cli/{chunk-F2LH7TGF.js → chunk-RTHMGSZX.js} +21 -21
- package/dist/cli/{chunk-YLTMXJFC.mjs → chunk-S6W6SJ6E.mjs} +158 -16
- package/dist/cli/chunk-STXDSVQZ.mjs +32 -0
- package/dist/cli/{chunk-WEHCBH5R.mjs → chunk-TGUQET3O.mjs} +67 -6
- package/dist/cli/{chunk-IHRKLXZN.js → chunk-TJ6HLN56.js} +5 -5
- package/dist/cli/{chunk-3FD5EQ62.js → chunk-TOO3YM5N.js} +6 -7
- package/dist/cli/{chunk-QILKGXYF.mjs → chunk-UBBYHB2B.mjs} +2 -2
- package/dist/cli/{chunk-6PRW5UBA.mjs → chunk-UC4BDZKI.mjs} +299 -69
- package/dist/cli/{chunk-634ZDA3F.js → chunk-UNNOZKRT.js} +1 -1
- package/dist/cli/{chunk-IDVVIXPJ.js → chunk-UOT7HPBH.js} +41 -41
- package/dist/cli/{chunk-6YCA5NKJ.js → chunk-UYCZFQYQ.js} +12 -12
- package/dist/cli/{chunk-7IKQKKNX.js → chunk-VIUUTEHY.js} +90 -24
- package/dist/cli/{chunk-Z5TSLLOW.mjs → chunk-VLO5NFH2.mjs} +63 -18
- package/dist/cli/{chunk-U7QRMBIY.mjs → chunk-VQ75KX7G.mjs} +5 -5
- package/dist/cli/{chunk-4NQF6KJ3.js → chunk-VV4XGZ24.js} +13 -13
- package/dist/cli/{chunk-FSIVF2SI.mjs → chunk-VZGLIK5U.mjs} +1 -1
- package/dist/cli/{chunk-S46HWQKO.js → chunk-W6CZDTIR.js} +69 -69
- package/dist/cli/{chunk-XVB7V4N7.js → chunk-WL7P32PI.js} +161 -53
- package/dist/cli/{chunk-DJ2JDK4O.mjs → chunk-XD3MFTHA.mjs} +1 -1
- package/dist/cli/{chunk-GGGAEVCX.mjs → chunk-XFZX6FNM.mjs} +40 -22
- package/dist/cli/{chunk-AWJPDPMA.mjs → chunk-XU6QNM4D.mjs} +1 -1
- package/dist/cli/{chunk-QAORXEY3.mjs → chunk-YCOGPOUX.mjs} +6 -7
- package/dist/cli/{chunk-VQALXEXO.js → chunk-YQKCH4R7.js} +348 -118
- package/dist/cli/{chunk-6O5HOODW.mjs → chunk-YY55NYAH.mjs} +207 -60
- package/dist/cli/{chunk-JL2OTMSG.mjs → chunk-Z3A2S3QM.mjs} +41 -0
- package/dist/cli/command-docs.js +3 -3
- package/dist/cli/command-docs.mjs +2 -2
- package/dist/cli/{concurrent-runs-help-Q4KPAUJX.mjs → concurrent-runs-help-O3Q5IPLF.mjs} +9 -8
- package/dist/cli/concurrent-runs-help-ZFRZWX5V.js +22 -0
- package/dist/cli/{csv-F5VAGX4K.js → csv-4ZQ2RATI.js} +16 -15
- package/dist/cli/{csv-2PTVDNO6.mjs → csv-Y3BFPEM6.mjs} +7 -6
- package/dist/cli/{db-IEDXAUF7.mjs → db-3JYY4JNN.mjs} +17 -17
- package/dist/cli/{db-Z3OIUFMM.js → db-VEIFS4M7.js} +45 -45
- package/dist/cli/describe-EVJ4MFVU.mjs +50 -0
- package/dist/cli/describe-FG625QPF.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 +7 -7
- package/dist/cli/describe-core.mjs +6 -6
- package/dist/cli/{executions-H6H5655J.js → executions-HPZXOOVX.js} +12 -12
- package/dist/cli/{executions-R3LP74QN.mjs → executions-PCXZKEHM.mjs} +10 -10
- package/dist/cli/{feedback-WL3MRVT5.mjs → feedback-Y6VKZNY6.mjs} +9 -8
- package/dist/cli/{feedback-VFOUR66B.js → feedback-ZKFHFVL6.js} +17 -16
- package/dist/cli/git-RUBMALLH.js +26 -0
- package/dist/cli/{git-YX2J4GCI.mjs → git-UMPR2QYC.mjs} +8 -7
- package/dist/cli/index.js +170 -158
- package/dist/cli/index.mjs +60 -48
- package/dist/cli/{integrations-E2JZYKHS.js → integrations-3GQCTRTF.js} +23 -27
- package/dist/cli/{integrations-5ZK5KLVP.mjs → integrations-V3TM6XAB.mjs} +15 -19
- package/dist/cli/{legacy-noops-SMN3GSXY.mjs → legacy-noops-JZBUD7ZE.mjs} +9 -8
- package/dist/cli/{legacy-noops-3VW4IJTH.js → legacy-noops-VYCO7NGW.js} +12 -11
- package/dist/cli/{mcp-UQV2K4EW.js → mcp-4OIWTCE6.js} +121 -48
- package/dist/cli/{mcp-V6MGCYAG.mjs → mcp-PH4KZ76P.mjs} +100 -27
- package/dist/cli/{monitors-R3BBDCRC.js → monitors-E2A6VPBY.js} +221 -186
- package/dist/cli/{monitors-GGKS5W6M.mjs → monitors-SSMGIDGX.mjs} +58 -23
- package/dist/cli/org-SFDKSK5D.mjs +2289 -0
- package/dist/cli/org-WUDZGWBT.js +2289 -0
- package/dist/cli/outcomes-QT7LQBPK.mjs +2865 -0
- package/dist/cli/outcomes-Y7SZTLSL.js +2865 -0
- package/dist/cli/{play-MDWPR4XG.mjs → play-EK7KSFPL.mjs} +376 -106
- package/dist/cli/{play-2MVO27VO.js → play-GDNHCRRR.js} +1150 -880
- package/dist/cli/{providers-AKDYFZJZ.mjs → providers-FVZLRXAU.mjs} +10 -10
- package/dist/cli/{providers-2AACRUZH.js → providers-ZKOSECLV.js} +13 -13
- package/dist/cli/{quickstart-H6IV3PV3.js → quickstart-KSDKIXYD.js} +9 -8
- package/dist/cli/{quickstart-QDGRJFZY.mjs → quickstart-UJZ6PIQV.mjs} +7 -6
- package/dist/cli/{run-RTSQNGRD.mjs → run-E7MZ7P35.mjs} +35 -33
- package/dist/cli/{run-2634REDK.js → run-PD2BBG6S.js} +55 -53
- 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-TKSPTPHA.js +32 -0
- package/dist/cli/{search-6AOJ4XPP.mjs → search-VTFUFTOY.mjs} +11 -11
- package/dist/cli/{search-output-S5ODBL5E.js → search-output-G2AGDCOY.js} +13 -12
- package/dist/cli/{search-output-6ADMTOU5.mjs → search-output-PFVXQCWA.mjs} +10 -9
- package/dist/cli/{secrets-TFIFBFB3.mjs → secrets-7CIMEMX7.mjs} +11 -11
- package/dist/cli/{secrets-LHCIIHMT.js → secrets-BCOQ4U7U.js} +20 -20
- package/dist/cli/sessions-4CO556VD.js +23 -0
- package/dist/cli/{sessions-WHBVUHVW.mjs → sessions-IUCQZEF7.mjs} +9 -8
- package/dist/cli/{settings-EBONWL5C.mjs → settings-KZN62UQK.mjs} +16 -16
- package/dist/cli/{settings-CP4FVK2W.js → settings-REL4736M.js} +89 -89
- package/dist/cli/{setup-I5AZE3IU.mjs → setup-2P7OG3OU.mjs} +22 -24
- package/dist/cli/{setup-LFGHTNLQ.js → setup-2XIVBBCS.js} +62 -64
- package/dist/cli/skills-JYT5DEY6.js +37 -0
- package/dist/cli/{skills-W76AO5XE.mjs → skills-VIGNDJKI.mjs} +10 -9
- package/dist/cli/tools-NTVUQ2TG.js +57 -0
- package/dist/cli/{tools-7IJHGF6W.mjs → tools-W3QT5EJY.mjs} +24 -24
- package/dist/cli/{update-GFOPZTHY.mjs → update-GZVBVMY3.mjs} +14 -11
- package/dist/cli/update-TWJZPUZM.js +37 -0
- package/dist/cli/{views-D4NX4SBG.mjs → views-BOGEH424.mjs} +47 -49
- package/dist/cli/{views-BPL2TQJ4.js → views-TOLJNLSV.js} +62 -64
- package/dist/cli/{workflow-ZYNAUCKC.js → workflow-ENWFRK5M.js} +23 -23
- package/dist/cli/{workflow-YXP42FUI.mjs → workflow-VDG2FDQV.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 +163 -144
- 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/chunk-AID3OYVJ.js +0 -8
- package/dist/cli/chunk-OVDNJAJN.mjs +0 -8
- 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 _chunkECHKAC7Mjs = require('./chunk-ECHKAC7M.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkUOT7HPBHjs = require('./chunk-UOT7HPBH.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunk2HMN5H54js = require('./chunk-2HMN5H54.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkYQKCH4R7js = require('./chunk-YQKCH4R7.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
var _chunkVIUUTEHYjs = require('./chunk-VIUUTEHY.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 = _chunk2HMN5H54js.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 ? _chunkECHKAC7Mjs.readNpmVersion.call(void 0, env) : options.npmVersion;
|
|
565
|
+
const npmGlobalInstallFlags = _chunkECHKAC7Mjs.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()]) || _chunkVIUUTEHYjs.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 = _chunk2HMN5H54js.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(), _chunkVIUUTEHYjs.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: _chunkVIUUTEHYjs.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, () => ( _chunkVIUUTEHYjs.DEFAULT_MAX_RETRIES));
|
|
1223
|
+
const backoffMs = _nullishCoalesce(retry.backoffMs, () => ( _chunkVIUUTEHYjs.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, () => ( _chunkVIUUTEHYjs.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 _chunkUOT7HPBHjs.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
|
+
_chunkYQKCH4R7js.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
|
+
_chunkYQKCH4R7js.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
|
+
_chunkYQKCH4R7js.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
|
+
_chunkYQKCH4R7js.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,6 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
exampleInputFileLine,
|
|
3
|
+
exampleJsonInput
|
|
4
|
+
} from "./chunk-STXDSVQZ.mjs";
|
|
4
5
|
import {
|
|
5
6
|
cloneEditStarter
|
|
6
7
|
} from "./chunk-PSX3WHIH.mjs";
|
|
@@ -61,6 +62,7 @@ function schemaType(schema) {
|
|
|
61
62
|
type: schema.enum.map((value) => JSON.stringify(value)).join(" | ")
|
|
62
63
|
};
|
|
63
64
|
}
|
|
65
|
+
if (schema.const !== void 0) return { type: JSON.stringify(schema.const) };
|
|
64
66
|
const alternatives = [schema.anyOf, schema.oneOf].find(Array.isArray);
|
|
65
67
|
if (alternatives) {
|
|
66
68
|
const parts = alternatives.map((option) => schemaType(isRecord(option) ? option : {})).sort((a, b) => Number(a.type === "null") - Number(b.type === "null"));
|
|
@@ -589,24 +591,25 @@ function examples(described, options) {
|
|
|
589
591
|
const required = described.inputs.filter((field) => field.required);
|
|
590
592
|
const shown = options.verbose ? described.inputs : required.length ? required : described.inputs.slice(0, 1);
|
|
591
593
|
const inputSchema = runner.inputSchema;
|
|
592
|
-
let
|
|
594
|
+
let inputValue;
|
|
593
595
|
try {
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
])
|
|
604
|
-
)
|
|
596
|
+
inputValue = Object.fromEntries(
|
|
597
|
+
shown.map((field) => [
|
|
598
|
+
field.name,
|
|
599
|
+
exampleValue(
|
|
600
|
+
field,
|
|
601
|
+
propertySchema(inputSchema, field.name),
|
|
602
|
+
inputSchema
|
|
603
|
+
)
|
|
604
|
+
])
|
|
605
605
|
);
|
|
606
606
|
} catch (error) {
|
|
607
607
|
if (!(error instanceof InputFileExampleRequired)) throw error;
|
|
608
608
|
}
|
|
609
|
-
const
|
|
609
|
+
const input = inputValue && JSON.stringify(inputValue);
|
|
610
|
+
const jsonInput = input === void 0 ? void 0 : exampleJsonInput(input, options.platform);
|
|
611
|
+
const inputArgument = jsonInput?.argument ?? "--input-file input.json";
|
|
612
|
+
const inputFile = jsonInput?.file ? { inputFile: jsonInput.file } : {};
|
|
610
613
|
const inputExpression = input ?? "input";
|
|
611
614
|
const read = options.verbose ? described.outputs : described.outputs.filter((field) => !field.secondary).slice(0, 1);
|
|
612
615
|
const reads = (expression) => read.flatMap((field) => {
|
|
@@ -628,6 +631,8 @@ function examples(described, options) {
|
|
|
628
631
|
const readNames = returnedNames((field) => field.read);
|
|
629
632
|
return {
|
|
630
633
|
cli: `deepline run ${runner.toolId} ${inputArgument}`,
|
|
634
|
+
...inputValue ? { input: inputValue } : {},
|
|
635
|
+
...inputFile,
|
|
631
636
|
play: playFunction(
|
|
632
637
|
[
|
|
633
638
|
"const result = await deepline.tools.execute({",
|
|
@@ -645,6 +650,8 @@ function examples(described, options) {
|
|
|
645
650
|
}
|
|
646
651
|
return {
|
|
647
652
|
cli: `deepline run ${runner.reference} ${inputArgument}`,
|
|
653
|
+
...inputValue ? { input: inputValue } : {},
|
|
654
|
+
...inputFile,
|
|
648
655
|
play: playFunction(
|
|
649
656
|
[
|
|
650
657
|
`const output = await deepline.runPlay('${safeIdentifier(runner.reference.replace(/^.*\//, ""))}', '${runner.reference}', ${inputExpression});`,
|
|
@@ -679,7 +686,7 @@ function discoveryAuthLines(auth) {
|
|
|
679
686
|
]);
|
|
680
687
|
}
|
|
681
688
|
function describedLines(described, view) {
|
|
682
|
-
const { cli, play } = examples(described, view);
|
|
689
|
+
const { cli, play, inputFile } = examples(described, view);
|
|
683
690
|
const explanation = EXPLANATIONS[described.runner.via];
|
|
684
691
|
const indented = (text) => text.split("\n").map((line) => ` ${line}`);
|
|
685
692
|
const section = (lines) => lines.length ? ["", ...lines] : [];
|
|
@@ -692,7 +699,7 @@ function describedLines(described, view) {
|
|
|
692
699
|
...described.rateLimit ? [`Rate limit: ${described.rateLimit}`] : [],
|
|
693
700
|
...described.toolUsage?.effect ? [`Effect: ${described.toolUsage.effect}`] : [],
|
|
694
701
|
...described.auth ? discoveryAuthLines(described.auth) : [],
|
|
695
|
-
...!described.auth && described.credentialStatus === "requires_connection" ? ["Connection: Provider credentials are missing in this
|
|
702
|
+
...!described.auth && described.credentialStatus === "requires_connection" ? ["Connection: Provider credentials are missing in this org."] : [],
|
|
696
703
|
...described.byok ? byokLines(described.byok) : [],
|
|
697
704
|
...described.connectCommand ? [`Get a shareable link: ${described.connectCommand}`] : [],
|
|
698
705
|
...featureLines(described.id, described.features ?? []),
|
|
@@ -709,6 +716,7 @@ function describedLines(described, view) {
|
|
|
709
716
|
...section(
|
|
710
717
|
view.cli ? [
|
|
711
718
|
"Run from the CLI:",
|
|
719
|
+
...inputFile ? indented(exampleInputFileLine(inputFile)) : [],
|
|
712
720
|
...indented(cli),
|
|
713
721
|
...view.explain ? indented(explanation.cli) : []
|
|
714
722
|
] : []
|
|
@@ -761,17 +769,17 @@ function describedJson(described, view) {
|
|
|
761
769
|
["rowOutputs", described.rowOutputs, false]
|
|
762
770
|
];
|
|
763
771
|
const hidden = view.secondary ? [] : sections.flatMap(
|
|
764
|
-
([, fields,
|
|
772
|
+
([, fields, input2]) => (fields ?? []).filter((field) => field.secondary && !(input2 && field.required)).map((field) => field.name)
|
|
765
773
|
);
|
|
766
774
|
const shapes = namedShapes(sections.flatMap(([, fields]) => fields ?? []));
|
|
767
775
|
const used = /* @__PURE__ */ new Set();
|
|
768
776
|
const blocks = Object.fromEntries(
|
|
769
777
|
sections.flatMap(
|
|
770
|
-
([key, fields,
|
|
778
|
+
([key, fields, input2]) => fields?.length ? [
|
|
771
779
|
[
|
|
772
780
|
key,
|
|
773
781
|
jsonFields(fields, {
|
|
774
|
-
input,
|
|
782
|
+
input: input2,
|
|
775
783
|
secondary: view.secondary,
|
|
776
784
|
shapes,
|
|
777
785
|
used
|
|
@@ -792,7 +800,9 @@ function describedJson(described, view) {
|
|
|
792
800
|
})
|
|
793
801
|
};
|
|
794
802
|
}
|
|
795
|
-
const { cli, play } = examples(described, {
|
|
803
|
+
const { cli, play, input, inputFile } = examples(described, {
|
|
804
|
+
verbose: view.verbose
|
|
805
|
+
});
|
|
796
806
|
return {
|
|
797
807
|
kind: described.kind,
|
|
798
808
|
id: described.id,
|
|
@@ -811,9 +821,17 @@ function describedJson(described, view) {
|
|
|
811
821
|
...described.features?.length ? { features: described.features } : {},
|
|
812
822
|
...described.guidance.length ? { guidance: described.guidance } : {},
|
|
813
823
|
...blocks,
|
|
824
|
+
// The input that takes the CSV whose columns are rowInputs.
|
|
825
|
+
...described.csvInput ? { csvInput: described.csvInput } : {},
|
|
814
826
|
...used.size ? { types } : {},
|
|
815
827
|
...described.exclusive ? { exclusive: described.exclusive } : {},
|
|
816
|
-
run: {
|
|
828
|
+
run: {
|
|
829
|
+
cli,
|
|
830
|
+
...play ? { play } : {},
|
|
831
|
+
...input ? { input } : {},
|
|
832
|
+
// On Windows `cli` reads `input` from this file instead of inline.
|
|
833
|
+
...inputFile ? { inputFile: inputFile.path } : {}
|
|
834
|
+
},
|
|
817
835
|
...described.source ? { source: described.source } : {},
|
|
818
836
|
...hidden.length ? { hidden } : {}
|
|
819
837
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
traceCliSpan
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-F7CMRKSK.mjs";
|
|
4
4
|
import {
|
|
5
|
-
checkSdkCompatibility,
|
|
6
5
|
enforceSdkCompatibilityResponse,
|
|
7
|
-
flushDeferredSkillsSyncNotices
|
|
8
|
-
|
|
6
|
+
flushDeferredSkillsSyncNotices,
|
|
7
|
+
requireSdkCompatibility
|
|
8
|
+
} from "./chunk-BOZAP2EM.mjs";
|
|
9
9
|
|
|
10
10
|
// src/cli/play-run-admission.ts
|
|
11
11
|
function usesInlinePlayAdmission(command, args) {
|
|
@@ -22,15 +22,14 @@ async function checkPlayRunCompatibility(baseUrl, maintenancePolicy = "configure
|
|
|
22
22
|
const compatibility = await traceCliSpan(
|
|
23
23
|
"cli.sdk_compatibility",
|
|
24
24
|
{ baseUrl, command: "plays run" },
|
|
25
|
-
() =>
|
|
25
|
+
() => requireSdkCompatibility(baseUrl, {
|
|
26
26
|
command: "plays run",
|
|
27
27
|
persistCache: maintenancePolicy !== "off",
|
|
28
28
|
signal
|
|
29
29
|
})
|
|
30
30
|
);
|
|
31
31
|
signal?.throwIfAborted();
|
|
32
|
-
|
|
33
|
-
enforceSdkCompatibilityResponse(compatibility.response, {
|
|
32
|
+
enforceSdkCompatibilityResponse(compatibility, {
|
|
34
33
|
quietAdvisory: true
|
|
35
34
|
});
|
|
36
35
|
}
|