cairn-ai 0.1.8 → 0.1.9
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/.codex-plugin/plugin.json +1 -1
- package/README.ko.md +2 -2
- package/README.md +2 -2
- package/commands/cairn-doctor.md +2 -1
- package/package.json +1 -1
- package/scripts/cairn-lifecycle.mjs +4 -0
package/README.ko.md
CHANGED
|
@@ -94,8 +94,8 @@ cairn uninstall
|
|
|
94
94
|
cairn toolcheck
|
|
95
95
|
```
|
|
96
96
|
|
|
97
|
-
- `cairn install`: Codex marketplace cache에 플러그인을 설치하고 hook trust state, Claude Code mirror 파일, Antigravity skills/workflows를 설정합니다.
|
|
98
|
-
- `cairn upgrade`: 현재 소스에서 설치, hook trust state, Claude Code mirror 파일, Antigravity skills/workflows를 갱신합니다.
|
|
97
|
+
- `cairn install`: Codex marketplace cache에 플러그인을 설치하고 Codex multi-agent 설정, hook trust state, Claude Code mirror 파일, Antigravity skills/workflows를 설정합니다.
|
|
98
|
+
- `cairn upgrade`: 현재 소스에서 설치, Codex multi-agent 설정, hook trust state, Claude Code mirror 파일, Antigravity skills/workflows를 갱신합니다.
|
|
99
99
|
- `cairn doctor`: Codex 설정, 설치, hook trust state, Claude Code mirror 파일, Antigravity mirror 파일을 진단합니다.
|
|
100
100
|
- `cairn uninstall`: Cairn이 추가한 Codex 설정, cache, Claude Code mirror 파일, Antigravity mirror 파일을 제거합니다.
|
|
101
101
|
- `cairn toolcheck`: 저장소 스택을 감지하고 필요한 LSP와 검증 도구를 확인하거나 설치합니다.
|
package/README.md
CHANGED
|
@@ -102,8 +102,8 @@ cairn uninstall
|
|
|
102
102
|
cairn toolcheck
|
|
103
103
|
```
|
|
104
104
|
|
|
105
|
-
- `cairn install`: installs the plugin into the Codex marketplace cache and configures hook trust state, Claude Code mirror files, and Antigravity skills/workflows.
|
|
106
|
-
- `cairn upgrade`: updates the installation, hook trust state, Claude Code mirror files, and Antigravity skills/workflows from the current source.
|
|
105
|
+
- `cairn install`: installs the plugin into the Codex marketplace cache and configures Codex multi-agent settings, hook trust state, Claude Code mirror files, and Antigravity skills/workflows.
|
|
106
|
+
- `cairn upgrade`: updates the installation, Codex multi-agent settings, hook trust state, Claude Code mirror files, and Antigravity skills/workflows from the current source.
|
|
107
107
|
- `cairn doctor`: diagnoses Codex settings, installation, hook trust state, Claude Code mirror files, and Antigravity mirror files.
|
|
108
108
|
- `cairn uninstall`: removes Cairn-added Codex settings, cache, Claude Code mirror files, and Antigravity mirror files.
|
|
109
109
|
- `cairn toolcheck`: detects repository stacks and checks or installs required LSP and verification tools.
|
package/commands/cairn-doctor.md
CHANGED
|
@@ -20,7 +20,8 @@ Checks:
|
|
|
20
20
|
- Codex cached installation.
|
|
21
21
|
- Marketplace file.
|
|
22
22
|
- Hook manifest link in the installed copy.
|
|
23
|
-
- `features.plugins`, `features.plugin_hooks`.
|
|
23
|
+
- `features.plugins`, `features.plugin_hooks`, `features.multi_agent`.
|
|
24
|
+
- `agents.max_depth`.
|
|
24
25
|
- `cairn@cairn` plugin enabled.
|
|
25
26
|
- hook trust state.
|
|
26
27
|
- Claude Code commands and agents mirror files.
|
package/package.json
CHANGED
|
@@ -54,6 +54,8 @@ async function doctor() {
|
|
|
54
54
|
const config = await readText(configPath);
|
|
55
55
|
checks.push(["config features.plugins", hasSetting(config, "features", "plugins", "true")]);
|
|
56
56
|
checks.push(["config features.plugin_hooks", hasSetting(config, "features", "plugin_hooks", "true")]);
|
|
57
|
+
checks.push(["config features.multi_agent", hasSetting(config, "features", "multi_agent", "true")]);
|
|
58
|
+
checks.push(["config agents.max_depth", hasSetting(config, "agents", "max_depth", "2")]);
|
|
57
59
|
checks.push(["config marketplace", config.includes("[marketplaces.cairn]")]);
|
|
58
60
|
checks.push(["config plugin enabled", config.includes('[plugins."cairn@cairn"]') && hasSetting(config, 'plugins."cairn@cairn"', "enabled", "true")]);
|
|
59
61
|
const expectedStates = await trustedHookStates();
|
|
@@ -152,6 +154,8 @@ export function updateConfig(config, hookStates) {
|
|
|
152
154
|
let next = removeCairnConfig(config);
|
|
153
155
|
next = ensureSetting(next, "features", "plugins", "true");
|
|
154
156
|
next = ensureSetting(next, "features", "plugin_hooks", "true");
|
|
157
|
+
next = ensureSetting(next, "features", "multi_agent", "true");
|
|
158
|
+
next = ensureSetting(next, "agents", "max_depth", "2");
|
|
155
159
|
next = append(next, `[marketplaces.cairn]\nlast_updated = ${JSON.stringify(new Date().toISOString().replace(/\.\d{3}Z$/, "Z"))}\nsource_type = "local"\nsource = ${JSON.stringify(marketplaceRoot)}\n`);
|
|
156
160
|
next = append(next, '[plugins."cairn@cairn"]\nenabled = true\n');
|
|
157
161
|
for (const state of hookStates) next = append(next, `[hooks.state.${JSON.stringify(state.key)}]\ntrusted_hash = ${JSON.stringify(state.trustedHash)}\n`);
|