deepline 0.3.552 → 0.3.554
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundling-sources/sdk/src/client-core.ts +107 -12
- package/dist/bundling-sources/sdk/src/compat.ts +239 -87
- package/dist/bundling-sources/sdk/src/config.ts +113 -2
- package/dist/bundling-sources/sdk/src/errors.ts +2 -0
- package/dist/bundling-sources/sdk/src/http-core.ts +118 -8
- package/dist/bundling-sources/sdk/src/index.ts +2 -0
- package/dist/bundling-sources/sdk/src/integrations.ts +6 -4
- package/dist/bundling-sources/sdk/src/play.ts +3 -0
- package/dist/bundling-sources/sdk/src/plays/run-request.ts +1 -1
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/sdk/src/runs/watch-polling.ts +8 -1
- package/dist/bundling-sources/sdk/src/tool-calls.ts +2 -1
- package/dist/bundling-sources/sdk/src/tool-failure-hint.ts +104 -0
- package/dist/bundling-sources/sdk/src/types.ts +9 -1
- package/dist/bundling-sources/shared_libs/integration-contracts/billing-entitlements.ts +4 -2
- package/dist/bundling-sources/shared_libs/integration-contracts/billing-plan-skus.ts +25 -0
- package/dist/bundling-sources/shared_libs/monitors/action-actor.ts +2 -0
- package/dist/bundling-sources/shared_libs/monitors/billing/credit-recovery.ts +58 -4
- package/dist/bundling-sources/shared_libs/monitors/billing/policy-builders.ts +8 -0
- package/dist/bundling-sources/shared_libs/monitors/billing/pricing.ts +11 -0
- package/dist/bundling-sources/shared_libs/monitors/billing/types.ts +13 -0
- package/dist/bundling-sources/shared_libs/monitors/deactivation-reasons.ts +103 -5
- package/dist/bundling-sources/shared_libs/monitors/fleets/converge-admission.ts +133 -0
- package/dist/bundling-sources/shared_libs/monitors/fleets/fence-attention.ts +165 -0
- package/dist/bundling-sources/shared_libs/monitors/fleets/fence-release.ts +726 -0
- package/dist/bundling-sources/shared_libs/monitors/fleets/fence-walk.ts +274 -0
- package/dist/bundling-sources/shared_libs/monitors/fleets/issues.ts +1 -0
- package/dist/bundling-sources/shared_libs/monitors/fleets/limits.ts +28 -0
- package/dist/bundling-sources/shared_libs/monitors/fleets/provider-bulk-wait.ts +126 -0
- package/dist/bundling-sources/shared_libs/monitors/fleets/shared-payload.ts +189 -0
- package/dist/bundling-sources/shared_libs/monitors/http-error-response.ts +28 -0
- package/dist/bundling-sources/shared_libs/monitors/inbound-publish-key.ts +4 -0
- package/dist/bundling-sources/shared_libs/monitors/inventory-counter-errors.ts +25 -0
- package/dist/bundling-sources/shared_libs/monitors/org-monitor-limits.ts +65 -0
- package/dist/bundling-sources/shared_libs/monitors/package.json +9 -0
- package/dist/bundling-sources/shared_libs/monitors/provider-callback-verification.ts +152 -1
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-batch-operation.ts +6 -0
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-capability.ts +390 -10
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-errors.ts +34 -0
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-identity-claims.ts +66 -30
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-state.ts +30 -0
- package/dist/bundling-sources/shared_libs/monitors/provider-resource-failure.ts +26 -3
- package/dist/bundling-sources/shared_libs/monitors/signal-radars/inbound-dead-letter.ts +41 -13
- package/dist/bundling-sources/shared_libs/monitors/signal-radars/raw-receipt-causes.ts +219 -0
- package/dist/bundling-sources/shared_libs/monitors/snitcher-ip2company.ts +21 -10
- package/dist/bundling-sources/shared_libs/monitors/starter-templates.ts +13 -0
- package/dist/bundling-sources/shared_libs/monitors/tracking-provider-guidance.ts +6 -0
- package/dist/bundling-sources/shared_libs/monitors/tracking-provider-integrations.ts +13 -0
- package/dist/bundling-sources/shared_libs/observability/dlq.ts +1 -1
- package/dist/bundling-sources/shared_libs/observability/log-metadata.ts +5 -3
- package/dist/bundling-sources/shared_libs/observability/queue-health.ts +10 -1
- package/dist/bundling-sources/shared_libs/observability/queue-item-connectors.ts +1 -0
- package/dist/bundling-sources/shared_libs/observability/redaction.ts +24 -1
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +168 -41
- package/dist/bundling-sources/shared_libs/observability/scheduled-work-manual.ts +1 -2
- package/dist/bundling-sources/shared_libs/play-data-plane/preview-r2-oidc.ts +188 -0
- package/dist/bundling-sources/shared_libs/play-data-plane/r2.ts +170 -16
- package/dist/bundling-sources/shared_libs/play-data-plane/runtime-sheet-storage-contract.ts +5 -0
- package/dist/bundling-sources/shared_libs/play-runtime/app-runtime-api.ts +68 -2
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +444 -39
- package/dist/bundling-sources/shared_libs/play-runtime/ctx-fetch-caller-deadline.ts +200 -0
- package/dist/bundling-sources/shared_libs/play-runtime/ctx-types.ts +6 -0
- package/dist/bundling-sources/shared_libs/play-runtime/deployment/runtime-topology.ts +21 -1
- package/dist/bundling-sources/shared_libs/play-runtime/durable-call-cache.ts +3 -2
- package/dist/bundling-sources/shared_libs/play-runtime/durable-summary-events.ts +70 -2
- package/dist/bundling-sources/shared_libs/play-runtime/durable-tool-identity.ts +3 -3
- package/dist/bundling-sources/shared_libs/play-runtime/execution-capabilities.ts +16 -0
- package/dist/bundling-sources/shared_libs/play-runtime/experiment-switches.ts +72 -0
- package/dist/bundling-sources/shared_libs/play-runtime/fixture-behavior.ts +1 -0
- package/dist/bundling-sources/shared_libs/play-runtime/governor/policy.ts +7 -1
- package/dist/bundling-sources/shared_libs/play-runtime/internal-bootstrap-token.ts +62 -0
- package/dist/bundling-sources/shared_libs/play-runtime/map-memory-limits.ts +74 -3
- package/dist/bundling-sources/shared_libs/play-runtime/output-size-limits.ts +31 -3
- package/dist/bundling-sources/shared_libs/play-runtime/play-http-request.ts +6 -0
- package/dist/bundling-sources/shared_libs/play-runtime/protocol.ts +8 -0
- package/dist/bundling-sources/shared_libs/play-runtime/query-result-dataset.ts +19 -0
- package/dist/bundling-sources/shared_libs/play-runtime/resource-governor.ts +39 -2
- package/dist/bundling-sources/shared_libs/play-runtime/run-failure.ts +9 -1
- package/dist/bundling-sources/shared_libs/play-runtime/run-identity.ts +33 -0
- package/dist/bundling-sources/shared_libs/play-runtime/run-ledger-projection-contract.ts +24 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +254 -44
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-payload-transport.ts +87 -6
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/modal.ts +241 -10
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/early-sandbox-egress.ts +161 -14
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/early-sandbox.ts +16 -3
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-api-compression.ts +37 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-api-paths.ts +9 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-api.ts +259 -52
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-authority.ts +13 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-constants.ts +30 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-operation-contract.ts +62 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-scheduler-topology.ts +36 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-sheet-row-transition.ts +36 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-speed-profile.ts +206 -2
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-pool.ts +42 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +185 -64
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-worker-slot-ledger.ts +157 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/early-sandbox-lane.ts +110 -2
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/early-sandbox-listener-hint.ts +323 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/executor-attempt-standing.ts +72 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/integration-operation-value-storage.ts +23 -4
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-workspace-purge.ts +199 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +632 -66
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/run-ledger-outbox-recovery.ts +517 -16
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-api-origin.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-receipt-value-storage.ts +9 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-worker-wake.ts +599 -2
- package/dist/bundling-sources/shared_libs/play-runtime/secret-resolution-retry-policy.ts +26 -1
- package/dist/bundling-sources/shared_libs/play-runtime/startup-read-tool-ids.ts +60 -0
- package/dist/bundling-sources/shared_libs/play-runtime/test-runtime-seams.ts +51 -0
- package/dist/bundling-sources/shared_libs/play-runtime/tool-call-retry-facts.ts +2 -0
- package/dist/bundling-sources/shared_libs/play-runtime/tool-execute-retry-policy.ts +113 -3
- package/dist/bundling-sources/shared_libs/play-runtime/tool-http-errors.ts +5 -7
- package/dist/bundling-sources/shared_libs/play-runtime/work-receipt-storage-contract.ts +2 -0
- package/dist/bundling-sources/shared_libs/play-runtime/workflow-executor-auth.ts +3 -0
- package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +40 -5
- package/dist/bundling-sources/shared_libs/plays/deploy/api-client.ts +3 -0
- package/dist/bundling-sources/shared_libs/plays/deploy/control-plane-types.ts +16 -0
- package/dist/bundling-sources/shared_libs/plays/deploy/run-deployment.ts +10 -41
- package/dist/bundling-sources/shared_libs/plays/extension-bridge.ts +33 -0
- package/dist/bundling-sources/shared_libs/plays/row-identity.ts +18 -1
- package/dist/bundling-sources/shared_libs/plays/tool-execution-error.ts +108 -0
- package/dist/bundling-sources/shared_libs/plays/trigger-config-contract.ts +14 -0
- package/dist/bundling-sources/shared_libs/product-notifications/catalog.ts +171 -0
- package/dist/bundling-sources/shared_libs/product-notifications/events.ts +27 -1
- package/dist/bundling-sources/shared_libs/security/email-blacklist.ts +9 -24
- package/dist/bundling-sources/shared_libs/security/secret-redaction.ts +178 -5
- package/dist/bundling-sources/shared_libs/security/signup-email-dns-screen.ts +148 -0
- package/dist/bundling-sources/shared_libs/tool-execution-error.ts +108 -0
- package/dist/cli/{auth-KVSBJZOX.mjs → auth-HJUNW7T2.mjs} +8 -7
- package/dist/cli/auth-SP6SKZJZ.js +44 -0
- package/dist/cli/{billing-FQREA7UA.js → billing-4TSA5HEC.js} +297 -161
- package/dist/cli/{billing-54RHFEBI.mjs → billing-SJYRJAQ2.mjs} +197 -61
- package/dist/cli/{chunk-4MK42735.js → chunk-2HMN5H54.js} +215 -130
- package/dist/cli/{chunk-UBKA33KY.mjs → chunk-2MGZAI54.mjs} +17 -0
- package/dist/cli/{chunk-EOPEYCY7.mjs → chunk-2ORPFQUA.mjs} +18 -18
- package/dist/cli/{chunk-RQZQVFCJ.js → chunk-2OVHNHCF.js} +2 -2
- package/dist/cli/{chunk-QX7LFGJR.mjs → chunk-33WRQSQ2.mjs} +1874 -91
- package/dist/cli/{chunk-UPMRIVZB.js → chunk-3IKGZ4CG.js} +74 -13
- package/dist/cli/{chunk-EUPVF4SU.mjs → chunk-3Z4VFCXO.mjs} +8 -8
- package/dist/cli/{chunk-GKYAYLRI.js → chunk-4DOFGIEJ.js} +27 -31
- package/dist/cli/{chunk-4TALT2M3.mjs → chunk-52Q5KETX.mjs} +69 -3
- package/dist/cli/{chunk-RBEUVDZF.js → chunk-5CYZHOKI.js} +249 -107
- package/dist/cli/{chunk-LX35AXTN.mjs → chunk-5TYLSS4Q.mjs} +6 -6
- package/dist/cli/{chunk-IYSTRCLX.mjs → chunk-62AUAWQV.mjs} +4 -4
- package/dist/cli/{chunk-ZIAXDBXX.mjs → chunk-62HWJXST.mjs} +17 -21
- package/dist/cli/{chunk-QY3ZNU6Z.mjs → chunk-6EXOAT6T.mjs} +2 -2
- package/dist/cli/{chunk-EITMD3A5.js → chunk-6VLFQZK6.js} +8 -8
- package/dist/cli/{chunk-ADRC5I3R.js → chunk-7OWI736E.js} +30 -30
- package/dist/cli/{chunk-NURW5XH4.mjs → chunk-ASB47RXJ.mjs} +1 -1
- package/dist/cli/{chunk-PTVD2GVQ.mjs → chunk-B6HO2XWH.mjs} +13 -13
- package/dist/cli/{chunk-YJHE3O5M.mjs → chunk-BOZAP2EM.mjs} +141 -56
- package/dist/cli/chunk-BVXIGOBZ.js +32 -0
- package/dist/cli/{chunk-XDVT3GOM.js → chunk-CFJFUVX2.js} +18 -1
- package/dist/cli/{chunk-WE5HES3H.mjs → chunk-D6Z6POKE.mjs} +151 -43
- package/dist/cli/{chunk-AZQ264ID.mjs → chunk-DSKSFFK2.mjs} +1 -1
- package/dist/cli/{chunk-SHLFOPD6.js → chunk-DUBXUAAO.js} +5 -5
- package/dist/cli/{chunk-V436Z54K.js → chunk-E2G2DNAB.js} +3 -1
- package/dist/cli/{chunk-HO3XK3R7.js → chunk-E74KGKFZ.js} +8 -8
- package/dist/cli/{chunk-77AAAGVB.js → chunk-ECHKAC7M.js} +2 -2
- package/dist/cli/{chunk-KWSH5T7K.js → chunk-EN5NHCCQ.js} +21 -21
- package/dist/cli/{chunk-6RZOWL2V.mjs → chunk-F7CMRKSK.mjs} +1 -1
- package/dist/cli/{chunk-JWUAX6OP.js → chunk-FBAFX43W.js} +11 -11
- package/dist/cli/{chunk-AQWQ2BFX.mjs → chunk-FXQ3JKE3.mjs} +1 -1
- package/dist/cli/{chunk-QPKH23EC.mjs → chunk-GA2M3G3Y.mjs} +5 -5
- package/dist/cli/{chunk-G4O75EXF.js → chunk-GHT2NDL7.js} +18 -18
- package/dist/cli/{chunk-MF2GHZDO.js → chunk-GRZENGNE.js} +2 -2
- package/dist/cli/{chunk-4UUR4TCH.js → chunk-IVZKMJUK.js} +1875 -92
- package/dist/cli/{chunk-FTJLJCE5.mjs → chunk-KVBQY4ST.mjs} +3 -3
- package/dist/cli/{chunk-S5S355UY.mjs → chunk-KZHBDMGF.mjs} +12 -12
- package/dist/cli/{chunk-BBTKAASQ.js → chunk-LFQJW4S2.js} +42 -1
- package/dist/cli/{chunk-6ZORHRKB.mjs → chunk-LRZGS6RZ.mjs} +2 -0
- package/dist/cli/{chunk-2WFPHBR4.js → chunk-LY5MMXFF.js} +47 -29
- package/dist/cli/{chunk-BAIST2BR.js → chunk-M7STM3MZ.js} +36 -36
- package/dist/cli/{chunk-SL6MYJYM.js → chunk-MJTVX4QK.js} +35 -35
- package/dist/cli/{chunk-45PVGZST.js → chunk-OPTV7D2V.js} +508 -361
- package/dist/cli/{chunk-PFO3ISXA.js → chunk-OVEYWO4H.js} +174 -129
- package/dist/cli/{chunk-BGBJV26E.mjs → chunk-PC2FTUCP.mjs} +4 -4
- package/dist/cli/{chunk-WLN3SUIA.js → chunk-PQQMPUCZ.js} +3 -3
- package/dist/cli/{chunk-HYC4MKGK.mjs → chunk-Q7ACILL2.mjs} +5 -5
- package/dist/cli/{chunk-CBV7AKWM.js → chunk-R6DZ6NQ2.js} +5 -5
- package/dist/cli/{chunk-57VZVF5D.mjs → chunk-RBBTCYQB.mjs} +3 -3
- package/dist/cli/{chunk-F2LH7TGF.js → chunk-RTHMGSZX.js} +21 -21
- package/dist/cli/{chunk-YLTMXJFC.mjs → chunk-S6W6SJ6E.mjs} +158 -16
- package/dist/cli/chunk-STXDSVQZ.mjs +32 -0
- package/dist/cli/{chunk-WEHCBH5R.mjs → chunk-TGUQET3O.mjs} +67 -6
- package/dist/cli/{chunk-IHRKLXZN.js → chunk-TJ6HLN56.js} +5 -5
- package/dist/cli/{chunk-3FD5EQ62.js → chunk-TOO3YM5N.js} +6 -7
- package/dist/cli/{chunk-QILKGXYF.mjs → chunk-UBBYHB2B.mjs} +2 -2
- package/dist/cli/{chunk-6PRW5UBA.mjs → chunk-UC4BDZKI.mjs} +299 -69
- package/dist/cli/{chunk-634ZDA3F.js → chunk-UNNOZKRT.js} +1 -1
- package/dist/cli/{chunk-IDVVIXPJ.js → chunk-UOT7HPBH.js} +41 -41
- package/dist/cli/{chunk-6YCA5NKJ.js → chunk-UYCZFQYQ.js} +12 -12
- package/dist/cli/{chunk-7IKQKKNX.js → chunk-VIUUTEHY.js} +90 -24
- package/dist/cli/{chunk-Z5TSLLOW.mjs → chunk-VLO5NFH2.mjs} +63 -18
- package/dist/cli/{chunk-U7QRMBIY.mjs → chunk-VQ75KX7G.mjs} +5 -5
- package/dist/cli/{chunk-4NQF6KJ3.js → chunk-VV4XGZ24.js} +13 -13
- package/dist/cli/{chunk-FSIVF2SI.mjs → chunk-VZGLIK5U.mjs} +1 -1
- package/dist/cli/{chunk-S46HWQKO.js → chunk-W6CZDTIR.js} +69 -69
- package/dist/cli/{chunk-XVB7V4N7.js → chunk-WL7P32PI.js} +161 -53
- package/dist/cli/{chunk-DJ2JDK4O.mjs → chunk-XD3MFTHA.mjs} +1 -1
- package/dist/cli/{chunk-GGGAEVCX.mjs → chunk-XFZX6FNM.mjs} +40 -22
- package/dist/cli/{chunk-AWJPDPMA.mjs → chunk-XU6QNM4D.mjs} +1 -1
- package/dist/cli/{chunk-QAORXEY3.mjs → chunk-YCOGPOUX.mjs} +6 -7
- package/dist/cli/{chunk-VQALXEXO.js → chunk-YQKCH4R7.js} +348 -118
- package/dist/cli/{chunk-6O5HOODW.mjs → chunk-YY55NYAH.mjs} +207 -60
- package/dist/cli/{chunk-JL2OTMSG.mjs → chunk-Z3A2S3QM.mjs} +41 -0
- package/dist/cli/command-docs.js +3 -3
- package/dist/cli/command-docs.mjs +2 -2
- package/dist/cli/{concurrent-runs-help-Q4KPAUJX.mjs → concurrent-runs-help-O3Q5IPLF.mjs} +9 -8
- package/dist/cli/concurrent-runs-help-ZFRZWX5V.js +22 -0
- package/dist/cli/{csv-F5VAGX4K.js → csv-4ZQ2RATI.js} +16 -15
- package/dist/cli/{csv-2PTVDNO6.mjs → csv-Y3BFPEM6.mjs} +7 -6
- package/dist/cli/{db-IEDXAUF7.mjs → db-3JYY4JNN.mjs} +17 -17
- package/dist/cli/{db-Z3OIUFMM.js → db-VEIFS4M7.js} +45 -45
- package/dist/cli/describe-EVJ4MFVU.mjs +50 -0
- package/dist/cli/describe-FG625QPF.js +50 -0
- package/dist/cli/describe-core.d.mts +3 -3
- package/dist/cli/describe-core.d.ts +3 -3
- package/dist/cli/describe-core.js +7 -7
- package/dist/cli/describe-core.mjs +6 -6
- package/dist/cli/{executions-H6H5655J.js → executions-HPZXOOVX.js} +12 -12
- package/dist/cli/{executions-R3LP74QN.mjs → executions-PCXZKEHM.mjs} +10 -10
- package/dist/cli/{feedback-WL3MRVT5.mjs → feedback-Y6VKZNY6.mjs} +9 -8
- package/dist/cli/{feedback-VFOUR66B.js → feedback-ZKFHFVL6.js} +17 -16
- package/dist/cli/git-RUBMALLH.js +26 -0
- package/dist/cli/{git-YX2J4GCI.mjs → git-UMPR2QYC.mjs} +8 -7
- package/dist/cli/index.js +170 -158
- package/dist/cli/index.mjs +60 -48
- package/dist/cli/{integrations-E2JZYKHS.js → integrations-3GQCTRTF.js} +23 -27
- package/dist/cli/{integrations-5ZK5KLVP.mjs → integrations-V3TM6XAB.mjs} +15 -19
- package/dist/cli/{legacy-noops-SMN3GSXY.mjs → legacy-noops-JZBUD7ZE.mjs} +9 -8
- package/dist/cli/{legacy-noops-3VW4IJTH.js → legacy-noops-VYCO7NGW.js} +12 -11
- package/dist/cli/{mcp-UQV2K4EW.js → mcp-4OIWTCE6.js} +121 -48
- package/dist/cli/{mcp-V6MGCYAG.mjs → mcp-PH4KZ76P.mjs} +100 -27
- package/dist/cli/{monitors-R3BBDCRC.js → monitors-E2A6VPBY.js} +221 -186
- package/dist/cli/{monitors-GGKS5W6M.mjs → monitors-SSMGIDGX.mjs} +58 -23
- package/dist/cli/org-SFDKSK5D.mjs +2289 -0
- package/dist/cli/org-WUDZGWBT.js +2289 -0
- package/dist/cli/outcomes-QT7LQBPK.mjs +2865 -0
- package/dist/cli/outcomes-Y7SZTLSL.js +2865 -0
- package/dist/cli/{play-MDWPR4XG.mjs → play-EK7KSFPL.mjs} +376 -106
- package/dist/cli/{play-2MVO27VO.js → play-GDNHCRRR.js} +1150 -880
- package/dist/cli/{providers-AKDYFZJZ.mjs → providers-FVZLRXAU.mjs} +10 -10
- package/dist/cli/{providers-2AACRUZH.js → providers-ZKOSECLV.js} +13 -13
- package/dist/cli/{quickstart-H6IV3PV3.js → quickstart-KSDKIXYD.js} +9 -8
- package/dist/cli/{quickstart-QDGRJFZY.mjs → quickstart-UJZ6PIQV.mjs} +7 -6
- package/dist/cli/{run-RTSQNGRD.mjs → run-E7MZ7P35.mjs} +35 -33
- package/dist/cli/{run-2634REDK.js → run-PD2BBG6S.js} +55 -53
- package/dist/cli/run-identity-LMLFMACS.js +31 -0
- package/dist/cli/{run-identity-MRNCEGV2.mjs → run-identity-MAZ7ANH5.mjs} +9 -3
- package/dist/cli/search-TKSPTPHA.js +32 -0
- package/dist/cli/{search-6AOJ4XPP.mjs → search-VTFUFTOY.mjs} +11 -11
- package/dist/cli/{search-output-S5ODBL5E.js → search-output-G2AGDCOY.js} +13 -12
- package/dist/cli/{search-output-6ADMTOU5.mjs → search-output-PFVXQCWA.mjs} +10 -9
- package/dist/cli/{secrets-TFIFBFB3.mjs → secrets-7CIMEMX7.mjs} +11 -11
- package/dist/cli/{secrets-LHCIIHMT.js → secrets-BCOQ4U7U.js} +20 -20
- package/dist/cli/sessions-4CO556VD.js +23 -0
- package/dist/cli/{sessions-WHBVUHVW.mjs → sessions-IUCQZEF7.mjs} +9 -8
- package/dist/cli/{settings-EBONWL5C.mjs → settings-KZN62UQK.mjs} +16 -16
- package/dist/cli/{settings-CP4FVK2W.js → settings-REL4736M.js} +89 -89
- package/dist/cli/{setup-I5AZE3IU.mjs → setup-2P7OG3OU.mjs} +22 -24
- package/dist/cli/{setup-LFGHTNLQ.js → setup-2XIVBBCS.js} +62 -64
- package/dist/cli/skills-JYT5DEY6.js +37 -0
- package/dist/cli/{skills-W76AO5XE.mjs → skills-VIGNDJKI.mjs} +10 -9
- package/dist/cli/tools-NTVUQ2TG.js +57 -0
- package/dist/cli/{tools-7IJHGF6W.mjs → tools-W3QT5EJY.mjs} +24 -24
- package/dist/cli/{update-GFOPZTHY.mjs → update-GZVBVMY3.mjs} +14 -11
- package/dist/cli/update-TWJZPUZM.js +37 -0
- package/dist/cli/{views-D4NX4SBG.mjs → views-BOGEH424.mjs} +47 -49
- package/dist/cli/{views-BPL2TQJ4.js → views-TOLJNLSV.js} +62 -64
- package/dist/cli/{workflow-ZYNAUCKC.js → workflow-ENWFRK5M.js} +23 -23
- package/dist/cli/{workflow-YXP42FUI.mjs → workflow-VDG2FDQV.mjs} +13 -13
- package/dist/{client-CyXGrO4D.d.mts → client-B8f7RNF8.d.mts} +1 -1
- package/dist/{client-Bf3IpUKN.d.ts → client-C5TgXmJQ.d.ts} +1 -1
- package/dist/{client-core-BxsLnXlm.d.mts → client-core-SLLGBTht.d.mts} +268 -23
- package/dist/{client-core-BWd0lX0Z.d.ts → client-core-p0sOxnkl.d.ts} +268 -23
- package/dist/{compiler-manifest-BqwVrOri.d.ts → compiler-manifest-D_zZEh9Q.d.mts} +70 -5
- package/dist/{compiler-manifest-BqwVrOri.d.mts → compiler-manifest-D_zZEh9Q.d.ts} +70 -5
- package/dist/{errors-BU8FB99X.d.mts → errors-CZCrBFrQ.d.mts} +1 -1
- package/dist/{errors-DfVN_FUG.d.ts → errors-DsUkLrdZ.d.ts} +1 -1
- package/dist/{index-BGnvtYGc.d.ts → index-B6RTOZGC.d.ts} +1 -1
- package/dist/{index-DjZgwpGw.d.mts → index-DeOVrEmX.d.mts} +1 -1
- package/dist/index.d.mts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +66 -55
- package/dist/index.mjs +25 -14
- package/dist/install-integrity.json +163 -144
- package/dist/plays/bundle-play-file.d.mts +3 -3
- package/dist/plays/bundle-play-file.d.ts +3 -3
- package/dist/plays/bundle-play-file.mjs +23 -4
- package/dist/plays/csv-data-input.js +3 -3
- package/dist/plays/csv-data-input.mjs +2 -2
- package/dist/plays/play-description.d.mts +2 -2
- package/dist/plays/play-description.d.ts +2 -2
- package/dist/plays/run-request.d.mts +2 -2
- package/dist/plays/run-request.d.ts +2 -2
- package/dist/plays/run-request.js +4 -4
- package/dist/plays/run-request.mjs +3 -3
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/dist/server.d.mts +4 -4
- package/dist/server.d.ts +4 -4
- package/dist/server.js +15 -13
- package/dist/server.mjs +9 -7
- package/package.json +1 -1
- package/dist/cli/auth-MMNVWATX.js +0 -43
- package/dist/cli/chunk-AID3OYVJ.js +0 -8
- package/dist/cli/chunk-OVDNJAJN.mjs +0 -8
- package/dist/cli/concurrent-runs-help-FQAIHKKC.js +0 -21
- package/dist/cli/describe-QDANCTS3.mjs +0 -50
- package/dist/cli/describe-VUTT5ZKU.js +0 -50
- package/dist/cli/git-ETB3GH3K.js +0 -25
- package/dist/cli/org-GRYVMNSW.js +0 -1282
- package/dist/cli/org-Z37NGJV4.mjs +0 -1282
- package/dist/cli/run-identity-G257GQED.js +0 -25
- package/dist/cli/search-VTW2YNBS.js +0 -32
- package/dist/cli/sessions-CJ4FJ2WB.js +0 -22
- package/dist/cli/skills-R7EBXREW.js +0 -36
- package/dist/cli/tools-V7U2BDXM.js +0 -57
- package/dist/cli/update-4COPZETK.js +0 -34
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkTJ6HLN56js = require('./cli/chunk-TJ6HLN56.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -12,7 +12,7 @@ var _chunkIHRKLXZNjs = require('./cli/chunk-IHRKLXZN.js');
|
|
|
12
12
|
var _chunkHGFFYVXNjs = require('./cli/chunk-HGFFYVXN.js');
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkDUBXUAAOjs = require('./cli/chunk-DUBXUAAO.js');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
@@ -37,19 +37,15 @@ var _chunkVKKVSFRDjs = require('./cli/chunk-VKKVSFRD.js');
|
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
|
|
40
|
-
var
|
|
40
|
+
var _chunkOVEYWO4Hjs = require('./cli/chunk-OVEYWO4H.js');
|
|
41
41
|
|
|
42
42
|
|
|
43
43
|
var _chunk4WAM6TLDjs = require('./cli/chunk-4WAM6TLD.js');
|
|
44
|
-
require('./cli/chunk-
|
|
44
|
+
require('./cli/chunk-MJTVX4QK.js');
|
|
45
45
|
require('./cli/chunk-PMH4GLMD.js');
|
|
46
46
|
|
|
47
47
|
|
|
48
48
|
|
|
49
|
-
var _chunkXDVT3GOMjs = require('./cli/chunk-XDVT3GOM.js');
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
49
|
|
|
54
50
|
|
|
55
51
|
|
|
@@ -69,18 +65,18 @@ var _chunkU2LVWCTDjs = require('./cli/chunk-U2LVWCTD.js');
|
|
|
69
65
|
|
|
70
66
|
|
|
71
67
|
|
|
72
|
-
var
|
|
68
|
+
var _chunkVIUUTEHYjs = require('./cli/chunk-VIUUTEHY.js');
|
|
73
69
|
|
|
74
70
|
|
|
75
71
|
|
|
76
|
-
var
|
|
72
|
+
var _chunk5CYZHOKIjs = require('./cli/chunk-5CYZHOKI.js');
|
|
77
73
|
|
|
78
74
|
|
|
79
75
|
|
|
80
76
|
|
|
81
77
|
|
|
82
78
|
|
|
83
|
-
var
|
|
79
|
+
var _chunk6VLFQZK6js = require('./cli/chunk-6VLFQZK6.js');
|
|
84
80
|
require('./cli/chunk-XNYIZMNQ.js');
|
|
85
81
|
|
|
86
82
|
|
|
@@ -89,8 +85,13 @@ require('./cli/chunk-XNYIZMNQ.js');
|
|
|
89
85
|
|
|
90
86
|
|
|
91
87
|
|
|
92
|
-
|
|
93
|
-
require('./cli/chunk-
|
|
88
|
+
|
|
89
|
+
var _chunkLFQJW4S2js = require('./cli/chunk-LFQJW4S2.js');
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
var _chunkCFJFUVX2js = require('./cli/chunk-CFJFUVX2.js');
|
|
94
|
+
require('./cli/chunk-UNNOZKRT.js');
|
|
94
95
|
require('./cli/chunk-OG64RBAC.js');
|
|
95
96
|
require('./cli/chunk-COGTRVWW.js');
|
|
96
97
|
|
|
@@ -1307,7 +1308,7 @@ function buildListAccessors(resolved, lists, toolId, executionDiscriminator) {
|
|
|
1307
1308
|
metadata.path,
|
|
1308
1309
|
datasetDiscriminator
|
|
1309
1310
|
),
|
|
1310
|
-
datasetId: `tool-list:${
|
|
1311
|
+
datasetId: `tool-list:${_chunkCFJFUVX2js.sha256Hex.call(void 0,
|
|
1311
1312
|
`${toolId}:${metadata.path}:${datasetDiscriminator}`
|
|
1312
1313
|
)}`
|
|
1313
1314
|
});
|
|
@@ -1328,7 +1329,7 @@ function buildListAccessors(resolved, lists, toolId, executionDiscriminator) {
|
|
|
1328
1329
|
}
|
|
1329
1330
|
function listRowsFingerprint(rows) {
|
|
1330
1331
|
try {
|
|
1331
|
-
return
|
|
1332
|
+
return _chunkCFJFUVX2js.sha256Hex.call(void 0,
|
|
1332
1333
|
JSON.stringify(
|
|
1333
1334
|
{
|
|
1334
1335
|
count: rows.length,
|
|
@@ -1338,23 +1339,23 @@ function listRowsFingerprint(rows) {
|
|
|
1338
1339
|
)
|
|
1339
1340
|
).slice(0, 12);
|
|
1340
1341
|
} catch (e) {
|
|
1341
|
-
return
|
|
1342
|
+
return _chunkCFJFUVX2js.sha256Hex.call(void 0, String(rows.length)).slice(0, 12);
|
|
1342
1343
|
}
|
|
1343
1344
|
}
|
|
1344
1345
|
function listTableNamespace(toolId, name, path, discriminator) {
|
|
1345
|
-
const raw = `${toolId}_${name || path || "rows"}_${
|
|
1346
|
+
const raw = `${toolId}_${name || path || "rows"}_${_chunkCFJFUVX2js.sha256Hex.call(void 0, discriminator).slice(0, 10)}`;
|
|
1346
1347
|
try {
|
|
1347
|
-
return
|
|
1348
|
+
return _chunkCFJFUVX2js.normalizeTableNamespace.call(void 0, raw);
|
|
1348
1349
|
} catch (e2) {
|
|
1349
|
-
const hash =
|
|
1350
|
+
const hash = _chunkCFJFUVX2js.sha256Hex.call(void 0, raw).slice(0, 10);
|
|
1350
1351
|
const leaf = name || path.split(".").filter(Boolean).at(-1) || "rows";
|
|
1351
1352
|
let prefix = "rows";
|
|
1352
1353
|
try {
|
|
1353
|
-
prefix =
|
|
1354
|
+
prefix = _chunkCFJFUVX2js.normalizeTableNamespace.call(void 0, leaf).slice(0, 52) || "rows";
|
|
1354
1355
|
} catch (e3) {
|
|
1355
1356
|
prefix = "rows";
|
|
1356
1357
|
}
|
|
1357
|
-
return
|
|
1358
|
+
return _chunkCFJFUVX2js.normalizeTableNamespace.call(void 0, `${prefix}_${hash}`);
|
|
1358
1359
|
}
|
|
1359
1360
|
}
|
|
1360
1361
|
function oneValue(values, toolId, name) {
|
|
@@ -1801,6 +1802,13 @@ function preservedSerializedListRows(value) {
|
|
|
1801
1802
|
}
|
|
1802
1803
|
|
|
1803
1804
|
// ../play-runtime/query-result-dataset.ts
|
|
1805
|
+
function readQueryResultDatasetResultRef(dataset) {
|
|
1806
|
+
const raw = _optionalChain([dataset, 'optionalAccess', _78 => _78.result_ref]);
|
|
1807
|
+
if (typeof raw !== "string") return null;
|
|
1808
|
+
const resultRef = raw.trim();
|
|
1809
|
+
return resultRef && resultRef.length <= QUERY_RESULT_DATASET_RESULT_REF_MAX_LENGTH ? resultRef : null;
|
|
1810
|
+
}
|
|
1811
|
+
var QUERY_RESULT_DATASET_RESULT_REF_MAX_LENGTH = 256;
|
|
1804
1812
|
var QUERY_RESULT_DATASET_PAGE_SIZE = 1e3;
|
|
1805
1813
|
function isCustomerDbDatasetTool(toolId) {
|
|
1806
1814
|
return /^(?:customer_db_)?query_customer_db$/.test(toolId);
|
|
@@ -1846,7 +1854,7 @@ function __deeplineRunWithDocflowContext(context, body) {
|
|
|
1846
1854
|
return docflowRunContexts.run(context, body);
|
|
1847
1855
|
}
|
|
1848
1856
|
function __deeplineCurrentDocflowContext() {
|
|
1849
|
-
const context = _nullishCoalesce(_nullishCoalesce(_optionalChain([docflowRunContexts, 'optionalAccess',
|
|
1857
|
+
const context = _nullishCoalesce(_nullishCoalesce(_optionalChain([docflowRunContexts, 'optionalAccess', _79 => _79.getStore, 'call', _80 => _80()]), () => ( _optionalChain([scriptRuns, 'access', _81 => _81.getStore, 'call', _82 => _82(), 'optionalAccess', _83 => _83.context]))), () => ( null));
|
|
1850
1858
|
if (!context) return null;
|
|
1851
1859
|
let observe;
|
|
1852
1860
|
try {
|
|
@@ -1945,7 +1953,7 @@ var DeeplineStepProgram = (_class3 = class _DeeplineStepProgram {
|
|
|
1945
1953
|
"steps().step(name, ...) requires a non-empty step name."
|
|
1946
1954
|
);
|
|
1947
1955
|
}
|
|
1948
|
-
const stepResolver = _optionalChain([options, 'optionalAccess',
|
|
1956
|
+
const stepResolver = _optionalChain([options, 'optionalAccess', _84 => _84.runIf]) && !isConditionalStepResolver(resolver) ? new DeeplineConditionalStepResolver(
|
|
1949
1957
|
options.runIf,
|
|
1950
1958
|
resolver,
|
|
1951
1959
|
null
|
|
@@ -1955,9 +1963,9 @@ var DeeplineStepProgram = (_class3 = class _DeeplineStepProgram {
|
|
|
1955
1963
|
...this.steps,
|
|
1956
1964
|
{
|
|
1957
1965
|
name,
|
|
1958
|
-
..._optionalChain([options, 'optionalAccess',
|
|
1959
|
-
..._optionalChain([options, 'optionalAccess',
|
|
1960
|
-
...typeof _optionalChain([options, 'optionalAccess',
|
|
1966
|
+
..._optionalChain([options, 'optionalAccess', _85 => _85.recompute]) === true ? { recompute: true } : {},
|
|
1967
|
+
..._optionalChain([options, 'optionalAccess', _86 => _86.recomputeOnError]) === true ? { recomputeOnError: true } : {},
|
|
1968
|
+
...typeof _optionalChain([options, 'optionalAccess', _87 => _87.staleAfterSeconds]) === "number" ? { staleAfterSeconds: options.staleAfterSeconds } : {},
|
|
1961
1969
|
resolver: stepResolver
|
|
1962
1970
|
}
|
|
1963
1971
|
],
|
|
@@ -1997,13 +2005,13 @@ var DeeplinePlayJobImpl = class {
|
|
|
1997
2005
|
return this.client.getPlayStatus(this.id);
|
|
1998
2006
|
}
|
|
1999
2007
|
async tail(options) {
|
|
2000
|
-
const intervalMs = _nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
2001
|
-
const onLog = _nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
2008
|
+
const intervalMs = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _88 => _88.intervalMs]), () => ( 500));
|
|
2009
|
+
const onLog = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _89 => _89.onLog]), () => ( ((line) => console.log(line))));
|
|
2002
2010
|
const terminalStates = /* @__PURE__ */ new Set(["completed", "failed", "cancelled"]);
|
|
2003
2011
|
let lastLogIndex = 0;
|
|
2004
2012
|
while (true) {
|
|
2005
2013
|
const status = await this.status();
|
|
2006
|
-
const logs = _nullishCoalesce(_optionalChain([status, 'access',
|
|
2014
|
+
const logs = _nullishCoalesce(_optionalChain([status, 'access', _90 => _90.progress, 'optionalAccess', _91 => _91.logs]), () => ( []));
|
|
2007
2015
|
for (let index = lastLogIndex; index < logs.length; index += 1) {
|
|
2008
2016
|
onLog(logs[index]);
|
|
2009
2017
|
}
|
|
@@ -2015,14 +2023,14 @@ var DeeplinePlayJobImpl = class {
|
|
|
2015
2023
|
}
|
|
2016
2024
|
}
|
|
2017
2025
|
async get(options) {
|
|
2018
|
-
const intervalMs = _nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
2026
|
+
const intervalMs = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _92 => _92.intervalMs]), () => ( 500));
|
|
2019
2027
|
const terminalStates = /* @__PURE__ */ new Set(["completed", "failed", "cancelled"]);
|
|
2020
2028
|
while (true) {
|
|
2021
2029
|
const status = await this.status();
|
|
2022
2030
|
if (terminalStates.has(status.status)) {
|
|
2023
2031
|
if (status.status !== "completed") {
|
|
2024
|
-
throw new (0,
|
|
2025
|
-
_optionalChain([status, 'access',
|
|
2032
|
+
throw new (0, _chunkLFQJW4S2js.DeeplineError)(
|
|
2033
|
+
_optionalChain([status, 'access', _93 => _93.progress, 'optionalAccess', _94 => _94.error]) || `Play run ${this.id} ended with ${status.status}.`
|
|
2026
2034
|
);
|
|
2027
2035
|
}
|
|
2028
2036
|
if (status.package) {
|
|
@@ -2053,8 +2061,8 @@ function createNamedPlayHandle(clientFactory, name) {
|
|
|
2053
2061
|
const client = clientFactory();
|
|
2054
2062
|
const started = await client.startPlayRun({
|
|
2055
2063
|
name,
|
|
2056
|
-
..._optionalChain([options, 'optionalAccess',
|
|
2057
|
-
..._optionalChain([options, 'optionalAccess',
|
|
2064
|
+
..._optionalChain([options, 'optionalAccess', _95 => _95.revisionId]) ? { revisionId: options.revisionId } : {},
|
|
2065
|
+
..._optionalChain([options, 'optionalAccess', _96 => _96.profile]) ? { profile: options.profile } : {},
|
|
2058
2066
|
input
|
|
2059
2067
|
});
|
|
2060
2068
|
return new DeeplinePlayJobImpl(client, started.workflowId);
|
|
@@ -2080,7 +2088,7 @@ var DeeplineContext = class {
|
|
|
2080
2088
|
* @param options - Optional SDK client configuration.
|
|
2081
2089
|
*/
|
|
2082
2090
|
constructor(options) {
|
|
2083
|
-
this.client = new (0,
|
|
2091
|
+
this.client = new (0, _chunkDUBXUAAOjs.DeeplineClient)(options);
|
|
2084
2092
|
}
|
|
2085
2093
|
/**
|
|
2086
2094
|
* Tool operations namespace.
|
|
@@ -2345,15 +2353,16 @@ function stableHash(value) {
|
|
|
2345
2353
|
function attachSdkQueryResultDatasetResult(toolId, result, options) {
|
|
2346
2354
|
if (!options || !isQueryResultDatasetTool(toolId)) return result;
|
|
2347
2355
|
const raw = isRecord2(result.toolResponse.raw) ? result.toolResponse.raw : null;
|
|
2348
|
-
const dataset = isRecord2(_optionalChain([raw, 'optionalAccess',
|
|
2349
|
-
const totalRows = finiteNonNegativeInteger(_optionalChain([dataset, 'optionalAccess',
|
|
2350
|
-
const sql = typeof options.input.sql === "string" ? options.input.sql : typeof options.input.query === "string" ? options.input.query : typeof _optionalChain([raw, 'optionalAccess',
|
|
2356
|
+
const dataset = isRecord2(_optionalChain([raw, 'optionalAccess', _97 => _97.dataset])) ? raw.dataset : null;
|
|
2357
|
+
const totalRows = finiteNonNegativeInteger(_optionalChain([dataset, 'optionalAccess', _98 => _98.total_rows]));
|
|
2358
|
+
const sql = typeof options.input.sql === "string" ? options.input.sql : typeof options.input.query === "string" ? options.input.query : typeof _optionalChain([raw, 'optionalAccess', _99 => _99.sql]) === "string" ? raw.sql : null;
|
|
2351
2359
|
if (!dataset || totalRows === null || !sql) {
|
|
2352
2360
|
return result;
|
|
2353
2361
|
}
|
|
2354
2362
|
const datasetLimit = _nullishCoalesce(finitePositiveInteger(dataset.returned_limit), () => ( totalRows));
|
|
2355
2363
|
const effectiveCount = Math.min(totalRows, datasetLimit);
|
|
2356
|
-
const
|
|
2364
|
+
const storedResultRef = readQueryResultDatasetResultRef(dataset);
|
|
2365
|
+
const rawRows = rowsFromUnknown(_optionalChain([raw, 'optionalAccess', _100 => _100.rows]));
|
|
2357
2366
|
const previewRows = rawRows.slice(0, 25);
|
|
2358
2367
|
const fetchPage = async (offset, limit) => {
|
|
2359
2368
|
if (limit <= 0 || offset >= totalRows) return [];
|
|
@@ -2365,7 +2374,8 @@ function attachSdkQueryResultDatasetResult(toolId, result, options) {
|
|
|
2365
2374
|
limit: datasetLimit,
|
|
2366
2375
|
offset,
|
|
2367
2376
|
page_size: Math.min(limit, QUERY_RESULT_DATASET_PAGE_SIZE),
|
|
2368
|
-
total_rows: totalRows
|
|
2377
|
+
total_rows: totalRows,
|
|
2378
|
+
...storedResultRef ? { result_ref: storedResultRef } : {}
|
|
2369
2379
|
},
|
|
2370
2380
|
...isCustomerDbDatasetTool(toolId) ? {
|
|
2371
2381
|
customer_db_dataset: {
|
|
@@ -2377,8 +2387,8 @@ function attachSdkQueryResultDatasetResult(toolId, result, options) {
|
|
|
2377
2387
|
} : {}
|
|
2378
2388
|
}
|
|
2379
2389
|
});
|
|
2380
|
-
const pageRaw = isRecord2(_optionalChain([response, 'access',
|
|
2381
|
-
return rowsFromUnknown(_optionalChain([pageRaw, 'optionalAccess',
|
|
2390
|
+
const pageRaw = isRecord2(_optionalChain([response, 'access', _101 => _101.toolResponse, 'optionalAccess', _102 => _102.raw])) ? response.toolResponse.raw : null;
|
|
2391
|
+
return rowsFromUnknown(_optionalChain([pageRaw, 'optionalAccess', _103 => _103.rows]));
|
|
2382
2392
|
};
|
|
2383
2393
|
const collectRows = async (limit) => {
|
|
2384
2394
|
const target = Math.min(_nullishCoalesce(limit, () => ( totalRows)), totalRows, datasetLimit);
|
|
@@ -2430,10 +2440,10 @@ function attachSdkQueryResultDatasetResult(toolId, result, options) {
|
|
|
2430
2440
|
});
|
|
2431
2441
|
}
|
|
2432
2442
|
function toolExecutionEnvelopeToResult(fallbackToolId, response, options) {
|
|
2433
|
-
const raw = _nullishCoalesce(_optionalChain([response, 'access',
|
|
2434
|
-
const rawV2 = _optionalChain([response, 'access',
|
|
2435
|
-
const view = _optionalChain([response, 'access',
|
|
2436
|
-
const meta = _optionalChain([response, 'access',
|
|
2443
|
+
const raw = _nullishCoalesce(_optionalChain([response, 'access', _104 => _104.toolResponse, 'optionalAccess', _105 => _105.raw]), () => ( null));
|
|
2444
|
+
const rawV2 = _optionalChain([response, 'access', _106 => _106.toolResponse, 'optionalAccess', _107 => _107.rawV2]);
|
|
2445
|
+
const view = _optionalChain([response, 'access', _108 => _108.toolResponse, 'optionalAccess', _109 => _109.view]);
|
|
2446
|
+
const meta = _optionalChain([response, 'access', _110 => _110.toolResponse, 'optionalAccess', _111 => _111.meta]);
|
|
2437
2447
|
const metadata = isRecord2(response._metadata) ? response._metadata.tool : null;
|
|
2438
2448
|
const toolMetadata = isRecord2(metadata) ? metadata : {};
|
|
2439
2449
|
const result = projectToolResultListGetters(
|
|
@@ -2492,11 +2502,11 @@ function definePlay(nameOrConfig, maybeFn, maybeBindings) {
|
|
|
2492
2502
|
name: nameOrConfig,
|
|
2493
2503
|
fn: maybeFn,
|
|
2494
2504
|
bindings: maybeBindings,
|
|
2495
|
-
description: _optionalChain([maybeBindings, 'optionalAccess',
|
|
2505
|
+
description: _optionalChain([maybeBindings, 'optionalAccess', _112 => _112.description]),
|
|
2496
2506
|
inputSchema: void 0,
|
|
2497
|
-
billing: _optionalChain([maybeBindings, 'optionalAccess',
|
|
2498
|
-
runtime: _optionalChain([maybeBindings, 'optionalAccess',
|
|
2499
|
-
compatibility: _optionalChain([maybeBindings, 'optionalAccess',
|
|
2507
|
+
billing: _optionalChain([maybeBindings, 'optionalAccess', _113 => _113.billing]),
|
|
2508
|
+
runtime: _optionalChain([maybeBindings, 'optionalAccess', _114 => _114.runtime]),
|
|
2509
|
+
compatibility: _optionalChain([maybeBindings, 'optionalAccess', _115 => _115.compatibility])
|
|
2500
2510
|
} : {
|
|
2501
2511
|
name: nameOrConfig.id,
|
|
2502
2512
|
fn: nameOrConfig.run,
|
|
@@ -2507,13 +2517,13 @@ function definePlay(nameOrConfig, maybeFn, maybeBindings) {
|
|
|
2507
2517
|
description: nameOrConfig.description,
|
|
2508
2518
|
inputSchema: nameOrConfig.input.schema,
|
|
2509
2519
|
billing: nameOrConfig.billing,
|
|
2510
|
-
runtime: _nullishCoalesce(nameOrConfig.runtime, () => ( _optionalChain([nameOrConfig, 'access',
|
|
2511
|
-
compatibility: _nullishCoalesce(nameOrConfig.compatibility, () => ( _optionalChain([nameOrConfig, 'access',
|
|
2520
|
+
runtime: _nullishCoalesce(nameOrConfig.runtime, () => ( _optionalChain([nameOrConfig, 'access', _116 => _116.bindings, 'optionalAccess', _117 => _117.runtime]))),
|
|
2521
|
+
compatibility: _nullishCoalesce(nameOrConfig.compatibility, () => ( _optionalChain([nameOrConfig, 'access', _118 => _118.bindings, 'optionalAccess', _119 => _119.compatibility])))
|
|
2512
2522
|
};
|
|
2513
2523
|
const name = config.name;
|
|
2514
2524
|
const fn = config.fn;
|
|
2515
2525
|
const bindings = config.bindings;
|
|
2516
|
-
const description = _optionalChain([config, 'access',
|
|
2526
|
+
const description = _optionalChain([config, 'access', _120 => _120.description, 'optionalAccess', _121 => _121.trim, 'call', _122 => _122()]);
|
|
2517
2527
|
const billing = config.billing;
|
|
2518
2528
|
const inputSchema = config.inputSchema;
|
|
2519
2529
|
const runtime = config.runtime;
|
|
@@ -2578,7 +2588,7 @@ function definePlay(nameOrConfig, maybeFn, maybeBindings) {
|
|
|
2578
2588
|
writable: false
|
|
2579
2589
|
});
|
|
2580
2590
|
const handle = createNamedPlayHandle(
|
|
2581
|
-
() =>
|
|
2591
|
+
() => _chunkTJ6HLN56js.createPlayClient.call(void 0, ),
|
|
2582
2592
|
name
|
|
2583
2593
|
);
|
|
2584
2594
|
for (const key of [
|
|
@@ -2744,4 +2754,5 @@ var DEEPLINE_TOOL_CATEGORIES = [
|
|
|
2744
2754
|
|
|
2745
2755
|
|
|
2746
2756
|
|
|
2747
|
-
|
|
2757
|
+
|
|
2758
|
+
exports.AuthError = _chunk6VLFQZK6js.AuthError; exports.ConfigError = _chunk6VLFQZK6js.ConfigError; exports.CtxFetchAmbiguousWriteError = _chunkVKKVSFRDjs.CtxFetchAmbiguousWriteError; exports.CtxFetchHttpError = _chunkVKKVSFRDjs.CtxFetchHttpError; exports.CustomerDbQueryOutcomeUnknownError = _chunk6VLFQZK6js.CustomerDbQueryOutcomeUnknownError; exports.DEEPLINE_EXTRACTOR_TARGETS = _chunkBLMB4N63js.DEEPLINE_EXTRACTOR_TARGETS; exports.DEEPLINE_EXTRACTOR_TARGET_DEFINITIONS = _chunkBLMB4N63js.DEEPLINE_EXTRACTOR_TARGET_DEFINITIONS; exports.DEEPLINE_TOOL_CATEGORIES = DEEPLINE_TOOL_CATEGORIES; exports.Deepline = Deepline; exports.DeeplineClient = _chunkDUBXUAAOjs.DeeplineClient; exports.DeeplineContext = DeeplineContext; exports.DeeplineError = _chunkLFQJW4S2js.DeeplineError; exports.JOB_CHANGE_STATUS_VALUES = _chunkBLMB4N63js.JOB_CHANGE_STATUS_VALUES; exports.MONITOR_FLEET_AUTHORING_CONTRACT_CHANGELOG = _chunkWOQO3GV4js.MONITOR_FLEET_AUTHORING_CONTRACT_CHANGELOG; exports.MONITOR_FLEET_AUTHORING_CONTRACT_EDITION = _chunkWOQO3GV4js.MONITOR_FLEET_AUTHORING_CONTRACT_EDITION; exports.MONITOR_FLEET_DOCUMENTATION = _chunkWOQO3GV4js.MONITOR_FLEET_DOCUMENTATION; exports.MONITOR_FLEET_FRONTIER_MAX_ROWS = _chunkWOQO3GV4js.MONITOR_FLEET_FRONTIER_MAX_ROWS; exports.MONITOR_FLEET_MAX_MEMBERS = _chunkWOQO3GV4js.MONITOR_FLEET_MAX_MEMBERS; exports.MONITOR_JOB_PHASES = _chunkOVEYWO4Hjs.MONITOR_JOB_PHASES; exports.MONITOR_JOB_RECONCILIATION_STATES = _chunkOVEYWO4Hjs.MONITOR_JOB_RECONCILIATION_STATES; exports.MONITOR_JOB_STATES = _chunkOVEYWO4Hjs.MONITOR_JOB_STATES; exports.PHONE_STATUS_VALUES = _chunkBLMB4N63js.PHONE_STATUS_VALUES; exports.PROD_URL = _chunkVIUUTEHYjs.PROD_URL; exports.ProviderRejectedError = _chunkLFQJW4S2js.ProviderRejectedError; exports.ProviderTransientError = _chunkLFQJW4S2js.ProviderTransientError; exports.RateLimitError = _chunk6VLFQZK6js.RateLimitError; exports.RunEventQueryInputError = _chunkOVEYWO4Hjs.RunEventQueryInputError; exports.RunObserveTransportUnavailableError = RunObserveTransportUnavailableError; exports.SDK_API_CONTRACT = _chunk5CYZHOKIjs.SDK_API_CONTRACT; exports.SDK_VERSION = _chunk5CYZHOKIjs.SDK_VERSION; exports.ToolExecutionError = _chunkLFQJW4S2js.ToolExecutionError; exports.ToolRateLimitError = _chunk6VLFQZK6js.ToolRateLimitError; exports.__deeplineCurrentDocflowContext = __deeplineCurrentDocflowContext; exports.__deeplineRunWithDocflowContext = __deeplineRunWithDocflowContext; exports.admitMonitorFleetAuthoringContract = _chunkWOQO3GV4js.admitMonitorFleetAuthoringContract; exports.deepline = deepline; exports.default = deepline; exports.defineInput = defineInput; exports.defineMonitor = defineMonitor; exports.defineMonitorFleet = _chunkWOQO3GV4js.defineMonitorFleet; exports.definePlay = definePlay; exports.defineWorkflow = defineWorkflow; exports.extractSummaryFields = _chunkHGFFYVXNjs.extractSummaryFields; exports.fleetColumn = _chunkWOQO3GV4js.fleetColumn; exports.fleetKey = _chunkWOQO3GV4js.fleetKey; exports.getDefinedPlayMetadata = getDefinedPlayMetadata; exports.getProviderUnavailableReason = _chunkLFQJW4S2js.getProviderUnavailableReason; exports.isDeeplineExtractorTarget = _chunkBLMB4N63js.isDeeplineExtractorTarget; exports.isProviderUnavailable = _chunkLFQJW4S2js.isProviderUnavailable; exports.isProviderWaterfallUnavailableError = _chunkLFQJW4S2js.isProviderWaterfallUnavailableError; exports.isStopAllPlayRunsDryRunResult = _chunkOVEYWO4Hjs.isStopAllPlayRunsDryRunResult; exports.lintMonitorBatchInput = _chunkU2LVWCTDjs.lintMonitorBatchInput; exports.lintMonitorFleetInput = _chunkWOQO3GV4js.lintMonitorFleetInput; exports.lintMonitorSpecTemplate = _chunkU2LVWCTDjs.lintMonitorSpecTemplate; exports.pinLocalPlayImports = _chunkTJ6HLN56js.pinLocalPlayImports; exports.planCustomerDbQuery = _chunkOVEYWO4Hjs.planCustomerDbQuery; exports.planLocalPlayExecution = _chunkTJ6HLN56js.planLocalPlayExecution; exports.readList = readList; exports.renderMonitorSpecTemplate = _chunkU2LVWCTDjs.renderMonitorSpecTemplate; exports.resolveConfig = _chunkVIUUTEHYjs.resolveConfig; exports.runIf = runIf; exports.runScriptPlay = runScriptPlay; exports.steps = steps; exports.tryConvertToList = _chunkHGFFYVXNjs.tryConvertToList; exports.validateMonitorFleetDefinition = _chunkWOQO3GV4js.validateMonitorFleetDefinition; exports.writeCsvOutputFile = _chunkHGFFYVXNjs.writeCsvOutputFile; exports.writeJsonOutputFile = _chunkHGFFYVXNjs.writeJsonOutputFile;
|
package/dist/index.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
createPlayClient,
|
|
4
4
|
pinLocalPlayImports,
|
|
5
5
|
planLocalPlayExecution
|
|
6
|
-
} from "./cli/chunk-
|
|
6
|
+
} from "./cli/chunk-UBBYHB2B.mjs";
|
|
7
7
|
import {
|
|
8
8
|
extractSummaryFields,
|
|
9
9
|
tryConvertToList,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
} from "./cli/chunk-FIVKWNMT.mjs";
|
|
13
13
|
import {
|
|
14
14
|
DeeplineClient
|
|
15
|
-
} from "./cli/chunk-
|
|
15
|
+
} from "./cli/chunk-6EXOAT6T.mjs";
|
|
16
16
|
import {
|
|
17
17
|
DEEPLINE_EXTRACTOR_TARGETS,
|
|
18
18
|
DEEPLINE_EXTRACTOR_TARGET_DEFINITIONS,
|
|
@@ -37,16 +37,12 @@ import {
|
|
|
37
37
|
RunEventQueryInputError,
|
|
38
38
|
isStopAllPlayRunsDryRunResult,
|
|
39
39
|
planCustomerDbQuery
|
|
40
|
-
} from "./cli/chunk-
|
|
40
|
+
} from "./cli/chunk-VLO5NFH2.mjs";
|
|
41
41
|
import {
|
|
42
42
|
legacyRawFromToolResponseRawV2
|
|
43
43
|
} from "./cli/chunk-FZHMNK6F.mjs";
|
|
44
|
-
import "./cli/chunk-
|
|
44
|
+
import "./cli/chunk-5TYLSS4Q.mjs";
|
|
45
45
|
import "./cli/chunk-PSX3WHIH.mjs";
|
|
46
|
-
import {
|
|
47
|
-
normalizeTableNamespace,
|
|
48
|
-
sha256Hex
|
|
49
|
-
} from "./cli/chunk-UBKA33KY.mjs";
|
|
50
46
|
import {
|
|
51
47
|
MONITOR_FLEET_AUTHORING_CONTRACT_CHANGELOG,
|
|
52
48
|
MONITOR_FLEET_AUTHORING_CONTRACT_EDITION,
|
|
@@ -69,28 +65,33 @@ import {
|
|
|
69
65
|
import {
|
|
70
66
|
PROD_URL,
|
|
71
67
|
resolveConfig
|
|
72
|
-
} from "./cli/chunk-
|
|
68
|
+
} from "./cli/chunk-52Q5KETX.mjs";
|
|
73
69
|
import {
|
|
74
70
|
SDK_API_CONTRACT,
|
|
75
71
|
SDK_VERSION
|
|
76
|
-
} from "./cli/chunk-
|
|
72
|
+
} from "./cli/chunk-S6W6SJ6E.mjs";
|
|
77
73
|
import {
|
|
78
74
|
AuthError,
|
|
79
75
|
ConfigError,
|
|
80
76
|
CustomerDbQueryOutcomeUnknownError,
|
|
81
77
|
RateLimitError,
|
|
82
78
|
ToolRateLimitError
|
|
83
|
-
} from "./cli/chunk-
|
|
79
|
+
} from "./cli/chunk-ASB47RXJ.mjs";
|
|
84
80
|
import "./cli/chunk-DLIRSHV6.mjs";
|
|
85
81
|
import {
|
|
86
82
|
DeeplineError,
|
|
83
|
+
ProviderRejectedError,
|
|
87
84
|
ProviderTransientError,
|
|
88
85
|
ToolExecutionError,
|
|
89
86
|
getProviderUnavailableReason,
|
|
90
87
|
isProviderUnavailable,
|
|
91
88
|
isProviderWaterfallUnavailableError
|
|
92
|
-
} from "./cli/chunk-
|
|
93
|
-
import
|
|
89
|
+
} from "./cli/chunk-Z3A2S3QM.mjs";
|
|
90
|
+
import {
|
|
91
|
+
normalizeTableNamespace,
|
|
92
|
+
sha256Hex
|
|
93
|
+
} from "./cli/chunk-2MGZAI54.mjs";
|
|
94
|
+
import "./cli/chunk-FXQ3JKE3.mjs";
|
|
94
95
|
import "./cli/chunk-WZYKRD7T.mjs";
|
|
95
96
|
import "./cli/chunk-KRD6H754.mjs";
|
|
96
97
|
|
|
@@ -1801,6 +1802,13 @@ function preservedSerializedListRows(value) {
|
|
|
1801
1802
|
}
|
|
1802
1803
|
|
|
1803
1804
|
// ../play-runtime/query-result-dataset.ts
|
|
1805
|
+
function readQueryResultDatasetResultRef(dataset) {
|
|
1806
|
+
const raw = dataset?.result_ref;
|
|
1807
|
+
if (typeof raw !== "string") return null;
|
|
1808
|
+
const resultRef = raw.trim();
|
|
1809
|
+
return resultRef && resultRef.length <= QUERY_RESULT_DATASET_RESULT_REF_MAX_LENGTH ? resultRef : null;
|
|
1810
|
+
}
|
|
1811
|
+
var QUERY_RESULT_DATASET_RESULT_REF_MAX_LENGTH = 256;
|
|
1804
1812
|
var QUERY_RESULT_DATASET_PAGE_SIZE = 1e3;
|
|
1805
1813
|
function isCustomerDbDatasetTool(toolId) {
|
|
1806
1814
|
return /^(?:customer_db_)?query_customer_db$/.test(toolId);
|
|
@@ -2353,6 +2361,7 @@ function attachSdkQueryResultDatasetResult(toolId, result, options) {
|
|
|
2353
2361
|
}
|
|
2354
2362
|
const datasetLimit = finitePositiveInteger(dataset.returned_limit) ?? totalRows;
|
|
2355
2363
|
const effectiveCount = Math.min(totalRows, datasetLimit);
|
|
2364
|
+
const storedResultRef = readQueryResultDatasetResultRef(dataset);
|
|
2356
2365
|
const rawRows = rowsFromUnknown(raw?.rows);
|
|
2357
2366
|
const previewRows = rawRows.slice(0, 25);
|
|
2358
2367
|
const fetchPage = async (offset, limit) => {
|
|
@@ -2365,7 +2374,8 @@ function attachSdkQueryResultDatasetResult(toolId, result, options) {
|
|
|
2365
2374
|
limit: datasetLimit,
|
|
2366
2375
|
offset,
|
|
2367
2376
|
page_size: Math.min(limit, QUERY_RESULT_DATASET_PAGE_SIZE),
|
|
2368
|
-
total_rows: totalRows
|
|
2377
|
+
total_rows: totalRows,
|
|
2378
|
+
...storedResultRef ? { result_ref: storedResultRef } : {}
|
|
2369
2379
|
},
|
|
2370
2380
|
...isCustomerDbDatasetTool(toolId) ? {
|
|
2371
2381
|
customer_db_dataset: {
|
|
@@ -2701,6 +2711,7 @@ export {
|
|
|
2701
2711
|
MONITOR_JOB_STATES,
|
|
2702
2712
|
PHONE_STATUS_VALUES,
|
|
2703
2713
|
PROD_URL,
|
|
2714
|
+
ProviderRejectedError,
|
|
2704
2715
|
ProviderTransientError,
|
|
2705
2716
|
RateLimitError,
|
|
2706
2717
|
RunEventQueryInputError,
|