deepline 0.3.558 → 0.3.560
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 +14 -0
- package/dist/bundling-sources/sdk/src/index.ts +2 -0
- package/dist/bundling-sources/sdk/src/integrations.ts +62 -0
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/observability/redaction.ts +23 -1
- package/dist/bundling-sources/shared_libs/observability/telemetry.ts +4 -1
- package/dist/cli/{auth-JJXTMFWH.mjs → auth-5DIOQ3MO.mjs} +5 -5
- package/dist/cli/auth-R2S7KYAA.js +44 -0
- package/dist/cli/{billing-RBFJMAI5.mjs → billing-K7EJAM55.mjs} +9 -9
- package/dist/cli/{billing-V3TJKUHY.js → billing-N5NS5CU6.js} +102 -102
- package/dist/cli/{chunk-FH55SB63.js → chunk-24GZT76F.js} +7 -7
- package/dist/cli/{chunk-NAJAAIEE.js → chunk-4CQ7LVRT.js} +48 -48
- package/dist/cli/{chunk-DDI4LNVC.js → chunk-4GRIMNDO.js} +41 -41
- package/dist/cli/{chunk-P3SLGOGA.mjs → chunk-4MAY2TA3.mjs} +2 -2
- package/dist/cli/{chunk-P2MVPTFJ.mjs → chunk-4PBYS3PS.mjs} +1 -1
- package/dist/cli/{chunk-YI4ADWTN.js → chunk-5CNHEUGJ.js} +12 -2
- package/dist/cli/{chunk-QGDU23YW.js → chunk-5QMEJPN5.js} +206 -180
- package/dist/cli/{chunk-6BDLYZYL.js → chunk-5VC6K4NJ.js} +26 -26
- package/dist/cli/{chunk-AL4QQKUK.mjs → chunk-5XMABMQU.mjs} +2 -2
- package/dist/cli/{chunk-4CTBC6Q7.js → chunk-7ZE6DF6B.js} +3 -3
- package/dist/cli/{chunk-XPSSXKBT.mjs → chunk-A4X2O75M.mjs} +2 -2
- package/dist/cli/{chunk-6PIQC2XE.mjs → chunk-A62A73U6.mjs} +3 -3
- package/dist/cli/{chunk-GAQ6VSRS.mjs → chunk-AMUMEL4C.mjs} +1 -1
- package/dist/cli/{chunk-I57JNBKA.mjs → chunk-BQ2Z6PSE.mjs} +5 -5
- package/dist/cli/{chunk-6LFPPAMD.js → chunk-BW4NVW5T.js} +3 -3
- package/dist/cli/{chunk-CEEUL7ER.mjs → chunk-CQJMFUMK.mjs} +1 -1
- package/dist/cli/{chunk-PAJLUB37.js → chunk-CQS5E6D2.js} +100 -100
- package/dist/cli/{chunk-DJAP2M5M.mjs → chunk-DOAD7ZCA.mjs} +1 -1
- package/dist/cli/{chunk-YVWINBZL.js → chunk-E76MM3SC.js} +20 -20
- package/dist/cli/{chunk-FF3BWNLL.mjs → chunk-F5CZ3Q2I.mjs} +150 -124
- package/dist/cli/{chunk-5V45LY6Y.js → chunk-FW2WRBZO.js} +9 -9
- package/dist/cli/{chunk-CB5DIX5K.mjs → chunk-G33LSF4T.mjs} +2 -2
- package/dist/cli/{chunk-BWWLLK56.mjs → chunk-GKONGPVW.mjs} +5 -5
- package/dist/cli/{chunk-2FFZ5SEU.mjs → chunk-GR5WG72L.mjs} +2 -2
- package/dist/cli/{chunk-KMNLER7F.mjs → chunk-GTRGJITW.mjs} +11 -11
- package/dist/cli/{chunk-BFM2RCC3.js → chunk-I7CQJ7JP.js} +2 -2
- package/dist/cli/{chunk-WJ7RY3PJ.mjs → chunk-JHS7WKRS.mjs} +3 -3
- package/dist/cli/{chunk-7Q5I4KEG.mjs → chunk-JQDVX3D4.mjs} +4 -4
- package/dist/cli/{chunk-RIQYBKHK.js → chunk-JYT6P2M2.js} +2 -2
- package/dist/cli/{chunk-XV4DHKZ2.js → chunk-KP4B3JOT.js} +13 -13
- package/dist/cli/{chunk-M4CJGF53.js → chunk-LMY7CGI7.js} +5 -5
- package/dist/cli/{chunk-I3PX6NGG.js → chunk-MBLPUJ5I.js} +5 -5
- package/dist/cli/{chunk-YJ46MJMT.js → chunk-MCGR7NG3.js} +6 -6
- package/dist/cli/{chunk-YBJSDL34.mjs → chunk-NNKZ4JYP.mjs} +5 -5
- package/dist/cli/{chunk-NADXF2C5.js → chunk-OPT36HX4.js} +53 -53
- package/dist/cli/{chunk-MAN4IEO4.mjs → chunk-OS3FDGKX.mjs} +4 -4
- package/dist/cli/{chunk-FCG42RQZ.js → chunk-Q77PM7U2.js} +20 -20
- package/dist/cli/{chunk-T6W7SKE7.mjs → chunk-RQKCNQ5Q.mjs} +2 -2
- package/dist/cli/{chunk-CG3R4ZFS.mjs → chunk-SCM6BR4Q.mjs} +1 -1
- package/dist/cli/{chunk-A5MRMCMW.js → chunk-TE2NSUT5.js} +5 -5
- package/dist/cli/{chunk-BHHCQGUY.mjs → chunk-UI7BBF2O.mjs} +5 -5
- package/dist/cli/{chunk-7Q3EXOLC.js → chunk-UTPANENL.js} +12 -12
- package/dist/cli/{chunk-4SVFZCCI.mjs → chunk-V7OFUYMO.mjs} +2 -2
- package/dist/cli/{chunk-OWOUDGHO.js → chunk-V7ZOAXZ4.js} +23 -23
- package/dist/cli/{chunk-BTKVXI3G.mjs → chunk-VACBPVIR.mjs} +12 -2
- package/dist/cli/{chunk-LIS6UJSC.mjs → chunk-WOZKGI6H.mjs} +1 -1
- package/dist/cli/{chunk-D4GCU735.mjs → chunk-XLM7L4UY.mjs} +1 -1
- package/dist/cli/{chunk-QGJ4DYGE.js → chunk-Y5CZWGO4.js} +1 -1
- package/dist/cli/{chunk-IS67LBNV.js → chunk-YDWFE7MX.js} +2 -2
- package/dist/cli/{chunk-67J4K4G2.js → chunk-Z4FWF237.js} +15 -15
- package/dist/cli/{chunk-ARGJDP77.mjs → chunk-ZJJUVUP6.mjs} +2 -2
- package/dist/cli/{chunk-6GBQNS6L.mjs → chunk-ZSDZ3Q5P.mjs} +1 -1
- package/dist/cli/{chunk-C7BQBKRZ.js → chunk-ZXB2Y3SG.js} +4 -4
- package/dist/cli/{chunk-VPJ663PV.js → chunk-ZY64JRBV.js} +10 -10
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{concurrent-runs-help-ZWWMHCK4.mjs → concurrent-runs-help-TCB2EKTR.mjs} +6 -6
- package/dist/cli/concurrent-runs-help-TKAZVMA4.js +22 -0
- package/dist/cli/{csv-V2FR4SO2.js → csv-DWC44DLD.js} +13 -13
- package/dist/cli/{csv-D76CXYOL.mjs → csv-R45YJYUO.mjs} +4 -4
- package/dist/cli/{db-B23O6Q4O.js → db-XIN3KF47.js} +27 -27
- package/dist/cli/{db-2D7PD7A3.mjs → db-XZXNKW7B.mjs} +6 -6
- package/dist/cli/{describe-3LG6VO3D.mjs → describe-6KSAHJBD.mjs} +18 -18
- package/dist/cli/describe-WLRAQDYC.js +50 -0
- package/dist/cli/describe-core.d.mts +2 -2
- package/dist/cli/describe-core.d.ts +2 -2
- package/dist/cli/{executions-4P4UBPMX.js → executions-C3UZLR7Y.js} +8 -8
- package/dist/cli/{executions-ORWO4SR4.mjs → executions-RSPQRWYL.mjs} +6 -6
- package/dist/cli/{feedback-AY47IRDD.mjs → feedback-7RCSKLW4.mjs} +6 -6
- package/dist/cli/{feedback-LPHCSOJT.js → feedback-A7WP67XL.js} +14 -14
- package/dist/cli/git-E6XV5MEY.js +26 -0
- package/dist/cli/{git-LQGZNBZM.mjs → git-JE6TFEK4.mjs} +5 -5
- package/dist/cli/index.js +147 -147
- package/dist/cli/index.mjs +46 -46
- package/dist/cli/{integrations-NEUZIBQT.mjs → integrations-DEU3ZW5P.mjs} +40 -7
- package/dist/cli/{integrations-QEOUALDR.js → integrations-L2D3EY3H.js} +48 -15
- package/dist/cli/{legacy-noops-PUO5VKHN.js → legacy-noops-AHTEO6EF.js} +9 -9
- package/dist/cli/{legacy-noops-4G3DXN57.mjs → legacy-noops-TL5PBCVQ.mjs} +6 -6
- package/dist/cli/{mcp-EWAZKABW.js → mcp-KXR7YJEG.js} +24 -24
- package/dist/cli/{mcp-USM2QUKK.mjs → mcp-PVRF5CGK.mjs} +4 -4
- package/dist/cli/{monitors-T6FJSZCP.mjs → monitors-BMGSROH3.mjs} +7 -7
- package/dist/cli/{monitors-2BI5J46A.js → monitors-YHF6RQGU.js} +100 -100
- package/dist/cli/{org-V6V3E7F7.js → org-IQJO6DJ7.js} +121 -121
- package/dist/cli/{org-BT45O64S.mjs → org-OO6LQPS6.mjs} +6 -6
- package/dist/cli/{outcomes-2T6W554M.mjs → outcomes-6QO6NEKO.mjs} +6 -6
- package/dist/cli/{outcomes-B6RPHM6M.js → outcomes-NAEAOCNT.js} +14 -14
- package/dist/cli/{play-CBBGJPRI.mjs → play-MZQSOYVV.mjs} +19 -19
- package/dist/cli/{play-YCFVGEWK.js → play-TYIBTW4E.js} +324 -324
- package/dist/cli/{providers-AGRUGBIY.js → providers-JDSSPMWH.js} +9 -9
- package/dist/cli/{providers-RHBUQFFO.mjs → providers-JR4OWXRX.mjs} +6 -6
- package/dist/cli/{quickstart-OPR5NLIQ.mjs → quickstart-JBX6BKGZ.mjs} +4 -4
- package/dist/cli/{quickstart-6N2KPWII.js → quickstart-T363ASLH.js} +6 -6
- package/dist/cli/{run-HAU2STMQ.mjs → run-6PWTGRJI.mjs} +23 -23
- package/dist/cli/{run-MMANMS4E.js → run-J3KWBIXA.js} +44 -44
- package/dist/cli/search-DPVHT5MJ.js +32 -0
- package/dist/cli/{search-TGWQMQ2C.mjs → search-XQG7UXAE.mjs} +7 -7
- package/dist/cli/{search-output-DZBYNJEO.mjs → search-output-DNONJFPF.mjs} +4 -4
- package/dist/cli/{search-output-VVM3DO2H.js → search-output-YZYLNDU6.js} +6 -6
- package/dist/cli/{secrets-Z6NEKNWM.mjs → secrets-MR7VXG74.mjs} +6 -6
- package/dist/cli/{secrets-V5WD552F.js → secrets-SCKPXIT7.js} +15 -15
- package/dist/cli/{sessions-C5GNXSPB.mjs → sessions-MPIJTGWQ.mjs} +6 -6
- package/dist/cli/sessions-VNWLXJR2.js +23 -0
- package/dist/cli/{settings-QUDVUIOJ.mjs → settings-Y5NW74ER.mjs} +12 -12
- package/dist/cli/{settings-EZPZXJDG.js → settings-YPKR5JFF.js} +85 -85
- package/dist/cli/{setup-BCJBVQTI.mjs → setup-5RJCLRZI.mjs} +9 -9
- package/dist/cli/{setup-QY5VVGWQ.js → setup-673Q3LGR.js} +49 -49
- package/dist/cli/{skills-LY2WZ22U.mjs → skills-2QVBD4LD.mjs} +7 -7
- package/dist/cli/skills-YGFFPGCR.js +37 -0
- package/dist/cli/tools-2BC7K3ZU.js +57 -0
- package/dist/cli/{tools-FNCTTFWA.mjs → tools-627KG34F.mjs} +17 -17
- package/dist/cli/{update-YKQAC4AQ.mjs → update-535TTARD.mjs} +9 -9
- package/dist/cli/update-HWEOSPDS.js +37 -0
- package/dist/cli/{views-5R5NVYHL.mjs → views-3M24ZTXA.mjs} +6 -6
- package/dist/cli/{views-NBTOBB67.js → views-FQNWZUWB.js} +21 -21
- package/dist/cli/{workflow-HBDW43GT.mjs → workflow-CN46XZPG.mjs} +7 -7
- package/dist/cli/{workflow-VNPT5VQS.js → workflow-H6F7WAOE.js} +17 -17
- package/dist/{client-BoayTB7p.d.ts → client-BSxuaObS.d.ts} +1 -1
- package/dist/{client-1ogYQqUw.d.mts → client-CnphYDTe.d.mts} +1 -1
- package/dist/{client-core-Ch8CXaX4.d.mts → client-core-DQOTt3yV.d.mts} +37 -2
- package/dist/{client-core-DySw9x_E.d.ts → client-core-Yad6-K7-.d.ts} +37 -2
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +118 -118
- package/dist/plays/play-description.d.mts +1 -1
- package/dist/plays/play-description.d.ts +1 -1
- package/dist/plays/run-request.d.mts +1 -1
- package/dist/plays/run-request.d.ts +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 +2 -2
- package/dist/server.d.ts +2 -2
- package/dist/server.js +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-TWSGYOWI.js +0 -44
- package/dist/cli/concurrent-runs-help-4VRUNL3T.js +0 -22
- package/dist/cli/describe-QE4ITFPG.js +0 -50
- package/dist/cli/git-XXVGEPEM.js +0 -26
- package/dist/cli/search-7LMUBMDC.js +0 -32
- package/dist/cli/sessions-VYIPZBSR.js +0 -23
- package/dist/cli/skills-PKNTNDYL.js +0 -37
- package/dist/cli/tools-D6CKFZL3.js +0 -57
- package/dist/cli/update-E2H2DWH4.js +0 -37
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk7ZE6DF6Bjs = require('./chunk-7ZE6DF6B.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkZXB2Y3SGjs = require('./chunk-ZXB2Y3SG.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
@@ -331,7 +331,7 @@ function buildEnvironmentContext() {
|
|
|
331
331
|
node_version: process.version,
|
|
332
332
|
runtime: "Node.js",
|
|
333
333
|
hostname: _os.hostname.call(void 0, ),
|
|
334
|
-
agent_runtime:
|
|
334
|
+
agent_runtime: _chunkZXB2Y3SGjs.detectAgentRuntime.call(void 0, )
|
|
335
335
|
};
|
|
336
336
|
for (const key of ["CLAUDE_CODE_REMOTE", "DEEPLINE_PLUGIN_MODE"]) {
|
|
337
337
|
const normalized = _optionalChain([process, 'access', _6 => _6.env, 'access', _7 => _7[key], 'optionalAccess', _8 => _8.trim, 'call', _9 => _9()]);
|
|
@@ -352,18 +352,18 @@ function buildEnvironmentContext() {
|
|
|
352
352
|
return context;
|
|
353
353
|
}
|
|
354
354
|
function failureReportHeaders(apiKey) {
|
|
355
|
-
const agentSessionId =
|
|
355
|
+
const agentSessionId = _chunkZXB2Y3SGjs.agentSessionIdFromEnvironment.call(void 0, );
|
|
356
356
|
return {
|
|
357
|
-
...
|
|
357
|
+
..._chunkZXB2Y3SGjs.deploymentProtectionHeaders.call(void 0, ),
|
|
358
358
|
...agentSessionId ? { "X-Deepline-Agent-Session-Id": agentSessionId } : {},
|
|
359
359
|
Authorization: `Bearer ${apiKey}`,
|
|
360
360
|
"Content-Type": "application/json",
|
|
361
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
361
|
+
"User-Agent": `deepline-ts-sdk/${_chunkZXB2Y3SGjs.SDK_VERSION}`,
|
|
362
362
|
"X-Deepline-Client-Family": "sdk",
|
|
363
363
|
"X-Deepline-CLI-Family": "sdk",
|
|
364
|
-
"X-Deepline-Agent-Runtime":
|
|
365
|
-
"X-Deepline-CLI-Version":
|
|
366
|
-
"X-Deepline-SDK-Version":
|
|
364
|
+
"X-Deepline-Agent-Runtime": _chunkZXB2Y3SGjs.detectAgentRuntime.call(void 0, ),
|
|
365
|
+
"X-Deepline-CLI-Version": _chunkZXB2Y3SGjs.SDK_VERSION,
|
|
366
|
+
"X-Deepline-SDK-Version": _chunkZXB2Y3SGjs.SDK_VERSION
|
|
367
367
|
};
|
|
368
368
|
}
|
|
369
369
|
async function postFailureReport(input) {
|
|
@@ -391,7 +391,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
|
|
|
391
391
|
if (isFailureReportingDisabled()) return false;
|
|
392
392
|
let apiKey = "";
|
|
393
393
|
try {
|
|
394
|
-
apiKey =
|
|
394
|
+
apiKey = _chunk7ZE6DF6Bjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
|
|
395
395
|
} catch (e2) {
|
|
396
396
|
return false;
|
|
397
397
|
}
|
|
@@ -418,7 +418,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
|
|
|
418
418
|
failure_code: failureCode2,
|
|
419
419
|
failure_stage: failureStage,
|
|
420
420
|
error_body: "Automatic Deepline skills installation failed.",
|
|
421
|
-
cli_version:
|
|
421
|
+
cli_version: _chunkZXB2Y3SGjs.SDK_VERSION,
|
|
422
422
|
context: {
|
|
423
423
|
environment: buildEnvironmentContext(),
|
|
424
424
|
skills_sync: {
|
|
@@ -538,7 +538,7 @@ function buildFailureReport(input) {
|
|
|
538
538
|
failure_kind: failureKind,
|
|
539
539
|
failure_code: code,
|
|
540
540
|
failure_stage: input.error === void 0 ? "command_exit" : "cli_main",
|
|
541
|
-
cli_version:
|
|
541
|
+
cli_version: _chunkZXB2Y3SGjs.SDK_VERSION,
|
|
542
542
|
context: {
|
|
543
543
|
base_url: redactFailureText(input.baseUrl, 400),
|
|
544
544
|
command_summary: sanitizeCommand(input.argv),
|
|
@@ -558,8 +558,8 @@ async function maybeReportSdkCliFailure(input) {
|
|
|
558
558
|
if (isServerLoggedPlayRunStartFailure(input)) return false;
|
|
559
559
|
const exitCode = resolvedExitCode(input);
|
|
560
560
|
if (!shouldReport({ exitCode, error: input.error })) return false;
|
|
561
|
-
const baseUrl =
|
|
562
|
-
const apiKey =
|
|
561
|
+
const baseUrl = _chunk7ZE6DF6Bjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
562
|
+
const apiKey = _chunk7ZE6DF6Bjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
563
563
|
if (!apiKey) return false;
|
|
564
564
|
return postFailureReport({
|
|
565
565
|
baseUrl,
|
|
@@ -914,8 +914,8 @@ var BROWSER_OPEN_COOLDOWN_MS = 3e4;
|
|
|
914
914
|
var SAME_URL_BROWSER_OPEN_COOLDOWN_MS = 5 * 6e4;
|
|
915
915
|
var defaultBrowserCommandRunner = childProcess;
|
|
916
916
|
function getAuthedHttpClient() {
|
|
917
|
-
const config =
|
|
918
|
-
return { config, http: new (0,
|
|
917
|
+
const config = _chunk7ZE6DF6Bjs.resolveConfig.call(void 0, );
|
|
918
|
+
return { config, http: new (0, _chunk7ZE6DF6Bjs.HttpClient)(config) };
|
|
919
919
|
}
|
|
920
920
|
function stableOsUserId() {
|
|
921
921
|
try {
|
|
@@ -1256,7 +1256,7 @@ function collectLocalEnvInfo() {
|
|
|
1256
1256
|
os: `${process.platform} ${process.arch}`,
|
|
1257
1257
|
node_version: process.version,
|
|
1258
1258
|
home_dir: homeDir,
|
|
1259
|
-
agent_runtime:
|
|
1259
|
+
agent_runtime: _chunkZXB2Y3SGjs.detectAgentRuntime.call(void 0, )
|
|
1260
1260
|
};
|
|
1261
1261
|
const env = process.env;
|
|
1262
1262
|
const optional = {
|
|
@@ -1503,9 +1503,9 @@ function markdownTableFromRows(rows, preferredColumns = []) {
|
|
|
1503
1503
|
}
|
|
1504
1504
|
function withAgentCommandContext(value) {
|
|
1505
1505
|
const valueRecord = value !== null && typeof value === "object" && !Array.isArray(value) ? value : null;
|
|
1506
|
-
return
|
|
1506
|
+
return _chunkZXB2Y3SGjs.detectAgentRuntime.call(void 0, ) !== "unknown" && valueRecord && !Object.prototype.hasOwnProperty.call(valueRecord, "command_context") ? {
|
|
1507
1507
|
...valueRecord,
|
|
1508
|
-
command_context:
|
|
1508
|
+
command_context: _chunk7ZE6DF6Bjs.resolveCliCommandContext.call(void 0, )
|
|
1509
1509
|
} : value;
|
|
1510
1510
|
}
|
|
1511
1511
|
function printJson(value, fields, options = {}) {
|
|
@@ -1677,7 +1677,7 @@ function errorToJsonPayload(error) {
|
|
|
1677
1677
|
...upstreamResponse ? { upstreamResponse } : {},
|
|
1678
1678
|
...Object.keys(details).length > 0 ? { details } : {}
|
|
1679
1679
|
};
|
|
1680
|
-
const retry = cliRetryGuidance(payloadError,
|
|
1680
|
+
const retry = cliRetryGuidance(payloadError, _chunkZXB2Y3SGjs.readToolFailureHint.call(void 0, error));
|
|
1681
1681
|
return {
|
|
1682
1682
|
ok: false,
|
|
1683
1683
|
status: "failed",
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
RETAINED_PIPELINE_RECEIVERS_HEADER,
|
|
38
38
|
RUNTIME_ENVIRONMENT_TOKEN_HEADER,
|
|
39
39
|
SDK_API_MAJOR
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-AMUMEL4C.mjs";
|
|
41
41
|
import {
|
|
42
42
|
CustomerDbQueryOutcomeUnknownError
|
|
43
43
|
} from "./chunk-ASB47RXJ.mjs";
|
|
@@ -48,6 +48,145 @@ import {
|
|
|
48
48
|
ToolExecutionError
|
|
49
49
|
} from "./chunk-Z3A2S3QM.mjs";
|
|
50
50
|
|
|
51
|
+
// src/integrations.ts
|
|
52
|
+
var CALENDAR_PROVIDER = "google_calendar_availability";
|
|
53
|
+
var AD_ACCOUNT_DISCOVERY_PROVIDERS = [
|
|
54
|
+
"google_ads_audiences",
|
|
55
|
+
"linkedin_ads_audiences"
|
|
56
|
+
];
|
|
57
|
+
function invalid(message) {
|
|
58
|
+
throw new DeeplineError(message, 400, "INVALID_ARGUMENT");
|
|
59
|
+
}
|
|
60
|
+
function planAdAccountDiscovery(provider) {
|
|
61
|
+
if (!AD_ACCOUNT_DISCOVERY_PROVIDERS.includes(provider)) {
|
|
62
|
+
invalid(`Choose ${AD_ACCOUNT_DISCOVERY_PROVIDERS.join(" or ")}.`);
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
provider,
|
|
66
|
+
method: "POST",
|
|
67
|
+
path: `/api/v2/integrations/${provider}/accounts`,
|
|
68
|
+
body: {}
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
async function findConnection(client, name, provider) {
|
|
72
|
+
const { connections } = await client.listWorkspaceConnectionInventory(
|
|
73
|
+
provider,
|
|
74
|
+
{ authorizationsOnly: true }
|
|
75
|
+
);
|
|
76
|
+
const matches = connections.filter(
|
|
77
|
+
(row) => row.name === name && (!provider || row.provider === provider)
|
|
78
|
+
);
|
|
79
|
+
if (matches.length === 0)
|
|
80
|
+
throw new DeeplineError(
|
|
81
|
+
`No org connection named ${JSON.stringify(name)}. Run deepline integrations list --json.`,
|
|
82
|
+
404,
|
|
83
|
+
"NOT_FOUND"
|
|
84
|
+
);
|
|
85
|
+
if (matches.length > 1)
|
|
86
|
+
invalid("This name exists for multiple providers. Pass --provider.");
|
|
87
|
+
return matches[0];
|
|
88
|
+
}
|
|
89
|
+
async function changeConnection(client, action, name, options) {
|
|
90
|
+
const row = await findConnection(client, name, options.provider);
|
|
91
|
+
if (options.booking && (action !== "reconnect" || row.type !== "workspace_delegation"))
|
|
92
|
+
invalid("Use --booking with Google Workspace verify or reconnect.");
|
|
93
|
+
if (options.listCalendars && (action !== "reconnect" || row.type !== "workspace_delegation"))
|
|
94
|
+
invalid("Use --list-calendars with Google Workspace verify or reconnect.");
|
|
95
|
+
if (row.type === "workspace_delegation") {
|
|
96
|
+
if (row.provider !== CALENDAR_PROVIDER || !row.domain)
|
|
97
|
+
invalid(
|
|
98
|
+
"The Google Workspace approval is missing its provider or domain."
|
|
99
|
+
);
|
|
100
|
+
if (row.authorizationVersion === void 0)
|
|
101
|
+
invalid("The API did not return a Google Workspace approval revision.");
|
|
102
|
+
if (action === "reconnect") {
|
|
103
|
+
return verifyWorkspace(client, row.domain, options, row);
|
|
104
|
+
}
|
|
105
|
+
if (options.verificationEmail)
|
|
106
|
+
invalid("Use --verification-email with reconnect or verify.");
|
|
107
|
+
if (action === "delete" && row.status !== "disconnected")
|
|
108
|
+
invalid("Disconnect this approval before deleting it.");
|
|
109
|
+
const change2 = action === "delete" ? {
|
|
110
|
+
action: "remove_workspace",
|
|
111
|
+
domain: row.domain,
|
|
112
|
+
connectionId: row.id,
|
|
113
|
+
grantRevision: row.authorizationVersion
|
|
114
|
+
} : {
|
|
115
|
+
action: "disable_workspace",
|
|
116
|
+
domain: row.domain,
|
|
117
|
+
connectionId: row.id,
|
|
118
|
+
grantRevision: row.authorizationVersion
|
|
119
|
+
};
|
|
120
|
+
if (options.dryRun) return change2;
|
|
121
|
+
return client.changeCalendarDelegation(change2);
|
|
122
|
+
}
|
|
123
|
+
if (options.verificationEmail)
|
|
124
|
+
invalid("--verification-email applies to Google Workspace approvals.");
|
|
125
|
+
if (row.type !== "oauth" || row.provider !== "hubspot" && row.provider !== CALENDAR_PROVIDER)
|
|
126
|
+
invalid(
|
|
127
|
+
"Manage this credential type through deepline integrations connect <provider> --link."
|
|
128
|
+
);
|
|
129
|
+
if (row.authorizationVersion === void 0)
|
|
130
|
+
invalid("The API did not return a connection authorization version.");
|
|
131
|
+
const change = {
|
|
132
|
+
action: action === "delete" ? "remove" : action,
|
|
133
|
+
provider: row.provider,
|
|
134
|
+
name,
|
|
135
|
+
connectionId: row.id,
|
|
136
|
+
authorizationVersion: row.authorizationVersion
|
|
137
|
+
};
|
|
138
|
+
if (options.dryRun) return change;
|
|
139
|
+
return client.manageWorkspaceIntegrationConnection(change);
|
|
140
|
+
}
|
|
141
|
+
async function verifyWorkspace(client, domain, options, existing) {
|
|
142
|
+
domain = domain.trim().toLowerCase();
|
|
143
|
+
if (!GOOGLE_WORKSPACE_DOMAIN_PATTERN.test(domain))
|
|
144
|
+
invalid("Enter a Google Workspace domain, such as example.com.");
|
|
145
|
+
const email = options.verificationEmail?.trim().toLowerCase();
|
|
146
|
+
if (!email || email.length > 254 || !/^[^\s@]+@[^\s@]+$/.test(email) || email.split("@")[1] !== domain)
|
|
147
|
+
invalid("Pass --verification-email with a work email in this domain.");
|
|
148
|
+
const settings = existing ? {
|
|
149
|
+
grantRevision: existing.authorizationVersion,
|
|
150
|
+
connectionId: existing.id,
|
|
151
|
+
grantedScopes: existing.scopes
|
|
152
|
+
} : await client.getCalendarDelegation(void 0, void 0, domain);
|
|
153
|
+
if (settings.grantRevision === void 0)
|
|
154
|
+
invalid("The API did not return a Google Workspace approval revision.");
|
|
155
|
+
const requestedScopes = [
|
|
156
|
+
.../* @__PURE__ */ new Set([
|
|
157
|
+
GOOGLE_WORKSPACE_AVAILABILITY_SCOPE,
|
|
158
|
+
...settings.grantedScopes ?? [],
|
|
159
|
+
...options.booking ? [GOOGLE_WORKSPACE_BOOKING_SCOPE] : [],
|
|
160
|
+
...options.listCalendars ? [GOOGLE_WORKSPACE_CALENDAR_LIST_SCOPE] : []
|
|
161
|
+
])
|
|
162
|
+
];
|
|
163
|
+
const change = {
|
|
164
|
+
action: "enable_workspace",
|
|
165
|
+
domain,
|
|
166
|
+
grantRevision: settings.grantRevision,
|
|
167
|
+
...settings.connectionId ? { connectionId: settings.connectionId } : {},
|
|
168
|
+
verificationEmail: email,
|
|
169
|
+
...requestedScopes.length > 1 ? { requestedScopes } : {}
|
|
170
|
+
};
|
|
171
|
+
if (options.dryRun) return change;
|
|
172
|
+
return client.changeCalendarDelegation(change);
|
|
173
|
+
}
|
|
174
|
+
function createIntegrationsNamespace(client) {
|
|
175
|
+
return {
|
|
176
|
+
list: (options = {}) => client.listWorkspaceConnectionInventory(options.provider, {
|
|
177
|
+
authorizationsOnly: true
|
|
178
|
+
}),
|
|
179
|
+
get: (name, options = {}) => findConnection(client, name, options.provider),
|
|
180
|
+
connect: (provider) => client.getIntegrationConnectLink(provider),
|
|
181
|
+
discoverAdAccounts: (provider) => client.discoverAdAccounts(provider),
|
|
182
|
+
reconnect: (name, options = {}) => changeConnection(client, "reconnect", name, options),
|
|
183
|
+
disconnect: (name, options = {}) => changeConnection(client, "disconnect", name, options),
|
|
184
|
+
delete: (name, options = {}) => changeConnection(client, "delete", name, options),
|
|
185
|
+
verify: (domain, options) => verifyWorkspace(client, domain, options),
|
|
186
|
+
members: (provider, options = {}) => client.listManagedConnectionMembers(provider, options.cursor)
|
|
187
|
+
};
|
|
188
|
+
}
|
|
189
|
+
|
|
51
190
|
// ../integration-contracts/billing-plan-skus.ts
|
|
52
191
|
var PLAN_OFFER_SKUS = {
|
|
53
192
|
solo: "payg-v1",
|
|
@@ -2434,129 +2573,6 @@ function isStopAllPlayRunsDryRunResult(result) {
|
|
|
2434
2573
|
return "dryRun" in result && result.dryRun === true;
|
|
2435
2574
|
}
|
|
2436
2575
|
|
|
2437
|
-
// src/integrations.ts
|
|
2438
|
-
var CALENDAR_PROVIDER = "google_calendar_availability";
|
|
2439
|
-
function invalid(message) {
|
|
2440
|
-
throw new DeeplineError(message, 400, "INVALID_ARGUMENT");
|
|
2441
|
-
}
|
|
2442
|
-
async function findConnection(client, name, provider) {
|
|
2443
|
-
const { connections } = await client.listWorkspaceConnectionInventory(
|
|
2444
|
-
provider,
|
|
2445
|
-
{ authorizationsOnly: true }
|
|
2446
|
-
);
|
|
2447
|
-
const matches = connections.filter(
|
|
2448
|
-
(row) => row.name === name && (!provider || row.provider === provider)
|
|
2449
|
-
);
|
|
2450
|
-
if (matches.length === 0)
|
|
2451
|
-
throw new DeeplineError(
|
|
2452
|
-
`No org connection named ${JSON.stringify(name)}. Run deepline integrations list --json.`,
|
|
2453
|
-
404,
|
|
2454
|
-
"NOT_FOUND"
|
|
2455
|
-
);
|
|
2456
|
-
if (matches.length > 1)
|
|
2457
|
-
invalid("This name exists for multiple providers. Pass --provider.");
|
|
2458
|
-
return matches[0];
|
|
2459
|
-
}
|
|
2460
|
-
async function changeConnection(client, action, name, options) {
|
|
2461
|
-
const row = await findConnection(client, name, options.provider);
|
|
2462
|
-
if (options.booking && (action !== "reconnect" || row.type !== "workspace_delegation"))
|
|
2463
|
-
invalid("Use --booking with Google Workspace verify or reconnect.");
|
|
2464
|
-
if (options.listCalendars && (action !== "reconnect" || row.type !== "workspace_delegation"))
|
|
2465
|
-
invalid("Use --list-calendars with Google Workspace verify or reconnect.");
|
|
2466
|
-
if (row.type === "workspace_delegation") {
|
|
2467
|
-
if (row.provider !== CALENDAR_PROVIDER || !row.domain)
|
|
2468
|
-
invalid(
|
|
2469
|
-
"The Google Workspace approval is missing its provider or domain."
|
|
2470
|
-
);
|
|
2471
|
-
if (row.authorizationVersion === void 0)
|
|
2472
|
-
invalid("The API did not return a Google Workspace approval revision.");
|
|
2473
|
-
if (action === "reconnect") {
|
|
2474
|
-
return verifyWorkspace(client, row.domain, options, row);
|
|
2475
|
-
}
|
|
2476
|
-
if (options.verificationEmail)
|
|
2477
|
-
invalid("Use --verification-email with reconnect or verify.");
|
|
2478
|
-
if (action === "delete" && row.status !== "disconnected")
|
|
2479
|
-
invalid("Disconnect this approval before deleting it.");
|
|
2480
|
-
const change2 = action === "delete" ? {
|
|
2481
|
-
action: "remove_workspace",
|
|
2482
|
-
domain: row.domain,
|
|
2483
|
-
connectionId: row.id,
|
|
2484
|
-
grantRevision: row.authorizationVersion
|
|
2485
|
-
} : {
|
|
2486
|
-
action: "disable_workspace",
|
|
2487
|
-
domain: row.domain,
|
|
2488
|
-
connectionId: row.id,
|
|
2489
|
-
grantRevision: row.authorizationVersion
|
|
2490
|
-
};
|
|
2491
|
-
if (options.dryRun) return change2;
|
|
2492
|
-
return client.changeCalendarDelegation(change2);
|
|
2493
|
-
}
|
|
2494
|
-
if (options.verificationEmail)
|
|
2495
|
-
invalid("--verification-email applies to Google Workspace approvals.");
|
|
2496
|
-
if (row.type !== "oauth" || row.provider !== "hubspot" && row.provider !== CALENDAR_PROVIDER)
|
|
2497
|
-
invalid(
|
|
2498
|
-
"Manage this credential type through deepline integrations connect <provider> --link."
|
|
2499
|
-
);
|
|
2500
|
-
if (row.authorizationVersion === void 0)
|
|
2501
|
-
invalid("The API did not return a connection authorization version.");
|
|
2502
|
-
const change = {
|
|
2503
|
-
action: action === "delete" ? "remove" : action,
|
|
2504
|
-
provider: row.provider,
|
|
2505
|
-
name,
|
|
2506
|
-
connectionId: row.id,
|
|
2507
|
-
authorizationVersion: row.authorizationVersion
|
|
2508
|
-
};
|
|
2509
|
-
if (options.dryRun) return change;
|
|
2510
|
-
return client.manageWorkspaceIntegrationConnection(change);
|
|
2511
|
-
}
|
|
2512
|
-
async function verifyWorkspace(client, domain, options, existing) {
|
|
2513
|
-
domain = domain.trim().toLowerCase();
|
|
2514
|
-
if (!GOOGLE_WORKSPACE_DOMAIN_PATTERN.test(domain))
|
|
2515
|
-
invalid("Enter a Google Workspace domain, such as example.com.");
|
|
2516
|
-
const email = options.verificationEmail?.trim().toLowerCase();
|
|
2517
|
-
if (!email || email.length > 254 || !/^[^\s@]+@[^\s@]+$/.test(email) || email.split("@")[1] !== domain)
|
|
2518
|
-
invalid("Pass --verification-email with a work email in this domain.");
|
|
2519
|
-
const settings = existing ? {
|
|
2520
|
-
grantRevision: existing.authorizationVersion,
|
|
2521
|
-
connectionId: existing.id,
|
|
2522
|
-
grantedScopes: existing.scopes
|
|
2523
|
-
} : await client.getCalendarDelegation(void 0, void 0, domain);
|
|
2524
|
-
if (settings.grantRevision === void 0)
|
|
2525
|
-
invalid("The API did not return a Google Workspace approval revision.");
|
|
2526
|
-
const requestedScopes = [
|
|
2527
|
-
.../* @__PURE__ */ new Set([
|
|
2528
|
-
GOOGLE_WORKSPACE_AVAILABILITY_SCOPE,
|
|
2529
|
-
...settings.grantedScopes ?? [],
|
|
2530
|
-
...options.booking ? [GOOGLE_WORKSPACE_BOOKING_SCOPE] : [],
|
|
2531
|
-
...options.listCalendars ? [GOOGLE_WORKSPACE_CALENDAR_LIST_SCOPE] : []
|
|
2532
|
-
])
|
|
2533
|
-
];
|
|
2534
|
-
const change = {
|
|
2535
|
-
action: "enable_workspace",
|
|
2536
|
-
domain,
|
|
2537
|
-
grantRevision: settings.grantRevision,
|
|
2538
|
-
...settings.connectionId ? { connectionId: settings.connectionId } : {},
|
|
2539
|
-
verificationEmail: email,
|
|
2540
|
-
...requestedScopes.length > 1 ? { requestedScopes } : {}
|
|
2541
|
-
};
|
|
2542
|
-
if (options.dryRun) return change;
|
|
2543
|
-
return client.changeCalendarDelegation(change);
|
|
2544
|
-
}
|
|
2545
|
-
function createIntegrationsNamespace(client) {
|
|
2546
|
-
return {
|
|
2547
|
-
list: (options = {}) => client.listWorkspaceConnectionInventory(options.provider, {
|
|
2548
|
-
authorizationsOnly: true
|
|
2549
|
-
}),
|
|
2550
|
-
get: (name, options = {}) => findConnection(client, name, options.provider),
|
|
2551
|
-
connect: (provider) => client.getIntegrationConnectLink(provider),
|
|
2552
|
-
reconnect: (name, options = {}) => changeConnection(client, "reconnect", name, options),
|
|
2553
|
-
disconnect: (name, options = {}) => changeConnection(client, "disconnect", name, options),
|
|
2554
|
-
delete: (name, options = {}) => changeConnection(client, "delete", name, options),
|
|
2555
|
-
verify: (domain, options) => verifyWorkspace(client, domain, options),
|
|
2556
|
-
members: (provider, options = {}) => client.listManagedConnectionMembers(provider, options.cursor)
|
|
2557
|
-
};
|
|
2558
|
-
}
|
|
2559
|
-
|
|
2560
2576
|
// ../plays/trigger-config-route.ts
|
|
2561
2577
|
function playTriggerConfigPath(playName) {
|
|
2562
2578
|
return `/api/v2/plays/${encodeURIComponent(playName)}/triggers`;
|
|
@@ -5768,6 +5784,14 @@ var DeeplineClient = class _DeeplineClient {
|
|
|
5768
5784
|
const params = new URLSearchParams({ provider });
|
|
5769
5785
|
return this.http.get(`/api/v2/integrations/balance?${params}`);
|
|
5770
5786
|
}
|
|
5787
|
+
/** Discover and save the ad accounts accessible to the workspace connection. */
|
|
5788
|
+
async discoverAdAccounts(provider) {
|
|
5789
|
+
const { path, body } = planAdAccountDiscovery(provider);
|
|
5790
|
+
return this.http.post(path, body, void 0, {
|
|
5791
|
+
maxRetries: 0,
|
|
5792
|
+
exactUrlOnly: true
|
|
5793
|
+
});
|
|
5794
|
+
}
|
|
5771
5795
|
/** List the internal pilot's workspace connections. */
|
|
5772
5796
|
async listWorkspaceIntegrationConnections() {
|
|
5773
5797
|
return this.http.get("/api/v2/integrations/connections");
|
|
@@ -7605,6 +7629,8 @@ var DeeplineClient = class _DeeplineClient {
|
|
|
7605
7629
|
};
|
|
7606
7630
|
|
|
7607
7631
|
export {
|
|
7632
|
+
AD_ACCOUNT_DISCOVERY_PROVIDERS,
|
|
7633
|
+
planAdAccountDiscovery,
|
|
7608
7634
|
PUBLIC_PLAN_SKUS,
|
|
7609
7635
|
iterateCursorPages,
|
|
7610
7636
|
requireBillingIdempotencyKey,
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _chunkCSPHSNBWjs = require('./chunk-CSPHSNBW.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk5QMEJPN5js = require('./chunk-5QMEJPN5.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunkMJTVX4QKjs = require('./chunk-MJTVX4QK.js');
|
|
@@ -11,7 +11,7 @@ var _chunkMJTVX4QKjs = require('./chunk-MJTVX4QK.js');
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkE76MM3SCjs = require('./chunk-E76MM3SC.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
var _chunkLFQJW4S2js = require('./chunk-LFQJW4S2.js');
|
|
@@ -581,7 +581,7 @@ function parseInputFlagValue(raw) {
|
|
|
581
581
|
return raw;
|
|
582
582
|
}
|
|
583
583
|
function parsePlayRunOptions(args, initialInput = null) {
|
|
584
|
-
const selection =
|
|
584
|
+
const selection = _chunkE76MM3SCjs.parseJsonFields.call(void 0, args, "run");
|
|
585
585
|
args = selection.args;
|
|
586
586
|
const usage = "Usage: deepline plays run <play-name> [--input '{...}'] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--full] [--<input> value]\n deepline plays run <play-file.ts> [--input '{...}'] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--full] [--<input> value]\n deepline plays run --file <play-file.ts> [--input '{...}'] [--profile <id>] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--full] [--<input> value]\n deepline plays run --name <name> [--input '{...}'] [--profile <id>] [--live|--latest|--revision-id <id>] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--json] [--full] [--<input> value]\n Runs use the Absurd CJS runtime.\n --header '<name>: <value>' may repeat; each is sent on every request for this run.\n Unknown --<input> value flags, such as --limit 5, are passed into play input.\nRun `deepline plays run --help` for idempotent call caching and deepline.dataset guidance.";
|
|
587
587
|
let filePath = null;
|
|
@@ -593,7 +593,7 @@ function parsePlayRunOptions(args, initialInput = null) {
|
|
|
593
593
|
let revisionSelector = null;
|
|
594
594
|
const watch = !args.includes("--no-wait");
|
|
595
595
|
const dryRun = args.includes("--dry-run");
|
|
596
|
-
let jsonOutput = dryRun ?
|
|
596
|
+
let jsonOutput = dryRun ? _chunkE76MM3SCjs.argsWantJson.call(void 0, args) : watch ? args.includes("--json") : _chunkE76MM3SCjs.argsWantJson.call(void 0, args);
|
|
597
597
|
const fullJson = args.includes("--full");
|
|
598
598
|
const force = args.includes("--force") || args.includes("--from-start");
|
|
599
599
|
const forceToolRefresh = args.includes("--force-tool-refresh") || args.includes("--refresh-cache");
|
|
@@ -657,7 +657,7 @@ function parsePlayRunOptions(args, initialInput = null) {
|
|
|
657
657
|
"--log-level requires one of: debug, info, warn, error."
|
|
658
658
|
);
|
|
659
659
|
}
|
|
660
|
-
const parsed =
|
|
660
|
+
const parsed = _chunk5QMEJPN5js.parseLogLevel.call(void 0, value);
|
|
661
661
|
if (!parsed) {
|
|
662
662
|
throw new Error(
|
|
663
663
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -990,7 +990,7 @@ function resolvePlayRunCliOptions(target, options, inputArgs = [], maintenancePo
|
|
|
990
990
|
const hasExplicitLogLevel = options.logLevel !== void 0 || inputArgs.some(
|
|
991
991
|
(arg) => arg === "--log-level" || arg.startsWith("--log-level=")
|
|
992
992
|
);
|
|
993
|
-
let logLevel = options.logLevel === void 0 ? base.logLevel :
|
|
993
|
+
let logLevel = options.logLevel === void 0 ? base.logLevel : _chunk5QMEJPN5js.parseLogLevel.call(void 0, options.logLevel);
|
|
994
994
|
if (!logLevel)
|
|
995
995
|
throw new Error("--log-level requires one of: debug, info, warn, error.");
|
|
996
996
|
const debugAlias = options.logs || options.debug === true || inputArgs.some(
|
|
@@ -1004,13 +1004,13 @@ function resolvePlayRunCliOptions(target, options, inputArgs = [], maintenancePo
|
|
|
1004
1004
|
if (debugAlias || debugMapLatency && logLevel === "info")
|
|
1005
1005
|
logLevel = "debug";
|
|
1006
1006
|
const fullJson = _nullishCoalesce(options.full, () => ( base.fullJson));
|
|
1007
|
-
const jsonFields = options.json === void 0 ? base.jsonFields :
|
|
1008
|
-
[...fullJson ? ["--full"] : [], ...
|
|
1007
|
+
const jsonFields = options.json === void 0 ? base.jsonFields : _chunkE76MM3SCjs.parseJsonFields.call(void 0,
|
|
1008
|
+
[...fullJson ? ["--full"] : [], ..._chunkE76MM3SCjs.jsonFieldArgs.call(void 0, options.json)],
|
|
1009
1009
|
"run"
|
|
1010
1010
|
).fields;
|
|
1011
1011
|
const watch = options.wait === false ? false : base.watch;
|
|
1012
1012
|
const explicitJson = options.json !== void 0 ? options.json !== false : base.jsonOutput;
|
|
1013
|
-
const jsonOutput = dryRun || !watch ? explicitJson ||
|
|
1013
|
+
const jsonOutput = dryRun || !watch ? explicitJson || _chunkE76MM3SCjs.argsWantJson.call(void 0, []) : explicitJson;
|
|
1014
1014
|
const verboseLogs = Boolean(
|
|
1015
1015
|
debugAlias || logLevel === "debug" || debugMapLatency
|
|
1016
1016
|
);
|
|
@@ -4,14 +4,14 @@ import {
|
|
|
4
4
|
resolveApiKeyForBaseUrl,
|
|
5
5
|
resolveCliCommandContext,
|
|
6
6
|
resolveConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-CQJMFUMK.mjs";
|
|
8
8
|
import {
|
|
9
9
|
SDK_VERSION,
|
|
10
10
|
agentSessionIdFromEnvironment,
|
|
11
11
|
deploymentProtectionHeaders,
|
|
12
12
|
detectAgentRuntime,
|
|
13
13
|
readToolFailureHint
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-AMUMEL4C.mjs";
|
|
15
15
|
import {
|
|
16
16
|
DeeplineError,
|
|
17
17
|
normalizeToolExecutionFailure,
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
2
|
npmSupportsAllowScripts,
|
|
3
3
|
readNpmVersion
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-ZSDZ3Q5P.mjs";
|
|
5
5
|
import {
|
|
6
6
|
runSkillsCommand
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-OS3FDGKX.mjs";
|
|
8
8
|
import {
|
|
9
9
|
resolveShellSpawn
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-BQ2Z6PSE.mjs";
|
|
11
11
|
import {
|
|
12
12
|
printCommandEnvelope
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-G33LSF4T.mjs";
|
|
14
14
|
import {
|
|
15
15
|
DEFAULT_MAX_RETRIES,
|
|
16
16
|
DEFAULT_TIMEOUT,
|
|
17
17
|
TRANSIENT_HTTP_STATUSES,
|
|
18
18
|
autoDetectBaseUrl,
|
|
19
19
|
defaultRetryBackoffMs
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-CQJMFUMK.mjs";
|
|
21
21
|
|
|
22
22
|
// src/cli/commands/update.ts
|
|
23
23
|
import { spawn, spawnSync } from "child_process";
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-MF7PCM6C.mjs";
|
|
4
4
|
import {
|
|
5
5
|
parseLogLevel
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-F5CZ3Q2I.mjs";
|
|
7
7
|
import {
|
|
8
8
|
setDottedInputValue
|
|
9
9
|
} from "./chunk-5TYLSS4Q.mjs";
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
argsWantJson,
|
|
12
12
|
jsonFieldArgs,
|
|
13
13
|
parseJsonFields
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-G33LSF4T.mjs";
|
|
15
15
|
import {
|
|
16
16
|
DeeplineError
|
|
17
17
|
} from "./chunk-Z3A2S3QM.mjs";
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
addDescribeOptions,
|
|
3
3
|
recordApiResponse,
|
|
4
4
|
writeExecutionOutput
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-SCM6BR4Q.mjs";
|
|
6
6
|
import {
|
|
7
7
|
registerIntegrationBalanceCommand,
|
|
8
8
|
registerIntegrationConnectCommand,
|
|
@@ -11,11 +11,11 @@ import {
|
|
|
11
11
|
registerLegacyHubSpotMembersCommand,
|
|
12
12
|
registerLegacyWorkspaceConnectionCommand,
|
|
13
13
|
registerWorkspaceConnectionListCommand
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-A4X2O75M.mjs";
|
|
15
15
|
import {
|
|
16
16
|
recentSearchRef,
|
|
17
17
|
registerDeprecatedSearchCommand
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-JQDVX3D4.mjs";
|
|
19
19
|
import {
|
|
20
20
|
Capability,
|
|
21
21
|
arrayField,
|
|
@@ -57,29 +57,29 @@ import {
|
|
|
57
57
|
} from "./chunk-FIVKWNMT.mjs";
|
|
58
58
|
import {
|
|
59
59
|
DeeplineClient
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-RQKCNQ5Q.mjs";
|
|
61
61
|
import {
|
|
62
62
|
validateExecutionIdempotencyKey
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-F5CZ3Q2I.mjs";
|
|
64
64
|
import {
|
|
65
65
|
beginToolExecuteCommand,
|
|
66
66
|
getToolExecuteInvocationId,
|
|
67
67
|
maybeAutoUpdateAndRelaunch,
|
|
68
68
|
registerCompatibilityCatalog,
|
|
69
69
|
runToolExecuteStage
|
|
70
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-NNKZ4JYP.mjs";
|
|
71
71
|
import {
|
|
72
72
|
isCliTraceEnabled,
|
|
73
73
|
recordCliTrace,
|
|
74
74
|
resolveCliMaintenancePolicy
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-WOZKGI6H.mjs";
|
|
76
76
|
import {
|
|
77
77
|
checkSdkCompatibility,
|
|
78
78
|
enforceSdkCompatibilityResponse,
|
|
79
79
|
flushDeferredSkillsSyncNotices,
|
|
80
80
|
requireSdkCompatibility,
|
|
81
81
|
syncSdkSkillsIfNeeded
|
|
82
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-BQ2Z6PSE.mjs";
|
|
83
83
|
import {
|
|
84
84
|
errorToJsonPayload,
|
|
85
85
|
printCommandEnvelope,
|
|
@@ -88,12 +88,12 @@ import {
|
|
|
88
88
|
printJsonError,
|
|
89
89
|
renderCommandEnvelopeText,
|
|
90
90
|
shouldEmitJson
|
|
91
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-G33LSF4T.mjs";
|
|
92
92
|
import {
|
|
93
93
|
readSdkSkillsLocalVersion,
|
|
94
94
|
resolveConfig,
|
|
95
95
|
sdkCliStateDirPath
|
|
96
|
-
} from "./chunk-
|
|
96
|
+
} from "./chunk-CQJMFUMK.mjs";
|
|
97
97
|
import {
|
|
98
98
|
DeeplineError
|
|
99
99
|
} from "./chunk-Z3A2S3QM.mjs";
|
|
@@ -1052,7 +1052,7 @@ Examples:
|
|
|
1052
1052
|
process.exitCode = await narrowView();
|
|
1053
1053
|
return;
|
|
1054
1054
|
}
|
|
1055
|
-
const { describeAnything } = await import("./describe-
|
|
1055
|
+
const { describeAnything } = await import("./describe-6KSAHJBD.mjs");
|
|
1056
1056
|
process.exitCode = await describeAnything(
|
|
1057
1057
|
toolId,
|
|
1058
1058
|
{
|