grimoire-framework 1.0.11 → 1.0.13
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.13
|
|
11
|
+
generated_at: "2026-02-22T12:43:17.594Z"
|
|
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
|
},
|
|
@@ -118,7 +118,7 @@ class grimoireUpdater {
|
|
|
118
118
|
if (!isOnline) {
|
|
119
119
|
result.error = 'You appear to be offline. Please check your internet connection.';
|
|
120
120
|
} else {
|
|
121
|
-
result.error = 'Package
|
|
121
|
+
result.error = 'Package grimoire-framework not found on npm registry. This may be a local development installation.';
|
|
122
122
|
}
|
|
123
123
|
return result;
|
|
124
124
|
}
|
|
@@ -180,7 +180,7 @@ class grimoireUpdater {
|
|
|
180
180
|
if (fs.existsSync(localPackageJsonPath)) {
|
|
181
181
|
try {
|
|
182
182
|
const pkg = await fs.readJson(localPackageJsonPath);
|
|
183
|
-
if (pkg.name === '@grimoire/grimoire' || pkg.name === 'grimoire') {
|
|
183
|
+
if (pkg.name === 'grimoire-framework' || pkg.name === '@grimoire/grimoire' || pkg.name === 'grimoire') {
|
|
184
184
|
return { version: pkg.version, installedAt: null, mode: 'framework-development' };
|
|
185
185
|
}
|
|
186
186
|
} catch (error) {
|
|
@@ -199,7 +199,7 @@ class grimoireUpdater {
|
|
|
199
199
|
async getLatestVersion() {
|
|
200
200
|
return new Promise((resolve) => {
|
|
201
201
|
const request = https.get(
|
|
202
|
-
'https://registry.npmjs.org
|
|
202
|
+
'https://registry.npmjs.org/grimoire-framework/latest',
|
|
203
203
|
{ timeout: this.options.timeout },
|
|
204
204
|
(res) => {
|
|
205
205
|
let data = '';
|
|
@@ -406,7 +406,7 @@ class grimoireUpdater {
|
|
|
406
406
|
*/
|
|
407
407
|
async update(options = {}) {
|
|
408
408
|
const dryRun = options.dryRun === true;
|
|
409
|
-
const onProgress = options.onProgress || (() => {});
|
|
409
|
+
const onProgress = options.onProgress || (() => { });
|
|
410
410
|
|
|
411
411
|
const result = {
|
|
412
412
|
success: false,
|
|
@@ -587,7 +587,7 @@ class grimoireUpdater {
|
|
|
587
587
|
|
|
588
588
|
try {
|
|
589
589
|
// Use npm to update the package
|
|
590
|
-
const cmd = `npm install
|
|
590
|
+
const cmd = `npm install grimoire-framework@${targetVersion} --save-exact`;
|
|
591
591
|
this.log(`Running: ${cmd}`);
|
|
592
592
|
|
|
593
593
|
execSync(cmd, {
|