deepline 0.3.434 → 0.3.436
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/billing/state.ts +32 -3
- package/dist/bundling-sources/shared_libs/monitors/signal-radars/inbound-dead-letter.ts +7 -0
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +18 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +9 -119
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/runtime-tool-hooks.ts +155 -0
- package/dist/bundling-sources/shared_libs/product-notifications/slack-delivery.ts +32 -3
- package/dist/bundling-sources/shared_libs/product-notifications/slack-transport.ts +2 -0
- package/dist/cli/{auth-ZWASM3JJ.mjs → auth-A6D2PZMU.mjs} +4 -4
- package/dist/cli/auth-PPBH64C7.js +40 -0
- package/dist/cli/{billing-BICK6R5J.mjs → billing-SWG3FF6U.mjs} +4 -4
- package/dist/cli/{billing-SQI72SQI.js → billing-ZPMWQR5V.js} +73 -73
- package/dist/cli/{chunk-FECJ5LBK.js → chunk-2NLGISW4.js} +52 -52
- package/dist/cli/{chunk-E5HBBE7F.js → chunk-4ESXEDQQ.js} +16 -16
- package/dist/cli/{chunk-6ZGPHO5R.js → chunk-5QWTEQPP.js} +1 -1
- package/dist/cli/{chunk-VFNLUKRT.mjs → chunk-776NKVHY.mjs} +4 -4
- package/dist/cli/{chunk-NP5HEQAW.mjs → chunk-A7CLG63J.mjs} +2 -2
- package/dist/cli/{chunk-ISU67CJA.mjs → chunk-ACB2MRKR.mjs} +3 -3
- package/dist/cli/{chunk-NLD7TUJ6.js → chunk-BA4WWJNF.js} +8 -8
- package/dist/cli/{chunk-KXB5UAFH.js → chunk-BLEASRDL.js} +2 -2
- package/dist/cli/{chunk-XZBBTLIL.js → chunk-BV4LGD5S.js} +6 -6
- package/dist/cli/{chunk-SVRL42S7.js → chunk-CAAVZL2V.js} +26 -26
- package/dist/cli/{chunk-QY2DYCUJ.mjs → chunk-CJVDOWEV.mjs} +2 -2
- package/dist/cli/{chunk-KHR6V4CE.mjs → chunk-E4ED66S3.mjs} +1 -1
- package/dist/cli/{chunk-6AOEQVTN.js → chunk-F5355JDY.js} +50 -50
- package/dist/cli/{chunk-TFOUACKF.js → chunk-GF5O6EFC.js} +20 -20
- package/dist/cli/{chunk-ISUKMN5B.mjs → chunk-IBF6ASRS.mjs} +1 -1
- package/dist/cli/{chunk-WB7HZOGR.mjs → chunk-IL2YE7B7.mjs} +2 -2
- package/dist/cli/{chunk-XVDYAJ4B.js → chunk-JJRUH6ES.js} +79 -79
- package/dist/cli/{chunk-S57PLAGM.mjs → chunk-MOGZ6YT6.mjs} +1 -1
- package/dist/cli/{chunk-EAZGVI2H.js → chunk-MPU3T2DO.js} +8 -8
- package/dist/cli/{chunk-CYJJUUIT.mjs → chunk-NFMS5PCE.mjs} +5 -5
- package/dist/cli/{chunk-K324EUI2.mjs → chunk-PES2B6ZD.mjs} +8 -8
- package/dist/cli/{chunk-GVMQS6G7.js → chunk-Q5P5GTCA.js} +10 -10
- package/dist/cli/{chunk-NBZGQRBQ.mjs → chunk-QNUTTJVP.mjs} +3 -3
- package/dist/cli/{chunk-EEQEQRTO.js → chunk-RABL6ORN.js} +4 -4
- package/dist/cli/{chunk-HMJS4EP4.mjs → chunk-T33O4YWA.mjs} +3 -3
- package/dist/cli/{chunk-A4RM6SQK.mjs → chunk-TEDJQVSP.mjs} +1 -1
- package/dist/cli/{chunk-GDIZKSKB.mjs → chunk-TIVPPP2V.mjs} +2 -2
- package/dist/cli/{chunk-Q7IWP5UM.js → chunk-U4CAMIW7.js} +2 -2
- package/dist/cli/{chunk-OLWNESMO.js → chunk-V3QUJJ2M.js} +35 -35
- package/dist/cli/{chunk-NIRI3ILU.mjs → chunk-VSDYVYRD.mjs} +1 -1
- package/dist/cli/{chunk-6P3SCJZA.mjs → chunk-VZ7XCNT7.mjs} +1 -1
- package/dist/cli/{chunk-KPPCM62O.js → chunk-YGOES3EB.js} +6 -6
- package/dist/cli/{csv-4VNH4CNZ.mjs → csv-ASBYH3ND.mjs} +3 -3
- package/dist/cli/{csv-JDI6IB23.js → csv-ZV5QP7YW.js} +12 -12
- package/dist/cli/{db-2BT7CMVU.mjs → db-7MMWKX2N.mjs} +4 -4
- package/dist/cli/{db-RIXQ4WX5.js → db-VQVBDJON.js} +25 -25
- package/dist/cli/{describe-ODFGJI7Q.js → describe-TMKTLNOP.js} +16 -16
- package/dist/cli/{describe-SF4TKH2Y.mjs → describe-VZIT4HGO.mjs} +12 -12
- package/dist/cli/{executions-HZTV7BRI.js → executions-26CRGU65.js} +6 -6
- package/dist/cli/{executions-DNPJRBW2.mjs → executions-M55YIVFY.mjs} +4 -4
- package/dist/cli/{feedback-OBODUERI.js → feedback-RU3VIDKR.js} +7 -7
- package/dist/cli/{feedback-SK5AKR7W.mjs → feedback-V3VZI6J7.mjs} +3 -3
- package/dist/cli/git-ODCVAT3E.js +24 -0
- package/dist/cli/{git-7IE5J53C.mjs → git-S5YY2MBP.mjs} +4 -4
- package/dist/cli/index.js +131 -131
- package/dist/cli/index.mjs +36 -36
- package/dist/cli/{legacy-noops-CVHQS2Z4.js → legacy-noops-DVO5IRO7.js} +7 -7
- package/dist/cli/{legacy-noops-UIQWCOGF.mjs → legacy-noops-JSGP4FLB.mjs} +4 -4
- package/dist/cli/{monitors-47U23SEH.mjs → monitors-C3RQ72HW.mjs} +4 -4
- package/dist/cli/{monitors-37W655H5.js → monitors-NDZM6GZ6.js} +84 -84
- package/dist/cli/{org-AS7BDCF2.js → org-CK6RJGK5.js} +113 -64
- package/dist/cli/{org-Z3WRCPPN.mjs → org-KWH6A36G.mjs} +53 -4
- package/dist/cli/{play-CQNGRFJX.mjs → play-TODYTQ6X.mjs} +10 -10
- package/dist/cli/{play-IDRYO2XG.js → play-VHNU4ZRW.js} +283 -283
- package/dist/cli/{providers-LXH4JT4W.js → providers-6XJSK4HT.js} +7 -7
- package/dist/cli/{providers-XFGJTDA2.mjs → providers-CIOW3U77.mjs} +4 -4
- package/dist/cli/{quickstart-I34EZG6K.mjs → quickstart-PBACGVIU.mjs} +3 -3
- package/dist/cli/{quickstart-AFPLY6AL.js → quickstart-RBZP2M5I.js} +5 -5
- package/dist/cli/{search-GV3H73R7.mjs → search-4UCRHYIY.mjs} +5 -5
- package/dist/cli/search-LLXEBTKR.js +30 -0
- package/dist/cli/{secrets-ADPINHAV.js → secrets-6JVGCFV4.js} +13 -13
- package/dist/cli/{secrets-Z2RLL7MD.mjs → secrets-TCSWMJBW.mjs} +4 -4
- package/dist/cli/{sessions-A635YVAT.js → sessions-GDCONNJJ.js} +5 -5
- package/dist/cli/{sessions-H7QVYCTY.mjs → sessions-SH6PGON6.mjs} +4 -4
- package/dist/cli/{settings-LUYTVWTR.mjs → settings-NSRYEMWL.mjs} +8 -8
- package/dist/cli/{settings-G6FM442W.js → settings-ZAKECLTD.js} +75 -75
- package/dist/cli/{setup-EPRBDJXZ.mjs → setup-4HFA2PRF.mjs} +7 -7
- package/dist/cli/{setup-7Y3JAMBT.js → setup-JQZ72TV2.js} +42 -42
- package/dist/cli/{skills-2SNUHQC7.mjs → skills-FGGMKSLN.mjs} +5 -5
- package/dist/cli/skills-KOJZ7MQM.js +29 -0
- package/dist/cli/tools-3EY3AN3M.js +44 -0
- package/dist/cli/{tools-PJPLF63I.mjs → tools-H7K7OD6P.mjs} +12 -12
- package/dist/cli/{update-JP7BOOIZ.mjs → update-SNZO56ST.mjs} +7 -7
- package/dist/cli/update-SVXZAUIA.js +31 -0
- package/dist/cli/{workflow-42ISZKK5.mjs → workflow-PV3DQ2EH.mjs} +5 -5
- package/dist/cli/{workflow-L33RGJ4A.js → workflow-RGCX5NTR.js} +15 -15
- package/dist/index.js +6 -6
- package/dist/index.mjs +3 -3
- package/dist/install-integrity.json +79 -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-KFYDF5TS.js +0 -40
- package/dist/cli/git-WMBBN7S7.js +0 -24
- package/dist/cli/search-HBEAM36R.js +0 -30
- package/dist/cli/skills-GV2L7QWT.js +0 -29
- package/dist/cli/tools-PXECTR3C.js +0 -44
- package/dist/cli/update-LKVWKWIV.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 _chunkBV4LGD5Sjs = require('./chunk-BV4LGD5S.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
@@ -17,13 +17,13 @@ var _chunkXZBBTLILjs = require('./chunk-XZBBTLIL.js');
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkRABL6ORNjs = require('./chunk-RABL6ORN.js');
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
var _chunkPPDBRJRWjs = require('./chunk-PPDBRJRW.js');
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
var
|
|
26
|
+
var _chunk5QWTEQPPjs = require('./chunk-5QWTEQPP.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, _chunkRABL6ORNjs.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: _chunkRABL6ORNjs.SDK_VERSION,
|
|
70
|
+
apiContract: _chunkRABL6ORNjs.SDK_API_CONTRACT,
|
|
71
|
+
apiMajor: _chunkRABL6ORNjs.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: _chunkRABL6ORNjs.SDK_VERSION,
|
|
80
|
+
apiContract: _chunkRABL6ORNjs.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, _chunkRABL6ORNjs.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", _chunkRABL6ORNjs.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(_chunk5QWTEQPPjs.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
|
+
..._chunkRABL6ORNjs.deploymentProtectionHeaders.call(void 0, ),
|
|
210
|
+
"User-Agent": `deepline-ts-sdk/${_chunkRABL6ORNjs.SDK_VERSION}`,
|
|
211
|
+
"X-Deepline-SDK-Version": _chunkRABL6ORNjs.SDK_VERSION,
|
|
212
|
+
"X-Deepline-API-Major": String(_chunkRABL6ORNjs.SDK_API_MAJOR),
|
|
213
|
+
"X-Deepline-API-Contract": _chunkRABL6ORNjs.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 ${_chunkRABL6ORNjs.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
|
|
@@ -374,7 +374,7 @@ function skillsSourceUrl(baseUrl) {
|
|
|
374
374
|
function buildSkillsAddArgs(baseUrl, skillName, options = {}) {
|
|
375
375
|
const skillNames = Array.isArray(skillName) ? skillName : [skillName];
|
|
376
376
|
const [firstSkillName, ...extraSkillNames] = skillNames;
|
|
377
|
-
const agents = _nullishCoalesce(options.agents, () => (
|
|
377
|
+
const agents = _nullishCoalesce(options.agents, () => ( _chunkRABL6ORNjs.DEFAULT_SKILL_AGENTS));
|
|
378
378
|
const values = {
|
|
379
379
|
skills_index_url: skillsIndexUrl(baseUrl),
|
|
380
380
|
skills_source_url: skillsSourceUrl(baseUrl),
|
|
@@ -413,7 +413,7 @@ var CliProgress = (_class = class {
|
|
|
413
413
|
|
|
414
414
|
// --json output is one JSON document: progress never renders under it.
|
|
415
415
|
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);
|
|
416
|
-
this.enabled = enabled && !
|
|
416
|
+
this.enabled = enabled && !_chunkBV4LGD5Sjs.isJsonOutputMode.call(void 0, );
|
|
417
417
|
}
|
|
418
418
|
phase(message) {
|
|
419
419
|
if (!this.enabled || this.lastMessage === message) {
|
|
@@ -438,7 +438,7 @@ var CliProgress = (_class = class {
|
|
|
438
438
|
this.settle("\u2717");
|
|
439
439
|
}
|
|
440
440
|
writeLogLine(line) {
|
|
441
|
-
if (
|
|
441
|
+
if (_chunkBV4LGD5Sjs.isJsonOutputMode.call(void 0, )) return;
|
|
442
442
|
if (!this.enabled) {
|
|
443
443
|
process.stderr.write(`${line}
|
|
444
444
|
`);
|
|
@@ -740,7 +740,7 @@ function buildEnvironmentContext() {
|
|
|
740
740
|
node_version: process.version,
|
|
741
741
|
runtime: "Node.js",
|
|
742
742
|
hostname: _os.hostname.call(void 0, ),
|
|
743
|
-
agent_runtime:
|
|
743
|
+
agent_runtime: _chunkRABL6ORNjs.detectAgentRuntime.call(void 0, )
|
|
744
744
|
};
|
|
745
745
|
for (const key of ["CLAUDE_CODE_REMOTE", "DEEPLINE_PLUGIN_MODE"]) {
|
|
746
746
|
const normalized = _optionalChain([process, 'access', _60 => _60.env, 'access', _61 => _61[key], 'optionalAccess', _62 => _62.trim, 'call', _63 => _63()]);
|
|
@@ -762,15 +762,15 @@ function buildEnvironmentContext() {
|
|
|
762
762
|
}
|
|
763
763
|
function failureReportHeaders(apiKey) {
|
|
764
764
|
return {
|
|
765
|
-
...
|
|
765
|
+
..._chunkRABL6ORNjs.deploymentProtectionHeaders.call(void 0, ),
|
|
766
766
|
Authorization: `Bearer ${apiKey}`,
|
|
767
767
|
"Content-Type": "application/json",
|
|
768
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
768
|
+
"User-Agent": `deepline-ts-sdk/${_chunkRABL6ORNjs.SDK_VERSION}`,
|
|
769
769
|
"X-Deepline-Client-Family": "sdk",
|
|
770
770
|
"X-Deepline-CLI-Family": "sdk",
|
|
771
|
-
"X-Deepline-Agent-Runtime":
|
|
772
|
-
"X-Deepline-CLI-Version":
|
|
773
|
-
"X-Deepline-SDK-Version":
|
|
771
|
+
"X-Deepline-Agent-Runtime": _chunkRABL6ORNjs.detectAgentRuntime.call(void 0, ),
|
|
772
|
+
"X-Deepline-CLI-Version": _chunkRABL6ORNjs.SDK_VERSION,
|
|
773
|
+
"X-Deepline-SDK-Version": _chunkRABL6ORNjs.SDK_VERSION
|
|
774
774
|
};
|
|
775
775
|
}
|
|
776
776
|
async function postFailureReport(input) {
|
|
@@ -798,7 +798,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
|
|
|
798
798
|
if (isFailureReportingDisabled()) return false;
|
|
799
799
|
let apiKey = "";
|
|
800
800
|
try {
|
|
801
|
-
apiKey =
|
|
801
|
+
apiKey = _chunkRABL6ORNjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
|
|
802
802
|
} catch (e9) {
|
|
803
803
|
return false;
|
|
804
804
|
}
|
|
@@ -825,7 +825,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
|
|
|
825
825
|
failure_code: failureCode2,
|
|
826
826
|
failure_stage: failureStage,
|
|
827
827
|
error_body: "Automatic Deepline skills installation failed.",
|
|
828
|
-
cli_version:
|
|
828
|
+
cli_version: _chunkRABL6ORNjs.SDK_VERSION,
|
|
829
829
|
context: {
|
|
830
830
|
environment: buildEnvironmentContext(),
|
|
831
831
|
skills_sync: {
|
|
@@ -945,7 +945,7 @@ function buildFailureReport(input) {
|
|
|
945
945
|
failure_kind: failureKind,
|
|
946
946
|
failure_code: code,
|
|
947
947
|
failure_stage: input.error === void 0 ? "command_exit" : "cli_main",
|
|
948
|
-
cli_version:
|
|
948
|
+
cli_version: _chunkRABL6ORNjs.SDK_VERSION,
|
|
949
949
|
context: {
|
|
950
950
|
base_url: redactFailureText(input.baseUrl, 400),
|
|
951
951
|
command_summary: sanitizeCommand(input.argv),
|
|
@@ -965,8 +965,8 @@ async function maybeReportSdkCliFailure(input) {
|
|
|
965
965
|
if (isServerLoggedPlayRunStartFailure(input)) return false;
|
|
966
966
|
const exitCode = resolvedExitCode(input);
|
|
967
967
|
if (!shouldReport({ exitCode, error: input.error })) return false;
|
|
968
|
-
const baseUrl =
|
|
969
|
-
const apiKey =
|
|
968
|
+
const baseUrl = _chunkRABL6ORNjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
969
|
+
const apiKey = _chunkRABL6ORNjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
970
970
|
if (!apiKey) return false;
|
|
971
971
|
return postFailureReport({
|
|
972
972
|
baseUrl,
|
|
@@ -1003,25 +1003,25 @@ var CHECK_TIMEOUT_MS2 = 3e3;
|
|
|
1003
1003
|
var INSTALLER_PROBE_TIMEOUT_MS = 1e3;
|
|
1004
1004
|
var PUBLISHED_VERIFICATION_RETRY_MS = 5 * 6e4;
|
|
1005
1005
|
function shouldSkipSkillsSync() {
|
|
1006
|
-
if (
|
|
1006
|
+
if (_chunkRABL6ORNjs.detectAgentRuntime.call(void 0, ) === "claude_cowork" || isCiEnvironment()) {
|
|
1007
1007
|
return true;
|
|
1008
1008
|
}
|
|
1009
1009
|
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()]);
|
|
1010
1010
|
return value === "1" || value === "true" || value === "yes" || value === "on";
|
|
1011
1011
|
}
|
|
1012
1012
|
function unavailableSkillsNoticePath(baseUrl) {
|
|
1013
|
-
return _path.join.call(void 0,
|
|
1013
|
+
return _path.join.call(void 0, _chunkRABL6ORNjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-sync-unavailable-version");
|
|
1014
1014
|
}
|
|
1015
1015
|
var SKILLS_SYNC_IN_PROGRESS_TTL_MS = 10 * 60 * 1e3;
|
|
1016
1016
|
var SKILLS_SYNC_IN_PROGRESS_PID_CAP_MS = 6 * 60 * 60 * 1e3;
|
|
1017
|
-
var agentLeaseSegment =
|
|
1017
|
+
var agentLeaseSegment = _chunkRABL6ORNjs.skillsAgentPathSegment;
|
|
1018
1018
|
function sortedLeaseAgents(agents) {
|
|
1019
|
-
const expanded = agents.includes("*") ? [...agents, ...
|
|
1019
|
+
const expanded = agents.includes("*") ? [...agents, ..._chunkRABL6ORNjs.KNOWN_SKILL_AGENTS] : agents;
|
|
1020
1020
|
return [...new Set(expanded)].sort((a, b) => a.localeCompare(b));
|
|
1021
1021
|
}
|
|
1022
1022
|
function inProgressSkillsSyncPath(baseUrl, agent) {
|
|
1023
1023
|
return _path.join.call(void 0,
|
|
1024
|
-
|
|
1024
|
+
_chunkRABL6ORNjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
1025
1025
|
`skills-sync-in-progress-${agentLeaseSegment(agent)}`
|
|
1026
1026
|
);
|
|
1027
1027
|
}
|
|
@@ -1180,7 +1180,7 @@ var SkillsStateUnavailableError = class extends Error {
|
|
|
1180
1180
|
constructor(baseUrl, error) {
|
|
1181
1181
|
const detail = error instanceof Error ? error.message : String(error);
|
|
1182
1182
|
super(
|
|
1183
|
-
`Could not save skills state in ${
|
|
1183
|
+
`Could not save skills state in ${_chunkRABL6ORNjs.sdkCliStateDirPath.call(void 0, baseUrl)}: ${detail}`
|
|
1184
1184
|
);
|
|
1185
1185
|
this.name = "SkillsStateUnavailableError";
|
|
1186
1186
|
}
|
|
@@ -1265,7 +1265,7 @@ function skillsInstallLeasePath(baseUrl, agents) {
|
|
|
1265
1265
|
}
|
|
1266
1266
|
function deferredSkillsNoticePath(baseUrl, agents) {
|
|
1267
1267
|
return _path.join.call(void 0,
|
|
1268
|
-
|
|
1268
|
+
_chunkRABL6ORNjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
1269
1269
|
`skills-sync-notice-${sortedLeaseAgents(agents).map(agentLeaseSegment).join("-")}`
|
|
1270
1270
|
);
|
|
1271
1271
|
}
|
|
@@ -1299,8 +1299,8 @@ function flushDeferredSkillsNotices(baseUrl, agents) {
|
|
|
1299
1299
|
if (text.trim()) writeSdkSkillsStatusLine(text.trimEnd());
|
|
1300
1300
|
}
|
|
1301
1301
|
function flushDeferredSkillsSyncNotices(baseUrl) {
|
|
1302
|
-
if (shouldSkipSkillsSync() ||
|
|
1303
|
-
const agents =
|
|
1302
|
+
if (shouldSkipSkillsSync() || _chunkRABL6ORNjs.hasActivePluginSkills.call(void 0, )) return;
|
|
1303
|
+
const agents = _chunkRABL6ORNjs.resolveAutoSyncSkillAgents.call(void 0, );
|
|
1304
1304
|
if (agents.length === 0) return;
|
|
1305
1305
|
flushDeferredSkillsNotices(baseUrl, agents);
|
|
1306
1306
|
}
|
|
@@ -1316,7 +1316,7 @@ function spawnDetachedSkillsSyncChild(argv, onSpawnError) {
|
|
|
1316
1316
|
}
|
|
1317
1317
|
function failedSkillsSyncPath(baseUrl, agents) {
|
|
1318
1318
|
return _path.join.call(void 0,
|
|
1319
|
-
|
|
1319
|
+
_chunkRABL6ORNjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
1320
1320
|
`skills-sync-failed-${sortedLeaseAgents(agents).map(agentLeaseSegment).join("-")}-version`
|
|
1321
1321
|
);
|
|
1322
1322
|
}
|
|
@@ -1345,7 +1345,7 @@ function writeUnavailableSkillsNotice(baseUrl, remoteVersion, skillNames, reason
|
|
|
1345
1345
|
if (hasMarkedSkillsSyncVersion(path, remoteVersion)) return;
|
|
1346
1346
|
writeMarkedSkillsSyncVersion(path, remoteVersion);
|
|
1347
1347
|
const probes = reason === "no-installer" ? _nullishCoalesce(knownProbes, () => ( probeInstallers())) : null;
|
|
1348
|
-
const manualCommand = _optionalChain([probes, 'optionalAccess', _93 => _93.npx]) === "missing" && probes.bunx !== "missing" ? `bunx ${buildBunxSkillsInstallArgs(baseUrl, skillNames,
|
|
1348
|
+
const manualCommand = _optionalChain([probes, 'optionalAccess', _93 => _93.npx]) === "missing" && probes.bunx !== "missing" ? `bunx ${buildBunxSkillsInstallArgs(baseUrl, skillNames, _chunkRABL6ORNjs.DEFAULT_SKILL_AGENTS).map(shellQuote).join(" ")}` : `npx ${buildSkillsInstallArgs(baseUrl, skillNames).join(" ")}`;
|
|
1349
1349
|
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.`;
|
|
1350
1350
|
notice(
|
|
1351
1351
|
`Deepline agent skills are out of date, but ${explanation} To install manually, run:
|
|
@@ -1433,7 +1433,7 @@ function buildSdkSkillNames(v1SkillNames2) {
|
|
|
1433
1433
|
return sortedUniqueSkillNames(v1SkillNames2);
|
|
1434
1434
|
}
|
|
1435
1435
|
function isDefaultAgentSet(agents) {
|
|
1436
|
-
return agents.length ===
|
|
1436
|
+
return agents.length === _chunkRABL6ORNjs.DEFAULT_SKILL_AGENTS.length && agents.every((agent, index) => agent === _chunkRABL6ORNjs.DEFAULT_SKILL_AGENTS[index]);
|
|
1437
1437
|
}
|
|
1438
1438
|
function safeSkillFilePath(value) {
|
|
1439
1439
|
if (typeof value !== "string" || !value) return false;
|
|
@@ -1590,10 +1590,10 @@ async function fetchSkillsUpdate(baseUrl, localVersion) {
|
|
|
1590
1590
|
method: "POST",
|
|
1591
1591
|
headers: { "Content-Type": "application/json" },
|
|
1592
1592
|
body: JSON.stringify({
|
|
1593
|
-
sdk_cli: { version:
|
|
1593
|
+
sdk_cli: { version: _chunkRABL6ORNjs.SDK_VERSION },
|
|
1594
1594
|
skills: {
|
|
1595
1595
|
version: localVersion,
|
|
1596
|
-
capability:
|
|
1596
|
+
capability: _chunk5QWTEQPPjs.SDK_RELEASE.packageCapabilities.skillsGuidance
|
|
1597
1597
|
}
|
|
1598
1598
|
}),
|
|
1599
1599
|
signal: controller.signal
|
|
@@ -1632,7 +1632,7 @@ function probeInstallers(timeoutMs) {
|
|
|
1632
1632
|
}
|
|
1633
1633
|
function noInstallerProbePath(baseUrl) {
|
|
1634
1634
|
return _path.join.call(void 0,
|
|
1635
|
-
|
|
1635
|
+
_chunkRABL6ORNjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
1636
1636
|
"skills-sync-no-installer-unknown.json"
|
|
1637
1637
|
);
|
|
1638
1638
|
}
|
|
@@ -1711,7 +1711,7 @@ function temporarySkillsSyncSkipCommand() {
|
|
|
1711
1711
|
function resolveSkillsInstallSpawn(install, platform2 = process.platform) {
|
|
1712
1712
|
return resolveShellSpawn(install.command, install.args, platform2);
|
|
1713
1713
|
}
|
|
1714
|
-
function resolveSkillsInstallCommands(baseUrl, skillNames = DEFAULT_SDK_SKILL_NAMES, agents =
|
|
1714
|
+
function resolveSkillsInstallCommands(baseUrl, skillNames = DEFAULT_SDK_SKILL_NAMES, agents = _chunkRABL6ORNjs.DEFAULT_SKILL_AGENTS, knownProbes) {
|
|
1715
1715
|
const commands = [];
|
|
1716
1716
|
const probes = _nullishCoalesce(knownProbes, () => ( probeInstallers()));
|
|
1717
1717
|
if (probes.bunx === "available") {
|
|
@@ -1863,11 +1863,11 @@ function writeSdkSkillsStatusLine(line) {
|
|
|
1863
1863
|
}
|
|
1864
1864
|
async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
|
|
1865
1865
|
if (shouldSkipSkillsSync()) return;
|
|
1866
|
-
const usingPluginSkills =
|
|
1866
|
+
const usingPluginSkills = _chunkRABL6ORNjs.hasActivePluginSkills.call(void 0, );
|
|
1867
1867
|
if (usingPluginSkills) {
|
|
1868
1868
|
return;
|
|
1869
1869
|
}
|
|
1870
|
-
const agents =
|
|
1870
|
+
const agents = _chunkRABL6ORNjs.resolveAutoSyncSkillAgents.call(void 0, );
|
|
1871
1871
|
if (options.mode === "detached" && agents.length > 0) {
|
|
1872
1872
|
flushDeferredSkillsNotices(baseUrl, agents);
|
|
1873
1873
|
}
|
|
@@ -1895,7 +1895,7 @@ async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
|
|
|
1895
1895
|
return;
|
|
1896
1896
|
}
|
|
1897
1897
|
try {
|
|
1898
|
-
const localVersion =
|
|
1898
|
+
const localVersion = _chunkRABL6ORNjs.readSdkSkillsLocalVersion.call(void 0, baseUrl);
|
|
1899
1899
|
const update = options.update === void 0 ? claimedVersion ? { needsUpdate: true, remoteVersion: claimedVersion } : await fetchSkillsUpdate(baseUrl, localVersion) : options.update ? {
|
|
1900
1900
|
needsUpdate: options.update.needs_update,
|
|
1901
1901
|
remoteVersion: options.update.remote.version
|
|
@@ -2061,7 +2061,7 @@ async function runInlineSkillsSync(baseUrl, remoteVersion, agents, notices) {
|
|
|
2061
2061
|
}
|
|
2062
2062
|
}
|
|
2063
2063
|
runLegacySkillsCleanup(agents);
|
|
2064
|
-
if (!
|
|
2064
|
+
if (!_chunkRABL6ORNjs.writeSdkSkillsLocalVersion.call(void 0, baseUrl, update.remoteVersion, agents)) {
|
|
2065
2065
|
notice(
|
|
2066
2066
|
"Deepline agent skills installed, but the local skills version could not be recorded. A later command will retry the refresh."
|
|
2067
2067
|
);
|
|
@@ -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 _chunkU4CAMIW7js = require('./chunk-U4CAMIW7.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkV3QUJJ2Mjs = require('./chunk-V3QUJJ2M.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunk2NLGISW4js = require('./chunk-2NLGISW4.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkBV4LGD5Sjs = require('./chunk-BV4LGD5S.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkRABL6ORNjs = require('./chunk-RABL6ORN.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 = _chunk2NLGISW4js.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 ? _chunkU4CAMIW7js.readNpmVersion.call(void 0, env) : options.npmVersion;
|
|
560
|
+
const npmGlobalInstallFlags = _chunkU4CAMIW7js.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()]) || _chunkRABL6ORNjs.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 = _chunk2NLGISW4js.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, () => ( _chunkRABL6ORNjs.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 _chunkV3QUJJ2Mjs.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
|
+
_chunkBV4LGD5Sjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: true });
|
|
1281
1281
|
return 0;
|
|
1282
1282
|
}
|
|
1283
1283
|
if (options.printCommand) {
|
|
1284
|
-
|
|
1284
|
+
_chunkBV4LGD5Sjs.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
|
+
_chunkBV4LGD5Sjs.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
|
|
|
1324
1324
|
);
|
|
1325
1325
|
}
|
|
1326
1326
|
if (options.executeWithJson && options.json) {
|
|
1327
|
-
|
|
1327
|
+
_chunkBV4LGD5Sjs.printCommandEnvelope.call(void 0,
|
|
1328
1328
|
{
|
|
1329
1329
|
ok: true,
|
|
1330
1330
|
pinnedVersion
|
|
@@ -49,7 +49,7 @@ var SDK_RELEASE = {
|
|
|
49
49
|
// getters keep their established compatibility behavior.
|
|
50
50
|
// 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
|
|
51
51
|
// 0.3.90 is the first deliberately versioned SDK release for API v3.
|
|
52
|
-
version: "0.3.
|
|
52
|
+
version: "0.3.436",
|
|
53
53
|
updateSummary: {
|
|
54
54
|
introducedIn: "0.3.90",
|
|
55
55
|
summary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release."
|
|
@@ -4,18 +4,18 @@ import {
|
|
|
4
4
|
resolveUpdatePlan,
|
|
5
5
|
runAutomaticUpdatePlan,
|
|
6
6
|
shouldRunCliAutoUpdate
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-NFMS5PCE.mjs";
|
|
8
8
|
import {
|
|
9
9
|
isCiEnvironment
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-T33O4YWA.mjs";
|
|
11
11
|
import {
|
|
12
12
|
addJsonNotice,
|
|
13
13
|
isJsonOutputMode
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-E4ED66S3.mjs";
|
|
15
15
|
import {
|
|
16
16
|
SDK_VERSION,
|
|
17
17
|
resolveApiKeyForBaseUrl
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-IBF6ASRS.mjs";
|
|
19
19
|
|
|
20
20
|
// src/cli/compatibility-catalog.ts
|
|
21
21
|
var readers = /* @__PURE__ */ new WeakMap();
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getAuthedHttpClient,
|
|
3
3
|
printCommandEnvelope
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-E4ED66S3.mjs";
|
|
5
5
|
import {
|
|
6
6
|
agentSessionIdFromEnvironment
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-IBF6ASRS.mjs";
|
|
8
8
|
|
|
9
9
|
// src/cli/commands/sessions.ts
|
|
10
10
|
import {
|
|
@@ -3,15 +3,15 @@ import {
|
|
|
3
3
|
} from "./chunk-LJ5747UC.mjs";
|
|
4
4
|
import {
|
|
5
5
|
DeeplineClient
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-TEDJQVSP.mjs";
|
|
7
7
|
import {
|
|
8
8
|
printCommandEnvelope,
|
|
9
9
|
renderCommandEnvelopeText
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-E4ED66S3.mjs";
|
|
11
11
|
import {
|
|
12
12
|
resolveConfig,
|
|
13
13
|
sdkCliStateDirPath
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-IBF6ASRS.mjs";
|
|
15
15
|
import {
|
|
16
16
|
__commonJS,
|
|
17
17
|
__toESM
|
|
@@ -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 _chunkBV4LGD5Sjs = require('./chunk-BV4LGD5S.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkRABL6ORNjs = require('./chunk-RABL6ORN.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 = _chunkRABL6ORNjs.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 } = _chunkBV4LGD5Sjs.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
|
+
_chunkBV4LGD5Sjs.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
|
+
_chunkBV4LGD5Sjs.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
|
+
_chunkBV4LGD5Sjs.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
|
+
_chunkBV4LGD5Sjs.printCommandEnvelope.call(void 0,
|
|
678
678
|
{
|
|
679
679
|
ok: true,
|
|
680
680
|
file: outputPath,
|
|
@@ -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(); } }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkBV4LGD5Sjs = require('./chunk-BV4LGD5S.js');
|
|
4
4
|
|
|
5
5
|
// src/cli/maintenance-policy.ts
|
|
6
6
|
var _commander = require('commander');
|
|
@@ -33,7 +33,7 @@ function recordCliTrace(event) {
|
|
|
33
33
|
sinceStartMs: now - cliTraceStartedAt,
|
|
34
34
|
...event
|
|
35
35
|
};
|
|
36
|
-
|
|
36
|
+
_chunkBV4LGD5Sjs.writeRawStderr.call(void 0, `[cli-trace] ${JSON.stringify(payload)}
|
|
37
37
|
`);
|
|
38
38
|
}
|
|
39
39
|
async function traceCliSpan(phase, fields, run) {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkRABL6ORNjs = require('./chunk-RABL6ORN.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 = _chunkRABL6ORNjs.resolveConfig.call(void 0, );
|
|
292
|
+
return { config, http: new (0, _chunkRABL6ORNjs.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: _chunkRABL6ORNjs.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 _chunkRABL6ORNjs.detectAgentRuntime.call(void 0, ) !== "unknown" && valueRecord && !Object.prototype.hasOwnProperty.call(valueRecord, "command_context") ? {
|
|
880
880
|
...valueRecord,
|
|
881
|
-
command_context:
|
|
881
|
+
command_context: _chunkRABL6ORNjs.resolveCliCommandContext.call(void 0, )
|
|
882
882
|
} : value;
|
|
883
883
|
}
|
|
884
884
|
function printJson(value, fields) {
|