@hearsay-tools/squawk 0.18.0-dev.7128 → 0.18.0-dev.7131
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/contract/config-requests.d.ts +4 -0
- package/dist/contract/index.js +11 -2
- package/dist/contract/workspace.d.ts +14 -0
- package/dist/delegation/routes.d.ts +62 -62
- package/dist/delegation/transport.d.ts +62 -62
- package/dist/server/activity-routes.d.ts +23 -23
- package/dist/server/config-merge.js +7 -6
- package/dist/server/config-merge.js.map +1 -1
- package/dist/server/server.d.ts +102 -58
- package/dist/server/server.js +11 -11
- package/dist/server/server.js.map +1 -1
- package/dist/worktree-setup.d.ts +9 -0
- package/dist/worktree-setup.js +8 -0
- package/dist/worktree-setup.js.map +1 -1
- package/package.json +4 -4
- package/web/dist/assets/{activity-motion-CRjdIuq0.js → activity-motion-CyEX8rL6.js} +1 -1
- package/web/dist/assets/{activity-route-4yon6jwC.js → activity-route-DcTRaRgj.js} +1 -1
- package/web/dist/assets/{agent-accounts-l_Gn-Dja.js → agent-accounts-Ck78cTaG.js} +1 -1
- package/web/dist/assets/attention-DLIMAzlf.js +1 -0
- package/web/dist/assets/{cez-idle-BEO5j8ow.js → cez-idle-Catc8I8F.js} +1 -1
- package/web/dist/assets/{commit-diff-panel-Cfnt30Tt.js → commit-diff-panel-Bi6YXh5g.js} +1 -1
- package/web/dist/assets/{diff-Dx1bGt0w.js → diff-DwvN-01t.js} +2 -2
- package/web/dist/assets/{diff-view-DJ4iFfkd.js → diff-view-BcR4y84T.js} +1 -1
- package/web/dist/assets/{file-preview-6POBIfS-.js → file-preview-ByaoVbYu.js} +1 -1
- package/web/dist/assets/{git-toolbar-DwK9tJOu.js → git-toolbar-YtHcdCIz.js} +1 -1
- package/web/dist/assets/{github-shozEZ-Z.js → github-DCgnacFq.js} +1 -1
- package/web/dist/assets/{global-activity-route-D_JqpAAR.js → global-activity-route-DXKVtPJS.js} +1 -1
- package/web/dist/assets/{index-DMq98FV0.js → index-DetUdPPg.js} +8 -8
- package/web/dist/assets/{live-protocol-Bn-xWBmZ.js → live-protocol-B8HJ-VW8.js} +1 -1
- package/web/dist/assets/{markdown-fN_tqxh3.js → markdown-DuG8dQwY.js} +1 -1
- package/web/dist/assets/{picker-pill-BuYiT3fS.js → picker-pill-Bd3Q9PFA.js} +1 -1
- package/web/dist/assets/{preview-pane-connected-D81HxFOI.js → preview-pane-connected-g2INxRgP.js} +1 -1
- package/web/dist/assets/{project-router-C68VktrY.js → project-router-BKoMKwmx.js} +1 -1
- package/web/dist/assets/{project-scope-context-Vv8ygMl6.js → project-scope-context-Cb2B_LxQ.js} +1 -1
- package/web/dist/assets/{prompt-template-menu-hXOsL4ia.js → prompt-template-menu-BBSaimz3.js} +1 -1
- package/web/dist/assets/{queries-Drt3XAiW.js → queries-Bb9GjWMQ.js} +1 -1
- package/web/dist/assets/{reference-chip-oVw9Lal9.js → reference-chip-AYFrAylA.js} +1 -1
- package/web/dist/assets/{repo-git-B295X5Wv.js → repo-git-DSWWu3vz.js} +1 -1
- package/web/dist/assets/{report-reader-HocN04sH.js → report-reader-Ppsa0oCh.js} +1 -1
- package/web/dist/assets/{reports-B1KiT5at.js → reports-DUQMFaO3.js} +1 -1
- package/web/dist/assets/{run-header-DyKGLM8b.js → run-header-DKNoRlDo.js} +1 -1
- package/web/dist/assets/{skills-BRDqkbTt.js → skills-BibW5PT7.js} +1 -1
- package/web/dist/assets/{tab-link-B4u5eY7O.js → tab-link-CekOt2NF.js} +1 -1
- package/web/dist/assets/{task-changes-Bx8mrihw.js → task-changes-CVLI5qI-.js} +1 -1
- package/web/dist/assets/{task-commits-bARHGfsG.js → task-commits-Sn6Z1U8s.js} +1 -1
- package/web/dist/assets/{task-files-_SX670LL.js → task-files-CH6dpey9.js} +1 -1
- package/web/dist/assets/{task-github-item-Cw8-5BXV.js → task-github-item-DCh49ITV.js} +1 -1
- package/web/dist/assets/{task-thread-BAeGEFEe.js → task-thread-oELdc5YR.js} +1 -1
- package/web/dist/assets/{thread-state-BpW3fVNR.js → thread-state-CtGUZehD.js} +1 -1
- package/web/dist/assets/{use-desktop-CuYLi0j4.js → use-desktop-tg8hhNdq.js} +1 -1
- package/web/dist/assets/{use-hand-to-agent-state-DU4XEkhv.js → use-hand-to-agent-state-YpAMIZ2r.js} +1 -1
- package/web/dist/assets/{useInfiniteQuery-LV3jJNT5.js → useInfiniteQuery-De6BP_4x.js} +1 -1
- package/web/dist/assets/useQuery-BsOmvrd_.js +1 -0
- package/web/dist/assets/{workflows-B_b47Jog.js → workflows-DQBGigNM.js} +1 -1
- package/web/dist/assets/{ws-DfYRWmd-.js → ws-2N3miuuZ.js} +1 -1
- package/web/dist/index.html +15 -15
- package/web/dist/live-worker.js +1 -1
- package/web/dist/assets/attention-DcMKBngT.js +0 -1
- package/web/dist/assets/useQuery-DdfGRa2n.js +0 -1
|
@@ -26,6 +26,10 @@ export declare const setConfigSchema: z.ZodObject<{
|
|
|
26
26
|
commands: z.ZodArray<z.ZodString>;
|
|
27
27
|
timeoutSeconds: z.ZodOptional<z.ZodNumber>;
|
|
28
28
|
}, z.core.$strict>>>;
|
|
29
|
+
worktreeTeardown: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
30
|
+
commands: z.ZodArray<z.ZodString>;
|
|
31
|
+
timeoutSeconds: z.ZodOptional<z.ZodNumber>;
|
|
32
|
+
}, z.core.$strict>>>;
|
|
29
33
|
systemPrompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
30
34
|
}, z.core.$strip>;
|
|
31
35
|
export declare const setAgentConfigSchema: z.ZodObject<{
|
package/dist/contract/index.js
CHANGED
|
@@ -418,7 +418,13 @@ var configResponseSchema = z7.object({
|
|
|
418
418
|
* timeout filled in. null = no setup, or an invalid value (then `worktreeSetupIssue` says why). */
|
|
419
419
|
worktreeSetup: z7.object({ commands: z7.array(z7.string()), timeoutSeconds: z7.number() }).nullable(),
|
|
420
420
|
/** Why `config.json`'s `worktreeSetup` is invalid; null when it is valid or absent. */
|
|
421
|
-
worktreeSetupIssue: z7.string().nullable()
|
|
421
|
+
worktreeSetupIssue: z7.string().nullable(),
|
|
422
|
+
/** Worktree teardown (hearsay-tools/squawk#914): the commands worker destroy runs in the worker's
|
|
423
|
+
* worktree before it looks for holders, with the timeout filled in. null = no teardown, or an
|
|
424
|
+
* invalid value (then `worktreeTeardownIssue` says why). */
|
|
425
|
+
worktreeTeardown: z7.object({ commands: z7.array(z7.string()), timeoutSeconds: z7.number() }).nullable(),
|
|
426
|
+
/** Why `config.json`'s `worktreeTeardown` is invalid; null when it is valid or absent. */
|
|
427
|
+
worktreeTeardownIssue: z7.string().nullable()
|
|
422
428
|
});
|
|
423
429
|
var setConfigResponseSchema = configResponseSchema;
|
|
424
430
|
var setConfigInputSchema = z7.object({
|
|
@@ -444,7 +450,10 @@ var setConfigInputSchema = z7.object({
|
|
|
444
450
|
reviewGate: z7.boolean().nullable().optional(),
|
|
445
451
|
/** Worktree setup (#917). null or an empty command list deletes the key. Refused with 409 by a
|
|
446
452
|
* hosted cockpit: these are commands the host runs. */
|
|
447
|
-
worktreeSetup: worktreeSetupConfigSchema.nullable().optional()
|
|
453
|
+
worktreeSetup: worktreeSetupConfigSchema.nullable().optional(),
|
|
454
|
+
/** Worktree teardown (hearsay-tools/squawk#914): the same shape, clear values and hosted-cockpit
|
|
455
|
+
* refusal as `worktreeSetup`. */
|
|
456
|
+
worktreeTeardown: worktreeSetupConfigSchema.nullable().optional()
|
|
448
457
|
});
|
|
449
458
|
var providerIdSchema = runnerSchema;
|
|
450
459
|
var providerConnectionStateSchema = z7.enum([
|
|
@@ -355,6 +355,11 @@ export declare const configResponseSchema: z.ZodObject<{
|
|
|
355
355
|
timeoutSeconds: z.ZodNumber;
|
|
356
356
|
}, z.core.$strip>>;
|
|
357
357
|
worktreeSetupIssue: z.ZodNullable<z.ZodString>;
|
|
358
|
+
worktreeTeardown: z.ZodNullable<z.ZodObject<{
|
|
359
|
+
commands: z.ZodArray<z.ZodString>;
|
|
360
|
+
timeoutSeconds: z.ZodNumber;
|
|
361
|
+
}, z.core.$strip>>;
|
|
362
|
+
worktreeTeardownIssue: z.ZodNullable<z.ZodString>;
|
|
358
363
|
}, z.core.$strip>;
|
|
359
364
|
export type ConfigResponse = z.infer<typeof configResponseSchema>;
|
|
360
365
|
/** The `PUT /api/v1/config` answer: the same shape GET serves (`configAnswer` builds both). */
|
|
@@ -394,6 +399,11 @@ export declare const setConfigResponseSchema: z.ZodObject<{
|
|
|
394
399
|
timeoutSeconds: z.ZodNumber;
|
|
395
400
|
}, z.core.$strip>>;
|
|
396
401
|
worktreeSetupIssue: z.ZodNullable<z.ZodString>;
|
|
402
|
+
worktreeTeardown: z.ZodNullable<z.ZodObject<{
|
|
403
|
+
commands: z.ZodArray<z.ZodString>;
|
|
404
|
+
timeoutSeconds: z.ZodNumber;
|
|
405
|
+
}, z.core.$strip>>;
|
|
406
|
+
worktreeTeardownIssue: z.ZodNullable<z.ZodString>;
|
|
397
407
|
}, z.core.$strip>;
|
|
398
408
|
export type SetConfigResponse = z.infer<typeof setConfigResponseSchema>;
|
|
399
409
|
/**
|
|
@@ -430,6 +440,10 @@ export declare const setConfigInputSchema: z.ZodObject<{
|
|
|
430
440
|
commands: z.ZodArray<z.ZodString>;
|
|
431
441
|
timeoutSeconds: z.ZodOptional<z.ZodNumber>;
|
|
432
442
|
}, z.core.$strict>>>;
|
|
443
|
+
worktreeTeardown: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
444
|
+
commands: z.ZodArray<z.ZodString>;
|
|
445
|
+
timeoutSeconds: z.ZodOptional<z.ZodNumber>;
|
|
446
|
+
}, z.core.$strict>>>;
|
|
433
447
|
}, z.core.$strip>;
|
|
434
448
|
export type SetConfigInput = z.infer<typeof setConfigInputSchema>;
|
|
435
449
|
/** The agent backends are the providers — one alias, never a second enum. */
|
|
@@ -27,6 +27,18 @@ export declare function delegationFailure(error: unknown): {
|
|
|
27
27
|
export declare function createDelegationRoutes(service: DelegationService, credentials: CredentialRegistry): import("hono/hono-base").HonoBase<Env, {
|
|
28
28
|
"/list": {
|
|
29
29
|
$get: {
|
|
30
|
+
output: {
|
|
31
|
+
error: string;
|
|
32
|
+
code?: "invalid_input" | undefined;
|
|
33
|
+
};
|
|
34
|
+
outputFormat: "json";
|
|
35
|
+
status: 400;
|
|
36
|
+
input: {
|
|
37
|
+
query: {
|
|
38
|
+
offset?: string | undefined;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
} | {
|
|
30
42
|
output: {
|
|
31
43
|
workers: {
|
|
32
44
|
workerId: string;
|
|
@@ -64,18 +76,6 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
64
76
|
offset?: string | undefined;
|
|
65
77
|
};
|
|
66
78
|
};
|
|
67
|
-
} | {
|
|
68
|
-
output: {
|
|
69
|
-
error: string;
|
|
70
|
-
code?: "invalid_input" | undefined;
|
|
71
|
-
};
|
|
72
|
-
outputFormat: "json";
|
|
73
|
-
status: 400;
|
|
74
|
-
input: {
|
|
75
|
-
query: {
|
|
76
|
-
offset?: string | undefined;
|
|
77
|
-
};
|
|
78
|
-
};
|
|
79
79
|
};
|
|
80
80
|
};
|
|
81
81
|
} & {
|
|
@@ -613,6 +613,18 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
613
613
|
} & {
|
|
614
614
|
"/:workerId": {
|
|
615
615
|
$get: {
|
|
616
|
+
output: {
|
|
617
|
+
error: string;
|
|
618
|
+
code?: "invalid_input" | undefined;
|
|
619
|
+
};
|
|
620
|
+
outputFormat: "json";
|
|
621
|
+
status: 400;
|
|
622
|
+
input: {
|
|
623
|
+
param: {
|
|
624
|
+
workerId: string;
|
|
625
|
+
};
|
|
626
|
+
};
|
|
627
|
+
} | {
|
|
616
628
|
output: {
|
|
617
629
|
workerId: string;
|
|
618
630
|
parentRunId: string;
|
|
@@ -720,7 +732,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
720
732
|
workerId: string;
|
|
721
733
|
};
|
|
722
734
|
};
|
|
723
|
-
}
|
|
735
|
+
};
|
|
736
|
+
};
|
|
737
|
+
} & {
|
|
738
|
+
"/:workerId/collect": {
|
|
739
|
+
$post: {
|
|
724
740
|
output: {
|
|
725
741
|
error: string;
|
|
726
742
|
code?: "invalid_input" | undefined;
|
|
@@ -731,12 +747,10 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
731
747
|
param: {
|
|
732
748
|
workerId: string;
|
|
733
749
|
};
|
|
750
|
+
} & {
|
|
751
|
+
json: Record<string, never>;
|
|
734
752
|
};
|
|
735
|
-
}
|
|
736
|
-
};
|
|
737
|
-
} & {
|
|
738
|
-
"/:workerId/collect": {
|
|
739
|
-
$post: {
|
|
753
|
+
} | {
|
|
740
754
|
output: {
|
|
741
755
|
workerId: string;
|
|
742
756
|
parentRunId: string;
|
|
@@ -838,7 +852,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
838
852
|
} & {
|
|
839
853
|
json: Record<string, never>;
|
|
840
854
|
};
|
|
841
|
-
}
|
|
855
|
+
};
|
|
856
|
+
};
|
|
857
|
+
} & {
|
|
858
|
+
"/:workerId/steer": {
|
|
859
|
+
$post: {
|
|
842
860
|
output: {
|
|
843
861
|
error: string;
|
|
844
862
|
code?: "invalid_input" | undefined;
|
|
@@ -850,13 +868,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
850
868
|
workerId: string;
|
|
851
869
|
};
|
|
852
870
|
} & {
|
|
853
|
-
json:
|
|
871
|
+
json: {
|
|
872
|
+
text: string;
|
|
873
|
+
};
|
|
854
874
|
};
|
|
855
|
-
}
|
|
856
|
-
};
|
|
857
|
-
} & {
|
|
858
|
-
"/:workerId/steer": {
|
|
859
|
-
$post: {
|
|
875
|
+
} | {
|
|
860
876
|
output: {
|
|
861
877
|
workerId: string;
|
|
862
878
|
state: "delivered" | "queued";
|
|
@@ -872,7 +888,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
872
888
|
text: string;
|
|
873
889
|
};
|
|
874
890
|
};
|
|
875
|
-
}
|
|
891
|
+
};
|
|
892
|
+
};
|
|
893
|
+
} & {
|
|
894
|
+
"/:workerId/stop": {
|
|
895
|
+
$post: {
|
|
876
896
|
output: {
|
|
877
897
|
error: string;
|
|
878
898
|
code?: "invalid_input" | undefined;
|
|
@@ -884,15 +904,9 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
884
904
|
workerId: string;
|
|
885
905
|
};
|
|
886
906
|
} & {
|
|
887
|
-
json:
|
|
888
|
-
text: string;
|
|
889
|
-
};
|
|
907
|
+
json: Record<string, never>;
|
|
890
908
|
};
|
|
891
|
-
}
|
|
892
|
-
};
|
|
893
|
-
} & {
|
|
894
|
-
"/:workerId/stop": {
|
|
895
|
-
$post: {
|
|
909
|
+
} | {
|
|
896
910
|
output: {
|
|
897
911
|
workerId: string;
|
|
898
912
|
state: "stopping" | "terminated";
|
|
@@ -906,7 +920,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
906
920
|
} & {
|
|
907
921
|
json: Record<string, never>;
|
|
908
922
|
};
|
|
909
|
-
}
|
|
923
|
+
};
|
|
924
|
+
};
|
|
925
|
+
} & {
|
|
926
|
+
"/:workerId/destroy": {
|
|
927
|
+
$post: {
|
|
910
928
|
output: {
|
|
911
929
|
error: string;
|
|
912
930
|
code?: "invalid_input" | undefined;
|
|
@@ -920,11 +938,7 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
920
938
|
} & {
|
|
921
939
|
json: Record<string, never>;
|
|
922
940
|
};
|
|
923
|
-
}
|
|
924
|
-
};
|
|
925
|
-
} & {
|
|
926
|
-
"/:workerId/destroy": {
|
|
927
|
-
$post: {
|
|
941
|
+
} | {
|
|
928
942
|
output: {
|
|
929
943
|
workerId: string;
|
|
930
944
|
state: "complete" | "incomplete";
|
|
@@ -947,20 +961,6 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
947
961
|
} & {
|
|
948
962
|
json: Record<string, never>;
|
|
949
963
|
};
|
|
950
|
-
} | {
|
|
951
|
-
output: {
|
|
952
|
-
error: string;
|
|
953
|
-
code?: "invalid_input" | undefined;
|
|
954
|
-
};
|
|
955
|
-
outputFormat: "json";
|
|
956
|
-
status: 400;
|
|
957
|
-
input: {
|
|
958
|
-
param: {
|
|
959
|
-
workerId: string;
|
|
960
|
-
};
|
|
961
|
-
} & {
|
|
962
|
-
json: Record<string, never>;
|
|
963
|
-
};
|
|
964
964
|
} | {
|
|
965
965
|
output: {
|
|
966
966
|
workerId: string;
|
|
@@ -990,13 +990,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
990
990
|
"/:workerId/diff": {
|
|
991
991
|
$get: {
|
|
992
992
|
output: {
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
diff: string;
|
|
996
|
-
truncated: boolean;
|
|
993
|
+
error: string;
|
|
994
|
+
code?: "invalid_input" | undefined;
|
|
997
995
|
};
|
|
998
996
|
outputFormat: "json";
|
|
999
|
-
status:
|
|
997
|
+
status: 400;
|
|
1000
998
|
input: {
|
|
1001
999
|
param: {
|
|
1002
1000
|
workerId: string;
|
|
@@ -1004,11 +1002,13 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
1004
1002
|
};
|
|
1005
1003
|
} | {
|
|
1006
1004
|
output: {
|
|
1007
|
-
|
|
1008
|
-
|
|
1005
|
+
workerId: string;
|
|
1006
|
+
baselineSha: string;
|
|
1007
|
+
diff: string;
|
|
1008
|
+
truncated: boolean;
|
|
1009
1009
|
};
|
|
1010
1010
|
outputFormat: "json";
|
|
1011
|
-
status:
|
|
1011
|
+
status: 200;
|
|
1012
1012
|
input: {
|
|
1013
1013
|
param: {
|
|
1014
1014
|
workerId: string;
|
|
@@ -2,6 +2,18 @@ import type { DelegationRoutes } from './routes.ts';
|
|
|
2
2
|
export declare function createDelegationApp(routes: DelegationRoutes): import("hono/hono-base").HonoBase<import("hono/types").BlankEnv, import("hono/types").BlankSchema | import("hono/types").MergeSchemaPath<{
|
|
3
3
|
"/list": {
|
|
4
4
|
$get: {
|
|
5
|
+
output: {
|
|
6
|
+
error: string;
|
|
7
|
+
code?: "invalid_input" | undefined;
|
|
8
|
+
};
|
|
9
|
+
outputFormat: "json";
|
|
10
|
+
status: 400;
|
|
11
|
+
input: {
|
|
12
|
+
query: {
|
|
13
|
+
offset?: string | undefined;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
} | {
|
|
5
17
|
output: {
|
|
6
18
|
workers: {
|
|
7
19
|
workerId: string;
|
|
@@ -39,18 +51,6 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
39
51
|
offset?: string | undefined;
|
|
40
52
|
};
|
|
41
53
|
};
|
|
42
|
-
} | {
|
|
43
|
-
output: {
|
|
44
|
-
error: string;
|
|
45
|
-
code?: "invalid_input" | undefined;
|
|
46
|
-
};
|
|
47
|
-
outputFormat: "json";
|
|
48
|
-
status: 400;
|
|
49
|
-
input: {
|
|
50
|
-
query: {
|
|
51
|
-
offset?: string | undefined;
|
|
52
|
-
};
|
|
53
|
-
};
|
|
54
54
|
};
|
|
55
55
|
};
|
|
56
56
|
} & {
|
|
@@ -588,6 +588,18 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
588
588
|
} & {
|
|
589
589
|
"/:workerId": {
|
|
590
590
|
$get: {
|
|
591
|
+
output: {
|
|
592
|
+
error: string;
|
|
593
|
+
code?: "invalid_input" | undefined;
|
|
594
|
+
};
|
|
595
|
+
outputFormat: "json";
|
|
596
|
+
status: 400;
|
|
597
|
+
input: {
|
|
598
|
+
param: {
|
|
599
|
+
workerId: string;
|
|
600
|
+
};
|
|
601
|
+
};
|
|
602
|
+
} | {
|
|
591
603
|
output: {
|
|
592
604
|
workerId: string;
|
|
593
605
|
parentRunId: string;
|
|
@@ -695,7 +707,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
695
707
|
workerId: string;
|
|
696
708
|
};
|
|
697
709
|
};
|
|
698
|
-
}
|
|
710
|
+
};
|
|
711
|
+
};
|
|
712
|
+
} & {
|
|
713
|
+
"/:workerId/collect": {
|
|
714
|
+
$post: {
|
|
699
715
|
output: {
|
|
700
716
|
error: string;
|
|
701
717
|
code?: "invalid_input" | undefined;
|
|
@@ -706,12 +722,10 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
706
722
|
param: {
|
|
707
723
|
workerId: string;
|
|
708
724
|
};
|
|
725
|
+
} & {
|
|
726
|
+
json: Record<string, never>;
|
|
709
727
|
};
|
|
710
|
-
}
|
|
711
|
-
};
|
|
712
|
-
} & {
|
|
713
|
-
"/:workerId/collect": {
|
|
714
|
-
$post: {
|
|
728
|
+
} | {
|
|
715
729
|
output: {
|
|
716
730
|
workerId: string;
|
|
717
731
|
parentRunId: string;
|
|
@@ -813,7 +827,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
813
827
|
} & {
|
|
814
828
|
json: Record<string, never>;
|
|
815
829
|
};
|
|
816
|
-
}
|
|
830
|
+
};
|
|
831
|
+
};
|
|
832
|
+
} & {
|
|
833
|
+
"/:workerId/steer": {
|
|
834
|
+
$post: {
|
|
817
835
|
output: {
|
|
818
836
|
error: string;
|
|
819
837
|
code?: "invalid_input" | undefined;
|
|
@@ -825,13 +843,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
825
843
|
workerId: string;
|
|
826
844
|
};
|
|
827
845
|
} & {
|
|
828
|
-
json:
|
|
846
|
+
json: {
|
|
847
|
+
text: string;
|
|
848
|
+
};
|
|
829
849
|
};
|
|
830
|
-
}
|
|
831
|
-
};
|
|
832
|
-
} & {
|
|
833
|
-
"/:workerId/steer": {
|
|
834
|
-
$post: {
|
|
850
|
+
} | {
|
|
835
851
|
output: {
|
|
836
852
|
workerId: string;
|
|
837
853
|
state: "delivered" | "queued";
|
|
@@ -847,7 +863,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
847
863
|
text: string;
|
|
848
864
|
};
|
|
849
865
|
};
|
|
850
|
-
}
|
|
866
|
+
};
|
|
867
|
+
};
|
|
868
|
+
} & {
|
|
869
|
+
"/:workerId/stop": {
|
|
870
|
+
$post: {
|
|
851
871
|
output: {
|
|
852
872
|
error: string;
|
|
853
873
|
code?: "invalid_input" | undefined;
|
|
@@ -859,15 +879,9 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
859
879
|
workerId: string;
|
|
860
880
|
};
|
|
861
881
|
} & {
|
|
862
|
-
json:
|
|
863
|
-
text: string;
|
|
864
|
-
};
|
|
882
|
+
json: Record<string, never>;
|
|
865
883
|
};
|
|
866
|
-
}
|
|
867
|
-
};
|
|
868
|
-
} & {
|
|
869
|
-
"/:workerId/stop": {
|
|
870
|
-
$post: {
|
|
884
|
+
} | {
|
|
871
885
|
output: {
|
|
872
886
|
workerId: string;
|
|
873
887
|
state: "stopping" | "terminated";
|
|
@@ -881,7 +895,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
881
895
|
} & {
|
|
882
896
|
json: Record<string, never>;
|
|
883
897
|
};
|
|
884
|
-
}
|
|
898
|
+
};
|
|
899
|
+
};
|
|
900
|
+
} & {
|
|
901
|
+
"/:workerId/destroy": {
|
|
902
|
+
$post: {
|
|
885
903
|
output: {
|
|
886
904
|
error: string;
|
|
887
905
|
code?: "invalid_input" | undefined;
|
|
@@ -895,11 +913,7 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
895
913
|
} & {
|
|
896
914
|
json: Record<string, never>;
|
|
897
915
|
};
|
|
898
|
-
}
|
|
899
|
-
};
|
|
900
|
-
} & {
|
|
901
|
-
"/:workerId/destroy": {
|
|
902
|
-
$post: {
|
|
916
|
+
} | {
|
|
903
917
|
output: {
|
|
904
918
|
workerId: string;
|
|
905
919
|
state: "complete" | "incomplete";
|
|
@@ -922,20 +936,6 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
922
936
|
} & {
|
|
923
937
|
json: Record<string, never>;
|
|
924
938
|
};
|
|
925
|
-
} | {
|
|
926
|
-
output: {
|
|
927
|
-
error: string;
|
|
928
|
-
code?: "invalid_input" | undefined;
|
|
929
|
-
};
|
|
930
|
-
outputFormat: "json";
|
|
931
|
-
status: 400;
|
|
932
|
-
input: {
|
|
933
|
-
param: {
|
|
934
|
-
workerId: string;
|
|
935
|
-
};
|
|
936
|
-
} & {
|
|
937
|
-
json: Record<string, never>;
|
|
938
|
-
};
|
|
939
939
|
} | {
|
|
940
940
|
output: {
|
|
941
941
|
workerId: string;
|
|
@@ -965,13 +965,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
965
965
|
"/:workerId/diff": {
|
|
966
966
|
$get: {
|
|
967
967
|
output: {
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
diff: string;
|
|
971
|
-
truncated: boolean;
|
|
968
|
+
error: string;
|
|
969
|
+
code?: "invalid_input" | undefined;
|
|
972
970
|
};
|
|
973
971
|
outputFormat: "json";
|
|
974
|
-
status:
|
|
972
|
+
status: 400;
|
|
975
973
|
input: {
|
|
976
974
|
param: {
|
|
977
975
|
workerId: string;
|
|
@@ -979,11 +977,13 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
979
977
|
};
|
|
980
978
|
} | {
|
|
981
979
|
output: {
|
|
982
|
-
|
|
983
|
-
|
|
980
|
+
workerId: string;
|
|
981
|
+
baselineSha: string;
|
|
982
|
+
diff: string;
|
|
983
|
+
truncated: boolean;
|
|
984
984
|
};
|
|
985
985
|
outputFormat: "json";
|
|
986
|
-
status:
|
|
986
|
+
status: 200;
|
|
987
987
|
input: {
|
|
988
988
|
param: {
|
|
989
989
|
workerId: string;
|
|
@@ -59,6 +59,29 @@ export declare function ciProgressPlugs(demand: ActivityDemand): {
|
|
|
59
59
|
export declare function createActivityRoutes(routeDeps: ActivityRouteDeps): import("hono/hono-base").HonoBase<import("hono/types").BlankEnv, {
|
|
60
60
|
"/workspace/activity": {
|
|
61
61
|
$get: {
|
|
62
|
+
output: {
|
|
63
|
+
error: string;
|
|
64
|
+
code?: "invalid_input" | undefined;
|
|
65
|
+
};
|
|
66
|
+
outputFormat: "json";
|
|
67
|
+
status: 400;
|
|
68
|
+
input: {
|
|
69
|
+
query: {
|
|
70
|
+
project?: string | undefined;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
} | {
|
|
74
|
+
output: {
|
|
75
|
+
error: string;
|
|
76
|
+
};
|
|
77
|
+
outputFormat: "json";
|
|
78
|
+
status: 404 | 409 | 503;
|
|
79
|
+
input: {
|
|
80
|
+
query: {
|
|
81
|
+
project?: string | undefined;
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
} | {
|
|
62
85
|
output: {
|
|
63
86
|
generatedAt: string;
|
|
64
87
|
projects: {
|
|
@@ -289,29 +312,6 @@ export declare function createActivityRoutes(routeDeps: ActivityRouteDeps): impo
|
|
|
289
312
|
project?: string | undefined;
|
|
290
313
|
};
|
|
291
314
|
};
|
|
292
|
-
} | {
|
|
293
|
-
output: {
|
|
294
|
-
error: string;
|
|
295
|
-
code?: "invalid_input" | undefined;
|
|
296
|
-
};
|
|
297
|
-
outputFormat: "json";
|
|
298
|
-
status: 400;
|
|
299
|
-
input: {
|
|
300
|
-
query: {
|
|
301
|
-
project?: string | undefined;
|
|
302
|
-
};
|
|
303
|
-
};
|
|
304
|
-
} | {
|
|
305
|
-
output: {
|
|
306
|
-
error: string;
|
|
307
|
-
};
|
|
308
|
-
outputFormat: "json";
|
|
309
|
-
status: 404 | 409 | 503;
|
|
310
|
-
input: {
|
|
311
|
-
query: {
|
|
312
|
-
project?: string | undefined;
|
|
313
|
-
};
|
|
314
|
-
};
|
|
315
315
|
};
|
|
316
316
|
};
|
|
317
317
|
}, "/", "/workspace/activity">;
|
|
@@ -8,15 +8,15 @@ function applyValue(raw, key, value, clear = [null]) {
|
|
|
8
8
|
else
|
|
9
9
|
raw[key] = value;
|
|
10
10
|
}
|
|
11
|
-
function
|
|
12
|
-
// null or no commands = no
|
|
13
|
-
const setup = body
|
|
11
|
+
function applyWorktreeCommands(raw, body, key) {
|
|
12
|
+
// null or no commands = no commands: delete the key rather than store an empty list.
|
|
13
|
+
const setup = body[key];
|
|
14
14
|
if (setup === undefined)
|
|
15
15
|
return;
|
|
16
16
|
if (setup === null || setup.commands.length === 0)
|
|
17
|
-
delete raw
|
|
17
|
+
delete raw[key];
|
|
18
18
|
else
|
|
19
|
-
raw
|
|
19
|
+
raw[key] = {
|
|
20
20
|
commands: setup.commands,
|
|
21
21
|
...(setup.timeoutSeconds !== undefined ? { timeoutSeconds: setup.timeoutSeconds } : {}),
|
|
22
22
|
};
|
|
@@ -52,7 +52,8 @@ const fieldAppliers = {
|
|
|
52
52
|
reviewGate: (raw, body) => applyValue(raw, 'reviewGate', body.reviewGate),
|
|
53
53
|
// null or 0 both mean "no ceiling" — drop the key back to the default.
|
|
54
54
|
memoryLimitMb: (raw, body) => applyValue(raw, 'memoryLimitMb', body.memoryLimitMb, [null, 0]),
|
|
55
|
-
worktreeSetup:
|
|
55
|
+
worktreeSetup: (raw, body) => applyWorktreeCommands(raw, body, 'worktreeSetup'),
|
|
56
|
+
worktreeTeardown: (raw, body) => applyWorktreeCommands(raw, body, 'worktreeTeardown'),
|
|
56
57
|
defaultModels: applyDefaultModels,
|
|
57
58
|
};
|
|
58
59
|
/** Merge parsed config fields without materializing defaults or mutating either input. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config-merge.js","sourceRoot":"","sources":["../../src/server/config-merge.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAKhD,sFAAsF;AACtF,SAAS,UAAU,CAAC,GAAc,EAAE,GAAW,EAAE,KAAc,EAAE,KAAK,GAAuB,CAAC,IAAI,CAAC;IACjG,IAAI,KAAK,KAAK,SAAS;QAAE,OAAO;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