@hearsay-tools/squawk 0.18.0-pr3586.6464.2 → 0.18.0-pr3586.6470
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/ci-wait/controller.d.ts +37 -37
- package/dist/contract/events.d.ts +4 -4
- package/dist/contract/health.d.ts +2 -3
- package/dist/contract/index.js +1 -1
- package/dist/contract/workspace.d.ts +1 -1
- package/dist/delegation/transport.d.ts +62 -62
- package/dist/home/identity.d.ts +0 -2
- package/dist/home/identity.js +2 -2
- package/dist/home/identity.js.map +1 -1
- package/dist/server/forge/github.d.ts +1 -2
- package/dist/server/forge/github.js +3 -4
- package/dist/server/forge/github.js.map +1 -1
- package/dist/server/forge/types.d.ts +2 -2
- package/dist/server/git-changes.d.ts +1 -1
- package/dist/server/reports-api.d.ts +2 -2
- package/dist/server/run-checkout.js +2 -2
- package/dist/server/run-checkout.js.map +1 -1
- package/dist/server/server.js +9 -10
- package/dist/server/server.js.map +1 -1
- package/dist/server/validators.js +1 -1
- package/dist/server-install/types.d.ts +3 -3
- package/dist/server-install/types.js +3 -3
- package/dist/ui-state.d.ts +3 -3
- package/dist/ui-state.js +3 -3
- package/dist/voice/routes.d.ts +19 -19
- package/dist/workspace/ui-state.js +1 -1
- package/dist/workspace/ui-state.js.map +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -90,9 +90,9 @@ handoff journal, **Continue**, live follow-up messages, and `hsq message inbox`
|
|
|
90
90
|
available.
|
|
91
91
|
## What Squawk does best 🏆
|
|
92
92
|
|
|
93
|
-
**On your phone:** the
|
|
94
|
-
|
|
95
|
-
|
|
93
|
+
**On your phone:** open your HTTPS cockpit in the phone's browser and add it to
|
|
94
|
+
the home screen. [Squawk on your phone](docs/mobile.md) shows how; agents continue
|
|
95
|
+
running on your server.
|
|
96
96
|
|
|
97
97
|
Plenty of tools wrap a single coding agent in a nicer window — a "Codex GUI", a
|
|
98
98
|
conductor-style app, one-agent front-ends. Squawk's bet is different. Three things
|
|
@@ -280,12 +280,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
280
280
|
"/api/v1/tools/ask": {
|
|
281
281
|
$post: {
|
|
282
282
|
output: {
|
|
283
|
-
|
|
284
|
-
code: 'unavailable';
|
|
283
|
+
code: 'capability_revoked';
|
|
285
284
|
message: string;
|
|
286
285
|
};
|
|
287
286
|
outputFormat: "json";
|
|
288
|
-
status:
|
|
287
|
+
status: 401;
|
|
289
288
|
input: {
|
|
290
289
|
json: {
|
|
291
290
|
questions: {
|
|
@@ -303,11 +302,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
303
302
|
};
|
|
304
303
|
} | {
|
|
305
304
|
output: {
|
|
306
|
-
|
|
305
|
+
ok: false;
|
|
306
|
+
code: 'unavailable';
|
|
307
307
|
message: string;
|
|
308
308
|
};
|
|
309
309
|
outputFormat: "json";
|
|
310
|
-
status:
|
|
310
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
311
311
|
input: {
|
|
312
312
|
json: {
|
|
313
313
|
questions: {
|
|
@@ -375,12 +375,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
375
375
|
"/api/v1/tools/cancel-wait": {
|
|
376
376
|
$post: {
|
|
377
377
|
output: {
|
|
378
|
-
|
|
379
|
-
code: 'unavailable';
|
|
378
|
+
code: 'capability_revoked';
|
|
380
379
|
message: string;
|
|
381
380
|
};
|
|
382
381
|
outputFormat: "json";
|
|
383
|
-
status:
|
|
382
|
+
status: 401;
|
|
384
383
|
input: {
|
|
385
384
|
json: {
|
|
386
385
|
wait_id: string;
|
|
@@ -388,11 +387,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
388
387
|
};
|
|
389
388
|
} | {
|
|
390
389
|
output: {
|
|
391
|
-
|
|
390
|
+
cancelled: false;
|
|
391
|
+
code: 'unavailable';
|
|
392
392
|
message: string;
|
|
393
393
|
};
|
|
394
394
|
outputFormat: "json";
|
|
395
|
-
status:
|
|
395
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
396
396
|
input: {
|
|
397
397
|
json: {
|
|
398
398
|
wait_id: string;
|
|
@@ -440,12 +440,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
440
440
|
"/api/v1/tools/done": {
|
|
441
441
|
$post: {
|
|
442
442
|
output: {
|
|
443
|
-
|
|
444
|
-
code: 'unavailable';
|
|
443
|
+
code: 'capability_revoked';
|
|
445
444
|
message: string;
|
|
446
445
|
};
|
|
447
446
|
outputFormat: "json";
|
|
448
|
-
status:
|
|
447
|
+
status: 401;
|
|
449
448
|
input: {
|
|
450
449
|
json: {
|
|
451
450
|
summary?: string | undefined;
|
|
@@ -453,11 +452,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
453
452
|
};
|
|
454
453
|
} | {
|
|
455
454
|
output: {
|
|
456
|
-
|
|
455
|
+
ok: false;
|
|
456
|
+
code: 'unavailable';
|
|
457
457
|
message: string;
|
|
458
458
|
};
|
|
459
459
|
outputFormat: "json";
|
|
460
|
-
status:
|
|
460
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
461
461
|
input: {
|
|
462
462
|
json: {
|
|
463
463
|
summary?: string | undefined;
|
|
@@ -525,13 +525,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
525
525
|
"/api/v1/tools/preview-stop": {
|
|
526
526
|
$post: {
|
|
527
527
|
output: {
|
|
528
|
-
|
|
529
|
-
code: "adopted" | "approval_required" | "headless" | "invalid_input" | "not_registered" | "port_held" | "port_in_use" | "preview_disabled" | "restarted" | "stopped" | "unavailable" | "worktree_missing";
|
|
528
|
+
code: 'capability_revoked';
|
|
530
529
|
message: string;
|
|
531
|
-
hint: string;
|
|
532
530
|
};
|
|
533
531
|
outputFormat: "json";
|
|
534
|
-
status:
|
|
532
|
+
status: 401;
|
|
535
533
|
input: {
|
|
536
534
|
json: {
|
|
537
535
|
port: number;
|
|
@@ -540,11 +538,13 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
540
538
|
};
|
|
541
539
|
} | {
|
|
542
540
|
output: {
|
|
543
|
-
|
|
541
|
+
ok: boolean;
|
|
542
|
+
code: "adopted" | "approval_required" | "headless" | "invalid_input" | "not_registered" | "port_held" | "port_in_use" | "preview_disabled" | "restarted" | "stopped" | "unavailable" | "worktree_missing";
|
|
544
543
|
message: string;
|
|
544
|
+
hint: string;
|
|
545
545
|
};
|
|
546
546
|
outputFormat: "json";
|
|
547
|
-
status:
|
|
547
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
548
548
|
input: {
|
|
549
549
|
json: {
|
|
550
550
|
port: number;
|
|
@@ -557,13 +557,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
557
557
|
"/api/v1/tools/preview-serve": {
|
|
558
558
|
$post: {
|
|
559
559
|
output: {
|
|
560
|
-
|
|
561
|
-
code: "cezar_port" | "cwd_outside_worktree" | "headless" | "invalid_input" | "port_held" | "preview_disabled" | "registered" | "replaced" | "too_many" | "unavailable" | "worktree_missing";
|
|
560
|
+
code: 'capability_revoked';
|
|
562
561
|
message: string;
|
|
563
|
-
hint: string;
|
|
564
562
|
};
|
|
565
563
|
outputFormat: "json";
|
|
566
|
-
status:
|
|
564
|
+
status: 401;
|
|
567
565
|
input: {
|
|
568
566
|
json: {
|
|
569
567
|
command: string;
|
|
@@ -575,11 +573,13 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
575
573
|
};
|
|
576
574
|
} | {
|
|
577
575
|
output: {
|
|
578
|
-
|
|
576
|
+
ok: boolean;
|
|
577
|
+
code: "cezar_port" | "cwd_outside_worktree" | "headless" | "invalid_input" | "port_held" | "preview_disabled" | "registered" | "replaced" | "too_many" | "unavailable" | "worktree_missing";
|
|
579
578
|
message: string;
|
|
579
|
+
hint: string;
|
|
580
580
|
};
|
|
581
581
|
outputFormat: "json";
|
|
582
|
-
status:
|
|
582
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
583
583
|
input: {
|
|
584
584
|
json: {
|
|
585
585
|
command: string;
|
|
@@ -595,12 +595,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
595
595
|
"/api/v1/tools/schedule-task": {
|
|
596
596
|
$post: {
|
|
597
597
|
output: {
|
|
598
|
-
|
|
599
|
-
code: import('../contract/index.js').ScheduledTaskRefusalCode;
|
|
598
|
+
code: 'capability_revoked';
|
|
600
599
|
message: string;
|
|
601
600
|
};
|
|
602
601
|
outputFormat: "json";
|
|
603
|
-
status:
|
|
602
|
+
status: 401;
|
|
604
603
|
input: {
|
|
605
604
|
json: {
|
|
606
605
|
at?: string | undefined;
|
|
@@ -617,11 +616,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
617
616
|
};
|
|
618
617
|
} | {
|
|
619
618
|
output: {
|
|
620
|
-
|
|
619
|
+
ok: false;
|
|
620
|
+
code: import('../contract/index.js').ScheduledTaskRefusalCode;
|
|
621
621
|
message: string;
|
|
622
622
|
};
|
|
623
623
|
outputFormat: "json";
|
|
624
|
-
status:
|
|
624
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
625
625
|
input: {
|
|
626
626
|
json: {
|
|
627
627
|
at?: string | undefined;
|
|
@@ -676,12 +676,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
676
676
|
"/api/v1/tools/scheduled-tasks": {
|
|
677
677
|
$post: {
|
|
678
678
|
output: {
|
|
679
|
-
|
|
680
|
-
code: import('../contract/index.js').ScheduledTaskRefusalCode;
|
|
679
|
+
code: 'capability_revoked';
|
|
681
680
|
message: string;
|
|
682
681
|
};
|
|
683
682
|
outputFormat: "json";
|
|
684
|
-
status:
|
|
683
|
+
status: 401;
|
|
685
684
|
input: {
|
|
686
685
|
json: {
|
|
687
686
|
at?: string | undefined;
|
|
@@ -714,11 +713,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
714
713
|
};
|
|
715
714
|
} | {
|
|
716
715
|
output: {
|
|
717
|
-
|
|
716
|
+
ok: false;
|
|
717
|
+
code: import('../contract/index.js').ScheduledTaskRefusalCode;
|
|
718
718
|
message: string;
|
|
719
719
|
};
|
|
720
720
|
outputFormat: "json";
|
|
721
|
-
status:
|
|
721
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
722
722
|
input: {
|
|
723
723
|
json: {
|
|
724
724
|
at?: string | undefined;
|
|
@@ -12,10 +12,10 @@ import { z } from 'zod';
|
|
|
12
12
|
/**
|
|
13
13
|
* One line of a run transcript.
|
|
14
14
|
*
|
|
15
|
-
* Open by design: `type` is a plain string and unknown keys pass through, because
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
15
|
+
* Open by design: `type` is a plain string and unknown keys pass through, because old NDJSON
|
|
16
|
+
* recordings on disk must keep replaying after an upgrade (AGENTS.md, Changing what already
|
|
17
|
+
* works). A closed schema would reject a recording that carries a type or key this build does
|
|
18
|
+
* not list.
|
|
19
19
|
*/
|
|
20
20
|
export declare const runEventSchema: z.ZodObject<{
|
|
21
21
|
seq: z.ZodNumber;
|
|
@@ -38,9 +38,8 @@ export declare const capabilitiesSchema: z.ZodObject<{
|
|
|
38
38
|
}, z.core.$strip>;
|
|
39
39
|
export type Capabilities = z.infer<typeof capabilitiesSchema>;
|
|
40
40
|
/**
|
|
41
|
-
* `GET /api/v1/health` — the CORS-open discovery endpoint
|
|
42
|
-
*
|
|
43
|
-
* Additive fields only: this is the most externally-depended-on JSON in the app.
|
|
41
|
+
* `GET /api/v1/health` — the CORS-open discovery endpoint. Callers outside the cockpit read
|
|
42
|
+
* this JSON.
|
|
44
43
|
*/
|
|
45
44
|
export declare const healthResponseSchema: z.ZodObject<{
|
|
46
45
|
version: z.ZodString;
|
package/dist/contract/index.js
CHANGED
|
@@ -2709,7 +2709,7 @@ var runRecordSchema = z20.object({
|
|
|
2709
2709
|
pinned: z20.boolean().optional(),
|
|
2710
2710
|
/** When the pin was set. Deliberately WRITE-ONLY today, like the `archivedAt` above it:
|
|
2711
2711
|
* ordering inside `Pinned` uses the ordinary status/recency rules, so nothing reads this
|
|
2712
|
-
* yet. It is here because a field on
|
|
2712
|
+
* yet. It is here because a field on the saved run record is far cheaper to add now than to
|
|
2713
2713
|
* add later — "pinned oldest first" and "unpin what you pinned a month ago" both need it,
|
|
2714
2714
|
* and neither can be reconstructed after the fact. */
|
|
2715
2715
|
pinnedAt: z20.string().optional(),
|
|
@@ -123,7 +123,7 @@ export declare function normalizeSidebarLimits(value: unknown): Required<Sidebar
|
|
|
123
123
|
/**
|
|
124
124
|
* `GET/PUT /api/v1/ui-state` — the per-repo GUI prefs in `.ai/cezar/ui-state.json`.
|
|
125
125
|
*
|
|
126
|
-
* An OPEN bag on purpose (
|
|
126
|
+
* An OPEN bag on purpose (AGENTS.md, Changing what already works): unknown keys round-trip untouched, so a
|
|
127
127
|
* newer cockpit's prefs survive an older server and a future pref needs no server change. Hence
|
|
128
128
|
* `z.looseObject`, not a closed object — the keys below are the ones the server's schema *names*,
|
|
129
129
|
* never the ones it *permits*. The write side caps the TOP-LEVEL key count at 200 (#429); that cap
|
|
@@ -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;
|
|
@@ -691,7 +703,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
691
703
|
workerId: string;
|
|
692
704
|
};
|
|
693
705
|
};
|
|
694
|
-
}
|
|
706
|
+
};
|
|
707
|
+
};
|
|
708
|
+
} & {
|
|
709
|
+
"/:workerId/collect": {
|
|
710
|
+
$post: {
|
|
695
711
|
output: {
|
|
696
712
|
error: string;
|
|
697
713
|
code?: "invalid_input" | undefined;
|
|
@@ -702,12 +718,10 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
702
718
|
param: {
|
|
703
719
|
workerId: string;
|
|
704
720
|
};
|
|
721
|
+
} & {
|
|
722
|
+
json: Record<string, never>;
|
|
705
723
|
};
|
|
706
|
-
}
|
|
707
|
-
};
|
|
708
|
-
} & {
|
|
709
|
-
"/:workerId/collect": {
|
|
710
|
-
$post: {
|
|
724
|
+
} | {
|
|
711
725
|
output: {
|
|
712
726
|
workerId: string;
|
|
713
727
|
parentRunId: string;
|
|
@@ -809,7 +823,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
809
823
|
} & {
|
|
810
824
|
json: Record<string, never>;
|
|
811
825
|
};
|
|
812
|
-
}
|
|
826
|
+
};
|
|
827
|
+
};
|
|
828
|
+
} & {
|
|
829
|
+
"/:workerId/steer": {
|
|
830
|
+
$post: {
|
|
813
831
|
output: {
|
|
814
832
|
error: string;
|
|
815
833
|
code?: "invalid_input" | undefined;
|
|
@@ -821,13 +839,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
821
839
|
workerId: string;
|
|
822
840
|
};
|
|
823
841
|
} & {
|
|
824
|
-
json:
|
|
842
|
+
json: {
|
|
843
|
+
text: string;
|
|
844
|
+
};
|
|
825
845
|
};
|
|
826
|
-
}
|
|
827
|
-
};
|
|
828
|
-
} & {
|
|
829
|
-
"/:workerId/steer": {
|
|
830
|
-
$post: {
|
|
846
|
+
} | {
|
|
831
847
|
output: {
|
|
832
848
|
workerId: string;
|
|
833
849
|
state: "delivered" | "queued";
|
|
@@ -843,7 +859,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
843
859
|
text: string;
|
|
844
860
|
};
|
|
845
861
|
};
|
|
846
|
-
}
|
|
862
|
+
};
|
|
863
|
+
};
|
|
864
|
+
} & {
|
|
865
|
+
"/:workerId/stop": {
|
|
866
|
+
$post: {
|
|
847
867
|
output: {
|
|
848
868
|
error: string;
|
|
849
869
|
code?: "invalid_input" | undefined;
|
|
@@ -855,15 +875,9 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
855
875
|
workerId: string;
|
|
856
876
|
};
|
|
857
877
|
} & {
|
|
858
|
-
json:
|
|
859
|
-
text: string;
|
|
860
|
-
};
|
|
878
|
+
json: Record<string, never>;
|
|
861
879
|
};
|
|
862
|
-
}
|
|
863
|
-
};
|
|
864
|
-
} & {
|
|
865
|
-
"/:workerId/stop": {
|
|
866
|
-
$post: {
|
|
880
|
+
} | {
|
|
867
881
|
output: {
|
|
868
882
|
workerId: string;
|
|
869
883
|
state: "stopping" | "terminated";
|
|
@@ -877,7 +891,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
877
891
|
} & {
|
|
878
892
|
json: Record<string, never>;
|
|
879
893
|
};
|
|
880
|
-
}
|
|
894
|
+
};
|
|
895
|
+
};
|
|
896
|
+
} & {
|
|
897
|
+
"/:workerId/destroy": {
|
|
898
|
+
$post: {
|
|
881
899
|
output: {
|
|
882
900
|
error: string;
|
|
883
901
|
code?: "invalid_input" | undefined;
|
|
@@ -891,11 +909,7 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
891
909
|
} & {
|
|
892
910
|
json: Record<string, never>;
|
|
893
911
|
};
|
|
894
|
-
}
|
|
895
|
-
};
|
|
896
|
-
} & {
|
|
897
|
-
"/:workerId/destroy": {
|
|
898
|
-
$post: {
|
|
912
|
+
} | {
|
|
899
913
|
output: {
|
|
900
914
|
workerId: string;
|
|
901
915
|
state: "complete" | "incomplete";
|
|
@@ -918,20 +932,6 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
918
932
|
} & {
|
|
919
933
|
json: Record<string, never>;
|
|
920
934
|
};
|
|
921
|
-
} | {
|
|
922
|
-
output: {
|
|
923
|
-
error: string;
|
|
924
|
-
code?: "invalid_input" | undefined;
|
|
925
|
-
};
|
|
926
|
-
outputFormat: "json";
|
|
927
|
-
status: 400;
|
|
928
|
-
input: {
|
|
929
|
-
param: {
|
|
930
|
-
workerId: string;
|
|
931
|
-
};
|
|
932
|
-
} & {
|
|
933
|
-
json: Record<string, never>;
|
|
934
|
-
};
|
|
935
935
|
} | {
|
|
936
936
|
output: {
|
|
937
937
|
workerId: string;
|
|
@@ -961,13 +961,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
961
961
|
"/:workerId/diff": {
|
|
962
962
|
$get: {
|
|
963
963
|
output: {
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
diff: string;
|
|
967
|
-
truncated: boolean;
|
|
964
|
+
error: string;
|
|
965
|
+
code?: "invalid_input" | undefined;
|
|
968
966
|
};
|
|
969
967
|
outputFormat: "json";
|
|
970
|
-
status:
|
|
968
|
+
status: 400;
|
|
971
969
|
input: {
|
|
972
970
|
param: {
|
|
973
971
|
workerId: string;
|
|
@@ -975,11 +973,13 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
975
973
|
};
|
|
976
974
|
} | {
|
|
977
975
|
output: {
|
|
978
|
-
|
|
979
|
-
|
|
976
|
+
workerId: string;
|
|
977
|
+
baselineSha: string;
|
|
978
|
+
diff: string;
|
|
979
|
+
truncated: boolean;
|
|
980
980
|
};
|
|
981
981
|
outputFormat: "json";
|
|
982
|
-
status:
|
|
982
|
+
status: 200;
|
|
983
983
|
input: {
|
|
984
984
|
param: {
|
|
985
985
|
workerId: string;
|
package/dist/home/identity.d.ts
CHANGED
|
@@ -10,7 +10,6 @@ export type LegacyProductIdentity = {
|
|
|
10
10
|
envPrefix: 'CEZ_';
|
|
11
11
|
desktopExecutable: 'cezar-desktop';
|
|
12
12
|
desktopAppId: 'tools.hearsay.cezarion';
|
|
13
|
-
mobileAppId: 'tools.hearsay.cezarion.mobile';
|
|
14
13
|
};
|
|
15
14
|
/** The new identity. npm refuses the unscoped name `hsq`, so it has no alias package. */
|
|
16
15
|
export type RebrandProductIdentity = {
|
|
@@ -24,7 +23,6 @@ export type RebrandProductIdentity = {
|
|
|
24
23
|
envPrefix: 'HSQ_';
|
|
25
24
|
desktopExecutable: 'squawk-desktop';
|
|
26
25
|
desktopAppId: 'tools.hearsay.squawk';
|
|
27
|
-
mobileAppId: 'tools.hearsay.squawk.mobile';
|
|
28
26
|
};
|
|
29
27
|
/** Shared product names for the CLI, browser and native build tools. */
|
|
30
28
|
export type ProductIdentity = LegacyProductIdentity | RebrandProductIdentity;
|
package/dist/home/identity.js
CHANGED
|
@@ -2,11 +2,11 @@ export function productIdentity(rebrand = true) {
|
|
|
2
2
|
return rebrand ? {
|
|
3
3
|
rebrand, displayName: 'Squawk', command: 'hsq', npmPackage: '@hearsay-tools/squawk',
|
|
4
4
|
npmAlias: null, npmAliasDirectory: null, npx: 'npx -p @hearsay-tools/squawk hsq', envPrefix: 'HSQ_',
|
|
5
|
-
desktopAppId: 'tools.hearsay.squawk',
|
|
5
|
+
desktopAppId: 'tools.hearsay.squawk', desktopExecutable: 'squawk-desktop',
|
|
6
6
|
} : {
|
|
7
7
|
rebrand, displayName: 'Cezarion', command: 'cez', npmPackage: '@wjarka/cezarion',
|
|
8
8
|
npmAlias: 'cezarion', npmAliasDirectory: 'alias-cezarion', npx: 'npx cezarion', envPrefix: 'CEZ_',
|
|
9
|
-
desktopAppId: 'tools.hearsay.cezarion',
|
|
9
|
+
desktopAppId: 'tools.hearsay.cezarion', desktopExecutable: 'cezar-desktop',
|
|
10
10
|
};
|
|
11
11
|
}
|
|
12
12
|
/** Runs the scoped package once. It has no binary named after it, so the new
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"identity.js","sourceRoot":"","sources":["../../src/home/identity.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"identity.js","sourceRoot":"","sources":["../../src/home/identity.ts"],"names":[],"mappings":"AAmCA,MAAM,UAAU,eAAe,CAAC,OAAO,GAAG,IAAI;IAC5C,OAAO,OAAO,CAAC,CAAC,CAAC;QACf,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,uBAAuB;QACnF,QAAQ,EAAE,IAAI,EAAE,iBAAiB,EAAE,IAAI,EAAE,GAAG,EAAE,kCAAkC,EAAE,SAAS,EAAE,MAAM;QACnG,YAAY,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,gBAAgB;KAC1E,CAAC,CAAC,CAAC;QACF,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,kBAAkB;QAChF,QAAQ,EAAE,UAAU,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,GAAG,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM;QACjG,YAAY,EAAE,wBAAwB,EAAE,iBAAiB,EAAE,eAAe;KAC3E,CAAC;AACJ,CAAC;AAED;4FAC4F;AAC5F,MAAM,UAAU,gBAAgB,CAAC,QAAyB,EAAE,OAAgB;IAC1E,MAAM,IAAI,GAAG,GAAG,QAAQ,CAAC,UAAU,GAAG,OAAO,CAAC,CAAC,CAAC,IAAI,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;IACrE,OAAO,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,UAAU,IAAI,IAAI,QAAQ,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,OAAO,IAAI,EAAE,CAAC;AACjF,CAAC;AAED,wFAAwF;AACxF,MAAM,UAAU,UAAU,CAAC,OAAgB;IACzC,OAAO,gBAAgB,CAAC,eAAe,EAAE,EAAE,OAAO,CAAC,CAAC;AACtD,CAAC;AAED,4EAA4E;AAC5E,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,UAAU,EAAE,KAAK,EAAE,KAAK,CAAU,CAAC;AAGhE,wEAAwE;AACxE,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,eAAe,CAAC,KAAK,CAAC,CAAC,UAAU,EAAE,eAAe,CAAC,KAAK,CAAC,CAAC,QAAQ,EAAE,eAAe,CAAC,IAAI,CAAC,CAAC,UAAU;CAC5F,CAAC;AAIX,oFAAoF;AACpF,MAAM,UAAU,kBAAkB,CAAC,IAAY;IAC7C,OAAO,CAAC,eAAe,CAAC,KAAK,CAAC,EAAE,eAAe,CAAC,IAAI,CAAC,CAAC;SACnD,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,IAAI,KAAK,QAAQ,CAAC,UAAU,IAAI,CAAC,QAAQ,CAAC,QAAQ,KAAK,IAAI,IAAI,IAAI,KAAK,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC;AAClH,CAAC"}
|
|
@@ -12,8 +12,7 @@ import type { ForgeAvailability, ForgeComment, ForgeCommentsData, ForgeDriver, F
|
|
|
12
12
|
* The GitHub forge driver — all `gh`-CLI logic in one place, moved here from
|
|
13
13
|
* `src/server/github.ts` (tab listing) and `src/server/pr.ts` (draft PRs)
|
|
14
14
|
* behind the `ForgeDriver` seam. Those modules remain as thin delegates.
|
|
15
|
-
* `/api/github`'s response shape is this driver's serialization
|
|
16
|
-
* protected by BACKWARD_COMPATIBILITY.md — additive changes only.
|
|
15
|
+
* `/api/github`'s response shape is this driver's serialization.
|
|
17
16
|
*/
|
|
18
17
|
export declare const GH_PR_DIFF_FILE_CAP = 300;
|
|
19
18
|
export declare const GH_PR_PATCH_CAP: number;
|
|
@@ -23,8 +23,7 @@ import { refNumberFromUrl } from '../../contract/index.js';
|
|
|
23
23
|
* The GitHub forge driver — all `gh`-CLI logic in one place, moved here from
|
|
24
24
|
* `src/server/github.ts` (tab listing) and `src/server/pr.ts` (draft PRs)
|
|
25
25
|
* behind the `ForgeDriver` seam. Those modules remain as thin delegates.
|
|
26
|
-
* `/api/github`'s response shape is this driver's serialization
|
|
27
|
-
* protected by BACKWARD_COMPATIBILITY.md — additive changes only.
|
|
26
|
+
* `/api/github`'s response shape is this driver's serialization.
|
|
28
27
|
*/
|
|
29
28
|
export const GH_PR_DIFF_FILE_CAP = 300;
|
|
30
29
|
export const GH_PR_PATCH_CAP = 512 * 1024;
|
|
@@ -1952,8 +1951,8 @@ function mockGithubRefStatus(prs, issues) {
|
|
|
1952
1951
|
*
|
|
1953
1952
|
* Since #525 the thread is sourced from `/issues/{n}/timeline`, which returns comments AND events
|
|
1954
1953
|
* in one stream: `commented` rows go through the unchanged `normalizeComments`, the rest through
|
|
1955
|
-
* `normalizeEvents`. `comments[]` therefore keeps its exact pre-#525 shape, contents and cap
|
|
1956
|
-
*
|
|
1954
|
+
* `normalizeEvents`. `comments[]` therefore keeps its exact pre-#525 shape, contents and cap;
|
|
1955
|
+
* see the top-up below for the one case that needed defending.
|
|
1957
1956
|
*/
|
|
1958
1957
|
function commentsCacheKey(repoRoot, kind, number) {
|
|
1959
1958
|
// NUL separator: cannot appear in a filesystem path, so roots can never alias.
|