deepline 0.3.542 → 0.3.543
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 +106 -2
- package/dist/bundling-sources/sdk/src/index.ts +7 -0
- package/dist/bundling-sources/sdk/src/integrations.ts +198 -0
- package/dist/bundling-sources/sdk/src/plays/run-request.ts +3 -0
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/sdk/src/tool-calls.ts +35 -11
- package/dist/bundling-sources/sdk/src/types.ts +10 -0
- package/dist/bundling-sources/shared_libs/integration-contracts/calendar-delegation.ts +132 -0
- package/dist/bundling-sources/shared_libs/integration-contracts/tool-connection.ts +13 -0
- package/dist/bundling-sources/shared_libs/monitors/package.json +1 -1
- package/dist/bundling-sources/shared_libs/observability/queue-health.ts +9 -0
- package/dist/bundling-sources/shared_libs/observability/queue-item-connectors.ts +1 -0
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +5 -5
- package/dist/bundling-sources/shared_libs/play-data-plane/sheet-contract.ts +34 -0
- package/dist/bundling-sources/shared_libs/play-runtime/app-runtime-api.ts +11 -5
- package/dist/bundling-sources/shared_libs/play-runtime/baked-runner-image.ts +9 -7
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +235 -12
- package/dist/bundling-sources/shared_libs/play-runtime/ctx-types.ts +20 -1
- package/dist/bundling-sources/shared_libs/play-runtime/daytona-sandbox-janitor.ts +39 -30
- package/dist/bundling-sources/shared_libs/play-runtime/event-wait-tools.ts +2 -0
- package/dist/bundling-sources/shared_libs/play-runtime/experiment-switches.ts +10 -4
- package/dist/bundling-sources/shared_libs/play-runtime/fleet-sandbox-sweep.ts +209 -0
- package/dist/bundling-sources/shared_libs/play-runtime/launch-identity.ts +4 -0
- package/dist/bundling-sources/shared_libs/play-runtime/play-run-recovery-policy.ts +24 -1
- package/dist/bundling-sources/shared_libs/play-runtime/play-runs/sandbox-cleanup/contracts.ts +2 -1
- package/dist/bundling-sources/shared_libs/play-runtime/protocol.ts +6 -1
- package/dist/bundling-sources/shared_libs/play-runtime/run-ledger.ts +37 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +42 -3
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/runtime-tool-hooks.ts +7 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-modal-fallback.ts +15 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-payload-transport.ts +23 -5
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/modal.ts +320 -836
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/vercel-sandbox.ts +1061 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/early-sandbox.ts +862 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/runtime-sandbox-reconciliation.ts +45 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/sandbox-create-outcome.ts +3 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/types.ts +11 -5
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-sandbox-contract.ts +20 -2
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-sandbox-placement-policy.ts +71 -34
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-sandbox-provider-profile.ts +286 -0
- package/dist/bundling-sources/shared_libs/play-runtime/sandbox-runs/contract.ts +4 -1
- package/dist/bundling-sources/shared_libs/play-runtime/sandbox-runs/runner-backend-adapter.ts +12 -3
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backend.ts +7 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +46 -55
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-worker-required-env.ts +127 -5
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd.ts +7 -1
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/early-sandbox-lane.ts +214 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/managed-sandbox-resource-sql.ts +118 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-progress.ts +1 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +226 -144
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-event-search.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-capacity.ts +2 -1
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-ledger-reconciliation.ts +11 -13
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-operation.ts +42 -7
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-worker-wake.ts +2 -1
- package/dist/bundling-sources/shared_libs/play-runtime/suspension.ts +2 -2
- package/dist/bundling-sources/shared_libs/play-runtime/tool-cache-policy.ts +17 -0
- package/dist/bundling-sources/shared_libs/play-runtime/vercel-sandbox-runtime-config.ts +217 -0
- package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +23 -0
- package/dist/bundling-sources/shared_libs/plays/bundling/index.ts +1 -0
- package/dist/bundling-sources/shared_libs/plays/script-entry.ts +76 -6
- package/dist/bundling-sources/shared_libs/plays/static-pipeline.ts +1 -0
- package/dist/bundling-sources/shared_libs/security/credential-revision.ts +50 -0
- package/dist/bundling-sources/shared_libs/security/internal-actor.ts +2 -1
- package/dist/bundling-sources/shared_libs/security/receipt-admission-token.ts +37 -0
- package/dist/cli/{auth-IGBGOB4E.mjs → auth-ITAELTOA.mjs} +5 -5
- package/dist/cli/auth-S6B5WUU5.js +43 -0
- package/dist/cli/{billing-IB2TWE74.js → billing-33XVFDUJ.js} +101 -101
- package/dist/cli/{billing-N37W2I62.mjs → billing-WZ7RVZW4.mjs} +12 -12
- package/dist/cli/{chunk-D44DP4KJ.js → chunk-23D224GI.js} +37 -17
- package/dist/cli/{chunk-B5NP3SHX.mjs → chunk-274WKLSY.mjs} +2 -2
- package/dist/cli/{chunk-GBAT5NMI.mjs → chunk-2HSZCQMT.mjs} +48 -6
- package/dist/cli/{chunk-VLEVVDWG.js → chunk-2JHYYB3F.js} +3 -3
- package/dist/cli/{chunk-FGGPCAGC.js → chunk-2KTGZKRE.js} +18 -18
- package/dist/cli/{chunk-AWLPERL3.js → chunk-2LNTKICO.js} +3 -3
- package/dist/cli/{chunk-5CAVURVS.js → chunk-2NCJQEZH.js} +53 -53
- package/dist/cli/{chunk-6SLEHAXX.js → chunk-3JZXU5OB.js} +5 -5
- package/dist/cli/{chunk-4I47NCRI.js → chunk-46BEBZ3M.js} +497 -328
- package/dist/cli/{chunk-V4EYJKGJ.js → chunk-4JQEAYN3.js} +156 -17
- package/dist/cli/{chunk-DADH3WPE.mjs → chunk-4SKDSSPU.mjs} +2 -2
- package/dist/cli/{chunk-FX4OWXKK.mjs → chunk-52YK3EII.mjs} +2 -2
- package/dist/cli/{chunk-HAITCPCG.js → chunk-5MN3BKNB.js} +16 -16
- package/dist/cli/{chunk-FFDZT255.mjs → chunk-5VIPTLRX.mjs} +1 -1
- package/dist/cli/{chunk-OLH2PHMC.mjs → chunk-6P7TGCHQ.mjs} +1 -1
- package/dist/cli/{chunk-YK7NNZD4.mjs → chunk-6SJZMMD5.mjs} +37 -190
- package/dist/cli/chunk-7AUQTNLB.mjs +455 -0
- package/dist/cli/{chunk-I5EAIFGO.mjs → chunk-AACKPOGA.mjs} +1 -1
- package/dist/cli/{chunk-GM73TZ2W.js → chunk-BGAUADV4.js} +41 -41
- package/dist/cli/{chunk-KQSTV4MW.js → chunk-BLYW6FFB.js} +60 -18
- package/dist/cli/{chunk-LFMQVSEI.js → chunk-C35NLLSA.js} +5 -5
- package/dist/cli/{chunk-5APOJWJF.mjs → chunk-D6YAU3CF.mjs} +182 -13
- package/dist/cli/{chunk-TT4JUUC3.mjs → chunk-DH43ECTN.mjs} +7 -3
- package/dist/cli/{chunk-TTBHOMAA.js → chunk-DI3GL3T6.js} +316 -469
- package/dist/cli/{chunk-D7GWEBMF.js → chunk-DUGTPVT7.js} +7 -7
- package/dist/cli/{chunk-UNDLNT3V.js → chunk-ECWOIXAV.js} +1 -1
- package/dist/cli/{chunk-CFZCRM6R.js → chunk-EHUG6EUT.js} +26 -26
- package/dist/cli/chunk-F6VSQ5LN.js +455 -0
- package/dist/cli/{chunk-ACVTMAW4.mjs → chunk-FNW2SGPD.mjs} +2 -2
- package/dist/cli/{chunk-EHLCWGWN.js → chunk-GRCFX2EG.js} +4 -4
- package/dist/cli/{chunk-OVX3Q5Q3.mjs → chunk-GWNYLIF7.mjs} +1 -1
- package/dist/cli/{chunk-6WQDHEVF.mjs → chunk-HKJ26NRN.mjs} +5 -5
- package/dist/cli/{chunk-L2VKAASU.mjs → chunk-HXIR3VQL.mjs} +21 -0
- package/dist/cli/{chunk-WL2GUGNZ.js → chunk-J2F6F5GL.js} +7 -7
- package/dist/cli/{chunk-2VRKBHMD.mjs → chunk-JXG7HWBA.mjs} +1 -1
- package/dist/cli/{chunk-Z2XA6YU4.mjs → chunk-LX35AXTN.mjs} +1 -0
- package/dist/cli/{chunk-DNGACHFX.js → chunk-MCBUWK5K.js} +22 -22
- package/dist/cli/{chunk-Q7WDXLYO.js → chunk-NHKP2NSU.js} +2 -2
- package/dist/cli/{chunk-FANIRW74.mjs → chunk-NIPLY25A.mjs} +0 -2
- package/dist/cli/{chunk-AKY7KZRJ.js → chunk-NLENABRU.js} +6 -6
- package/dist/cli/{chunk-ORA5TMML.mjs → chunk-NR3O56FT.mjs} +5 -5
- package/dist/cli/{chunk-3XXXMSSP.js → chunk-O2KLWUNI.js} +44 -44
- package/dist/cli/{chunk-ZVNYBQ77.mjs → chunk-OAFKUHN5.mjs} +4 -4
- package/dist/cli/{chunk-2ZGSHVZE.mjs → chunk-OELJKQOL.mjs} +24 -4
- package/dist/cli/{chunk-E7B73LGT.js → chunk-PX7XAVUC.js} +24 -20
- package/dist/cli/{chunk-VHJUH3TB.js → chunk-QFRMVI4S.js} +3 -3
- package/dist/cli/{chunk-Z5YRKX7K.mjs → chunk-R57UCXQG.mjs} +1 -1
- package/dist/cli/{chunk-IPVRMYWT.js → chunk-RKF263LR.js} +5 -5
- package/dist/cli/{chunk-CQDQNZGH.js → chunk-SL6MYJYM.js} +1 -0
- package/dist/cli/{chunk-JPT6VE54.js → chunk-STXG2LFC.js} +2 -2
- package/dist/cli/{chunk-SCLP5H4P.mjs → chunk-SU4K4SUU.mjs} +1 -1
- package/dist/cli/{chunk-NLZHLEHD.mjs → chunk-SYOPHFKB.mjs} +6 -6
- package/dist/cli/{chunk-WACIN4PR.mjs → chunk-SZNJENGT.mjs} +3 -3
- package/dist/cli/{chunk-QXNOSCYL.js → chunk-TBCNL2T5.js} +1 -1
- package/dist/cli/{chunk-E4CABWXL.js → chunk-TI6DTURF.js} +22 -1
- package/dist/cli/{chunk-NDNEARE3.js → chunk-UJ6GOV7K.js} +13 -13
- package/dist/cli/{chunk-GWHA4DAC.js → chunk-UV4RU2TE.js} +0 -2
- package/dist/cli/{chunk-P4MDTBAA.mjs → chunk-VSJEOSYL.mjs} +1 -1
- package/dist/cli/{chunk-EGOCGWCI.mjs → chunk-W2OPPSAZ.mjs} +3 -3
- package/dist/cli/{chunk-46V7QSJE.mjs → chunk-XBM3KABD.mjs} +3 -3
- package/dist/cli/{chunk-QONO7FRF.mjs → chunk-XFPVFWZR.mjs} +1 -1
- package/dist/cli/{chunk-PLIKPGOO.mjs → chunk-XSN6BAZT.mjs} +5 -5
- package/dist/cli/{chunk-IDDKNMFX.mjs → chunk-Y3T5GWYK.mjs} +153 -14
- package/dist/cli/{chunk-AUFE624T.js → chunk-YE3T73BV.js} +10 -10
- package/dist/cli/{chunk-DMXLZ57N.js → chunk-YJYKZ2U3.js} +2 -2
- package/dist/cli/{chunk-F6QV42MC.mjs → chunk-Z7SXGOIQ.mjs} +1 -1
- package/dist/cli/{chunk-SWO5QOXB.mjs → chunk-ZRT2PNYY.mjs} +1 -1
- package/dist/cli/{chunk-3LEUSRV3.mjs → chunk-ZSPBJB7I.mjs} +4 -4
- package/dist/cli/command-docs.js +3 -3
- package/dist/cli/command-docs.mjs +2 -2
- package/dist/cli/concurrent-runs-help-E4OYD3DS.js +21 -0
- package/dist/cli/{concurrent-runs-help-DIBGMEIN.mjs → concurrent-runs-help-Z6ODNL4E.mjs} +7 -7
- package/dist/cli/{csv-CAVA3EMS.mjs → csv-5QW2HPHT.mjs} +4 -4
- package/dist/cli/{csv-XZAM7EYZ.js → csv-SSOFTXHU.js} +13 -13
- package/dist/cli/{db-PPGEOBNG.js → db-4LK5AJNO.js} +29 -29
- package/dist/cli/{db-HD332QI7.mjs → db-K2JMR6EM.mjs} +8 -8
- package/dist/cli/describe-AC6PLEFP.js +50 -0
- package/dist/cli/describe-AXHQZHTT.mjs +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 +3 -3
- package/dist/cli/describe-core.mjs +2 -2
- package/dist/cli/{executions-4ZKBL7IC.js → executions-AATJQQAQ.js} +10 -10
- package/dist/cli/{executions-AFEOLB4A.mjs → executions-FY2XTX2W.mjs} +8 -8
- package/dist/cli/{feedback-J2YPLKMF.mjs → feedback-MKBPRGS6.mjs} +6 -6
- package/dist/cli/{feedback-M6Y33JKT.js → feedback-QPVJER75.js} +14 -14
- package/dist/cli/{git-632RYEF6.mjs → git-AGRFZR3K.mjs} +5 -5
- package/dist/cli/git-RUYFQEJX.js +25 -0
- package/dist/cli/index.js +150 -146
- package/dist/cli/index.mjs +49 -45
- package/dist/cli/integrations-OUQ6U33M.mjs +98 -0
- package/dist/cli/integrations-R6OUFZXI.js +98 -0
- package/dist/cli/{legacy-noops-KWZMXYAU.mjs → legacy-noops-DVL2RRKL.mjs} +6 -6
- package/dist/cli/{legacy-noops-4Y62TKPC.js → legacy-noops-H7INM2QN.js} +9 -9
- package/dist/cli/{mcp-PESLHAAC.mjs → mcp-2Z2YVOLK.mjs} +72 -15
- package/dist/cli/{mcp-35QA6YG7.js → mcp-33F7D7WI.js} +89 -32
- package/dist/cli/{monitors-4DTUZLAI.js → monitors-KDUJHAKJ.js} +102 -102
- package/dist/cli/{monitors-YVBKBJBU.mjs → monitors-NZD2WIKK.mjs} +9 -9
- package/dist/cli/{org-FWCBZMER.js → org-4PQGHLEB.js} +90 -90
- package/dist/cli/{org-DJNKMFCZ.mjs → org-EJW45RUA.mjs} +8 -8
- package/dist/cli/{play-PHVQEEEZ.mjs → play-3CM5RT5J.mjs} +44 -25
- package/dist/cli/{play-FZ45M4KD.js → play-MLHMQL4G.js} +374 -355
- package/dist/cli/{providers-46E67QG7.mjs → providers-BHYBJI4R.mjs} +10 -9
- package/dist/cli/{providers-QJU6FMDD.js → providers-YBJG7277.js} +13 -12
- package/dist/cli/{quickstart-6HMJJ4RR.mjs → quickstart-LL3MR562.mjs} +4 -4
- package/dist/cli/{quickstart-HOL7H5FS.js → quickstart-O7L2NNGJ.js} +6 -6
- package/dist/cli/{run-WKSIRXEC.js → run-HJ2AR6CM.js} +49 -48
- package/dist/cli/{run-2W2TJ6QA.mjs → run-OK545H5Q.mjs} +28 -27
- package/dist/cli/search-UUNS6BCC.js +32 -0
- package/dist/cli/{search-Y2CFLSYB.mjs → search-Z5ZKMRTX.mjs} +9 -9
- package/dist/cli/{search-output-FCZ35PHF.mjs → search-output-Q5VHNUWG.mjs} +4 -4
- package/dist/cli/{search-output-2IK6ZZDY.js → search-output-SVW4DETG.js} +6 -6
- package/dist/cli/{secrets-JVJIHGU4.js → secrets-ENQWMCB5.js} +17 -17
- package/dist/cli/{secrets-PNPNUZLX.mjs → secrets-QIKIEFWB.mjs} +8 -8
- package/dist/cli/{sessions-GY5VVQGO.mjs → sessions-AETO22RF.mjs} +6 -6
- package/dist/cli/sessions-FNSUDERA.js +22 -0
- package/dist/cli/{settings-YQOPF3AI.mjs → settings-G5RGRPFV.mjs} +16 -16
- package/dist/cli/{settings-5WHMFRNQ.js → settings-OFLIFTMZ.js} +89 -89
- package/dist/cli/{setup-O5U5IEVW.mjs → setup-G4N3X6KG.mjs} +9 -9
- package/dist/cli/{setup-3VJMKDEU.js → setup-QW7Y62XD.js} +49 -49
- package/dist/cli/skills-3IXIY2IV.js +36 -0
- package/dist/cli/{skills-G6J5PF35.mjs → skills-QRFQGHNA.mjs} +7 -7
- package/dist/cli/{tools-AG7SWL5Y.mjs → tools-52BH7UTF.mjs} +20 -19
- package/dist/cli/tools-MYBUMPKH.js +57 -0
- package/dist/cli/update-GT7574UU.js +34 -0
- package/dist/cli/{update-K73DD6CR.mjs → update-SDGZLAGL.mjs} +9 -9
- package/dist/cli/{views-MO6DIOMR.mjs → views-3BIJFJMQ.mjs} +8 -8
- package/dist/cli/{views-4D2OTLIO.js → views-5QKAWYPI.js} +23 -23
- package/dist/cli/{workflow-ZEMFCS4Y.js → workflow-G67RPWVY.js} +19 -19
- package/dist/cli/{workflow-MMZMAELI.mjs → workflow-QAK773FR.mjs} +9 -9
- package/dist/{client-X-FJD5Dp.d.ts → client-D1ga52xq.d.ts} +1 -1
- package/dist/{client-DLG9mHDh.d.mts → client-bd4QQIXo.d.mts} +1 -1
- package/dist/{client-core-0jmHfFBv.d.ts → client-core-B6eMVx8h.d.ts} +334 -3
- package/dist/{client-core-WtnqyBwY.d.mts → client-core-CqfWNf2Q.d.mts} +334 -3
- package/dist/{compiler-manifest-Cys06iYg.d.mts → compiler-manifest-BWFtsQIC.d.mts} +21 -0
- package/dist/{compiler-manifest-Cys06iYg.d.ts → compiler-manifest-BWFtsQIC.d.ts} +21 -0
- package/dist/{errors-B6eMjKcr.d.mts → errors-CwKXXtuu.d.mts} +1 -1
- package/dist/{errors-rdOUqcU2.d.ts → errors-Lm9_vJHZ.d.ts} +1 -1
- package/dist/{index-ejWadAL5.d.ts → index-3vJ-V9yw.d.ts} +1 -1
- package/dist/{index-CZdYO81A.d.mts → index-DjwsAt82.d.mts} +1 -1
- package/dist/index.d.mts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +12 -12
- package/dist/index.mjs +8 -8
- package/dist/install-integrity.json +147 -133
- 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/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 +2 -2
- package/dist/plays/run-request.mjs +1 -1
- 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 +7 -7
- package/dist/server.mjs +5 -5
- package/package.json +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/modal-resource-usage.ts +0 -222
- package/dist/cli/auth-2PH6RSKL.js +0 -43
- package/dist/cli/concurrent-runs-help-BNIDBKML.js +0 -21
- package/dist/cli/describe-5TFFB2PM.js +0 -49
- package/dist/cli/describe-THQU7N47.mjs +0 -49
- package/dist/cli/git-AQLQYWRI.js +0 -25
- package/dist/cli/search-YLJFCJTK.js +0 -32
- package/dist/cli/sessions-TZ33UCPS.js +0 -22
- package/dist/cli/skills-WZY3XDT3.js +0 -36
- package/dist/cli/tools-BXQBL72Q.js +0 -56
- package/dist/cli/update-XYP5EII6.js +0 -34
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
|
+
GOOGLE_WORKSPACE_BOOKING_SCOPE,
|
|
3
|
+
GOOGLE_WORKSPACE_BOOKING_SCOPES,
|
|
4
|
+
GOOGLE_WORKSPACE_DOMAIN_PATTERN,
|
|
2
5
|
PLAY_RUNTIME_BACKENDS,
|
|
3
6
|
RAW_V2_TOOL_RESPONSE_CONTRACT,
|
|
7
|
+
isToolConnectionName,
|
|
4
8
|
legacyRawFromToolResponseRawV2,
|
|
5
9
|
providerMetaFromToolResponseRawV2
|
|
6
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-HXIR3VQL.mjs";
|
|
7
11
|
import {
|
|
8
12
|
CLI_PLAY_RUN_CALLER_INTENT_V2_START_STREAM_PATH,
|
|
9
13
|
CLI_PLAY_RUN_START_STREAM_PATH,
|
|
@@ -20,7 +24,7 @@ import {
|
|
|
20
24
|
stagePlayFiles,
|
|
21
25
|
startPlayRun,
|
|
22
26
|
submitPreparedPlayRunAdmission
|
|
23
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-LX35AXTN.mjs";
|
|
24
28
|
import {
|
|
25
29
|
describePlayDetail,
|
|
26
30
|
describePlayListItem
|
|
@@ -32,7 +36,7 @@ import {
|
|
|
32
36
|
RETAINED_PIPELINE_RECEIVERS_HEADER,
|
|
33
37
|
RUNTIME_ENVIRONMENT_TOKEN_HEADER,
|
|
34
38
|
SDK_API_MAJOR
|
|
35
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-JXG7HWBA.mjs";
|
|
36
40
|
import {
|
|
37
41
|
CustomerDbQueryOutcomeUnknownError
|
|
38
42
|
} from "./chunk-CQBIO6HW.mjs";
|
|
@@ -588,6 +592,14 @@ var ToolCalls = class {
|
|
|
588
592
|
this.configuredRequestTimeoutMs = configuredRequestTimeoutMs;
|
|
589
593
|
}
|
|
590
594
|
async call(toolId, input, options) {
|
|
595
|
+
const connection = options?.connection;
|
|
596
|
+
if (connection !== void 0 && (!isToolConnectionName(connection) || options?.idempotencyKey !== void 0 || options?.recover)) {
|
|
597
|
+
throw new DeeplineError(
|
|
598
|
+
"Use a valid workspace connection name without execution recovery.",
|
|
599
|
+
400,
|
|
600
|
+
"NAMED_CONNECTION_INVALID"
|
|
601
|
+
);
|
|
602
|
+
}
|
|
591
603
|
if (options?.cliInvocationId !== void 0) {
|
|
592
604
|
validateCliInvocationId(options.cliInvocationId);
|
|
593
605
|
}
|
|
@@ -652,23 +664,24 @@ var ToolCalls = class {
|
|
|
652
664
|
const legacyEndpoint = `/api/v2/integrations/${encodeURIComponent(toolId)}/execute`;
|
|
653
665
|
let useLegacyEndpoint = idempotencyKey === void 0;
|
|
654
666
|
const atomicToolOnly = options?.atomicToolOnly === true;
|
|
655
|
-
const retryAmbiguousDelivery = atomicToolOnly && !idempotencyKey && options?.retryAmbiguousDelivery === true;
|
|
667
|
+
const retryAmbiguousDelivery = connection === void 0 && atomicToolOnly && !idempotencyKey && options?.retryAmbiguousDelivery === true;
|
|
656
668
|
const dispatchRequest = async (requestTimeoutMs) => {
|
|
657
669
|
let recoverySupported = false;
|
|
658
670
|
let atomicToolsSupported = false;
|
|
659
671
|
const post = () => this.http.post(
|
|
660
|
-
atomicToolOnly ? `/api/v2/tools/${encodeURIComponent(toolId)}/execute` : useLegacyEndpoint ? legacyEndpoint : `/api/v2/executions/by-key/${encodeURIComponent(idempotencyKey)}?tool_id=${encodeURIComponent(toolId)}`,
|
|
672
|
+
connection !== void 0 ? `/api/v2/tools/${encodeURIComponent(toolId)}/execute-with-connection` : atomicToolOnly ? `/api/v2/tools/${encodeURIComponent(toolId)}/execute` : useLegacyEndpoint ? legacyEndpoint : `/api/v2/executions/by-key/${encodeURIComponent(idempotencyKey)}?tool_id=${encodeURIComponent(toolId)}`,
|
|
661
673
|
{
|
|
662
674
|
payload: inputSnapshot,
|
|
675
|
+
...connection !== void 0 ? { connection } : {},
|
|
663
676
|
...metadataSnapshot ? { metadata: metadataSnapshot } : {}
|
|
664
677
|
},
|
|
665
678
|
headers,
|
|
666
679
|
{
|
|
667
680
|
timeout: requestTimeoutMs,
|
|
668
|
-
maxRetries: idempotencyKey ? 0 : options?.maxRetries ?? (retryAmbiguousDelivery ? 2 : 0),
|
|
669
|
-
...atomicToolOnly && !idempotencyKey && options?.maxRetries === void 0 ? { executePolicyMaxRetries: 2 } : {},
|
|
670
|
-
retryApiErrors: atomicToolOnly || options?.retryApiErrors === true,
|
|
671
|
-
retryFromExecutePolicy: atomicToolOnly,
|
|
681
|
+
maxRetries: connection !== void 0 || idempotencyKey ? 0 : options?.maxRetries ?? (retryAmbiguousDelivery ? 2 : 0),
|
|
682
|
+
...connection === void 0 && atomicToolOnly && !idempotencyKey && options?.maxRetries === void 0 ? { executePolicyMaxRetries: 2 } : {},
|
|
683
|
+
retryApiErrors: connection === void 0 && (atomicToolOnly || options?.retryApiErrors === true),
|
|
684
|
+
retryFromExecutePolicy: connection === void 0 && atomicToolOnly,
|
|
672
685
|
retryAmbiguousDelivery,
|
|
673
686
|
exactUrlOnly: true,
|
|
674
687
|
toolId,
|
|
@@ -697,6 +710,7 @@ var ToolCalls = class {
|
|
|
697
710
|
try {
|
|
698
711
|
return await post();
|
|
699
712
|
} catch (error) {
|
|
713
|
+
if (connection !== void 0) throw error;
|
|
700
714
|
if (atomicToolOnly) {
|
|
701
715
|
if (!atomicToolsSupported && !recoverySupported && !(error instanceof ToolExecutionError) && error instanceof DeeplineError && (error.statusCode === 404 || error.statusCode === 405)) {
|
|
702
716
|
throw new DeeplineError(
|
|
@@ -2403,6 +2417,118 @@ function isStopAllPlayRunsDryRunResult(result) {
|
|
|
2403
2417
|
return "dryRun" in result && result.dryRun === true;
|
|
2404
2418
|
}
|
|
2405
2419
|
|
|
2420
|
+
// src/integrations.ts
|
|
2421
|
+
var CALENDAR_PROVIDER = "google_calendar_availability";
|
|
2422
|
+
function invalid(message) {
|
|
2423
|
+
throw new DeeplineError(message, 400, "INVALID_ARGUMENT");
|
|
2424
|
+
}
|
|
2425
|
+
async function findConnection(client, name, provider) {
|
|
2426
|
+
const { connections } = await client.listWorkspaceConnectionInventory(
|
|
2427
|
+
provider,
|
|
2428
|
+
{ authorizationsOnly: true }
|
|
2429
|
+
);
|
|
2430
|
+
const matches = connections.filter(
|
|
2431
|
+
(row) => row.name === name && (!provider || row.provider === provider)
|
|
2432
|
+
);
|
|
2433
|
+
if (matches.length === 0)
|
|
2434
|
+
throw new DeeplineError(
|
|
2435
|
+
`No workspace connection named ${JSON.stringify(name)}. Run deepline integrations list --json.`,
|
|
2436
|
+
404,
|
|
2437
|
+
"NOT_FOUND"
|
|
2438
|
+
);
|
|
2439
|
+
if (matches.length > 1)
|
|
2440
|
+
invalid("This name exists for multiple providers. Pass --provider.");
|
|
2441
|
+
return matches[0];
|
|
2442
|
+
}
|
|
2443
|
+
async function changeConnection(client, action, name, options) {
|
|
2444
|
+
const row = await findConnection(client, name, options.provider);
|
|
2445
|
+
if (options.booking && (action !== "reconnect" || row.type !== "workspace_delegation"))
|
|
2446
|
+
invalid("Use --booking with Google Workspace verify or reconnect.");
|
|
2447
|
+
if (row.type === "workspace_delegation") {
|
|
2448
|
+
if (row.provider !== CALENDAR_PROVIDER || !row.domain)
|
|
2449
|
+
invalid("The workspace approval is missing its provider or domain.");
|
|
2450
|
+
if (row.authorizationVersion === void 0)
|
|
2451
|
+
invalid("The API did not return a workspace approval revision.");
|
|
2452
|
+
if (action === "reconnect") {
|
|
2453
|
+
return verifyWorkspace(client, row.domain, options, row);
|
|
2454
|
+
}
|
|
2455
|
+
if (options.verificationEmail)
|
|
2456
|
+
invalid("Use --verification-email with reconnect or verify.");
|
|
2457
|
+
if (action === "delete" && row.status !== "disconnected")
|
|
2458
|
+
invalid("Disconnect this approval before deleting it.");
|
|
2459
|
+
const change2 = action === "delete" ? {
|
|
2460
|
+
action: "remove_workspace",
|
|
2461
|
+
domain: row.domain,
|
|
2462
|
+
connectionId: row.id,
|
|
2463
|
+
grantRevision: row.authorizationVersion
|
|
2464
|
+
} : {
|
|
2465
|
+
action: "disable_workspace",
|
|
2466
|
+
domain: row.domain,
|
|
2467
|
+
connectionId: row.id,
|
|
2468
|
+
grantRevision: row.authorizationVersion
|
|
2469
|
+
};
|
|
2470
|
+
if (options.dryRun) return change2;
|
|
2471
|
+
return client.changeCalendarDelegation(change2);
|
|
2472
|
+
}
|
|
2473
|
+
if (options.verificationEmail)
|
|
2474
|
+
invalid("--verification-email applies to Google Workspace approvals.");
|
|
2475
|
+
if (row.type !== "oauth" || row.provider !== "hubspot" && row.provider !== CALENDAR_PROVIDER)
|
|
2476
|
+
invalid(
|
|
2477
|
+
"Manage this credential type through deepline integrations connect <provider> --link."
|
|
2478
|
+
);
|
|
2479
|
+
if (row.authorizationVersion === void 0)
|
|
2480
|
+
invalid("The API did not return a connection authorization version.");
|
|
2481
|
+
const change = {
|
|
2482
|
+
action: action === "delete" ? "remove" : action,
|
|
2483
|
+
provider: row.provider,
|
|
2484
|
+
name,
|
|
2485
|
+
connectionId: row.id,
|
|
2486
|
+
authorizationVersion: row.authorizationVersion
|
|
2487
|
+
};
|
|
2488
|
+
if (options.dryRun) return change;
|
|
2489
|
+
return client.manageWorkspaceIntegrationConnection(change);
|
|
2490
|
+
}
|
|
2491
|
+
async function verifyWorkspace(client, domain, options, existing) {
|
|
2492
|
+
domain = domain.trim().toLowerCase();
|
|
2493
|
+
if (!GOOGLE_WORKSPACE_DOMAIN_PATTERN.test(domain))
|
|
2494
|
+
invalid("Enter a Google Workspace domain, such as example.com.");
|
|
2495
|
+
const email = options.verificationEmail?.trim().toLowerCase();
|
|
2496
|
+
if (!email || email.length > 254 || !/^[^\s@]+@[^\s@]+$/.test(email) || email.split("@")[1] !== domain)
|
|
2497
|
+
invalid("Pass --verification-email with a work email in this domain.");
|
|
2498
|
+
const settings = existing ? {
|
|
2499
|
+
grantRevision: existing.authorizationVersion,
|
|
2500
|
+
connectionId: existing.id,
|
|
2501
|
+
grantedScopes: existing.scopes
|
|
2502
|
+
} : await client.getCalendarDelegation(void 0, void 0, domain);
|
|
2503
|
+
if (settings.grantRevision === void 0)
|
|
2504
|
+
invalid("The API did not return a workspace approval revision.");
|
|
2505
|
+
const requestedScopes = options.booking ? [...GOOGLE_WORKSPACE_BOOKING_SCOPES] : settings.grantedScopes;
|
|
2506
|
+
const change = {
|
|
2507
|
+
action: "enable_workspace",
|
|
2508
|
+
domain,
|
|
2509
|
+
grantRevision: settings.grantRevision,
|
|
2510
|
+
...settings.connectionId ? { connectionId: settings.connectionId } : {},
|
|
2511
|
+
verificationEmail: email,
|
|
2512
|
+
...requestedScopes?.includes(GOOGLE_WORKSPACE_BOOKING_SCOPE) ? { requestedScopes } : {}
|
|
2513
|
+
};
|
|
2514
|
+
if (options.dryRun) return change;
|
|
2515
|
+
return client.changeCalendarDelegation(change);
|
|
2516
|
+
}
|
|
2517
|
+
function createIntegrationsNamespace(client) {
|
|
2518
|
+
return {
|
|
2519
|
+
list: (options = {}) => client.listWorkspaceConnectionInventory(options.provider, {
|
|
2520
|
+
authorizationsOnly: true
|
|
2521
|
+
}),
|
|
2522
|
+
get: (name, options = {}) => findConnection(client, name, options.provider),
|
|
2523
|
+
connect: (provider) => client.getIntegrationConnectLink(provider),
|
|
2524
|
+
reconnect: (name, options = {}) => changeConnection(client, "reconnect", name, options),
|
|
2525
|
+
disconnect: (name, options = {}) => changeConnection(client, "disconnect", name, options),
|
|
2526
|
+
delete: (name, options = {}) => changeConnection(client, "delete", name, options),
|
|
2527
|
+
verify: (domain, options) => verifyWorkspace(client, domain, options),
|
|
2528
|
+
members: (provider, options = {}) => client.listManagedConnectionMembers(provider, options.cursor)
|
|
2529
|
+
};
|
|
2530
|
+
}
|
|
2531
|
+
|
|
2406
2532
|
// ../plays/trigger-config-route.ts
|
|
2407
2533
|
function playTriggerConfigPath(playName) {
|
|
2408
2534
|
return `/api/v2/plays/${encodeURIComponent(playName)}/triggers`;
|
|
@@ -3471,6 +3597,8 @@ var DeeplineClient = class _DeeplineClient {
|
|
|
3471
3597
|
workspaces;
|
|
3472
3598
|
/** Monitors namespace: access, catalog, deploy/check, and lifecycle. */
|
|
3473
3599
|
monitors;
|
|
3600
|
+
/** Named workspace authorizations and provider setup wizard links. */
|
|
3601
|
+
integrations;
|
|
3474
3602
|
/**
|
|
3475
3603
|
* Create a low-level SDK client.
|
|
3476
3604
|
*
|
|
@@ -3484,6 +3612,7 @@ var DeeplineClient = class _DeeplineClient {
|
|
|
3484
3612
|
this.config = config;
|
|
3485
3613
|
this.environment = this.config.environment ?? process.env;
|
|
3486
3614
|
this.http = http;
|
|
3615
|
+
this.integrations = createIntegrationsNamespace(this);
|
|
3487
3616
|
this.playClient = new PlayClient(this.http, this.environment);
|
|
3488
3617
|
this.toolCalls = new ToolCalls(
|
|
3489
3618
|
this.http,
|
|
@@ -5571,6 +5700,25 @@ var DeeplineClient = class _DeeplineClient {
|
|
|
5571
5700
|
async listWorkspaceIntegrationConnections() {
|
|
5572
5701
|
return this.http.get("/api/v2/integrations/connections");
|
|
5573
5702
|
}
|
|
5703
|
+
async listWorkspaceConnectionInventory(provider, options) {
|
|
5704
|
+
const params = new URLSearchParams({
|
|
5705
|
+
view: options?.authorizationsOnly ? "authorizations" : "inventory"
|
|
5706
|
+
});
|
|
5707
|
+
if (provider) params.set("provider", provider);
|
|
5708
|
+
return this.http.get(`/api/v2/integrations/connections?${params}`);
|
|
5709
|
+
}
|
|
5710
|
+
async saveWorkspaceApiKeyConnection(input) {
|
|
5711
|
+
return this.http.post("/api/v2/integrations/connections", {
|
|
5712
|
+
...input,
|
|
5713
|
+
owner: "workspace",
|
|
5714
|
+
type: "api_key"
|
|
5715
|
+
});
|
|
5716
|
+
}
|
|
5717
|
+
async listManagedConnectionMembers(provider, cursor) {
|
|
5718
|
+
const params = new URLSearchParams({ view: "members", provider });
|
|
5719
|
+
if (cursor) params.set("cursor", cursor);
|
|
5720
|
+
return this.http.get(`/api/v2/integrations/connections?${params}`);
|
|
5721
|
+
}
|
|
5574
5722
|
/** List workspace members' personal HubSpot connection status as an admin. */
|
|
5575
5723
|
async listPersonalHubSpotMembers(cursor) {
|
|
5576
5724
|
const path = "/api/v2/integrations/connections/hubspot-members";
|
|
@@ -5578,6 +5726,27 @@ var DeeplineClient = class _DeeplineClient {
|
|
|
5578
5726
|
cursor ? `${path}?${new URLSearchParams({ cursor })}` : path
|
|
5579
5727
|
);
|
|
5580
5728
|
}
|
|
5729
|
+
/** Read the Google Workspace delegate grant and a page of selectable members. */
|
|
5730
|
+
async getCalendarDelegation(cursor, name, domain) {
|
|
5731
|
+
const path = "/api/v2/integrations/calendar-availability/delegation";
|
|
5732
|
+
const params = new URLSearchParams();
|
|
5733
|
+
if (cursor) params.set("cursor", cursor);
|
|
5734
|
+
if (name) params.set("name", name);
|
|
5735
|
+
if (domain) params.set("domain", domain);
|
|
5736
|
+
return this.http.get(params.size ? `${path}?${params}` : path);
|
|
5737
|
+
}
|
|
5738
|
+
async listCalendarAvailabilityConnections() {
|
|
5739
|
+
return this.http.get(
|
|
5740
|
+
"/api/v2/integrations/calendar-availability/delegation?view=inventory"
|
|
5741
|
+
);
|
|
5742
|
+
}
|
|
5743
|
+
/** Verify, disconnect, or remove a Workspace approval. Legacy roster inputs remain supported. */
|
|
5744
|
+
async changeCalendarDelegation(change) {
|
|
5745
|
+
return this.http.post(
|
|
5746
|
+
"/api/v2/integrations/calendar-availability/delegation",
|
|
5747
|
+
change
|
|
5748
|
+
);
|
|
5749
|
+
}
|
|
5581
5750
|
/** Manage a workspace-owned OAuth connection. Consent completes in the browser. */
|
|
5582
5751
|
async manageWorkspaceIntegrationConnection(input) {
|
|
5583
5752
|
return this.http.post("/api/v2/integrations/connections", {
|
|
@@ -6282,7 +6451,7 @@ var DeeplineClient = class _DeeplineClient {
|
|
|
6282
6451
|
* charge or settlement oracle. Empty pages may still carry a continuation.
|
|
6283
6452
|
*/
|
|
6284
6453
|
async getBillingUsageEvents(options = {}) {
|
|
6285
|
-
const
|
|
6454
|
+
const invalid2 = (message) => {
|
|
6286
6455
|
throw new DeeplineError(
|
|
6287
6456
|
message,
|
|
6288
6457
|
void 0,
|
|
@@ -6290,14 +6459,14 @@ var DeeplineClient = class _DeeplineClient {
|
|
|
6290
6459
|
);
|
|
6291
6460
|
};
|
|
6292
6461
|
if ("offset" in options) {
|
|
6293
|
-
|
|
6462
|
+
invalid2(
|
|
6294
6463
|
"Usage events do not support offset; use the preceding next_cursor."
|
|
6295
6464
|
);
|
|
6296
6465
|
}
|
|
6297
6466
|
const params = new URLSearchParams();
|
|
6298
6467
|
if (options.limit !== void 0) {
|
|
6299
6468
|
if (!Number.isInteger(options.limit) || options.limit < 1 || options.limit > 500) {
|
|
6300
|
-
|
|
6469
|
+
invalid2("Usage events limit must be an integer from 1 to 500.");
|
|
6301
6470
|
}
|
|
6302
6471
|
params.set("limit", String(options.limit));
|
|
6303
6472
|
}
|
|
@@ -6307,7 +6476,7 @@ var DeeplineClient = class _DeeplineClient {
|
|
|
6307
6476
|
]) {
|
|
6308
6477
|
if (value !== void 0) {
|
|
6309
6478
|
if (typeof value !== "string" || !value || value !== value.trim()) {
|
|
6310
|
-
|
|
6479
|
+
invalid2(
|
|
6311
6480
|
`Usage events ${name} must be a non-empty string without surrounding whitespace.`
|
|
6312
6481
|
);
|
|
6313
6482
|
}
|
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
resolveApiKeyForBaseUrl,
|
|
5
5
|
resolveCliCommandContext,
|
|
6
6
|
resolveConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-R57UCXQG.mjs";
|
|
8
8
|
import {
|
|
9
9
|
SDK_VERSION,
|
|
10
10
|
agentSessionIdFromEnvironment,
|
|
11
11
|
deploymentProtectionHeaders,
|
|
12
12
|
detectAgentRuntime
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-JXG7HWBA.mjs";
|
|
14
14
|
import {
|
|
15
15
|
DeeplineError,
|
|
16
16
|
normalizeToolExecutionFailure,
|
|
@@ -1497,10 +1497,14 @@ function renderCommandEnvelopeText(envelope) {
|
|
|
1497
1497
|
function printCommandEnvelope(envelope, options = {}) {
|
|
1498
1498
|
const jsonOutput = typeof options.json === "boolean" ? options.json : shouldEmitJson();
|
|
1499
1499
|
if (jsonOutput) {
|
|
1500
|
-
|
|
1500
|
+
if (options.legacyJson)
|
|
1501
|
+
process.stdout.write(`${JSON.stringify(options.legacyJson.value)}
|
|
1502
|
+
`);
|
|
1503
|
+
else printJson(envelope, options.fields);
|
|
1501
1504
|
return;
|
|
1502
1505
|
}
|
|
1503
1506
|
process.stdout.write(options.text ?? renderCommandEnvelopeText(envelope));
|
|
1507
|
+
if (options.textStderr) process.stderr.write(options.textStderr);
|
|
1504
1508
|
}
|
|
1505
1509
|
|
|
1506
1510
|
export {
|