deepline 0.3.533 → 0.3.534
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 +46 -7
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +19 -1
- package/dist/bundling-sources/shared_libs/play-runtime/execution-capabilities.ts +26 -0
- package/dist/bundling-sources/shared_libs/play-runtime/freshness-receipt-execution.ts +32 -14
- package/dist/bundling-sources/shared_libs/play-runtime/internal-bootstrap-token.ts +9 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-authority.ts +8 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +21 -0
- package/dist/bundling-sources/shared_libs/play-runtime/tool-cache-policy.ts +12 -1
- package/dist/bundling-sources/shared_libs/play-runtime/workflow-executor-auth.ts +2 -0
- package/dist/cli/{auth-2TZNPIJQ.mjs → auth-MHQYIMVX.mjs} +5 -5
- package/dist/cli/auth-UP2RGPI6.js +43 -0
- package/dist/cli/{billing-LR4WJIHO.mjs → billing-LX2PSBJ4.mjs} +7 -7
- package/dist/cli/{billing-HQYTRIV3.js → billing-YQLNP4S5.js} +82 -82
- package/dist/cli/{chunk-NFDYVMGC.mjs → chunk-2P3NVX65.mjs} +68 -13
- package/dist/cli/{chunk-EVXRQXNV.mjs → chunk-5FXMEEF4.mjs} +35 -0
- package/dist/cli/{chunk-NW736SOD.mjs → chunk-5LZ5VSOK.mjs} +2 -2
- package/dist/cli/{chunk-2UYERVXF.mjs → chunk-62SOZ67Y.mjs} +2 -2
- package/dist/cli/{chunk-R7YDZSN7.js → chunk-6CEUQYMB.js} +3 -3
- package/dist/cli/{chunk-PIACHLYY.mjs → chunk-6GTGWZJG.mjs} +2 -2
- package/dist/cli/{chunk-NKVW552R.mjs → chunk-6IFZPEJE.mjs} +1 -1
- package/dist/cli/{chunk-KKUOIVQO.mjs → chunk-7GFR5Y4J.mjs} +1 -1
- package/dist/cli/{chunk-274Y66HP.js → chunk-A6HNT4EE.js} +2 -2
- package/dist/cli/{chunk-YZK5RSUL.mjs → chunk-AK622KIG.mjs} +1 -1
- package/dist/cli/{chunk-33SNTG5F.js → chunk-B2AS3R5W.js} +16 -16
- package/dist/cli/{chunk-USAQ42OG.mjs → chunk-BDWZBMGV.mjs} +5 -5
- package/dist/cli/{chunk-CANHB6DH.mjs → chunk-BXIUZM5N.mjs} +2 -2
- package/dist/cli/{chunk-WF652G74.js → chunk-D3J2Y2BP.js} +14 -14
- package/dist/cli/{chunk-SVVUC3B4.js → chunk-DGKTHWWH.js} +122 -104
- package/dist/cli/{chunk-G3RVDRYL.mjs → chunk-DQ5ADV2J.mjs} +1 -1
- package/dist/cli/{chunk-A4JP6RPX.js → chunk-DZS4JC7I.js} +2 -2
- package/dist/cli/{chunk-IETLUG4C.mjs → chunk-E7TP25I2.mjs} +1 -1
- package/dist/cli/{chunk-QZWURUBP.js → chunk-EGTUOYYG.js} +7 -7
- package/dist/cli/{chunk-LZMRCUVD.mjs → chunk-ENCA6O2D.mjs} +2 -2
- package/dist/cli/{chunk-BSI7UHQZ.mjs → chunk-EYXUAJAU.mjs} +5 -5
- package/dist/cli/{chunk-LTF2J3JM.js → chunk-GTXSUPCJ.js} +2 -2
- package/dist/cli/{chunk-5XTXC45Z.js → chunk-GVGQ6NZW.js} +41 -41
- package/dist/cli/{chunk-425ERNBL.js → chunk-HCD36BP6.js} +44 -44
- package/dist/cli/{chunk-BWZHMWM5.js → chunk-HPJAE6PP.js} +6 -6
- package/dist/cli/{chunk-735ZOYQN.js → chunk-IX45S5VC.js} +11 -11
- package/dist/cli/{chunk-352XVCGE.js → chunk-JBBJDFUJ.js} +5 -5
- package/dist/cli/{chunk-2TMNRF5R.mjs → chunk-KJVY7V2X.mjs} +1 -1
- package/dist/cli/{chunk-MNAEALPG.js → chunk-KSA2XE4T.js} +182 -127
- package/dist/cli/{chunk-CWIGRIIX.mjs → chunk-KXQCUX3X.mjs} +3 -3
- package/dist/cli/{chunk-E4VWBU2E.js → chunk-LGRZCHKC.js} +16 -16
- package/dist/cli/{chunk-XZN3DBTP.mjs → chunk-MG6YL4M7.mjs} +24 -6
- package/dist/cli/{chunk-4CYNH47Y.js → chunk-MQORQ7WL.js} +53 -53
- package/dist/cli/{chunk-HOTJSXLY.js → chunk-MQX363YF.js} +5 -5
- package/dist/cli/{chunk-TU56J4OV.js → chunk-MYSKWJMA.js} +13 -13
- package/dist/cli/{chunk-4YP2YAIZ.js → chunk-NDFNBJGL.js} +26 -26
- package/dist/cli/{chunk-JZ7LJS3P.mjs → chunk-NNAE7E23.mjs} +6 -6
- package/dist/cli/{chunk-LZ3PBEQH.mjs → chunk-O53LHONF.mjs} +2 -2
- package/dist/cli/{chunk-VKGNQC2S.mjs → chunk-OMVVHX4U.mjs} +5 -5
- package/dist/cli/{chunk-ZH5HCAN3.js → chunk-RH3YRMUY.js} +1 -1
- package/dist/cli/{chunk-V6LUMGVI.js → chunk-SUWTLXCV.js} +35 -0
- package/dist/cli/{chunk-MKUYZ7LR.mjs → chunk-TG2UB3A5.mjs} +1 -1
- package/dist/cli/{chunk-G3GJ3IGU.mjs → chunk-TQH3533L.mjs} +5 -5
- package/dist/cli/{chunk-B4ZNWXUW.js → chunk-TVINIDHB.js} +9 -9
- package/dist/cli/{chunk-O7RSUW75.js → chunk-UWNVFAFN.js} +4 -4
- package/dist/cli/{chunk-VPQDKL5O.js → chunk-V7SCRUFQ.js} +6 -6
- package/dist/cli/{chunk-HPOVAUQF.mjs → chunk-VAG5YKP6.mjs} +1 -1
- package/dist/cli/{chunk-4UADZTU5.js → chunk-VE7ZPLN2.js} +22 -22
- package/dist/cli/{chunk-XUX5KGCQ.mjs → chunk-WDNRPZED.mjs} +2 -2
- package/dist/cli/{chunk-3O3AL5RI.mjs → chunk-WR4WETRU.mjs} +4 -4
- package/dist/cli/{chunk-EYWES7F5.js → chunk-XBK6WCVA.js} +3 -3
- package/dist/cli/{chunk-3KQBV2CG.mjs → chunk-XRZJKHUA.mjs} +3 -3
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-CJKKHGNQ.mjs → csv-4ID4E5W3.mjs} +4 -4
- package/dist/cli/{csv-MBSCHS4H.js → csv-U3M2G76R.js} +13 -13
- package/dist/cli/{db-45HNPCY3.js → db-IHAQIKEQ.js} +27 -27
- package/dist/cli/{db-EAFR6N45.mjs → db-LHX5BBCZ.mjs} +6 -6
- package/dist/cli/{describe-IXW3LDGC.mjs → describe-CI4MREFF.mjs} +18 -18
- package/dist/cli/describe-IVTSD7ST.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-SZAES2S4.js → executions-CJ5LV23G.js} +8 -8
- package/dist/cli/{executions-ZATZV7O6.mjs → executions-UJ6JZUL5.mjs} +6 -6
- package/dist/cli/{feedback-KXLF4GR4.js → feedback-TGUBVGRP.js} +14 -14
- package/dist/cli/{feedback-NY63KEK2.mjs → feedback-YGTPJBRJ.mjs} +6 -6
- package/dist/cli/{git-BSSSTR6N.mjs → git-3DOTQHJO.mjs} +5 -5
- package/dist/cli/git-R3W25XIF.js +25 -0
- package/dist/cli/index.js +145 -145
- package/dist/cli/index.mjs +44 -44
- package/dist/cli/{legacy-noops-XQANGML3.js → legacy-noops-BHEHVFHI.js} +9 -9
- package/dist/cli/{legacy-noops-CYF6DJBF.mjs → legacy-noops-RBBYRVLG.mjs} +6 -6
- package/dist/cli/{monitors-ABJVLWIP.mjs → monitors-5AJCG6IV.mjs} +7 -7
- package/dist/cli/{monitors-F3PTNP45.js → monitors-XECKLAXA.js} +100 -100
- package/dist/cli/{org-WQAPZI5Q.js → org-DOBAIYWG.js} +86 -86
- package/dist/cli/{org-BHF6Y5R7.mjs → org-ZAAIEZKB.mjs} +6 -6
- package/dist/cli/{pages-W4HWVJUG.mjs → pages-FUOSF6BE.mjs} +6 -6
- package/dist/cli/{pages-U3EJ2NPL.js → pages-TLC2N6L7.js} +18 -18
- package/dist/cli/{play-2UHKONON.js → play-E74VN6B7.js} +317 -317
- package/dist/cli/{play-3T4X3ZKH.mjs → play-KLYRMQPF.mjs} +18 -18
- package/dist/cli/{providers-LUK5LIUA.js → providers-APZ6SOSK.js} +9 -9
- package/dist/cli/{providers-2G2VTNDG.mjs → providers-XTQXV5LB.mjs} +6 -6
- package/dist/cli/{quickstart-76P6PGID.js → quickstart-S6WN6NWW.js} +6 -6
- package/dist/cli/{quickstart-XP4PJZ7N.mjs → quickstart-X7RHHQCH.mjs} +4 -4
- package/dist/cli/{run-S2KHGBCM.js → run-3YLIJJ57.js} +41 -41
- package/dist/cli/{run-ACIHA53A.mjs → run-TZPBBSPX.mjs} +23 -23
- package/dist/cli/search-NB5CBALV.js +33 -0
- package/dist/cli/{search-VFIJCUZL.mjs → search-VLHE2CMZ.mjs} +8 -8
- package/dist/cli/{search-output-2KFLZS5F.mjs → search-output-73BYB7UE.mjs} +4 -4
- package/dist/cli/{search-output-GV7NNB4X.js → search-output-GCT7PQIT.js} +6 -6
- package/dist/cli/{secrets-KJSFEW2F.js → secrets-J6CEKXKQ.js} +15 -15
- package/dist/cli/{secrets-MAQLBVC4.mjs → secrets-RLOTGKQZ.mjs} +6 -6
- package/dist/cli/{sessions-G5MWNJ75.mjs → sessions-7HZ7OZ62.mjs} +6 -6
- package/dist/cli/sessions-SFCZSB77.js +22 -0
- package/dist/cli/{settings-MR6UFOK5.mjs → settings-72K5YCIS.mjs} +13 -13
- package/dist/cli/{settings-VXGRPFXP.js → settings-WRV5XEZC.js} +86 -86
- package/dist/cli/{setup-ZOBXMONM.mjs → setup-KQFY6WT4.mjs} +10 -10
- package/dist/cli/{setup-C74BRK7N.js → setup-QVXWT2EQ.js} +50 -50
- package/dist/cli/{skills-4CG3MHOY.mjs → skills-C3K3E473.mjs} +8 -8
- package/dist/cli/skills-WIJEHVLA.js +37 -0
- package/dist/cli/{tools-YXCXZ4ZD.mjs → tools-4A2OH6MB.mjs} +17 -17
- package/dist/cli/tools-VMMERMLO.js +57 -0
- package/dist/cli/update-54WZQDTS.js +35 -0
- package/dist/cli/{update-Z3C5W3I4.mjs → update-BS6USKPR.mjs} +10 -10
- package/dist/cli/{views-XGP2GZ52.js → views-4NZGAXHL.js} +18 -18
- package/dist/cli/{views-45B2FZQT.mjs → views-WB6GFTRX.mjs} +6 -6
- package/dist/cli/{workflow-KQRWSNBH.mjs → workflow-2D4WX55R.mjs} +7 -7
- package/dist/cli/{workflow-DWO35XHZ.js → workflow-L2QTQZYV.js} +17 -17
- package/dist/{client-CBCVhL8U.d.ts → client-DQm56zMs.d.ts} +1 -1
- package/dist/{client-Bd2meveV.d.mts → client-DoUVSkqC.d.mts} +1 -1
- package/dist/{client-core-CsRRWCFy.d.ts → client-core-C7KkUIE_.d.ts} +32 -1
- package/dist/{client-core-CGj8V9mw.d.mts → client-core-CPlwsC1Q.d.mts} +32 -1
- 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 +110 -110
- 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-KE6RFHUE.js +0 -43
- package/dist/cli/describe-PYLZAVRI.js +0 -50
- package/dist/cli/git-T5JTVBYZ.js +0 -25
- package/dist/cli/search-5MD65V43.js +0 -33
- package/dist/cli/sessions-FDMO7PAA.js +0 -22
- package/dist/cli/skills-KRUL7QCT.js +0 -37
- package/dist/cli/tools-CGHOSCPS.js +0 -57
- package/dist/cli/update-S2TILEHZ.js +0 -35
|
@@ -2,11 +2,11 @@ import {
|
|
|
2
2
|
addDescribeOptions,
|
|
3
3
|
recordApiResponse,
|
|
4
4
|
writeExecutionOutput
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-DQ5ADV2J.mjs";
|
|
6
6
|
import {
|
|
7
7
|
recentSearchRef,
|
|
8
8
|
registerDeprecatedSearchCommand
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-OMVVHX4U.mjs";
|
|
10
10
|
import {
|
|
11
11
|
Capability,
|
|
12
12
|
arrayField,
|
|
@@ -46,10 +46,10 @@ import {
|
|
|
46
46
|
} from "./chunk-FIVKWNMT.mjs";
|
|
47
47
|
import {
|
|
48
48
|
DeeplineClient
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-WDNRPZED.mjs";
|
|
50
50
|
import {
|
|
51
51
|
validateExecutionIdempotencyKey
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-MG6YL4M7.mjs";
|
|
53
53
|
import {
|
|
54
54
|
stableStringify
|
|
55
55
|
} from "./chunk-UBKA33KY.mjs";
|
|
@@ -59,18 +59,18 @@ import {
|
|
|
59
59
|
maybeAutoUpdateAndRelaunch,
|
|
60
60
|
registerCompatibilityCatalog,
|
|
61
61
|
runToolExecuteStage
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-TQH3533L.mjs";
|
|
63
63
|
import {
|
|
64
64
|
isCliTraceEnabled,
|
|
65
65
|
recordCliTrace,
|
|
66
66
|
resolveCliMaintenancePolicy
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-7GFR5Y4J.mjs";
|
|
68
68
|
import {
|
|
69
69
|
checkSdkCompatibility,
|
|
70
70
|
enforceSdkCompatibilityResponse,
|
|
71
71
|
flushDeferredSkillsSyncNotices,
|
|
72
72
|
syncSdkSkillsIfNeeded
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-BDWZBMGV.mjs";
|
|
74
74
|
import {
|
|
75
75
|
printCommandEnvelope,
|
|
76
76
|
printCompactJson,
|
|
@@ -78,12 +78,12 @@ import {
|
|
|
78
78
|
printJsonError,
|
|
79
79
|
renderCommandEnvelopeText,
|
|
80
80
|
shouldEmitJson
|
|
81
|
-
} from "./chunk-
|
|
81
|
+
} from "./chunk-62SOZ67Y.mjs";
|
|
82
82
|
import {
|
|
83
83
|
readSdkSkillsLocalVersion,
|
|
84
84
|
resolveConfig,
|
|
85
85
|
sdkCliStateDirPath
|
|
86
|
-
} from "./chunk-
|
|
86
|
+
} from "./chunk-E7TP25I2.mjs";
|
|
87
87
|
import {
|
|
88
88
|
DeeplineError
|
|
89
89
|
} from "./chunk-ZPGGW27Q.mjs";
|
|
@@ -841,6 +841,54 @@ Output:
|
|
|
841
841
|
`${balance.provider}: ${balance.balance.value} ${balance.unit} (observed ${balance.observedAt})`
|
|
842
842
|
);
|
|
843
843
|
});
|
|
844
|
+
tools.command("workspace-connections").description(
|
|
845
|
+
"List shared OAuth connections in a workspace enrolled in the pilot."
|
|
846
|
+
).option("--json", "Print connection summaries as JSON").action(async (options) => {
|
|
847
|
+
const { connections } = await new DeeplineClient().listWorkspaceIntegrationConnections();
|
|
848
|
+
if (shouldEmitJson(options.json))
|
|
849
|
+
console.log(JSON.stringify(connections));
|
|
850
|
+
else if (connections.length === 0)
|
|
851
|
+
console.log("No workspace connections.");
|
|
852
|
+
else
|
|
853
|
+
for (const row of connections)
|
|
854
|
+
console.log(`${row.provider} ${row.status} ${row.label}`);
|
|
855
|
+
});
|
|
856
|
+
tools.command("workspace-connection <provider> <action>").description(
|
|
857
|
+
"Open shared OAuth setup or disconnect the current connection."
|
|
858
|
+
).option("--json", "Print the result as JSON").action(
|
|
859
|
+
async (provider, action, options) => {
|
|
860
|
+
if (provider !== "hubspot" && provider !== "google_calendar_availability")
|
|
861
|
+
throw new Error("Choose hubspot or google_calendar_availability.");
|
|
862
|
+
if (action !== "connect" && action !== "reconnect" && action !== "replace" && action !== "disconnect")
|
|
863
|
+
throw new Error("Choose connect, reconnect, replace, or disconnect.");
|
|
864
|
+
const client = new DeeplineClient();
|
|
865
|
+
const { connections } = await client.listWorkspaceIntegrationConnections();
|
|
866
|
+
const row = connections.find(
|
|
867
|
+
(connection) => connection.provider === provider
|
|
868
|
+
);
|
|
869
|
+
const result = await client.manageWorkspaceIntegrationConnection({
|
|
870
|
+
provider,
|
|
871
|
+
action,
|
|
872
|
+
connectionId: row?.id,
|
|
873
|
+
authorizationVersion: row?.authorizationVersion
|
|
874
|
+
});
|
|
875
|
+
if (shouldEmitJson(options.json)) console.log(JSON.stringify(result));
|
|
876
|
+
else console.log(result.url ?? "Workspace connection disconnected.");
|
|
877
|
+
}
|
|
878
|
+
);
|
|
879
|
+
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) => {
|
|
880
|
+
const page = await new DeeplineClient().listAvailabilityCalendars(
|
|
881
|
+
options.cursor
|
|
882
|
+
);
|
|
883
|
+
if (shouldEmitJson(options.json)) {
|
|
884
|
+
console.log(JSON.stringify(page));
|
|
885
|
+
return;
|
|
886
|
+
}
|
|
887
|
+
for (const calendar of page.calendars)
|
|
888
|
+
console.log(`${JSON.stringify(calendar.name)} ${calendar.id}`);
|
|
889
|
+
if (page.cursor)
|
|
890
|
+
console.log(`Next page cursor: ${JSON.stringify(page.cursor)}`);
|
|
891
|
+
});
|
|
844
892
|
tools.command("connect <provider>").description(
|
|
845
893
|
"Get a dashboard connection link or connect a provider with credentials or OAuth."
|
|
846
894
|
).addOption(
|
|
@@ -849,16 +897,22 @@ Output:
|
|
|
849
897
|
"oauth",
|
|
850
898
|
"preset",
|
|
851
899
|
"scopes",
|
|
852
|
-
"optionalScopes"
|
|
900
|
+
"optionalScopes",
|
|
901
|
+
"expectedConnectionId"
|
|
853
902
|
])
|
|
854
903
|
).option(
|
|
855
904
|
"--credentials-file <path>",
|
|
856
905
|
"JSON object of credential field names and string values; keep this file private"
|
|
857
|
-
).option("--oauth", "Return an OAuth authorization URL").option("--preset <id>", "Server-defined access preset (HubSpot only)").option("--scopes <scopes>", "Comma-separated OAuth scopes").option(
|
|
906
|
+
).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(
|
|
858
907
|
"--optional-scopes <scopes>",
|
|
859
908
|
"Comma-separated optional OAuth scopes"
|
|
860
909
|
).option("--json", "Print JSON without credential values").action(
|
|
861
910
|
async (provider, options) => {
|
|
911
|
+
if (options.expectedConnectionId !== void 0 && (!options.expectedConnectionId.trim() || provider !== "google_calendar_availability" || !options.credentialsFile || options.oauth)) {
|
|
912
|
+
throw new Error(
|
|
913
|
+
"--expected-connection-id requires Calendar availability and a credentials file."
|
|
914
|
+
);
|
|
915
|
+
}
|
|
862
916
|
if (options.link) {
|
|
863
917
|
const link = await new DeeplineClient().getIntegrationConnectLink(
|
|
864
918
|
provider
|
|
@@ -913,7 +967,8 @@ Output:
|
|
|
913
967
|
}
|
|
914
968
|
const result = await new DeeplineClient().setIntegrationCredentials(
|
|
915
969
|
provider,
|
|
916
|
-
credentials
|
|
970
|
+
credentials,
|
|
971
|
+
{ expectedConnectionId: options.expectedConnectionId }
|
|
917
972
|
);
|
|
918
973
|
if (!result.ok || result.credential_saved !== true) {
|
|
919
974
|
throw new Error(
|
|
@@ -1066,7 +1121,7 @@ Examples:
|
|
|
1066
1121
|
process.exitCode = await narrowView();
|
|
1067
1122
|
return;
|
|
1068
1123
|
}
|
|
1069
|
-
const { describeAnything } = await import("./describe-
|
|
1124
|
+
const { describeAnything } = await import("./describe-CI4MREFF.mjs");
|
|
1070
1125
|
process.exitCode = await describeAnything(
|
|
1071
1126
|
toolId,
|
|
1072
1127
|
{
|
|
@@ -613,6 +613,41 @@ Examples:
|
|
|
613
613
|
[[cli:deepline tools balance leadmagic --json]]
|
|
614
614
|
`
|
|
615
615
|
},
|
|
616
|
+
"tools workspace-connections": {
|
|
617
|
+
core: `
|
|
618
|
+
Purpose:
|
|
619
|
+
List shared OAuth connections in an enrolled internal Enterprise workspace.
|
|
620
|
+
Output:
|
|
621
|
+
[[cli:Use --json for records with provider, status, label, and connection version.]]
|
|
622
|
+
Cost:
|
|
623
|
+
Does not spend Deepline credits.
|
|
624
|
+
`,
|
|
625
|
+
rolloutFeature: "google-calendar-availability-pilot"
|
|
626
|
+
},
|
|
627
|
+
"tools workspace-connection": {
|
|
628
|
+
core: `
|
|
629
|
+
Purpose:
|
|
630
|
+
Manage a shared HubSpot or Google Calendar connection as a workspace admin.
|
|
631
|
+
Input:
|
|
632
|
+
Pass the provider and connect, reconnect, replace, or disconnect.
|
|
633
|
+
Complete OAuth consent in the browser.
|
|
634
|
+
Cost:
|
|
635
|
+
Does not spend Deepline credits.
|
|
636
|
+
`,
|
|
637
|
+
rolloutFeature: "google-calendar-availability-pilot"
|
|
638
|
+
},
|
|
639
|
+
"tools availability-calendars": {
|
|
640
|
+
core: `
|
|
641
|
+
Purpose:
|
|
642
|
+
Find out where to get calendar IDs for the managed availability pilot.
|
|
643
|
+
Output:
|
|
644
|
+
Instructions to get calendar IDs from Google Calendar or the calendar owners
|
|
645
|
+
and use those IDs in tool and Play inputs.
|
|
646
|
+
Cost:
|
|
647
|
+
Does not spend Deepline credits.
|
|
648
|
+
`,
|
|
649
|
+
rolloutFeature: "google-calendar-availability-pilot"
|
|
650
|
+
},
|
|
616
651
|
"tools connect": {
|
|
617
652
|
core: `
|
|
618
653
|
Purpose:
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
autoDetectBaseUrl,
|
|
3
3
|
resolveApiKeyForBaseUrl
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-E7TP25I2.mjs";
|
|
5
5
|
import {
|
|
6
6
|
SDK_VERSION,
|
|
7
7
|
agentSessionIdFromEnvironment,
|
|
8
8
|
deploymentProtectionHeaders,
|
|
9
9
|
detectAgentRuntime
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-TG2UB3A5.mjs";
|
|
11
11
|
import {
|
|
12
12
|
DeeplineError
|
|
13
13
|
} from "./chunk-ZPGGW27Q.mjs";
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
HttpClient,
|
|
3
3
|
resolveCliCommandContext,
|
|
4
4
|
resolveConfig
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-E7TP25I2.mjs";
|
|
6
6
|
import {
|
|
7
7
|
detectAgentRuntime
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-TG2UB3A5.mjs";
|
|
9
9
|
import {
|
|
10
10
|
DeeplineError,
|
|
11
11
|
readToolUpstreamResponse,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } var _class;
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkEGTUOYYGjs = require('./chunk-EGTUOYYG.js');
|
|
4
4
|
|
|
5
5
|
// src/cli/progress.ts
|
|
6
6
|
var _worker_threads = require('worker_threads');
|
|
@@ -19,7 +19,7 @@ var CliProgress = (_class = class {
|
|
|
19
19
|
__init9() {this.quiet = false}
|
|
20
20
|
// --json output is one JSON document: progress never renders under it.
|
|
21
21
|
constructor(enabled) {;_class.prototype.__init.call(this);_class.prototype.__init2.call(this);_class.prototype.__init3.call(this);_class.prototype.__init4.call(this);_class.prototype.__init5.call(this);_class.prototype.__init6.call(this);_class.prototype.__init7.call(this);_class.prototype.__init8.call(this);_class.prototype.__init9.call(this);
|
|
22
|
-
this.enabled = enabled && !
|
|
22
|
+
this.enabled = enabled && !_chunkEGTUOYYGjs.isJsonOutputMode.call(void 0, );
|
|
23
23
|
}
|
|
24
24
|
setLogWriter(writer) {
|
|
25
25
|
this.logWriter = writer;
|
|
@@ -59,7 +59,7 @@ var CliProgress = (_class = class {
|
|
|
59
59
|
this.logWriter(line);
|
|
60
60
|
return;
|
|
61
61
|
}
|
|
62
|
-
if (
|
|
62
|
+
if (_chunkEGTUOYYGjs.isJsonOutputMode.call(void 0, )) return;
|
|
63
63
|
if (!this.enabled) {
|
|
64
64
|
process.stderr.write(`${line}
|
|
65
65
|
`);
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-F6QV42MC.mjs";
|
|
4
4
|
import {
|
|
5
5
|
parseLogLevel
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-MG6YL4M7.mjs";
|
|
7
7
|
import {
|
|
8
8
|
setDottedInputValue
|
|
9
9
|
} from "./chunk-FKD3KL5Q.mjs";
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
argsWantJson,
|
|
12
12
|
jsonFieldArgs,
|
|
13
13
|
parseJsonFields
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-62SOZ67Y.mjs";
|
|
15
15
|
import {
|
|
16
16
|
DeeplineError
|
|
17
17
|
} from "./chunk-ZPGGW27Q.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkEGTUOYYGjs = require('./chunk-EGTUOYYG.js');
|
|
4
4
|
|
|
5
5
|
// src/cli/feedback-preferences.ts
|
|
6
6
|
|
|
@@ -57,7 +57,7 @@ function rejectRestrictedFeedback(options) {
|
|
|
57
57
|
const code = restriction === "off" ? "FEEDBACK_DISABLED" : "FEEDBACK_APPROVAL_REQUIRED";
|
|
58
58
|
const message = restriction === "off" ? 'Feedback is in mode "off". Do not ask the user if they want to send feedback. Use --requested only if they explicitly request it without being prompted.' : "Ask the user if they wish to send feedback. If they agree, rerun the send command with --requested. To change the setting, run deepline settings feedback --help. Agents must get user approval before turning feedback on.";
|
|
59
59
|
if (options.json) {
|
|
60
|
-
|
|
60
|
+
_chunkEGTUOYYGjs.printCommandEnvelope.call(void 0,
|
|
61
61
|
{ ok: false, code, exitCode: 2, message },
|
|
62
62
|
{ json: true }
|
|
63
63
|
);
|
|
@@ -49,7 +49,7 @@ var SDK_RELEASE = {
|
|
|
49
49
|
// getters keep their established compatibility behavior.
|
|
50
50
|
// 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
|
|
51
51
|
// 0.3.90 is the first deliberately versioned SDK release for API v3.
|
|
52
|
-
version: "0.3.
|
|
52
|
+
version: "0.3.534",
|
|
53
53
|
updateSummary: {
|
|
54
54
|
introducedIn: "0.3.90",
|
|
55
55
|
summary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release."
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkGTXSUPCJjs = require('./chunk-GTXSUPCJ.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkGVGQ6NZWjs = require('./chunk-GVGQ6NZW.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkHCD36BP6js = require('./chunk-HCD36BP6.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkEGTUOYYGjs = require('./chunk-EGTUOYYG.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkXBK6WCVAjs = require('./chunk-XBK6WCVA.js');
|
|
17
17
|
|
|
18
18
|
// src/cli/commands/update.ts
|
|
19
19
|
var _child_process = require('child_process');
|
|
@@ -495,7 +495,7 @@ function normalizedNpmPrefix(value) {
|
|
|
495
495
|
}
|
|
496
496
|
function resolveNpmGlobalPrefix(env) {
|
|
497
497
|
try {
|
|
498
|
-
const plan =
|
|
498
|
+
const plan = _chunkHCD36BP6js.resolveShellSpawn.call(void 0,
|
|
499
499
|
"npm",
|
|
500
500
|
["prefix", "-g"],
|
|
501
501
|
process.platform,
|
|
@@ -556,8 +556,8 @@ function resolveUpdatePlan(options = {}) {
|
|
|
556
556
|
const npmGlobalPrefix = options.npmGlobalPrefix !== void 0 ? options.npmGlobalPrefix : resolveNpmGlobalPrefix(env);
|
|
557
557
|
const hasVerifiedNpmOwnership = inferredInstallPrefix !== null && normalizedNpmPrefix(inferredInstallPrefix) === normalizedNpmPrefix(npmGlobalPrefix);
|
|
558
558
|
const installPrefix = options.requireVerifiedNpmOwnership ? hasVerifiedNpmOwnership ? inferredInstallPrefix : null : inferredInstallPrefix;
|
|
559
|
-
const npmVersion = options.npmVersion === void 0 ?
|
|
560
|
-
const npmGlobalInstallFlags =
|
|
559
|
+
const npmVersion = options.npmVersion === void 0 ? _chunkGTXSUPCJjs.readNpmVersion.call(void 0, env) : options.npmVersion;
|
|
560
|
+
const npmGlobalInstallFlags = _chunkGTXSUPCJjs.npmSupportsAllowScripts.call(void 0, npmVersion) ? [...NPM_SDK_INSTALL_COMMON_FLAGS, "--allow-scripts=esbuild"] : NPM_SDK_INSTALL_COMMON_FLAGS;
|
|
561
561
|
const args = installPrefix ? [
|
|
562
562
|
"install",
|
|
563
563
|
"-g",
|
|
@@ -567,7 +567,7 @@ function resolveUpdatePlan(options = {}) {
|
|
|
567
567
|
packageSpec
|
|
568
568
|
] : ["install", "-g", ...npmGlobalInstallFlags, packageSpec];
|
|
569
569
|
const fallbackRegistryUrl = options.npmFallbackRegistryUrl !== void 0 ? options.npmFallbackRegistryUrl : publicNpmFallbackRegistryUrl(
|
|
570
|
-
_optionalChain([env, 'access', _22 => _22.DEEPLINE_HOST_URL, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()]) ||
|
|
570
|
+
_optionalChain([env, 'access', _22 => _22.DEEPLINE_HOST_URL, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()]) || _chunkXBK6WCVAjs.autoDetectBaseUrl.call(void 0, )
|
|
571
571
|
);
|
|
572
572
|
return {
|
|
573
573
|
kind: "npm-global",
|
|
@@ -816,7 +816,7 @@ function sidecarInstallFailure(versionDir) {
|
|
|
816
816
|
function runCommand(command, args, env = process.env) {
|
|
817
817
|
return new Promise((resolveResult) => {
|
|
818
818
|
let output = "";
|
|
819
|
-
const plan =
|
|
819
|
+
const plan = _chunkHCD36BP6js.resolveShellSpawn.call(void 0, command, args, process.platform, env);
|
|
820
820
|
const child = _child_process.spawn.call(void 0, plan.command, plan.args, {
|
|
821
821
|
stdio: ["inherit", "pipe", "pipe"],
|
|
822
822
|
shell: plan.shell,
|
|
@@ -1199,14 +1199,14 @@ async function publishedVersionSupportsPin(version, fallbackRegistryUrl) {
|
|
|
1199
1199
|
throw _nullishCoalesce(lastError, () => ( new Error("No npm registry was available")));
|
|
1200
1200
|
}
|
|
1201
1201
|
async function runUpdateCommand(options, dependencies = {}) {
|
|
1202
|
-
const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => (
|
|
1202
|
+
const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => ( _chunkXBK6WCVAjs.autoDetectBaseUrl));
|
|
1203
1203
|
const resolvePlan = _nullishCoalesce(dependencies.resolvePlan, () => ( resolveUpdatePlan));
|
|
1204
1204
|
const runPlan = _nullishCoalesce(dependencies.runPlan, () => ( runUpdatePlan));
|
|
1205
1205
|
const syncSkills = _nullishCoalesce(dependencies.syncSkillsIfNeeded, () => ( (async () => {
|
|
1206
1206
|
const originalWrite = process.stdout.write.bind(process.stdout);
|
|
1207
1207
|
process.stdout.write = (() => true);
|
|
1208
1208
|
try {
|
|
1209
|
-
const exitCode = await
|
|
1209
|
+
const exitCode = await _chunkGVGQ6NZWjs.runSkillsCommand.call(void 0, { json: true });
|
|
1210
1210
|
if (exitCode !== 0) {
|
|
1211
1211
|
throw new Error(
|
|
1212
1212
|
`Deepline skills update failed with exit ${exitCode}.`
|
|
@@ -1277,11 +1277,11 @@ async function runUpdateCommand(options, dependencies = {}) {
|
|
|
1277
1277
|
]
|
|
1278
1278
|
};
|
|
1279
1279
|
if (options.json && !options.executeWithJson) {
|
|
1280
|
-
|
|
1280
|
+
_chunkEGTUOYYGjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: true });
|
|
1281
1281
|
return 0;
|
|
1282
1282
|
}
|
|
1283
1283
|
if (options.printCommand) {
|
|
1284
|
-
|
|
1284
|
+
_chunkEGTUOYYGjs.printCommandEnvelope.call(void 0,
|
|
1285
1285
|
{
|
|
1286
1286
|
...plan,
|
|
1287
1287
|
render: {
|
|
@@ -1294,7 +1294,7 @@ async function runUpdateCommand(options, dependencies = {}) {
|
|
|
1294
1294
|
return 0;
|
|
1295
1295
|
}
|
|
1296
1296
|
if (plan.kind === "source" || plan.kind === "homebrew") {
|
|
1297
|
-
|
|
1297
|
+
_chunkEGTUOYYGjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: false });
|
|
1298
1298
|
return 0;
|
|
1299
1299
|
}
|
|
1300
1300
|
stderr.write(`Updating Deepline SDK/CLI with: ${plan.manualCommand}
|
|
@@ -1324,7 +1324,7 @@ To retry with full installer output, run: deepline skills install
|
|
|
1324
1324
|
);
|
|
1325
1325
|
}
|
|
1326
1326
|
if (options.executeWithJson && options.json) {
|
|
1327
|
-
|
|
1327
|
+
_chunkEGTUOYYGjs.printCommandEnvelope.call(void 0,
|
|
1328
1328
|
{
|
|
1329
1329
|
ok: true,
|
|
1330
1330
|
pinnedVersion
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getActiveCliProgress
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-KJVY7V2X.mjs";
|
|
4
4
|
import {
|
|
5
5
|
maybeReportAutomaticSkillsSyncFailure
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-5LZ5VSOK.mjs";
|
|
7
7
|
import {
|
|
8
8
|
DEFAULT_SKILL_AGENTS,
|
|
9
9
|
KNOWN_SKILL_AGENTS,
|
|
@@ -14,17 +14,17 @@ import {
|
|
|
14
14
|
sdkCliStateDirPath,
|
|
15
15
|
skillsAgentPathSegment,
|
|
16
16
|
writeSdkSkillsLocalVersion
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-E7TP25I2.mjs";
|
|
18
18
|
import {
|
|
19
19
|
SDK_API_CONTRACT,
|
|
20
20
|
SDK_API_MAJOR,
|
|
21
21
|
SDK_VERSION,
|
|
22
22
|
deploymentProtectionHeaders,
|
|
23
23
|
detectAgentRuntime
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-TG2UB3A5.mjs";
|
|
25
25
|
import {
|
|
26
26
|
SDK_RELEASE
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-AK622KIG.mjs";
|
|
28
28
|
|
|
29
29
|
// src/compat.ts
|
|
30
30
|
import { randomUUID } from "crypto";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
traceCliSpan
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-7GFR5Y4J.mjs";
|
|
4
4
|
import {
|
|
5
5
|
checkSdkCompatibility,
|
|
6
6
|
enforceSdkCompatibilityResponse,
|
|
7
7
|
flushDeferredSkillsSyncNotices
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-BDWZBMGV.mjs";
|
|
9
9
|
|
|
10
10
|
// src/cli/play-run-admission.ts
|
|
11
11
|
function usesInlinePlayAdmission(command, args) {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkXBK6WCVAjs = require('./chunk-XBK6WCVA.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkUWNVFAFNjs = require('./chunk-UWNVFAFN.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
var _chunkSQWET4SLjs = require('./chunk-SQWET4SL.js');
|
|
@@ -150,7 +150,7 @@ function buildEnvironmentContext() {
|
|
|
150
150
|
node_version: process.version,
|
|
151
151
|
runtime: "Node.js",
|
|
152
152
|
hostname: _os.hostname.call(void 0, ),
|
|
153
|
-
agent_runtime:
|
|
153
|
+
agent_runtime: _chunkUWNVFAFNjs.detectAgentRuntime.call(void 0, )
|
|
154
154
|
};
|
|
155
155
|
for (const key of ["CLAUDE_CODE_REMOTE", "DEEPLINE_PLUGIN_MODE"]) {
|
|
156
156
|
const normalized = _optionalChain([process, 'access', _5 => _5.env, 'access', _6 => _6[key], 'optionalAccess', _7 => _7.trim, 'call', _8 => _8()]);
|
|
@@ -171,18 +171,18 @@ function buildEnvironmentContext() {
|
|
|
171
171
|
return context;
|
|
172
172
|
}
|
|
173
173
|
function failureReportHeaders(apiKey) {
|
|
174
|
-
const agentSessionId =
|
|
174
|
+
const agentSessionId = _chunkUWNVFAFNjs.agentSessionIdFromEnvironment.call(void 0, );
|
|
175
175
|
return {
|
|
176
|
-
...
|
|
176
|
+
..._chunkUWNVFAFNjs.deploymentProtectionHeaders.call(void 0, ),
|
|
177
177
|
...agentSessionId ? { "X-Deepline-Agent-Session-Id": agentSessionId } : {},
|
|
178
178
|
Authorization: `Bearer ${apiKey}`,
|
|
179
179
|
"Content-Type": "application/json",
|
|
180
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
180
|
+
"User-Agent": `deepline-ts-sdk/${_chunkUWNVFAFNjs.SDK_VERSION}`,
|
|
181
181
|
"X-Deepline-Client-Family": "sdk",
|
|
182
182
|
"X-Deepline-CLI-Family": "sdk",
|
|
183
|
-
"X-Deepline-Agent-Runtime":
|
|
184
|
-
"X-Deepline-CLI-Version":
|
|
185
|
-
"X-Deepline-SDK-Version":
|
|
183
|
+
"X-Deepline-Agent-Runtime": _chunkUWNVFAFNjs.detectAgentRuntime.call(void 0, ),
|
|
184
|
+
"X-Deepline-CLI-Version": _chunkUWNVFAFNjs.SDK_VERSION,
|
|
185
|
+
"X-Deepline-SDK-Version": _chunkUWNVFAFNjs.SDK_VERSION
|
|
186
186
|
};
|
|
187
187
|
}
|
|
188
188
|
async function postFailureReport(input) {
|
|
@@ -210,7 +210,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
|
|
|
210
210
|
if (isFailureReportingDisabled()) return false;
|
|
211
211
|
let apiKey = "";
|
|
212
212
|
try {
|
|
213
|
-
apiKey =
|
|
213
|
+
apiKey = _chunkXBK6WCVAjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
|
|
214
214
|
} catch (e2) {
|
|
215
215
|
return false;
|
|
216
216
|
}
|
|
@@ -237,7 +237,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
|
|
|
237
237
|
failure_code: failureCode2,
|
|
238
238
|
failure_stage: failureStage,
|
|
239
239
|
error_body: "Automatic Deepline skills installation failed.",
|
|
240
|
-
cli_version:
|
|
240
|
+
cli_version: _chunkUWNVFAFNjs.SDK_VERSION,
|
|
241
241
|
context: {
|
|
242
242
|
environment: buildEnvironmentContext(),
|
|
243
243
|
skills_sync: {
|
|
@@ -357,7 +357,7 @@ function buildFailureReport(input) {
|
|
|
357
357
|
failure_kind: failureKind,
|
|
358
358
|
failure_code: code,
|
|
359
359
|
failure_stage: input.error === void 0 ? "command_exit" : "cli_main",
|
|
360
|
-
cli_version:
|
|
360
|
+
cli_version: _chunkUWNVFAFNjs.SDK_VERSION,
|
|
361
361
|
context: {
|
|
362
362
|
base_url: redactFailureText(input.baseUrl, 400),
|
|
363
363
|
command_summary: sanitizeCommand(input.argv),
|
|
@@ -377,8 +377,8 @@ async function maybeReportSdkCliFailure(input) {
|
|
|
377
377
|
if (isServerLoggedPlayRunStartFailure(input)) return false;
|
|
378
378
|
const exitCode = resolvedExitCode(input);
|
|
379
379
|
if (!shouldReport({ exitCode, error: input.error })) return false;
|
|
380
|
-
const baseUrl =
|
|
381
|
-
const apiKey =
|
|
380
|
+
const baseUrl = _chunkXBK6WCVAjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
381
|
+
const apiKey = _chunkXBK6WCVAjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
382
382
|
if (!apiKey) return false;
|
|
383
383
|
return postFailureReport({
|
|
384
384
|
baseUrl,
|