codex-toys 0.140.11 → 0.140.13
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 +35 -15
- package/dist/cli/actions.d.ts +1 -1
- package/dist/cli/actions.d.ts.map +1 -1
- package/dist/cli/actions.js +1 -0
- package/dist/cli/actions.js.map +1 -1
- package/dist/cli/args.d.ts +25 -20
- package/dist/cli/args.d.ts.map +1 -1
- package/dist/cli/args.js +67 -33
- package/dist/cli/args.js.map +1 -1
- package/dist/cli/help.d.ts.map +1 -1
- package/dist/cli/help.js +18 -16
- package/dist/cli/help.js.map +1 -1
- package/dist/cli/index.js +68 -57
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/toybox.js +3 -3
- package/dist/internal/feed/index.d.ts +26 -1
- package/dist/internal/feed/index.d.ts.map +1 -1
- package/dist/internal/feed/index.js +102 -1
- package/dist/internal/feed/index.js.map +1 -1
- package/dist/internal/package.json +5 -0
- package/dist/internal/workbench/{deferred-run-methods.d.ts → dispatch-run-methods.d.ts} +12 -12
- package/dist/internal/workbench/{deferred-run-methods.d.ts.map → dispatch-run-methods.d.ts.map} +1 -1
- package/dist/internal/workbench/{deferred-run-methods.js → dispatch-run-methods.js} +61 -61
- package/dist/internal/workbench/{deferred-run-methods.js.map → dispatch-run-methods.js.map} +1 -1
- package/dist/internal/workbench/fetch.js +1 -1
- package/dist/internal/workbench/fetch.js.map +1 -1
- package/dist/internal/workbench/index.d.ts +1 -1
- package/dist/internal/workbench/index.js +1 -1
- package/dist/internal/workbench/workbench-overview.d.ts +9 -9
- package/dist/internal/workbench/workbench-overview.js +12 -12
- package/dist/internal/workbench/workbench-runtime.d.ts +75 -120
- package/dist/internal/workbench/workbench-runtime.d.ts.map +1 -1
- package/dist/internal/workbench/workbench-runtime.js +293 -621
- package/dist/internal/workbench/workbench-runtime.js.map +1 -1
- package/dist/internal/workbench/workflow.d.ts.map +1 -1
- package/dist/internal/workbench/workflow.js +106 -11
- package/dist/internal/workbench/workflow.js.map +1 -1
- package/docs/pages/{reference → components}/cli.md +13 -14
- package/docs/pages/{primitives → components}/toybox.md +4 -4
- package/docs/pages/guides/capability-kit-setup.md +135 -0
- package/docs/pages/guides/dashboard-over-toybox.md +145 -0
- package/docs/pages/guides/delegated-repo-work.md +119 -0
- package/docs/pages/guides/feed-to-workflow.md +138 -0
- package/docs/pages/guides/local-scheduled-workbench.md +149 -0
- package/docs/pages/guides/remote-codex-workbench.md +147 -0
- package/docs/pages/guides/repository-autonomy.md +163 -0
- package/docs/pages/index.md +35 -11
- package/docs/pages/primitives/{deferred-queues.md → dispatch-queues.md} +21 -21
- package/docs/pages/primitives/feed.md +18 -9
- package/docs/pages/primitives/workbench.md +26 -21
- package/docs/pages/primitives/workflow.md +6 -5
- package/docs/pages/reference/packages.md +14 -2
- package/package.json +1 -1
- /package/docs/pages/{primitives → components}/kits.md +0 -0
- /package/docs/pages/{primitives → components}/proxy.md +0 -0
|
@@ -49,7 +49,7 @@ export function formatFetchInfo(info, options = {}) {
|
|
|
49
49
|
["workbench mode", info.workbench.mode],
|
|
50
50
|
["workbench root", info.workbench.repoRoot],
|
|
51
51
|
["state root", info.workbench.stateRoot],
|
|
52
|
-
["tasks", `${info.workbench.taskCount} configured, ${info.workbench.
|
|
52
|
+
["tasks", `${info.workbench.taskCount} configured, ${info.workbench.failingCount} failing`],
|
|
53
53
|
]
|
|
54
54
|
: []),
|
|
55
55
|
["toybox status", toyboxLabel(info.toybox)],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch.js","sourceRoot":"","sources":["../src/fetch.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EACN,0BAA0B,EAC1B,sBAAsB,GAEtB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAiEvD,MAAM,CAAC,KA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,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;AAC7E,CAAC;AAED,SAAS,OAAO,CAAC,OAAgB;IAKhC,IAAI,CAAC,OAAO,EAAE,CAAC;QACd,OAAO;YACN,IAAI,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK;YACtB,KAAK,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK;YACvB,KAAK,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK;SACvB,CAAC;IACH,CAAC;IACD,OAAO;QACN,IAAI,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,WAAW,KAAK,SAAS;QAC1C,KAAK,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,UAAU,KAAK,SAAS;QAC1C,KAAK,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK;KACvB,CAAC;AACH,CAAC;AAED,SAAS,QAAQ,CAAC,KAAc;IAC/B,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;AAC7E,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ToyboxMethodHandler } from "../toybox/index.js";
|
|
2
2
|
import type { ToyboxMethodMetadata } from "../toybox/index.js";
|
|
3
3
|
import { type FetchInfo, type FetchThreadsInfo, type FetchToyboxInfo } from "./fetch.ts";
|
|
4
|
-
import { type
|
|
4
|
+
import { type DispatchRunIntentStatus, type WorkbenchDoctorInfo, type WorkbenchModeInput } from "./workbench-runtime.ts";
|
|
5
5
|
import { type WorkbenchFunctionMetadata } from "./functions.ts";
|
|
6
6
|
export declare const WORKBENCH_OVERVIEW_METHOD = "workbench.overview";
|
|
7
7
|
export type WorkbenchOverviewParams = {
|
|
@@ -39,11 +39,11 @@ export type WorkbenchOverview = {
|
|
|
39
39
|
ok: boolean;
|
|
40
40
|
checks: WorkbenchOverviewHealthCheck[];
|
|
41
41
|
};
|
|
42
|
-
|
|
42
|
+
dispatch: {
|
|
43
43
|
ok: boolean;
|
|
44
|
-
summary:
|
|
45
|
-
intents:
|
|
46
|
-
latest?:
|
|
44
|
+
summary: DispatchRunSummary;
|
|
45
|
+
intents: DispatchRunIntentSummary[];
|
|
46
|
+
latest?: LatestDispatchRunSummary;
|
|
47
47
|
error?: string;
|
|
48
48
|
};
|
|
49
49
|
workflows: {
|
|
@@ -71,7 +71,7 @@ export type WorkbenchOverviewHealthCheck = {
|
|
|
71
71
|
detail?: string;
|
|
72
72
|
error?: string;
|
|
73
73
|
};
|
|
74
|
-
export type
|
|
74
|
+
export type DispatchRunSummary = {
|
|
75
75
|
total: number;
|
|
76
76
|
pending: number;
|
|
77
77
|
running: number;
|
|
@@ -80,9 +80,9 @@ export type DeferredRunSummary = {
|
|
|
80
80
|
canceled: number;
|
|
81
81
|
due: number;
|
|
82
82
|
};
|
|
83
|
-
export type
|
|
83
|
+
export type DispatchRunIntentSummary = {
|
|
84
84
|
id: string;
|
|
85
|
-
status:
|
|
85
|
+
status: DispatchRunIntentStatus;
|
|
86
86
|
mode: string;
|
|
87
87
|
runAt: string;
|
|
88
88
|
createdAt: string;
|
|
@@ -91,7 +91,7 @@ export type DeferredRunIntentSummary = {
|
|
|
91
91
|
attempts: number;
|
|
92
92
|
error?: string;
|
|
93
93
|
};
|
|
94
|
-
export type
|
|
94
|
+
export type LatestDispatchRunSummary = DispatchRunIntentSummary & {
|
|
95
95
|
attempt?: {
|
|
96
96
|
id: string;
|
|
97
97
|
status: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import path from "node:path";
|
|
2
2
|
import { spawn } from "node:child_process";
|
|
3
3
|
import { collectFetchInfo, } from "./fetch.js";
|
|
4
|
-
import { collectWorkbenchDoctorInfo, createWorkbenchContext,
|
|
4
|
+
import { collectWorkbenchDoctorInfo, createWorkbenchContext, listDispatchRunIntents, parseMode, readDispatchRun, } from "./workbench-runtime.js";
|
|
5
5
|
import { listWorkflows, } from "./workflow.js";
|
|
6
6
|
import { WorkbenchFunctionRuntime, } from "./functions.js";
|
|
7
7
|
export const WORKBENCH_OVERVIEW_METHOD = "workbench.overview";
|
|
@@ -44,9 +44,9 @@ export async function collectWorkbenchOverview(options = {}, params = {}) {
|
|
|
44
44
|
url: options.toyboxUrl ?? "toybox://local",
|
|
45
45
|
error: options.appRequest ? undefined : "No toybox request surface was provided",
|
|
46
46
|
};
|
|
47
|
-
const [fetch,
|
|
47
|
+
const [fetch, dispatch, workflows, functions, threads, git, codex,] = await Promise.all([
|
|
48
48
|
collectOverviewFetch(cwd, toybox, options),
|
|
49
|
-
|
|
49
|
+
collectDispatch(context, now, limits.intents, limits.outputChars),
|
|
50
50
|
collectWorkflows(cwd),
|
|
51
51
|
collectFunctions(cwd),
|
|
52
52
|
collectThreads(cwd, limits.threads, options.appRequest),
|
|
@@ -107,7 +107,7 @@ export async function collectWorkbenchOverview(options = {}, params = {}) {
|
|
|
107
107
|
},
|
|
108
108
|
];
|
|
109
109
|
const ok = checks.every((check) => check.ok || check.status === "warning") &&
|
|
110
|
-
|
|
110
|
+
dispatch.ok &&
|
|
111
111
|
workflows.ok &&
|
|
112
112
|
functions.ok &&
|
|
113
113
|
git.ok;
|
|
@@ -134,7 +134,7 @@ export async function collectWorkbenchOverview(options = {}, params = {}) {
|
|
|
134
134
|
ok: checks.every((check) => check.ok || check.status === "warning"),
|
|
135
135
|
checks,
|
|
136
136
|
},
|
|
137
|
-
|
|
137
|
+
dispatch,
|
|
138
138
|
workflows,
|
|
139
139
|
functions,
|
|
140
140
|
threads,
|
|
@@ -165,23 +165,23 @@ async function collectOverviewFetch(cwd, toybox, options) {
|
|
|
165
165
|
toybox: info.toybox,
|
|
166
166
|
};
|
|
167
167
|
}
|
|
168
|
-
async function
|
|
168
|
+
async function collectDispatch(context, now, limit, outputChars) {
|
|
169
169
|
try {
|
|
170
|
-
const intents = await
|
|
170
|
+
const intents = await listDispatchRunIntents(context);
|
|
171
171
|
const latest = intents
|
|
172
172
|
.toSorted((left, right) => bFirst(left.updatedAt, right.updatedAt))[0];
|
|
173
173
|
const latestRead = latest
|
|
174
|
-
? await
|
|
174
|
+
? await readDispatchRun(context, latest.id, { includeOutput: true }).catch(() => undefined)
|
|
175
175
|
: undefined;
|
|
176
176
|
return {
|
|
177
177
|
ok: true,
|
|
178
|
-
summary:
|
|
178
|
+
summary: summarizeDispatch(intents, now),
|
|
179
179
|
intents: intents
|
|
180
180
|
.toSorted((left, right) => bFirst(left.updatedAt, right.updatedAt))
|
|
181
181
|
.slice(0, limit)
|
|
182
182
|
.map(summarizeIntent),
|
|
183
183
|
...(latest ? {
|
|
184
|
-
latest:
|
|
184
|
+
latest: summarizeLatestDispatch(latest, latestRead?.attempts ?? [], latestRead?.outputs ?? [], outputChars),
|
|
185
185
|
} : {}),
|
|
186
186
|
};
|
|
187
187
|
}
|
|
@@ -202,7 +202,7 @@ async function collectDeferred(context, now, limit, outputChars) {
|
|
|
202
202
|
};
|
|
203
203
|
}
|
|
204
204
|
}
|
|
205
|
-
function
|
|
205
|
+
function summarizeDispatch(intents, now) {
|
|
206
206
|
const summary = {
|
|
207
207
|
total: intents.length,
|
|
208
208
|
pending: 0,
|
|
@@ -234,7 +234,7 @@ function summarizeIntent(intent) {
|
|
|
234
234
|
...(intent.error ? { error: intent.error } : {}),
|
|
235
235
|
};
|
|
236
236
|
}
|
|
237
|
-
function
|
|
237
|
+
function summarizeLatestDispatch(intent, attempts, outputs, outputChars) {
|
|
238
238
|
const latestAttempt = attempts
|
|
239
239
|
.toSorted((left, right) => bFirst(left.startedAt, right.startedAt))[0];
|
|
240
240
|
const latestOutput = latestAttempt
|
|
@@ -7,12 +7,13 @@ export type WorkbenchSurface = {
|
|
|
7
7
|
workbenchForumChannelId?: string;
|
|
8
8
|
taskThreadsChannelId?: string;
|
|
9
9
|
};
|
|
10
|
+
export type WorkbenchTaskHistory = "full" | "latest";
|
|
10
11
|
export type WorkbenchTask = {
|
|
11
12
|
id: string;
|
|
12
13
|
enabled: boolean;
|
|
13
14
|
kind: "skill";
|
|
14
15
|
skill: string;
|
|
15
|
-
|
|
16
|
+
history: WorkbenchTaskHistory;
|
|
16
17
|
var?: string;
|
|
17
18
|
} | {
|
|
18
19
|
id: string;
|
|
@@ -22,27 +23,18 @@ export type WorkbenchTask = {
|
|
|
22
23
|
event?: Record<string, unknown>;
|
|
23
24
|
prompt?: string;
|
|
24
25
|
cwd?: string;
|
|
25
|
-
|
|
26
|
+
history: WorkbenchTaskHistory;
|
|
26
27
|
} | {
|
|
27
28
|
id: string;
|
|
28
29
|
enabled: boolean;
|
|
29
30
|
kind: "command";
|
|
30
31
|
command: string[];
|
|
31
|
-
|
|
32
|
-
};
|
|
33
|
-
export type WorkbenchReactiveRule = {
|
|
34
|
-
id: string;
|
|
35
|
-
enabled: boolean;
|
|
36
|
-
task: string;
|
|
37
|
-
consecutiveFailuresGte: number;
|
|
38
|
-
kind: "skill";
|
|
39
|
-
skill: string;
|
|
32
|
+
history: WorkbenchTaskHistory;
|
|
40
33
|
};
|
|
41
34
|
export type WorkbenchConfig = {
|
|
42
35
|
name: string;
|
|
43
36
|
surfaces: WorkbenchSurface[];
|
|
44
37
|
tasks: WorkbenchTask[];
|
|
45
|
-
reactive: WorkbenchReactiveRule[];
|
|
46
38
|
path: string;
|
|
47
39
|
};
|
|
48
40
|
export type WorkbenchContext = {
|
|
@@ -58,9 +50,9 @@ export type WorkbenchContext = {
|
|
|
58
50
|
globalCodexHome: string;
|
|
59
51
|
actionsCommitPaths: string[];
|
|
60
52
|
};
|
|
61
|
-
export type
|
|
62
|
-
export type
|
|
63
|
-
kind: "
|
|
53
|
+
export type DispatchReasoningEffort = "none" | "minimal" | "low" | "medium" | "high" | "xhigh";
|
|
54
|
+
export type DispatchRunDependency = {
|
|
55
|
+
kind: "dispatch-run";
|
|
64
56
|
intentId: string;
|
|
65
57
|
status?: "completed" | "failed" | "canceled" | "terminal";
|
|
66
58
|
};
|
|
@@ -68,21 +60,21 @@ export type WorkbenchRunRecord = {
|
|
|
68
60
|
id: string;
|
|
69
61
|
taskId: string;
|
|
70
62
|
status: "completed" | "failed" | "skipped";
|
|
71
|
-
kind: WorkbenchTask["kind"]
|
|
63
|
+
kind: WorkbenchTask["kind"];
|
|
72
64
|
startedAt: string;
|
|
73
65
|
finishedAt: string;
|
|
74
66
|
mode: WorkbenchMode;
|
|
75
67
|
outputPath?: string;
|
|
76
68
|
error?: string;
|
|
77
69
|
};
|
|
78
|
-
export type
|
|
70
|
+
export type DispatchRunTarget = {
|
|
79
71
|
kind: "turn";
|
|
80
72
|
prompt: string;
|
|
81
73
|
threadId?: string;
|
|
82
74
|
cwd?: string;
|
|
83
75
|
model?: string;
|
|
84
76
|
serviceTier?: string;
|
|
85
|
-
effort?:
|
|
77
|
+
effort?: DispatchReasoningEffort;
|
|
86
78
|
sandbox?: "danger-full-access" | "read-only" | "workspace-write";
|
|
87
79
|
approvalPolicy?: "never" | "on-failure" | "on-request" | "untrusted";
|
|
88
80
|
permissions?: string;
|
|
@@ -102,19 +94,19 @@ export type DeferredRunTarget = {
|
|
|
102
94
|
kind: "workbench-task";
|
|
103
95
|
taskId: string;
|
|
104
96
|
};
|
|
105
|
-
export type
|
|
106
|
-
export type
|
|
97
|
+
export type DispatchRunIntentStatus = "pending" | "running" | "completed" | "failed" | "canceled";
|
|
98
|
+
export type DispatchRunIntent = {
|
|
107
99
|
id: string;
|
|
108
|
-
status:
|
|
100
|
+
status: DispatchRunIntentStatus;
|
|
109
101
|
mode: WorkbenchMode;
|
|
110
102
|
runAt: string;
|
|
111
|
-
target:
|
|
103
|
+
target: DispatchRunTarget;
|
|
112
104
|
createdAt: string;
|
|
113
105
|
updatedAt: string;
|
|
114
106
|
createdBy?: string;
|
|
115
107
|
reason?: string;
|
|
116
108
|
source?: Record<string, unknown>;
|
|
117
|
-
dependsOn?:
|
|
109
|
+
dependsOn?: DispatchRunDependency[];
|
|
118
110
|
attemptIds: string[];
|
|
119
111
|
lease?: {
|
|
120
112
|
attemptId: string;
|
|
@@ -126,7 +118,7 @@ export type DeferredRunIntent = {
|
|
|
126
118
|
canceledAt?: string;
|
|
127
119
|
error?: string;
|
|
128
120
|
};
|
|
129
|
-
export type
|
|
121
|
+
export type DispatchRunAttempt = {
|
|
130
122
|
id: string;
|
|
131
123
|
intentId: string;
|
|
132
124
|
status: "running" | "completed" | "failed";
|
|
@@ -138,16 +130,16 @@ export type DeferredRunAttempt = {
|
|
|
138
130
|
outputPath?: string;
|
|
139
131
|
error?: string;
|
|
140
132
|
};
|
|
141
|
-
export type
|
|
133
|
+
export type DispatchRunCreateParams = {
|
|
142
134
|
id?: string;
|
|
143
135
|
runAt?: string;
|
|
144
|
-
target:
|
|
136
|
+
target: DispatchRunTarget;
|
|
145
137
|
createdBy?: string;
|
|
146
138
|
reason?: string;
|
|
147
139
|
source?: Record<string, unknown>;
|
|
148
|
-
dependsOn?:
|
|
140
|
+
dependsOn?: DispatchRunDependency[];
|
|
149
141
|
};
|
|
150
|
-
export type
|
|
142
|
+
export type DispatchRunRetryParams = {
|
|
151
143
|
id?: string;
|
|
152
144
|
runAt?: string;
|
|
153
145
|
createdBy?: string;
|
|
@@ -165,7 +157,7 @@ export type PromptQueueEnqueueParams = {
|
|
|
165
157
|
cwd?: string;
|
|
166
158
|
model?: string;
|
|
167
159
|
serviceTier?: string;
|
|
168
|
-
effort?:
|
|
160
|
+
effort?: DispatchReasoningEffort;
|
|
169
161
|
sandbox?: "danger-full-access" | "read-only" | "workspace-write";
|
|
170
162
|
approvalPolicy?: "never" | "on-failure" | "on-request" | "untrusted";
|
|
171
163
|
permissions?: string;
|
|
@@ -192,7 +184,7 @@ export type LocalHandoffEnqueueParams = {
|
|
|
192
184
|
cwd?: string;
|
|
193
185
|
model?: string;
|
|
194
186
|
serviceTier?: string;
|
|
195
|
-
effort?:
|
|
187
|
+
effort?: DispatchReasoningEffort;
|
|
196
188
|
sandbox?: "danger-full-access" | "read-only" | "workspace-write";
|
|
197
189
|
approvalPolicy?: "never" | "on-failure" | "on-request" | "untrusted";
|
|
198
190
|
permissions?: string;
|
|
@@ -205,46 +197,46 @@ export type LocalHandoffEnqueueParams = {
|
|
|
205
197
|
source?: Record<string, unknown>;
|
|
206
198
|
};
|
|
207
199
|
export type LocalHandoffDrainAction = "run" | "materialize";
|
|
208
|
-
export type
|
|
200
|
+
export type DispatchRunAttemptOutput = {
|
|
209
201
|
attemptId: string;
|
|
210
202
|
outputPath: string;
|
|
211
203
|
output?: unknown;
|
|
212
204
|
error?: string;
|
|
213
205
|
};
|
|
214
|
-
export type
|
|
215
|
-
intent:
|
|
216
|
-
attempts:
|
|
217
|
-
outputs?:
|
|
206
|
+
export type DispatchRunReadResult = {
|
|
207
|
+
intent: DispatchRunIntent;
|
|
208
|
+
attempts: DispatchRunAttempt[];
|
|
209
|
+
outputs?: DispatchRunAttemptOutput[];
|
|
218
210
|
};
|
|
219
|
-
export type
|
|
220
|
-
intent:
|
|
221
|
-
originalIntent:
|
|
211
|
+
export type DispatchRunRetryResult = {
|
|
212
|
+
intent: DispatchRunIntent;
|
|
213
|
+
originalIntent: DispatchRunIntent;
|
|
222
214
|
};
|
|
223
|
-
export type
|
|
215
|
+
export type DispatchRunCollectCursor = {
|
|
224
216
|
cursor: string;
|
|
225
217
|
updatedAt: string;
|
|
226
218
|
lastUpdatedAt?: string;
|
|
227
219
|
lastIntentId?: string;
|
|
228
220
|
};
|
|
229
|
-
export type
|
|
221
|
+
export type DispatchRunCollectResult = {
|
|
230
222
|
mode: WorkbenchMode;
|
|
231
223
|
cursor: string;
|
|
232
224
|
collectedAt: string;
|
|
233
|
-
previousCursor?:
|
|
234
|
-
cursorState:
|
|
235
|
-
intents:
|
|
225
|
+
previousCursor?: DispatchRunCollectCursor;
|
|
226
|
+
cursorState: DispatchRunCollectCursor;
|
|
227
|
+
intents: DispatchRunReadResult[];
|
|
236
228
|
};
|
|
237
|
-
export type
|
|
238
|
-
intent:
|
|
239
|
-
attempt:
|
|
229
|
+
export type DispatchRunExecution = {
|
|
230
|
+
intent: DispatchRunIntent;
|
|
231
|
+
attempt: DispatchRunAttempt;
|
|
240
232
|
output: unknown;
|
|
241
233
|
};
|
|
242
234
|
export type LocalHandoffDrainResult = {
|
|
243
235
|
mode: WorkbenchMode;
|
|
244
236
|
action: LocalHandoffDrainAction;
|
|
245
|
-
executions:
|
|
237
|
+
executions: DispatchRunExecution[];
|
|
246
238
|
};
|
|
247
|
-
export type
|
|
239
|
+
export type DispatchRunPruneResult = {
|
|
248
240
|
mode: WorkbenchMode;
|
|
249
241
|
cutoff: string;
|
|
250
242
|
dryRun: boolean;
|
|
@@ -252,41 +244,12 @@ export type DeferredRunPruneResult = {
|
|
|
252
244
|
pruned: number;
|
|
253
245
|
intents: Array<{
|
|
254
246
|
id: string;
|
|
255
|
-
status: Extract<
|
|
247
|
+
status: Extract<DispatchRunIntentStatus, "completed" | "failed" | "canceled">;
|
|
256
248
|
updatedAt: string;
|
|
257
249
|
attemptIds: string[];
|
|
258
250
|
outputPaths: string[];
|
|
259
251
|
}>;
|
|
260
252
|
};
|
|
261
|
-
export type WorkbenchRunnerCandidate = {
|
|
262
|
-
kind: "systemd-user";
|
|
263
|
-
timer: string;
|
|
264
|
-
service: string;
|
|
265
|
-
command?: string;
|
|
266
|
-
activeState?: string;
|
|
267
|
-
unitFileState?: string;
|
|
268
|
-
timerActiveState?: string;
|
|
269
|
-
timerUnitFileState?: string;
|
|
270
|
-
nextTrigger?: string;
|
|
271
|
-
lastTrigger?: string;
|
|
272
|
-
workbenchRoot?: string;
|
|
273
|
-
runsWorkbenchTick: boolean;
|
|
274
|
-
runsDeferredOnly: boolean;
|
|
275
|
-
matchesWorkbench: boolean;
|
|
276
|
-
};
|
|
277
|
-
export type WorkbenchRunnerInfo = {
|
|
278
|
-
kind: "systemd-user";
|
|
279
|
-
status: "active" | "inactive" | "missing" | "unsupported" | "unknown";
|
|
280
|
-
workbenchRoot: string;
|
|
281
|
-
selected?: WorkbenchRunnerCandidate;
|
|
282
|
-
candidates: WorkbenchRunnerCandidate[];
|
|
283
|
-
warning?: string;
|
|
284
|
-
error?: string;
|
|
285
|
-
};
|
|
286
|
-
export type WorkbenchDoctorOptions = {
|
|
287
|
-
includeRunner?: boolean;
|
|
288
|
-
runnerProbe?: (args: string[]) => Promise<string>;
|
|
289
|
-
};
|
|
290
253
|
export type WorkbenchDoctorInfo = {
|
|
291
254
|
mode: WorkbenchMode;
|
|
292
255
|
requestedMode: WorkbenchModeInput;
|
|
@@ -303,15 +266,13 @@ export type WorkbenchDoctorInfo = {
|
|
|
303
266
|
globalMemorySummaryExists: boolean;
|
|
304
267
|
workbenchMemorySummaryExists: boolean;
|
|
305
268
|
taskCount: number;
|
|
306
|
-
dueCount: number;
|
|
307
269
|
failingCount: number;
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
270
|
+
dispatchCount: number;
|
|
271
|
+
dispatchDueCount: number;
|
|
272
|
+
dispatchRunningCount: number;
|
|
273
|
+
dispatchFailedCount: number;
|
|
312
274
|
latestRun?: WorkbenchRunRecord;
|
|
313
|
-
|
|
314
|
-
runner?: WorkbenchRunnerInfo;
|
|
275
|
+
latestDispatchRun?: DispatchRunIntent;
|
|
315
276
|
surfaces: WorkbenchSurface[];
|
|
316
277
|
errors: string[];
|
|
317
278
|
};
|
|
@@ -319,6 +280,7 @@ export type ScaffoldActionsWorkbenchOptions = {
|
|
|
319
280
|
workbenchRoot?: string;
|
|
320
281
|
forgejo?: boolean;
|
|
321
282
|
github?: boolean;
|
|
283
|
+
runnerImage?: string | null;
|
|
322
284
|
overwrite?: boolean;
|
|
323
285
|
};
|
|
324
286
|
export type ScaffoldActionsWorkbenchResult = {
|
|
@@ -328,6 +290,7 @@ export type ScaffoldActionsWorkbenchResult = {
|
|
|
328
290
|
action: "created" | "updated" | "unchanged";
|
|
329
291
|
}>;
|
|
330
292
|
};
|
|
293
|
+
export declare const defaultActionsRunnerImage = "ghcr.io/peezy-tech/codex-toys-actions:latest";
|
|
331
294
|
export declare function discoverWorkbenchRoot(start?: string): Promise<string>;
|
|
332
295
|
export declare function resolveWorkbenchMode(input: WorkbenchModeInput | undefined, env?: Record<string, string | undefined>): {
|
|
333
296
|
requestedMode: WorkbenchModeInput;
|
|
@@ -340,17 +303,9 @@ export declare function createWorkbenchContext(options?: {
|
|
|
340
303
|
env?: Record<string, string | undefined>;
|
|
341
304
|
}): Promise<WorkbenchContext>;
|
|
342
305
|
export declare function loadWorkbenchConfig(context: WorkbenchContext): Promise<WorkbenchConfig>;
|
|
343
|
-
export declare function collectWorkbenchDoctorInfo(context: WorkbenchContext
|
|
306
|
+
export declare function collectWorkbenchDoctorInfo(context: WorkbenchContext): Promise<WorkbenchDoctorInfo>;
|
|
344
307
|
export declare function formatWorkbenchDoctorInfo(info: WorkbenchDoctorInfo): string;
|
|
345
308
|
export declare function scaffoldActionsWorkbench(options?: ScaffoldActionsWorkbenchOptions): Promise<ScaffoldActionsWorkbenchResult>;
|
|
346
|
-
export declare function tickWorkbench(context: WorkbenchContext, options: {
|
|
347
|
-
callToybox: (method: string, params: unknown) => Promise<unknown>;
|
|
348
|
-
workflowCwd?: string;
|
|
349
|
-
}): Promise<{
|
|
350
|
-
mode: WorkbenchMode;
|
|
351
|
-
due: string[];
|
|
352
|
-
runs: WorkbenchRunRecord[];
|
|
353
|
-
}>;
|
|
354
309
|
export declare function runWorkbenchTaskById(context: WorkbenchContext, taskId: string, options: {
|
|
355
310
|
callToybox: (method: string, params: unknown) => Promise<unknown>;
|
|
356
311
|
workflowCwd?: string;
|
|
@@ -365,25 +320,25 @@ export declare function commitActionsWorkbenchState(context: WorkbenchContext, o
|
|
|
365
320
|
paths: string[];
|
|
366
321
|
output?: string;
|
|
367
322
|
}>;
|
|
368
|
-
export declare function
|
|
369
|
-
export declare function
|
|
370
|
-
status?:
|
|
323
|
+
export declare function createDispatchRunIntent(context: WorkbenchContext, params: unknown): Promise<DispatchRunIntent>;
|
|
324
|
+
export declare function listDispatchRunIntents(context: WorkbenchContext, options?: {
|
|
325
|
+
status?: DispatchRunIntentStatus;
|
|
371
326
|
limit?: number;
|
|
372
|
-
}): Promise<
|
|
373
|
-
export declare function
|
|
327
|
+
}): Promise<DispatchRunIntent[]>;
|
|
328
|
+
export declare function readDispatchRun(context: WorkbenchContext, intentId: string, options?: {
|
|
374
329
|
includeOutput?: boolean;
|
|
375
|
-
}): Promise<
|
|
376
|
-
export declare function enqueuePromptQueueIntent(context: WorkbenchContext, params: unknown): Promise<
|
|
330
|
+
}): Promise<DispatchRunReadResult>;
|
|
331
|
+
export declare function enqueuePromptQueueIntent(context: WorkbenchContext, params: unknown): Promise<DispatchRunIntent>;
|
|
377
332
|
export declare function listPromptQueueIntents(context: WorkbenchContext, options?: {
|
|
378
|
-
status?:
|
|
333
|
+
status?: DispatchRunIntentStatus;
|
|
379
334
|
queue?: string;
|
|
380
335
|
limit?: number;
|
|
381
|
-
}): Promise<
|
|
336
|
+
}): Promise<DispatchRunIntent[]>;
|
|
382
337
|
export declare function collectPromptQueueRuns(context: WorkbenchContext, options?: {
|
|
383
338
|
cursor?: string;
|
|
384
339
|
queue?: string;
|
|
385
340
|
now?: Date;
|
|
386
|
-
}): Promise<
|
|
341
|
+
}): Promise<DispatchRunCollectResult>;
|
|
387
342
|
export declare function runDuePromptQueueIntents(context: WorkbenchContext, options: {
|
|
388
343
|
callToybox: (method: string, params: unknown) => Promise<unknown>;
|
|
389
344
|
workflowCwd?: string;
|
|
@@ -393,23 +348,23 @@ export declare function runDuePromptQueueIntents(context: WorkbenchContext, opti
|
|
|
393
348
|
queue?: string;
|
|
394
349
|
}): Promise<{
|
|
395
350
|
mode: WorkbenchMode;
|
|
396
|
-
executions:
|
|
351
|
+
executions: DispatchRunExecution[];
|
|
397
352
|
}>;
|
|
398
|
-
export declare function enqueueLocalHandoffIntent(context: WorkbenchContext, params: unknown): Promise<
|
|
353
|
+
export declare function enqueueLocalHandoffIntent(context: WorkbenchContext, params: unknown): Promise<DispatchRunIntent>;
|
|
399
354
|
export declare function listLocalHandoffIntents(context: WorkbenchContext, options?: {
|
|
400
|
-
status?:
|
|
355
|
+
status?: DispatchRunIntentStatus;
|
|
401
356
|
queue?: string;
|
|
402
357
|
targetHost?: string;
|
|
403
358
|
capabilities?: string[];
|
|
404
359
|
limit?: number;
|
|
405
|
-
}): Promise<
|
|
360
|
+
}): Promise<DispatchRunIntent[]>;
|
|
406
361
|
export declare function collectLocalHandoffRuns(context: WorkbenchContext, options?: {
|
|
407
362
|
cursor?: string;
|
|
408
363
|
queue?: string;
|
|
409
364
|
targetHost?: string;
|
|
410
365
|
capabilities?: string[];
|
|
411
366
|
now?: Date;
|
|
412
|
-
}): Promise<
|
|
367
|
+
}): Promise<DispatchRunCollectResult>;
|
|
413
368
|
export declare function drainLocalHandoffQueue(context: WorkbenchContext, options: {
|
|
414
369
|
callToybox: (method: string, params: unknown) => Promise<unknown>;
|
|
415
370
|
workflowCwd?: string;
|
|
@@ -422,34 +377,34 @@ export declare function drainLocalHandoffQueue(context: WorkbenchContext, option
|
|
|
422
377
|
action?: LocalHandoffDrainAction;
|
|
423
378
|
promptQueue?: string;
|
|
424
379
|
}): Promise<LocalHandoffDrainResult>;
|
|
425
|
-
export declare function
|
|
380
|
+
export declare function collectDispatchRuns(context: WorkbenchContext, options?: {
|
|
426
381
|
cursor?: string;
|
|
427
382
|
now?: Date;
|
|
428
383
|
defaultCursor?: string;
|
|
429
|
-
filter?: (intent:
|
|
430
|
-
}): Promise<
|
|
431
|
-
export declare function
|
|
432
|
-
export declare function
|
|
384
|
+
filter?: (intent: DispatchRunIntent) => boolean | Promise<boolean>;
|
|
385
|
+
}): Promise<DispatchRunCollectResult>;
|
|
386
|
+
export declare function cancelDispatchRunIntent(context: WorkbenchContext, intentId: string): Promise<DispatchRunIntent>;
|
|
387
|
+
export declare function retryDispatchRunIntent(context: WorkbenchContext, intentId: string, params?: unknown, options?: {
|
|
433
388
|
now?: Date;
|
|
434
|
-
}): Promise<
|
|
435
|
-
export declare function
|
|
389
|
+
}): Promise<DispatchRunRetryResult>;
|
|
390
|
+
export declare function runDueDispatchRuns(context: WorkbenchContext, options: {
|
|
436
391
|
callToybox: (method: string, params: unknown) => Promise<unknown>;
|
|
437
392
|
workflowCwd?: string;
|
|
438
393
|
now?: Date;
|
|
439
394
|
limit?: number;
|
|
440
395
|
leaseMs?: number;
|
|
441
|
-
filter?: (intent:
|
|
396
|
+
filter?: (intent: DispatchRunIntent) => boolean | Promise<boolean>;
|
|
442
397
|
includeLocalHandoffs?: boolean;
|
|
443
398
|
localHandoffMaterialize?: {
|
|
444
399
|
queue?: string;
|
|
445
400
|
};
|
|
446
401
|
}): Promise<{
|
|
447
402
|
mode: WorkbenchMode;
|
|
448
|
-
executions:
|
|
403
|
+
executions: DispatchRunExecution[];
|
|
449
404
|
}>;
|
|
450
|
-
export declare function
|
|
405
|
+
export declare function pruneDispatchRunHistory(context: WorkbenchContext, options: {
|
|
451
406
|
olderThanDays: number;
|
|
452
407
|
dryRun?: boolean;
|
|
453
408
|
now?: Date;
|
|
454
|
-
}): Promise<
|
|
409
|
+
}): Promise<DispatchRunPruneResult>;
|
|
455
410
|
//# sourceMappingURL=workbench-runtime.d.ts.map
|