@opencoven/coven-code 0.0.2 → 0.0.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/README.md +1 -1
- package/docs/CLI.md +1 -1
- package/docs/DEMO.md +4 -1
- package/package.json +1 -1
- package/src/cli/slash-commands.mjs +20 -2
package/README.md
CHANGED
|
@@ -34,7 +34,7 @@ filtering and a details panel for commands, skills, and plugin actions.
|
|
|
34
34
|
|
|
35
35
|
```text
|
|
36
36
|
$ coven-code
|
|
37
|
-
Coven Code 0.0.
|
|
37
|
+
Coven Code 0.0.3
|
|
38
38
|
/Users/example/project
|
|
39
39
|
[chat] lane tools threads config help mode: smart effort: high
|
|
40
40
|
--------------------------------------------------------------------------------
|
package/docs/CLI.md
CHANGED
|
@@ -99,7 +99,7 @@ transcript, tabs, compact status line, command palette, slash-command menu, and
|
|
|
99
99
|
composer. It keeps a current local thread and accepts slash commands:
|
|
100
100
|
|
|
101
101
|
```text
|
|
102
|
-
Coven Code 0.0.
|
|
102
|
+
Coven Code 0.0.3
|
|
103
103
|
[chat] lane tools threads config help mode: smart effort: high
|
|
104
104
|
--------------------------------------------------------------------------------
|
|
105
105
|
Ready. Type a prompt or /help.
|
package/docs/DEMO.md
CHANGED
|
@@ -90,8 +90,11 @@ The menu accepts:
|
|
|
90
90
|
| -------- | -------------------------------------------------------- |
|
|
91
91
|
| `1`-`12` | run one section by number |
|
|
92
92
|
| `a` | run all sections in sequence, then print the scoreboard |
|
|
93
|
+
| `r` | replay the last section you ran |
|
|
93
94
|
| `t` | type your own prompt and run one execute turn |
|
|
94
95
|
| `s` | list the files the demo wrote into the sandbox HOME |
|
|
96
|
+
| `x` | open a real subshell inside the sandbox (`exit` returns) |
|
|
97
|
+
| `c` | copy the sandbox path to your clipboard |
|
|
95
98
|
| `l` | re-print the section table of contents (with `✓` marks) |
|
|
96
99
|
| `?` | show the menu help |
|
|
97
100
|
| `q` | quit (sandbox path printed so you can clean up or poke around) |
|
|
@@ -144,7 +147,7 @@ rm -rf "$DEMO_HOME" # the script prints the exact path at the end
|
|
|
144
147
|
works without any account or API key.
|
|
145
148
|
|
|
146
149
|
```sh
|
|
147
|
-
node ./bin/coven-code.mjs --version # prints 0.0.
|
|
150
|
+
node ./bin/coven-code.mjs --version # prints 0.0.3
|
|
148
151
|
node ./bin/coven-code.mjs --help # full option and command reference
|
|
149
152
|
node ./bin/coven-code.mjs login # printable instructions (no token yet)
|
|
150
153
|
node ./bin/coven-code.mjs login status # auth_status: logged_out
|
package/package.json
CHANGED
|
@@ -163,8 +163,8 @@ export async function buildSlashCommandCatalog(options = {}) {
|
|
|
163
163
|
const cwd = options.cwd ?? process.cwd();
|
|
164
164
|
const entries = [
|
|
165
165
|
...buildStaticSlashCommandCatalog(),
|
|
166
|
-
...
|
|
167
|
-
...await
|
|
166
|
+
...safeSkillSlashCommands(parsed, cwd),
|
|
167
|
+
...await safePluginSlashCommands(cwd),
|
|
168
168
|
];
|
|
169
169
|
return normalizeCatalog(entries);
|
|
170
170
|
} finally {
|
|
@@ -262,6 +262,24 @@ async function pluginSlashCommands(cwd) {
|
|
|
262
262
|
}));
|
|
263
263
|
}
|
|
264
264
|
|
|
265
|
+
function safeSkillSlashCommands(parsed, cwd) {
|
|
266
|
+
try {
|
|
267
|
+
return skillSlashCommands(parsed, cwd);
|
|
268
|
+
} catch (error) {
|
|
269
|
+
console.error(`${CLI_NAME}: skill catalog unavailable: ${error?.message ?? error}`);
|
|
270
|
+
return [];
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
async function safePluginSlashCommands(cwd) {
|
|
275
|
+
try {
|
|
276
|
+
return await pluginSlashCommands(cwd);
|
|
277
|
+
} catch (error) {
|
|
278
|
+
console.error(`${CLI_NAME}: plugin catalog unavailable: ${error?.message ?? error}`);
|
|
279
|
+
return [];
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
|
|
265
283
|
function normalizeCatalog(entries) {
|
|
266
284
|
const seen = new Set();
|
|
267
285
|
const catalog = [];
|