@ignix-social/editor 0.1.8 → 0.1.9
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/package.json +1 -1
- package/src/cli.mjs +13 -8
package/package.json
CHANGED
package/src/cli.mjs
CHANGED
|
@@ -80,7 +80,7 @@ const commands = {
|
|
|
80
80
|
async doctor() {
|
|
81
81
|
const major = Number(process.versions.node.split('.')[0]);
|
|
82
82
|
log(`${major >= 22 ? '✓' : '✗'} Node ${process.versions.node}${major >= 22 ? '' : ' — Node 22 or newer is required'}`);
|
|
83
|
-
log(`✓ Ignix Editor ${PKG.version} ·
|
|
83
|
+
log(`✓ Ignix Editor ${PKG.version} · engine ${UPSTREAM.version} (patches: ${UPSTREAM.patches.join(', ')})`);
|
|
84
84
|
log(` Platform ${PLATFORM} · data in ${HOME}`);
|
|
85
85
|
let ok = major >= 22;
|
|
86
86
|
// doctor deja la máquina lista: descarga lo que falte en vez de solo avisar.
|
|
@@ -304,17 +304,22 @@ const commands = {
|
|
|
304
304
|
process.exit(r.status ?? 1);
|
|
305
305
|
},
|
|
306
306
|
|
|
307
|
+
// La skill donde la buscan los agentes: Claude (~/.claude/skills) y Codex y otros
|
|
308
|
+
// (~/.agents/skills). Con --dir, solo ahí.
|
|
307
309
|
async skills(argv) {
|
|
308
310
|
const { pos, opts } = parseArgs(argv, { dir: 'str' });
|
|
309
|
-
if (pos[0] !== 'add') fail('Usage: ignix-editor skills add [--dir
|
|
310
|
-
const
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
311
|
+
if (pos[0] !== 'add') fail('Usage: ignix-editor skills add [--dir <skills folder>]');
|
|
312
|
+
const dirs = opts.dir ? [resolve(opts.dir)] : [join(homedir(), '.claude', 'skills'), join(homedir(), '.agents', 'skills')];
|
|
313
|
+
for (const dir of dirs) {
|
|
314
|
+
const target = join(dir, 'ignix-editor');
|
|
315
|
+
rmSync(target, { recursive: true, force: true });
|
|
316
|
+
cpSync(join(PKG_DIR, 'skills', 'ignix-editor'), target, { recursive: true });
|
|
317
|
+
log(`✓ Skill installed in ${target}`);
|
|
318
|
+
}
|
|
314
319
|
},
|
|
315
320
|
|
|
316
321
|
async version() {
|
|
317
|
-
console.log(`ignix-editor ${PKG.version} (
|
|
322
|
+
console.log(`ignix-editor ${PKG.version} (engine ${UPSTREAM.version})`);
|
|
318
323
|
},
|
|
319
324
|
|
|
320
325
|
async help() {
|
|
@@ -334,7 +339,7 @@ const commands = {
|
|
|
334
339
|
ignix-editor fetch [--whisper small] [--no-analysis] downloads everything up front (each file SHA-256-checked)
|
|
335
340
|
ignix-editor serve local service for Ignix Creator (JSON lines on stdin/stdout)
|
|
336
341
|
|
|
337
|
-
The folder defaults to the current one.
|
|
342
|
+
The folder defaults to the current one. Open source (Apache-2.0); credits in NOTICE.`);
|
|
338
343
|
},
|
|
339
344
|
};
|
|
340
345
|
|