deepline 0.3.357 → 0.3.359
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/release.ts +7 -1
- package/dist/bundling-sources/shared_libs/monitors/deactivation-reasons.ts +14 -1
- package/dist/bundling-sources/shared_libs/play-runtime/async-operation.ts +52 -19
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +35 -18
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/run-ledger-outbox-recovery.ts +202 -44
- package/dist/cli/auth-CN5UHM3M.js +33 -0
- package/dist/cli/{auth-5Y2YV5LY.mjs → auth-ZOW4L37H.mjs} +6 -4
- package/dist/cli/{billing-UOFR7KDB.mjs → billing-JPMZX77W.mjs} +5 -5
- package/dist/cli/{billing-Y6IKDJ6H.js → billing-YZJ5Q4ZC.js} +74 -74
- package/dist/cli/{chunk-LJTZVC2T.mjs → chunk-36TKIMVG.mjs} +2 -2
- package/dist/cli/{chunk-SXXUOZRS.js → chunk-3EF4OMSE.js} +6 -1
- package/dist/cli/{chunk-2NZUC5OS.mjs → chunk-4DCOBHTZ.mjs} +4 -4
- package/dist/cli/{chunk-4YXJTQ5X.js → chunk-5ZKZWXVN.js} +5 -5
- package/dist/cli/{chunk-NZ6BT4NL.mjs → chunk-72362UER.mjs} +7 -7
- package/dist/cli/{chunk-5UNTNKNX.js → chunk-ARNODHMC.js} +6 -6
- package/dist/cli/{chunk-N47R7S3E.mjs → chunk-BJYW3XTM.mjs} +6 -1
- package/dist/cli/{chunk-SMLKQAEB.mjs → chunk-DZ34Z4DO.mjs} +3 -3
- package/dist/cli/{chunk-SCY4UCEZ.js → chunk-EMMXSY6F.js} +75 -50
- package/dist/cli/{chunk-VG5WMYSF.mjs → chunk-FCZIE4UQ.mjs} +3 -3
- package/dist/cli/{chunk-EWTVIN3O.js → chunk-I7XYIKAK.js} +47 -47
- package/dist/cli/{chunk-VXH4225Y.mjs → chunk-JHX6XSLT.mjs} +27 -2
- package/dist/cli/{chunk-ZYPSNUDU.js → chunk-LDGO56ZU.js} +231 -231
- package/dist/cli/{chunk-WQSV34KV.js → chunk-LXKJTNB3.js} +11 -11
- package/dist/cli/{chunk-O7IM72KW.mjs → chunk-M2DOAC65.mjs} +15 -15
- package/dist/cli/{chunk-R5P3KFF5.js → chunk-P4CCF5ZV.js} +8 -8
- package/dist/cli/{chunk-CPQIVH6G.js → chunk-QDLSDKEK.js} +8 -8
- package/dist/cli/chunk-QFBHEQCQ.mjs +1421 -0
- package/dist/cli/chunk-QILHWZFP.js +1421 -0
- package/dist/cli/{chunk-C2EHMMME.js → chunk-SVAI3Z3Q.js} +64 -60
- package/dist/cli/{chunk-2AROJ4EZ.mjs → chunk-U2G2WO43.mjs} +2 -2
- package/dist/cli/{chunk-6P235JSN.js → chunk-UC6KM43R.js} +15 -15
- package/dist/cli/{chunk-XYD76KJB.mjs → chunk-UKXON54N.mjs} +8 -8
- package/dist/cli/{chunk-NEMHJYA4.js → chunk-VGXKDHTJ.js} +2 -2
- package/dist/cli/{chunk-J4A4MRBK.js → chunk-WLDT7GTI.js} +26 -26
- package/dist/cli/{chunk-IWBFG4XI.mjs → chunk-WNBXT425.mjs} +1 -1
- package/dist/cli/{chunk-PJYCAGKK.mjs → chunk-WR7H6MZ6.mjs} +1 -1
- package/dist/cli/{chunk-QYCAH7SM.mjs → chunk-ZY6QZZ5K.mjs} +6 -2
- package/dist/cli/{client-23QTYYIR.mjs → client-32IMOGBO.mjs} +4 -4
- package/dist/cli/client-TNHDPNDK.js +20 -0
- package/dist/cli/command-docs.d.mts +50 -0
- package/dist/cli/command-docs.d.ts +50 -0
- package/dist/cli/command-docs.js +13 -0
- package/dist/cli/command-docs.mjs +13 -0
- package/dist/cli/{csv-VKEF5C65.mjs → csv-4QWZUAJP.mjs} +3 -3
- package/dist/cli/{csv-SQIEBX66.js → csv-BCPDP5UL.js} +12 -12
- package/dist/cli/{db-Z33ZRE3N.js → db-OF2SH2BI.js} +30 -30
- package/dist/cli/{db-KX7FDHL4.mjs → db-T4CMZPJQ.mjs} +5 -5
- package/dist/cli/{describe-K2SJ22B3.mjs → describe-5WQ55FIR.mjs} +16 -16
- package/dist/cli/{describe-5ZQ6KIJH.js → describe-LIHZ4U6X.js} +21 -21
- package/dist/cli/{executions-KCZZY6SS.js → executions-JSXFOVBH.js} +7 -7
- package/dist/cli/{executions-452G2REF.mjs → executions-R7WAC2JA.mjs} +5 -5
- package/dist/cli/{feedback-55HU4EQY.mjs → feedback-2V5PBCPX.mjs} +3 -3
- package/dist/cli/{feedback-BM7ZNH7Y.js → feedback-Y42C4WP2.js} +7 -7
- package/dist/cli/git-D5SJIU36.js +23 -0
- package/dist/cli/{git-CAPESVAJ.mjs → git-Y6VXODAK.mjs} +4 -4
- package/dist/cli/index.js +183 -83
- package/dist/cli/index.mjs +145 -45
- package/dist/cli/{legacy-noops-PV5AWTIZ.js → legacy-noops-KDRTNUUC.js} +7 -7
- package/dist/cli/{legacy-noops-3B3MG33Y.mjs → legacy-noops-YEEZNYIS.mjs} +4 -4
- package/dist/cli/{monitors-43R6CUFK.mjs → monitors-7GHIY5BR.mjs} +5 -5
- package/dist/cli/{monitors-DVFEJHQT.js → monitors-RVXH73TC.js} +86 -86
- package/dist/cli/{org-BGCB45VI.js → org-OMUUGH6W.js} +61 -61
- package/dist/cli/{org-X5WSLJRD.mjs → org-ZGU7BBDD.mjs} +5 -5
- package/dist/cli/{play-OFO6XZ5L.mjs → play-PB6LSSNG.mjs} +11 -11
- package/dist/cli/play-XKIDMLH7.js +153 -0
- package/dist/cli/{providers-L2MPYA3E.mjs → providers-GFR4DPBC.mjs} +5 -5
- package/dist/cli/{providers-RJYHQC4J.js → providers-J3OTP5VK.js} +8 -8
- package/dist/cli/{quickstart-E6OWYYMT.js → quickstart-ALUTGFAA.js} +7 -7
- package/dist/cli/{quickstart-NHFMGZ3B.mjs → quickstart-MXH3LZQ5.mjs} +5 -5
- package/dist/cli/{search-IPTZAOUE.mjs → search-OVRR4XOJ.mjs} +6 -6
- package/dist/cli/search-X3IZW2TP.js +26 -0
- package/dist/cli/{secrets-6LD4CA2X.js → secrets-KT4OFUKB.js} +14 -14
- package/dist/cli/{secrets-TCOPPNXR.mjs → secrets-VXXVGDET.mjs} +5 -5
- package/dist/cli/{sessions-QV4LUKEP.js → sessions-GXDEX5EM.js} +5 -5
- package/dist/cli/{sessions-D4JETMAW.mjs → sessions-JP4XKXEJ.mjs} +4 -4
- package/dist/cli/{settings-JOYKXSY7.js → settings-BJT3RAJD.js} +75 -75
- package/dist/cli/{settings-IVJPCORG.mjs → settings-MMC5Q5FJ.mjs} +8 -8
- package/dist/cli/{setup-WCKQK7FE.mjs → setup-6LWUQ34C.mjs} +8 -8
- package/dist/cli/{setup-MIJZTYMH.js → setup-RP4VN7WE.js} +43 -43
- package/dist/cli/skills-3S5UET5W.js +28 -0
- package/dist/cli/{skills-GYWMUDDF.mjs → skills-VRVG63GO.mjs} +4 -4
- package/dist/cli/{tools-ILYNEPGQ.mjs → tools-M4VNLWYB.mjs} +8 -8
- package/dist/cli/tools-MTRW5VF6.js +40 -0
- package/dist/cli/update-5PPNAWY7.js +28 -0
- package/dist/cli/{update-P3VIHMC6.mjs → update-HXQVI37L.mjs} +6 -6
- package/dist/cli/{workflow-YWKK3A4X.js → workflow-JTA3DWCM.js} +19 -19
- package/dist/cli/{workflow-A6ID4C6N.mjs → workflow-PE2IONVL.mjs} +9 -9
- package/dist/index.js +13 -13
- package/dist/index.mjs +12 -12
- package/dist/install-integrity.json +80 -74
- package/dist/release.d.mts +5 -1
- package/dist/release.d.ts +5 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/package.json +6 -1
- package/dist/cli/auth-AABYKR2S.js +0 -31
- package/dist/cli/client-3DYV3HZ4.js +0 -20
- package/dist/cli/git-VESXOJ4M.js +0 -23
- package/dist/cli/play-ZO4HDGMC.js +0 -153
- package/dist/cli/search-2FJA6OH4.js +0 -26
- package/dist/cli/skills-JL4J5CII.js +0 -28
- package/dist/cli/tools-ZOKG4AX4.js +0 -40
- package/dist/cli/update-WUMDEAEE.js +0 -28
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _chunkWJYPBHTEjs = require('./chunk-WJYPBHTE.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkARNODHMCjs = require('./chunk-ARNODHMC.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -22,7 +22,7 @@ var _chunk5UNTNKNXjs = require('./chunk-5UNTNKNX.js');
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _chunk5ZKZWXVNjs = require('./chunk-5ZKZWXVN.js');
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
var _chunk7P5AA3SNjs = require('./chunk-7P5AA3SN.js');
|
|
@@ -81,6 +81,10 @@ var DEFAULT_V1_SKILL_NAMES = [
|
|
|
81
81
|
"clay-to-deepline",
|
|
82
82
|
"deepline-analytics",
|
|
83
83
|
"deepline-engine",
|
|
84
|
+
// Retired: its guidance lives in `feedback send --help` and `sessions send
|
|
85
|
+
// --help`. Kept as a stub because installed CLIs list it and refuse to
|
|
86
|
+
// sync any skill when the published index lacks a listed name. Move to
|
|
87
|
+
// LEGACY_SKILL_NAMES_TO_REMOVE once those CLIs are out of the field.
|
|
84
88
|
"deepline-feedback",
|
|
85
89
|
"deepline-gtm",
|
|
86
90
|
"deepline-plays",
|
|
@@ -117,7 +121,7 @@ function skillsSourceUrl(baseUrl) {
|
|
|
117
121
|
function buildSkillsAddArgs(baseUrl, skillName, options = {}) {
|
|
118
122
|
const skillNames = Array.isArray(skillName) ? skillName : [skillName];
|
|
119
123
|
const [firstSkillName, ...extraSkillNames] = skillNames;
|
|
120
|
-
const agents = _nullishCoalesce(options.agents, () => (
|
|
124
|
+
const agents = _nullishCoalesce(options.agents, () => ( _chunk5ZKZWXVNjs.DEFAULT_SKILL_AGENTS));
|
|
121
125
|
const values = {
|
|
122
126
|
skills_index_url: skillsIndexUrl(baseUrl),
|
|
123
127
|
skills_source_url: skillsSourceUrl(baseUrl),
|
|
@@ -193,7 +197,7 @@ function shouldSkipCompatibilityCheck() {
|
|
|
193
197
|
return value === "1" || value === "true" || value === "yes";
|
|
194
198
|
}
|
|
195
199
|
function sdkCompatibilityCachePath(baseUrl, homeDir = _os.homedir.call(void 0, )) {
|
|
196
|
-
return _path.join.call(void 0,
|
|
200
|
+
return _path.join.call(void 0, _chunk5ZKZWXVNjs.sdkCliStateDirPath.call(void 0, baseUrl, homeDir), "compat-cache.json");
|
|
197
201
|
}
|
|
198
202
|
function legacySdkCompatibilityCachePath(homeDir = _os.homedir.call(void 0, )) {
|
|
199
203
|
return _path.join.call(void 0, homeDir, ".cache", "deepline", "sdk-compat-cache.json");
|
|
@@ -201,9 +205,9 @@ function legacySdkCompatibilityCachePath(homeDir = _os.homedir.call(void 0, )) {
|
|
|
201
205
|
function compatibilityCacheKey(baseUrl, command, skillsVersion) {
|
|
202
206
|
return JSON.stringify({
|
|
203
207
|
baseUrl: baseUrl.replace(/\/$/, ""),
|
|
204
|
-
version:
|
|
205
|
-
apiContract:
|
|
206
|
-
apiMajor:
|
|
208
|
+
version: _chunk5ZKZWXVNjs.SDK_VERSION,
|
|
209
|
+
apiContract: _chunk5ZKZWXVNjs.SDK_API_CONTRACT,
|
|
210
|
+
apiMajor: _chunk5ZKZWXVNjs.SDK_API_MAJOR,
|
|
207
211
|
command: _optionalChain([command, 'optionalAccess', _7 => _7.trim, 'call', _8 => _8()]) || null,
|
|
208
212
|
skillsVersion: _nullishCoalesce(skillsVersion, () => ( null))
|
|
209
213
|
});
|
|
@@ -211,8 +215,8 @@ function compatibilityCacheKey(baseUrl, command, skillsVersion) {
|
|
|
211
215
|
function legacyCompatibilityCacheKey(baseUrl, command) {
|
|
212
216
|
return JSON.stringify({
|
|
213
217
|
baseUrl: baseUrl.replace(/\/$/, ""),
|
|
214
|
-
version:
|
|
215
|
-
apiContract:
|
|
218
|
+
version: _chunk5ZKZWXVNjs.SDK_VERSION,
|
|
219
|
+
apiContract: _chunk5ZKZWXVNjs.SDK_API_CONTRACT,
|
|
216
220
|
command: _optionalChain([command, 'optionalAccess', _9 => _9.trim, 'call', _10 => _10()]) || null
|
|
217
221
|
});
|
|
218
222
|
}
|
|
@@ -305,7 +309,7 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
|
|
|
305
309
|
);
|
|
306
310
|
try {
|
|
307
311
|
const url = new URL("/api/v2/sdk/compat", baseUrl);
|
|
308
|
-
url.searchParams.set("version",
|
|
312
|
+
url.searchParams.set("version", _chunk5ZKZWXVNjs.SDK_VERSION);
|
|
309
313
|
if (_optionalChain([options, 'access', _19 => _19.command, 'optionalAccess', _20 => _20.trim, 'call', _21 => _21()])) {
|
|
310
314
|
url.searchParams.set("command", options.command.trim());
|
|
311
315
|
}
|
|
@@ -318,13 +322,13 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
|
|
|
318
322
|
const response = await fetch(url, {
|
|
319
323
|
method: "GET",
|
|
320
324
|
headers: {
|
|
321
|
-
...
|
|
322
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
323
|
-
"X-Deepline-SDK-Version":
|
|
324
|
-
"X-Deepline-API-Major": String(
|
|
325
|
-
"X-Deepline-API-Contract":
|
|
325
|
+
..._chunk5ZKZWXVNjs.deploymentProtectionHeaders.call(void 0, ),
|
|
326
|
+
"User-Agent": `deepline-ts-sdk/${_chunk5ZKZWXVNjs.SDK_VERSION}`,
|
|
327
|
+
"X-Deepline-SDK-Version": _chunk5ZKZWXVNjs.SDK_VERSION,
|
|
328
|
+
"X-Deepline-API-Major": String(_chunk5ZKZWXVNjs.SDK_API_MAJOR),
|
|
329
|
+
"X-Deepline-API-Contract": _chunk5ZKZWXVNjs.SDK_API_CONTRACT,
|
|
326
330
|
"X-Deepline-CLI-Update-Preferences": "1",
|
|
327
|
-
...options.catalog ? { Authorization: `Bearer ${
|
|
331
|
+
...options.catalog ? { Authorization: `Bearer ${_chunk5ZKZWXVNjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl)}` } : {}
|
|
328
332
|
},
|
|
329
333
|
signal: controller.signal
|
|
330
334
|
});
|
|
@@ -577,7 +581,7 @@ function buildEnvironmentContext() {
|
|
|
577
581
|
node_version: process.version,
|
|
578
582
|
runtime: "Node.js",
|
|
579
583
|
hostname: _os.hostname.call(void 0, ),
|
|
580
|
-
agent_runtime:
|
|
584
|
+
agent_runtime: _chunk5ZKZWXVNjs.detectAgentRuntime.call(void 0, )
|
|
581
585
|
};
|
|
582
586
|
for (const key of ["CLAUDE_CODE_REMOTE", "DEEPLINE_PLUGIN_MODE"]) {
|
|
583
587
|
const normalized = _optionalChain([process, 'access', _32 => _32.env, 'access', _33 => _33[key], 'optionalAccess', _34 => _34.trim, 'call', _35 => _35()]);
|
|
@@ -601,12 +605,12 @@ function failureReportHeaders(apiKey) {
|
|
|
601
605
|
return {
|
|
602
606
|
Authorization: `Bearer ${apiKey}`,
|
|
603
607
|
"Content-Type": "application/json",
|
|
604
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
608
|
+
"User-Agent": `deepline-ts-sdk/${_chunk5ZKZWXVNjs.SDK_VERSION}`,
|
|
605
609
|
"X-Deepline-Client-Family": "sdk",
|
|
606
610
|
"X-Deepline-CLI-Family": "sdk",
|
|
607
|
-
"X-Deepline-Agent-Runtime":
|
|
608
|
-
"X-Deepline-CLI-Version":
|
|
609
|
-
"X-Deepline-SDK-Version":
|
|
611
|
+
"X-Deepline-Agent-Runtime": _chunk5ZKZWXVNjs.detectAgentRuntime.call(void 0, ),
|
|
612
|
+
"X-Deepline-CLI-Version": _chunk5ZKZWXVNjs.SDK_VERSION,
|
|
613
|
+
"X-Deepline-SDK-Version": _chunk5ZKZWXVNjs.SDK_VERSION
|
|
610
614
|
};
|
|
611
615
|
}
|
|
612
616
|
async function postFailureReport(input) {
|
|
@@ -634,7 +638,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
|
|
|
634
638
|
if (isFailureReportingDisabled()) return false;
|
|
635
639
|
let apiKey = "";
|
|
636
640
|
try {
|
|
637
|
-
apiKey =
|
|
641
|
+
apiKey = _chunk5ZKZWXVNjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
|
|
638
642
|
} catch (e7) {
|
|
639
643
|
return false;
|
|
640
644
|
}
|
|
@@ -661,7 +665,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
|
|
|
661
665
|
failure_code: failureCode2,
|
|
662
666
|
failure_stage: failureStage,
|
|
663
667
|
error_body: "Automatic Deepline skills installation failed.",
|
|
664
|
-
cli_version:
|
|
668
|
+
cli_version: _chunk5ZKZWXVNjs.SDK_VERSION,
|
|
665
669
|
context: {
|
|
666
670
|
environment: buildEnvironmentContext(),
|
|
667
671
|
skills_sync: {
|
|
@@ -781,7 +785,7 @@ function buildFailureReport(input) {
|
|
|
781
785
|
failure_kind: failureKind,
|
|
782
786
|
failure_code: code,
|
|
783
787
|
failure_stage: input.error === void 0 ? "command_exit" : "cli_main",
|
|
784
|
-
cli_version:
|
|
788
|
+
cli_version: _chunk5ZKZWXVNjs.SDK_VERSION,
|
|
785
789
|
context: {
|
|
786
790
|
base_url: redactFailureText(input.baseUrl, 400),
|
|
787
791
|
command_summary: sanitizeCommand(input.argv),
|
|
@@ -801,8 +805,8 @@ async function maybeReportSdkCliFailure(input) {
|
|
|
801
805
|
if (isServerLoggedPlayRunStartFailure(input)) return false;
|
|
802
806
|
const exitCode = resolvedExitCode(input);
|
|
803
807
|
if (!shouldReport({ exitCode, error: input.error })) return false;
|
|
804
|
-
const baseUrl =
|
|
805
|
-
const apiKey =
|
|
808
|
+
const baseUrl = _chunk5ZKZWXVNjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
809
|
+
const apiKey = _chunk5ZKZWXVNjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
806
810
|
if (!apiKey) return false;
|
|
807
811
|
return postFailureReport({
|
|
808
812
|
baseUrl,
|
|
@@ -823,25 +827,25 @@ var CHECK_TIMEOUT_MS2 = 3e3;
|
|
|
823
827
|
var INSTALLER_PROBE_TIMEOUT_MS = 1e3;
|
|
824
828
|
var PUBLISHED_VERIFICATION_RETRY_MS = 5 * 6e4;
|
|
825
829
|
function shouldSkipSkillsSync() {
|
|
826
|
-
if (
|
|
830
|
+
if (_chunk5ZKZWXVNjs.detectAgentRuntime.call(void 0, ) === "claude_cowork" || isCiEnvironment()) {
|
|
827
831
|
return true;
|
|
828
832
|
}
|
|
829
833
|
const value = _optionalChain([process, 'access', _56 => _56.env, 'access', _57 => _57.DEEPLINE_SKIP_SKILLS_SYNC, 'optionalAccess', _58 => _58.trim, 'call', _59 => _59(), 'access', _60 => _60.toLowerCase, 'call', _61 => _61()]);
|
|
830
834
|
return value === "1" || value === "true" || value === "yes" || value === "on";
|
|
831
835
|
}
|
|
832
836
|
function unavailableSkillsNoticePath(baseUrl) {
|
|
833
|
-
return _path.join.call(void 0,
|
|
837
|
+
return _path.join.call(void 0, _chunk5ZKZWXVNjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-sync-unavailable-version");
|
|
834
838
|
}
|
|
835
839
|
var SKILLS_SYNC_IN_PROGRESS_TTL_MS = 10 * 60 * 1e3;
|
|
836
840
|
var SKILLS_SYNC_IN_PROGRESS_PID_CAP_MS = 6 * 60 * 60 * 1e3;
|
|
837
|
-
var agentLeaseSegment =
|
|
841
|
+
var agentLeaseSegment = _chunk5ZKZWXVNjs.skillsAgentPathSegment;
|
|
838
842
|
function sortedLeaseAgents(agents) {
|
|
839
|
-
const expanded = agents.includes("*") ? [...agents, ...
|
|
843
|
+
const expanded = agents.includes("*") ? [...agents, ..._chunk5ZKZWXVNjs.KNOWN_SKILL_AGENTS] : agents;
|
|
840
844
|
return [...new Set(expanded)].sort((a, b) => a.localeCompare(b));
|
|
841
845
|
}
|
|
842
846
|
function inProgressSkillsSyncPath(baseUrl, agent) {
|
|
843
847
|
return _path.join.call(void 0,
|
|
844
|
-
|
|
848
|
+
_chunk5ZKZWXVNjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
845
849
|
`skills-sync-in-progress-${agentLeaseSegment(agent)}`
|
|
846
850
|
);
|
|
847
851
|
}
|
|
@@ -1000,7 +1004,7 @@ var SkillsStateUnavailableError = class extends Error {
|
|
|
1000
1004
|
constructor(baseUrl, error) {
|
|
1001
1005
|
const detail = error instanceof Error ? error.message : String(error);
|
|
1002
1006
|
super(
|
|
1003
|
-
`Could not save skills state in ${
|
|
1007
|
+
`Could not save skills state in ${_chunk5ZKZWXVNjs.sdkCliStateDirPath.call(void 0, baseUrl)}: ${detail}`
|
|
1004
1008
|
);
|
|
1005
1009
|
this.name = "SkillsStateUnavailableError";
|
|
1006
1010
|
}
|
|
@@ -1085,7 +1089,7 @@ function skillsInstallLeasePath(baseUrl, agents) {
|
|
|
1085
1089
|
}
|
|
1086
1090
|
function deferredSkillsNoticePath(baseUrl, agents) {
|
|
1087
1091
|
return _path.join.call(void 0,
|
|
1088
|
-
|
|
1092
|
+
_chunk5ZKZWXVNjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
1089
1093
|
`skills-sync-notice-${sortedLeaseAgents(agents).map(agentLeaseSegment).join("-")}`
|
|
1090
1094
|
);
|
|
1091
1095
|
}
|
|
@@ -1119,8 +1123,8 @@ function flushDeferredSkillsNotices(baseUrl, agents) {
|
|
|
1119
1123
|
if (text.trim()) writeSdkSkillsStatusLine(text.trimEnd());
|
|
1120
1124
|
}
|
|
1121
1125
|
function flushDeferredSkillsSyncNotices(baseUrl) {
|
|
1122
|
-
if (shouldSkipSkillsSync() ||
|
|
1123
|
-
const agents =
|
|
1126
|
+
if (shouldSkipSkillsSync() || _chunk5ZKZWXVNjs.hasActivePluginSkills.call(void 0, )) return;
|
|
1127
|
+
const agents = _chunk5ZKZWXVNjs.resolveAutoSyncSkillAgents.call(void 0, );
|
|
1124
1128
|
if (agents.length === 0) return;
|
|
1125
1129
|
flushDeferredSkillsNotices(baseUrl, agents);
|
|
1126
1130
|
}
|
|
@@ -1136,7 +1140,7 @@ function spawnDetachedSkillsSyncChild(argv, onSpawnError) {
|
|
|
1136
1140
|
}
|
|
1137
1141
|
function failedSkillsSyncPath(baseUrl, agents) {
|
|
1138
1142
|
return _path.join.call(void 0,
|
|
1139
|
-
|
|
1143
|
+
_chunk5ZKZWXVNjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
1140
1144
|
`skills-sync-failed-${sortedLeaseAgents(agents).map(agentLeaseSegment).join("-")}-version`
|
|
1141
1145
|
);
|
|
1142
1146
|
}
|
|
@@ -1165,7 +1169,7 @@ function writeUnavailableSkillsNotice(baseUrl, remoteVersion, skillNames, reason
|
|
|
1165
1169
|
if (hasMarkedSkillsSyncVersion(path, remoteVersion)) return;
|
|
1166
1170
|
writeMarkedSkillsSyncVersion(path, remoteVersion);
|
|
1167
1171
|
const probes = reason === "no-installer" ? _nullishCoalesce(knownProbes, () => ( probeInstallers())) : null;
|
|
1168
|
-
const manualCommand = _optionalChain([probes, 'optionalAccess', _65 => _65.npx]) === "missing" && probes.bunx !== "missing" ? `bunx ${buildBunxSkillsInstallArgs(baseUrl, skillNames,
|
|
1172
|
+
const manualCommand = _optionalChain([probes, 'optionalAccess', _65 => _65.npx]) === "missing" && probes.bunx !== "missing" ? `bunx ${buildBunxSkillsInstallArgs(baseUrl, skillNames, _chunk5ZKZWXVNjs.DEFAULT_SKILL_AGENTS).map(shellQuote).join(" ")}` : `npx ${buildSkillsInstallArgs(baseUrl, skillNames).join(" ")}`;
|
|
1169
1173
|
const explanation = reason === "unsupported-agent" ? "the detected agent has no automatic skills sync target. Automatic sync was skipped." : _optionalChain([probes, 'optionalAccess', _66 => _66.bunx]) === "missing" && probes.npx === "missing" ? "neither `bunx` nor `npx` was found on PATH. Make one available." : `installer version check failed for ${Object.entries(_nullishCoalesce(probes, () => ( {}))).filter(([, result]) => result === "failed").map(([command]) => `\`${command}\``).join(" and ")}. Check those commands with --version.`;
|
|
1170
1174
|
notice(
|
|
1171
1175
|
`Deepline agent skills are out of date, but ${explanation} To install manually, run:
|
|
@@ -1253,7 +1257,7 @@ function buildSdkSkillNames(v1SkillNames2) {
|
|
|
1253
1257
|
return sortedUniqueSkillNames(v1SkillNames2);
|
|
1254
1258
|
}
|
|
1255
1259
|
function isDefaultAgentSet(agents) {
|
|
1256
|
-
return agents.length ===
|
|
1260
|
+
return agents.length === _chunk5ZKZWXVNjs.DEFAULT_SKILL_AGENTS.length && agents.every((agent, index) => agent === _chunk5ZKZWXVNjs.DEFAULT_SKILL_AGENTS[index]);
|
|
1257
1261
|
}
|
|
1258
1262
|
function safeSkillFilePath(value) {
|
|
1259
1263
|
if (typeof value !== "string" || !value) return false;
|
|
@@ -1450,7 +1454,7 @@ function probeInstallers(timeoutMs) {
|
|
|
1450
1454
|
}
|
|
1451
1455
|
function noInstallerProbePath(baseUrl) {
|
|
1452
1456
|
return _path.join.call(void 0,
|
|
1453
|
-
|
|
1457
|
+
_chunk5ZKZWXVNjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
1454
1458
|
"skills-sync-no-installer-unknown.json"
|
|
1455
1459
|
);
|
|
1456
1460
|
}
|
|
@@ -1529,7 +1533,7 @@ function temporarySkillsSyncSkipCommand() {
|
|
|
1529
1533
|
function resolveSkillsInstallSpawn(install, platform2 = process.platform) {
|
|
1530
1534
|
return resolveShellSpawn(install.command, install.args, platform2);
|
|
1531
1535
|
}
|
|
1532
|
-
function resolveSkillsInstallCommands(baseUrl, skillNames = DEFAULT_SDK_SKILL_NAMES, agents =
|
|
1536
|
+
function resolveSkillsInstallCommands(baseUrl, skillNames = DEFAULT_SDK_SKILL_NAMES, agents = _chunk5ZKZWXVNjs.DEFAULT_SKILL_AGENTS, knownProbes) {
|
|
1533
1537
|
const commands = [];
|
|
1534
1538
|
const probes = _nullishCoalesce(knownProbes, () => ( probeInstallers()));
|
|
1535
1539
|
if (probes.bunx === "available") {
|
|
@@ -1681,11 +1685,11 @@ function writeSdkSkillsStatusLine(line) {
|
|
|
1681
1685
|
}
|
|
1682
1686
|
async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
|
|
1683
1687
|
if (shouldSkipSkillsSync()) return;
|
|
1684
|
-
const usingPluginSkills =
|
|
1688
|
+
const usingPluginSkills = _chunk5ZKZWXVNjs.hasActivePluginSkills.call(void 0, );
|
|
1685
1689
|
if (usingPluginSkills) {
|
|
1686
1690
|
return;
|
|
1687
1691
|
}
|
|
1688
|
-
const agents =
|
|
1692
|
+
const agents = _chunk5ZKZWXVNjs.resolveAutoSyncSkillAgents.call(void 0, );
|
|
1689
1693
|
if (options.mode === "detached" && agents.length > 0) {
|
|
1690
1694
|
flushDeferredSkillsNotices(baseUrl, agents);
|
|
1691
1695
|
}
|
|
@@ -1713,7 +1717,7 @@ async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
|
|
|
1713
1717
|
return;
|
|
1714
1718
|
}
|
|
1715
1719
|
try {
|
|
1716
|
-
const localVersion =
|
|
1720
|
+
const localVersion = _chunk5ZKZWXVNjs.readSdkSkillsLocalVersion.call(void 0, baseUrl);
|
|
1717
1721
|
const update = options.update === void 0 ? claimedVersion ? { needsUpdate: true, remoteVersion: claimedVersion } : await fetchSkillsUpdate(baseUrl, localVersion) : options.update ? {
|
|
1718
1722
|
needsUpdate: options.update.needs_update,
|
|
1719
1723
|
remoteVersion: options.update.remote.version
|
|
@@ -1879,7 +1883,7 @@ async function runInlineSkillsSync(baseUrl, remoteVersion, agents, notices) {
|
|
|
1879
1883
|
}
|
|
1880
1884
|
}
|
|
1881
1885
|
runLegacySkillsCleanup(agents);
|
|
1882
|
-
if (!
|
|
1886
|
+
if (!_chunk5ZKZWXVNjs.writeSdkSkillsLocalVersion.call(void 0, baseUrl, update.remoteVersion, agents)) {
|
|
1883
1887
|
notice(
|
|
1884
1888
|
"Deepline agent skills installed, but the local skills version could not be recorded. A later command will retry the refresh."
|
|
1885
1889
|
);
|
|
@@ -1938,7 +1942,7 @@ function inferActiveSkillsScope(entrypoint = _nullishCoalesce(process.argv[1], (
|
|
|
1938
1942
|
return /[\\/]\.deepline[\\/]runtime[\\/]/.test(entrypoint) ? "local" : "global";
|
|
1939
1943
|
}
|
|
1940
1944
|
function resolveLocalRoot() {
|
|
1941
|
-
const target =
|
|
1945
|
+
const target = _chunk5ZKZWXVNjs.resolveProjectPinTarget.call(void 0, );
|
|
1942
1946
|
if (!target.ok) {
|
|
1943
1947
|
throw new Error(
|
|
1944
1948
|
`Cowork project folder is ambiguous. Candidate folders: ${target.candidates.join(
|
|
@@ -1949,7 +1953,7 @@ function resolveLocalRoot() {
|
|
|
1949
1953
|
return target.dir;
|
|
1950
1954
|
}
|
|
1951
1955
|
function detectSkillsAgents(input) {
|
|
1952
|
-
const runtime = _nullishCoalesce(input.runtime, () => (
|
|
1956
|
+
const runtime = _nullishCoalesce(input.runtime, () => ( _chunk5ZKZWXVNjs.detectAgentRuntime.call(void 0, )));
|
|
1953
1957
|
const knownAgent = RUNTIME_TO_SKILLS_AGENT[runtime];
|
|
1954
1958
|
if (knownAgent) return [knownAgent];
|
|
1955
1959
|
const roots = [
|
|
@@ -1964,7 +1968,7 @@ function detectSkillsAgents(input) {
|
|
|
1964
1968
|
return detected.length > 0 ? detected : ["*"];
|
|
1965
1969
|
}
|
|
1966
1970
|
function skillsStatePathForScope(baseUrl, scope, root) {
|
|
1967
|
-
return scope === "local" && root ? _path.join.call(void 0, root, ".deepline", "setup", "skills.json") : _path.join.call(void 0,
|
|
1971
|
+
return scope === "local" && root ? _path.join.call(void 0, root, ".deepline", "setup", "skills.json") : _path.join.call(void 0, _chunk5ZKZWXVNjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-install.json");
|
|
1968
1972
|
}
|
|
1969
1973
|
function buildSkillsPlan(input) {
|
|
1970
1974
|
const scopeArgs = input.scope === "global" ? ["--global"] : [];
|
|
@@ -2086,7 +2090,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
2086
2090
|
scope = normalizeScope(options.scope);
|
|
2087
2091
|
root = scope === "local" ? resolveLocalRoot() : null;
|
|
2088
2092
|
} catch (error) {
|
|
2089
|
-
|
|
2093
|
+
_chunkARNODHMCjs.printCommandEnvelope.call(void 0,
|
|
2090
2094
|
{
|
|
2091
2095
|
ok: false,
|
|
2092
2096
|
status: "failed",
|
|
@@ -2098,22 +2102,22 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
2098
2102
|
);
|
|
2099
2103
|
return 2;
|
|
2100
2104
|
}
|
|
2101
|
-
const baseUrl =
|
|
2105
|
+
const baseUrl = _chunk5ZKZWXVNjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
2102
2106
|
const catalog = {
|
|
2103
2107
|
skillNames: [...DEFAULT_SDK_SKILL_NAMES],
|
|
2104
|
-
version:
|
|
2108
|
+
version: _chunk5ZKZWXVNjs.SDK_VERSION
|
|
2105
2109
|
};
|
|
2106
2110
|
const agents = options.agent ? [options.agent] : detectSkillsAgents({ scope, root });
|
|
2107
2111
|
const plan = buildSkillsPlan({ baseUrl, scope, root, agents, ...catalog });
|
|
2108
2112
|
if (options.dryRun) {
|
|
2109
|
-
|
|
2113
|
+
_chunkARNODHMCjs.printCommandEnvelope.call(void 0,
|
|
2110
2114
|
{ ok: true, status: "planned", dryRun: true, ...plan },
|
|
2111
2115
|
{ json: options.json }
|
|
2112
2116
|
);
|
|
2113
2117
|
return 0;
|
|
2114
2118
|
}
|
|
2115
2119
|
if (isSkillsPlanCurrent(plan, readSkillsInstallState(plan.statePath)) && !hasFailedAutomaticSkillsSync(baseUrl, agents)) {
|
|
2116
|
-
|
|
2120
|
+
_chunkARNODHMCjs.printCommandEnvelope.call(void 0,
|
|
2117
2121
|
{
|
|
2118
2122
|
ok: true,
|
|
2119
2123
|
status: "current",
|
|
@@ -2148,7 +2152,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
2148
2152
|
.../* @__PURE__ */ new Set([...plan.skillNames, ...LEGACY_SKILL_NAMES_TO_REMOVE])
|
|
2149
2153
|
];
|
|
2150
2154
|
const agentRoots = workspaceSkillRootsForAgents(plan.agents);
|
|
2151
|
-
|
|
2155
|
+
_chunk5ZKZWXVNjs.ensureProjectPrivatePathsIgnored.call(void 0, root, [
|
|
2152
2156
|
".deepline/",
|
|
2153
2157
|
...agentRoots.flatMap(
|
|
2154
2158
|
(agentRoot) => managedNames.map((name) => `${agentRoot}/skills/${name}/`)
|
|
@@ -2166,7 +2170,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
2166
2170
|
} };
|
|
2167
2171
|
} catch (error) {
|
|
2168
2172
|
if (!(error instanceof SkillsStateUnavailableError)) throw error;
|
|
2169
|
-
|
|
2173
|
+
_chunkARNODHMCjs.printCommandEnvelope.call(void 0,
|
|
2170
2174
|
{
|
|
2171
2175
|
ok: false,
|
|
2172
2176
|
status: "failed",
|
|
@@ -2182,7 +2186,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
2182
2186
|
return 5;
|
|
2183
2187
|
}
|
|
2184
2188
|
if (!lease) {
|
|
2185
|
-
|
|
2189
|
+
_chunkARNODHMCjs.printCommandEnvelope.call(void 0,
|
|
2186
2190
|
{
|
|
2187
2191
|
ok: false,
|
|
2188
2192
|
status: "failed",
|
|
@@ -2228,7 +2232,7 @@ async function runSkillsInstallWithLease(input) {
|
|
|
2228
2232
|
throw new Error("Could not install the current Deepline skills.");
|
|
2229
2233
|
}
|
|
2230
2234
|
} catch (error) {
|
|
2231
|
-
|
|
2235
|
+
_chunkARNODHMCjs.printCommandEnvelope.call(void 0,
|
|
2232
2236
|
{
|
|
2233
2237
|
ok: false,
|
|
2234
2238
|
status: "failed",
|
|
@@ -2267,7 +2271,7 @@ async function runSkillsInstallWithLease(input) {
|
|
|
2267
2271
|
{
|
|
2268
2272
|
schemaVersion: 1,
|
|
2269
2273
|
installedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
2270
|
-
cliVersion:
|
|
2274
|
+
cliVersion: _chunk5ZKZWXVNjs.SDK_VERSION,
|
|
2271
2275
|
scope,
|
|
2272
2276
|
agents,
|
|
2273
2277
|
skillsVersion: plan.version,
|
|
@@ -2282,7 +2286,7 @@ async function runSkillsInstallWithLease(input) {
|
|
|
2282
2286
|
if (scope === "global") {
|
|
2283
2287
|
clearFailedAutomaticSkillsSync(baseUrl, agents);
|
|
2284
2288
|
}
|
|
2285
|
-
|
|
2289
|
+
_chunkARNODHMCjs.printCommandEnvelope.call(void 0,
|
|
2286
2290
|
{
|
|
2287
2291
|
ok: true,
|
|
2288
2292
|
status: "complete",
|
|
@@ -2331,7 +2335,7 @@ Examples:
|
|
|
2331
2335
|
).action(async (options) => {
|
|
2332
2336
|
const claim = _optionalChain([options, 'access', _88 => _88.claim, 'optionalAccess', _89 => _89.trim, 'call', _90 => _90()]);
|
|
2333
2337
|
if (!claim) {
|
|
2334
|
-
|
|
2338
|
+
_chunkARNODHMCjs.printCommandEnvelope.call(void 0,
|
|
2335
2339
|
{
|
|
2336
2340
|
ok: false,
|
|
2337
2341
|
status: "failed",
|
|
@@ -2344,7 +2348,7 @@ Examples:
|
|
|
2344
2348
|
process.exitCode = 2;
|
|
2345
2349
|
return;
|
|
2346
2350
|
}
|
|
2347
|
-
await syncSdkSkillsIfNeeded(
|
|
2351
|
+
await syncSdkSkillsIfNeeded(_chunk5ZKZWXVNjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, ""), {
|
|
2348
2352
|
mode: "inline",
|
|
2349
2353
|
notices: "defer",
|
|
2350
2354
|
claim
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getAuthedHttpClient,
|
|
3
3
|
printCommandEnvelope
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-WR7H6MZ6.mjs";
|
|
5
5
|
import {
|
|
6
6
|
agentSessionIdFromEnvironment
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-FCZIE4UQ.mjs";
|
|
8
8
|
|
|
9
9
|
// src/cli/commands/sessions.ts
|
|
10
10
|
import {
|
|
@@ -1,17 +1,17 @@
|
|
|
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 _chunkVGXKDHTJjs = require('./chunk-VGXKDHTJ.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkSVAI3Z3Qjs = require('./chunk-SVAI3Z3Q.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkARNODHMCjs = require('./chunk-ARNODHMC.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunk5ZKZWXVNjs = require('./chunk-5ZKZWXVN.js');
|
|
15
15
|
|
|
16
16
|
// src/cli/commands/update.ts
|
|
17
17
|
var _child_process = require('child_process');
|
|
@@ -489,7 +489,7 @@ function normalizedNpmPrefix(value) {
|
|
|
489
489
|
}
|
|
490
490
|
function resolveNpmGlobalPrefix(env) {
|
|
491
491
|
try {
|
|
492
|
-
const plan =
|
|
492
|
+
const plan = _chunkSVAI3Z3Qjs.resolveShellSpawn.call(void 0, "npm", ["prefix", "-g"], process.platform, env);
|
|
493
493
|
const result = _child_process.spawnSync.call(void 0, plan.command, plan.args, {
|
|
494
494
|
encoding: "utf8",
|
|
495
495
|
env,
|
|
@@ -545,8 +545,8 @@ function resolveUpdatePlan(options = {}) {
|
|
|
545
545
|
const npmGlobalPrefix = options.npmGlobalPrefix !== void 0 ? options.npmGlobalPrefix : resolveNpmGlobalPrefix(env);
|
|
546
546
|
const hasVerifiedNpmOwnership = inferredInstallPrefix !== null && normalizedNpmPrefix(inferredInstallPrefix) === normalizedNpmPrefix(npmGlobalPrefix);
|
|
547
547
|
const installPrefix = options.requireVerifiedNpmOwnership ? hasVerifiedNpmOwnership ? inferredInstallPrefix : null : inferredInstallPrefix;
|
|
548
|
-
const npmVersion = options.npmVersion === void 0 ?
|
|
549
|
-
const npmGlobalInstallFlags =
|
|
548
|
+
const npmVersion = options.npmVersion === void 0 ? _chunkVGXKDHTJjs.readNpmVersion.call(void 0, env) : options.npmVersion;
|
|
549
|
+
const npmGlobalInstallFlags = _chunkVGXKDHTJjs.npmSupportsAllowScripts.call(void 0, npmVersion) ? [...NPM_SDK_INSTALL_COMMON_FLAGS, "--allow-scripts=esbuild"] : NPM_SDK_INSTALL_COMMON_FLAGS;
|
|
550
550
|
const args = installPrefix ? [
|
|
551
551
|
"install",
|
|
552
552
|
"-g",
|
|
@@ -556,7 +556,7 @@ function resolveUpdatePlan(options = {}) {
|
|
|
556
556
|
packageSpec
|
|
557
557
|
] : ["install", "-g", ...npmGlobalInstallFlags, packageSpec];
|
|
558
558
|
const fallbackRegistryUrl = options.npmFallbackRegistryUrl !== void 0 ? options.npmFallbackRegistryUrl : publicNpmFallbackRegistryUrl(
|
|
559
|
-
_optionalChain([env, 'access', _18 => _18.DEEPLINE_HOST_URL, 'optionalAccess', _19 => _19.trim, 'call', _20 => _20()]) ||
|
|
559
|
+
_optionalChain([env, 'access', _18 => _18.DEEPLINE_HOST_URL, 'optionalAccess', _19 => _19.trim, 'call', _20 => _20()]) || _chunk5ZKZWXVNjs.autoDetectBaseUrl.call(void 0, )
|
|
560
560
|
);
|
|
561
561
|
return {
|
|
562
562
|
kind: "npm-global",
|
|
@@ -703,7 +703,7 @@ function sidecarInstallFailure(versionDir) {
|
|
|
703
703
|
function runCommand(command, args, env = process.env) {
|
|
704
704
|
return new Promise((resolveResult) => {
|
|
705
705
|
let output = "";
|
|
706
|
-
const plan =
|
|
706
|
+
const plan = _chunkSVAI3Z3Qjs.resolveShellSpawn.call(void 0, command, args, process.platform, env);
|
|
707
707
|
const child = _child_process.spawn.call(void 0, plan.command, plan.args, {
|
|
708
708
|
stdio: ["inherit", "pipe", "pipe"],
|
|
709
709
|
shell: plan.shell,
|
|
@@ -1079,14 +1079,14 @@ async function publishedVersionSupportsPin(version, fallbackRegistryUrl) {
|
|
|
1079
1079
|
throw _nullishCoalesce(lastError, () => ( new Error("No npm registry was available")));
|
|
1080
1080
|
}
|
|
1081
1081
|
async function runUpdateCommand(options, dependencies = {}) {
|
|
1082
|
-
const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => (
|
|
1082
|
+
const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => ( _chunk5ZKZWXVNjs.autoDetectBaseUrl));
|
|
1083
1083
|
const resolvePlan = _nullishCoalesce(dependencies.resolvePlan, () => ( resolveUpdatePlan));
|
|
1084
1084
|
const runPlan = _nullishCoalesce(dependencies.runPlan, () => ( runUpdatePlan));
|
|
1085
1085
|
const syncSkills = _nullishCoalesce(dependencies.syncSkillsIfNeeded, () => ( (async () => {
|
|
1086
1086
|
const originalWrite = process.stdout.write.bind(process.stdout);
|
|
1087
1087
|
process.stdout.write = (() => true);
|
|
1088
1088
|
try {
|
|
1089
|
-
const exitCode = await
|
|
1089
|
+
const exitCode = await _chunkSVAI3Z3Qjs.runSkillsCommand.call(void 0, { json: true });
|
|
1090
1090
|
if (exitCode !== 0) {
|
|
1091
1091
|
throw new Error(
|
|
1092
1092
|
`Deepline skills update failed with exit ${exitCode}.`
|
|
@@ -1157,11 +1157,11 @@ async function runUpdateCommand(options, dependencies = {}) {
|
|
|
1157
1157
|
]
|
|
1158
1158
|
};
|
|
1159
1159
|
if (options.json && !options.executeWithJson) {
|
|
1160
|
-
|
|
1160
|
+
_chunkARNODHMCjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: true });
|
|
1161
1161
|
return 0;
|
|
1162
1162
|
}
|
|
1163
1163
|
if (options.printCommand) {
|
|
1164
|
-
|
|
1164
|
+
_chunkARNODHMCjs.printCommandEnvelope.call(void 0,
|
|
1165
1165
|
{
|
|
1166
1166
|
...plan,
|
|
1167
1167
|
render: {
|
|
@@ -1174,7 +1174,7 @@ async function runUpdateCommand(options, dependencies = {}) {
|
|
|
1174
1174
|
return 0;
|
|
1175
1175
|
}
|
|
1176
1176
|
if (plan.kind === "source" || plan.kind === "homebrew") {
|
|
1177
|
-
|
|
1177
|
+
_chunkARNODHMCjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: false });
|
|
1178
1178
|
return 0;
|
|
1179
1179
|
}
|
|
1180
1180
|
stderr.write(`Updating Deepline SDK/CLI with: ${plan.manualCommand}
|
|
@@ -1204,7 +1204,7 @@ To retry with full installer output, run: deepline skills --json
|
|
|
1204
1204
|
);
|
|
1205
1205
|
}
|
|
1206
1206
|
if (options.executeWithJson && options.json) {
|
|
1207
|
-
|
|
1207
|
+
_chunkARNODHMCjs.printCommandEnvelope.call(void 0,
|
|
1208
1208
|
{
|
|
1209
1209
|
ok: true,
|
|
1210
1210
|
pinnedVersion
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
import {
|
|
12
12
|
recentSearchRef,
|
|
13
13
|
registerDeprecatedSearchCommand
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-DZ34Z4DO.mjs";
|
|
15
15
|
import {
|
|
16
16
|
extractSummaryFields,
|
|
17
17
|
projectRowOutput,
|
|
@@ -20,10 +20,13 @@ import {
|
|
|
20
20
|
writeCsvOutputFile,
|
|
21
21
|
writeJsonOutputFile
|
|
22
22
|
} from "./chunk-MIMASXO4.mjs";
|
|
23
|
+
import {
|
|
24
|
+
playToolListGetterMode
|
|
25
|
+
} from "./chunk-7E66A24V.mjs";
|
|
23
26
|
import {
|
|
24
27
|
DeeplineClient,
|
|
25
28
|
validateExecutionIdempotencyKey
|
|
26
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-72362UER.mjs";
|
|
27
30
|
import {
|
|
28
31
|
beginToolExecuteCommand,
|
|
29
32
|
getToolExecuteInvocationId,
|
|
@@ -37,14 +40,11 @@ import {
|
|
|
37
40
|
printJsonError,
|
|
38
41
|
renderCommandEnvelopeText,
|
|
39
42
|
shouldEmitJson
|
|
40
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-WR7H6MZ6.mjs";
|
|
41
44
|
import {
|
|
42
45
|
resolveConfig,
|
|
43
46
|
sdkCliStateDirPath
|
|
44
|
-
} from "./chunk-
|
|
45
|
-
import {
|
|
46
|
-
playToolListGetterMode
|
|
47
|
-
} from "./chunk-7E66A24V.mjs";
|
|
47
|
+
} from "./chunk-FCZIE4UQ.mjs";
|
|
48
48
|
import {
|
|
49
49
|
DeeplineError
|
|
50
50
|
} from "./chunk-NXGCO4JB.mjs";
|
|
@@ -1030,7 +1030,7 @@ Examples:
|
|
|
1030
1030
|
process.exitCode = await narrowView();
|
|
1031
1031
|
return;
|
|
1032
1032
|
}
|
|
1033
|
-
const { describeAnything } = await import("./describe-
|
|
1033
|
+
const { describeAnything } = await import("./describe-5WQ55FIR.mjs");
|
|
1034
1034
|
process.exitCode = await describeAnything(
|
|
1035
1035
|
toolId,
|
|
1036
1036
|
{ ...options, kinds: ["tools", "monitors"], fetchedTool: metadata },
|
|
@@ -1,6 +1,6 @@
|
|
|
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
|
-
var
|
|
3
|
+
var _chunkSVAI3Z3Qjs = require('./chunk-SVAI3Z3Q.js');
|
|
4
4
|
|
|
5
5
|
// src/cli/npm-script-policy.ts
|
|
6
6
|
var _child_process = require('child_process');
|
|
@@ -13,7 +13,7 @@ function npmSupportsAllowScripts(version) {
|
|
|
13
13
|
}
|
|
14
14
|
function readNpmVersion(env) {
|
|
15
15
|
try {
|
|
16
|
-
const plan =
|
|
16
|
+
const plan = _chunkSVAI3Z3Qjs.resolveShellSpawn.call(void 0, "npm", ["--version"], process.platform, env);
|
|
17
17
|
const result = _child_process.spawnSync.call(void 0, plan.command, plan.args, {
|
|
18
18
|
encoding: "utf8",
|
|
19
19
|
env,
|