llm-orchestrator 1.1.0 → 1.2.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/.claude-plugin/plugin.json +1 -1
- package/README.md +36 -0
- package/SKILL.md +6 -2
- package/adapters/hooks.mjs +192 -0
- package/bin/cli-options.mjs +5 -1
- package/bin/doctor.mjs +32 -2
- package/bin/gate.mjs +53 -0
- package/bin/install.mjs +6 -1
- package/bin/llm-orchestrator.mjs +9 -1
- package/bin/run.mjs +27 -0
- package/hooks/hooks.json +38 -0
- package/lib/adapter-renderer.mjs +46 -1
- package/lib/flow-gate.mjs +395 -0
- package/lib/installation.mjs +105 -10
- package/package.json +2 -1
- package/protocol.md +6 -1
- package/schemas/flow-ledger.schema.json +60 -0
- package/schemas/installation-manifest.schema.json +21 -1
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_attribution": "llm-orchestrator · created by Bogdan-Gabriel Torcescu · https://www.linkedin.com/in/bogdantorcescu/ · keep this credit when copying or deriving",
|
|
3
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
4
|
+
"$id": "https://raw.githubusercontent.com/tbogdan/llm-orchestrator/main/schemas/flow-ledger.schema.json",
|
|
5
|
+
"title": "Flow adherence ledger (.orchestrator-run/)",
|
|
6
|
+
"description": "Per-session state and closed-run history written by `llm-orchestrator gate`. Ids, task types, counts and timestamps only — never prompts, tool inputs or file contents.",
|
|
7
|
+
"$defs": {
|
|
8
|
+
"run": {
|
|
9
|
+
"type": "object",
|
|
10
|
+
"additionalProperties": false,
|
|
11
|
+
"required": ["task_id", "task_type", "trivial", "reason", "opened_at", "planned_shards", "subagents_started", "started_outside_flow"],
|
|
12
|
+
"properties": {
|
|
13
|
+
"task_id": { "type": "string", "minLength": 1 },
|
|
14
|
+
"task_type": { "type": ["string", "null"], "enum": ["INCIDENT", "FEATURE", "BUG_FIX", "REFACTOR", "INVESTIGATION", "DEPLOY", "CONFIG", "REVIEW", "RESEARCH", null] },
|
|
15
|
+
"trivial": { "type": "boolean" },
|
|
16
|
+
"reason": { "type": ["string", "null"] },
|
|
17
|
+
"opened_at": { "type": "number" },
|
|
18
|
+
"planned_shards": { "type": ["integer", "null"], "minimum": 1 },
|
|
19
|
+
"subagents_started": { "type": "integer", "minimum": 0 },
|
|
20
|
+
"started_outside_flow": { "type": "boolean" }
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"session": {
|
|
24
|
+
"type": "object",
|
|
25
|
+
"additionalProperties": false,
|
|
26
|
+
"required": ["version", "session", "run", "prompt_started_at", "nudged", "worked_without_run", "subagents_without_run", "entrypoint_loaded", "seen"],
|
|
27
|
+
"properties": {
|
|
28
|
+
"version": { "const": 1 },
|
|
29
|
+
"session": { "type": "string", "minLength": 1 },
|
|
30
|
+
"run": { "anyOf": [{ "type": "null" }, { "$ref": "#/$defs/run" }] },
|
|
31
|
+
"prompt_started_at": { "type": ["number", "null"] },
|
|
32
|
+
"nudged": { "type": "boolean" },
|
|
33
|
+
"worked_without_run": { "type": "boolean" },
|
|
34
|
+
"subagents_without_run": { "type": "integer", "minimum": 0 },
|
|
35
|
+
"entrypoint_loaded": { "type": "boolean" },
|
|
36
|
+
"seen": { "type": "array", "items": { "type": "string" } }
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"historyLine": {
|
|
40
|
+
"type": "object",
|
|
41
|
+
"additionalProperties": false,
|
|
42
|
+
"required": ["session", "task_id", "task_type", "trivial", "reason", "opened_at", "closed_at", "duration_s", "planned_shards", "subagents_started", "started_outside_flow", "skipped_flow", "closed_by"],
|
|
43
|
+
"properties": {
|
|
44
|
+
"session": { "type": "string", "minLength": 1 },
|
|
45
|
+
"task_id": { "type": ["string", "null"] },
|
|
46
|
+
"task_type": { "type": ["string", "null"], "enum": ["INCIDENT", "FEATURE", "BUG_FIX", "REFACTOR", "INVESTIGATION", "DEPLOY", "CONFIG", "REVIEW", "RESEARCH", null] },
|
|
47
|
+
"trivial": { "type": "boolean" },
|
|
48
|
+
"reason": { "type": ["string", "null"] },
|
|
49
|
+
"opened_at": { "type": ["string", "null"] },
|
|
50
|
+
"closed_at": { "type": "string" },
|
|
51
|
+
"duration_s": { "type": ["integer", "null"], "minimum": 0 },
|
|
52
|
+
"planned_shards": { "type": ["integer", "null"], "minimum": 1 },
|
|
53
|
+
"subagents_started": { "type": "integer", "minimum": 0 },
|
|
54
|
+
"started_outside_flow": { "type": "boolean" },
|
|
55
|
+
"skipped_flow": { "type": "boolean" },
|
|
56
|
+
"closed_by": { "enum": ["run_close", "next_prompt", "succession"] }
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
@@ -89,7 +89,8 @@
|
|
|
89
89
|
"bridge",
|
|
90
90
|
"native-command",
|
|
91
91
|
"codex-prompt",
|
|
92
|
-
"agent-file"
|
|
92
|
+
"agent-file",
|
|
93
|
+
"flow-plugin"
|
|
93
94
|
]
|
|
94
95
|
}
|
|
95
96
|
}
|
|
@@ -146,6 +147,25 @@
|
|
|
146
147
|
}
|
|
147
148
|
}
|
|
148
149
|
}
|
|
150
|
+
},
|
|
151
|
+
"flow_hooks": {
|
|
152
|
+
"type": "boolean",
|
|
153
|
+
"description": "Whether flow-adherence hooks are installed; a later install without --flow-hooks / --no-flow-hooks keeps this choice."
|
|
154
|
+
},
|
|
155
|
+
"json_entries": {
|
|
156
|
+
"type": "array",
|
|
157
|
+
"description": "Flow-hook groups merged into a user-owned hooks JSON file (.claude/settings.json, .codex/hooks.json). Only the marked groups are owned; the rest of the file is the user's.",
|
|
158
|
+
"items": {
|
|
159
|
+
"type": "object",
|
|
160
|
+
"additionalProperties": false,
|
|
161
|
+
"required": ["scope", "path", "hash", "created_file"],
|
|
162
|
+
"properties": {
|
|
163
|
+
"scope": { "const": "project" },
|
|
164
|
+
"path": { "type": "string", "minLength": 1 },
|
|
165
|
+
"hash": { "type": "string", "pattern": "^[0-9a-f]{64}$" },
|
|
166
|
+
"created_file": { "type": "boolean" }
|
|
167
|
+
}
|
|
168
|
+
}
|
|
149
169
|
}
|
|
150
170
|
}
|
|
151
171
|
}
|