kirograph 0.14.0 → 0.15.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.md +128 -20
- package/dist/assets/logo.png +0 -0
- package/dist/bin/commands/help.js +3 -0
- package/dist/bin/commands/help.js.map +2 -2
- package/dist/bin/commands/memory.js +483 -0
- package/dist/bin/commands/memory.js.map +7 -0
- package/dist/bin/commands/uninit.js +22 -13
- package/dist/bin/commands/uninit.js.map +2 -2
- package/dist/bin/installer/config-prompt.js +37 -23
- package/dist/bin/installer/config-prompt.js.map +2 -2
- package/dist/bin/installer/hooks.js +53 -75
- package/dist/bin/installer/hooks.js.map +2 -2
- package/dist/bin/installer/index.js +9 -4
- package/dist/bin/installer/index.js.map +2 -2
- package/dist/bin/installer/prompts.js +37 -6
- package/dist/bin/installer/prompts.js.map +2 -2
- package/dist/bin/installer/steering.js +19 -0
- package/dist/bin/installer/steering.js.map +2 -2
- package/dist/bin/installer/targets/aider.js +72 -0
- package/dist/bin/installer/targets/aider.js.map +7 -0
- package/dist/bin/installer/targets/amp.js +91 -0
- package/dist/bin/installer/targets/amp.js.map +7 -0
- package/dist/bin/installer/targets/antigravity.js +109 -0
- package/dist/bin/installer/targets/antigravity.js.map +7 -0
- package/dist/bin/installer/targets/augment.js +81 -0
- package/dist/bin/installer/targets/augment.js.map +7 -0
- package/dist/bin/installer/targets/claude.js +1 -1
- package/dist/bin/installer/targets/claude.js.map +2 -2
- package/dist/bin/installer/targets/cline.js +91 -0
- package/dist/bin/installer/targets/cline.js.map +7 -0
- package/dist/bin/installer/targets/codex.js +1 -1
- package/dist/bin/installer/targets/codex.js.map +2 -2
- package/dist/bin/installer/targets/continue.js +107 -0
- package/dist/bin/installer/targets/continue.js.map +7 -0
- package/dist/bin/installer/targets/copilot.js +123 -0
- package/dist/bin/installer/targets/copilot.js.map +7 -0
- package/dist/bin/installer/targets/cursor.js +143 -0
- package/dist/bin/installer/targets/cursor.js.map +7 -0
- package/dist/bin/installer/targets/devin.js +148 -0
- package/dist/bin/installer/targets/devin.js.map +7 -0
- package/dist/bin/installer/targets/gemini-cli.js +126 -0
- package/dist/bin/installer/targets/gemini-cli.js.map +7 -0
- package/dist/bin/installer/targets/generic.js +120 -0
- package/dist/bin/installer/targets/generic.js.map +7 -0
- package/dist/bin/installer/targets/goose.js +72 -0
- package/dist/bin/installer/targets/goose.js.map +7 -0
- package/dist/bin/installer/targets/index.js.map +1 -1
- package/dist/bin/installer/targets/junie.js +105 -0
- package/dist/bin/installer/targets/junie.js.map +7 -0
- package/dist/bin/installer/targets/kilo.js +122 -0
- package/dist/bin/installer/targets/kilo.js.map +7 -0
- package/dist/bin/installer/targets/kiro.js +3 -3
- package/dist/bin/installer/targets/kiro.js.map +2 -2
- package/dist/bin/installer/targets/opencode.js +135 -0
- package/dist/bin/installer/targets/opencode.js.map +7 -0
- package/dist/bin/installer/targets/openhands.js +90 -0
- package/dist/bin/installer/targets/openhands.js.map +7 -0
- package/dist/bin/installer/targets/replit.js +72 -0
- package/dist/bin/installer/targets/replit.js.map +7 -0
- package/dist/bin/installer/targets/roo.js +96 -0
- package/dist/bin/installer/targets/roo.js.map +7 -0
- package/dist/bin/installer/targets/tabnine.js +82 -0
- package/dist/bin/installer/targets/tabnine.js.map +7 -0
- package/dist/bin/installer/targets/trae.js +84 -0
- package/dist/bin/installer/targets/trae.js.map +7 -0
- package/dist/bin/installer/targets/warp.js +97 -0
- package/dist/bin/installer/targets/warp.js.map +7 -0
- package/dist/bin/installer/targets/windsurf.js +141 -0
- package/dist/bin/installer/targets/windsurf.js.map +7 -0
- package/dist/bin/kirograph.js +3 -1
- package/dist/bin/kirograph.js.map +3 -3
- package/dist/compression/naive-cost.js +14 -0
- package/dist/compression/naive-cost.js.map +2 -2
- package/dist/compression/tracker.js +18 -4
- package/dist/compression/tracker.js.map +2 -2
- package/dist/compression/types.js.map +1 -1
- package/dist/config.js +33 -1
- package/dist/config.js.map +2 -2
- package/dist/db/database.js +17 -0
- package/dist/db/database.js.map +2 -2
- package/dist/db/memory-schema.sql +51 -0
- package/dist/index.js +3 -0
- package/dist/index.js.map +2 -2
- package/dist/mcp/tool-names.js +5 -1
- package/dist/mcp/tool-names.js.map +2 -2
- package/dist/mcp/tools.js +232 -3
- package/dist/mcp/tools.js.map +2 -2
- package/dist/memory/compress.js +142 -0
- package/dist/memory/compress.js.map +7 -0
- package/dist/memory/database.js +375 -0
- package/dist/memory/database.js.map +7 -0
- package/dist/memory/index.js +239 -0
- package/dist/memory/index.js.map +7 -0
- package/dist/memory/symbols.js +54 -0
- package/dist/memory/symbols.js.map +7 -0
- package/dist/memory/types.js +17 -0
- package/dist/memory/types.js.map +7 -0
- package/dist/memory/vectors.js +199 -0
- package/dist/memory/vectors.js.map +7 -0
- package/package.json +1 -1
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
var antigravity_exports = {};
|
|
30
|
+
__export(antigravity_exports, {
|
|
31
|
+
installAntigravityEarly: () => installAntigravityEarly,
|
|
32
|
+
installAntigravityLate: () => installAntigravityLate,
|
|
33
|
+
printAntigravityNextSteps: () => printAntigravityNextSteps,
|
|
34
|
+
uninitAntigravity: () => uninitAntigravity
|
|
35
|
+
});
|
|
36
|
+
module.exports = __toCommonJS(antigravity_exports);
|
|
37
|
+
var fs = __toESM(require("fs"));
|
|
38
|
+
var path = __toESM(require("path"));
|
|
39
|
+
var import_common = require("../common");
|
|
40
|
+
var import_instructions = require("../instructions");
|
|
41
|
+
const ANTIGRAVITY_BLOCK_ID = "antigravity";
|
|
42
|
+
function buildAntigravityHooks() {
|
|
43
|
+
return {
|
|
44
|
+
"kirograph-sync": {
|
|
45
|
+
Stop: [
|
|
46
|
+
{
|
|
47
|
+
hooks: [
|
|
48
|
+
{
|
|
49
|
+
type: "command",
|
|
50
|
+
command: "kirograph sync --quiet 2>/dev/null || true",
|
|
51
|
+
timeout: 30
|
|
52
|
+
}
|
|
53
|
+
]
|
|
54
|
+
}
|
|
55
|
+
]
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
function installAntigravityEarly(_projectRoot) {
|
|
60
|
+
}
|
|
61
|
+
function installAntigravityLate(projectRoot, cavemanMode, shellCompressionLevel, enableMemory) {
|
|
62
|
+
const opts = (0, import_common.buildInstructionOpts)(cavemanMode, shellCompressionLevel, enableMemory, true);
|
|
63
|
+
const instructionsPath = path.join(projectRoot, ".kirograph", "antigravity.md");
|
|
64
|
+
(0, import_common.ensureDir)(path.dirname(instructionsPath));
|
|
65
|
+
fs.writeFileSync(instructionsPath, (0, import_instructions.buildAgentInstructions)(opts));
|
|
66
|
+
console.log(` \u2713 Antigravity instructions written to ${instructionsPath}`);
|
|
67
|
+
const geminiPath = path.join(projectRoot, "GEMINI.md");
|
|
68
|
+
const changed = (0, import_common.upsertGeneratedBlock)(geminiPath, ANTIGRAVITY_BLOCK_ID, "## KiroGraph", (0, import_instructions.buildAgentInstructions)(opts));
|
|
69
|
+
console.log(changed ? ` \u2713 GEMINI.md updated with KiroGraph instructions` : ` \u2713 GEMINI.md already up to date`);
|
|
70
|
+
const hooksPath = path.join(projectRoot, ".agents", "hooks.json");
|
|
71
|
+
(0, import_common.ensureDir)(path.dirname(hooksPath));
|
|
72
|
+
const existing = (0, import_common.readJson)(hooksPath);
|
|
73
|
+
const kgHooks = buildAntigravityHooks();
|
|
74
|
+
for (const [name, config] of Object.entries(kgHooks)) {
|
|
75
|
+
if (!existing[name]) {
|
|
76
|
+
existing[name] = config;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
(0, import_common.writeJson)(hooksPath, existing);
|
|
80
|
+
console.log(` \u2713 Antigravity hooks written to ${hooksPath}`);
|
|
81
|
+
}
|
|
82
|
+
function uninitAntigravity(projectRoot) {
|
|
83
|
+
const geminiPath = path.join(projectRoot, "GEMINI.md");
|
|
84
|
+
if ((0, import_common.removeGeneratedBlock)(geminiPath, ANTIGRAVITY_BLOCK_ID)) {
|
|
85
|
+
console.log(` \u2713 Removed KiroGraph block from GEMINI.md`);
|
|
86
|
+
}
|
|
87
|
+
const hooksPath = path.join(projectRoot, ".agents", "hooks.json");
|
|
88
|
+
if (fs.existsSync(hooksPath)) {
|
|
89
|
+
const config = (0, import_common.readJson)(hooksPath);
|
|
90
|
+
if (config["kirograph-sync"]) {
|
|
91
|
+
delete config["kirograph-sync"];
|
|
92
|
+
(0, import_common.writeJson)(hooksPath, config);
|
|
93
|
+
console.log(` \u2713 Removed kirograph-sync from .agents/hooks.json`);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
function printAntigravityNextSteps(projectRoot) {
|
|
98
|
+
console.log("\n Done! KiroGraph instructions are in GEMINI.md.");
|
|
99
|
+
console.log(" Auto-sync hook installed in .agents/hooks.json");
|
|
100
|
+
(0, import_common.printMcpSetup)("~/.gemini/antigravity/mcp_config.json", projectRoot);
|
|
101
|
+
}
|
|
102
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
103
|
+
0 && (module.exports = {
|
|
104
|
+
installAntigravityEarly,
|
|
105
|
+
installAntigravityLate,
|
|
106
|
+
printAntigravityNextSteps,
|
|
107
|
+
uninitAntigravity
|
|
108
|
+
});
|
|
109
|
+
//# sourceMappingURL=antigravity.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/bin/installer/targets/antigravity.ts"],
|
|
4
|
+
"sourcesContent": ["/**\n * Antigravity IDE target.\n *\n * MCP: user-scoped at ~/.gemini/antigravity/mcp_config.json (print instructions)\n * Hooks: .agents/hooks.json (workspace-level)\n * Instructions: GEMINI.md (upsert block)\n */\n\nimport * as fs from 'fs';\nimport * as path from 'path';\nimport { CavemanMode } from '../caveman';\nimport {\n ensureDir,\n buildInstructionOpts,\n readJson,\n writeJson,\n printMcpSetup,\n upsertGeneratedBlock,\n removeGeneratedBlock,\n} from '../common';\nimport { buildAgentInstructions } from '../instructions';\n\nconst ANTIGRAVITY_BLOCK_ID = 'antigravity';\n\nfunction buildAntigravityHooks(): object {\n return {\n 'kirograph-sync': {\n Stop: [\n {\n hooks: [\n {\n type: 'command',\n command: 'kirograph sync --quiet 2>/dev/null || true',\n timeout: 30,\n },\n ],\n },\n ],\n },\n };\n}\n\nexport function installAntigravityEarly(_projectRoot: string): void {\n // Antigravity IDE MCP is user-scoped at ~/.gemini/antigravity/mcp_config.json.\n // We print the setup instructions in printNextSteps instead of writing outside the project.\n}\n\nexport function installAntigravityLate(projectRoot: string, cavemanMode?: CavemanMode | 'off', shellCompressionLevel?: string, enableMemory?: boolean): void {\n const opts = buildInstructionOpts(cavemanMode, shellCompressionLevel, enableMemory, true);\n\n const instructionsPath = path.join(projectRoot, '.kirograph', 'antigravity.md');\n ensureDir(path.dirname(instructionsPath));\n fs.writeFileSync(instructionsPath, buildAgentInstructions(opts));\n console.log(` \u2713 Antigravity instructions written to ${instructionsPath}`);\n\n const geminiPath = path.join(projectRoot, 'GEMINI.md');\n const changed = upsertGeneratedBlock(geminiPath, ANTIGRAVITY_BLOCK_ID, '## KiroGraph', buildAgentInstructions(opts));\n console.log(changed\n ? ` \u2713 GEMINI.md updated with KiroGraph instructions`\n : ` \u2713 GEMINI.md already up to date`);\n\n // Write hooks to .agents/hooks.json\n const hooksPath = path.join(projectRoot, '.agents', 'hooks.json');\n ensureDir(path.dirname(hooksPath));\n const existing = readJson(hooksPath);\n const kgHooks = buildAntigravityHooks() as any;\n // Merge without overwriting existing hooks\n for (const [name, config] of Object.entries(kgHooks)) {\n if (!existing[name]) {\n existing[name] = config;\n }\n }\n writeJson(hooksPath, existing);\n console.log(` \u2713 Antigravity hooks written to ${hooksPath}`);\n}\n\nexport function uninitAntigravity(projectRoot: string): void {\n const geminiPath = path.join(projectRoot, 'GEMINI.md');\n if (removeGeneratedBlock(geminiPath, ANTIGRAVITY_BLOCK_ID)) {\n console.log(` \u2713 Removed KiroGraph block from GEMINI.md`);\n }\n\n // Remove hooks\n const hooksPath = path.join(projectRoot, '.agents', 'hooks.json');\n if (fs.existsSync(hooksPath)) {\n const config = readJson(hooksPath);\n if (config['kirograph-sync']) {\n delete config['kirograph-sync'];\n writeJson(hooksPath, config);\n console.log(` \u2713 Removed kirograph-sync from .agents/hooks.json`);\n }\n }\n}\n\nexport function printAntigravityNextSteps(projectRoot: string): void {\n console.log('\\n Done! KiroGraph instructions are in GEMINI.md.');\n console.log(' Auto-sync hook installed in .agents/hooks.json');\n printMcpSetup('~/.gemini/antigravity/mcp_config.json', projectRoot);\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAQA,SAAoB;AACpB,WAAsB;AAEtB,oBAQO;AACP,0BAAuC;AAEvC,MAAM,uBAAuB;AAE7B,SAAS,wBAAgC;AACvC,SAAO;AAAA,IACL,kBAAkB;AAAA,MAChB,MAAM;AAAA,QACJ;AAAA,UACE,OAAO;AAAA,YACL;AAAA,cACE,MAAM;AAAA,cACN,SAAS;AAAA,cACT,SAAS;AAAA,YACX;AAAA,UACF;AAAA,QACF;AAAA,MACF;AAAA,IACF;AAAA,EACF;AACF;AAEO,SAAS,wBAAwB,cAA4B;AAGpE;AAEO,SAAS,uBAAuB,aAAqB,aAAmC,uBAAgC,cAA8B;AAC3J,QAAM,WAAO,oCAAqB,aAAa,uBAAuB,cAAc,IAAI;AAExF,QAAM,mBAAmB,KAAK,KAAK,aAAa,cAAc,gBAAgB;AAC9E,+BAAU,KAAK,QAAQ,gBAAgB,CAAC;AACxC,KAAG,cAAc,sBAAkB,4CAAuB,IAAI,CAAC;AAC/D,UAAQ,IAAI,gDAA2C,gBAAgB,EAAE;AAEzE,QAAM,aAAa,KAAK,KAAK,aAAa,WAAW;AACrD,QAAM,cAAU,oCAAqB,YAAY,sBAAsB,oBAAgB,4CAAuB,IAAI,CAAC;AACnH,UAAQ,IAAI,UACR,2DACA,uCAAkC;AAGtC,QAAM,YAAY,KAAK,KAAK,aAAa,WAAW,YAAY;AAChE,+BAAU,KAAK,QAAQ,SAAS,CAAC;AACjC,QAAM,eAAW,wBAAS,SAAS;AACnC,QAAM,UAAU,sBAAsB;AAEtC,aAAW,CAAC,MAAM,MAAM,KAAK,OAAO,QAAQ,OAAO,GAAG;AACpD,QAAI,CAAC,SAAS,IAAI,GAAG;AACnB,eAAS,IAAI,IAAI;AAAA,IACnB;AAAA,EACF;AACA,+BAAU,WAAW,QAAQ;AAC7B,UAAQ,IAAI,yCAAoC,SAAS,EAAE;AAC7D;AAEO,SAAS,kBAAkB,aAA2B;AAC3D,QAAM,aAAa,KAAK,KAAK,aAAa,WAAW;AACrD,UAAI,oCAAqB,YAAY,oBAAoB,GAAG;AAC1D,YAAQ,IAAI,iDAA4C;AAAA,EAC1D;AAGA,QAAM,YAAY,KAAK,KAAK,aAAa,WAAW,YAAY;AAChE,MAAI,GAAG,WAAW,SAAS,GAAG;AAC5B,UAAM,aAAS,wBAAS,SAAS;AACjC,QAAI,OAAO,gBAAgB,GAAG;AAC5B,aAAO,OAAO,gBAAgB;AAC9B,mCAAU,WAAW,MAAM;AAC3B,cAAQ,IAAI,yDAAoD;AAAA,IAClE;AAAA,EACF;AACF;AAEO,SAAS,0BAA0B,aAA2B;AACnE,UAAQ,IAAI,oDAAoD;AAChE,UAAQ,IAAI,kDAAkD;AAC9D,mCAAc,yCAAyC,WAAW;AACpE;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
var augment_exports = {};
|
|
30
|
+
__export(augment_exports, {
|
|
31
|
+
installAugmentEarly: () => installAugmentEarly,
|
|
32
|
+
installAugmentLate: () => installAugmentLate,
|
|
33
|
+
printAugmentNextSteps: () => printAugmentNextSteps,
|
|
34
|
+
uninitAugment: () => uninitAugment
|
|
35
|
+
});
|
|
36
|
+
module.exports = __toCommonJS(augment_exports);
|
|
37
|
+
var fs = __toESM(require("fs"));
|
|
38
|
+
var path = __toESM(require("path"));
|
|
39
|
+
var import_common = require("../common");
|
|
40
|
+
var import_instructions = require("../instructions");
|
|
41
|
+
var import_common2 = require("../common");
|
|
42
|
+
const AUGMENT_BLOCK_ID = "augment";
|
|
43
|
+
function installAugmentEarly(projectRoot) {
|
|
44
|
+
const mcpPath = path.join(projectRoot, ".augment", "mcp.json");
|
|
45
|
+
(0, import_common.writeMcpServersConfig)(mcpPath, {
|
|
46
|
+
command: import_common.KIROGRAPH_COMMAND,
|
|
47
|
+
args: import_common.KIROGRAPH_MCP_ARGS
|
|
48
|
+
});
|
|
49
|
+
console.log(` \u2713 Augment Code MCP server registered in ${mcpPath}`);
|
|
50
|
+
}
|
|
51
|
+
function installAugmentLate(projectRoot, cavemanMode, shellCompressionLevel, enableMemory) {
|
|
52
|
+
const instructionsPath = path.join(projectRoot, ".kirograph", "augment.md");
|
|
53
|
+
(0, import_common.ensureDir)(path.dirname(instructionsPath));
|
|
54
|
+
fs.writeFileSync(instructionsPath, (0, import_instructions.buildAgentInstructions)((0, import_common2.buildInstructionOpts)(cavemanMode, shellCompressionLevel, enableMemory)));
|
|
55
|
+
console.log(` \u2713 Augment instructions written to ${instructionsPath}`);
|
|
56
|
+
const guidelinesPath = path.join(projectRoot, "augment-guidelines.md");
|
|
57
|
+
const changed = (0, import_common.upsertGeneratedBlock)(guidelinesPath, AUGMENT_BLOCK_ID, "## KiroGraph", (0, import_instructions.buildAgentInstructions)((0, import_common2.buildInstructionOpts)(cavemanMode, shellCompressionLevel, enableMemory)));
|
|
58
|
+
console.log(changed ? ` \u2713 augment-guidelines.md updated with KiroGraph instructions` : ` \u2713 augment-guidelines.md already up to date`);
|
|
59
|
+
}
|
|
60
|
+
function uninitAugment(projectRoot) {
|
|
61
|
+
const mcpPath = path.join(projectRoot, ".augment", "mcp.json");
|
|
62
|
+
if ((0, import_common.removeMcpServersConfig)(mcpPath)) {
|
|
63
|
+
console.log(` \u2713 Removed kirograph from .augment/mcp.json`);
|
|
64
|
+
}
|
|
65
|
+
const guidelinesPath = path.join(projectRoot, "augment-guidelines.md");
|
|
66
|
+
if ((0, import_common.removeGeneratedBlock)(guidelinesPath, AUGMENT_BLOCK_ID)) {
|
|
67
|
+
console.log(` \u2713 Removed KiroGraph block from augment-guidelines.md`);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
function printAugmentNextSteps() {
|
|
71
|
+
console.log("\n Done! Restart Augment Code for the MCP server to load.");
|
|
72
|
+
console.log(" KiroGraph instructions are in augment-guidelines.md\n");
|
|
73
|
+
}
|
|
74
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
75
|
+
0 && (module.exports = {
|
|
76
|
+
installAugmentEarly,
|
|
77
|
+
installAugmentLate,
|
|
78
|
+
printAugmentNextSteps,
|
|
79
|
+
uninitAugment
|
|
80
|
+
});
|
|
81
|
+
//# sourceMappingURL=augment.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/bin/installer/targets/augment.ts"],
|
|
4
|
+
"sourcesContent": ["import * as fs from 'fs';\nimport * as path from 'path';\nimport { CavemanMode } from '../caveman';\nimport {\n ensureDir,\n KIROGRAPH_COMMAND,\n KIROGRAPH_MCP_ARGS,\n removeMcpServersConfig,\n upsertGeneratedBlock,\n removeGeneratedBlock,\n writeMcpServersConfig,\n} from '../common';\nimport { buildAgentInstructions } from '../instructions';\nimport { buildInstructionOpts } from '../common';\n\nconst AUGMENT_BLOCK_ID = 'augment';\n\nexport function installAugmentEarly(projectRoot: string): void {\n const mcpPath = path.join(projectRoot, '.augment', 'mcp.json');\n writeMcpServersConfig(mcpPath, {\n command: KIROGRAPH_COMMAND,\n args: KIROGRAPH_MCP_ARGS,\n });\n console.log(` \u2713 Augment Code MCP server registered in ${mcpPath}`);\n}\n\nexport function installAugmentLate(projectRoot: string, cavemanMode?: CavemanMode | 'off', shellCompressionLevel?: string, enableMemory?: boolean): void {\n const instructionsPath = path.join(projectRoot, '.kirograph', 'augment.md');\n ensureDir(path.dirname(instructionsPath));\n fs.writeFileSync(instructionsPath, buildAgentInstructions(buildInstructionOpts(cavemanMode, shellCompressionLevel, enableMemory)));\n console.log(` \u2713 Augment instructions written to ${instructionsPath}`);\n\n const guidelinesPath = path.join(projectRoot, 'augment-guidelines.md');\n const changed = upsertGeneratedBlock(guidelinesPath, AUGMENT_BLOCK_ID, '## KiroGraph', buildAgentInstructions(buildInstructionOpts(cavemanMode, shellCompressionLevel, enableMemory)));\n console.log(changed\n ? ` \u2713 augment-guidelines.md updated with KiroGraph instructions`\n : ` \u2713 augment-guidelines.md already up to date`);\n}\n\nexport function uninitAugment(projectRoot: string): void {\n const mcpPath = path.join(projectRoot, '.augment', 'mcp.json');\n if (removeMcpServersConfig(mcpPath)) {\n console.log(` \u2713 Removed kirograph from .augment/mcp.json`);\n }\n\n const guidelinesPath = path.join(projectRoot, 'augment-guidelines.md');\n if (removeGeneratedBlock(guidelinesPath, AUGMENT_BLOCK_ID)) {\n console.log(` \u2713 Removed KiroGraph block from augment-guidelines.md`);\n }\n}\n\nexport function printAugmentNextSteps(): void {\n console.log('\\n Done! Restart Augment Code for the MCP server to load.');\n console.log(' KiroGraph instructions are in augment-guidelines.md\\n');\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SAAoB;AACpB,WAAsB;AAEtB,oBAQO;AACP,0BAAuC;AACvC,IAAAA,iBAAqC;AAErC,MAAM,mBAAmB;AAElB,SAAS,oBAAoB,aAA2B;AAC7D,QAAM,UAAU,KAAK,KAAK,aAAa,YAAY,UAAU;AAC7D,2CAAsB,SAAS;AAAA,IAC7B,SAAS;AAAA,IACT,MAAM;AAAA,EACR,CAAC;AACD,UAAQ,IAAI,kDAA6C,OAAO,EAAE;AACpE;AAEO,SAAS,mBAAmB,aAAqB,aAAmC,uBAAgC,cAA8B;AACvJ,QAAM,mBAAmB,KAAK,KAAK,aAAa,cAAc,YAAY;AAC1E,+BAAU,KAAK,QAAQ,gBAAgB,CAAC;AACxC,KAAG,cAAc,sBAAkB,gDAAuB,qCAAqB,aAAa,uBAAuB,YAAY,CAAC,CAAC;AACjI,UAAQ,IAAI,4CAAuC,gBAAgB,EAAE;AAErE,QAAM,iBAAiB,KAAK,KAAK,aAAa,uBAAuB;AACrE,QAAM,cAAU,oCAAqB,gBAAgB,kBAAkB,oBAAgB,gDAAuB,qCAAqB,aAAa,uBAAuB,YAAY,CAAC,CAAC;AACrL,UAAQ,IAAI,UACR,uEACA,mDAA8C;AACpD;AAEO,SAAS,cAAc,aAA2B;AACvD,QAAM,UAAU,KAAK,KAAK,aAAa,YAAY,UAAU;AAC7D,UAAI,sCAAuB,OAAO,GAAG;AACnC,YAAQ,IAAI,mDAA8C;AAAA,EAC5D;AAEA,QAAM,iBAAiB,KAAK,KAAK,aAAa,uBAAuB;AACrE,UAAI,oCAAqB,gBAAgB,gBAAgB,GAAG;AAC1D,YAAQ,IAAI,6DAAwD;AAAA,EACtE;AACF;AAEO,SAAS,wBAA8B;AAC5C,UAAQ,IAAI,4DAA4D;AACxE,UAAQ,IAAI,yDAAyD;AACvE;",
|
|
6
|
+
"names": ["import_common"]
|
|
7
|
+
}
|
|
@@ -47,7 +47,7 @@ function installClaudeEarly(projectRoot) {
|
|
|
47
47
|
});
|
|
48
48
|
console.log(` \u2713 Claude MCP server registered in ${mcpPath}`);
|
|
49
49
|
}
|
|
50
|
-
function installClaudeLate(projectRoot, cavemanMode) {
|
|
50
|
+
function installClaudeLate(projectRoot, cavemanMode, _shellCompressionLevel, _enableMemory) {
|
|
51
51
|
const instructionsPath = path.join(projectRoot, ".kirograph", "claude.md");
|
|
52
52
|
(0, import_common.ensureDir)(path.dirname(instructionsPath));
|
|
53
53
|
fs.writeFileSync(instructionsPath, (0, import_instructions.buildAgentInstructions)(cavemanMode));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/bin/installer/targets/claude.ts"],
|
|
4
|
-
"sourcesContent": ["import * as fs from 'fs';\nimport * as path from 'path';\nimport { CavemanMode } from '../caveman';\nimport {\n appendImportLine,\n ensureDir,\n KIROGRAPH_COMMAND,\n KIROGRAPH_MCP_ARGS,\n removeMcpServersConfig,\n removeImportLine,\n writeMcpServersConfig,\n} from '../common';\nimport { buildAgentInstructions } from '../instructions';\n\nconst CLAUDE_IMPORT = '@.kirograph/claude.md';\n\nexport function installClaudeEarly(projectRoot: string): void {\n const mcpPath = path.join(projectRoot, '.mcp.json');\n writeMcpServersConfig(mcpPath, {\n command: KIROGRAPH_COMMAND,\n args: KIROGRAPH_MCP_ARGS,\n });\n console.log(` \u2713 Claude MCP server registered in ${mcpPath}`);\n}\n\nexport function installClaudeLate(projectRoot: string, cavemanMode?: CavemanMode | 'off'): void {\n const instructionsPath = path.join(projectRoot, '.kirograph', 'claude.md');\n ensureDir(path.dirname(instructionsPath));\n fs.writeFileSync(instructionsPath, buildAgentInstructions(cavemanMode));\n console.log(` \u2713 Claude instructions written to ${instructionsPath}`);\n\n const memoryPath = path.join(projectRoot, 'CLAUDE.md');\n const changed = appendImportLine(memoryPath, CLAUDE_IMPORT, '## KiroGraph');\n console.log(changed\n ? ` \u2713 Claude project memory updated in ${memoryPath}`\n : ` \u2713 Claude project memory already imports ${CLAUDE_IMPORT}`);\n}\n\nexport function uninitClaude(projectRoot: string): void {\n const mcpPath = path.join(projectRoot, '.mcp.json');\n if (removeMcpServersConfig(mcpPath)) {\n console.log(` \u2713 Removed kirograph from .mcp.json`);\n }\n\n const memoryPath = path.join(projectRoot, 'CLAUDE.md');\n if (removeImportLine(memoryPath, CLAUDE_IMPORT)) {\n console.log(` \u2713 Removed KiroGraph import from CLAUDE.md`);\n }\n}\n\nexport function printClaudeNextSteps(): void {\n console.log('\\n Done! Restart Claude Code for the MCP server and project memory to load.\\n');\n}\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SAAoB;AACpB,WAAsB;AAEtB,oBAQO;AACP,0BAAuC;AAEvC,MAAM,gBAAgB;AAEf,SAAS,mBAAmB,aAA2B;AAC5D,QAAM,UAAU,KAAK,KAAK,aAAa,WAAW;AAClD,2CAAsB,SAAS;AAAA,IAC7B,SAAS;AAAA,IACT,MAAM;AAAA,EACR,CAAC;AACD,UAAQ,IAAI,4CAAuC,OAAO,EAAE;AAC9D;AAEO,SAAS,kBAAkB,aAAqB,
|
|
4
|
+
"sourcesContent": ["import * as fs from 'fs';\nimport * as path from 'path';\nimport { CavemanMode } from '../caveman';\nimport {\n appendImportLine,\n ensureDir,\n KIROGRAPH_COMMAND,\n KIROGRAPH_MCP_ARGS,\n removeMcpServersConfig,\n removeImportLine,\n writeMcpServersConfig,\n} from '../common';\nimport { buildAgentInstructions } from '../instructions';\n\nconst CLAUDE_IMPORT = '@.kirograph/claude.md';\n\nexport function installClaudeEarly(projectRoot: string): void {\n const mcpPath = path.join(projectRoot, '.mcp.json');\n writeMcpServersConfig(mcpPath, {\n command: KIROGRAPH_COMMAND,\n args: KIROGRAPH_MCP_ARGS,\n });\n console.log(` \u2713 Claude MCP server registered in ${mcpPath}`);\n}\n\nexport function installClaudeLate(projectRoot: string, cavemanMode?: CavemanMode | 'off', _shellCompressionLevel?: string, _enableMemory?: boolean): void {\n const instructionsPath = path.join(projectRoot, '.kirograph', 'claude.md');\n ensureDir(path.dirname(instructionsPath));\n fs.writeFileSync(instructionsPath, buildAgentInstructions(cavemanMode));\n console.log(` \u2713 Claude instructions written to ${instructionsPath}`);\n\n const memoryPath = path.join(projectRoot, 'CLAUDE.md');\n const changed = appendImportLine(memoryPath, CLAUDE_IMPORT, '## KiroGraph');\n console.log(changed\n ? ` \u2713 Claude project memory updated in ${memoryPath}`\n : ` \u2713 Claude project memory already imports ${CLAUDE_IMPORT}`);\n}\n\nexport function uninitClaude(projectRoot: string): void {\n const mcpPath = path.join(projectRoot, '.mcp.json');\n if (removeMcpServersConfig(mcpPath)) {\n console.log(` \u2713 Removed kirograph from .mcp.json`);\n }\n\n const memoryPath = path.join(projectRoot, 'CLAUDE.md');\n if (removeImportLine(memoryPath, CLAUDE_IMPORT)) {\n console.log(` \u2713 Removed KiroGraph import from CLAUDE.md`);\n }\n}\n\nexport function printClaudeNextSteps(): void {\n console.log('\\n Done! Restart Claude Code for the MCP server and project memory to load.\\n');\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SAAoB;AACpB,WAAsB;AAEtB,oBAQO;AACP,0BAAuC;AAEvC,MAAM,gBAAgB;AAEf,SAAS,mBAAmB,aAA2B;AAC5D,QAAM,UAAU,KAAK,KAAK,aAAa,WAAW;AAClD,2CAAsB,SAAS;AAAA,IAC7B,SAAS;AAAA,IACT,MAAM;AAAA,EACR,CAAC;AACD,UAAQ,IAAI,4CAAuC,OAAO,EAAE;AAC9D;AAEO,SAAS,kBAAkB,aAAqB,aAAmC,wBAAiC,eAA+B;AACxJ,QAAM,mBAAmB,KAAK,KAAK,aAAa,cAAc,WAAW;AACzE,+BAAU,KAAK,QAAQ,gBAAgB,CAAC;AACxC,KAAG,cAAc,sBAAkB,4CAAuB,WAAW,CAAC;AACtE,UAAQ,IAAI,2CAAsC,gBAAgB,EAAE;AAEpE,QAAM,aAAa,KAAK,KAAK,aAAa,WAAW;AACrD,QAAM,cAAU,gCAAiB,YAAY,eAAe,cAAc;AAC1E,UAAQ,IAAI,UACR,6CAAwC,UAAU,KAClD,kDAA6C,aAAa,EAAE;AAClE;AAEO,SAAS,aAAa,aAA2B;AACtD,QAAM,UAAU,KAAK,KAAK,aAAa,WAAW;AAClD,UAAI,sCAAuB,OAAO,GAAG;AACnC,YAAQ,IAAI,2CAAsC;AAAA,EACpD;AAEA,QAAM,aAAa,KAAK,KAAK,aAAa,WAAW;AACrD,UAAI,gCAAiB,YAAY,aAAa,GAAG;AAC/C,YAAQ,IAAI,kDAA6C;AAAA,EAC3D;AACF;AAEO,SAAS,uBAA6B;AAC3C,UAAQ,IAAI,gFAAgF;AAC9F;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
var cline_exports = {};
|
|
30
|
+
__export(cline_exports, {
|
|
31
|
+
installClineEarly: () => installClineEarly,
|
|
32
|
+
installClineLate: () => installClineLate,
|
|
33
|
+
printClineNextSteps: () => printClineNextSteps,
|
|
34
|
+
uninitCline: () => uninitCline
|
|
35
|
+
});
|
|
36
|
+
module.exports = __toCommonJS(cline_exports);
|
|
37
|
+
var fs = __toESM(require("fs"));
|
|
38
|
+
var path = __toESM(require("path"));
|
|
39
|
+
var import_common = require("../common");
|
|
40
|
+
var import_instructions = require("../instructions");
|
|
41
|
+
const CLINE_RULES_FILE = "kirograph.md";
|
|
42
|
+
const CLINE_HOOK_SCRIPT = "#!/bin/sh\nkirograph sync --quiet 2>/dev/null || true\n";
|
|
43
|
+
function installClineEarly(_projectRoot) {
|
|
44
|
+
}
|
|
45
|
+
function installClineLate(projectRoot, cavemanMode, shellCompressionLevel, enableMemory) {
|
|
46
|
+
const opts = (0, import_common.buildInstructionOpts)(cavemanMode, shellCompressionLevel, enableMemory, true);
|
|
47
|
+
const instructionsPath = path.join(projectRoot, ".kirograph", "cline.md");
|
|
48
|
+
(0, import_common.ensureDir)(path.dirname(instructionsPath));
|
|
49
|
+
fs.writeFileSync(instructionsPath, (0, import_instructions.buildAgentInstructions)(opts));
|
|
50
|
+
console.log(` \u2713 Cline instructions written to ${instructionsPath}`);
|
|
51
|
+
const rulesDir = path.join(projectRoot, ".clinerules");
|
|
52
|
+
if (fs.existsSync(rulesDir) && fs.statSync(rulesDir).isFile()) {
|
|
53
|
+
fs.unlinkSync(rulesDir);
|
|
54
|
+
}
|
|
55
|
+
(0, import_common.ensureDir)(rulesDir);
|
|
56
|
+
const rulePath = path.join(rulesDir, CLINE_RULES_FILE);
|
|
57
|
+
fs.writeFileSync(rulePath, (0, import_instructions.buildAgentInstructions)(opts));
|
|
58
|
+
console.log(` \u2713 Cline rule written to ${rulePath}`);
|
|
59
|
+
const hooksDir = path.join(projectRoot, ".clinerules", "hooks");
|
|
60
|
+
(0, import_common.ensureDir)(hooksDir);
|
|
61
|
+
const hookPath = path.join(hooksDir, "task_completed");
|
|
62
|
+
fs.writeFileSync(hookPath, CLINE_HOOK_SCRIPT, { mode: 493 });
|
|
63
|
+
console.log(` \u2713 Cline hook written to ${hookPath}`);
|
|
64
|
+
}
|
|
65
|
+
function uninitCline(projectRoot) {
|
|
66
|
+
const rulePath = path.join(projectRoot, ".clinerules", CLINE_RULES_FILE);
|
|
67
|
+
if (fs.existsSync(rulePath)) {
|
|
68
|
+
fs.unlinkSync(rulePath);
|
|
69
|
+
console.log(` \u2713 Removed .clinerules/${CLINE_RULES_FILE}`);
|
|
70
|
+
}
|
|
71
|
+
const hookPath = path.join(projectRoot, ".clinerules", "hooks", "task_completed");
|
|
72
|
+
if (fs.existsSync(hookPath)) {
|
|
73
|
+
const content = fs.readFileSync(hookPath, "utf8");
|
|
74
|
+
if (content.includes("kirograph")) {
|
|
75
|
+
fs.unlinkSync(hookPath);
|
|
76
|
+
console.log(` \u2713 Removed Cline hook .clinerules/hooks/task_completed`);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
function printClineNextSteps(projectRoot) {
|
|
81
|
+
console.log("\n Done! KiroGraph rule and hook are in .clinerules/");
|
|
82
|
+
(0, import_common.printMcpSetup)("~/.cline/mcp.json", projectRoot);
|
|
83
|
+
}
|
|
84
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
85
|
+
0 && (module.exports = {
|
|
86
|
+
installClineEarly,
|
|
87
|
+
installClineLate,
|
|
88
|
+
printClineNextSteps,
|
|
89
|
+
uninitCline
|
|
90
|
+
});
|
|
91
|
+
//# sourceMappingURL=cline.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/bin/installer/targets/cline.ts"],
|
|
4
|
+
"sourcesContent": ["/**\n * Cline target.\n *\n * MCP: .cline/mcp_settings.json\n * Rules: .clinerules/kirograph.md (directory-based, not a flat file)\n * Hooks: .cline/hooks/task_completed (executable script)\n */\n\nimport * as fs from 'fs';\nimport * as path from 'path';\nimport { CavemanMode } from '../caveman';\nimport {\n ensureDir,\n buildInstructionOpts,\n printMcpSetup,\n} from '../common';\nimport { buildAgentInstructions } from '../instructions';\n\nconst CLINE_RULES_FILE = 'kirograph.md';\nconst CLINE_HOOK_SCRIPT = '#!/bin/sh\\nkirograph sync --quiet 2>/dev/null || true\\n';\n\nexport function installClineEarly(_projectRoot: string): void {\n // Cline MCP is user-scoped at ~/.cline/mcp.json.\n // We print the setup instructions in printNextSteps.\n}\n\nexport function installClineLate(projectRoot: string, cavemanMode?: CavemanMode | 'off', shellCompressionLevel?: string, enableMemory?: boolean): void {\n const opts = buildInstructionOpts(cavemanMode, shellCompressionLevel, enableMemory, true);\n\n const instructionsPath = path.join(projectRoot, '.kirograph', 'cline.md');\n ensureDir(path.dirname(instructionsPath));\n fs.writeFileSync(instructionsPath, buildAgentInstructions(opts));\n console.log(` \u2713 Cline instructions written to ${instructionsPath}`);\n\n // Write rules file inside .clinerules/ directory\n const rulesDir = path.join(projectRoot, '.clinerules');\n // If .clinerules exists as a flat file (legacy), remove it first\n if (fs.existsSync(rulesDir) && fs.statSync(rulesDir).isFile()) {\n fs.unlinkSync(rulesDir);\n }\n ensureDir(rulesDir);\n const rulePath = path.join(rulesDir, CLINE_RULES_FILE);\n fs.writeFileSync(rulePath, buildAgentInstructions(opts));\n console.log(` \u2713 Cline rule written to ${rulePath}`);\n\n // Write hook script\n const hooksDir = path.join(projectRoot, '.clinerules', 'hooks');\n ensureDir(hooksDir);\n const hookPath = path.join(hooksDir, 'task_completed');\n fs.writeFileSync(hookPath, CLINE_HOOK_SCRIPT, { mode: 0o755 });\n console.log(` \u2713 Cline hook written to ${hookPath}`);\n}\n\nexport function uninitCline(projectRoot: string): void {\n // Remove rule file\n const rulePath = path.join(projectRoot, '.clinerules', CLINE_RULES_FILE);\n if (fs.existsSync(rulePath)) {\n fs.unlinkSync(rulePath);\n console.log(` \u2713 Removed .clinerules/${CLINE_RULES_FILE}`);\n }\n\n // Remove hook\n const hookPath = path.join(projectRoot, '.clinerules', 'hooks', 'task_completed');\n if (fs.existsSync(hookPath)) {\n const content = fs.readFileSync(hookPath, 'utf8');\n if (content.includes('kirograph')) {\n fs.unlinkSync(hookPath);\n console.log(` \u2713 Removed Cline hook .clinerules/hooks/task_completed`);\n }\n }\n}\n\nexport function printClineNextSteps(projectRoot: string): void {\n console.log('\\n Done! KiroGraph rule and hook are in .clinerules/');\n printMcpSetup('~/.cline/mcp.json', projectRoot);\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAQA,SAAoB;AACpB,WAAsB;AAEtB,oBAIO;AACP,0BAAuC;AAEvC,MAAM,mBAAmB;AACzB,MAAM,oBAAoB;AAEnB,SAAS,kBAAkB,cAA4B;AAG9D;AAEO,SAAS,iBAAiB,aAAqB,aAAmC,uBAAgC,cAA8B;AACrJ,QAAM,WAAO,oCAAqB,aAAa,uBAAuB,cAAc,IAAI;AAExF,QAAM,mBAAmB,KAAK,KAAK,aAAa,cAAc,UAAU;AACxE,+BAAU,KAAK,QAAQ,gBAAgB,CAAC;AACxC,KAAG,cAAc,sBAAkB,4CAAuB,IAAI,CAAC;AAC/D,UAAQ,IAAI,0CAAqC,gBAAgB,EAAE;AAGnE,QAAM,WAAW,KAAK,KAAK,aAAa,aAAa;AAErD,MAAI,GAAG,WAAW,QAAQ,KAAK,GAAG,SAAS,QAAQ,EAAE,OAAO,GAAG;AAC7D,OAAG,WAAW,QAAQ;AAAA,EACxB;AACA,+BAAU,QAAQ;AAClB,QAAM,WAAW,KAAK,KAAK,UAAU,gBAAgB;AACrD,KAAG,cAAc,cAAU,4CAAuB,IAAI,CAAC;AACvD,UAAQ,IAAI,kCAA6B,QAAQ,EAAE;AAGnD,QAAM,WAAW,KAAK,KAAK,aAAa,eAAe,OAAO;AAC9D,+BAAU,QAAQ;AAClB,QAAM,WAAW,KAAK,KAAK,UAAU,gBAAgB;AACrD,KAAG,cAAc,UAAU,mBAAmB,EAAE,MAAM,IAAM,CAAC;AAC7D,UAAQ,IAAI,kCAA6B,QAAQ,EAAE;AACrD;AAEO,SAAS,YAAY,aAA2B;AAErD,QAAM,WAAW,KAAK,KAAK,aAAa,eAAe,gBAAgB;AACvE,MAAI,GAAG,WAAW,QAAQ,GAAG;AAC3B,OAAG,WAAW,QAAQ;AACtB,YAAQ,IAAI,gCAA2B,gBAAgB,EAAE;AAAA,EAC3D;AAGA,QAAM,WAAW,KAAK,KAAK,aAAa,eAAe,SAAS,gBAAgB;AAChF,MAAI,GAAG,WAAW,QAAQ,GAAG;AAC3B,UAAM,UAAU,GAAG,aAAa,UAAU,MAAM;AAChD,QAAI,QAAQ,SAAS,WAAW,GAAG;AACjC,SAAG,WAAW,QAAQ;AACtB,cAAQ,IAAI,8DAAyD;AAAA,IACvE;AAAA,EACF;AACF;AAEO,SAAS,oBAAoB,aAA2B;AAC7D,UAAQ,IAAI,uDAAuD;AACnE,mCAAc,qBAAqB,WAAW;AAChD;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -41,7 +41,7 @@ var import_instructions = require("../instructions");
|
|
|
41
41
|
const CODEX_BLOCK_ID = "codex";
|
|
42
42
|
function installCodexEarly(_projectRoot) {
|
|
43
43
|
}
|
|
44
|
-
function installCodexLate(projectRoot, cavemanMode) {
|
|
44
|
+
function installCodexLate(projectRoot, cavemanMode, _shellCompressionLevel, _enableMemory) {
|
|
45
45
|
const instructionsPath = path.join(projectRoot, ".kirograph", "codex.md");
|
|
46
46
|
(0, import_common.ensureDir)(path.dirname(instructionsPath));
|
|
47
47
|
fs.writeFileSync(instructionsPath, (0, import_instructions.buildAgentInstructions)(cavemanMode));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/bin/installer/targets/codex.ts"],
|
|
4
|
-
"sourcesContent": ["import * as fs from 'fs';\nimport * as path from 'path';\nimport { CavemanMode } from '../caveman';\nimport { ensureDir, removeGeneratedBlock, upsertGeneratedBlock } from '../common';\nimport { buildAgentInstructions } from '../instructions';\n\nconst CODEX_BLOCK_ID = 'codex';\n\nexport function installCodexEarly(_projectRoot: string): void {\n // Codex MCP config is user-scoped. We print the exact config in next steps\n // instead of writing outside the project from an installer command.\n}\n\nexport function installCodexLate(projectRoot: string, cavemanMode?: CavemanMode | 'off'): void {\n const instructionsPath = path.join(projectRoot, '.kirograph', 'codex.md');\n ensureDir(path.dirname(instructionsPath));\n fs.writeFileSync(instructionsPath, buildAgentInstructions(cavemanMode));\n console.log(` \u2713 Codex instructions written to ${instructionsPath}`);\n\n const agentsPath = path.join(projectRoot, 'AGENTS.md');\n const changed = upsertGeneratedBlock(agentsPath, CODEX_BLOCK_ID, '## KiroGraph', buildAgentInstructions(cavemanMode));\n console.log(changed\n ? ` \u2713 Codex project instructions updated in ${agentsPath}`\n : ` \u2713 Codex project instructions already up to date`);\n}\n\nexport function uninitCodex(projectRoot: string): void {\n const agentsPath = path.join(projectRoot, 'AGENTS.md');\n if (removeGeneratedBlock(agentsPath, CODEX_BLOCK_ID)) {\n console.log(` \u2713 Removed KiroGraph block from AGENTS.md`);\n }\n}\n\nexport function printCodexNextSteps(projectRoot: string): void {\n const escapedPath = projectRoot.replace(/\\\\/g, '\\\\\\\\').replace(/\"/g, '\\\\\"');\n console.log('\\n Done! Codex project instructions are installed.');\n console.log(' Add the MCP server to Codex with:');\n console.log(` codex mcp add kirograph -- kirograph serve --mcp --path \"${escapedPath}\"`);\n console.log('\\n Or add this to ~/.codex/config.toml:');\n console.log(' [mcp_servers.kirograph]');\n console.log(' command = \"kirograph\"');\n console.log(` args = [\"serve\", \"--mcp\", \"--path\", \"${escapedPath}\"]\\n`);\n}\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SAAoB;AACpB,WAAsB;AAEtB,oBAAsE;AACtE,0BAAuC;AAEvC,MAAM,iBAAiB;AAEhB,SAAS,kBAAkB,cAA4B;AAG9D;AAEO,SAAS,iBAAiB,aAAqB,
|
|
4
|
+
"sourcesContent": ["import * as fs from 'fs';\nimport * as path from 'path';\nimport { CavemanMode } from '../caveman';\nimport { ensureDir, removeGeneratedBlock, upsertGeneratedBlock } from '../common';\nimport { buildAgentInstructions } from '../instructions';\n\nconst CODEX_BLOCK_ID = 'codex';\n\nexport function installCodexEarly(_projectRoot: string): void {\n // Codex MCP config is user-scoped. We print the exact config in next steps\n // instead of writing outside the project from an installer command.\n}\n\nexport function installCodexLate(projectRoot: string, cavemanMode?: CavemanMode | 'off', _shellCompressionLevel?: string, _enableMemory?: boolean): void {\n const instructionsPath = path.join(projectRoot, '.kirograph', 'codex.md');\n ensureDir(path.dirname(instructionsPath));\n fs.writeFileSync(instructionsPath, buildAgentInstructions(cavemanMode));\n console.log(` \u2713 Codex instructions written to ${instructionsPath}`);\n\n const agentsPath = path.join(projectRoot, 'AGENTS.md');\n const changed = upsertGeneratedBlock(agentsPath, CODEX_BLOCK_ID, '## KiroGraph', buildAgentInstructions(cavemanMode));\n console.log(changed\n ? ` \u2713 Codex project instructions updated in ${agentsPath}`\n : ` \u2713 Codex project instructions already up to date`);\n}\n\nexport function uninitCodex(projectRoot: string): void {\n const agentsPath = path.join(projectRoot, 'AGENTS.md');\n if (removeGeneratedBlock(agentsPath, CODEX_BLOCK_ID)) {\n console.log(` \u2713 Removed KiroGraph block from AGENTS.md`);\n }\n}\n\nexport function printCodexNextSteps(projectRoot: string): void {\n const escapedPath = projectRoot.replace(/\\\\/g, '\\\\\\\\').replace(/\"/g, '\\\\\"');\n console.log('\\n Done! Codex project instructions are installed.');\n console.log(' Add the MCP server to Codex with:');\n console.log(` codex mcp add kirograph -- kirograph serve --mcp --path \"${escapedPath}\"`);\n console.log('\\n Or add this to ~/.codex/config.toml:');\n console.log(' [mcp_servers.kirograph]');\n console.log(' command = \"kirograph\"');\n console.log(` args = [\"serve\", \"--mcp\", \"--path\", \"${escapedPath}\"]\\n`);\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SAAoB;AACpB,WAAsB;AAEtB,oBAAsE;AACtE,0BAAuC;AAEvC,MAAM,iBAAiB;AAEhB,SAAS,kBAAkB,cAA4B;AAG9D;AAEO,SAAS,iBAAiB,aAAqB,aAAmC,wBAAiC,eAA+B;AACvJ,QAAM,mBAAmB,KAAK,KAAK,aAAa,cAAc,UAAU;AACxE,+BAAU,KAAK,QAAQ,gBAAgB,CAAC;AACxC,KAAG,cAAc,sBAAkB,4CAAuB,WAAW,CAAC;AACtE,UAAQ,IAAI,0CAAqC,gBAAgB,EAAE;AAEnE,QAAM,aAAa,KAAK,KAAK,aAAa,WAAW;AACrD,QAAM,cAAU,oCAAqB,YAAY,gBAAgB,oBAAgB,4CAAuB,WAAW,CAAC;AACpH,UAAQ,IAAI,UACR,kDAA6C,UAAU,KACvD,wDAAmD;AACzD;AAEO,SAAS,YAAY,aAA2B;AACrD,QAAM,aAAa,KAAK,KAAK,aAAa,WAAW;AACrD,UAAI,oCAAqB,YAAY,cAAc,GAAG;AACpD,YAAQ,IAAI,iDAA4C;AAAA,EAC1D;AACF;AAEO,SAAS,oBAAoB,aAA2B;AAC7D,QAAM,cAAc,YAAY,QAAQ,OAAO,MAAM,EAAE,QAAQ,MAAM,KAAK;AAC1E,UAAQ,IAAI,qDAAqD;AACjE,UAAQ,IAAI,qCAAqC;AACjD,UAAQ,IAAI,gEAAgE,WAAW,GAAG;AAC1F,UAAQ,IAAI,0CAA0C;AACtD,UAAQ,IAAI,6BAA6B;AACzC,UAAQ,IAAI,2BAA2B;AACvC,UAAQ,IAAI,4CAA4C,WAAW;AAAA,CAAM;AAC3E;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
var continue_exports = {};
|
|
30
|
+
__export(continue_exports, {
|
|
31
|
+
installContinueEarly: () => installContinueEarly,
|
|
32
|
+
installContinueLate: () => installContinueLate,
|
|
33
|
+
printContinueNextSteps: () => printContinueNextSteps,
|
|
34
|
+
uninitContinue: () => uninitContinue
|
|
35
|
+
});
|
|
36
|
+
module.exports = __toCommonJS(continue_exports);
|
|
37
|
+
var fs = __toESM(require("fs"));
|
|
38
|
+
var path = __toESM(require("path"));
|
|
39
|
+
var import_common = require("../common");
|
|
40
|
+
var import_instructions = require("../instructions");
|
|
41
|
+
const MCP_FILE = "kirograph.json";
|
|
42
|
+
const RULES_FILE = "kirograph.md";
|
|
43
|
+
function installContinueEarly(projectRoot) {
|
|
44
|
+
const mcpDir = path.join(projectRoot, ".continue", "mcpServers");
|
|
45
|
+
(0, import_common.ensureDir)(mcpDir);
|
|
46
|
+
const mcpPath = path.join(mcpDir, MCP_FILE);
|
|
47
|
+
const config = {
|
|
48
|
+
mcpServers: {
|
|
49
|
+
kirograph: {
|
|
50
|
+
command: import_common.KIROGRAPH_COMMAND,
|
|
51
|
+
args: import_common.KIROGRAPH_MCP_ARGS
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
(0, import_common.writeJson)(mcpPath, config);
|
|
56
|
+
console.log(` \u2713 Continue MCP server registered in ${mcpPath}`);
|
|
57
|
+
}
|
|
58
|
+
function installContinueLate(projectRoot, cavemanMode, shellCompressionLevel, enableMemory) {
|
|
59
|
+
const opts = (0, import_common.buildInstructionOpts)(cavemanMode, shellCompressionLevel, enableMemory);
|
|
60
|
+
const instructionsPath = path.join(projectRoot, ".kirograph", "continue.md");
|
|
61
|
+
(0, import_common.ensureDir)(path.dirname(instructionsPath));
|
|
62
|
+
fs.writeFileSync(instructionsPath, (0, import_instructions.buildAgentInstructions)(opts));
|
|
63
|
+
console.log(` \u2713 Continue instructions written to ${instructionsPath}`);
|
|
64
|
+
const rulesDir = path.join(projectRoot, ".continue", "rules");
|
|
65
|
+
(0, import_common.ensureDir)(rulesDir);
|
|
66
|
+
const rulePath = path.join(rulesDir, RULES_FILE);
|
|
67
|
+
fs.writeFileSync(rulePath, (0, import_instructions.buildAgentInstructions)(opts));
|
|
68
|
+
console.log(` \u2713 Continue rule written to ${rulePath}`);
|
|
69
|
+
}
|
|
70
|
+
function uninitContinue(projectRoot) {
|
|
71
|
+
const mcpPath = path.join(projectRoot, ".continue", "mcpServers", MCP_FILE);
|
|
72
|
+
if (fs.existsSync(mcpPath)) {
|
|
73
|
+
fs.unlinkSync(mcpPath);
|
|
74
|
+
console.log(` \u2713 Removed .continue/mcpServers/${MCP_FILE}`);
|
|
75
|
+
}
|
|
76
|
+
const rulePath = path.join(projectRoot, ".continue", "rules", RULES_FILE);
|
|
77
|
+
if (fs.existsSync(rulePath)) {
|
|
78
|
+
fs.unlinkSync(rulePath);
|
|
79
|
+
console.log(` \u2713 Removed .continue/rules/${RULES_FILE}`);
|
|
80
|
+
}
|
|
81
|
+
const legacyPath = path.join(projectRoot, ".continue", "config.json");
|
|
82
|
+
if (fs.existsSync(legacyPath)) {
|
|
83
|
+
try {
|
|
84
|
+
const config = JSON.parse(fs.readFileSync(legacyPath, "utf8"));
|
|
85
|
+
if (config.mcpServers?.kirograph) {
|
|
86
|
+
delete config.mcpServers.kirograph;
|
|
87
|
+
if (Object.keys(config.mcpServers).length === 0) delete config.mcpServers;
|
|
88
|
+
fs.writeFileSync(legacyPath, JSON.stringify(config, null, 2) + "\n");
|
|
89
|
+
console.log(` \u2713 Removed legacy kirograph from .continue/config.json`);
|
|
90
|
+
}
|
|
91
|
+
} catch {
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
function printContinueNextSteps() {
|
|
96
|
+
console.log("\n Done! Restart Continue for the MCP server to load.");
|
|
97
|
+
console.log(" MCP is in .continue/mcpServers/kirograph.json");
|
|
98
|
+
console.log(" KiroGraph rule is in .continue/rules/kirograph.md\n");
|
|
99
|
+
}
|
|
100
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
101
|
+
0 && (module.exports = {
|
|
102
|
+
installContinueEarly,
|
|
103
|
+
installContinueLate,
|
|
104
|
+
printContinueNextSteps,
|
|
105
|
+
uninitContinue
|
|
106
|
+
});
|
|
107
|
+
//# sourceMappingURL=continue.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/bin/installer/targets/continue.ts"],
|
|
4
|
+
"sourcesContent": ["/**\n * Continue target.\n *\n * MCP: .continue/mcpServers/kirograph.json (project-level, JSON format)\n * Rules: .continue/rules/kirograph.md\n */\n\nimport * as fs from 'fs';\nimport * as path from 'path';\nimport { CavemanMode } from '../caveman';\nimport {\n ensureDir,\n buildInstructionOpts,\n writeJson,\n KIROGRAPH_COMMAND,\n KIROGRAPH_MCP_ARGS,\n} from '../common';\nimport { buildAgentInstructions } from '../instructions';\n\nconst MCP_FILE = 'kirograph.json';\nconst RULES_FILE = 'kirograph.md';\n\nexport function installContinueEarly(projectRoot: string): void {\n // Write MCP config as a JSON file in .continue/mcpServers/\n const mcpDir = path.join(projectRoot, '.continue', 'mcpServers');\n ensureDir(mcpDir);\n const mcpPath = path.join(mcpDir, MCP_FILE);\n const config = {\n mcpServers: {\n kirograph: {\n command: KIROGRAPH_COMMAND,\n args: KIROGRAPH_MCP_ARGS,\n },\n },\n };\n writeJson(mcpPath, config);\n console.log(` \u2713 Continue MCP server registered in ${mcpPath}`);\n}\n\nexport function installContinueLate(projectRoot: string, cavemanMode?: CavemanMode | 'off', shellCompressionLevel?: string, enableMemory?: boolean): void {\n const opts = buildInstructionOpts(cavemanMode, shellCompressionLevel, enableMemory);\n\n const instructionsPath = path.join(projectRoot, '.kirograph', 'continue.md');\n ensureDir(path.dirname(instructionsPath));\n fs.writeFileSync(instructionsPath, buildAgentInstructions(opts));\n console.log(` \u2713 Continue instructions written to ${instructionsPath}`);\n\n // Write rules file in .continue/rules/\n const rulesDir = path.join(projectRoot, '.continue', 'rules');\n ensureDir(rulesDir);\n const rulePath = path.join(rulesDir, RULES_FILE);\n fs.writeFileSync(rulePath, buildAgentInstructions(opts));\n console.log(` \u2713 Continue rule written to ${rulePath}`);\n}\n\nexport function uninitContinue(projectRoot: string): void {\n // Remove MCP file\n const mcpPath = path.join(projectRoot, '.continue', 'mcpServers', MCP_FILE);\n if (fs.existsSync(mcpPath)) {\n fs.unlinkSync(mcpPath);\n console.log(` \u2713 Removed .continue/mcpServers/${MCP_FILE}`);\n }\n\n // Remove rule file\n const rulePath = path.join(projectRoot, '.continue', 'rules', RULES_FILE);\n if (fs.existsSync(rulePath)) {\n fs.unlinkSync(rulePath);\n console.log(` \u2713 Removed .continue/rules/${RULES_FILE}`);\n }\n\n // Remove legacy config.json entry if it exists\n const legacyPath = path.join(projectRoot, '.continue', 'config.json');\n if (fs.existsSync(legacyPath)) {\n try {\n const config = JSON.parse(fs.readFileSync(legacyPath, 'utf8'));\n if (config.mcpServers?.kirograph) {\n delete config.mcpServers.kirograph;\n if (Object.keys(config.mcpServers).length === 0) delete config.mcpServers;\n fs.writeFileSync(legacyPath, JSON.stringify(config, null, 2) + '\\n');\n console.log(` \u2713 Removed legacy kirograph from .continue/config.json`);\n }\n } catch {}\n }\n}\n\nexport function printContinueNextSteps(): void {\n console.log('\\n Done! Restart Continue for the MCP server to load.');\n console.log(' MCP is in .continue/mcpServers/kirograph.json');\n console.log(' KiroGraph rule is in .continue/rules/kirograph.md\\n');\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAOA,SAAoB;AACpB,WAAsB;AAEtB,oBAMO;AACP,0BAAuC;AAEvC,MAAM,WAAW;AACjB,MAAM,aAAa;AAEZ,SAAS,qBAAqB,aAA2B;AAE9D,QAAM,SAAS,KAAK,KAAK,aAAa,aAAa,YAAY;AAC/D,+BAAU,MAAM;AAChB,QAAM,UAAU,KAAK,KAAK,QAAQ,QAAQ;AAC1C,QAAM,SAAS;AAAA,IACb,YAAY;AAAA,MACV,WAAW;AAAA,QACT,SAAS;AAAA,QACT,MAAM;AAAA,MACR;AAAA,IACF;AAAA,EACF;AACA,+BAAU,SAAS,MAAM;AACzB,UAAQ,IAAI,8CAAyC,OAAO,EAAE;AAChE;AAEO,SAAS,oBAAoB,aAAqB,aAAmC,uBAAgC,cAA8B;AACxJ,QAAM,WAAO,oCAAqB,aAAa,uBAAuB,YAAY;AAElF,QAAM,mBAAmB,KAAK,KAAK,aAAa,cAAc,aAAa;AAC3E,+BAAU,KAAK,QAAQ,gBAAgB,CAAC;AACxC,KAAG,cAAc,sBAAkB,4CAAuB,IAAI,CAAC;AAC/D,UAAQ,IAAI,6CAAwC,gBAAgB,EAAE;AAGtE,QAAM,WAAW,KAAK,KAAK,aAAa,aAAa,OAAO;AAC5D,+BAAU,QAAQ;AAClB,QAAM,WAAW,KAAK,KAAK,UAAU,UAAU;AAC/C,KAAG,cAAc,cAAU,4CAAuB,IAAI,CAAC;AACvD,UAAQ,IAAI,qCAAgC,QAAQ,EAAE;AACxD;AAEO,SAAS,eAAe,aAA2B;AAExD,QAAM,UAAU,KAAK,KAAK,aAAa,aAAa,cAAc,QAAQ;AAC1E,MAAI,GAAG,WAAW,OAAO,GAAG;AAC1B,OAAG,WAAW,OAAO;AACrB,YAAQ,IAAI,yCAAoC,QAAQ,EAAE;AAAA,EAC5D;AAGA,QAAM,WAAW,KAAK,KAAK,aAAa,aAAa,SAAS,UAAU;AACxE,MAAI,GAAG,WAAW,QAAQ,GAAG;AAC3B,OAAG,WAAW,QAAQ;AACtB,YAAQ,IAAI,oCAA+B,UAAU,EAAE;AAAA,EACzD;AAGA,QAAM,aAAa,KAAK,KAAK,aAAa,aAAa,aAAa;AACpE,MAAI,GAAG,WAAW,UAAU,GAAG;AAC7B,QAAI;AACF,YAAM,SAAS,KAAK,MAAM,GAAG,aAAa,YAAY,MAAM,CAAC;AAC7D,UAAI,OAAO,YAAY,WAAW;AAChC,eAAO,OAAO,WAAW;AACzB,YAAI,OAAO,KAAK,OAAO,UAAU,EAAE,WAAW,EAAG,QAAO,OAAO;AAC/D,WAAG,cAAc,YAAY,KAAK,UAAU,QAAQ,MAAM,CAAC,IAAI,IAAI;AACnE,gBAAQ,IAAI,8DAAyD;AAAA,MACvE;AAAA,IACF,QAAQ;AAAA,IAAC;AAAA,EACX;AACF;AAEO,SAAS,yBAA+B;AAC7C,UAAQ,IAAI,wDAAwD;AACpE,UAAQ,IAAI,iDAAiD;AAC7D,UAAQ,IAAI,uDAAuD;AACrE;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|