the-frame-ai 0.3.0 → 0.3.1
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/init.js +6 -4
- package/src/update.js +6 -4
package/package.json
CHANGED
package/src/init.js
CHANGED
|
@@ -88,13 +88,15 @@ export async function init(target, flags = {}) {
|
|
|
88
88
|
// 2b. Copilot Chat support
|
|
89
89
|
const copilot = await promptCopilot(flags.yes);
|
|
90
90
|
if (copilot) {
|
|
91
|
-
const
|
|
92
|
-
ensureDir(
|
|
91
|
+
const promptsDest = join(target, '.github', 'prompts');
|
|
92
|
+
ensureDir(promptsDest);
|
|
93
93
|
for (const f of readdirSync(commandsDest).filter((f) => f.endsWith('.md'))) {
|
|
94
|
-
writeFile(join(
|
|
94
|
+
writeFile(join(promptsDest, f.replace(/\.md$/, '.prompt.md')), readFileSync(join(commandsDest, f), 'utf-8'));
|
|
95
95
|
}
|
|
96
|
+
const vscodeDest = join(target, '.vscode');
|
|
97
|
+
ensureDir(vscodeDest);
|
|
96
98
|
mergeVscodeSettings(join(vscodeDest, 'settings.json'));
|
|
97
|
-
logSuccess(`${commandCount} Copilot prompts → .
|
|
99
|
+
logSuccess(`${commandCount} Copilot prompts → .github/prompts/`);
|
|
98
100
|
}
|
|
99
101
|
|
|
100
102
|
// 3. Copy agents and apply quality.commands substitution
|
package/src/update.js
CHANGED
|
@@ -40,7 +40,7 @@ export async function update(target, flags = {}) {
|
|
|
40
40
|
}
|
|
41
41
|
if (config.copilot || flags.copilot) {
|
|
42
42
|
const files = readdirSync(join(TEMPLATES_DIR, 'commands')).filter((f) => f.endsWith('.md'));
|
|
43
|
-
files.forEach((f) => log(` ~ .
|
|
43
|
+
files.forEach((f) => log(` ~ .github/prompts/${f.replace(/\.md$/, '.prompt.md')}`));
|
|
44
44
|
total += files.length;
|
|
45
45
|
}
|
|
46
46
|
log(`\n Note: project files (STATE.md, MAP.md, memory/, etc.) are never updated`);
|
|
@@ -84,11 +84,13 @@ export async function update(target, flags = {}) {
|
|
|
84
84
|
|
|
85
85
|
// 4. Update Copilot prompts
|
|
86
86
|
if (config.copilot || flags.copilot) {
|
|
87
|
-
const
|
|
88
|
-
ensureDir(
|
|
87
|
+
const promptsDest = join(target, '.github', 'prompts');
|
|
88
|
+
ensureDir(promptsDest);
|
|
89
89
|
for (const f of readdirSync(commandsDest).filter((f) => f.endsWith('.md'))) {
|
|
90
|
-
writeFile(join(
|
|
90
|
+
writeFile(join(promptsDest, f.replace(/\.md$/, '.prompt.md')), readFileSync(join(commandsDest, f), 'utf-8'));
|
|
91
91
|
}
|
|
92
|
+
const vscodeDest = join(target, '.vscode');
|
|
93
|
+
ensureDir(vscodeDest);
|
|
92
94
|
mergeVscodeSettings(join(vscodeDest, 'settings.json'));
|
|
93
95
|
updated += readdirSync(commandsDest).filter((f) => f.endsWith('.md')).length;
|
|
94
96
|
if (flags.copilot && !config.copilot) {
|