deepline 0.3.546 → 0.3.547
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 +13 -0
- package/dist/bundling-sources/sdk/src/index.ts +7 -1
- package/dist/bundling-sources/sdk/src/integrations.ts +17 -7
- package/dist/bundling-sources/sdk/src/play.ts +71 -0
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/sdk/src/runs/watch-polling.ts +13 -4
- package/dist/bundling-sources/sdk/src/types.ts +33 -0
- package/dist/bundling-sources/shared_libs/integration-contracts/calendar-delegation.ts +7 -0
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-batch-operation.ts +2 -0
- package/dist/bundling-sources/shared_libs/monitors/tracking-provider-guidance.ts +1 -0
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +19 -1
- package/dist/bundling-sources/shared_libs/play-data-plane/r2.ts +17 -2
- package/dist/bundling-sources/shared_libs/play-runtime/async-operation.ts +57 -5
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +295 -52
- package/dist/bundling-sources/shared_libs/play-runtime/ctx-types.ts +10 -1
- package/dist/bundling-sources/shared_libs/play-runtime/docflow-decision-tracker.ts +135 -0
- package/dist/bundling-sources/shared_libs/play-runtime/docflow-fail-open.ts +177 -0
- package/dist/bundling-sources/shared_libs/play-runtime/docflow-node-io.ts +99 -2
- package/dist/bundling-sources/shared_libs/play-runtime/durable-runs-rollout.ts +16 -10
- package/dist/bundling-sources/shared_libs/play-runtime/fenced-call-diagnostics.ts +211 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-capacity-policy.ts +52 -14
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +21 -2
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-progress.ts +18 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +68 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-capacity.ts +11 -3
- package/dist/bundling-sources/shared_libs/play-runtime/tool-cache-policy.ts +9 -1
- package/dist/bundling-sources/shared_libs/play-runtime/tool-result.ts +48 -0
- package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +6 -1
- package/dist/bundling-sources/shared_libs/plays/bundling/index.ts +716 -51
- package/dist/bundling-sources/shared_libs/plays/docflow-decision-arms.ts +146 -0
- package/dist/bundling-sources/shared_libs/plays/docflow-flow-order.ts +94 -0
- package/dist/bundling-sources/shared_libs/plays/docflow-unreached-reason.ts +10 -1
- package/dist/bundling-sources/shared_libs/plays/docflow.ts +787 -117
- package/dist/bundling-sources/shared_libs/plays/share/static-pipeline-summary.ts +8 -2
- package/dist/bundling-sources/shared_libs/plays/static-pipeline.ts +6 -0
- package/dist/bundling-sources/shared_libs/plays/trigger-config-contract.ts +13 -0
- package/dist/bundling-sources/shared_libs/product-notifications/billing-sales.ts +25 -0
- package/dist/bundling-sources/shared_libs/security/secret-redaction.ts +56 -0
- package/dist/cli/auth-AC5277PI.js +43 -0
- package/dist/cli/{auth-KFWG72AZ.mjs → auth-WJEY4IDX.mjs} +5 -5
- package/dist/cli/{billing-OQVOAZ4S.js → billing-IJITDDRQ.js} +96 -96
- package/dist/cli/{billing-MMZ336HO.mjs → billing-PHJUDYF3.mjs} +10 -10
- package/dist/cli/{chunk-TBWYZOSV.js → chunk-2AHY47SI.js} +3 -3
- package/dist/cli/{chunk-MXQP7CXZ.js → chunk-2HPTLBNB.js} +3 -3
- package/dist/cli/{chunk-TI6DTURF.js → chunk-4WAM6TLD.js} +7 -1
- package/dist/cli/{chunk-JARZ47OP.mjs → chunk-56MEAGWA.mjs} +2 -2
- package/dist/cli/{chunk-GYTSDSQD.mjs → chunk-5SFHPMBY.mjs} +11 -11
- package/dist/cli/{chunk-Z3UEBFIN.js → chunk-ABLTVG3J.js} +41 -41
- package/dist/cli/{chunk-LX2TC3HO.mjs → chunk-AEQ5VWZ5.mjs} +4 -4
- package/dist/cli/{chunk-MI7X6V6V.mjs → chunk-CKIRKYW7.mjs} +3 -3
- package/dist/cli/{chunk-2JHYYB3F.js → chunk-CSPHSNBW.js} +3 -3
- package/dist/cli/{chunk-IVWU7SJC.js → chunk-D6OIEH47.js} +5 -5
- package/dist/cli/{chunk-KUK7ARXA.mjs → chunk-DIUNDLSX.mjs} +2 -2
- package/dist/cli/{chunk-RO66FPTS.mjs → chunk-DJI5CLLW.mjs} +1 -1
- package/dist/cli/{chunk-LIJKRDDG.js → chunk-DZC7LMYM.js} +6 -6
- package/dist/cli/{chunk-UQJBV5PM.js → chunk-E2OIYPB4.js} +10 -10
- package/dist/cli/{chunk-JA633HRV.mjs → chunk-ECUD4QPD.mjs} +3 -3
- package/dist/cli/{chunk-VPERQ3U6.mjs → chunk-ESCVHDNY.mjs} +5 -5
- package/dist/cli/{chunk-JVOUQFHT.js → chunk-FFBXLFKV.js} +1 -1
- package/dist/cli/{chunk-3DUNNZB6.mjs → chunk-FMQXAOVE.mjs} +4 -4
- package/dist/cli/{chunk-HXIR3VQL.mjs → chunk-FZHMNK6F.mjs} +7 -1
- package/dist/cli/{chunk-PU3ZAG6V.mjs → chunk-G6KW764N.mjs} +1 -1
- package/dist/cli/{chunk-EEG46QZY.mjs → chunk-G6XTCG3J.mjs} +2 -2
- package/dist/cli/{chunk-EEJHB76U.js → chunk-GIGAYLY6.js} +12 -12
- package/dist/cli/{chunk-BLYW6FFB.js → chunk-GJA2PRHJ.js} +2 -2
- package/dist/cli/{chunk-H7Q5IDO3.js → chunk-GJOGFWX3.js} +20 -20
- package/dist/cli/{chunk-6Y5TU3R7.mjs → chunk-GPAWLXW3.mjs} +1 -1
- package/dist/cli/{chunk-5W4ENHWM.js → chunk-GZFZZQL4.js} +285 -264
- package/dist/cli/{chunk-P7A3H6G5.mjs → chunk-HARZ4AAX.mjs} +1 -1
- package/dist/cli/{chunk-MEGHIX4M.js → chunk-HFIFKP3A.js} +5 -5
- package/dist/cli/{chunk-LHE2TSV6.mjs → chunk-IGAK22XO.mjs} +1 -1
- package/dist/cli/{chunk-VTK3HGMN.mjs → chunk-IKYN6PLO.mjs} +5 -5
- package/dist/cli/{chunk-UREAIHUU.mjs → chunk-ITLZBDSR.mjs} +3 -3
- package/dist/cli/{chunk-6LG7MLJ2.js → chunk-IVFFCAV2.js} +44 -44
- package/dist/cli/{chunk-SYTWWVIQ.js → chunk-K3GMDSUX.js} +5 -5
- package/dist/cli/{chunk-WKHPLBJK.js → chunk-L5J6UJ2X.js} +15 -15
- package/dist/cli/{chunk-X5KOHDJN.mjs → chunk-L6QE2XVM.mjs} +1 -1
- package/dist/cli/{chunk-SH32HL7I.js → chunk-LMLSOHTU.js} +53 -53
- package/dist/cli/{chunk-JCWNF44W.js → chunk-MBQELFL7.js} +22 -22
- package/dist/cli/{chunk-Z7SXGOIQ.mjs → chunk-MF7PCM6C.mjs} +1 -1
- package/dist/cli/{chunk-F2VEFMU5.js → chunk-MO7TGNXB.js} +13 -13
- package/dist/cli/{chunk-7ZW67ME6.mjs → chunk-MOZEAGSR.mjs} +1 -1
- package/dist/cli/{chunk-5VNQMVCU.js → chunk-N63U5CRG.js} +26 -26
- package/dist/cli/{chunk-JCH4UNNS.js → chunk-NBYFQZ6O.js} +2 -2
- package/dist/cli/{chunk-BTFUAGHC.js → chunk-OVYXYTEP.js} +16 -16
- package/dist/cli/{chunk-J65HJCJO.mjs → chunk-PBMO36BP.mjs} +2 -2
- package/dist/cli/{chunk-F5YQXCP3.js → chunk-PVQCX6KQ.js} +50 -7
- package/dist/cli/{chunk-K2XELBPF.mjs → chunk-QLE3QKJ2.mjs} +5 -5
- package/dist/cli/{chunk-VAT2SXFF.js → chunk-QU3K3IY6.js} +12 -12
- package/dist/cli/{chunk-JYG4XZLT.js → chunk-REAFIEV5.js} +99 -99
- package/dist/cli/{chunk-5OEFXAKP.mjs → chunk-RMCCB3XY.mjs} +50 -7
- package/dist/cli/{chunk-HJR2DDJS.mjs → chunk-RXRC2COC.mjs} +2 -2
- package/dist/cli/{chunk-4AZLGNXV.js → chunk-SAJWYN4B.js} +4 -4
- package/dist/cli/{chunk-VXTTAYOT.mjs → chunk-TNJG4ZPN.mjs} +3 -3
- package/dist/cli/{chunk-PMDHY2YK.js → chunk-VNOQEDVC.js} +7 -7
- package/dist/cli/{chunk-GOOF7E2B.mjs → chunk-VPF54TXQ.mjs} +5 -5
- package/dist/cli/{chunk-2HSZCQMT.mjs → chunk-WYT3H6JD.mjs} +1 -1
- package/dist/cli/{chunk-OAKWSLKS.mjs → chunk-XMBVHJPR.mjs} +28 -7
- package/dist/cli/{chunk-7MY7KWJS.mjs → chunk-XNTDTAKC.mjs} +1 -1
- package/dist/cli/{chunk-5V7NZKGG.js → chunk-YURGAKI3.js} +2 -2
- package/dist/cli/{chunk-ND7SFRQL.js → chunk-YVKLF7RW.js} +2 -2
- package/dist/cli/{chunk-6FBDTYR2.mjs → chunk-Z2YGQZWV.mjs} +2 -2
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{concurrent-runs-help-C2O5YKQA.mjs → concurrent-runs-help-ZNGP563R.mjs} +6 -6
- package/dist/cli/concurrent-runs-help-ZYISYOQA.js +21 -0
- package/dist/cli/{csv-Z4DNGR54.mjs → csv-VAHQHYYV.mjs} +4 -4
- package/dist/cli/{csv-MJDNOIQJ.js → csv-X6D4ZELE.js} +13 -13
- package/dist/cli/{db-4RL2BNOF.mjs → db-4G4S2VOV.mjs} +7 -7
- package/dist/cli/{db-S5QVPK5E.js → db-YA5ZGVEX.js} +28 -28
- package/dist/cli/{describe-L4P5SZLQ.mjs → describe-EVXEM2S6.mjs} +19 -19
- package/dist/cli/describe-GYYSLZLV.js +50 -0
- package/dist/cli/describe-core.d.mts +4 -4
- package/dist/cli/describe-core.d.ts +4 -4
- package/dist/cli/{executions-MFZ2Z36O.js → executions-5YC7ABF6.js} +9 -9
- package/dist/cli/{executions-RR6O3XK5.mjs → executions-HR6CTN5M.mjs} +7 -7
- package/dist/cli/{feedback-EQBQ3ABB.mjs → feedback-GEU5SPLR.mjs} +6 -6
- package/dist/cli/{feedback-YDAG7VH2.js → feedback-MJHSYLFF.js} +14 -14
- package/dist/cli/git-FZIQZNI4.js +25 -0
- package/dist/cli/{git-YGLCCU35.mjs → git-NPFF6QUS.mjs} +5 -5
- package/dist/cli/index.js +146 -146
- package/dist/cli/index.mjs +45 -45
- package/dist/cli/{integrations-IQXYMRMW.js → integrations-YPHFI77G.js} +19 -17
- package/dist/cli/{integrations-FWYXSBHK.mjs → integrations-Z7EGVBHF.mjs} +11 -9
- package/dist/cli/{legacy-noops-U7LI7UXC.js → legacy-noops-246E3KKG.js} +9 -9
- package/dist/cli/{legacy-noops-I4YRIX5F.mjs → legacy-noops-5IYCFWWX.mjs} +6 -6
- package/dist/cli/{mcp-QJBMB6VS.mjs → mcp-WUYGZXPI.mjs} +4 -4
- package/dist/cli/{mcp-GX2UKKWU.js → mcp-YTYTW67G.js} +24 -24
- package/dist/cli/{monitors-Z6EGKYJP.mjs → monitors-73DQKCU7.mjs} +26 -8
- package/dist/cli/{monitors-WCJYINGX.js → monitors-SA6ILD6Z.js} +119 -101
- package/dist/cli/{org-NNHICBR2.mjs → org-WVQRB2KX.mjs} +7 -7
- package/dist/cli/{org-7SKG423N.js → org-X7ELDV7B.js} +89 -89
- package/dist/cli/{play-CXDFPJ7Z.mjs → play-QI6V2EUQ.mjs} +295 -67
- package/dist/cli/{play-4P4DTG3Q.js → play-QTYOAJPE.js} +897 -669
- package/dist/cli/{providers-VQLQ7DTR.mjs → providers-DPVMVDS4.mjs} +7 -7
- package/dist/cli/{providers-EE4TUE3O.js → providers-XXFLVREV.js} +10 -10
- package/dist/cli/{quickstart-RVXHK4WA.js → quickstart-33ISXQJU.js} +6 -6
- package/dist/cli/{quickstart-IYNJRB5G.mjs → quickstart-YWGNHULM.mjs} +4 -4
- package/dist/cli/{run-R3F34KU3.js → run-BWHZXLTD.js} +45 -45
- package/dist/cli/{run-VBQPPMEX.mjs → run-J6FCAKQC.mjs} +25 -25
- package/dist/cli/search-JCWJX2XD.js +32 -0
- package/dist/cli/{search-B7R62HX5.mjs → search-Z3UU3WBB.mjs} +8 -8
- package/dist/cli/{search-output-LNQQXIGZ.mjs → search-output-OJYY4J7E.mjs} +4 -4
- package/dist/cli/{search-output-LWHWEPOT.js → search-output-YIPV74ME.js} +6 -6
- package/dist/cli/{secrets-QBOZ7WTD.js → secrets-UXRJCEN4.js} +16 -16
- package/dist/cli/{secrets-NM3VAJLO.mjs → secrets-YZZN2WST.mjs} +7 -7
- package/dist/cli/{sessions-R5BSIJ4I.mjs → sessions-ITCGPD7Z.mjs} +6 -6
- package/dist/cli/sessions-NA4SJH6Q.js +22 -0
- package/dist/cli/{settings-POYWKNRD.js → settings-LAFYMILP.js} +86 -86
- package/dist/cli/{settings-S4PN7WLY.mjs → settings-ZP2LSVNM.mjs} +13 -13
- package/dist/cli/{setup-VHB4Z654.js → setup-4AL3XYM5.js} +49 -49
- package/dist/cli/{setup-PFLXVBTL.mjs → setup-WEQAQSYC.mjs} +9 -9
- package/dist/cli/{skills-W2TELEU7.mjs → skills-NQH4HFW2.mjs} +7 -7
- package/dist/cli/skills-XZ4Y6SZ7.js +36 -0
- package/dist/cli/{tools-M4FA6N3Y.mjs → tools-CXK2GSI4.mjs} +18 -18
- package/dist/cli/tools-WJQ6Y7E4.js +57 -0
- package/dist/cli/{update-W7LIHEA7.mjs → update-3ROF3Z75.mjs} +9 -9
- package/dist/cli/update-ZLRLTBRD.js +34 -0
- package/dist/cli/{views-KTVPV6UP.mjs → views-AOUHVGV2.mjs} +7 -7
- package/dist/cli/{views-DJXAGD7V.js → views-XJFO5CEH.js} +22 -22
- package/dist/cli/{workflow-NVZDJKH2.js → workflow-GY3DBHXX.js} +18 -18
- package/dist/cli/{workflow-LGKCRODX.mjs → workflow-KBS2QJK6.mjs} +8 -8
- package/dist/{client-Tp1LSULB.d.mts → client-D1uWA2Vc.d.mts} +1 -1
- package/dist/{client-CCyWJqAI.d.ts → client-Hz7SsBXs.d.ts} +1 -1
- package/dist/{client-core-BpYiYEfu.d.ts → client-core-D3Ad7Flt.d.ts} +554 -504
- package/dist/{client-core-D8eCZz3O.d.mts → client-core-Db_e63Hb.d.mts} +554 -504
- package/dist/{compiler-manifest-EBWEUj0b.d.ts → compiler-manifest-BqwVrOri.d.mts} +38 -18
- package/dist/{compiler-manifest-EBWEUj0b.d.mts → compiler-manifest-BqwVrOri.d.ts} +38 -18
- package/dist/{errors-CParKUQR.d.mts → errors-BU8FB99X.d.mts} +1 -1
- package/dist/{errors-Qt0OTA7_.d.ts → errors-DfVN_FUG.d.ts} +1 -1
- package/dist/{index-CoqDkIw0.d.ts → index-BGnvtYGc.d.ts} +6 -1
- package/dist/{index-BMUVCNp7.d.mts → index-DjZgwpGw.d.mts} +6 -1
- package/dist/index.d.mts +28 -8
- package/dist/index.d.ts +28 -8
- package/dist/index.js +64 -39
- package/dist/index.mjs +32 -7
- package/dist/install-integrity.json +133 -128
- 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 +620 -124
- package/dist/plays/play-description.d.mts +3 -3
- package/dist/plays/play-description.d.ts +3 -3
- package/dist/plays/run-request.d.mts +2 -2
- package/dist/plays/run-request.d.ts +2 -2
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/dist/server.d.mts +4 -4
- package/dist/server.d.ts +4 -4
- package/dist/server.js +6 -6
- package/dist/server.mjs +4 -4
- package/package.json +1 -1
- package/dist/cli/auth-W32GMYND.js +0 -43
- package/dist/cli/concurrent-runs-help-6QT7ZR4W.js +0 -21
- package/dist/cli/describe-VLU2LUDJ.js +0 -50
- package/dist/cli/git-E6W44F5M.js +0 -25
- package/dist/cli/search-UUVFXZRA.js +0 -32
- package/dist/cli/sessions-K3PD73Q2.js +0 -22
- package/dist/cli/skills-QNE2EYT3.js +0 -36
- package/dist/cli/tools-3RLI4HGF.js +0 -57
- package/dist/cli/update-UT6KIW2W.js +0 -34
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkVNOQEDVCjs = require('./chunk-VNOQEDVC.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
@@ -11,11 +11,11 @@ var _chunkPMDHY2YKjs = require('./chunk-PMDHY2YK.js');
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkQU3K3IY6js = require('./chunk-QU3K3IY6.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkE2OIYPB4js = require('./chunk-E2OIYPB4.js');
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
@@ -55,10 +55,10 @@ var _chunkJ33TSWO5js = require('./chunk-J33TSWO5.js');
|
|
|
55
55
|
var _chunkHGFFYVXNjs = require('./chunk-HGFFYVXN.js');
|
|
56
56
|
|
|
57
57
|
|
|
58
|
-
var
|
|
58
|
+
var _chunkK3GMDSUXjs = require('./chunk-K3GMDSUX.js');
|
|
59
59
|
|
|
60
60
|
|
|
61
|
-
var
|
|
61
|
+
var _chunkGZFZZQL4js = require('./chunk-GZFZZQL4.js');
|
|
62
62
|
|
|
63
63
|
|
|
64
64
|
var _chunkXDVT3GOMjs = require('./chunk-XDVT3GOM.js');
|
|
@@ -68,18 +68,18 @@ var _chunkXDVT3GOMjs = require('./chunk-XDVT3GOM.js');
|
|
|
68
68
|
|
|
69
69
|
|
|
70
70
|
|
|
71
|
-
var
|
|
71
|
+
var _chunkMBQELFL7js = require('./chunk-MBQELFL7.js');
|
|
72
72
|
|
|
73
73
|
|
|
74
74
|
|
|
75
75
|
|
|
76
|
-
var
|
|
76
|
+
var _chunkYVKLF7RWjs = require('./chunk-YVKLF7RW.js');
|
|
77
77
|
|
|
78
78
|
|
|
79
79
|
|
|
80
80
|
|
|
81
81
|
|
|
82
|
-
var
|
|
82
|
+
var _chunkIVFFCAV2js = require('./chunk-IVFFCAV2.js');
|
|
83
83
|
|
|
84
84
|
|
|
85
85
|
|
|
@@ -88,12 +88,12 @@ var _chunk6LG7MLJ2js = require('./chunk-6LG7MLJ2.js');
|
|
|
88
88
|
|
|
89
89
|
|
|
90
90
|
|
|
91
|
-
var
|
|
91
|
+
var _chunkGJOGFWX3js = require('./chunk-GJOGFWX3.js');
|
|
92
92
|
|
|
93
93
|
|
|
94
94
|
|
|
95
95
|
|
|
96
|
-
var
|
|
96
|
+
var _chunk2HPTLBNBjs = require('./chunk-2HPTLBNB.js');
|
|
97
97
|
|
|
98
98
|
|
|
99
99
|
var _chunkBBTKAASQjs = require('./chunk-BBTKAASQ.js');
|
|
@@ -199,10 +199,10 @@ var ToolCallRecovery = class _ToolCallRecovery {
|
|
|
199
199
|
}
|
|
200
200
|
};
|
|
201
201
|
function pendingToolExecutionPath(input) {
|
|
202
|
-
const config =
|
|
202
|
+
const config = _chunk2HPTLBNBjs.resolveConfig.call(void 0, );
|
|
203
203
|
const fingerprint = _crypto.createHash.call(void 0, "sha256").update(config.baseUrl).update("\0").update(_crypto.createHash.call(void 0, "sha256").update(config.apiKey).digest("hex")).update("\0").update(input.toolId).update("\0").update(_chunkXDVT3GOMjs.stableStringify.call(void 0, input.params)).update("\0").update(input.responseIntent).digest("hex");
|
|
204
204
|
return _path.join.call(void 0,
|
|
205
|
-
|
|
205
|
+
_chunk2HPTLBNBjs.sdkCliStateDirPath.call(void 0, config.baseUrl),
|
|
206
206
|
`${PENDING_PREFIX}${fingerprint}.json`
|
|
207
207
|
);
|
|
208
208
|
}
|
|
@@ -510,13 +510,13 @@ function categoryEnumerationRender(summaries) {
|
|
|
510
510
|
};
|
|
511
511
|
}
|
|
512
512
|
async function listToolCategories(emitJson, compact) {
|
|
513
|
-
const client = new (0,
|
|
513
|
+
const client = new (0, _chunkK3GMDSUXjs.DeeplineClient)();
|
|
514
514
|
if (!emitJson) {
|
|
515
515
|
const summaries2 = (await client.listToolCategories()).map((category) => ({
|
|
516
516
|
...category,
|
|
517
517
|
description: describeToolCategory(category.name)
|
|
518
518
|
}));
|
|
519
|
-
|
|
519
|
+
_chunkGJOGFWX3js.printCommandEnvelope.call(void 0,
|
|
520
520
|
{ categories: summaries2, render: categoryEnumerationRender(summaries2) },
|
|
521
521
|
{ json: false }
|
|
522
522
|
);
|
|
@@ -526,7 +526,7 @@ async function listToolCategories(emitJson, compact) {
|
|
|
526
526
|
const items = rawTools.map(toListedTool);
|
|
527
527
|
const summaries = aggregateCategorySummaries(rawTools);
|
|
528
528
|
const outputItems = compact ? items.map(compactTool) : items;
|
|
529
|
-
|
|
529
|
+
_chunkGJOGFWX3js.printCommandEnvelope.call(void 0,
|
|
530
530
|
{
|
|
531
531
|
tools: outputItems,
|
|
532
532
|
count: outputItems.length,
|
|
@@ -545,7 +545,7 @@ function unknownCategoryError(category, summaries, emitJson) {
|
|
|
545
545
|
const known = summaries.map((item) => item.name);
|
|
546
546
|
const message = `Unknown tool category "${category}". Run \`deepline tools list\` to browse categories.`;
|
|
547
547
|
if (emitJson) {
|
|
548
|
-
|
|
548
|
+
_chunkGJOGFWX3js.printJson.call(void 0, {
|
|
549
549
|
ok: false,
|
|
550
550
|
exitCode: 4,
|
|
551
551
|
code: "TOOL_CATEGORY_NOT_FOUND",
|
|
@@ -559,13 +559,13 @@ function unknownCategoryError(category, summaries, emitJson) {
|
|
|
559
559
|
const render = categoryEnumerationRender(summaries);
|
|
560
560
|
console.error(message);
|
|
561
561
|
console.error("");
|
|
562
|
-
console.error(
|
|
562
|
+
console.error(_chunkGJOGFWX3js.renderCommandEnvelopeText.call(void 0, { render }).trimEnd());
|
|
563
563
|
console.error("");
|
|
564
564
|
console.error(`Valid categories: ${known.join(", ")}`);
|
|
565
565
|
return 4;
|
|
566
566
|
}
|
|
567
567
|
async function listToolsInCategory(category, emitJson) {
|
|
568
|
-
const client = new (0,
|
|
568
|
+
const client = new (0, _chunkK3GMDSUXjs.DeeplineClient)();
|
|
569
569
|
const { tools: rawTools, categories } = await client.listToolsInCategory(category);
|
|
570
570
|
const summaries = categories.map((item) => ({
|
|
571
571
|
...item,
|
|
@@ -601,7 +601,7 @@ async function listToolsInCategory(category, emitJson) {
|
|
|
601
601
|
}
|
|
602
602
|
]
|
|
603
603
|
};
|
|
604
|
-
|
|
604
|
+
_chunkGJOGFWX3js.printCommandEnvelope.call(void 0,
|
|
605
605
|
{
|
|
606
606
|
category,
|
|
607
607
|
total: rows.length,
|
|
@@ -614,7 +614,7 @@ async function listToolsInCategory(category, emitJson) {
|
|
|
614
614
|
return 0;
|
|
615
615
|
}
|
|
616
616
|
async function listToolsForCategoryFilter(requestedCategories, emitJson, compact) {
|
|
617
|
-
const client = new (0,
|
|
617
|
+
const client = new (0, _chunkK3GMDSUXjs.DeeplineClient)();
|
|
618
618
|
const items = (await client.listTools({
|
|
619
619
|
categories: requestedCategories.join(","),
|
|
620
620
|
compact
|
|
@@ -643,7 +643,7 @@ async function listToolsForCategoryFilter(requestedCategories, emitJson, compact
|
|
|
643
643
|
]
|
|
644
644
|
};
|
|
645
645
|
const outputItems = compact ? items.map(compactTool) : items;
|
|
646
|
-
|
|
646
|
+
_chunkGJOGFWX3js.printCommandEnvelope.call(void 0,
|
|
647
647
|
{
|
|
648
648
|
tools: outputItems,
|
|
649
649
|
count: outputItems.length,
|
|
@@ -662,13 +662,13 @@ async function listTools(category, options = {}) {
|
|
|
662
662
|
const positional = _nullishCoalesce(_optionalChain([category, 'optionalAccess', _10 => _10.trim, 'call', _11 => _11()]), () => ( ""));
|
|
663
663
|
const flagCategories = (_nullishCoalesce(options.categories, () => ( ""))).split(",").map((item) => item.trim()).filter(Boolean);
|
|
664
664
|
const compact = options.compact !== false;
|
|
665
|
-
const emitJson = options.json === true ||
|
|
665
|
+
const emitJson = options.json === true || _chunkGJOGFWX3js.shouldEmitJson.call(void 0, );
|
|
666
666
|
if (positional && flagCategories.length > 0) {
|
|
667
667
|
const flagIsSameSingle = flagCategories.length === 1 && flagCategories[0] === positional;
|
|
668
668
|
if (!flagIsSameSingle) {
|
|
669
669
|
const message = `Category "${positional}" and --categories ${flagCategories.join(",")} disagree. Pass one: deepline tools list ${positional}`;
|
|
670
670
|
if (emitJson) {
|
|
671
|
-
|
|
671
|
+
_chunkGJOGFWX3js.printJson.call(void 0, {
|
|
672
672
|
ok: false,
|
|
673
673
|
exitCode: 2,
|
|
674
674
|
code: "TOOL_LIST_CATEGORY_CONFLICT",
|
|
@@ -695,7 +695,7 @@ async function grepTools(queryInput, options = {}) {
|
|
|
695
695
|
console.error("Usage: deepline tools grep <query> [--json]");
|
|
696
696
|
return 1;
|
|
697
697
|
}
|
|
698
|
-
const client = new (0,
|
|
698
|
+
const client = new (0, _chunkK3GMDSUXjs.DeeplineClient)();
|
|
699
699
|
const requestedCategories = options.categories ? options.categories.split(",").map((item) => item.trim()).filter(Boolean) : [];
|
|
700
700
|
const mode = _nullishCoalesce(options.mode, () => ( "all"));
|
|
701
701
|
const jsonOutput = options.json === true;
|
|
@@ -719,7 +719,7 @@ async function grepTools(queryInput, options = {}) {
|
|
|
719
719
|
query,
|
|
720
720
|
mode
|
|
721
721
|
}) : null;
|
|
722
|
-
|
|
722
|
+
_chunkGJOGFWX3js.printCommandEnvelope.call(void 0,
|
|
723
723
|
{
|
|
724
724
|
tools: outputTools,
|
|
725
725
|
count: outputTools.length,
|
|
@@ -737,7 +737,7 @@ async function grepTools(queryInput, options = {}) {
|
|
|
737
737
|
} : {},
|
|
738
738
|
commandTemplates: TOOL_COMMAND_TEMPLATES
|
|
739
739
|
},
|
|
740
|
-
{ json: options.json ||
|
|
740
|
+
{ json: options.json || _chunkGJOGFWX3js.shouldEmitJson.call(void 0, ) }
|
|
741
741
|
);
|
|
742
742
|
return 0;
|
|
743
743
|
}
|
|
@@ -833,13 +833,13 @@ Output:
|
|
|
833
833
|
activity.
|
|
834
834
|
`
|
|
835
835
|
);
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
836
|
+
_chunkQU3K3IY6js.registerIntegrationBalanceCommand.call(void 0, tools, true);
|
|
837
|
+
_chunkQU3K3IY6js.registerWorkspaceConnectionListCommand.call(void 0, tools, "workspace-connections", true);
|
|
838
|
+
_chunkQU3K3IY6js.registerLegacyHubSpotMembersCommand.call(void 0, tools, true);
|
|
839
|
+
_chunkQU3K3IY6js.registerLegacyWorkspaceConnectionCommand.call(void 0, tools, true);
|
|
840
|
+
_chunkQU3K3IY6js.registerLegacyCalendarDelegationCommand.call(void 0, tools, true);
|
|
841
|
+
_chunkQU3K3IY6js.registerLegacyAvailabilityCalendarsCommand.call(void 0, tools, true);
|
|
842
|
+
_chunkQU3K3IY6js.registerIntegrationConnectCommand.call(void 0, tools, false, true);
|
|
843
843
|
tools.command("list [category]").description("Browse tool categories, or list every tool in a category.").addHelpText(
|
|
844
844
|
"after",
|
|
845
845
|
`
|
|
@@ -872,7 +872,7 @@ Examples:
|
|
|
872
872
|
json: Boolean(options.json)
|
|
873
873
|
});
|
|
874
874
|
});
|
|
875
|
-
|
|
875
|
+
_chunkE2OIYPB4js.registerDeprecatedSearchCommand.call(void 0, tools, () => ["tools", "monitors"]);
|
|
876
876
|
tools.command("grep <query>").description(
|
|
877
877
|
"Regex grep over tool ids, descriptions, categories, and input fields."
|
|
878
878
|
).addHelpText(
|
|
@@ -907,7 +907,7 @@ Examples:
|
|
|
907
907
|
});
|
|
908
908
|
const addToolMetadataCommand = (command) => {
|
|
909
909
|
let compatibilityMetadata;
|
|
910
|
-
|
|
910
|
+
_chunkMBQELFL7js.registerCompatibilityCatalog.call(void 0, command, () => ({
|
|
911
911
|
toolId: command.args[0],
|
|
912
912
|
acceptMetadata: (metadata) => {
|
|
913
913
|
compatibilityMetadata = metadata;
|
|
@@ -977,7 +977,7 @@ Examples:
|
|
|
977
977
|
process.exitCode = await narrowView();
|
|
978
978
|
return;
|
|
979
979
|
}
|
|
980
|
-
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-
|
|
980
|
+
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-GYYSLZLV.js")));
|
|
981
981
|
process.exitCode = await describeAnything(
|
|
982
982
|
toolId,
|
|
983
983
|
{
|
|
@@ -992,7 +992,7 @@ Examples:
|
|
|
992
992
|
});
|
|
993
993
|
};
|
|
994
994
|
addToolMetadataCommand(
|
|
995
|
-
|
|
995
|
+
_chunkVNOQEDVCjs.addDescribeOptions.call(void 0,
|
|
996
996
|
tools.command("describe <toolId>", { hidden: true }).alias("get"),
|
|
997
997
|
{ json: false }
|
|
998
998
|
)
|
|
@@ -1061,7 +1061,7 @@ Examples:
|
|
|
1061
1061
|
options,
|
|
1062
1062
|
void 0,
|
|
1063
1063
|
true,
|
|
1064
|
-
|
|
1064
|
+
_chunkYVKLF7RWjs.resolveCliMaintenancePolicy.call(void 0, command.optsWithGlobals())
|
|
1065
1065
|
);
|
|
1066
1066
|
}
|
|
1067
1067
|
);
|
|
@@ -1069,13 +1069,13 @@ Examples:
|
|
|
1069
1069
|
function beginDeferredToolExecuteCompatibility(toolId, cliInvocationId) {
|
|
1070
1070
|
let metadata;
|
|
1071
1071
|
const startedAt = performance.now();
|
|
1072
|
-
const baseUrl =
|
|
1073
|
-
|
|
1074
|
-
const result =
|
|
1072
|
+
const baseUrl = _chunk2HPTLBNBjs.resolveConfig.call(void 0, ).baseUrl;
|
|
1073
|
+
_chunkYVKLF7RWjs.recordCliTrace.call(void 0, { phase: "cli.tool_execute_compatibility_start" });
|
|
1074
|
+
const result = _chunkMBQELFL7js.runToolExecuteStage.call(void 0,
|
|
1075
1075
|
"SDK compatibility",
|
|
1076
|
-
() =>
|
|
1076
|
+
() => _chunkIVFFCAV2js.checkSdkCompatibility.call(void 0, baseUrl, {
|
|
1077
1077
|
command: "tools execute",
|
|
1078
|
-
skillsVersion:
|
|
1078
|
+
skillsVersion: _chunk2HPTLBNBjs.readSdkSkillsLocalVersion.call(void 0, baseUrl),
|
|
1079
1079
|
persistCache: false,
|
|
1080
1080
|
timeoutMs: TOOL_EXECUTE_PREFLIGHT_TIMEOUT_MS,
|
|
1081
1081
|
catalog: {
|
|
@@ -1089,7 +1089,7 @@ function beginDeferredToolExecuteCompatibility(toolId, cliInvocationId) {
|
|
|
1089
1089
|
})
|
|
1090
1090
|
).then(
|
|
1091
1091
|
(compatibility) => {
|
|
1092
|
-
|
|
1092
|
+
_chunkYVKLF7RWjs.recordCliTrace.call(void 0, {
|
|
1093
1093
|
phase: "cli.tool_execute_compatibility_ready",
|
|
1094
1094
|
ms: performance.now() - startedAt,
|
|
1095
1095
|
ok: compatibility.error === null,
|
|
@@ -1098,7 +1098,7 @@ function beginDeferredToolExecuteCompatibility(toolId, cliInvocationId) {
|
|
|
1098
1098
|
return compatibility;
|
|
1099
1099
|
},
|
|
1100
1100
|
(error) => {
|
|
1101
|
-
|
|
1101
|
+
_chunkYVKLF7RWjs.recordCliTrace.call(void 0, {
|
|
1102
1102
|
phase: "cli.tool_execute_compatibility_ready",
|
|
1103
1103
|
ms: performance.now() - startedAt,
|
|
1104
1104
|
ok: false
|
|
@@ -1113,7 +1113,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
|
|
|
1113
1113
|
console.error("Usage: deepline tools describe <toolId> [--json]");
|
|
1114
1114
|
return 1;
|
|
1115
1115
|
}
|
|
1116
|
-
const client = new (0,
|
|
1116
|
+
const client = new (0, _chunkK3GMDSUXjs.DeeplineClient)();
|
|
1117
1117
|
let tool;
|
|
1118
1118
|
try {
|
|
1119
1119
|
tool = await _asyncNullishCoalesce(compatibilityMetadata, async () => ( await client.getTool(toolId)));
|
|
@@ -1167,7 +1167,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
|
|
|
1167
1167
|
const lines = toolPricingOnlyLines(tool, toolId);
|
|
1168
1168
|
if (inferenceQuote)
|
|
1169
1169
|
lines.push(...inferenceQuoteSummaryLines(inferenceQuote));
|
|
1170
|
-
|
|
1170
|
+
_chunkGJOGFWX3js.printCommandEnvelope.call(void 0,
|
|
1171
1171
|
{
|
|
1172
1172
|
toolId: String(tool.toolId || toolId),
|
|
1173
1173
|
cost: _chunkECWOIXAVjs.Capability.fromCatalogEntry(tool).describe().customerCost(),
|
|
@@ -1190,7 +1190,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
|
|
|
1190
1190
|
void 0,
|
|
1191
1191
|
seedToolListScript
|
|
1192
1192
|
);
|
|
1193
|
-
|
|
1193
|
+
_chunkGJOGFWX3js.printCompactJson.call(void 0, {
|
|
1194
1194
|
toolId: contract.toolId,
|
|
1195
1195
|
...options.schemaOnly ? {
|
|
1196
1196
|
inputSchema: contract.inputSchema,
|
|
@@ -1213,7 +1213,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
|
|
|
1213
1213
|
return 0;
|
|
1214
1214
|
}
|
|
1215
1215
|
if (options.contractJson) {
|
|
1216
|
-
|
|
1216
|
+
_chunkGJOGFWX3js.printCompactJson.call(void 0, {
|
|
1217
1217
|
..._chunkECWOIXAVjs.toolContractJsonForDescribe.call(void 0,
|
|
1218
1218
|
tool,
|
|
1219
1219
|
toolId,
|
|
@@ -1227,7 +1227,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
|
|
|
1227
1227
|
}
|
|
1228
1228
|
const emitJson = options.json === true;
|
|
1229
1229
|
if (emitJson) {
|
|
1230
|
-
|
|
1230
|
+
_chunkGJOGFWX3js.printCompactJson.call(void 0, {
|
|
1231
1231
|
..._chunkECWOIXAVjs.toolMetadataJsonForDescribe.call(void 0, tool, toolId, seedToolListScript),
|
|
1232
1232
|
...modelDescription ? { modelOptions: modelDescription } : {},
|
|
1233
1233
|
...inferenceQuote ? { inferenceQuote } : {}
|
|
@@ -2090,7 +2090,7 @@ function parseExecuteOptions(toolId, options, output) {
|
|
|
2090
2090
|
outputFormat = normalizeOutputFormat(options.outputFormat);
|
|
2091
2091
|
}
|
|
2092
2092
|
if (options.idempotencyKey !== void 0) {
|
|
2093
|
-
|
|
2093
|
+
_chunkGZFZZQL4js.validateExecutionIdempotencyKey.call(void 0, options.idempotencyKey);
|
|
2094
2094
|
}
|
|
2095
2095
|
if (options.connection !== void 0 && (options.recover || options.idempotencyKey !== void 0)) {
|
|
2096
2096
|
throw new Error(
|
|
@@ -2475,7 +2475,7 @@ function writeToolReceipt(input) {
|
|
|
2475
2475
|
const data = Object.hasOwn(toolResponse, "rawV2") ? toolResponse.rawV2 : Object.hasOwn(toolResponse, "raw") ? toolResponse.raw : Object.hasOwn(envelope, "output") ? envelope.output : Object.hasOwn(envelope, "result") ? envelope.result : response;
|
|
2476
2476
|
const status = typeof envelope.status === "string" ? envelope.status : "completed";
|
|
2477
2477
|
const charged = _chunkECWOIXAVjs.recordField.call(void 0, envelope, "billing").credits_charged;
|
|
2478
|
-
|
|
2478
|
+
_chunkVNOQEDVCjs.writeExecutionOutput.call(void 0,
|
|
2479
2479
|
{
|
|
2480
2480
|
id: _nullishCoalesce(input.key, () => ( jobId)),
|
|
2481
2481
|
status,
|
|
@@ -2506,8 +2506,8 @@ async function executeToolForReceipt(input) {
|
|
|
2506
2506
|
let retryKey = null;
|
|
2507
2507
|
let received = false;
|
|
2508
2508
|
try {
|
|
2509
|
-
const cliInvocationId = _nullishCoalesce(
|
|
2510
|
-
const client = new (0,
|
|
2509
|
+
const cliInvocationId = _nullishCoalesce(_chunkMBQELFL7js.getToolExecuteInvocationId.call(void 0, ), () => ( _chunkMBQELFL7js.beginToolExecuteCommand.call(void 0, )));
|
|
2510
|
+
const client = new (0, _chunkK3GMDSUXjs.DeeplineClient)();
|
|
2511
2511
|
const metadata = assertExecutableToolMetadata(
|
|
2512
2512
|
toolId,
|
|
2513
2513
|
await _asyncNullishCoalesce(input.metadata, async () => ( await client.getTool(toolId, { cliInvocationId })))
|
|
@@ -2528,9 +2528,9 @@ async function executeToolForReceipt(input) {
|
|
|
2528
2528
|
...input.timeoutMs !== void 0 ? { timeout: input.timeoutMs } : {},
|
|
2529
2529
|
..._optionalChain([metadata, 'access', _35 => _35.executionMetadata, 'optionalAccess', _36 => _36.retrySafeTransientHttp]) === true ? { maxRetries: 2, retryApiErrors: true } : {},
|
|
2530
2530
|
...key ? { idempotencyKey: key } : {},
|
|
2531
|
-
searchRef:
|
|
2531
|
+
searchRef: _chunkE2OIYPB4js.recentSearchRef.call(void 0, toolId),
|
|
2532
2532
|
cliInvocationId,
|
|
2533
|
-
onResponseReceived:
|
|
2533
|
+
onResponseReceived: _chunkVNOQEDVCjs.recordApiResponse
|
|
2534
2534
|
}).catch((error) => {
|
|
2535
2535
|
const guidance = toolGuidanceLines(metadata.guidance);
|
|
2536
2536
|
if (guidance.length)
|
|
@@ -2553,11 +2553,11 @@ async function executeToolForReceipt(input) {
|
|
|
2553
2553
|
if (received) throw error;
|
|
2554
2554
|
const outcomeKnown = answeredWithFailure(error);
|
|
2555
2555
|
if (outcomeKnown) _optionalChain([retryKey, 'optionalAccess', _37 => _37.discard, 'call', _38 => _38()]);
|
|
2556
|
-
|
|
2556
|
+
_chunkVNOQEDVCjs.writeExecutionOutput.call(void 0,
|
|
2557
2557
|
{
|
|
2558
2558
|
id: outcomeKnown ? null : key,
|
|
2559
2559
|
status: "failed",
|
|
2560
|
-
error:
|
|
2560
|
+
error: _chunkGJOGFWX3js.errorToJsonPayload.call(void 0, error).error,
|
|
2561
2561
|
...key && !outcomeKnown ? {
|
|
2562
2562
|
next: {
|
|
2563
2563
|
retry: "Run the same command again: it picks up this call without paying twice."
|
|
@@ -2574,11 +2574,11 @@ function answeredWithFailure(error) {
|
|
|
2574
2574
|
error.statusCode !== 408 && error.code !== "EXECUTION_OUTCOME_UNKNOWN";
|
|
2575
2575
|
}
|
|
2576
2576
|
async function getToolExecutionReceipt(key, output) {
|
|
2577
|
-
const client = new (0,
|
|
2577
|
+
const client = new (0, _chunkK3GMDSUXjs.DeeplineClient)();
|
|
2578
2578
|
const execution = await client.executions.getByKey(key);
|
|
2579
2579
|
output.label = `${execution.toolId} (tool)`;
|
|
2580
2580
|
if (execution.response === void 0) {
|
|
2581
|
-
|
|
2581
|
+
_chunkVNOQEDVCjs.writeExecutionOutput.call(void 0,
|
|
2582
2582
|
{
|
|
2583
2583
|
id: key,
|
|
2584
2584
|
status: execution.executionRecovery.state,
|
|
@@ -2607,19 +2607,19 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2607
2607
|
parsed = parseExecuteOptions(toolId, options, output);
|
|
2608
2608
|
} catch (error) {
|
|
2609
2609
|
if (wantsJson) {
|
|
2610
|
-
|
|
2610
|
+
_chunkGJOGFWX3js.printJsonError.call(void 0, error);
|
|
2611
2611
|
} else {
|
|
2612
2612
|
console.error(error instanceof Error ? error.message : String(error));
|
|
2613
2613
|
}
|
|
2614
2614
|
return error instanceof _chunkBBTKAASQjs.DeeplineError && error.code === "IDEMPOTENCY_KEY_INVALID" ? 2 : 1;
|
|
2615
2615
|
}
|
|
2616
|
-
const cliInvocationId = _nullishCoalesce(
|
|
2616
|
+
const cliInvocationId = _nullishCoalesce(_chunkMBQELFL7js.getToolExecuteInvocationId.call(void 0, ), () => ( _chunkMBQELFL7js.beginToolExecuteCommand.call(void 0, )));
|
|
2617
2617
|
const deferredCompatibility = deferCompatibility ? beginDeferredToolExecuteCompatibility(toolId, cliInvocationId) : void 0;
|
|
2618
|
-
const tracing =
|
|
2618
|
+
const tracing = _chunkYVKLF7RWjs.isCliTraceEnabled.call(void 0, );
|
|
2619
2619
|
const clientStartedAt = tracing ? performance.now() : void 0;
|
|
2620
|
-
const client = new (0,
|
|
2620
|
+
const client = new (0, _chunkK3GMDSUXjs.DeeplineClient)();
|
|
2621
2621
|
if (clientStartedAt !== void 0) {
|
|
2622
|
-
|
|
2622
|
+
_chunkYVKLF7RWjs.recordCliTrace.call(void 0, {
|
|
2623
2623
|
phase: "cli.tool_execute_client_setup",
|
|
2624
2624
|
ms: performance.now() - clientStartedAt
|
|
2625
2625
|
});
|
|
@@ -2628,13 +2628,13 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2628
2628
|
const readMetadata = async () => {
|
|
2629
2629
|
if (metadata) return assertExecutableToolMetadata(parsed.toolId, metadata);
|
|
2630
2630
|
try {
|
|
2631
|
-
metadata = await
|
|
2631
|
+
metadata = await _chunkMBQELFL7js.runToolExecuteStage.call(void 0,
|
|
2632
2632
|
"tool metadata lookup",
|
|
2633
2633
|
() => client.getTool(parsed.toolId, { cliInvocationId })
|
|
2634
2634
|
);
|
|
2635
2635
|
} catch (error) {
|
|
2636
2636
|
if (isMissingToolMetadataError(error)) {
|
|
2637
|
-
const play = await
|
|
2637
|
+
const play = await _chunkMBQELFL7js.runToolExecuteStage.call(void 0,
|
|
2638
2638
|
"play alias lookup",
|
|
2639
2639
|
() => findPlayForToolId(client, parsed.toolId, cliInvocationId)
|
|
2640
2640
|
);
|
|
@@ -2663,7 +2663,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2663
2663
|
assertExecutableToolMetadata(parsed.toolId, metadata);
|
|
2664
2664
|
} catch (error) {
|
|
2665
2665
|
if (error instanceof _chunkBBTKAASQjs.DeeplineError && error.code === "PLAY_ALIAS_USED_AS_TOOL") {
|
|
2666
|
-
if (wantsJson)
|
|
2666
|
+
if (wantsJson) _chunkGJOGFWX3js.printJsonError.call(void 0, error);
|
|
2667
2667
|
else console.error(error.message);
|
|
2668
2668
|
return 2;
|
|
2669
2669
|
}
|
|
@@ -2675,7 +2675,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2675
2675
|
metadata = await readMetadata();
|
|
2676
2676
|
} catch (error) {
|
|
2677
2677
|
if (error instanceof _chunkBBTKAASQjs.DeeplineError && error.code === "PLAY_ALIAS_USED_AS_TOOL") {
|
|
2678
|
-
if (wantsJson)
|
|
2678
|
+
if (wantsJson) _chunkGJOGFWX3js.printJsonError.call(void 0, error);
|
|
2679
2679
|
else console.error(error.message);
|
|
2680
2680
|
return 2;
|
|
2681
2681
|
}
|
|
@@ -2691,7 +2691,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2691
2691
|
metadata = await readMetadata();
|
|
2692
2692
|
} catch (error) {
|
|
2693
2693
|
if (error instanceof _chunkBBTKAASQjs.DeeplineError && error.code === "PLAY_ALIAS_USED_AS_TOOL") {
|
|
2694
|
-
if (wantsJson)
|
|
2694
|
+
if (wantsJson) _chunkGJOGFWX3js.printJsonError.call(void 0, error);
|
|
2695
2695
|
else console.error(error.message);
|
|
2696
2696
|
return 2;
|
|
2697
2697
|
}
|
|
@@ -2718,11 +2718,11 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2718
2718
|
...parsed.connection !== void 0 ? { connection: parsed.connection } : {},
|
|
2719
2719
|
...idempotencyKey ? { idempotencyKey } : {},
|
|
2720
2720
|
...parsed.recoveryTimeoutMs !== void 0 ? { recoveryTimeoutMs: parsed.recoveryTimeoutMs } : {},
|
|
2721
|
-
searchRef:
|
|
2721
|
+
searchRef: _chunkE2OIYPB4js.recentSearchRef.call(void 0, parsed.toolId),
|
|
2722
2722
|
cliInvocationId,
|
|
2723
|
-
onResponseReceived:
|
|
2723
|
+
onResponseReceived: _chunkVNOQEDVCjs.recordApiResponse,
|
|
2724
2724
|
...tracing ? {
|
|
2725
|
-
onServerTiming: (serverTiming) =>
|
|
2725
|
+
onServerTiming: (serverTiming) => _chunkYVKLF7RWjs.recordCliTrace.call(void 0, {
|
|
2726
2726
|
phase: "tool_execute_server_timing",
|
|
2727
2727
|
cliInvocationId,
|
|
2728
2728
|
serverTiming,
|
|
@@ -2733,13 +2733,13 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2733
2733
|
let rawResponse;
|
|
2734
2734
|
let successfulCompatibilityResponse;
|
|
2735
2735
|
try {
|
|
2736
|
-
const executeResult = await
|
|
2736
|
+
const executeResult = await _chunkMBQELFL7js.runToolExecuteStage.call(void 0,
|
|
2737
2737
|
"execute request",
|
|
2738
2738
|
async () => {
|
|
2739
2739
|
try {
|
|
2740
2740
|
if (tracing) {
|
|
2741
2741
|
submissionStartedAt = performance.now();
|
|
2742
|
-
|
|
2742
|
+
_chunkYVKLF7RWjs.recordCliTrace.call(void 0, { phase: "cli.tool_execute_request_start" });
|
|
2743
2743
|
}
|
|
2744
2744
|
return await client.executeTool(parsed.toolId, parsed.params, {
|
|
2745
2745
|
...executeOptions,
|
|
@@ -2749,34 +2749,34 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2749
2749
|
} catch (error) {
|
|
2750
2750
|
if (parsed.connection !== void 0 || !(error instanceof _chunkBBTKAASQjs.DeeplineError) || error.code !== "ATOMIC_TOOL_EXECUTE_UNSUPPORTED")
|
|
2751
2751
|
throw error;
|
|
2752
|
-
const baseUrl =
|
|
2752
|
+
const baseUrl = _chunk2HPTLBNBjs.resolveConfig.call(void 0, ).baseUrl;
|
|
2753
2753
|
if (maintenancePolicy !== "off") {
|
|
2754
|
-
|
|
2754
|
+
_chunkIVFFCAV2js.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
|
|
2755
2755
|
}
|
|
2756
|
-
const compatibility = deferredCompatibility ? await deferredCompatibility.result : await
|
|
2756
|
+
const compatibility = deferredCompatibility ? await deferredCompatibility.result : await _chunkMBQELFL7js.runToolExecuteStage.call(void 0,
|
|
2757
2757
|
"SDK compatibility",
|
|
2758
|
-
() =>
|
|
2758
|
+
() => _chunkIVFFCAV2js.checkSdkCompatibility.call(void 0, baseUrl, {
|
|
2759
2759
|
command: "tools execute",
|
|
2760
|
-
skillsVersion:
|
|
2760
|
+
skillsVersion: _chunk2HPTLBNBjs.readSdkSkillsLocalVersion.call(void 0, baseUrl),
|
|
2761
2761
|
persistCache: maintenancePolicy !== "off"
|
|
2762
2762
|
})
|
|
2763
2763
|
);
|
|
2764
2764
|
if (compatibility.error) throw compatibility.error;
|
|
2765
2765
|
metadata = _nullishCoalesce(_optionalChain([deferredCompatibility, 'optionalAccess', _44 => _44.readMetadata, 'call', _45 => _45()]), () => ( metadata));
|
|
2766
|
-
if (maintenancePolicy !== "off" && await
|
|
2766
|
+
if (maintenancePolicy !== "off" && await _chunkMBQELFL7js.maybeAutoUpdateAndRelaunch.call(void 0,
|
|
2767
2767
|
compatibility.response,
|
|
2768
2768
|
baseUrl,
|
|
2769
2769
|
maintenancePolicy
|
|
2770
2770
|
)) {
|
|
2771
2771
|
return void 0;
|
|
2772
2772
|
}
|
|
2773
|
-
|
|
2773
|
+
_chunkIVFFCAV2js.enforceSdkCompatibilityResponse.call(void 0, compatibility.response, {
|
|
2774
2774
|
quietAdvisory: wantsJson
|
|
2775
2775
|
});
|
|
2776
2776
|
if (maintenancePolicy !== "off") {
|
|
2777
|
-
await
|
|
2777
|
+
await _chunkMBQELFL7js.runToolExecuteStage.call(void 0,
|
|
2778
2778
|
"agent skills sync",
|
|
2779
|
-
() =>
|
|
2779
|
+
() => _chunkIVFFCAV2js.syncSdkSkillsIfNeeded.call(void 0, baseUrl, {
|
|
2780
2780
|
update: _optionalChain([compatibility, 'access', _46 => _46.response, 'optionalAccess', _47 => _47.skills]),
|
|
2781
2781
|
mode: "detached"
|
|
2782
2782
|
})
|
|
@@ -2785,7 +2785,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2785
2785
|
const legacyMetadata = await readMetadata();
|
|
2786
2786
|
if (tracing) {
|
|
2787
2787
|
submissionStartedAt = performance.now();
|
|
2788
|
-
|
|
2788
|
+
_chunkYVKLF7RWjs.recordCliTrace.call(void 0, { phase: "cli.tool_execute_request_start" });
|
|
2789
2789
|
}
|
|
2790
2790
|
return client.executeTool(parsed.toolId, parsed.params, {
|
|
2791
2791
|
...executeOptions,
|
|
@@ -2808,8 +2808,8 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2808
2808
|
metadata = _nullishCoalesce(deferredCompatibility.readMetadata(), () => ( metadata));
|
|
2809
2809
|
const updateRequiredBeforeExecution = error instanceof _chunkBBTKAASQjs.DeeplineError && error.code === "SDK_UPDATE_REQUIRED";
|
|
2810
2810
|
if (updateRequiredBeforeExecution && maintenancePolicy !== "off" && compatibility && !compatibility.error) {
|
|
2811
|
-
const baseUrl =
|
|
2812
|
-
if (await
|
|
2811
|
+
const baseUrl = _chunk2HPTLBNBjs.resolveConfig.call(void 0, ).baseUrl;
|
|
2812
|
+
if (await _chunkMBQELFL7js.maybeAutoUpdateAndRelaunch.call(void 0,
|
|
2813
2813
|
compatibility.response,
|
|
2814
2814
|
baseUrl,
|
|
2815
2815
|
maintenancePolicy
|
|
@@ -2833,7 +2833,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2833
2833
|
}
|
|
2834
2834
|
}
|
|
2835
2835
|
if (failure instanceof _chunkBBTKAASQjs.DeeplineError && failure.code === "PLAY_ALIAS_USED_AS_TOOL") {
|
|
2836
|
-
if (wantsJson)
|
|
2836
|
+
if (wantsJson) _chunkGJOGFWX3js.printJsonError.call(void 0, failure);
|
|
2837
2837
|
else console.error(failure.message);
|
|
2838
2838
|
return 2;
|
|
2839
2839
|
}
|
|
@@ -2860,9 +2860,9 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2860
2860
|
successfulCompatibilityResponse = _nullishCoalesce(compatibilityResponse, () => ( void 0));
|
|
2861
2861
|
const autoUpdate = _optionalChain([compatibilityResponse, 'optionalAccess', _54 => _54.auto_update]);
|
|
2862
2862
|
if (maintenancePolicy !== "off" && compatibilityResponse && _optionalChain([autoUpdate, 'optionalAccess', _55 => _55.should_auto_update]) && !autoUpdate.required && autoUpdate.reason !== "rollback_forced") {
|
|
2863
|
-
await
|
|
2863
|
+
await _chunkMBQELFL7js.maybeAutoUpdateAndRelaunch.call(void 0,
|
|
2864
2864
|
compatibilityResponse,
|
|
2865
|
-
|
|
2865
|
+
_chunk2HPTLBNBjs.resolveConfig.call(void 0, ).baseUrl,
|
|
2866
2866
|
maintenancePolicy
|
|
2867
2867
|
);
|
|
2868
2868
|
}
|
|
@@ -2897,7 +2897,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2897
2897
|
const { _metadata, ...execution } = rawResponse;
|
|
2898
2898
|
rawResponse = execution;
|
|
2899
2899
|
}
|
|
2900
|
-
const { listConversion, summary, baseEnvelope } = await
|
|
2900
|
+
const { listConversion, summary, baseEnvelope } = await _chunkMBQELFL7js.runToolExecuteStage.call(void 0,
|
|
2901
2901
|
"result formatting",
|
|
2902
2902
|
async () => {
|
|
2903
2903
|
const listConversion2 = _chunkHGFFYVXNjs.tryConvertToList.call(void 0, rawResponse, {
|
|
@@ -2932,9 +2932,9 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2932
2932
|
}
|
|
2933
2933
|
skillsSyncAttempted = true;
|
|
2934
2934
|
try {
|
|
2935
|
-
await
|
|
2935
|
+
await _chunkMBQELFL7js.runToolExecuteStage.call(void 0,
|
|
2936
2936
|
"agent skills sync",
|
|
2937
|
-
() =>
|
|
2937
|
+
() => _chunkIVFFCAV2js.syncSdkSkillsIfNeeded.call(void 0, _chunk2HPTLBNBjs.resolveConfig.call(void 0, ).baseUrl, {
|
|
2938
2938
|
update: deliveredCompatibilityResponse.skills,
|
|
2939
2939
|
mode: "detached"
|
|
2940
2940
|
})
|
|
@@ -2945,15 +2945,15 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2945
2945
|
);
|
|
2946
2946
|
}
|
|
2947
2947
|
};
|
|
2948
|
-
const printDeliveredEnvelope = (envelope, options2 = {}) =>
|
|
2948
|
+
const printDeliveredEnvelope = (envelope, options2 = {}) => _chunkGJOGFWX3js.printCommandEnvelope.call(void 0, envelope, {
|
|
2949
2949
|
...options2,
|
|
2950
2950
|
json: _nullishCoalesce(options2.json, () => ( wantsJson))
|
|
2951
2951
|
});
|
|
2952
2952
|
const printDeliveredJsonEnvelope = async (envelope, options2 = {}) => {
|
|
2953
2953
|
await syncSkillsForDeliveredOutput();
|
|
2954
|
-
|
|
2954
|
+
_chunkGJOGFWX3js.printCommandEnvelope.call(void 0, envelope, { ...options2, json: true });
|
|
2955
2955
|
};
|
|
2956
|
-
const delivered = await
|
|
2956
|
+
const delivered = await _chunkMBQELFL7js.runToolExecuteStage.call(void 0, "output delivery", async () => {
|
|
2957
2957
|
if (!parsed.outPath && (parsed.outputFormat === "json" || parsed.outputFormat === "auto" && wantsJson)) {
|
|
2958
2958
|
await printDeliveredJsonEnvelope(baseEnvelope);
|
|
2959
2959
|
return true;
|
|
@@ -2982,7 +2982,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2982
2982
|
`${parsed.toolId} did not expose row-shaped output to write as CSV. ${inspection.inspectDescription} Run: ${inspection.inspect}`
|
|
2983
2983
|
);
|
|
2984
2984
|
if (wantsJson) {
|
|
2985
|
-
|
|
2985
|
+
_chunkGJOGFWX3js.printJsonError.call(void 0, error);
|
|
2986
2986
|
} else {
|
|
2987
2987
|
console.error(error.message);
|
|
2988
2988
|
}
|
|
@@ -3077,13 +3077,13 @@ inspect: ${inspection.inspect}
|
|
|
3077
3077
|
return true;
|
|
3078
3078
|
});
|
|
3079
3079
|
if (delivered) {
|
|
3080
|
-
await
|
|
3080
|
+
await _chunkMBQELFL7js.runToolExecuteStage.call(void 0,
|
|
3081
3081
|
"acknowledge delivery",
|
|
3082
3082
|
() => recovery.acknowledgeDelivery()
|
|
3083
3083
|
);
|
|
3084
3084
|
}
|
|
3085
3085
|
if (delivered && deliveredCompatibilityResponse && deliveredCompatibilityResponse.update_required !== true) {
|
|
3086
|
-
|
|
3086
|
+
_chunkIVFFCAV2js.enforceSdkCompatibilityResponse.call(void 0, deliveredCompatibilityResponse, {
|
|
3087
3087
|
quietAdvisory: wantsJson || maintenancePolicy === "off" || _optionalChain([deliveredCompatibilityResponse, 'access', _58 => _58.auto_update, 'optionalAccess', _59 => _59.should_auto_update]) === true
|
|
3088
3088
|
});
|
|
3089
3089
|
}
|