deepline 0.3.394 → 0.3.395
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/client.ts +30 -162
- package/dist/bundling-sources/sdk/src/index.ts +1 -0
- package/dist/bundling-sources/sdk/src/plays/play-description.ts +167 -0
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/sdk/src/types.ts +1 -0
- package/dist/cli/{auth-OSXDAVCF.mjs → auth-NMQXZRS7.mjs} +4 -4
- package/dist/cli/auth-UYCOBAL5.js +39 -0
- package/dist/cli/{billing-ZNNKX3UR.mjs → billing-5MVXZRS6.mjs} +5 -4
- package/dist/cli/{billing-EKLYOXUY.js → billing-Z4JTGUU3.js} +76 -75
- package/dist/cli/{chunk-E23BQ5SC.js → chunk-36ML3YKA.js} +241 -349
- package/dist/cli/{chunk-XRQ2AQL7.mjs → chunk-3TRY7KAC.mjs} +2 -2
- package/dist/cli/{chunk-NR3DFKNF.mjs → chunk-47M6HPGP.mjs} +1 -1
- package/dist/cli/{chunk-RBJYWRCF.js → chunk-4KLCLLTO.js} +239 -237
- package/dist/cli/{chunk-CS6RAIVY.js → chunk-56IFFVIB.js} +4 -4
- package/dist/cli/chunk-5VCZ3WRH.mjs +129 -0
- package/dist/cli/{chunk-FJGW5GXU.mjs → chunk-6D7A2FSL.mjs} +1 -1
- package/dist/cli/{chunk-X63FDZJZ.mjs → chunk-7MVWUXOD.mjs} +3 -3
- package/dist/cli/{chunk-ZYBGA4AR.mjs → chunk-7XAM7KDW.mjs} +3 -3
- package/dist/cli/{chunk-BP33SIZF.mjs → chunk-BLYL3KOC.mjs} +1 -1
- package/dist/cli/{chunk-TJI2EN6K.mjs → chunk-BON3DRC6.mjs} +1 -1
- package/dist/cli/chunk-DRM3CMHL.js +129 -0
- package/dist/cli/{chunk-XXUDVEXK.mjs → chunk-EFLQHJZ6.mjs} +5 -5
- package/dist/cli/{chunk-JHIJIHFB.mjs → chunk-G4IWGRMK.mjs} +23 -131
- package/dist/cli/{chunk-KGNTKMRG.js → chunk-HRWUQJ4K.js} +6 -6
- package/dist/cli/{chunk-2MDDA7A4.js → chunk-K5T3EN6D.js} +26 -26
- package/dist/cli/{chunk-KI635JN4.js → chunk-LZLBR2SF.js} +50 -50
- package/dist/cli/{chunk-MLPU5SMZ.js → chunk-MYIBHORT.js} +2 -2
- package/dist/cli/{chunk-UXFSWG3Q.mjs → chunk-OCSG6X67.mjs} +4 -4
- package/dist/cli/{chunk-354JCXA2.js → chunk-PZ5BZ76S.js} +50 -50
- package/dist/cli/{chunk-VK6FYZLP.js → chunk-R4XZO6Z5.js} +8 -8
- package/dist/cli/{chunk-6YAUMG27.js → chunk-TO2MWPGR.js} +1 -1
- package/dist/cli/{chunk-QIQBYKLB.js → chunk-UCXK2DS4.js} +15 -15
- package/dist/cli/{chunk-KIUMEOM5.js → chunk-UKU6JM3S.js} +8 -8
- package/dist/cli/{chunk-4P27AXEA.js → chunk-VYLJJQ7Y.js} +65 -65
- package/dist/cli/{chunk-M57J2SK4.mjs → chunk-WCCKMLHL.mjs} +2 -2
- package/dist/cli/{chunk-5BB2RGAX.mjs → chunk-XMAPE2KH.mjs} +15 -13
- package/dist/cli/{chunk-MFB2VKBO.mjs → chunk-ZWH2TFA7.mjs} +2 -2
- package/dist/cli/{csv-LU7O75WE.js → csv-HTS5ZYQ4.js} +12 -12
- package/dist/cli/{csv-5AXRB35H.mjs → csv-SVOD5UBH.mjs} +3 -3
- package/dist/cli/{db-F7YTFKVM.js → db-7AP4P52N.js} +30 -29
- package/dist/cli/{db-7XP5UWEW.mjs → db-7QLNI3Q4.mjs} +5 -4
- package/dist/cli/{describe-K4ES5LIL.mjs → describe-DBRY5BNK.mjs} +10 -9
- package/dist/cli/{describe-FRH32RDV.js → describe-YKOE54ZO.js} +20 -19
- package/dist/cli/{executions-RZV5XPT2.js → executions-GRQXTB2P.js} +7 -6
- package/dist/cli/{executions-IEHEHJUO.mjs → executions-QNZTPNG4.mjs} +5 -4
- package/dist/cli/{feedback-FPUVZBAN.mjs → feedback-JMCSR624.mjs} +3 -3
- package/dist/cli/{feedback-3P65QTX3.js → feedback-ZOLA2KY7.js} +7 -7
- package/dist/cli/git-EJQLRK27.js +23 -0
- package/dist/cli/{git-GLVVP7TY.mjs → git-LJGL2IHS.mjs} +4 -4
- package/dist/cli/index.js +94 -94
- package/dist/cli/index.mjs +42 -42
- package/dist/cli/{legacy-noops-3MOI6NBM.mjs → legacy-noops-F23PKVBN.mjs} +4 -4
- package/dist/cli/{legacy-noops-XKSGZR7Q.js → legacy-noops-YSCIR2SD.js} +7 -7
- package/dist/cli/{monitors-FTBGNEFG.mjs → monitors-S4LOEL7W.mjs} +5 -4
- package/dist/cli/{monitors-NZ2DYNST.js → monitors-WMZ6HJZX.js} +86 -85
- package/dist/cli/{org-MCKDQXIV.js → org-PFHM5ZLY.js} +65 -64
- package/dist/cli/{org-V2J5RBCN.mjs → org-U3WA2NQM.mjs} +5 -4
- package/dist/cli/{play-AJFGME3B.mjs → play-AGSECQFN.mjs} +8 -7
- package/dist/cli/play-BR2LWGXK.js +159 -0
- package/dist/cli/{providers-I6RQJZFZ.mjs → providers-QBBRFBOH.mjs} +5 -4
- package/dist/cli/{providers-2JEZ2264.js → providers-XYMHLKCA.js} +8 -7
- package/dist/cli/{quickstart-BIDQDMO4.mjs → quickstart-5JTDGISY.mjs} +3 -3
- package/dist/cli/{quickstart-GJ2RPDU3.js → quickstart-IYGD6ZY3.js} +5 -5
- package/dist/cli/{search-ELRXFWG5.mjs → search-X6W6GRHS.mjs} +6 -5
- package/dist/cli/search-ZVSYH5GY.js +28 -0
- package/dist/cli/{secrets-SQXGZXIC.mjs → secrets-N55B67H6.mjs} +5 -4
- package/dist/cli/{secrets-53IT6VXD.js → secrets-UHG6OQFD.js} +14 -13
- package/dist/cli/{sessions-CAV5M77Y.js → sessions-57L5MGHN.js} +5 -5
- package/dist/cli/{sessions-2X5QF7SL.mjs → sessions-JTRSTDSS.mjs} +4 -4
- package/dist/cli/{settings-532WNAZO.js → settings-ATX4U5AS.js} +75 -74
- package/dist/cli/{settings-7P67VGCJ.mjs → settings-Q24HRAQI.mjs} +8 -7
- package/dist/cli/{setup-QGGBV2LE.mjs → setup-77ZWLVHT.mjs} +6 -6
- package/dist/cli/{setup-6L2VSUWJ.js → setup-EJCNOUCE.js} +41 -41
- package/dist/cli/skills-SPXUBLII.js +28 -0
- package/dist/cli/{skills-3FE62WBG.mjs → skills-XIS5AWQI.mjs} +4 -4
- package/dist/cli/tools-DBHUUZJX.js +42 -0
- package/dist/cli/{tools-DMR25DEF.mjs → tools-WCKLYEGQ.mjs} +7 -6
- package/dist/cli/{update-6RZMHJZP.mjs → update-UT5WANMV.mjs} +6 -6
- package/dist/cli/update-VSNFXRHJ.js +28 -0
- package/dist/cli/{workflow-TX4F2PIX.js → workflow-226QYUN2.js} +16 -15
- package/dist/cli/{workflow-L2DQRE6R.mjs → workflow-ZMX3L4ML.mjs} +6 -5
- package/dist/{client-C3O1Ipf3.d.ts → client-CivP-PAI.d.ts} +21 -12
- package/dist/{client-BktIPdIj.d.mts → client-hdFtwhTm.d.mts} +21 -12
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +7 -6
- package/dist/index.mjs +4 -3
- package/dist/install-integrity.json +81 -74
- package/dist/plays/play-description.d.mts +6 -0
- package/dist/plays/play-description.d.ts +6 -0
- package/dist/plays/play-description.js +9 -0
- package/dist/plays/play-description.mjs +9 -0
- package/dist/plays/run-request.d.mts +1 -1
- package/dist/plays/run-request.d.ts +1 -1
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/package.json +6 -1
- package/dist/cli/auth-IHKISLJQ.js +0 -39
- package/dist/cli/git-MFFAWVVX.js +0 -23
- package/dist/cli/play-WLSN2EO2.js +0 -158
- package/dist/cli/search-5VN4YD4I.js +0 -27
- package/dist/cli/skills-S6NPZAN7.js +0 -28
- package/dist/cli/tools-647RLXQS.js +0 -41
- package/dist/cli/update-WVTSC3EM.js +0 -28
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _chunkWJYPBHTEjs = require('./chunk-WJYPBHTE.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkHRWUQJ4Kjs = require('./chunk-HRWUQJ4K.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -22,13 +22,13 @@ var _chunkKGNTKMRGjs = require('./chunk-KGNTKMRG.js');
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _chunk56IFFVIBjs = require('./chunk-56IFFVIB.js');
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
var _chunk7P5AA3SNjs = require('./chunk-7P5AA3SN.js');
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
var
|
|
31
|
+
var _chunkTO2MWPGRjs = require('./chunk-TO2MWPGR.js');
|
|
32
32
|
|
|
33
33
|
// src/cli/commands/skills.ts
|
|
34
34
|
var _child_process = require('child_process');
|
|
@@ -126,7 +126,7 @@ function skillsSourceUrl(baseUrl) {
|
|
|
126
126
|
function buildSkillsAddArgs(baseUrl, skillName, options = {}) {
|
|
127
127
|
const skillNames = Array.isArray(skillName) ? skillName : [skillName];
|
|
128
128
|
const [firstSkillName, ...extraSkillNames] = skillNames;
|
|
129
|
-
const agents = _nullishCoalesce(options.agents, () => (
|
|
129
|
+
const agents = _nullishCoalesce(options.agents, () => ( _chunk56IFFVIBjs.DEFAULT_SKILL_AGENTS));
|
|
130
130
|
const values = {
|
|
131
131
|
skills_index_url: skillsIndexUrl(baseUrl),
|
|
132
132
|
skills_source_url: skillsSourceUrl(baseUrl),
|
|
@@ -202,7 +202,7 @@ function shouldSkipCompatibilityCheck() {
|
|
|
202
202
|
return value === "1" || value === "true" || value === "yes";
|
|
203
203
|
}
|
|
204
204
|
function sdkCompatibilityCachePath(baseUrl, homeDir = _os.homedir.call(void 0, )) {
|
|
205
|
-
return _path.join.call(void 0,
|
|
205
|
+
return _path.join.call(void 0, _chunk56IFFVIBjs.sdkCliStateDirPath.call(void 0, baseUrl, homeDir), "compat-cache.json");
|
|
206
206
|
}
|
|
207
207
|
function legacySdkCompatibilityCachePath(homeDir = _os.homedir.call(void 0, )) {
|
|
208
208
|
return _path.join.call(void 0, homeDir, ".cache", "deepline", "sdk-compat-cache.json");
|
|
@@ -210,9 +210,9 @@ function legacySdkCompatibilityCachePath(homeDir = _os.homedir.call(void 0, )) {
|
|
|
210
210
|
function compatibilityCacheKey(baseUrl, command, skillsVersion) {
|
|
211
211
|
return JSON.stringify({
|
|
212
212
|
baseUrl: baseUrl.replace(/\/$/, ""),
|
|
213
|
-
version:
|
|
214
|
-
apiContract:
|
|
215
|
-
apiMajor:
|
|
213
|
+
version: _chunk56IFFVIBjs.SDK_VERSION,
|
|
214
|
+
apiContract: _chunk56IFFVIBjs.SDK_API_CONTRACT,
|
|
215
|
+
apiMajor: _chunk56IFFVIBjs.SDK_API_MAJOR,
|
|
216
216
|
command: _optionalChain([command, 'optionalAccess', _7 => _7.trim, 'call', _8 => _8()]) || null,
|
|
217
217
|
skillsVersion: _nullishCoalesce(skillsVersion, () => ( null))
|
|
218
218
|
});
|
|
@@ -220,8 +220,8 @@ function compatibilityCacheKey(baseUrl, command, skillsVersion) {
|
|
|
220
220
|
function legacyCompatibilityCacheKey(baseUrl, command) {
|
|
221
221
|
return JSON.stringify({
|
|
222
222
|
baseUrl: baseUrl.replace(/\/$/, ""),
|
|
223
|
-
version:
|
|
224
|
-
apiContract:
|
|
223
|
+
version: _chunk56IFFVIBjs.SDK_VERSION,
|
|
224
|
+
apiContract: _chunk56IFFVIBjs.SDK_API_CONTRACT,
|
|
225
225
|
command: _optionalChain([command, 'optionalAccess', _9 => _9.trim, 'call', _10 => _10()]) || null
|
|
226
226
|
});
|
|
227
227
|
}
|
|
@@ -314,7 +314,7 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
|
|
|
314
314
|
);
|
|
315
315
|
try {
|
|
316
316
|
const url = new URL("/api/v2/sdk/compat", baseUrl);
|
|
317
|
-
url.searchParams.set("version",
|
|
317
|
+
url.searchParams.set("version", _chunk56IFFVIBjs.SDK_VERSION);
|
|
318
318
|
if (_optionalChain([options, 'access', _19 => _19.command, 'optionalAccess', _20 => _20.trim, 'call', _21 => _21()])) {
|
|
319
319
|
url.searchParams.set("command", options.command.trim());
|
|
320
320
|
}
|
|
@@ -322,7 +322,7 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
|
|
|
322
322
|
url.searchParams.set("skills_version", _nullishCoalesce(options.skillsVersion, () => ( "")));
|
|
323
323
|
url.searchParams.set(
|
|
324
324
|
"skills_cli_capability",
|
|
325
|
-
String(
|
|
325
|
+
String(_chunkTO2MWPGRjs.SDK_RELEASE.packageCapabilities.skillsGuidance)
|
|
326
326
|
);
|
|
327
327
|
}
|
|
328
328
|
if (options.catalog) {
|
|
@@ -331,13 +331,13 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
|
|
|
331
331
|
const response = await fetch(url, {
|
|
332
332
|
method: "GET",
|
|
333
333
|
headers: {
|
|
334
|
-
...
|
|
335
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
336
|
-
"X-Deepline-SDK-Version":
|
|
337
|
-
"X-Deepline-API-Major": String(
|
|
338
|
-
"X-Deepline-API-Contract":
|
|
334
|
+
..._chunk56IFFVIBjs.deploymentProtectionHeaders.call(void 0, ),
|
|
335
|
+
"User-Agent": `deepline-ts-sdk/${_chunk56IFFVIBjs.SDK_VERSION}`,
|
|
336
|
+
"X-Deepline-SDK-Version": _chunk56IFFVIBjs.SDK_VERSION,
|
|
337
|
+
"X-Deepline-API-Major": String(_chunk56IFFVIBjs.SDK_API_MAJOR),
|
|
338
|
+
"X-Deepline-API-Contract": _chunk56IFFVIBjs.SDK_API_CONTRACT,
|
|
339
339
|
"X-Deepline-CLI-Update-Preferences": "1",
|
|
340
|
-
...options.catalog ? { Authorization: `Bearer ${
|
|
340
|
+
...options.catalog ? { Authorization: `Bearer ${_chunk56IFFVIBjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl)}` } : {}
|
|
341
341
|
},
|
|
342
342
|
signal: controller.signal
|
|
343
343
|
});
|
|
@@ -590,7 +590,7 @@ function buildEnvironmentContext() {
|
|
|
590
590
|
node_version: process.version,
|
|
591
591
|
runtime: "Node.js",
|
|
592
592
|
hostname: _os.hostname.call(void 0, ),
|
|
593
|
-
agent_runtime:
|
|
593
|
+
agent_runtime: _chunk56IFFVIBjs.detectAgentRuntime.call(void 0, )
|
|
594
594
|
};
|
|
595
595
|
for (const key of ["CLAUDE_CODE_REMOTE", "DEEPLINE_PLUGIN_MODE"]) {
|
|
596
596
|
const normalized = _optionalChain([process, 'access', _32 => _32.env, 'access', _33 => _33[key], 'optionalAccess', _34 => _34.trim, 'call', _35 => _35()]);
|
|
@@ -612,15 +612,15 @@ function buildEnvironmentContext() {
|
|
|
612
612
|
}
|
|
613
613
|
function failureReportHeaders(apiKey) {
|
|
614
614
|
return {
|
|
615
|
-
...
|
|
615
|
+
..._chunk56IFFVIBjs.deploymentProtectionHeaders.call(void 0, ),
|
|
616
616
|
Authorization: `Bearer ${apiKey}`,
|
|
617
617
|
"Content-Type": "application/json",
|
|
618
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
618
|
+
"User-Agent": `deepline-ts-sdk/${_chunk56IFFVIBjs.SDK_VERSION}`,
|
|
619
619
|
"X-Deepline-Client-Family": "sdk",
|
|
620
620
|
"X-Deepline-CLI-Family": "sdk",
|
|
621
|
-
"X-Deepline-Agent-Runtime":
|
|
622
|
-
"X-Deepline-CLI-Version":
|
|
623
|
-
"X-Deepline-SDK-Version":
|
|
621
|
+
"X-Deepline-Agent-Runtime": _chunk56IFFVIBjs.detectAgentRuntime.call(void 0, ),
|
|
622
|
+
"X-Deepline-CLI-Version": _chunk56IFFVIBjs.SDK_VERSION,
|
|
623
|
+
"X-Deepline-SDK-Version": _chunk56IFFVIBjs.SDK_VERSION
|
|
624
624
|
};
|
|
625
625
|
}
|
|
626
626
|
async function postFailureReport(input) {
|
|
@@ -648,7 +648,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
|
|
|
648
648
|
if (isFailureReportingDisabled()) return false;
|
|
649
649
|
let apiKey = "";
|
|
650
650
|
try {
|
|
651
|
-
apiKey =
|
|
651
|
+
apiKey = _chunk56IFFVIBjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
|
|
652
652
|
} catch (e7) {
|
|
653
653
|
return false;
|
|
654
654
|
}
|
|
@@ -675,7 +675,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
|
|
|
675
675
|
failure_code: failureCode2,
|
|
676
676
|
failure_stage: failureStage,
|
|
677
677
|
error_body: "Automatic Deepline skills installation failed.",
|
|
678
|
-
cli_version:
|
|
678
|
+
cli_version: _chunk56IFFVIBjs.SDK_VERSION,
|
|
679
679
|
context: {
|
|
680
680
|
environment: buildEnvironmentContext(),
|
|
681
681
|
skills_sync: {
|
|
@@ -795,7 +795,7 @@ function buildFailureReport(input) {
|
|
|
795
795
|
failure_kind: failureKind,
|
|
796
796
|
failure_code: code,
|
|
797
797
|
failure_stage: input.error === void 0 ? "command_exit" : "cli_main",
|
|
798
|
-
cli_version:
|
|
798
|
+
cli_version: _chunk56IFFVIBjs.SDK_VERSION,
|
|
799
799
|
context: {
|
|
800
800
|
base_url: redactFailureText(input.baseUrl, 400),
|
|
801
801
|
command_summary: sanitizeCommand(input.argv),
|
|
@@ -815,8 +815,8 @@ async function maybeReportSdkCliFailure(input) {
|
|
|
815
815
|
if (isServerLoggedPlayRunStartFailure(input)) return false;
|
|
816
816
|
const exitCode = resolvedExitCode(input);
|
|
817
817
|
if (!shouldReport({ exitCode, error: input.error })) return false;
|
|
818
|
-
const baseUrl =
|
|
819
|
-
const apiKey =
|
|
818
|
+
const baseUrl = _chunk56IFFVIBjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
819
|
+
const apiKey = _chunk56IFFVIBjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
820
820
|
if (!apiKey) return false;
|
|
821
821
|
return postFailureReport({
|
|
822
822
|
baseUrl,
|
|
@@ -837,25 +837,25 @@ var CHECK_TIMEOUT_MS2 = 3e3;
|
|
|
837
837
|
var INSTALLER_PROBE_TIMEOUT_MS = 1e3;
|
|
838
838
|
var PUBLISHED_VERIFICATION_RETRY_MS = 5 * 6e4;
|
|
839
839
|
function shouldSkipSkillsSync() {
|
|
840
|
-
if (
|
|
840
|
+
if (_chunk56IFFVIBjs.detectAgentRuntime.call(void 0, ) === "claude_cowork" || isCiEnvironment()) {
|
|
841
841
|
return true;
|
|
842
842
|
}
|
|
843
843
|
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()]);
|
|
844
844
|
return value === "1" || value === "true" || value === "yes" || value === "on";
|
|
845
845
|
}
|
|
846
846
|
function unavailableSkillsNoticePath(baseUrl) {
|
|
847
|
-
return _path.join.call(void 0,
|
|
847
|
+
return _path.join.call(void 0, _chunk56IFFVIBjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-sync-unavailable-version");
|
|
848
848
|
}
|
|
849
849
|
var SKILLS_SYNC_IN_PROGRESS_TTL_MS = 10 * 60 * 1e3;
|
|
850
850
|
var SKILLS_SYNC_IN_PROGRESS_PID_CAP_MS = 6 * 60 * 60 * 1e3;
|
|
851
|
-
var agentLeaseSegment =
|
|
851
|
+
var agentLeaseSegment = _chunk56IFFVIBjs.skillsAgentPathSegment;
|
|
852
852
|
function sortedLeaseAgents(agents) {
|
|
853
|
-
const expanded = agents.includes("*") ? [...agents, ...
|
|
853
|
+
const expanded = agents.includes("*") ? [...agents, ..._chunk56IFFVIBjs.KNOWN_SKILL_AGENTS] : agents;
|
|
854
854
|
return [...new Set(expanded)].sort((a, b) => a.localeCompare(b));
|
|
855
855
|
}
|
|
856
856
|
function inProgressSkillsSyncPath(baseUrl, agent) {
|
|
857
857
|
return _path.join.call(void 0,
|
|
858
|
-
|
|
858
|
+
_chunk56IFFVIBjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
859
859
|
`skills-sync-in-progress-${agentLeaseSegment(agent)}`
|
|
860
860
|
);
|
|
861
861
|
}
|
|
@@ -1014,7 +1014,7 @@ var SkillsStateUnavailableError = class extends Error {
|
|
|
1014
1014
|
constructor(baseUrl, error) {
|
|
1015
1015
|
const detail = error instanceof Error ? error.message : String(error);
|
|
1016
1016
|
super(
|
|
1017
|
-
`Could not save skills state in ${
|
|
1017
|
+
`Could not save skills state in ${_chunk56IFFVIBjs.sdkCliStateDirPath.call(void 0, baseUrl)}: ${detail}`
|
|
1018
1018
|
);
|
|
1019
1019
|
this.name = "SkillsStateUnavailableError";
|
|
1020
1020
|
}
|
|
@@ -1099,7 +1099,7 @@ function skillsInstallLeasePath(baseUrl, agents) {
|
|
|
1099
1099
|
}
|
|
1100
1100
|
function deferredSkillsNoticePath(baseUrl, agents) {
|
|
1101
1101
|
return _path.join.call(void 0,
|
|
1102
|
-
|
|
1102
|
+
_chunk56IFFVIBjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
1103
1103
|
`skills-sync-notice-${sortedLeaseAgents(agents).map(agentLeaseSegment).join("-")}`
|
|
1104
1104
|
);
|
|
1105
1105
|
}
|
|
@@ -1133,8 +1133,8 @@ function flushDeferredSkillsNotices(baseUrl, agents) {
|
|
|
1133
1133
|
if (text.trim()) writeSdkSkillsStatusLine(text.trimEnd());
|
|
1134
1134
|
}
|
|
1135
1135
|
function flushDeferredSkillsSyncNotices(baseUrl) {
|
|
1136
|
-
if (shouldSkipSkillsSync() ||
|
|
1137
|
-
const agents =
|
|
1136
|
+
if (shouldSkipSkillsSync() || _chunk56IFFVIBjs.hasActivePluginSkills.call(void 0, )) return;
|
|
1137
|
+
const agents = _chunk56IFFVIBjs.resolveAutoSyncSkillAgents.call(void 0, );
|
|
1138
1138
|
if (agents.length === 0) return;
|
|
1139
1139
|
flushDeferredSkillsNotices(baseUrl, agents);
|
|
1140
1140
|
}
|
|
@@ -1150,7 +1150,7 @@ function spawnDetachedSkillsSyncChild(argv, onSpawnError) {
|
|
|
1150
1150
|
}
|
|
1151
1151
|
function failedSkillsSyncPath(baseUrl, agents) {
|
|
1152
1152
|
return _path.join.call(void 0,
|
|
1153
|
-
|
|
1153
|
+
_chunk56IFFVIBjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
1154
1154
|
`skills-sync-failed-${sortedLeaseAgents(agents).map(agentLeaseSegment).join("-")}-version`
|
|
1155
1155
|
);
|
|
1156
1156
|
}
|
|
@@ -1179,7 +1179,7 @@ function writeUnavailableSkillsNotice(baseUrl, remoteVersion, skillNames, reason
|
|
|
1179
1179
|
if (hasMarkedSkillsSyncVersion(path, remoteVersion)) return;
|
|
1180
1180
|
writeMarkedSkillsSyncVersion(path, remoteVersion);
|
|
1181
1181
|
const probes = reason === "no-installer" ? _nullishCoalesce(knownProbes, () => ( probeInstallers())) : null;
|
|
1182
|
-
const manualCommand = _optionalChain([probes, 'optionalAccess', _65 => _65.npx]) === "missing" && probes.bunx !== "missing" ? `bunx ${buildBunxSkillsInstallArgs(baseUrl, skillNames,
|
|
1182
|
+
const manualCommand = _optionalChain([probes, 'optionalAccess', _65 => _65.npx]) === "missing" && probes.bunx !== "missing" ? `bunx ${buildBunxSkillsInstallArgs(baseUrl, skillNames, _chunk56IFFVIBjs.DEFAULT_SKILL_AGENTS).map(shellQuote).join(" ")}` : `npx ${buildSkillsInstallArgs(baseUrl, skillNames).join(" ")}`;
|
|
1183
1183
|
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.`;
|
|
1184
1184
|
notice(
|
|
1185
1185
|
`Deepline agent skills are out of date, but ${explanation} To install manually, run:
|
|
@@ -1267,7 +1267,7 @@ function buildSdkSkillNames(v1SkillNames2) {
|
|
|
1267
1267
|
return sortedUniqueSkillNames(v1SkillNames2);
|
|
1268
1268
|
}
|
|
1269
1269
|
function isDefaultAgentSet(agents) {
|
|
1270
|
-
return agents.length ===
|
|
1270
|
+
return agents.length === _chunk56IFFVIBjs.DEFAULT_SKILL_AGENTS.length && agents.every((agent, index) => agent === _chunk56IFFVIBjs.DEFAULT_SKILL_AGENTS[index]);
|
|
1271
1271
|
}
|
|
1272
1272
|
function safeSkillFilePath(value) {
|
|
1273
1273
|
if (typeof value !== "string" || !value) return false;
|
|
@@ -1424,10 +1424,10 @@ async function fetchSkillsUpdate(baseUrl, localVersion) {
|
|
|
1424
1424
|
method: "POST",
|
|
1425
1425
|
headers: { "Content-Type": "application/json" },
|
|
1426
1426
|
body: JSON.stringify({
|
|
1427
|
-
sdk_cli: { version:
|
|
1427
|
+
sdk_cli: { version: _chunk56IFFVIBjs.SDK_VERSION },
|
|
1428
1428
|
skills: {
|
|
1429
1429
|
version: localVersion,
|
|
1430
|
-
capability:
|
|
1430
|
+
capability: _chunkTO2MWPGRjs.SDK_RELEASE.packageCapabilities.skillsGuidance
|
|
1431
1431
|
}
|
|
1432
1432
|
}),
|
|
1433
1433
|
signal: controller.signal
|
|
@@ -1466,7 +1466,7 @@ function probeInstallers(timeoutMs) {
|
|
|
1466
1466
|
}
|
|
1467
1467
|
function noInstallerProbePath(baseUrl) {
|
|
1468
1468
|
return _path.join.call(void 0,
|
|
1469
|
-
|
|
1469
|
+
_chunk56IFFVIBjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
1470
1470
|
"skills-sync-no-installer-unknown.json"
|
|
1471
1471
|
);
|
|
1472
1472
|
}
|
|
@@ -1545,7 +1545,7 @@ function temporarySkillsSyncSkipCommand() {
|
|
|
1545
1545
|
function resolveSkillsInstallSpawn(install, platform2 = process.platform) {
|
|
1546
1546
|
return resolveShellSpawn(install.command, install.args, platform2);
|
|
1547
1547
|
}
|
|
1548
|
-
function resolveSkillsInstallCommands(baseUrl, skillNames = DEFAULT_SDK_SKILL_NAMES, agents =
|
|
1548
|
+
function resolveSkillsInstallCommands(baseUrl, skillNames = DEFAULT_SDK_SKILL_NAMES, agents = _chunk56IFFVIBjs.DEFAULT_SKILL_AGENTS, knownProbes) {
|
|
1549
1549
|
const commands = [];
|
|
1550
1550
|
const probes = _nullishCoalesce(knownProbes, () => ( probeInstallers()));
|
|
1551
1551
|
if (probes.bunx === "available") {
|
|
@@ -1697,11 +1697,11 @@ function writeSdkSkillsStatusLine(line) {
|
|
|
1697
1697
|
}
|
|
1698
1698
|
async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
|
|
1699
1699
|
if (shouldSkipSkillsSync()) return;
|
|
1700
|
-
const usingPluginSkills =
|
|
1700
|
+
const usingPluginSkills = _chunk56IFFVIBjs.hasActivePluginSkills.call(void 0, );
|
|
1701
1701
|
if (usingPluginSkills) {
|
|
1702
1702
|
return;
|
|
1703
1703
|
}
|
|
1704
|
-
const agents =
|
|
1704
|
+
const agents = _chunk56IFFVIBjs.resolveAutoSyncSkillAgents.call(void 0, );
|
|
1705
1705
|
if (options.mode === "detached" && agents.length > 0) {
|
|
1706
1706
|
flushDeferredSkillsNotices(baseUrl, agents);
|
|
1707
1707
|
}
|
|
@@ -1729,7 +1729,7 @@ async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
|
|
|
1729
1729
|
return;
|
|
1730
1730
|
}
|
|
1731
1731
|
try {
|
|
1732
|
-
const localVersion =
|
|
1732
|
+
const localVersion = _chunk56IFFVIBjs.readSdkSkillsLocalVersion.call(void 0, baseUrl);
|
|
1733
1733
|
const update = options.update === void 0 ? claimedVersion ? { needsUpdate: true, remoteVersion: claimedVersion } : await fetchSkillsUpdate(baseUrl, localVersion) : options.update ? {
|
|
1734
1734
|
needsUpdate: options.update.needs_update,
|
|
1735
1735
|
remoteVersion: options.update.remote.version
|
|
@@ -1895,7 +1895,7 @@ async function runInlineSkillsSync(baseUrl, remoteVersion, agents, notices) {
|
|
|
1895
1895
|
}
|
|
1896
1896
|
}
|
|
1897
1897
|
runLegacySkillsCleanup(agents);
|
|
1898
|
-
if (!
|
|
1898
|
+
if (!_chunk56IFFVIBjs.writeSdkSkillsLocalVersion.call(void 0, baseUrl, update.remoteVersion, agents)) {
|
|
1899
1899
|
notice(
|
|
1900
1900
|
"Deepline agent skills installed, but the local skills version could not be recorded. A later command will retry the refresh."
|
|
1901
1901
|
);
|
|
@@ -1954,7 +1954,7 @@ function inferActiveSkillsScope(entrypoint = _nullishCoalesce(process.argv[1], (
|
|
|
1954
1954
|
return /[\\/]\.deepline[\\/]runtime[\\/]/.test(entrypoint) ? "local" : "global";
|
|
1955
1955
|
}
|
|
1956
1956
|
function resolveLocalRoot() {
|
|
1957
|
-
const target =
|
|
1957
|
+
const target = _chunk56IFFVIBjs.resolveProjectPinTarget.call(void 0, );
|
|
1958
1958
|
if (!target.ok) {
|
|
1959
1959
|
throw new Error(
|
|
1960
1960
|
`Cowork project folder is ambiguous. Candidate folders: ${target.candidates.join(
|
|
@@ -1965,7 +1965,7 @@ function resolveLocalRoot() {
|
|
|
1965
1965
|
return target.dir;
|
|
1966
1966
|
}
|
|
1967
1967
|
function detectSkillsAgents(input) {
|
|
1968
|
-
const runtime = _nullishCoalesce(input.runtime, () => (
|
|
1968
|
+
const runtime = _nullishCoalesce(input.runtime, () => ( _chunk56IFFVIBjs.detectAgentRuntime.call(void 0, )));
|
|
1969
1969
|
const knownAgent = RUNTIME_TO_SKILLS_AGENT[runtime];
|
|
1970
1970
|
if (knownAgent) return [knownAgent];
|
|
1971
1971
|
const roots = [
|
|
@@ -1980,7 +1980,7 @@ function detectSkillsAgents(input) {
|
|
|
1980
1980
|
return detected.length > 0 ? detected : ["*"];
|
|
1981
1981
|
}
|
|
1982
1982
|
function skillsStatePathForScope(baseUrl, scope, root) {
|
|
1983
|
-
return scope === "local" && root ? _path.join.call(void 0, root, ".deepline", "setup", "skills.json") : _path.join.call(void 0,
|
|
1983
|
+
return scope === "local" && root ? _path.join.call(void 0, root, ".deepline", "setup", "skills.json") : _path.join.call(void 0, _chunk56IFFVIBjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-install.json");
|
|
1984
1984
|
}
|
|
1985
1985
|
function buildSkillsPlan(input) {
|
|
1986
1986
|
const scopeArgs = input.scope === "global" ? ["--global"] : [];
|
|
@@ -2102,7 +2102,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
2102
2102
|
scope = normalizeScope(options.scope);
|
|
2103
2103
|
root = scope === "local" ? resolveLocalRoot() : null;
|
|
2104
2104
|
} catch (error) {
|
|
2105
|
-
|
|
2105
|
+
_chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
|
|
2106
2106
|
{
|
|
2107
2107
|
ok: false,
|
|
2108
2108
|
status: "failed",
|
|
@@ -2114,22 +2114,22 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
2114
2114
|
);
|
|
2115
2115
|
return 2;
|
|
2116
2116
|
}
|
|
2117
|
-
const baseUrl =
|
|
2117
|
+
const baseUrl = _chunk56IFFVIBjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
2118
2118
|
const catalog = {
|
|
2119
2119
|
skillNames: [...DEFAULT_SDK_SKILL_NAMES],
|
|
2120
|
-
version:
|
|
2120
|
+
version: _chunk56IFFVIBjs.SDK_VERSION
|
|
2121
2121
|
};
|
|
2122
2122
|
const agents = options.agent ? [options.agent] : detectSkillsAgents({ scope, root });
|
|
2123
2123
|
const plan = buildSkillsPlan({ baseUrl, scope, root, agents, ...catalog });
|
|
2124
2124
|
if (options.dryRun) {
|
|
2125
|
-
|
|
2125
|
+
_chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
|
|
2126
2126
|
{ ok: true, status: "planned", dryRun: true, ...plan },
|
|
2127
2127
|
{ json: options.json }
|
|
2128
2128
|
);
|
|
2129
2129
|
return 0;
|
|
2130
2130
|
}
|
|
2131
2131
|
if (isSkillsPlanCurrent(plan, readSkillsInstallState(plan.statePath)) && !hasFailedAutomaticSkillsSync(baseUrl, agents)) {
|
|
2132
|
-
|
|
2132
|
+
_chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
|
|
2133
2133
|
{
|
|
2134
2134
|
ok: true,
|
|
2135
2135
|
status: "current",
|
|
@@ -2164,7 +2164,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
2164
2164
|
.../* @__PURE__ */ new Set([...plan.skillNames, ...LEGACY_SKILL_NAMES_TO_REMOVE])
|
|
2165
2165
|
];
|
|
2166
2166
|
const agentRoots = workspaceSkillRootsForAgents(plan.agents);
|
|
2167
|
-
|
|
2167
|
+
_chunk56IFFVIBjs.ensureProjectPrivatePathsIgnored.call(void 0, root, [
|
|
2168
2168
|
".deepline/",
|
|
2169
2169
|
...agentRoots.flatMap(
|
|
2170
2170
|
(agentRoot) => managedNames.map((name) => `${agentRoot}/skills/${name}/`)
|
|
@@ -2182,7 +2182,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
2182
2182
|
} };
|
|
2183
2183
|
} catch (error) {
|
|
2184
2184
|
if (!(error instanceof SkillsStateUnavailableError)) throw error;
|
|
2185
|
-
|
|
2185
|
+
_chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
|
|
2186
2186
|
{
|
|
2187
2187
|
ok: false,
|
|
2188
2188
|
status: "failed",
|
|
@@ -2198,7 +2198,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
2198
2198
|
return 5;
|
|
2199
2199
|
}
|
|
2200
2200
|
if (!lease) {
|
|
2201
|
-
|
|
2201
|
+
_chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
|
|
2202
2202
|
{
|
|
2203
2203
|
ok: false,
|
|
2204
2204
|
status: "failed",
|
|
@@ -2244,7 +2244,7 @@ async function runSkillsInstallWithLease(input) {
|
|
|
2244
2244
|
throw new Error("Could not install the current Deepline skills.");
|
|
2245
2245
|
}
|
|
2246
2246
|
} catch (error) {
|
|
2247
|
-
|
|
2247
|
+
_chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
|
|
2248
2248
|
{
|
|
2249
2249
|
ok: false,
|
|
2250
2250
|
status: "failed",
|
|
@@ -2283,7 +2283,7 @@ async function runSkillsInstallWithLease(input) {
|
|
|
2283
2283
|
{
|
|
2284
2284
|
schemaVersion: 1,
|
|
2285
2285
|
installedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
2286
|
-
cliVersion:
|
|
2286
|
+
cliVersion: _chunk56IFFVIBjs.SDK_VERSION,
|
|
2287
2287
|
scope,
|
|
2288
2288
|
agents,
|
|
2289
2289
|
skillsVersion: plan.version,
|
|
@@ -2298,7 +2298,7 @@ async function runSkillsInstallWithLease(input) {
|
|
|
2298
2298
|
if (scope === "global") {
|
|
2299
2299
|
clearFailedAutomaticSkillsSync(baseUrl, agents);
|
|
2300
2300
|
}
|
|
2301
|
-
|
|
2301
|
+
_chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
|
|
2302
2302
|
{
|
|
2303
2303
|
ok: true,
|
|
2304
2304
|
status: "complete",
|
|
@@ -2347,7 +2347,7 @@ Examples:
|
|
|
2347
2347
|
).action(async (options) => {
|
|
2348
2348
|
const claim = _optionalChain([options, 'access', _88 => _88.claim, 'optionalAccess', _89 => _89.trim, 'call', _90 => _90()]);
|
|
2349
2349
|
if (!claim) {
|
|
2350
|
-
|
|
2350
|
+
_chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
|
|
2351
2351
|
{
|
|
2352
2352
|
ok: false,
|
|
2353
2353
|
status: "failed",
|
|
@@ -2360,7 +2360,7 @@ Examples:
|
|
|
2360
2360
|
process.exitCode = 2;
|
|
2361
2361
|
return;
|
|
2362
2362
|
}
|
|
2363
|
-
await syncSdkSkillsIfNeeded(
|
|
2363
|
+
await syncSdkSkillsIfNeeded(_chunk56IFFVIBjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, ""), {
|
|
2364
2364
|
mode: "inline",
|
|
2365
2365
|
notices: "defer",
|
|
2366
2366
|
claim
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getAuthedHttpClient,
|
|
3
3
|
printCommandEnvelope
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-47M6HPGP.mjs";
|
|
5
5
|
import {
|
|
6
6
|
agentSessionIdFromEnvironment
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-6D7A2FSL.mjs";
|
|
8
8
|
|
|
9
9
|
// src/cli/commands/sessions.ts
|
|
10
10
|
import {
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import {
|
|
2
|
+
handleDeploymentGet,
|
|
3
|
+
handleDeploymentsList
|
|
4
|
+
} from "./chunk-3TRY7KAC.mjs";
|
|
1
5
|
import {
|
|
2
6
|
addDescribeOptions,
|
|
3
7
|
recordPlayTermination,
|
|
@@ -19,17 +23,12 @@ import {
|
|
|
19
23
|
} from "./chunk-HQXL5526.mjs";
|
|
20
24
|
import {
|
|
21
25
|
registerDeprecatedSearchCommand
|
|
22
|
-
} from "./chunk-
|
|
23
|
-
import {
|
|
24
|
-
handleDeploymentGet,
|
|
25
|
-
handleDeploymentsList
|
|
26
|
-
} from "./chunk-XRQ2AQL7.mjs";
|
|
26
|
+
} from "./chunk-7XAM7KDW.mjs";
|
|
27
27
|
import {
|
|
28
28
|
pinLocalPlayImports,
|
|
29
29
|
planLocalPlayExecution
|
|
30
30
|
} from "./chunk-ERFN2QY4.mjs";
|
|
31
31
|
import {
|
|
32
|
-
CSV_HEADER_MATCHING_NOTE,
|
|
33
32
|
DeeplineClient,
|
|
34
33
|
RUN_EVENT_SEARCH_KIND_VALUES,
|
|
35
34
|
RunEventQueryInputError,
|
|
@@ -40,9 +39,8 @@ import {
|
|
|
40
39
|
logLevelReaches,
|
|
41
40
|
logProvenanceReaches,
|
|
42
41
|
normalizeRunEventOperationRequest,
|
|
43
|
-
parseLogLevel
|
|
44
|
-
|
|
45
|
-
} from "./chunk-JHIJIHFB.mjs";
|
|
42
|
+
parseLogLevel
|
|
43
|
+
} from "./chunk-G4IWGRMK.mjs";
|
|
46
44
|
import {
|
|
47
45
|
CSV_DATA_INPUT_KEY,
|
|
48
46
|
buildNamedPlayRunRequest,
|
|
@@ -53,6 +51,10 @@ import {
|
|
|
53
51
|
stageFileInputs,
|
|
54
52
|
stagedFileContentType
|
|
55
53
|
} from "./chunk-JI2B4RZP.mjs";
|
|
54
|
+
import {
|
|
55
|
+
CSV_HEADER_MATCHING_NOTE,
|
|
56
|
+
playInputExampleArgs
|
|
57
|
+
} from "./chunk-5VCZ3WRH.mjs";
|
|
56
58
|
import {
|
|
57
59
|
recordCliTrace,
|
|
58
60
|
traceCliSpan
|
|
@@ -75,10 +77,10 @@ import {
|
|
|
75
77
|
printJsonError,
|
|
76
78
|
renderCommandEnvelopeText,
|
|
77
79
|
shouldEmitJson
|
|
78
|
-
} from "./chunk-
|
|
80
|
+
} from "./chunk-47M6HPGP.mjs";
|
|
79
81
|
import {
|
|
80
82
|
fetchWithDeploymentProtection
|
|
81
|
-
} from "./chunk-
|
|
83
|
+
} from "./chunk-6D7A2FSL.mjs";
|
|
82
84
|
import {
|
|
83
85
|
DeeplineError
|
|
84
86
|
} from "./chunk-NXGCO4JB.mjs";
|
|
@@ -12960,7 +12962,7 @@ async function handlePlayCheck(args) {
|
|
|
12960
12962
|
});
|
|
12961
12963
|
const play = await client.describePlay(
|
|
12962
12964
|
parseReferencedPlayTarget2(options.target).playName,
|
|
12963
|
-
{ compact: true }
|
|
12965
|
+
{ compact: true, pipeline: options.full }
|
|
12964
12966
|
);
|
|
12965
12967
|
const result = {
|
|
12966
12968
|
kind: "play_check",
|
|
@@ -16690,7 +16692,7 @@ Examples:
|
|
|
16690
16692
|
process.exitCode = await ownView();
|
|
16691
16693
|
return;
|
|
16692
16694
|
}
|
|
16693
|
-
const { describeAnything } = await import("./describe-
|
|
16695
|
+
const { describeAnything } = await import("./describe-DBRY5BNK.mjs");
|
|
16694
16696
|
process.exitCode = await describeAnything(
|
|
16695
16697
|
name,
|
|
16696
16698
|
{
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
argsWantJson,
|
|
3
3
|
openInBrowser,
|
|
4
4
|
printCommandEnvelope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-47M6HPGP.mjs";
|
|
6
6
|
import {
|
|
7
7
|
ACTIVE_ORG_ID_ENV,
|
|
8
8
|
ACTIVE_ORG_NAME_ENV,
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
saveHostEnvValues,
|
|
26
26
|
saveProjectDeeplineEnvValues,
|
|
27
27
|
storedHostApiKey
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-6D7A2FSL.mjs";
|
|
29
29
|
|
|
30
30
|
// src/cli/commands/auth.ts
|
|
31
31
|
import {
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
8
|
-
require('./chunk-
|
|
7
|
+
var _chunkHRWUQJ4Kjs = require('./chunk-HRWUQJ4K.js');
|
|
8
|
+
require('./chunk-56IFFVIB.js');
|
|
9
9
|
require('./chunk-XNYIZMNQ.js');
|
|
10
10
|
require('./chunk-7P5AA3SN.js');
|
|
11
|
-
require('./chunk-
|
|
11
|
+
require('./chunk-TO2MWPGR.js');
|
|
12
12
|
require('./chunk-OG64RBAC.js');
|
|
13
13
|
require('./chunk-COGTRVWW.js');
|
|
14
14
|
|
|
@@ -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 : _chunkHRWUQJ4Kjs.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 : _chunkHRWUQJ4Kjs.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 = _chunkHRWUQJ4Kjs.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
|
+
_chunkHRWUQJ4Kjs.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(_chunkHRWUQJ4Kjs.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
|
+
_chunkHRWUQJ4Kjs.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
|
+
${_chunkHRWUQJ4Kjs.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
|
+
_chunkHRWUQJ4Kjs.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
|
+
_chunkHRWUQJ4Kjs.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,11 +4,11 @@ import {
|
|
|
4
4
|
printCommandEnvelope,
|
|
5
5
|
printJson,
|
|
6
6
|
readCsvRows
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-47M6HPGP.mjs";
|
|
8
|
+
import "./chunk-6D7A2FSL.mjs";
|
|
9
9
|
import "./chunk-DLIRSHV6.mjs";
|
|
10
10
|
import "./chunk-NXGCO4JB.mjs";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-BON3DRC6.mjs";
|
|
12
12
|
import "./chunk-WZYKRD7T.mjs";
|
|
13
13
|
import "./chunk-KRD6H754.mjs";
|
|
14
14
|
|