@hearsay-tools/squawk 0.18.0-pr4333.8419 → 0.18.0-pr4333.8429.2
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/index.js +3 -2
- package/dist/contract/live-coordination.d.ts +19 -12
- package/dist/server/activity-routes.d.ts +23 -23
- package/dist/server/models-routes.d.ts +12 -12
- package/dist/server/providers-routes.d.ts +57 -57
- package/dist/server/repo-routes.d.ts +34 -34
- package/dist/server/reports-api.d.ts +2 -2
- package/dist/server/run-event-feed.js +5 -8
- package/dist/server/run-event-feed.js.map +1 -1
- package/dist/server/runs-routes.d.ts +16 -16
- package/dist/server/workspace-routes.d.ts +84 -84
- package/package.json +4 -4
- package/web/dist/assets/{accounts-section-BMRXKB0K.js → accounts-section-CjvjO5Qu.js} +1 -1
- package/web/dist/assets/{activity-motion-gVD--ge4.js → activity-motion-n0OVi-DZ.js} +1 -1
- package/web/dist/assets/{activity-route-CWX-J88D.js → activity-route-Ci8qbn4_.js} +1 -1
- package/web/dist/assets/{agent-config-section-lqhaHUfm.js → agent-config-section-Co6Sw2Mr.js} +1 -1
- package/web/dist/assets/{agent-defaults-section-BpRwjWnW.js → agent-defaults-section-CgwjjolE.js} +1 -1
- package/web/dist/assets/{appearance-DbUwSBla.js → appearance-rrss1mCs.js} +1 -1
- package/web/dist/assets/{archive-on-merge-field-BaI3zkZz.js → archive-on-merge-field-BQXdK50c.js} +1 -1
- package/web/dist/assets/attention-DShuKoMT.js +1 -0
- package/web/dist/assets/{automation-format-DFa2dJpB.js → automation-format-DB34jUyF.js} +1 -1
- package/web/dist/assets/{automations-route-DnLljGOe.js → automations-route-C14yBbWE.js} +1 -1
- package/web/dist/assets/{cez-idle-CQQPAsFw.js → cez-idle-CdswdDRd.js} +1 -1
- package/web/dist/assets/{commit-diff-panel-DmSkLK6z.js → commit-diff-panel-n42LFOZb.js} +1 -1
- package/web/dist/assets/{diff-C6bkVxBX.js → diff-CoFPvlmi.js} +2 -2
- package/web/dist/assets/{diff-view-BxKjBvNz.js → diff-view-DqCPhaqs.js} +1 -1
- package/web/dist/assets/{file-preview-C5lvODKV.js → file-preview-CFomFhSB.js} +1 -1
- package/web/dist/assets/{folder-browser-NHuX2McP.js → folder-browser-Bv_vTEU3.js} +1 -1
- package/web/dist/assets/{git-toolbar-BSdCKArx.js → git-toolbar-CA0fXqNn.js} +1 -1
- package/web/dist/assets/{github-DDwjyqE6.js → github-CI80or4k.js} +1 -1
- package/web/dist/assets/{global-activity-route-CKWY9TlQ.js → global-activity-route-VHxAlSuS.js} +1 -1
- package/web/dist/assets/{index-DSEXAeMd.js → index-Cx1tQubf.js} +5 -5
- package/web/dist/assets/{label-BUGcli3B.js → label-DRrVct19.js} +1 -1
- package/web/dist/assets/{live-protocol-BCxppY0P.js → live-protocol-DMhTnCmf.js} +1 -1
- package/web/dist/assets/{live-reads--ZKnb6uW.js → live-reads-BuThrTt7.js} +1 -1
- package/web/dist/assets/{markdown-DuXTlq7Y.js → markdown-BLl-IzON.js} +1 -1
- package/web/dist/assets/{notifications-section-BjmCZejP.js → notifications-section-C4XlCAwr.js} +1 -1
- package/web/dist/assets/{open-in-menu-D_YU-SuE.js → open-in-menu-DpJFqH3v.js} +1 -1
- package/web/dist/assets/{preview-pane-connected-BhHKfhcN.js → preview-pane-connected-CDCpiDHE.js} +1 -1
- package/web/dist/assets/{project-location-DlTCBar1.js → project-location-DNdux3-n.js} +1 -1
- package/web/dist/assets/{project-router-C8Jcf-ZR.js → project-router-GVIIqwXL.js} +1 -1
- package/web/dist/assets/{project-scope-context-DhJ0VY56.js → project-scope-context-blU6DPq1.js} +1 -1
- package/web/dist/assets/{projects-section-BsN8TYSx.js → projects-section-CV4Wc8fh.js} +1 -1
- package/web/dist/assets/{prompt-templates-section-CxArHWJf.js → prompt-templates-section-D5KQKmEO.js} +1 -1
- package/web/dist/assets/{queries-CTOxyOhx.js → queries-CihFAzQA.js} +1 -1
- package/web/dist/assets/{reference-chip-BLEuYkA-.js → reference-chip-DDmY2Wa2.js} +1 -1
- package/web/dist/assets/{remote-settings-notice-Dgj5YBTq.js → remote-settings-notice-TmYw9s70.js} +1 -1
- package/web/dist/assets/{repo-git-BIuZy0pC.js → repo-git-BTfhYPqO.js} +1 -1
- package/web/dist/assets/{report-reader-lZ-WKRUK.js → report-reader-VnGppjkG.js} +1 -1
- package/web/dist/assets/{reports-BMPzNI7w.js → reports-BJeTfD93.js} +1 -1
- package/web/dist/assets/{resources-section-CQCsfgvD.js → resources-section-BYFFCKTz.js} +1 -1
- package/web/dist/assets/{run-header-DoNYOnOG.js → run-header-Daz4fYae.js} +1 -1
- package/web/dist/assets/{settings-agent-picker-Q8Lbo-vG.js → settings-agent-picker-DKg75h9r.js} +1 -1
- package/web/dist/assets/{settings-shell-CMW6pAry.js → settings-shell-Xm924DtN.js} +1 -1
- package/web/dist/assets/{sidebar-section-B6HQdpc9.js → sidebar-section-CKaBaiTf.js} +1 -1
- package/web/dist/assets/{skills-Cc4mjSbX.js → skills-DGbn4TvW.js} +1 -1
- package/web/dist/assets/{tab-link-Ddb4j0CT.js → tab-link-Bwm_Gn01.js} +1 -1
- package/web/dist/assets/{task-changes-D9SYY-kU.js → task-changes-pnxylgET.js} +1 -1
- package/web/dist/assets/{task-commits-LSbBir7a.js → task-commits-DkwSa7td.js} +1 -1
- package/web/dist/assets/{task-files-D5rsX3ng.js → task-files-BpkNQHX4.js} +1 -1
- package/web/dist/assets/{task-github-item-CPp4W9oi.js → task-github-item-Qg04oIN2.js} +1 -1
- package/web/dist/assets/{task-groups-LWtOTsPI.js → task-groups-AQ1zMByj.js} +1 -1
- package/web/dist/assets/{task-thread-4eqaNvVy.js → task-thread-CfqcAGhD.js} +1 -1
- package/web/dist/assets/{tasks-table-Ck7VU4Of.js → tasks-table-BGoadobM.js} +1 -1
- package/web/dist/assets/{thread-state-M2Oqozde.js → thread-state-DijjDNuu.js} +1 -1
- package/web/dist/assets/{use-hand-to-agent-state-D4kR1KjJ.js → use-hand-to-agent-state-zHQrbFmc.js} +1 -1
- package/web/dist/assets/{useInfiniteQuery-DZgeWSgA.js → useInfiniteQuery-CS_BO-SK.js} +1 -1
- package/web/dist/assets/useQuery-Ys0_fBIg.js +1 -0
- package/web/dist/assets/{workflows-DrYBOpVA.js → workflows-R_qe0qbb.js} +1 -1
- package/web/dist/assets/{workspace-tools-CTIg9k0X.js → workspace-tools-BItb6rI_.js} +1 -1
- package/web/dist/assets/{worktrees-section-Czz2veZ_.js → worktrees-section-BkFBYGMg.js} +1 -1
- package/web/dist/index.html +16 -16
- package/web/dist/live-worker.js +2 -2
- package/web/dist/assets/attention-DKZJuB5W.js +0 -1
- package/web/dist/assets/useQuery-FJU2tzh7.js +0 -1
package/dist/contract/index.js
CHANGED
|
@@ -5291,8 +5291,8 @@ var activityQuerySchema = z39.object({
|
|
|
5291
5291
|
|
|
5292
5292
|
// ../contract/src/live-coordination.ts
|
|
5293
5293
|
import { z as z40 } from "zod";
|
|
5294
|
-
var LIVE_PROTOCOL =
|
|
5295
|
-
var LIVE_WORKER_NAME = "cezar-live-
|
|
5294
|
+
var LIVE_PROTOCOL = 4;
|
|
5295
|
+
var LIVE_WORKER_NAME = "cezar-live-v4";
|
|
5296
5296
|
var LEASE_MS = 15e3;
|
|
5297
5297
|
var RENEW_MS = 5e3;
|
|
5298
5298
|
function allowedLiveRead(path) {
|
|
@@ -5318,6 +5318,7 @@ var ownerInputSchema = z40.discriminatedUnion("type", [
|
|
|
5318
5318
|
workspaceReady: z40.literal(true).optional()
|
|
5319
5319
|
}).refine((value) => new Set(value.entries.map((e) => e.id)).size === value.entries.length),
|
|
5320
5320
|
envelope.extend({ type: z40.literal("ack"), id: z40.string(), seq: z40.number().int().nonnegative() }),
|
|
5321
|
+
envelope.extend({ type: z40.literal("ack-snapshot"), id: z40.string() }),
|
|
5321
5322
|
envelope.extend({ type: z40.literal("refresh"), id: z40.string() })
|
|
5322
5323
|
]);
|
|
5323
5324
|
var wireFrameSchema = z40.object({ event: z40.string(), data: z40.string(), id: z40.string() });
|
|
@@ -4,9 +4,10 @@ import { liveRunFrameSchema } from './live.ts';
|
|
|
4
4
|
* the workspace lane reads `?runs=summary` (hearsay-tools/cezarion#2730), so an old worker that
|
|
5
5
|
* still streams full records never feeds a new document. Version 3: the worker sends a late or
|
|
6
6
|
* rejoining workspace subscriber the stream's `ready`, and the runs index applies only frames of
|
|
7
|
-
* a known generation (hearsay-tools/cezarion#2729); a version-2 worker sends no such `ready`.
|
|
8
|
-
|
|
9
|
-
export declare const
|
|
7
|
+
* a known generation (hearsay-tools/cezarion#2729); a version-2 worker sends no such `ready`.
|
|
8
|
+
* Version 4: snapshot frames and snapshot acks preserve cursors and bound subscriber buffers. */
|
|
9
|
+
export declare const LIVE_PROTOCOL = 4;
|
|
10
|
+
export declare const LIVE_WORKER_NAME = "cezar-live-v4";
|
|
10
11
|
export declare const LEASE_MS = 15000;
|
|
11
12
|
export declare const RENEW_MS = 5000;
|
|
12
13
|
/** Only periodic public cockpit GET families; never arbitrary URLs or mutation execution. */
|
|
@@ -48,7 +49,7 @@ export declare const liveEntrySchema: z.ZodObject<{
|
|
|
48
49
|
}, z.core.$strip>], "kind">;
|
|
49
50
|
}, z.core.$strip>;
|
|
50
51
|
export declare const ownerInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
51
|
-
version: z.ZodLiteral<
|
|
52
|
+
version: z.ZodLiteral<4>;
|
|
52
53
|
documentId: z.ZodString;
|
|
53
54
|
epoch: z.ZodNumber;
|
|
54
55
|
type: z.ZodLiteral<"sync">;
|
|
@@ -73,14 +74,20 @@ export declare const ownerInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
73
74
|
}, z.core.$strip>>;
|
|
74
75
|
workspaceReady: z.ZodOptional<z.ZodLiteral<true>>;
|
|
75
76
|
}, z.core.$strip>, z.ZodObject<{
|
|
76
|
-
version: z.ZodLiteral<
|
|
77
|
+
version: z.ZodLiteral<4>;
|
|
77
78
|
documentId: z.ZodString;
|
|
78
79
|
epoch: z.ZodNumber;
|
|
79
80
|
type: z.ZodLiteral<"ack">;
|
|
80
81
|
id: z.ZodString;
|
|
81
82
|
seq: z.ZodNumber;
|
|
82
83
|
}, z.core.$strip>, z.ZodObject<{
|
|
83
|
-
version: z.ZodLiteral<
|
|
84
|
+
version: z.ZodLiteral<4>;
|
|
85
|
+
documentId: z.ZodString;
|
|
86
|
+
epoch: z.ZodNumber;
|
|
87
|
+
type: z.ZodLiteral<"ack-snapshot">;
|
|
88
|
+
id: z.ZodString;
|
|
89
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
90
|
+
version: z.ZodLiteral<4>;
|
|
84
91
|
documentId: z.ZodString;
|
|
85
92
|
epoch: z.ZodNumber;
|
|
86
93
|
type: z.ZodLiteral<"refresh">;
|
|
@@ -94,19 +101,19 @@ export declare const wireFrameSchema: z.ZodObject<{
|
|
|
94
101
|
}, z.core.$strip>;
|
|
95
102
|
export declare const ownerOutputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
96
103
|
type: z.ZodLiteral<"unavailable">;
|
|
97
|
-
version: z.ZodLiteral<
|
|
104
|
+
version: z.ZodLiteral<4>;
|
|
98
105
|
epoch: z.ZodNumber;
|
|
99
106
|
reason: z.ZodString;
|
|
100
107
|
}, z.core.$strip>, z.ZodObject<{
|
|
101
108
|
type: z.ZodLiteral<"hello">;
|
|
102
|
-
version: z.ZodLiteral<
|
|
109
|
+
version: z.ZodLiteral<4>;
|
|
103
110
|
}, z.core.$strip>, z.ZodObject<{
|
|
104
111
|
type: z.ZodLiteral<"alive">;
|
|
105
|
-
version: z.ZodLiteral<
|
|
112
|
+
version: z.ZodLiteral<4>;
|
|
106
113
|
epoch: z.ZodNumber;
|
|
107
114
|
}, z.core.$strip>, z.ZodObject<{
|
|
108
115
|
type: z.ZodLiteral<"frame">;
|
|
109
|
-
version: z.ZodLiteral<
|
|
116
|
+
version: z.ZodLiteral<4>;
|
|
110
117
|
epoch: z.ZodNumber;
|
|
111
118
|
id: z.ZodString;
|
|
112
119
|
frame: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -155,14 +162,14 @@ export declare const ownerOutputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
155
162
|
}, z.core.$strip>]>]>;
|
|
156
163
|
}, z.core.$strip>, z.ZodObject<{
|
|
157
164
|
type: z.ZodLiteral<"value">;
|
|
158
|
-
version: z.ZodLiteral<
|
|
165
|
+
version: z.ZodLiteral<4>;
|
|
159
166
|
epoch: z.ZodNumber;
|
|
160
167
|
id: z.ZodString;
|
|
161
168
|
value: z.ZodUnknown;
|
|
162
169
|
error: z.ZodOptional<z.ZodString>;
|
|
163
170
|
}, z.core.$strip>, z.ZodObject<{
|
|
164
171
|
type: z.ZodLiteral<"reset">;
|
|
165
|
-
version: z.ZodLiteral<
|
|
172
|
+
version: z.ZodLiteral<4>;
|
|
166
173
|
epoch: z.ZodNumber;
|
|
167
174
|
id: z.ZodString;
|
|
168
175
|
reason: z.ZodString;
|
|
@@ -58,6 +58,29 @@ export declare function ciProgressPlugs(): {
|
|
|
58
58
|
export declare function createActivityRoutes(routeDeps: ActivityRouteDeps): import("hono/hono-base").HonoBase<import("hono/types").BlankEnv, {
|
|
59
59
|
"/workspace/activity": {
|
|
60
60
|
$get: {
|
|
61
|
+
output: {
|
|
62
|
+
error: string;
|
|
63
|
+
code?: "invalid_input" | undefined;
|
|
64
|
+
};
|
|
65
|
+
outputFormat: "json";
|
|
66
|
+
status: 400;
|
|
67
|
+
input: {
|
|
68
|
+
query: {
|
|
69
|
+
project?: string | undefined;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
} | {
|
|
73
|
+
output: {
|
|
74
|
+
error: string;
|
|
75
|
+
};
|
|
76
|
+
outputFormat: "json";
|
|
77
|
+
status: 404 | 409 | 503;
|
|
78
|
+
input: {
|
|
79
|
+
query: {
|
|
80
|
+
project?: string | undefined;
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
} | {
|
|
61
84
|
output: {
|
|
62
85
|
generatedAt: string;
|
|
63
86
|
projects: {
|
|
@@ -304,29 +327,6 @@ export declare function createActivityRoutes(routeDeps: ActivityRouteDeps): impo
|
|
|
304
327
|
project?: string | undefined;
|
|
305
328
|
};
|
|
306
329
|
};
|
|
307
|
-
} | {
|
|
308
|
-
output: {
|
|
309
|
-
error: string;
|
|
310
|
-
code?: "invalid_input" | undefined;
|
|
311
|
-
};
|
|
312
|
-
outputFormat: "json";
|
|
313
|
-
status: 400;
|
|
314
|
-
input: {
|
|
315
|
-
query: {
|
|
316
|
-
project?: string | undefined;
|
|
317
|
-
};
|
|
318
|
-
};
|
|
319
|
-
} | {
|
|
320
|
-
output: {
|
|
321
|
-
error: string;
|
|
322
|
-
};
|
|
323
|
-
outputFormat: "json";
|
|
324
|
-
status: 404 | 409 | 503;
|
|
325
|
-
input: {
|
|
326
|
-
query: {
|
|
327
|
-
project?: string | undefined;
|
|
328
|
-
};
|
|
329
|
-
};
|
|
330
330
|
};
|
|
331
331
|
};
|
|
332
332
|
}, "/", "/workspace/activity">;
|
|
@@ -22,18 +22,6 @@ export declare function createModelsRoutes(options: {
|
|
|
22
22
|
profileId?: string | undefined;
|
|
23
23
|
};
|
|
24
24
|
};
|
|
25
|
-
} | {
|
|
26
|
-
output: {
|
|
27
|
-
error: string;
|
|
28
|
-
};
|
|
29
|
-
outputFormat: "json";
|
|
30
|
-
status: 400;
|
|
31
|
-
input: {
|
|
32
|
-
query: {
|
|
33
|
-
runner: string | string[];
|
|
34
|
-
profileId?: string | undefined;
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
25
|
} | {
|
|
38
26
|
output: {
|
|
39
27
|
runner: string;
|
|
@@ -55,6 +43,18 @@ export declare function createModelsRoutes(options: {
|
|
|
55
43
|
profileId?: string | undefined;
|
|
56
44
|
};
|
|
57
45
|
};
|
|
46
|
+
} | {
|
|
47
|
+
output: {
|
|
48
|
+
error: string;
|
|
49
|
+
};
|
|
50
|
+
outputFormat: "json";
|
|
51
|
+
status: 400;
|
|
52
|
+
input: {
|
|
53
|
+
query: {
|
|
54
|
+
runner: string | string[];
|
|
55
|
+
profileId?: string | undefined;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
58
|
};
|
|
59
59
|
};
|
|
60
60
|
}, "/", "/models">;
|
|
@@ -70,10 +70,18 @@ export declare function createProvidersRoutes(deps: ProvidersRouteDeps): import(
|
|
|
70
70
|
};
|
|
71
71
|
} | {
|
|
72
72
|
output: {
|
|
73
|
-
|
|
73
|
+
providers: {
|
|
74
|
+
requiresAccountHome?: boolean | undefined;
|
|
75
|
+
provider: string;
|
|
76
|
+
status: "connected" | "disconnected" | "not-installed" | "unknown";
|
|
77
|
+
enabled?: boolean | undefined;
|
|
78
|
+
hint?: string | undefined;
|
|
79
|
+
authFailureId?: string | undefined;
|
|
80
|
+
profileId?: string | undefined;
|
|
81
|
+
}[];
|
|
74
82
|
};
|
|
75
83
|
outputFormat: "json";
|
|
76
|
-
status:
|
|
84
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
77
85
|
input: {
|
|
78
86
|
param: {
|
|
79
87
|
provider: string;
|
|
@@ -85,18 +93,10 @@ export declare function createProvidersRoutes(deps: ProvidersRouteDeps): import(
|
|
|
85
93
|
};
|
|
86
94
|
} | {
|
|
87
95
|
output: {
|
|
88
|
-
|
|
89
|
-
requiresAccountHome?: boolean | undefined;
|
|
90
|
-
provider: string;
|
|
91
|
-
status: "connected" | "disconnected" | "not-installed" | "unknown";
|
|
92
|
-
enabled?: boolean | undefined;
|
|
93
|
-
hint?: string | undefined;
|
|
94
|
-
authFailureId?: string | undefined;
|
|
95
|
-
profileId?: string | undefined;
|
|
96
|
-
}[];
|
|
96
|
+
error: string;
|
|
97
97
|
};
|
|
98
98
|
outputFormat: "json";
|
|
99
|
-
status:
|
|
99
|
+
status: 500;
|
|
100
100
|
input: {
|
|
101
101
|
param: {
|
|
102
102
|
provider: string;
|
|
@@ -128,10 +128,18 @@ export declare function createProvidersRoutes(deps: ProvidersRouteDeps): import(
|
|
|
128
128
|
};
|
|
129
129
|
} | {
|
|
130
130
|
output: {
|
|
131
|
-
|
|
131
|
+
providers: {
|
|
132
|
+
requiresAccountHome?: boolean | undefined;
|
|
133
|
+
provider: string;
|
|
134
|
+
status: "connected" | "disconnected" | "not-installed" | "unknown";
|
|
135
|
+
enabled?: boolean | undefined;
|
|
136
|
+
hint?: string | undefined;
|
|
137
|
+
authFailureId?: string | undefined;
|
|
138
|
+
profileId?: string | undefined;
|
|
139
|
+
}[];
|
|
132
140
|
};
|
|
133
141
|
outputFormat: "json";
|
|
134
|
-
status:
|
|
142
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
135
143
|
input: {
|
|
136
144
|
param: {
|
|
137
145
|
provider: string;
|
|
@@ -143,18 +151,10 @@ export declare function createProvidersRoutes(deps: ProvidersRouteDeps): import(
|
|
|
143
151
|
};
|
|
144
152
|
} | {
|
|
145
153
|
output: {
|
|
146
|
-
|
|
147
|
-
requiresAccountHome?: boolean | undefined;
|
|
148
|
-
provider: string;
|
|
149
|
-
status: "connected" | "disconnected" | "not-installed" | "unknown";
|
|
150
|
-
enabled?: boolean | undefined;
|
|
151
|
-
hint?: string | undefined;
|
|
152
|
-
authFailureId?: string | undefined;
|
|
153
|
-
profileId?: string | undefined;
|
|
154
|
-
}[];
|
|
154
|
+
error: string;
|
|
155
155
|
};
|
|
156
156
|
outputFormat: "json";
|
|
157
|
-
status:
|
|
157
|
+
status: 409;
|
|
158
158
|
input: {
|
|
159
159
|
param: {
|
|
160
160
|
provider: string;
|
|
@@ -173,7 +173,7 @@ export declare function createProvidersRoutes(deps: ProvidersRouteDeps): import(
|
|
|
173
173
|
error: string;
|
|
174
174
|
};
|
|
175
175
|
outputFormat: "json";
|
|
176
|
-
status:
|
|
176
|
+
status: 409;
|
|
177
177
|
input: {
|
|
178
178
|
json: {
|
|
179
179
|
provider: string;
|
|
@@ -185,7 +185,7 @@ export declare function createProvidersRoutes(deps: ProvidersRouteDeps): import(
|
|
|
185
185
|
error: string;
|
|
186
186
|
};
|
|
187
187
|
outputFormat: "json";
|
|
188
|
-
status:
|
|
188
|
+
status: 400;
|
|
189
189
|
input: {
|
|
190
190
|
json: {
|
|
191
191
|
provider: string;
|
|
@@ -290,28 +290,10 @@ export declare function createAgentProfilesRoutes(deps: AgentProfilesRouteDeps):
|
|
|
290
290
|
"/workspace/agent-profiles": {
|
|
291
291
|
$post: {
|
|
292
292
|
output: {
|
|
293
|
-
|
|
294
|
-
id: string;
|
|
295
|
-
provider: string;
|
|
296
|
-
label: string;
|
|
297
|
-
configDir?: string | undefined;
|
|
298
|
-
path?: string | undefined;
|
|
299
|
-
exists: boolean;
|
|
300
|
-
looksValid: boolean;
|
|
301
|
-
isDefault: boolean;
|
|
302
|
-
status?: {
|
|
303
|
-
requiresAccountHome?: boolean | undefined;
|
|
304
|
-
provider: string;
|
|
305
|
-
status: "connected" | "disconnected" | "not-installed" | "unknown";
|
|
306
|
-
enabled?: boolean | undefined;
|
|
307
|
-
hint?: string | undefined;
|
|
308
|
-
authFailureId?: string | undefined;
|
|
309
|
-
profileId?: string | undefined;
|
|
310
|
-
} | undefined;
|
|
311
|
-
};
|
|
293
|
+
error: string;
|
|
312
294
|
};
|
|
313
295
|
outputFormat: "json";
|
|
314
|
-
status:
|
|
296
|
+
status: 409;
|
|
315
297
|
input: {
|
|
316
298
|
json: {
|
|
317
299
|
provider: string;
|
|
@@ -337,7 +319,7 @@ export declare function createAgentProfilesRoutes(deps: AgentProfilesRouteDeps):
|
|
|
337
319
|
error: string;
|
|
338
320
|
};
|
|
339
321
|
outputFormat: "json";
|
|
340
|
-
status:
|
|
322
|
+
status: 500;
|
|
341
323
|
input: {
|
|
342
324
|
json: {
|
|
343
325
|
provider: string;
|
|
@@ -347,10 +329,28 @@ export declare function createAgentProfilesRoutes(deps: AgentProfilesRouteDeps):
|
|
|
347
329
|
};
|
|
348
330
|
} | {
|
|
349
331
|
output: {
|
|
350
|
-
|
|
332
|
+
profile: {
|
|
333
|
+
id: string;
|
|
334
|
+
provider: string;
|
|
335
|
+
label: string;
|
|
336
|
+
configDir?: string | undefined;
|
|
337
|
+
path?: string | undefined;
|
|
338
|
+
exists: boolean;
|
|
339
|
+
looksValid: boolean;
|
|
340
|
+
isDefault: boolean;
|
|
341
|
+
status?: {
|
|
342
|
+
requiresAccountHome?: boolean | undefined;
|
|
343
|
+
provider: string;
|
|
344
|
+
status: "connected" | "disconnected" | "not-installed" | "unknown";
|
|
345
|
+
enabled?: boolean | undefined;
|
|
346
|
+
hint?: string | undefined;
|
|
347
|
+
authFailureId?: string | undefined;
|
|
348
|
+
profileId?: string | undefined;
|
|
349
|
+
} | undefined;
|
|
350
|
+
};
|
|
351
351
|
};
|
|
352
352
|
outputFormat: "json";
|
|
353
|
-
status:
|
|
353
|
+
status: 201;
|
|
354
354
|
input: {
|
|
355
355
|
json: {
|
|
356
356
|
provider: string;
|
|
@@ -384,7 +384,7 @@ export declare function createAgentProfilesRoutes(deps: AgentProfilesRouteDeps):
|
|
|
384
384
|
error: string;
|
|
385
385
|
};
|
|
386
386
|
outputFormat: "json";
|
|
387
|
-
status:
|
|
387
|
+
status: 409;
|
|
388
388
|
input: {
|
|
389
389
|
param: {
|
|
390
390
|
id: string;
|
|
@@ -400,7 +400,7 @@ export declare function createAgentProfilesRoutes(deps: AgentProfilesRouteDeps):
|
|
|
400
400
|
error: string;
|
|
401
401
|
};
|
|
402
402
|
outputFormat: "json";
|
|
403
|
-
status:
|
|
403
|
+
status: 400;
|
|
404
404
|
input: {
|
|
405
405
|
param: {
|
|
406
406
|
id: string;
|
|
@@ -416,7 +416,7 @@ export declare function createAgentProfilesRoutes(deps: AgentProfilesRouteDeps):
|
|
|
416
416
|
error: string;
|
|
417
417
|
};
|
|
418
418
|
outputFormat: "json";
|
|
419
|
-
status:
|
|
419
|
+
status: 404;
|
|
420
420
|
input: {
|
|
421
421
|
param: {
|
|
422
422
|
id: string;
|
|
@@ -544,7 +544,7 @@ export declare function createAgentProfilesRoutes(deps: AgentProfilesRouteDeps):
|
|
|
544
544
|
error: string;
|
|
545
545
|
};
|
|
546
546
|
outputFormat: "json";
|
|
547
|
-
status:
|
|
547
|
+
status: 404;
|
|
548
548
|
input: {
|
|
549
549
|
json: {
|
|
550
550
|
projectId: string;
|
|
@@ -557,7 +557,7 @@ export declare function createAgentProfilesRoutes(deps: AgentProfilesRouteDeps):
|
|
|
557
557
|
error: string;
|
|
558
558
|
};
|
|
559
559
|
outputFormat: "json";
|
|
560
|
-
status:
|
|
560
|
+
status: 400;
|
|
561
561
|
input: {
|
|
562
562
|
json: {
|
|
563
563
|
projectId: string;
|
|
@@ -621,7 +621,7 @@ export declare function createAgentProfilesRoutes(deps: AgentProfilesRouteDeps):
|
|
|
621
621
|
error: string;
|
|
622
622
|
};
|
|
623
623
|
outputFormat: "json";
|
|
624
|
-
status:
|
|
624
|
+
status: 409;
|
|
625
625
|
input: {
|
|
626
626
|
param: {
|
|
627
627
|
id: string;
|
|
@@ -632,7 +632,7 @@ export declare function createAgentProfilesRoutes(deps: AgentProfilesRouteDeps):
|
|
|
632
632
|
error: string;
|
|
633
633
|
};
|
|
634
634
|
outputFormat: "json";
|
|
635
|
-
status:
|
|
635
|
+
status: 500;
|
|
636
636
|
input: {
|
|
637
637
|
param: {
|
|
638
638
|
id: string;
|
|
@@ -643,7 +643,7 @@ export declare function createAgentProfilesRoutes(deps: AgentProfilesRouteDeps):
|
|
|
643
643
|
error: string;
|
|
644
644
|
};
|
|
645
645
|
outputFormat: "json";
|
|
646
|
-
status:
|
|
646
|
+
status: 404;
|
|
647
647
|
input: {
|
|
648
648
|
param: {
|
|
649
649
|
id: string;
|
|
@@ -31,7 +31,7 @@ export declare function createOpenTargetsRoutes(deps: OpenTargetsRouteDeps): imp
|
|
|
31
31
|
error: string;
|
|
32
32
|
};
|
|
33
33
|
outputFormat: "json";
|
|
34
|
-
status:
|
|
34
|
+
status: 409;
|
|
35
35
|
input: {
|
|
36
36
|
json: {
|
|
37
37
|
target: string;
|
|
@@ -42,7 +42,7 @@ export declare function createOpenTargetsRoutes(deps: OpenTargetsRouteDeps): imp
|
|
|
42
42
|
error: string;
|
|
43
43
|
};
|
|
44
44
|
outputFormat: "json";
|
|
45
|
-
status:
|
|
45
|
+
status: 400;
|
|
46
46
|
input: {
|
|
47
47
|
json: {
|
|
48
48
|
target: string;
|
|
@@ -120,11 +120,10 @@ export declare function createWorktreesRoutes(deps: WorktreesRouteDeps): import(
|
|
|
120
120
|
};
|
|
121
121
|
} | {
|
|
122
122
|
output: {
|
|
123
|
-
|
|
124
|
-
worktreeReclaimedAt: string;
|
|
123
|
+
error: string;
|
|
125
124
|
};
|
|
126
125
|
outputFormat: "json";
|
|
127
|
-
status:
|
|
126
|
+
status: 404 | 409;
|
|
128
127
|
input: {
|
|
129
128
|
param: {
|
|
130
129
|
runId: string;
|
|
@@ -132,10 +131,11 @@ export declare function createWorktreesRoutes(deps: WorktreesRouteDeps): import(
|
|
|
132
131
|
};
|
|
133
132
|
} | {
|
|
134
133
|
output: {
|
|
135
|
-
|
|
134
|
+
runId: string;
|
|
135
|
+
worktreeReclaimedAt: string;
|
|
136
136
|
};
|
|
137
137
|
outputFormat: "json";
|
|
138
|
-
status:
|
|
138
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
139
139
|
input: {
|
|
140
140
|
param: {
|
|
141
141
|
runId: string;
|
|
@@ -267,18 +267,14 @@ export declare function createRepoRoutes(deps: RepoRouteDeps): import("hono/hono
|
|
|
267
267
|
"/repo/branches/delete": {
|
|
268
268
|
$post: {
|
|
269
269
|
output: {
|
|
270
|
-
|
|
270
|
+
error: string;
|
|
271
271
|
refused: {
|
|
272
272
|
name: string;
|
|
273
273
|
reason: string;
|
|
274
274
|
}[];
|
|
275
|
-
dropped?: {
|
|
276
|
-
sha: string;
|
|
277
|
-
subject: string;
|
|
278
|
-
}[] | undefined;
|
|
279
275
|
};
|
|
280
276
|
outputFormat: "json";
|
|
281
|
-
status:
|
|
277
|
+
status: 409;
|
|
282
278
|
input: {
|
|
283
279
|
json: {
|
|
284
280
|
names: string[];
|
|
@@ -287,14 +283,18 @@ export declare function createRepoRoutes(deps: RepoRouteDeps): import("hono/hono
|
|
|
287
283
|
};
|
|
288
284
|
} | {
|
|
289
285
|
output: {
|
|
290
|
-
|
|
286
|
+
deleted: string[];
|
|
291
287
|
refused: {
|
|
292
288
|
name: string;
|
|
293
289
|
reason: string;
|
|
294
290
|
}[];
|
|
291
|
+
dropped?: {
|
|
292
|
+
sha: string;
|
|
293
|
+
subject: string;
|
|
294
|
+
}[] | undefined;
|
|
295
295
|
};
|
|
296
296
|
outputFormat: "json";
|
|
297
|
-
status:
|
|
297
|
+
status: 200;
|
|
298
298
|
input: {
|
|
299
299
|
json: {
|
|
300
300
|
names: string[];
|
|
@@ -315,6 +315,19 @@ export declare function createRepoRoutes(deps: RepoRouteDeps): import("hono/hono
|
|
|
315
315
|
} & {
|
|
316
316
|
"/repo/commit/:sha": {
|
|
317
317
|
$get: {
|
|
318
|
+
output: string;
|
|
319
|
+
outputFormat: "text";
|
|
320
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
321
|
+
input: {
|
|
322
|
+
query: {
|
|
323
|
+
structured?: string | undefined;
|
|
324
|
+
};
|
|
325
|
+
} & {
|
|
326
|
+
param: {
|
|
327
|
+
sha: string;
|
|
328
|
+
};
|
|
329
|
+
};
|
|
330
|
+
} | {
|
|
318
331
|
output: {
|
|
319
332
|
error: string;
|
|
320
333
|
code?: "invalid_input" | undefined;
|
|
@@ -378,19 +391,6 @@ export declare function createRepoRoutes(deps: RepoRouteDeps): import("hono/hono
|
|
|
378
391
|
sha: string;
|
|
379
392
|
};
|
|
380
393
|
};
|
|
381
|
-
} | {
|
|
382
|
-
output: string;
|
|
383
|
-
outputFormat: "text";
|
|
384
|
-
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
385
|
-
input: {
|
|
386
|
-
query: {
|
|
387
|
-
structured?: string | undefined;
|
|
388
|
-
};
|
|
389
|
-
} & {
|
|
390
|
-
param: {
|
|
391
|
-
sha: string;
|
|
392
|
-
};
|
|
393
|
-
};
|
|
394
394
|
};
|
|
395
395
|
};
|
|
396
396
|
} & {
|
|
@@ -451,12 +451,10 @@ export declare function createRepoRoutes(deps: RepoRouteDeps): import("hono/hono
|
|
|
451
451
|
"/repo/pull": {
|
|
452
452
|
$post: {
|
|
453
453
|
output: {
|
|
454
|
-
|
|
455
|
-
pulled: true;
|
|
456
|
-
summary: string;
|
|
454
|
+
error: string;
|
|
457
455
|
};
|
|
458
456
|
outputFormat: "json";
|
|
459
|
-
status:
|
|
457
|
+
status: 409;
|
|
460
458
|
input: {
|
|
461
459
|
json: {
|
|
462
460
|
branch?: string | undefined;
|
|
@@ -465,10 +463,12 @@ export declare function createRepoRoutes(deps: RepoRouteDeps): import("hono/hono
|
|
|
465
463
|
};
|
|
466
464
|
} | {
|
|
467
465
|
output: {
|
|
468
|
-
|
|
466
|
+
branch: string;
|
|
467
|
+
pulled: true;
|
|
468
|
+
summary: string;
|
|
469
469
|
};
|
|
470
470
|
outputFormat: "json";
|
|
471
|
-
status:
|
|
471
|
+
status: 200;
|
|
472
472
|
input: {
|
|
473
473
|
json: {
|
|
474
474
|
branch?: string | undefined;
|
|
@@ -40,7 +40,7 @@ export declare const reportsRoutes: import("hono/hono-base").HonoBase<ProjectApi
|
|
|
40
40
|
error: string;
|
|
41
41
|
};
|
|
42
42
|
outputFormat: "json";
|
|
43
|
-
status:
|
|
43
|
+
status: 409;
|
|
44
44
|
input: {
|
|
45
45
|
query: {
|
|
46
46
|
q?: string | undefined;
|
|
@@ -53,7 +53,7 @@ export declare const reportsRoutes: import("hono/hono-base").HonoBase<ProjectApi
|
|
|
53
53
|
error: string;
|
|
54
54
|
};
|
|
55
55
|
outputFormat: "json";
|
|
56
|
-
status:
|
|
56
|
+
status: 400;
|
|
57
57
|
input: {
|
|
58
58
|
query: {
|
|
59
59
|
q?: string | undefined;
|
|
@@ -149,14 +149,11 @@ export async function readFiniteRunFeed(context, demand, signal) {
|
|
|
149
149
|
}
|
|
150
150
|
}
|
|
151
151
|
/** Snapshot delivery restores open items without acknowledging any event sequence. */
|
|
152
|
-
async function
|
|
152
|
+
async function replaySnapshots(snapshot, write, stopped, signal) {
|
|
153
153
|
for (const event of snapshot.events) {
|
|
154
|
-
if (event.seq > afterSeq)
|
|
155
|
-
continue;
|
|
156
154
|
await Promise.race([write?.(event), stopped]);
|
|
157
155
|
signal.throwIfAborted();
|
|
158
156
|
}
|
|
159
|
-
snapshot.events = snapshot.events.filter(event => event.seq > afterSeq);
|
|
160
157
|
}
|
|
161
158
|
/** Attach before reading; serialize replay and live writes; bound slow-client memory. */
|
|
162
159
|
export async function subscribeRunFeed(context, demand, handlers, signal, byteLimit = LIVE_BYTE_LIMIT) {
|
|
@@ -182,7 +179,7 @@ export async function subscribeRunFeed(context, demand, handlers, signal, byteLi
|
|
|
182
179
|
const onEvent = ({ runId, event }) => {
|
|
183
180
|
if (runId !== demand.runId || controller.signal.aborted)
|
|
184
181
|
return;
|
|
185
|
-
|
|
182
|
+
diskSnapshot.throughSeq = Math.min(diskSnapshot.throughSeq, event.seq - 1);
|
|
186
183
|
if (event.seq <= maxSeq)
|
|
187
184
|
return;
|
|
188
185
|
const bytes = Buffer.byteLength(JSON.stringify(event));
|
|
@@ -201,6 +198,7 @@ export async function subscribeRunFeed(context, demand, handlers, signal, byteLi
|
|
|
201
198
|
reset('run removed'); },
|
|
202
199
|
});
|
|
203
200
|
const liveSnapshot = context.store.liveReadSnapshot(demand.runId);
|
|
201
|
+
const diskSnapshot = { throughSeq: liveSnapshot.throughSeq, events: [] };
|
|
204
202
|
const detached = () => {
|
|
205
203
|
unsubscribe();
|
|
206
204
|
pending = [];
|
|
@@ -210,11 +208,9 @@ export async function subscribeRunFeed(context, demand, handlers, signal, byteLi
|
|
|
210
208
|
try {
|
|
211
209
|
if (demand.cursor)
|
|
212
210
|
maxSeq = Math.max(maxSeq, decodeLiveCursor(demand.cursor).boundarySeq);
|
|
213
|
-
await replayLowSnapshots(liveSnapshot, maxSeq, handlers.snapshot, stopped, controller.signal);
|
|
214
211
|
let cursor = demand.cursor;
|
|
215
212
|
do {
|
|
216
|
-
|
|
217
|
-
const { batch, sizeLimited } = await scanRunEventBatch(context.store.claims.sourceDataDir(demand.runId), { ...demand, ...(cursor ? { cursor } : {}), afterSeq: maxSeq }, controller.signal, byteLimit, liveSnapshot);
|
|
213
|
+
const { batch, sizeLimited } = await scanRunEventBatch(context.store.claims.sourceDataDir(demand.runId), { ...demand, ...(cursor ? { cursor } : {}), afterSeq: maxSeq }, controller.signal, byteLimit, diskSnapshot);
|
|
218
214
|
for (const event of batch.events) {
|
|
219
215
|
controller.signal.throwIfAborted();
|
|
220
216
|
if (event.seq <= maxSeq)
|
|
@@ -227,6 +223,7 @@ export async function subscribeRunFeed(context, demand, handlers, signal, byteLi
|
|
|
227
223
|
if (!sizeLimited)
|
|
228
224
|
break;
|
|
229
225
|
} while (!controller.signal.aborted);
|
|
226
|
+
await replaySnapshots(liveSnapshot, handlers.snapshot, stopped, controller.signal);
|
|
230
227
|
while (!controller.signal.aborted) {
|
|
231
228
|
// RunStore assigns one monotonic clock per run; ignore duplicate/reordered replays.
|
|
232
229
|
const next = pending[head];
|