agent-relay-codex 0.4.34 → 0.4.35
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/app-client.ts +8 -8
- package/package.json +1 -1
- package/plugin/.codex-plugin/plugin.json +1 -1
- package/profile.ts +3 -3
- package/relay.ts +1 -1
package/app-client.ts
CHANGED
|
@@ -25,9 +25,9 @@ export type ThreadStatus =
|
|
|
25
25
|
| { type: "systemError" }
|
|
26
26
|
| { type: "active"; activeFlags: string[] };
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
type TurnStatus = "completed" | "interrupted" | "failed" | "inProgress";
|
|
29
29
|
|
|
30
|
-
|
|
30
|
+
interface Turn {
|
|
31
31
|
id: string;
|
|
32
32
|
status: TurnStatus;
|
|
33
33
|
startedAt: number | null;
|
|
@@ -48,28 +48,28 @@ export type ClientEvent =
|
|
|
48
48
|
| { type: "server-request"; message: JsonRpcRequest }
|
|
49
49
|
| { type: "response"; message: JsonRpcResponse };
|
|
50
50
|
|
|
51
|
-
|
|
51
|
+
interface TurnStartResponse {
|
|
52
52
|
turn: Turn;
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
-
|
|
55
|
+
interface ThreadStartResponse {
|
|
56
56
|
thread: Thread;
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
-
|
|
59
|
+
interface ThreadResumeResponse {
|
|
60
60
|
thread: Thread;
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
-
|
|
63
|
+
interface ThreadReadResponse {
|
|
64
64
|
thread: Thread;
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
|
|
67
|
+
interface ThreadListResponse {
|
|
68
68
|
data: Thread[];
|
|
69
69
|
nextCursor: string | null;
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
-
|
|
72
|
+
interface ThreadLoadedListResponse {
|
|
73
73
|
data: string[];
|
|
74
74
|
nextCursor: string | null;
|
|
75
75
|
}
|
package/package.json
CHANGED
package/profile.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { existsSync, readFileSync } from "node:fs";
|
|
|
2
2
|
import { join } from "node:path";
|
|
3
3
|
import { parseApprovalMode, type ApprovalMode } from "./approval";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
interface AgentRelayProfile {
|
|
6
6
|
label?: string;
|
|
7
7
|
tags?: string[];
|
|
8
8
|
capabilities?: string[];
|
|
@@ -11,7 +11,7 @@ export interface AgentRelayProfile {
|
|
|
11
11
|
meta?: Record<string, unknown>;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
interface ResolvedAgentProfile {
|
|
15
15
|
profileName?: string;
|
|
16
16
|
label?: string;
|
|
17
17
|
tags: string[];
|
|
@@ -21,7 +21,7 @@ export interface ResolvedAgentProfile {
|
|
|
21
21
|
meta: Record<string, unknown>;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
|
|
24
|
+
function splitCsv(raw: string | undefined): string[] {
|
|
25
25
|
if (!raw) return [];
|
|
26
26
|
return [...new Set(raw.split(",").map((value) => value.trim()).filter(Boolean))];
|
|
27
27
|
}
|