@plainconceptsplatform/agent-harness 3.0.2 → 3.0.3
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.
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
// generation is the mechanism: writing the files in setup, before agents resolve,
|
|
20
20
|
// is what makes them visible.
|
|
21
21
|
|
|
22
|
-
import { Plugin } from "@opencode/plugin"
|
|
22
|
+
import { Plugin, Model } from "@opencode/plugin"
|
|
23
23
|
import fs from "node:fs/promises"
|
|
24
24
|
import path from "node:path"
|
|
25
25
|
|
|
@@ -333,7 +333,13 @@ export default Plugin.define({
|
|
|
333
333
|
const existing = editor.get(id)
|
|
334
334
|
if (!existing) continue
|
|
335
335
|
const model = models[spec.tier]
|
|
336
|
-
if (model)
|
|
336
|
+
if (model) {
|
|
337
|
+
try {
|
|
338
|
+
existing.model = Model.Ref.parse(model)
|
|
339
|
+
} catch {
|
|
340
|
+
// invalid model ref; leave undefined so session model applies
|
|
341
|
+
}
|
|
342
|
+
}
|
|
337
343
|
existing.mode = "primary"
|
|
338
344
|
existing.description = spec.description
|
|
339
345
|
if (spec.permissions) existing.permissions = spec.permissions
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plainconceptsplatform/agent-harness",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.3",
|
|
4
4
|
"description": "Installs the Plain Concepts Platform Harness into any codebase, and keeps it up to date. Wires OpenCode, OpenSpec, codegraph, and agentmemory into a multi-agent workflow that runs on native parallel subagents.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"opencode",
|