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
|
@@ -2,11 +2,20 @@ import {
|
|
|
2
2
|
addDescribeOptions,
|
|
3
3
|
recordApiResponse,
|
|
4
4
|
writeExecutionOutput
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-XFPVFWZR.mjs";
|
|
6
|
+
import {
|
|
7
|
+
registerIntegrationBalanceCommand,
|
|
8
|
+
registerIntegrationConnectCommand,
|
|
9
|
+
registerLegacyAvailabilityCalendarsCommand,
|
|
10
|
+
registerLegacyCalendarDelegationCommand,
|
|
11
|
+
registerLegacyHubSpotMembersCommand,
|
|
12
|
+
registerLegacyWorkspaceConnectionCommand,
|
|
13
|
+
registerWorkspaceConnectionListCommand
|
|
14
|
+
} from "./chunk-7AUQTNLB.mjs";
|
|
6
15
|
import {
|
|
7
16
|
recentSearchRef,
|
|
8
17
|
registerDeprecatedSearchCommand
|
|
9
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-OAFKUHN5.mjs";
|
|
10
19
|
import {
|
|
11
20
|
Capability,
|
|
12
21
|
arrayField,
|
|
@@ -27,7 +36,7 @@ import {
|
|
|
27
36
|
toolInputFieldsForDisplay,
|
|
28
37
|
toolMetadataJsonForDescribe,
|
|
29
38
|
toolOutputFieldsForDisplay
|
|
30
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-GWNYLIF7.mjs";
|
|
31
40
|
import {
|
|
32
41
|
rateLimitQualifier
|
|
33
42
|
} from "./chunk-7AOFSZJM.mjs";
|
|
@@ -46,10 +55,10 @@ import {
|
|
|
46
55
|
} from "./chunk-FIVKWNMT.mjs";
|
|
47
56
|
import {
|
|
48
57
|
DeeplineClient
|
|
49
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-4SKDSSPU.mjs";
|
|
50
59
|
import {
|
|
51
60
|
validateExecutionIdempotencyKey
|
|
52
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-D6YAU3CF.mjs";
|
|
53
62
|
import {
|
|
54
63
|
stableStringify
|
|
55
64
|
} from "./chunk-UBKA33KY.mjs";
|
|
@@ -59,18 +68,18 @@ import {
|
|
|
59
68
|
maybeAutoUpdateAndRelaunch,
|
|
60
69
|
registerCompatibilityCatalog,
|
|
61
70
|
runToolExecuteStage
|
|
62
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-XSN6BAZT.mjs";
|
|
63
72
|
import {
|
|
64
73
|
isCliTraceEnabled,
|
|
65
74
|
recordCliTrace,
|
|
66
75
|
resolveCliMaintenancePolicy
|
|
67
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-5VIPTLRX.mjs";
|
|
68
77
|
import {
|
|
69
78
|
checkSdkCompatibility,
|
|
70
79
|
enforceSdkCompatibilityResponse,
|
|
71
80
|
flushDeferredSkillsSyncNotices,
|
|
72
81
|
syncSdkSkillsIfNeeded
|
|
73
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-NR3O56FT.mjs";
|
|
74
83
|
import {
|
|
75
84
|
errorToJsonPayload,
|
|
76
85
|
printCommandEnvelope,
|
|
@@ -79,12 +88,12 @@ import {
|
|
|
79
88
|
printJsonError,
|
|
80
89
|
renderCommandEnvelopeText,
|
|
81
90
|
shouldEmitJson
|
|
82
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-DH43ECTN.mjs";
|
|
83
92
|
import {
|
|
84
93
|
readSdkSkillsLocalVersion,
|
|
85
94
|
resolveConfig,
|
|
86
95
|
sdkCliStateDirPath
|
|
87
|
-
} from "./chunk-
|
|
96
|
+
} from "./chunk-R57UCXQG.mjs";
|
|
88
97
|
import {
|
|
89
98
|
DeeplineError
|
|
90
99
|
} from "./chunk-JL2OTMSG.mjs";
|
|
@@ -813,7 +822,7 @@ Concepts:
|
|
|
813
822
|
Common commands:
|
|
814
823
|
deepline search "name and company domain -> work email"
|
|
815
824
|
deepline describe hunter_email_verifier
|
|
816
|
-
deepline
|
|
825
|
+
deepline integrations connect hubspot --link
|
|
817
826
|
deepline run hunter_email_verifier --input '{"email":"a@b.com"}'
|
|
818
827
|
deepline billing usage --request-id <request-id>
|
|
819
828
|
|
|
@@ -824,182 +833,13 @@ Output:
|
|
|
824
833
|
activity.
|
|
825
834
|
`
|
|
826
835
|
);
|
|
827
|
-
tools
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
else
|
|
835
|
-
console.log(
|
|
836
|
-
`${balance.provider}: ${balance.balance.value} ${balance.unit} (observed ${balance.observedAt})`
|
|
837
|
-
);
|
|
838
|
-
});
|
|
839
|
-
tools.command("workspace-connections").description(
|
|
840
|
-
"List shared OAuth connections in a workspace enrolled in the pilot."
|
|
841
|
-
).option("--json", "Print connection summaries as JSON").action(async (options) => {
|
|
842
|
-
const { connections } = await new DeeplineClient().listWorkspaceIntegrationConnections();
|
|
843
|
-
if (shouldEmitJson(options.json))
|
|
844
|
-
console.log(JSON.stringify(connections));
|
|
845
|
-
else if (connections.length === 0)
|
|
846
|
-
console.log("No workspace connections.");
|
|
847
|
-
else
|
|
848
|
-
for (const row of connections)
|
|
849
|
-
console.log(`${row.provider} ${row.status} ${row.label}`);
|
|
850
|
-
});
|
|
851
|
-
tools.command("hubspot-members").description(
|
|
852
|
-
"List personal HubSpot connection status for workspace members."
|
|
853
|
-
).option("--cursor <cursor>", "Read the next roster page").option("--json", "Print the roster page as JSON").action(async (options) => {
|
|
854
|
-
const page = await new DeeplineClient().listPersonalHubSpotMembers(
|
|
855
|
-
options.cursor
|
|
856
|
-
);
|
|
857
|
-
if (shouldEmitJson(options.json)) {
|
|
858
|
-
console.log(JSON.stringify(page));
|
|
859
|
-
return;
|
|
860
|
-
}
|
|
861
|
-
if (page.members.length === 0)
|
|
862
|
-
console.log("No workspace members on this page.");
|
|
863
|
-
for (const member of page.members) {
|
|
864
|
-
const account = member.account ? ` Portal ${member.account.portalId} User ${member.account.userId}` : "";
|
|
865
|
-
console.log(
|
|
866
|
-
`${JSON.stringify(member.name || member.email)} ${member.status}${account}`
|
|
867
|
-
);
|
|
868
|
-
}
|
|
869
|
-
if (page.nextCursor)
|
|
870
|
-
console.error(`Next page cursor: ${page.nextCursor}`);
|
|
871
|
-
});
|
|
872
|
-
tools.command("workspace-connection <provider> <action>").description(
|
|
873
|
-
"Open shared OAuth setup or disconnect the current connection."
|
|
874
|
-
).option("--json", "Print the result as JSON").action(
|
|
875
|
-
async (provider, action, options) => {
|
|
876
|
-
if (provider !== "hubspot" && provider !== "google_calendar_availability")
|
|
877
|
-
throw new Error("Choose hubspot or google_calendar_availability.");
|
|
878
|
-
if (action !== "connect" && action !== "reconnect" && action !== "replace" && action !== "disconnect")
|
|
879
|
-
throw new Error("Choose connect, reconnect, replace, or disconnect.");
|
|
880
|
-
const client = new DeeplineClient();
|
|
881
|
-
const { connections } = await client.listWorkspaceIntegrationConnections();
|
|
882
|
-
const row = connections.find(
|
|
883
|
-
(connection) => connection.provider === provider
|
|
884
|
-
);
|
|
885
|
-
const result = await client.manageWorkspaceIntegrationConnection({
|
|
886
|
-
provider,
|
|
887
|
-
action,
|
|
888
|
-
connectionId: row?.id,
|
|
889
|
-
authorizationVersion: row?.authorizationVersion
|
|
890
|
-
});
|
|
891
|
-
if (shouldEmitJson(options.json)) console.log(JSON.stringify(result));
|
|
892
|
-
else console.log(result.url ?? "Workspace connection disconnected.");
|
|
893
|
-
}
|
|
894
|
-
);
|
|
895
|
-
tools.command("availability-calendars").description("Calendar discovery compatibility command for the pilot.").option("--cursor <cursor>", "Legacy calendar page cursor").option("--json", "Print the response as JSON").action(async (options) => {
|
|
896
|
-
const page = await new DeeplineClient().listAvailabilityCalendars(
|
|
897
|
-
options.cursor
|
|
898
|
-
);
|
|
899
|
-
if (shouldEmitJson(options.json)) {
|
|
900
|
-
console.log(JSON.stringify(page));
|
|
901
|
-
return;
|
|
902
|
-
}
|
|
903
|
-
for (const calendar of page.calendars)
|
|
904
|
-
console.log(`${JSON.stringify(calendar.name)} ${calendar.id}`);
|
|
905
|
-
if (page.cursor)
|
|
906
|
-
console.log(`Next page cursor: ${JSON.stringify(page.cursor)}`);
|
|
907
|
-
});
|
|
908
|
-
tools.command("connect <provider>").description(
|
|
909
|
-
"Get a dashboard connection link or connect a provider with credentials or OAuth."
|
|
910
|
-
).addOption(
|
|
911
|
-
new Option("--link", "Print a shareable dashboard link").conflicts([
|
|
912
|
-
"credentialsFile",
|
|
913
|
-
"oauth",
|
|
914
|
-
"preset",
|
|
915
|
-
"scopes",
|
|
916
|
-
"optionalScopes",
|
|
917
|
-
"expectedConnectionId"
|
|
918
|
-
])
|
|
919
|
-
).option(
|
|
920
|
-
"--credentials-file <path>",
|
|
921
|
-
"JSON object of credential field names and string values; keep this file private"
|
|
922
|
-
).option("--oauth", "Return an OAuth authorization URL").addOption(new Option("--expected-connection-id <id>").hideHelp()).option("--preset <id>", "Server-defined access preset (HubSpot only)").option("--scopes <scopes>", "Comma-separated OAuth scopes").option(
|
|
923
|
-
"--optional-scopes <scopes>",
|
|
924
|
-
"Comma-separated optional OAuth scopes"
|
|
925
|
-
).option("--json", "Print JSON without credential values").action(
|
|
926
|
-
async (provider, options) => {
|
|
927
|
-
if (options.expectedConnectionId !== void 0 && (!options.expectedConnectionId.trim() || provider !== "google_calendar_availability" || !options.credentialsFile || options.oauth)) {
|
|
928
|
-
throw new Error(
|
|
929
|
-
"--expected-connection-id requires Calendar availability and a credentials file."
|
|
930
|
-
);
|
|
931
|
-
}
|
|
932
|
-
if (options.link) {
|
|
933
|
-
const link = await new DeeplineClient().getIntegrationConnectLink(
|
|
934
|
-
provider
|
|
935
|
-
);
|
|
936
|
-
if (shouldEmitJson(options.json)) console.log(JSON.stringify(link));
|
|
937
|
-
else console.log(link.connect_url);
|
|
938
|
-
return;
|
|
939
|
-
}
|
|
940
|
-
if (options.oauth) {
|
|
941
|
-
if (options.credentialsFile)
|
|
942
|
-
throw new Error("Use --oauth or --credentials-file, not both.");
|
|
943
|
-
if (options.preset !== void 0 && (options.scopes !== void 0 || options.optionalScopes !== void 0))
|
|
944
|
-
throw new Error("Use --preset or individual scopes, not both.");
|
|
945
|
-
const splitScopes = (value) => value.split(",").map((scope) => scope.trim()).filter(Boolean);
|
|
946
|
-
const result2 = await new DeeplineClient().startIntegrationOAuth(
|
|
947
|
-
provider,
|
|
948
|
-
{
|
|
949
|
-
...options.preset !== void 0 ? { preset: options.preset } : {},
|
|
950
|
-
...options.scopes !== void 0 ? { scopes: splitScopes(options.scopes) } : {},
|
|
951
|
-
...options.optionalScopes !== void 0 ? { optionalScopes: splitScopes(options.optionalScopes) } : {}
|
|
952
|
-
}
|
|
953
|
-
);
|
|
954
|
-
if (!result2.ok || typeof result2.redirect_url !== "string" || !result2.redirect_url)
|
|
955
|
-
throw new Error(
|
|
956
|
-
"The API did not return an OAuth authorization URL."
|
|
957
|
-
);
|
|
958
|
-
if (shouldEmitJson(options.json))
|
|
959
|
-
console.log(
|
|
960
|
-
JSON.stringify({ provider, redirect_url: result2.redirect_url })
|
|
961
|
-
);
|
|
962
|
-
else console.log(result2.redirect_url);
|
|
963
|
-
return;
|
|
964
|
-
}
|
|
965
|
-
if (!options.credentialsFile || options.preset !== void 0 || options.scopes !== void 0 || options.optionalScopes !== void 0)
|
|
966
|
-
throw new Error(
|
|
967
|
-
"Use --link for a dashboard link, --credentials-file to save credentials, or --oauth to request access."
|
|
968
|
-
);
|
|
969
|
-
let credentials;
|
|
970
|
-
try {
|
|
971
|
-
credentials = JSON.parse(
|
|
972
|
-
readFileSync2(resolve(options.credentialsFile), "utf8")
|
|
973
|
-
);
|
|
974
|
-
} catch {
|
|
975
|
-
throw new Error(
|
|
976
|
-
"Unable to read --credentials-file as a JSON object."
|
|
977
|
-
);
|
|
978
|
-
}
|
|
979
|
-
if (!credentials || typeof credentials !== "object" || Array.isArray(credentials) || Object.keys(credentials).length === 0 || Object.values(credentials).some((value) => typeof value !== "string")) {
|
|
980
|
-
throw new Error(
|
|
981
|
-
"--credentials-file must contain a nonempty JSON object of string credential values."
|
|
982
|
-
);
|
|
983
|
-
}
|
|
984
|
-
const result = await new DeeplineClient().setIntegrationCredentials(
|
|
985
|
-
provider,
|
|
986
|
-
credentials,
|
|
987
|
-
{ expectedConnectionId: options.expectedConnectionId }
|
|
988
|
-
);
|
|
989
|
-
if (!result.ok || result.credential_saved !== true) {
|
|
990
|
-
throw new Error(
|
|
991
|
-
"The API did not confirm that provider credentials were saved. Inspect the integration before retrying."
|
|
992
|
-
);
|
|
993
|
-
}
|
|
994
|
-
const confirmation = { provider, credential_saved: true };
|
|
995
|
-
if (shouldEmitJson(options.json))
|
|
996
|
-
console.log(JSON.stringify(confirmation));
|
|
997
|
-
else
|
|
998
|
-
console.log(
|
|
999
|
-
`Credentials saved for ${provider} in the active workspace.`
|
|
1000
|
-
);
|
|
1001
|
-
}
|
|
1002
|
-
);
|
|
836
|
+
registerIntegrationBalanceCommand(tools, true);
|
|
837
|
+
registerWorkspaceConnectionListCommand(tools, "workspace-connections", true);
|
|
838
|
+
registerLegacyHubSpotMembersCommand(tools, true);
|
|
839
|
+
registerLegacyWorkspaceConnectionCommand(tools, true);
|
|
840
|
+
registerLegacyCalendarDelegationCommand(tools, true);
|
|
841
|
+
registerLegacyAvailabilityCalendarsCommand(tools, true);
|
|
842
|
+
registerIntegrationConnectCommand(tools, false, true);
|
|
1003
843
|
tools.command("list [category]").description("Browse tool categories, or list every tool in a category.").addHelpText(
|
|
1004
844
|
"after",
|
|
1005
845
|
`
|
|
@@ -1137,7 +977,7 @@ Examples:
|
|
|
1137
977
|
process.exitCode = await narrowView();
|
|
1138
978
|
return;
|
|
1139
979
|
}
|
|
1140
|
-
const { describeAnything } = await import("./describe-
|
|
980
|
+
const { describeAnything } = await import("./describe-AXHQZHTT.mjs");
|
|
1141
981
|
process.exitCode = await describeAnything(
|
|
1142
982
|
toolId,
|
|
1143
983
|
{
|
|
@@ -1157,7 +997,7 @@ Examples:
|
|
|
1157
997
|
{ json: false }
|
|
1158
998
|
)
|
|
1159
999
|
);
|
|
1160
|
-
tools.command("execute <toolId>", { hidden: true }).alias("call").description("Execute a tool by id.").addHelpText(
|
|
1000
|
+
tools.command("execute <toolId>", { hidden: true }).alias("call").description("Execute a tool by id.").option("--connection <name>", "Use an exact named workspace connection").addHelpText(
|
|
1161
1001
|
"after",
|
|
1162
1002
|
`
|
|
1163
1003
|
Notes:
|
|
@@ -2252,6 +2092,11 @@ function parseExecuteOptions(toolId, options, output) {
|
|
|
2252
2092
|
if (options.idempotencyKey !== void 0) {
|
|
2253
2093
|
validateExecutionIdempotencyKey(options.idempotencyKey);
|
|
2254
2094
|
}
|
|
2095
|
+
if (options.connection !== void 0 && (options.recover || options.idempotencyKey !== void 0)) {
|
|
2096
|
+
throw new Error(
|
|
2097
|
+
"--connection cannot be combined with --recover or --idempotency-key."
|
|
2098
|
+
);
|
|
2099
|
+
}
|
|
2255
2100
|
if (options.recoveryTimeoutMs !== void 0) {
|
|
2256
2101
|
const parsed = Number(options.recoveryTimeoutMs);
|
|
2257
2102
|
if (!options.recoveryTimeoutMs.trim() || !Number.isFinite(parsed) || parsed < 0) {
|
|
@@ -2267,6 +2112,7 @@ function parseExecuteOptions(toolId, options, output) {
|
|
|
2267
2112
|
outPath: options.out !== void 0 ? resolve(options.out) : null,
|
|
2268
2113
|
timeoutMs: options.timeout !== void 0 ? parseToolExecuteTimeout(options.timeout) : void 0,
|
|
2269
2114
|
idempotencyKey: options.idempotencyKey,
|
|
2115
|
+
connection: options.connection,
|
|
2270
2116
|
recover: options.recover === true,
|
|
2271
2117
|
recoveryTimeoutMs
|
|
2272
2118
|
};
|
|
@@ -2869,6 +2715,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2869
2715
|
const executeOptions = {
|
|
2870
2716
|
...parsed.timeoutMs !== void 0 ? { timeout: parsed.timeoutMs } : {},
|
|
2871
2717
|
responseIntent,
|
|
2718
|
+
...parsed.connection !== void 0 ? { connection: parsed.connection } : {},
|
|
2872
2719
|
...idempotencyKey ? { idempotencyKey } : {},
|
|
2873
2720
|
...parsed.recoveryTimeoutMs !== void 0 ? { recoveryTimeoutMs: parsed.recoveryTimeoutMs } : {},
|
|
2874
2721
|
searchRef: recentSearchRef(parsed.toolId),
|
|
@@ -2900,7 +2747,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2900
2747
|
...metadata?.executionMetadata?.retrySafeAmbiguousDelivery === true ? { retryAmbiguousDelivery: true } : {}
|
|
2901
2748
|
});
|
|
2902
2749
|
} catch (error) {
|
|
2903
|
-
if (!(error instanceof DeeplineError) || error.code !== "ATOMIC_TOOL_EXECUTE_UNSUPPORTED")
|
|
2750
|
+
if (parsed.connection !== void 0 || !(error instanceof DeeplineError) || error.code !== "ATOMIC_TOOL_EXECUTE_UNSUPPORTED")
|
|
2904
2751
|
throw error;
|
|
2905
2752
|
const baseUrl = resolveConfig().baseUrl;
|
|
2906
2753
|
if (maintenancePolicy !== "off") {
|