deepline 0.3.410 → 0.3.411
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/package.json +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/async-operation.ts +1 -1
- package/dist/cli/auth-M7TBLW55.js +40 -0
- package/dist/cli/{auth-LLXLIILR.mjs → auth-YD6ZTMB2.mjs} +4 -4
- package/dist/cli/{billing-NFPK7GYP.js → billing-2L3MOB42.js} +73 -73
- package/dist/cli/{billing-5FVXZYAC.mjs → billing-ZT46GV4C.mjs} +4 -4
- package/dist/cli/{chunk-D37FEBES.js → chunk-2NI6DHN7.js} +2 -2
- package/dist/cli/{chunk-OBB4QXHA.js → chunk-2WUY3VNK.js} +2 -2
- package/dist/cli/{chunk-PZSLPBDA.mjs → chunk-4BA6ATHA.mjs} +2 -2
- package/dist/cli/{chunk-QJI5FIOW.js → chunk-4O4WNFFC.js} +16 -16
- package/dist/cli/{chunk-36AHOWVS.js → chunk-5IGDNBG7.js} +26 -26
- package/dist/cli/{chunk-QL22Y56M.mjs → chunk-5LRWWMRV.mjs} +5 -5
- package/dist/cli/{chunk-VK2LZ5IP.js → chunk-6AUE6JXY.js} +6 -6
- package/dist/cli/{chunk-NTVLGHFM.js → chunk-7DSMMCXP.js} +35 -35
- package/dist/cli/{chunk-ZKYEW55U.mjs → chunk-BJV3VSKE.mjs} +1 -1
- package/dist/cli/{chunk-JNXJZ577.mjs → chunk-E4KBNNNB.mjs} +1 -1
- package/dist/cli/{chunk-RFB25DSQ.mjs → chunk-E52TKKVI.mjs} +1 -1
- package/dist/cli/{chunk-VYKV5XHL.js → chunk-FRVPOXGB.js} +79 -79
- package/dist/cli/{chunk-T44IIOT6.mjs → chunk-G43JLBDE.mjs} +3 -3
- package/dist/cli/{chunk-XNZJKRJA.mjs → chunk-IPGV6VFA.mjs} +3 -3
- package/dist/cli/{chunk-XIHWSXSV.mjs → chunk-IR3AKJAY.mjs} +3 -3
- package/dist/cli/{chunk-EQ4Z7RJW.mjs → chunk-JQMZUWNM.mjs} +2 -2
- package/dist/cli/{chunk-OZ6E3IRZ.js → chunk-JYHSEGRM.js} +8 -8
- package/dist/cli/{chunk-FZJAM576.js → chunk-LWBM5FFL.js} +50 -50
- package/dist/cli/{chunk-6PGATQ6L.mjs → chunk-M6OASCVL.mjs} +2 -2
- package/dist/cli/{chunk-5TUGWDEB.js → chunk-NQWIZ5PZ.js} +20 -20
- package/dist/cli/{chunk-2YR7BIIC.mjs → chunk-OGSXENOF.mjs} +1 -1
- package/dist/cli/{chunk-FVLNYDI4.js → chunk-OZSC6CEW.js} +4 -4
- package/dist/cli/{chunk-MN2OWLFA.mjs → chunk-PO2VU6WV.mjs} +2 -2
- package/dist/cli/{chunk-IPG42SD2.mjs → chunk-RFES6Q2J.mjs} +8 -8
- package/dist/cli/{chunk-5UUQAGJS.js → chunk-RMINBDYY.js} +1 -1
- package/dist/cli/{chunk-LTFL4JRN.js → chunk-TPFD4F5S.js} +52 -52
- package/dist/cli/{chunk-63S7X326.js → chunk-U5AQKE3T.js} +10 -10
- package/dist/cli/{chunk-4XQLVUC7.mjs → chunk-UAEVKAUR.mjs} +1 -1
- package/dist/cli/{chunk-ZFZ427HN.js → chunk-VGHWJL4W.js} +8 -8
- package/dist/cli/{chunk-XHLKJOTN.mjs → chunk-XAB47ZRV.mjs} +4 -4
- package/dist/cli/{chunk-5V5Y37BC.mjs → chunk-XJD6LZCO.mjs} +1 -1
- package/dist/cli/{chunk-NF4V5DTY.js → chunk-ZHWBU36H.js} +6 -6
- package/dist/cli/{csv-ZWLDMM4A.mjs → csv-BKNRRW7D.mjs} +3 -3
- package/dist/cli/{csv-7U3FJYKZ.js → csv-SVDP2EU7.js} +12 -12
- package/dist/cli/{db-IMYXVMGI.mjs → db-LU4KLRM6.mjs} +4 -4
- package/dist/cli/{db-DNCGV5PC.js → db-OQ6S7TTZ.js} +25 -25
- package/dist/cli/{describe-S34JUX5W.js → describe-45TGETKR.js} +16 -16
- package/dist/cli/{describe-Q23DWJUK.mjs → describe-U4KOGDRA.mjs} +12 -12
- package/dist/cli/{executions-A73EUGSI.mjs → executions-2GAAUXLA.mjs} +4 -4
- package/dist/cli/{executions-XOMPX2YJ.js → executions-VZN56VRC.js} +6 -6
- package/dist/cli/{feedback-QTCHNJJH.js → feedback-NS76B5GU.js} +7 -7
- package/dist/cli/{feedback-N4GJ2POI.mjs → feedback-XW5IWA5R.mjs} +3 -3
- package/dist/cli/{git-4Q3JIQYZ.mjs → git-CLI66XP6.mjs} +4 -4
- package/dist/cli/git-VGYRGFEN.js +24 -0
- package/dist/cli/index.js +131 -131
- package/dist/cli/index.mjs +36 -36
- package/dist/cli/{legacy-noops-4OSHZM34.js → legacy-noops-HCFB3ZOV.js} +7 -7
- package/dist/cli/{legacy-noops-3SOVGFF7.mjs → legacy-noops-ODDOMLBL.mjs} +4 -4
- package/dist/cli/{monitors-LVE2KZNG.js → monitors-7WXQ7JFT.js} +84 -84
- package/dist/cli/{monitors-QP2XID2B.mjs → monitors-ZXX456TE.mjs} +4 -4
- package/dist/cli/{org-XFLK5IAP.js → org-YLX5PHBQ.js} +64 -64
- package/dist/cli/{org-IVRETVQA.mjs → org-YUN3TLNP.mjs} +4 -4
- package/dist/cli/{play-DE7VH6NU.mjs → play-LL73A7EP.mjs} +10 -10
- package/dist/cli/{play-XXTPPP23.js → play-YGOXL52D.js} +283 -283
- package/dist/cli/{providers-GX2NIZQQ.mjs → providers-35QSAUHL.mjs} +4 -4
- package/dist/cli/{providers-DLD3I4JF.js → providers-RHCIU2PX.js} +7 -7
- package/dist/cli/{quickstart-72B4L4PK.mjs → quickstart-6BN3LCZH.mjs} +3 -3
- package/dist/cli/{quickstart-XNS3HSWC.js → quickstart-ORMM4NRK.js} +5 -5
- package/dist/cli/search-EWDMUPHR.js +30 -0
- package/dist/cli/{search-SUTRANJI.mjs → search-GAERWLSE.mjs} +5 -5
- package/dist/cli/{secrets-6OBLOVEV.js → secrets-3AFCTGT7.js} +13 -13
- package/dist/cli/{secrets-FPFXXNUH.mjs → secrets-FCL5PALY.mjs} +4 -4
- package/dist/cli/{sessions-235532DR.js → sessions-3OEHEQG7.js} +5 -5
- package/dist/cli/{sessions-R25I4QKN.mjs → sessions-RSSL7I7O.mjs} +4 -4
- package/dist/cli/{settings-AOP6F5PZ.mjs → settings-GE4NRE7Y.mjs} +8 -8
- package/dist/cli/{settings-VL5FOFPN.js → settings-RX5K4I7H.js} +75 -75
- package/dist/cli/{setup-BSC67YT3.js → setup-N3ZNAEL5.js} +42 -42
- package/dist/cli/{setup-ZMPHBHVJ.mjs → setup-X3RXGG4F.mjs} +7 -7
- package/dist/cli/{skills-KF65TVFO.mjs → skills-5JEAJBDE.mjs} +5 -5
- package/dist/cli/skills-VAAQVEQC.js +29 -0
- package/dist/cli/tools-BYYOT2DU.js +44 -0
- package/dist/cli/{tools-SX4XIPM7.mjs → tools-JOKUWEBZ.mjs} +12 -12
- package/dist/cli/update-36G4ZD7B.js +31 -0
- package/dist/cli/{update-QRMFRAQQ.mjs → update-UBHEVFR3.mjs} +7 -7
- package/dist/cli/{workflow-FOEEEB7G.mjs → workflow-FR6EXAXF.mjs} +5 -5
- package/dist/cli/{workflow-KOCK2FLW.js → workflow-SZAVOHN6.js} +15 -15
- package/dist/index.js +6 -6
- package/dist/index.mjs +3 -3
- package/dist/install-integrity.json +78 -78
- 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 +1 -1
- package/dist/cli/auth-UG4WOYGL.js +0 -40
- package/dist/cli/git-I6CPBEVG.js +0 -24
- package/dist/cli/search-6NCH4HB5.js +0 -30
- package/dist/cli/skills-3IWLYYRL.js +0 -29
- package/dist/cli/tools-LR66SPYU.js +0 -44
- package/dist/cli/update-SP7UEO53.js +0 -31
|
@@ -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; } var _class;
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkZHWBU36Hjs = require('./chunk-ZHWBU36H.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
@@ -17,13 +17,13 @@ var _chunkNF4V5DTYjs = require('./chunk-NF4V5DTY.js');
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkOZSC6CEWjs = require('./chunk-OZSC6CEW.js');
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
var _chunkPPDBRJRWjs = require('./chunk-PPDBRJRW.js');
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
var
|
|
26
|
+
var _chunkRMINBDYYjs = require('./chunk-RMINBDYY.js');
|
|
27
27
|
|
|
28
28
|
// src/compat.ts
|
|
29
29
|
var _crypto = require('crypto');
|
|
@@ -58,7 +58,7 @@ function shouldSkipCompatibilityCheck() {
|
|
|
58
58
|
return value === "1" || value === "true" || value === "yes";
|
|
59
59
|
}
|
|
60
60
|
function sdkCompatibilityCachePath(baseUrl, homeDir = _optionalChain([process, 'access', _7 => _7.env, 'access', _8 => _8.HOME, 'optionalAccess', _9 => _9.trim, 'call', _10 => _10()]) || _os.homedir.call(void 0, )) {
|
|
61
|
-
return _path.join.call(void 0,
|
|
61
|
+
return _path.join.call(void 0, _chunkOZSC6CEWjs.sdkCliStateDirPath.call(void 0, baseUrl, homeDir), "compat-cache.json");
|
|
62
62
|
}
|
|
63
63
|
function legacySdkCompatibilityCachePath(homeDir = _optionalChain([process, 'access', _11 => _11.env, 'access', _12 => _12.HOME, 'optionalAccess', _13 => _13.trim, 'call', _14 => _14()]) || _os.homedir.call(void 0, )) {
|
|
64
64
|
return _path.join.call(void 0, homeDir, ".cache", "deepline", "sdk-compat-cache.json");
|
|
@@ -66,9 +66,9 @@ function legacySdkCompatibilityCachePath(homeDir = _optionalChain([process, 'acc
|
|
|
66
66
|
function compatibilityCacheKey(baseUrl, command, skillsVersion) {
|
|
67
67
|
return JSON.stringify({
|
|
68
68
|
baseUrl: baseUrl.replace(/\/$/, ""),
|
|
69
|
-
version:
|
|
70
|
-
apiContract:
|
|
71
|
-
apiMajor:
|
|
69
|
+
version: _chunkOZSC6CEWjs.SDK_VERSION,
|
|
70
|
+
apiContract: _chunkOZSC6CEWjs.SDK_API_CONTRACT,
|
|
71
|
+
apiMajor: _chunkOZSC6CEWjs.SDK_API_MAJOR,
|
|
72
72
|
command: _optionalChain([command, 'optionalAccess', _15 => _15.trim, 'call', _16 => _16()]) || null,
|
|
73
73
|
skillsVersion: _nullishCoalesce(skillsVersion, () => ( null))
|
|
74
74
|
});
|
|
@@ -76,8 +76,8 @@ function compatibilityCacheKey(baseUrl, command, skillsVersion) {
|
|
|
76
76
|
function legacyCompatibilityCacheKey(baseUrl, command) {
|
|
77
77
|
return JSON.stringify({
|
|
78
78
|
baseUrl: baseUrl.replace(/\/$/, ""),
|
|
79
|
-
version:
|
|
80
|
-
apiContract:
|
|
79
|
+
version: _chunkOZSC6CEWjs.SDK_VERSION,
|
|
80
|
+
apiContract: _chunkOZSC6CEWjs.SDK_API_CONTRACT,
|
|
81
81
|
command: _optionalChain([command, 'optionalAccess', _17 => _17.trim, 'call', _18 => _18()]) || null
|
|
82
82
|
});
|
|
83
83
|
}
|
|
@@ -102,7 +102,7 @@ function isSavedWithin(savedAt, windowMs, now) {
|
|
|
102
102
|
}
|
|
103
103
|
var UPDATE_ADVISORY_INTERVAL_MS = 24 * 60 * 60 * 1e3;
|
|
104
104
|
function claimUpdateAdvisory(baseUrl, now = Date.now()) {
|
|
105
|
-
const path = _path.join.call(void 0,
|
|
105
|
+
const path = _path.join.call(void 0, _chunkOZSC6CEWjs.sdkCliStateDirPath.call(void 0, baseUrl), "update-advisory.json");
|
|
106
106
|
try {
|
|
107
107
|
const { shownAt } = JSON.parse(_fs.readFileSync.call(void 0, path, "utf8"));
|
|
108
108
|
if (isSavedWithin(shownAt, UPDATE_ADVISORY_INTERVAL_MS, now)) return false;
|
|
@@ -186,7 +186,7 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
|
|
|
186
186
|
);
|
|
187
187
|
try {
|
|
188
188
|
const url = new URL("/api/v2/sdk/compat", baseUrl);
|
|
189
|
-
url.searchParams.set("version",
|
|
189
|
+
url.searchParams.set("version", _chunkOZSC6CEWjs.SDK_VERSION);
|
|
190
190
|
if (_optionalChain([options, 'access', _27 => _27.command, 'optionalAccess', _28 => _28.trim, 'call', _29 => _29()])) {
|
|
191
191
|
url.searchParams.set("command", options.command.trim());
|
|
192
192
|
}
|
|
@@ -194,7 +194,7 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
|
|
|
194
194
|
url.searchParams.set("skills_version", _nullishCoalesce(options.skillsVersion, () => ( "")));
|
|
195
195
|
url.searchParams.set(
|
|
196
196
|
"skills_cli_capability",
|
|
197
|
-
String(
|
|
197
|
+
String(_chunkRMINBDYYjs.SDK_RELEASE.packageCapabilities.skillsGuidance)
|
|
198
198
|
);
|
|
199
199
|
}
|
|
200
200
|
if (options.catalog) {
|
|
@@ -206,14 +206,14 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
|
|
|
206
206
|
const response = await fetch(url, {
|
|
207
207
|
method: "GET",
|
|
208
208
|
headers: {
|
|
209
|
-
...
|
|
210
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
211
|
-
"X-Deepline-SDK-Version":
|
|
212
|
-
"X-Deepline-API-Major": String(
|
|
213
|
-
"X-Deepline-API-Contract":
|
|
209
|
+
..._chunkOZSC6CEWjs.deploymentProtectionHeaders.call(void 0, ),
|
|
210
|
+
"User-Agent": `deepline-ts-sdk/${_chunkOZSC6CEWjs.SDK_VERSION}`,
|
|
211
|
+
"X-Deepline-SDK-Version": _chunkOZSC6CEWjs.SDK_VERSION,
|
|
212
|
+
"X-Deepline-API-Major": String(_chunkOZSC6CEWjs.SDK_API_MAJOR),
|
|
213
|
+
"X-Deepline-API-Contract": _chunkOZSC6CEWjs.SDK_API_CONTRACT,
|
|
214
214
|
"X-Deepline-CLI-Update-Preferences": "1",
|
|
215
215
|
"X-Deepline-CLI-Auto-Update-Capability": SDK_CLI_AUTO_UPDATE_CAPABILITY,
|
|
216
|
-
...options.catalog ? { Authorization: `Bearer ${
|
|
216
|
+
...options.catalog ? { Authorization: `Bearer ${_chunkOZSC6CEWjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl)}` } : {},
|
|
217
217
|
..._optionalChain([options, 'access', _30 => _30.catalog, 'optionalAccess', _31 => _31.cliInvocationId]) ? { "X-Deepline-CLI-Invocation-ID": options.catalog.cliInvocationId } : {}
|
|
218
218
|
},
|
|
219
219
|
signal: controller.signal
|
|
@@ -370,7 +370,7 @@ function skillsSourceUrl(baseUrl) {
|
|
|
370
370
|
function buildSkillsAddArgs(baseUrl, skillName, options = {}) {
|
|
371
371
|
const skillNames = Array.isArray(skillName) ? skillName : [skillName];
|
|
372
372
|
const [firstSkillName, ...extraSkillNames] = skillNames;
|
|
373
|
-
const agents = _nullishCoalesce(options.agents, () => (
|
|
373
|
+
const agents = _nullishCoalesce(options.agents, () => ( _chunkOZSC6CEWjs.DEFAULT_SKILL_AGENTS));
|
|
374
374
|
const values = {
|
|
375
375
|
skills_index_url: skillsIndexUrl(baseUrl),
|
|
376
376
|
skills_source_url: skillsSourceUrl(baseUrl),
|
|
@@ -409,7 +409,7 @@ var CliProgress = (_class = class {
|
|
|
409
409
|
|
|
410
410
|
// --json output is one JSON document: progress never renders under it.
|
|
411
411
|
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);
|
|
412
|
-
this.enabled = enabled && !
|
|
412
|
+
this.enabled = enabled && !_chunkZHWBU36Hjs.isJsonOutputMode.call(void 0, );
|
|
413
413
|
}
|
|
414
414
|
phase(message) {
|
|
415
415
|
if (!this.enabled || this.lastMessage === message) {
|
|
@@ -434,7 +434,7 @@ var CliProgress = (_class = class {
|
|
|
434
434
|
this.settle("\u2717");
|
|
435
435
|
}
|
|
436
436
|
writeLogLine(line) {
|
|
437
|
-
if (
|
|
437
|
+
if (_chunkZHWBU36Hjs.isJsonOutputMode.call(void 0, )) return;
|
|
438
438
|
if (!this.enabled) {
|
|
439
439
|
process.stderr.write(`${line}
|
|
440
440
|
`);
|
|
@@ -736,7 +736,7 @@ function buildEnvironmentContext() {
|
|
|
736
736
|
node_version: process.version,
|
|
737
737
|
runtime: "Node.js",
|
|
738
738
|
hostname: _os.hostname.call(void 0, ),
|
|
739
|
-
agent_runtime:
|
|
739
|
+
agent_runtime: _chunkOZSC6CEWjs.detectAgentRuntime.call(void 0, )
|
|
740
740
|
};
|
|
741
741
|
for (const key of ["CLAUDE_CODE_REMOTE", "DEEPLINE_PLUGIN_MODE"]) {
|
|
742
742
|
const normalized = _optionalChain([process, 'access', _60 => _60.env, 'access', _61 => _61[key], 'optionalAccess', _62 => _62.trim, 'call', _63 => _63()]);
|
|
@@ -758,15 +758,15 @@ function buildEnvironmentContext() {
|
|
|
758
758
|
}
|
|
759
759
|
function failureReportHeaders(apiKey) {
|
|
760
760
|
return {
|
|
761
|
-
...
|
|
761
|
+
..._chunkOZSC6CEWjs.deploymentProtectionHeaders.call(void 0, ),
|
|
762
762
|
Authorization: `Bearer ${apiKey}`,
|
|
763
763
|
"Content-Type": "application/json",
|
|
764
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
764
|
+
"User-Agent": `deepline-ts-sdk/${_chunkOZSC6CEWjs.SDK_VERSION}`,
|
|
765
765
|
"X-Deepline-Client-Family": "sdk",
|
|
766
766
|
"X-Deepline-CLI-Family": "sdk",
|
|
767
|
-
"X-Deepline-Agent-Runtime":
|
|
768
|
-
"X-Deepline-CLI-Version":
|
|
769
|
-
"X-Deepline-SDK-Version":
|
|
767
|
+
"X-Deepline-Agent-Runtime": _chunkOZSC6CEWjs.detectAgentRuntime.call(void 0, ),
|
|
768
|
+
"X-Deepline-CLI-Version": _chunkOZSC6CEWjs.SDK_VERSION,
|
|
769
|
+
"X-Deepline-SDK-Version": _chunkOZSC6CEWjs.SDK_VERSION
|
|
770
770
|
};
|
|
771
771
|
}
|
|
772
772
|
async function postFailureReport(input) {
|
|
@@ -794,7 +794,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
|
|
|
794
794
|
if (isFailureReportingDisabled()) return false;
|
|
795
795
|
let apiKey = "";
|
|
796
796
|
try {
|
|
797
|
-
apiKey =
|
|
797
|
+
apiKey = _chunkOZSC6CEWjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
|
|
798
798
|
} catch (e9) {
|
|
799
799
|
return false;
|
|
800
800
|
}
|
|
@@ -821,7 +821,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
|
|
|
821
821
|
failure_code: failureCode2,
|
|
822
822
|
failure_stage: failureStage,
|
|
823
823
|
error_body: "Automatic Deepline skills installation failed.",
|
|
824
|
-
cli_version:
|
|
824
|
+
cli_version: _chunkOZSC6CEWjs.SDK_VERSION,
|
|
825
825
|
context: {
|
|
826
826
|
environment: buildEnvironmentContext(),
|
|
827
827
|
skills_sync: {
|
|
@@ -941,7 +941,7 @@ function buildFailureReport(input) {
|
|
|
941
941
|
failure_kind: failureKind,
|
|
942
942
|
failure_code: code,
|
|
943
943
|
failure_stage: input.error === void 0 ? "command_exit" : "cli_main",
|
|
944
|
-
cli_version:
|
|
944
|
+
cli_version: _chunkOZSC6CEWjs.SDK_VERSION,
|
|
945
945
|
context: {
|
|
946
946
|
base_url: redactFailureText(input.baseUrl, 400),
|
|
947
947
|
command_summary: sanitizeCommand(input.argv),
|
|
@@ -961,8 +961,8 @@ async function maybeReportSdkCliFailure(input) {
|
|
|
961
961
|
if (isServerLoggedPlayRunStartFailure(input)) return false;
|
|
962
962
|
const exitCode = resolvedExitCode(input);
|
|
963
963
|
if (!shouldReport({ exitCode, error: input.error })) return false;
|
|
964
|
-
const baseUrl =
|
|
965
|
-
const apiKey =
|
|
964
|
+
const baseUrl = _chunkOZSC6CEWjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
965
|
+
const apiKey = _chunkOZSC6CEWjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
966
966
|
if (!apiKey) return false;
|
|
967
967
|
return postFailureReport({
|
|
968
968
|
baseUrl,
|
|
@@ -999,25 +999,25 @@ var CHECK_TIMEOUT_MS2 = 3e3;
|
|
|
999
999
|
var INSTALLER_PROBE_TIMEOUT_MS = 1e3;
|
|
1000
1000
|
var PUBLISHED_VERIFICATION_RETRY_MS = 5 * 6e4;
|
|
1001
1001
|
function shouldSkipSkillsSync() {
|
|
1002
|
-
if (
|
|
1002
|
+
if (_chunkOZSC6CEWjs.detectAgentRuntime.call(void 0, ) === "claude_cowork" || isCiEnvironment()) {
|
|
1003
1003
|
return true;
|
|
1004
1004
|
}
|
|
1005
1005
|
const value = _optionalChain([process, 'access', _84 => _84.env, 'access', _85 => _85.DEEPLINE_SKIP_SKILLS_SYNC, 'optionalAccess', _86 => _86.trim, 'call', _87 => _87(), 'access', _88 => _88.toLowerCase, 'call', _89 => _89()]);
|
|
1006
1006
|
return value === "1" || value === "true" || value === "yes" || value === "on";
|
|
1007
1007
|
}
|
|
1008
1008
|
function unavailableSkillsNoticePath(baseUrl) {
|
|
1009
|
-
return _path.join.call(void 0,
|
|
1009
|
+
return _path.join.call(void 0, _chunkOZSC6CEWjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-sync-unavailable-version");
|
|
1010
1010
|
}
|
|
1011
1011
|
var SKILLS_SYNC_IN_PROGRESS_TTL_MS = 10 * 60 * 1e3;
|
|
1012
1012
|
var SKILLS_SYNC_IN_PROGRESS_PID_CAP_MS = 6 * 60 * 60 * 1e3;
|
|
1013
|
-
var agentLeaseSegment =
|
|
1013
|
+
var agentLeaseSegment = _chunkOZSC6CEWjs.skillsAgentPathSegment;
|
|
1014
1014
|
function sortedLeaseAgents(agents) {
|
|
1015
|
-
const expanded = agents.includes("*") ? [...agents, ...
|
|
1015
|
+
const expanded = agents.includes("*") ? [...agents, ..._chunkOZSC6CEWjs.KNOWN_SKILL_AGENTS] : agents;
|
|
1016
1016
|
return [...new Set(expanded)].sort((a, b) => a.localeCompare(b));
|
|
1017
1017
|
}
|
|
1018
1018
|
function inProgressSkillsSyncPath(baseUrl, agent) {
|
|
1019
1019
|
return _path.join.call(void 0,
|
|
1020
|
-
|
|
1020
|
+
_chunkOZSC6CEWjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
1021
1021
|
`skills-sync-in-progress-${agentLeaseSegment(agent)}`
|
|
1022
1022
|
);
|
|
1023
1023
|
}
|
|
@@ -1176,7 +1176,7 @@ var SkillsStateUnavailableError = class extends Error {
|
|
|
1176
1176
|
constructor(baseUrl, error) {
|
|
1177
1177
|
const detail = error instanceof Error ? error.message : String(error);
|
|
1178
1178
|
super(
|
|
1179
|
-
`Could not save skills state in ${
|
|
1179
|
+
`Could not save skills state in ${_chunkOZSC6CEWjs.sdkCliStateDirPath.call(void 0, baseUrl)}: ${detail}`
|
|
1180
1180
|
);
|
|
1181
1181
|
this.name = "SkillsStateUnavailableError";
|
|
1182
1182
|
}
|
|
@@ -1261,7 +1261,7 @@ function skillsInstallLeasePath(baseUrl, agents) {
|
|
|
1261
1261
|
}
|
|
1262
1262
|
function deferredSkillsNoticePath(baseUrl, agents) {
|
|
1263
1263
|
return _path.join.call(void 0,
|
|
1264
|
-
|
|
1264
|
+
_chunkOZSC6CEWjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
1265
1265
|
`skills-sync-notice-${sortedLeaseAgents(agents).map(agentLeaseSegment).join("-")}`
|
|
1266
1266
|
);
|
|
1267
1267
|
}
|
|
@@ -1295,8 +1295,8 @@ function flushDeferredSkillsNotices(baseUrl, agents) {
|
|
|
1295
1295
|
if (text.trim()) writeSdkSkillsStatusLine(text.trimEnd());
|
|
1296
1296
|
}
|
|
1297
1297
|
function flushDeferredSkillsSyncNotices(baseUrl) {
|
|
1298
|
-
if (shouldSkipSkillsSync() ||
|
|
1299
|
-
const agents =
|
|
1298
|
+
if (shouldSkipSkillsSync() || _chunkOZSC6CEWjs.hasActivePluginSkills.call(void 0, )) return;
|
|
1299
|
+
const agents = _chunkOZSC6CEWjs.resolveAutoSyncSkillAgents.call(void 0, );
|
|
1300
1300
|
if (agents.length === 0) return;
|
|
1301
1301
|
flushDeferredSkillsNotices(baseUrl, agents);
|
|
1302
1302
|
}
|
|
@@ -1312,7 +1312,7 @@ function spawnDetachedSkillsSyncChild(argv, onSpawnError) {
|
|
|
1312
1312
|
}
|
|
1313
1313
|
function failedSkillsSyncPath(baseUrl, agents) {
|
|
1314
1314
|
return _path.join.call(void 0,
|
|
1315
|
-
|
|
1315
|
+
_chunkOZSC6CEWjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
1316
1316
|
`skills-sync-failed-${sortedLeaseAgents(agents).map(agentLeaseSegment).join("-")}-version`
|
|
1317
1317
|
);
|
|
1318
1318
|
}
|
|
@@ -1341,7 +1341,7 @@ function writeUnavailableSkillsNotice(baseUrl, remoteVersion, skillNames, reason
|
|
|
1341
1341
|
if (hasMarkedSkillsSyncVersion(path, remoteVersion)) return;
|
|
1342
1342
|
writeMarkedSkillsSyncVersion(path, remoteVersion);
|
|
1343
1343
|
const probes = reason === "no-installer" ? _nullishCoalesce(knownProbes, () => ( probeInstallers())) : null;
|
|
1344
|
-
const manualCommand = _optionalChain([probes, 'optionalAccess', _93 => _93.npx]) === "missing" && probes.bunx !== "missing" ? `bunx ${buildBunxSkillsInstallArgs(baseUrl, skillNames,
|
|
1344
|
+
const manualCommand = _optionalChain([probes, 'optionalAccess', _93 => _93.npx]) === "missing" && probes.bunx !== "missing" ? `bunx ${buildBunxSkillsInstallArgs(baseUrl, skillNames, _chunkOZSC6CEWjs.DEFAULT_SKILL_AGENTS).map(shellQuote).join(" ")}` : `npx ${buildSkillsInstallArgs(baseUrl, skillNames).join(" ")}`;
|
|
1345
1345
|
const explanation = reason === "unsupported-agent" ? "the detected agent has no automatic skills sync target. Automatic sync was skipped." : _optionalChain([probes, 'optionalAccess', _94 => _94.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.`;
|
|
1346
1346
|
notice(
|
|
1347
1347
|
`Deepline agent skills are out of date, but ${explanation} To install manually, run:
|
|
@@ -1429,7 +1429,7 @@ function buildSdkSkillNames(v1SkillNames2) {
|
|
|
1429
1429
|
return sortedUniqueSkillNames(v1SkillNames2);
|
|
1430
1430
|
}
|
|
1431
1431
|
function isDefaultAgentSet(agents) {
|
|
1432
|
-
return agents.length ===
|
|
1432
|
+
return agents.length === _chunkOZSC6CEWjs.DEFAULT_SKILL_AGENTS.length && agents.every((agent, index) => agent === _chunkOZSC6CEWjs.DEFAULT_SKILL_AGENTS[index]);
|
|
1433
1433
|
}
|
|
1434
1434
|
function safeSkillFilePath(value) {
|
|
1435
1435
|
if (typeof value !== "string" || !value) return false;
|
|
@@ -1586,10 +1586,10 @@ async function fetchSkillsUpdate(baseUrl, localVersion) {
|
|
|
1586
1586
|
method: "POST",
|
|
1587
1587
|
headers: { "Content-Type": "application/json" },
|
|
1588
1588
|
body: JSON.stringify({
|
|
1589
|
-
sdk_cli: { version:
|
|
1589
|
+
sdk_cli: { version: _chunkOZSC6CEWjs.SDK_VERSION },
|
|
1590
1590
|
skills: {
|
|
1591
1591
|
version: localVersion,
|
|
1592
|
-
capability:
|
|
1592
|
+
capability: _chunkRMINBDYYjs.SDK_RELEASE.packageCapabilities.skillsGuidance
|
|
1593
1593
|
}
|
|
1594
1594
|
}),
|
|
1595
1595
|
signal: controller.signal
|
|
@@ -1628,7 +1628,7 @@ function probeInstallers(timeoutMs) {
|
|
|
1628
1628
|
}
|
|
1629
1629
|
function noInstallerProbePath(baseUrl) {
|
|
1630
1630
|
return _path.join.call(void 0,
|
|
1631
|
-
|
|
1631
|
+
_chunkOZSC6CEWjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
1632
1632
|
"skills-sync-no-installer-unknown.json"
|
|
1633
1633
|
);
|
|
1634
1634
|
}
|
|
@@ -1707,7 +1707,7 @@ function temporarySkillsSyncSkipCommand() {
|
|
|
1707
1707
|
function resolveSkillsInstallSpawn(install, platform2 = process.platform) {
|
|
1708
1708
|
return resolveShellSpawn(install.command, install.args, platform2);
|
|
1709
1709
|
}
|
|
1710
|
-
function resolveSkillsInstallCommands(baseUrl, skillNames = DEFAULT_SDK_SKILL_NAMES, agents =
|
|
1710
|
+
function resolveSkillsInstallCommands(baseUrl, skillNames = DEFAULT_SDK_SKILL_NAMES, agents = _chunkOZSC6CEWjs.DEFAULT_SKILL_AGENTS, knownProbes) {
|
|
1711
1711
|
const commands = [];
|
|
1712
1712
|
const probes = _nullishCoalesce(knownProbes, () => ( probeInstallers()));
|
|
1713
1713
|
if (probes.bunx === "available") {
|
|
@@ -1859,11 +1859,11 @@ function writeSdkSkillsStatusLine(line) {
|
|
|
1859
1859
|
}
|
|
1860
1860
|
async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
|
|
1861
1861
|
if (shouldSkipSkillsSync()) return;
|
|
1862
|
-
const usingPluginSkills =
|
|
1862
|
+
const usingPluginSkills = _chunkOZSC6CEWjs.hasActivePluginSkills.call(void 0, );
|
|
1863
1863
|
if (usingPluginSkills) {
|
|
1864
1864
|
return;
|
|
1865
1865
|
}
|
|
1866
|
-
const agents =
|
|
1866
|
+
const agents = _chunkOZSC6CEWjs.resolveAutoSyncSkillAgents.call(void 0, );
|
|
1867
1867
|
if (options.mode === "detached" && agents.length > 0) {
|
|
1868
1868
|
flushDeferredSkillsNotices(baseUrl, agents);
|
|
1869
1869
|
}
|
|
@@ -1891,7 +1891,7 @@ async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
|
|
|
1891
1891
|
return;
|
|
1892
1892
|
}
|
|
1893
1893
|
try {
|
|
1894
|
-
const localVersion =
|
|
1894
|
+
const localVersion = _chunkOZSC6CEWjs.readSdkSkillsLocalVersion.call(void 0, baseUrl);
|
|
1895
1895
|
const update = options.update === void 0 ? claimedVersion ? { needsUpdate: true, remoteVersion: claimedVersion } : await fetchSkillsUpdate(baseUrl, localVersion) : options.update ? {
|
|
1896
1896
|
needsUpdate: options.update.needs_update,
|
|
1897
1897
|
remoteVersion: options.update.remote.version
|
|
@@ -2057,7 +2057,7 @@ async function runInlineSkillsSync(baseUrl, remoteVersion, agents, notices) {
|
|
|
2057
2057
|
}
|
|
2058
2058
|
}
|
|
2059
2059
|
runLegacySkillsCleanup(agents);
|
|
2060
|
-
if (!
|
|
2060
|
+
if (!_chunkOZSC6CEWjs.writeSdkSkillsLocalVersion.call(void 0, baseUrl, update.remoteVersion, agents)) {
|
|
2061
2061
|
notice(
|
|
2062
2062
|
"Deepline agent skills installed, but the local skills version could not be recorded. A later command will retry the refresh."
|
|
2063
2063
|
);
|
|
@@ -28,7 +28,7 @@ var _chunkKXMNM4AQjs = require('./chunk-KXMNM4AQ.js');
|
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
var
|
|
31
|
+
var _chunkOZSC6CEWjs = require('./chunk-OZSC6CEW.js');
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
var _chunkNPBJI7REjs = require('./chunk-NPBJI7RE.js');
|
|
@@ -647,7 +647,7 @@ var ToolCalls = class {
|
|
|
647
647
|
idempotencyKey,
|
|
648
648
|
onResponse: (response2) => {
|
|
649
649
|
lastResponse = null;
|
|
650
|
-
atomicToolsSupported = response2.headers.get(
|
|
650
|
+
atomicToolsSupported = response2.headers.get(_chunkOZSC6CEWjs.ATOMIC_TOOL_EXECUTE_SUPPORTED_HEADER) === "true";
|
|
651
651
|
recoverySupported = response2.headers.get("X-Deepline-Idempotency-Supported") === "true";
|
|
652
652
|
if (_optionalChain([options, 'optionalAccess', _29 => _29.onServerTiming])) {
|
|
653
653
|
try {
|
|
@@ -997,8 +997,8 @@ function runtimeSelectionHeaders(runtime, env) {
|
|
|
997
997
|
}
|
|
998
998
|
const receivers = _optionalChain([env, 'access', _51 => _51.DEEPLINE_RUNTIME_RETAINED_PIPELINE_RECEIVERS, 'optionalAccess', _52 => _52.trim, 'call', _53 => _53()]);
|
|
999
999
|
return {
|
|
1000
|
-
[
|
|
1001
|
-
...receivers ? { [
|
|
1000
|
+
[_chunkOZSC6CEWjs.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
|
|
1001
|
+
...receivers ? { [_chunkOZSC6CEWjs.RETAINED_PIPELINE_RECEIVERS_HEADER]: receivers } : {}
|
|
1002
1002
|
};
|
|
1003
1003
|
}
|
|
1004
1004
|
function normalizeTestPolicyOverrides(value, source) {
|
|
@@ -1069,7 +1069,7 @@ var PlayClient = class {
|
|
|
1069
1069
|
return _chunk2H4EY7KHjs.startPlayRun.call(void 0,
|
|
1070
1070
|
this.http,
|
|
1071
1071
|
resolved.request,
|
|
1072
|
-
_optionalChain([options, 'optionalAccess', _61 => _61.cliAdmission]) ? { ...headers, "X-Deepline-API-Major": String(
|
|
1072
|
+
_optionalChain([options, 'optionalAccess', _61 => _61.cliAdmission]) ? { ...headers, "X-Deepline-API-Major": String(_chunkOZSC6CEWjs.SDK_API_MAJOR) } : headers,
|
|
1073
1073
|
options
|
|
1074
1074
|
);
|
|
1075
1075
|
}
|
|
@@ -1135,9 +1135,9 @@ var PlayClient = class {
|
|
|
1135
1135
|
}
|
|
1136
1136
|
};
|
|
1137
1137
|
function createPlayClient(options) {
|
|
1138
|
-
const config =
|
|
1138
|
+
const config = _chunkOZSC6CEWjs.resolveConfig.call(void 0, options);
|
|
1139
1139
|
return new PlayClient(
|
|
1140
|
-
new (0,
|
|
1140
|
+
new (0, _chunkOZSC6CEWjs.HttpClient)(config),
|
|
1141
1141
|
_nullishCoalesce(config.environment, () => ( process.env))
|
|
1142
1142
|
);
|
|
1143
1143
|
}
|
|
@@ -3151,7 +3151,7 @@ function isolatedCiRuntimeEventReadHeaders(env) {
|
|
|
3151
3151
|
"RUNTIME_EVENT_INTERNAL_TOKEN_REQUIRED"
|
|
3152
3152
|
);
|
|
3153
3153
|
}
|
|
3154
|
-
return { [
|
|
3154
|
+
return { [_chunkOZSC6CEWjs.COORDINATOR_INTERNAL_TOKEN_HEADER]: token };
|
|
3155
3155
|
}
|
|
3156
3156
|
function sleep(ms) {
|
|
3157
3157
|
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
@@ -3389,9 +3389,9 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
3389
3389
|
* @throws {@link ConfigError} if no API key can be resolved from any source.
|
|
3390
3390
|
*/
|
|
3391
3391
|
constructor(options) {
|
|
3392
|
-
this.config =
|
|
3392
|
+
this.config = _chunkOZSC6CEWjs.resolveConfig.call(void 0, options);
|
|
3393
3393
|
this.environment = _nullishCoalesce(this.config.environment, () => ( process.env));
|
|
3394
|
-
this.http = new (0,
|
|
3394
|
+
this.http = new (0, _chunkOZSC6CEWjs.HttpClient)(this.config);
|
|
3395
3395
|
this.playClient = new PlayClient(this.http, this.environment);
|
|
3396
3396
|
this.toolCalls = new ToolCalls(
|
|
3397
3397
|
this.http,
|
|
@@ -1,10 +1,10 @@
|
|
|
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 _chunkZHWBU36Hjs = require('./chunk-ZHWBU36H.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkOZSC6CEWjs = require('./chunk-OZSC6CEW.js');
|
|
8
8
|
|
|
9
9
|
// src/cli/commands/sessions.ts
|
|
10
10
|
|
|
@@ -139,7 +139,7 @@ function currentSessionFile(agent) {
|
|
|
139
139
|
const newestFirst = listSessionFiles(agent).sort(
|
|
140
140
|
(a, b) => b.mtimeMs - a.mtimeMs
|
|
141
141
|
);
|
|
142
|
-
const sessionId =
|
|
142
|
+
const sessionId = _chunkOZSC6CEWjs.agentSessionIdFromEnvironment.call(void 0,
|
|
143
143
|
process.env,
|
|
144
144
|
agent === "auto" ? void 0 : agent === "claude" ? "claude_code" : "codex"
|
|
145
145
|
);
|
|
@@ -451,7 +451,7 @@ function buildSessionUploadContent(raw) {
|
|
|
451
451
|
return { encodedContent: encoded, needsChunking: true };
|
|
452
452
|
}
|
|
453
453
|
async function uploadPayload(path, payload) {
|
|
454
|
-
const { http } =
|
|
454
|
+
const { http } = _chunkZHWBU36Hjs.getAuthedHttpClient.call(void 0, );
|
|
455
455
|
return await http.post(path, payload);
|
|
456
456
|
}
|
|
457
457
|
async function uploadChunkedSessions(sessions, options) {
|
|
@@ -484,7 +484,7 @@ async function uploadChunkedSessions(sessions, options) {
|
|
|
484
484
|
...options.rating ? { rating: options.rating } : {}
|
|
485
485
|
});
|
|
486
486
|
const sessionIds = sessions.map((session) => session.sessionId);
|
|
487
|
-
|
|
487
|
+
_chunkZHWBU36Hjs.printCommandEnvelope.call(void 0,
|
|
488
488
|
{
|
|
489
489
|
...response,
|
|
490
490
|
ok: true,
|
|
@@ -516,7 +516,7 @@ async function handleSessionsSend(options) {
|
|
|
516
516
|
filename: _path.basename.call(void 0, filePath),
|
|
517
517
|
...rating ? { rating } : {}
|
|
518
518
|
});
|
|
519
|
-
|
|
519
|
+
_chunkZHWBU36Hjs.printCommandEnvelope.call(void 0,
|
|
520
520
|
{
|
|
521
521
|
...response2,
|
|
522
522
|
ok: true,
|
|
@@ -566,7 +566,7 @@ async function handleSessionsSend(options) {
|
|
|
566
566
|
...rating ? { rating } : {}
|
|
567
567
|
});
|
|
568
568
|
const sessionIds = built.map((session) => session.sessionId);
|
|
569
|
-
|
|
569
|
+
_chunkZHWBU36Hjs.printCommandEnvelope.call(void 0,
|
|
570
570
|
{
|
|
571
571
|
...response,
|
|
572
572
|
ok: true,
|
|
@@ -674,7 +674,7 @@ ${refreshMeta}
|
|
|
674
674
|
</body>
|
|
675
675
|
</html>`;
|
|
676
676
|
_fs.writeFileSync.call(void 0, outputPath, html, "utf8");
|
|
677
|
-
|
|
677
|
+
_chunkZHWBU36Hjs.printCommandEnvelope.call(void 0,
|
|
678
678
|
{
|
|
679
679
|
ok: true,
|
|
680
680
|
file: outputPath,
|
|
@@ -4,18 +4,18 @@ import {
|
|
|
4
4
|
resolveUpdatePlan,
|
|
5
5
|
runAutomaticUpdatePlan,
|
|
6
6
|
shouldRunCliAutoUpdate
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-5LRWWMRV.mjs";
|
|
8
8
|
import {
|
|
9
9
|
isCiEnvironment
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-IR3AKJAY.mjs";
|
|
11
11
|
import {
|
|
12
12
|
addJsonNotice,
|
|
13
13
|
isJsonOutputMode
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-XJD6LZCO.mjs";
|
|
15
15
|
import {
|
|
16
16
|
SDK_VERSION,
|
|
17
17
|
resolveApiKeyForBaseUrl
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-E52TKKVI.mjs";
|
|
19
19
|
|
|
20
20
|
// src/cli/compatibility-catalog.ts
|
|
21
21
|
var readers = /* @__PURE__ */ new WeakMap();
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkOZSC6CEWjs = require('./chunk-OZSC6CEW.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -288,8 +288,8 @@ var BROWSER_OPEN_COOLDOWN_MS = 3e4;
|
|
|
288
288
|
var SAME_URL_BROWSER_OPEN_COOLDOWN_MS = 5 * 6e4;
|
|
289
289
|
var defaultBrowserCommandRunner = childProcess;
|
|
290
290
|
function getAuthedHttpClient() {
|
|
291
|
-
const config =
|
|
292
|
-
return { config, http: new (0,
|
|
291
|
+
const config = _chunkOZSC6CEWjs.resolveConfig.call(void 0, );
|
|
292
|
+
return { config, http: new (0, _chunkOZSC6CEWjs.HttpClient)(config) };
|
|
293
293
|
}
|
|
294
294
|
function stableOsUserId() {
|
|
295
295
|
try {
|
|
@@ -629,7 +629,7 @@ function collectLocalEnvInfo() {
|
|
|
629
629
|
os: `${process.platform} ${process.arch}`,
|
|
630
630
|
node_version: process.version,
|
|
631
631
|
home_dir: homeDir,
|
|
632
|
-
agent_runtime:
|
|
632
|
+
agent_runtime: _chunkOZSC6CEWjs.detectAgentRuntime.call(void 0, )
|
|
633
633
|
};
|
|
634
634
|
const env = process.env;
|
|
635
635
|
const optional = {
|
|
@@ -876,9 +876,9 @@ function markdownTableFromRows(rows, preferredColumns = []) {
|
|
|
876
876
|
}
|
|
877
877
|
function withAgentCommandContext(value) {
|
|
878
878
|
const valueRecord = value !== null && typeof value === "object" && !Array.isArray(value) ? value : null;
|
|
879
|
-
return
|
|
879
|
+
return _chunkOZSC6CEWjs.detectAgentRuntime.call(void 0, ) !== "unknown" && valueRecord && !Object.prototype.hasOwnProperty.call(valueRecord, "command_context") ? {
|
|
880
880
|
...valueRecord,
|
|
881
|
-
command_context:
|
|
881
|
+
command_context: _chunkOZSC6CEWjs.resolveCliCommandContext.call(void 0, )
|
|
882
882
|
} : value;
|
|
883
883
|
}
|
|
884
884
|
function printJson(value, fields) {
|
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
printCommandEnvelope,
|
|
5
5
|
printJson,
|
|
6
6
|
readCsvRows
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-XJD6LZCO.mjs";
|
|
8
|
+
import "./chunk-E52TKKVI.mjs";
|
|
9
9
|
import "./chunk-MAMVGOSC.mjs";
|
|
10
10
|
import "./chunk-DLIRSHV6.mjs";
|
|
11
11
|
import "./chunk-E4IXDAZI.mjs";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-OGSXENOF.mjs";
|
|
13
13
|
import "./chunk-WZYKRD7T.mjs";
|
|
14
14
|
import "./chunk-KRD6H754.mjs";
|
|
15
15
|
|