llm-orchestrator 1.7.0 → 1.7.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/.claude-plugin/plugin.json +1 -1
- package/lib/flow-gate.mjs +7 -3
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "llm-orchestrator",
|
|
3
3
|
"description": "Write /task once — it plans the work, shards it across parallel subagents, gates every phase and verifies before claiming done. Claude Code, Codex, OpenCode, Kilo.",
|
|
4
|
-
"version": "1.7.
|
|
4
|
+
"version": "1.7.1",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Bogdan-Gabriel Torcescu",
|
|
7
7
|
"url": "https://www.linkedin.com/in/bogdantorcescu/"
|
package/lib/flow-gate.mjs
CHANGED
|
@@ -498,6 +498,10 @@ const GENERIC_AGENT = /^(general-purpose|claude|statusline-setup)?$/i;
|
|
|
498
498
|
|
|
499
499
|
// The tools that start a subagent, per harness.
|
|
500
500
|
const DISPATCH_TOOLS = new Set(['agent', 'task', 'spawn_agent', 'spawn_agents_on_csv']);
|
|
501
|
+
// Codex reports some tools with their namespace (`collaboration.spawn_agent`); the last segment is the tool.
|
|
502
|
+
function isDispatchTool(toolName) {
|
|
503
|
+
return DISPATCH_TOOLS.has(String(toolName).toLowerCase().split(/[.:/]/).pop());
|
|
504
|
+
}
|
|
501
505
|
|
|
502
506
|
export function routingNudgeFor(cli = 'llm-orchestrator') {
|
|
503
507
|
return `This dispatch was not routed: nothing chose its model or recorded it. Before each dispatch run `
|
|
@@ -593,17 +597,17 @@ export function normalizePayload(raw) {
|
|
|
593
597
|
live: isLiveSource(command),
|
|
594
598
|
edits: edited.map((editedPath) => ({ hash: pathHash(editedPath), test: TEST_PATH.test(editedPath) })),
|
|
595
599
|
command,
|
|
596
|
-
dispatch:
|
|
600
|
+
dispatch: isDispatchTool(toolName),
|
|
597
601
|
// Claude Code's Agent tool: a dispatch with no role, or a built-in generic type.
|
|
598
602
|
// A frontier-tier subagent: the advisor role, or a frontier model named in the call.
|
|
599
|
-
frontier:
|
|
603
|
+
frontier: isDispatchTool(toolName) && (/(^|:)advisor$/i.test(String(input?.subagent_type ?? input?.agent_type ?? ''))
|
|
600
604
|
|| /fable|astra/i.test(String(input?.model ?? ''))),
|
|
601
605
|
genericAgent: toolName.toLowerCase() === 'agent' && (typeof input?.subagent_type !== 'string' || GENERIC_AGENT.test(input.subagent_type.trim())),
|
|
602
606
|
nativeQuestion: NATIVE_QUESTION_TOOLS.has(toolName.toLowerCase()),
|
|
603
607
|
routing: parseRoutingCalls(command),
|
|
604
608
|
use,
|
|
605
609
|
// Memory, reasoning, documentation and symbol lookups serve the flow; they are not work that skips it.
|
|
606
|
-
support: use.satisfies.length > 0 && edited.length === 0 && !
|
|
610
|
+
support: use.satisfies.length > 0 && edited.length === 0 && !isDispatchTool(toolName),
|
|
607
611
|
};
|
|
608
612
|
}
|
|
609
613
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "llm-orchestrator",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.1",
|
|
4
4
|
"description": "Write /task once — it plans the work, shards it across parallel subagents, gates every phase and verifies before claiming done. Claude Code, Codex, OpenCode, Kilo.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|