kirograph 0.17.0 → 0.19.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/LICENSE +1 -1
- package/README.md +103 -1822
- package/dist/architecture/layers/dart.js +112 -0
- package/dist/architecture/layers/dart.js.map +7 -0
- package/dist/architecture/layers/index.js +3 -1
- package/dist/architecture/layers/index.js.map +2 -2
- package/dist/bin/banner.js +74 -6
- package/dist/bin/banner.js.map +2 -2
- package/dist/bin/commands/attack-surface.js +157 -0
- package/dist/bin/commands/attack-surface.js.map +7 -0
- package/dist/bin/commands/benchmark.js +206 -0
- package/dist/bin/commands/benchmark.js.map +7 -0
- package/dist/bin/commands/budget.js +70 -0
- package/dist/bin/commands/budget.js.map +7 -0
- package/dist/bin/commands/communities.js +77 -0
- package/dist/bin/commands/communities.js.map +7 -0
- package/dist/bin/commands/dep-confusion.js +119 -0
- package/dist/bin/commands/dep-confusion.js.map +7 -0
- package/dist/bin/commands/export.js +304 -10
- package/dist/bin/commands/export.js.map +2 -2
- package/dist/bin/commands/flows.js +97 -0
- package/dist/bin/commands/flows.js.map +7 -0
- package/dist/bin/commands/help.js +382 -101
- package/dist/bin/commands/help.js.map +2 -2
- package/dist/bin/commands/install.js +90 -8
- package/dist/bin/commands/install.js.map +2 -2
- package/dist/bin/commands/licenses.js +201 -0
- package/dist/bin/commands/licenses.js.map +7 -0
- package/dist/bin/commands/reachability.js +160 -0
- package/dist/bin/commands/reachability.js.map +7 -0
- package/dist/bin/commands/read.js +100 -0
- package/dist/bin/commands/read.js.map +7 -0
- package/dist/bin/commands/refactor.js +116 -0
- package/dist/bin/commands/refactor.js.map +7 -0
- package/dist/bin/commands/remediation.js +133 -0
- package/dist/bin/commands/remediation.js.map +7 -0
- package/dist/bin/commands/sbom.js +76 -0
- package/dist/bin/commands/sbom.js.map +7 -0
- package/dist/bin/commands/security-ci-report.js +267 -0
- package/dist/bin/commands/security-ci-report.js.map +7 -0
- package/dist/bin/commands/security-export.js +1349 -0
- package/dist/bin/commands/security-export.js.map +7 -0
- package/dist/bin/commands/security-flows.js +126 -0
- package/dist/bin/commands/security-flows.js.map +7 -0
- package/dist/bin/commands/security-secrets.js +170 -0
- package/dist/bin/commands/security-secrets.js.map +7 -0
- package/dist/bin/commands/security.js +193 -0
- package/dist/bin/commands/security.js.map +7 -0
- package/dist/bin/commands/staleness.js +144 -0
- package/dist/bin/commands/staleness.js.map +7 -0
- package/dist/bin/commands/status.js +102 -2
- package/dist/bin/commands/status.js.map +2 -2
- package/dist/bin/commands/supply-chain.js +138 -0
- package/dist/bin/commands/supply-chain.js.map +7 -0
- package/dist/bin/commands/uninit.js +109 -60
- package/dist/bin/commands/uninit.js.map +2 -2
- package/dist/bin/commands/vex.js +76 -0
- package/dist/bin/commands/vex.js.map +7 -0
- package/dist/bin/commands/vuln-suppress.js +95 -0
- package/dist/bin/commands/vuln-suppress.js.map +7 -0
- package/dist/bin/commands/vulns.js +382 -0
- package/dist/bin/commands/vulns.js.map +7 -0
- package/dist/bin/installer/auto-detect.js +125 -0
- package/dist/bin/installer/auto-detect.js.map +7 -0
- package/dist/bin/installer/cli-agent.js +28 -5
- package/dist/bin/installer/cli-agent.js.map +2 -2
- package/dist/bin/installer/common.js +47 -0
- package/dist/bin/installer/common.js.map +2 -2
- package/dist/bin/installer/config-prompt.js +12 -1
- package/dist/bin/installer/config-prompt.js.map +2 -2
- package/dist/bin/installer/detect.js +309 -0
- package/dist/bin/installer/detect.js.map +7 -0
- package/dist/bin/installer/index.js +9 -1
- package/dist/bin/installer/index.js.map +2 -2
- package/dist/bin/installer/instructions.js +195 -3
- package/dist/bin/installer/instructions.js.map +2 -2
- package/dist/bin/installer/steering.js +407 -0
- package/dist/bin/installer/steering.js.map +2 -2
- package/dist/bin/installer/targets/aider.js +3 -3
- package/dist/bin/installer/targets/aider.js.map +2 -2
- package/dist/bin/installer/targets/amp.js +3 -3
- package/dist/bin/installer/targets/amp.js.map +2 -2
- package/dist/bin/installer/targets/antigravity.js +35 -6
- package/dist/bin/installer/targets/antigravity.js.map +2 -2
- package/dist/bin/installer/targets/augment.js +3 -3
- package/dist/bin/installer/targets/augment.js.map +2 -2
- package/dist/bin/installer/targets/claude.js +49 -5
- package/dist/bin/installer/targets/claude.js.map +2 -2
- package/dist/bin/installer/targets/cline.js +32 -6
- package/dist/bin/installer/targets/cline.js.map +2 -2
- package/dist/bin/installer/targets/codex.js +64 -12
- package/dist/bin/installer/targets/codex.js.map +2 -2
- package/dist/bin/installer/targets/continue.js +2 -2
- package/dist/bin/installer/targets/continue.js.map +2 -2
- package/dist/bin/installer/targets/copilot-cli.js +101 -0
- package/dist/bin/installer/targets/copilot-cli.js.map +7 -0
- package/dist/bin/installer/targets/copilot.js +31 -5
- package/dist/bin/installer/targets/copilot.js.map +2 -2
- package/dist/bin/installer/targets/cursor.js +4 -4
- package/dist/bin/installer/targets/cursor.js.map +2 -2
- package/dist/bin/installer/targets/devin.js +2 -2
- package/dist/bin/installer/targets/devin.js.map +2 -2
- package/dist/bin/installer/targets/gemini-cli.js +2 -2
- package/dist/bin/installer/targets/gemini-cli.js.map +2 -2
- package/dist/bin/installer/targets/generic.js +2 -14
- package/dist/bin/installer/targets/generic.js.map +2 -2
- package/dist/bin/installer/targets/goose.js +3 -3
- package/dist/bin/installer/targets/goose.js.map +2 -2
- package/dist/bin/installer/targets/index.js +250 -0
- package/dist/bin/installer/targets/index.js.map +2 -2
- package/dist/bin/installer/targets/junie.js +2 -2
- package/dist/bin/installer/targets/junie.js.map +2 -2
- package/dist/bin/installer/targets/kilo.js +2 -2
- package/dist/bin/installer/targets/kilo.js.map +2 -2
- 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 +2 -2
- package/dist/bin/installer/targets/opencode.js.map +2 -2
- package/dist/bin/installer/targets/openhands.js +3 -3
- package/dist/bin/installer/targets/openhands.js.map +2 -2
- package/dist/bin/installer/targets/qoder.js +91 -0
- package/dist/bin/installer/targets/qoder.js.map +7 -0
- package/dist/bin/installer/targets/qwen.js +96 -0
- package/dist/bin/installer/targets/qwen.js.map +7 -0
- package/dist/bin/installer/targets/replit.js +3 -3
- package/dist/bin/installer/targets/replit.js.map +2 -2
- package/dist/bin/installer/targets/roo.js +2 -2
- package/dist/bin/installer/targets/roo.js.map +2 -2
- package/dist/bin/installer/targets/tabnine.js +3 -3
- package/dist/bin/installer/targets/tabnine.js.map +2 -2
- package/dist/bin/installer/targets/trae.js +5 -5
- package/dist/bin/installer/targets/trae.js.map +2 -2
- package/dist/bin/installer/targets/warp.js +2 -2
- package/dist/bin/installer/targets/warp.js.map +2 -2
- package/dist/bin/installer/targets/windsurf.js +35 -6
- package/dist/bin/installer/targets/windsurf.js.map +2 -2
- package/dist/bin/kirograph.js +72 -6
- package/dist/bin/kirograph.js.map +3 -3
- package/dist/compression/tracker.js +80 -0
- package/dist/compression/tracker.js.map +2 -2
- package/dist/config.js +90 -3
- package/dist/config.js.map +2 -2
- package/dist/core/pipeline.js +36 -2
- package/dist/core/pipeline.js.map +2 -2
- package/dist/db/database.js +56 -5
- package/dist/db/database.js.map +2 -2
- package/dist/db/memory-schema.sql +5 -1
- package/dist/db/schema.sql +3 -1
- package/dist/db/security-schema.sql +72 -0
- package/dist/extraction/extractor.js +81 -0
- package/dist/extraction/extractor.js.map +2 -2
- package/dist/extraction/grammars.js +32 -8
- package/dist/extraction/grammars.js.map +2 -2
- package/dist/extraction/languages.js +43 -1
- package/dist/extraction/languages.js.map +2 -2
- package/dist/extraction/notebook.js +300 -0
- package/dist/extraction/notebook.js.map +7 -0
- package/dist/extraction/wasm/tree-sitter-astro.wasm +0 -0
- package/dist/extraction/wasm/tree-sitter-gdscript.wasm +0 -0
- package/dist/extraction/wasm/tree-sitter-julia.wasm +0 -0
- package/dist/extraction/wasm/tree-sitter-nix.wasm +0 -0
- package/dist/extraction/wasm/tree-sitter-perl.wasm +0 -0
- package/dist/extraction/wasm/tree-sitter-powershell.wasm +0 -0
- package/dist/extraction/wasm/tree-sitter-r.wasm +0 -0
- package/dist/extraction/wasm/tree-sitter-sql.wasm +0 -0
- package/dist/extraction/wasm/tree-sitter-verilog.wasm +0 -0
- package/dist/frameworks/flutter.js +130 -0
- package/dist/frameworks/flutter.js.map +7 -0
- package/dist/frameworks/index.js +7 -1
- package/dist/frameworks/index.js.map +3 -3
- package/dist/graph/communities.js +317 -0
- package/dist/graph/communities.js.map +7 -0
- package/dist/graph/flows.js +138 -0
- package/dist/graph/flows.js.map +7 -0
- package/dist/graph/refactor.js +155 -0
- package/dist/graph/refactor.js.map +7 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +2 -2
- package/dist/mcp/cache.js +172 -0
- package/dist/mcp/cache.js.map +7 -0
- package/dist/mcp/read-modes.js +295 -0
- package/dist/mcp/read-modes.js.map +7 -0
- package/dist/mcp/server.js +2 -1
- package/dist/mcp/server.js.map +2 -2
- package/dist/mcp/tool-names.js +21 -1
- package/dist/mcp/tool-names.js.map +2 -2
- package/dist/mcp/tools.js +1160 -1
- package/dist/mcp/tools.js.map +3 -3
- package/dist/memory/database.js +32 -2
- package/dist/memory/database.js.map +2 -2
- package/dist/memory/types.js.map +1 -1
- package/dist/resolution/bridges/android-rn.js +298 -0
- package/dist/resolution/bridges/android-rn.js.map +7 -0
- package/dist/resolution/bridges/expo-modules.js +155 -0
- package/dist/resolution/bridges/expo-modules.js.map +7 -0
- package/dist/resolution/bridges/flutter-channel.js +385 -0
- package/dist/resolution/bridges/flutter-channel.js.map +7 -0
- package/dist/resolution/bridges/index.js +80 -0
- package/dist/resolution/bridges/index.js.map +7 -0
- package/dist/resolution/bridges/native-events.js +188 -0
- package/dist/resolution/bridges/native-events.js.map +7 -0
- package/dist/resolution/bridges/native-views.js +244 -0
- package/dist/resolution/bridges/native-views.js.map +7 -0
- package/dist/resolution/bridges/react-native.js +161 -0
- package/dist/resolution/bridges/react-native.js.map +7 -0
- package/dist/resolution/bridges/swift-objc.js +227 -0
- package/dist/resolution/bridges/swift-objc.js.map +7 -0
- package/dist/resolution/bridges/turbomodules.js +216 -0
- package/dist/resolution/bridges/turbomodules.js.map +7 -0
- package/dist/resolution/index.js +61 -2
- package/dist/resolution/index.js.map +2 -2
- package/dist/security/attack-surface.js +164 -0
- package/dist/security/attack-surface.js.map +7 -0
- package/dist/security/context-warnings.js +123 -0
- package/dist/security/context-warnings.js.map +7 -0
- package/dist/security/context-warnings.test.js +300 -0
- package/dist/security/context-warnings.test.js.map +7 -0
- package/dist/security/data-flows.js +228 -0
- package/dist/security/data-flows.js.map +7 -0
- package/dist/security/dep-confusion.js +255 -0
- package/dist/security/dep-confusion.js.map +7 -0
- package/dist/security/errors.js +51 -0
- package/dist/security/errors.js.map +7 -0
- package/dist/security/export/fix-suggestions.js +58 -0
- package/dist/security/export/fix-suggestions.js.map +7 -0
- package/dist/security/export/fix-suggestions.test.js +74 -0
- package/dist/security/export/fix-suggestions.test.js.map +7 -0
- package/dist/security/export/sbom.js +230 -0
- package/dist/security/export/sbom.js.map +7 -0
- package/dist/security/export/sbom.test.js +288 -0
- package/dist/security/export/sbom.test.js.map +7 -0
- package/dist/security/export/serialization.js +142 -0
- package/dist/security/export/serialization.js.map +7 -0
- package/dist/security/export/serialization.test.js +310 -0
- package/dist/security/export/serialization.test.js.map +7 -0
- package/dist/security/export/vex.js +220 -0
- package/dist/security/export/vex.js.map +7 -0
- package/dist/security/export/vex.test.js +278 -0
- package/dist/security/export/vex.test.js.map +7 -0
- package/dist/security/index.js +67 -0
- package/dist/security/index.js.map +7 -0
- package/dist/security/integrator-transitives.test.js +359 -0
- package/dist/security/integrator-transitives.test.js.map +7 -0
- package/dist/security/integrator.js +491 -0
- package/dist/security/integrator.js.map +7 -0
- package/dist/security/integrator.test.js +237 -0
- package/dist/security/integrator.test.js.map +7 -0
- package/dist/security/license.js +70 -0
- package/dist/security/license.js.map +7 -0
- package/dist/security/manifest/adapter.js +243 -0
- package/dist/security/manifest/adapter.js.map +7 -0
- package/dist/security/manifest/adapter.test.js +272 -0
- package/dist/security/manifest/adapter.test.js.map +7 -0
- package/dist/security/manifest/parser.js +376 -0
- package/dist/security/manifest/parser.js.map +7 -0
- package/dist/security/manifest/parser.test.js +110 -0
- package/dist/security/manifest/parser.test.js.map +7 -0
- package/dist/security/manifest/plugins/cargo.js +233 -0
- package/dist/security/manifest/plugins/cargo.js.map +7 -0
- package/dist/security/manifest/plugins/cargo.test.js +304 -0
- package/dist/security/manifest/plugins/cargo.test.js.map +7 -0
- package/dist/security/manifest/plugins/composer.js +152 -0
- package/dist/security/manifest/plugins/composer.js.map +7 -0
- package/dist/security/manifest/plugins/go.js +146 -0
- package/dist/security/manifest/plugins/go.js.map +7 -0
- package/dist/security/manifest/plugins/go.test.js +341 -0
- package/dist/security/manifest/plugins/go.test.js.map +7 -0
- package/dist/security/manifest/plugins/gradle.js +159 -0
- package/dist/security/manifest/plugins/gradle.js.map +7 -0
- package/dist/security/manifest/plugins/hex.js +159 -0
- package/dist/security/manifest/plugins/hex.js.map +7 -0
- package/dist/security/manifest/plugins/maven.js +128 -0
- package/dist/security/manifest/plugins/maven.js.map +7 -0
- package/dist/security/manifest/plugins/maven.test.js +389 -0
- package/dist/security/manifest/plugins/maven.test.js.map +7 -0
- package/dist/security/manifest/plugins/npm.js +284 -0
- package/dist/security/manifest/plugins/npm.js.map +7 -0
- package/dist/security/manifest/plugins/npm.test.js +298 -0
- package/dist/security/manifest/plugins/npm.test.js.map +7 -0
- package/dist/security/manifest/plugins/nuget.js +186 -0
- package/dist/security/manifest/plugins/nuget.js.map +7 -0
- package/dist/security/manifest/plugins/pip.js +123 -0
- package/dist/security/manifest/plugins/pip.js.map +7 -0
- package/dist/security/manifest/plugins/pip.test.js +208 -0
- package/dist/security/manifest/plugins/pip.test.js.map +7 -0
- package/dist/security/manifest/plugins/pubspec.js +212 -0
- package/dist/security/manifest/plugins/pubspec.js.map +7 -0
- package/dist/security/manifest/plugins/pyproject.js +261 -0
- package/dist/security/manifest/plugins/pyproject.js.map +7 -0
- package/dist/security/manifest/plugins/rubygems.js +185 -0
- package/dist/security/manifest/plugins/rubygems.js.map +7 -0
- package/dist/security/manifest/plugins/swift.js +200 -0
- package/dist/security/manifest/plugins/swift.js.map +7 -0
- package/dist/security/owasp.js +104 -0
- package/dist/security/owasp.js.map +7 -0
- package/dist/security/pipeline.js +125 -0
- package/dist/security/pipeline.js.map +7 -0
- package/dist/security/reachability.js +276 -0
- package/dist/security/reachability.js.map +7 -0
- package/dist/security/reachability.test.js +394 -0
- package/dist/security/reachability.test.js.map +7 -0
- package/dist/security/remediation.js +126 -0
- package/dist/security/remediation.js.map +7 -0
- package/dist/security/secrets.js +176 -0
- package/dist/security/secrets.js.map +7 -0
- package/dist/security/staleness.js +231 -0
- package/dist/security/staleness.js.map +7 -0
- package/dist/security/supply-chain.js +301 -0
- package/dist/security/supply-chain.js.map +7 -0
- package/dist/security/suppressions.js +106 -0
- package/dist/security/suppressions.js.map +7 -0
- package/dist/security/types.js +17 -0
- package/dist/security/types.js.map +7 -0
- package/dist/security/vuln/client.js +355 -0
- package/dist/security/vuln/client.js.map +7 -0
- package/dist/security/vuln/client.test.js +288 -0
- package/dist/security/vuln/client.test.js.map +7 -0
- package/dist/security/vuln/epss-client.js +95 -0
- package/dist/security/vuln/epss-client.js.map +7 -0
- package/dist/security/vuln/index.js +29 -0
- package/dist/security/vuln/index.js.map +7 -0
- package/dist/security/vuln/osv-adapter.js +321 -0
- package/dist/security/vuln/osv-adapter.js.map +7 -0
- package/dist/security/vuln/osv-adapter.test.js +391 -0
- package/dist/security/vuln/osv-adapter.test.js.map +7 -0
- package/dist/security/vuln/types.js +17 -0
- package/dist/security/vuln/types.js.map +7 -0
- package/dist/types.js.map +2 -2
- package/package.json +2 -1
|
@@ -24,6 +24,31 @@ module.exports = __toCommonJS(targets_exports);
|
|
|
24
24
|
var import_kiro = require("./kiro");
|
|
25
25
|
var import_claude = require("./claude");
|
|
26
26
|
var import_codex = require("./codex");
|
|
27
|
+
var import_cursor = require("./cursor");
|
|
28
|
+
var import_antigravity = require("./antigravity");
|
|
29
|
+
var import_opencode = require("./opencode");
|
|
30
|
+
var import_windsurf = require("./windsurf");
|
|
31
|
+
var import_cline = require("./cline");
|
|
32
|
+
var import_copilot = require("./copilot");
|
|
33
|
+
var import_copilot_cli = require("./copilot-cli");
|
|
34
|
+
var import_junie = require("./junie");
|
|
35
|
+
var import_gemini_cli = require("./gemini-cli");
|
|
36
|
+
var import_continue = require("./continue");
|
|
37
|
+
var import_roo = require("./roo");
|
|
38
|
+
var import_warp = require("./warp");
|
|
39
|
+
var import_aider = require("./aider");
|
|
40
|
+
var import_trae = require("./trae");
|
|
41
|
+
var import_augment = require("./augment");
|
|
42
|
+
var import_kilo = require("./kilo");
|
|
43
|
+
var import_amp = require("./amp");
|
|
44
|
+
var import_devin = require("./devin");
|
|
45
|
+
var import_replit = require("./replit");
|
|
46
|
+
var import_goose = require("./goose");
|
|
47
|
+
var import_openhands = require("./openhands");
|
|
48
|
+
var import_tabnine = require("./tabnine");
|
|
49
|
+
var import_generic = require("./generic");
|
|
50
|
+
var import_qoder = require("./qoder");
|
|
51
|
+
var import_qwen = require("./qwen");
|
|
27
52
|
function getTargetInstaller(target) {
|
|
28
53
|
if (target === "claude") {
|
|
29
54
|
return {
|
|
@@ -43,6 +68,231 @@ function getTargetInstaller(target) {
|
|
|
43
68
|
uninit: import_codex.uninitCodex
|
|
44
69
|
};
|
|
45
70
|
}
|
|
71
|
+
if (target === "cursor") {
|
|
72
|
+
return {
|
|
73
|
+
label: "Cursor",
|
|
74
|
+
installEarly: import_cursor.installCursorEarly,
|
|
75
|
+
installLate: import_cursor.installCursorLate,
|
|
76
|
+
printNextSteps: import_cursor.printCursorNextSteps,
|
|
77
|
+
uninit: import_cursor.uninitCursor
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
if (target === "antigravity") {
|
|
81
|
+
return {
|
|
82
|
+
label: "Antigravity",
|
|
83
|
+
installEarly: import_antigravity.installAntigravityEarly,
|
|
84
|
+
installLate: import_antigravity.installAntigravityLate,
|
|
85
|
+
printNextSteps: import_antigravity.printAntigravityNextSteps,
|
|
86
|
+
uninit: import_antigravity.uninitAntigravity
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
if (target === "opencode") {
|
|
90
|
+
return {
|
|
91
|
+
label: "OpenCode",
|
|
92
|
+
installEarly: import_opencode.installOpenCodeEarly,
|
|
93
|
+
installLate: import_opencode.installOpenCodeLate,
|
|
94
|
+
printNextSteps: import_opencode.printOpenCodeNextSteps,
|
|
95
|
+
uninit: import_opencode.uninitOpenCode
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
if (target === "windsurf") {
|
|
99
|
+
return {
|
|
100
|
+
label: "Windsurf",
|
|
101
|
+
installEarly: import_windsurf.installWindsurfEarly,
|
|
102
|
+
installLate: import_windsurf.installWindsurfLate,
|
|
103
|
+
printNextSteps: import_windsurf.printWindsurfNextSteps,
|
|
104
|
+
uninit: import_windsurf.uninitWindsurf
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
if (target === "cline") {
|
|
108
|
+
return {
|
|
109
|
+
label: "Cline",
|
|
110
|
+
installEarly: import_cline.installClineEarly,
|
|
111
|
+
installLate: import_cline.installClineLate,
|
|
112
|
+
printNextSteps: import_cline.printClineNextSteps,
|
|
113
|
+
uninit: import_cline.uninitCline
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
if (target === "copilot") {
|
|
117
|
+
return {
|
|
118
|
+
label: "GitHub Copilot",
|
|
119
|
+
installEarly: import_copilot.installCopilotEarly,
|
|
120
|
+
installLate: import_copilot.installCopilotLate,
|
|
121
|
+
printNextSteps: import_copilot.printCopilotNextSteps,
|
|
122
|
+
uninit: import_copilot.uninitCopilot
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
if (target === "copilot-cli") {
|
|
126
|
+
return {
|
|
127
|
+
label: "GitHub Copilot CLI",
|
|
128
|
+
installEarly: import_copilot_cli.installCopilotCliEarly,
|
|
129
|
+
installLate: import_copilot_cli.installCopilotCliLate,
|
|
130
|
+
printNextSteps: import_copilot_cli.printCopilotCliNextSteps,
|
|
131
|
+
uninit: import_copilot_cli.uninitCopilotCli
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
if (target === "junie") {
|
|
135
|
+
return {
|
|
136
|
+
label: "JetBrains Junie",
|
|
137
|
+
installEarly: import_junie.installJunieEarly,
|
|
138
|
+
installLate: import_junie.installJunieLate,
|
|
139
|
+
printNextSteps: import_junie.printJunieNextSteps,
|
|
140
|
+
uninit: import_junie.uninitJunie
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
if (target === "gemini-cli") {
|
|
144
|
+
return {
|
|
145
|
+
label: "Gemini CLI",
|
|
146
|
+
installEarly: import_gemini_cli.installGeminiCliEarly,
|
|
147
|
+
installLate: import_gemini_cli.installGeminiCliLate,
|
|
148
|
+
printNextSteps: import_gemini_cli.printGeminiCliNextSteps,
|
|
149
|
+
uninit: import_gemini_cli.uninitGeminiCli
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
if (target === "continue") {
|
|
153
|
+
return {
|
|
154
|
+
label: "Continue",
|
|
155
|
+
installEarly: import_continue.installContinueEarly,
|
|
156
|
+
installLate: import_continue.installContinueLate,
|
|
157
|
+
printNextSteps: import_continue.printContinueNextSteps,
|
|
158
|
+
uninit: import_continue.uninitContinue
|
|
159
|
+
};
|
|
160
|
+
}
|
|
161
|
+
if (target === "roo") {
|
|
162
|
+
return {
|
|
163
|
+
label: "Roo Code",
|
|
164
|
+
installEarly: import_roo.installRooEarly,
|
|
165
|
+
installLate: import_roo.installRooLate,
|
|
166
|
+
printNextSteps: import_roo.printRooNextSteps,
|
|
167
|
+
uninit: import_roo.uninitRoo
|
|
168
|
+
};
|
|
169
|
+
}
|
|
170
|
+
if (target === "warp") {
|
|
171
|
+
return {
|
|
172
|
+
label: "Warp",
|
|
173
|
+
installEarly: import_warp.installWarpEarly,
|
|
174
|
+
installLate: import_warp.installWarpLate,
|
|
175
|
+
printNextSteps: import_warp.printWarpNextSteps,
|
|
176
|
+
uninit: import_warp.uninitWarp
|
|
177
|
+
};
|
|
178
|
+
}
|
|
179
|
+
if (target === "aider") {
|
|
180
|
+
return {
|
|
181
|
+
label: "Aider",
|
|
182
|
+
installEarly: import_aider.installAiderEarly,
|
|
183
|
+
installLate: import_aider.installAiderLate,
|
|
184
|
+
printNextSteps: import_aider.printAiderNextSteps,
|
|
185
|
+
uninit: import_aider.uninitAider
|
|
186
|
+
};
|
|
187
|
+
}
|
|
188
|
+
if (target === "trae") {
|
|
189
|
+
return {
|
|
190
|
+
label: "Trae",
|
|
191
|
+
installEarly: import_trae.installTraeEarly,
|
|
192
|
+
installLate: import_trae.installTraeLate,
|
|
193
|
+
printNextSteps: import_trae.printTraeNextSteps,
|
|
194
|
+
uninit: import_trae.uninitTrae
|
|
195
|
+
};
|
|
196
|
+
}
|
|
197
|
+
if (target === "augment") {
|
|
198
|
+
return {
|
|
199
|
+
label: "Augment Code",
|
|
200
|
+
installEarly: import_augment.installAugmentEarly,
|
|
201
|
+
installLate: import_augment.installAugmentLate,
|
|
202
|
+
printNextSteps: import_augment.printAugmentNextSteps,
|
|
203
|
+
uninit: import_augment.uninitAugment
|
|
204
|
+
};
|
|
205
|
+
}
|
|
206
|
+
if (target === "kilo") {
|
|
207
|
+
return {
|
|
208
|
+
label: "Kilo Code",
|
|
209
|
+
installEarly: import_kilo.installKiloEarly,
|
|
210
|
+
installLate: import_kilo.installKiloLate,
|
|
211
|
+
printNextSteps: import_kilo.printKiloNextSteps,
|
|
212
|
+
uninit: import_kilo.uninitKilo
|
|
213
|
+
};
|
|
214
|
+
}
|
|
215
|
+
if (target === "amp") {
|
|
216
|
+
return {
|
|
217
|
+
label: "Sourcegraph Amp",
|
|
218
|
+
installEarly: import_amp.installAmpEarly,
|
|
219
|
+
installLate: import_amp.installAmpLate,
|
|
220
|
+
printNextSteps: import_amp.printAmpNextSteps,
|
|
221
|
+
uninit: import_amp.uninitAmp
|
|
222
|
+
};
|
|
223
|
+
}
|
|
224
|
+
if (target === "devin") {
|
|
225
|
+
return {
|
|
226
|
+
label: "Devin",
|
|
227
|
+
installEarly: import_devin.installDevinEarly,
|
|
228
|
+
installLate: import_devin.installDevinLate,
|
|
229
|
+
printNextSteps: import_devin.printDevinNextSteps,
|
|
230
|
+
uninit: import_devin.uninitDevin
|
|
231
|
+
};
|
|
232
|
+
}
|
|
233
|
+
if (target === "replit") {
|
|
234
|
+
return {
|
|
235
|
+
label: "Replit Agent",
|
|
236
|
+
installEarly: import_replit.installReplitEarly,
|
|
237
|
+
installLate: import_replit.installReplitLate,
|
|
238
|
+
printNextSteps: import_replit.printReplitNextSteps,
|
|
239
|
+
uninit: import_replit.uninitReplit
|
|
240
|
+
};
|
|
241
|
+
}
|
|
242
|
+
if (target === "goose") {
|
|
243
|
+
return {
|
|
244
|
+
label: "Block Goose",
|
|
245
|
+
installEarly: import_goose.installGooseEarly,
|
|
246
|
+
installLate: import_goose.installGooseLate,
|
|
247
|
+
printNextSteps: import_goose.printGooseNextSteps,
|
|
248
|
+
uninit: import_goose.uninitGoose
|
|
249
|
+
};
|
|
250
|
+
}
|
|
251
|
+
if (target === "openhands") {
|
|
252
|
+
return {
|
|
253
|
+
label: "OpenHands",
|
|
254
|
+
installEarly: import_openhands.installOpenHandsEarly,
|
|
255
|
+
installLate: import_openhands.installOpenHandsLate,
|
|
256
|
+
printNextSteps: import_openhands.printOpenHandsNextSteps,
|
|
257
|
+
uninit: import_openhands.uninitOpenHands
|
|
258
|
+
};
|
|
259
|
+
}
|
|
260
|
+
if (target === "tabnine") {
|
|
261
|
+
return {
|
|
262
|
+
label: "Tabnine",
|
|
263
|
+
installEarly: import_tabnine.installTabnineEarly,
|
|
264
|
+
installLate: import_tabnine.installTabnineLate,
|
|
265
|
+
printNextSteps: import_tabnine.printTabnineNextSteps,
|
|
266
|
+
uninit: import_tabnine.uninitTabnine
|
|
267
|
+
};
|
|
268
|
+
}
|
|
269
|
+
if (target === "mistral-vibe") {
|
|
270
|
+
return { label: "Mistral Vibe", installEarly: import_generic.mistralVibe.installEarly, installLate: import_generic.mistralVibe.installLate, printNextSteps: import_generic.mistralVibe.printNextSteps, uninit: import_generic.mistralVibe.uninit };
|
|
271
|
+
}
|
|
272
|
+
if (target === "ibm-bob") {
|
|
273
|
+
return { label: "IBM Bob", installEarly: import_generic.ibmBob.installEarly, installLate: import_generic.ibmBob.installLate, printNextSteps: import_generic.ibmBob.printNextSteps, uninit: import_generic.ibmBob.uninit };
|
|
274
|
+
}
|
|
275
|
+
if (target === "crush") {
|
|
276
|
+
return { label: "Crush", installEarly: import_generic.crush.installEarly, installLate: import_generic.crush.installLate, printNextSteps: import_generic.crush.printNextSteps, uninit: import_generic.crush.uninit };
|
|
277
|
+
}
|
|
278
|
+
if (target === "droid-factory") {
|
|
279
|
+
return { label: "Droid Factory", installEarly: import_generic.droidFactory.installEarly, installLate: import_generic.droidFactory.installLate, printNextSteps: import_generic.droidFactory.printNextSteps, uninit: import_generic.droidFactory.uninit };
|
|
280
|
+
}
|
|
281
|
+
if (target === "forgecode") {
|
|
282
|
+
return { label: "ForgeCode", installEarly: import_generic.forgeCode.installEarly, installLate: import_generic.forgeCode.installLate, printNextSteps: import_generic.forgeCode.printNextSteps, uninit: import_generic.forgeCode.uninit };
|
|
283
|
+
}
|
|
284
|
+
if (target === "iflow") {
|
|
285
|
+
return { label: "iFlow CLI", installEarly: import_generic.iflowCli.installEarly, installLate: import_generic.iflowCli.installLate, printNextSteps: import_generic.iflowCli.printNextSteps, uninit: import_generic.iflowCli.uninit };
|
|
286
|
+
}
|
|
287
|
+
if (target === "qwen") {
|
|
288
|
+
return { label: "Qwen Code", installEarly: import_qwen.installQwenEarly, installLate: import_qwen.installQwenLate, printNextSteps: import_qwen.printQwenNextSteps, uninit: import_qwen.uninitQwen };
|
|
289
|
+
}
|
|
290
|
+
if (target === "rovo") {
|
|
291
|
+
return { label: "Atlassian Rovo Dev", installEarly: import_generic.rovoDev.installEarly, installLate: import_generic.rovoDev.installLate, printNextSteps: import_generic.rovoDev.printNextSteps, uninit: import_generic.rovoDev.uninit };
|
|
292
|
+
}
|
|
293
|
+
if (target === "qoder") {
|
|
294
|
+
return { label: "Qoder", installEarly: import_qoder.installQoderEarly, installLate: import_qoder.installQoderLate, printNextSteps: import_qoder.printQoderNextSteps, uninit: import_qoder.uninitQoder };
|
|
295
|
+
}
|
|
46
296
|
return {
|
|
47
297
|
label: "Kiro",
|
|
48
298
|
installEarly: import_kiro.installKiroEarly,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/bin/installer/targets/index.ts"],
|
|
4
|
-
"sourcesContent": ["import type { CavemanMode } from '../caveman';\nimport type { InstallTarget } from '../common';\nimport { installKiroEarly, installKiroLate, printKiroNextSteps } from './kiro';\nimport { installClaudeEarly, installClaudeLate, printClaudeNextSteps, uninitClaude } from './claude';\nimport { installCodexEarly, installCodexLate, printCodexNextSteps, uninitCodex } from './codex';\n\nexport interface TargetInstaller {\n label: string;\n installEarly(projectRoot: string): void;\n installLate(projectRoot: string, cavemanMode?: CavemanMode | 'off', shellCompressionLevel?: string, enableMemory?: boolean, enableDocs?: boolean, enableData?: boolean): void;\n printNextSteps(projectRoot: string): void;\n uninit?(projectRoot: string): void;\n}\n\nexport function getTargetInstaller(target: InstallTarget): TargetInstaller {\n if (target === 'claude') {\n return {\n label: 'Claude Code',\n installEarly: installClaudeEarly,\n installLate: installClaudeLate,\n printNextSteps: printClaudeNextSteps,\n uninit: uninitClaude,\n };\n }\n\n if (target === 'codex') {\n return {\n label: 'Codex',\n installEarly: installCodexEarly,\n installLate: installCodexLate,\n printNextSteps: printCodexNextSteps,\n uninit: uninitCodex,\n };\n }\n\n return {\n label: 'Kiro',\n installEarly: installKiroEarly,\n installLate: installKiroLate,\n printNextSteps: printKiroNextSteps,\n };\n}\n\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,kBAAsE;AACtE,oBAA0F;AAC1F,mBAAsF;
|
|
4
|
+
"sourcesContent": ["import type { CavemanMode } from '../caveman';\nimport type { InstallTarget } from '../common';\nimport { installKiroEarly, installKiroLate, printKiroNextSteps } from './kiro';\nimport { installClaudeEarly, installClaudeLate, printClaudeNextSteps, uninitClaude } from './claude';\nimport { installCodexEarly, installCodexLate, printCodexNextSteps, uninitCodex } from './codex';\nimport { installCursorEarly, installCursorLate, printCursorNextSteps, uninitCursor } from './cursor';\nimport { installAntigravityEarly, installAntigravityLate, printAntigravityNextSteps, uninitAntigravity } from './antigravity';\nimport { installOpenCodeEarly, installOpenCodeLate, printOpenCodeNextSteps, uninitOpenCode } from './opencode';\nimport { installWindsurfEarly, installWindsurfLate, printWindsurfNextSteps, uninitWindsurf } from './windsurf';\nimport { installClineEarly, installClineLate, printClineNextSteps, uninitCline } from './cline';\nimport { installCopilotEarly, installCopilotLate, printCopilotNextSteps, uninitCopilot } from './copilot';\nimport { installCopilotCliEarly, installCopilotCliLate, printCopilotCliNextSteps, uninitCopilotCli } from './copilot-cli';\nimport { installJunieEarly, installJunieLate, printJunieNextSteps, uninitJunie } from './junie';\nimport { installGeminiCliEarly, installGeminiCliLate, printGeminiCliNextSteps, uninitGeminiCli } from './gemini-cli';\nimport { installContinueEarly, installContinueLate, printContinueNextSteps, uninitContinue } from './continue';\nimport { installRooEarly, installRooLate, printRooNextSteps, uninitRoo } from './roo';\nimport { installWarpEarly, installWarpLate, printWarpNextSteps, uninitWarp } from './warp';\nimport { installAiderEarly, installAiderLate, printAiderNextSteps, uninitAider } from './aider';\nimport { installTraeEarly, installTraeLate, printTraeNextSteps, uninitTrae } from './trae';\nimport { installAugmentEarly, installAugmentLate, printAugmentNextSteps, uninitAugment } from './augment';\nimport { installKiloEarly, installKiloLate, printKiloNextSteps, uninitKilo } from './kilo';\nimport { installAmpEarly, installAmpLate, printAmpNextSteps, uninitAmp } from './amp';\nimport { installDevinEarly, installDevinLate, printDevinNextSteps, uninitDevin } from './devin';\nimport { installReplitEarly, installReplitLate, printReplitNextSteps, uninitReplit } from './replit';\nimport { installGooseEarly, installGooseLate, printGooseNextSteps, uninitGoose } from './goose';\nimport { installOpenHandsEarly, installOpenHandsLate, printOpenHandsNextSteps, uninitOpenHands } from './openhands';\nimport { installTabnineEarly, installTabnineLate, printTabnineNextSteps, uninitTabnine } from './tabnine';\nimport { mistralVibe, ibmBob, crush, droidFactory, forgeCode, iflowCli, rovoDev } from './generic';\nimport { installQoderEarly, installQoderLate, printQoderNextSteps, uninitQoder } from './qoder';\nimport { installQwenEarly, installQwenLate, printQwenNextSteps, uninitQwen } from './qwen';\n\nexport interface TargetInstaller {\n label: string;\n installEarly(projectRoot: string): void;\n installLate(projectRoot: string, cavemanMode?: CavemanMode | 'off', shellCompressionLevel?: string, enableMemory?: boolean, enableDocs?: boolean, enableData?: boolean, enableSecurity?: boolean, enableArchitecture?: boolean): void;\n printNextSteps(projectRoot: string): void;\n uninit?(projectRoot: string): void;\n}\n\nexport function getTargetInstaller(target: InstallTarget): TargetInstaller {\n if (target === 'claude') {\n return {\n label: 'Claude Code',\n installEarly: installClaudeEarly,\n installLate: installClaudeLate,\n printNextSteps: printClaudeNextSteps,\n uninit: uninitClaude,\n };\n }\n\n if (target === 'codex') {\n return {\n label: 'Codex',\n installEarly: installCodexEarly,\n installLate: installCodexLate,\n printNextSteps: printCodexNextSteps,\n uninit: uninitCodex,\n };\n }\n\n if (target === 'cursor') {\n return {\n label: 'Cursor',\n installEarly: installCursorEarly,\n installLate: installCursorLate,\n printNextSteps: printCursorNextSteps,\n uninit: uninitCursor,\n };\n }\n\n if (target === 'antigravity') {\n return {\n label: 'Antigravity',\n installEarly: installAntigravityEarly,\n installLate: installAntigravityLate,\n printNextSteps: printAntigravityNextSteps,\n uninit: uninitAntigravity,\n };\n }\n\n if (target === 'opencode') {\n return {\n label: 'OpenCode',\n installEarly: installOpenCodeEarly,\n installLate: installOpenCodeLate,\n printNextSteps: printOpenCodeNextSteps,\n uninit: uninitOpenCode,\n };\n }\n\n if (target === 'windsurf') {\n return {\n label: 'Windsurf',\n installEarly: installWindsurfEarly,\n installLate: installWindsurfLate,\n printNextSteps: printWindsurfNextSteps,\n uninit: uninitWindsurf,\n };\n }\n\n if (target === 'cline') {\n return {\n label: 'Cline',\n installEarly: installClineEarly,\n installLate: installClineLate,\n printNextSteps: printClineNextSteps,\n uninit: uninitCline,\n };\n }\n\n if (target === 'copilot') {\n return {\n label: 'GitHub Copilot',\n installEarly: installCopilotEarly,\n installLate: installCopilotLate,\n printNextSteps: printCopilotNextSteps,\n uninit: uninitCopilot,\n };\n }\n\n if (target === 'copilot-cli') {\n return {\n label: 'GitHub Copilot CLI',\n installEarly: installCopilotCliEarly,\n installLate: installCopilotCliLate,\n printNextSteps: printCopilotCliNextSteps,\n uninit: uninitCopilotCli,\n };\n }\n\n if (target === 'junie') {\n return {\n label: 'JetBrains Junie',\n installEarly: installJunieEarly,\n installLate: installJunieLate,\n printNextSteps: printJunieNextSteps,\n uninit: uninitJunie,\n };\n }\n\n if (target === 'gemini-cli') {\n return {\n label: 'Gemini CLI',\n installEarly: installGeminiCliEarly,\n installLate: installGeminiCliLate,\n printNextSteps: printGeminiCliNextSteps,\n uninit: uninitGeminiCli,\n };\n }\n\n if (target === 'continue') {\n return {\n label: 'Continue',\n installEarly: installContinueEarly,\n installLate: installContinueLate,\n printNextSteps: printContinueNextSteps,\n uninit: uninitContinue,\n };\n }\n\n if (target === 'roo') {\n return {\n label: 'Roo Code',\n installEarly: installRooEarly,\n installLate: installRooLate,\n printNextSteps: printRooNextSteps,\n uninit: uninitRoo,\n };\n }\n\n if (target === 'warp') {\n return {\n label: 'Warp',\n installEarly: installWarpEarly,\n installLate: installWarpLate,\n printNextSteps: printWarpNextSteps,\n uninit: uninitWarp,\n };\n }\n\n if (target === 'aider') {\n return {\n label: 'Aider',\n installEarly: installAiderEarly,\n installLate: installAiderLate,\n printNextSteps: printAiderNextSteps,\n uninit: uninitAider,\n };\n }\n\n if (target === 'trae') {\n return {\n label: 'Trae',\n installEarly: installTraeEarly,\n installLate: installTraeLate,\n printNextSteps: printTraeNextSteps,\n uninit: uninitTrae,\n };\n }\n\n if (target === 'augment') {\n return {\n label: 'Augment Code',\n installEarly: installAugmentEarly,\n installLate: installAugmentLate,\n printNextSteps: printAugmentNextSteps,\n uninit: uninitAugment,\n };\n }\n\n if (target === 'kilo') {\n return {\n label: 'Kilo Code',\n installEarly: installKiloEarly,\n installLate: installKiloLate,\n printNextSteps: printKiloNextSteps,\n uninit: uninitKilo,\n };\n }\n\n if (target === 'amp') {\n return {\n label: 'Sourcegraph Amp',\n installEarly: installAmpEarly,\n installLate: installAmpLate,\n printNextSteps: printAmpNextSteps,\n uninit: uninitAmp,\n };\n }\n\n if (target === 'devin') {\n return {\n label: 'Devin',\n installEarly: installDevinEarly,\n installLate: installDevinLate,\n printNextSteps: printDevinNextSteps,\n uninit: uninitDevin,\n };\n }\n\n if (target === 'replit') {\n return {\n label: 'Replit Agent',\n installEarly: installReplitEarly,\n installLate: installReplitLate,\n printNextSteps: printReplitNextSteps,\n uninit: uninitReplit,\n };\n }\n\n if (target === 'goose') {\n return {\n label: 'Block Goose',\n installEarly: installGooseEarly,\n installLate: installGooseLate,\n printNextSteps: printGooseNextSteps,\n uninit: uninitGoose,\n };\n }\n\n if (target === 'openhands') {\n return {\n label: 'OpenHands',\n installEarly: installOpenHandsEarly,\n installLate: installOpenHandsLate,\n printNextSteps: printOpenHandsNextSteps,\n uninit: uninitOpenHands,\n };\n }\n\n if (target === 'tabnine') {\n return {\n label: 'Tabnine',\n installEarly: installTabnineEarly,\n installLate: installTabnineLate,\n printNextSteps: printTabnineNextSteps,\n uninit: uninitTabnine,\n };\n }\n\n if (target === 'mistral-vibe') {\n return { label: 'Mistral Vibe', installEarly: mistralVibe.installEarly, installLate: mistralVibe.installLate, printNextSteps: mistralVibe.printNextSteps, uninit: mistralVibe.uninit };\n }\n if (target === 'ibm-bob') {\n return { label: 'IBM Bob', installEarly: ibmBob.installEarly, installLate: ibmBob.installLate, printNextSteps: ibmBob.printNextSteps, uninit: ibmBob.uninit };\n }\n if (target === 'crush') {\n return { label: 'Crush', installEarly: crush.installEarly, installLate: crush.installLate, printNextSteps: crush.printNextSteps, uninit: crush.uninit };\n }\n if (target === 'droid-factory') {\n return { label: 'Droid Factory', installEarly: droidFactory.installEarly, installLate: droidFactory.installLate, printNextSteps: droidFactory.printNextSteps, uninit: droidFactory.uninit };\n }\n if (target === 'forgecode') {\n return { label: 'ForgeCode', installEarly: forgeCode.installEarly, installLate: forgeCode.installLate, printNextSteps: forgeCode.printNextSteps, uninit: forgeCode.uninit };\n }\n if (target === 'iflow') {\n return { label: 'iFlow CLI', installEarly: iflowCli.installEarly, installLate: iflowCli.installLate, printNextSteps: iflowCli.printNextSteps, uninit: iflowCli.uninit };\n }\n if (target === 'qwen') {\n return { label: 'Qwen Code', installEarly: installQwenEarly, installLate: installQwenLate, printNextSteps: printQwenNextSteps, uninit: uninitQwen };\n }\n if (target === 'rovo') {\n return { label: 'Atlassian Rovo Dev', installEarly: rovoDev.installEarly, installLate: rovoDev.installLate, printNextSteps: rovoDev.printNextSteps, uninit: rovoDev.uninit };\n }\n if (target === 'qoder') {\n return { label: 'Qoder', installEarly: installQoderEarly, installLate: installQoderLate, printNextSteps: printQoderNextSteps, uninit: uninitQoder };\n }\n\n return {\n label: 'Kiro',\n installEarly: installKiroEarly,\n installLate: installKiroLate,\n printNextSteps: printKiroNextSteps,\n };\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,kBAAsE;AACtE,oBAA0F;AAC1F,mBAAsF;AACtF,oBAA0F;AAC1F,yBAA8G;AAC9G,sBAAkG;AAClG,sBAAkG;AACl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ACrB,WAAO,EAAE,OAAO,sBAAsB,cAAc,uBAAQ,cAAc,aAAa,uBAAQ,aAAa,gBAAgB,uBAAQ,gBAAgB,QAAQ,uBAAQ,OAAO;AAAA,EAC7K;AACA,MAAI,WAAW,SAAS;AACtB,WAAO,EAAE,OAAO,SAAS,cAAc,gCAAmB,aAAa,+BAAkB,gBAAgB,kCAAqB,QAAQ,yBAAY;AAAA,EACpJ;AAEA,SAAO;AAAA,IACL,OAAO;AAAA,IACP,cAAc;AAAA,IACd,aAAa;AAAA,IACb,gBAAgB;AAAA,EAClB;AACF;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -51,8 +51,8 @@ function installJunieEarly(projectRoot) {
|
|
|
51
51
|
(0, import_common.writeJson)(mcpPath, config);
|
|
52
52
|
console.log(` \u2713 Junie MCP server registered in ${mcpPath}`);
|
|
53
53
|
}
|
|
54
|
-
function installJunieLate(projectRoot, cavemanMode, shellCompressionLevel, enableMemory) {
|
|
55
|
-
const opts = (0, import_common.buildInstructionOpts)(cavemanMode, shellCompressionLevel, enableMemory);
|
|
54
|
+
function installJunieLate(projectRoot, cavemanMode, shellCompressionLevel, enableMemory, enableDocs, enableData, enableSecurity, enableArchitecture) {
|
|
55
|
+
const opts = (0, import_common.buildInstructionOpts)(cavemanMode, shellCompressionLevel, enableMemory, void 0, enableDocs, enableData, enableSecurity, enableArchitecture);
|
|
56
56
|
const instructionsPath = path.join(projectRoot, ".kirograph", "junie.md");
|
|
57
57
|
(0, import_common.ensureDir)(path.dirname(instructionsPath));
|
|
58
58
|
fs.writeFileSync(instructionsPath, (0, import_instructions.buildAgentInstructions)(opts));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/bin/installer/targets/junie.ts"],
|
|
4
|
-
"sourcesContent": ["/**\n * JetBrains Junie target.\n *\n * MCP: .junie/mcp/mcp.json (project-level, standard mcpServers format)\n * Rules: .junie/AGENTS.md (preferred guidelines location)\n * Hooks: Only SessionStart (EAP, user-level only) \u2014 not useful for auto-sync\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 KIROGRAPH_COMMAND,\n KIROGRAPH_MCP_ARGS,\n KIROGRAPH_SERVER_NAME,\n upsertGeneratedBlock,\n removeGeneratedBlock,\n} from '../common';\nimport { buildAgentInstructions } from '../instructions';\n\nconst JUNIE_BLOCK_ID = 'junie';\n\nexport function installJunieEarly(projectRoot: string): void {\n // Write MCP to .junie/mcp/mcp.json (project-level)\n const mcpPath = path.join(projectRoot, '.junie', 'mcp', 'mcp.json');\n ensureDir(path.dirname(mcpPath));\n const config = readJson(mcpPath);\n config.mcpServers = config.mcpServers ?? {};\n config.mcpServers[KIROGRAPH_SERVER_NAME] = {\n command: KIROGRAPH_COMMAND,\n args: KIROGRAPH_MCP_ARGS,\n };\n writeJson(mcpPath, config);\n console.log(` \u2713 Junie MCP server registered in ${mcpPath}`);\n}\n\nexport function installJunieLate(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', 'junie.md');\n ensureDir(path.dirname(instructionsPath));\n fs.writeFileSync(instructionsPath, buildAgentInstructions(opts));\n console.log(` \u2713 Junie instructions written to ${instructionsPath}`);\n\n // Write to .junie/AGENTS.md (preferred guidelines location)\n const agentsPath = path.join(projectRoot, '.junie', 'AGENTS.md');\n ensureDir(path.dirname(agentsPath));\n const changed = upsertGeneratedBlock(agentsPath, JUNIE_BLOCK_ID, '## KiroGraph', buildAgentInstructions(opts));\n console.log(changed\n ? ` \u2713 .junie/AGENTS.md updated with KiroGraph instructions`\n : ` \u2713 .junie/AGENTS.md already up to date`);\n\n // Remove legacy .junie/guidelines.md if it was created by us\n const legacyPath = path.join(projectRoot, '.junie', 'guidelines.md');\n if (fs.existsSync(legacyPath)) {\n const content = fs.readFileSync(legacyPath, 'utf8');\n if (content.includes('kirograph') || content.includes('KiroGraph')) {\n fs.unlinkSync(legacyPath);\n console.log(` \u2713 Removed legacy .junie/guidelines.md (migrated to .junie/AGENTS.md)`);\n }\n }\n}\n\nexport function uninitJunie(projectRoot: string): void {\n // Remove MCP entry\n const mcpPath = path.join(projectRoot, '.junie', 'mcp', 'mcp.json');\n if (fs.existsSync(mcpPath)) {\n const config = readJson(mcpPath);\n if (config.mcpServers?.[KIROGRAPH_SERVER_NAME]) {\n delete config.mcpServers[KIROGRAPH_SERVER_NAME];\n if (Object.keys(config.mcpServers).length === 0) delete config.mcpServers;\n writeJson(mcpPath, config);\n console.log(` \u2713 Removed kirograph from .junie/mcp/mcp.json`);\n }\n }\n\n // Remove guidelines block\n const agentsPath = path.join(projectRoot, '.junie', 'AGENTS.md');\n if (removeGeneratedBlock(agentsPath, JUNIE_BLOCK_ID)) {\n console.log(` \u2713 Removed KiroGraph block from .junie/AGENTS.md`);\n }\n\n // Also check legacy path\n const legacyPath = path.join(projectRoot, '.junie', 'guidelines.md');\n if (removeGeneratedBlock(legacyPath, JUNIE_BLOCK_ID)) {\n console.log(` \u2713 Removed KiroGraph block from .junie/guidelines.md`);\n }\n}\n\nexport function printJunieNextSteps(): void {\n console.log('\\n Done! Restart Junie for the MCP server to load.');\n console.log(' MCP is in .junie/mcp/mcp.json');\n console.log(' KiroGraph guidelines are in .junie/AGENTS.md\\n');\n}\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAQA,SAAoB;AACpB,WAAsB;AAEtB,oBAUO;AACP,0BAAuC;AAEvC,MAAM,iBAAiB;AAEhB,SAAS,kBAAkB,aAA2B;AAE3D,QAAM,UAAU,KAAK,KAAK,aAAa,UAAU,OAAO,UAAU;AAClE,+BAAU,KAAK,QAAQ,OAAO,CAAC;AAC/B,QAAM,aAAS,wBAAS,OAAO;AAC/B,SAAO,aAAa,OAAO,cAAc,CAAC;AAC1C,SAAO,WAAW,mCAAqB,IAAI;AAAA,IACzC,SAAS;AAAA,IACT,MAAM;AAAA,EACR;AACA,+BAAU,SAAS,MAAM;AACzB,UAAQ,IAAI,2CAAsC,OAAO,EAAE;AAC7D;AAEO,SAAS,iBAAiB,aAAqB,aAAmC,uBAAgC,
|
|
4
|
+
"sourcesContent": ["/**\n * JetBrains Junie target.\n *\n * MCP: .junie/mcp/mcp.json (project-level, standard mcpServers format)\n * Rules: .junie/AGENTS.md (preferred guidelines location)\n * Hooks: Only SessionStart (EAP, user-level only) \u2014 not useful for auto-sync\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 KIROGRAPH_COMMAND,\n KIROGRAPH_MCP_ARGS,\n KIROGRAPH_SERVER_NAME,\n upsertGeneratedBlock,\n removeGeneratedBlock,\n} from '../common';\nimport { buildAgentInstructions } from '../instructions';\n\nconst JUNIE_BLOCK_ID = 'junie';\n\nexport function installJunieEarly(projectRoot: string): void {\n // Write MCP to .junie/mcp/mcp.json (project-level)\n const mcpPath = path.join(projectRoot, '.junie', 'mcp', 'mcp.json');\n ensureDir(path.dirname(mcpPath));\n const config = readJson(mcpPath);\n config.mcpServers = config.mcpServers ?? {};\n config.mcpServers[KIROGRAPH_SERVER_NAME] = {\n command: KIROGRAPH_COMMAND,\n args: KIROGRAPH_MCP_ARGS,\n };\n writeJson(mcpPath, config);\n console.log(` \u2713 Junie MCP server registered in ${mcpPath}`);\n}\n\nexport function installJunieLate(projectRoot: string, cavemanMode?: CavemanMode | 'off', shellCompressionLevel?: string, enableMemory?: boolean, enableDocs?: boolean, enableData?: boolean, enableSecurity?: boolean, enableArchitecture?: boolean): void {\n const opts = buildInstructionOpts(cavemanMode, shellCompressionLevel, enableMemory, undefined, enableDocs, enableData, enableSecurity, enableArchitecture);\n\n const instructionsPath = path.join(projectRoot, '.kirograph', 'junie.md');\n ensureDir(path.dirname(instructionsPath));\n fs.writeFileSync(instructionsPath, buildAgentInstructions(opts));\n console.log(` \u2713 Junie instructions written to ${instructionsPath}`);\n\n // Write to .junie/AGENTS.md (preferred guidelines location)\n const agentsPath = path.join(projectRoot, '.junie', 'AGENTS.md');\n ensureDir(path.dirname(agentsPath));\n const changed = upsertGeneratedBlock(agentsPath, JUNIE_BLOCK_ID, '## KiroGraph', buildAgentInstructions(opts));\n console.log(changed\n ? ` \u2713 .junie/AGENTS.md updated with KiroGraph instructions`\n : ` \u2713 .junie/AGENTS.md already up to date`);\n\n // Remove legacy .junie/guidelines.md if it was created by us\n const legacyPath = path.join(projectRoot, '.junie', 'guidelines.md');\n if (fs.existsSync(legacyPath)) {\n const content = fs.readFileSync(legacyPath, 'utf8');\n if (content.includes('kirograph') || content.includes('KiroGraph')) {\n fs.unlinkSync(legacyPath);\n console.log(` \u2713 Removed legacy .junie/guidelines.md (migrated to .junie/AGENTS.md)`);\n }\n }\n}\n\nexport function uninitJunie(projectRoot: string): void {\n // Remove MCP entry\n const mcpPath = path.join(projectRoot, '.junie', 'mcp', 'mcp.json');\n if (fs.existsSync(mcpPath)) {\n const config = readJson(mcpPath);\n if (config.mcpServers?.[KIROGRAPH_SERVER_NAME]) {\n delete config.mcpServers[KIROGRAPH_SERVER_NAME];\n if (Object.keys(config.mcpServers).length === 0) delete config.mcpServers;\n writeJson(mcpPath, config);\n console.log(` \u2713 Removed kirograph from .junie/mcp/mcp.json`);\n }\n }\n\n // Remove guidelines block\n const agentsPath = path.join(projectRoot, '.junie', 'AGENTS.md');\n if (removeGeneratedBlock(agentsPath, JUNIE_BLOCK_ID)) {\n console.log(` \u2713 Removed KiroGraph block from .junie/AGENTS.md`);\n }\n\n // Also check legacy path\n const legacyPath = path.join(projectRoot, '.junie', 'guidelines.md');\n if (removeGeneratedBlock(legacyPath, JUNIE_BLOCK_ID)) {\n console.log(` \u2713 Removed KiroGraph block from .junie/guidelines.md`);\n }\n}\n\nexport function printJunieNextSteps(): void {\n console.log('\\n Done! Restart Junie for the MCP server to load.');\n console.log(' MCP is in .junie/mcp/mcp.json');\n console.log(' KiroGraph guidelines are in .junie/AGENTS.md\\n');\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAQA,SAAoB;AACpB,WAAsB;AAEtB,oBAUO;AACP,0BAAuC;AAEvC,MAAM,iBAAiB;AAEhB,SAAS,kBAAkB,aAA2B;AAE3D,QAAM,UAAU,KAAK,KAAK,aAAa,UAAU,OAAO,UAAU;AAClE,+BAAU,KAAK,QAAQ,OAAO,CAAC;AAC/B,QAAM,aAAS,wBAAS,OAAO;AAC/B,SAAO,aAAa,OAAO,cAAc,CAAC;AAC1C,SAAO,WAAW,mCAAqB,IAAI;AAAA,IACzC,SAAS;AAAA,IACT,MAAM;AAAA,EACR;AACA,+BAAU,SAAS,MAAM;AACzB,UAAQ,IAAI,2CAAsC,OAAO,EAAE;AAC7D;AAEO,SAAS,iBAAiB,aAAqB,aAAmC,uBAAgC,cAAwB,YAAsB,YAAsB,gBAA0B,oBAAoC;AACzP,QAAM,WAAO,oCAAqB,aAAa,uBAAuB,cAAc,QAAW,YAAY,YAAY,gBAAgB,kBAAkB;AAEzJ,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,aAAa,KAAK,KAAK,aAAa,UAAU,WAAW;AAC/D,+BAAU,KAAK,QAAQ,UAAU,CAAC;AAClC,QAAM,cAAU,oCAAqB,YAAY,gBAAgB,oBAAgB,4CAAuB,IAAI,CAAC;AAC7G,UAAQ,IAAI,UACR,kEACA,8CAAyC;AAG7C,QAAM,aAAa,KAAK,KAAK,aAAa,UAAU,eAAe;AACnE,MAAI,GAAG,WAAW,UAAU,GAAG;AAC7B,UAAM,UAAU,GAAG,aAAa,YAAY,MAAM;AAClD,QAAI,QAAQ,SAAS,WAAW,KAAK,QAAQ,SAAS,WAAW,GAAG;AAClE,SAAG,WAAW,UAAU;AACxB,cAAQ,IAAI,6EAAwE;AAAA,IACtF;AAAA,EACF;AACF;AAEO,SAAS,YAAY,aAA2B;AAErD,QAAM,UAAU,KAAK,KAAK,aAAa,UAAU,OAAO,UAAU;AAClE,MAAI,GAAG,WAAW,OAAO,GAAG;AAC1B,UAAM,aAAS,wBAAS,OAAO;AAC/B,QAAI,OAAO,aAAa,mCAAqB,GAAG;AAC9C,aAAO,OAAO,WAAW,mCAAqB;AAC9C,UAAI,OAAO,KAAK,OAAO,UAAU,EAAE,WAAW,EAAG,QAAO,OAAO;AAC/D,mCAAU,SAAS,MAAM;AACzB,cAAQ,IAAI,qDAAgD;AAAA,IAC9D;AAAA,EACF;AAGA,QAAM,aAAa,KAAK,KAAK,aAAa,UAAU,WAAW;AAC/D,UAAI,oCAAqB,YAAY,cAAc,GAAG;AACpD,YAAQ,IAAI,wDAAmD;AAAA,EACjE;AAGA,QAAM,aAAa,KAAK,KAAK,aAAa,UAAU,eAAe;AACnE,UAAI,oCAAqB,YAAY,cAAc,GAAG;AACpD,YAAQ,IAAI,4DAAuD;AAAA,EACrE;AACF;AAEO,SAAS,sBAA4B;AAC1C,UAAQ,IAAI,qDAAqD;AACjE,UAAQ,IAAI,iCAAiC;AAC7C,UAAQ,IAAI,kDAAkD;AAChE;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -52,8 +52,8 @@ function installKiloEarly(projectRoot) {
|
|
|
52
52
|
(0, import_common.writeJson)(configPath, config);
|
|
53
53
|
console.log(` \u2713 Kilo Code MCP server registered in ${configPath}`);
|
|
54
54
|
}
|
|
55
|
-
function installKiloLate(projectRoot, cavemanMode, shellCompressionLevel, enableMemory) {
|
|
56
|
-
const opts = (0, import_common.buildInstructionOpts)(cavemanMode, shellCompressionLevel, enableMemory);
|
|
55
|
+
function installKiloLate(projectRoot, cavemanMode, shellCompressionLevel, enableMemory, enableDocs, enableData, enableSecurity, enableArchitecture) {
|
|
56
|
+
const opts = (0, import_common.buildInstructionOpts)(cavemanMode, shellCompressionLevel, enableMemory, void 0, enableDocs, enableData, enableSecurity, enableArchitecture);
|
|
57
57
|
const instructionsPath = path.join(projectRoot, ".kirograph", "kilo.md");
|
|
58
58
|
(0, import_common.ensureDir)(path.dirname(instructionsPath));
|
|
59
59
|
fs.writeFileSync(instructionsPath, (0, import_instructions.buildAgentInstructions)(opts));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/bin/installer/targets/kilo.ts"],
|
|
4
|
-
"sourcesContent": ["/**\n * Kilo Code target.\n *\n * MCP: kilo.json or .kilo/kilo.json (project-level, \"mcp\" key with type: \"local\")\n * Rules: .kilo/rules/kirograph.md + referenced in kilo.jsonc \"instructions\" array\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 KIROGRAPH_COMMAND,\n KIROGRAPH_MCP_ARGS,\n} from '../common';\nimport { buildAgentInstructions } from '../instructions';\n\nconst KILO_MCP_NAME = 'kirograph';\nconst KILO_RULES_FILE = '.kilo/rules/kirograph.md';\n\nexport function installKiloEarly(projectRoot: string): void {\n // Write MCP to kilo.json (project-level)\n const configPath = path.join(projectRoot, 'kilo.json');\n const config = readJson(configPath);\n config.mcp = config.mcp ?? {};\n config.mcp[KILO_MCP_NAME] = {\n type: 'local',\n command: [KIROGRAPH_COMMAND, ...KIROGRAPH_MCP_ARGS],\n enabled: true,\n };\n writeJson(configPath, config);\n console.log(` \u2713 Kilo Code MCP server registered in ${configPath}`);\n}\n\nexport function installKiloLate(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', 'kilo.md');\n ensureDir(path.dirname(instructionsPath));\n fs.writeFileSync(instructionsPath, buildAgentInstructions(opts));\n console.log(` \u2713 Kilo Code instructions written to ${instructionsPath}`);\n\n // Write rules file inside .kilo/rules/\n const rulesDir = path.join(projectRoot, '.kilo', 'rules');\n ensureDir(rulesDir);\n const rulePath = path.join(rulesDir, 'kirograph.md');\n fs.writeFileSync(rulePath, buildAgentInstructions(opts));\n console.log(` \u2713 Kilo Code rule written to ${rulePath}`);\n\n // Add to instructions array in kilo.jsonc (or kilo.json)\n const jsoncPath = path.join(projectRoot, 'kilo.jsonc');\n const jsonPath = path.join(projectRoot, 'kilo.json');\n const cfgPath = fs.existsSync(jsoncPath) ? jsoncPath : jsonPath;\n const cfg = readJson(cfgPath);\n const instructions: string[] = cfg.instructions ?? [];\n if (!instructions.includes(KILO_RULES_FILE)) {\n instructions.push(KILO_RULES_FILE);\n }\n cfg.instructions = instructions;\n writeJson(cfgPath, cfg);\n console.log(` \u2713 Kilo Code instructions referenced in ${cfgPath}`);\n}\n\nexport function uninitKilo(projectRoot: string): void {\n // Remove MCP entry\n const configPath = path.join(projectRoot, 'kilo.json');\n if (fs.existsSync(configPath)) {\n const config = readJson(configPath);\n if (config.mcp?.[KILO_MCP_NAME]) {\n delete config.mcp[KILO_MCP_NAME];\n if (Object.keys(config.mcp).length === 0) delete config.mcp;\n writeJson(configPath, config);\n console.log(` \u2713 Removed kirograph from kilo.json mcp`);\n }\n }\n\n // Remove instructions reference\n const jsoncPath = path.join(projectRoot, 'kilo.jsonc');\n const jsonPath = path.join(projectRoot, 'kilo.json');\n const cfgPath = fs.existsSync(jsoncPath) ? jsoncPath : jsonPath;\n if (fs.existsSync(cfgPath)) {\n const cfg = readJson(cfgPath);\n if (Array.isArray(cfg.instructions)) {\n const idx = cfg.instructions.indexOf(KILO_RULES_FILE);\n if (idx !== -1) {\n cfg.instructions.splice(idx, 1);\n if (cfg.instructions.length === 0) delete cfg.instructions;\n writeJson(cfgPath, cfg);\n console.log(` \u2713 Removed kirograph instructions from ${cfgPath}`);\n }\n }\n }\n\n // Remove rule file\n const rulePath = path.join(projectRoot, '.kilo', 'rules', 'kirograph.md');\n if (fs.existsSync(rulePath)) {\n fs.unlinkSync(rulePath);\n console.log(` \u2713 Removed .kilo/rules/kirograph.md`);\n }\n}\n\nexport function printKiloNextSteps(): void {\n console.log('\\n Done! Restart Kilo Code for the MCP server to load.');\n console.log(' MCP is in kilo.json');\n console.log(' KiroGraph rule is in .kilo/rules/kirograph.md\\n');\n}\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAOA,SAAoB;AACpB,WAAsB;AAEtB,oBAOO;AACP,0BAAuC;AAEvC,MAAM,gBAAgB;AACtB,MAAM,kBAAkB;AAEjB,SAAS,iBAAiB,aAA2B;AAE1D,QAAM,aAAa,KAAK,KAAK,aAAa,WAAW;AACrD,QAAM,aAAS,wBAAS,UAAU;AAClC,SAAO,MAAM,OAAO,OAAO,CAAC;AAC5B,SAAO,IAAI,aAAa,IAAI;AAAA,IAC1B,MAAM;AAAA,IACN,SAAS,CAAC,iCAAmB,GAAG,gCAAkB;AAAA,IAClD,SAAS;AAAA,EACX;AACA,+BAAU,YAAY,MAAM;AAC5B,UAAQ,IAAI,+CAA0C,UAAU,EAAE;AACpE;AAEO,SAAS,gBAAgB,aAAqB,aAAmC,uBAAgC,
|
|
4
|
+
"sourcesContent": ["/**\n * Kilo Code target.\n *\n * MCP: kilo.json or .kilo/kilo.json (project-level, \"mcp\" key with type: \"local\")\n * Rules: .kilo/rules/kirograph.md + referenced in kilo.jsonc \"instructions\" array\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 KIROGRAPH_COMMAND,\n KIROGRAPH_MCP_ARGS,\n} from '../common';\nimport { buildAgentInstructions } from '../instructions';\n\nconst KILO_MCP_NAME = 'kirograph';\nconst KILO_RULES_FILE = '.kilo/rules/kirograph.md';\n\nexport function installKiloEarly(projectRoot: string): void {\n // Write MCP to kilo.json (project-level)\n const configPath = path.join(projectRoot, 'kilo.json');\n const config = readJson(configPath);\n config.mcp = config.mcp ?? {};\n config.mcp[KILO_MCP_NAME] = {\n type: 'local',\n command: [KIROGRAPH_COMMAND, ...KIROGRAPH_MCP_ARGS],\n enabled: true,\n };\n writeJson(configPath, config);\n console.log(` \u2713 Kilo Code MCP server registered in ${configPath}`);\n}\n\nexport function installKiloLate(projectRoot: string, cavemanMode?: CavemanMode | 'off', shellCompressionLevel?: string, enableMemory?: boolean, enableDocs?: boolean, enableData?: boolean, enableSecurity?: boolean, enableArchitecture?: boolean): void {\n const opts = buildInstructionOpts(cavemanMode, shellCompressionLevel, enableMemory, undefined, enableDocs, enableData, enableSecurity, enableArchitecture);\n\n const instructionsPath = path.join(projectRoot, '.kirograph', 'kilo.md');\n ensureDir(path.dirname(instructionsPath));\n fs.writeFileSync(instructionsPath, buildAgentInstructions(opts));\n console.log(` \u2713 Kilo Code instructions written to ${instructionsPath}`);\n\n // Write rules file inside .kilo/rules/\n const rulesDir = path.join(projectRoot, '.kilo', 'rules');\n ensureDir(rulesDir);\n const rulePath = path.join(rulesDir, 'kirograph.md');\n fs.writeFileSync(rulePath, buildAgentInstructions(opts));\n console.log(` \u2713 Kilo Code rule written to ${rulePath}`);\n\n // Add to instructions array in kilo.jsonc (or kilo.json)\n const jsoncPath = path.join(projectRoot, 'kilo.jsonc');\n const jsonPath = path.join(projectRoot, 'kilo.json');\n const cfgPath = fs.existsSync(jsoncPath) ? jsoncPath : jsonPath;\n const cfg = readJson(cfgPath);\n const instructions: string[] = cfg.instructions ?? [];\n if (!instructions.includes(KILO_RULES_FILE)) {\n instructions.push(KILO_RULES_FILE);\n }\n cfg.instructions = instructions;\n writeJson(cfgPath, cfg);\n console.log(` \u2713 Kilo Code instructions referenced in ${cfgPath}`);\n}\n\nexport function uninitKilo(projectRoot: string): void {\n // Remove MCP entry\n const configPath = path.join(projectRoot, 'kilo.json');\n if (fs.existsSync(configPath)) {\n const config = readJson(configPath);\n if (config.mcp?.[KILO_MCP_NAME]) {\n delete config.mcp[KILO_MCP_NAME];\n if (Object.keys(config.mcp).length === 0) delete config.mcp;\n writeJson(configPath, config);\n console.log(` \u2713 Removed kirograph from kilo.json mcp`);\n }\n }\n\n // Remove instructions reference\n const jsoncPath = path.join(projectRoot, 'kilo.jsonc');\n const jsonPath = path.join(projectRoot, 'kilo.json');\n const cfgPath = fs.existsSync(jsoncPath) ? jsoncPath : jsonPath;\n if (fs.existsSync(cfgPath)) {\n const cfg = readJson(cfgPath);\n if (Array.isArray(cfg.instructions)) {\n const idx = cfg.instructions.indexOf(KILO_RULES_FILE);\n if (idx !== -1) {\n cfg.instructions.splice(idx, 1);\n if (cfg.instructions.length === 0) delete cfg.instructions;\n writeJson(cfgPath, cfg);\n console.log(` \u2713 Removed kirograph instructions from ${cfgPath}`);\n }\n }\n }\n\n // Remove rule file\n const rulePath = path.join(projectRoot, '.kilo', 'rules', 'kirograph.md');\n if (fs.existsSync(rulePath)) {\n fs.unlinkSync(rulePath);\n console.log(` \u2713 Removed .kilo/rules/kirograph.md`);\n }\n}\n\nexport function printKiloNextSteps(): void {\n console.log('\\n Done! Restart Kilo Code for the MCP server to load.');\n console.log(' MCP is in kilo.json');\n console.log(' KiroGraph rule is in .kilo/rules/kirograph.md\\n');\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;A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AI,mDAAmD;AACjE;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -43,12 +43,12 @@ function installKiroEarly(projectRoot) {
|
|
|
43
43
|
(0, import_mcp.writeMcpConfig)(kiroDir);
|
|
44
44
|
(0, import_hooks.writeHooks)(kiroDir);
|
|
45
45
|
}
|
|
46
|
-
function installKiroLate(projectRoot, cavemanMode, shellCompressionLevel, enableMemory, enableDocs, enableData) {
|
|
46
|
+
function installKiroLate(projectRoot, cavemanMode, shellCompressionLevel, enableMemory, enableDocs, enableData, enableSecurity, enableArchitecture) {
|
|
47
47
|
const kiroDir = path.join(projectRoot, ".kiro");
|
|
48
48
|
const enableCompression = shellCompressionLevel !== "off";
|
|
49
49
|
(0, import_hooks.writeHooks)(kiroDir, { enableCompression, enableMemory });
|
|
50
|
-
(0, import_steering.writeSteering)(kiroDir, { cavemanMode, enableCompression, shellCompressionLevel, enableMemory, enableDocs, enableData });
|
|
51
|
-
(0, import_cli_agent.writeCliAgent)(kiroDir);
|
|
50
|
+
(0, import_steering.writeSteering)(kiroDir, { cavemanMode, enableCompression, shellCompressionLevel, enableMemory, enableDocs, enableData, enableSecurity, enableArchitecture });
|
|
51
|
+
(0, import_cli_agent.writeCliAgent)(kiroDir, { enableSecurity, enableArchitecture });
|
|
52
52
|
}
|
|
53
53
|
function printKiroNextSteps() {
|
|
54
54
|
console.log("\n Done! Restart Kiro IDE for the MCP server to load.");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/bin/installer/targets/kiro.ts"],
|
|
4
|
-
"sourcesContent": ["import * as path from 'path';\nimport { CavemanMode } from '../caveman';\nimport { writeCliAgent } from '../cli-agent';\nimport { writeHooks } from '../hooks';\nimport { writeMcpConfig } from '../mcp';\nimport { writeSteering } from '../steering';\n\nexport function installKiroEarly(projectRoot: string): void {\n const kiroDir = path.join(projectRoot, '.kiro');\n writeMcpConfig(kiroDir);\n writeHooks(kiroDir);\n}\n\nexport function installKiroLate(projectRoot: string, cavemanMode?: CavemanMode | 'off', shellCompressionLevel?: string, enableMemory?: boolean, enableDocs?: boolean, enableData?: boolean): void {\n const kiroDir = path.join(projectRoot, '.kiro');\n const enableCompression = shellCompressionLevel !== 'off';\n
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,WAAsB;AAEtB,uBAA8B;AAC9B,mBAA2B;AAC3B,iBAA+B;AAC/B,sBAA8B;AAEvB,SAAS,iBAAiB,aAA2B;AAC1D,QAAM,UAAU,KAAK,KAAK,aAAa,OAAO;AAC9C,iCAAe,OAAO;AACtB,+BAAW,OAAO;AACpB;AAEO,SAAS,gBAAgB,aAAqB,aAAmC,uBAAgC,cAAwB,YAAsB,
|
|
4
|
+
"sourcesContent": ["import * as path from 'path';\nimport { CavemanMode } from '../caveman';\nimport { writeCliAgent } from '../cli-agent';\nimport { writeHooks } from '../hooks';\nimport { writeMcpConfig } from '../mcp';\nimport { writeSteering } from '../steering';\n\nexport function installKiroEarly(projectRoot: string): void {\n const kiroDir = path.join(projectRoot, '.kiro');\n writeMcpConfig(kiroDir);\n writeHooks(kiroDir);\n}\n\nexport function installKiroLate(projectRoot: string, cavemanMode?: CavemanMode | 'off', shellCompressionLevel?: string, enableMemory?: boolean, enableDocs?: boolean, enableData?: boolean, enableSecurity?: boolean, enableArchitecture?: boolean): void {\n const kiroDir = path.join(projectRoot, '.kiro');\n const enableCompression = shellCompressionLevel !== 'off';\n writeHooks(kiroDir, { enableCompression, enableMemory });\n writeSteering(kiroDir, { cavemanMode, enableCompression, shellCompressionLevel: shellCompressionLevel as any, enableMemory, enableDocs, enableData, enableSecurity, enableArchitecture });\n writeCliAgent(kiroDir, { enableSecurity, enableArchitecture });\n}\n\nexport function printKiroNextSteps(): void {\n console.log('\\n Done! Restart Kiro IDE for the MCP server to load.');\n console.log(' For Kiro CLI, use the \"kirograph\" agent: kiro-cli --agent kirograph\\n');\n}\n\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,WAAsB;AAEtB,uBAA8B;AAC9B,mBAA2B;AAC3B,iBAA+B;AAC/B,sBAA8B;AAEvB,SAAS,iBAAiB,aAA2B;AAC1D,QAAM,UAAU,KAAK,KAAK,aAAa,OAAO;AAC9C,iCAAe,OAAO;AACtB,+BAAW,OAAO;AACpB;AAEO,SAAS,gBAAgB,aAAqB,aAAmC,uBAAgC,cAAwB,YAAsB,YAAsB,gBAA0B,oBAAoC;AACxP,QAAM,UAAU,KAAK,KAAK,aAAa,OAAO;AAC9C,QAAM,oBAAoB,0BAA0B;AACpD,+BAAW,SAAS,EAAE,mBAAmB,aAAa,CAAC;AACvD,qCAAc,SAAS,EAAE,aAAa,mBAAmB,uBAAqD,cAAc,YAAY,YAAY,gBAAgB,mBAAmB,CAAC;AACxL,sCAAc,SAAS,EAAE,gBAAgB,mBAAmB,CAAC;AAC/D;AAEO,SAAS,qBAA2B;AACzC,UAAQ,IAAI,wDAAwD;AACpE,UAAQ,IAAI,yEAAyE;AACvF;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -71,8 +71,8 @@ function installOpenCodeEarly(projectRoot) {
|
|
|
71
71
|
(0, import_common.writeJson)(configPath, config);
|
|
72
72
|
console.log(` \u2713 OpenCode MCP server registered in ${configPath}`);
|
|
73
73
|
}
|
|
74
|
-
function installOpenCodeLate(projectRoot, cavemanMode, shellCompressionLevel, enableMemory) {
|
|
75
|
-
const opts = (0, import_common.buildInstructionOpts)(cavemanMode, shellCompressionLevel, enableMemory, true);
|
|
74
|
+
function installOpenCodeLate(projectRoot, cavemanMode, shellCompressionLevel, enableMemory, enableDocs, enableData, enableSecurity, enableArchitecture) {
|
|
75
|
+
const opts = (0, import_common.buildInstructionOpts)(cavemanMode, shellCompressionLevel, enableMemory, true, enableDocs, enableData, enableSecurity, enableArchitecture);
|
|
76
76
|
const instructionsPath = path.join(projectRoot, ".kirograph", "opencode.md");
|
|
77
77
|
(0, import_common.ensureDir)(path.dirname(instructionsPath));
|
|
78
78
|
fs.writeFileSync(instructionsPath, (0, import_instructions.buildAgentInstructions)(opts));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/bin/installer/targets/opencode.ts"],
|
|
4
|
-
"sourcesContent": ["/**\n * OpenCode target.\n *\n * MCP: .opencode.json (mcp field with type: \"local\")\n * Hooks: .opencode/plugins/kirograph-sync.js (JS plugin)\n * Instructions: .opencode.json (instructions field)\n */\n\nimport * as fs from 'fs';\nimport * as path from 'path';\nimport { CavemanMode } from '../caveman';\nimport { ensureDir, buildInstructionOpts, readJson, writeJson } from '../common';\nimport { buildAgentInstructions } from '../instructions';\n\nconst OPENCODE_CONFIG = '.opencode.json';\nconst OPENCODE_MCP_NAME = 'kirograph';\nconst OPENCODE_INSTRUCTIONS_PATH = '.kirograph/opencode.md';\nconst OPENCODE_PLUGIN_FILE = 'kirograph-sync.js';\n\nconst OPENCODE_PLUGIN_CONTENT = `/**\n * KiroGraph auto-sync plugin for OpenCode.\n * Syncs the KiroGraph index when the agent session goes idle.\n */\nexport const KirographSync = async ({ $ }) => {\n return {\n event: async ({ event }) => {\n if (event.type === \"session.idle\") {\n await $\\`kirograph sync --quiet 2>/dev/null || true\\`\n }\n },\n }\n}\n`;\n\nexport function installOpenCodeEarly(projectRoot: string): void {\n const configPath = path.join(projectRoot, OPENCODE_CONFIG);\n const config = readJson(configPath);\n\n config.mcp = config.mcp ?? {};\n config.mcp[OPENCODE_MCP_NAME] = {\n type: 'local',\n command: ['kirograph', 'serve', '--mcp'],\n enabled: true,\n };\n\n if (!config.$schema) {\n config.$schema = 'https://opencode.ai/config.json';\n }\n\n writeJson(configPath, config);\n console.log(` \u2713 OpenCode MCP server registered in ${configPath}`);\n}\n\nexport function installOpenCodeLate(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', 'opencode.md');\n ensureDir(path.dirname(instructionsPath));\n fs.writeFileSync(instructionsPath, buildAgentInstructions(opts));\n console.log(` \u2713 OpenCode instructions written to ${instructionsPath}`);\n\n // Add instructions reference to .opencode.json\n const configPath = path.join(projectRoot, OPENCODE_CONFIG);\n const config = readJson(configPath);\n\n const instructions: string[] = config.instructions ?? [];\n if (!instructions.includes(OPENCODE_INSTRUCTIONS_PATH)) {\n instructions.push(OPENCODE_INSTRUCTIONS_PATH);\n }\n config.instructions = instructions;\n writeJson(configPath, config);\n console.log(` \u2713 OpenCode instructions referenced in ${configPath}`);\n\n // Write sync plugin\n const pluginsDir = path.join(projectRoot, '.opencode', 'plugins');\n ensureDir(pluginsDir);\n const pluginPath = path.join(pluginsDir, OPENCODE_PLUGIN_FILE);\n fs.writeFileSync(pluginPath, OPENCODE_PLUGIN_CONTENT);\n console.log(` \u2713 OpenCode sync plugin written to ${pluginPath}`);\n}\n\nexport function uninitOpenCode(projectRoot: string): void {\n const configPath = path.join(projectRoot, OPENCODE_CONFIG);\n if (fs.existsSync(configPath)) {\n const config = readJson(configPath);\n let changed = false;\n\n // Remove MCP entry\n if (config.mcp?.[OPENCODE_MCP_NAME]) {\n delete config.mcp[OPENCODE_MCP_NAME];\n if (Object.keys(config.mcp).length === 0) delete config.mcp;\n changed = true;\n console.log(` \u2713 Removed kirograph from .opencode.json mcp`);\n }\n\n // Remove instructions reference\n if (Array.isArray(config.instructions)) {\n const idx = config.instructions.indexOf(OPENCODE_INSTRUCTIONS_PATH);\n if (idx !== -1) {\n config.instructions.splice(idx, 1);\n if (config.instructions.length === 0) delete config.instructions;\n changed = true;\n console.log(` \u2713 Removed kirograph instructions from .opencode.json`);\n }\n }\n\n if (changed) writeJson(configPath, config);\n }\n\n // Remove plugin\n const pluginPath = path.join(projectRoot, '.opencode', 'plugins', OPENCODE_PLUGIN_FILE);\n if (fs.existsSync(pluginPath)) {\n fs.unlinkSync(pluginPath);\n console.log(` \u2713 Removed OpenCode sync plugin`);\n }\n}\n\nexport function printOpenCodeNextSteps(): void {\n console.log('\\n Done! Restart OpenCode for the MCP server and sync plugin to load.');\n console.log(' MCP and instructions are in .opencode.json');\n console.log(' Auto-sync plugin is in .opencode/plugins/kirograph-sync.js\\n');\n}\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAQA,SAAoB;AACpB,WAAsB;AAEtB,oBAAqE;AACrE,0BAAuC;AAEvC,MAAM,kBAAkB;AACxB,MAAM,oBAAoB;AAC1B,MAAM,6BAA6B;AACnC,MAAM,uBAAuB;AAE7B,MAAM,0BAA0B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAezB,SAAS,qBAAqB,aAA2B;AAC9D,QAAM,aAAa,KAAK,KAAK,aAAa,eAAe;AACzD,QAAM,aAAS,wBAAS,UAAU;AAElC,SAAO,MAAM,OAAO,OAAO,CAAC;AAC5B,SAAO,IAAI,iBAAiB,IAAI;AAAA,IAC9B,MAAM;AAAA,IACN,SAAS,CAAC,aAAa,SAAS,OAAO;AAAA,IACvC,SAAS;AAAA,EACX;AAEA,MAAI,CAAC,OAAO,SAAS;AACnB,WAAO,UAAU;AAAA,EACnB;AAEA,+BAAU,YAAY,MAAM;AAC5B,UAAQ,IAAI,8CAAyC,UAAU,EAAE;AACnE;AAEO,SAAS,oBAAoB,aAAqB,aAAmC,uBAAgC,
|
|
4
|
+
"sourcesContent": ["/**\n * OpenCode target.\n *\n * MCP: .opencode.json (mcp field with type: \"local\")\n * Hooks: .opencode/plugins/kirograph-sync.js (JS plugin)\n * Instructions: .opencode.json (instructions field)\n */\n\nimport * as fs from 'fs';\nimport * as path from 'path';\nimport { CavemanMode } from '../caveman';\nimport { ensureDir, buildInstructionOpts, readJson, writeJson } from '../common';\nimport { buildAgentInstructions } from '../instructions';\n\nconst OPENCODE_CONFIG = '.opencode.json';\nconst OPENCODE_MCP_NAME = 'kirograph';\nconst OPENCODE_INSTRUCTIONS_PATH = '.kirograph/opencode.md';\nconst OPENCODE_PLUGIN_FILE = 'kirograph-sync.js';\n\nconst OPENCODE_PLUGIN_CONTENT = `/**\n * KiroGraph auto-sync plugin for OpenCode.\n * Syncs the KiroGraph index when the agent session goes idle.\n */\nexport const KirographSync = async ({ $ }) => {\n return {\n event: async ({ event }) => {\n if (event.type === \"session.idle\") {\n await $\\`kirograph sync --quiet 2>/dev/null || true\\`\n }\n },\n }\n}\n`;\n\nexport function installOpenCodeEarly(projectRoot: string): void {\n const configPath = path.join(projectRoot, OPENCODE_CONFIG);\n const config = readJson(configPath);\n\n config.mcp = config.mcp ?? {};\n config.mcp[OPENCODE_MCP_NAME] = {\n type: 'local',\n command: ['kirograph', 'serve', '--mcp'],\n enabled: true,\n };\n\n if (!config.$schema) {\n config.$schema = 'https://opencode.ai/config.json';\n }\n\n writeJson(configPath, config);\n console.log(` \u2713 OpenCode MCP server registered in ${configPath}`);\n}\n\nexport function installOpenCodeLate(projectRoot: string, cavemanMode?: CavemanMode | 'off', shellCompressionLevel?: string, enableMemory?: boolean, enableDocs?: boolean, enableData?: boolean, enableSecurity?: boolean, enableArchitecture?: boolean): void {\n const opts = buildInstructionOpts(cavemanMode, shellCompressionLevel, enableMemory, true, enableDocs, enableData, enableSecurity, enableArchitecture);\n\n const instructionsPath = path.join(projectRoot, '.kirograph', 'opencode.md');\n ensureDir(path.dirname(instructionsPath));\n fs.writeFileSync(instructionsPath, buildAgentInstructions(opts));\n console.log(` \u2713 OpenCode instructions written to ${instructionsPath}`);\n\n // Add instructions reference to .opencode.json\n const configPath = path.join(projectRoot, OPENCODE_CONFIG);\n const config = readJson(configPath);\n\n const instructions: string[] = config.instructions ?? [];\n if (!instructions.includes(OPENCODE_INSTRUCTIONS_PATH)) {\n instructions.push(OPENCODE_INSTRUCTIONS_PATH);\n }\n config.instructions = instructions;\n writeJson(configPath, config);\n console.log(` \u2713 OpenCode instructions referenced in ${configPath}`);\n\n // Write sync plugin\n const pluginsDir = path.join(projectRoot, '.opencode', 'plugins');\n ensureDir(pluginsDir);\n const pluginPath = path.join(pluginsDir, OPENCODE_PLUGIN_FILE);\n fs.writeFileSync(pluginPath, OPENCODE_PLUGIN_CONTENT);\n console.log(` \u2713 OpenCode sync plugin written to ${pluginPath}`);\n}\n\nexport function uninitOpenCode(projectRoot: string): void {\n const configPath = path.join(projectRoot, OPENCODE_CONFIG);\n if (fs.existsSync(configPath)) {\n const config = readJson(configPath);\n let changed = false;\n\n // Remove MCP entry\n if (config.mcp?.[OPENCODE_MCP_NAME]) {\n delete config.mcp[OPENCODE_MCP_NAME];\n if (Object.keys(config.mcp).length === 0) delete config.mcp;\n changed = true;\n console.log(` \u2713 Removed kirograph from .opencode.json mcp`);\n }\n\n // Remove instructions reference\n if (Array.isArray(config.instructions)) {\n const idx = config.instructions.indexOf(OPENCODE_INSTRUCTIONS_PATH);\n if (idx !== -1) {\n config.instructions.splice(idx, 1);\n if (config.instructions.length === 0) delete config.instructions;\n changed = true;\n console.log(` \u2713 Removed kirograph instructions from .opencode.json`);\n }\n }\n\n if (changed) writeJson(configPath, config);\n }\n\n // Remove plugin\n const pluginPath = path.join(projectRoot, '.opencode', 'plugins', OPENCODE_PLUGIN_FILE);\n if (fs.existsSync(pluginPath)) {\n fs.unlinkSync(pluginPath);\n console.log(` \u2713 Removed OpenCode sync plugin`);\n }\n}\n\nexport function printOpenCodeNextSteps(): void {\n console.log('\\n Done! Restart OpenCode for the MCP server and sync plugin to load.');\n console.log(' MCP and instructions are in .opencode.json');\n console.log(' Auto-sync plugin is in .opencode/plugins/kirograph-sync.js\\n');\n}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C1D,UAAQ,IAAI,gEAAgE;AAC9E;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -52,13 +52,13 @@ function installOpenHandsEarly(projectRoot) {
|
|
|
52
52
|
(0, import_common.writeJson)(configPath, config);
|
|
53
53
|
console.log(` \u2713 OpenHands MCP server registered in ${configPath}`);
|
|
54
54
|
}
|
|
55
|
-
function installOpenHandsLate(projectRoot, cavemanMode, shellCompressionLevel, enableMemory) {
|
|
55
|
+
function installOpenHandsLate(projectRoot, cavemanMode, shellCompressionLevel, enableMemory, enableDocs, enableData, enableSecurity, enableArchitecture) {
|
|
56
56
|
const instructionsPath = path.join(projectRoot, ".kirograph", "openhands.md");
|
|
57
57
|
(0, import_common.ensureDir)(path.dirname(instructionsPath));
|
|
58
|
-
fs.writeFileSync(instructionsPath, (0, import_instructions.buildAgentInstructions)((0, import_common2.buildInstructionOpts)(cavemanMode, shellCompressionLevel, enableMemory)));
|
|
58
|
+
fs.writeFileSync(instructionsPath, (0, import_instructions.buildAgentInstructions)((0, import_common2.buildInstructionOpts)(cavemanMode, shellCompressionLevel, enableMemory, void 0, enableDocs, enableData, enableSecurity, enableArchitecture)));
|
|
59
59
|
console.log(` \u2713 OpenHands instructions written to ${instructionsPath}`);
|
|
60
60
|
const agentsPath = path.join(projectRoot, "AGENTS.md");
|
|
61
|
-
const changed = (0, import_common.upsertGeneratedBlock)(agentsPath, OPENHANDS_BLOCK_ID, "## KiroGraph", (0, import_instructions.buildAgentInstructions)((0, import_common2.buildInstructionOpts)(cavemanMode, shellCompressionLevel, enableMemory)));
|
|
61
|
+
const changed = (0, import_common.upsertGeneratedBlock)(agentsPath, OPENHANDS_BLOCK_ID, "## KiroGraph", (0, import_instructions.buildAgentInstructions)((0, import_common2.buildInstructionOpts)(cavemanMode, shellCompressionLevel, enableMemory, void 0, enableDocs, enableData, enableSecurity, enableArchitecture)));
|
|
62
62
|
console.log(changed ? ` \u2713 AGENTS.md updated with KiroGraph instructions (OpenHands)` : ` \u2713 AGENTS.md already up to date`);
|
|
63
63
|
}
|
|
64
64
|
function uninitOpenHands(projectRoot) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/bin/installer/targets/openhands.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 KIROGRAPH_SERVER_NAME,\n readJson,\n writeJson,\n upsertGeneratedBlock,\n removeGeneratedBlock,\n} from '../common';\nimport { buildAgentInstructions } from '../instructions';\nimport { buildInstructionOpts } from '../common';\n\nconst OPENHANDS_BLOCK_ID = 'openhands';\n\nexport function installOpenHandsEarly(projectRoot: string): void {\n const configPath = path.join(projectRoot, '.openhands', 'config.json');\n ensureDir(path.dirname(configPath));\n const config = readJson(configPath);\n config.mcpServers = config.mcpServers ?? {};\n config.mcpServers[KIROGRAPH_SERVER_NAME] = {\n command: KIROGRAPH_COMMAND,\n args: KIROGRAPH_MCP_ARGS,\n };\n writeJson(configPath, config);\n console.log(` \u2713 OpenHands MCP server registered in ${configPath}`);\n}\n\nexport function installOpenHandsLate(projectRoot: string, cavemanMode?: CavemanMode | 'off', shellCompressionLevel?: string, enableMemory?: boolean): void {\n const instructionsPath = path.join(projectRoot, '.kirograph', 'openhands.md');\n ensureDir(path.dirname(instructionsPath));\n fs.writeFileSync(instructionsPath, buildAgentInstructions(buildInstructionOpts(cavemanMode, shellCompressionLevel, enableMemory)));\n console.log(` \u2713 OpenHands instructions written to ${instructionsPath}`);\n\n const agentsPath = path.join(projectRoot, 'AGENTS.md');\n const changed = upsertGeneratedBlock(agentsPath, OPENHANDS_BLOCK_ID, '## KiroGraph', buildAgentInstructions(buildInstructionOpts(cavemanMode, shellCompressionLevel, enableMemory)));\n console.log(changed\n ? ` \u2713 AGENTS.md updated with KiroGraph instructions (OpenHands)`\n : ` \u2713 AGENTS.md already up to date`);\n}\n\nexport function uninitOpenHands(projectRoot: string): void {\n const configPath = path.join(projectRoot, '.openhands', 'config.json');\n if (fs.existsSync(configPath)) {\n const config = readJson(configPath);\n if (config.mcpServers?.[KIROGRAPH_SERVER_NAME]) {\n delete config.mcpServers[KIROGRAPH_SERVER_NAME];\n writeJson(configPath, config);\n console.log(` \u2713 Removed kirograph from .openhands/config.json`);\n }\n }\n\n const agentsPath = path.join(projectRoot, 'AGENTS.md');\n if (removeGeneratedBlock(agentsPath, OPENHANDS_BLOCK_ID)) {\n console.log(` \u2713 Removed KiroGraph block from AGENTS.md (OpenHands)`);\n }\n}\n\nexport function printOpenHandsNextSteps(): void {\n console.log('\\n Done! Restart OpenHands for the MCP server to load.');\n console.log(' KiroGraph instructions are in AGENTS.md\\n');\n}\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SAAoB;AACpB,WAAsB;AAEtB,oBASO;AACP,0BAAuC;AACvC,IAAAA,iBAAqC;AAErC,MAAM,qBAAqB;AAEpB,SAAS,sBAAsB,aAA2B;AAC/D,QAAM,aAAa,KAAK,KAAK,aAAa,cAAc,aAAa;AACrE,+BAAU,KAAK,QAAQ,UAAU,CAAC;AAClC,QAAM,aAAS,wBAAS,UAAU;AAClC,SAAO,aAAa,OAAO,cAAc,CAAC;AAC1C,SAAO,WAAW,mCAAqB,IAAI;AAAA,IACzC,SAAS;AAAA,IACT,MAAM;AAAA,EACR;AACA,+BAAU,YAAY,MAAM;AAC5B,UAAQ,IAAI,+CAA0C,UAAU,EAAE;AACpE;AAEO,SAAS,qBAAqB,aAAqB,aAAmC,uBAAgC,
|
|
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 KIROGRAPH_SERVER_NAME,\n readJson,\n writeJson,\n upsertGeneratedBlock,\n removeGeneratedBlock,\n} from '../common';\nimport { buildAgentInstructions } from '../instructions';\nimport { buildInstructionOpts } from '../common';\n\nconst OPENHANDS_BLOCK_ID = 'openhands';\n\nexport function installOpenHandsEarly(projectRoot: string): void {\n const configPath = path.join(projectRoot, '.openhands', 'config.json');\n ensureDir(path.dirname(configPath));\n const config = readJson(configPath);\n config.mcpServers = config.mcpServers ?? {};\n config.mcpServers[KIROGRAPH_SERVER_NAME] = {\n command: KIROGRAPH_COMMAND,\n args: KIROGRAPH_MCP_ARGS,\n };\n writeJson(configPath, config);\n console.log(` \u2713 OpenHands MCP server registered in ${configPath}`);\n}\n\nexport function installOpenHandsLate(projectRoot: string, cavemanMode?: CavemanMode | 'off', shellCompressionLevel?: string, enableMemory?: boolean, enableDocs?: boolean, enableData?: boolean, enableSecurity?: boolean, enableArchitecture?: boolean): void {\n const instructionsPath = path.join(projectRoot, '.kirograph', 'openhands.md');\n ensureDir(path.dirname(instructionsPath));\n fs.writeFileSync(instructionsPath, buildAgentInstructions(buildInstructionOpts(cavemanMode, shellCompressionLevel, enableMemory, undefined, enableDocs, enableData, enableSecurity, enableArchitecture)));\n console.log(` \u2713 OpenHands instructions written to ${instructionsPath}`);\n\n const agentsPath = path.join(projectRoot, 'AGENTS.md');\n const changed = upsertGeneratedBlock(agentsPath, OPENHANDS_BLOCK_ID, '## KiroGraph', buildAgentInstructions(buildInstructionOpts(cavemanMode, shellCompressionLevel, enableMemory, undefined, enableDocs, enableData, enableSecurity, enableArchitecture)));\n console.log(changed\n ? ` \u2713 AGENTS.md updated with KiroGraph instructions (OpenHands)`\n : ` \u2713 AGENTS.md already up to date`);\n}\n\nexport function uninitOpenHands(projectRoot: string): void {\n const configPath = path.join(projectRoot, '.openhands', 'config.json');\n if (fs.existsSync(configPath)) {\n const config = readJson(configPath);\n if (config.mcpServers?.[KIROGRAPH_SERVER_NAME]) {\n delete config.mcpServers[KIROGRAPH_SERVER_NAME];\n writeJson(configPath, config);\n console.log(` \u2713 Removed kirograph from .openhands/config.json`);\n }\n }\n\n const agentsPath = path.join(projectRoot, 'AGENTS.md');\n if (removeGeneratedBlock(agentsPath, OPENHANDS_BLOCK_ID)) {\n console.log(` \u2713 Removed KiroGraph block from AGENTS.md (OpenHands)`);\n }\n}\n\nexport function printOpenHandsNextSteps(): void {\n console.log('\\n Done! Restart OpenHands for the MCP server to load.');\n console.log(' KiroGraph instructions are in AGENTS.md\\n');\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SAAoB;AACpB,WAAsB;AAEtB,oBASO;AACP,0BAAuC;AACvC,IAAAA,iBAAqC;AAErC,MAAM,qBAAqB;AAEpB,SAAS,sBAAsB,aAA2B;AAC/D,QAAM,aAAa,KAAK,KAAK,aAAa,cAAc,aAAa;AACrE,+BAAU,KAAK,QAAQ,UAAU,CAAC;AAClC,QAAM,aAAS,wBAAS,UAAU;AAClC,SAAO,aAAa,OAAO,cAAc,CAAC;AAC1C,SAAO,WAAW,mCAAqB,IAAI;AAAA,IACzC,SAAS;AAAA,IACT,MAAM;AAAA,EACR;AACA,+BAAU,YAAY,MAAM;AAC5B,UAAQ,IAAI,+CAA0C,UAAU,EAAE;AACpE;AAEO,SAAS,qBAAqB,aAAqB,aAAmC,uBAAgC,cAAwB,YAAsB,YAAsB,gBAA0B,oBAAoC;AAC7P,QAAM,mBAAmB,KAAK,KAAK,aAAa,cAAc,cAAc;AAC5E,+BAAU,KAAK,QAAQ,gBAAgB,CAAC;AACxC,KAAG,cAAc,sBAAkB,gDAAuB,qCAAqB,aAAa,uBAAuB,cAAc,QAAW,YAAY,YAAY,gBAAgB,kBAAkB,CAAC,CAAC;AACxM,UAAQ,IAAI,8CAAyC,gBAAgB,EAAE;AAEvE,QAAM,aAAa,KAAK,KAAK,aAAa,WAAW;AACr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