grimoire-framework 1.0.11 → 1.0.12
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.
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
# - SHA256 hashes for change detection
|
|
8
8
|
# - File types for categorization
|
|
9
9
|
#
|
|
10
|
-
version: 1.0.
|
|
11
|
-
generated_at: "2026-02-22T12:
|
|
10
|
+
version: 1.0.12
|
|
11
|
+
generated_at: "2026-02-22T12:38:58.635Z"
|
|
12
12
|
generator: scripts/generate-install-manifest.js
|
|
13
13
|
file_count: 1011
|
|
14
14
|
files:
|
package/bin/commands/update.js
CHANGED
|
@@ -26,6 +26,11 @@ const FRAMEWORK_SYNC_DIRS = [
|
|
|
26
26
|
{ src: '.claude/commands/grimoire', dest: '.claude/commands/grimoire' },
|
|
27
27
|
];
|
|
28
28
|
|
|
29
|
+
// Single files to sync (framework root → project root)
|
|
30
|
+
const FRAMEWORK_SYNC_FILES = [
|
|
31
|
+
{ src: 'GEMINI.md', dest: 'GEMINI.md' },
|
|
32
|
+
];
|
|
33
|
+
|
|
29
34
|
/**
|
|
30
35
|
* Fetch latest version from npm registry
|
|
31
36
|
*/
|
|
@@ -238,6 +243,28 @@ async function run(args = []) {
|
|
|
238
243
|
}
|
|
239
244
|
}
|
|
240
245
|
|
|
246
|
+
// 3b. Sync single files (e.g. GEMINI.md)
|
|
247
|
+
for (const { src, dest } of FRAMEWORK_SYNC_FILES) {
|
|
248
|
+
const srcPath = path.join(frameworkRoot, src);
|
|
249
|
+
const destPath = path.join(cwd, dest);
|
|
250
|
+
|
|
251
|
+
if (!fs.existsSync(srcPath)) {
|
|
252
|
+
if (verbose) console.log(` ⏭️ Skip (not in source): ${src}`);
|
|
253
|
+
continue;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
const existed = fs.existsSync(destPath);
|
|
257
|
+
fs.copyFileSync(srcPath, destPath);
|
|
258
|
+
|
|
259
|
+
if (existed) {
|
|
260
|
+
totalStats.updated++;
|
|
261
|
+
console.log(` 📄 ${dest} — ✅ Updated`);
|
|
262
|
+
} else {
|
|
263
|
+
totalStats.added++;
|
|
264
|
+
console.log(` 📄 ${dest} — ➕ Added`);
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
|
|
241
268
|
// 4. Summary
|
|
242
269
|
console.log('\n' + '='.repeat(40));
|
|
243
270
|
console.log(`✅ Updated to v${latest}\n`);
|
package/package.json
CHANGED
|
@@ -57,9 +57,10 @@ const IDE_CONFIGS = {
|
|
|
57
57
|
gemini: {
|
|
58
58
|
name: 'Gemini CLI',
|
|
59
59
|
description: '',
|
|
60
|
-
configFile:
|
|
60
|
+
configFile: 'GEMINI.md',
|
|
61
|
+
secondaryConfig: path.join('.gemini', 'rules.md'),
|
|
61
62
|
template: 'ide-rules/gemini-rules.md',
|
|
62
|
-
requiresDirectory:
|
|
63
|
+
requiresDirectory: false,
|
|
63
64
|
format: 'text',
|
|
64
65
|
agentFolder: path.join('.gemini', 'rules', 'grimoire', 'agents'),
|
|
65
66
|
},
|