deepline 0.3.461 → 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/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 +11 -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-6HJXNWUG.mjs → auth-JDLEY7VU.mjs} +5 -4
- package/dist/cli/auth-UXKY6TCC.js +41 -0
- package/dist/cli/{billing-6P5HO6QG.js → billing-HXAXB3XZ.js} +152 -78
- package/dist/cli/{billing-MJ42N7YF.mjs → billing-SDHLBLMV.mjs} +84 -10
- package/dist/cli/{chunk-5MDIZX7M.js → chunk-3ACMRZRV.js} +8 -6
- package/dist/cli/{chunk-FGLKOWSC.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-MEAIOXJL.mjs → chunk-6NNVJDVR.mjs} +7 -5
- package/dist/cli/{chunk-NMJ4D2WO.js → chunk-6PMCRYDA.js} +216 -91
- package/dist/cli/{chunk-RY4IVOU3.mjs → chunk-6RNQGWFD.mjs} +16 -806
- package/dist/cli/{chunk-EBU7LQ64.js → chunk-6V7KVRR5.js} +3 -3
- package/dist/cli/{chunk-OZBWRICM.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-IHHLTHE7.mjs → chunk-7U3XNPOA.mjs} +267 -38
- package/dist/cli/{chunk-5FDKJQZE.js → chunk-7VZHXVOQ.js} +1 -1
- package/dist/cli/{chunk-R64BGGRQ.mjs → chunk-AT636LLU.mjs} +2 -2
- package/dist/cli/{chunk-MDJPEGVN.js → chunk-BGTPIMSM.js} +392 -261
- package/dist/cli/{chunk-KVJ5VHW5.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-2WQY7ZCY.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-FGMX4HUZ.js → chunk-GEGW5HPZ.js} +29 -27
- package/dist/cli/{chunk-TNMBPMMC.js → chunk-HUB3CCM2.js} +13 -4
- package/dist/cli/{chunk-ACCR7POB.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-V7REJRDZ.mjs → chunk-LFXLQEZN.mjs} +1 -1
- package/dist/cli/{chunk-CRYOUPEB.js → chunk-LROWFPGN.js} +16 -16
- package/dist/cli/{chunk-SLEUWLJE.mjs → chunk-MSY22NQW.mjs} +5 -5
- package/dist/cli/{chunk-BGY2PLP7.mjs → chunk-MUUQZIOF.mjs} +23 -49
- package/dist/cli/{chunk-FCAZQ7WV.js → chunk-NBLSCHKK.js} +52 -50
- package/dist/cli/{chunk-QAJAJPKK.mjs → chunk-NHRWZPWZ.mjs} +4 -2
- package/dist/cli/{chunk-KXMNM4AQ.js → chunk-NMU3VR5U.js} +4 -5
- package/dist/cli/{chunk-QIW7TVV6.mjs → chunk-O2RX5A66.mjs} +14 -12
- package/dist/cli/{chunk-SAZFZQRI.js → chunk-OMQ23IXL.js} +2 -2
- package/dist/cli/{chunk-5IYOUBFZ.js → chunk-OPJAJBD4.js} +28 -54
- package/dist/cli/{chunk-FJZILBL7.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-5FY72YOV.js → chunk-QJZ6WNWD.js} +8 -8
- package/dist/cli/{chunk-EIMG75BT.mjs → chunk-S3A4IXBQ.mjs} +4 -5
- package/dist/cli/{chunk-3BMLICF7.mjs → chunk-S42YIQNE.mjs} +13 -8
- package/dist/cli/{chunk-RFONC4WJ.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-VZBCEA5S.mjs → chunk-UDRPEZ5F.mjs} +223 -92
- package/dist/cli/{chunk-KCCOQ5G5.js → chunk-ULK7JGGI.js} +511 -282
- package/dist/cli/chunk-V335HGX5.js +1038 -0
- package/dist/cli/{chunk-MGXEUZHL.mjs → chunk-V3MEA7NB.mjs} +7 -5
- package/dist/cli/{chunk-O6QOMHCH.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-FRAVCY5F.mjs → chunk-WIY6U6GD.mjs} +19 -36
- package/dist/cli/{chunk-PNATXKLP.js → chunk-XANRM3QA.js} +6 -6
- package/dist/cli/{chunk-KGQNIA37.js → chunk-XQCTG5OO.js} +44 -34
- package/dist/cli/{chunk-T3MVIPHG.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-SCIR5JXW.js → chunk-ZGQSFYD2.js} +56 -51
- package/dist/cli/{chunk-QEYHTIV4.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-NX7NO3O6.js → csv-C56GSCEU.js} +13 -12
- package/dist/cli/{csv-DQ6GW5B5.mjs → csv-L54JS7TF.mjs} +4 -3
- package/dist/cli/{db-R72DFMP6.js → db-MOGRMZTA.js} +30 -27
- package/dist/cli/{db-2YP33M4K.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-ZLHD4QIT.js → executions-A7L4ULPP.js} +9 -7
- package/dist/cli/{executions-WFBU7L2Q.mjs → executions-ZBGSTT37.mjs} +7 -5
- package/dist/cli/{feedback-CN3HJFVF.mjs → feedback-G6GU37FD.mjs} +6 -5
- package/dist/cli/{feedback-NDV6TPHG.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-QAD6E3HW.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-KVC5QJ74.js → legacy-noops-5LM3D724.js} +8 -7
- package/dist/cli/{legacy-noops-TPTKNBI2.mjs → legacy-noops-LJJYG6YA.mjs} +5 -4
- package/dist/cli/{monitors-SV57JFLO.mjs → monitors-72QV4ALO.mjs} +19 -6
- package/dist/cli/{monitors-KCROV6PJ.js → monitors-UX3H5DC2.js} +103 -90
- package/dist/cli/{org-KX6QIR7A.mjs → org-6RRRKOCP.mjs} +9 -6
- package/dist/cli/{org-NJYX5743.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-IQQ57L7Z.mjs → play-AHASKRLA.mjs} +512 -1508
- package/dist/cli/{play-32L7EQN4.js → play-EUIUVLUH.js} +1090 -2086
- package/dist/cli/{providers-4WEC2EQN.mjs → providers-GWGE3WY3.mjs} +7 -5
- package/dist/cli/{providers-ZQV6QLVQ.js → providers-V5WU4VXJ.js} +10 -8
- package/dist/cli/{quickstart-RQ76RIUE.mjs → quickstart-OXKQ5ZST.mjs} +5 -4
- package/dist/cli/{quickstart-HKUSFADF.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-ZRAVFBZC.mjs → search-ZMEBVJZB.mjs} +8 -6
- package/dist/cli/{secrets-J3G5Y43U.js → secrets-ACND5N6A.js} +16 -14
- package/dist/cli/{secrets-CMJOVNVH.mjs → secrets-XRCJFF3L.mjs} +7 -5
- package/dist/cli/{sessions-MDQYY5CB.mjs → sessions-RTK3CEW6.mjs} +5 -4
- package/dist/cli/{sessions-WY7VN4AE.js → sessions-ZGRJPCFF.js} +6 -5
- package/dist/cli/{settings-HTNTFKCE.js → settings-PD5KWQQZ.js} +80 -77
- package/dist/cli/{settings-4RWZPCT5.mjs → settings-XDRBPRDE.mjs} +14 -11
- package/dist/cli/{setup-P3GYYZWG.mjs → setup-3HPYAOCC.mjs} +12 -10
- package/dist/cli/{setup-QGCAP62X.js → setup-E2Q6PXHC.js} +53 -51
- package/dist/cli/{skills-7NAE4ICL.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-GODLRKNB.mjs → update-ZWJTADIW.mjs} +9 -8
- package/dist/cli/{workflow-4BXOUVEO.mjs → workflow-23NMPAJ7.mjs} +10 -8
- package/dist/cli/{workflow-AO3A6LXN.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.ts → compiler-manifest-Dcyd3-Zd.d.mts} +43 -1
- package/dist/{compiler-manifest-CWz_sNOQ.d.mts → 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-IACERYQH.js +0 -40
- package/dist/cli/chunk-PQUUWFXY.js +0 -95
- package/dist/cli/chunk-YBWAG72P.mjs +0 -95
- package/dist/cli/chunk-YQDUODZW.js +0 -1710
- package/dist/cli/git-JVI36ZFV.js +0 -24
- package/dist/cli/search-75X5LTDE.js +0 -30
- package/dist/cli/skills-BKJ53JOQ.js +0 -30
- package/dist/cli/tools-COWMIEJ6.mjs +0 -45
- package/dist/cli/tools-TASOCE7I.js +0 -45
- package/dist/cli/update-SJIKVME6.js +0 -32
|
@@ -3,11 +3,13 @@
|
|
|
3
3
|
var _chunkAID3OYVJjs = require('./chunk-AID3OYVJ.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
+
var _chunkJF3TLIMQjs = require('./chunk-JF3TLIMQ.js');
|
|
6
7
|
|
|
7
|
-
|
|
8
|
+
|
|
9
|
+
var _chunkBGTPIMSMjs = require('./chunk-BGTPIMSM.js');
|
|
8
10
|
require('./chunk-E4CABWXL.js');
|
|
9
11
|
require('./chunk-JKVRBCZL.js');
|
|
10
|
-
require('./chunk-
|
|
12
|
+
require('./chunk-NMU3VR5U.js');
|
|
11
13
|
require('./chunk-XDVT3GOM.js');
|
|
12
14
|
|
|
13
15
|
|
|
@@ -18,8 +20,9 @@ require('./chunk-XDVT3GOM.js');
|
|
|
18
20
|
|
|
19
21
|
|
|
20
22
|
|
|
21
|
-
var
|
|
22
|
-
require('./chunk-
|
|
23
|
+
var _chunk3ACMRZRVjs = require('./chunk-3ACMRZRV.js');
|
|
24
|
+
require('./chunk-Y4DPU4OM.js');
|
|
25
|
+
require('./chunk-YT5EODJO.js');
|
|
23
26
|
|
|
24
27
|
|
|
25
28
|
var _chunkALJJRZNJjs = require('./chunk-ALJJRZNJ.js');
|
|
@@ -27,7 +30,7 @@ require('./chunk-XNYIZMNQ.js');
|
|
|
27
30
|
|
|
28
31
|
|
|
29
32
|
var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
|
|
30
|
-
require('./chunk-
|
|
33
|
+
require('./chunk-7VZHXVOQ.js');
|
|
31
34
|
require('./chunk-OG64RBAC.js');
|
|
32
35
|
require('./chunk-COGTRVWW.js');
|
|
33
36
|
|
|
@@ -50,8 +53,8 @@ function formatCell(value) {
|
|
|
50
53
|
return text.length > 80 ? `${text.slice(0, 77)}...` : text;
|
|
51
54
|
}
|
|
52
55
|
function tableLines(result) {
|
|
53
|
-
const rows =
|
|
54
|
-
const responseColumns =
|
|
56
|
+
const rows = _chunk3ACMRZRVjs.dataExportRows.call(void 0, customerDbRows(result));
|
|
57
|
+
const responseColumns = _chunk3ACMRZRVjs.dataExportColumns.call(void 0,
|
|
55
58
|
rows,
|
|
56
59
|
customerDbColumnNames(result)
|
|
57
60
|
);
|
|
@@ -97,7 +100,7 @@ function tableLines(result) {
|
|
|
97
100
|
return lines;
|
|
98
101
|
}
|
|
99
102
|
function customerDbRows(result) {
|
|
100
|
-
return
|
|
103
|
+
return _chunk3ACMRZRVjs.recordRows.call(void 0, result.rows);
|
|
101
104
|
}
|
|
102
105
|
function customerDbColumnNames(result) {
|
|
103
106
|
return result.columns.map((column) => column.name).filter(Boolean);
|
|
@@ -150,7 +153,7 @@ function writeCustomerDbCsv(result, outPath) {
|
|
|
150
153
|
const resolved = _path.resolve.call(void 0, outPath);
|
|
151
154
|
_fs.writeFileSync.call(void 0,
|
|
152
155
|
resolved,
|
|
153
|
-
|
|
156
|
+
_chunk3ACMRZRVjs.dataExportCsvString.call(void 0, customerDbRows(result), customerDbColumnNames(result)),
|
|
154
157
|
"utf-8"
|
|
155
158
|
);
|
|
156
159
|
return resolved;
|
|
@@ -191,18 +194,18 @@ function dbQueryExportEnvelope(input) {
|
|
|
191
194
|
function renderDbQueryResult(result, query, options) {
|
|
192
195
|
const { sql, maxRows, operationKey } = query;
|
|
193
196
|
const { format, out: outPath, json: explicitJsonOutput = false } = options;
|
|
194
|
-
const jsonOutput = explicitJsonOutput ||
|
|
197
|
+
const jsonOutput = explicitJsonOutput || _chunk3ACMRZRVjs.shouldEmitJson.call(void 0, );
|
|
195
198
|
const toolPayload = JSON.stringify({
|
|
196
199
|
sql,
|
|
197
200
|
result_mode: "rows",
|
|
198
201
|
...maxRows ? { max_rows: maxRows } : {},
|
|
199
202
|
...operationKey !== void 0 ? { operation_key: operationKey } : {}
|
|
200
203
|
});
|
|
201
|
-
const toolCommand = `deepline
|
|
204
|
+
const toolCommand = `deepline run query_customer_db --input ${_chunkAID3OYVJjs.shellQuote.call(void 0, toolPayload)}`;
|
|
202
205
|
if (format === "csv") {
|
|
203
206
|
if (outPath) {
|
|
204
207
|
const exportedPath = writeCustomerDbCsv(result, outPath);
|
|
205
|
-
|
|
208
|
+
_chunk3ACMRZRVjs.printCommandEnvelope.call(void 0,
|
|
206
209
|
dbQueryExportEnvelope({
|
|
207
210
|
result,
|
|
208
211
|
format,
|
|
@@ -218,7 +221,7 @@ function renderDbQueryResult(result, query, options) {
|
|
|
218
221
|
);
|
|
219
222
|
return;
|
|
220
223
|
}
|
|
221
|
-
|
|
224
|
+
_chunk3ACMRZRVjs.printCommandEnvelope.call(void 0,
|
|
222
225
|
dbQueryExportEnvelope({
|
|
223
226
|
result,
|
|
224
227
|
format,
|
|
@@ -228,7 +231,7 @@ function renderDbQueryResult(result, query, options) {
|
|
|
228
231
|
}),
|
|
229
232
|
{
|
|
230
233
|
json: explicitJsonOutput,
|
|
231
|
-
text:
|
|
234
|
+
text: _chunk3ACMRZRVjs.dataExportCsvString.call(void 0,
|
|
232
235
|
customerDbRows(result),
|
|
233
236
|
customerDbColumnNames(result)
|
|
234
237
|
)
|
|
@@ -237,14 +240,14 @@ function renderDbQueryResult(result, query, options) {
|
|
|
237
240
|
return;
|
|
238
241
|
}
|
|
239
242
|
if (format === "markdown") {
|
|
240
|
-
const content =
|
|
243
|
+
const content = _chunk3ACMRZRVjs.markdownTableFromRows.call(void 0,
|
|
241
244
|
customerDbRows(result),
|
|
242
245
|
customerDbColumnNames(result)
|
|
243
246
|
);
|
|
244
247
|
if (outPath) {
|
|
245
248
|
const exportedPath = _path.resolve.call(void 0, outPath);
|
|
246
249
|
_fs.writeFileSync.call(void 0, exportedPath, content, "utf-8");
|
|
247
|
-
|
|
250
|
+
_chunk3ACMRZRVjs.printCommandEnvelope.call(void 0,
|
|
248
251
|
dbQueryExportEnvelope({
|
|
249
252
|
result,
|
|
250
253
|
format,
|
|
@@ -260,7 +263,7 @@ function renderDbQueryResult(result, query, options) {
|
|
|
260
263
|
);
|
|
261
264
|
return;
|
|
262
265
|
}
|
|
263
|
-
|
|
266
|
+
_chunk3ACMRZRVjs.printCommandEnvelope.call(void 0,
|
|
264
267
|
dbQueryExportEnvelope({
|
|
265
268
|
result,
|
|
266
269
|
format,
|
|
@@ -275,7 +278,7 @@ function renderDbQueryResult(result, query, options) {
|
|
|
275
278
|
);
|
|
276
279
|
return;
|
|
277
280
|
}
|
|
278
|
-
|
|
281
|
+
_chunk3ACMRZRVjs.printCommandEnvelope.call(void 0,
|
|
279
282
|
{
|
|
280
283
|
...result,
|
|
281
284
|
next: {
|
|
@@ -349,9 +352,9 @@ async function runDbQueryCommand(options) {
|
|
|
349
352
|
...maxRows === void 0 ? {} : { maxRows },
|
|
350
353
|
...operationKey === void 0 ? {} : { operationKey }
|
|
351
354
|
};
|
|
352
|
-
const plan =
|
|
355
|
+
const plan = _chunkBGTPIMSMjs.planCustomerDbQuery.call(void 0, query);
|
|
353
356
|
if (options.dryRun) {
|
|
354
|
-
|
|
357
|
+
_chunk3ACMRZRVjs.printCommandEnvelope.call(void 0,
|
|
355
358
|
{
|
|
356
359
|
dryRun: true,
|
|
357
360
|
...plan,
|
|
@@ -364,11 +367,11 @@ async function runDbQueryCommand(options) {
|
|
|
364
367
|
...out === void 0 ? {} : { file: _path.resolve.call(void 0, out) }
|
|
365
368
|
}
|
|
366
369
|
},
|
|
367
|
-
{ json: options.json ||
|
|
370
|
+
{ json: options.json || _chunk3ACMRZRVjs.shouldEmitJson.call(void 0, ) }
|
|
368
371
|
);
|
|
369
372
|
return 0;
|
|
370
373
|
}
|
|
371
|
-
const client = new (0,
|
|
374
|
+
const client = new (0, _chunkJF3TLIMQjs.DeeplineClient)();
|
|
372
375
|
const result = await client.db.query(query);
|
|
373
376
|
renderDbQueryResult(result, query, {
|
|
374
377
|
format,
|
|
@@ -377,8 +380,8 @@ async function runDbQueryCommand(options) {
|
|
|
377
380
|
});
|
|
378
381
|
return 0;
|
|
379
382
|
} catch (error) {
|
|
380
|
-
if (error instanceof _chunkALJJRZNJjs.CustomerDbQueryOutcomeUnknownError && (options.json ||
|
|
381
|
-
|
|
383
|
+
if (error instanceof _chunkALJJRZNJjs.CustomerDbQueryOutcomeUnknownError && (options.json || _chunk3ACMRZRVjs.shouldEmitJson.call(void 0, ))) {
|
|
384
|
+
_chunk3ACMRZRVjs.printCommandEnvelope.call(void 0,
|
|
382
385
|
{
|
|
383
386
|
ok: false,
|
|
384
387
|
error: {
|
|
@@ -426,8 +429,8 @@ function dbRepairPlainText(result) {
|
|
|
426
429
|
async function handleDbRepair(args) {
|
|
427
430
|
const providerIndex = args.indexOf("--provider");
|
|
428
431
|
const provider = providerIndex >= 0 ? _optionalChain([args, 'access', _9 => _9[providerIndex + 1], 'optionalAccess', _10 => _10.trim, 'call', _11 => _11()]) : void 0;
|
|
429
|
-
const jsonOutput =
|
|
430
|
-
const client = new (0,
|
|
432
|
+
const jsonOutput = _chunk3ACMRZRVjs.argsWantJson.call(void 0, args);
|
|
433
|
+
const client = new (0, _chunkJF3TLIMQjs.DeeplineClient)();
|
|
431
434
|
let result;
|
|
432
435
|
try {
|
|
433
436
|
result = await client.repairIngestionStorage(
|
|
@@ -443,7 +446,7 @@ async function handleDbRepair(args) {
|
|
|
443
446
|
console.error(errorMessage2(error));
|
|
444
447
|
return 1;
|
|
445
448
|
}
|
|
446
|
-
|
|
449
|
+
_chunk3ACMRZRVjs.printCommandEnvelope.call(void 0,
|
|
447
450
|
{
|
|
448
451
|
command: "db repair",
|
|
449
452
|
status: result.status,
|
|
@@ -2,12 +2,14 @@ import {
|
|
|
2
2
|
shellQuote
|
|
3
3
|
} from "./chunk-OVDNJAJN.mjs";
|
|
4
4
|
import {
|
|
5
|
-
DeeplineClient
|
|
5
|
+
DeeplineClient
|
|
6
|
+
} from "./chunk-7MJ6VI2T.mjs";
|
|
7
|
+
import {
|
|
6
8
|
planCustomerDbQuery
|
|
7
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-UDRPEZ5F.mjs";
|
|
8
10
|
import "./chunk-L2VKAASU.mjs";
|
|
9
11
|
import "./chunk-FAG4DFUC.mjs";
|
|
10
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-S3A4IXBQ.mjs";
|
|
11
13
|
import "./chunk-UBKA33KY.mjs";
|
|
12
14
|
import {
|
|
13
15
|
argsWantJson,
|
|
@@ -18,8 +20,9 @@ import {
|
|
|
18
20
|
printCommandEnvelope,
|
|
19
21
|
recordRows,
|
|
20
22
|
shouldEmitJson
|
|
21
|
-
} from "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
+
} from "./chunk-NHRWZPWZ.mjs";
|
|
24
|
+
import "./chunk-D6DXOUTO.mjs";
|
|
25
|
+
import "./chunk-6RNQGWFD.mjs";
|
|
23
26
|
import {
|
|
24
27
|
CustomerDbQueryOutcomeUnknownError
|
|
25
28
|
} from "./chunk-4QF2K7TM.mjs";
|
|
@@ -27,7 +30,7 @@ import "./chunk-DLIRSHV6.mjs";
|
|
|
27
30
|
import {
|
|
28
31
|
DeeplineError
|
|
29
32
|
} from "./chunk-HBL4PM5Q.mjs";
|
|
30
|
-
import "./chunk-
|
|
33
|
+
import "./chunk-XZAFIOUQ.mjs";
|
|
31
34
|
import "./chunk-WZYKRD7T.mjs";
|
|
32
35
|
import "./chunk-KRD6H754.mjs";
|
|
33
36
|
|
|
@@ -198,7 +201,7 @@ function renderDbQueryResult(result, query, options) {
|
|
|
198
201
|
...maxRows ? { max_rows: maxRows } : {},
|
|
199
202
|
...operationKey !== void 0 ? { operation_key: operationKey } : {}
|
|
200
203
|
});
|
|
201
|
-
const toolCommand = `deepline
|
|
204
|
+
const toolCommand = `deepline run query_customer_db --input ${shellQuote(toolPayload)}`;
|
|
202
205
|
if (format === "csv") {
|
|
203
206
|
if (outPath) {
|
|
204
207
|
const exportedPath = writeCustomerDbCsv(result, outPath);
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
var _chunkEM4TXCCIjs = require('./chunk-EM4TXCCI.js');
|
|
7
|
+
require('./chunk-ULK7JGGI.js');
|
|
8
|
+
require('./chunk-7SWNPNML.js');
|
|
9
|
+
require('./chunk-OPJAJBD4.js');
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
var _chunkXQCTG5OOjs = require('./chunk-XQCTG5OO.js');
|
|
13
|
+
require('./chunk-5LEAXRHV.js');
|
|
14
|
+
require('./chunk-IAYSWZDJ.js');
|
|
15
|
+
require('./chunk-AID3OYVJ.js');
|
|
16
|
+
require('./chunk-ZM2YPJQJ.js');
|
|
17
|
+
require('./chunk-J33TSWO5.js');
|
|
18
|
+
require('./chunk-HGFFYVXN.js');
|
|
19
|
+
require('./chunk-JF3TLIMQ.js');
|
|
20
|
+
require('./chunk-NA4T3B62.js');
|
|
21
|
+
require('./chunk-BGTPIMSM.js');
|
|
22
|
+
require('./chunk-E4CABWXL.js');
|
|
23
|
+
require('./chunk-JKVRBCZL.js');
|
|
24
|
+
require('./chunk-NMU3VR5U.js');
|
|
25
|
+
require('./chunk-XDVT3GOM.js');
|
|
26
|
+
require('./chunk-GEGW5HPZ.js');
|
|
27
|
+
require('./chunk-LROWFPGN.js');
|
|
28
|
+
require('./chunk-OMQ23IXL.js');
|
|
29
|
+
require('./chunk-VFGVXXZP.js');
|
|
30
|
+
require('./chunk-7LFIMWMW.js');
|
|
31
|
+
require('./chunk-ZGQSFYD2.js');
|
|
32
|
+
require('./chunk-HUB3CCM2.js');
|
|
33
|
+
require('./chunk-3ACMRZRV.js');
|
|
34
|
+
require('./chunk-Y4DPU4OM.js');
|
|
35
|
+
require('./chunk-YT5EODJO.js');
|
|
36
|
+
require('./chunk-ALJJRZNJ.js');
|
|
37
|
+
require('./chunk-XNYIZMNQ.js');
|
|
38
|
+
require('./chunk-DIAWYWT5.js');
|
|
39
|
+
require('./chunk-7VZHXVOQ.js');
|
|
40
|
+
require('./chunk-OG64RBAC.js');
|
|
41
|
+
require('./chunk-COGTRVWW.js');
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
exports.DEEPLINE_NAMESPACE = _chunkXQCTG5OOjs.DEEPLINE_NAMESPACE; exports.describeAnything = _chunkEM4TXCCIjs.describeAnything; exports.findNamed = _chunkEM4TXCCIjs.findNamed; exports.nothingNamed = _chunkEM4TXCCIjs.nothingNamed; exports.registerDescribeCommand = _chunkEM4TXCCIjs.registerDescribeCommand;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import {
|
|
2
|
+
describeAnything,
|
|
3
|
+
findNamed,
|
|
4
|
+
nothingNamed,
|
|
5
|
+
registerDescribeCommand
|
|
6
|
+
} from "./chunk-WIY6U6GD.mjs";
|
|
7
|
+
import "./chunk-7U3XNPOA.mjs";
|
|
8
|
+
import "./chunk-FKVYR3QA.mjs";
|
|
9
|
+
import "./chunk-MUUQZIOF.mjs";
|
|
10
|
+
import {
|
|
11
|
+
DEEPLINE_NAMESPACE
|
|
12
|
+
} from "./chunk-TKAQR3IB.mjs";
|
|
13
|
+
import "./chunk-MSY22NQW.mjs";
|
|
14
|
+
import "./chunk-JVHOS3K3.mjs";
|
|
15
|
+
import "./chunk-OVDNJAJN.mjs";
|
|
16
|
+
import "./chunk-LJ5747UC.mjs";
|
|
17
|
+
import "./chunk-FR2ILQ4G.mjs";
|
|
18
|
+
import "./chunk-FIVKWNMT.mjs";
|
|
19
|
+
import "./chunk-7MJ6VI2T.mjs";
|
|
20
|
+
import "./chunk-TXZVVBQZ.mjs";
|
|
21
|
+
import "./chunk-UDRPEZ5F.mjs";
|
|
22
|
+
import "./chunk-L2VKAASU.mjs";
|
|
23
|
+
import "./chunk-FAG4DFUC.mjs";
|
|
24
|
+
import "./chunk-S3A4IXBQ.mjs";
|
|
25
|
+
import "./chunk-UBKA33KY.mjs";
|
|
26
|
+
import "./chunk-O2RX5A66.mjs";
|
|
27
|
+
import "./chunk-PHSEINNH.mjs";
|
|
28
|
+
import "./chunk-3KZCFOZ6.mjs";
|
|
29
|
+
import "./chunk-V3MEA7NB.mjs";
|
|
30
|
+
import "./chunk-LFXLQEZN.mjs";
|
|
31
|
+
import "./chunk-S42YIQNE.mjs";
|
|
32
|
+
import "./chunk-ZUK6LIJB.mjs";
|
|
33
|
+
import "./chunk-NHRWZPWZ.mjs";
|
|
34
|
+
import "./chunk-D6DXOUTO.mjs";
|
|
35
|
+
import "./chunk-6RNQGWFD.mjs";
|
|
36
|
+
import "./chunk-4QF2K7TM.mjs";
|
|
37
|
+
import "./chunk-DLIRSHV6.mjs";
|
|
38
|
+
import "./chunk-HBL4PM5Q.mjs";
|
|
39
|
+
import "./chunk-XZAFIOUQ.mjs";
|
|
40
|
+
import "./chunk-WZYKRD7T.mjs";
|
|
41
|
+
import "./chunk-KRD6H754.mjs";
|
|
42
|
+
export {
|
|
43
|
+
DEEPLINE_NAMESPACE,
|
|
44
|
+
describeAnything,
|
|
45
|
+
findNamed,
|
|
46
|
+
nothingNamed,
|
|
47
|
+
registerDescribeCommand
|
|
48
|
+
};
|
|
@@ -1,10 +1,132 @@
|
|
|
1
1
|
/// <reference path="./text-imports.d.ts" />
|
|
2
|
-
import {
|
|
3
|
-
import '../
|
|
2
|
+
import { D as DeeplineClient } from '../client-DTwnz_AW.mjs';
|
|
3
|
+
import { cQ as ToolDefinition, L as DeeplineAgentModelDescription, b9 as PlayDescription, ct as SearchType } from '../client-core-DzBSlY1U.mjs';
|
|
4
|
+
import '../compiler-manifest-Dcyd3-Zd.mjs';
|
|
4
5
|
import '@sinclair/typebox';
|
|
5
6
|
import 'zod';
|
|
6
7
|
import '../monitor-fleet-contract.mjs';
|
|
7
8
|
|
|
9
|
+
/**
|
|
10
|
+
* One description of anything Deepline can run, and the one way it is shown.
|
|
11
|
+
*
|
|
12
|
+
* The catalog describes a tool, a monitor type and a play in different words,
|
|
13
|
+
* but a reader asks the same things of each: what it is, what it costs, what
|
|
14
|
+
* goes in, what comes out, and how to run it. Each kind is translated into a
|
|
15
|
+
* `Described` once; everything `deepline describe` prints is derived from it.
|
|
16
|
+
*/
|
|
17
|
+
type DescribedKind = 'tool' | 'monitor_type' | 'prebuilt_play' | 'custom_play';
|
|
18
|
+
type Field = {
|
|
19
|
+
name: string;
|
|
20
|
+
/** A TypeScript-like type: `string | null`, `"a" | "b"`, `string[]`, `{}[]`. */
|
|
21
|
+
type: string;
|
|
22
|
+
required: boolean;
|
|
23
|
+
example?: unknown;
|
|
24
|
+
description?: string;
|
|
25
|
+
/** For an output: the expression a play reads it with. */
|
|
26
|
+
read?: string;
|
|
27
|
+
/**
|
|
28
|
+
* For a tool output: where it is in `tools execute --json`, tried in order.
|
|
29
|
+
* When `in` names a list output, the paths are within each of its rows.
|
|
30
|
+
*/
|
|
31
|
+
paths?: string[];
|
|
32
|
+
in?: string;
|
|
33
|
+
/** The object's own fields, when `type` contains a shape. */
|
|
34
|
+
fields?: Field[];
|
|
35
|
+
/** The name the shape goes by, such as `EmailStatus`; it is defined once under Types. */
|
|
36
|
+
shape?: string;
|
|
37
|
+
/** Another object whose fields this one also has, printed as `...name`. */
|
|
38
|
+
spread?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Show only the names of `fields` unless the whole schema is asked for. Set
|
|
41
|
+
* where the shape is background, as the rows of a list are when each column
|
|
42
|
+
* worth reading is already an output of its own.
|
|
43
|
+
*/
|
|
44
|
+
summarized?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Detail a caller can do without: diagnostics, attempt logs, echoes of
|
|
47
|
+
* input. Left out of the default view, which stays enough to call the thing
|
|
48
|
+
* and use its result.
|
|
49
|
+
*/
|
|
50
|
+
secondary?: boolean;
|
|
51
|
+
/** What the field is, as a field catalog id such as `person.email.work.value`. */
|
|
52
|
+
means?: string;
|
|
53
|
+
};
|
|
54
|
+
/** How the thing is run, which is what its examples are built from. */
|
|
55
|
+
type Runner =
|
|
56
|
+
/** `inputSchema` gives the bounds its example numbers start from. */
|
|
57
|
+
{
|
|
58
|
+
via: 'tool';
|
|
59
|
+
toolId: string;
|
|
60
|
+
inputSchema?: unknown;
|
|
61
|
+
} | {
|
|
62
|
+
via: 'play';
|
|
63
|
+
reference: string;
|
|
64
|
+
inputSchema?: unknown;
|
|
65
|
+
} | {
|
|
66
|
+
via: 'monitor';
|
|
67
|
+
deploy: string;
|
|
68
|
+
};
|
|
69
|
+
type Byok = {
|
|
70
|
+
supported?: boolean;
|
|
71
|
+
required?: boolean;
|
|
72
|
+
setup?: string;
|
|
73
|
+
setupUrl?: string;
|
|
74
|
+
};
|
|
75
|
+
/** A part of a tool with its own description; `describe --feature` shows it. */
|
|
76
|
+
type DescribedFeature = {
|
|
77
|
+
name: string;
|
|
78
|
+
summary: string;
|
|
79
|
+
/** For an input feature, the value described when none is given. */
|
|
80
|
+
defaultValue?: string;
|
|
81
|
+
};
|
|
82
|
+
type Described = {
|
|
83
|
+
kind: DescribedKind;
|
|
84
|
+
id: string;
|
|
85
|
+
displayName?: string;
|
|
86
|
+
description?: string;
|
|
87
|
+
cost?: string;
|
|
88
|
+
guidance: string[];
|
|
89
|
+
rateLimit?: string;
|
|
90
|
+
/** Whether a tool can run on the workspace's own provider credentials; only on request. */
|
|
91
|
+
byok?: Byok;
|
|
92
|
+
/** For a tool: the parts of it `describe --feature` can describe. */
|
|
93
|
+
features?: DescribedFeature[];
|
|
94
|
+
inputs: Field[];
|
|
95
|
+
outputs: Field[];
|
|
96
|
+
/**
|
|
97
|
+
* For a play that returns rows: the CSV columns it reads from each row, if
|
|
98
|
+
* it takes a CSV, and the columns of each row it returns. Its `inputs` and
|
|
99
|
+
* `outputs` only say that it takes a file and returns rows; the text output
|
|
100
|
+
* types the `csvInput` input and the `rows` output with these columns.
|
|
101
|
+
*/
|
|
102
|
+
rowInputs?: Field[];
|
|
103
|
+
rowOutputs?: Field[];
|
|
104
|
+
/** The input that takes the CSV whose rows are `rowInputs`. */
|
|
105
|
+
csvInput?: string;
|
|
106
|
+
/**
|
|
107
|
+
* True when each returned row keeps the source row's columns and the play
|
|
108
|
+
* adds `rowOutputs` to them; false when the play builds new rows.
|
|
109
|
+
*/
|
|
110
|
+
rowOutputsAddToSource?: boolean;
|
|
111
|
+
/**
|
|
112
|
+
* For a tool: the provider response its outputs are read from, at
|
|
113
|
+
* `result.toolResponse.rawV2`. Shown only with the full schema, since the
|
|
114
|
+
* outputs above are what a play normally reads.
|
|
115
|
+
*/
|
|
116
|
+
rawResponse?: Field[];
|
|
117
|
+
runner: Runner;
|
|
118
|
+
/** For a play: the command that saves its source to a file. */
|
|
119
|
+
source?: string;
|
|
120
|
+
/**
|
|
121
|
+
* An input that cannot be given with others: a CSV play takes either its
|
|
122
|
+
* CSV or the per-row values the CSV replaces, never both.
|
|
123
|
+
*/
|
|
124
|
+
exclusive?: {
|
|
125
|
+
field: string;
|
|
126
|
+
with: string[];
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
|
|
8
130
|
/**
|
|
9
131
|
* How `deepline describe` presents a tool: its contract, the JSON record,
|
|
10
132
|
* and the shared `Described` form. Pure, so the CLI and MCP describe a tool
|
|
@@ -27,6 +149,10 @@ type SeededScript = {
|
|
|
27
149
|
windowsCopyCommand: string;
|
|
28
150
|
};
|
|
29
151
|
|
|
152
|
+
type FeatureView = {
|
|
153
|
+
details: unknown;
|
|
154
|
+
lines: string[];
|
|
155
|
+
};
|
|
30
156
|
type FeatureDependencies = {
|
|
31
157
|
describeModel(model: string): Promise<DeeplineAgentModelDescription>;
|
|
32
158
|
};
|
|
@@ -41,6 +167,17 @@ type FeatureDependencies = {
|
|
|
41
167
|
*/
|
|
42
168
|
/** The `--type` name that selects each kind; `plays` is `prebuilts` plus `custom`. */
|
|
43
169
|
type KindFilter = Exclude<SearchType, 'plays'>;
|
|
170
|
+
/** A described thing plus the record the catalog holds for it, for `--json`. */
|
|
171
|
+
type Match = {
|
|
172
|
+
described: Described;
|
|
173
|
+
record: Record<string, unknown>;
|
|
174
|
+
/** The JSON Schemas `--schema-only --json` prints. */
|
|
175
|
+
schemas: Record<string, unknown>;
|
|
176
|
+
/** Describes one of `described.features` at a value; null for any other name. */
|
|
177
|
+
feature?: (name: string, value?: string) => Promise<FeatureView> | null;
|
|
178
|
+
/** A tool's own metadata, so running it does not fetch it again. */
|
|
179
|
+
tool?: CliToolMetadata;
|
|
180
|
+
};
|
|
44
181
|
type DescribeOptions = {
|
|
45
182
|
/** Set by `tools describe` and `plays describe` to limit what a name may be. */
|
|
46
183
|
kinds?: readonly KindFilter[];
|
|
@@ -70,6 +207,8 @@ type DescribeLookups = FeatureDependencies & {
|
|
|
70
207
|
/** Where a list tool's starter Play is written; only a local CLI has one. */
|
|
71
208
|
seedStarterScript?: SeedStarterScript;
|
|
72
209
|
};
|
|
210
|
+
/** The prefix that names something Deepline maintains: `deepline/<name>`. */
|
|
211
|
+
declare const DEEPLINE_NAMESPACE = "deepline/";
|
|
73
212
|
/** Describe's lookups over an SDK client, as the CLI and MCP both read. */
|
|
74
213
|
declare function describeLookupsFor(client: Pick<DeeplineClient, 'describePlay' | 'getTool' | 'describeModel' | 'baseUrl'>): DescribeLookups;
|
|
75
214
|
/**
|
|
@@ -89,12 +228,21 @@ type DescribeOutcome = {
|
|
|
89
228
|
exitCode: number;
|
|
90
229
|
};
|
|
91
230
|
/**
|
|
92
|
-
*
|
|
231
|
+
* Find whatever `name` is: anything `deepline search` returns. Tool ids,
|
|
93
232
|
* monitor type ids and prebuilt play names never collide (the catalog build
|
|
94
233
|
* rejects a release where they do), so a bare name has at most one
|
|
95
234
|
* Deepline-maintained meaning. A play the workspace created under the same
|
|
96
|
-
* name wins unless `custom` is excluded
|
|
235
|
+
* name wins unless `custom` is excluded; `shadowed` is what it hides.
|
|
236
|
+
* `deepline/<name>` names the Deepline tool or play, never a workspace play.
|
|
237
|
+
*/
|
|
238
|
+
declare function findNamed(reference: string, options: Pick<DescribeOptions, 'kinds' | 'prebuilt' | 'tool'>, lookups: DescribeLookups): Promise<{
|
|
239
|
+
chosen?: Match;
|
|
240
|
+
shadowed?: Match;
|
|
241
|
+
}>;
|
|
242
|
+
/**
|
|
243
|
+
* Describe whatever `name` is; see findNamed for how a name resolves. When a
|
|
244
|
+
* workspace play hides a Deepline-maintained one, the output says so.
|
|
97
245
|
*/
|
|
98
246
|
declare function describeName(name: string, options: DescribeOptions, lookups: DescribeLookups): Promise<DescribeOutcome>;
|
|
99
247
|
|
|
100
|
-
export { type CliToolMetadata, type DescribeLookups, type DescribeOptions, type DescribeOutcome, type KindFilter, PlayDescription, describeLookupsFor, describeName };
|
|
248
|
+
export { type CliToolMetadata, DEEPLINE_NAMESPACE, type DescribeLookups, type DescribeOptions, type DescribeOutcome, type KindFilter, type Match, PlayDescription, describeLookupsFor, describeName, findNamed };
|