@hearsay-tools/squawk 0.19.0-dev.8792 → 0.19.0-dev.8796
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/dist/automations/tool-adapter.d.ts +10 -1
- package/dist/automations/tool-adapter.js +2 -0
- package/dist/automations/tool-adapter.js.map +1 -1
- package/dist/automations/tool-session.d.ts +1 -2
- package/dist/automations/tool-session.js +4 -3
- package/dist/automations/tool-session.js.map +1 -1
- package/dist/automations/tools.d.ts +8 -8
- package/dist/boot.js +4 -0
- package/dist/boot.js.map +1 -1
- package/dist/built-in-http-routes.js +4 -12
- package/dist/built-in-http-routes.js.map +1 -1
- package/dist/built-in-server-hooks.d.ts +9 -0
- package/dist/built-in-server-hooks.js +24 -0
- package/dist/built-in-server-hooks.js.map +1 -0
- package/dist/ci-wait/controller.d.ts +7 -7
- package/dist/core/http-route-registry.d.ts +3 -5
- package/dist/core/http-route-registry.js.map +1 -1
- package/dist/core/server-hook-registry.d.ts +101 -0
- package/dist/core/server-hook-registry.js +56 -0
- package/dist/core/server-hook-registry.js.map +1 -0
- package/dist/plugin/api.d.ts +3 -0
- package/dist/plugin/api.js +10 -1
- package/dist/plugin/api.js.map +1 -1
- package/dist/plugin/cli.js +1 -1
- package/dist/plugin/cli.js.map +1 -1
- package/dist/plugin/index.d.ts +1 -0
- package/dist/plugin/index.js.map +1 -1
- package/dist/server/activity-routes.d.ts +23 -23
- package/dist/server/automation-log-retry.d.ts +4 -4
- package/dist/server/automations-routes.d.ts +926 -164
- package/dist/server/automations-routes.js +232 -48
- package/dist/server/automations-routes.js.map +1 -1
- package/dist/server/plugin-http-routes.d.ts +3 -2
- package/dist/server/plugin-http-routes.js +3 -3
- package/dist/server/plugin-http-routes.js.map +1 -1
- package/dist/server/plugin-server-hooks.d.ts +30 -0
- package/dist/server/plugin-server-hooks.js +160 -0
- package/dist/server/plugin-server-hooks.js.map +1 -0
- package/dist/server/project-context.d.ts +8 -7
- package/dist/server/project-context.js +17 -6
- package/dist/server/project-context.js.map +1 -1
- package/dist/server/provider-sign-in-routes.d.ts +2 -2
- package/dist/server/reports-api.d.ts +2 -2
- package/dist/server/runs-routes.d.ts +306 -303
- package/dist/server/runs-routes.js +2 -3
- package/dist/server/runs-routes.js.map +1 -1
- package/dist/server/server-deps.d.ts +1 -1
- package/dist/server/server-deps.js +4 -6
- package/dist/server/server-deps.js.map +1 -1
- package/dist/server/server.d.ts +97 -99
- package/dist/server/server.js +38 -13
- package/dist/server/server.js.map +1 -1
- package/dist/server/start-server.js +16 -150
- package/dist/server/start-server.js.map +1 -1
- package/dist/server/workspace-projects.d.ts +1 -1
- package/dist/workflows/run/compose.d.ts +2 -2
- package/dist/workflows/run/compose.js +3 -3
- package/dist/workflows/run/compose.js.map +1 -1
- package/dist/workflows/run/squawk-tools.d.ts +7 -7
- package/dist/workflows/run/squawk-tools.js +36 -16
- package/dist/workflows/run/squawk-tools.js.map +1 -1
- package/dist/workflows/run/types.d.ts +0 -8
- package/dist/workflows/run.d.ts +3 -3
- package/dist/workflows/run.js +1 -1
- package/dist/workflows/run.js.map +1 -1
- package/package.json +4 -4
- package/web/dist/assets/{accounts-section-VfDVFCAc.js → accounts-section-B3XlbE9-.js} +1 -1
- package/web/dist/assets/{activity-motion-Ct_mHjNu.js → activity-motion-DtSeos5G.js} +1 -1
- package/web/dist/assets/{activity-route-Bg85PV_B.js → activity-route-DwLbg5TU.js} +1 -1
- package/web/dist/assets/{agent-config-section-ZgfxeM2S.js → agent-config-section-TV__fszM.js} +1 -1
- package/web/dist/assets/{agent-defaults-section-RoU-YE-M.js → agent-defaults-section-CoaKPbd7.js} +1 -1
- package/web/dist/assets/{appearance-BMA59frf.js → appearance-BSogGq4y.js} +1 -1
- package/web/dist/assets/{automations-route-zKWUCENr.js → automations-route-BO4qUbj8.js} +1 -1
- package/web/dist/assets/{commit-list-B2Syu_sP.js → commit-list-CPCMhqsH.js} +1 -1
- package/web/dist/assets/diff-controls-DT8_nQ2J.js +1 -0
- package/web/dist/assets/{diff-CbDkyllB.js → diff-eTwHyNBm.js} +2 -2
- package/web/dist/assets/{diff-view-6332HPUt.js → diff-view-BnO_U5xn.js} +2 -2
- package/web/dist/assets/{file-preview-DYjNIXfw.js → file-preview-L0_fbkUZ.js} +1 -1
- package/web/dist/assets/git-toolbar-ywLSmnxR.js +1 -0
- package/web/dist/assets/{github-6jYLwVCN.js → github-Bd3i_-h6.js} +1 -1
- package/web/dist/assets/{global-activity-route-CJRmV6T5.js → global-activity-route-BbgDC3wz.js} +1 -1
- package/web/dist/assets/{index-BkOgEePa.js → index-8eoz1i7-.js} +4 -4
- package/web/dist/assets/{index-CxWlNbC2.css → index-nVjwJYl4.css} +1 -1
- package/web/dist/assets/{markdown-BtKpe0gr.js → markdown-Dn1C5VnY.js} +1 -1
- package/web/dist/assets/{notifications-section-D3FLXeYS.js → notifications-section-3xWRDUrB.js} +1 -1
- package/web/dist/assets/{preview-pane-connected-CkKFkWuO.js → preview-pane-connected-BdxTm5Ky.js} +1 -1
- package/web/dist/assets/{projects-section-Cp4EHS87.js → projects-section-Brds9YmD.js} +1 -1
- package/web/dist/assets/{prompt-templates-section-CF9su7eR.js → prompt-templates-section-CAuTp8gl.js} +1 -1
- package/web/dist/assets/{remote-settings-notice-B8deEA4-.js → remote-settings-notice-CxRBhjoN.js} +1 -1
- package/web/dist/assets/repo-git-CGdMJ36u.js +1 -0
- package/web/dist/assets/{report-reader-Ds7BH5sH.js → report-reader-BQyJblDp.js} +1 -1
- package/web/dist/assets/{reports-B0MrxVf2.js → reports-CPpFm0jn.js} +1 -1
- package/web/dist/assets/{resources-section-CBYPFmdA.js → resources-section-Cbtu9i_k.js} +1 -1
- package/web/dist/assets/{review-panel-N2jeoOOD.js → review-panel-DuvFn5VX.js} +1 -1
- package/web/dist/assets/{run-header-DSy2GQFm.js → run-header-CP_2QY0H.js} +1 -1
- package/web/dist/assets/{select-ytoWwZqB.js → select-D5UnnIUL.js} +1 -1
- package/web/dist/assets/{session-context-section-BOyBtiqG.js → session-context-section-CFw0aFoC.js} +1 -1
- package/web/dist/assets/{settings-agent-picker-B9Gq4Nm3.js → settings-agent-picker-DIEyNQVg.js} +1 -1
- package/web/dist/assets/{settings-shell-_ptjb0qT.js → settings-shell-DUvwIPgV.js} +1 -1
- package/web/dist/assets/{sidebar-section-DXKjvjNm.js → sidebar-section-CET3Eico.js} +1 -1
- package/web/dist/assets/{skills-1FJ2I0ju.js → skills-oxTqCu3h.js} +1 -1
- package/web/dist/assets/{task-changes-BBKaLqDn.js → task-changes-TvjFctCc.js} +1 -1
- package/web/dist/assets/{task-commits-CFaex9iK.js → task-commits-DEsRCchM.js} +1 -1
- package/web/dist/assets/{task-file-scope-7uNPfJ10.js → task-file-scope-CkPO86PU.js} +1 -1
- package/web/dist/assets/{task-files-rq6JF4NC.js → task-files-BuMkWb7X.js} +1 -1
- package/web/dist/assets/{task-github-item-DE5b3Rpb.js → task-github-item-wUJ6pMdV.js} +1 -1
- package/web/dist/assets/{task-thread-Da_Qv06p.js → task-thread-CS88T_7I.js} +1 -1
- package/web/dist/assets/{thread-state-D3BvRp9t.js → thread-state-DulSg7h8.js} +1 -1
- package/web/dist/assets/{use-hand-to-agent-state-CM557c15.js → use-hand-to-agent-state-8ZF3Wr1m.js} +1 -1
- package/web/dist/assets/{workflows-A2NbJ4de.js → workflows-D0HHVBzP.js} +1 -1
- package/web/dist/assets/{workspace-tools-B98BnmHO.js → workspace-tools-C8GYSy1Y.js} +1 -1
- package/web/dist/assets/{worktrees-section-1m7m8Nqu.js → worktrees-section-Ba0hS8Ls.js} +1 -1
- package/web/dist/index.html +2 -2
- package/web/dist/assets/diff-controls-CnHeE2_5.js +0 -1
- package/web/dist/assets/git-toolbar-BPfOquyv.js +0 -1
- package/web/dist/assets/repo-git-BhLeIKYv.js +0 -1
|
@@ -1,19 +1,27 @@
|
|
|
1
|
-
import
|
|
2
|
-
import type
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import type {
|
|
6
|
-
|
|
1
|
+
import { automationCreateSchema, automationUpdateSchema } from '../contract/index.js';
|
|
2
|
+
import { type AutomationServiceProject } from '../automations/service.ts';
|
|
3
|
+
import { AutomationStore } from '../automations/store.ts';
|
|
4
|
+
import type { ServerPluginContext, ServerProjectHandle, ServerStartContext } from '../core/server-hook-registry.ts';
|
|
5
|
+
import type { ProjectApiEnv } from './server-types.ts';
|
|
6
|
+
/** Per-project plugin state key for an explicitly injected `AutomationStore` (tests). */
|
|
7
|
+
export declare const AUTOMATIONS_STORE_STATE_KEY = "automations:store";
|
|
8
|
+
/** Optional boot-project state key for test mutation observers (`() => void`). */
|
|
9
|
+
export declare const AUTOMATIONS_CHANGED_STATE_KEY = "automations:changed";
|
|
10
|
+
export interface AutomationsServerRuntime {
|
|
11
|
+
readonly bundles: ReturnType<typeof createAutomationsRouteBundles>;
|
|
12
|
+
onProjectContextBuilt(project: ServerProjectHandle): void;
|
|
13
|
+
onProjectContextDisposed(project: ServerProjectHandle): void;
|
|
14
|
+
onServerStart(start: ServerStartContext): void;
|
|
15
|
+
onServerStop(): void;
|
|
16
|
+
runSearchLabels(project: ServerProjectHandle): ReadonlyMap<string, string> | undefined;
|
|
17
|
+
}
|
|
18
|
+
/** Return the single `AutomationsServerRuntime` owned by `context` (created lazily once per app). */
|
|
19
|
+
export declare function getAutomationsServerRuntime(context: ServerPluginContext): AutomationsServerRuntime;
|
|
7
20
|
export interface AutomationsRouteDeps {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
providerStatus: ProviderStatusBundle['providerStatus'];
|
|
12
|
-
bootContext: ProjectContext;
|
|
13
|
-
contexts: ProjectContexts;
|
|
14
|
-
workspaceEvents: WorkspaceEventBus;
|
|
21
|
+
context: ServerPluginContext;
|
|
22
|
+
storeFor: (project: ServerProjectHandle) => AutomationStore;
|
|
23
|
+
asAutomationProject: (project: ServerProjectHandle) => AutomationServiceProject;
|
|
15
24
|
automationsChanged: () => void;
|
|
16
|
-
resolveProjectForge: (info: Awaited<ReturnType<typeof getRepoInfo>>) => ReturnType<typeof resolveForge>;
|
|
17
25
|
}
|
|
18
26
|
export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps): {
|
|
19
27
|
automationsRoutes: import("hono/hono-base").HonoBase<ProjectApiEnv, {
|
|
@@ -212,18 +220,20 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
|
|
|
212
220
|
"/automations": {
|
|
213
221
|
$post: {
|
|
214
222
|
output: {
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
223
|
+
error: string;
|
|
224
|
+
};
|
|
225
|
+
outputFormat: "json";
|
|
226
|
+
status: 400 | 404 | 409;
|
|
227
|
+
input: {
|
|
228
|
+
json: {
|
|
219
229
|
name: string;
|
|
220
230
|
description?: string | undefined;
|
|
221
|
-
enabled
|
|
222
|
-
kind
|
|
231
|
+
enabled?: boolean | undefined;
|
|
232
|
+
kind?: "github" | "schedule" | undefined;
|
|
223
233
|
events?: ("issue.labeled" | "issue.opened" | "issue.unlabeled" | "pull_request.opened")[] | undefined;
|
|
224
234
|
intervalSeconds?: number | undefined;
|
|
225
235
|
filters?: {
|
|
226
|
-
[x: string]:
|
|
236
|
+
[x: string]: unknown;
|
|
227
237
|
includeExisting?: boolean | undefined;
|
|
228
238
|
requireCurrentLabels?: boolean | undefined;
|
|
229
239
|
authors?: string[] | undefined;
|
|
@@ -232,11 +242,10 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
|
|
|
232
242
|
anyLabels?: string[] | undefined;
|
|
233
243
|
excludeLabels?: string[] | undefined;
|
|
234
244
|
changedLabels?: string[] | undefined;
|
|
235
|
-
lookbackDays
|
|
236
|
-
maxRecords
|
|
245
|
+
lookbackDays?: number | undefined;
|
|
246
|
+
maxRecords?: number | undefined;
|
|
237
247
|
} | undefined;
|
|
238
248
|
schedule?: {
|
|
239
|
-
[x: string]: import("hono/utils/types").JSONValue;
|
|
240
249
|
type: "daily" | "hours" | "once" | "weekdays" | "weekly";
|
|
241
250
|
hour?: number | undefined;
|
|
242
251
|
minute?: number | undefined;
|
|
@@ -247,7 +256,6 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
|
|
|
247
256
|
latestStartMinutes?: number | undefined;
|
|
248
257
|
} | undefined;
|
|
249
258
|
task: {
|
|
250
|
-
[x: string]: import("hono/utils/types").JSONValue;
|
|
251
259
|
archiveWhenDone?: boolean | undefined;
|
|
252
260
|
autoMergePr?: boolean | undefined;
|
|
253
261
|
allowWorkers?: boolean | undefined;
|
|
@@ -268,53 +276,37 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
|
|
|
268
276
|
bashAllowlist?: string[] | undefined;
|
|
269
277
|
kind?: "plugin" | undefined;
|
|
270
278
|
pluginKind?: string | undefined;
|
|
271
|
-
config?:
|
|
272
|
-
[x: string]: import("hono/utils/types").JSONValue;
|
|
273
|
-
} | undefined;
|
|
279
|
+
config?: Record<string, unknown> | undefined;
|
|
274
280
|
command?: string | undefined;
|
|
275
281
|
onFail?: {
|
|
276
282
|
retry: string;
|
|
277
|
-
max
|
|
283
|
+
max?: number | undefined;
|
|
278
284
|
} | undefined;
|
|
279
285
|
}[] | undefined;
|
|
280
286
|
runner?: string | undefined;
|
|
281
287
|
model?: string | undefined;
|
|
282
288
|
effort?: string | undefined;
|
|
283
|
-
variants?: 1 | 2 | 3 | undefined;
|
|
284
289
|
worktree?: boolean | undefined;
|
|
285
290
|
autonomous?: boolean | undefined;
|
|
286
291
|
systemPrompt?: string | undefined;
|
|
287
292
|
};
|
|
288
|
-
|
|
289
|
-
[x: string]: import("hono/utils/types").JSONValue;
|
|
290
|
-
at: string;
|
|
291
|
-
outcome: "cancelled" | "launched";
|
|
292
|
-
runId?: string | undefined;
|
|
293
|
-
receiptId?: string | undefined;
|
|
294
|
-
trigger?: "late" | "manual" | "retry" | "schedule" | undefined;
|
|
295
|
-
} | undefined;
|
|
296
|
-
createdAt: string;
|
|
297
|
-
updatedAt: string;
|
|
293
|
+
enable?: boolean | undefined;
|
|
298
294
|
};
|
|
299
|
-
once?: {
|
|
300
|
-
dueAt: string;
|
|
301
|
-
timeZone: string;
|
|
302
|
-
resolvedInstant: string;
|
|
303
|
-
note: string;
|
|
304
|
-
} | undefined;
|
|
305
295
|
};
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
296
|
+
} | {
|
|
297
|
+
output: {
|
|
298
|
+
automation: {
|
|
299
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
300
|
+
id: string;
|
|
301
|
+
revision: number;
|
|
310
302
|
name: string;
|
|
311
303
|
description?: string | undefined;
|
|
312
|
-
enabled
|
|
313
|
-
kind
|
|
304
|
+
enabled: boolean;
|
|
305
|
+
kind: "github" | "schedule";
|
|
314
306
|
events?: ("issue.labeled" | "issue.opened" | "issue.unlabeled" | "pull_request.opened")[] | undefined;
|
|
315
307
|
intervalSeconds?: number | undefined;
|
|
316
308
|
filters?: {
|
|
317
|
-
[x: string]:
|
|
309
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
318
310
|
includeExisting?: boolean | undefined;
|
|
319
311
|
requireCurrentLabels?: boolean | undefined;
|
|
320
312
|
authors?: string[] | undefined;
|
|
@@ -323,10 +315,11 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
|
|
|
323
315
|
anyLabels?: string[] | undefined;
|
|
324
316
|
excludeLabels?: string[] | undefined;
|
|
325
317
|
changedLabels?: string[] | undefined;
|
|
326
|
-
lookbackDays
|
|
327
|
-
maxRecords
|
|
318
|
+
lookbackDays: number;
|
|
319
|
+
maxRecords: number;
|
|
328
320
|
} | undefined;
|
|
329
321
|
schedule?: {
|
|
322
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
330
323
|
type: "daily" | "hours" | "once" | "weekdays" | "weekly";
|
|
331
324
|
hour?: number | undefined;
|
|
332
325
|
minute?: number | undefined;
|
|
@@ -337,6 +330,7 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
|
|
|
337
330
|
latestStartMinutes?: number | undefined;
|
|
338
331
|
} | undefined;
|
|
339
332
|
task: {
|
|
333
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
340
334
|
archiveWhenDone?: boolean | undefined;
|
|
341
335
|
autoMergePr?: boolean | undefined;
|
|
342
336
|
allowWorkers?: boolean | undefined;
|
|
@@ -357,29 +351,43 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
|
|
|
357
351
|
bashAllowlist?: string[] | undefined;
|
|
358
352
|
kind?: "plugin" | undefined;
|
|
359
353
|
pluginKind?: string | undefined;
|
|
360
|
-
config?:
|
|
354
|
+
config?: {
|
|
355
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
356
|
+
} | undefined;
|
|
361
357
|
command?: string | undefined;
|
|
362
358
|
onFail?: {
|
|
363
359
|
retry: string;
|
|
364
|
-
max
|
|
360
|
+
max: number;
|
|
365
361
|
} | undefined;
|
|
366
362
|
}[] | undefined;
|
|
367
363
|
runner?: string | undefined;
|
|
368
364
|
model?: string | undefined;
|
|
369
365
|
effort?: string | undefined;
|
|
366
|
+
variants?: 1 | 2 | 3 | undefined;
|
|
370
367
|
worktree?: boolean | undefined;
|
|
371
368
|
autonomous?: boolean | undefined;
|
|
372
369
|
systemPrompt?: string | undefined;
|
|
373
370
|
};
|
|
374
|
-
|
|
371
|
+
archived?: {
|
|
372
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
373
|
+
at: string;
|
|
374
|
+
outcome: "cancelled" | "launched";
|
|
375
|
+
runId?: string | undefined;
|
|
376
|
+
receiptId?: string | undefined;
|
|
377
|
+
trigger?: "late" | "manual" | "retry" | "schedule" | undefined;
|
|
378
|
+
} | undefined;
|
|
379
|
+
createdAt: string;
|
|
380
|
+
updatedAt: string;
|
|
375
381
|
};
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
382
|
+
once?: {
|
|
383
|
+
dueAt: string;
|
|
384
|
+
timeZone: string;
|
|
385
|
+
resolvedInstant: string;
|
|
386
|
+
note: string;
|
|
387
|
+
} | undefined;
|
|
380
388
|
};
|
|
381
389
|
outputFormat: "json";
|
|
382
|
-
status:
|
|
390
|
+
status: 201;
|
|
383
391
|
input: {
|
|
384
392
|
json: {
|
|
385
393
|
name: string;
|
|
@@ -454,6 +462,17 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
|
|
|
454
462
|
} & {
|
|
455
463
|
"/automations/:id": {
|
|
456
464
|
$get: {
|
|
465
|
+
output: {
|
|
466
|
+
error: string;
|
|
467
|
+
};
|
|
468
|
+
outputFormat: "json";
|
|
469
|
+
status: 400 | 404 | 409;
|
|
470
|
+
input: {
|
|
471
|
+
param: {
|
|
472
|
+
id: string;
|
|
473
|
+
};
|
|
474
|
+
};
|
|
475
|
+
} | {
|
|
457
476
|
output: {
|
|
458
477
|
automation: {
|
|
459
478
|
[x: string]: import("hono/utils/types").JSONValue;
|
|
@@ -616,35 +635,26 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
|
|
|
616
635
|
id: string;
|
|
617
636
|
};
|
|
618
637
|
};
|
|
619
|
-
} | {
|
|
620
|
-
output: {
|
|
621
|
-
error: string;
|
|
622
|
-
};
|
|
623
|
-
outputFormat: "json";
|
|
624
|
-
status: 400 | 404 | 409;
|
|
625
|
-
input: {
|
|
626
|
-
param: {
|
|
627
|
-
id: string;
|
|
628
|
-
};
|
|
629
|
-
};
|
|
630
638
|
};
|
|
631
639
|
};
|
|
632
640
|
} & {
|
|
633
641
|
"/automations/:id": {
|
|
634
642
|
$put: {
|
|
635
643
|
output: {
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
644
|
+
error: string;
|
|
645
|
+
};
|
|
646
|
+
outputFormat: "json";
|
|
647
|
+
status: 400 | 404 | 409;
|
|
648
|
+
input: {
|
|
649
|
+
json: {
|
|
640
650
|
name: string;
|
|
641
651
|
description?: string | undefined;
|
|
642
|
-
enabled
|
|
643
|
-
kind
|
|
652
|
+
enabled?: boolean | undefined;
|
|
653
|
+
kind?: "github" | "schedule" | undefined;
|
|
644
654
|
events?: ("issue.labeled" | "issue.opened" | "issue.unlabeled" | "pull_request.opened")[] | undefined;
|
|
645
655
|
intervalSeconds?: number | undefined;
|
|
646
656
|
filters?: {
|
|
647
|
-
[x: string]:
|
|
657
|
+
[x: string]: unknown;
|
|
648
658
|
includeExisting?: boolean | undefined;
|
|
649
659
|
requireCurrentLabels?: boolean | undefined;
|
|
650
660
|
authors?: string[] | undefined;
|
|
@@ -653,11 +663,10 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
|
|
|
653
663
|
anyLabels?: string[] | undefined;
|
|
654
664
|
excludeLabels?: string[] | undefined;
|
|
655
665
|
changedLabels?: string[] | undefined;
|
|
656
|
-
lookbackDays
|
|
657
|
-
maxRecords
|
|
666
|
+
lookbackDays?: number | undefined;
|
|
667
|
+
maxRecords?: number | undefined;
|
|
658
668
|
} | undefined;
|
|
659
669
|
schedule?: {
|
|
660
|
-
[x: string]: import("hono/utils/types").JSONValue;
|
|
661
670
|
type: "daily" | "hours" | "once" | "weekdays" | "weekly";
|
|
662
671
|
hour?: number | undefined;
|
|
663
672
|
minute?: number | undefined;
|
|
@@ -668,7 +677,6 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
|
|
|
668
677
|
latestStartMinutes?: number | undefined;
|
|
669
678
|
} | undefined;
|
|
670
679
|
task: {
|
|
671
|
-
[x: string]: import("hono/utils/types").JSONValue;
|
|
672
680
|
archiveWhenDone?: boolean | undefined;
|
|
673
681
|
autoMergePr?: boolean | undefined;
|
|
674
682
|
allowWorkers?: boolean | undefined;
|
|
@@ -689,47 +697,41 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
|
|
|
689
697
|
bashAllowlist?: string[] | undefined;
|
|
690
698
|
kind?: "plugin" | undefined;
|
|
691
699
|
pluginKind?: string | undefined;
|
|
692
|
-
config?:
|
|
693
|
-
[x: string]: import("hono/utils/types").JSONValue;
|
|
694
|
-
} | undefined;
|
|
700
|
+
config?: Record<string, unknown> | undefined;
|
|
695
701
|
command?: string | undefined;
|
|
696
702
|
onFail?: {
|
|
697
703
|
retry: string;
|
|
698
|
-
max
|
|
704
|
+
max?: number | undefined;
|
|
699
705
|
} | undefined;
|
|
700
706
|
}[] | undefined;
|
|
701
707
|
runner?: string | undefined;
|
|
702
708
|
model?: string | undefined;
|
|
703
709
|
effort?: string | undefined;
|
|
704
|
-
variants?: 1 | 2 | 3 | undefined;
|
|
705
710
|
worktree?: boolean | undefined;
|
|
706
711
|
autonomous?: boolean | undefined;
|
|
707
712
|
systemPrompt?: string | undefined;
|
|
708
713
|
};
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
receiptId?: string | undefined;
|
|
715
|
-
trigger?: "late" | "manual" | "retry" | "schedule" | undefined;
|
|
716
|
-
} | undefined;
|
|
717
|
-
createdAt: string;
|
|
718
|
-
updatedAt: string;
|
|
714
|
+
expectedRevision: number;
|
|
715
|
+
};
|
|
716
|
+
} & {
|
|
717
|
+
param: {
|
|
718
|
+
id: string;
|
|
719
719
|
};
|
|
720
720
|
};
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
721
|
+
} | {
|
|
722
|
+
output: {
|
|
723
|
+
automation: {
|
|
724
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
725
|
+
id: string;
|
|
726
|
+
revision: number;
|
|
725
727
|
name: string;
|
|
726
728
|
description?: string | undefined;
|
|
727
|
-
enabled
|
|
728
|
-
kind
|
|
729
|
+
enabled: boolean;
|
|
730
|
+
kind: "github" | "schedule";
|
|
729
731
|
events?: ("issue.labeled" | "issue.opened" | "issue.unlabeled" | "pull_request.opened")[] | undefined;
|
|
730
732
|
intervalSeconds?: number | undefined;
|
|
731
733
|
filters?: {
|
|
732
|
-
[x: string]:
|
|
734
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
733
735
|
includeExisting?: boolean | undefined;
|
|
734
736
|
requireCurrentLabels?: boolean | undefined;
|
|
735
737
|
authors?: string[] | undefined;
|
|
@@ -738,10 +740,11 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
|
|
|
738
740
|
anyLabels?: string[] | undefined;
|
|
739
741
|
excludeLabels?: string[] | undefined;
|
|
740
742
|
changedLabels?: string[] | undefined;
|
|
741
|
-
lookbackDays
|
|
742
|
-
maxRecords
|
|
743
|
+
lookbackDays: number;
|
|
744
|
+
maxRecords: number;
|
|
743
745
|
} | undefined;
|
|
744
746
|
schedule?: {
|
|
747
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
745
748
|
type: "daily" | "hours" | "once" | "weekdays" | "weekly";
|
|
746
749
|
hour?: number | undefined;
|
|
747
750
|
minute?: number | undefined;
|
|
@@ -752,6 +755,7 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
|
|
|
752
755
|
latestStartMinutes?: number | undefined;
|
|
753
756
|
} | undefined;
|
|
754
757
|
task: {
|
|
758
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
755
759
|
archiveWhenDone?: boolean | undefined;
|
|
756
760
|
autoMergePr?: boolean | undefined;
|
|
757
761
|
allowWorkers?: boolean | undefined;
|
|
@@ -772,33 +776,37 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
|
|
|
772
776
|
bashAllowlist?: string[] | undefined;
|
|
773
777
|
kind?: "plugin" | undefined;
|
|
774
778
|
pluginKind?: string | undefined;
|
|
775
|
-
config?:
|
|
779
|
+
config?: {
|
|
780
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
781
|
+
} | undefined;
|
|
776
782
|
command?: string | undefined;
|
|
777
783
|
onFail?: {
|
|
778
784
|
retry: string;
|
|
779
|
-
max
|
|
785
|
+
max: number;
|
|
780
786
|
} | undefined;
|
|
781
787
|
}[] | undefined;
|
|
782
788
|
runner?: string | undefined;
|
|
783
789
|
model?: string | undefined;
|
|
784
790
|
effort?: string | undefined;
|
|
791
|
+
variants?: 1 | 2 | 3 | undefined;
|
|
785
792
|
worktree?: boolean | undefined;
|
|
786
793
|
autonomous?: boolean | undefined;
|
|
787
794
|
systemPrompt?: string | undefined;
|
|
788
795
|
};
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
796
|
+
archived?: {
|
|
797
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
798
|
+
at: string;
|
|
799
|
+
outcome: "cancelled" | "launched";
|
|
800
|
+
runId?: string | undefined;
|
|
801
|
+
receiptId?: string | undefined;
|
|
802
|
+
trigger?: "late" | "manual" | "retry" | "schedule" | undefined;
|
|
803
|
+
} | undefined;
|
|
804
|
+
createdAt: string;
|
|
805
|
+
updatedAt: string;
|
|
794
806
|
};
|
|
795
807
|
};
|
|
796
|
-
} | {
|
|
797
|
-
output: {
|
|
798
|
-
error: string;
|
|
799
|
-
};
|
|
800
808
|
outputFormat: "json";
|
|
801
|
-
status:
|
|
809
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
802
810
|
input: {
|
|
803
811
|
json: {
|
|
804
812
|
name: string;
|
|
@@ -901,6 +909,17 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
|
|
|
901
909
|
} & {
|
|
902
910
|
"/automations/:id/enable": {
|
|
903
911
|
$post: {
|
|
912
|
+
output: {
|
|
913
|
+
error: string;
|
|
914
|
+
};
|
|
915
|
+
outputFormat: "json";
|
|
916
|
+
status: 400 | 404 | 409;
|
|
917
|
+
input: {
|
|
918
|
+
param: {
|
|
919
|
+
id: string;
|
|
920
|
+
};
|
|
921
|
+
};
|
|
922
|
+
} | {
|
|
904
923
|
output: {
|
|
905
924
|
automation: {
|
|
906
925
|
[x: string]: import("hono/utils/types").JSONValue;
|
|
@@ -994,7 +1013,11 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
|
|
|
994
1013
|
id: string;
|
|
995
1014
|
};
|
|
996
1015
|
};
|
|
997
|
-
}
|
|
1016
|
+
};
|
|
1017
|
+
};
|
|
1018
|
+
} & {
|
|
1019
|
+
"/automations/:id/pause": {
|
|
1020
|
+
$post: {
|
|
998
1021
|
output: {
|
|
999
1022
|
error: string;
|
|
1000
1023
|
};
|
|
@@ -1005,11 +1028,7 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
|
|
|
1005
1028
|
id: string;
|
|
1006
1029
|
};
|
|
1007
1030
|
};
|
|
1008
|
-
}
|
|
1009
|
-
};
|
|
1010
|
-
} & {
|
|
1011
|
-
"/automations/:id/pause": {
|
|
1012
|
-
$post: {
|
|
1031
|
+
} | {
|
|
1013
1032
|
output: {
|
|
1014
1033
|
automation: {
|
|
1015
1034
|
[x: string]: import("hono/utils/types").JSONValue;
|
|
@@ -1103,7 +1122,11 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
|
|
|
1103
1122
|
id: string;
|
|
1104
1123
|
};
|
|
1105
1124
|
};
|
|
1106
|
-
}
|
|
1125
|
+
};
|
|
1126
|
+
};
|
|
1127
|
+
} & {
|
|
1128
|
+
"/automations/:id/cancel": {
|
|
1129
|
+
$post: {
|
|
1107
1130
|
output: {
|
|
1108
1131
|
error: string;
|
|
1109
1132
|
};
|
|
@@ -1114,11 +1137,7 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
|
|
|
1114
1137
|
id: string;
|
|
1115
1138
|
};
|
|
1116
1139
|
};
|
|
1117
|
-
}
|
|
1118
|
-
};
|
|
1119
|
-
} & {
|
|
1120
|
-
"/automations/:id/cancel": {
|
|
1121
|
-
$post: {
|
|
1140
|
+
} | {
|
|
1122
1141
|
output: {
|
|
1123
1142
|
automation: {
|
|
1124
1143
|
[x: string]: import("hono/utils/types").JSONValue;
|
|
@@ -1212,27 +1231,16 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
|
|
|
1212
1231
|
id: string;
|
|
1213
1232
|
};
|
|
1214
1233
|
};
|
|
1215
|
-
} | {
|
|
1216
|
-
output: {
|
|
1217
|
-
error: string;
|
|
1218
|
-
};
|
|
1219
|
-
outputFormat: "json";
|
|
1220
|
-
status: 400 | 404 | 409;
|
|
1221
|
-
input: {
|
|
1222
|
-
param: {
|
|
1223
|
-
id: string;
|
|
1224
|
-
};
|
|
1225
|
-
};
|
|
1226
1234
|
};
|
|
1227
1235
|
};
|
|
1228
1236
|
} & {
|
|
1229
1237
|
"/automations/:id/run": {
|
|
1230
1238
|
$post: {
|
|
1231
1239
|
output: {
|
|
1232
|
-
|
|
1240
|
+
error: string;
|
|
1233
1241
|
};
|
|
1234
1242
|
outputFormat: "json";
|
|
1235
|
-
status:
|
|
1243
|
+
status: 400 | 404 | 409;
|
|
1236
1244
|
input: {
|
|
1237
1245
|
param: {
|
|
1238
1246
|
id: string;
|
|
@@ -1240,10 +1248,10 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
|
|
|
1240
1248
|
};
|
|
1241
1249
|
} | {
|
|
1242
1250
|
output: {
|
|
1243
|
-
|
|
1251
|
+
runId: string;
|
|
1244
1252
|
};
|
|
1245
1253
|
outputFormat: "json";
|
|
1246
|
-
status:
|
|
1254
|
+
status: 202;
|
|
1247
1255
|
input: {
|
|
1248
1256
|
param: {
|
|
1249
1257
|
id: string;
|
|
@@ -1255,10 +1263,10 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
|
|
|
1255
1263
|
"/automations/:id/check": {
|
|
1256
1264
|
$post: {
|
|
1257
1265
|
output: {
|
|
1258
|
-
|
|
1266
|
+
error: string;
|
|
1259
1267
|
};
|
|
1260
1268
|
outputFormat: "json";
|
|
1261
|
-
status:
|
|
1269
|
+
status: 404;
|
|
1262
1270
|
input: {
|
|
1263
1271
|
json: {
|
|
1264
1272
|
mode: "execute" | "preview";
|
|
@@ -1273,7 +1281,7 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
|
|
|
1273
1281
|
error: string;
|
|
1274
1282
|
};
|
|
1275
1283
|
outputFormat: "json";
|
|
1276
|
-
status:
|
|
1284
|
+
status: 409;
|
|
1277
1285
|
input: {
|
|
1278
1286
|
json: {
|
|
1279
1287
|
mode: "execute" | "preview";
|
|
@@ -1285,10 +1293,10 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
|
|
|
1285
1293
|
};
|
|
1286
1294
|
} | {
|
|
1287
1295
|
output: {
|
|
1288
|
-
|
|
1296
|
+
checkId: string;
|
|
1289
1297
|
};
|
|
1290
1298
|
outputFormat: "json";
|
|
1291
|
-
status:
|
|
1299
|
+
status: 202;
|
|
1292
1300
|
input: {
|
|
1293
1301
|
json: {
|
|
1294
1302
|
mode: "execute" | "preview";
|
|
@@ -1400,17 +1408,6 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
|
|
|
1400
1408
|
automationChecksRoutes: import("hono/hono-base").HonoBase<{}, {
|
|
1401
1409
|
"/automation-checks/:checkId": {
|
|
1402
1410
|
$get: {
|
|
1403
|
-
output: {
|
|
1404
|
-
error: string;
|
|
1405
|
-
};
|
|
1406
|
-
outputFormat: "json";
|
|
1407
|
-
status: 404;
|
|
1408
|
-
input: {
|
|
1409
|
-
param: {
|
|
1410
|
-
checkId: string;
|
|
1411
|
-
};
|
|
1412
|
-
};
|
|
1413
|
-
} | {
|
|
1414
1411
|
output: {
|
|
1415
1412
|
id: string;
|
|
1416
1413
|
automationId: string;
|
|
@@ -1429,7 +1426,772 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
|
|
|
1429
1426
|
checkId: string;
|
|
1430
1427
|
};
|
|
1431
1428
|
};
|
|
1429
|
+
} | {
|
|
1430
|
+
output: {
|
|
1431
|
+
error: string;
|
|
1432
|
+
};
|
|
1433
|
+
outputFormat: "json";
|
|
1434
|
+
status: 404;
|
|
1435
|
+
input: {
|
|
1436
|
+
param: {
|
|
1437
|
+
checkId: string;
|
|
1438
|
+
};
|
|
1439
|
+
};
|
|
1432
1440
|
};
|
|
1433
1441
|
};
|
|
1434
1442
|
}, "/", "/automation-checks/:checkId">;
|
|
1443
|
+
automationService: {
|
|
1444
|
+
list(project: AutomationServiceProject, query: import('../contract/index.js').AutomationListQuery): Promise<{
|
|
1445
|
+
available: boolean;
|
|
1446
|
+
reason?: string;
|
|
1447
|
+
timeZone: string;
|
|
1448
|
+
scheduler: {
|
|
1449
|
+
state: "idle" | "scheduled";
|
|
1450
|
+
nextDue?: string;
|
|
1451
|
+
};
|
|
1452
|
+
automations: {
|
|
1453
|
+
id: string;
|
|
1454
|
+
revision: number;
|
|
1455
|
+
name: string;
|
|
1456
|
+
description?: string | undefined;
|
|
1457
|
+
enabled: boolean;
|
|
1458
|
+
kind: "github" | "schedule";
|
|
1459
|
+
events?: ("issue.labeled" | "issue.opened" | "issue.unlabeled" | "pull_request.opened")[] | undefined;
|
|
1460
|
+
intervalSeconds?: number | undefined;
|
|
1461
|
+
filters?: {
|
|
1462
|
+
[x: string]: unknown;
|
|
1463
|
+
includeExisting?: boolean | undefined;
|
|
1464
|
+
requireCurrentLabels?: boolean | undefined;
|
|
1465
|
+
authors?: string[] | undefined;
|
|
1466
|
+
assignees?: string[] | undefined;
|
|
1467
|
+
allLabels?: string[] | undefined;
|
|
1468
|
+
anyLabels?: string[] | undefined;
|
|
1469
|
+
excludeLabels?: string[] | undefined;
|
|
1470
|
+
changedLabels?: string[] | undefined;
|
|
1471
|
+
lookbackDays: number;
|
|
1472
|
+
maxRecords: number;
|
|
1473
|
+
} | undefined;
|
|
1474
|
+
schedule?: {
|
|
1475
|
+
[x: string]: unknown;
|
|
1476
|
+
type: "daily" | "hours" | "once" | "weekdays" | "weekly";
|
|
1477
|
+
hour?: number | undefined;
|
|
1478
|
+
minute?: number | undefined;
|
|
1479
|
+
day?: number | undefined;
|
|
1480
|
+
every?: 1 | 2 | 3 | 4 | 6 | 8 | 12 | undefined;
|
|
1481
|
+
at?: string | undefined;
|
|
1482
|
+
timeZone?: string | undefined;
|
|
1483
|
+
latestStartMinutes?: number | undefined;
|
|
1484
|
+
} | undefined;
|
|
1485
|
+
task: {
|
|
1486
|
+
[x: string]: unknown;
|
|
1487
|
+
archiveWhenDone?: boolean | undefined;
|
|
1488
|
+
autoMergePr?: boolean | undefined;
|
|
1489
|
+
allowWorkers?: boolean | undefined;
|
|
1490
|
+
allowMessaging?: boolean | undefined;
|
|
1491
|
+
prompt: string;
|
|
1492
|
+
workflow?: string | undefined;
|
|
1493
|
+
steps?: {
|
|
1494
|
+
id: string;
|
|
1495
|
+
name?: string | undefined;
|
|
1496
|
+
prompt?: string | undefined;
|
|
1497
|
+
skill?: string | undefined;
|
|
1498
|
+
model?: string | undefined;
|
|
1499
|
+
effort?: string | undefined;
|
|
1500
|
+
timeoutMs?: number | undefined;
|
|
1501
|
+
runner?: string | undefined;
|
|
1502
|
+
agentProfile?: string | undefined;
|
|
1503
|
+
allowedTools?: string[] | undefined;
|
|
1504
|
+
bashAllowlist?: string[] | undefined;
|
|
1505
|
+
kind?: "plugin" | undefined;
|
|
1506
|
+
pluginKind?: string | undefined;
|
|
1507
|
+
config?: Record<string, unknown> | undefined;
|
|
1508
|
+
command?: string | undefined;
|
|
1509
|
+
onFail?: {
|
|
1510
|
+
retry: string;
|
|
1511
|
+
max: number;
|
|
1512
|
+
} | undefined;
|
|
1513
|
+
}[] | undefined;
|
|
1514
|
+
runner?: string | undefined;
|
|
1515
|
+
model?: string | undefined;
|
|
1516
|
+
effort?: string | undefined;
|
|
1517
|
+
variants?: 1 | 2 | 3 | undefined;
|
|
1518
|
+
worktree?: boolean | undefined;
|
|
1519
|
+
autonomous?: boolean | undefined;
|
|
1520
|
+
systemPrompt?: string | undefined;
|
|
1521
|
+
};
|
|
1522
|
+
archived?: {
|
|
1523
|
+
[x: string]: unknown;
|
|
1524
|
+
at: string;
|
|
1525
|
+
outcome: "cancelled" | "launched";
|
|
1526
|
+
runId?: string | undefined;
|
|
1527
|
+
receiptId?: string | undefined;
|
|
1528
|
+
trigger?: "late" | "manual" | "retry" | "schedule" | undefined;
|
|
1529
|
+
} | undefined;
|
|
1530
|
+
createdAt: string;
|
|
1531
|
+
updatedAt: string;
|
|
1532
|
+
state?: {
|
|
1533
|
+
[x: string]: unknown;
|
|
1534
|
+
lastError?: string | undefined;
|
|
1535
|
+
lastErrorAt?: string | undefined;
|
|
1536
|
+
revision?: number | undefined;
|
|
1537
|
+
baselineAt?: string | undefined;
|
|
1538
|
+
armedAt?: string | undefined;
|
|
1539
|
+
historyScan?: {
|
|
1540
|
+
since: string;
|
|
1541
|
+
until: string;
|
|
1542
|
+
source: number;
|
|
1543
|
+
page: number;
|
|
1544
|
+
item: number;
|
|
1545
|
+
event: number;
|
|
1546
|
+
cursor?: {
|
|
1547
|
+
[x: string]: unknown;
|
|
1548
|
+
timestamp: string;
|
|
1549
|
+
tieBreaker?: string | undefined;
|
|
1550
|
+
} | undefined;
|
|
1551
|
+
} | undefined;
|
|
1552
|
+
cursor?: {
|
|
1553
|
+
[x: string]: unknown;
|
|
1554
|
+
timestamp: string;
|
|
1555
|
+
tieBreaker?: string | undefined;
|
|
1556
|
+
} | undefined;
|
|
1557
|
+
frozenHighWatermark?: {
|
|
1558
|
+
[x: string]: unknown;
|
|
1559
|
+
timestamp: string;
|
|
1560
|
+
tieBreaker: string;
|
|
1561
|
+
} | undefined;
|
|
1562
|
+
backlogAfter?: {
|
|
1563
|
+
[x: string]: unknown;
|
|
1564
|
+
timestamp: string;
|
|
1565
|
+
tieBreaker: string;
|
|
1566
|
+
} | undefined;
|
|
1567
|
+
nextCheckAt?: string | undefined;
|
|
1568
|
+
lastSuccessAt?: string | undefined;
|
|
1569
|
+
nextRunAt?: string | undefined;
|
|
1570
|
+
lastRunAt?: string | undefined;
|
|
1571
|
+
etags?: Record<string, string> | undefined;
|
|
1572
|
+
backoffUntil?: string | undefined;
|
|
1573
|
+
consecutiveFailures?: number | undefined;
|
|
1574
|
+
onceOutcome?: "failed" | "missed" | undefined;
|
|
1575
|
+
};
|
|
1576
|
+
latestLog?: {
|
|
1577
|
+
[x: string]: unknown;
|
|
1578
|
+
seq: number;
|
|
1579
|
+
ts: string;
|
|
1580
|
+
automationId: string;
|
|
1581
|
+
revision: number;
|
|
1582
|
+
event?: "issue.labeled" | "issue.opened" | "issue.unlabeled" | "pull_request.opened" | undefined;
|
|
1583
|
+
result: "baseline" | "catch-up" | "duplicate" | "error" | "failed" | "launched" | "manual" | "missed" | "no-match" | "preview" | "rate-limited" | "skipped";
|
|
1584
|
+
reason?: string | undefined;
|
|
1585
|
+
durationMs?: number | undefined;
|
|
1586
|
+
receiptId?: string | undefined;
|
|
1587
|
+
runId?: string | undefined;
|
|
1588
|
+
githubNumber?: number | undefined;
|
|
1589
|
+
githubTitle?: string | undefined;
|
|
1590
|
+
githubUrl?: string | undefined;
|
|
1591
|
+
rateLimit?: {
|
|
1592
|
+
[x: string]: unknown;
|
|
1593
|
+
bucket: "core" | "search";
|
|
1594
|
+
remaining?: number | undefined;
|
|
1595
|
+
resetAt?: string | undefined;
|
|
1596
|
+
} | undefined;
|
|
1597
|
+
};
|
|
1598
|
+
nextRunAt?: string;
|
|
1599
|
+
onceStatus?: "archived" | "failed" | "missed" | "paused" | "waiting";
|
|
1600
|
+
counts: {
|
|
1601
|
+
matches: number;
|
|
1602
|
+
launched: number;
|
|
1603
|
+
duplicates: number;
|
|
1604
|
+
errors: number;
|
|
1605
|
+
};
|
|
1606
|
+
}[];
|
|
1607
|
+
}>;
|
|
1608
|
+
get(project: AutomationServiceProject, id: string): import("../automations/service.ts").ServiceFailure | {
|
|
1609
|
+
ok: true;
|
|
1610
|
+
body: {
|
|
1611
|
+
automation: {
|
|
1612
|
+
[x: string]: unknown;
|
|
1613
|
+
id: string;
|
|
1614
|
+
revision: number;
|
|
1615
|
+
name: string;
|
|
1616
|
+
description?: string | undefined;
|
|
1617
|
+
enabled: boolean;
|
|
1618
|
+
kind: "github" | "schedule";
|
|
1619
|
+
events?: ("issue.labeled" | "issue.opened" | "issue.unlabeled" | "pull_request.opened")[] | undefined;
|
|
1620
|
+
intervalSeconds?: number | undefined;
|
|
1621
|
+
filters?: {
|
|
1622
|
+
[x: string]: unknown;
|
|
1623
|
+
includeExisting?: boolean | undefined;
|
|
1624
|
+
requireCurrentLabels?: boolean | undefined;
|
|
1625
|
+
authors?: string[] | undefined;
|
|
1626
|
+
assignees?: string[] | undefined;
|
|
1627
|
+
allLabels?: string[] | undefined;
|
|
1628
|
+
anyLabels?: string[] | undefined;
|
|
1629
|
+
excludeLabels?: string[] | undefined;
|
|
1630
|
+
changedLabels?: string[] | undefined;
|
|
1631
|
+
lookbackDays: number;
|
|
1632
|
+
maxRecords: number;
|
|
1633
|
+
} | undefined;
|
|
1634
|
+
schedule?: {
|
|
1635
|
+
[x: string]: unknown;
|
|
1636
|
+
type: "daily" | "hours" | "once" | "weekdays" | "weekly";
|
|
1637
|
+
hour?: number | undefined;
|
|
1638
|
+
minute?: number | undefined;
|
|
1639
|
+
day?: number | undefined;
|
|
1640
|
+
every?: 1 | 2 | 3 | 4 | 6 | 8 | 12 | undefined;
|
|
1641
|
+
at?: string | undefined;
|
|
1642
|
+
timeZone?: string | undefined;
|
|
1643
|
+
latestStartMinutes?: number | undefined;
|
|
1644
|
+
} | undefined;
|
|
1645
|
+
task: {
|
|
1646
|
+
[x: string]: unknown;
|
|
1647
|
+
archiveWhenDone?: boolean | undefined;
|
|
1648
|
+
autoMergePr?: boolean | undefined;
|
|
1649
|
+
allowWorkers?: boolean | undefined;
|
|
1650
|
+
allowMessaging?: boolean | undefined;
|
|
1651
|
+
prompt: string;
|
|
1652
|
+
workflow?: string | undefined;
|
|
1653
|
+
steps?: {
|
|
1654
|
+
id: string;
|
|
1655
|
+
name?: string | undefined;
|
|
1656
|
+
prompt?: string | undefined;
|
|
1657
|
+
skill?: string | undefined;
|
|
1658
|
+
model?: string | undefined;
|
|
1659
|
+
effort?: string | undefined;
|
|
1660
|
+
timeoutMs?: number | undefined;
|
|
1661
|
+
runner?: string | undefined;
|
|
1662
|
+
agentProfile?: string | undefined;
|
|
1663
|
+
allowedTools?: string[] | undefined;
|
|
1664
|
+
bashAllowlist?: string[] | undefined;
|
|
1665
|
+
kind?: "plugin" | undefined;
|
|
1666
|
+
pluginKind?: string | undefined;
|
|
1667
|
+
config?: Record<string, unknown> | undefined;
|
|
1668
|
+
command?: string | undefined;
|
|
1669
|
+
onFail?: {
|
|
1670
|
+
retry: string;
|
|
1671
|
+
max: number;
|
|
1672
|
+
} | undefined;
|
|
1673
|
+
}[] | undefined;
|
|
1674
|
+
runner?: string | undefined;
|
|
1675
|
+
model?: string | undefined;
|
|
1676
|
+
effort?: string | undefined;
|
|
1677
|
+
variants?: 1 | 2 | 3 | undefined;
|
|
1678
|
+
worktree?: boolean | undefined;
|
|
1679
|
+
autonomous?: boolean | undefined;
|
|
1680
|
+
systemPrompt?: string | undefined;
|
|
1681
|
+
};
|
|
1682
|
+
archived?: {
|
|
1683
|
+
[x: string]: unknown;
|
|
1684
|
+
at: string;
|
|
1685
|
+
outcome: "cancelled" | "launched";
|
|
1686
|
+
runId?: string | undefined;
|
|
1687
|
+
receiptId?: string | undefined;
|
|
1688
|
+
trigger?: "late" | "manual" | "retry" | "schedule" | undefined;
|
|
1689
|
+
} | undefined;
|
|
1690
|
+
createdAt: string;
|
|
1691
|
+
updatedAt: string;
|
|
1692
|
+
};
|
|
1693
|
+
state?: {
|
|
1694
|
+
[x: string]: unknown;
|
|
1695
|
+
lastError?: string | undefined;
|
|
1696
|
+
lastErrorAt?: string | undefined;
|
|
1697
|
+
revision?: number | undefined;
|
|
1698
|
+
baselineAt?: string | undefined;
|
|
1699
|
+
armedAt?: string | undefined;
|
|
1700
|
+
historyScan?: {
|
|
1701
|
+
since: string;
|
|
1702
|
+
until: string;
|
|
1703
|
+
source: number;
|
|
1704
|
+
page: number;
|
|
1705
|
+
item: number;
|
|
1706
|
+
event: number;
|
|
1707
|
+
cursor?: {
|
|
1708
|
+
[x: string]: unknown;
|
|
1709
|
+
timestamp: string;
|
|
1710
|
+
tieBreaker?: string | undefined;
|
|
1711
|
+
} | undefined;
|
|
1712
|
+
} | undefined;
|
|
1713
|
+
cursor?: {
|
|
1714
|
+
[x: string]: unknown;
|
|
1715
|
+
timestamp: string;
|
|
1716
|
+
tieBreaker?: string | undefined;
|
|
1717
|
+
} | undefined;
|
|
1718
|
+
frozenHighWatermark?: {
|
|
1719
|
+
[x: string]: unknown;
|
|
1720
|
+
timestamp: string;
|
|
1721
|
+
tieBreaker: string;
|
|
1722
|
+
} | undefined;
|
|
1723
|
+
backlogAfter?: {
|
|
1724
|
+
[x: string]: unknown;
|
|
1725
|
+
timestamp: string;
|
|
1726
|
+
tieBreaker: string;
|
|
1727
|
+
} | undefined;
|
|
1728
|
+
nextCheckAt?: string | undefined;
|
|
1729
|
+
lastSuccessAt?: string | undefined;
|
|
1730
|
+
nextRunAt?: string | undefined;
|
|
1731
|
+
lastRunAt?: string | undefined;
|
|
1732
|
+
etags?: Record<string, string> | undefined;
|
|
1733
|
+
backoffUntil?: string | undefined;
|
|
1734
|
+
consecutiveFailures?: number | undefined;
|
|
1735
|
+
onceOutcome?: "failed" | "missed" | undefined;
|
|
1736
|
+
};
|
|
1737
|
+
latestLog?: {
|
|
1738
|
+
[x: string]: unknown;
|
|
1739
|
+
seq: number;
|
|
1740
|
+
ts: string;
|
|
1741
|
+
automationId: string;
|
|
1742
|
+
revision: number;
|
|
1743
|
+
event?: "issue.labeled" | "issue.opened" | "issue.unlabeled" | "pull_request.opened" | undefined;
|
|
1744
|
+
result: "baseline" | "catch-up" | "duplicate" | "error" | "failed" | "launched" | "manual" | "missed" | "no-match" | "preview" | "rate-limited" | "skipped";
|
|
1745
|
+
reason?: string | undefined;
|
|
1746
|
+
durationMs?: number | undefined;
|
|
1747
|
+
receiptId?: string | undefined;
|
|
1748
|
+
runId?: string | undefined;
|
|
1749
|
+
githubNumber?: number | undefined;
|
|
1750
|
+
githubTitle?: string | undefined;
|
|
1751
|
+
githubUrl?: string | undefined;
|
|
1752
|
+
rateLimit?: {
|
|
1753
|
+
[x: string]: unknown;
|
|
1754
|
+
bucket: "core" | "search";
|
|
1755
|
+
remaining?: number | undefined;
|
|
1756
|
+
resetAt?: string | undefined;
|
|
1757
|
+
} | undefined;
|
|
1758
|
+
};
|
|
1759
|
+
onceStatus?: "archived" | "failed" | "missed" | "paused" | "waiting";
|
|
1760
|
+
};
|
|
1761
|
+
};
|
|
1762
|
+
create(project: AutomationServiceProject, body: import("zod").output<typeof automationCreateSchema>): Promise<import("../automations/service.ts").ServiceFailure | {
|
|
1763
|
+
ok: true;
|
|
1764
|
+
automation: {
|
|
1765
|
+
[x: string]: unknown;
|
|
1766
|
+
id: string;
|
|
1767
|
+
revision: number;
|
|
1768
|
+
name: string;
|
|
1769
|
+
description?: string | undefined;
|
|
1770
|
+
enabled: boolean;
|
|
1771
|
+
kind: "github" | "schedule";
|
|
1772
|
+
events?: ("issue.labeled" | "issue.opened" | "issue.unlabeled" | "pull_request.opened")[] | undefined;
|
|
1773
|
+
intervalSeconds?: number | undefined;
|
|
1774
|
+
filters?: {
|
|
1775
|
+
[x: string]: unknown;
|
|
1776
|
+
includeExisting?: boolean | undefined;
|
|
1777
|
+
requireCurrentLabels?: boolean | undefined;
|
|
1778
|
+
authors?: string[] | undefined;
|
|
1779
|
+
assignees?: string[] | undefined;
|
|
1780
|
+
allLabels?: string[] | undefined;
|
|
1781
|
+
anyLabels?: string[] | undefined;
|
|
1782
|
+
excludeLabels?: string[] | undefined;
|
|
1783
|
+
changedLabels?: string[] | undefined;
|
|
1784
|
+
lookbackDays: number;
|
|
1785
|
+
maxRecords: number;
|
|
1786
|
+
} | undefined;
|
|
1787
|
+
schedule?: {
|
|
1788
|
+
[x: string]: unknown;
|
|
1789
|
+
type: "daily" | "hours" | "once" | "weekdays" | "weekly";
|
|
1790
|
+
hour?: number | undefined;
|
|
1791
|
+
minute?: number | undefined;
|
|
1792
|
+
day?: number | undefined;
|
|
1793
|
+
every?: 1 | 2 | 3 | 4 | 6 | 8 | 12 | undefined;
|
|
1794
|
+
at?: string | undefined;
|
|
1795
|
+
timeZone?: string | undefined;
|
|
1796
|
+
latestStartMinutes?: number | undefined;
|
|
1797
|
+
} | undefined;
|
|
1798
|
+
task: {
|
|
1799
|
+
[x: string]: unknown;
|
|
1800
|
+
archiveWhenDone?: boolean | undefined;
|
|
1801
|
+
autoMergePr?: boolean | undefined;
|
|
1802
|
+
allowWorkers?: boolean | undefined;
|
|
1803
|
+
allowMessaging?: boolean | undefined;
|
|
1804
|
+
prompt: string;
|
|
1805
|
+
workflow?: string | undefined;
|
|
1806
|
+
steps?: {
|
|
1807
|
+
id: string;
|
|
1808
|
+
name?: string | undefined;
|
|
1809
|
+
prompt?: string | undefined;
|
|
1810
|
+
skill?: string | undefined;
|
|
1811
|
+
model?: string | undefined;
|
|
1812
|
+
effort?: string | undefined;
|
|
1813
|
+
timeoutMs?: number | undefined;
|
|
1814
|
+
runner?: string | undefined;
|
|
1815
|
+
agentProfile?: string | undefined;
|
|
1816
|
+
allowedTools?: string[] | undefined;
|
|
1817
|
+
bashAllowlist?: string[] | undefined;
|
|
1818
|
+
kind?: "plugin" | undefined;
|
|
1819
|
+
pluginKind?: string | undefined;
|
|
1820
|
+
config?: Record<string, unknown> | undefined;
|
|
1821
|
+
command?: string | undefined;
|
|
1822
|
+
onFail?: {
|
|
1823
|
+
retry: string;
|
|
1824
|
+
max: number;
|
|
1825
|
+
} | undefined;
|
|
1826
|
+
}[] | undefined;
|
|
1827
|
+
runner?: string | undefined;
|
|
1828
|
+
model?: string | undefined;
|
|
1829
|
+
effort?: string | undefined;
|
|
1830
|
+
variants?: 1 | 2 | 3 | undefined;
|
|
1831
|
+
worktree?: boolean | undefined;
|
|
1832
|
+
autonomous?: boolean | undefined;
|
|
1833
|
+
systemPrompt?: string | undefined;
|
|
1834
|
+
};
|
|
1835
|
+
archived?: {
|
|
1836
|
+
[x: string]: unknown;
|
|
1837
|
+
at: string;
|
|
1838
|
+
outcome: "cancelled" | "launched";
|
|
1839
|
+
runId?: string | undefined;
|
|
1840
|
+
receiptId?: string | undefined;
|
|
1841
|
+
trigger?: "late" | "manual" | "retry" | "schedule" | undefined;
|
|
1842
|
+
} | undefined;
|
|
1843
|
+
createdAt: string;
|
|
1844
|
+
updatedAt: string;
|
|
1845
|
+
};
|
|
1846
|
+
}>;
|
|
1847
|
+
update(project: AutomationServiceProject, id: string, body: import("zod").output<typeof automationUpdateSchema>): Promise<import("../automations/service.ts").ServiceFailure | {
|
|
1848
|
+
ok: true;
|
|
1849
|
+
automation: {
|
|
1850
|
+
[x: string]: unknown;
|
|
1851
|
+
id: string;
|
|
1852
|
+
revision: number;
|
|
1853
|
+
name: string;
|
|
1854
|
+
description?: string | undefined;
|
|
1855
|
+
enabled: boolean;
|
|
1856
|
+
kind: "github" | "schedule";
|
|
1857
|
+
events?: ("issue.labeled" | "issue.opened" | "issue.unlabeled" | "pull_request.opened")[] | undefined;
|
|
1858
|
+
intervalSeconds?: number | undefined;
|
|
1859
|
+
filters?: {
|
|
1860
|
+
[x: string]: unknown;
|
|
1861
|
+
includeExisting?: boolean | undefined;
|
|
1862
|
+
requireCurrentLabels?: boolean | undefined;
|
|
1863
|
+
authors?: string[] | undefined;
|
|
1864
|
+
assignees?: string[] | undefined;
|
|
1865
|
+
allLabels?: string[] | undefined;
|
|
1866
|
+
anyLabels?: string[] | undefined;
|
|
1867
|
+
excludeLabels?: string[] | undefined;
|
|
1868
|
+
changedLabels?: string[] | undefined;
|
|
1869
|
+
lookbackDays: number;
|
|
1870
|
+
maxRecords: number;
|
|
1871
|
+
} | undefined;
|
|
1872
|
+
schedule?: {
|
|
1873
|
+
[x: string]: unknown;
|
|
1874
|
+
type: "daily" | "hours" | "once" | "weekdays" | "weekly";
|
|
1875
|
+
hour?: number | undefined;
|
|
1876
|
+
minute?: number | undefined;
|
|
1877
|
+
day?: number | undefined;
|
|
1878
|
+
every?: 1 | 2 | 3 | 4 | 6 | 8 | 12 | undefined;
|
|
1879
|
+
at?: string | undefined;
|
|
1880
|
+
timeZone?: string | undefined;
|
|
1881
|
+
latestStartMinutes?: number | undefined;
|
|
1882
|
+
} | undefined;
|
|
1883
|
+
task: {
|
|
1884
|
+
[x: string]: unknown;
|
|
1885
|
+
archiveWhenDone?: boolean | undefined;
|
|
1886
|
+
autoMergePr?: boolean | undefined;
|
|
1887
|
+
allowWorkers?: boolean | undefined;
|
|
1888
|
+
allowMessaging?: boolean | undefined;
|
|
1889
|
+
prompt: string;
|
|
1890
|
+
workflow?: string | undefined;
|
|
1891
|
+
steps?: {
|
|
1892
|
+
id: string;
|
|
1893
|
+
name?: string | undefined;
|
|
1894
|
+
prompt?: string | undefined;
|
|
1895
|
+
skill?: string | undefined;
|
|
1896
|
+
model?: string | undefined;
|
|
1897
|
+
effort?: string | undefined;
|
|
1898
|
+
timeoutMs?: number | undefined;
|
|
1899
|
+
runner?: string | undefined;
|
|
1900
|
+
agentProfile?: string | undefined;
|
|
1901
|
+
allowedTools?: string[] | undefined;
|
|
1902
|
+
bashAllowlist?: string[] | undefined;
|
|
1903
|
+
kind?: "plugin" | undefined;
|
|
1904
|
+
pluginKind?: string | undefined;
|
|
1905
|
+
config?: Record<string, unknown> | undefined;
|
|
1906
|
+
command?: string | undefined;
|
|
1907
|
+
onFail?: {
|
|
1908
|
+
retry: string;
|
|
1909
|
+
max: number;
|
|
1910
|
+
} | undefined;
|
|
1911
|
+
}[] | undefined;
|
|
1912
|
+
runner?: string | undefined;
|
|
1913
|
+
model?: string | undefined;
|
|
1914
|
+
effort?: string | undefined;
|
|
1915
|
+
variants?: 1 | 2 | 3 | undefined;
|
|
1916
|
+
worktree?: boolean | undefined;
|
|
1917
|
+
autonomous?: boolean | undefined;
|
|
1918
|
+
systemPrompt?: string | undefined;
|
|
1919
|
+
};
|
|
1920
|
+
archived?: {
|
|
1921
|
+
[x: string]: unknown;
|
|
1922
|
+
at: string;
|
|
1923
|
+
outcome: "cancelled" | "launched";
|
|
1924
|
+
runId?: string | undefined;
|
|
1925
|
+
receiptId?: string | undefined;
|
|
1926
|
+
trigger?: "late" | "manual" | "retry" | "schedule" | undefined;
|
|
1927
|
+
} | undefined;
|
|
1928
|
+
createdAt: string;
|
|
1929
|
+
updatedAt: string;
|
|
1930
|
+
};
|
|
1931
|
+
}>;
|
|
1932
|
+
remove(project: AutomationServiceProject, id: string): Promise<import("../automations/service.ts").ServiceFailure | {
|
|
1933
|
+
ok: true;
|
|
1934
|
+
}> | import("../automations/service.ts").ServiceFailure | {
|
|
1935
|
+
ok: true;
|
|
1936
|
+
};
|
|
1937
|
+
enable(project: AutomationServiceProject, id: string, expectedRevision?: number): Promise<import("../automations/service.ts").ServiceFailure | {
|
|
1938
|
+
ok: true;
|
|
1939
|
+
automation: {
|
|
1940
|
+
[x: string]: unknown;
|
|
1941
|
+
id: string;
|
|
1942
|
+
revision: number;
|
|
1943
|
+
name: string;
|
|
1944
|
+
description?: string | undefined;
|
|
1945
|
+
enabled: boolean;
|
|
1946
|
+
kind: "github" | "schedule";
|
|
1947
|
+
events?: ("issue.labeled" | "issue.opened" | "issue.unlabeled" | "pull_request.opened")[] | undefined;
|
|
1948
|
+
intervalSeconds?: number | undefined;
|
|
1949
|
+
filters?: {
|
|
1950
|
+
[x: string]: unknown;
|
|
1951
|
+
includeExisting?: boolean | undefined;
|
|
1952
|
+
requireCurrentLabels?: boolean | undefined;
|
|
1953
|
+
authors?: string[] | undefined;
|
|
1954
|
+
assignees?: string[] | undefined;
|
|
1955
|
+
allLabels?: string[] | undefined;
|
|
1956
|
+
anyLabels?: string[] | undefined;
|
|
1957
|
+
excludeLabels?: string[] | undefined;
|
|
1958
|
+
changedLabels?: string[] | undefined;
|
|
1959
|
+
lookbackDays: number;
|
|
1960
|
+
maxRecords: number;
|
|
1961
|
+
} | undefined;
|
|
1962
|
+
schedule?: {
|
|
1963
|
+
[x: string]: unknown;
|
|
1964
|
+
type: "daily" | "hours" | "once" | "weekdays" | "weekly";
|
|
1965
|
+
hour?: number | undefined;
|
|
1966
|
+
minute?: number | undefined;
|
|
1967
|
+
day?: number | undefined;
|
|
1968
|
+
every?: 1 | 2 | 3 | 4 | 6 | 8 | 12 | undefined;
|
|
1969
|
+
at?: string | undefined;
|
|
1970
|
+
timeZone?: string | undefined;
|
|
1971
|
+
latestStartMinutes?: number | undefined;
|
|
1972
|
+
} | undefined;
|
|
1973
|
+
task: {
|
|
1974
|
+
[x: string]: unknown;
|
|
1975
|
+
archiveWhenDone?: boolean | undefined;
|
|
1976
|
+
autoMergePr?: boolean | undefined;
|
|
1977
|
+
allowWorkers?: boolean | undefined;
|
|
1978
|
+
allowMessaging?: boolean | undefined;
|
|
1979
|
+
prompt: string;
|
|
1980
|
+
workflow?: string | undefined;
|
|
1981
|
+
steps?: {
|
|
1982
|
+
id: string;
|
|
1983
|
+
name?: string | undefined;
|
|
1984
|
+
prompt?: string | undefined;
|
|
1985
|
+
skill?: string | undefined;
|
|
1986
|
+
model?: string | undefined;
|
|
1987
|
+
effort?: string | undefined;
|
|
1988
|
+
timeoutMs?: number | undefined;
|
|
1989
|
+
runner?: string | undefined;
|
|
1990
|
+
agentProfile?: string | undefined;
|
|
1991
|
+
allowedTools?: string[] | undefined;
|
|
1992
|
+
bashAllowlist?: string[] | undefined;
|
|
1993
|
+
kind?: "plugin" | undefined;
|
|
1994
|
+
pluginKind?: string | undefined;
|
|
1995
|
+
config?: Record<string, unknown> | undefined;
|
|
1996
|
+
command?: string | undefined;
|
|
1997
|
+
onFail?: {
|
|
1998
|
+
retry: string;
|
|
1999
|
+
max: number;
|
|
2000
|
+
} | undefined;
|
|
2001
|
+
}[] | undefined;
|
|
2002
|
+
runner?: string | undefined;
|
|
2003
|
+
model?: string | undefined;
|
|
2004
|
+
effort?: string | undefined;
|
|
2005
|
+
variants?: 1 | 2 | 3 | undefined;
|
|
2006
|
+
worktree?: boolean | undefined;
|
|
2007
|
+
autonomous?: boolean | undefined;
|
|
2008
|
+
systemPrompt?: string | undefined;
|
|
2009
|
+
};
|
|
2010
|
+
archived?: {
|
|
2011
|
+
[x: string]: unknown;
|
|
2012
|
+
at: string;
|
|
2013
|
+
outcome: "cancelled" | "launched";
|
|
2014
|
+
runId?: string | undefined;
|
|
2015
|
+
receiptId?: string | undefined;
|
|
2016
|
+
trigger?: "late" | "manual" | "retry" | "schedule" | undefined;
|
|
2017
|
+
} | undefined;
|
|
2018
|
+
createdAt: string;
|
|
2019
|
+
updatedAt: string;
|
|
2020
|
+
};
|
|
2021
|
+
}>;
|
|
2022
|
+
pause(project: AutomationServiceProject, id: string): Promise<import("../automations/service.ts").ServiceFailure | {
|
|
2023
|
+
ok: true;
|
|
2024
|
+
automation: {
|
|
2025
|
+
[x: string]: unknown;
|
|
2026
|
+
id: string;
|
|
2027
|
+
revision: number;
|
|
2028
|
+
name: string;
|
|
2029
|
+
description?: string | undefined;
|
|
2030
|
+
enabled: boolean;
|
|
2031
|
+
kind: "github" | "schedule";
|
|
2032
|
+
events?: ("issue.labeled" | "issue.opened" | "issue.unlabeled" | "pull_request.opened")[] | undefined;
|
|
2033
|
+
intervalSeconds?: number | undefined;
|
|
2034
|
+
filters?: {
|
|
2035
|
+
[x: string]: unknown;
|
|
2036
|
+
includeExisting?: boolean | undefined;
|
|
2037
|
+
requireCurrentLabels?: boolean | undefined;
|
|
2038
|
+
authors?: string[] | undefined;
|
|
2039
|
+
assignees?: string[] | undefined;
|
|
2040
|
+
allLabels?: string[] | undefined;
|
|
2041
|
+
anyLabels?: string[] | undefined;
|
|
2042
|
+
excludeLabels?: string[] | undefined;
|
|
2043
|
+
changedLabels?: string[] | undefined;
|
|
2044
|
+
lookbackDays: number;
|
|
2045
|
+
maxRecords: number;
|
|
2046
|
+
} | undefined;
|
|
2047
|
+
schedule?: {
|
|
2048
|
+
[x: string]: unknown;
|
|
2049
|
+
type: "daily" | "hours" | "once" | "weekdays" | "weekly";
|
|
2050
|
+
hour?: number | undefined;
|
|
2051
|
+
minute?: number | undefined;
|
|
2052
|
+
day?: number | undefined;
|
|
2053
|
+
every?: 1 | 2 | 3 | 4 | 6 | 8 | 12 | undefined;
|
|
2054
|
+
at?: string | undefined;
|
|
2055
|
+
timeZone?: string | undefined;
|
|
2056
|
+
latestStartMinutes?: number | undefined;
|
|
2057
|
+
} | undefined;
|
|
2058
|
+
task: {
|
|
2059
|
+
[x: string]: unknown;
|
|
2060
|
+
archiveWhenDone?: boolean | undefined;
|
|
2061
|
+
autoMergePr?: boolean | undefined;
|
|
2062
|
+
allowWorkers?: boolean | undefined;
|
|
2063
|
+
allowMessaging?: boolean | undefined;
|
|
2064
|
+
prompt: string;
|
|
2065
|
+
workflow?: string | undefined;
|
|
2066
|
+
steps?: {
|
|
2067
|
+
id: string;
|
|
2068
|
+
name?: string | undefined;
|
|
2069
|
+
prompt?: string | undefined;
|
|
2070
|
+
skill?: string | undefined;
|
|
2071
|
+
model?: string | undefined;
|
|
2072
|
+
effort?: string | undefined;
|
|
2073
|
+
timeoutMs?: number | undefined;
|
|
2074
|
+
runner?: string | undefined;
|
|
2075
|
+
agentProfile?: string | undefined;
|
|
2076
|
+
allowedTools?: string[] | undefined;
|
|
2077
|
+
bashAllowlist?: string[] | undefined;
|
|
2078
|
+
kind?: "plugin" | undefined;
|
|
2079
|
+
pluginKind?: string | undefined;
|
|
2080
|
+
config?: Record<string, unknown> | undefined;
|
|
2081
|
+
command?: string | undefined;
|
|
2082
|
+
onFail?: {
|
|
2083
|
+
retry: string;
|
|
2084
|
+
max: number;
|
|
2085
|
+
} | undefined;
|
|
2086
|
+
}[] | undefined;
|
|
2087
|
+
runner?: string | undefined;
|
|
2088
|
+
model?: string | undefined;
|
|
2089
|
+
effort?: string | undefined;
|
|
2090
|
+
variants?: 1 | 2 | 3 | undefined;
|
|
2091
|
+
worktree?: boolean | undefined;
|
|
2092
|
+
autonomous?: boolean | undefined;
|
|
2093
|
+
systemPrompt?: string | undefined;
|
|
2094
|
+
};
|
|
2095
|
+
archived?: {
|
|
2096
|
+
[x: string]: unknown;
|
|
2097
|
+
at: string;
|
|
2098
|
+
outcome: "cancelled" | "launched";
|
|
2099
|
+
runId?: string | undefined;
|
|
2100
|
+
receiptId?: string | undefined;
|
|
2101
|
+
trigger?: "late" | "manual" | "retry" | "schedule" | undefined;
|
|
2102
|
+
} | undefined;
|
|
2103
|
+
createdAt: string;
|
|
2104
|
+
updatedAt: string;
|
|
2105
|
+
};
|
|
2106
|
+
}>;
|
|
2107
|
+
cancel(project: AutomationServiceProject, id: string): Promise<import("../automations/service.ts").ServiceFailure | {
|
|
2108
|
+
ok: true;
|
|
2109
|
+
automation: {
|
|
2110
|
+
[x: string]: unknown;
|
|
2111
|
+
id: string;
|
|
2112
|
+
revision: number;
|
|
2113
|
+
name: string;
|
|
2114
|
+
description?: string | undefined;
|
|
2115
|
+
enabled: boolean;
|
|
2116
|
+
kind: "github" | "schedule";
|
|
2117
|
+
events?: ("issue.labeled" | "issue.opened" | "issue.unlabeled" | "pull_request.opened")[] | undefined;
|
|
2118
|
+
intervalSeconds?: number | undefined;
|
|
2119
|
+
filters?: {
|
|
2120
|
+
[x: string]: unknown;
|
|
2121
|
+
includeExisting?: boolean | undefined;
|
|
2122
|
+
requireCurrentLabels?: boolean | undefined;
|
|
2123
|
+
authors?: string[] | undefined;
|
|
2124
|
+
assignees?: string[] | undefined;
|
|
2125
|
+
allLabels?: string[] | undefined;
|
|
2126
|
+
anyLabels?: string[] | undefined;
|
|
2127
|
+
excludeLabels?: string[] | undefined;
|
|
2128
|
+
changedLabels?: string[] | undefined;
|
|
2129
|
+
lookbackDays: number;
|
|
2130
|
+
maxRecords: number;
|
|
2131
|
+
} | undefined;
|
|
2132
|
+
schedule?: {
|
|
2133
|
+
[x: string]: unknown;
|
|
2134
|
+
type: "daily" | "hours" | "once" | "weekdays" | "weekly";
|
|
2135
|
+
hour?: number | undefined;
|
|
2136
|
+
minute?: number | undefined;
|
|
2137
|
+
day?: number | undefined;
|
|
2138
|
+
every?: 1 | 2 | 3 | 4 | 6 | 8 | 12 | undefined;
|
|
2139
|
+
at?: string | undefined;
|
|
2140
|
+
timeZone?: string | undefined;
|
|
2141
|
+
latestStartMinutes?: number | undefined;
|
|
2142
|
+
} | undefined;
|
|
2143
|
+
task: {
|
|
2144
|
+
[x: string]: unknown;
|
|
2145
|
+
archiveWhenDone?: boolean | undefined;
|
|
2146
|
+
autoMergePr?: boolean | undefined;
|
|
2147
|
+
allowWorkers?: boolean | undefined;
|
|
2148
|
+
allowMessaging?: boolean | undefined;
|
|
2149
|
+
prompt: string;
|
|
2150
|
+
workflow?: string | undefined;
|
|
2151
|
+
steps?: {
|
|
2152
|
+
id: string;
|
|
2153
|
+
name?: string | undefined;
|
|
2154
|
+
prompt?: string | undefined;
|
|
2155
|
+
skill?: string | undefined;
|
|
2156
|
+
model?: string | undefined;
|
|
2157
|
+
effort?: string | undefined;
|
|
2158
|
+
timeoutMs?: number | undefined;
|
|
2159
|
+
runner?: string | undefined;
|
|
2160
|
+
agentProfile?: string | undefined;
|
|
2161
|
+
allowedTools?: string[] | undefined;
|
|
2162
|
+
bashAllowlist?: string[] | undefined;
|
|
2163
|
+
kind?: "plugin" | undefined;
|
|
2164
|
+
pluginKind?: string | undefined;
|
|
2165
|
+
config?: Record<string, unknown> | undefined;
|
|
2166
|
+
command?: string | undefined;
|
|
2167
|
+
onFail?: {
|
|
2168
|
+
retry: string;
|
|
2169
|
+
max: number;
|
|
2170
|
+
} | undefined;
|
|
2171
|
+
}[] | undefined;
|
|
2172
|
+
runner?: string | undefined;
|
|
2173
|
+
model?: string | undefined;
|
|
2174
|
+
effort?: string | undefined;
|
|
2175
|
+
variants?: 1 | 2 | 3 | undefined;
|
|
2176
|
+
worktree?: boolean | undefined;
|
|
2177
|
+
autonomous?: boolean | undefined;
|
|
2178
|
+
systemPrompt?: string | undefined;
|
|
2179
|
+
};
|
|
2180
|
+
archived?: {
|
|
2181
|
+
[x: string]: unknown;
|
|
2182
|
+
at: string;
|
|
2183
|
+
outcome: "cancelled" | "launched";
|
|
2184
|
+
runId?: string | undefined;
|
|
2185
|
+
receiptId?: string | undefined;
|
|
2186
|
+
trigger?: "late" | "manual" | "retry" | "schedule" | undefined;
|
|
2187
|
+
} | undefined;
|
|
2188
|
+
createdAt: string;
|
|
2189
|
+
updatedAt: string;
|
|
2190
|
+
};
|
|
2191
|
+
}>;
|
|
2192
|
+
runNow(project: AutomationServiceProject, id: string): Promise<import("../automations/service.ts").ServiceFailure | {
|
|
2193
|
+
ok: true;
|
|
2194
|
+
runId: string;
|
|
2195
|
+
}>;
|
|
2196
|
+
};
|
|
1435
2197
|
};
|