deepline 0.3.511 → 0.3.513
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/observability/scheduled-jobs.json +36 -0
- package/dist/bundling-sources/shared_libs/observability/scheduled-work-manual.ts +2 -0
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +9 -3
- package/dist/bundling-sources/shared_libs/play-runtime/freshness-receipt-execution.ts +35 -3
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-api.ts +4 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +23 -1
- package/dist/cli/{artifacts-G6JHRHY5.mjs → artifacts-AMM4RZNI.mjs} +6 -6
- package/dist/cli/{artifacts-PLF5ZUS7.js → artifacts-SZA52D3P.js} +18 -18
- package/dist/cli/{auth-2XMJMDWG.mjs → auth-3HQ7FXPX.mjs} +5 -5
- package/dist/cli/auth-THCURTEC.js +43 -0
- package/dist/cli/{billing-6C5AI42X.mjs → billing-7AIKDEQQ.mjs} +7 -7
- package/dist/cli/{billing-Z3XFXP3H.js → billing-SVFRN4BJ.js} +82 -82
- package/dist/cli/{chunk-VEOFISLZ.mjs → chunk-3SE4O52N.mjs} +1 -1
- package/dist/cli/{chunk-JYFLIQPE.js → chunk-3UKVFI2R.js} +7 -7
- package/dist/cli/{chunk-VQ74WMKG.mjs → chunk-3WHK7WCP.mjs} +3 -3
- package/dist/cli/{chunk-5WTLXL6O.mjs → chunk-46QVEEXR.mjs} +1 -1
- package/dist/cli/{chunk-2YVRIXVR.js → chunk-4EGBOZ53.js} +9 -9
- package/dist/cli/{chunk-FF25PDQ2.js → chunk-5IZXMA2L.js} +4 -1
- package/dist/cli/{chunk-HLEZQDEZ.mjs → chunk-5T4SZPVO.mjs} +2 -2
- package/dist/cli/{chunk-77DPQI6W.mjs → chunk-5UWWZLMX.mjs} +4 -1
- package/dist/cli/{chunk-KUDNPJ43.js → chunk-6JNRYX65.js} +2 -2
- package/dist/cli/{chunk-KZBKQPSA.js → chunk-6UVAYLQG.js} +2 -2
- package/dist/cli/{chunk-XXQZYLLL.mjs → chunk-7NIBAJML.mjs} +2 -2
- package/dist/cli/{chunk-JDDKJIZU.mjs → chunk-7UVKC5G4.mjs} +1 -1
- package/dist/cli/{chunk-LDZYGM7W.js → chunk-ADB6FD2Q.js} +41 -41
- package/dist/cli/{chunk-FTT2SBBH.mjs → chunk-B4BKATGX.mjs} +5 -5
- package/dist/cli/{chunk-OQ4YBPOQ.mjs → chunk-C5KH6FDN.mjs} +3 -3
- package/dist/cli/{chunk-S5C4CWSS.mjs → chunk-CEWRCUSH.mjs} +5 -5
- package/dist/cli/{chunk-O37BQ2CG.js → chunk-D72M5LBQ.js} +10 -10
- package/dist/cli/{chunk-D5VWSR4D.js → chunk-EAQQTYJL.js} +5 -5
- package/dist/cli/{chunk-ZYVR4A4P.mjs → chunk-FC6BR2OA.mjs} +10 -10
- package/dist/cli/{chunk-ISY7PBIK.mjs → chunk-FLG3VIDQ.mjs} +5 -5
- package/dist/cli/{chunk-K4JB2BZP.js → chunk-H6WD65CD.js} +96 -96
- package/dist/cli/{chunk-WDBEWOU6.js → chunk-HDDE4Y4V.js} +2 -2
- package/dist/cli/{chunk-FAGSSIOY.js → chunk-JA5PBN44.js} +6 -6
- package/dist/cli/{chunk-PI45LZ5B.js → chunk-JI2LKS5V.js} +11 -11
- package/dist/cli/{chunk-ASXOFBF7.mjs → chunk-JNNQ53BX.mjs} +2 -2
- package/dist/cli/{chunk-PCI4MMH7.mjs → chunk-K3CUVLW7.mjs} +1 -1
- package/dist/cli/{chunk-GJWL4KTY.mjs → chunk-KINDIV44.mjs} +4 -4
- package/dist/cli/{chunk-XZ6IZIQJ.mjs → chunk-LA66PYB4.mjs} +2 -2
- package/dist/cli/{chunk-BHV7JKXQ.js → chunk-MPOF4Z44.js} +1 -1
- package/dist/cli/{chunk-QDWNVTTO.mjs → chunk-OD72PULZ.mjs} +2 -2
- package/dist/cli/{chunk-IYWN7M4I.js → chunk-ORQVTTTM.js} +5 -5
- package/dist/cli/{chunk-JHBZBCU4.mjs → chunk-P2EHYH2Q.mjs} +1 -1
- package/dist/cli/{chunk-XSBGWMI6.mjs → chunk-P63SBUEW.mjs} +1 -1
- package/dist/cli/{chunk-LKSJXTRP.js → chunk-P6TG7COR.js} +53 -53
- package/dist/cli/{chunk-YX7E2VQM.js → chunk-PFEFK2FB.js} +26 -26
- package/dist/cli/{chunk-GGQHOLH6.js → chunk-PGHCBL5G.js} +3 -3
- package/dist/cli/{chunk-RPPU3XB3.mjs → chunk-PPQU263U.mjs} +2 -2
- package/dist/cli/{chunk-XGXXNT4O.js → chunk-QDGUDNVR.js} +7 -7
- package/dist/cli/{chunk-S6KEACD3.mjs → chunk-ROIFA4H7.mjs} +6 -6
- package/dist/cli/{chunk-KK6NZHAJ.mjs → chunk-ROJ55CXM.mjs} +1 -1
- package/dist/cli/{chunk-2Q4H2Y6N.js → chunk-SDD75XIU.js} +6 -6
- package/dist/cli/{chunk-FV4PASXH.js → chunk-TWHJ4WCA.js} +16 -16
- package/dist/cli/{chunk-VHFTN6VY.js → chunk-U5QR527Y.js} +44 -44
- package/dist/cli/{chunk-PUFEARWT.js → chunk-UDVX7HKU.js} +16 -16
- package/dist/cli/{chunk-GD3ES3JU.js → chunk-VMLZQ3VM.js} +14 -14
- package/dist/cli/{chunk-XREZY4FA.mjs → chunk-WFN6SB2B.mjs} +1 -1
- package/dist/cli/{chunk-KXGH4YUQ.mjs → chunk-XCP75LSJ.mjs} +1 -1
- package/dist/cli/{chunk-JIY25SUX.js → chunk-Y2SIHXYS.js} +4 -4
- package/dist/cli/{chunk-ZWGBQKW7.js → chunk-YZW4ZLU3.js} +21 -21
- package/dist/cli/{chunk-NVMNMKZW.js → chunk-Z52XVM5I.js} +3 -3
- package/dist/cli/{chunk-SI4QXATV.mjs → chunk-ZDO67LFA.mjs} +5 -5
- package/dist/cli/{chunk-ZFJ2U76O.mjs → chunk-ZKUXTF6X.mjs} +2 -2
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-CNK6ZF3T.mjs → csv-56JWAO3Y.mjs} +4 -4
- package/dist/cli/{csv-S44OGG2O.js → csv-WKF5O6C4.js} +13 -13
- package/dist/cli/{db-AVO6QJU6.mjs → db-SENEFS45.mjs} +6 -6
- package/dist/cli/{db-WKZ6EXNG.js → db-UURETUXZ.js} +27 -27
- package/dist/cli/describe-GIJAGNZM.js +50 -0
- package/dist/cli/{describe-2HQRT5MI.mjs → describe-R3XKAGF5.mjs} +18 -18
- package/dist/cli/{executions-DKHOR7HD.mjs → executions-BAUUWHSW.mjs} +6 -6
- package/dist/cli/{executions-MTAHNARA.js → executions-WZUS3S2K.js} +8 -8
- package/dist/cli/{feedback-K6SJS4LG.mjs → feedback-5SCDE247.mjs} +5 -5
- package/dist/cli/{feedback-R2UABU3E.js → feedback-Z6A7WMJS.js} +10 -10
- package/dist/cli/{git-3EPA7433.mjs → git-246MRTK7.mjs} +5 -5
- package/dist/cli/git-D5UAIEQE.js +25 -0
- package/dist/cli/index.js +145 -145
- package/dist/cli/index.mjs +44 -44
- package/dist/cli/{legacy-noops-3Q2D2F24.js → legacy-noops-AKETAVNI.js} +9 -9
- package/dist/cli/{legacy-noops-66OPCJJD.mjs → legacy-noops-M242HT67.mjs} +6 -6
- package/dist/cli/{monitors-2PYPRWT4.mjs → monitors-N5T6PLCX.mjs} +7 -7
- package/dist/cli/{monitors-KHH4MZDF.js → monitors-QIHYTSKD.js} +100 -100
- package/dist/cli/{org-X5G36B2Q.js → org-BSCPIN7Y.js} +72 -72
- package/dist/cli/{org-WAW3OL7B.mjs → org-YMDLKBVM.mjs} +6 -6
- package/dist/cli/{pages-XDPHCHHU.js → pages-BYSQBWD5.js} +18 -18
- package/dist/cli/{pages-KABWXDGW.mjs → pages-FRLPAY6I.mjs} +6 -6
- package/dist/cli/{play-654B2HQU.mjs → play-CMJI6RNI.mjs} +18 -18
- package/dist/cli/{play-UE5FKQCO.js → play-OIJAMP5P.js} +317 -317
- package/dist/cli/{providers-QT2BZMJ7.js → providers-6Q7H2RYZ.js} +9 -9
- package/dist/cli/{providers-SKNGX6IT.mjs → providers-KWFIH3E7.mjs} +6 -6
- package/dist/cli/{quickstart-XWDVAQTT.js → quickstart-GU35UZPU.js} +6 -6
- package/dist/cli/{quickstart-BX7XMJIQ.mjs → quickstart-UZWAQ7VJ.mjs} +4 -4
- package/dist/cli/{run-JTU4K4MY.mjs → run-AJ24G4CT.mjs} +23 -23
- package/dist/cli/{run-C6YYD4AK.js → run-OYOQIVBM.js} +41 -41
- package/dist/cli/{search-NHV4Y4SX.mjs → search-2KNDV3DL.mjs} +8 -8
- package/dist/cli/search-UZM6U4MZ.js +33 -0
- package/dist/cli/{search-output-WLFFEGCY.js → search-output-526FOJQD.js} +6 -6
- package/dist/cli/{search-output-AAOMFK7K.mjs → search-output-X5TMIIA4.mjs} +4 -4
- package/dist/cli/{secrets-H4WTLQJJ.js → secrets-QL5SMK62.js} +15 -15
- package/dist/cli/{secrets-S66PZSRO.mjs → secrets-XEOGG6TV.mjs} +6 -6
- package/dist/cli/sessions-T27GUYZX.js +18 -0
- package/dist/cli/{sessions-PY6FJX3O.mjs → sessions-Z352OY5B.mjs} +6 -6
- package/dist/cli/{settings-V7BM42KQ.mjs → settings-AET5AKBY.mjs} +13 -13
- package/dist/cli/{settings-YO4FFPN6.js → settings-EKLYIRWJ.js} +86 -86
- package/dist/cli/{setup-IFZYYQ2W.js → setup-IJWDEYLG.js} +50 -50
- package/dist/cli/{setup-VUBM2HMH.mjs → setup-JPGTZYR2.mjs} +10 -10
- package/dist/cli/{skills-EYWRSQQJ.mjs → skills-DGCK6723.mjs} +8 -8
- package/dist/cli/skills-MLMVPHWG.js +37 -0
- package/dist/cli/tools-5WBKZRLQ.js +57 -0
- package/dist/cli/{tools-VZOW4MUD.mjs → tools-7GEQLQWX.mjs} +17 -17
- package/dist/cli/update-JK4NLT4H.js +35 -0
- package/dist/cli/{update-CQDJJYU2.mjs → update-SAN6LDPT.mjs} +10 -10
- package/dist/cli/{workflow-2VRDIPF3.mjs → workflow-C66GOHRB.mjs} +7 -7
- package/dist/cli/{workflow-XS3JEU6X.js → workflow-E4NGYGGM.js} +17 -17
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +106 -106
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/dist/server.js +5 -5
- package/dist/server.mjs +3 -3
- package/dist/viewer/viewer.js +16 -7
- package/package.json +1 -1
- package/dist/cli/auth-PI2KS2CD.js +0 -43
- package/dist/cli/describe-CCK77NER.js +0 -50
- package/dist/cli/git-7L3PY2A4.js +0 -25
- package/dist/cli/search-RIFW5JCK.js +0 -33
- package/dist/cli/sessions-EFWO62XJ.js +0 -18
- package/dist/cli/skills-LFP53SWQ.js +0 -37
- package/dist/cli/tools-SR2Q7KC5.js +0 -57
- package/dist/cli/update-ADZBZZZS.js +0 -35
|
@@ -1,9 +1,9 @@
|
|
|
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 _chunkZ52XVM5Ijs = require('./chunk-Z52XVM5I.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkVMLZQ3VMjs = require('./chunk-VMLZQ3VM.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -14,17 +14,17 @@ var _chunkGD3ES3JUjs = require('./chunk-GD3ES3JU.js');
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkPGHCBL5Gjs = require('./chunk-PGHCBL5G.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _chunkY2SIHXYSjs = require('./chunk-Y2SIHXYS.js');
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
var _chunkMPOF4Z44js = require('./chunk-MPOF4Z44.js');
|
|
28
28
|
|
|
29
29
|
// src/compat.ts
|
|
30
30
|
var _crypto = require('crypto');
|
|
@@ -59,7 +59,7 @@ function shouldSkipCompatibilityCheck() {
|
|
|
59
59
|
return value === "1" || value === "true" || value === "yes";
|
|
60
60
|
}
|
|
61
61
|
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, )) {
|
|
62
|
-
return _path.join.call(void 0,
|
|
62
|
+
return _path.join.call(void 0, _chunkPGHCBL5Gjs.sdkCliStateDirPath.call(void 0, baseUrl, homeDir), "compat-cache.json");
|
|
63
63
|
}
|
|
64
64
|
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, )) {
|
|
65
65
|
return _path.join.call(void 0, homeDir, ".cache", "deepline", "sdk-compat-cache.json");
|
|
@@ -67,9 +67,9 @@ function legacySdkCompatibilityCachePath(homeDir = _optionalChain([process, 'acc
|
|
|
67
67
|
function compatibilityCacheKey(baseUrl, command, skillsVersion) {
|
|
68
68
|
return JSON.stringify({
|
|
69
69
|
baseUrl: baseUrl.replace(/\/$/, ""),
|
|
70
|
-
version:
|
|
71
|
-
apiContract:
|
|
72
|
-
apiMajor:
|
|
70
|
+
version: _chunkY2SIHXYSjs.SDK_VERSION,
|
|
71
|
+
apiContract: _chunkY2SIHXYSjs.SDK_API_CONTRACT,
|
|
72
|
+
apiMajor: _chunkY2SIHXYSjs.SDK_API_MAJOR,
|
|
73
73
|
command: _optionalChain([command, 'optionalAccess', _15 => _15.trim, 'call', _16 => _16()]) || null,
|
|
74
74
|
skillsVersion: _nullishCoalesce(skillsVersion, () => ( null))
|
|
75
75
|
});
|
|
@@ -77,8 +77,8 @@ function compatibilityCacheKey(baseUrl, command, skillsVersion) {
|
|
|
77
77
|
function legacyCompatibilityCacheKey(baseUrl, command) {
|
|
78
78
|
return JSON.stringify({
|
|
79
79
|
baseUrl: baseUrl.replace(/\/$/, ""),
|
|
80
|
-
version:
|
|
81
|
-
apiContract:
|
|
80
|
+
version: _chunkY2SIHXYSjs.SDK_VERSION,
|
|
81
|
+
apiContract: _chunkY2SIHXYSjs.SDK_API_CONTRACT,
|
|
82
82
|
command: _optionalChain([command, 'optionalAccess', _17 => _17.trim, 'call', _18 => _18()]) || null
|
|
83
83
|
});
|
|
84
84
|
}
|
|
@@ -103,7 +103,7 @@ function isSavedWithin(savedAt, windowMs, now) {
|
|
|
103
103
|
}
|
|
104
104
|
var UPDATE_ADVISORY_INTERVAL_MS = 24 * 60 * 60 * 1e3;
|
|
105
105
|
function claimUpdateAdvisory(baseUrl, now = Date.now()) {
|
|
106
|
-
const path = _path.join.call(void 0,
|
|
106
|
+
const path = _path.join.call(void 0, _chunkPGHCBL5Gjs.sdkCliStateDirPath.call(void 0, baseUrl), "update-advisory.json");
|
|
107
107
|
try {
|
|
108
108
|
const { shownAt } = JSON.parse(_fs.readFileSync.call(void 0, path, "utf8"));
|
|
109
109
|
if (isSavedWithin(shownAt, UPDATE_ADVISORY_INTERVAL_MS, now)) return false;
|
|
@@ -190,7 +190,7 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
|
|
|
190
190
|
);
|
|
191
191
|
try {
|
|
192
192
|
const url = new URL("/api/v2/sdk/compat", baseUrl);
|
|
193
|
-
url.searchParams.set("version",
|
|
193
|
+
url.searchParams.set("version", _chunkY2SIHXYSjs.SDK_VERSION);
|
|
194
194
|
if (_optionalChain([options, 'access', _34 => _34.command, 'optionalAccess', _35 => _35.trim, 'call', _36 => _36()])) {
|
|
195
195
|
url.searchParams.set("command", options.command.trim());
|
|
196
196
|
}
|
|
@@ -198,7 +198,7 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
|
|
|
198
198
|
url.searchParams.set("skills_version", _nullishCoalesce(options.skillsVersion, () => ( "")));
|
|
199
199
|
url.searchParams.set(
|
|
200
200
|
"skills_cli_capability",
|
|
201
|
-
String(
|
|
201
|
+
String(_chunkMPOF4Z44js.SDK_RELEASE.packageCapabilities.skillsGuidance)
|
|
202
202
|
);
|
|
203
203
|
}
|
|
204
204
|
if (options.catalog) {
|
|
@@ -210,14 +210,14 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
|
|
|
210
210
|
const response = await fetch(url, {
|
|
211
211
|
method: "GET",
|
|
212
212
|
headers: {
|
|
213
|
-
...
|
|
214
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
215
|
-
"X-Deepline-SDK-Version":
|
|
216
|
-
"X-Deepline-API-Major": String(
|
|
217
|
-
"X-Deepline-API-Contract":
|
|
213
|
+
..._chunkY2SIHXYSjs.deploymentProtectionHeaders.call(void 0, ),
|
|
214
|
+
"User-Agent": `deepline-ts-sdk/${_chunkY2SIHXYSjs.SDK_VERSION}`,
|
|
215
|
+
"X-Deepline-SDK-Version": _chunkY2SIHXYSjs.SDK_VERSION,
|
|
216
|
+
"X-Deepline-API-Major": String(_chunkY2SIHXYSjs.SDK_API_MAJOR),
|
|
217
|
+
"X-Deepline-API-Contract": _chunkY2SIHXYSjs.SDK_API_CONTRACT,
|
|
218
218
|
"X-Deepline-CLI-Update-Preferences": "1",
|
|
219
219
|
"X-Deepline-CLI-Auto-Update-Capability": SDK_CLI_AUTO_UPDATE_CAPABILITY,
|
|
220
|
-
...options.catalog ? { Authorization: `Bearer ${
|
|
220
|
+
...options.catalog ? { Authorization: `Bearer ${_chunkPGHCBL5Gjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl)}` } : {},
|
|
221
221
|
..._optionalChain([options, 'access', _37 => _37.catalog, 'optionalAccess', _38 => _38.cliInvocationId]) ? { "X-Deepline-CLI-Invocation-ID": options.catalog.cliInvocationId } : {}
|
|
222
222
|
},
|
|
223
223
|
signal: controller.signal
|
|
@@ -386,7 +386,7 @@ function skillsSourceUrl(baseUrl) {
|
|
|
386
386
|
function buildSkillsAddArgs(baseUrl, skillName, options = {}) {
|
|
387
387
|
const skillNames = Array.isArray(skillName) ? skillName : [skillName];
|
|
388
388
|
const [firstSkillName, ...extraSkillNames] = skillNames;
|
|
389
|
-
const agents = _nullishCoalesce(options.agents, () => (
|
|
389
|
+
const agents = _nullishCoalesce(options.agents, () => ( _chunkPGHCBL5Gjs.DEFAULT_SKILL_AGENTS));
|
|
390
390
|
const values = {
|
|
391
391
|
skills_index_url: skillsIndexUrl(baseUrl),
|
|
392
392
|
skills_source_url: skillsSourceUrl(baseUrl),
|
|
@@ -514,25 +514,25 @@ var CHECK_TIMEOUT_MS2 = 3e3;
|
|
|
514
514
|
var INSTALLER_PROBE_TIMEOUT_MS = 1e3;
|
|
515
515
|
var PUBLISHED_VERIFICATION_RETRY_MS = 5 * 6e4;
|
|
516
516
|
function shouldSkipSkillsSync() {
|
|
517
|
-
if (
|
|
517
|
+
if (_chunkY2SIHXYSjs.detectAgentRuntime.call(void 0, ) === "claude_cowork" || isCiEnvironment()) {
|
|
518
518
|
return true;
|
|
519
519
|
}
|
|
520
520
|
const value = _optionalChain([process, 'access', _57 => _57.env, 'access', _58 => _58.DEEPLINE_SKIP_SKILLS_SYNC, 'optionalAccess', _59 => _59.trim, 'call', _60 => _60(), 'access', _61 => _61.toLowerCase, 'call', _62 => _62()]);
|
|
521
521
|
return value === "1" || value === "true" || value === "yes" || value === "on" || !isCliSkillsSyncEnabled();
|
|
522
522
|
}
|
|
523
523
|
function unavailableSkillsNoticePath(baseUrl) {
|
|
524
|
-
return _path.join.call(void 0,
|
|
524
|
+
return _path.join.call(void 0, _chunkPGHCBL5Gjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-sync-unavailable-version");
|
|
525
525
|
}
|
|
526
526
|
var SKILLS_SYNC_IN_PROGRESS_TTL_MS = 10 * 60 * 1e3;
|
|
527
527
|
var SKILLS_SYNC_IN_PROGRESS_PID_CAP_MS = 6 * 60 * 60 * 1e3;
|
|
528
|
-
var agentLeaseSegment =
|
|
528
|
+
var agentLeaseSegment = _chunkPGHCBL5Gjs.skillsAgentPathSegment;
|
|
529
529
|
function sortedLeaseAgents(agents) {
|
|
530
|
-
const expanded = agents.includes("*") ? [...agents, ...
|
|
530
|
+
const expanded = agents.includes("*") ? [...agents, ..._chunkPGHCBL5Gjs.KNOWN_SKILL_AGENTS] : agents;
|
|
531
531
|
return [...new Set(expanded)].sort((a, b) => a.localeCompare(b));
|
|
532
532
|
}
|
|
533
533
|
function inProgressSkillsSyncPath(baseUrl, agent) {
|
|
534
534
|
return _path.join.call(void 0,
|
|
535
|
-
|
|
535
|
+
_chunkPGHCBL5Gjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
536
536
|
`skills-sync-in-progress-${agentLeaseSegment(agent)}`
|
|
537
537
|
);
|
|
538
538
|
}
|
|
@@ -691,7 +691,7 @@ var SkillsStateUnavailableError = class extends Error {
|
|
|
691
691
|
constructor(baseUrl, error) {
|
|
692
692
|
const detail = error instanceof Error ? error.message : String(error);
|
|
693
693
|
super(
|
|
694
|
-
`Could not save skills state in ${
|
|
694
|
+
`Could not save skills state in ${_chunkPGHCBL5Gjs.sdkCliStateDirPath.call(void 0, baseUrl)}: ${detail}`
|
|
695
695
|
);
|
|
696
696
|
this.name = "SkillsStateUnavailableError";
|
|
697
697
|
}
|
|
@@ -776,7 +776,7 @@ function skillsInstallLeasePath(baseUrl, agents) {
|
|
|
776
776
|
}
|
|
777
777
|
function deferredSkillsNoticePath(baseUrl, agents) {
|
|
778
778
|
return _path.join.call(void 0,
|
|
779
|
-
|
|
779
|
+
_chunkPGHCBL5Gjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
780
780
|
`skills-sync-notice-${sortedLeaseAgents(agents).map(agentLeaseSegment).join("-")}`
|
|
781
781
|
);
|
|
782
782
|
}
|
|
@@ -810,8 +810,8 @@ function flushDeferredSkillsNotices(baseUrl, agents) {
|
|
|
810
810
|
if (text.trim()) writeSdkSkillsStatusLine(text.trimEnd());
|
|
811
811
|
}
|
|
812
812
|
function flushDeferredSkillsSyncNotices(baseUrl) {
|
|
813
|
-
if (shouldSkipSkillsSync() ||
|
|
814
|
-
const agents =
|
|
813
|
+
if (shouldSkipSkillsSync() || _chunkPGHCBL5Gjs.hasActivePluginSkills.call(void 0, )) return;
|
|
814
|
+
const agents = _chunkPGHCBL5Gjs.resolveAutoSyncSkillAgents.call(void 0, );
|
|
815
815
|
if (agents.length === 0) return;
|
|
816
816
|
flushDeferredSkillsNotices(baseUrl, agents);
|
|
817
817
|
}
|
|
@@ -827,7 +827,7 @@ function spawnDetachedSkillsSyncChild(argv, onSpawnError) {
|
|
|
827
827
|
}
|
|
828
828
|
function failedSkillsSyncPath(baseUrl, agents) {
|
|
829
829
|
return _path.join.call(void 0,
|
|
830
|
-
|
|
830
|
+
_chunkPGHCBL5Gjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
831
831
|
`skills-sync-failed-${sortedLeaseAgents(agents).map(agentLeaseSegment).join("-")}-version`
|
|
832
832
|
);
|
|
833
833
|
}
|
|
@@ -856,7 +856,7 @@ function writeUnavailableSkillsNotice(baseUrl, remoteVersion, skillNames, reason
|
|
|
856
856
|
if (hasMarkedSkillsSyncVersion(path, remoteVersion)) return;
|
|
857
857
|
writeMarkedSkillsSyncVersion(path, remoteVersion);
|
|
858
858
|
const probes = reason === "no-installer" ? _nullishCoalesce(knownProbes, () => ( probeInstallers())) : null;
|
|
859
|
-
const manualCommand = _optionalChain([probes, 'optionalAccess', _66 => _66.npx]) === "missing" && probes.bunx !== "missing" ? `bunx ${buildBunxSkillsInstallArgs(baseUrl, skillNames,
|
|
859
|
+
const manualCommand = _optionalChain([probes, 'optionalAccess', _66 => _66.npx]) === "missing" && probes.bunx !== "missing" ? `bunx ${buildBunxSkillsInstallArgs(baseUrl, skillNames, _chunkPGHCBL5Gjs.DEFAULT_SKILL_AGENTS).map(shellQuote).join(" ")}` : `npx ${buildSkillsInstallArgs(baseUrl, skillNames).join(" ")}`;
|
|
860
860
|
const explanation = reason === "unsupported-agent" ? "the detected agent has no automatic skills sync target. Automatic sync was skipped." : _optionalChain([probes, 'optionalAccess', _67 => _67.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.`;
|
|
861
861
|
notice(
|
|
862
862
|
`Deepline agent skills are out of date, but ${explanation} To install manually, run:
|
|
@@ -944,7 +944,7 @@ function buildSdkSkillNames(v1SkillNames2) {
|
|
|
944
944
|
return sortedUniqueSkillNames(v1SkillNames2);
|
|
945
945
|
}
|
|
946
946
|
function isDefaultAgentSet(agents) {
|
|
947
|
-
return agents.length ===
|
|
947
|
+
return agents.length === _chunkPGHCBL5Gjs.DEFAULT_SKILL_AGENTS.length && agents.every((agent, index) => agent === _chunkPGHCBL5Gjs.DEFAULT_SKILL_AGENTS[index]);
|
|
948
948
|
}
|
|
949
949
|
function safeSkillFilePath(value) {
|
|
950
950
|
if (typeof value !== "string" || !value) return false;
|
|
@@ -1101,10 +1101,10 @@ async function fetchSkillsUpdate(baseUrl, localVersion) {
|
|
|
1101
1101
|
method: "POST",
|
|
1102
1102
|
headers: { "Content-Type": "application/json" },
|
|
1103
1103
|
body: JSON.stringify({
|
|
1104
|
-
sdk_cli: { version:
|
|
1104
|
+
sdk_cli: { version: _chunkY2SIHXYSjs.SDK_VERSION },
|
|
1105
1105
|
skills: {
|
|
1106
1106
|
version: localVersion,
|
|
1107
|
-
capability:
|
|
1107
|
+
capability: _chunkMPOF4Z44js.SDK_RELEASE.packageCapabilities.skillsGuidance
|
|
1108
1108
|
}
|
|
1109
1109
|
}),
|
|
1110
1110
|
signal: controller.signal
|
|
@@ -1143,7 +1143,7 @@ function probeInstallers(timeoutMs) {
|
|
|
1143
1143
|
}
|
|
1144
1144
|
function noInstallerProbePath(baseUrl) {
|
|
1145
1145
|
return _path.join.call(void 0,
|
|
1146
|
-
|
|
1146
|
+
_chunkPGHCBL5Gjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
1147
1147
|
"skills-sync-no-installer-unknown.json"
|
|
1148
1148
|
);
|
|
1149
1149
|
}
|
|
@@ -1222,7 +1222,7 @@ function temporarySkillsSyncSkipCommand() {
|
|
|
1222
1222
|
function resolveSkillsInstallSpawn(install, platform = process.platform) {
|
|
1223
1223
|
return resolveShellSpawn(install.command, install.args, platform);
|
|
1224
1224
|
}
|
|
1225
|
-
function resolveSkillsInstallCommands(baseUrl, skillNames = DEFAULT_SDK_SKILL_NAMES, agents =
|
|
1225
|
+
function resolveSkillsInstallCommands(baseUrl, skillNames = DEFAULT_SDK_SKILL_NAMES, agents = _chunkPGHCBL5Gjs.DEFAULT_SKILL_AGENTS, knownProbes) {
|
|
1226
1226
|
const commands = [];
|
|
1227
1227
|
const probes = _nullishCoalesce(knownProbes, () => ( probeInstallers()));
|
|
1228
1228
|
if (probes.bunx === "available") {
|
|
@@ -1364,7 +1364,7 @@ function runLegacySkillsCleanup(agents) {
|
|
|
1364
1364
|
}
|
|
1365
1365
|
}
|
|
1366
1366
|
function writeSdkSkillsStatusLine(line) {
|
|
1367
|
-
const progress =
|
|
1367
|
+
const progress = _chunkZ52XVM5Ijs.getActiveCliProgress.call(void 0, );
|
|
1368
1368
|
if (progress) {
|
|
1369
1369
|
progress.writeLine(line);
|
|
1370
1370
|
return;
|
|
@@ -1375,11 +1375,11 @@ function writeSdkSkillsStatusLine(line) {
|
|
|
1375
1375
|
async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
|
|
1376
1376
|
const skip = shouldSkipSkillsSync();
|
|
1377
1377
|
if (skip && !options.claim) return;
|
|
1378
|
-
const usingPluginSkills =
|
|
1378
|
+
const usingPluginSkills = _chunkPGHCBL5Gjs.hasActivePluginSkills.call(void 0, );
|
|
1379
1379
|
if (usingPluginSkills) {
|
|
1380
1380
|
return;
|
|
1381
1381
|
}
|
|
1382
|
-
const agents =
|
|
1382
|
+
const agents = _chunkPGHCBL5Gjs.resolveAutoSyncSkillAgents.call(void 0, );
|
|
1383
1383
|
if (options.mode === "detached" && agents.length > 0) {
|
|
1384
1384
|
flushDeferredSkillsNotices(baseUrl, agents);
|
|
1385
1385
|
}
|
|
@@ -1411,7 +1411,7 @@ async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
|
|
|
1411
1411
|
return;
|
|
1412
1412
|
}
|
|
1413
1413
|
try {
|
|
1414
|
-
const localVersion =
|
|
1414
|
+
const localVersion = _chunkPGHCBL5Gjs.readSdkSkillsLocalVersion.call(void 0, baseUrl);
|
|
1415
1415
|
const update = options.update === void 0 ? claimedVersion ? { needsUpdate: true, remoteVersion: claimedVersion } : await fetchSkillsUpdate(baseUrl, localVersion) : options.update ? {
|
|
1416
1416
|
needsUpdate: options.update.needs_update,
|
|
1417
1417
|
remoteVersion: options.update.remote.version
|
|
@@ -1533,7 +1533,7 @@ async function runInlineSkillsSync(baseUrl, remoteVersion, agents, notices) {
|
|
|
1533
1533
|
update.remoteVersion,
|
|
1534
1534
|
agents
|
|
1535
1535
|
);
|
|
1536
|
-
void
|
|
1536
|
+
void _chunkVMLZQ3VMjs.maybeReportAutomaticSkillsSyncFailure.call(void 0, {
|
|
1537
1537
|
baseUrl,
|
|
1538
1538
|
remoteSkillsVersion: update.remoteVersion,
|
|
1539
1539
|
agents,
|
|
@@ -1564,7 +1564,7 @@ async function runInlineSkillsSync(baseUrl, remoteVersion, agents, notices) {
|
|
|
1564
1564
|
notice(
|
|
1565
1565
|
publishedFailure ? `Deepline could not verify the published skills: ${detail}. The local version remains stale; it will retry automatically on a later command.` : `Deepline agent-skills refresh could not verify the five installed targets: ${detail}. The local version remains stale. After fixing the install, remove ${failedSkillsSyncPath(baseUrl, agents)} to retry this version automatically.`
|
|
1566
1566
|
);
|
|
1567
|
-
void
|
|
1567
|
+
void _chunkVMLZQ3VMjs.maybeReportAutomaticSkillsSyncFailure.call(void 0, {
|
|
1568
1568
|
baseUrl,
|
|
1569
1569
|
remoteSkillsVersion: update.remoteVersion,
|
|
1570
1570
|
agents,
|
|
@@ -1577,7 +1577,7 @@ async function runInlineSkillsSync(baseUrl, remoteVersion, agents, notices) {
|
|
|
1577
1577
|
}
|
|
1578
1578
|
}
|
|
1579
1579
|
runLegacySkillsCleanup(agents);
|
|
1580
|
-
if (!
|
|
1580
|
+
if (!_chunkPGHCBL5Gjs.writeSdkSkillsLocalVersion.call(void 0, baseUrl, update.remoteVersion, agents)) {
|
|
1581
1581
|
notice(
|
|
1582
1582
|
"Deepline agent skills installed, but the local skills version could not be recorded. A later command will retry the refresh."
|
|
1583
1583
|
);
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunk6UVAYLQGjs = require('./chunk-6UVAYLQG.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkADB6FD2Qjs = require('./chunk-ADB6FD2Q.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkU5QR527Yjs = require('./chunk-U5QR527Y.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunk3UKVFI2Rjs = require('./chunk-3UKVFI2R.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkPGHCBL5Gjs = require('./chunk-PGHCBL5G.js');
|
|
17
17
|
|
|
18
18
|
// src/cli/commands/update.ts
|
|
19
19
|
var _child_process = require('child_process');
|
|
@@ -495,7 +495,7 @@ function normalizedNpmPrefix(value) {
|
|
|
495
495
|
}
|
|
496
496
|
function resolveNpmGlobalPrefix(env) {
|
|
497
497
|
try {
|
|
498
|
-
const plan =
|
|
498
|
+
const plan = _chunkU5QR527Yjs.resolveShellSpawn.call(void 0,
|
|
499
499
|
"npm",
|
|
500
500
|
["prefix", "-g"],
|
|
501
501
|
process.platform,
|
|
@@ -556,8 +556,8 @@ function resolveUpdatePlan(options = {}) {
|
|
|
556
556
|
const npmGlobalPrefix = options.npmGlobalPrefix !== void 0 ? options.npmGlobalPrefix : resolveNpmGlobalPrefix(env);
|
|
557
557
|
const hasVerifiedNpmOwnership = inferredInstallPrefix !== null && normalizedNpmPrefix(inferredInstallPrefix) === normalizedNpmPrefix(npmGlobalPrefix);
|
|
558
558
|
const installPrefix = options.requireVerifiedNpmOwnership ? hasVerifiedNpmOwnership ? inferredInstallPrefix : null : inferredInstallPrefix;
|
|
559
|
-
const npmVersion = options.npmVersion === void 0 ?
|
|
560
|
-
const npmGlobalInstallFlags =
|
|
559
|
+
const npmVersion = options.npmVersion === void 0 ? _chunk6UVAYLQGjs.readNpmVersion.call(void 0, env) : options.npmVersion;
|
|
560
|
+
const npmGlobalInstallFlags = _chunk6UVAYLQGjs.npmSupportsAllowScripts.call(void 0, npmVersion) ? [...NPM_SDK_INSTALL_COMMON_FLAGS, "--allow-scripts=esbuild"] : NPM_SDK_INSTALL_COMMON_FLAGS;
|
|
561
561
|
const args = installPrefix ? [
|
|
562
562
|
"install",
|
|
563
563
|
"-g",
|
|
@@ -567,7 +567,7 @@ function resolveUpdatePlan(options = {}) {
|
|
|
567
567
|
packageSpec
|
|
568
568
|
] : ["install", "-g", ...npmGlobalInstallFlags, packageSpec];
|
|
569
569
|
const fallbackRegistryUrl = options.npmFallbackRegistryUrl !== void 0 ? options.npmFallbackRegistryUrl : publicNpmFallbackRegistryUrl(
|
|
570
|
-
_optionalChain([env, 'access', _22 => _22.DEEPLINE_HOST_URL, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()]) ||
|
|
570
|
+
_optionalChain([env, 'access', _22 => _22.DEEPLINE_HOST_URL, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()]) || _chunkPGHCBL5Gjs.autoDetectBaseUrl.call(void 0, )
|
|
571
571
|
);
|
|
572
572
|
return {
|
|
573
573
|
kind: "npm-global",
|
|
@@ -816,7 +816,7 @@ function sidecarInstallFailure(versionDir) {
|
|
|
816
816
|
function runCommand(command, args, env = process.env) {
|
|
817
817
|
return new Promise((resolveResult) => {
|
|
818
818
|
let output = "";
|
|
819
|
-
const plan =
|
|
819
|
+
const plan = _chunkU5QR527Yjs.resolveShellSpawn.call(void 0, command, args, process.platform, env);
|
|
820
820
|
const child = _child_process.spawn.call(void 0, plan.command, plan.args, {
|
|
821
821
|
stdio: ["inherit", "pipe", "pipe"],
|
|
822
822
|
shell: plan.shell,
|
|
@@ -1199,14 +1199,14 @@ async function publishedVersionSupportsPin(version, fallbackRegistryUrl) {
|
|
|
1199
1199
|
throw _nullishCoalesce(lastError, () => ( new Error("No npm registry was available")));
|
|
1200
1200
|
}
|
|
1201
1201
|
async function runUpdateCommand(options, dependencies = {}) {
|
|
1202
|
-
const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => (
|
|
1202
|
+
const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => ( _chunkPGHCBL5Gjs.autoDetectBaseUrl));
|
|
1203
1203
|
const resolvePlan = _nullishCoalesce(dependencies.resolvePlan, () => ( resolveUpdatePlan));
|
|
1204
1204
|
const runPlan = _nullishCoalesce(dependencies.runPlan, () => ( runUpdatePlan));
|
|
1205
1205
|
const syncSkills = _nullishCoalesce(dependencies.syncSkillsIfNeeded, () => ( (async () => {
|
|
1206
1206
|
const originalWrite = process.stdout.write.bind(process.stdout);
|
|
1207
1207
|
process.stdout.write = (() => true);
|
|
1208
1208
|
try {
|
|
1209
|
-
const exitCode = await
|
|
1209
|
+
const exitCode = await _chunkADB6FD2Qjs.runSkillsCommand.call(void 0, { json: true });
|
|
1210
1210
|
if (exitCode !== 0) {
|
|
1211
1211
|
throw new Error(
|
|
1212
1212
|
`Deepline skills update failed with exit ${exitCode}.`
|
|
@@ -1277,11 +1277,11 @@ async function runUpdateCommand(options, dependencies = {}) {
|
|
|
1277
1277
|
]
|
|
1278
1278
|
};
|
|
1279
1279
|
if (options.json && !options.executeWithJson) {
|
|
1280
|
-
|
|
1280
|
+
_chunk3UKVFI2Rjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: true });
|
|
1281
1281
|
return 0;
|
|
1282
1282
|
}
|
|
1283
1283
|
if (options.printCommand) {
|
|
1284
|
-
|
|
1284
|
+
_chunk3UKVFI2Rjs.printCommandEnvelope.call(void 0,
|
|
1285
1285
|
{
|
|
1286
1286
|
...plan,
|
|
1287
1287
|
render: {
|
|
@@ -1294,7 +1294,7 @@ async function runUpdateCommand(options, dependencies = {}) {
|
|
|
1294
1294
|
return 0;
|
|
1295
1295
|
}
|
|
1296
1296
|
if (plan.kind === "source" || plan.kind === "homebrew") {
|
|
1297
|
-
|
|
1297
|
+
_chunk3UKVFI2Rjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: false });
|
|
1298
1298
|
return 0;
|
|
1299
1299
|
}
|
|
1300
1300
|
stderr.write(`Updating Deepline SDK/CLI with: ${plan.manualCommand}
|
|
@@ -1324,7 +1324,7 @@ To retry with full installer output, run: deepline skills install
|
|
|
1324
1324
|
);
|
|
1325
1325
|
}
|
|
1326
1326
|
if (options.executeWithJson && options.json) {
|
|
1327
|
-
|
|
1327
|
+
_chunk3UKVFI2Rjs.printCommandEnvelope.call(void 0,
|
|
1328
1328
|
{
|
|
1329
1329
|
ok: true,
|
|
1330
1330
|
pinnedVersion
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkPGHCBL5Gjs = require('./chunk-PGHCBL5G.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkY2SIHXYSjs = require('./chunk-Y2SIHXYS.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
|
|
@@ -150,7 +150,7 @@ function buildEnvironmentContext() {
|
|
|
150
150
|
node_version: process.version,
|
|
151
151
|
runtime: "Node.js",
|
|
152
152
|
hostname: _os.hostname.call(void 0, ),
|
|
153
|
-
agent_runtime:
|
|
153
|
+
agent_runtime: _chunkY2SIHXYSjs.detectAgentRuntime.call(void 0, )
|
|
154
154
|
};
|
|
155
155
|
for (const key of ["CLAUDE_CODE_REMOTE", "DEEPLINE_PLUGIN_MODE"]) {
|
|
156
156
|
const normalized = _optionalChain([process, 'access', _5 => _5.env, 'access', _6 => _6[key], 'optionalAccess', _7 => _7.trim, 'call', _8 => _8()]);
|
|
@@ -171,18 +171,18 @@ function buildEnvironmentContext() {
|
|
|
171
171
|
return context;
|
|
172
172
|
}
|
|
173
173
|
function failureReportHeaders(apiKey) {
|
|
174
|
-
const agentSessionId =
|
|
174
|
+
const agentSessionId = _chunkY2SIHXYSjs.agentSessionIdFromEnvironment.call(void 0, );
|
|
175
175
|
return {
|
|
176
|
-
...
|
|
176
|
+
..._chunkY2SIHXYSjs.deploymentProtectionHeaders.call(void 0, ),
|
|
177
177
|
...agentSessionId ? { "X-Deepline-Agent-Session-Id": agentSessionId } : {},
|
|
178
178
|
Authorization: `Bearer ${apiKey}`,
|
|
179
179
|
"Content-Type": "application/json",
|
|
180
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
180
|
+
"User-Agent": `deepline-ts-sdk/${_chunkY2SIHXYSjs.SDK_VERSION}`,
|
|
181
181
|
"X-Deepline-Client-Family": "sdk",
|
|
182
182
|
"X-Deepline-CLI-Family": "sdk",
|
|
183
|
-
"X-Deepline-Agent-Runtime":
|
|
184
|
-
"X-Deepline-CLI-Version":
|
|
185
|
-
"X-Deepline-SDK-Version":
|
|
183
|
+
"X-Deepline-Agent-Runtime": _chunkY2SIHXYSjs.detectAgentRuntime.call(void 0, ),
|
|
184
|
+
"X-Deepline-CLI-Version": _chunkY2SIHXYSjs.SDK_VERSION,
|
|
185
|
+
"X-Deepline-SDK-Version": _chunkY2SIHXYSjs.SDK_VERSION
|
|
186
186
|
};
|
|
187
187
|
}
|
|
188
188
|
async function postFailureReport(input) {
|
|
@@ -210,7 +210,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
|
|
|
210
210
|
if (isFailureReportingDisabled()) return false;
|
|
211
211
|
let apiKey = "";
|
|
212
212
|
try {
|
|
213
|
-
apiKey =
|
|
213
|
+
apiKey = _chunkPGHCBL5Gjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
|
|
214
214
|
} catch (e2) {
|
|
215
215
|
return false;
|
|
216
216
|
}
|
|
@@ -237,7 +237,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
|
|
|
237
237
|
failure_code: failureCode2,
|
|
238
238
|
failure_stage: failureStage,
|
|
239
239
|
error_body: "Automatic Deepline skills installation failed.",
|
|
240
|
-
cli_version:
|
|
240
|
+
cli_version: _chunkY2SIHXYSjs.SDK_VERSION,
|
|
241
241
|
context: {
|
|
242
242
|
environment: buildEnvironmentContext(),
|
|
243
243
|
skills_sync: {
|
|
@@ -357,7 +357,7 @@ function buildFailureReport(input) {
|
|
|
357
357
|
failure_kind: failureKind,
|
|
358
358
|
failure_code: code,
|
|
359
359
|
failure_stage: input.error === void 0 ? "command_exit" : "cli_main",
|
|
360
|
-
cli_version:
|
|
360
|
+
cli_version: _chunkY2SIHXYSjs.SDK_VERSION,
|
|
361
361
|
context: {
|
|
362
362
|
base_url: redactFailureText(input.baseUrl, 400),
|
|
363
363
|
command_summary: sanitizeCommand(input.argv),
|
|
@@ -377,8 +377,8 @@ async function maybeReportSdkCliFailure(input) {
|
|
|
377
377
|
if (isServerLoggedPlayRunStartFailure(input)) return false;
|
|
378
378
|
const exitCode = resolvedExitCode(input);
|
|
379
379
|
if (!shouldReport({ exitCode, error: input.error })) return false;
|
|
380
|
-
const baseUrl =
|
|
381
|
-
const apiKey =
|
|
380
|
+
const baseUrl = _chunkPGHCBL5Gjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
381
|
+
const apiKey = _chunkPGHCBL5Gjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
382
382
|
if (!apiKey) return false;
|
|
383
383
|
return postFailureReport({
|
|
384
384
|
baseUrl,
|
|
@@ -16,12 +16,12 @@ var _chunkXNYIZMNQjs = require('./chunk-XNYIZMNQ.js');
|
|
|
16
16
|
var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
19
|
+
var _chunkMPOF4Z44js = require('./chunk-MPOF4Z44.js');
|
|
20
20
|
|
|
21
21
|
// src/version.ts
|
|
22
|
-
var SDK_VERSION =
|
|
23
|
-
var SDK_API_MAJOR =
|
|
24
|
-
var SDK_API_CONTRACT = _nullishCoalesce(
|
|
22
|
+
var SDK_VERSION = _chunkMPOF4Z44js.SDK_RELEASE.version;
|
|
23
|
+
var SDK_API_MAJOR = _chunkMPOF4Z44js.SDK_RELEASE.contracts.api.currentMajor;
|
|
24
|
+
var SDK_API_CONTRACT = _nullishCoalesce(_chunkMPOF4Z44js.SDK_RELEASE.contracts.api.legacyWireIds[0], () => ( `api-v${SDK_API_MAJOR}`));
|
|
25
25
|
|
|
26
26
|
// src/agent-runtime.ts
|
|
27
27
|
var _os = require('os');
|