deepline 0.3.344 → 0.3.345
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/play-runtime/runtime-api.ts +240 -66
- package/dist/cli/auth-4HCZZPZH.js +31 -0
- package/dist/cli/{auth-KHHPB2DO.mjs → auth-YQSQYS2V.mjs} +4 -4
- package/dist/cli/{billing-RLK734WE.mjs → billing-HA75G3SK.mjs} +4 -4
- package/dist/cli/{billing-HAR4AJZT.js → billing-JRP2ZFMV.js} +71 -71
- package/dist/cli/{chunk-475OQE7H.js → chunk-2OTDDG2J.js} +2 -2
- package/dist/cli/{chunk-2MSG6WCC.mjs → chunk-3XKBPPP7.mjs} +2 -2
- package/dist/cli/{chunk-UWV3BA43.js → chunk-4INBT3OR.js} +225 -225
- package/dist/cli/{chunk-4DIFNYJZ.mjs → chunk-5QPHJFNN.mjs} +2 -2
- package/dist/cli/{chunk-CIV43IXR.mjs → chunk-AW2G44QA.mjs} +4 -4
- package/dist/cli/{chunk-BQYPKV4P.mjs → chunk-DOPNLW2H.mjs} +6 -6
- package/dist/cli/{chunk-TYPYDSNY.js → chunk-EEPFLZ7V.js} +9 -9
- package/dist/cli/{chunk-RN7NIZIL.mjs → chunk-EWYAS4WD.mjs} +1 -1
- package/dist/cli/{chunk-JXCEXXKW.js → chunk-FBUWH67Y.js} +48 -48
- package/dist/cli/{chunk-ZUHK5OX3.js → chunk-FDH572QX.js} +45 -45
- package/dist/cli/{chunk-GJYCHN2L.mjs → chunk-GGRQBO3S.mjs} +2 -2
- package/dist/cli/{chunk-MQIHCQ5Z.js → chunk-IT6MAYZ3.js} +8 -8
- package/dist/cli/{chunk-VL5IYXS3.js → chunk-ITOJRSOU.js} +6 -6
- package/dist/cli/{chunk-J5NN6XCF.mjs → chunk-JDSRPSES.mjs} +1 -1
- package/dist/cli/{chunk-LELCMU5K.js → chunk-KXFPDFUO.js} +26 -26
- package/dist/cli/{chunk-XRZUDK6O.mjs → chunk-MLO7ZGSH.mjs} +2 -2
- package/dist/cli/{chunk-SJIF45BK.js → chunk-MO6QJPEB.js} +4 -4
- package/dist/cli/{chunk-M5FYGL42.mjs → chunk-N3GUUSDO.mjs} +1 -1
- package/dist/cli/{chunk-DRHVFFMJ.mjs → chunk-NTIWTBEH.mjs} +1 -1
- package/dist/cli/{chunk-CMK6UNJA.mjs → chunk-S3JKJL44.mjs} +5 -5
- package/dist/cli/{chunk-23D4YCM6.mjs → chunk-TAX3OOC6.mjs} +1 -1
- package/dist/cli/{chunk-QO6T7ETF.js → chunk-TDW3RU7S.js} +15 -15
- package/dist/cli/{chunk-Y6PJVWDY.js → chunk-UJCHR3J3.js} +1 -1
- package/dist/cli/{chunk-J5P35NOT.js → chunk-URPZWUVN.js} +60 -60
- package/dist/cli/{chunk-FHCBNR7M.js → chunk-WRTLSH6R.js} +8 -8
- package/dist/cli/{chunk-QZMF7VDU.mjs → chunk-YGQ4AIK7.mjs} +3 -3
- package/dist/cli/{client-JWDU663V.mjs → client-VKQGBPZ5.mjs} +3 -3
- package/dist/cli/client-VOXK5Z4D.js +20 -0
- package/dist/cli/{csv-7AW5GZ4K.js → csv-UNP7KAXF.js} +12 -12
- package/dist/cli/{csv-CIAWYPZO.mjs → csv-ZFMAI2HY.mjs} +3 -3
- package/dist/cli/{db-SX73JJBH.mjs → db-C5YWXRLY.mjs} +4 -4
- package/dist/cli/{db-UENUIWQN.js → db-LDLXC2JQ.js} +29 -29
- package/dist/cli/{describe-7OGZQAGF.js → describe-FO62H2CB.js} +15 -15
- package/dist/cli/{describe-4SC5G2FG.mjs → describe-UYNKJV6T.mjs} +8 -8
- package/dist/cli/{executions-UDXQNB34.js → executions-DIADSK2E.js} +6 -6
- package/dist/cli/{executions-YB4IAUTW.mjs → executions-JYKV3GQJ.mjs} +4 -4
- package/dist/cli/{feedback-76QWZSW3.mjs → feedback-4UEJJFRL.mjs} +3 -3
- package/dist/cli/{feedback-5SGAGRAW.js → feedback-YBO47O7G.js} +7 -7
- package/dist/cli/{git-ESESPEVB.mjs → git-A6DPLCMU.mjs} +4 -4
- package/dist/cli/git-FPC5VIIK.js +23 -0
- package/dist/cli/index.js +79 -79
- package/dist/cli/index.mjs +31 -31
- package/dist/cli/{legacy-noops-E74OIJCW.js → legacy-noops-F6TJLZV2.js} +7 -7
- package/dist/cli/{legacy-noops-6F6QSRDB.mjs → legacy-noops-HCAOJI7X.mjs} +4 -4
- package/dist/cli/{monitors-4MIXICCR.js → monitors-B5QFSFK7.js} +85 -85
- package/dist/cli/{monitors-USOHPXUY.mjs → monitors-XYP7XNCT.mjs} +4 -4
- package/dist/cli/{org-DO3Q6L7S.js → org-NMWNBQZI.js} +60 -60
- package/dist/cli/{org-2RRIFNXJ.mjs → org-O5VBVLSP.mjs} +4 -4
- package/dist/cli/play-D2SCAJXG.js +153 -0
- package/dist/cli/{play-KAXYPLCQ.mjs → play-Z2STHYQB.mjs} +7 -7
- package/dist/cli/{providers-RCUITFFY.js → providers-BAPO54GE.js} +7 -7
- package/dist/cli/{providers-FKHLPGQO.mjs → providers-WGIJLFBZ.mjs} +4 -4
- package/dist/cli/{quickstart-XGU4M4Z5.js → quickstart-JGRMJ6M4.js} +5 -5
- package/dist/cli/{quickstart-CDBWA6IK.mjs → quickstart-LL6KUMJ5.mjs} +3 -3
- package/dist/cli/{search-QA4DAJPS.mjs → search-P7BVN4OI.mjs} +5 -5
- package/dist/cli/search-UNJN5P72.js +26 -0
- package/dist/cli/{secrets-6S2CDL2M.mjs → secrets-5JHLILQD.mjs} +4 -4
- package/dist/cli/{secrets-KYKXEHNR.js → secrets-QUBFPBE5.js} +13 -13
- package/dist/cli/{sessions-WGLVMQYC.mjs → sessions-3BYS3WQZ.mjs} +4 -4
- package/dist/cli/{sessions-PWAIUF7I.js → sessions-TATDTEY6.js} +5 -5
- package/dist/cli/{settings-CNWO5VFJ.js → settings-SLFYXPRP.js} +74 -74
- package/dist/cli/{settings-FQ5CWYNQ.mjs → settings-TXWQLO34.mjs} +7 -7
- package/dist/cli/{setup-ABIO2LJD.js → setup-A3CXCYRI.js} +41 -41
- package/dist/cli/{setup-RRT66ENS.mjs → setup-XTAW2JS2.mjs} +6 -6
- package/dist/cli/{skills-3LY2RQE3.mjs → skills-P323CMPH.mjs} +4 -4
- package/dist/cli/skills-ZOUUC72T.js +28 -0
- package/dist/cli/{tools-TQMHPW3U.mjs → tools-FMSH7Z7I.mjs} +6 -6
- package/dist/cli/tools-O7TLYHFT.js +40 -0
- package/dist/cli/update-3LT6YSIP.js +28 -0
- package/dist/cli/{update-6U4ASVZX.mjs → update-CGKRTVOD.mjs} +6 -6
- package/dist/cli/{workflow-XLE4N3W3.mjs → workflow-2DVIYBLG.mjs} +5 -5
- package/dist/cli/{workflow-GVXAFVXF.js → workflow-EFOSJKW7.js} +15 -15
- package/dist/index.js +6 -6
- package/dist/index.mjs +3 -3
- package/dist/install-integrity.json +74 -74
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/package.json +1 -1
- package/dist/cli/auth-6ABMIWQQ.js +0 -31
- package/dist/cli/client-KETSZR46.js +0 -20
- package/dist/cli/git-4PRJV7B3.js +0 -23
- package/dist/cli/play-SHRBJAO4.js +0 -153
- package/dist/cli/search-ZHYH2BA3.js +0 -26
- package/dist/cli/skills-OBTT3OF7.js +0 -28
- package/dist/cli/tools-DMXHSMU2.js +0 -40
- package/dist/cli/update-4CK752WQ.js +0 -28
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _chunkWJYPBHTEjs = require('./chunk-WJYPBHTE.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkITOJRSOUjs = require('./chunk-ITOJRSOU.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -22,7 +22,7 @@ var _chunkVL5IYXS3js = require('./chunk-VL5IYXS3.js');
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _chunkMO6QJPEBjs = require('./chunk-MO6QJPEB.js');
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
var _chunk7P5AA3SNjs = require('./chunk-7P5AA3SN.js');
|
|
@@ -117,7 +117,7 @@ function skillsSourceUrl(baseUrl) {
|
|
|
117
117
|
function buildSkillsAddArgs(baseUrl, skillName, options = {}) {
|
|
118
118
|
const skillNames = Array.isArray(skillName) ? skillName : [skillName];
|
|
119
119
|
const [firstSkillName, ...extraSkillNames] = skillNames;
|
|
120
|
-
const agents = _nullishCoalesce(options.agents, () => (
|
|
120
|
+
const agents = _nullishCoalesce(options.agents, () => ( _chunkMO6QJPEBjs.DEFAULT_SKILL_AGENTS));
|
|
121
121
|
const values = {
|
|
122
122
|
skills_index_url: skillsIndexUrl(baseUrl),
|
|
123
123
|
skills_source_url: skillsSourceUrl(baseUrl),
|
|
@@ -193,7 +193,7 @@ function shouldSkipCompatibilityCheck() {
|
|
|
193
193
|
return value === "1" || value === "true" || value === "yes";
|
|
194
194
|
}
|
|
195
195
|
function sdkCompatibilityCachePath(baseUrl, homeDir = _os.homedir.call(void 0, )) {
|
|
196
|
-
return _path.join.call(void 0,
|
|
196
|
+
return _path.join.call(void 0, _chunkMO6QJPEBjs.sdkCliStateDirPath.call(void 0, baseUrl, homeDir), "compat-cache.json");
|
|
197
197
|
}
|
|
198
198
|
function legacySdkCompatibilityCachePath(homeDir = _os.homedir.call(void 0, )) {
|
|
199
199
|
return _path.join.call(void 0, homeDir, ".cache", "deepline", "sdk-compat-cache.json");
|
|
@@ -201,9 +201,9 @@ function legacySdkCompatibilityCachePath(homeDir = _os.homedir.call(void 0, )) {
|
|
|
201
201
|
function compatibilityCacheKey(baseUrl, command, skillsVersion) {
|
|
202
202
|
return JSON.stringify({
|
|
203
203
|
baseUrl: baseUrl.replace(/\/$/, ""),
|
|
204
|
-
version:
|
|
205
|
-
apiContract:
|
|
206
|
-
apiMajor:
|
|
204
|
+
version: _chunkMO6QJPEBjs.SDK_VERSION,
|
|
205
|
+
apiContract: _chunkMO6QJPEBjs.SDK_API_CONTRACT,
|
|
206
|
+
apiMajor: _chunkMO6QJPEBjs.SDK_API_MAJOR,
|
|
207
207
|
command: _optionalChain([command, 'optionalAccess', _7 => _7.trim, 'call', _8 => _8()]) || null,
|
|
208
208
|
skillsVersion: _nullishCoalesce(skillsVersion, () => ( null))
|
|
209
209
|
});
|
|
@@ -211,8 +211,8 @@ function compatibilityCacheKey(baseUrl, command, skillsVersion) {
|
|
|
211
211
|
function legacyCompatibilityCacheKey(baseUrl, command) {
|
|
212
212
|
return JSON.stringify({
|
|
213
213
|
baseUrl: baseUrl.replace(/\/$/, ""),
|
|
214
|
-
version:
|
|
215
|
-
apiContract:
|
|
214
|
+
version: _chunkMO6QJPEBjs.SDK_VERSION,
|
|
215
|
+
apiContract: _chunkMO6QJPEBjs.SDK_API_CONTRACT,
|
|
216
216
|
command: _optionalChain([command, 'optionalAccess', _9 => _9.trim, 'call', _10 => _10()]) || null
|
|
217
217
|
});
|
|
218
218
|
}
|
|
@@ -305,7 +305,7 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
|
|
|
305
305
|
);
|
|
306
306
|
try {
|
|
307
307
|
const url = new URL("/api/v2/sdk/compat", baseUrl);
|
|
308
|
-
url.searchParams.set("version",
|
|
308
|
+
url.searchParams.set("version", _chunkMO6QJPEBjs.SDK_VERSION);
|
|
309
309
|
if (_optionalChain([options, 'access', _19 => _19.command, 'optionalAccess', _20 => _20.trim, 'call', _21 => _21()])) {
|
|
310
310
|
url.searchParams.set("command", options.command.trim());
|
|
311
311
|
}
|
|
@@ -318,13 +318,13 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
|
|
|
318
318
|
const response = await fetch(url, {
|
|
319
319
|
method: "GET",
|
|
320
320
|
headers: {
|
|
321
|
-
...
|
|
322
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
323
|
-
"X-Deepline-SDK-Version":
|
|
324
|
-
"X-Deepline-API-Major": String(
|
|
325
|
-
"X-Deepline-API-Contract":
|
|
321
|
+
..._chunkMO6QJPEBjs.deploymentProtectionHeaders.call(void 0, ),
|
|
322
|
+
"User-Agent": `deepline-ts-sdk/${_chunkMO6QJPEBjs.SDK_VERSION}`,
|
|
323
|
+
"X-Deepline-SDK-Version": _chunkMO6QJPEBjs.SDK_VERSION,
|
|
324
|
+
"X-Deepline-API-Major": String(_chunkMO6QJPEBjs.SDK_API_MAJOR),
|
|
325
|
+
"X-Deepline-API-Contract": _chunkMO6QJPEBjs.SDK_API_CONTRACT,
|
|
326
326
|
"X-Deepline-CLI-Update-Preferences": "1",
|
|
327
|
-
...options.catalog ? { Authorization: `Bearer ${
|
|
327
|
+
...options.catalog ? { Authorization: `Bearer ${_chunkMO6QJPEBjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl)}` } : {}
|
|
328
328
|
},
|
|
329
329
|
signal: controller.signal
|
|
330
330
|
});
|
|
@@ -577,7 +577,7 @@ function buildEnvironmentContext() {
|
|
|
577
577
|
node_version: process.version,
|
|
578
578
|
runtime: "Node.js",
|
|
579
579
|
hostname: _os.hostname.call(void 0, ),
|
|
580
|
-
agent_runtime:
|
|
580
|
+
agent_runtime: _chunkMO6QJPEBjs.detectAgentRuntime.call(void 0, )
|
|
581
581
|
};
|
|
582
582
|
for (const key of ["CLAUDE_CODE_REMOTE", "DEEPLINE_PLUGIN_MODE"]) {
|
|
583
583
|
const normalized = _optionalChain([process, 'access', _32 => _32.env, 'access', _33 => _33[key], 'optionalAccess', _34 => _34.trim, 'call', _35 => _35()]);
|
|
@@ -601,12 +601,12 @@ function failureReportHeaders(apiKey) {
|
|
|
601
601
|
return {
|
|
602
602
|
Authorization: `Bearer ${apiKey}`,
|
|
603
603
|
"Content-Type": "application/json",
|
|
604
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
604
|
+
"User-Agent": `deepline-ts-sdk/${_chunkMO6QJPEBjs.SDK_VERSION}`,
|
|
605
605
|
"X-Deepline-Client-Family": "sdk",
|
|
606
606
|
"X-Deepline-CLI-Family": "sdk",
|
|
607
|
-
"X-Deepline-Agent-Runtime":
|
|
608
|
-
"X-Deepline-CLI-Version":
|
|
609
|
-
"X-Deepline-SDK-Version":
|
|
607
|
+
"X-Deepline-Agent-Runtime": _chunkMO6QJPEBjs.detectAgentRuntime.call(void 0, ),
|
|
608
|
+
"X-Deepline-CLI-Version": _chunkMO6QJPEBjs.SDK_VERSION,
|
|
609
|
+
"X-Deepline-SDK-Version": _chunkMO6QJPEBjs.SDK_VERSION
|
|
610
610
|
};
|
|
611
611
|
}
|
|
612
612
|
async function postFailureReport(input) {
|
|
@@ -634,7 +634,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
|
|
|
634
634
|
if (isFailureReportingDisabled()) return false;
|
|
635
635
|
let apiKey = "";
|
|
636
636
|
try {
|
|
637
|
-
apiKey =
|
|
637
|
+
apiKey = _chunkMO6QJPEBjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
|
|
638
638
|
} catch (e7) {
|
|
639
639
|
return false;
|
|
640
640
|
}
|
|
@@ -661,7 +661,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
|
|
|
661
661
|
failure_code: failureCode2,
|
|
662
662
|
failure_stage: failureStage,
|
|
663
663
|
error_body: "Automatic Deepline skills installation failed.",
|
|
664
|
-
cli_version:
|
|
664
|
+
cli_version: _chunkMO6QJPEBjs.SDK_VERSION,
|
|
665
665
|
context: {
|
|
666
666
|
environment: buildEnvironmentContext(),
|
|
667
667
|
skills_sync: {
|
|
@@ -781,7 +781,7 @@ function buildFailureReport(input) {
|
|
|
781
781
|
failure_kind: failureKind,
|
|
782
782
|
failure_code: code,
|
|
783
783
|
failure_stage: input.error === void 0 ? "command_exit" : "cli_main",
|
|
784
|
-
cli_version:
|
|
784
|
+
cli_version: _chunkMO6QJPEBjs.SDK_VERSION,
|
|
785
785
|
context: {
|
|
786
786
|
base_url: redactFailureText(input.baseUrl, 400),
|
|
787
787
|
command_summary: sanitizeCommand(input.argv),
|
|
@@ -801,8 +801,8 @@ async function maybeReportSdkCliFailure(input) {
|
|
|
801
801
|
if (isServerLoggedPlayRunStartFailure(input)) return false;
|
|
802
802
|
const exitCode = resolvedExitCode(input);
|
|
803
803
|
if (!shouldReport({ exitCode, error: input.error })) return false;
|
|
804
|
-
const baseUrl =
|
|
805
|
-
const apiKey =
|
|
804
|
+
const baseUrl = _chunkMO6QJPEBjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
805
|
+
const apiKey = _chunkMO6QJPEBjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
806
806
|
if (!apiKey) return false;
|
|
807
807
|
return postFailureReport({
|
|
808
808
|
baseUrl,
|
|
@@ -823,25 +823,25 @@ var CHECK_TIMEOUT_MS2 = 3e3;
|
|
|
823
823
|
var INSTALLER_PROBE_TIMEOUT_MS = 1e3;
|
|
824
824
|
var PUBLISHED_VERIFICATION_RETRY_MS = 5 * 6e4;
|
|
825
825
|
function shouldSkipSkillsSync() {
|
|
826
|
-
if (
|
|
826
|
+
if (_chunkMO6QJPEBjs.detectAgentRuntime.call(void 0, ) === "claude_cowork" || isCiEnvironment()) {
|
|
827
827
|
return true;
|
|
828
828
|
}
|
|
829
829
|
const value = _optionalChain([process, 'access', _56 => _56.env, 'access', _57 => _57.DEEPLINE_SKIP_SKILLS_SYNC, 'optionalAccess', _58 => _58.trim, 'call', _59 => _59(), 'access', _60 => _60.toLowerCase, 'call', _61 => _61()]);
|
|
830
830
|
return value === "1" || value === "true" || value === "yes" || value === "on";
|
|
831
831
|
}
|
|
832
832
|
function unavailableSkillsNoticePath(baseUrl) {
|
|
833
|
-
return _path.join.call(void 0,
|
|
833
|
+
return _path.join.call(void 0, _chunkMO6QJPEBjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-sync-unavailable-version");
|
|
834
834
|
}
|
|
835
835
|
var SKILLS_SYNC_IN_PROGRESS_TTL_MS = 10 * 60 * 1e3;
|
|
836
836
|
var SKILLS_SYNC_IN_PROGRESS_PID_CAP_MS = 6 * 60 * 60 * 1e3;
|
|
837
|
-
var agentLeaseSegment =
|
|
837
|
+
var agentLeaseSegment = _chunkMO6QJPEBjs.skillsAgentPathSegment;
|
|
838
838
|
function sortedLeaseAgents(agents) {
|
|
839
|
-
const expanded = agents.includes("*") ? [...agents, ...
|
|
839
|
+
const expanded = agents.includes("*") ? [...agents, ..._chunkMO6QJPEBjs.KNOWN_SKILL_AGENTS] : agents;
|
|
840
840
|
return [...new Set(expanded)].sort((a, b) => a.localeCompare(b));
|
|
841
841
|
}
|
|
842
842
|
function inProgressSkillsSyncPath(baseUrl, agent) {
|
|
843
843
|
return _path.join.call(void 0,
|
|
844
|
-
|
|
844
|
+
_chunkMO6QJPEBjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
845
845
|
`skills-sync-in-progress-${agentLeaseSegment(agent)}`
|
|
846
846
|
);
|
|
847
847
|
}
|
|
@@ -1000,7 +1000,7 @@ var SkillsStateUnavailableError = class extends Error {
|
|
|
1000
1000
|
constructor(baseUrl, error) {
|
|
1001
1001
|
const detail = error instanceof Error ? error.message : String(error);
|
|
1002
1002
|
super(
|
|
1003
|
-
`Could not save skills state in ${
|
|
1003
|
+
`Could not save skills state in ${_chunkMO6QJPEBjs.sdkCliStateDirPath.call(void 0, baseUrl)}: ${detail}`
|
|
1004
1004
|
);
|
|
1005
1005
|
this.name = "SkillsStateUnavailableError";
|
|
1006
1006
|
}
|
|
@@ -1085,7 +1085,7 @@ function skillsInstallLeasePath(baseUrl, agents) {
|
|
|
1085
1085
|
}
|
|
1086
1086
|
function deferredSkillsNoticePath(baseUrl, agents) {
|
|
1087
1087
|
return _path.join.call(void 0,
|
|
1088
|
-
|
|
1088
|
+
_chunkMO6QJPEBjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
1089
1089
|
`skills-sync-notice-${sortedLeaseAgents(agents).map(agentLeaseSegment).join("-")}`
|
|
1090
1090
|
);
|
|
1091
1091
|
}
|
|
@@ -1119,8 +1119,8 @@ function flushDeferredSkillsNotices(baseUrl, agents) {
|
|
|
1119
1119
|
if (text.trim()) writeSdkSkillsStatusLine(text.trimEnd());
|
|
1120
1120
|
}
|
|
1121
1121
|
function flushDeferredSkillsSyncNotices(baseUrl) {
|
|
1122
|
-
if (shouldSkipSkillsSync() ||
|
|
1123
|
-
const agents =
|
|
1122
|
+
if (shouldSkipSkillsSync() || _chunkMO6QJPEBjs.hasActivePluginSkills.call(void 0, )) return;
|
|
1123
|
+
const agents = _chunkMO6QJPEBjs.resolveAutoSyncSkillAgents.call(void 0, );
|
|
1124
1124
|
if (agents.length === 0) return;
|
|
1125
1125
|
flushDeferredSkillsNotices(baseUrl, agents);
|
|
1126
1126
|
}
|
|
@@ -1136,7 +1136,7 @@ function spawnDetachedSkillsSyncChild(argv, onSpawnError) {
|
|
|
1136
1136
|
}
|
|
1137
1137
|
function failedSkillsSyncPath(baseUrl, agents) {
|
|
1138
1138
|
return _path.join.call(void 0,
|
|
1139
|
-
|
|
1139
|
+
_chunkMO6QJPEBjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
1140
1140
|
`skills-sync-failed-${sortedLeaseAgents(agents).map(agentLeaseSegment).join("-")}-version`
|
|
1141
1141
|
);
|
|
1142
1142
|
}
|
|
@@ -1165,7 +1165,7 @@ function writeUnavailableSkillsNotice(baseUrl, remoteVersion, skillNames, reason
|
|
|
1165
1165
|
if (hasMarkedSkillsSyncVersion(path, remoteVersion)) return;
|
|
1166
1166
|
writeMarkedSkillsSyncVersion(path, remoteVersion);
|
|
1167
1167
|
const probes = reason === "no-installer" ? _nullishCoalesce(knownProbes, () => ( probeInstallers())) : null;
|
|
1168
|
-
const manualCommand = _optionalChain([probes, 'optionalAccess', _65 => _65.npx]) === "missing" && probes.bunx !== "missing" ? `bunx ${buildBunxSkillsInstallArgs(baseUrl, skillNames,
|
|
1168
|
+
const manualCommand = _optionalChain([probes, 'optionalAccess', _65 => _65.npx]) === "missing" && probes.bunx !== "missing" ? `bunx ${buildBunxSkillsInstallArgs(baseUrl, skillNames, _chunkMO6QJPEBjs.DEFAULT_SKILL_AGENTS).map(shellQuote).join(" ")}` : `npx ${buildSkillsInstallArgs(baseUrl, skillNames).join(" ")}`;
|
|
1169
1169
|
const explanation = reason === "unsupported-agent" ? "the detected agent has no automatic skills sync target. Automatic sync was skipped." : _optionalChain([probes, 'optionalAccess', _66 => _66.bunx]) === "missing" && probes.npx === "missing" ? "neither `bunx` nor `npx` was found on PATH. Make one available." : `installer version check failed for ${Object.entries(_nullishCoalesce(probes, () => ( {}))).filter(([, result]) => result === "failed").map(([command]) => `\`${command}\``).join(" and ")}. Check those commands with --version.`;
|
|
1170
1170
|
notice(
|
|
1171
1171
|
`Deepline agent skills are out of date, but ${explanation} To install manually, run:
|
|
@@ -1253,7 +1253,7 @@ function buildSdkSkillNames(v1SkillNames2) {
|
|
|
1253
1253
|
return sortedUniqueSkillNames(v1SkillNames2);
|
|
1254
1254
|
}
|
|
1255
1255
|
function isDefaultAgentSet(agents) {
|
|
1256
|
-
return agents.length ===
|
|
1256
|
+
return agents.length === _chunkMO6QJPEBjs.DEFAULT_SKILL_AGENTS.length && agents.every((agent, index) => agent === _chunkMO6QJPEBjs.DEFAULT_SKILL_AGENTS[index]);
|
|
1257
1257
|
}
|
|
1258
1258
|
function safeSkillFilePath(value) {
|
|
1259
1259
|
if (typeof value !== "string" || !value) return false;
|
|
@@ -1450,7 +1450,7 @@ function probeInstallers(timeoutMs) {
|
|
|
1450
1450
|
}
|
|
1451
1451
|
function noInstallerProbePath(baseUrl) {
|
|
1452
1452
|
return _path.join.call(void 0,
|
|
1453
|
-
|
|
1453
|
+
_chunkMO6QJPEBjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
1454
1454
|
"skills-sync-no-installer-unknown.json"
|
|
1455
1455
|
);
|
|
1456
1456
|
}
|
|
@@ -1529,7 +1529,7 @@ function temporarySkillsSyncSkipCommand() {
|
|
|
1529
1529
|
function resolveSkillsInstallSpawn(install, platform2 = process.platform) {
|
|
1530
1530
|
return resolveShellSpawn(install.command, install.args, platform2);
|
|
1531
1531
|
}
|
|
1532
|
-
function resolveSkillsInstallCommands(baseUrl, skillNames = DEFAULT_SDK_SKILL_NAMES, agents =
|
|
1532
|
+
function resolveSkillsInstallCommands(baseUrl, skillNames = DEFAULT_SDK_SKILL_NAMES, agents = _chunkMO6QJPEBjs.DEFAULT_SKILL_AGENTS, knownProbes) {
|
|
1533
1533
|
const commands = [];
|
|
1534
1534
|
const probes = _nullishCoalesce(knownProbes, () => ( probeInstallers()));
|
|
1535
1535
|
if (probes.bunx === "available") {
|
|
@@ -1681,11 +1681,11 @@ function writeSdkSkillsStatusLine(line) {
|
|
|
1681
1681
|
}
|
|
1682
1682
|
async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
|
|
1683
1683
|
if (shouldSkipSkillsSync()) return;
|
|
1684
|
-
const usingPluginSkills =
|
|
1684
|
+
const usingPluginSkills = _chunkMO6QJPEBjs.hasActivePluginSkills.call(void 0, );
|
|
1685
1685
|
if (usingPluginSkills) {
|
|
1686
1686
|
return;
|
|
1687
1687
|
}
|
|
1688
|
-
const agents =
|
|
1688
|
+
const agents = _chunkMO6QJPEBjs.resolveAutoSyncSkillAgents.call(void 0, );
|
|
1689
1689
|
if (options.mode === "detached" && agents.length > 0) {
|
|
1690
1690
|
flushDeferredSkillsNotices(baseUrl, agents);
|
|
1691
1691
|
}
|
|
@@ -1713,7 +1713,7 @@ async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
|
|
|
1713
1713
|
return;
|
|
1714
1714
|
}
|
|
1715
1715
|
try {
|
|
1716
|
-
const localVersion =
|
|
1716
|
+
const localVersion = _chunkMO6QJPEBjs.readSdkSkillsLocalVersion.call(void 0, baseUrl);
|
|
1717
1717
|
const update = options.update === void 0 ? claimedVersion ? { needsUpdate: true, remoteVersion: claimedVersion } : await fetchSkillsUpdate(baseUrl, localVersion) : options.update ? {
|
|
1718
1718
|
needsUpdate: options.update.needs_update,
|
|
1719
1719
|
remoteVersion: options.update.remote.version
|
|
@@ -1879,7 +1879,7 @@ async function runInlineSkillsSync(baseUrl, remoteVersion, agents, notices) {
|
|
|
1879
1879
|
}
|
|
1880
1880
|
}
|
|
1881
1881
|
runLegacySkillsCleanup(agents);
|
|
1882
|
-
if (!
|
|
1882
|
+
if (!_chunkMO6QJPEBjs.writeSdkSkillsLocalVersion.call(void 0, baseUrl, update.remoteVersion, agents)) {
|
|
1883
1883
|
notice(
|
|
1884
1884
|
"Deepline agent skills installed, but the local skills version could not be recorded. A later command will retry the refresh."
|
|
1885
1885
|
);
|
|
@@ -1938,7 +1938,7 @@ function inferActiveSkillsScope(entrypoint = _nullishCoalesce(process.argv[1], (
|
|
|
1938
1938
|
return /[\\/]\.deepline[\\/]runtime[\\/]/.test(entrypoint) ? "local" : "global";
|
|
1939
1939
|
}
|
|
1940
1940
|
function resolveLocalRoot() {
|
|
1941
|
-
const target =
|
|
1941
|
+
const target = _chunkMO6QJPEBjs.resolveProjectPinTarget.call(void 0, );
|
|
1942
1942
|
if (!target.ok) {
|
|
1943
1943
|
throw new Error(
|
|
1944
1944
|
`Cowork project folder is ambiguous. Candidate folders: ${target.candidates.join(
|
|
@@ -1949,7 +1949,7 @@ function resolveLocalRoot() {
|
|
|
1949
1949
|
return target.dir;
|
|
1950
1950
|
}
|
|
1951
1951
|
function detectSkillsAgents(input) {
|
|
1952
|
-
const runtime = _nullishCoalesce(input.runtime, () => (
|
|
1952
|
+
const runtime = _nullishCoalesce(input.runtime, () => ( _chunkMO6QJPEBjs.detectAgentRuntime.call(void 0, )));
|
|
1953
1953
|
const knownAgent = RUNTIME_TO_SKILLS_AGENT[runtime];
|
|
1954
1954
|
if (knownAgent) return [knownAgent];
|
|
1955
1955
|
const roots = [
|
|
@@ -1964,7 +1964,7 @@ function detectSkillsAgents(input) {
|
|
|
1964
1964
|
return detected.length > 0 ? detected : ["*"];
|
|
1965
1965
|
}
|
|
1966
1966
|
function skillsStatePathForScope(baseUrl, scope, root) {
|
|
1967
|
-
return scope === "local" && root ? _path.join.call(void 0, root, ".deepline", "setup", "skills.json") : _path.join.call(void 0,
|
|
1967
|
+
return scope === "local" && root ? _path.join.call(void 0, root, ".deepline", "setup", "skills.json") : _path.join.call(void 0, _chunkMO6QJPEBjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-install.json");
|
|
1968
1968
|
}
|
|
1969
1969
|
function buildSkillsPlan(input) {
|
|
1970
1970
|
const scopeArgs = input.scope === "global" ? ["--global"] : [];
|
|
@@ -2086,7 +2086,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
2086
2086
|
scope = normalizeScope(options.scope);
|
|
2087
2087
|
root = scope === "local" ? resolveLocalRoot() : null;
|
|
2088
2088
|
} catch (error) {
|
|
2089
|
-
|
|
2089
|
+
_chunkITOJRSOUjs.printCommandEnvelope.call(void 0,
|
|
2090
2090
|
{
|
|
2091
2091
|
ok: false,
|
|
2092
2092
|
status: "failed",
|
|
@@ -2098,22 +2098,22 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
2098
2098
|
);
|
|
2099
2099
|
return 2;
|
|
2100
2100
|
}
|
|
2101
|
-
const baseUrl =
|
|
2101
|
+
const baseUrl = _chunkMO6QJPEBjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
2102
2102
|
const catalog = {
|
|
2103
2103
|
skillNames: [...DEFAULT_SDK_SKILL_NAMES],
|
|
2104
|
-
version:
|
|
2104
|
+
version: _chunkMO6QJPEBjs.SDK_VERSION
|
|
2105
2105
|
};
|
|
2106
2106
|
const agents = options.agent ? [options.agent] : detectSkillsAgents({ scope, root });
|
|
2107
2107
|
const plan = buildSkillsPlan({ baseUrl, scope, root, agents, ...catalog });
|
|
2108
2108
|
if (options.dryRun) {
|
|
2109
|
-
|
|
2109
|
+
_chunkITOJRSOUjs.printCommandEnvelope.call(void 0,
|
|
2110
2110
|
{ ok: true, status: "planned", dryRun: true, ...plan },
|
|
2111
2111
|
{ json: options.json }
|
|
2112
2112
|
);
|
|
2113
2113
|
return 0;
|
|
2114
2114
|
}
|
|
2115
2115
|
if (isSkillsPlanCurrent(plan, readSkillsInstallState(plan.statePath)) && !hasFailedAutomaticSkillsSync(baseUrl, agents)) {
|
|
2116
|
-
|
|
2116
|
+
_chunkITOJRSOUjs.printCommandEnvelope.call(void 0,
|
|
2117
2117
|
{
|
|
2118
2118
|
ok: true,
|
|
2119
2119
|
status: "current",
|
|
@@ -2148,7 +2148,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
2148
2148
|
.../* @__PURE__ */ new Set([...plan.skillNames, ...LEGACY_SKILL_NAMES_TO_REMOVE])
|
|
2149
2149
|
];
|
|
2150
2150
|
const agentRoots = workspaceSkillRootsForAgents(plan.agents);
|
|
2151
|
-
|
|
2151
|
+
_chunkMO6QJPEBjs.ensureProjectPrivatePathsIgnored.call(void 0, root, [
|
|
2152
2152
|
".deepline/",
|
|
2153
2153
|
...agentRoots.flatMap(
|
|
2154
2154
|
(agentRoot) => managedNames.map((name) => `${agentRoot}/skills/${name}/`)
|
|
@@ -2166,7 +2166,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
2166
2166
|
} };
|
|
2167
2167
|
} catch (error) {
|
|
2168
2168
|
if (!(error instanceof SkillsStateUnavailableError)) throw error;
|
|
2169
|
-
|
|
2169
|
+
_chunkITOJRSOUjs.printCommandEnvelope.call(void 0,
|
|
2170
2170
|
{
|
|
2171
2171
|
ok: false,
|
|
2172
2172
|
status: "failed",
|
|
@@ -2182,7 +2182,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
2182
2182
|
return 5;
|
|
2183
2183
|
}
|
|
2184
2184
|
if (!lease) {
|
|
2185
|
-
|
|
2185
|
+
_chunkITOJRSOUjs.printCommandEnvelope.call(void 0,
|
|
2186
2186
|
{
|
|
2187
2187
|
ok: false,
|
|
2188
2188
|
status: "failed",
|
|
@@ -2228,7 +2228,7 @@ async function runSkillsInstallWithLease(input) {
|
|
|
2228
2228
|
throw new Error("Could not install the current Deepline skills.");
|
|
2229
2229
|
}
|
|
2230
2230
|
} catch (error) {
|
|
2231
|
-
|
|
2231
|
+
_chunkITOJRSOUjs.printCommandEnvelope.call(void 0,
|
|
2232
2232
|
{
|
|
2233
2233
|
ok: false,
|
|
2234
2234
|
status: "failed",
|
|
@@ -2267,7 +2267,7 @@ async function runSkillsInstallWithLease(input) {
|
|
|
2267
2267
|
{
|
|
2268
2268
|
schemaVersion: 1,
|
|
2269
2269
|
installedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
2270
|
-
cliVersion:
|
|
2270
|
+
cliVersion: _chunkMO6QJPEBjs.SDK_VERSION,
|
|
2271
2271
|
scope,
|
|
2272
2272
|
agents,
|
|
2273
2273
|
skillsVersion: plan.version,
|
|
@@ -2282,7 +2282,7 @@ async function runSkillsInstallWithLease(input) {
|
|
|
2282
2282
|
if (scope === "global") {
|
|
2283
2283
|
clearFailedAutomaticSkillsSync(baseUrl, agents);
|
|
2284
2284
|
}
|
|
2285
|
-
|
|
2285
|
+
_chunkITOJRSOUjs.printCommandEnvelope.call(void 0,
|
|
2286
2286
|
{
|
|
2287
2287
|
ok: true,
|
|
2288
2288
|
status: "complete",
|
|
@@ -2331,7 +2331,7 @@ Examples:
|
|
|
2331
2331
|
).action(async (options) => {
|
|
2332
2332
|
const claim = _optionalChain([options, 'access', _88 => _88.claim, 'optionalAccess', _89 => _89.trim, 'call', _90 => _90()]);
|
|
2333
2333
|
if (!claim) {
|
|
2334
|
-
|
|
2334
|
+
_chunkITOJRSOUjs.printCommandEnvelope.call(void 0,
|
|
2335
2335
|
{
|
|
2336
2336
|
ok: false,
|
|
2337
2337
|
status: "failed",
|
|
@@ -2344,7 +2344,7 @@ Examples:
|
|
|
2344
2344
|
process.exitCode = 2;
|
|
2345
2345
|
return;
|
|
2346
2346
|
}
|
|
2347
|
-
await syncSdkSkillsIfNeeded(
|
|
2347
|
+
await syncSdkSkillsIfNeeded(_chunkMO6QJPEBjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, ""), {
|
|
2348
2348
|
mode: "inline",
|
|
2349
2349
|
notices: "defer",
|
|
2350
2350
|
claim
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkEEPFLZ7Vjs = require('./chunk-EEPFLZ7V.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkITOJRSOUjs = require('./chunk-ITOJRSOU.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkMO6QJPEBjs = require('./chunk-MO6QJPEB.js');
|
|
12
12
|
|
|
13
13
|
// src/cli/commands/search.ts
|
|
14
14
|
var _commander = require('commander');
|
|
@@ -18,7 +18,7 @@ var _fs = require('fs');
|
|
|
18
18
|
var _path = require('path');
|
|
19
19
|
var SEARCH_REF_TTL_MS = 15 * 6e4;
|
|
20
20
|
function lastSearchPath() {
|
|
21
|
-
return _path.join.call(void 0,
|
|
21
|
+
return _path.join.call(void 0, _chunkMO6QJPEBjs.sdkCliStateDirPath.call(void 0, _chunkMO6QJPEBjs.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
|
|
22
22
|
}
|
|
23
23
|
function rememberSearchRef(searchRef) {
|
|
24
24
|
try {
|
|
@@ -130,7 +130,7 @@ function searchRow(item) {
|
|
|
130
130
|
}
|
|
131
131
|
function renderSearchResults(result) {
|
|
132
132
|
if (result.results.length === 0)
|
|
133
|
-
return
|
|
133
|
+
return _chunkITOJRSOUjs.renderCommandEnvelopeText.call(void 0, result);
|
|
134
134
|
const rows = result.results.map(searchRow);
|
|
135
135
|
const kinds = new Set(rows.map((row) => row.kind));
|
|
136
136
|
const onlyTools = kinds.size === 1 && kinds.has("tool");
|
|
@@ -147,7 +147,7 @@ function renderSearchResults(result) {
|
|
|
147
147
|
actions: _optionalChain([render, 'optionalAccess', _9 => _9.actions])
|
|
148
148
|
};
|
|
149
149
|
const followUps = _optionalChain([remaining, 'access', _10 => _10.sections, 'optionalAccess', _11 => _11.length]) || _optionalChain([remaining, 'access', _12 => _12.actions, 'optionalAccess', _13 => _13.length]) ? `
|
|
150
|
-
${
|
|
150
|
+
${_chunkITOJRSOUjs.renderCommandEnvelopeText.call(void 0, { render: remaining })}` : "";
|
|
151
151
|
const notes = rows.flatMap(
|
|
152
152
|
(row) => row.notes.map((note) => ` ${row.id}: ${note}`)
|
|
153
153
|
);
|
|
@@ -224,7 +224,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
|
|
|
224
224
|
console.error(USAGE);
|
|
225
225
|
return 1;
|
|
226
226
|
}
|
|
227
|
-
const { search_ref: searchRef, ...result } = await new (0,
|
|
227
|
+
const { search_ref: searchRef, ...result } = await new (0, _chunkEEPFLZ7Vjs.DeeplineClient)().search({
|
|
228
228
|
query,
|
|
229
229
|
types,
|
|
230
230
|
exclude,
|
|
@@ -238,7 +238,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
|
|
|
238
238
|
});
|
|
239
239
|
if (searchRef) rememberSearchRef(searchRef);
|
|
240
240
|
pointAtDescribe(result);
|
|
241
|
-
|
|
241
|
+
_chunkITOJRSOUjs.printCommandEnvelope.call(void 0, result, {
|
|
242
242
|
json: options.json === true,
|
|
243
243
|
text: renderSearchResults(result)
|
|
244
244
|
});
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DeeplineClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-TAX3OOC6.mjs";
|
|
4
4
|
import {
|
|
5
5
|
printCommandEnvelope,
|
|
6
6
|
renderCommandEnvelopeText
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-NTIWTBEH.mjs";
|
|
8
8
|
import {
|
|
9
9
|
resolveConfig,
|
|
10
10
|
sdkCliStateDirPath
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-JDSRPSES.mjs";
|
|
12
12
|
|
|
13
13
|
// src/cli/commands/search.ts
|
|
14
14
|
import { Option } from "commander";
|
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
MONITOR_JOB_PHASES,
|
|
4
4
|
MONITOR_JOB_RECONCILIATION_STATES,
|
|
5
5
|
MONITOR_JOB_STATES
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-TAX3OOC6.mjs";
|
|
7
7
|
import "./chunk-CBVIJSHF.mjs";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-JDSRPSES.mjs";
|
|
9
9
|
import "./chunk-DLIRSHV6.mjs";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-EWYAS4WD.mjs";
|
|
11
11
|
import "./chunk-6IKARAYD.mjs";
|
|
12
12
|
import "./chunk-NXGCO4JB.mjs";
|
|
13
13
|
import "./chunk-WZYKRD7T.mjs";
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
var _chunkEEPFLZ7Vjs = require('./chunk-EEPFLZ7V.js');
|
|
7
|
+
require('./chunk-LA46MMTL.js');
|
|
8
|
+
require('./chunk-MO6QJPEB.js');
|
|
9
|
+
require('./chunk-XNYIZMNQ.js');
|
|
10
|
+
require('./chunk-UJCHR3J3.js');
|
|
11
|
+
require('./chunk-S6R3OX7B.js');
|
|
12
|
+
require('./chunk-7P5AA3SN.js');
|
|
13
|
+
require('./chunk-OG64RBAC.js');
|
|
14
|
+
require('./chunk-COGTRVWW.js');
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
exports.DeeplineClient = _chunkEEPFLZ7Vjs.DeeplineClient; exports.MONITOR_JOB_PHASES = _chunkEEPFLZ7Vjs.MONITOR_JOB_PHASES; exports.MONITOR_JOB_RECONCILIATION_STATES = _chunkEEPFLZ7Vjs.MONITOR_JOB_RECONCILIATION_STATES; exports.MONITOR_JOB_STATES = _chunkEEPFLZ7Vjs.MONITOR_JOB_STATES;
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
8
|
-
require('./chunk-
|
|
7
|
+
var _chunkITOJRSOUjs = require('./chunk-ITOJRSOU.js');
|
|
8
|
+
require('./chunk-MO6QJPEB.js');
|
|
9
9
|
require('./chunk-XNYIZMNQ.js');
|
|
10
|
-
require('./chunk-
|
|
10
|
+
require('./chunk-UJCHR3J3.js');
|
|
11
11
|
require('./chunk-7P5AA3SN.js');
|
|
12
12
|
require('./chunk-OG64RBAC.js');
|
|
13
13
|
require('./chunk-COGTRVWW.js');
|
|
@@ -126,7 +126,7 @@ function renderTable(rows, totalRows, verbose, footer = `showing ${rows.length}
|
|
|
126
126
|
column.length,
|
|
127
127
|
...rows.map((row) => {
|
|
128
128
|
const value = _nullishCoalesce(row[column], () => ( ""));
|
|
129
|
-
return (verbose ? value :
|
|
129
|
+
return (verbose ? value : _chunkITOJRSOUjs.clip.call(void 0, value, 42)).length;
|
|
130
130
|
})
|
|
131
131
|
)
|
|
132
132
|
])
|
|
@@ -136,7 +136,7 @@ function renderTable(rows, totalRows, verbose, footer = `showing ${rows.length}
|
|
|
136
136
|
const body = rows.map(
|
|
137
137
|
(row) => columns.map((column) => {
|
|
138
138
|
const raw = _nullishCoalesce(row[column], () => ( ""));
|
|
139
|
-
const display = verbose ? raw :
|
|
139
|
+
const display = verbose ? raw : _chunkITOJRSOUjs.clip.call(void 0, raw, 42);
|
|
140
140
|
return display.padEnd(widths[column]);
|
|
141
141
|
}).join(" | ")
|
|
142
142
|
);
|
|
@@ -156,7 +156,7 @@ async function handleCsvShow(path, options, command) {
|
|
|
156
156
|
{ exitCode: 2 }
|
|
157
157
|
);
|
|
158
158
|
}
|
|
159
|
-
const allRows =
|
|
159
|
+
const allRows = _chunkITOJRSOUjs.readCsvRows.call(void 0, csvPath);
|
|
160
160
|
const [rowStart, rowEnd] = parseRowRange(options.rows);
|
|
161
161
|
const rows = options.summary && options.rows === void 0 ? allRows : selectRows(allRows, rowStart, rowEnd);
|
|
162
162
|
const { rows: selected, columns } = selectColumns(
|
|
@@ -169,7 +169,7 @@ async function handleCsvShow(path, options, command) {
|
|
|
169
169
|
if (options.summary) {
|
|
170
170
|
const summaries = summarizeColumns(selected, columns);
|
|
171
171
|
if (format === "json") {
|
|
172
|
-
|
|
172
|
+
_chunkITOJRSOUjs.printJson.call(void 0, {
|
|
173
173
|
rows: summaries,
|
|
174
174
|
total_rows: selected.length,
|
|
175
175
|
source_total_rows: allRows.length
|
|
@@ -178,7 +178,7 @@ async function handleCsvShow(path, options, command) {
|
|
|
178
178
|
}
|
|
179
179
|
const displayRows = summaryDisplayRows(summaries);
|
|
180
180
|
if (format === "csv") {
|
|
181
|
-
process.stdout.write(
|
|
181
|
+
process.stdout.write(_chunkITOJRSOUjs.csvStringFromRows.call(void 0, displayRows));
|
|
182
182
|
return;
|
|
183
183
|
}
|
|
184
184
|
process.stdout.write(
|
|
@@ -193,7 +193,7 @@ async function handleCsvShow(path, options, command) {
|
|
|
193
193
|
return;
|
|
194
194
|
}
|
|
195
195
|
if (format === "json") {
|
|
196
|
-
|
|
196
|
+
_chunkITOJRSOUjs.printJson.call(void 0, {
|
|
197
197
|
rows: selected.map((row, index) => ({ __row: rowStart + index, ...row }))
|
|
198
198
|
});
|
|
199
199
|
return;
|
|
@@ -436,7 +436,7 @@ async function handleCsvRenderStart(options) {
|
|
|
436
436
|
if (log) {
|
|
437
437
|
detail = `
|
|
438
438
|
CSV render log:
|
|
439
|
-
${
|
|
439
|
+
${_chunkITOJRSOUjs.clip.call(void 0, log, 2e3)}`;
|
|
440
440
|
}
|
|
441
441
|
} catch (e7) {
|
|
442
442
|
}
|
|
@@ -487,7 +487,7 @@ async function handleCsvRenderStatus(options) {
|
|
|
487
487
|
if (payload.pid) lines.push(`Render PID: ${payload.pid}`);
|
|
488
488
|
if (payload.url) lines.push(`Render URL: ${payload.url}`);
|
|
489
489
|
lines.push(`Render Health: ${payload.health_status}`);
|
|
490
|
-
|
|
490
|
+
_chunkITOJRSOUjs.printCommandEnvelope.call(void 0, payload, {
|
|
491
491
|
json: options.json,
|
|
492
492
|
text: `${lines.join("\n")}
|
|
493
493
|
`
|
|
@@ -523,7 +523,7 @@ async function handleCsvRenderStop(options) {
|
|
|
523
523
|
};
|
|
524
524
|
const text = stopped.length > 0 ? `Stopped CSV render process(es): ${stopped.join(" ")}
|
|
525
525
|
` : "No running CSV render process found.\n";
|
|
526
|
-
|
|
526
|
+
_chunkITOJRSOUjs.printCommandEnvelope.call(void 0, payload, { json: options.json, text });
|
|
527
527
|
}
|
|
528
528
|
async function handleCsvRender(action, options) {
|
|
529
529
|
const normalized = _nullishCoalesce(action, () => ( "start"));
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
printCommandEnvelope,
|
|
5
5
|
printJson,
|
|
6
6
|
readCsvRows
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-NTIWTBEH.mjs";
|
|
8
|
+
import "./chunk-JDSRPSES.mjs";
|
|
9
9
|
import "./chunk-DLIRSHV6.mjs";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-EWYAS4WD.mjs";
|
|
11
11
|
import "./chunk-NXGCO4JB.mjs";
|
|
12
12
|
import "./chunk-WZYKRD7T.mjs";
|
|
13
13
|
import "./chunk-KRD6H754.mjs";
|