@elyracode/coding-agent 0.7.1 → 0.7.3
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/CHANGELOG.md +10 -0
- package/dist/core/slash-commands.js +1 -1
- package/dist/core/slash-commands.js.map +1 -1
- package/dist/modes/interactive/interactive-mode.d.ts +1 -0
- package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-mode.js +128 -2
- package/dist/modes/interactive/interactive-mode.js.map +1 -1
- package/examples/extensions/custom-provider-anthropic/package-lock.json +2 -2
- package/examples/extensions/custom-provider-anthropic/package.json +1 -1
- package/examples/extensions/custom-provider-gitlab-duo/package.json +1 -1
- package/examples/extensions/sandbox/package-lock.json +2 -2
- package/examples/extensions/sandbox/package.json +1 -1
- package/examples/extensions/with-deps/package-lock.json +2 -2
- package/examples/extensions/with-deps/package.json +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.7.3] - 2026-05-22
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
- `/skills install <name>` command: install skills from the community registry at github.com/kwhorne/elyra-skills. Supports multiple skills in one command.
|
|
7
|
+
|
|
8
|
+
## [0.7.2] - 2026-05-21
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
- `@elyracode/design-lookup` extension: extract design systems from any website (colors, typography, spacing, components, layout) via `/lookup-design <url>`
|
|
12
|
+
|
|
3
13
|
## [0.7.1] - 2026-05-21
|
|
4
14
|
|
|
5
15
|
### Added
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { APP_NAME } from "../config.js";
|
|
2
2
|
export const BUILTIN_SLASH_COMMANDS = [
|
|
3
3
|
{ name: "help", description: "Show help with example prompts and useful commands" },
|
|
4
|
-
{ name: "skills", description: "List loaded skills
|
|
4
|
+
{ name: "skills", description: "List loaded skills, or install from registry: /skills install <name>" },
|
|
5
5
|
{ name: "init", description: "Set up Elyra for this project (.elyra/ directory, extensions, blueprints)" },
|
|
6
6
|
{ name: "settings", description: "Open settings menu" },
|
|
7
7
|
{ name: "model", description: "Select model (opens selector UI)" },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slash-commands.js","sourceRoot":"","sources":["../../src/core/slash-commands.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAiBxC,MAAM,CAAC,MAAM,sBAAsB,GAAuC;IACzE,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,oDAAoD,EAAE;IACnF,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"slash-commands.js","sourceRoot":"","sources":["../../src/core/slash-commands.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAiBxC,MAAM,CAAC,MAAM,sBAAsB,GAAuC;IACzE,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,oDAAoD,EAAE;IACnF,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,sEAAsE,EAAE;IACvG,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,2EAA2E,EAAE;IAC1G,EAAE,IAAI,EAAE,UAAU,EAAE,WAAW,EAAE,oBAAoB,EAAE;IACvD,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,kCAAkC,EAAE;IAClE,EAAE,IAAI,EAAE,eAAe,EAAE,WAAW,EAAE,0CAA0C,EAAE;IAClF,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,8DAA8D,EAAE;IAC/F,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,+CAA+C,EAAE;IAChF,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,uCAAuC,EAAE;IACvE,EAAE,IAAI,EAAE,MA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AAE;IAClF,EAAE,IAAI,EAAE,SAAS,EAAE,WAAW,EAAE,mDAAmD,EAAE;IACrF,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,uDAAuD,EAAE;IACvF,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,4DAA4D,EAAE;IAC7F,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,6DAA6D,EAAE;IAC9F,EAAE,IAAI,EAAE,UAAU,EAAE,WAAW,EAAE,yCAAyC,EAAE;IAC5E,EAAE,IAAI,EAAE,KAAK,EAAE,WAAW,EAAE,+DAA+D,EAAE;IAC7F,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,QAAQ,QAAQ,EAAE,EAAE;CACjD,CAAC","sourcesContent":["import { APP_NAME } from \"../config.js\";\nimport type { SourceInfo } from \"./source-info.js\";\n\nexport type SlashCommandSource = \"extension\" | \"prompt\" | \"skill\";\n\nexport interface SlashCommandInfo {\n\tname: string;\n\tdescription?: string;\n\tsource: SlashCommandSource;\n\tsourceInfo: SourceInfo;\n}\n\nexport interface BuiltinSlashCommand {\n\tname: string;\n\tdescription: string;\n}\n\nexport const BUILTIN_SLASH_COMMANDS: ReadonlyArray<BuiltinSlashCommand> = [\n\t{ name: \"help\", description: \"Show help with example prompts and useful commands\" },\n\t{ name: \"skills\", description: \"List loaded skills, or install from registry: /skills install <name>\" },\n\t{ name: \"init\", description: \"Set up Elyra for this project (.elyra/ directory, extensions, blueprints)\" },\n\t{ name: \"settings\", description: \"Open settings menu\" },\n\t{ name: \"model\", description: \"Select model (opens selector UI)\" },\n\t{ name: \"scoped-models\", description: \"Enable/disable models for Ctrl+P cycling\" },\n\t{ name: \"export\", description: \"Export session (HTML default, or specify path: .html/.jsonl)\" },\n\t{ name: \"import\", description: \"Import and resume a session from a JSONL file\" },\n\t{ name: \"share\", description: \"Share session as a secret GitHub gist\" },\n\t{ name: \"copy\", description: \"Copy last agent message to clipboard\" },\n\t{ name: \"name\", description: \"Set session display name\" },\n\t{ name: \"session\", description: \"Show session info and stats\" },\n\t{ name: \"changelog\", description: \"Show changelog entries\" },\n\t{ name: \"hotkeys\", description: \"Show all keyboard shortcuts\" },\n\t{ name: \"fork\", description: \"Create a new fork from a previous user message\" },\n\t{ name: \"clone\", description: \"Duplicate the current session at the current position\" },\n\t{ name: \"tree\", description: \"Navigate session tree (switch branches)\" },\n\t{ name: \"login\", description: \"Configure provider authentication\" },\n\t{ name: \"logout\", description: \"Remove provider authentication\" },\n\t{ name: \"new\", description: \"Start a new session\" },\n\t{ name: \"compact\", description: \"Manually compact the session context\" },\n\t{ name: \"resume\", description: \"Resume a different session\" },\n\t{ name: \"cost\", description: \"Show session cost and token usage\" },\n\t{ name: \"diff\", description: \"Show uncommitted changes (git diff)\" },\n\t{ name: \"pin\", description: \"Pin a file to context (survives compaction): /pin <path>\" },\n\t{ name: \"memory\", description: \"View or manage project memory\" },\n\t{ name: \"unpin\", description: \"Unpin a file from context: /unpin <path>\" },\n\t{ name: \"pins\", description: \"List pinned context files\" },\n\t{ name: \"blueprint\", description: \"Apply a session blueprint: /blueprint [name]\" },\n\t{ name: \"snippet\", description: \"Send a saved instruction snippet: /snippet [name]\" },\n\t{ name: \"theme\", description: \"Switch color theme (opens selector, or /theme <name>)\" },\n\t{ name: \"footer\", description: \"Toggle minimal footer (hide token stats and context usage)\" },\n\t{ name: \"reload\", description: \"Reload keybindings, extensions, skills, prompts, and themes\" },\n\t{ name: \"packages\", description: \"Browse and install available extensions\" },\n\t{ name: \"ext\", description: \"Browse and install available extensions (alias for /packages)\" },\n\t{ name: \"quit\", description: `Quit ${APP_NAME}` },\n];\n"]}
|
|
@@ -315,6 +315,7 @@ export declare class InteractiveMode {
|
|
|
315
315
|
private showSettingsSelector;
|
|
316
316
|
private handleInitCommand;
|
|
317
317
|
private handleSkillsCommand;
|
|
318
|
+
private handleSkillsInstallCommand;
|
|
318
319
|
private handleHelpCommand;
|
|
319
320
|
private handleCostCommand;
|
|
320
321
|
private handleDiffCommand;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interactive-mode.d.ts","sourceRoot":"","sources":["../../../src/modes/interactive/interactive-mode.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAOH,OAAO,EAGN,KAAK,YAAY,EAKjB,MAAM,eAAe,CAAC;AA6CvB,OAAO,EAAE,KAAK,mBAAmB,EAAkC,MAAM,qCAAqC,CAAC;AA0I/G,wBAAgB,qBAAqB,CACpC,UAAU,EAAE,MAAM,EAClB,gBAAgB,EAAE,WAAW,CAAC,MAAM,CAAC,EACrC,kBAAkB,GAAE,WAAW,CAAC,MAAM,CAA4B,GAChE,OAAO,CAQT;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACtC,gEAAgE;IAChE,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC7B,4DAA4D;IAC5D,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,qEAAqE;IACrE,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,8CAA8C;IAC9C,aAAa,CAAC,EAAE,YAAY,EAAE,CAAC;IAC/B,4DAA4D;IAC5D,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAC3B,6DAA6D;IAC7D,OAAO,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,qBAAa,eAAe;IA0H1B,OAAO,CAAC,OAAO;IAzHhB,OAAO,CAAC,WAAW,CAAsB;IACzC,OAAO,CAAC,EAAE,CAAM;IAChB,OAAO,CAAC,aAAa,CAAY;IACjC,OAAO,CAAC,wBAAwB,CAAY;IAC5C,OAAO,CAAC,eAAe,CAAY;IACnC,OAAO,CAAC,aAAa,CAAe;IACpC,OAAO,CAAC,MAAM,CAAkB;IAChC,OAAO,CAAC,sBAAsB,CAA4B;IAC1D,OAAO,CAAC,oBAAoB,CAAmC;IAC/D,OAAO,CAAC,4BAA4B,CAAqC;IACzE,OAAO,CAAC,MAAM,CAAqB;IACnC,OAAO,CAAC,eAAe,CAA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AAgB;IAIxB;;OAEG;IACH,OAAO,CAAC,mBAAmB;IAI3B,OAAO,CAAC,oBAAoB;YAmHd,kBAAkB;IAoBhC,OAAO,CAAC,kBAAkB;IAiC1B,OAAO,CAAC,iBAAiB;IAMzB,OAAO,CAAC,oBAAoB;IAM5B,OAAO,CAAC,aAAa;IAMrB,OAAO,CAAC,qBAAqB;YAMf,iBAAiB;YAuFjB,oBAAoB;IAsBlC,IAAI,IAAI,IAAI,CAmBX;CACD"}
|
|
@@ -332,6 +332,18 @@ export class InteractiveMode {
|
|
|
332
332
|
return filtered.sort().map((n) => ({ value: n, label: n }));
|
|
333
333
|
};
|
|
334
334
|
}
|
|
335
|
+
const skillsCommand = slashCommands.find((command) => command.name === "skills");
|
|
336
|
+
if (skillsCommand) {
|
|
337
|
+
skillsCommand.getArgumentCompletions = (prefix) => {
|
|
338
|
+
const subcommands = ["install"];
|
|
339
|
+
if (!prefix)
|
|
340
|
+
return subcommands.map((s) => ({ value: s, label: s }));
|
|
341
|
+
const filtered = subcommands.filter((s) => s.startsWith(prefix.toLowerCase()));
|
|
342
|
+
if (filtered.length === 0)
|
|
343
|
+
return null;
|
|
344
|
+
return filtered.map((s) => ({ value: s, label: s }));
|
|
345
|
+
};
|
|
346
|
+
}
|
|
335
347
|
// Convert prompt templates to SlashCommand format for autocomplete
|
|
336
348
|
const templateCommands = this.session.promptTemplates.map((cmd) => ({
|
|
337
349
|
name: cmd.name,
|
|
@@ -1968,9 +1980,17 @@ export class InteractiveMode {
|
|
|
1968
1980
|
this.handleHelpCommand();
|
|
1969
1981
|
return;
|
|
1970
1982
|
}
|
|
1971
|
-
if (text === "/skills") {
|
|
1983
|
+
if (text === "/skills" || text.startsWith("/skills ")) {
|
|
1972
1984
|
this.editor.setText("");
|
|
1973
|
-
|
|
1985
|
+
if (text.startsWith("/skills install ")) {
|
|
1986
|
+
await this.handleSkillsInstallCommand(text.slice(16).trim());
|
|
1987
|
+
}
|
|
1988
|
+
else if (text === "/skills") {
|
|
1989
|
+
this.handleSkillsCommand();
|
|
1990
|
+
}
|
|
1991
|
+
else {
|
|
1992
|
+
this.showError("Usage: /skills or /skills install <name> [name2 ...]");
|
|
1993
|
+
}
|
|
1974
1994
|
return;
|
|
1975
1995
|
}
|
|
1976
1996
|
if (text === "/init") {
|
|
@@ -3424,6 +3444,111 @@ export class InteractiveMode {
|
|
|
3424
3444
|
this.chatContainer.addChild(new Text(lines.join("\n"), 1, 0));
|
|
3425
3445
|
this.ui.requestRender();
|
|
3426
3446
|
}
|
|
3447
|
+
async handleSkillsInstallCommand(args) {
|
|
3448
|
+
if (!args) {
|
|
3449
|
+
this.showError("Usage: /skills install <name> [name2 ...]\n\nBrowse available skills at github.com/kwhorne/elyra-skills");
|
|
3450
|
+
return;
|
|
3451
|
+
}
|
|
3452
|
+
const names = args.split(/\s+/).filter(Boolean);
|
|
3453
|
+
const skillsDir = path.join(os.homedir(), ".elyra", "agent", "skills");
|
|
3454
|
+
this.showStatus(`Fetching skill registry...`);
|
|
3455
|
+
try {
|
|
3456
|
+
// Fetch registry
|
|
3457
|
+
const registryUrl = "https://raw.githubusercontent.com/kwhorne/elyra-skills/main/registry.json";
|
|
3458
|
+
const registryResponse = await fetch(registryUrl);
|
|
3459
|
+
if (!registryResponse.ok) {
|
|
3460
|
+
this.showError("Failed to fetch skill registry from GitHub");
|
|
3461
|
+
return;
|
|
3462
|
+
}
|
|
3463
|
+
const registry = (await registryResponse.json());
|
|
3464
|
+
const installed = [];
|
|
3465
|
+
const failed = [];
|
|
3466
|
+
const notFound = [];
|
|
3467
|
+
for (const name of names) {
|
|
3468
|
+
const entry = registry.skills.find((s) => s.name === name);
|
|
3469
|
+
if (!entry) {
|
|
3470
|
+
notFound.push(name);
|
|
3471
|
+
continue;
|
|
3472
|
+
}
|
|
3473
|
+
try {
|
|
3474
|
+
// Fetch the skill's file tree
|
|
3475
|
+
const treeUrl = `https://api.github.com/repos/kwhorne/elyra-skills/git/trees/main?recursive=1`;
|
|
3476
|
+
const treeResponse = await fetch(treeUrl, {
|
|
3477
|
+
headers: { "User-Agent": "elyra-skills-installer" },
|
|
3478
|
+
});
|
|
3479
|
+
if (!treeResponse.ok) {
|
|
3480
|
+
failed.push(name);
|
|
3481
|
+
continue;
|
|
3482
|
+
}
|
|
3483
|
+
const tree = (await treeResponse.json());
|
|
3484
|
+
// Find all files under this skill's path
|
|
3485
|
+
const skillFiles = tree.tree.filter((f) => f.type === "blob" && f.path.startsWith(`${entry.path}/`));
|
|
3486
|
+
if (skillFiles.length === 0) {
|
|
3487
|
+
failed.push(name);
|
|
3488
|
+
continue;
|
|
3489
|
+
}
|
|
3490
|
+
// Download each file
|
|
3491
|
+
const destDir = path.join(skillsDir, name);
|
|
3492
|
+
fs.mkdirSync(destDir, { recursive: true });
|
|
3493
|
+
for (const file of skillFiles) {
|
|
3494
|
+
const relativePath = file.path.slice(entry.path.length + 1);
|
|
3495
|
+
const destPath = path.join(destDir, relativePath);
|
|
3496
|
+
const destFileDir = path.dirname(destPath);
|
|
3497
|
+
if (!fs.existsSync(destFileDir)) {
|
|
3498
|
+
fs.mkdirSync(destFileDir, { recursive: true });
|
|
3499
|
+
}
|
|
3500
|
+
const rawUrl = `https://raw.githubusercontent.com/kwhorne/elyra-skills/main/${file.path}`;
|
|
3501
|
+
const fileResponse = await fetch(rawUrl, {
|
|
3502
|
+
headers: { "User-Agent": "elyra-skills-installer" },
|
|
3503
|
+
});
|
|
3504
|
+
if (fileResponse.ok) {
|
|
3505
|
+
const content = await fileResponse.text();
|
|
3506
|
+
fs.writeFileSync(destPath, content, "utf-8");
|
|
3507
|
+
}
|
|
3508
|
+
}
|
|
3509
|
+
installed.push(name);
|
|
3510
|
+
}
|
|
3511
|
+
catch {
|
|
3512
|
+
failed.push(name);
|
|
3513
|
+
}
|
|
3514
|
+
}
|
|
3515
|
+
// Build result message
|
|
3516
|
+
const parts = [];
|
|
3517
|
+
if (installed.length > 0) {
|
|
3518
|
+
parts.push(theme.bold("Installed:"));
|
|
3519
|
+
for (const name of installed) {
|
|
3520
|
+
const entry = registry.skills.find((s) => s.name === name);
|
|
3521
|
+
parts.push(` ${theme.fg("success", name)} ${theme.fg("dim", `\u2192 ${skillsDir}/${name}/`)}`);
|
|
3522
|
+
if (entry?.description) {
|
|
3523
|
+
const desc = entry.description.length > 70 ? `${entry.description.slice(0, 67)}...` : entry.description;
|
|
3524
|
+
parts.push(` ${theme.fg("dim", desc)}`);
|
|
3525
|
+
}
|
|
3526
|
+
}
|
|
3527
|
+
}
|
|
3528
|
+
if (notFound.length > 0) {
|
|
3529
|
+
if (parts.length > 0)
|
|
3530
|
+
parts.push("");
|
|
3531
|
+
parts.push(theme.fg("warning", `Not found: ${notFound.join(", ")}`));
|
|
3532
|
+
parts.push(theme.fg("dim", "Browse available skills at github.com/kwhorne/elyra-skills"));
|
|
3533
|
+
}
|
|
3534
|
+
if (failed.length > 0) {
|
|
3535
|
+
if (parts.length > 0)
|
|
3536
|
+
parts.push("");
|
|
3537
|
+
parts.push(theme.fg("error", `Failed: ${failed.join(", ")}`));
|
|
3538
|
+
}
|
|
3539
|
+
if (installed.length > 0) {
|
|
3540
|
+
parts.push("");
|
|
3541
|
+
parts.push(theme.fg("dim", "Run /reload to load new skills, or restart the session."));
|
|
3542
|
+
}
|
|
3543
|
+
this.chatContainer.addChild(new Spacer(1));
|
|
3544
|
+
this.chatContainer.addChild(new Text(parts.join("\n"), 1, 0));
|
|
3545
|
+
this.ui.requestRender();
|
|
3546
|
+
}
|
|
3547
|
+
catch (error) {
|
|
3548
|
+
const msg = error instanceof Error ? error.message : String(error);
|
|
3549
|
+
this.showError(`Failed to install skills: ${msg}`);
|
|
3550
|
+
}
|
|
3551
|
+
}
|
|
3427
3552
|
handleHelpCommand() {
|
|
3428
3553
|
const help = [
|
|
3429
3554
|
theme.bold("Elyra"),
|
|
@@ -4481,6 +4606,7 @@ export class InteractiveMode {
|
|
|
4481
4606
|
"@elyracode/anna -- Presentations: Anna.js slides, terminal demos, diagrams",
|
|
4482
4607
|
"@elyracode/swarm -- Swarm: automated build, review, and refactor pipelines",
|
|
4483
4608
|
"@elyracode/docker -- Docker: container exec, logs, compose, env sync",
|
|
4609
|
+
"@elyracode/design-lookup -- Design extraction: colors, typography, spacing, components from any URL",
|
|
4484
4610
|
];
|
|
4485
4611
|
this.showSelector((done) => {
|
|
4486
4612
|
const selector = new ExtensionSelectorComponent("Install Extension", packages, (selected) => {
|