@operad-io/harness-codex 0.2.0 → 0.3.0
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/package.json +4 -4
- package/src/app-server.ts +1 -1
- package/src/index.ts +2 -0
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@operad-io/harness-codex",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": "./src/index.ts"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@operad-io/access-match": "0.
|
|
10
|
-
"@operad-io/engine": "0.
|
|
11
|
-
"@operad-io/harness-process": "0.
|
|
9
|
+
"@operad-io/access-match": "0.3.0",
|
|
10
|
+
"@operad-io/engine": "0.3.0",
|
|
11
|
+
"@operad-io/harness-process": "0.3.0"
|
|
12
12
|
},
|
|
13
13
|
"description": "operad: the codex harness, a client of Codex's own app-server",
|
|
14
14
|
"repository": {
|
package/src/app-server.ts
CHANGED
|
@@ -533,7 +533,7 @@ export class AppServerClient {
|
|
|
533
533
|
const resume = this.options.resumeSession;
|
|
534
534
|
if (resume !== undefined) {
|
|
535
535
|
this.session = resume;
|
|
536
|
-
this.send(this.request("thread/resume", { threadId: resume, ...this.threadParams() }, "session"));
|
|
536
|
+
this.send(this.request("thread/resume", { threadId: resume, excludeTurns: true, ...this.threadParams() }, "session"));
|
|
537
537
|
} else {
|
|
538
538
|
this.send(this.request("thread/start", this.threadParams(), "session"));
|
|
539
539
|
}
|
package/src/index.ts
CHANGED
|
@@ -46,6 +46,7 @@ import {
|
|
|
46
46
|
readAgentStep,
|
|
47
47
|
resultFor,
|
|
48
48
|
runAgent,
|
|
49
|
+
skippedLineRecord,
|
|
49
50
|
serverCommand,
|
|
50
51
|
STALL_SETTING,
|
|
51
52
|
STEP_TIMEOUT_SECS,
|
|
@@ -597,6 +598,7 @@ export function createCodexHarnessPlugin(options: CodexHarnessOptions = {}) {
|
|
|
597
598
|
signal: stopper.signal,
|
|
598
599
|
clock,
|
|
599
600
|
toolEvent: (line) => log.toolEvent(line),
|
|
601
|
+
onSkipped: (chars) => writeLine(skippedLineRecord(chars)),
|
|
600
602
|
onLine(line, reply) {
|
|
601
603
|
server.handleLine(line, reply);
|
|
602
604
|
return writing;
|