infernoflow 0.7.1 → 0.8.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/lib/commands/context.mjs +12 -1
- package/package.json +1 -1
package/lib/commands/context.mjs
CHANGED
|
@@ -42,9 +42,11 @@ export async function contextCommand(args) {
|
|
|
42
42
|
const decision = flag("--decision") || flag("-d");
|
|
43
43
|
const showOnly = has("--show") || has("-s");
|
|
44
44
|
const copyFlag = has("--copy") || has("-c");
|
|
45
|
+
const cursorFlag = has("--cursor");
|
|
46
|
+
const copilotFlag = has("--copilot");
|
|
45
47
|
const resetFlag= has("--reset");
|
|
46
48
|
|
|
47
|
-
console.log("\n "+bold("��� infernoflow — context"));
|
|
49
|
+
console.log("\n "+bold("��� infernoflow — context"));
|
|
48
50
|
console.log(" "+"─".repeat(50)+"\n");
|
|
49
51
|
|
|
50
52
|
if(!fs.existsSync(INFERNO_DIR)){
|
|
@@ -106,6 +108,15 @@ export async function contextCommand(args) {
|
|
|
106
108
|
console.log(ok ? green(" ✔ Copied to clipboard — paste with Ctrl+V") : yellow(" ⚠ Clipboard copy failed — open inferno/CONTEXT.md manually"));
|
|
107
109
|
}
|
|
108
110
|
|
|
111
|
+
if (cursorFlag) {
|
|
112
|
+
fs.writeFileSync(".cursorrules", md, "utf8");
|
|
113
|
+
console.log(green(" ✔ Written to .cursorrules — Cursor loads this automatically"));
|
|
114
|
+
}
|
|
115
|
+
if (copilotFlag) {
|
|
116
|
+
if (!fs.existsSync(".github")) fs.mkdirSync(".github");
|
|
117
|
+
fs.writeFileSync(".github/copilot-instructions.md", md, "utf8");
|
|
118
|
+
console.log(green(" ✔ Written to .github/copilot-instructions.md — Copilot loads this automatically"));
|
|
119
|
+
}
|
|
109
120
|
console.log("\n "+bold("Context Summary"));
|
|
110
121
|
console.log(" "+"─".repeat(50));
|
|
111
122
|
console.log(" Project "+contract.policyId+" — v"+version);
|