lokuma-cli 1.3.2 → 1.3.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/dist/index.js +27 -19
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -54,22 +54,22 @@ var AI_DISPLAY_NAMES = {
|
|
|
54
54
|
all: "All assistants"
|
|
55
55
|
};
|
|
56
56
|
var AI_SKILL_PATHS = {
|
|
57
|
-
claude: { root: ".claude", skillMd: ".claude/skills/
|
|
58
|
-
cursor: { root: ".cursor", skillMd: ".cursor/rules/
|
|
59
|
-
windsurf: { root: ".windsurf", skillMd: ".windsurf/rules/
|
|
60
|
-
copilot: { root: ".github", skillMd: ".github/instructions/
|
|
61
|
-
kiro: { root: ".kiro", skillMd: ".kiro/steering/
|
|
62
|
-
roocode: { root: ".roo", skillMd: ".roo/rules/
|
|
63
|
-
codex: { root: ".codex", skillMd: ".codex/instructions.md", scriptPy: ".codex/
|
|
64
|
-
qoder: { root: ".qoder", skillMd: ".qoder/rules/
|
|
65
|
-
gemini: { root: ".gemini", skillMd: ".gemini/GEMINI.md", scriptPy: ".gemini/
|
|
66
|
-
trae: { root: ".trae", skillMd: ".trae/rules/
|
|
67
|
-
opencode: { root: ".opencode", skillMd: ".opencode/OPENCODE.md", scriptPy: ".opencode/
|
|
68
|
-
continue: { root: ".continue", skillMd: ".continue/
|
|
69
|
-
codebuddy: { root: ".codebuddy", skillMd: ".codebuddy/
|
|
70
|
-
droid: { root: ".factory", skillMd: ".factory/skills/
|
|
57
|
+
claude: { root: ".claude", skillMd: ".claude/skills/lokuma/SKILL.md", scriptPy: ".claude/skills/lokuma/scripts/search.py" },
|
|
58
|
+
cursor: { root: ".cursor", skillMd: ".cursor/rules/lokuma.mdc", scriptPy: ".cursor/rules/lokuma/scripts/search.py" },
|
|
59
|
+
windsurf: { root: ".windsurf", skillMd: ".windsurf/rules/lokuma.md", scriptPy: ".windsurf/rules/lokuma/scripts/search.py" },
|
|
60
|
+
copilot: { root: ".github", skillMd: ".github/instructions/lokuma.instructions.md", scriptPy: ".github/instructions/lokuma/scripts/search.py" },
|
|
61
|
+
kiro: { root: ".kiro", skillMd: ".kiro/steering/lokuma.md", scriptPy: ".kiro/steering/lokuma/scripts/search.py" },
|
|
62
|
+
roocode: { root: ".roo", skillMd: ".roo/rules/lokuma.md", scriptPy: ".roo/rules/lokuma/scripts/search.py" },
|
|
63
|
+
codex: { root: ".codex", skillMd: ".codex/instructions.md", scriptPy: ".codex/lokuma/scripts/search.py" },
|
|
64
|
+
qoder: { root: ".qoder", skillMd: ".qoder/rules/lokuma.md", scriptPy: ".qoder/rules/lokuma/scripts/search.py" },
|
|
65
|
+
gemini: { root: ".gemini", skillMd: ".gemini/GEMINI.md", scriptPy: ".gemini/lokuma/scripts/search.py" },
|
|
66
|
+
trae: { root: ".trae", skillMd: ".trae/rules/lokuma.md", scriptPy: ".trae/rules/lokuma/scripts/search.py" },
|
|
67
|
+
opencode: { root: ".opencode", skillMd: ".opencode/OPENCODE.md", scriptPy: ".opencode/lokuma/scripts/search.py" },
|
|
68
|
+
continue: { root: ".continue", skillMd: ".continue/lokuma/SKILL.md", scriptPy: ".continue/lokuma/scripts/search.py" },
|
|
69
|
+
codebuddy: { root: ".codebuddy", skillMd: ".codebuddy/lokuma/SKILL.md", scriptPy: ".codebuddy/lokuma/scripts/search.py" },
|
|
70
|
+
droid: { root: ".factory", skillMd: ".factory/skills/lokuma/SKILL.md", scriptPy: ".factory/skills/lokuma/scripts/search.py" },
|
|
71
71
|
// OpenClaw installs to a fixed absolute path (not relative to cwd)
|
|
72
|
-
openclaw: { root: "~/.openclaw/workspace/skills/
|
|
72
|
+
openclaw: { root: "~/.openclaw/workspace/skills/lokuma", skillMd: "~/.openclaw/workspace/skills/lokuma/SKILL.md", scriptPy: "~/.openclaw/workspace/skills/lokuma/scripts/search.py" }
|
|
73
73
|
};
|
|
74
74
|
|
|
75
75
|
// src/commands/init.ts
|
|
@@ -331,20 +331,28 @@ async function initCommand(options) {
|
|
|
331
331
|
await mkdir(dirname(paths.scriptPy), { recursive: true });
|
|
332
332
|
await writeFile(paths.skillMd, buildSkillMd(paths.scriptPy), "utf-8");
|
|
333
333
|
await writeFile(paths.scriptPy, SEARCH_PY, "utf-8");
|
|
334
|
-
installed.push(AI_DISPLAY_NAMES[t]);
|
|
334
|
+
installed.push({ name: AI_DISPLAY_NAMES[t], skillMd: paths.skillMd, scriptPy: paths.scriptPy });
|
|
335
335
|
}
|
|
336
336
|
spinner.succeed("Done!");
|
|
337
337
|
if (installed.length > 0) {
|
|
338
338
|
console.log();
|
|
339
|
-
|
|
339
|
+
for (const item of installed) {
|
|
340
|
+
console.log(chalk.green(` \u2713 ${item.name}`));
|
|
341
|
+
console.log(chalk.dim(` skill : ${item.skillMd}`));
|
|
342
|
+
console.log(chalk.dim(` search: ${item.scriptPy}`));
|
|
343
|
+
}
|
|
340
344
|
}
|
|
341
345
|
console.log();
|
|
342
346
|
console.log(chalk.bold(" Next steps:"));
|
|
343
347
|
console.log(chalk.dim(" 1. Set your API key:"));
|
|
344
348
|
console.log(chalk.cyan(" export LOKUMA_API_KEY=lokuma_your_key_here"));
|
|
345
|
-
console.log(chalk.dim(" 2. Get a key \u2192 https://lokuma.
|
|
349
|
+
console.log(chalk.dim(" 2. Get a key \u2192 https://lokuma.ai"));
|
|
346
350
|
console.log(chalk.dim(" 3. Restart your AI assistant"));
|
|
347
|
-
console.log(
|
|
351
|
+
console.log();
|
|
352
|
+
console.log(chalk.bold(" Try it now \u2014 tell your AI assistant:"));
|
|
353
|
+
console.log(chalk.cyan(' "Build a coffee shop website by lokuma"'));
|
|
354
|
+
console.log(chalk.dim(' "Design a landing page for a SaaS startup by lokuma"'));
|
|
355
|
+
console.log(chalk.dim(' "Create a mobile app UI for a meditation app by lokuma"'));
|
|
348
356
|
console.log();
|
|
349
357
|
} catch (err) {
|
|
350
358
|
spinner.fail("Installation failed");
|