deepline 0.3.460 → 0.3.462
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundling-sources/sdk/src/client-core.ts +7593 -0
- package/dist/bundling-sources/sdk/src/client.ts +8 -7366
- package/dist/bundling-sources/sdk/src/http-core.ts +1239 -0
- package/dist/bundling-sources/sdk/src/http.ts +6 -1231
- package/dist/bundling-sources/sdk/src/index.ts +4 -1
- package/dist/bundling-sources/sdk/src/play.ts +5 -5
- package/dist/bundling-sources/sdk/src/plays/client-core.ts +437 -0
- package/dist/bundling-sources/sdk/src/plays/client.ts +4 -421
- package/dist/bundling-sources/sdk/src/plays/input-example.ts +3 -4
- package/dist/bundling-sources/sdk/src/plays/play-description.ts +1 -1
- package/dist/bundling-sources/sdk/src/plays/run-request.ts +1 -1
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/sdk/src/server.ts +43 -0
- package/dist/bundling-sources/sdk/src/types.ts +15 -5
- package/dist/bundling-sources/shared_libs/integration-contracts/billing-entitlements.ts +15 -0
- package/dist/bundling-sources/shared_libs/monitors/billing/state.ts +28 -0
- package/dist/bundling-sources/shared_libs/monitors/callback-security.ts +0 -307
- package/dist/bundling-sources/shared_libs/monitors/http-error-response.ts +3 -0
- package/dist/bundling-sources/shared_libs/monitors/lifecycle-notifications.ts +3 -2
- package/dist/bundling-sources/shared_libs/monitors/package.json +2 -0
- package/dist/bundling-sources/shared_libs/monitors/provider-callback-verification.ts +34 -0
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-batch-operation.ts +59 -0
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-upstream-identity.ts +94 -1
- package/dist/bundling-sources/shared_libs/monitors/signal-radars/inbound-dead-letter.ts +35 -1
- package/dist/bundling-sources/shared_libs/monitors/signal-radars/inbound-failure-codes.ts +24 -0
- package/dist/bundling-sources/shared_libs/observability/dlq.ts +32 -0
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +57 -3
- package/dist/bundling-sources/shared_libs/observability/scheduled-work.ts +1 -0
- package/dist/bundling-sources/shared_libs/play-data-plane/r2.ts +66 -1
- package/dist/bundling-sources/shared_libs/play-data-plane/sheet-column-storage.ts +36 -7
- package/dist/bundling-sources/shared_libs/play-runtime/app-runtime-api.ts +250 -11
- package/dist/bundling-sources/shared_libs/play-runtime/array-input-store.ts +319 -0
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +991 -359
- package/dist/bundling-sources/shared_libs/play-runtime/ctx-types.ts +17 -0
- package/dist/bundling-sources/shared_libs/play-runtime/daytona-sandbox-janitor.ts +13 -0
- package/dist/bundling-sources/shared_libs/play-runtime/daytona-sandbox-reaper.ts +110 -0
- package/dist/bundling-sources/shared_libs/play-runtime/deployment/fly-machines.ts +155 -6
- package/dist/bundling-sources/shared_libs/play-runtime/deployment/fly-registry.ts +110 -6
- package/dist/bundling-sources/shared_libs/play-runtime/durable-receipt-execution.ts +127 -13
- package/dist/bundling-sources/shared_libs/play-runtime/execution-capabilities.ts +14 -1
- package/dist/bundling-sources/shared_libs/play-runtime/fixture-behavior.ts +57 -1
- package/dist/bundling-sources/shared_libs/play-runtime/free-company-lookup-batching.ts +218 -0
- package/dist/bundling-sources/shared_libs/play-runtime/gateway-postgres-admission.ts +42 -5
- package/dist/bundling-sources/shared_libs/play-runtime/governor/app-runtime-budget-state-backend.ts +6 -1
- package/dist/bundling-sources/shared_libs/play-runtime/governor/app-runtime-rate-state-backend.ts +92 -31
- package/dist/bundling-sources/shared_libs/play-runtime/governor/block-reserving-budget-state-backend.ts +69 -14
- package/dist/bundling-sources/shared_libs/play-runtime/governor/governor.ts +93 -23
- package/dist/bundling-sources/shared_libs/play-runtime/governor/in-memory-rate-state-backend.ts +15 -4
- package/dist/bundling-sources/shared_libs/play-runtime/governor/policy.ts +22 -18
- package/dist/bundling-sources/shared_libs/play-runtime/governor/rate-state-backend.ts +5 -0
- package/dist/bundling-sources/shared_libs/play-runtime/launch-identity.ts +2 -0
- package/dist/bundling-sources/shared_libs/play-runtime/map-memory-limits.ts +190 -14
- package/dist/bundling-sources/shared_libs/play-runtime/memory-ledger.ts +131 -0
- package/dist/bundling-sources/shared_libs/play-runtime/modal-runtime-config.ts +77 -2
- package/dist/bundling-sources/shared_libs/play-runtime/output-size-limits.ts +271 -2
- package/dist/bundling-sources/shared_libs/play-runtime/play-run-recovery-policy.ts +51 -0
- package/dist/bundling-sources/shared_libs/play-runtime/play-runs/sandbox-cleanup/contracts.ts +2 -0
- package/dist/bundling-sources/shared_libs/play-runtime/play-runs/sandbox-cleanup/job.ts +27 -1
- package/dist/bundling-sources/shared_libs/play-runtime/play-runtime-batching-registry.ts +2 -0
- package/dist/bundling-sources/shared_libs/play-runtime/protocol.ts +3 -0
- package/dist/bundling-sources/shared_libs/play-runtime/provider-text-for-log.ts +63 -0
- package/dist/bundling-sources/shared_libs/play-runtime/resource-governor.ts +19 -0
- package/dist/bundling-sources/shared_libs/play-runtime/run-ledger-event-transport.ts +112 -16
- package/dist/bundling-sources/shared_libs/play-runtime/run-ledger.ts +104 -2
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +265 -151
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/runtime-gateway-transport.ts +17 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/runtime-progress-push.ts +35 -14
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/runtime-sheet-persistence-retry.ts +12 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-control-transport.ts +4 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-labels.ts +36 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-launch-transport.ts +136 -70
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-lifecycle.ts +237 -36
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-runtime-watchdog.ts +148 -4
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-session-execution.ts +6 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona.ts +285 -32
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/modal.ts +251 -56
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/runtime-sandbox-reconciliation.ts +29 -4
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/sandbox-create-outcome.ts +27 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/types.ts +22 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-api.ts +1397 -382
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-array-input-receipts.ts +920 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-constants.ts +16 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-environment.ts +38 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-flow.ts +6 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-incident-drills.ts +26 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-operation-contract.ts +30 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-receipt-store-adapter.ts +14 -3
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-receipt-writer.ts +31 -4
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-sheet-row-transition.ts +47 -0
- package/dist/bundling-sources/shared_libs/play-runtime/sandbox-compute-usage.ts +20 -7
- package/dist/bundling-sources/shared_libs/play-runtime/sandbox-runs/contract.ts +12 -0
- package/dist/bundling-sources/shared_libs/play-runtime/sandbox-runs/index.ts +9 -0
- package/dist/bundling-sources/shared_libs/play-runtime/sandbox-runs/runner-backend-adapter.ts +10 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backend.ts +4 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +1496 -320
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-worker-required-env.ts +31 -1
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +1389 -129
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/receipt-gateway.ts +36 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/run-ledger-dispatch-authority.ts +4 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/run-ledger-outbox-recovery.ts +162 -23
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-event-search.ts +499 -115
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-capacity.ts +377 -9
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-ledger-reconciliation.ts +117 -8
- package/dist/bundling-sources/shared_libs/play-runtime/secret-resolution-retry-policy.ts +25 -0
- package/dist/bundling-sources/shared_libs/play-runtime/terminal-runtime-performance.ts +391 -0
- package/dist/bundling-sources/shared_libs/play-runtime/test-runtime-seams.ts +40 -0
- package/dist/bundling-sources/shared_libs/play-runtime/tool-call/index.ts +6 -0
- package/dist/bundling-sources/shared_libs/play-runtime/tool-call/mapped-calls.ts +171 -0
- package/dist/bundling-sources/shared_libs/play-runtime/tool-call/receipt-cohort.ts +16 -1
- package/dist/bundling-sources/shared_libs/play-runtime/tool-execute-retry-policy.ts +26 -3
- package/dist/bundling-sources/shared_libs/play-runtime/tool-result.ts +16 -2
- package/dist/bundling-sources/shared_libs/play-runtime/transport-error-diagnostics.ts +28 -0
- package/dist/bundling-sources/shared_libs/play-runtime/work-receipt-storage-contract.ts +55 -5
- package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +41 -1
- package/dist/bundling-sources/shared_libs/plays/contracts.ts +4 -0
- package/dist/bundling-sources/shared_libs/plays/dataset.ts +9 -3
- package/dist/bundling-sources/shared_libs/plays/deploy/manifest-contract.ts +2 -0
- package/dist/bundling-sources/shared_libs/plays/deploy/manifest.ts +3 -2
- package/dist/bundling-sources/shared_libs/plays/deploy/project-serializer.ts +2 -2
- package/dist/bundling-sources/shared_libs/plays/run-output-summary.ts +66 -0
- package/dist/bundling-sources/shared_libs/plays/script-entry.ts +1 -1
- package/dist/bundling-sources/shared_libs/product-notifications/catalog.ts +43 -1
- package/dist/bundling-sources/shared_libs/product-notifications/content.ts +9 -0
- package/dist/bundling-sources/shared_libs/product-notifications/email.ts +91 -13
- package/dist/bundling-sources/shared_libs/product-notifications/events.ts +3 -0
- package/dist/bundling-sources/shared_libs/product-notifications/slack-delivery.ts +41 -24
- package/dist/bundling-sources/shared_libs/security/attested-client-ip.ts +91 -0
- package/dist/bundling-sources/shared_libs/security/internal-actor.ts +0 -11
- package/dist/cli/{auth-HKA6ZVHQ.mjs → auth-JDLEY7VU.mjs} +5 -4
- package/dist/cli/auth-UXKY6TCC.js +41 -0
- package/dist/cli/{billing-MTO2ZZ3G.js → billing-HXAXB3XZ.js} +152 -78
- package/dist/cli/{billing-26G44S5N.mjs → billing-SDHLBLMV.mjs} +84 -10
- package/dist/cli/{chunk-BHGII2D6.js → chunk-3ACMRZRV.js} +8 -6
- package/dist/cli/{chunk-S4Q2XCGM.mjs → chunk-3KZCFOZ6.mjs} +1 -1
- package/dist/cli/chunk-4KQ6SIBC.mjs +1038 -0
- package/dist/cli/{chunk-Z2GUFYT6.js → chunk-5LEAXRHV.js} +11 -11
- package/dist/cli/{chunk-XAYO3Q2X.mjs → chunk-6NNVJDVR.mjs} +7 -5
- package/dist/cli/{chunk-NMJ4D2WO.js → chunk-6PMCRYDA.js} +216 -91
- package/dist/cli/{chunk-OMM54B3X.mjs → chunk-6RNQGWFD.mjs} +16 -806
- package/dist/cli/{chunk-EBU7LQ64.js → chunk-6V7KVRR5.js} +3 -3
- package/dist/cli/{chunk-RDPTDDKX.js → chunk-7LFIMWMW.js} +2 -2
- package/dist/cli/chunk-7MJ6VI2T.mjs +19 -0
- package/dist/cli/chunk-7SWNPNML.js +1039 -0
- package/dist/cli/{chunk-CTRPCARW.mjs → chunk-7U3XNPOA.mjs} +267 -38
- package/dist/cli/{chunk-RBTTUYZZ.js → chunk-7VZHXVOQ.js} +1 -1
- package/dist/cli/{chunk-YVBWO647.mjs → chunk-AT636LLU.mjs} +2 -2
- package/dist/cli/{chunk-VTODQWQA.js → chunk-BGTPIMSM.js} +392 -261
- package/dist/cli/{chunk-KADIT5NV.mjs → chunk-CKSOY47X.mjs} +2 -2
- package/dist/cli/{chunk-7DH2FD7Y.mjs → chunk-D464JW3N.mjs} +5 -85
- package/dist/cli/chunk-D6DXOUTO.mjs +827 -0
- package/dist/cli/{describe-QW54QQNB.js → chunk-EM4TXCCI.js} +27 -44
- package/dist/cli/chunk-F6QV42MC.mjs +91 -0
- package/dist/cli/chunk-FKVYR3QA.mjs +1039 -0
- package/dist/cli/{chunk-LMAULZLF.js → chunk-GEGW5HPZ.js} +29 -27
- package/dist/cli/{chunk-M52JQSLK.js → chunk-HUB3CCM2.js} +13 -4
- package/dist/cli/{chunk-YHTQM5XI.js → chunk-I6VHOU5O.js} +27 -27
- package/dist/cli/{chunk-Z2XUZC34.js → chunk-IAYSWZDJ.js} +188 -76
- package/dist/cli/chunk-JF3TLIMQ.js +19 -0
- package/dist/cli/{chunk-HDFRJ4IT.mjs → chunk-JVHOS3K3.mjs} +177 -65
- package/dist/cli/{chunk-LAWEURCT.mjs → chunk-LFXLQEZN.mjs} +1 -1
- package/dist/cli/{chunk-2PBN4SZE.js → chunk-LROWFPGN.js} +16 -16
- package/dist/cli/{chunk-SLEUWLJE.mjs → chunk-MSY22NQW.mjs} +5 -5
- package/dist/cli/{chunk-LVJOFUU7.mjs → chunk-MUUQZIOF.mjs} +23 -49
- package/dist/cli/{chunk-2XHWOQF4.js → chunk-NBLSCHKK.js} +52 -50
- package/dist/cli/{chunk-526R2HON.mjs → chunk-NHRWZPWZ.mjs} +4 -2
- package/dist/cli/{chunk-KXMNM4AQ.js → chunk-NMU3VR5U.js} +4 -5
- package/dist/cli/{chunk-W3BE3CHK.mjs → chunk-O2RX5A66.mjs} +14 -12
- package/dist/cli/{chunk-UKFZT7RF.js → chunk-OMQ23IXL.js} +2 -2
- package/dist/cli/{chunk-LJTFZOHU.js → chunk-OPJAJBD4.js} +28 -54
- package/dist/cli/{chunk-MLFR6DVF.mjs → chunk-PHSEINNH.mjs} +5 -5
- package/dist/cli/{chunk-3DNKFH2G.mjs → chunk-PKHVSIJG.mjs} +19 -1
- package/dist/cli/{chunk-WIYWSYDS.mjs → chunk-Q2EIZKVX.mjs} +3 -3
- package/dist/cli/{chunk-VJAEA4CS.js → chunk-QJZ6WNWD.js} +8 -8
- package/dist/cli/{chunk-EIMG75BT.mjs → chunk-S3A4IXBQ.mjs} +4 -5
- package/dist/cli/{chunk-RZSTT45F.mjs → chunk-S42YIQNE.mjs} +13 -8
- package/dist/cli/{chunk-YULBYKAK.mjs → chunk-S6UAJR6V.mjs} +3 -3
- package/dist/cli/{chunk-G7L27KZB.mjs → chunk-TKAQR3IB.mjs} +31 -21
- package/dist/cli/{chunk-QWRHGGUH.js → chunk-UAJFWWZE.js} +20 -2
- package/dist/cli/{chunk-ZR2RLI4O.mjs → chunk-UDRPEZ5F.mjs} +223 -92
- package/dist/cli/{chunk-QGAWTBIR.js → chunk-ULK7JGGI.js} +511 -282
- package/dist/cli/chunk-V335HGX5.js +1038 -0
- package/dist/cli/{chunk-NH6JSJW6.mjs → chunk-V3MEA7NB.mjs} +7 -5
- package/dist/cli/{chunk-NRGGFVVB.js → chunk-VFGVXXZP.js} +37 -35
- package/dist/cli/chunk-VLEVVDWG.js +91 -0
- package/dist/cli/{chunk-R2GLGLDR.mjs → chunk-VPHN2HAL.mjs} +216 -91
- package/dist/cli/{chunk-CFUTOWE4.js → chunk-WG3KGAII.js} +8 -88
- package/dist/cli/{describe-TOMIAT37.mjs → chunk-WIY6U6GD.mjs} +19 -36
- package/dist/cli/{chunk-YS2YBSJB.js → chunk-XANRM3QA.js} +6 -6
- package/dist/cli/{chunk-KGQNIA37.js → chunk-XQCTG5OO.js} +44 -34
- package/dist/cli/{chunk-EJGBLXDZ.mjs → chunk-XZAFIOUQ.mjs} +1 -1
- package/dist/cli/chunk-Y4DPU4OM.js +827 -0
- package/dist/cli/chunk-YT5EODJO.js +920 -0
- package/dist/cli/{chunk-2WRO2UJ5.js → chunk-ZGQSFYD2.js} +56 -51
- package/dist/cli/{chunk-OJ6RUKVT.mjs → chunk-ZUK6LIJB.mjs} +10 -1
- package/dist/cli/command-docs.d.mts +5 -0
- package/dist/cli/command-docs.d.ts +5 -0
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-6FNFYJUC.js → csv-C56GSCEU.js} +13 -12
- package/dist/cli/{csv-MDHT4BKK.mjs → csv-L54JS7TF.mjs} +4 -3
- package/dist/cli/{db-D6AMVOEW.js → db-MOGRMZTA.js} +30 -27
- package/dist/cli/{db-74O3RFWY.mjs → db-YVBUW2DX.mjs} +10 -7
- package/dist/cli/describe-KYEULWPG.js +48 -0
- package/dist/cli/describe-NLZKKT7C.mjs +48 -0
- package/dist/cli/describe-core.d.mts +153 -5
- package/dist/cli/describe-core.d.ts +153 -5
- package/dist/cli/describe-core.js +9 -5
- package/dist/cli/describe-core.mjs +10 -6
- package/dist/cli/{executions-N4FMGVSC.js → executions-A7L4ULPP.js} +9 -7
- package/dist/cli/{executions-PVSF4HUF.mjs → executions-ZBGSTT37.mjs} +7 -5
- package/dist/cli/{feedback-OB7NANZW.mjs → feedback-G6GU37FD.mjs} +6 -5
- package/dist/cli/{feedback-WFSPCAI2.js → feedback-OHLY7RYD.js} +10 -9
- package/dist/cli/getting-started.d.mts +6 -6
- package/dist/cli/getting-started.d.ts +6 -6
- package/dist/cli/getting-started.js +2 -2
- package/dist/cli/getting-started.mjs +1 -1
- package/dist/cli/git-P76N4NDQ.js +25 -0
- package/dist/cli/{git-FHUSPAEU.mjs → git-PKZW3QD5.mjs} +5 -4
- package/dist/cli/index.js +152 -142
- package/dist/cli/index.mjs +56 -46
- package/dist/cli/{legacy-noops-ECHNA5HN.js → legacy-noops-5LM3D724.js} +8 -7
- package/dist/cli/{legacy-noops-HMK4BSCI.mjs → legacy-noops-LJJYG6YA.mjs} +5 -4
- package/dist/cli/{monitors-U7VQ3EZM.mjs → monitors-72QV4ALO.mjs} +19 -6
- package/dist/cli/{monitors-XLLFNENH.js → monitors-UX3H5DC2.js} +103 -90
- package/dist/cli/{org-6H3USO5M.mjs → org-6RRRKOCP.mjs} +9 -6
- package/dist/cli/{org-QX6ER2HN.js → org-IF7ISUVB.js} +70 -67
- package/dist/cli/pages-3SU3HKL7.js +252 -0
- package/dist/cli/pages-DXDYYKEK.mjs +252 -0
- package/dist/cli/{play-MOB2WYOR.mjs → play-AHASKRLA.mjs} +512 -1508
- package/dist/cli/{play-WNB7HBZK.js → play-EUIUVLUH.js} +1090 -2086
- package/dist/cli/{providers-CXEZ23E2.mjs → providers-GWGE3WY3.mjs} +7 -5
- package/dist/cli/{providers-7M3DISKX.js → providers-V5WU4VXJ.js} +10 -8
- package/dist/cli/{quickstart-ZFCHKHF6.mjs → quickstart-OXKQ5ZST.mjs} +5 -4
- package/dist/cli/{quickstart-CLJT4AZL.js → quickstart-QP65I5PF.js} +13 -12
- package/dist/cli/run-6MM72IGL.mjs +443 -0
- package/dist/cli/run-F3FTYS56.js +443 -0
- package/dist/cli/search-OYKOOI7A.js +32 -0
- package/dist/cli/{search-FVYWYIC3.mjs → search-ZMEBVJZB.mjs} +8 -6
- package/dist/cli/{secrets-YRLKZQS5.js → secrets-ACND5N6A.js} +16 -14
- package/dist/cli/{secrets-WAMPTQFC.mjs → secrets-XRCJFF3L.mjs} +7 -5
- package/dist/cli/{sessions-IQ332BJH.mjs → sessions-RTK3CEW6.mjs} +5 -4
- package/dist/cli/{sessions-44J6WIVU.js → sessions-ZGRJPCFF.js} +6 -5
- package/dist/cli/{settings-4IJR2I2T.js → settings-PD5KWQQZ.js} +80 -77
- package/dist/cli/{settings-22S6NIFQ.mjs → settings-XDRBPRDE.mjs} +14 -11
- package/dist/cli/{setup-OZUPKKPW.mjs → setup-3HPYAOCC.mjs} +12 -10
- package/dist/cli/{setup-3FWSRNOX.js → setup-E2Q6PXHC.js} +53 -51
- package/dist/cli/{skills-5CW3NFP3.mjs → skills-OOQFMPOV.mjs} +7 -6
- package/dist/cli/skills-XYWV52KB.js +31 -0
- package/dist/cli/tools-ASCDZJCK.js +55 -0
- package/dist/cli/tools-C5ZT3UIC.mjs +55 -0
- package/dist/cli/update-5RQSEIFM.js +33 -0
- package/dist/cli/{update-IBULOV7P.mjs → update-ZWJTADIW.mjs} +9 -8
- package/dist/cli/{workflow-MVZT7MWT.mjs → workflow-23NMPAJ7.mjs} +10 -8
- package/dist/cli/{workflow-Z7FW6GT2.js → workflow-TCXU5YJV.js} +20 -18
- package/dist/client-DS2IWYZF.d.ts +10 -0
- package/dist/client-DTwnz_AW.d.mts +10 -0
- package/dist/{client-CYqG23K1.d.ts → client-core-B_6HAIBy.d.ts} +385 -12
- package/dist/{client-BbU5_j7n.d.mts → client-core-DzBSlY1U.d.mts} +385 -12
- package/dist/{compiler-manifest-CWz_sNOQ.d.mts → compiler-manifest-Dcyd3-Zd.d.mts} +43 -1
- package/dist/{compiler-manifest-CWz_sNOQ.d.ts → compiler-manifest-Dcyd3-Zd.d.ts} +43 -1
- package/dist/errors-d-sTrZhe.d.mts +142 -0
- package/dist/errors-yQwfgrcX.d.ts +142 -0
- package/dist/{index-BF2JB_Ug.d.mts → index-C6oXchjN.d.mts} +1 -1
- package/dist/{index-4NPXDzlD.d.ts → index-P56zy_z5.d.ts} +1 -1
- package/dist/index.d.mts +11 -147
- package/dist/index.d.ts +11 -147
- package/dist/index.js +15 -11
- package/dist/index.mjs +14 -10
- package/dist/install-integrity.json +141 -104
- package/dist/plays/bundle-play-file.d.mts +3 -3
- package/dist/plays/bundle-play-file.d.ts +3 -3
- package/dist/plays/bundle-play-file.mjs +2 -1
- package/dist/plays/play-description.d.mts +2 -2
- package/dist/plays/play-description.d.ts +2 -2
- package/dist/plays/play-description.js +2 -2
- package/dist/plays/play-description.mjs +1 -1
- package/dist/plays/run-request.d.mts +2 -2
- package/dist/plays/run-request.d.ts +2 -2
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/dist/server.d.mts +17 -0
- package/dist/server.d.ts +17 -0
- package/dist/server.js +76 -0
- package/dist/server.mjs +76 -0
- package/package.json +6 -1
- package/dist/cli/auth-VDOCNR7H.js +0 -40
- package/dist/cli/chunk-PQUUWFXY.js +0 -95
- package/dist/cli/chunk-QJLKYYPX.js +0 -1710
- package/dist/cli/chunk-YBWAG72P.mjs +0 -95
- package/dist/cli/git-4PMBJSH5.js +0 -24
- package/dist/cli/search-4CCQCTVD.js +0 -30
- package/dist/cli/skills-LMNM6B5F.js +0 -30
- package/dist/cli/tools-AGBBDJ7P.js +0 -45
- package/dist/cli/tools-NOPBDRGW.mjs +0 -45
- package/dist/cli/update-U3W6USVD.js +0 -32
|
@@ -1,6 +1,6 @@
|
|
|
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 _chunkHUB3CCM2js = require('./chunk-HUB3CCM2.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
@@ -12,18 +12,21 @@ var _chunkM52JQSLKjs = require('./chunk-M52JQSLK.js');
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
+
var _chunkY4DPU4OMjs = require('./chunk-Y4DPU4OM.js');
|
|
15
16
|
|
|
16
17
|
|
|
17
18
|
|
|
18
19
|
|
|
19
20
|
|
|
20
|
-
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
var _chunkYT5EODJOjs = require('./chunk-YT5EODJO.js');
|
|
21
24
|
|
|
22
25
|
|
|
23
26
|
var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
|
|
24
27
|
|
|
25
28
|
|
|
26
|
-
var
|
|
29
|
+
var _chunk7VZHXVOQjs = require('./chunk-7VZHXVOQ.js');
|
|
27
30
|
|
|
28
31
|
// src/compat.ts
|
|
29
32
|
var _crypto = require('crypto');
|
|
@@ -58,7 +61,7 @@ function shouldSkipCompatibilityCheck() {
|
|
|
58
61
|
return value === "1" || value === "true" || value === "yes";
|
|
59
62
|
}
|
|
60
63
|
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, )) {
|
|
61
|
-
return _path.join.call(void 0,
|
|
64
|
+
return _path.join.call(void 0, _chunkY4DPU4OMjs.sdkCliStateDirPath.call(void 0, baseUrl, homeDir), "compat-cache.json");
|
|
62
65
|
}
|
|
63
66
|
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, )) {
|
|
64
67
|
return _path.join.call(void 0, homeDir, ".cache", "deepline", "sdk-compat-cache.json");
|
|
@@ -66,9 +69,9 @@ function legacySdkCompatibilityCachePath(homeDir = _optionalChain([process, 'acc
|
|
|
66
69
|
function compatibilityCacheKey(baseUrl, command, skillsVersion) {
|
|
67
70
|
return JSON.stringify({
|
|
68
71
|
baseUrl: baseUrl.replace(/\/$/, ""),
|
|
69
|
-
version:
|
|
70
|
-
apiContract:
|
|
71
|
-
apiMajor:
|
|
72
|
+
version: _chunkYT5EODJOjs.SDK_VERSION,
|
|
73
|
+
apiContract: _chunkYT5EODJOjs.SDK_API_CONTRACT,
|
|
74
|
+
apiMajor: _chunkYT5EODJOjs.SDK_API_MAJOR,
|
|
72
75
|
command: _optionalChain([command, 'optionalAccess', _15 => _15.trim, 'call', _16 => _16()]) || null,
|
|
73
76
|
skillsVersion: _nullishCoalesce(skillsVersion, () => ( null))
|
|
74
77
|
});
|
|
@@ -76,8 +79,8 @@ function compatibilityCacheKey(baseUrl, command, skillsVersion) {
|
|
|
76
79
|
function legacyCompatibilityCacheKey(baseUrl, command) {
|
|
77
80
|
return JSON.stringify({
|
|
78
81
|
baseUrl: baseUrl.replace(/\/$/, ""),
|
|
79
|
-
version:
|
|
80
|
-
apiContract:
|
|
82
|
+
version: _chunkYT5EODJOjs.SDK_VERSION,
|
|
83
|
+
apiContract: _chunkYT5EODJOjs.SDK_API_CONTRACT,
|
|
81
84
|
command: _optionalChain([command, 'optionalAccess', _17 => _17.trim, 'call', _18 => _18()]) || null
|
|
82
85
|
});
|
|
83
86
|
}
|
|
@@ -102,7 +105,7 @@ function isSavedWithin(savedAt, windowMs, now) {
|
|
|
102
105
|
}
|
|
103
106
|
var UPDATE_ADVISORY_INTERVAL_MS = 24 * 60 * 60 * 1e3;
|
|
104
107
|
function claimUpdateAdvisory(baseUrl, now = Date.now()) {
|
|
105
|
-
const path = _path.join.call(void 0,
|
|
108
|
+
const path = _path.join.call(void 0, _chunkY4DPU4OMjs.sdkCliStateDirPath.call(void 0, baseUrl), "update-advisory.json");
|
|
106
109
|
try {
|
|
107
110
|
const { shownAt } = JSON.parse(_fs.readFileSync.call(void 0, path, "utf8"));
|
|
108
111
|
if (isSavedWithin(shownAt, UPDATE_ADVISORY_INTERVAL_MS, now)) return false;
|
|
@@ -186,7 +189,7 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
|
|
|
186
189
|
);
|
|
187
190
|
try {
|
|
188
191
|
const url = new URL("/api/v2/sdk/compat", baseUrl);
|
|
189
|
-
url.searchParams.set("version",
|
|
192
|
+
url.searchParams.set("version", _chunkYT5EODJOjs.SDK_VERSION);
|
|
190
193
|
if (_optionalChain([options, 'access', _27 => _27.command, 'optionalAccess', _28 => _28.trim, 'call', _29 => _29()])) {
|
|
191
194
|
url.searchParams.set("command", options.command.trim());
|
|
192
195
|
}
|
|
@@ -194,7 +197,7 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
|
|
|
194
197
|
url.searchParams.set("skills_version", _nullishCoalesce(options.skillsVersion, () => ( "")));
|
|
195
198
|
url.searchParams.set(
|
|
196
199
|
"skills_cli_capability",
|
|
197
|
-
String(
|
|
200
|
+
String(_chunk7VZHXVOQjs.SDK_RELEASE.packageCapabilities.skillsGuidance)
|
|
198
201
|
);
|
|
199
202
|
}
|
|
200
203
|
if (options.catalog) {
|
|
@@ -206,14 +209,14 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
|
|
|
206
209
|
const response = await fetch(url, {
|
|
207
210
|
method: "GET",
|
|
208
211
|
headers: {
|
|
209
|
-
...
|
|
210
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
211
|
-
"X-Deepline-SDK-Version":
|
|
212
|
-
"X-Deepline-API-Major": String(
|
|
213
|
-
"X-Deepline-API-Contract":
|
|
212
|
+
..._chunkYT5EODJOjs.deploymentProtectionHeaders.call(void 0, ),
|
|
213
|
+
"User-Agent": `deepline-ts-sdk/${_chunkYT5EODJOjs.SDK_VERSION}`,
|
|
214
|
+
"X-Deepline-SDK-Version": _chunkYT5EODJOjs.SDK_VERSION,
|
|
215
|
+
"X-Deepline-API-Major": String(_chunkYT5EODJOjs.SDK_API_MAJOR),
|
|
216
|
+
"X-Deepline-API-Contract": _chunkYT5EODJOjs.SDK_API_CONTRACT,
|
|
214
217
|
"X-Deepline-CLI-Update-Preferences": "1",
|
|
215
218
|
"X-Deepline-CLI-Auto-Update-Capability": SDK_CLI_AUTO_UPDATE_CAPABILITY,
|
|
216
|
-
...options.catalog ? { Authorization: `Bearer ${
|
|
219
|
+
...options.catalog ? { Authorization: `Bearer ${_chunkY4DPU4OMjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl)}` } : {},
|
|
217
220
|
..._optionalChain([options, 'access', _30 => _30.catalog, 'optionalAccess', _31 => _31.cliInvocationId]) ? { "X-Deepline-CLI-Invocation-ID": options.catalog.cliInvocationId } : {}
|
|
218
221
|
},
|
|
219
222
|
signal: controller.signal
|
|
@@ -374,7 +377,7 @@ function skillsSourceUrl(baseUrl) {
|
|
|
374
377
|
function buildSkillsAddArgs(baseUrl, skillName, options = {}) {
|
|
375
378
|
const skillNames = Array.isArray(skillName) ? skillName : [skillName];
|
|
376
379
|
const [firstSkillName, ...extraSkillNames] = skillNames;
|
|
377
|
-
const agents = _nullishCoalesce(options.agents, () => (
|
|
380
|
+
const agents = _nullishCoalesce(options.agents, () => ( _chunkY4DPU4OMjs.DEFAULT_SKILL_AGENTS));
|
|
378
381
|
const values = {
|
|
379
382
|
skills_index_url: skillsIndexUrl(baseUrl),
|
|
380
383
|
skills_source_url: skillsSourceUrl(baseUrl),
|
|
@@ -593,7 +596,7 @@ function buildEnvironmentContext() {
|
|
|
593
596
|
node_version: process.version,
|
|
594
597
|
runtime: "Node.js",
|
|
595
598
|
hostname: _os.hostname.call(void 0, ),
|
|
596
|
-
agent_runtime:
|
|
599
|
+
agent_runtime: _chunkYT5EODJOjs.detectAgentRuntime.call(void 0, )
|
|
597
600
|
};
|
|
598
601
|
for (const key of ["CLAUDE_CODE_REMOTE", "DEEPLINE_PLUGIN_MODE"]) {
|
|
599
602
|
const normalized = _optionalChain([process, 'access', _42 => _42.env, 'access', _43 => _43[key], 'optionalAccess', _44 => _44.trim, 'call', _45 => _45()]);
|
|
@@ -614,16 +617,18 @@ function buildEnvironmentContext() {
|
|
|
614
617
|
return context;
|
|
615
618
|
}
|
|
616
619
|
function failureReportHeaders(apiKey) {
|
|
620
|
+
const agentSessionId = _chunkYT5EODJOjs.agentSessionIdFromEnvironment.call(void 0, );
|
|
617
621
|
return {
|
|
618
|
-
...
|
|
622
|
+
..._chunkYT5EODJOjs.deploymentProtectionHeaders.call(void 0, ),
|
|
623
|
+
...agentSessionId ? { "X-Deepline-Agent-Session-Id": agentSessionId } : {},
|
|
619
624
|
Authorization: `Bearer ${apiKey}`,
|
|
620
625
|
"Content-Type": "application/json",
|
|
621
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
626
|
+
"User-Agent": `deepline-ts-sdk/${_chunkYT5EODJOjs.SDK_VERSION}`,
|
|
622
627
|
"X-Deepline-Client-Family": "sdk",
|
|
623
628
|
"X-Deepline-CLI-Family": "sdk",
|
|
624
|
-
"X-Deepline-Agent-Runtime":
|
|
625
|
-
"X-Deepline-CLI-Version":
|
|
626
|
-
"X-Deepline-SDK-Version":
|
|
629
|
+
"X-Deepline-Agent-Runtime": _chunkYT5EODJOjs.detectAgentRuntime.call(void 0, ),
|
|
630
|
+
"X-Deepline-CLI-Version": _chunkYT5EODJOjs.SDK_VERSION,
|
|
631
|
+
"X-Deepline-SDK-Version": _chunkYT5EODJOjs.SDK_VERSION
|
|
627
632
|
};
|
|
628
633
|
}
|
|
629
634
|
async function postFailureReport(input) {
|
|
@@ -651,7 +656,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
|
|
|
651
656
|
if (isFailureReportingDisabled()) return false;
|
|
652
657
|
let apiKey = "";
|
|
653
658
|
try {
|
|
654
|
-
apiKey =
|
|
659
|
+
apiKey = _chunkY4DPU4OMjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
|
|
655
660
|
} catch (e9) {
|
|
656
661
|
return false;
|
|
657
662
|
}
|
|
@@ -678,7 +683,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
|
|
|
678
683
|
failure_code: failureCode2,
|
|
679
684
|
failure_stage: failureStage,
|
|
680
685
|
error_body: "Automatic Deepline skills installation failed.",
|
|
681
|
-
cli_version:
|
|
686
|
+
cli_version: _chunkYT5EODJOjs.SDK_VERSION,
|
|
682
687
|
context: {
|
|
683
688
|
environment: buildEnvironmentContext(),
|
|
684
689
|
skills_sync: {
|
|
@@ -798,7 +803,7 @@ function buildFailureReport(input) {
|
|
|
798
803
|
failure_kind: failureKind,
|
|
799
804
|
failure_code: code,
|
|
800
805
|
failure_stage: input.error === void 0 ? "command_exit" : "cli_main",
|
|
801
|
-
cli_version:
|
|
806
|
+
cli_version: _chunkYT5EODJOjs.SDK_VERSION,
|
|
802
807
|
context: {
|
|
803
808
|
base_url: redactFailureText(input.baseUrl, 400),
|
|
804
809
|
command_summary: sanitizeCommand(input.argv),
|
|
@@ -818,8 +823,8 @@ async function maybeReportSdkCliFailure(input) {
|
|
|
818
823
|
if (isServerLoggedPlayRunStartFailure(input)) return false;
|
|
819
824
|
const exitCode = resolvedExitCode(input);
|
|
820
825
|
if (!shouldReport({ exitCode, error: input.error })) return false;
|
|
821
|
-
const baseUrl =
|
|
822
|
-
const apiKey =
|
|
826
|
+
const baseUrl = _chunkY4DPU4OMjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
827
|
+
const apiKey = _chunkY4DPU4OMjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
823
828
|
if (!apiKey) return false;
|
|
824
829
|
return postFailureReport({
|
|
825
830
|
baseUrl,
|
|
@@ -856,25 +861,25 @@ var CHECK_TIMEOUT_MS2 = 3e3;
|
|
|
856
861
|
var INSTALLER_PROBE_TIMEOUT_MS = 1e3;
|
|
857
862
|
var PUBLISHED_VERIFICATION_RETRY_MS = 5 * 6e4;
|
|
858
863
|
function shouldSkipSkillsSync() {
|
|
859
|
-
if (
|
|
864
|
+
if (_chunkYT5EODJOjs.detectAgentRuntime.call(void 0, ) === "claude_cowork" || isCiEnvironment()) {
|
|
860
865
|
return true;
|
|
861
866
|
}
|
|
862
867
|
const value = _optionalChain([process, 'access', _66 => _66.env, 'access', _67 => _67.DEEPLINE_SKIP_SKILLS_SYNC, 'optionalAccess', _68 => _68.trim, 'call', _69 => _69(), 'access', _70 => _70.toLowerCase, 'call', _71 => _71()]);
|
|
863
868
|
return value === "1" || value === "true" || value === "yes" || value === "on";
|
|
864
869
|
}
|
|
865
870
|
function unavailableSkillsNoticePath(baseUrl) {
|
|
866
|
-
return _path.join.call(void 0,
|
|
871
|
+
return _path.join.call(void 0, _chunkY4DPU4OMjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-sync-unavailable-version");
|
|
867
872
|
}
|
|
868
873
|
var SKILLS_SYNC_IN_PROGRESS_TTL_MS = 10 * 60 * 1e3;
|
|
869
874
|
var SKILLS_SYNC_IN_PROGRESS_PID_CAP_MS = 6 * 60 * 60 * 1e3;
|
|
870
|
-
var agentLeaseSegment =
|
|
875
|
+
var agentLeaseSegment = _chunkY4DPU4OMjs.skillsAgentPathSegment;
|
|
871
876
|
function sortedLeaseAgents(agents) {
|
|
872
|
-
const expanded = agents.includes("*") ? [...agents, ...
|
|
877
|
+
const expanded = agents.includes("*") ? [...agents, ..._chunkY4DPU4OMjs.KNOWN_SKILL_AGENTS] : agents;
|
|
873
878
|
return [...new Set(expanded)].sort((a, b) => a.localeCompare(b));
|
|
874
879
|
}
|
|
875
880
|
function inProgressSkillsSyncPath(baseUrl, agent) {
|
|
876
881
|
return _path.join.call(void 0,
|
|
877
|
-
|
|
882
|
+
_chunkY4DPU4OMjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
878
883
|
`skills-sync-in-progress-${agentLeaseSegment(agent)}`
|
|
879
884
|
);
|
|
880
885
|
}
|
|
@@ -1033,7 +1038,7 @@ var SkillsStateUnavailableError = class extends Error {
|
|
|
1033
1038
|
constructor(baseUrl, error) {
|
|
1034
1039
|
const detail = error instanceof Error ? error.message : String(error);
|
|
1035
1040
|
super(
|
|
1036
|
-
`Could not save skills state in ${
|
|
1041
|
+
`Could not save skills state in ${_chunkY4DPU4OMjs.sdkCliStateDirPath.call(void 0, baseUrl)}: ${detail}`
|
|
1037
1042
|
);
|
|
1038
1043
|
this.name = "SkillsStateUnavailableError";
|
|
1039
1044
|
}
|
|
@@ -1118,7 +1123,7 @@ function skillsInstallLeasePath(baseUrl, agents) {
|
|
|
1118
1123
|
}
|
|
1119
1124
|
function deferredSkillsNoticePath(baseUrl, agents) {
|
|
1120
1125
|
return _path.join.call(void 0,
|
|
1121
|
-
|
|
1126
|
+
_chunkY4DPU4OMjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
1122
1127
|
`skills-sync-notice-${sortedLeaseAgents(agents).map(agentLeaseSegment).join("-")}`
|
|
1123
1128
|
);
|
|
1124
1129
|
}
|
|
@@ -1152,8 +1157,8 @@ function flushDeferredSkillsNotices(baseUrl, agents) {
|
|
|
1152
1157
|
if (text.trim()) writeSdkSkillsStatusLine(text.trimEnd());
|
|
1153
1158
|
}
|
|
1154
1159
|
function flushDeferredSkillsSyncNotices(baseUrl) {
|
|
1155
|
-
if (shouldSkipSkillsSync() ||
|
|
1156
|
-
const agents =
|
|
1160
|
+
if (shouldSkipSkillsSync() || _chunkY4DPU4OMjs.hasActivePluginSkills.call(void 0, )) return;
|
|
1161
|
+
const agents = _chunkY4DPU4OMjs.resolveAutoSyncSkillAgents.call(void 0, );
|
|
1157
1162
|
if (agents.length === 0) return;
|
|
1158
1163
|
flushDeferredSkillsNotices(baseUrl, agents);
|
|
1159
1164
|
}
|
|
@@ -1169,7 +1174,7 @@ function spawnDetachedSkillsSyncChild(argv, onSpawnError) {
|
|
|
1169
1174
|
}
|
|
1170
1175
|
function failedSkillsSyncPath(baseUrl, agents) {
|
|
1171
1176
|
return _path.join.call(void 0,
|
|
1172
|
-
|
|
1177
|
+
_chunkY4DPU4OMjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
1173
1178
|
`skills-sync-failed-${sortedLeaseAgents(agents).map(agentLeaseSegment).join("-")}-version`
|
|
1174
1179
|
);
|
|
1175
1180
|
}
|
|
@@ -1198,7 +1203,7 @@ function writeUnavailableSkillsNotice(baseUrl, remoteVersion, skillNames, reason
|
|
|
1198
1203
|
if (hasMarkedSkillsSyncVersion(path, remoteVersion)) return;
|
|
1199
1204
|
writeMarkedSkillsSyncVersion(path, remoteVersion);
|
|
1200
1205
|
const probes = reason === "no-installer" ? _nullishCoalesce(knownProbes, () => ( probeInstallers())) : null;
|
|
1201
|
-
const manualCommand = _optionalChain([probes, 'optionalAccess', _75 => _75.npx]) === "missing" && probes.bunx !== "missing" ? `bunx ${buildBunxSkillsInstallArgs(baseUrl, skillNames,
|
|
1206
|
+
const manualCommand = _optionalChain([probes, 'optionalAccess', _75 => _75.npx]) === "missing" && probes.bunx !== "missing" ? `bunx ${buildBunxSkillsInstallArgs(baseUrl, skillNames, _chunkY4DPU4OMjs.DEFAULT_SKILL_AGENTS).map(shellQuote).join(" ")}` : `npx ${buildSkillsInstallArgs(baseUrl, skillNames).join(" ")}`;
|
|
1202
1207
|
const explanation = reason === "unsupported-agent" ? "the detected agent has no automatic skills sync target. Automatic sync was skipped." : _optionalChain([probes, 'optionalAccess', _76 => _76.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.`;
|
|
1203
1208
|
notice(
|
|
1204
1209
|
`Deepline agent skills are out of date, but ${explanation} To install manually, run:
|
|
@@ -1286,7 +1291,7 @@ function buildSdkSkillNames(v1SkillNames2) {
|
|
|
1286
1291
|
return sortedUniqueSkillNames(v1SkillNames2);
|
|
1287
1292
|
}
|
|
1288
1293
|
function isDefaultAgentSet(agents) {
|
|
1289
|
-
return agents.length ===
|
|
1294
|
+
return agents.length === _chunkY4DPU4OMjs.DEFAULT_SKILL_AGENTS.length && agents.every((agent, index) => agent === _chunkY4DPU4OMjs.DEFAULT_SKILL_AGENTS[index]);
|
|
1290
1295
|
}
|
|
1291
1296
|
function safeSkillFilePath(value) {
|
|
1292
1297
|
if (typeof value !== "string" || !value) return false;
|
|
@@ -1443,10 +1448,10 @@ async function fetchSkillsUpdate(baseUrl, localVersion) {
|
|
|
1443
1448
|
method: "POST",
|
|
1444
1449
|
headers: { "Content-Type": "application/json" },
|
|
1445
1450
|
body: JSON.stringify({
|
|
1446
|
-
sdk_cli: { version:
|
|
1451
|
+
sdk_cli: { version: _chunkYT5EODJOjs.SDK_VERSION },
|
|
1447
1452
|
skills: {
|
|
1448
1453
|
version: localVersion,
|
|
1449
|
-
capability:
|
|
1454
|
+
capability: _chunk7VZHXVOQjs.SDK_RELEASE.packageCapabilities.skillsGuidance
|
|
1450
1455
|
}
|
|
1451
1456
|
}),
|
|
1452
1457
|
signal: controller.signal
|
|
@@ -1485,7 +1490,7 @@ function probeInstallers(timeoutMs) {
|
|
|
1485
1490
|
}
|
|
1486
1491
|
function noInstallerProbePath(baseUrl) {
|
|
1487
1492
|
return _path.join.call(void 0,
|
|
1488
|
-
|
|
1493
|
+
_chunkY4DPU4OMjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
1489
1494
|
"skills-sync-no-installer-unknown.json"
|
|
1490
1495
|
);
|
|
1491
1496
|
}
|
|
@@ -1564,7 +1569,7 @@ function temporarySkillsSyncSkipCommand() {
|
|
|
1564
1569
|
function resolveSkillsInstallSpawn(install, platform2 = process.platform) {
|
|
1565
1570
|
return resolveShellSpawn(install.command, install.args, platform2);
|
|
1566
1571
|
}
|
|
1567
|
-
function resolveSkillsInstallCommands(baseUrl, skillNames = DEFAULT_SDK_SKILL_NAMES, agents =
|
|
1572
|
+
function resolveSkillsInstallCommands(baseUrl, skillNames = DEFAULT_SDK_SKILL_NAMES, agents = _chunkY4DPU4OMjs.DEFAULT_SKILL_AGENTS, knownProbes) {
|
|
1568
1573
|
const commands = [];
|
|
1569
1574
|
const probes = _nullishCoalesce(knownProbes, () => ( probeInstallers()));
|
|
1570
1575
|
if (probes.bunx === "available") {
|
|
@@ -1706,7 +1711,7 @@ function runLegacySkillsCleanup(agents) {
|
|
|
1706
1711
|
}
|
|
1707
1712
|
}
|
|
1708
1713
|
function writeSdkSkillsStatusLine(line) {
|
|
1709
|
-
const progress =
|
|
1714
|
+
const progress = _chunkHUB3CCM2js.getActiveCliProgress.call(void 0, );
|
|
1710
1715
|
if (progress) {
|
|
1711
1716
|
progress.writeLine(line);
|
|
1712
1717
|
return;
|
|
@@ -1716,11 +1721,11 @@ function writeSdkSkillsStatusLine(line) {
|
|
|
1716
1721
|
}
|
|
1717
1722
|
async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
|
|
1718
1723
|
if (shouldSkipSkillsSync()) return;
|
|
1719
|
-
const usingPluginSkills =
|
|
1724
|
+
const usingPluginSkills = _chunkY4DPU4OMjs.hasActivePluginSkills.call(void 0, );
|
|
1720
1725
|
if (usingPluginSkills) {
|
|
1721
1726
|
return;
|
|
1722
1727
|
}
|
|
1723
|
-
const agents =
|
|
1728
|
+
const agents = _chunkY4DPU4OMjs.resolveAutoSyncSkillAgents.call(void 0, );
|
|
1724
1729
|
if (options.mode === "detached" && agents.length > 0) {
|
|
1725
1730
|
flushDeferredSkillsNotices(baseUrl, agents);
|
|
1726
1731
|
}
|
|
@@ -1748,7 +1753,7 @@ async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
|
|
|
1748
1753
|
return;
|
|
1749
1754
|
}
|
|
1750
1755
|
try {
|
|
1751
|
-
const localVersion =
|
|
1756
|
+
const localVersion = _chunkY4DPU4OMjs.readSdkSkillsLocalVersion.call(void 0, baseUrl);
|
|
1752
1757
|
const update = options.update === void 0 ? claimedVersion ? { needsUpdate: true, remoteVersion: claimedVersion } : await fetchSkillsUpdate(baseUrl, localVersion) : options.update ? {
|
|
1753
1758
|
needsUpdate: options.update.needs_update,
|
|
1754
1759
|
remoteVersion: options.update.remote.version
|
|
@@ -1914,7 +1919,7 @@ async function runInlineSkillsSync(baseUrl, remoteVersion, agents, notices) {
|
|
|
1914
1919
|
}
|
|
1915
1920
|
}
|
|
1916
1921
|
runLegacySkillsCleanup(agents);
|
|
1917
|
-
if (!
|
|
1922
|
+
if (!_chunkY4DPU4OMjs.writeSdkSkillsLocalVersion.call(void 0, baseUrl, update.remoteVersion, agents)) {
|
|
1918
1923
|
notice(
|
|
1919
1924
|
"Deepline agent skills installed, but the local skills version could not be recorded. A later command will retry the refresh."
|
|
1920
1925
|
);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isJsonOutputMode
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-NHRWZPWZ.mjs";
|
|
4
4
|
|
|
5
5
|
// src/cli/progress.ts
|
|
6
6
|
import { Worker } from "worker_threads";
|
|
@@ -12,11 +12,16 @@ var CliProgress = class {
|
|
|
12
12
|
dim = "\x1B[2m";
|
|
13
13
|
reset = "\x1B[0m";
|
|
14
14
|
worker = null;
|
|
15
|
+
/** Where live log lines go instead of stderr, as `deepline run --logs-out` sets. */
|
|
16
|
+
logWriter = null;
|
|
15
17
|
enabled;
|
|
16
18
|
// --json output is one JSON document: progress never renders under it.
|
|
17
19
|
constructor(enabled) {
|
|
18
20
|
this.enabled = enabled && !isJsonOutputMode();
|
|
19
21
|
}
|
|
22
|
+
setLogWriter(writer) {
|
|
23
|
+
this.logWriter = writer;
|
|
24
|
+
}
|
|
20
25
|
phase(message) {
|
|
21
26
|
if (!this.enabled || this.lastMessage === message) {
|
|
22
27
|
return;
|
|
@@ -40,6 +45,10 @@ var CliProgress = class {
|
|
|
40
45
|
this.settle("\u2717");
|
|
41
46
|
}
|
|
42
47
|
writeLogLine(line) {
|
|
48
|
+
if (this.logWriter) {
|
|
49
|
+
this.logWriter(line);
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
43
52
|
if (isJsonOutputMode()) return;
|
|
44
53
|
if (!this.enabled) {
|
|
45
54
|
process.stderr.write(`${line}
|
|
@@ -25,6 +25,11 @@ type CommandDoc = {
|
|
|
25
25
|
core: string;
|
|
26
26
|
/** Shown after `core` with `--help --verbose`. */
|
|
27
27
|
verbose?: string;
|
|
28
|
+
/**
|
|
29
|
+
* The CLI feature key that gates this command. Its command stays out of
|
|
30
|
+
* help until the workspace has the key, and the MCP help index omits it.
|
|
31
|
+
*/
|
|
32
|
+
rolloutFeature?: string;
|
|
28
33
|
};
|
|
29
34
|
type HelpDetail = 'quiet' | 'core' | 'verbose';
|
|
30
35
|
declare const COMMAND_DOCS: Record<string, CommandDoc>;
|
|
@@ -25,6 +25,11 @@ type CommandDoc = {
|
|
|
25
25
|
core: string;
|
|
26
26
|
/** Shown after `core` with `--help --verbose`. */
|
|
27
27
|
verbose?: string;
|
|
28
|
+
/**
|
|
29
|
+
* The CLI feature key that gates this command. Its command stays out of
|
|
30
|
+
* help until the workspace has the key, and the MCP help index omits it.
|
|
31
|
+
*/
|
|
32
|
+
rolloutFeature?: string;
|
|
28
33
|
};
|
|
29
34
|
type HelpDetail = 'quiet' | 'core' | 'verbose';
|
|
30
35
|
declare const COMMAND_DOCS: Record<string, CommandDoc>;
|
package/dist/cli/command-docs.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunk6PMCRYDAjs = require('./chunk-6PMCRYDA.js');
|
|
10
10
|
require('./chunk-COGTRVWW.js');
|
|
11
11
|
|
|
12
12
|
|
|
@@ -16,4 +16,4 @@ require('./chunk-COGTRVWW.js');
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
exports.CLI_DOC_SURFACE =
|
|
19
|
+
exports.CLI_DOC_SURFACE = _chunk6PMCRYDAjs.CLI_DOC_SURFACE; exports.COMMAND_DOCS = _chunk6PMCRYDAjs.COMMAND_DOCS; exports.commandDocKey = _chunk6PMCRYDAjs.commandDocKey; exports.helpDetailFromArgv = _chunk6PMCRYDAjs.helpDetailFromArgv; exports.renderActionExplanation = _chunk6PMCRYDAjs.renderActionExplanation; exports.renderCommandExplanation = _chunk6PMCRYDAjs.renderCommandExplanation; exports.renderDocText = _chunk6PMCRYDAjs.renderDocText;
|
|
@@ -4,12 +4,13 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
8
|
-
require('./chunk-
|
|
7
|
+
var _chunk3ACMRZRVjs = require('./chunk-3ACMRZRV.js');
|
|
8
|
+
require('./chunk-Y4DPU4OM.js');
|
|
9
|
+
require('./chunk-YT5EODJO.js');
|
|
9
10
|
require('./chunk-ALJJRZNJ.js');
|
|
10
11
|
require('./chunk-XNYIZMNQ.js');
|
|
11
12
|
require('./chunk-DIAWYWT5.js');
|
|
12
|
-
require('./chunk-
|
|
13
|
+
require('./chunk-7VZHXVOQ.js');
|
|
13
14
|
require('./chunk-OG64RBAC.js');
|
|
14
15
|
require('./chunk-COGTRVWW.js');
|
|
15
16
|
|
|
@@ -127,7 +128,7 @@ function renderTable(rows, totalRows, verbose, footer = `showing ${rows.length}
|
|
|
127
128
|
column.length,
|
|
128
129
|
...rows.map((row) => {
|
|
129
130
|
const value = _nullishCoalesce(row[column], () => ( ""));
|
|
130
|
-
return (verbose ? value :
|
|
131
|
+
return (verbose ? value : _chunk3ACMRZRVjs.clip.call(void 0, value, 42)).length;
|
|
131
132
|
})
|
|
132
133
|
)
|
|
133
134
|
])
|
|
@@ -137,7 +138,7 @@ function renderTable(rows, totalRows, verbose, footer = `showing ${rows.length}
|
|
|
137
138
|
const body = rows.map(
|
|
138
139
|
(row) => columns.map((column) => {
|
|
139
140
|
const raw = _nullishCoalesce(row[column], () => ( ""));
|
|
140
|
-
const display = verbose ? raw :
|
|
141
|
+
const display = verbose ? raw : _chunk3ACMRZRVjs.clip.call(void 0, raw, 42);
|
|
141
142
|
return display.padEnd(widths[column]);
|
|
142
143
|
}).join(" | ")
|
|
143
144
|
);
|
|
@@ -157,7 +158,7 @@ async function handleCsvShow(path, options, command) {
|
|
|
157
158
|
{ exitCode: 2 }
|
|
158
159
|
);
|
|
159
160
|
}
|
|
160
|
-
const allRows =
|
|
161
|
+
const allRows = _chunk3ACMRZRVjs.readCsvRows.call(void 0, csvPath);
|
|
161
162
|
const [rowStart, rowEnd] = parseRowRange(options.rows);
|
|
162
163
|
const rows = options.summary && options.rows === void 0 ? allRows : selectRows(allRows, rowStart, rowEnd);
|
|
163
164
|
const { rows: selected, columns } = selectColumns(
|
|
@@ -170,7 +171,7 @@ async function handleCsvShow(path, options, command) {
|
|
|
170
171
|
if (options.summary) {
|
|
171
172
|
const summaries = summarizeColumns(selected, columns);
|
|
172
173
|
if (format === "json") {
|
|
173
|
-
|
|
174
|
+
_chunk3ACMRZRVjs.printJson.call(void 0, {
|
|
174
175
|
rows: summaries,
|
|
175
176
|
total_rows: selected.length,
|
|
176
177
|
source_total_rows: allRows.length
|
|
@@ -179,7 +180,7 @@ async function handleCsvShow(path, options, command) {
|
|
|
179
180
|
}
|
|
180
181
|
const displayRows = summaryDisplayRows(summaries);
|
|
181
182
|
if (format === "csv") {
|
|
182
|
-
process.stdout.write(
|
|
183
|
+
process.stdout.write(_chunk3ACMRZRVjs.csvStringFromRows.call(void 0, displayRows));
|
|
183
184
|
return;
|
|
184
185
|
}
|
|
185
186
|
process.stdout.write(
|
|
@@ -194,7 +195,7 @@ async function handleCsvShow(path, options, command) {
|
|
|
194
195
|
return;
|
|
195
196
|
}
|
|
196
197
|
if (format === "json") {
|
|
197
|
-
|
|
198
|
+
_chunk3ACMRZRVjs.printJson.call(void 0, {
|
|
198
199
|
rows: selected.map((row, index) => ({ __row: rowStart + index, ...row }))
|
|
199
200
|
});
|
|
200
201
|
return;
|
|
@@ -437,7 +438,7 @@ async function handleCsvRenderStart(options) {
|
|
|
437
438
|
if (log) {
|
|
438
439
|
detail = `
|
|
439
440
|
CSV render log:
|
|
440
|
-
${
|
|
441
|
+
${_chunk3ACMRZRVjs.clip.call(void 0, log, 2e3)}`;
|
|
441
442
|
}
|
|
442
443
|
} catch (e7) {
|
|
443
444
|
}
|
|
@@ -488,7 +489,7 @@ async function handleCsvRenderStatus(options) {
|
|
|
488
489
|
if (payload.pid) lines.push(`Render PID: ${payload.pid}`);
|
|
489
490
|
if (payload.url) lines.push(`Render URL: ${payload.url}`);
|
|
490
491
|
lines.push(`Render Health: ${payload.health_status}`);
|
|
491
|
-
|
|
492
|
+
_chunk3ACMRZRVjs.printCommandEnvelope.call(void 0, payload, {
|
|
492
493
|
json: options.json,
|
|
493
494
|
text: `${lines.join("\n")}
|
|
494
495
|
`
|
|
@@ -524,7 +525,7 @@ async function handleCsvRenderStop(options) {
|
|
|
524
525
|
};
|
|
525
526
|
const text = stopped.length > 0 ? `Stopped CSV render process(es): ${stopped.join(" ")}
|
|
526
527
|
` : "No running CSV render process found.\n";
|
|
527
|
-
|
|
528
|
+
_chunk3ACMRZRVjs.printCommandEnvelope.call(void 0, payload, { json: options.json, text });
|
|
528
529
|
}
|
|
529
530
|
async function handleCsvRender(action, options) {
|
|
530
531
|
const normalized = _nullishCoalesce(action, () => ( "start"));
|
|
@@ -4,12 +4,13 @@ import {
|
|
|
4
4
|
printCommandEnvelope,
|
|
5
5
|
printJson,
|
|
6
6
|
readCsvRows
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-NHRWZPWZ.mjs";
|
|
8
|
+
import "./chunk-D6DXOUTO.mjs";
|
|
9
|
+
import "./chunk-6RNQGWFD.mjs";
|
|
9
10
|
import "./chunk-4QF2K7TM.mjs";
|
|
10
11
|
import "./chunk-DLIRSHV6.mjs";
|
|
11
12
|
import "./chunk-HBL4PM5Q.mjs";
|
|
12
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-XZAFIOUQ.mjs";
|
|
13
14
|
import "./chunk-WZYKRD7T.mjs";
|
|
14
15
|
import "./chunk-KRD6H754.mjs";
|
|
15
16
|
|