verifiers 0.4.2.dev140__py3-none-any.whl → 0.4.2.dev141__py3-none-any.whl

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.
@@ -17,7 +17,9 @@ from verifiers.v1.types import Message
17
17
  OPENCODE_DIR = "/var/tmp/vf-opencode"
18
18
  STATE_ROOT = "/tmp/vf-opencode-runs"
19
19
  KEY_VAR = "VF_OPENCODE_API_KEY"
20
- MCP_READY = (Path(__file__).resolve().parent / "mcp-ready.js").read_bytes()
20
+ HERE = Path(__file__).resolve().parent
21
+ MCP_READY = (HERE / "mcp-ready.js").read_bytes()
22
+ UNSIGNED_THINKING = (HERE / "unsigned-thinking.js").read_bytes()
21
23
 
22
24
  INSTALL = r"""
23
25
  set -e
@@ -111,10 +113,23 @@ class OpenCodeHarness(ACPHarness[OpenCodeHarnessConfig]):
111
113
  "share": "disabled",
112
114
  "snapshots": False,
113
115
  }
116
+ # OpenCode drops thinking blocks with an empty signature on replay over
117
+ # Anthropic messages unless the model opts out of requiring one, and its
118
+ # config schema strips that option. Non-Claude models behind interception
119
+ # (e.g. DeepSeek) return unsigned thinking. Recheck on version bumps:
120
+ # https://github.com/anomalyco/opencode/blob/v2.3.2/packages/ai/src/protocols/anthropic-messages.ts#L922-L927
121
+ thinking_dir = f"{root}/unsigned-thinking"
122
+ await runtime.write(f"{thinking_dir}/index.js", UNSIGNED_THINKING)
123
+ plugins = [
124
+ {
125
+ "package": thinking_dir,
126
+ "options": {"provider": "intercept", "model": "model"},
127
+ }
128
+ ]
114
129
  if mcp_urls:
115
130
  plugin_dir = f"{root}/mcp-ready"
116
131
  await runtime.write(f"{plugin_dir}/index.js", MCP_READY)
117
- settings["plugins"] = [
132
+ plugins.append(
118
133
  {
119
134
  "package": plugin_dir,
120
135
  "options": {
@@ -122,7 +137,8 @@ class OpenCodeHarness(ACPHarness[OpenCodeHarnessConfig]):
122
137
  "timeout": int(self.config.tool_timeout * 1000),
123
138
  },
124
139
  }
125
- ]
140
+ )
141
+ settings["plugins"] = plugins
126
142
  return ACPConfig(
127
143
  command=[
128
144
  f"{OPENCODE_DIR}/{self.config.version}/node_modules/.bin/opencode",
@@ -0,0 +1,12 @@
1
+ import { Effect } from "effect";
2
+
3
+ export default {
4
+ id: "verifiers.unsigned-thinking",
5
+ effect: Effect.fn(function* (ctx) {
6
+ yield* ctx.model.transform((editor) => {
7
+ editor.update(ctx.options.provider, ctx.options.model, (model) => {
8
+ model.compatibility = { ...model.compatibility, requireSignature: false };
9
+ });
10
+ });
11
+ }),
12
+ };
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: verifiers
3
- Version: 0.4.2.dev140
3
+ Version: 0.4.2.dev141
4
4
  Summary: Verifiers: Environments for LLM Reinforcement Learning
5
5
  Project-URL: Homepage, https://github.com/primeintellect-ai/verifiers
6
6
  Project-URL: Documentation, https://github.com/primeintellect-ai/verifiers
@@ -99,8 +99,9 @@ verifiers/v1/harnesses/null/harness.py,sha256=ch6Um481rl4opxH04CHa1ZkoS_uHFweBus
99
99
  verifiers/v1/harnesses/openclaw/__init__.py,sha256=kNyfPB1sGwEf4K3mTfKN0VEyxun3SGvNpvArVKvH-x8,160
100
100
  verifiers/v1/harnesses/openclaw/harness.py,sha256=Wz77XcnMKZo6u5IVbsZQzdTzh7f2rqjONq7_2m_ml88,11529
101
101
  verifiers/v1/harnesses/opencode/__init__.py,sha256=NCMOVrleIgx5mt-d9hvTZNPhUjz0MQxPlMHOwiu39N4,160
102
- verifiers/v1/harnesses/opencode/harness.py,sha256=7nojW6Yoc2Dh_J6rX5v7MNmrLPXdMiZR1zn-zfk6Khk,5598
102
+ verifiers/v1/harnesses/opencode/harness.py,sha256=OyOcIg3U_SoBbMKwKhqLR1uvO9QT5BrYt_PVLB-vOsM,6441
103
103
  verifiers/v1/harnesses/opencode/mcp-ready.js,sha256=QpAJcego5pNOZJu1dfpRLd873xitYGYwE9qwmgmvMvI,1904
104
+ verifiers/v1/harnesses/opencode/unsigned-thinking.js,sha256=xmELwj5CF3ZRGyEr0yMBAJJFWh-GsbJgDZoD5ESYe5A,355
104
105
  verifiers/v1/harnesses/pi/__init__.py,sha256=1mSnzOf-RdEchdeg6IHtcdobG5KIpAhuTdUIgsCIn74,117
105
106
  verifiers/v1/harnesses/pi/gate.mjs,sha256=vk_OqHXhRdYzQL7YMX8Teajm0fh9tokzDvLHVOd2I9o,449
106
107
  verifiers/v1/harnesses/pi/harness.py,sha256=HPU8-NWG6-1i1zVwNago31VAc6OQNvSGWjQhSIrMo5g,8251
@@ -188,8 +189,8 @@ verifiers/v1/utils/scope.py,sha256=zbs4pj6AVk4jywlAJ3AX0Q0_kzB9dBB02nY-9H4ELdQ,8
188
189
  verifiers/v1/utils/score.py,sha256=493yJVMw8teCu9JxapxMFPFzI0hNUqdo0Y2nGW4kckk,6200
189
190
  verifiers/v1/utils/trace_store.py,sha256=7F6xMhYgl3qmylnCU8-ekqswH16fUat1uegeM1OR9QQ,2563
190
191
  verifiers/v1/utils/version.py,sha256=-obEo_-l9-D8FLef4hYxncOe-uJpxrM1g2Hig_37Sgs,1607
191
- verifiers-0.4.2.dev140.dist-info/METADATA,sha256=rLJFeTFWV0YtVqm5MXTTR2bB679sCjao_GJWl-xJCAs,5118
192
- verifiers-0.4.2.dev140.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
193
- verifiers-0.4.2.dev140.dist-info/entry_points.txt,sha256=qdMg7ajiFpDsHf7tuPMRclJXizu1J6LTWawS5YS0B0I,137
194
- verifiers-0.4.2.dev140.dist-info/licenses/LICENSE,sha256=v0RrUsdV3IDoZhrRce297IXS3xMHNJ-_LdLpFAUWb9k,1072
195
- verifiers-0.4.2.dev140.dist-info/RECORD,,
192
+ verifiers-0.4.2.dev141.dist-info/METADATA,sha256=K_RaXZnOmSca6eHGbWUoo63sPpJlodlgxt1NKoWvC_Y,5118
193
+ verifiers-0.4.2.dev141.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
194
+ verifiers-0.4.2.dev141.dist-info/entry_points.txt,sha256=qdMg7ajiFpDsHf7tuPMRclJXizu1J6LTWawS5YS0B0I,137
195
+ verifiers-0.4.2.dev141.dist-info/licenses/LICENSE,sha256=v0RrUsdV3IDoZhrRce297IXS3xMHNJ-_LdLpFAUWb9k,1072
196
+ verifiers-0.4.2.dev141.dist-info/RECORD,,