@tangle-network/agent-interface 0.17.0 → 0.17.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/dist/agent-profile.d.ts
CHANGED
|
@@ -92,7 +92,8 @@ export interface AgentProfileResources {
|
|
|
92
92
|
* - `minimal` — thinking ON, the lowest budget (distinct from `none`)
|
|
93
93
|
* - `low` / `medium` / `high` / `xhigh`
|
|
94
94
|
* - `ultracode` — maximum (claude-code's "ultracode" run mode; codex's `max` reconciles here).
|
|
95
|
-
* A backend without a matching native tier clamps to its nearest (e.g. codex maps `
|
|
95
|
+
* A backend without a matching native tier clamps to its nearest (e.g. codex maps `ultracode` → `xhigh`
|
|
96
|
+
* on models that support it).
|
|
96
97
|
*/
|
|
97
98
|
export type ReasoningEffort = "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "ultracode";
|
|
98
99
|
/**
|
|
@@ -11,9 +11,10 @@ import { type HarnessType } from "./harness.js";
|
|
|
11
11
|
* cli-bridge backends, the sandbox UI pickers, and the router all read one truth instead of each
|
|
12
12
|
* hand-rolling a divergent copy.
|
|
13
13
|
*
|
|
14
|
-
* Grounded in cli-bridge's real backend clamps (codex
|
|
15
|
-
* carries the full range, cli-base has no agent) — NOT a guessed matrix. The
|
|
16
|
-
* capability (does this specific model reason at all) is dynamic catalog data the
|
|
14
|
+
* Grounded in cli-bridge's real backend clamps (codex is `low..xhigh` for current models, kimi is
|
|
15
|
+
* binary on/off, claude carries the full range, cli-base has no agent) — NOT a guessed matrix. The
|
|
16
|
+
* per-MODEL reasoning capability (does this specific model reason at all) is dynamic catalog data the
|
|
17
|
+
* caller supplies.
|
|
17
18
|
*/
|
|
18
19
|
/** low → high. `none` = thinking off; `ultracode` = max (claude-code mode). */
|
|
19
20
|
export declare const reasoningLadder: readonly ReasoningEffort[];
|
|
@@ -10,9 +10,10 @@ import { canonicalizeHarness } from "./harness.js";
|
|
|
10
10
|
* cli-bridge backends, the sandbox UI pickers, and the router all read one truth instead of each
|
|
11
11
|
* hand-rolling a divergent copy.
|
|
12
12
|
*
|
|
13
|
-
* Grounded in cli-bridge's real backend clamps (codex
|
|
14
|
-
* carries the full range, cli-base has no agent) — NOT a guessed matrix. The
|
|
15
|
-
* capability (does this specific model reason at all) is dynamic catalog data the
|
|
13
|
+
* Grounded in cli-bridge's real backend clamps (codex is `low..xhigh` for current models, kimi is
|
|
14
|
+
* binary on/off, claude carries the full range, cli-base has no agent) — NOT a guessed matrix. The
|
|
15
|
+
* per-MODEL reasoning capability (does this specific model reason at all) is dynamic catalog data the
|
|
16
|
+
* caller supplies.
|
|
16
17
|
*/
|
|
17
18
|
/** low → high. `none` = thinking off; `ultracode` = max (claude-code mode). */
|
|
18
19
|
export const reasoningLadder = [
|
|
@@ -124,8 +125,8 @@ export function snapHarnessToModel(harness, modelId) {
|
|
|
124
125
|
/**
|
|
125
126
|
* The explicit reasoning-effort set a harness's runtime accepts when it ISN'T a plain `none…ceiling`
|
|
126
127
|
* slice — grounded in the cli-bridge adapters (NOT the canonical ladder):
|
|
127
|
-
* - codex:
|
|
128
|
-
*
|
|
128
|
+
* - codex: current models advertise `low|medium|high|xhigh`; `none` is omitted (use `auto`) and
|
|
129
|
+
* legacy `minimal` requests clamp up to `low`.
|
|
129
130
|
* - claude-code: `--effort` accepts `low|medium|high|xhigh|max`. `ultracode` is the ladder's stand-in
|
|
130
131
|
* for claude's `max` (clamped at runtime); `minimal`→`low` and `none`/`auto`→no flag, so both are
|
|
131
132
|
* dropped as redundant.
|
|
@@ -134,7 +135,7 @@ export function snapHarnessToModel(harness, modelId) {
|
|
|
134
135
|
* `--no-thinking`, `high` is "thinking on". So two levels, not five.
|
|
135
136
|
*/
|
|
136
137
|
const harnessReasoningEffortsOverride = {
|
|
137
|
-
codex: ["
|
|
138
|
+
codex: ["low", "medium", "high", "xhigh"],
|
|
138
139
|
"claude-code": ["low", "medium", "high", "xhigh", "ultracode"],
|
|
139
140
|
pi: ["minimal", "low", "medium", "high", "xhigh"],
|
|
140
141
|
openclaw: ["minimal", "low", "medium", "high", "xhigh"],
|