cairn-ai 0.1.2 → 0.1.5
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/.agents/workflows/cairn-doctor.md +1 -1
- package/.agents/workflows/cairn-install.md +1 -1
- package/.agents/workflows/cairn-memory.md +2 -2
- package/.agents/workflows/cairn-plan.md +15 -14
- package/.agents/workflows/cairn-review.md +2 -2
- package/.agents/workflows/cairn-toolcheck.md +2 -2
- package/.agents/workflows/cairn-uninstall.md +1 -1
- package/.agents/workflows/cairn-upgrade.md +1 -1
- package/.agents/workflows/cairn-work.md +14 -13
- package/.claude/agents/explorer.md +2 -0
- package/.claude/agents/worker.md +2 -0
- package/.claude/commands/cairn-doctor.md +1 -1
- package/.claude/commands/cairn-install.md +1 -1
- package/.claude/commands/cairn-plan.md +1 -1
- package/.claude/commands/cairn-toolcheck.md +2 -2
- package/.claude/commands/cairn-uninstall.md +1 -1
- package/.claude/commands/cairn-upgrade.md +1 -1
- package/.claude/commands/cairn-work.md +1 -1
- package/.codex-plugin/plugin.json +5 -3
- package/agents/explorer.md +2 -0
- package/agents/worker.md +2 -0
- package/commands/cairn-doctor.md +1 -1
- package/commands/cairn-install.md +1 -1
- package/commands/cairn-memory.md +3 -3
- package/commands/cairn-plan.md +16 -15
- package/commands/cairn-review.md +3 -3
- package/commands/cairn-toolcheck.md +2 -2
- package/commands/cairn-uninstall.md +1 -1
- package/commands/cairn-upgrade.md +1 -1
- package/commands/cairn-work.md +15 -14
- package/hooks/hooks.json +5 -5
- package/package.json +4 -4
- package/scripts/cairn +1 -102
- package/scripts/cairn-lifecycle.mjs +12 -6
- package/scripts/cairn-state.mjs +106 -0
- package/scripts/cairn-state.sh +3 -2
- package/scripts/cairn-toolcheck.mjs +54 -14
- package/scripts/cairn.mjs +115 -0
- package/skills/cairn-memory/SKILL.md +4 -2
- package/skills/cairn-plan/SKILL.md +23 -16
- package/skills/cairn-review/SKILL.md +3 -1
- package/skills/cairn-work/SKILL.md +22 -19
- package/templates/work-plan.md +9 -0
|
@@ -7,9 +7,9 @@ Goal: create or update repository memory without asking the user for discoverabl
|
|
|
7
7
|
Procedure:
|
|
8
8
|
|
|
9
9
|
1. Ensure `MEMORY.md`, `PLAN.md`, `docs/memory`, and `docs/plan`.
|
|
10
|
-
2.
|
|
10
|
+
2. Every agent must read the project-root `MEMORY.md` for domain knowledge and repository policy before assigned discovery or update work.
|
|
11
11
|
3. Explore repository facts with focused tools.
|
|
12
|
-
4. Use `explorer` for read-only domain discovery and contradiction checks when available; use `worker` for exact references, command checks, and bounded evidence capture.
|
|
12
|
+
4. Use `explorer` for read-only domain discovery and contradiction checks when available; use `worker` for exact references, command checks, and bounded evidence capture. Tell every delegated agent to read the project-root `MEMORY.md` before work.
|
|
13
13
|
5. Write details to `docs/memory/<domain>.md`.
|
|
14
14
|
6. Keep `MEMORY.md` as a short index.
|
|
15
15
|
7. Use the OS locale for user-visible output unless the user asks for another language.
|
|
@@ -2,20 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
Use the `cairn-plan` skill.
|
|
4
4
|
|
|
5
|
-
Goal: leave a decision-complete plan for the current task in files.
|
|
5
|
+
Goal: leave a decision-complete plan for the current task in files before non-trivial implementation.
|
|
6
6
|
|
|
7
7
|
Procedure:
|
|
8
8
|
|
|
9
|
-
1.
|
|
10
|
-
2.
|
|
11
|
-
3.
|
|
12
|
-
4.
|
|
13
|
-
5.
|
|
14
|
-
6.
|
|
15
|
-
7.
|
|
16
|
-
8. Use
|
|
17
|
-
9. Use `
|
|
18
|
-
10.
|
|
19
|
-
11.
|
|
20
|
-
12.
|
|
21
|
-
13.
|
|
9
|
+
1. Every agent must read the project-root `MEMORY.md` for domain knowledge and repository policy before repository exploration, tool selection, work, or delegation.
|
|
10
|
+
2. Read relevant `docs/memory/*.md`.
|
|
11
|
+
3. If the active or assigned model is Claude-family, read `docs/model-guidance/claude.md`; if Codex-family, read `docs/model-guidance/codex.md`.
|
|
12
|
+
4. Run `node scripts/cairn.mjs toolcheck` when available.
|
|
13
|
+
5. If required LSP/check tools are missing, run `node scripts/cairn.mjs toolcheck --install` or a repository-native install command before accepting a fallback.
|
|
14
|
+
6. Explore before asking the user.
|
|
15
|
+
7. Run complexity triage before applying agent, plugin, or delegated workflow guidance, and record it before mutating files.
|
|
16
|
+
8. Use Light Path by default unless a Heavy Path condition clearly applies.
|
|
17
|
+
9. Use `explorer` for independent read-only discovery, impact analysis, pattern search, and read-only verification when available.
|
|
18
|
+
10. Use `worker` for bounded implementation or verification tasks with clear file ownership. Tell every delegated agent to read the project-root `MEMORY.md` before work. Keep urgent blocking work local.
|
|
19
|
+
11. Write `docs/plan/<topic>.md`.
|
|
20
|
+
12. Add the topic link and status to `PLAN.md`.
|
|
21
|
+
13. Put the selected Light/Heavy Path, checked Heavy Path signals, tool readiness, module acceptance verification, and surface integration verification on every module slice.
|
|
22
|
+
14. Use the OS locale for user-visible output unless the user asks for another language.
|
|
@@ -6,9 +6,9 @@ Goal: review completed work against plan, memory, policy, and evidence.
|
|
|
6
6
|
|
|
7
7
|
Procedure:
|
|
8
8
|
|
|
9
|
-
1.
|
|
9
|
+
1. Every agent must read the project-root `MEMORY.md` for domain knowledge and repository policy before review work, then read the plan slice and memory inputs.
|
|
10
10
|
2. Check changed files, tool readiness evidence, and verification evidence.
|
|
11
|
-
3. Delegate independent read-only review to `explorer` when it materially improves speed or quality; use `worker` only for scoped verification reruns or QA artifacts.
|
|
11
|
+
3. Delegate independent read-only review to `explorer` when it materially improves speed or quality; use `worker` only for scoped verification reruns or QA artifacts. Tell every delegated agent to read the project-root `MEMORY.md` before work.
|
|
12
12
|
4. Report findings first, ordered by severity, with file and line references. If no issues are found, say so clearly and mention remaining test gaps or residual risk.
|
|
13
13
|
5. Record review evidence in `docs/plan/<topic>.md`.
|
|
14
14
|
6. Use the OS locale for user-visible output unless the user asks for another language.
|
|
@@ -5,13 +5,13 @@ Goal: detect repository stacks and check required LSP, typecheck, lint, dry-run,
|
|
|
5
5
|
Run the local command first:
|
|
6
6
|
|
|
7
7
|
```sh
|
|
8
|
-
scripts/cairn toolcheck
|
|
8
|
+
node scripts/cairn.mjs toolcheck
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
If required tools are missing, attempt repository-native installation:
|
|
12
12
|
|
|
13
13
|
```sh
|
|
14
|
-
scripts/cairn toolcheck --install
|
|
14
|
+
node scripts/cairn.mjs toolcheck --install
|
|
15
15
|
```
|
|
16
16
|
|
|
17
17
|
Record detected stacks, missing tools, install attempts, and blockers in the related `docs/plan/<topic>.md`.
|
|
@@ -11,7 +11,7 @@ bunx cairn-ai@latest uninstall
|
|
|
11
11
|
When running from local source:
|
|
12
12
|
|
|
13
13
|
```sh
|
|
14
|
-
scripts/cairn uninstall
|
|
14
|
+
node scripts/cairn.mjs uninstall
|
|
15
15
|
```
|
|
16
16
|
|
|
17
17
|
The source work folder and user-created `MEMORY.md`, `PLAN.md`, `docs/memory`, and `docs/plan` files are not deleted.
|
|
@@ -2,19 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
Use the `cairn-work` skill.
|
|
4
4
|
|
|
5
|
-
Goal: execute the next incomplete module slice in `PLAN.md
|
|
5
|
+
Goal: execute the next incomplete module slice in `PLAN.md` without bypassing the recorded complexity triage.
|
|
6
6
|
|
|
7
7
|
Procedure:
|
|
8
8
|
|
|
9
|
-
1.
|
|
10
|
-
2. Read the
|
|
11
|
-
3.
|
|
12
|
-
4.
|
|
13
|
-
5. Confirm
|
|
14
|
-
6.
|
|
15
|
-
7. For
|
|
16
|
-
8.
|
|
17
|
-
9.
|
|
18
|
-
10. Re-run
|
|
19
|
-
11.
|
|
20
|
-
12.
|
|
9
|
+
1. Every agent must read the project-root `MEMORY.md` for domain knowledge and repository policy before selecting or executing a slice.
|
|
10
|
+
2. Read `PLAN.md`, the detailed plan, and relevant memory notes.
|
|
11
|
+
3. Read the Codex or Claude model guidance recorded in the plan.
|
|
12
|
+
4. Select one small module slice.
|
|
13
|
+
5. Confirm required tool readiness. If a required LSP/check tool is missing, run `node scripts/cairn.mjs toolcheck --install` or a repository-native install command before accepting a fallback.
|
|
14
|
+
6. Confirm the complexity triage and selected Light/Heavy Path recorded in the plan. If missing, update the plan before mutating files.
|
|
15
|
+
7. For Light Path, implement directly or use one bounded `worker`, then run focused verification.
|
|
16
|
+
8. For Heavy Path, follow the plan's staged implementation and review gates without role-mapping shortcuts.
|
|
17
|
+
9. When delegating implementation to `worker`, state the file ownership clearly, tell every delegated agent to read the project-root `MEMORY.md` before work, and tell the worker not to revert others' edits.
|
|
18
|
+
10. Re-run module acceptance verification.
|
|
19
|
+
11. Re-run surface integration verification.
|
|
20
|
+
12. Record tool readiness and verification evidence in `docs/plan/<topic>.md` and update `PLAN.md`.
|
|
21
|
+
13. Use the OS locale for user-visible output unless the user asks for another language.
|
package/.claude/agents/worker.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# cairn-plan
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Start by reading the project-root `MEMORY.md`, then create or update `PLAN.md` and `docs/plan/<topic>.md` before non-trivial implementation, including Light/Heavy Path complexity triage and tool readiness.
|
|
4
4
|
|
|
5
5
|
Follow plugin command `commands/cairn-plan.md`.
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Detect repository stacks and check required LSP, typecheck, lint, dry-run, and verification tools.
|
|
4
4
|
|
|
5
5
|
```sh
|
|
6
|
-
scripts/cairn toolcheck
|
|
7
|
-
scripts/cairn toolcheck --install
|
|
6
|
+
node scripts/cairn.mjs toolcheck
|
|
7
|
+
node scripts/cairn.mjs toolcheck --install
|
|
8
8
|
```
|
|
9
9
|
|
|
10
10
|
Use `--install` before accepting a missing required tool as unavailable.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# cairn-work
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Start by reading the project-root `MEMORY.md`, then execute the next incomplete module slice only after the plan records Light/Heavy Path complexity triage, tool readiness, module acceptance verification, and surface integration verification.
|
|
4
4
|
|
|
5
5
|
Follow plugin command `commands/cairn-work.md`.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cairn",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"description": "Token-efficient agent harness with tool readiness for Codex, Claude Code, and Antigravity.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "WkNam"
|
|
@@ -22,9 +22,11 @@
|
|
|
22
22
|
],
|
|
23
23
|
"defaultPrompt": [
|
|
24
24
|
"Use Cairn to create MEMORY.md and PLAN.md for this repository.",
|
|
25
|
+
"At the start of each task, every agent must read the project-root MEMORY.md for domain knowledge and repository policy before planning, implementation, review, or delegation.",
|
|
25
26
|
"Run cairn-toolcheck before planning implementation work.",
|
|
26
|
-
"
|
|
27
|
-
"
|
|
27
|
+
"Before non-trivial implementation, run cairn-plan for this task without asking me for discoverable facts.",
|
|
28
|
+
"Record Light Path or Heavy Path complexity triage in docs/plan/<topic>.md before mutating files.",
|
|
29
|
+
"Run cairn-work from the current PLAN.md and pass dry-run/check, module acceptance, and surface integration gates."
|
|
28
30
|
]
|
|
29
31
|
}
|
|
30
32
|
}
|
package/agents/explorer.md
CHANGED
|
@@ -9,6 +9,8 @@ tools: Read, Grep, Glob, Bash
|
|
|
9
9
|
|
|
10
10
|
Handle read-only discovery and verification tasks.
|
|
11
11
|
|
|
12
|
+
Before doing any assigned task, read the project-root `MEMORY.md`. Treat it as the domain knowledge and repository policy index, then read only the relevant `docs/memory/*.md` notes needed for the task.
|
|
13
|
+
|
|
12
14
|
Use for:
|
|
13
15
|
|
|
14
16
|
- Codebase questions.
|
package/agents/worker.md
CHANGED
|
@@ -9,6 +9,8 @@ tools: Read, Grep, Glob, Bash, Write, Edit, MultiEdit
|
|
|
9
9
|
|
|
10
10
|
Handle narrow, focused tasks.
|
|
11
11
|
|
|
12
|
+
Before doing any assigned task, read the project-root `MEMORY.md`. Treat it as the domain knowledge and repository policy index, then read only the relevant `docs/memory/*.md` notes needed for the task.
|
|
13
|
+
|
|
12
14
|
Use for:
|
|
13
15
|
|
|
14
16
|
- Finding exact files and symbols.
|
package/commands/cairn-doctor.md
CHANGED
package/commands/cairn-memory.md
CHANGED
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
Use the `cairn-memory` skill.
|
|
4
4
|
|
|
5
|
-
Prerequisite: if `scripts/cairn doctor` fails, restore installation with `scripts/cairn install` or `scripts/cairn upgrade`.
|
|
5
|
+
Prerequisite: if `node scripts/cairn.mjs doctor` fails, restore installation with `node scripts/cairn.mjs install` or `node scripts/cairn.mjs upgrade`.
|
|
6
6
|
|
|
7
7
|
Goal: create or update repository memory without asking the user for discoverable facts.
|
|
8
8
|
|
|
9
9
|
Procedure:
|
|
10
10
|
|
|
11
11
|
1. Run the plugin state initialization script.
|
|
12
|
-
2.
|
|
12
|
+
2. Every agent must read the project-root `MEMORY.md` for domain knowledge and repository policy before assigned discovery or update work.
|
|
13
13
|
3. Explore repository facts with focused tools.
|
|
14
|
-
4. Use `explorer` for read-only domain discovery and contradiction checks when available; use `worker` for exact references, command checks, and bounded evidence capture.
|
|
14
|
+
4. Use `explorer` for read-only domain discovery and contradiction checks when available; use `worker` for exact references, command checks, and bounded evidence capture. Tell every delegated agent to read the project-root `MEMORY.md` before work.
|
|
15
15
|
5. Write details to `docs/memory/<domain>.md`.
|
|
16
16
|
6. Keep `MEMORY.md` as a short index.
|
|
17
17
|
7. Use the OS locale for user-visible output unless the user asks for another language.
|
package/commands/cairn-plan.md
CHANGED
|
@@ -2,22 +2,23 @@
|
|
|
2
2
|
|
|
3
3
|
Use the `cairn-plan` skill.
|
|
4
4
|
|
|
5
|
-
Prerequisite: if `scripts/cairn doctor` fails, restore installation with `scripts/cairn install` or `scripts/cairn upgrade`.
|
|
5
|
+
Prerequisite: if `node scripts/cairn.mjs doctor` fails, restore installation with `node scripts/cairn.mjs install` or `node scripts/cairn.mjs upgrade`.
|
|
6
6
|
|
|
7
|
-
Goal: leave a decision-complete plan for the current task in files.
|
|
7
|
+
Goal: leave a decision-complete plan for the current task in files before non-trivial implementation.
|
|
8
8
|
|
|
9
9
|
Procedure:
|
|
10
10
|
|
|
11
|
-
1.
|
|
12
|
-
2.
|
|
13
|
-
3.
|
|
14
|
-
4.
|
|
15
|
-
5.
|
|
16
|
-
6.
|
|
17
|
-
7.
|
|
18
|
-
8. Use
|
|
19
|
-
9. Use `
|
|
20
|
-
10.
|
|
21
|
-
11.
|
|
22
|
-
12.
|
|
23
|
-
13.
|
|
11
|
+
1. Every agent must read the project-root `MEMORY.md` for domain knowledge and repository policy before repository exploration, tool selection, work, or delegation.
|
|
12
|
+
2. Read relevant `docs/memory/*.md`.
|
|
13
|
+
3. If the active or assigned model is Claude-family, read `docs/model-guidance/claude.md`; if Codex-family, read `docs/model-guidance/codex.md`.
|
|
14
|
+
4. Run `node scripts/cairn.mjs toolcheck` when available.
|
|
15
|
+
5. If required LSP/check tools are missing, run `node scripts/cairn.mjs toolcheck --install` or a repository-native install command before accepting a fallback.
|
|
16
|
+
6. Explore before asking the user.
|
|
17
|
+
7. Run complexity triage before applying agent, plugin, or delegated workflow guidance, and record it before mutating files.
|
|
18
|
+
8. Use Light Path by default unless a Heavy Path condition clearly applies.
|
|
19
|
+
9. Use `explorer` for independent read-only discovery, impact analysis, pattern search, and read-only verification when available.
|
|
20
|
+
10. Use `worker` for bounded implementation or verification tasks with clear file ownership. Tell every delegated agent to read the project-root `MEMORY.md` before work. Keep urgent blocking work local.
|
|
21
|
+
11. Write `docs/plan/<topic>.md`.
|
|
22
|
+
12. Add the topic link and status to `PLAN.md`.
|
|
23
|
+
13. Put the selected Light/Heavy Path, checked Heavy Path signals, tool readiness, module acceptance verification, and surface integration verification on every module slice.
|
|
24
|
+
14. Use the OS locale for user-visible output unless the user asks for another language.
|
package/commands/cairn-review.md
CHANGED
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
Use the `cairn-review` skill.
|
|
4
4
|
|
|
5
|
-
Prerequisite: if `scripts/cairn doctor` fails, restore installation with `scripts/cairn install` or `scripts/cairn upgrade`.
|
|
5
|
+
Prerequisite: if `node scripts/cairn.mjs doctor` fails, restore installation with `node scripts/cairn.mjs install` or `node scripts/cairn.mjs upgrade`.
|
|
6
6
|
|
|
7
7
|
Goal: review completed work against plan, memory, policy, and evidence.
|
|
8
8
|
|
|
9
9
|
Procedure:
|
|
10
10
|
|
|
11
|
-
1.
|
|
11
|
+
1. Every agent must read the project-root `MEMORY.md` for domain knowledge and repository policy before review work, then read the plan slice and memory inputs.
|
|
12
12
|
2. Check changed files, tool readiness evidence, and verification evidence.
|
|
13
|
-
3. Delegate independent read-only review to `explorer` when it materially improves speed or quality; use `worker` only for scoped verification reruns or QA artifacts.
|
|
13
|
+
3. Delegate independent read-only review to `explorer` when it materially improves speed or quality; use `worker` only for scoped verification reruns or QA artifacts. Tell every delegated agent to read the project-root `MEMORY.md` before work.
|
|
14
14
|
4. Report findings first, ordered by severity, with file and line references. If no issues are found, say so clearly and mention remaining test gaps or residual risk.
|
|
15
15
|
5. Record review evidence in `docs/plan/<topic>.md`.
|
|
16
16
|
6. Use the OS locale for user-visible output unless the user asks for another language.
|
|
@@ -12,8 +12,8 @@ bunx cairn-ai@latest toolcheck --install
|
|
|
12
12
|
From this repository:
|
|
13
13
|
|
|
14
14
|
```sh
|
|
15
|
-
scripts/cairn toolcheck
|
|
16
|
-
scripts/cairn toolcheck --install
|
|
15
|
+
node scripts/cairn.mjs toolcheck
|
|
16
|
+
node scripts/cairn.mjs toolcheck --install
|
|
17
17
|
```
|
|
18
18
|
|
|
19
19
|
Use `--install` when a required tool is missing. Record detected stacks, missing tools, install attempts, and blockers in the related `docs/plan/<topic>.md`.
|
package/commands/cairn-work.md
CHANGED
|
@@ -2,21 +2,22 @@
|
|
|
2
2
|
|
|
3
3
|
Use the `cairn-work` skill.
|
|
4
4
|
|
|
5
|
-
Prerequisite: if `scripts/cairn doctor` fails, restore installation with `scripts/cairn install` or `scripts/cairn upgrade`.
|
|
5
|
+
Prerequisite: if `node scripts/cairn.mjs doctor` fails, restore installation with `node scripts/cairn.mjs install` or `node scripts/cairn.mjs upgrade`.
|
|
6
6
|
|
|
7
|
-
Goal: execute the next incomplete module slice in `PLAN.md
|
|
7
|
+
Goal: execute the next incomplete module slice in `PLAN.md` without bypassing the recorded complexity triage.
|
|
8
8
|
|
|
9
9
|
Procedure:
|
|
10
10
|
|
|
11
|
-
1.
|
|
12
|
-
2. Read the
|
|
13
|
-
3.
|
|
14
|
-
4.
|
|
15
|
-
5. Confirm
|
|
16
|
-
6.
|
|
17
|
-
7. For
|
|
18
|
-
8.
|
|
19
|
-
9.
|
|
20
|
-
10. Re-run
|
|
21
|
-
11.
|
|
22
|
-
12.
|
|
11
|
+
1. Every agent must read the project-root `MEMORY.md` for domain knowledge and repository policy before selecting or executing a slice.
|
|
12
|
+
2. Read `PLAN.md`, the detailed plan, and relevant memory notes.
|
|
13
|
+
3. Read the Codex or Claude model guidance recorded in the plan.
|
|
14
|
+
4. Select one small module slice.
|
|
15
|
+
5. Confirm required tool readiness. If a required LSP/check tool is missing, run `node scripts/cairn.mjs toolcheck --install` or a repository-native install command before accepting a fallback.
|
|
16
|
+
6. Confirm the complexity triage and selected Light/Heavy Path recorded in the plan. If missing, update the plan before mutating files.
|
|
17
|
+
7. For Light Path, implement directly or use one bounded `worker`, then run focused verification.
|
|
18
|
+
8. For Heavy Path, follow the plan's staged implementation and review gates without role-mapping shortcuts.
|
|
19
|
+
9. When delegating implementation to `worker`, state the file ownership clearly, tell every delegated agent to read the project-root `MEMORY.md` before work, and tell the worker not to revert others' edits.
|
|
20
|
+
10. Re-run module acceptance verification.
|
|
21
|
+
11. Re-run surface integration verification.
|
|
22
|
+
12. Record tool readiness and verification evidence in `docs/plan/<topic>.md` and update `PLAN.md`.
|
|
23
|
+
13. Use the OS locale for user-visible output unless the user asks for another language.
|
package/hooks/hooks.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"hooks": [
|
|
6
6
|
{
|
|
7
7
|
"type": "command",
|
|
8
|
-
"command": "
|
|
8
|
+
"command": "node \"${PLUGIN_ROOT}/scripts/cairn-state.mjs\" session-start",
|
|
9
9
|
"timeout": 10,
|
|
10
10
|
"statusMessage": "Cairn: preparing repository memory and plan indexes"
|
|
11
11
|
}
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"hooks": [
|
|
18
18
|
{
|
|
19
19
|
"type": "command",
|
|
20
|
-
"command": "
|
|
20
|
+
"command": "node \"${PLUGIN_ROOT}/scripts/cairn-state.mjs\" user-prompt-submit",
|
|
21
21
|
"timeout": 10,
|
|
22
22
|
"statusMessage": "Cairn: loading compact work context"
|
|
23
23
|
}
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"hooks": [
|
|
31
31
|
{
|
|
32
32
|
"type": "command",
|
|
33
|
-
"command": "
|
|
33
|
+
"command": "node \"${PLUGIN_ROOT}/scripts/cairn-state.mjs\" post-tool-use",
|
|
34
34
|
"timeout": 10,
|
|
35
35
|
"statusMessage": "Cairn: checking memory and plan indexes"
|
|
36
36
|
}
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"hooks": [
|
|
43
43
|
{
|
|
44
44
|
"type": "command",
|
|
45
|
-
"command": "
|
|
45
|
+
"command": "node \"${PLUGIN_ROOT}/scripts/cairn-state.mjs\" stop",
|
|
46
46
|
"timeout": 10,
|
|
47
47
|
"statusMessage": "Cairn: checking two-gate evidence requirements"
|
|
48
48
|
}
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"hooks": [
|
|
55
55
|
{
|
|
56
56
|
"type": "command",
|
|
57
|
-
"command": "
|
|
57
|
+
"command": "node \"${PLUGIN_ROOT}/scripts/cairn-state.mjs\" subagent-stop",
|
|
58
58
|
"timeout": 10,
|
|
59
59
|
"statusMessage": "Cairn: checking subagent handoff evidence"
|
|
60
60
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cairn-ai",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"description": "Token-efficient agent harness with tool readiness for Codex, Claude Code, and Antigravity",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"workflow"
|
|
22
22
|
],
|
|
23
23
|
"bin": {
|
|
24
|
-
"cairn": "scripts/cairn",
|
|
25
|
-
"cairn-ai": "scripts/cairn"
|
|
24
|
+
"cairn": "scripts/cairn.mjs",
|
|
25
|
+
"cairn-ai": "scripts/cairn.mjs"
|
|
26
26
|
},
|
|
27
27
|
"files": [
|
|
28
28
|
".agents/",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"README.*.md"
|
|
40
40
|
],
|
|
41
41
|
"scripts": {
|
|
42
|
-
"check": "node --check scripts/cairn-lifecycle.mjs && node --check scripts/cairn-toolcheck.mjs && node -e \"JSON.parse(require('node:fs').readFileSync('package.json','utf8')); JSON.parse(require('node:fs').readFileSync('.codex-plugin/plugin.json','utf8')); JSON.parse(require('node:fs').readFileSync('hooks/hooks.json','utf8'))\" && npm test",
|
|
42
|
+
"check": "node --check scripts/cairn.mjs && node --check scripts/cairn-state.mjs && node --check scripts/cairn-lifecycle.mjs && node --check scripts/cairn-toolcheck.mjs && node -e \"JSON.parse(require('node:fs').readFileSync('package.json','utf8')); JSON.parse(require('node:fs').readFileSync('.codex-plugin/plugin.json','utf8')); JSON.parse(require('node:fs').readFileSync('hooks/hooks.json','utf8'))\" && npm test",
|
|
43
43
|
"test": "node --test",
|
|
44
44
|
"prepack": "npm run check"
|
|
45
45
|
},
|