@cloverleaf/reference-impl 0.11.0 → 0.11.1
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/VERSION +1 -1
- package/dist/council.mjs +4 -2
- package/lib/council.ts +5 -5
- package/package.json +1 -1
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.11.
|
|
1
|
+
0.11.1
|
package/dist/council.mjs
CHANGED
|
@@ -58,8 +58,10 @@ const BUILTIN_PROMPTS = {
|
|
|
58
58
|
};
|
|
59
59
|
/**
|
|
60
60
|
* Resolve a council member to the absolute path of its prompt. A member with a
|
|
61
|
-
* `prompt` field is a custom role → <repoRoot>/.cloverleaf/prompts/<file> (exist-checked
|
|
62
|
-
* a bare built-in id → the shipped prompt
|
|
61
|
+
* `prompt` field is a custom role → <repoRoot>/.cloverleaf/prompts/<file> (exist-checked,
|
|
62
|
+
* since it is user-authored and easily mistyped); a bare built-in id → the shipped prompt
|
|
63
|
+
* under the plugin root, deliberately NOT exist-checked (built-ins ship with the plugin, so
|
|
64
|
+
* a missing one is a broken install that surfaces at prompt read-time, not user error).
|
|
63
65
|
*/
|
|
64
66
|
export function resolveMemberPrompt(member, repoRoot) {
|
|
65
67
|
if (member.prompt !== undefined) {
|
package/lib/council.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { execFileSync } from 'node:child_process';
|
|
2
2
|
import { existsSync } from 'node:fs';
|
|
3
3
|
import { join } from 'node:path';
|
|
4
|
-
import { loadCouncilConfigWithSource, type CouncilConfig, type GateBinding, type WhenPredicate } from './council-config.js';
|
|
5
|
-
import type { CouncilMember } from './council-config.js';
|
|
4
|
+
import { loadCouncilConfigWithSource, type CouncilConfig, type GateBinding, type WhenPredicate, type CouncilMember } from './council-config.js';
|
|
6
5
|
import type { ThresholdRule, CouncilVerdict } from './aggregation.js';
|
|
7
6
|
import { loadTask, saveTask, advanceStatus } from './task.js';
|
|
8
7
|
import { writeCouncilResult, type CouncilResult } from './council-result.js';
|
|
@@ -86,8 +85,10 @@ const BUILTIN_PROMPTS: Record<string, string> = {
|
|
|
86
85
|
|
|
87
86
|
/**
|
|
88
87
|
* Resolve a council member to the absolute path of its prompt. A member with a
|
|
89
|
-
* `prompt` field is a custom role → <repoRoot>/.cloverleaf/prompts/<file> (exist-checked
|
|
90
|
-
* a bare built-in id → the shipped prompt
|
|
88
|
+
* `prompt` field is a custom role → <repoRoot>/.cloverleaf/prompts/<file> (exist-checked,
|
|
89
|
+
* since it is user-authored and easily mistyped); a bare built-in id → the shipped prompt
|
|
90
|
+
* under the plugin root, deliberately NOT exist-checked (built-ins ship with the plugin, so
|
|
91
|
+
* a missing one is a broken install that surfaces at prompt read-time, not user error).
|
|
91
92
|
*/
|
|
92
93
|
export function resolveMemberPrompt(member: CouncilMember, repoRoot: string): string {
|
|
93
94
|
if (member.prompt !== undefined) {
|
|
@@ -164,7 +165,6 @@ export function resolveCouncilPlan(
|
|
|
164
165
|
return plan;
|
|
165
166
|
}
|
|
166
167
|
|
|
167
|
-
|
|
168
168
|
/**
|
|
169
169
|
* Drive the FSM transition implied by a council verdict (the runner's terminal step).
|
|
170
170
|
* Council-authoritative: on a pass it records the council's gating verdict so the
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloverleaf/reference-impl",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.1",
|
|
4
4
|
"description": "Reference implementation of the Cloverleaf methodology as Claude Code skills. Implements the Tight Loop (Implementer + Reviewer).",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|