deepline 0.3.356 → 0.3.358
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 +1 -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 +77 -25
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/run-ledger-outbox-recovery.ts +202 -44
- package/dist/cli/{auth-PFLCB6IL.mjs → auth-QSEB4OI6.mjs} +6 -4
- package/dist/cli/auth-VP5WIGFS.js +33 -0
- package/dist/cli/{billing-T3K2KS55.mjs → billing-KNJ6ZHSN.mjs} +5 -5
- package/dist/cli/{billing-TJOZMRIV.js → billing-UE2CP5O5.js} +74 -74
- package/dist/cli/{chunk-NAMT3YP5.mjs → chunk-3DP24EZA.mjs} +15 -15
- package/dist/cli/{chunk-35AZMPQV.mjs → chunk-4IUOBUNS.mjs} +1 -1
- package/dist/cli/{chunk-6GOZN6ZF.js → chunk-5PJ6XYRV.js} +64 -60
- package/dist/cli/{chunk-26FD35VW.js → chunk-5RWJSROL.js} +8 -8
- package/dist/cli/{chunk-HBN5ORV2.js → chunk-BVPN57AD.js} +6 -6
- package/dist/cli/{chunk-6S2HRJIV.mjs → chunk-EL62MLRD.mjs} +1 -1
- package/dist/cli/{chunk-AUQYSGGD.mjs → chunk-EVPWVNJV.mjs} +7 -7
- package/dist/cli/{chunk-OXNEO6OS.js → chunk-GYDSDOXB.js} +75 -50
- package/dist/cli/{chunk-X4PJURJH.mjs → chunk-HGLESMAC.mjs} +27 -2
- package/dist/cli/{chunk-447A2YBS.js → chunk-HKRJUIRL.js} +47 -47
- package/dist/cli/{chunk-MK3WFSJN.js → chunk-HNAFCPM4.js} +8 -8
- package/dist/cli/{chunk-UC27KYXC.js → chunk-KIRDHNX5.js} +11 -11
- package/dist/cli/{chunk-2EYFTDKU.js → chunk-LOSZZCER.js} +2 -2
- package/dist/cli/{chunk-GD4YCB5C.mjs → chunk-NMHQTEIQ.mjs} +2 -2
- package/dist/cli/{chunk-OIJR6SCZ.js → chunk-OO3MYL2Y.js} +26 -26
- package/dist/cli/{chunk-YILVDBYO.js → chunk-OVUDXZCK.js} +1 -1
- package/dist/cli/{chunk-YFLAUIJN.mjs → chunk-Q77PWYDF.mjs} +4 -4
- package/dist/cli/chunk-QFBHEQCQ.mjs +1421 -0
- package/dist/cli/{chunk-W3VTKDQK.mjs → chunk-QH6PV7IJ.mjs} +3 -3
- package/dist/cli/chunk-QILHWZFP.js +1421 -0
- package/dist/cli/{chunk-2CTZ4MRZ.mjs → chunk-SJY4SUCH.mjs} +1 -1
- package/dist/cli/{chunk-2RMJLL3R.mjs → chunk-SPJ3IDR4.mjs} +2 -2
- package/dist/cli/{chunk-A544Z3OR.js → chunk-UZQWPQ6V.js} +5 -5
- package/dist/cli/{chunk-HXL4ZESY.js → chunk-V4MVLHOW.js} +231 -231
- package/dist/cli/{chunk-WF5BHZWA.mjs → chunk-VZBNBCEB.mjs} +3 -3
- package/dist/cli/{chunk-LDOOR6AE.js → chunk-WVO6AJM7.js} +15 -15
- package/dist/cli/{chunk-RPALAI2R.mjs → chunk-WYVUMIEF.mjs} +8 -8
- package/dist/cli/{chunk-7LFNGGH6.mjs → chunk-YWGKGXSH.mjs} +6 -2
- package/dist/cli/client-I4RRFLPM.js +20 -0
- package/dist/cli/{client-XMFAODL2.mjs → client-M2TQV23S.mjs} +4 -4
- 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-NLCVCEZ3.mjs → csv-OQUTHAMD.mjs} +3 -3
- package/dist/cli/{csv-4TMZI4RY.js → csv-VSVZWQ24.js} +12 -12
- package/dist/cli/{db-PWID5GLT.js → db-6QNWRH47.js} +30 -30
- package/dist/cli/{db-IMLYZF3N.mjs → db-QH56PKPT.mjs} +5 -5
- package/dist/cli/{describe-LTYF5NWH.js → describe-BKJNG2I5.js} +21 -21
- package/dist/cli/{describe-LFKBFDRQ.mjs → describe-NCUJW2JG.mjs} +16 -16
- package/dist/cli/{executions-RB4WIKFH.js → executions-63CSEYKE.js} +7 -7
- package/dist/cli/{executions-6UVFDX2O.mjs → executions-NOZELHEN.mjs} +5 -5
- package/dist/cli/{feedback-PH3WH5LE.mjs → feedback-GL7YHJAK.mjs} +3 -3
- package/dist/cli/{feedback-EOUSGLRS.js → feedback-T4FGM7DY.js} +7 -7
- package/dist/cli/git-4EBFGJAN.js +23 -0
- package/dist/cli/{git-BLVZPTBC.mjs → git-C3SPUEUB.mjs} +4 -4
- package/dist/cli/index.js +183 -83
- package/dist/cli/index.mjs +145 -45
- package/dist/cli/{legacy-noops-5JDDNT4H.mjs → legacy-noops-BBDNHMAW.mjs} +4 -4
- package/dist/cli/{legacy-noops-KQBQ4WMC.js → legacy-noops-W6UWORVY.js} +7 -7
- package/dist/cli/{monitors-JL7A5ZOX.mjs → monitors-LEGM63T3.mjs} +5 -5
- package/dist/cli/{monitors-IETMP6ER.js → monitors-R32SKFE3.js} +86 -86
- package/dist/cli/{org-L6TG5MRM.mjs → org-RBIBSVP3.mjs} +5 -5
- package/dist/cli/{org-HL2CWV6W.js → org-RYRHB22V.js} +61 -61
- package/dist/cli/{play-42RA7JRU.mjs → play-FMPNHLXU.mjs} +11 -11
- package/dist/cli/play-GDDOUU3I.js +153 -0
- package/dist/cli/{providers-RH5ZPZXO.mjs → providers-5JHHZWMF.mjs} +5 -5
- package/dist/cli/{providers-MASSERVB.js → providers-WAUWYRTK.js} +8 -8
- package/dist/cli/{quickstart-OMZY743O.mjs → quickstart-RYKNMAFN.mjs} +5 -5
- package/dist/cli/{quickstart-6AYK534A.js → quickstart-V5LHMW2X.js} +7 -7
- package/dist/cli/{search-TBOZ5R36.mjs → search-B2BB2MHO.mjs} +6 -6
- package/dist/cli/search-RQLY5D2A.js +26 -0
- package/dist/cli/{secrets-74CH44OT.js → secrets-BEAESK2H.js} +14 -14
- package/dist/cli/{secrets-IN4XCGBJ.mjs → secrets-XJOXWVUG.mjs} +5 -5
- package/dist/cli/{sessions-KK47BDGG.js → sessions-ELBTWKLS.js} +5 -5
- package/dist/cli/{sessions-BAMVNM3F.mjs → sessions-VRDJCPKE.mjs} +4 -4
- package/dist/cli/{settings-HZFVYTEW.mjs → settings-QEL2SD7N.mjs} +8 -8
- package/dist/cli/{settings-VSKWLX2B.js → settings-V5RI4UWE.js} +75 -75
- package/dist/cli/{setup-IYVMYYZW.js → setup-CS3IACGU.js} +43 -43
- package/dist/cli/{setup-3YOU6BBX.mjs → setup-FNVP5XQR.mjs} +8 -8
- package/dist/cli/{skills-DB3TE5LF.mjs → skills-73PM6I6F.mjs} +4 -4
- package/dist/cli/skills-OH3X3OUA.js +28 -0
- package/dist/cli/tools-BY6D7M4I.js +40 -0
- package/dist/cli/{tools-AMNLACHH.mjs → tools-N2H5HJYP.mjs} +8 -8
- package/dist/cli/{update-3PBHH5FL.mjs → update-MUMZ6L7J.mjs} +6 -6
- package/dist/cli/update-PEGDRQ3G.js +28 -0
- package/dist/cli/{workflow-C2KGKJJD.mjs → workflow-WY2CL73A.mjs} +9 -9
- package/dist/cli/{workflow-5YDAWSKH.js → workflow-X66V6L3H.js} +19 -19
- package/dist/index.js +13 -13
- package/dist/index.mjs +12 -12
- package/dist/install-integrity.json +80 -74
- 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/package.json +6 -1
- package/dist/cli/auth-IHV3XXSN.js +0 -31
- package/dist/cli/client-TDH32IGR.js +0 -20
- package/dist/cli/git-V6HWB6JB.js +0 -23
- package/dist/cli/play-QQLZQILD.js +0 -153
- package/dist/cli/search-FR6FXEXN.js +0 -26
- package/dist/cli/skills-3HFZGYM7.js +0 -28
- package/dist/cli/tools-GJ7TH2T3.js +0 -40
- package/dist/cli/update-SUNCN4SV.js +0 -28
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _chunkWJYPBHTEjs = require('./chunk-WJYPBHTE.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkBVPN57ADjs = require('./chunk-BVPN57AD.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -22,7 +22,7 @@ var _chunkHBN5ORV2js = require('./chunk-HBN5ORV2.js');
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _chunkUZQWPQ6Vjs = require('./chunk-UZQWPQ6V.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, () => ( _chunkUZQWPQ6Vjs.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, _chunkUZQWPQ6Vjs.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: _chunkUZQWPQ6Vjs.SDK_VERSION,
|
|
209
|
+
apiContract: _chunkUZQWPQ6Vjs.SDK_API_CONTRACT,
|
|
210
|
+
apiMajor: _chunkUZQWPQ6Vjs.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: _chunkUZQWPQ6Vjs.SDK_VERSION,
|
|
219
|
+
apiContract: _chunkUZQWPQ6Vjs.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", _chunkUZQWPQ6Vjs.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
|
+
..._chunkUZQWPQ6Vjs.deploymentProtectionHeaders.call(void 0, ),
|
|
326
|
+
"User-Agent": `deepline-ts-sdk/${_chunkUZQWPQ6Vjs.SDK_VERSION}`,
|
|
327
|
+
"X-Deepline-SDK-Version": _chunkUZQWPQ6Vjs.SDK_VERSION,
|
|
328
|
+
"X-Deepline-API-Major": String(_chunkUZQWPQ6Vjs.SDK_API_MAJOR),
|
|
329
|
+
"X-Deepline-API-Contract": _chunkUZQWPQ6Vjs.SDK_API_CONTRACT,
|
|
326
330
|
"X-Deepline-CLI-Update-Preferences": "1",
|
|
327
|
-
...options.catalog ? { Authorization: `Bearer ${
|
|
331
|
+
...options.catalog ? { Authorization: `Bearer ${_chunkUZQWPQ6Vjs.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: _chunkUZQWPQ6Vjs.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/${_chunkUZQWPQ6Vjs.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": _chunkUZQWPQ6Vjs.detectAgentRuntime.call(void 0, ),
|
|
612
|
+
"X-Deepline-CLI-Version": _chunkUZQWPQ6Vjs.SDK_VERSION,
|
|
613
|
+
"X-Deepline-SDK-Version": _chunkUZQWPQ6Vjs.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 = _chunkUZQWPQ6Vjs.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: _chunkUZQWPQ6Vjs.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: _chunkUZQWPQ6Vjs.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 = _chunkUZQWPQ6Vjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
809
|
+
const apiKey = _chunkUZQWPQ6Vjs.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 (_chunkUZQWPQ6Vjs.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, _chunkUZQWPQ6Vjs.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 = _chunkUZQWPQ6Vjs.skillsAgentPathSegment;
|
|
838
842
|
function sortedLeaseAgents(agents) {
|
|
839
|
-
const expanded = agents.includes("*") ? [...agents, ...
|
|
843
|
+
const expanded = agents.includes("*") ? [...agents, ..._chunkUZQWPQ6Vjs.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
|
+
_chunkUZQWPQ6Vjs.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 ${_chunkUZQWPQ6Vjs.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
|
+
_chunkUZQWPQ6Vjs.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() || _chunkUZQWPQ6Vjs.hasActivePluginSkills.call(void 0, )) return;
|
|
1127
|
+
const agents = _chunkUZQWPQ6Vjs.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
|
+
_chunkUZQWPQ6Vjs.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, _chunkUZQWPQ6Vjs.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 === _chunkUZQWPQ6Vjs.DEFAULT_SKILL_AGENTS.length && agents.every((agent, index) => agent === _chunkUZQWPQ6Vjs.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
|
+
_chunkUZQWPQ6Vjs.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 = _chunkUZQWPQ6Vjs.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 = _chunkUZQWPQ6Vjs.hasActivePluginSkills.call(void 0, );
|
|
1685
1689
|
if (usingPluginSkills) {
|
|
1686
1690
|
return;
|
|
1687
1691
|
}
|
|
1688
|
-
const agents =
|
|
1692
|
+
const agents = _chunkUZQWPQ6Vjs.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 = _chunkUZQWPQ6Vjs.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 (!_chunkUZQWPQ6Vjs.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 = _chunkUZQWPQ6Vjs.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, () => ( _chunkUZQWPQ6Vjs.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, _chunkUZQWPQ6Vjs.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
|
+
_chunkBVPN57ADjs.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 = _chunkUZQWPQ6Vjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
2102
2106
|
const catalog = {
|
|
2103
2107
|
skillNames: [...DEFAULT_SDK_SKILL_NAMES],
|
|
2104
|
-
version:
|
|
2108
|
+
version: _chunkUZQWPQ6Vjs.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
|
+
_chunkBVPN57ADjs.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
|
+
_chunkBVPN57ADjs.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
|
+
_chunkUZQWPQ6Vjs.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
|
+
_chunkBVPN57ADjs.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
|
+
_chunkBVPN57ADjs.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
|
+
_chunkBVPN57ADjs.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: _chunkUZQWPQ6Vjs.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
|
+
_chunkBVPN57ADjs.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
|
+
_chunkBVPN57ADjs.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(_chunkUZQWPQ6Vjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, ""), {
|
|
2348
2352
|
mode: "inline",
|
|
2349
2353
|
notices: "defer",
|
|
2350
2354
|
claim
|
|
@@ -1,14 +1,14 @@
|
|
|
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 _chunkKIRDHNX5js = require('./chunk-KIRDHNX5.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkBVPN57ADjs = require('./chunk-BVPN57AD.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkUZQWPQ6Vjs = require('./chunk-UZQWPQ6V.js');
|
|
12
12
|
|
|
13
13
|
// src/cli/commands/search.ts
|
|
14
14
|
var _commander = require('commander');
|
|
@@ -18,7 +18,7 @@ var _fs = require('fs');
|
|
|
18
18
|
var _path = require('path');
|
|
19
19
|
var SEARCH_REF_TTL_MS = 15 * 6e4;
|
|
20
20
|
function lastSearchPath() {
|
|
21
|
-
return _path.join.call(void 0,
|
|
21
|
+
return _path.join.call(void 0, _chunkUZQWPQ6Vjs.sdkCliStateDirPath.call(void 0, _chunkUZQWPQ6Vjs.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
|
|
22
22
|
}
|
|
23
23
|
function rememberSearchRef(searchRef) {
|
|
24
24
|
try {
|
|
@@ -153,7 +153,7 @@ function searchRow(item) {
|
|
|
153
153
|
}
|
|
154
154
|
function renderSearchResults(result) {
|
|
155
155
|
if (result.results.length === 0)
|
|
156
|
-
return
|
|
156
|
+
return _chunkBVPN57ADjs.renderCommandEnvelopeText.call(void 0, result);
|
|
157
157
|
const rows = result.results.map(searchRow);
|
|
158
158
|
const kinds = new Set(rows.map((row) => row.kind));
|
|
159
159
|
const onlyTools = kinds.size === 1 && kinds.has("tool");
|
|
@@ -177,7 +177,7 @@ function renderSearchResults(result) {
|
|
|
177
177
|
actions: _optionalChain([render, 'optionalAccess', _11 => _11.actions])
|
|
178
178
|
};
|
|
179
179
|
const followUps = _optionalChain([remaining, 'access', _12 => _12.sections, 'optionalAccess', _13 => _13.length]) || _optionalChain([remaining, 'access', _14 => _14.actions, 'optionalAccess', _15 => _15.length]) ? `
|
|
180
|
-
${
|
|
180
|
+
${_chunkBVPN57ADjs.renderCommandEnvelopeText.call(void 0, { render: remaining })}` : "";
|
|
181
181
|
const notes = rows.flatMap(
|
|
182
182
|
(row) => row.notes.map((note) => ` ${row.id}: ${note}`)
|
|
183
183
|
);
|
|
@@ -254,7 +254,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
|
|
|
254
254
|
console.error(USAGE);
|
|
255
255
|
return 1;
|
|
256
256
|
}
|
|
257
|
-
const { search_ref: searchRef, ...result } = await new (0,
|
|
257
|
+
const { search_ref: searchRef, ...result } = await new (0, _chunkKIRDHNX5js.DeeplineClient)().search({
|
|
258
258
|
query,
|
|
259
259
|
types,
|
|
260
260
|
exclude,
|
|
@@ -268,7 +268,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
|
|
|
268
268
|
});
|
|
269
269
|
if (searchRef) rememberSearchRef(searchRef);
|
|
270
270
|
pointAtDescribe(result);
|
|
271
|
-
|
|
271
|
+
_chunkBVPN57ADjs.printCommandEnvelope.call(void 0, result, {
|
|
272
272
|
json: options.json === true,
|
|
273
273
|
text: renderSearchResults(result)
|
|
274
274
|
});
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkUZQWPQ6Vjs = require('./chunk-UZQWPQ6V.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunk7P5AA3SNjs = require('./chunk-7P5AA3SN.js');
|
|
@@ -225,8 +225,8 @@ var BROWSER_OPEN_COOLDOWN_MS = 3e4;
|
|
|
225
225
|
var SAME_URL_BROWSER_OPEN_COOLDOWN_MS = 5 * 6e4;
|
|
226
226
|
var defaultBrowserCommandRunner = childProcess;
|
|
227
227
|
function getAuthedHttpClient() {
|
|
228
|
-
const config =
|
|
229
|
-
return { config, http: new (0,
|
|
228
|
+
const config = _chunkUZQWPQ6Vjs.resolveConfig.call(void 0, );
|
|
229
|
+
return { config, http: new (0, _chunkUZQWPQ6Vjs.HttpClient)(config) };
|
|
230
230
|
}
|
|
231
231
|
function stableOsUserId() {
|
|
232
232
|
try {
|
|
@@ -566,7 +566,7 @@ function collectLocalEnvInfo() {
|
|
|
566
566
|
os: `${process.platform} ${process.arch}`,
|
|
567
567
|
node_version: process.version,
|
|
568
568
|
home_dir: homeDir,
|
|
569
|
-
agent_runtime:
|
|
569
|
+
agent_runtime: _chunkUZQWPQ6Vjs.detectAgentRuntime.call(void 0, )
|
|
570
570
|
};
|
|
571
571
|
const env = process.env;
|
|
572
572
|
const optional = {
|
|
@@ -813,9 +813,9 @@ function markdownTableFromRows(rows, preferredColumns = []) {
|
|
|
813
813
|
}
|
|
814
814
|
function withAgentCommandContext(value) {
|
|
815
815
|
const valueRecord = value !== null && typeof value === "object" && !Array.isArray(value) ? value : null;
|
|
816
|
-
return
|
|
816
|
+
return _chunkUZQWPQ6Vjs.detectAgentRuntime.call(void 0, ) !== "unknown" && valueRecord && !Object.prototype.hasOwnProperty.call(valueRecord, "command_context") ? {
|
|
817
817
|
...valueRecord,
|
|
818
|
-
command_context:
|
|
818
|
+
command_context: _chunkUZQWPQ6Vjs.resolveCliCommandContext.call(void 0, )
|
|
819
819
|
} : value;
|
|
820
820
|
}
|
|
821
821
|
function printJson(value, fields) {
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
import {
|
|
2
|
+
PLAY_RUNTIME_BACKENDS,
|
|
3
|
+
RAW_V2_TOOL_RESPONSE_CONTRACT,
|
|
4
|
+
legacyRawFromToolResponseRawV2,
|
|
5
|
+
providerMetaFromToolResponseRawV2
|
|
6
|
+
} from "./chunk-6IKARAYD.mjs";
|
|
1
7
|
import {
|
|
2
8
|
PLAY_RUN_START_STREAM_PATH,
|
|
3
9
|
buildPlayRunStartBody,
|
|
@@ -15,13 +21,7 @@ import {
|
|
|
15
21
|
RETAINED_PIPELINE_RECEIVERS_HEADER,
|
|
16
22
|
RUNTIME_ENVIRONMENT_TOKEN_HEADER,
|
|
17
23
|
resolveConfig
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import {
|
|
20
|
-
PLAY_RUNTIME_BACKENDS,
|
|
21
|
-
RAW_V2_TOOL_RESPONSE_CONTRACT,
|
|
22
|
-
legacyRawFromToolResponseRawV2,
|
|
23
|
-
providerMetaFromToolResponseRawV2
|
|
24
|
-
} from "./chunk-6IKARAYD.mjs";
|
|
24
|
+
} from "./chunk-VZBNBCEB.mjs";
|
|
25
25
|
import {
|
|
26
26
|
DeeplineError,
|
|
27
27
|
TOOL_EXECUTION_ERROR_SCHEMA_HEADER,
|