@veris-ai/daytona-opencode 0.2.0-rc.1 → 0.2.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/README.md +36 -11
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -71,7 +71,8 @@ baseline, reset it. Nothing to configure: it uses the `VERIS_API_KEY` you
|
|
|
71
71
|
already set, and is skipped entirely if that is unset.
|
|
72
72
|
|
|
73
73
|
Two of its tools are denied by default, because this plugin creates and owns the
|
|
74
|
-
session's twin
|
|
74
|
+
session's twin. OpenCode does not merely refuse a denied tool when it is called
|
|
75
|
+
— it withholds it from the model, so the agent never learns the option exists:
|
|
75
76
|
|
|
76
77
|
| tool | default | why |
|
|
77
78
|
|---|---|---|
|
|
@@ -107,20 +108,44 @@ tools, a config hook, two paragraphs in the system prompt, and a check that the
|
|
|
107
108
|
Veris coordinates are set. The ten inherited tools, the git-sync flow and the session
|
|
108
109
|
bookkeeping are untouched, so upstream changes stay easy to take.
|
|
109
110
|
|
|
110
|
-
##
|
|
111
|
+
## Adding Veris's own plugin alongside
|
|
111
112
|
|
|
112
|
-
[`opencode-veris-sim`](https://www.npmjs.com/package/opencode-veris-sim)
|
|
113
|
-
Veris's
|
|
114
|
-
|
|
113
|
+
[`opencode-veris-sim`](https://www.npmjs.com/package/opencode-veris-sim) is
|
|
114
|
+
Veris's engine-independent OpenCode plugin, from
|
|
115
|
+
[veris-ai/plugins](https://github.com/veris-ai/plugins/tree/main/veris-sim). It
|
|
116
|
+
carries Veris's own workflow for testing against twins — how to read what a
|
|
117
|
+
vendor does, seed the state a test needs, inject faults, and write up the
|
|
118
|
+
evidence — none of which is specific to where the code runs.
|
|
115
119
|
|
|
116
|
-
|
|
117
|
-
|
|
120
|
+
The two compose. Put both in the same list:
|
|
121
|
+
|
|
122
|
+
```jsonc
|
|
123
|
+
// opencode.json
|
|
124
|
+
{
|
|
125
|
+
"plugin": [
|
|
126
|
+
"@veris-ai/daytona-opencode",
|
|
127
|
+
"opencode-veris-sim"
|
|
128
|
+
]
|
|
129
|
+
}
|
|
118
130
|
```
|
|
119
131
|
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
132
|
+
Only one `veris` MCP server ends up registered: both plugins claim the name with
|
|
133
|
+
`??=`, so whichever loads first wins and the second is a no-op.
|
|
134
|
+
|
|
135
|
+
**What you gain, precisely.** Three slash commands — `/veris-sim:setup`,
|
|
136
|
+
`/veris-sim:build`, `/veris-sim:fix` — and the reference material they read: the
|
|
137
|
+
twin's control surface, seeding rows and files, fault rows, webhooks, the shape
|
|
138
|
+
of a PR's evidence section. You do not gain anything the agent reaches on its
|
|
139
|
+
own. `veris-reference` is marked `disable-model-invocation`, so the model will
|
|
140
|
+
not load it unless one of those commands sends it there.
|
|
141
|
+
|
|
142
|
+
**One thing to ignore.** Those commands were written for a session that has to
|
|
143
|
+
provision its own twin, so they begin by creating one. Here that step is already
|
|
144
|
+
done — the twin came up with the sandbox, and `create_sandbox` is denied — so
|
|
145
|
+
the agent should skip straight to the part that reads the twin.
|
|
146
|
+
|
|
147
|
+
If you only want the twin knowledge, you do not need this package at all:
|
|
148
|
+
`verisTwin` returns a service's manual directly.
|
|
124
149
|
|
|
125
150
|
## Limitations
|
|
126
151
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veris-ai/daytona-opencode",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "Run every OpenCode session in a Daytona sandbox whose vendor API calls are answered by a Veris twin. One line in opencode.json: unmodified code, real hostnames, and a receipt of what the vendor actually received.",
|
|
5
5
|
"main": "./.opencode/plugin/index.js",
|
|
6
6
|
"types": "./.opencode/plugin/index.d.ts",
|
|
@@ -37,16 +37,16 @@
|
|
|
37
37
|
"test": "vitest run"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@veris-ai/daytona": "^0.2.
|
|
40
|
+
"@veris-ai/daytona": "^0.2.1",
|
|
41
41
|
"@daytona/sdk": "^0.204.1",
|
|
42
|
-
"@opencode-ai/plugin": "1.
|
|
42
|
+
"@opencode-ai/plugin": "1.18.25",
|
|
43
43
|
"xdg-basedir": "^5.1.0",
|
|
44
44
|
"zod": "^4.2.1"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@types/node": "^
|
|
47
|
+
"@types/node": "^26",
|
|
48
48
|
"typescript": "^5.6.0",
|
|
49
|
-
"vitest": "^
|
|
49
|
+
"vitest": "^4.1.11"
|
|
50
50
|
},
|
|
51
51
|
"publishConfig": {
|
|
52
52
|
"access": "public"
|