tr-plugin-meta-harness 0.5.26 → 0.5.27
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/package.json +1 -1
- package/plugin.json +1 -1
- package/skills/meta-harness/SKILL.md +2 -2
- package/src/compat-harness.mjs +4 -1
package/package.json
CHANGED
package/plugin.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: meta-harness
|
|
3
3
|
description: Discover, route, coordinate, review and run coding agent harnesses through Total Recall across mesh nodes.
|
|
4
|
-
version: 0.5.
|
|
4
|
+
version: 0.5.27
|
|
5
5
|
repo_scoped: false
|
|
6
6
|
---
|
|
7
7
|
|
|
@@ -38,7 +38,7 @@ Coordinates coding agent harnesses across mesh nodes. `cli-agents` is an alias o
|
|
|
38
38
|
- `mcp [--approvals auto|operator|rules] [--question-timeout-ms <ms>]`: serve the job's `ask` and `approve` tools over stdio. Metaharness configures this server for Claude and Codex. `watch <job>` includes capabilities, usage, plans, diffs, hooks, model reroutes and waiting requests.
|
|
39
39
|
- A routed change gets a review from another model family after its gate and before its push. A blocking finding or an unreadable review stops the push. The job result contains the review.
|
|
40
40
|
- A token or USD cap requires measured usage. A harness that cannot report the required usage fails with `failureKind: limit`. A zero USD cap starts no agent turn. Goal checks and JSON corrections count toward job limits. JSON Schema assertions outside the portable validator's supported set fail validation. For DSH only, each `status`/`step_end` frame carries that step's own usage, which is summed across the run (cached input is reported separately and not counted) and checked after every step; `turn_end` counts one turn and `tool_call` starts a step named by its tool, while `tool_result` still ends it. Other harnesses are unchanged.
|
|
41
|
-
- `reasoning-config [--agent <id>] [--model <model>] [--max-usage-percent <1-100>] [--enable <id>] [--disable <id>]`: the harness and model for background reasoning such as lesson reviews. With nothing configured, background reasoning is refused; it never falls back to adapter order. Codex reasoning is held, with no model call, while Codex usage is at or above the threshold, and callers retry after 30 minutes. A harness with an operator OpenRouter binding (`openrouter-bind`) may be listed and is billed through it. No flags shows the saved file and the effective order.
|
|
41
|
+
- `reasoning-config [--agent <id>] [--model <model>] [--max-usage-percent <1-100>] [--enable <id>] [--disable <id>]`: the harness and model for background reasoning such as lesson reviews. With nothing configured, background reasoning is refused; it never falls back to adapter order. Codex reasoning is held, with no model call, while Codex usage is at or above the threshold, and callers retry after 30 minutes. A harness with an operator OpenRouter binding (`openrouter-bind`) may be listed and is billed through it. No flags shows the saved file and the effective order. Rule compaction uses included-plan reasoning only. Each rewrite and verification pass has its own one-turn job.
|
|
42
42
|
- `threads list|show|create|close|delete`, `learn`, `alerts check|test [--dry-run]`, `adapter list|add|remove`.
|
|
43
43
|
- `reviews`: read the durable review ledger, including selected diff, commit, reviewer, verdict and disposition. Thread deletion does not remove reviews.
|
|
44
44
|
- `threads cleanup-fixtures [--dry-run]`: one-time cleanup of exact test fixture titles. The atomic SSSS record lists removed and retained IDs. Real end-to-end job threads stay in place.
|
package/src/compat-harness.mjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/** Compatibility interfaces for native hosts. All execution uses the plugin's common boundary. */
|
|
2
2
|
import path from 'node:path';
|
|
3
|
+
import { randomUUID } from 'node:crypto';
|
|
3
4
|
import { getActiveAdapters, findBinary, inspectAgents, agentEnvironment } from './worker.mjs';
|
|
4
5
|
import { getInstalledVersion, getLatestVersion } from './tracker.mjs';
|
|
5
6
|
|
|
@@ -83,7 +84,9 @@ export async function dispatchTask(id, prompt, options = {}, dependencies = {})
|
|
|
83
84
|
node: options.node || 'local', permissions: { read: true, write: options.write === true },
|
|
84
85
|
allowUnknownAuth: options.allowUnknownAuth === true, timeoutMs: options.timeoutMs,
|
|
85
86
|
tools: options.tools, settingSources: options.settingSources, model: options.model,
|
|
86
|
-
|
|
87
|
+
// Each read-only reasoning call owns a fresh one-turn budget. The parent
|
|
88
|
+
// CLI can itself be running inside a managed job.
|
|
89
|
+
...(options.internalReasoning === true ? { internalReasoning: true, jobId: `session-${randomUUID()}` } : {}),
|
|
87
90
|
...(options.includedPlanOnly === true ? { includedPlanOnly: true } : {}),
|
|
88
91
|
...(options.maxTurns !== undefined ? { maxTurns: options.maxTurns } : {}),
|
|
89
92
|
...(options.maxTokens !== undefined ? { maxTokens: options.maxTokens } : {}),
|