@parcha/agentrun-harness-codex 0.1.0-beta.35 → 0.1.0-beta.36
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/CHANGELOG.md +5 -0
- package/README.md +1 -1
- package/dist/harness.d.ts +1 -1
- package/dist/harness.js +1 -1
- package/dist/rollout.d.ts +0 -8
- package/dist/rollout.js +0 -16
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
## [Unreleased]
|
|
4
4
|
|
|
5
|
+
## 0.1.0-beta.36 (2026-11-13)
|
|
6
|
+
|
|
7
|
+
- Model defaults move to the current models. The OpenAI default (and OpenRouter's, for pi, codex and opencode) is now gpt-6.1-sol, where OpenRouter's was gpt-6-sol. The Claude Agent adapter's default is now claude-sonnet-5-5 (was claude-sonnet-4-5) and the Codex adapter's is openai/gpt-6-luna (was openai/gpt-5.4-mini). A host that relied on a default names its model; the READMEs' examples name the current ones.
|
|
8
|
+
- The two harness adapters list `@parcha/agentrun-dsl` as a dev dependency, since only their tests import it, and serve's package keywords drop the retired `pi-durable`.
|
|
9
|
+
|
|
5
10
|
## 0.1.0-beta.35 (2026-11-11)
|
|
6
11
|
|
|
7
12
|
- A capped run that reads screenshots is no longer refused at its cap after the first one. A model request's input bound counted an image's base64 as one token per byte, and then the image's billed maximum on top. A 1280x720 screenshot (about a megabyte of base64) read as some 1.3 million input tokens, so a Sonnet step under a $1.50 cap "needed at least $4.83" when Claude bills it a few cents.
|
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@ import { codexAdapter } from "@parcha/agentrun-harness-codex";
|
|
|
9
9
|
|
|
10
10
|
const runNode = createHarnessRunner(
|
|
11
11
|
codexAdapter({
|
|
12
|
-
model: "gpt-
|
|
12
|
+
model: "gpt-6-luna",
|
|
13
13
|
provider: { origin: "https://api.openai.com", credential: () => process.env.OPENAI_API_KEY! },
|
|
14
14
|
sessionsDir: "/var/lib/my-host/codex-sessions",
|
|
15
15
|
}),
|
package/dist/harness.d.ts
CHANGED
|
@@ -144,7 +144,7 @@ export interface CodexMachine {
|
|
|
144
144
|
/** `sandbox({ commandTimeoutMs })`: a built-in command's longest run, within the time left in the invocation. */
|
|
145
145
|
commandTimeoutMs?: number;
|
|
146
146
|
}
|
|
147
|
-
export declare const DEFAULT_MODEL = "openai/gpt-
|
|
147
|
+
export declare const DEFAULT_MODEL = "openai/gpt-6-luna";
|
|
148
148
|
/** A Codex item's replay policy: a command whose every action reads is `safe`; any other command, and every patch, `never`. */
|
|
149
149
|
export declare function codexItemReplay(item: {
|
|
150
150
|
type?: string;
|
package/dist/harness.js
CHANGED
|
@@ -10,7 +10,7 @@ import { codeMode } from './code-mode.js';
|
|
|
10
10
|
import { danglingCalls, settleCall } from './transcript.js';
|
|
11
11
|
import { BUILTINS_ON, checkConfig, codexConfig, toToml } from './config.js';
|
|
12
12
|
import { callIdOf, endsTurn, isRolloutPath, isSessionMeta, rolloutPathIn, rolloutStream, rolloutText, summarizeRollout, THREAD_STREAM, } from './rollout.js';
|
|
13
|
-
export const DEFAULT_MODEL = 'openai/gpt-
|
|
13
|
+
export const DEFAULT_MODEL = 'openai/gpt-6-luna';
|
|
14
14
|
const SANDBOX_MODES = new Set(['read-only', 'workspace-write', 'danger-full-access']);
|
|
15
15
|
/** Codex's command actions that only read: a command made of these alone is `safe` (the note says "safe to repeat"). */
|
|
16
16
|
const READ_ACTIONS = new Set(['read', 'listFiles', 'search']);
|
package/dist/rollout.d.ts
CHANGED
|
@@ -81,14 +81,6 @@ export declare function hasCall(lines: readonly string[], callId: string): boole
|
|
|
81
81
|
export declare function endsTurn(line: string): boolean;
|
|
82
82
|
/** The file a set of mirrored lines restores to: each line and its newline. */
|
|
83
83
|
export declare function rolloutText(lines: readonly string[]): string;
|
|
84
|
-
/**
|
|
85
|
-
* The rollout path relative to `CODEX_HOME`, from the absolute path
|
|
86
|
-
* app-server reports. Codex resumes a thread only from a file with its
|
|
87
|
-
* canonical name, `rollout-<YYYY-MM-DDTHH-MM-SS>-<threadId>.jsonl` (any
|
|
88
|
-
* directory under `sessions/`, any timestamp): anything else is "no rollout
|
|
89
|
-
* found" or "not a canonical rollout filename".
|
|
90
|
-
*/
|
|
91
|
-
export declare function relativeRolloutPath(absolute: string, threadId: string): string;
|
|
92
84
|
/** Whether `rel` is a rollout path the driver itself would derive for `threadId`: `sessions/[YYYY/MM/DD/]rollout-<ts>-<threadId>.jsonl`, nothing else. */
|
|
93
85
|
export declare function isRolloutPath(rel: string, threadId: string): boolean;
|
|
94
86
|
/**
|
package/dist/rollout.js
CHANGED
|
@@ -139,22 +139,6 @@ export function rolloutText(lines) {
|
|
|
139
139
|
out += `${l}\n`;
|
|
140
140
|
return out;
|
|
141
141
|
}
|
|
142
|
-
/**
|
|
143
|
-
* The rollout path relative to `CODEX_HOME`, from the absolute path
|
|
144
|
-
* app-server reports. Codex resumes a thread only from a file with its
|
|
145
|
-
* canonical name, `rollout-<YYYY-MM-DDTHH-MM-SS>-<threadId>.jsonl` (any
|
|
146
|
-
* directory under `sessions/`, any timestamp): anything else is "no rollout
|
|
147
|
-
* found" or "not a canonical rollout filename".
|
|
148
|
-
*/
|
|
149
|
-
export function relativeRolloutPath(absolute, threadId) {
|
|
150
|
-
const at = absolute.lastIndexOf('/sessions/');
|
|
151
|
-
const rel = at >= 0 ? absolute.slice(at + 1) : '';
|
|
152
|
-
const name = rel.slice(rel.lastIndexOf('/') + 1);
|
|
153
|
-
if (rel.includes('..') || !/^rollout-\d{4}-\d{2}-\d{2}T\d{2}-\d{2}-\d{2}-/.test(name) || name !== `${name.slice(0, 28)}${threadId}.jsonl`) {
|
|
154
|
-
return `sessions/rollout-1970-01-01T00-00-00-${threadId}.jsonl`;
|
|
155
|
-
}
|
|
156
|
-
return rel;
|
|
157
|
-
}
|
|
158
142
|
/** A thread id as the harness accepts it from app-server (untrusted: it names a file to tail). */
|
|
159
143
|
const THREAD_ID = /^[0-9A-Za-z-]{8,64}$/;
|
|
160
144
|
/** Whether `rel` is a rollout path the driver itself would derive for `threadId`: `sessions/[YYYY/MM/DD/]rollout-<ts>-<threadId>.jsonl`, nothing else. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@parcha/agentrun-harness-codex",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.36",
|
|
4
4
|
"description": "Codex as an AgentRun harness: a tool-less Codex app-server behind a loopback model proxy, durable in AgentRun's own store, with the host's tools as its only tools.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agentrun",
|
|
@@ -44,8 +44,7 @@
|
|
|
44
44
|
"test": "node --test --test-concurrency=8 'test/*.test.mjs'"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@parcha/agentrun-
|
|
48
|
-
"@parcha/agentrun-kernel": "0.1.0-beta.35"
|
|
47
|
+
"@parcha/agentrun-kernel": "0.1.0-beta.36"
|
|
49
48
|
},
|
|
50
49
|
"peerDependencies": {
|
|
51
50
|
"@openai/codex": "0.164.0"
|
|
@@ -56,7 +55,8 @@
|
|
|
56
55
|
}
|
|
57
56
|
},
|
|
58
57
|
"devDependencies": {
|
|
59
|
-
"@openai/codex": "0.164.0"
|
|
58
|
+
"@openai/codex": "0.164.0",
|
|
59
|
+
"@parcha/agentrun-dsl": "0.1.0-beta.36"
|
|
60
60
|
},
|
|
61
61
|
"repository": {
|
|
62
62
|
"type": "git",
|