deepline 0.3.551 → 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 +130 -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 +124 -10
- 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 +66 -30
- 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 +11 -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-monitor-upstream-identity.ts +80 -13
- 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/tamradar-countries.ts +285 -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 +312 -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 +568 -26
- 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-runs-rollout.ts +14 -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 +92 -16
- 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 +300 -57
- 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 +298 -46
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-authority.ts +13 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-constants.ts +39 -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-rate-state.ts +32 -10
- 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/tool-result.ts +37 -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-E7BH4GMJ.mjs → auth-I3QAU4RV.mjs} +8 -7
- package/dist/cli/auth-MQCN7WGZ.js +44 -0
- package/dist/cli/{billing-OXKU462W.mjs → billing-3IC54OQQ.mjs} +202 -59
- package/dist/cli/{billing-DNQAZGX7.js → billing-YGFFVAIC.js} +302 -159
- package/dist/cli/{chunk-COGREZAO.js → chunk-2B5B5KAW.js} +210 -128
- package/dist/cli/{chunk-UBKA33KY.mjs → chunk-2MGZAI54.mjs} +17 -0
- package/dist/cli/{chunk-T2B5BVZE.js → chunk-3NTP2OSG.js} +13 -13
- package/dist/cli/{chunk-FOTGUFVK.mjs → chunk-45OAVGU6.mjs} +5 -5
- package/dist/cli/{chunk-54EEYLTF.js → chunk-4747TPLV.js} +3 -3
- package/dist/cli/{chunk-CLRAANWH.mjs → chunk-4BFTDNHU.mjs} +1 -1
- package/dist/cli/{chunk-BGBJV26E.mjs → chunk-4HYNMXXF.mjs} +4 -4
- package/dist/cli/{chunk-5S6PHKRV.mjs → chunk-4SMCFQ23.mjs} +1 -1
- package/dist/cli/{chunk-VWLHRZFG.mjs → chunk-55F6HNOY.mjs} +5 -5
- package/dist/cli/{chunk-LX35AXTN.mjs → chunk-5TYLSS4Q.mjs} +6 -6
- package/dist/cli/{chunk-VTGG2RT3.js → chunk-6NE3RRRY.js} +1 -1
- package/dist/cli/{chunk-EITMD3A5.js → chunk-6VLFQZK6.js} +8 -8
- package/dist/cli/{chunk-MNSTCJMX.mjs → chunk-72V4PDH5.mjs} +18 -18
- package/dist/cli/{chunk-ZCDKE4UH.js → chunk-74RES4DS.js} +5 -5
- package/dist/cli/{chunk-WKBHUB6R.js → chunk-7GEMELKI.js} +366 -320
- package/dist/cli/{chunk-C4CUZH57.js → chunk-7O6J6A7P.js} +1871 -92
- package/dist/cli/{chunk-7RSIFA72.js → chunk-7SERLBNR.js} +161 -53
- package/dist/cli/{chunk-3G6QZACZ.js → chunk-7YRJ5UC4.js} +21 -21
- package/dist/cli/{chunk-I4VKGNAQ.mjs → chunk-A7DLBE5K.mjs} +136 -54
- package/dist/cli/{chunk-GGB3JYCW.mjs → chunk-AGICYWGN.mjs} +299 -69
- package/dist/cli/{chunk-44KSACJW.mjs → chunk-AGIQDA2T.mjs} +12 -12
- package/dist/cli/{chunk-PACD5DGC.js → chunk-AGLR6QVN.js} +255 -109
- package/dist/cli/{chunk-NURW5XH4.mjs → chunk-ASB47RXJ.mjs} +1 -1
- package/dist/cli/{chunk-4OMAGJ6U.js → chunk-BVDKFS2T.js} +2 -2
- package/dist/cli/{chunk-LPJPCGT3.js → chunk-CACFJODG.js} +190 -134
- package/dist/cli/{chunk-GVYLCCKN.mjs → chunk-CAEBJOYU.mjs} +1 -1
- package/dist/cli/{chunk-XDVT3GOM.js → chunk-CFJFUVX2.js} +18 -1
- package/dist/cli/{chunk-POLUE7D5.js → chunk-DP2VH7CO.js} +12 -12
- package/dist/cli/{chunk-D6M5HFBB.mjs → chunk-DP64MD6U.mjs} +1 -1
- package/dist/cli/{chunk-W425ERWN.mjs → chunk-DZA7RFGL.mjs} +5 -5
- package/dist/cli/{chunk-R7J7CJPZ.js → chunk-E2G2DNAB.js} +4 -1
- package/dist/cli/{chunk-GGGAEVCX.mjs → chunk-E7WZOX2A.mjs} +22 -18
- package/dist/cli/{chunk-44I675YK.js → chunk-FM7LPUPA.js} +41 -41
- package/dist/cli/{chunk-2UXDHFSF.mjs → chunk-GAVZ4EOD.mjs} +1 -1
- package/dist/cli/{chunk-Z2FIOG3V.js → chunk-HEBO3XNZ.js} +27 -31
- package/dist/cli/{chunk-6PWJKMFQ.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-3KYBDAR3.js → chunk-IMX7J4DU.js} +8 -8
- package/dist/cli/{chunk-HEHVGEZV.mjs → chunk-INEMTYMT.mjs} +8 -8
- package/dist/cli/{chunk-5VVSEU67.js → chunk-IUOGII7D.js} +6 -7
- package/dist/cli/{chunk-MXGA6JFI.mjs → chunk-JJGWHITQ.mjs} +5 -5
- package/dist/cli/{chunk-QM6Y6S4E.js → chunk-JLGP5XAJ.js} +5 -5
- package/dist/cli/{chunk-V6SCP4B7.mjs → chunk-LFOERUQY.mjs} +69 -3
- package/dist/cli/{chunk-BBTKAASQ.js → chunk-LFQJW4S2.js} +42 -1
- package/dist/cli/{chunk-ZMNGZ6XS.mjs → chunk-LH5PZKER.mjs} +80 -24
- package/dist/cli/{chunk-MR5LTVHD.js → chunk-LRDHPOZW.js} +69 -69
- package/dist/cli/{chunk-5LUF4LAR.mjs → chunk-LRZGS6RZ.mjs} +3 -0
- package/dist/cli/{chunk-SL6MYJYM.js → chunk-MJTVX4QK.js} +35 -35
- package/dist/cli/{chunk-UDXULACQ.js → chunk-MLABYI4M.js} +90 -24
- package/dist/cli/{chunk-S7IZWGUA.mjs → chunk-NDNHYONK.mjs} +17 -21
- package/dist/cli/{chunk-4D3WIZST.mjs → chunk-OTV2UUKW.mjs} +164 -18
- package/dist/cli/{chunk-XYE5XPGF.js → chunk-Q6Z6N3A7.js} +18 -18
- package/dist/cli/{chunk-7WQNWJQW.mjs → chunk-QG6JIWUL.mjs} +151 -43
- package/dist/cli/{chunk-3T65J5RG.mjs → chunk-QI5S5HWB.mjs} +2 -2
- package/dist/cli/{chunk-CBV7AKWM.js → chunk-R6DZ6NQ2.js} +5 -5
- package/dist/cli/{chunk-PM7MO62Y.mjs → chunk-RMNOZKRI.mjs} +3 -3
- package/dist/cli/{chunk-NMWGZD6Y.js → chunk-RTV4RF7N.js} +36 -36
- package/dist/cli/{chunk-CQ6JYQSW.js → chunk-SBH4CKPN.js} +11 -11
- package/dist/cli/{chunk-BIIJATTX.mjs → chunk-SG3LUONJ.mjs} +3 -3
- package/dist/cli/{chunk-2WFPHBR4.js → chunk-TFEXSHPM.js} +22 -18
- package/dist/cli/{chunk-5IL7SC45.mjs → chunk-TN4TY6TT.mjs} +6 -7
- package/dist/cli/{chunk-WEHCBH5R.mjs → chunk-UEVKMZLR.mjs} +54 -3
- package/dist/cli/{chunk-RE5MJBEV.mjs → chunk-UVQJYV76.mjs} +2 -2
- package/dist/cli/{chunk-FSIVF2SI.mjs → chunk-VZGLIK5U.mjs} +1 -1
- package/dist/cli/{chunk-W2ZWQUHT.js → chunk-WOCHZCUJ.js} +2 -2
- package/dist/cli/{chunk-ZDQFBJPO.js → chunk-XLIHTJVM.js} +348 -118
- package/dist/cli/{chunk-2ZYRBMQM.js → chunk-Y6SP3JMI.js} +22 -22
- package/dist/cli/{chunk-PPSDCN6C.js → chunk-YUA6HA6D.js} +2 -2
- package/dist/cli/{chunk-JL2OTMSG.mjs → chunk-Z3A2S3QM.mjs} +41 -0
- package/dist/cli/{chunk-E64HFB4L.mjs → chunk-Z6XPSHKM.mjs} +87 -41
- package/dist/cli/{chunk-7DOQ3OEX.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-C6L6I5OR.mjs → concurrent-runs-help-DNV2X5AZ.mjs} +9 -8
- package/dist/cli/{csv-QMF4FWE7.js → csv-SA6ELJY6.js} +16 -15
- package/dist/cli/{csv-SYSDXFEM.mjs → csv-ZXZGHWOM.mjs} +7 -6
- package/dist/cli/{db-Q7HURWRZ.mjs → db-A54SP6AD.mjs} +16 -16
- package/dist/cli/{db-YSHPPA4H.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-G7U3VUXN.mjs → executions-HL2M2DFU.mjs} +10 -10
- package/dist/cli/{executions-MWBC5TAW.js → executions-TLFZRHBJ.js} +12 -12
- package/dist/cli/{feedback-SD55OY6H.js → feedback-5UEX5UZK.js} +17 -16
- package/dist/cli/{feedback-GMHIFLBJ.mjs → feedback-QMBTNXVG.mjs} +9 -8
- package/dist/cli/git-4JWOOHBG.js +26 -0
- package/dist/cli/{git-HPE45OPD.mjs → git-LKGXVIVC.mjs} +8 -7
- package/dist/cli/index.js +170 -158
- package/dist/cli/index.mjs +60 -48
- package/dist/cli/{integrations-HFKVBY6G.js → integrations-6RUTLMN7.js} +23 -27
- package/dist/cli/{integrations-2W4MGIQR.mjs → integrations-FGGRVUJ7.mjs} +15 -19
- package/dist/cli/{legacy-noops-SXVNDEXN.js → legacy-noops-J3Z7QRWZ.js} +12 -11
- package/dist/cli/{legacy-noops-GZYKNU2Z.mjs → legacy-noops-YIPRMVXZ.mjs} +9 -8
- package/dist/cli/{mcp-PJRHQHHU.js → mcp-6LWFP7RW.js} +121 -48
- package/dist/cli/{mcp-BWA6KULG.mjs → mcp-CHDYFO7F.mjs} +100 -27
- package/dist/cli/{monitors-K2WSI6CR.js → monitors-STM6A7OU.js} +221 -186
- package/dist/cli/{monitors-SYQKCATO.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-SZXY2F2S.js → play-SM4CW2GS.js} +1116 -846
- package/dist/cli/{play-TTMABJEI.mjs → play-SN5YWLS7.mjs} +375 -105
- package/dist/cli/{providers-GQIOMRQO.mjs → providers-WZ4YBR5Y.mjs} +10 -10
- package/dist/cli/{providers-YDHCTZAF.js → providers-WZARYMCF.js} +13 -13
- package/dist/cli/{quickstart-PHSSMKCA.mjs → quickstart-2575BNKA.mjs} +7 -6
- package/dist/cli/{quickstart-BNYOXQXG.js → quickstart-PS4YHQJ6.js} +9 -8
- package/dist/cli/{run-GFIAZXVL.js → run-FLZ6OTM7.js} +51 -51
- package/dist/cli/{run-74C3C75C.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-3SWUB7KX.mjs → search-HLPPKQEO.mjs} +11 -11
- package/dist/cli/search-JJWVHR3N.js +32 -0
- package/dist/cli/{search-output-K2SWHVHQ.mjs → search-output-PDAXNOGP.mjs} +9 -8
- package/dist/cli/{search-output-6JF3S4TP.js → search-output-RXJLU36B.js} +12 -11
- package/dist/cli/{secrets-2M4XWEKE.mjs → secrets-CGELYQ3H.mjs} +11 -11
- package/dist/cli/{secrets-2SAKLH2H.js → secrets-QJNG7G2Y.js} +20 -20
- package/dist/cli/sessions-DHTBT2GN.js +23 -0
- package/dist/cli/{sessions-A64BCXTO.mjs → sessions-ELMWVR4M.mjs} +9 -8
- package/dist/cli/{settings-HV64WIJF.js → settings-44I44P5F.js} +89 -89
- package/dist/cli/{settings-SVGEC3FI.mjs → settings-RR3LZXL7.mjs} +16 -16
- package/dist/cli/{setup-EDC3NEJ3.mjs → setup-KGWRWH4B.mjs} +20 -19
- package/dist/cli/{setup-FHXOLQGQ.js → setup-KTEYOCJO.js} +60 -59
- package/dist/cli/skills-EPZPEXI2.js +37 -0
- package/dist/cli/{skills-3HGHZMXB.mjs → skills-FPRID2I5.mjs} +10 -9
- package/dist/cli/tools-IGQQ5TML.js +57 -0
- package/dist/cli/{tools-P2QS6A6Q.mjs → tools-PI4WMDLY.mjs} +23 -23
- package/dist/cli/update-4RNCVYGE.js +37 -0
- package/dist/cli/{update-552BYQM4.mjs → update-VJOJAZ7B.mjs} +14 -11
- package/dist/cli/{views-PA25NAE3.js → views-NTUOLNQU.js} +62 -64
- package/dist/cli/{views-LD5HXJYY.mjs → views-OVPSINZO.mjs} +47 -49
- package/dist/cli/{workflow-FIDBUQV6.js → workflow-2UDYDM6F.js} +23 -23
- package/dist/cli/{workflow-LDYFGBYP.mjs → workflow-7OEFNXZC.mjs} +13 -13
- package/dist/{client-DuDFiJDU.d.mts → client-B8f7RNF8.d.mts} +1 -1
- package/dist/{client-t9HZAkFD.d.ts → client-C5TgXmJQ.d.ts} +1 -1
- package/dist/{client-core-DydMQOft.d.mts → client-core-SLLGBTht.d.mts} +285 -23
- package/dist/{client-core-CJRzLanv.d.ts → client-core-p0sOxnkl.d.ts} +285 -23
- package/dist/{compiler-manifest-BqwVrOri.d.mts → compiler-manifest-D_zZEh9Q.d.mts} +70 -5
- package/dist/{compiler-manifest-BqwVrOri.d.ts → 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 +162 -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-B4PI7GVY.js +0 -43
- package/dist/cli/concurrent-runs-help-JEFQZTJI.js +0 -21
- package/dist/cli/describe-PXTSBJTL.js +0 -50
- package/dist/cli/describe-YGMQBV44.mjs +0 -50
- package/dist/cli/git-I3JV7IGH.js +0 -25
- package/dist/cli/org-5KD7X7IA.mjs +0 -1282
- package/dist/cli/org-YQ2CR32B.js +0 -1282
- package/dist/cli/run-identity-G257GQED.js +0 -25
- package/dist/cli/search-2RRRF4LW.js +0 -32
- package/dist/cli/sessions-SBH27JNW.js +0 -22
- package/dist/cli/skills-Y3SRLOYD.js +0 -36
- package/dist/cli/tools-OFYPUPUV.js +0 -57
- package/dist/cli/update-SOUSCLB7.js +0 -34
|
@@ -1,9 +1,9 @@
|
|
|
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
|
-
var
|
|
3
|
+
var _chunk4747TPLVjs = require('./chunk-4747TPLV.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkXLIHTJVMjs = require('./chunk-XLIHTJVM.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -14,17 +14,24 @@ var _chunkZDQFBJPOjs = require('./chunk-ZDQFBJPO.js');
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var _chunkUDXULACQjs = require('./chunk-UDXULACQ.js');
|
|
18
17
|
|
|
19
18
|
|
|
20
19
|
|
|
21
20
|
|
|
21
|
+
var _chunkMLABYI4Mjs = require('./chunk-MLABYI4M.js');
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
var _chunkPACD5DGCjs = require('./chunk-PACD5DGC.js');
|
|
25
24
|
|
|
26
25
|
|
|
27
|
-
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
var _chunkAGLR6QVNjs = require('./chunk-AGLR6QVN.js');
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
var _chunkLFQJW4S2js = require('./chunk-LFQJW4S2.js');
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
var _chunk6NE3RRRYjs = require('./chunk-6NE3RRRY.js');
|
|
28
35
|
|
|
29
36
|
// src/compat.ts
|
|
30
37
|
var _crypto = require('crypto');
|
|
@@ -59,7 +66,7 @@ function shouldSkipCompatibilityCheck() {
|
|
|
59
66
|
return value === "1" || value === "true" || value === "yes";
|
|
60
67
|
}
|
|
61
68
|
function sdkCompatibilityCachePath(baseUrl, homeDir = _optionalChain([process, 'access', _7 => _7.env, 'access', _8 => _8.HOME, 'optionalAccess', _9 => _9.trim, 'call', _10 => _10()]) || _os.homedir.call(void 0, )) {
|
|
62
|
-
return _path.join.call(void 0,
|
|
69
|
+
return _path.join.call(void 0, _chunkMLABYI4Mjs.sdkCliStateDirPath.call(void 0, baseUrl, homeDir), "compat-cache.json");
|
|
63
70
|
}
|
|
64
71
|
function legacySdkCompatibilityCachePath(homeDir = _optionalChain([process, 'access', _11 => _11.env, 'access', _12 => _12.HOME, 'optionalAccess', _13 => _13.trim, 'call', _14 => _14()]) || _os.homedir.call(void 0, )) {
|
|
65
72
|
return _path.join.call(void 0, homeDir, ".cache", "deepline", "sdk-compat-cache.json");
|
|
@@ -67,9 +74,9 @@ function legacySdkCompatibilityCachePath(homeDir = _optionalChain([process, 'acc
|
|
|
67
74
|
function compatibilityCacheKey(baseUrl, command, skillsVersion) {
|
|
68
75
|
return JSON.stringify({
|
|
69
76
|
baseUrl: baseUrl.replace(/\/$/, ""),
|
|
70
|
-
version:
|
|
71
|
-
apiContract:
|
|
72
|
-
apiMajor:
|
|
77
|
+
version: _chunkAGLR6QVNjs.SDK_VERSION,
|
|
78
|
+
apiContract: _chunkAGLR6QVNjs.SDK_API_CONTRACT,
|
|
79
|
+
apiMajor: _chunkAGLR6QVNjs.SDK_API_MAJOR,
|
|
73
80
|
command: _optionalChain([command, 'optionalAccess', _15 => _15.trim, 'call', _16 => _16()]) || null,
|
|
74
81
|
skillsVersion: _nullishCoalesce(skillsVersion, () => ( null))
|
|
75
82
|
});
|
|
@@ -77,8 +84,8 @@ function compatibilityCacheKey(baseUrl, command, skillsVersion) {
|
|
|
77
84
|
function legacyCompatibilityCacheKey(baseUrl, command) {
|
|
78
85
|
return JSON.stringify({
|
|
79
86
|
baseUrl: baseUrl.replace(/\/$/, ""),
|
|
80
|
-
version:
|
|
81
|
-
apiContract:
|
|
87
|
+
version: _chunkAGLR6QVNjs.SDK_VERSION,
|
|
88
|
+
apiContract: _chunkAGLR6QVNjs.SDK_API_CONTRACT,
|
|
82
89
|
command: _optionalChain([command, 'optionalAccess', _17 => _17.trim, 'call', _18 => _18()]) || null
|
|
83
90
|
});
|
|
84
91
|
}
|
|
@@ -103,7 +110,7 @@ function isSavedWithin(savedAt, windowMs, now) {
|
|
|
103
110
|
}
|
|
104
111
|
var UPDATE_ADVISORY_INTERVAL_MS = 24 * 60 * 60 * 1e3;
|
|
105
112
|
function claimUpdateAdvisory(baseUrl, now = Date.now()) {
|
|
106
|
-
const path = _path.join.call(void 0,
|
|
113
|
+
const path = _path.join.call(void 0, _chunkMLABYI4Mjs.sdkCliStateDirPath.call(void 0, baseUrl), "update-advisory.json");
|
|
107
114
|
try {
|
|
108
115
|
const { shownAt } = JSON.parse(_fs.readFileSync.call(void 0, path, "utf8"));
|
|
109
116
|
if (isSavedWithin(shownAt, UPDATE_ADVISORY_INTERVAL_MS, now)) return false;
|
|
@@ -176,21 +183,19 @@ function writeCachedCompatibility(baseUrl, command, skillsVersion, response) {
|
|
|
176
183
|
} catch (e6) {
|
|
177
184
|
}
|
|
178
185
|
}
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
186
|
+
function asError(error) {
|
|
187
|
+
return error instanceof Error ? error : new Error(String(error));
|
|
188
|
+
}
|
|
189
|
+
async function attemptSdkCompatibility(baseUrl, options, timeoutMs) {
|
|
183
190
|
const controller = new AbortController();
|
|
184
191
|
const abortFromCaller = () => controller.abort(_optionalChain([options, 'access', _27 => _27.signal, 'optionalAccess', _28 => _28.reason]));
|
|
185
192
|
if (_optionalChain([options, 'access', _29 => _29.signal, 'optionalAccess', _30 => _30.aborted])) abortFromCaller();
|
|
186
|
-
else
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
_nullishCoalesce(options.timeoutMs, () => ( CHECK_TIMEOUT_MS))
|
|
190
|
-
);
|
|
193
|
+
else
|
|
194
|
+
_optionalChain([options, 'access', _31 => _31.signal, 'optionalAccess', _32 => _32.addEventListener, 'call', _33 => _33("abort", abortFromCaller, { once: true })]);
|
|
195
|
+
const timeout = setTimeout(() => controller.abort(), timeoutMs);
|
|
191
196
|
try {
|
|
192
197
|
const url = new URL("/api/v2/sdk/compat", baseUrl);
|
|
193
|
-
url.searchParams.set("version",
|
|
198
|
+
url.searchParams.set("version", _chunkAGLR6QVNjs.SDK_VERSION);
|
|
194
199
|
if (_optionalChain([options, 'access', _34 => _34.command, 'optionalAccess', _35 => _35.trim, 'call', _36 => _36()])) {
|
|
195
200
|
url.searchParams.set("command", options.command.trim());
|
|
196
201
|
}
|
|
@@ -198,7 +203,7 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
|
|
|
198
203
|
url.searchParams.set("skills_version", _nullishCoalesce(options.skillsVersion, () => ( "")));
|
|
199
204
|
url.searchParams.set(
|
|
200
205
|
"skills_cli_capability",
|
|
201
|
-
String(
|
|
206
|
+
String(_chunk6NE3RRRYjs.SDK_RELEASE.packageCapabilities.skillsGuidance)
|
|
202
207
|
);
|
|
203
208
|
}
|
|
204
209
|
if (options.catalog) {
|
|
@@ -210,72 +215,148 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
|
|
|
210
215
|
const response = await fetch(url, {
|
|
211
216
|
method: "GET",
|
|
212
217
|
headers: {
|
|
213
|
-
...
|
|
214
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
215
|
-
"X-Deepline-SDK-Version":
|
|
216
|
-
"X-Deepline-API-Major": String(
|
|
217
|
-
"X-Deepline-API-Contract":
|
|
218
|
+
..._chunkAGLR6QVNjs.deploymentProtectionHeaders.call(void 0, ),
|
|
219
|
+
"User-Agent": `deepline-ts-sdk/${_chunkAGLR6QVNjs.SDK_VERSION}`,
|
|
220
|
+
"X-Deepline-SDK-Version": _chunkAGLR6QVNjs.SDK_VERSION,
|
|
221
|
+
"X-Deepline-API-Major": String(_chunkAGLR6QVNjs.SDK_API_MAJOR),
|
|
222
|
+
"X-Deepline-API-Contract": _chunkAGLR6QVNjs.SDK_API_CONTRACT,
|
|
218
223
|
"X-Deepline-CLI-Update-Preferences": "1",
|
|
219
224
|
"X-Deepline-CLI-Auto-Update-Capability": SDK_CLI_AUTO_UPDATE_CAPABILITY,
|
|
220
|
-
...options.catalog ? { Authorization: `Bearer ${
|
|
225
|
+
...options.catalog ? { Authorization: `Bearer ${_chunkMLABYI4Mjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl)}` } : {},
|
|
221
226
|
..._optionalChain([options, 'access', _37 => _37.catalog, 'optionalAccess', _38 => _38.cliInvocationId]) ? { "X-Deepline-CLI-Invocation-ID": options.catalog.cliInvocationId } : {}
|
|
222
227
|
},
|
|
223
228
|
signal: controller.signal
|
|
224
229
|
});
|
|
225
|
-
const
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
const { catalog_metadata: catalogMetadata, ...data } = raw;
|
|
233
|
-
if (options.persistCache !== false) {
|
|
234
|
-
writeCachedCompatibility(
|
|
235
|
-
baseUrl,
|
|
236
|
-
options.command,
|
|
237
|
-
options.skillsVersion,
|
|
238
|
-
data
|
|
239
|
-
);
|
|
240
|
-
}
|
|
241
|
-
if (data.ok && options.catalog && catalogMetadata && typeof catalogMetadata === "object" && "toolId" in catalogMetadata && catalogMetadata.toolId === options.catalog.toolId) {
|
|
242
|
-
options.catalog.acceptMetadata(catalogMetadata);
|
|
230
|
+
const text = await response.text();
|
|
231
|
+
controller.signal.throwIfAborted();
|
|
232
|
+
let raw;
|
|
233
|
+
try {
|
|
234
|
+
raw = JSON.parse(text);
|
|
235
|
+
} catch (e7) {
|
|
236
|
+
raw = null;
|
|
243
237
|
}
|
|
244
|
-
|
|
245
|
-
} catch (error) {
|
|
246
|
-
if (_optionalChain([options, 'access', _42 => _42.signal, 'optionalAccess', _43 => _43.aborted])) {
|
|
238
|
+
if (!raw || typeof raw.ok !== "boolean" || typeof raw.status !== "string") {
|
|
247
239
|
return {
|
|
248
|
-
|
|
249
|
-
|
|
240
|
+
ok: false,
|
|
241
|
+
transient: _chunkMLABYI4Mjs.TRANSIENT_HTTP_STATUSES.has(response.status),
|
|
242
|
+
error: new Error(
|
|
243
|
+
`SDK compatibility endpoint returned a non-policy response (HTTP ${response.status}).`
|
|
244
|
+
)
|
|
250
245
|
};
|
|
251
246
|
}
|
|
252
|
-
const
|
|
247
|
+
const { catalog_metadata: catalogMetadata, ...data } = raw;
|
|
248
|
+
return { ok: true, response: data, catalogMetadata };
|
|
249
|
+
} catch (error) {
|
|
250
|
+
_optionalChain([options, 'access', _39 => _39.signal, 'optionalAccess', _40 => _40.throwIfAborted, 'call', _41 => _41()]);
|
|
251
|
+
return { ok: false, transient: true, error: asError(error) };
|
|
252
|
+
} finally {
|
|
253
|
+
clearTimeout(timeout);
|
|
254
|
+
_optionalChain([options, 'access', _42 => _42.signal, 'optionalAccess', _43 => _43.removeEventListener, 'call', _44 => _44("abort", abortFromCaller)]);
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
function acceptSdkCompatibility(baseUrl, options, attempt) {
|
|
258
|
+
const { response: data, catalogMetadata } = attempt;
|
|
259
|
+
if (options.persistCache !== false) {
|
|
260
|
+
writeCachedCompatibility(
|
|
253
261
|
baseUrl,
|
|
254
262
|
options.command,
|
|
255
|
-
options.skillsVersion
|
|
263
|
+
options.skillsVersion,
|
|
264
|
+
data
|
|
256
265
|
);
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
266
|
+
}
|
|
267
|
+
if (data.ok && options.catalog && catalogMetadata && typeof catalogMetadata === "object" && "toolId" in catalogMetadata && catalogMetadata.toolId === options.catalog.toolId) {
|
|
268
|
+
options.catalog.acceptMetadata(catalogMetadata);
|
|
269
|
+
}
|
|
270
|
+
return data;
|
|
271
|
+
}
|
|
272
|
+
async function checkSdkCompatibility(baseUrl, options = {}) {
|
|
273
|
+
if (shouldSkipCompatibilityCheck()) {
|
|
274
|
+
return { response: null, error: null, live: false };
|
|
275
|
+
}
|
|
276
|
+
let attempt;
|
|
277
|
+
try {
|
|
278
|
+
attempt = await attemptSdkCompatibility(
|
|
279
|
+
baseUrl,
|
|
280
|
+
options,
|
|
281
|
+
_nullishCoalesce(options.timeoutMs, () => ( CHECK_TIMEOUT_MS))
|
|
282
|
+
);
|
|
283
|
+
} catch (error) {
|
|
284
|
+
return { response: null, error: asError(error), live: false };
|
|
285
|
+
}
|
|
286
|
+
if (attempt.ok) {
|
|
267
287
|
return {
|
|
268
|
-
response:
|
|
269
|
-
error:
|
|
288
|
+
response: acceptSdkCompatibility(baseUrl, options, attempt),
|
|
289
|
+
error: null,
|
|
290
|
+
live: true
|
|
270
291
|
};
|
|
271
|
-
} finally {
|
|
272
|
-
clearTimeout(timeout);
|
|
273
|
-
_optionalChain([options, 'access', _44 => _44.signal, 'optionalAccess', _45 => _45.removeEventListener, 'call', _46 => _46("abort", abortFromCaller)]);
|
|
274
292
|
}
|
|
293
|
+
const cached = readCachedCompatibility(
|
|
294
|
+
baseUrl,
|
|
295
|
+
options.command,
|
|
296
|
+
options.skillsVersion
|
|
297
|
+
);
|
|
298
|
+
if (cached) {
|
|
299
|
+
if (options.persistCache !== false && options.timeoutMs !== void 0 && options.timeoutMs < CHECK_TIMEOUT_MS) {
|
|
300
|
+
invalidateCachedCompatibility(
|
|
301
|
+
baseUrl,
|
|
302
|
+
options.command,
|
|
303
|
+
options.skillsVersion
|
|
304
|
+
);
|
|
305
|
+
}
|
|
306
|
+
return { response: cached, error: null, live: false };
|
|
307
|
+
}
|
|
308
|
+
return { response: null, error: attempt.error, live: false };
|
|
309
|
+
}
|
|
310
|
+
async function requireSdkCompatibility(baseUrl, options = {}) {
|
|
311
|
+
if (shouldSkipCompatibilityCheck()) return null;
|
|
312
|
+
const maxRetries = _nullishCoalesce(options.maxRetries, () => ( _chunkMLABYI4Mjs.DEFAULT_MAX_RETRIES));
|
|
313
|
+
const backoffMs = _nullishCoalesce(options.backoffMs, () => ( _chunkMLABYI4Mjs.defaultRetryBackoffMs));
|
|
314
|
+
let attempt;
|
|
315
|
+
let attempts = 0;
|
|
316
|
+
for (; ; ) {
|
|
317
|
+
attempts += 1;
|
|
318
|
+
attempt = await attemptSdkCompatibility(
|
|
319
|
+
baseUrl,
|
|
320
|
+
options,
|
|
321
|
+
_nullishCoalesce(options.attemptTimeoutMs, () => ( _chunkMLABYI4Mjs.DEFAULT_TIMEOUT))
|
|
322
|
+
);
|
|
323
|
+
if (attempt.ok) return acceptSdkCompatibility(baseUrl, options, attempt);
|
|
324
|
+
if (!attempt.transient || attempts > maxRetries) break;
|
|
325
|
+
await sleepUnlessAborted(backoffMs(attempts), options.signal);
|
|
326
|
+
}
|
|
327
|
+
const cached = readCachedCompatibility(
|
|
328
|
+
baseUrl,
|
|
329
|
+
options.command,
|
|
330
|
+
options.skillsVersion
|
|
331
|
+
);
|
|
332
|
+
if (cached) return cached;
|
|
333
|
+
throw Object.assign(
|
|
334
|
+
new (0, _chunkLFQJW4S2js.DeeplineError)(
|
|
335
|
+
`Could not read the Deepline SDK compatibility policy from ${baseUrl} after ${attempts} attempt${attempts === 1 ? "" : "s"}: ${attempt.error.message}`,
|
|
336
|
+
void 0,
|
|
337
|
+
"SDK_COMPATIBILITY_UNAVAILABLE",
|
|
338
|
+
{ attempts, transient: attempt.transient }
|
|
339
|
+
),
|
|
340
|
+
{ cause: attempt.error }
|
|
341
|
+
);
|
|
342
|
+
}
|
|
343
|
+
function sleepUnlessAborted(ms, signal) {
|
|
344
|
+
_optionalChain([signal, 'optionalAccess', _45 => _45.throwIfAborted, 'call', _46 => _46()]);
|
|
345
|
+
return new Promise((resolve, reject) => {
|
|
346
|
+
const onAbort = () => {
|
|
347
|
+
clearTimeout(timer);
|
|
348
|
+
reject(_optionalChain([signal, 'optionalAccess', _47 => _47.reason]));
|
|
349
|
+
};
|
|
350
|
+
const timer = setTimeout(() => {
|
|
351
|
+
_optionalChain([signal, 'optionalAccess', _48 => _48.removeEventListener, 'call', _49 => _49("abort", onAbort)]);
|
|
352
|
+
resolve();
|
|
353
|
+
}, ms);
|
|
354
|
+
_optionalChain([signal, 'optionalAccess', _50 => _50.addEventListener, 'call', _51 => _51("abort", onAbort, { once: true })]);
|
|
355
|
+
});
|
|
275
356
|
}
|
|
276
357
|
function isCiEnvironment() {
|
|
277
358
|
return ["CI", "GITHUB_ACTIONS"].some((name) => {
|
|
278
|
-
const value = _optionalChain([process, 'access',
|
|
359
|
+
const value = _optionalChain([process, 'access', _52 => _52.env, 'access', _53 => _53[name], 'optionalAccess', _54 => _54.trim, 'call', _55 => _55(), 'access', _56 => _56.toLowerCase, 'call', _57 => _57()]);
|
|
279
360
|
return value === "1" || value === "true" || value === "yes";
|
|
280
361
|
});
|
|
281
362
|
}
|
|
@@ -386,7 +467,7 @@ function skillsSourceUrl(baseUrl) {
|
|
|
386
467
|
function buildSkillsAddArgs(baseUrl, skillName, options = {}) {
|
|
387
468
|
const skillNames = Array.isArray(skillName) ? skillName : [skillName];
|
|
388
469
|
const [firstSkillName, ...extraSkillNames] = skillNames;
|
|
389
|
-
const agents = _nullishCoalesce(options.agents, () => (
|
|
470
|
+
const agents = _nullishCoalesce(options.agents, () => ( _chunkMLABYI4Mjs.DEFAULT_SKILL_AGENTS));
|
|
390
471
|
const values = {
|
|
391
472
|
skills_index_url: skillsIndexUrl(baseUrl),
|
|
392
473
|
skills_source_url: skillsSourceUrl(baseUrl),
|
|
@@ -460,7 +541,7 @@ function resolveWindowsExecutable(command, env, cwd) {
|
|
|
460
541
|
) : _path.win32.resolve(cwd, command + extension);
|
|
461
542
|
try {
|
|
462
543
|
if (_fs.statSync.call(void 0, candidate).isFile()) return candidate;
|
|
463
|
-
} catch (
|
|
544
|
+
} catch (e8) {
|
|
464
545
|
}
|
|
465
546
|
}
|
|
466
547
|
}
|
|
@@ -473,7 +554,7 @@ function resolveWindowsExecutable(command, env, cwd) {
|
|
|
473
554
|
|
|
474
555
|
function skillsSyncDisabledPath() {
|
|
475
556
|
return _path.join.call(void 0,
|
|
476
|
-
_optionalChain([process, 'access',
|
|
557
|
+
_optionalChain([process, 'access', _58 => _58.env, 'access', _59 => _59.HOME, 'optionalAccess', _60 => _60.trim, 'call', _61 => _61()]) || _os.homedir.call(void 0, ),
|
|
477
558
|
".local",
|
|
478
559
|
"deepline",
|
|
479
560
|
"sdk-cli",
|
|
@@ -514,25 +595,25 @@ var CHECK_TIMEOUT_MS2 = 3e3;
|
|
|
514
595
|
var INSTALLER_PROBE_TIMEOUT_MS = 1e3;
|
|
515
596
|
var PUBLISHED_VERIFICATION_RETRY_MS = 5 * 6e4;
|
|
516
597
|
function shouldSkipSkillsSync() {
|
|
517
|
-
if (
|
|
598
|
+
if (_chunkAGLR6QVNjs.detectAgentRuntime.call(void 0, ) === "claude_cowork" || isCiEnvironment()) {
|
|
518
599
|
return true;
|
|
519
600
|
}
|
|
520
|
-
const value = _optionalChain([process, 'access',
|
|
601
|
+
const value = _optionalChain([process, 'access', _62 => _62.env, 'access', _63 => _63.DEEPLINE_SKIP_SKILLS_SYNC, 'optionalAccess', _64 => _64.trim, 'call', _65 => _65(), 'access', _66 => _66.toLowerCase, 'call', _67 => _67()]);
|
|
521
602
|
return value === "1" || value === "true" || value === "yes" || value === "on" || !isCliSkillsSyncEnabled();
|
|
522
603
|
}
|
|
523
604
|
function unavailableSkillsNoticePath(baseUrl) {
|
|
524
|
-
return _path.join.call(void 0,
|
|
605
|
+
return _path.join.call(void 0, _chunkMLABYI4Mjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-sync-unavailable-version");
|
|
525
606
|
}
|
|
526
607
|
var SKILLS_SYNC_IN_PROGRESS_TTL_MS = 10 * 60 * 1e3;
|
|
527
608
|
var SKILLS_SYNC_IN_PROGRESS_PID_CAP_MS = 6 * 60 * 60 * 1e3;
|
|
528
|
-
var agentLeaseSegment =
|
|
609
|
+
var agentLeaseSegment = _chunkMLABYI4Mjs.skillsAgentPathSegment;
|
|
529
610
|
function sortedLeaseAgents(agents) {
|
|
530
|
-
const expanded = agents.includes("*") ? [...agents, ...
|
|
611
|
+
const expanded = agents.includes("*") ? [...agents, ..._chunkMLABYI4Mjs.KNOWN_SKILL_AGENTS] : agents;
|
|
531
612
|
return [...new Set(expanded)].sort((a, b) => a.localeCompare(b));
|
|
532
613
|
}
|
|
533
614
|
function inProgressSkillsSyncPath(baseUrl, agent) {
|
|
534
615
|
return _path.join.call(void 0,
|
|
535
|
-
|
|
616
|
+
_chunkMLABYI4Mjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
536
617
|
`skills-sync-in-progress-${agentLeaseSegment(agent)}`
|
|
537
618
|
);
|
|
538
619
|
}
|
|
@@ -592,7 +673,7 @@ function quarantine(path, tag) {
|
|
|
592
673
|
try {
|
|
593
674
|
_fs.renameSync.call(void 0, path, holding);
|
|
594
675
|
return holding;
|
|
595
|
-
} catch (
|
|
676
|
+
} catch (e9) {
|
|
596
677
|
return null;
|
|
597
678
|
}
|
|
598
679
|
}
|
|
@@ -691,7 +772,7 @@ var SkillsStateUnavailableError = class extends Error {
|
|
|
691
772
|
constructor(baseUrl, error) {
|
|
692
773
|
const detail = error instanceof Error ? error.message : String(error);
|
|
693
774
|
super(
|
|
694
|
-
`Could not save skills state in ${
|
|
775
|
+
`Could not save skills state in ${_chunkMLABYI4Mjs.sdkCliStateDirPath.call(void 0, baseUrl)}: ${detail}`
|
|
695
776
|
);
|
|
696
777
|
this.name = "SkillsStateUnavailableError";
|
|
697
778
|
}
|
|
@@ -712,7 +793,7 @@ function recordOwnPidOnInProgressSkillsSync(baseUrl, leases) {
|
|
|
712
793
|
`,
|
|
713
794
|
"utf-8"
|
|
714
795
|
);
|
|
715
|
-
} catch (
|
|
796
|
+
} catch (e10) {
|
|
716
797
|
}
|
|
717
798
|
}
|
|
718
799
|
}
|
|
@@ -722,7 +803,7 @@ function releaseInProgressSkillsSync(baseUrl, claimTokens) {
|
|
|
722
803
|
if (!claimToken) {
|
|
723
804
|
try {
|
|
724
805
|
_fs.rmSync.call(void 0, dir, { recursive: true, force: true });
|
|
725
|
-
} catch (
|
|
806
|
+
} catch (e11) {
|
|
726
807
|
}
|
|
727
808
|
continue;
|
|
728
809
|
}
|
|
@@ -733,7 +814,7 @@ function releaseInProgressSkillsSync(baseUrl, claimTokens) {
|
|
|
733
814
|
_fs.renameSync.call(void 0, tombstone, dir);
|
|
734
815
|
continue;
|
|
735
816
|
}
|
|
736
|
-
} catch (
|
|
817
|
+
} catch (e12) {
|
|
737
818
|
}
|
|
738
819
|
_fs.rmSync.call(void 0, tombstone, { recursive: true, force: true });
|
|
739
820
|
}
|
|
@@ -766,7 +847,7 @@ async function acquireSkillsInstallLease(baseUrl, agents, version, options = {
|
|
|
766
847
|
if (Date.now() >= deadline) return null;
|
|
767
848
|
if (!waited) {
|
|
768
849
|
waited = true;
|
|
769
|
-
_optionalChain([options, 'access',
|
|
850
|
+
_optionalChain([options, 'access', _68 => _68.onWait, 'optionalCall', _69 => _69()]);
|
|
770
851
|
}
|
|
771
852
|
await new Promise((resolve) => setTimeout(resolve, pollMs));
|
|
772
853
|
}
|
|
@@ -776,7 +857,7 @@ function skillsInstallLeasePath(baseUrl, agents) {
|
|
|
776
857
|
}
|
|
777
858
|
function deferredSkillsNoticePath(baseUrl, agents) {
|
|
778
859
|
return _path.join.call(void 0,
|
|
779
|
-
|
|
860
|
+
_chunkMLABYI4Mjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
780
861
|
`skills-sync-notice-${sortedLeaseAgents(agents).map(agentLeaseSegment).join("-")}`
|
|
781
862
|
);
|
|
782
863
|
}
|
|
@@ -787,7 +868,7 @@ function deferSkillsNotice(baseUrl, agents) {
|
|
|
787
868
|
_fs.mkdirSync.call(void 0, _path.dirname.call(void 0, path), { recursive: true });
|
|
788
869
|
_fs.appendFileSync.call(void 0, path, `${text.trimEnd()}
|
|
789
870
|
`, "utf-8");
|
|
790
|
-
} catch (
|
|
871
|
+
} catch (e13) {
|
|
791
872
|
}
|
|
792
873
|
};
|
|
793
874
|
}
|
|
@@ -799,19 +880,19 @@ function flushDeferredSkillsNotices(baseUrl, agents) {
|
|
|
799
880
|
let text = "";
|
|
800
881
|
try {
|
|
801
882
|
text = _fs.readFileSync.call(void 0, tombstone, "utf-8");
|
|
802
|
-
} catch (
|
|
883
|
+
} catch (e14) {
|
|
803
884
|
return;
|
|
804
885
|
} finally {
|
|
805
886
|
try {
|
|
806
887
|
_fs.unlinkSync.call(void 0, tombstone);
|
|
807
|
-
} catch (
|
|
888
|
+
} catch (e15) {
|
|
808
889
|
}
|
|
809
890
|
}
|
|
810
891
|
if (text.trim()) writeSdkSkillsStatusLine(text.trimEnd());
|
|
811
892
|
}
|
|
812
893
|
function flushDeferredSkillsSyncNotices(baseUrl) {
|
|
813
|
-
if (shouldSkipSkillsSync() ||
|
|
814
|
-
const agents =
|
|
894
|
+
if (shouldSkipSkillsSync() || _chunkMLABYI4Mjs.hasActivePluginSkills.call(void 0, )) return;
|
|
895
|
+
const agents = _chunkMLABYI4Mjs.resolveAutoSyncSkillAgents.call(void 0, );
|
|
815
896
|
if (agents.length === 0) return;
|
|
816
897
|
flushDeferredSkillsNotices(baseUrl, agents);
|
|
817
898
|
}
|
|
@@ -829,12 +910,12 @@ function spawnDetachedSkillsSyncChild(argv, onSpawnError, sidecarPath) {
|
|
|
829
910
|
env: process.env,
|
|
830
911
|
shell: launch.shell
|
|
831
912
|
});
|
|
832
|
-
child.on("error", () => _optionalChain([onSpawnError, 'optionalCall',
|
|
913
|
+
child.on("error", () => _optionalChain([onSpawnError, 'optionalCall', _70 => _70()]));
|
|
833
914
|
child.unref();
|
|
834
915
|
}
|
|
835
916
|
function failedSkillsSyncPath(baseUrl, agents) {
|
|
836
917
|
return _path.join.call(void 0,
|
|
837
|
-
|
|
918
|
+
_chunkMLABYI4Mjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
838
919
|
`skills-sync-failed-${sortedLeaseAgents(agents).map(agentLeaseSegment).join("-")}-version`
|
|
839
920
|
);
|
|
840
921
|
}
|
|
@@ -844,7 +925,7 @@ function hasMarkedSkillsSyncVersion(path, version) {
|
|
|
844
925
|
function readMarkedSkillsSyncVersion(path) {
|
|
845
926
|
try {
|
|
846
927
|
return _fs.existsSync.call(void 0, path) ? _fs.readFileSync.call(void 0, path, "utf-8").trim() : "";
|
|
847
|
-
} catch (
|
|
928
|
+
} catch (e16) {
|
|
848
929
|
return "";
|
|
849
930
|
}
|
|
850
931
|
}
|
|
@@ -854,7 +935,7 @@ function writeMarkedSkillsSyncVersion(path, version) {
|
|
|
854
935
|
_fs.writeFileSync.call(void 0, path, `${version}
|
|
855
936
|
`, "utf-8");
|
|
856
937
|
return true;
|
|
857
|
-
} catch (
|
|
938
|
+
} catch (e17) {
|
|
858
939
|
return false;
|
|
859
940
|
}
|
|
860
941
|
}
|
|
@@ -863,8 +944,8 @@ function writeUnavailableSkillsNotice(baseUrl, remoteVersion, skillNames, reason
|
|
|
863
944
|
if (hasMarkedSkillsSyncVersion(path, remoteVersion)) return;
|
|
864
945
|
writeMarkedSkillsSyncVersion(path, remoteVersion);
|
|
865
946
|
const probes = reason === "no-installer" ? _nullishCoalesce(knownProbes, () => ( probeInstallers())) : null;
|
|
866
|
-
const manualCommand = _optionalChain([probes, 'optionalAccess',
|
|
867
|
-
const explanation = reason === "unsupported-agent" ? "the detected agent has no automatic skills sync target. Automatic sync was skipped." : _optionalChain([probes, 'optionalAccess',
|
|
947
|
+
const manualCommand = _optionalChain([probes, 'optionalAccess', _71 => _71.npx]) === "missing" && probes.bunx !== "missing" ? `bunx ${buildBunxSkillsInstallArgs(baseUrl, skillNames, _chunkMLABYI4Mjs.DEFAULT_SKILL_AGENTS).map(shellQuote).join(" ")}` : `npx ${buildSkillsInstallArgs(baseUrl, skillNames).join(" ")}`;
|
|
948
|
+
const explanation = reason === "unsupported-agent" ? "the detected agent has no automatic skills sync target. Automatic sync was skipped." : _optionalChain([probes, 'optionalAccess', _72 => _72.bunx]) === "missing" && probes.npx === "missing" ? "neither `bunx` nor `npx` was found on PATH. Make one available." : `installer version check failed for ${Object.entries(_nullishCoalesce(probes, () => ( {}))).filter(([, result]) => result === "failed").map(([command]) => `\`${command}\``).join(" and ")}. Check those commands with --version.`;
|
|
868
949
|
notice(
|
|
869
950
|
`Deepline agent skills are out of date, but ${explanation} To install manually, run:
|
|
870
951
|
${manualCommand}`
|
|
@@ -873,7 +954,7 @@ ${manualCommand}`
|
|
|
873
954
|
function clearUnavailableSkillsNotice(baseUrl) {
|
|
874
955
|
try {
|
|
875
956
|
_fs.unlinkSync.call(void 0, unavailableSkillsNoticePath(baseUrl));
|
|
876
|
-
} catch (
|
|
957
|
+
} catch (e18) {
|
|
877
958
|
}
|
|
878
959
|
}
|
|
879
960
|
function hasFailedSkillsSync(baseUrl, remoteVersion, agents) {
|
|
@@ -885,7 +966,7 @@ function hasFailedSkillsSync(baseUrl, remoteVersion, agents) {
|
|
|
885
966
|
const retry = JSON.parse(marked);
|
|
886
967
|
const now = Date.now();
|
|
887
968
|
return retry.version === remoteVersion && typeof retry.retryAfter === "number" && retry.retryAfter > now && retry.retryAfter <= now + PUBLISHED_VERIFICATION_RETRY_MS;
|
|
888
|
-
} catch (
|
|
969
|
+
} catch (e19) {
|
|
889
970
|
return false;
|
|
890
971
|
}
|
|
891
972
|
}
|
|
@@ -910,7 +991,7 @@ function deferPublishedVerificationRetry(baseUrl, remoteVersion, agents) {
|
|
|
910
991
|
function clearFailedSkillsSync(baseUrl, agents) {
|
|
911
992
|
try {
|
|
912
993
|
_fs.unlinkSync.call(void 0, failedSkillsSyncPath(baseUrl, agents));
|
|
913
|
-
} catch (
|
|
994
|
+
} catch (e20) {
|
|
914
995
|
}
|
|
915
996
|
}
|
|
916
997
|
function clearFailedAutomaticSkillsSync(baseUrl, agents) {
|
|
@@ -933,14 +1014,14 @@ async function fetchV1SkillIndex(baseUrl) {
|
|
|
933
1014
|
if (!response.ok) return null;
|
|
934
1015
|
const data = await response.json().catch(() => null);
|
|
935
1016
|
return data;
|
|
936
|
-
} catch (
|
|
1017
|
+
} catch (e21) {
|
|
937
1018
|
return null;
|
|
938
1019
|
} finally {
|
|
939
1020
|
clearTimeout(timeout);
|
|
940
1021
|
}
|
|
941
1022
|
}
|
|
942
1023
|
function v1SkillNames(index) {
|
|
943
|
-
const skills = Array.isArray(_optionalChain([index, 'optionalAccess',
|
|
1024
|
+
const skills = Array.isArray(_optionalChain([index, 'optionalAccess', _73 => _73.skills])) ? index.skills : [];
|
|
944
1025
|
return sortedUniqueSkillNames(
|
|
945
1026
|
skills.filter((skill) => skill && skill.install_surface === "v1").map((skill) => skill.name).filter(
|
|
946
1027
|
(name) => typeof name === "string" && name.length > 0
|
|
@@ -951,7 +1032,7 @@ function buildSdkSkillNames(v1SkillNames2) {
|
|
|
951
1032
|
return sortedUniqueSkillNames(v1SkillNames2);
|
|
952
1033
|
}
|
|
953
1034
|
function isDefaultAgentSet(agents) {
|
|
954
|
-
return agents.length ===
|
|
1035
|
+
return agents.length === _chunkMLABYI4Mjs.DEFAULT_SKILL_AGENTS.length && agents.every((agent, index) => agent === _chunkMLABYI4Mjs.DEFAULT_SKILL_AGENTS[index]);
|
|
955
1036
|
}
|
|
956
1037
|
function safeSkillFilePath(value) {
|
|
957
1038
|
if (typeof value !== "string" || !value) return false;
|
|
@@ -1011,7 +1092,7 @@ function publishedArchiveFiles(bytes, expectedFiles, name) {
|
|
|
1011
1092
|
var PublishedSkillsVerificationError = class extends Error {
|
|
1012
1093
|
};
|
|
1013
1094
|
async function verifyDefaultAgentSkillsInstall(baseUrl, remoteVersion, skillNames, index) {
|
|
1014
|
-
if (_optionalChain([index, 'optionalAccess',
|
|
1095
|
+
if (_optionalChain([index, 'optionalAccess', _74 => _74.version]) !== remoteVersion) {
|
|
1015
1096
|
throw new PublishedSkillsVerificationError(
|
|
1016
1097
|
"the published skill index version does not match the server version"
|
|
1017
1098
|
);
|
|
@@ -1027,7 +1108,7 @@ async function verifyDefaultAgentSkillsInstall(baseUrl, remoteVersion, skillName
|
|
|
1027
1108
|
const entry = entries.find(
|
|
1028
1109
|
(skill) => skill && skill.name === name && skill.install_surface === "v1"
|
|
1029
1110
|
);
|
|
1030
|
-
if (!Array.isArray(_optionalChain([entry, 'optionalAccess',
|
|
1111
|
+
if (!Array.isArray(_optionalChain([entry, 'optionalAccess', _75 => _75.files])) || !entry.files.length || !entry.files.every(safeSkillFilePath) || new Set(entry.files).size !== entry.files.length || !entry.files.includes("SKILL.md") || entry.type !== "archive" || entry.url !== `./archives/${name}.tar.gz` || typeof entry.digest !== "string" || !/^sha256:[a-f0-9]{64}$/.test(entry.digest)) {
|
|
1031
1112
|
throw new PublishedSkillsVerificationError(
|
|
1032
1113
|
`invalid published file list for ${name}`
|
|
1033
1114
|
);
|
|
@@ -1081,7 +1162,7 @@ async function verifyDefaultAgentSkillsInstall(baseUrl, remoteVersion, skillName
|
|
|
1081
1162
|
controller.abort();
|
|
1082
1163
|
}
|
|
1083
1164
|
const home = _os.homedir.call(void 0, );
|
|
1084
|
-
const claudeConfigDir = _optionalChain([process, 'access',
|
|
1165
|
+
const claudeConfigDir = _optionalChain([process, 'access', _76 => _76.env, 'access', _77 => _77.CLAUDE_CONFIG_DIR, 'optionalAccess', _78 => _78.trim, 'call', _79 => _79()]) || _path.join.call(void 0, home, ".claude");
|
|
1085
1166
|
for (const [name, { files }] of published) {
|
|
1086
1167
|
for (const root of [
|
|
1087
1168
|
_path.join.call(void 0, home, ".agents", "skills", name),
|
|
@@ -1108,23 +1189,23 @@ async function fetchSkillsUpdate(baseUrl, localVersion) {
|
|
|
1108
1189
|
method: "POST",
|
|
1109
1190
|
headers: { "Content-Type": "application/json" },
|
|
1110
1191
|
body: JSON.stringify({
|
|
1111
|
-
sdk_cli: { version:
|
|
1192
|
+
sdk_cli: { version: _chunkAGLR6QVNjs.SDK_VERSION },
|
|
1112
1193
|
skills: {
|
|
1113
1194
|
version: localVersion,
|
|
1114
|
-
capability:
|
|
1195
|
+
capability: _chunk6NE3RRRYjs.SDK_RELEASE.packageCapabilities.skillsGuidance
|
|
1115
1196
|
}
|
|
1116
1197
|
}),
|
|
1117
1198
|
signal: controller.signal
|
|
1118
1199
|
});
|
|
1119
1200
|
if (!response.ok) return null;
|
|
1120
1201
|
const data = await response.json().catch(() => null);
|
|
1121
|
-
const skills = _optionalChain([data, 'optionalAccess',
|
|
1202
|
+
const skills = _optionalChain([data, 'optionalAccess', _80 => _80.skills]);
|
|
1122
1203
|
if (!skills) return null;
|
|
1123
1204
|
return {
|
|
1124
1205
|
needsUpdate: skills.needs_update === true,
|
|
1125
|
-
remoteVersion: typeof _optionalChain([skills, 'access',
|
|
1206
|
+
remoteVersion: typeof _optionalChain([skills, 'access', _81 => _81.remote, 'optionalAccess', _82 => _82.version]) === "string" ? skills.remote.version.trim() : ""
|
|
1126
1207
|
};
|
|
1127
|
-
} catch (
|
|
1208
|
+
} catch (e22) {
|
|
1128
1209
|
return null;
|
|
1129
1210
|
} finally {
|
|
1130
1211
|
clearTimeout(timeout);
|
|
@@ -1150,7 +1231,7 @@ function probeInstallers(timeoutMs) {
|
|
|
1150
1231
|
}
|
|
1151
1232
|
function noInstallerProbePath(baseUrl) {
|
|
1152
1233
|
return _path.join.call(void 0,
|
|
1153
|
-
|
|
1234
|
+
_chunkMLABYI4Mjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
1154
1235
|
"skills-sync-no-installer-unknown.json"
|
|
1155
1236
|
);
|
|
1156
1237
|
}
|
|
@@ -1158,12 +1239,12 @@ function cachedUnavailableInstallerProbes(baseUrl, remoteVersion, allowBoundedFa
|
|
|
1158
1239
|
const path = noInstallerProbePath(baseUrl);
|
|
1159
1240
|
try {
|
|
1160
1241
|
const cached = JSON.parse(_fs.readFileSync.call(void 0, path, "utf-8"));
|
|
1161
|
-
if (typeof cached.version === "string" && (!remoteVersion || cached.version === remoteVersion) && typeof cached.checkedAt === "number" && cached.checkedAt <= Date.now() && Date.now() - cached.checkedAt < NEGATIVE_INSTALLER_PROBE_TTL_MS && (_optionalChain([cached, 'access',
|
|
1242
|
+
if (typeof cached.version === "string" && (!remoteVersion || cached.version === remoteVersion) && typeof cached.checkedAt === "number" && cached.checkedAt <= Date.now() && Date.now() - cached.checkedAt < NEGATIVE_INSTALLER_PROBE_TTL_MS && (_optionalChain([cached, 'access', _83 => _83.probes, 'optionalAccess', _84 => _84.bunx]) === "missing" || _optionalChain([cached, 'access', _85 => _85.probes, 'optionalAccess', _86 => _86.bunx]) === "failed") && (_optionalChain([cached, 'access', _87 => _87.probes, 'optionalAccess', _88 => _88.npx]) === "missing" || _optionalChain([cached, 'access', _89 => _89.probes, 'optionalAccess', _90 => _90.npx]) === "failed") && // A terminal timeout is not evidence that the unbounded child probe
|
|
1162
1243
|
// will fail. Older caches without probe provenance are ambiguous too.
|
|
1163
1244
|
(allowBoundedFailures || cached.probeTimeoutMs === null || cached.probes.bunx === "missing" && cached.probes.npx === "missing")) {
|
|
1164
1245
|
return cached.probes;
|
|
1165
1246
|
}
|
|
1166
|
-
} catch (
|
|
1247
|
+
} catch (e23) {
|
|
1167
1248
|
}
|
|
1168
1249
|
return null;
|
|
1169
1250
|
}
|
|
@@ -1182,14 +1263,14 @@ function rememberUnavailableInstallerProbes(baseUrl, remoteVersion, probes, prob
|
|
|
1182
1263
|
}),
|
|
1183
1264
|
"utf-8"
|
|
1184
1265
|
);
|
|
1185
|
-
} catch (
|
|
1266
|
+
} catch (e24) {
|
|
1186
1267
|
}
|
|
1187
1268
|
}
|
|
1188
1269
|
}
|
|
1189
1270
|
function clearUnavailableInstallerProbes(baseUrl) {
|
|
1190
1271
|
try {
|
|
1191
1272
|
_fs.unlinkSync.call(void 0, noInstallerProbePath(baseUrl));
|
|
1192
|
-
} catch (
|
|
1273
|
+
} catch (e25) {
|
|
1193
1274
|
}
|
|
1194
1275
|
}
|
|
1195
1276
|
function dueUnknownInstallerProbes(baseUrl, remoteVersion) {
|
|
@@ -1213,7 +1294,7 @@ function probeCommand(command, timeoutMs) {
|
|
|
1213
1294
|
timeout: timeoutMs
|
|
1214
1295
|
});
|
|
1215
1296
|
if (result.status === 0) return "available";
|
|
1216
|
-
return _optionalChain([result, 'access',
|
|
1297
|
+
return _optionalChain([result, 'access', _91 => _91.error, 'optionalAccess', _92 => _92.code]) === "ENOENT" ? "missing" : "failed";
|
|
1217
1298
|
}
|
|
1218
1299
|
function hasCommand(command) {
|
|
1219
1300
|
return probeCommand(command) === "available";
|
|
@@ -1230,7 +1311,7 @@ function temporarySkillsSyncSkipCommand() {
|
|
|
1230
1311
|
function resolveSkillsInstallSpawn(install, platform = process.platform) {
|
|
1231
1312
|
return resolveShellSpawn(install.command, install.args, platform);
|
|
1232
1313
|
}
|
|
1233
|
-
function resolveSkillsInstallCommands(baseUrl, skillNames = DEFAULT_SDK_SKILL_NAMES, agents =
|
|
1314
|
+
function resolveSkillsInstallCommands(baseUrl, skillNames = DEFAULT_SDK_SKILL_NAMES, agents = _chunkMLABYI4Mjs.DEFAULT_SKILL_AGENTS, knownProbes) {
|
|
1234
1315
|
const commands = [];
|
|
1235
1316
|
const probes = _nullishCoalesce(knownProbes, () => ( probeInstallers()));
|
|
1236
1317
|
if (probes.bunx === "available") {
|
|
@@ -1374,7 +1455,7 @@ function runLegacySkillsCleanup(agents) {
|
|
|
1374
1455
|
}
|
|
1375
1456
|
}
|
|
1376
1457
|
function writeSdkSkillsStatusLine(line) {
|
|
1377
|
-
const progress =
|
|
1458
|
+
const progress = _chunk4747TPLVjs.getActiveCliProgress.call(void 0, );
|
|
1378
1459
|
if (progress) {
|
|
1379
1460
|
progress.writeLine(line);
|
|
1380
1461
|
return;
|
|
@@ -1385,11 +1466,11 @@ function writeSdkSkillsStatusLine(line) {
|
|
|
1385
1466
|
async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
|
|
1386
1467
|
const skip = shouldSkipSkillsSync();
|
|
1387
1468
|
if (skip && !options.claim) return;
|
|
1388
|
-
const usingPluginSkills =
|
|
1469
|
+
const usingPluginSkills = _chunkMLABYI4Mjs.hasActivePluginSkills.call(void 0, );
|
|
1389
1470
|
if (usingPluginSkills) {
|
|
1390
1471
|
return;
|
|
1391
1472
|
}
|
|
1392
|
-
const agents =
|
|
1473
|
+
const agents = _chunkMLABYI4Mjs.resolveAutoSyncSkillAgents.call(void 0, );
|
|
1393
1474
|
if (options.mode === "detached" && agents.length > 0) {
|
|
1394
1475
|
flushDeferredSkillsNotices(baseUrl, agents);
|
|
1395
1476
|
}
|
|
@@ -1410,7 +1491,7 @@ async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
|
|
|
1410
1491
|
const spawnDetached = _nullishCoalesce(options.spawnDetached, () => ( ((argv, onSpawnError) => spawnDetachedSkillsSyncChild(
|
|
1411
1492
|
argv,
|
|
1412
1493
|
onSpawnError,
|
|
1413
|
-
_optionalChain([options, 'access',
|
|
1494
|
+
_optionalChain([options, 'access', _93 => _93.afterCliUpdate, 'optionalAccess', _94 => _94.sidecarPath])
|
|
1414
1495
|
))));
|
|
1415
1496
|
if (options.mode === "detached" && agents.length > 0 && options.update === void 0 && !claimedVersion) {
|
|
1416
1497
|
if (cachedUnavailableInstallerProbes(baseUrl)) return;
|
|
@@ -1426,12 +1507,12 @@ async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
|
|
|
1426
1507
|
return;
|
|
1427
1508
|
}
|
|
1428
1509
|
try {
|
|
1429
|
-
const localVersion =
|
|
1510
|
+
const localVersion = _chunkMLABYI4Mjs.readSdkSkillsLocalVersion.call(void 0, baseUrl);
|
|
1430
1511
|
const update = options.update === void 0 ? claimedVersion ? { needsUpdate: true, remoteVersion: claimedVersion } : await fetchSkillsUpdate(baseUrl, localVersion) : options.update ? {
|
|
1431
1512
|
needsUpdate: options.update.needs_update,
|
|
1432
1513
|
remoteVersion: options.update.remote.version
|
|
1433
1514
|
} : null;
|
|
1434
|
-
if (!_optionalChain([update, 'optionalAccess',
|
|
1515
|
+
if (!_optionalChain([update, 'optionalAccess', _95 => _95.needsUpdate]) || !update.remoteVersion || update.remoteVersion === localVersion) {
|
|
1435
1516
|
return;
|
|
1436
1517
|
}
|
|
1437
1518
|
if (agents.length > 0 && hasFailedSkillsSync(baseUrl, update.remoteVersion, agents)) {
|
|
@@ -1548,7 +1629,7 @@ async function runInlineSkillsSync(baseUrl, remoteVersion, agents, notices) {
|
|
|
1548
1629
|
update.remoteVersion,
|
|
1549
1630
|
agents
|
|
1550
1631
|
);
|
|
1551
|
-
void
|
|
1632
|
+
void _chunkXLIHTJVMjs.maybeReportAutomaticSkillsSyncFailure.call(void 0, {
|
|
1552
1633
|
baseUrl,
|
|
1553
1634
|
remoteSkillsVersion: update.remoteVersion,
|
|
1554
1635
|
agents,
|
|
@@ -1579,7 +1660,7 @@ async function runInlineSkillsSync(baseUrl, remoteVersion, agents, notices) {
|
|
|
1579
1660
|
notice(
|
|
1580
1661
|
publishedFailure ? `Deepline could not verify the published skills: ${detail}. The local version remains stale; it will retry automatically on a later command.` : `Deepline agent-skills refresh could not verify the five installed targets: ${detail}. The local version remains stale. After fixing the install, remove ${failedSkillsSyncPath(baseUrl, agents)} to retry this version automatically.`
|
|
1581
1662
|
);
|
|
1582
|
-
void
|
|
1663
|
+
void _chunkXLIHTJVMjs.maybeReportAutomaticSkillsSyncFailure.call(void 0, {
|
|
1583
1664
|
baseUrl,
|
|
1584
1665
|
remoteSkillsVersion: update.remoteVersion,
|
|
1585
1666
|
agents,
|
|
@@ -1592,7 +1673,7 @@ async function runInlineSkillsSync(baseUrl, remoteVersion, agents, notices) {
|
|
|
1592
1673
|
}
|
|
1593
1674
|
}
|
|
1594
1675
|
runLegacySkillsCleanup(agents);
|
|
1595
|
-
if (!
|
|
1676
|
+
if (!_chunkMLABYI4Mjs.writeSdkSkillsLocalVersion.call(void 0, baseUrl, update.remoteVersion, agents)) {
|
|
1596
1677
|
notice(
|
|
1597
1678
|
"Deepline agent skills installed, but the local skills version could not be recorded. A later command will retry the refresh."
|
|
1598
1679
|
);
|
|
@@ -1627,4 +1708,5 @@ async function runInlineSkillsSync(baseUrl, remoteVersion, agents, notices) {
|
|
|
1627
1708
|
|
|
1628
1709
|
|
|
1629
1710
|
|
|
1630
|
-
|
|
1711
|
+
|
|
1712
|
+
exports.SDK_COMPATIBILITY_FAST_DEADLINE_MS = SDK_COMPATIBILITY_FAST_DEADLINE_MS; exports.readFreshCleanCompatibility = readFreshCleanCompatibility; exports.readTrustedCleanCompatibility = readTrustedCleanCompatibility; exports.claimUpdateAdvisory = claimUpdateAdvisory; exports.checkSdkCompatibility = checkSdkCompatibility; exports.requireSdkCompatibility = requireSdkCompatibility; exports.isCiEnvironment = isCiEnvironment; exports.enforceSdkCompatibilityResponse = enforceSdkCompatibilityResponse; exports.SKILLS_NPX_PACKAGE = SKILLS_NPX_PACKAGE; exports.DEFAULT_SDK_SKILL_NAMES = DEFAULT_SDK_SKILL_NAMES; exports.LEGACY_SKILL_NAMES_TO_REMOVE = LEGACY_SKILL_NAMES_TO_REMOVE; exports.skillsSourceUrl = skillsSourceUrl; exports.resolveShellSpawn = resolveShellSpawn; exports.isCliSkillsSyncEnabled = isCliSkillsSyncEnabled; exports.setCliSkillsSyncEnabled = setCliSkillsSyncEnabled; exports.SkillsStateUnavailableError = SkillsStateUnavailableError; exports.acquireSkillsInstallLease = acquireSkillsInstallLease; exports.skillsInstallLeasePath = skillsInstallLeasePath; exports.flushDeferredSkillsSyncNotices = flushDeferredSkillsSyncNotices; exports.SKILLS_AUTO_SYNC_COMMAND = SKILLS_AUTO_SYNC_COMMAND; exports.hasFailedAutomaticSkillsSync = hasFailedAutomaticSkillsSync; exports.clearFailedAutomaticSkillsSync = clearFailedAutomaticSkillsSync; exports.syncSdkSkillsIfNeeded = syncSdkSkillsIfNeeded;
|