@sagentlab/navarch-runtime 0.1.184 → 0.1.187
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/README.md +93 -11
- package/dist/adapters/acp.cjs +23 -5
- package/dist/adapters/antigravity.cjs +7 -4
- package/dist/adapters/qoder.cjs +18 -5
- package/dist/cli.cjs +164 -13
- package/dist/service.cjs +773 -0
- package/dist/session.cjs +9 -4
- package/package.json +1 -1
package/dist/session.cjs
CHANGED
|
@@ -88,10 +88,12 @@ function resolveSessionExecution(config, claimed) {
|
|
|
88
88
|
: "claude-opus-5-5",
|
|
89
89
|
reasoning_effort: "medium",
|
|
90
90
|
};
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
91
|
+
// The machine pin stands in for project policy on its own adapter. A model
|
|
92
|
+
// the task itself pinned wins: running the machine's model there would be a
|
|
93
|
+
// silent substitution.
|
|
94
|
+
const machinePin = runtime === config.agentType && config.model && !execution.model_pinned
|
|
95
|
+
? config.model : undefined;
|
|
96
|
+
return { ...execution, ...(machinePin ? { model: machinePin } : {}) };
|
|
95
97
|
}
|
|
96
98
|
/**
|
|
97
99
|
* Runs one claimed task end to end (implementation-plan.md WP-07):
|
|
@@ -162,6 +164,9 @@ async function runClaimedSession(deps, claimed, sessionId, lifecycle) {
|
|
|
162
164
|
const { lease_id: leaseId, task, context_bundle: bundle } = claimed;
|
|
163
165
|
const runtime = claimed.runtime ?? config.agentType;
|
|
164
166
|
const execution = resolveSessionExecution(config, claimed);
|
|
167
|
+
if (execution.model_pinned && runtime === config.agentType && config.model && config.model !== execution.model) {
|
|
168
|
+
log.info(`session ${leaseId}: the task pins model ${execution.model}; this machine's --model pin (${config.model}) is not applied`);
|
|
169
|
+
}
|
|
165
170
|
// Isolation posture reported on every completion so `sessions` records what
|
|
166
171
|
// a run actually executed under (#660). Derived from config alone, so the
|
|
167
172
|
// pre-start failure paths below can stamp it too. Host mode records
|
package/package.json
CHANGED