@hearsay-tools/squawk 0.18.0-dev.8459 → 0.18.0-dev.8468
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/core/managed-session.d.ts +5 -0
- package/dist/core/managed-session.js +25 -0
- package/dist/core/managed-session.js.map +1 -1
- package/dist/runners/antigravity/acp/events.d.ts +5 -3
- package/dist/runners/antigravity/acp/events.js +11 -8
- package/dist/runners/antigravity/acp/events.js.map +1 -1
- package/dist/runners/claude/claude-cli-runner.d.ts +2 -0
- package/dist/runners/claude/claude-cli-runner.js +6 -1
- package/dist/runners/claude/claude-cli-runner.js.map +1 -1
- package/dist/runners/claude/claude-partial-messages.d.ts +32 -0
- package/dist/runners/claude/claude-partial-messages.js +129 -0
- package/dist/runners/claude/claude-partial-messages.js.map +1 -0
- package/dist/runners/claude/claude-stream.d.ts +1 -0
- package/dist/runners/claude/claude-stream.js +32 -1
- package/dist/runners/claude/claude-stream.js.map +1 -1
- package/dist/runners/claude/claude-ui-mapper.d.ts +2 -1
- package/dist/runners/claude/claude-ui-mapper.js +14 -2
- package/dist/runners/claude/claude-ui-mapper.js.map +1 -1
- 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/server.d.ts +58 -58
- package/dist/server/workspace-routes.d.ts +84 -84
- package/dist/workflows/run/session-events.js +16 -0
- package/dist/workflows/run/session-events.js.map +1 -1
- package/package.json +4 -4
|
@@ -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;
|
package/dist/server/server.d.ts
CHANGED
|
@@ -4616,19 +4616,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
4616
4616
|
} & {
|
|
4617
4617
|
"/repo/commit/:sha": {
|
|
4618
4618
|
$get: {
|
|
4619
|
-
output: string;
|
|
4620
|
-
outputFormat: "text";
|
|
4621
|
-
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
4622
|
-
input: {
|
|
4623
|
-
query: {
|
|
4624
|
-
structured?: string | undefined;
|
|
4625
|
-
};
|
|
4626
|
-
} & {
|
|
4627
|
-
param: {
|
|
4628
|
-
sha: string;
|
|
4629
|
-
};
|
|
4630
|
-
};
|
|
4631
|
-
} | {
|
|
4632
4619
|
output: {
|
|
4633
4620
|
error: string;
|
|
4634
4621
|
code?: "invalid_input" | undefined;
|
|
@@ -4692,6 +4679,19 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
4692
4679
|
sha: string;
|
|
4693
4680
|
};
|
|
4694
4681
|
};
|
|
4682
|
+
} | {
|
|
4683
|
+
output: string;
|
|
4684
|
+
outputFormat: "text";
|
|
4685
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
4686
|
+
input: {
|
|
4687
|
+
query: {
|
|
4688
|
+
structured?: string | undefined;
|
|
4689
|
+
};
|
|
4690
|
+
} & {
|
|
4691
|
+
param: {
|
|
4692
|
+
sha: string;
|
|
4693
|
+
};
|
|
4694
|
+
};
|
|
4695
4695
|
};
|
|
4696
4696
|
};
|
|
4697
4697
|
} & {
|
|
@@ -19159,20 +19159,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
19159
19159
|
} & {
|
|
19160
19160
|
"/runs/:id/handoff": {
|
|
19161
19161
|
$get: {
|
|
19162
|
-
output:
|
|
19163
|
-
|
|
19164
|
-
|
|
19162
|
+
output: {
|
|
19163
|
+
error: string;
|
|
19164
|
+
};
|
|
19165
|
+
outputFormat: "json";
|
|
19166
|
+
status: 404;
|
|
19165
19167
|
input: {
|
|
19166
19168
|
param: {
|
|
19167
19169
|
id: string;
|
|
19168
19170
|
};
|
|
19169
19171
|
};
|
|
19170
19172
|
} | {
|
|
19171
|
-
output:
|
|
19172
|
-
|
|
19173
|
-
|
|
19174
|
-
outputFormat: "json";
|
|
19175
|
-
status: 404;
|
|
19173
|
+
output: string;
|
|
19174
|
+
outputFormat: "text";
|
|
19175
|
+
status: 200;
|
|
19176
19176
|
input: {
|
|
19177
19177
|
param: {
|
|
19178
19178
|
id: string;
|
|
@@ -19210,20 +19210,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
19210
19210
|
} & {
|
|
19211
19211
|
"/runs/:id/diff": {
|
|
19212
19212
|
$get: {
|
|
19213
|
-
output:
|
|
19214
|
-
|
|
19215
|
-
|
|
19213
|
+
output: {
|
|
19214
|
+
error: string;
|
|
19215
|
+
};
|
|
19216
|
+
outputFormat: "json";
|
|
19217
|
+
status: 404 | 409;
|
|
19216
19218
|
input: {
|
|
19217
19219
|
param: {
|
|
19218
19220
|
id: string;
|
|
19219
19221
|
};
|
|
19220
19222
|
};
|
|
19221
19223
|
} | {
|
|
19222
|
-
output:
|
|
19223
|
-
|
|
19224
|
-
|
|
19225
|
-
outputFormat: "json";
|
|
19226
|
-
status: 404 | 409;
|
|
19224
|
+
output: string;
|
|
19225
|
+
outputFormat: "text";
|
|
19226
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
19227
19227
|
input: {
|
|
19228
19228
|
param: {
|
|
19229
19229
|
id: string;
|
|
@@ -21257,19 +21257,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
21257
21257
|
} & {
|
|
21258
21258
|
"/repo/commit/:sha": {
|
|
21259
21259
|
$get: {
|
|
21260
|
-
output: string;
|
|
21261
|
-
outputFormat: "text";
|
|
21262
|
-
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
21263
|
-
input: {
|
|
21264
|
-
query: {
|
|
21265
|
-
structured?: string | undefined;
|
|
21266
|
-
};
|
|
21267
|
-
} & {
|
|
21268
|
-
param: {
|
|
21269
|
-
sha: string;
|
|
21270
|
-
};
|
|
21271
|
-
};
|
|
21272
|
-
} | {
|
|
21273
21260
|
output: {
|
|
21274
21261
|
error: string;
|
|
21275
21262
|
code?: "invalid_input" | undefined;
|
|
@@ -21333,6 +21320,19 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
21333
21320
|
sha: string;
|
|
21334
21321
|
};
|
|
21335
21322
|
};
|
|
21323
|
+
} | {
|
|
21324
|
+
output: string;
|
|
21325
|
+
outputFormat: "text";
|
|
21326
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
21327
|
+
input: {
|
|
21328
|
+
query: {
|
|
21329
|
+
structured?: string | undefined;
|
|
21330
|
+
};
|
|
21331
|
+
} & {
|
|
21332
|
+
param: {
|
|
21333
|
+
sha: string;
|
|
21334
|
+
};
|
|
21335
|
+
};
|
|
21336
21336
|
};
|
|
21337
21337
|
};
|
|
21338
21338
|
} & {
|
|
@@ -35800,20 +35800,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
35800
35800
|
} & {
|
|
35801
35801
|
"/runs/:id/handoff": {
|
|
35802
35802
|
$get: {
|
|
35803
|
-
output:
|
|
35804
|
-
|
|
35805
|
-
|
|
35803
|
+
output: {
|
|
35804
|
+
error: string;
|
|
35805
|
+
};
|
|
35806
|
+
outputFormat: "json";
|
|
35807
|
+
status: 404;
|
|
35806
35808
|
input: {
|
|
35807
35809
|
param: {
|
|
35808
35810
|
id: string;
|
|
35809
35811
|
};
|
|
35810
35812
|
};
|
|
35811
35813
|
} | {
|
|
35812
|
-
output:
|
|
35813
|
-
|
|
35814
|
-
|
|
35815
|
-
outputFormat: "json";
|
|
35816
|
-
status: 404;
|
|
35814
|
+
output: string;
|
|
35815
|
+
outputFormat: "text";
|
|
35816
|
+
status: 200;
|
|
35817
35817
|
input: {
|
|
35818
35818
|
param: {
|
|
35819
35819
|
id: string;
|
|
@@ -35851,20 +35851,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
35851
35851
|
} & {
|
|
35852
35852
|
"/runs/:id/diff": {
|
|
35853
35853
|
$get: {
|
|
35854
|
-
output:
|
|
35855
|
-
|
|
35856
|
-
|
|
35854
|
+
output: {
|
|
35855
|
+
error: string;
|
|
35856
|
+
};
|
|
35857
|
+
outputFormat: "json";
|
|
35858
|
+
status: 404 | 409;
|
|
35857
35859
|
input: {
|
|
35858
35860
|
param: {
|
|
35859
35861
|
id: string;
|
|
35860
35862
|
};
|
|
35861
35863
|
};
|
|
35862
35864
|
} | {
|
|
35863
|
-
output:
|
|
35864
|
-
|
|
35865
|
-
|
|
35866
|
-
outputFormat: "json";
|
|
35867
|
-
status: 404 | 409;
|
|
35865
|
+
output: string;
|
|
35866
|
+
outputFormat: "text";
|
|
35867
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
35868
35868
|
input: {
|
|
35869
35869
|
param: {
|
|
35870
35870
|
id: string;
|
|
@@ -51,10 +51,34 @@ export declare function createWorkspaceConfigRoutes(deps: WorkspaceConfigRouteDe
|
|
|
51
51
|
"/workspace/config": {
|
|
52
52
|
$put: {
|
|
53
53
|
output: {
|
|
54
|
-
|
|
54
|
+
browseRoot: string;
|
|
55
|
+
projectsDir: string;
|
|
56
|
+
archiveOnMerge: boolean | null;
|
|
57
|
+
effectiveArchiveOnMerge: boolean;
|
|
58
|
+
archiveOnMergeSource: "default" | "environment" | "global";
|
|
59
|
+
composerDefaults: {
|
|
60
|
+
autonomous: boolean | null;
|
|
61
|
+
worktree: boolean | null;
|
|
62
|
+
inheritedAutonomous: "source-dependent" | boolean;
|
|
63
|
+
inheritedWorktree: boolean;
|
|
64
|
+
};
|
|
65
|
+
resources: {
|
|
66
|
+
maxParallel: number;
|
|
67
|
+
maxMonitoringSessions: number;
|
|
68
|
+
monitoringWakeIntervalMinutes: number | null;
|
|
69
|
+
autoResumeOnUsageLimit: boolean;
|
|
70
|
+
memoryLimitMb: number | null;
|
|
71
|
+
worktreeRetentionDefault: number;
|
|
72
|
+
};
|
|
73
|
+
agentDefaults: {
|
|
74
|
+
runner?: string | undefined;
|
|
75
|
+
models?: {
|
|
76
|
+
[x: string]: string | undefined;
|
|
77
|
+
} | undefined;
|
|
78
|
+
};
|
|
55
79
|
};
|
|
56
80
|
outputFormat: "json";
|
|
57
|
-
status:
|
|
81
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
58
82
|
input: {
|
|
59
83
|
json: {
|
|
60
84
|
browseRoot?: string | undefined;
|
|
@@ -83,7 +107,7 @@ export declare function createWorkspaceConfigRoutes(deps: WorkspaceConfigRouteDe
|
|
|
83
107
|
error: string;
|
|
84
108
|
};
|
|
85
109
|
outputFormat: "json";
|
|
86
|
-
status:
|
|
110
|
+
status: 400;
|
|
87
111
|
input: {
|
|
88
112
|
json: {
|
|
89
113
|
browseRoot?: string | undefined;
|
|
@@ -109,34 +133,10 @@ export declare function createWorkspaceConfigRoutes(deps: WorkspaceConfigRouteDe
|
|
|
109
133
|
};
|
|
110
134
|
} | {
|
|
111
135
|
output: {
|
|
112
|
-
|
|
113
|
-
projectsDir: string;
|
|
114
|
-
archiveOnMerge: boolean | null;
|
|
115
|
-
effectiveArchiveOnMerge: boolean;
|
|
116
|
-
archiveOnMergeSource: "default" | "environment" | "global";
|
|
117
|
-
composerDefaults: {
|
|
118
|
-
autonomous: boolean | null;
|
|
119
|
-
worktree: boolean | null;
|
|
120
|
-
inheritedAutonomous: "source-dependent" | boolean;
|
|
121
|
-
inheritedWorktree: boolean;
|
|
122
|
-
};
|
|
123
|
-
resources: {
|
|
124
|
-
maxParallel: number;
|
|
125
|
-
maxMonitoringSessions: number;
|
|
126
|
-
monitoringWakeIntervalMinutes: number | null;
|
|
127
|
-
autoResumeOnUsageLimit: boolean;
|
|
128
|
-
memoryLimitMb: number | null;
|
|
129
|
-
worktreeRetentionDefault: number;
|
|
130
|
-
};
|
|
131
|
-
agentDefaults: {
|
|
132
|
-
runner?: string | undefined;
|
|
133
|
-
models?: {
|
|
134
|
-
[x: string]: string | undefined;
|
|
135
|
-
} | undefined;
|
|
136
|
-
};
|
|
136
|
+
error: string;
|
|
137
137
|
};
|
|
138
138
|
outputFormat: "json";
|
|
139
|
-
status:
|
|
139
|
+
status: 500;
|
|
140
140
|
input: {
|
|
141
141
|
json: {
|
|
142
142
|
browseRoot?: string | undefined;
|
|
@@ -208,10 +208,41 @@ export declare function createWorkspaceConfigRoutes(deps: WorkspaceConfigRouteDe
|
|
|
208
208
|
"/workspace/ui-state": {
|
|
209
209
|
$put: {
|
|
210
210
|
output: {
|
|
211
|
-
|
|
211
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
212
|
+
sidebar?: {
|
|
213
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
214
|
+
collapsed?: {
|
|
215
|
+
[x: string]: boolean;
|
|
216
|
+
} | undefined;
|
|
217
|
+
projectOrder?: string[] | undefined;
|
|
218
|
+
} | undefined;
|
|
219
|
+
dismissedProviderAuthFailures?: {
|
|
220
|
+
[x: string]: string | undefined;
|
|
221
|
+
} | undefined;
|
|
222
|
+
appearance?: {
|
|
223
|
+
accent?: "cezarion" | "lime" | "violet" | undefined;
|
|
224
|
+
density?: "comfortable" | "compact" | "ultra" | undefined;
|
|
225
|
+
width?: "narrow" | "wide" | undefined;
|
|
226
|
+
} | undefined;
|
|
227
|
+
notifications?: {
|
|
228
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
229
|
+
enabled?: boolean | undefined;
|
|
230
|
+
} | undefined;
|
|
231
|
+
taskTable?: {
|
|
232
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
233
|
+
expandedColumns?: {
|
|
234
|
+
[x: string]: boolean;
|
|
235
|
+
} | undefined;
|
|
236
|
+
} | undefined;
|
|
237
|
+
lastLocation?: {
|
|
238
|
+
projectId: string;
|
|
239
|
+
pathname: string;
|
|
240
|
+
search?: string | undefined;
|
|
241
|
+
hash?: string | undefined;
|
|
242
|
+
} | undefined;
|
|
212
243
|
};
|
|
213
244
|
outputFormat: "json";
|
|
214
|
-
status:
|
|
245
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
215
246
|
input: {
|
|
216
247
|
json: {
|
|
217
248
|
[x: string]: unknown;
|
|
@@ -244,41 +275,10 @@ export declare function createWorkspaceConfigRoutes(deps: WorkspaceConfigRouteDe
|
|
|
244
275
|
};
|
|
245
276
|
} | {
|
|
246
277
|
output: {
|
|
247
|
-
|
|
248
|
-
sidebar?: {
|
|
249
|
-
[x: string]: import("hono/utils/types").JSONValue;
|
|
250
|
-
collapsed?: {
|
|
251
|
-
[x: string]: boolean;
|
|
252
|
-
} | undefined;
|
|
253
|
-
projectOrder?: string[] | undefined;
|
|
254
|
-
} | undefined;
|
|
255
|
-
dismissedProviderAuthFailures?: {
|
|
256
|
-
[x: string]: string | undefined;
|
|
257
|
-
} | undefined;
|
|
258
|
-
appearance?: {
|
|
259
|
-
accent?: "cezarion" | "lime" | "violet" | undefined;
|
|
260
|
-
density?: "comfortable" | "compact" | "ultra" | undefined;
|
|
261
|
-
width?: "narrow" | "wide" | undefined;
|
|
262
|
-
} | undefined;
|
|
263
|
-
notifications?: {
|
|
264
|
-
[x: string]: import("hono/utils/types").JSONValue;
|
|
265
|
-
enabled?: boolean | undefined;
|
|
266
|
-
} | undefined;
|
|
267
|
-
taskTable?: {
|
|
268
|
-
[x: string]: import("hono/utils/types").JSONValue;
|
|
269
|
-
expandedColumns?: {
|
|
270
|
-
[x: string]: boolean;
|
|
271
|
-
} | undefined;
|
|
272
|
-
} | undefined;
|
|
273
|
-
lastLocation?: {
|
|
274
|
-
projectId: string;
|
|
275
|
-
pathname: string;
|
|
276
|
-
search?: string | undefined;
|
|
277
|
-
hash?: string | undefined;
|
|
278
|
-
} | undefined;
|
|
278
|
+
error: string;
|
|
279
279
|
};
|
|
280
280
|
outputFormat: "json";
|
|
281
|
-
status:
|
|
281
|
+
status: 500;
|
|
282
282
|
input: {
|
|
283
283
|
json: {
|
|
284
284
|
[x: string]: unknown;
|
|
@@ -329,17 +329,10 @@ export declare function createFsBrowseRoutes(workspaceBrowseRoot: () => Promise<
|
|
|
329
329
|
};
|
|
330
330
|
} | {
|
|
331
331
|
output: {
|
|
332
|
-
|
|
333
|
-
parent: string | null;
|
|
334
|
-
dirs: {
|
|
335
|
-
name: string;
|
|
336
|
-
path: string;
|
|
337
|
-
isRepo: boolean;
|
|
338
|
-
}[];
|
|
339
|
-
truncated: boolean;
|
|
332
|
+
error: string;
|
|
340
333
|
};
|
|
341
334
|
outputFormat: "json";
|
|
342
|
-
status:
|
|
335
|
+
status: 400 | 403 | 404;
|
|
343
336
|
input: {
|
|
344
337
|
query: {
|
|
345
338
|
path?: string | undefined;
|
|
@@ -348,10 +341,17 @@ export declare function createFsBrowseRoutes(workspaceBrowseRoot: () => Promise<
|
|
|
348
341
|
};
|
|
349
342
|
} | {
|
|
350
343
|
output: {
|
|
351
|
-
|
|
344
|
+
path: string;
|
|
345
|
+
parent: string | null;
|
|
346
|
+
dirs: {
|
|
347
|
+
name: string;
|
|
348
|
+
path: string;
|
|
349
|
+
isRepo: boolean;
|
|
350
|
+
}[];
|
|
351
|
+
truncated: boolean;
|
|
352
352
|
};
|
|
353
353
|
outputFormat: "json";
|
|
354
|
-
status:
|
|
354
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
355
355
|
input: {
|
|
356
356
|
query: {
|
|
357
357
|
path?: string | undefined;
|
|
@@ -370,21 +370,21 @@ export interface WorkspaceEventsRouteDeps {
|
|
|
370
370
|
export declare function createWorkspaceEventsRoutes(deps: WorkspaceEventsRouteDeps): import("hono/hono-base").HonoBase<ProjectApiEnv, {
|
|
371
371
|
"/workspace/events": {
|
|
372
372
|
$get: {
|
|
373
|
-
output: {
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
};
|
|
377
|
-
outputFormat: "json";
|
|
378
|
-
status: 400;
|
|
373
|
+
output: {};
|
|
374
|
+
outputFormat: string;
|
|
375
|
+
status: import("hono/utils/http-status").StatusCode;
|
|
379
376
|
input: {
|
|
380
377
|
query: {
|
|
381
378
|
runs?: "summary" | undefined;
|
|
382
379
|
};
|
|
383
380
|
};
|
|
384
381
|
} | {
|
|
385
|
-
output: {
|
|
386
|
-
|
|
387
|
-
|
|
382
|
+
output: {
|
|
383
|
+
error: string;
|
|
384
|
+
code?: "invalid_input" | undefined;
|
|
385
|
+
};
|
|
386
|
+
outputFormat: "json";
|
|
387
|
+
status: 400;
|
|
388
388
|
input: {
|
|
389
389
|
query: {
|
|
390
390
|
runs?: "summary" | undefined;
|
|
@@ -13,6 +13,7 @@ import { clearIdleTimer, clearHeldHumanInputTimer, clearUnreadInputTimer } from
|
|
|
13
13
|
import { isRunnerActivity } from './turn-markers.js';
|
|
14
14
|
import { recordUsageUiEvent } from './usage-accounting.js';
|
|
15
15
|
import * as inputReceipts from './input-receipts.js';
|
|
16
|
+
import { topLevelModelWork } from '../../core/managed-session.js';
|
|
16
17
|
import { UiEventSink } from '../../runs/ui-event-sink.js';
|
|
17
18
|
import { nativeTimerDelay } from './turn-markers.js';
|
|
18
19
|
import { recordReportedCost } from './usage-accounting.js';
|
|
@@ -196,6 +197,8 @@ export function makeUiSink(context, host, runId, stepId) {
|
|
|
196
197
|
...(context.toolActivity ? { observe: (event) => context.toolActivity?.observe(runId, event) } : {}),
|
|
197
198
|
});
|
|
198
199
|
}
|
|
200
|
+
/** Each run's open top-level v2 items: their deltas show the model working. */
|
|
201
|
+
const openModelItems = new WeakMap();
|
|
199
202
|
/** Native backend asks arrive before turn-end. Persist and park immediately
|
|
200
203
|
* so the cockpit shows attention and the run releases its workspace slot. */
|
|
201
204
|
export function handleRunnerUiEvent(context, host, runId, state, sink, event, emitting) {
|
|
@@ -208,6 +211,7 @@ export function handleRunnerUiEvent(context, host, runId, state, sink, event, em
|
|
|
208
211
|
host.trackSubagentEvent(runId, state, event);
|
|
209
212
|
host.noteNoWaitNudgeContent(runId, state, emitting, event);
|
|
210
213
|
host.noteNudgeActivity(runId, state, emitting, event);
|
|
214
|
+
noteModelWork(state, event);
|
|
211
215
|
if (isRunnerActivity(event)) {
|
|
212
216
|
// Activity answers the nudge. A refused one's bound was the idle timer. One still owed its
|
|
213
217
|
// acknowledgement stays until it arrives (hearsay-tools/squawk#2443).
|
|
@@ -244,6 +248,18 @@ export function handleRunnerUiEvent(context, host, runId, state, sink, event, em
|
|
|
244
248
|
host.resumeParkedRun(runId, state);
|
|
245
249
|
}
|
|
246
250
|
}
|
|
251
|
+
/** Streamed v2 model work is real content, as v1 text is: the harness is working. */
|
|
252
|
+
function noteModelWork(state, event) {
|
|
253
|
+
let open = openModelItems.get(state);
|
|
254
|
+
if (!open) {
|
|
255
|
+
open = new Set();
|
|
256
|
+
openModelItems.set(state, open);
|
|
257
|
+
}
|
|
258
|
+
if (!topLevelModelWork(open, event))
|
|
259
|
+
return;
|
|
260
|
+
clearUnreadInputTimer(state);
|
|
261
|
+
clearHeldHumanInputTimer(state);
|
|
262
|
+
}
|
|
247
263
|
export function handlePermissionRequested(context, host, runId, state, requestId) {
|
|
248
264
|
state.liveSession.requestPermission(requestId);
|
|
249
265
|
host.humanWaits.prepareHumanAsk(state);
|