@genspark/cli 1.15.0 → 1.15.1-beta.1
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/README.md +187 -77
- package/dist/client.d.ts +6 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +32 -6
- package/dist/client.js.map +1 -1
- package/dist/commands/aidrive-contract.generated.d.ts.map +1 -1
- package/dist/commands/aidrive-contract.generated.js +118 -0
- package/dist/commands/aidrive-contract.generated.js.map +1 -1
- package/dist/commands/developer-input.d.ts +5 -0
- package/dist/commands/developer-input.d.ts.map +1 -0
- package/dist/commands/developer-input.js +15 -0
- package/dist/commands/developer-input.js.map +1 -0
- package/dist/commands/sb-box-session.d.ts.map +1 -1
- package/dist/commands/sb-box-session.js +18 -4
- package/dist/commands/sb-box-session.js.map +1 -1
- package/dist/config.d.ts +3 -1
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +5 -1
- package/dist/config.js.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +86 -36
- package/dist/index.js.map +1 -1
- package/dist/logger.d.ts +9 -0
- package/dist/logger.d.ts.map +1 -1
- package/dist/logger.js +19 -0
- package/dist/logger.js.map +1 -1
- package/dist/mediaSummary.d.ts +10 -0
- package/dist/mediaSummary.d.ts.map +1 -1
- package/dist/mediaSummary.js +17 -0
- package/dist/mediaSummary.js.map +1 -1
- package/dist/native-waf.d.ts +24 -0
- package/dist/native-waf.d.ts.map +1 -0
- package/dist/native-waf.js +183 -0
- package/dist/native-waf.js.map +1 -0
- package/dist/project-binding.d.ts.map +1 -1
- package/dist/project-binding.js +14 -2
- package/dist/project-binding.js.map +1 -1
- package/dist/types.d.ts +1 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/updater.d.ts +5 -0
- package/dist/updater.d.ts.map +1 -1
- package/dist/updater.js +30 -3
- package/dist/updater.js.map +1 -1
- package/docs/skills.md +4 -3
- package/package.json +1 -3
- package/skills/gsk-aidrive/SKILL.md +188 -50
- package/skills/gsk-audio-generation/SKILL.md +1 -1
- package/skills/gsk-calendar-search/SKILL.md +42 -0
- package/skills/gsk-connector/SKILL.md +34 -7
- package/skills/gsk-genteam/SKILL.md +1 -1
- package/skills/gsk-image-generation/SKILL.md +3 -2
- package/skills/gsk-second-brain/SKILL.md +12 -11
- package/skills/gsk-shared/SKILL.md +4 -3
- package/skills/gsk-sharepoint/SKILL.md +1 -1
- package/skills/gsk-video-generation/SKILL.md +5 -3
package/dist/config.js
CHANGED
|
@@ -50,7 +50,7 @@ import { randomUUID } from 'crypto';
|
|
|
50
50
|
// so their --skip_confirmation flags and args-file payloads keep parsing.
|
|
51
51
|
// Because the caps string is part of the cache filename, their cache and
|
|
52
52
|
// this binary's cache never mix.
|
|
53
|
-
export const GSK_CLI_CAPS = 'cli-groups-v2,cli-paths-v3,cli-actions-v4,cli-confirm-v1,cli-yes-only-v1,cli-local-source-v1,cli-drive-actions-v1';
|
|
53
|
+
export const GSK_CLI_CAPS = 'cli-groups-v2,cli-paths-v3,cli-actions-v4,cli-confirm-v1,cli-yes-only-v1,cli-local-source-v1,cli-drive-actions-v1,cli-developer-input-v1';
|
|
54
54
|
const CONFIG_DIR = '.genspark-tool-cli';
|
|
55
55
|
const CONFIG_FILE = 'config.json';
|
|
56
56
|
// Pre-caps CLIs (e.g. the Genspark Desktop bundled binary) read this file
|
|
@@ -88,6 +88,10 @@ function getConfigDir() {
|
|
|
88
88
|
}
|
|
89
89
|
return path.join(os.homedir(), CONFIG_DIR);
|
|
90
90
|
}
|
|
91
|
+
/** Directory for small private CLI state files (0700), next to the config. */
|
|
92
|
+
export function getStateDir() {
|
|
93
|
+
return getConfigDir();
|
|
94
|
+
}
|
|
91
95
|
/**
|
|
92
96
|
* Get the path to the config file — honours a `--config` override.
|
|
93
97
|
*/
|
package/dist/config.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings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lE,MAAM,EAAE,SAAS,EAAE,UAAU,EAAE,GAAG,EAAE,IAAI,EAAE,cAAc,EAAE,GAAG,OAAO,CAAA;IACpE,MAAM,MAAM,GAAG,SAAS,IAAI,GAAG,CAAC,MAAM,IAAI,IAAI,CAAC,MAAM,IAAI,SAAS,CAAA;IAClE,IAAI,UAAU;QAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,gBAAgB,CAAC,UAAU,CAAC,EAAE,CAAA;IAExE,MAAM,OAAO,GAAG,SAAS;QACvB,CAAC,CAAC,SAAS;QACX,CAAC,CAAC,GAAG,CAAC,MAAM;YACV,CAAC,CAAC,GAAG;YACL,CAAC,CAAC,IAAI,CAAC,MAAM;gBACX,CAAC,CAAC,IAAI;gBACN,CAAC,CAAC,SAAS,CAAA;IACjB,MAAM,UAAU,GAAG,CAAC,IAAoB,EAAW,EAAE,CACnD,CAAC,CAAC,IAAI,CAAC,OAAO,IAAI,CAAC,CAAC,MAAM,IAAI,CAAC,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,MAAM,KAAK,MAAM,CAAC,CAAA;IACvE,MAAM,MAAM,GACV,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAA;IAC1E,OAAO;QACL,MAAM;QACN,OAAO,EAAE,gBAAgB,CAAC,MAAM,EAAE,OAAO,IAAI,cAAc,CAAC;KAC7D,CAAA;AACH,CAAC"}
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA;;;;;;;;;;;;;;;;;;GAkBG;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA;;;;;;;;;;;;;;;;;;GAkBG;AAwkBH,KAAK,oBAAoB,GAAG,kBAAkB,GAAG,SAAS,GAAG,SAAS,CAAA;AAEtE,UAAU,mBAAmB;IAC3B,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,oBAAoB,CAAA;CAC3B;AAED,kFAAkF;AAClF,wBAAgB,2BAA2B,CACzC,IAAI,EAAE,MAAM,EAAE,GACb,mBAAmB,EAAE,CAqBvB"}
|
package/dist/index.js
CHANGED
|
@@ -35,6 +35,7 @@ import { spawn } from 'child_process';
|
|
|
35
35
|
import { Readable } from 'stream';
|
|
36
36
|
import { pipeline } from 'stream/promises';
|
|
37
37
|
import { ApiClient, isAuthError, unauthenticatedRequest, } from './client.js';
|
|
38
|
+
import { tokenPassHeaders } from './native-waf.js';
|
|
38
39
|
import { classifyFileArg, awaitLocalFileReady, decideAfterWait, localFileNotReadyError, passthroughWarning, urlsParamItems, } from './localFiles.js';
|
|
39
40
|
import { setDebugEnabled, setOutputFormat, debug, info, warn, error as logError, output, progress, } from './logger.js';
|
|
40
41
|
import { runInteractiveApprovalFlow, shouldPromptForApproval, } from './pendingApproval.js';
|
|
@@ -48,13 +49,13 @@ import { shimLegacyTaskInvocation } from './task-shim.js';
|
|
|
48
49
|
import { getSandboxRuntime } from './runtime.js';
|
|
49
50
|
import { registerDesignCommand } from './commands/design.js';
|
|
50
51
|
import { collectUploadFiles, aidriveUploadHeaders, buildAidriveUploadQuery, mergeShareIntoUpload, normalizeUploadDestination, resolveAidriveUploadOperands, shareArgsFromUpload, uploadConflictFromCli, uploadConflictProblem, uploadPathForDestination, uploadShareRefusal, } from './commands/aidrive-upload.js';
|
|
51
|
-
import { aidriveOperandArgs, canonicalDriveAction, driveArgumentError } from './commands/aidrive-operands.js';
|
|
52
|
+
import { aidriveOperandArgs, canonicalDriveAction, driveArgumentError, } from './commands/aidrive-operands.js';
|
|
52
53
|
import { resolveAidriveDownloadOperands, normalizeDrivePath, extractReadableUrl, shouldResolveFileWrapperUrl, } from './commands/aidrive-download.js';
|
|
53
54
|
import { fileNameFromContentDisposition, genteamAttachmentEndpoint, resolveGenteamDownloadDestination, saveBodyToFile, } from './commands/genteam-download.js';
|
|
54
55
|
import { CALL_RECORDING_INFO_HELP, CALL_RECORDING_LOCAL_FILE_HELP, callRecordingEndpoint, defaultRecordingFileName, formatBytes, normalizeRecordingChannels, progressThrottle, RECORDING_CHANNEL_MODES, recordingDestinationOperands, recordingProgressLine, } from './commands/telephony-recording.js';
|
|
55
56
|
import { parseLastSeenIndex, eventStdoutLine } from './commands/chat-events.js';
|
|
56
57
|
import { defaultPiAgentDir, mergePiModelsConfig, mergePiSettingsConfig, readJsonIfExists, resolvePiAgentDir, writeJsonFile, } from './commands/pi-config.js';
|
|
57
|
-
import { mediaItemsKeyFor, mediaSummaryLines } from './mediaSummary.js';
|
|
58
|
+
import { mediaItemsKeyFor, mediaProgressLines, mediaSummaryLines, } from './mediaSummary.js';
|
|
58
59
|
import { registerMeshCommand, getMeshInvocation, runMesh, } from './commands/mesh.js';
|
|
59
60
|
import { executeCloneUrl, normalizeCloneUrlForGit, } from './commands/sb-git-clone.js';
|
|
60
61
|
import { afterSessionCall, bindSession, defaultTemplate, resolveSessionKey, SANDBOX_ACTIONS, SessionError, SessionStore, SESSION_ENV, } from './commands/sb-box-session.js';
|
|
@@ -347,6 +348,16 @@ function getGlobalOptions() {
|
|
|
347
348
|
yes: opts.yes === true,
|
|
348
349
|
};
|
|
349
350
|
}
|
|
351
|
+
/**
|
|
352
|
+
* A session-binding failure (no sandbox bound yet, lock held, …) is an
|
|
353
|
+
* ordinary tool error for the agent reading stdout: SKILL.md tells it to
|
|
354
|
+
* check `status`, not the exit code, so it must be the same JSON envelope
|
|
355
|
+
* every other sb-box error uses — not a bare `[ERROR]` line on stderr with
|
|
356
|
+
* an empty stdout (James 2026-10-20). `output` still sets exit code 1.
|
|
357
|
+
*/
|
|
358
|
+
function sessionErrorEnvelope(err) {
|
|
359
|
+
output({ version: 1, status: 'error', message: err.message, data: null });
|
|
360
|
+
}
|
|
350
361
|
function createClient() {
|
|
351
362
|
const options = getGlobalOptions();
|
|
352
363
|
setDebugEnabled(options.debug);
|
|
@@ -595,6 +606,8 @@ async function uploadToAiDrive(filePath, uploadPath, workspace = '', source, onC
|
|
|
595
606
|
projectId: globalOpts.projectId,
|
|
596
607
|
contentType,
|
|
597
608
|
});
|
|
609
|
+
// node:https never follows redirects, so the optional pass cannot leak.
|
|
610
|
+
Object.assign(headers, await tokenPassHeaders(baseUrl, '/api/tool_cli/aidrive/upload', headers['X-Api-Key'] ?? ''));
|
|
598
611
|
debug(`AI Drive upload URL: ${uploadUrl}`);
|
|
599
612
|
const responseBody = await streamFileUpload(filePath, uploadUrl, headers, fileSize, 'POST');
|
|
600
613
|
try {
|
|
@@ -616,7 +629,9 @@ async function downloadToFile(url, savePath, client) {
|
|
|
616
629
|
throw new Error(`Failed to get download URL: ${result.message}`);
|
|
617
630
|
downloadUrl = result.data.download_url;
|
|
618
631
|
}
|
|
619
|
-
const
|
|
632
|
+
const { developerInputDownload } = await import('./commands/developer-input.js');
|
|
633
|
+
const download = developerInputDownload(downloadUrl, getGlobalOptions().baseUrl, getGlobalOptions().apiKey || '');
|
|
634
|
+
const resp = await fetch(download.url, download.init);
|
|
620
635
|
if (!resp.ok)
|
|
621
636
|
throw new Error(`Download failed: HTTP ${resp.status}`);
|
|
622
637
|
if (!resp.body)
|
|
@@ -817,7 +832,7 @@ function parseBooleanFlagValue(value) {
|
|
|
817
832
|
throw new InvalidArgumentError(`expected true/false. If '${value}' was meant as an argument, place it before the flag or pass an explicit value (--flag true ${value}).`);
|
|
818
833
|
}
|
|
819
834
|
function addAidriveLocalOptions(cmd, action) {
|
|
820
|
-
cmd.addOption(new Option('--workspace [type]', 'Drive location: my_drive (ls default), sb_workspace (bare flag), team_drive, shared_drive (all managed), shared_with_me').preset('sb_workspace'));
|
|
835
|
+
cmd.addOption(new Option('--workspace [type]', 'Drive location: my_drive (ls default), sb_workspace (bare flag), team_drive, genteam (channel and DM drives), shared_drive (all managed), shared_with_me').preset('sb_workspace'));
|
|
821
836
|
cmd.option('--local_file <path>', action === 'download'
|
|
822
837
|
? 'Local destination path; use --local_file with --id or --url. ' +
|
|
823
838
|
'Otherwise the second operand is the destination.'
|
|
@@ -1524,11 +1539,15 @@ function registerToolCommand(parentProgram, tool, clientFactory, vdProjectIdDefa
|
|
|
1524
1539
|
if (tool.name === 'aidrive' && typeof args.action === 'string') {
|
|
1525
1540
|
const actionNames = props.action?.enum;
|
|
1526
1541
|
const primaryAction = primaryArgValue === undefined
|
|
1527
|
-
? undefined
|
|
1542
|
+
? undefined
|
|
1543
|
+
: canonicalDriveAction(primaryArgValue);
|
|
1528
1544
|
const action = canonicalDriveAction(args.action);
|
|
1529
1545
|
args.action = action;
|
|
1530
|
-
if (primaryAction !== undefined &&
|
|
1531
|
-
|
|
1546
|
+
if (primaryAction !== undefined &&
|
|
1547
|
+
primaryAction !== action &&
|
|
1548
|
+
(invokedCmd !== cmd ||
|
|
1549
|
+
(Array.isArray(actionNames) &&
|
|
1550
|
+
actionNames.includes(primaryAction)))) {
|
|
1532
1551
|
logError(`The command line names the action ${primaryArgValue} and ` +
|
|
1533
1552
|
`--args-file names ${args.action}; pass one. Nothing was sent.`);
|
|
1534
1553
|
process.exit(1);
|
|
@@ -1537,9 +1556,12 @@ function registerToolCommand(parentProgram, tool, clientFactory, vdProjectIdDefa
|
|
|
1537
1556
|
logError(`Unknown AI Drive action: ${args.action}. Run gsk drive --help for available actions. Nothing was sent.`);
|
|
1538
1557
|
process.exit(1);
|
|
1539
1558
|
}
|
|
1540
|
-
aidriveOperands =
|
|
1541
|
-
|
|
1542
|
-
? invokedCmd.args
|
|
1559
|
+
aidriveOperands =
|
|
1560
|
+
invokedCmd !== cmd
|
|
1561
|
+
? invokedCmd.args
|
|
1562
|
+
: primaryAction !== undefined && primaryAction === action
|
|
1563
|
+
? invokedCmd.args.slice(1)
|
|
1564
|
+
: invokedCmd.args;
|
|
1543
1565
|
const mapped = aidriveOperandArgs(action, aidriveOperands, args);
|
|
1544
1566
|
if (mapped.error) {
|
|
1545
1567
|
logError(mapped.error);
|
|
@@ -1756,7 +1778,10 @@ function registerToolCommand(parentProgram, tool, clientFactory, vdProjectIdDefa
|
|
|
1756
1778
|
// intercept it with the two-call equivalent.
|
|
1757
1779
|
if (tool.name === 'aidrive' && args.action === 'download') {
|
|
1758
1780
|
const { drivePath: sourceOperand, localPath: operandDest } = resolveAidriveDownloadOperands(aidriveOperands, typeof args.path === 'string' ? args.path : undefined);
|
|
1759
|
-
const hasDownloadLocator = !!(args.id ||
|
|
1781
|
+
const hasDownloadLocator = !!(args.id ||
|
|
1782
|
+
args.url ||
|
|
1783
|
+
args.source ||
|
|
1784
|
+
args.share);
|
|
1760
1785
|
if (!sourceOperand && !hasDownloadLocator) {
|
|
1761
1786
|
logError('download needs the AI-Drive path: gsk aidrive download ' +
|
|
1762
1787
|
'<ai-drive-path> [local-path] (or --path/-p). To save an ' +
|
|
@@ -1798,7 +1823,8 @@ function registerToolCommand(parentProgram, tool, clientFactory, vdProjectIdDefa
|
|
|
1798
1823
|
const fileName = urlResult.session_state?.aidrive_result?.file_name;
|
|
1799
1824
|
const destPath = (typeof opts.local_file === 'string' ? opts.local_file : '') ||
|
|
1800
1825
|
operandDest ||
|
|
1801
|
-
pathModule.basename(fileName || resolvedDrivePath) ||
|
|
1826
|
+
pathModule.basename(fileName || resolvedDrivePath) ||
|
|
1827
|
+
'download';
|
|
1802
1828
|
const savedPath = await downloadToFile(readableUrl, destPath, client);
|
|
1803
1829
|
output({
|
|
1804
1830
|
status: 'ok',
|
|
@@ -1969,7 +1995,8 @@ function registerToolCommand(parentProgram, tool, clientFactory, vdProjectIdDefa
|
|
|
1969
1995
|
// a shared source's sharing has its own verb and admin gate.
|
|
1970
1996
|
const shareAfterUpload = shareArgsFromUpload(args);
|
|
1971
1997
|
const sharesAfterUpload = Object.keys(shareAfterUpload).length > 0;
|
|
1972
|
-
const workspace = args.workspace ||
|
|
1998
|
+
const workspace = args.workspace ||
|
|
1999
|
+
(sharesAfterUpload ? 'my_drive' : '');
|
|
1973
2000
|
const source = args.source ||
|
|
1974
2001
|
args.share;
|
|
1975
2002
|
if (!fs.existsSync(localFilePath)) {
|
|
@@ -2168,8 +2195,8 @@ function registerToolCommand(parentProgram, tool, clientFactory, vdProjectIdDefa
|
|
|
2168
2195
|
}
|
|
2169
2196
|
catch (err) {
|
|
2170
2197
|
if (err instanceof SessionError) {
|
|
2171
|
-
|
|
2172
|
-
|
|
2198
|
+
sessionErrorEnvelope(err);
|
|
2199
|
+
return;
|
|
2173
2200
|
}
|
|
2174
2201
|
throw err;
|
|
2175
2202
|
}
|
|
@@ -2189,8 +2216,8 @@ function registerToolCommand(parentProgram, tool, clientFactory, vdProjectIdDefa
|
|
|
2189
2216
|
}
|
|
2190
2217
|
catch (err) {
|
|
2191
2218
|
if (err instanceof SessionError) {
|
|
2192
|
-
|
|
2193
|
-
|
|
2219
|
+
sessionErrorEnvelope(err);
|
|
2220
|
+
return;
|
|
2194
2221
|
}
|
|
2195
2222
|
throw err;
|
|
2196
2223
|
}
|
|
@@ -2206,7 +2233,13 @@ function registerToolCommand(parentProgram, tool, clientFactory, vdProjectIdDefa
|
|
|
2206
2233
|
// run_id, stream_url}) unless `--wait true` was passed. --attach
|
|
2207
2234
|
// upgrades the stub into a live SSE follow that exits with the
|
|
2208
2235
|
// run's terminal result — the work still executes server-side.
|
|
2209
|
-
let result = await client.executeTool(tool.name, resolvedArgs
|
|
2236
|
+
let result = await client.executeTool(tool.name, resolvedArgs,
|
|
2237
|
+
// A paid render's task ids arrive mid-stream; on stderr at once, so
|
|
2238
|
+
// a wait that is cut later still leaves the id in the render log.
|
|
2239
|
+
msg => {
|
|
2240
|
+
for (const line of mediaProgressLines(tool.name, msg))
|
|
2241
|
+
info(line);
|
|
2242
|
+
});
|
|
2210
2243
|
if (sbBoxSession && sbBoxStore) {
|
|
2211
2244
|
afterSessionCall({
|
|
2212
2245
|
key: sbBoxSession,
|
|
@@ -2476,7 +2509,8 @@ function registerToolCommand(parentProgram, tool, clientFactory, vdProjectIdDefa
|
|
|
2476
2509
|
sub.addHelpText('after', `\nExample: ${view.example}`);
|
|
2477
2510
|
}
|
|
2478
2511
|
const parameterNames = tool.name === 'aidrive'
|
|
2479
|
-
? Object.keys(props).filter(name => name !== tool.cli.primary_arg)
|
|
2512
|
+
? Object.keys(props).filter(name => name !== tool.cli.primary_arg)
|
|
2513
|
+
: view.parameters;
|
|
2480
2514
|
for (const paramName of parameterNames) {
|
|
2481
2515
|
if (tool.name === 'aidrive' && paramName === 'workspace')
|
|
2482
2516
|
continue;
|
|
@@ -2498,7 +2532,9 @@ function registerToolCommand(parentProgram, tool, clientFactory, vdProjectIdDefa
|
|
|
2498
2532
|
addAidriveLocalOptions(sub, view.name);
|
|
2499
2533
|
const localFlags = view.name === 'upload'
|
|
2500
2534
|
? ['local_file', 'override', 'on-conflict']
|
|
2501
|
-
: view.name === 'download'
|
|
2535
|
+
: view.name === 'download'
|
|
2536
|
+
? ['local_file']
|
|
2537
|
+
: [];
|
|
2502
2538
|
for (const option of sub.options) {
|
|
2503
2539
|
const name = option.long?.slice(2) ?? '';
|
|
2504
2540
|
if (!view.parameters.includes(name) && !localFlags.includes(name))
|
|
@@ -2524,7 +2560,8 @@ function registerToolCommand(parentProgram, tool, clientFactory, vdProjectIdDefa
|
|
|
2524
2560
|
if (tool.name === 'genteam' && view.name === 'download') {
|
|
2525
2561
|
sub.option('--local_file <path>', GENTEAM_DOWNLOAD_LOCAL_FILE_HELP);
|
|
2526
2562
|
}
|
|
2527
|
-
if (tool.name === 'sb-box' &&
|
|
2563
|
+
if (tool.name === 'sb-box' &&
|
|
2564
|
+
(SANDBOX_ACTIONS.has(view.name) || view.name === 'create')) {
|
|
2528
2565
|
sub.option('--session <key>', SB_BOX_SESSION_HELP);
|
|
2529
2566
|
}
|
|
2530
2567
|
addGlobalPassthroughOptions(sub, props);
|
|
@@ -2609,7 +2646,9 @@ program
|
|
|
2609
2646
|
}
|
|
2610
2647
|
// If save path specified, download using the already-fetched URL
|
|
2611
2648
|
if (opts.save) {
|
|
2612
|
-
const
|
|
2649
|
+
const { developerInputDownload } = await import('./commands/developer-input.js');
|
|
2650
|
+
const download = developerInputDownload(result.data.download_url, getGlobalOptions().baseUrl, getGlobalOptions().apiKey || '');
|
|
2651
|
+
const resp = await fetch(download.url, download.init);
|
|
2613
2652
|
if (!resp.ok)
|
|
2614
2653
|
throw new Error(`Download failed: HTTP ${resp.status}`);
|
|
2615
2654
|
const buffer = Buffer.from(await resp.arrayBuffer());
|
|
@@ -2887,6 +2926,7 @@ program
|
|
|
2887
2926
|
'Optionally generates agent-specific config (.claude/, AGENTS.md, CONTEXT.md).')
|
|
2888
2927
|
.option('-o, --out <dir>', 'Output directory for skills (default: .gsk/skills in cwd)', pathModule.resolve('.gsk', 'skills'))
|
|
2889
2928
|
.option('--agent <type>', 'Generate agent config: claude, gemini, pi, or all')
|
|
2929
|
+
.addOption(new Option('--skills-only', 'Copy skill documents without generating CONTEXT.md or agent config').conflicts('agent'))
|
|
2890
2930
|
.action(async (opts) => {
|
|
2891
2931
|
try {
|
|
2892
2932
|
const { fileURLToPath } = await import('url');
|
|
@@ -2941,19 +2981,20 @@ program
|
|
|
2941
2981
|
logError(`Unknown agent type: "${agentType}". Valid values: ${validAgents.join(', ')}`);
|
|
2942
2982
|
process.exit(1);
|
|
2943
2983
|
}
|
|
2944
|
-
if (
|
|
2945
|
-
|
|
2946
|
-
|
|
2947
|
-
|
|
2948
|
-
|
|
2949
|
-
|
|
2950
|
-
|
|
2951
|
-
|
|
2952
|
-
|
|
2953
|
-
|
|
2954
|
-
|
|
2955
|
-
|
|
2956
|
-
|
|
2984
|
+
if (!opts.skillsOnly) {
|
|
2985
|
+
if (agentType === 'claude' || agentType === 'all') {
|
|
2986
|
+
_generateClaudeConfig(projectRoot, relSkillsDir);
|
|
2987
|
+
}
|
|
2988
|
+
if (agentType === 'gemini' || agentType === 'all') {
|
|
2989
|
+
_generateGeminiConfig(projectRoot);
|
|
2990
|
+
}
|
|
2991
|
+
if (agentType === 'pi' || agentType === 'all') {
|
|
2992
|
+
_generatePiConfig(projectRoot, relSkillsDir);
|
|
2993
|
+
}
|
|
2994
|
+
const created = _generateContextMd(projectRoot, relSkillsDir, skillDirs);
|
|
2995
|
+
if (created) {
|
|
2996
|
+
info('Generated CONTEXT.md');
|
|
2997
|
+
}
|
|
2957
2998
|
}
|
|
2958
2999
|
output({
|
|
2959
3000
|
status: 'ok',
|
|
@@ -3524,7 +3565,8 @@ async function main() {
|
|
|
3524
3565
|
return;
|
|
3525
3566
|
}
|
|
3526
3567
|
if (['project', 'preflight'].includes(localRoute.command || '') ||
|
|
3527
|
-
(localRoute.command === 'hosted' &&
|
|
3568
|
+
(localRoute.command === 'hosted' &&
|
|
3569
|
+
localRoute.subcommand === 'deploy-local')) {
|
|
3528
3570
|
finalizeGlobalPassthrough();
|
|
3529
3571
|
await program.parseAsync();
|
|
3530
3572
|
return;
|
|
@@ -3683,6 +3725,14 @@ async function main() {
|
|
|
3683
3725
|
const legacyGroupForm = Boolean(hasPath && tool.cli.group);
|
|
3684
3726
|
const legacyTopLevel = Boolean(tool.cli.legacy_top_level && (tool.cli.group || hasPath));
|
|
3685
3727
|
const hasLegacyForms = legacyGroupForm || legacyTopLevel;
|
|
3728
|
+
// A renamed command's old tool: the whole command is the legacy form.
|
|
3729
|
+
if (tool.cli.deprecated_for) {
|
|
3730
|
+
registerToolCommand(program, tool, createClient, vdProjectId, {
|
|
3731
|
+
hidden: true,
|
|
3732
|
+
deprecated: { replacement: tool.cli.deprecated_for },
|
|
3733
|
+
});
|
|
3734
|
+
continue;
|
|
3735
|
+
}
|
|
3686
3736
|
// When legacy forms exist, the alias names belong to the hidden flat
|
|
3687
3737
|
// command, not the canonical form.
|
|
3688
3738
|
registerToolCommand(program, hasLegacyForms ? { ...tool, cli: { ...tool.cli, aliases: [] } } : tool, createClient, vdProjectId);
|