project-librarian 0.2.1 → 0.4.0
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.ko.md +261 -93
- package/README.md +190 -76
- package/SKILL.md +16 -10
- package/dist/args.js +25 -2
- package/dist/code-index-file-policy.js +105 -2
- package/dist/code-index.js +338 -70
- package/dist/hooks.js +78 -0
- package/dist/init-project-wiki.js +265 -167
- package/dist/install-skill.js +2 -9
- package/dist/mcp-server.js +709 -0
- package/dist/migration.js +875 -60
- package/dist/modes.js +262 -62
- package/dist/retrieval-eval.js +68 -0
- package/dist/taxonomy.js +193 -0
- package/dist/templates.js +214 -36
- package/dist/wiki-concepts.js +49 -0
- package/dist/wiki-files.js +120 -27
- package/dist/wiki-graph.js +166 -0
- package/dist/wiki-visualizer.js +558 -0
- package/package.json +5 -4
- package/README.ja.md +0 -215
- package/README.zh.md +0 -215
package/dist/install-skill.js
CHANGED
|
@@ -40,14 +40,11 @@ const path = __importStar(require("node:path"));
|
|
|
40
40
|
const args_1 = require("./args");
|
|
41
41
|
const skillName = "project-librarian";
|
|
42
42
|
const allAgentTargets = ["codex", "claude", "cursor", "gemini"];
|
|
43
|
-
const legacyBothAgentTargets = ["codex", "claude"];
|
|
44
43
|
const packageFiles = [
|
|
45
44
|
"SKILL.md",
|
|
46
45
|
"dist",
|
|
47
46
|
"README.md",
|
|
48
47
|
"README.ko.md",
|
|
49
|
-
"README.ja.md",
|
|
50
|
-
"README.zh.md",
|
|
51
48
|
"LICENSE",
|
|
52
49
|
"package.json",
|
|
53
50
|
"agents",
|
|
@@ -71,15 +68,11 @@ function installAgents() {
|
|
|
71
68
|
for (const agent of allAgentTargets)
|
|
72
69
|
agents.add(agent);
|
|
73
70
|
}
|
|
74
|
-
else if (part === "both") {
|
|
75
|
-
for (const agent of legacyBothAgentTargets)
|
|
76
|
-
agents.add(agent);
|
|
77
|
-
}
|
|
78
71
|
else if (allAgentTargets.includes(part)) {
|
|
79
72
|
agents.add(part);
|
|
80
73
|
}
|
|
81
74
|
else {
|
|
82
|
-
return fail(`invalid --agents entry: ${part}; expected codex, claude, cursor, gemini,
|
|
75
|
+
return fail(`invalid --agents entry: ${part}; expected codex, claude, cursor, gemini, or all`);
|
|
83
76
|
}
|
|
84
77
|
}
|
|
85
78
|
return Array.from(agents);
|
|
@@ -154,7 +147,7 @@ function runInstallSkillMode() {
|
|
|
154
147
|
console.log(`scope: ${scope}`);
|
|
155
148
|
console.log(`agents: ${agents.join(", ")}`);
|
|
156
149
|
console.log("note: install-skill only installs the reusable skill files; it does not create or update AGENTS.md, CLAUDE.md, GEMINI.md, wiki/, .cursor/rules/, .cursor/hooks.json, .gemini/settings.json, .codex/hooks.json, or .claude/settings.json.");
|
|
157
|
-
console.log("next:
|
|
150
|
+
console.log("next: ask your agent to use Project Librarian from the target project root; the installed skill resolves the local runner.");
|
|
158
151
|
for (const [label, status] of rows) {
|
|
159
152
|
console.log(`${status.padEnd(7)} ${label}`);
|
|
160
153
|
}
|