@hearsay-tools/squawk 0.18.0-dev.6462 → 0.18.0-dev.6472
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 -4
- package/dist/ci-wait/tools.d.ts +4 -4
- package/dist/contract/events.d.ts +4 -4
- package/dist/contract/health.d.ts +2 -5
- package/dist/contract/index.d.ts +0 -1
- package/dist/contract/index.js +458 -592
- package/dist/contract/workspace.d.ts +1 -1
- package/dist/data-gitignore.js +0 -1
- package/dist/data-gitignore.js.map +1 -1
- package/dist/delegation/routes.d.ts +11 -11
- package/dist/delegation/transport.d.ts +4 -4
- 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/capabilities.d.ts +0 -1
- package/dist/server/capabilities.js +0 -3
- package/dist/server/capabilities.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/run-checkout.js +2 -2
- package/dist/server/run-checkout.js.map +1 -1
- package/dist/server/server.d.ts +58 -253
- package/dist/server/server.js +12 -24
- 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/workflows/continuation-admission.d.ts +72 -72
- package/dist/workflows/run/wait-engine.d.ts +72 -72
- package/dist/workspace/ui-state.js +1 -1
- package/dist/workspace/ui-state.js.map +1 -1
- package/package.json +4 -4
- package/web/dist/assets/activity-motion-CSe8gVgw.js +2 -0
- package/web/dist/assets/{activity-route-su3KawLr.js → activity-route-DURvhLQf.js} +1 -1
- package/web/dist/assets/agent-accounts-BrFoXDpa.js +18 -0
- package/web/dist/assets/attention-BeBfNOUJ.js +1 -0
- package/web/dist/assets/{cez-idle-xv7f96fc.js → cez-idle-TVRD1sce.js} +1 -1
- package/web/dist/assets/{commit-diff-panel-DmhrguZk.js → commit-diff-panel-BbM4GEgm.js} +1 -1
- package/web/dist/assets/{diff-DDwr1gUX.js → diff-DgAd6acp.js} +2 -2
- package/web/dist/assets/{diff-view-BNL7l7Vp.js → diff-view--NwKwseV.js} +3 -3
- package/web/dist/assets/{file-preview-Cm1jWwBy.js → file-preview-B36xoAJ8.js} +1 -1
- package/web/dist/assets/git-toolbar-Db0h7gTI.js +1 -0
- package/web/dist/assets/{github-wWGhoE3O.js → github-CA0qpTLt.js} +1 -1
- package/web/dist/assets/{global-activity-route-DpQr_eU9.js → global-activity-route-DRc_wjkF.js} +1 -1
- package/web/dist/assets/index-De7eAZ5M.js +17 -0
- package/web/dist/assets/index-Dps0ABGp.css +1 -0
- package/web/dist/assets/{live-protocol-DjH6ZQwI.js → live-protocol-aMLJJ0MQ.js} +1 -1
- package/web/dist/assets/preview-pane-connected-CU_lEf11.js +3 -0
- package/web/dist/assets/{project-router-uJ3SkX70.js → project-router-ir-bfT5a.js} +1 -1
- package/web/dist/assets/project-scope-context-BSdXJd3m.js +4 -0
- package/web/dist/assets/{prompt-template-menu-D5T9W-K3.js → prompt-template-menu-BJlLqUsI.js} +1 -1
- package/web/dist/assets/queries-BXo4WfX0.js +1 -0
- package/web/dist/assets/{reference-chip-AZWOlSRV.js → reference-chip-pp1FgLpK.js} +1 -1
- package/web/dist/assets/{repo-git-DJPSn50o.js → repo-git-BOfsABl4.js} +1 -1
- package/web/dist/assets/{report-reader-kzlovTso.js → report-reader-C_r69KvS.js} +1 -1
- package/web/dist/assets/reports-CWIvS-PA.js +1 -0
- package/web/dist/assets/run-header-CSEAFAfa.js +2 -0
- package/web/dist/assets/skills-jwrn7yXY.js +1 -0
- package/web/dist/assets/{tab-link-h4IjTsRH.js → tab-link-92W6MWDZ.js} +1 -1
- package/web/dist/assets/{task-changes-Db3dmYAT.js → task-changes-EalDx6wh.js} +1 -1
- package/web/dist/assets/{task-commits-D4HdW5xE.js → task-commits-ZWjrQSnF.js} +1 -1
- package/web/dist/assets/{task-files-sdaEBCfr.js → task-files-Cg-INsaD.js} +1 -1
- package/web/dist/assets/task-github-item-B8yO5uo1.js +1 -0
- package/web/dist/assets/task-thread-Bs6ZnRXz.js +9 -0
- package/web/dist/assets/{thread-state-hhRCETQT.js → thread-state-DBalnt7M.js} +1 -1
- package/web/dist/assets/use-desktop-BYMCVpyw.js +1 -0
- package/web/dist/assets/use-hand-to-agent-state-Bhmmem1E.js +1 -0
- package/web/dist/assets/{useInfiniteQuery-BcY0ra-k.js → useInfiniteQuery-C22IahAC.js} +1 -1
- package/web/dist/assets/useQuery-C0rYnV6X.js +1 -0
- package/web/dist/assets/{workflows-DRO8PcD-.js → workflows-BRhGKY_0.js} +2 -2
- package/web/dist/assets/ws-D9whCwIN.js +1 -0
- package/web/dist/index.html +15 -15
- package/web/dist/live-worker.js +1 -1
- package/dist/contract/voice.d.ts +0 -213
- package/dist/voice/decide.d.ts +0 -35
- package/dist/voice/decide.js +0 -329
- package/dist/voice/decide.js.map +0 -1
- package/dist/voice/decision-log.d.ts +0 -48
- package/dist/voice/decision-log.js +0 -117
- package/dist/voice/decision-log.js.map +0 -1
- package/dist/voice/engine.d.ts +0 -119
- package/dist/voice/engine.js +0 -61
- package/dist/voice/engine.js.map +0 -1
- package/dist/voice/fake-engine.d.ts +0 -10
- package/dist/voice/fake-engine.js +0 -192
- package/dist/voice/fake-engine.js.map +0 -1
- package/dist/voice/jev-engine.d.ts +0 -17
- package/dist/voice/jev-engine.js +0 -110
- package/dist/voice/jev-engine.js.map +0 -1
- package/dist/voice/pending-ask.d.ts +0 -17
- package/dist/voice/pending-ask.js +0 -51
- package/dist/voice/pending-ask.js.map +0 -1
- package/dist/voice/routes.d.ts +0 -115
- package/dist/voice/routes.js +0 -92
- package/dist/voice/routes.js.map +0 -1
- package/dist/voice/sentence.d.ts +0 -21
- package/dist/voice/sentence.js +0 -61
- package/dist/voice/sentence.js.map +0 -1
- package/dist/voice/thresholds.d.ts +0 -28
- package/dist/voice/thresholds.js +0 -29
- package/dist/voice/thresholds.js.map +0 -1
- package/scripts/voice-replay.ts +0 -50
- package/web/dist/assets/activity-motion-BeswQRe1.js +0 -2
- package/web/dist/assets/agent-accounts-DseqHuGY.js +0 -18
- package/web/dist/assets/attention-DlfFfWoj.js +0 -1
- package/web/dist/assets/git-toolbar-Dya9briW.js +0 -1
- package/web/dist/assets/index-DS1HIBHa.css +0 -1
- package/web/dist/assets/index-DYx21hr3.js +0 -17
- package/web/dist/assets/preview-pane-connected-DSStovll.js +0 -3
- package/web/dist/assets/project-scope-context-X6-LgbYE.js +0 -4
- package/web/dist/assets/queries-00V5jnAV.js +0 -1
- package/web/dist/assets/reports-Ds7nog_M.js +0 -1
- package/web/dist/assets/run-header-skVwUvR-.js +0 -2
- package/web/dist/assets/skills-BJPLRZL5.js +0 -1
- package/web/dist/assets/task-github-item-DyZdbhco.js +0 -1
- package/web/dist/assets/task-thread-QKAKHYiJ.js +0 -9
- package/web/dist/assets/use-desktop-C3yCutND.js +0 -1
- package/web/dist/assets/use-hand-to-agent-state-wGtVosbN.js +0 -1
- package/web/dist/assets/useQuery-C96hAjNV.js +0 -1
- package/web/dist/assets/ws-BD6s7UXb.js +0 -1
package/dist/server/server.d.ts
CHANGED
|
@@ -210,7 +210,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
210
210
|
remoteSettingsAdmin: boolean;
|
|
211
211
|
automations: boolean;
|
|
212
212
|
preview: boolean;
|
|
213
|
-
voice: boolean;
|
|
214
213
|
tokenMetrics: boolean;
|
|
215
214
|
tokenUsageMetrics: boolean;
|
|
216
215
|
costMetrics: boolean;
|
|
@@ -3679,103 +3678,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
3679
3678
|
};
|
|
3680
3679
|
};
|
|
3681
3680
|
};
|
|
3682
|
-
}, "/"> | import("hono/types").MergeSchemaPath<{
|
|
3683
|
-
"/voice/decide": {
|
|
3684
|
-
$post: {
|
|
3685
|
-
output: {
|
|
3686
|
-
error: string;
|
|
3687
|
-
};
|
|
3688
|
-
outputFormat: "json";
|
|
3689
|
-
status: 503;
|
|
3690
|
-
input: {
|
|
3691
|
-
json: {
|
|
3692
|
-
text: string;
|
|
3693
|
-
sidebarView: "active" | "automations";
|
|
3694
|
-
openRunId?: string | undefined;
|
|
3695
|
-
view?: "automations" | "git" | "github" | "inbox" | "new-task" | "other" | "settings" | "task" | undefined;
|
|
3696
|
-
askRequestId?: string | null | undefined;
|
|
3697
|
-
proposal?: {
|
|
3698
|
-
decisionId: string;
|
|
3699
|
-
action: "answer" | "tell";
|
|
3700
|
-
} | undefined;
|
|
3701
|
-
};
|
|
3702
|
-
};
|
|
3703
|
-
} | {
|
|
3704
|
-
output: {
|
|
3705
|
-
action: "open";
|
|
3706
|
-
decisionId: string;
|
|
3707
|
-
status: "archived" | "cancelled" | "done" | "failed" | "finished" | "monitoring" | "needs-permission" | "needs-review" | "needs-you" | "queued" | "running" | "scheduled" | "unread" | "waiting-for-capacity" | "waiting-for-ci" | "waiting-on-workers" | "working";
|
|
3708
|
-
position: number | "last" | "next" | "previous";
|
|
3709
|
-
confidence: number;
|
|
3710
|
-
alternatives?: {
|
|
3711
|
-
status: "archived" | "cancelled" | "done" | "failed" | "finished" | "monitoring" | "needs-permission" | "needs-review" | "needs-you" | "queued" | "running" | "scheduled" | "unread" | "waiting-for-capacity" | "waiting-for-ci" | "waiting-on-workers" | "working";
|
|
3712
|
-
position: number | "last" | "next" | "previous";
|
|
3713
|
-
}[] | undefined;
|
|
3714
|
-
} | {
|
|
3715
|
-
action: "answer";
|
|
3716
|
-
decisionId: string;
|
|
3717
|
-
runId: string;
|
|
3718
|
-
askRequestId: string;
|
|
3719
|
-
answers: ({
|
|
3720
|
-
question: number;
|
|
3721
|
-
kind: "option";
|
|
3722
|
-
labels: string[];
|
|
3723
|
-
} | {
|
|
3724
|
-
question: number;
|
|
3725
|
-
kind: "other";
|
|
3726
|
-
text: string;
|
|
3727
|
-
})[];
|
|
3728
|
-
confidence: number;
|
|
3729
|
-
} | {
|
|
3730
|
-
action: "tell";
|
|
3731
|
-
decisionId: string;
|
|
3732
|
-
runId: string;
|
|
3733
|
-
text: string;
|
|
3734
|
-
confidence: number;
|
|
3735
|
-
} | {
|
|
3736
|
-
action: "confirm";
|
|
3737
|
-
decisionId: string;
|
|
3738
|
-
} | {
|
|
3739
|
-
action: "cancel";
|
|
3740
|
-
decisionId: string;
|
|
3741
|
-
} | {
|
|
3742
|
-
action: "none";
|
|
3743
|
-
decisionId: string;
|
|
3744
|
-
reason: "ambiguous" | "no-open-question" | "no-open-task" | "not-a-command" | "stale-context" | "unclear" | "unsupported";
|
|
3745
|
-
};
|
|
3746
|
-
outputFormat: "json";
|
|
3747
|
-
status: 200;
|
|
3748
|
-
input: {
|
|
3749
|
-
json: {
|
|
3750
|
-
text: string;
|
|
3751
|
-
sidebarView: "active" | "automations";
|
|
3752
|
-
openRunId?: string | undefined;
|
|
3753
|
-
view?: "automations" | "git" | "github" | "inbox" | "new-task" | "other" | "settings" | "task" | undefined;
|
|
3754
|
-
askRequestId?: string | null | undefined;
|
|
3755
|
-
proposal?: {
|
|
3756
|
-
decisionId: string;
|
|
3757
|
-
action: "answer" | "tell";
|
|
3758
|
-
} | undefined;
|
|
3759
|
-
};
|
|
3760
|
-
};
|
|
3761
|
-
};
|
|
3762
|
-
};
|
|
3763
|
-
} & {
|
|
3764
|
-
"/voice/outcome": {
|
|
3765
|
-
$post: {
|
|
3766
|
-
output: {
|
|
3767
|
-
ok: true;
|
|
3768
|
-
};
|
|
3769
|
-
outputFormat: "json";
|
|
3770
|
-
status: 200;
|
|
3771
|
-
input: {
|
|
3772
|
-
json: {
|
|
3773
|
-
decisionId: string;
|
|
3774
|
-
outcome: "abandoned" | "cancelled" | "confirmed" | "executed" | "replaced";
|
|
3775
|
-
};
|
|
3776
|
-
};
|
|
3777
|
-
};
|
|
3778
|
-
};
|
|
3779
3681
|
}, "/"> | import("hono/types").MergeSchemaPath<{
|
|
3780
3682
|
"/agent-webhooks": {
|
|
3781
3683
|
$get: {
|
|
@@ -8679,35 +8581,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
8679
8581
|
} & {
|
|
8680
8582
|
"/runs/:id/worker-destroy": {
|
|
8681
8583
|
$post: {
|
|
8682
|
-
output: {
|
|
8683
|
-
readonly code: "capacity_limit" | "denied_scope" | "incompatible_state" | "incomplete_cleanup" | "invalid_baseline" | "invalid_input" | "unauthenticated" | "unavailable_diff" | "unavailable_transport";
|
|
8684
|
-
readonly error: string;
|
|
8685
|
-
readonly modelChoices?: {
|
|
8686
|
-
runner: "claude" | "codex" | "cursor" | "omp" | "opencode" | "pi";
|
|
8687
|
-
requestedModel: string;
|
|
8688
|
-
availableModels: {
|
|
8689
|
-
id: string;
|
|
8690
|
-
label: string;
|
|
8691
|
-
description: string;
|
|
8692
|
-
effortLevels?: ("high" | "low" | "max" | "medium" | "xhigh")[] | undefined;
|
|
8693
|
-
}[];
|
|
8694
|
-
otherRunners: ("claude" | "codex" | "cursor" | "omp" | "opencode" | "pi")[];
|
|
8695
|
-
} | undefined;
|
|
8696
|
-
};
|
|
8697
|
-
outputFormat: "json";
|
|
8698
|
-
status: 400 | 401 | 403 | 409 | 503;
|
|
8699
|
-
input: {
|
|
8700
|
-
query: {
|
|
8701
|
-
[x: string]: string | string[];
|
|
8702
|
-
};
|
|
8703
|
-
} & {
|
|
8704
|
-
param: {
|
|
8705
|
-
id: string;
|
|
8706
|
-
};
|
|
8707
|
-
} & {
|
|
8708
|
-
json: Record<string, never>;
|
|
8709
|
-
};
|
|
8710
|
-
} | {
|
|
8711
8584
|
output: {
|
|
8712
8585
|
error: string;
|
|
8713
8586
|
code?: "invalid_input" | undefined;
|
|
@@ -8779,6 +8652,35 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
8779
8652
|
} & {
|
|
8780
8653
|
json: Record<string, never>;
|
|
8781
8654
|
};
|
|
8655
|
+
} | {
|
|
8656
|
+
output: {
|
|
8657
|
+
readonly code: "capacity_limit" | "denied_scope" | "incompatible_state" | "incomplete_cleanup" | "invalid_baseline" | "invalid_input" | "unauthenticated" | "unavailable_diff" | "unavailable_transport";
|
|
8658
|
+
readonly error: string;
|
|
8659
|
+
readonly modelChoices?: {
|
|
8660
|
+
runner: "claude" | "codex" | "cursor" | "omp" | "opencode" | "pi";
|
|
8661
|
+
requestedModel: string;
|
|
8662
|
+
availableModels: {
|
|
8663
|
+
id: string;
|
|
8664
|
+
label: string;
|
|
8665
|
+
description: string;
|
|
8666
|
+
effortLevels?: ("high" | "low" | "max" | "medium" | "xhigh")[] | undefined;
|
|
8667
|
+
}[];
|
|
8668
|
+
otherRunners: ("claude" | "codex" | "cursor" | "omp" | "opencode" | "pi")[];
|
|
8669
|
+
} | undefined;
|
|
8670
|
+
};
|
|
8671
|
+
outputFormat: "json";
|
|
8672
|
+
status: 400 | 401 | 403 | 409 | 503;
|
|
8673
|
+
input: {
|
|
8674
|
+
query: {
|
|
8675
|
+
[x: string]: string | string[];
|
|
8676
|
+
};
|
|
8677
|
+
} & {
|
|
8678
|
+
param: {
|
|
8679
|
+
id: string;
|
|
8680
|
+
};
|
|
8681
|
+
} & {
|
|
8682
|
+
json: Record<string, never>;
|
|
8683
|
+
};
|
|
8782
8684
|
};
|
|
8783
8685
|
};
|
|
8784
8686
|
} & {
|
|
@@ -19557,103 +19459,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
19557
19459
|
};
|
|
19558
19460
|
};
|
|
19559
19461
|
};
|
|
19560
|
-
}, "/"> | import("hono/types").MergeSchemaPath<{
|
|
19561
|
-
"/voice/decide": {
|
|
19562
|
-
$post: {
|
|
19563
|
-
output: {
|
|
19564
|
-
error: string;
|
|
19565
|
-
};
|
|
19566
|
-
outputFormat: "json";
|
|
19567
|
-
status: 503;
|
|
19568
|
-
input: {
|
|
19569
|
-
json: {
|
|
19570
|
-
text: string;
|
|
19571
|
-
sidebarView: "active" | "automations";
|
|
19572
|
-
openRunId?: string | undefined;
|
|
19573
|
-
view?: "automations" | "git" | "github" | "inbox" | "new-task" | "other" | "settings" | "task" | undefined;
|
|
19574
|
-
askRequestId?: string | null | undefined;
|
|
19575
|
-
proposal?: {
|
|
19576
|
-
decisionId: string;
|
|
19577
|
-
action: "answer" | "tell";
|
|
19578
|
-
} | undefined;
|
|
19579
|
-
};
|
|
19580
|
-
};
|
|
19581
|
-
} | {
|
|
19582
|
-
output: {
|
|
19583
|
-
action: "open";
|
|
19584
|
-
decisionId: string;
|
|
19585
|
-
status: "archived" | "cancelled" | "done" | "failed" | "finished" | "monitoring" | "needs-permission" | "needs-review" | "needs-you" | "queued" | "running" | "scheduled" | "unread" | "waiting-for-capacity" | "waiting-for-ci" | "waiting-on-workers" | "working";
|
|
19586
|
-
position: number | "last" | "next" | "previous";
|
|
19587
|
-
confidence: number;
|
|
19588
|
-
alternatives?: {
|
|
19589
|
-
status: "archived" | "cancelled" | "done" | "failed" | "finished" | "monitoring" | "needs-permission" | "needs-review" | "needs-you" | "queued" | "running" | "scheduled" | "unread" | "waiting-for-capacity" | "waiting-for-ci" | "waiting-on-workers" | "working";
|
|
19590
|
-
position: number | "last" | "next" | "previous";
|
|
19591
|
-
}[] | undefined;
|
|
19592
|
-
} | {
|
|
19593
|
-
action: "answer";
|
|
19594
|
-
decisionId: string;
|
|
19595
|
-
runId: string;
|
|
19596
|
-
askRequestId: string;
|
|
19597
|
-
answers: ({
|
|
19598
|
-
question: number;
|
|
19599
|
-
kind: "option";
|
|
19600
|
-
labels: string[];
|
|
19601
|
-
} | {
|
|
19602
|
-
question: number;
|
|
19603
|
-
kind: "other";
|
|
19604
|
-
text: string;
|
|
19605
|
-
})[];
|
|
19606
|
-
confidence: number;
|
|
19607
|
-
} | {
|
|
19608
|
-
action: "tell";
|
|
19609
|
-
decisionId: string;
|
|
19610
|
-
runId: string;
|
|
19611
|
-
text: string;
|
|
19612
|
-
confidence: number;
|
|
19613
|
-
} | {
|
|
19614
|
-
action: "confirm";
|
|
19615
|
-
decisionId: string;
|
|
19616
|
-
} | {
|
|
19617
|
-
action: "cancel";
|
|
19618
|
-
decisionId: string;
|
|
19619
|
-
} | {
|
|
19620
|
-
action: "none";
|
|
19621
|
-
decisionId: string;
|
|
19622
|
-
reason: "ambiguous" | "no-open-question" | "no-open-task" | "not-a-command" | "stale-context" | "unclear" | "unsupported";
|
|
19623
|
-
};
|
|
19624
|
-
outputFormat: "json";
|
|
19625
|
-
status: 200;
|
|
19626
|
-
input: {
|
|
19627
|
-
json: {
|
|
19628
|
-
text: string;
|
|
19629
|
-
sidebarView: "active" | "automations";
|
|
19630
|
-
openRunId?: string | undefined;
|
|
19631
|
-
view?: "automations" | "git" | "github" | "inbox" | "new-task" | "other" | "settings" | "task" | undefined;
|
|
19632
|
-
askRequestId?: string | null | undefined;
|
|
19633
|
-
proposal?: {
|
|
19634
|
-
decisionId: string;
|
|
19635
|
-
action: "answer" | "tell";
|
|
19636
|
-
} | undefined;
|
|
19637
|
-
};
|
|
19638
|
-
};
|
|
19639
|
-
};
|
|
19640
|
-
};
|
|
19641
|
-
} & {
|
|
19642
|
-
"/voice/outcome": {
|
|
19643
|
-
$post: {
|
|
19644
|
-
output: {
|
|
19645
|
-
ok: true;
|
|
19646
|
-
};
|
|
19647
|
-
outputFormat: "json";
|
|
19648
|
-
status: 200;
|
|
19649
|
-
input: {
|
|
19650
|
-
json: {
|
|
19651
|
-
decisionId: string;
|
|
19652
|
-
outcome: "abandoned" | "cancelled" | "confirmed" | "executed" | "replaced";
|
|
19653
|
-
};
|
|
19654
|
-
};
|
|
19655
|
-
};
|
|
19656
|
-
};
|
|
19657
19462
|
}, "/"> | import("hono/types").MergeSchemaPath<{
|
|
19658
19463
|
"/agent-webhooks": {
|
|
19659
19464
|
$get: {
|
|
@@ -24557,35 +24362,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
24557
24362
|
} & {
|
|
24558
24363
|
"/runs/:id/worker-destroy": {
|
|
24559
24364
|
$post: {
|
|
24560
|
-
output: {
|
|
24561
|
-
readonly code: "capacity_limit" | "denied_scope" | "incompatible_state" | "incomplete_cleanup" | "invalid_baseline" | "invalid_input" | "unauthenticated" | "unavailable_diff" | "unavailable_transport";
|
|
24562
|
-
readonly error: string;
|
|
24563
|
-
readonly modelChoices?: {
|
|
24564
|
-
runner: "claude" | "codex" | "cursor" | "omp" | "opencode" | "pi";
|
|
24565
|
-
requestedModel: string;
|
|
24566
|
-
availableModels: {
|
|
24567
|
-
id: string;
|
|
24568
|
-
label: string;
|
|
24569
|
-
description: string;
|
|
24570
|
-
effortLevels?: ("high" | "low" | "max" | "medium" | "xhigh")[] | undefined;
|
|
24571
|
-
}[];
|
|
24572
|
-
otherRunners: ("claude" | "codex" | "cursor" | "omp" | "opencode" | "pi")[];
|
|
24573
|
-
} | undefined;
|
|
24574
|
-
};
|
|
24575
|
-
outputFormat: "json";
|
|
24576
|
-
status: 400 | 401 | 403 | 409 | 503;
|
|
24577
|
-
input: {
|
|
24578
|
-
query: {
|
|
24579
|
-
[x: string]: string | string[];
|
|
24580
|
-
};
|
|
24581
|
-
} & {
|
|
24582
|
-
param: {
|
|
24583
|
-
id: string;
|
|
24584
|
-
};
|
|
24585
|
-
} & {
|
|
24586
|
-
json: Record<string, never>;
|
|
24587
|
-
};
|
|
24588
|
-
} | {
|
|
24589
24365
|
output: {
|
|
24590
24366
|
error: string;
|
|
24591
24367
|
code?: "invalid_input" | undefined;
|
|
@@ -24657,6 +24433,35 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
24657
24433
|
} & {
|
|
24658
24434
|
json: Record<string, never>;
|
|
24659
24435
|
};
|
|
24436
|
+
} | {
|
|
24437
|
+
output: {
|
|
24438
|
+
readonly code: "capacity_limit" | "denied_scope" | "incompatible_state" | "incomplete_cleanup" | "invalid_baseline" | "invalid_input" | "unauthenticated" | "unavailable_diff" | "unavailable_transport";
|
|
24439
|
+
readonly error: string;
|
|
24440
|
+
readonly modelChoices?: {
|
|
24441
|
+
runner: "claude" | "codex" | "cursor" | "omp" | "opencode" | "pi";
|
|
24442
|
+
requestedModel: string;
|
|
24443
|
+
availableModels: {
|
|
24444
|
+
id: string;
|
|
24445
|
+
label: string;
|
|
24446
|
+
description: string;
|
|
24447
|
+
effortLevels?: ("high" | "low" | "max" | "medium" | "xhigh")[] | undefined;
|
|
24448
|
+
}[];
|
|
24449
|
+
otherRunners: ("claude" | "codex" | "cursor" | "omp" | "opencode" | "pi")[];
|
|
24450
|
+
} | undefined;
|
|
24451
|
+
};
|
|
24452
|
+
outputFormat: "json";
|
|
24453
|
+
status: 400 | 401 | 403 | 409 | 503;
|
|
24454
|
+
input: {
|
|
24455
|
+
query: {
|
|
24456
|
+
[x: string]: string | string[];
|
|
24457
|
+
};
|
|
24458
|
+
} & {
|
|
24459
|
+
param: {
|
|
24460
|
+
id: string;
|
|
24461
|
+
};
|
|
24462
|
+
} & {
|
|
24463
|
+
json: Record<string, never>;
|
|
24464
|
+
};
|
|
24660
24465
|
};
|
|
24661
24466
|
};
|
|
24662
24467
|
} & {
|
package/dist/server/server.js
CHANGED
|
@@ -66,9 +66,6 @@ import { bodyLimit } from 'hono/body-limit';
|
|
|
66
66
|
import { streamSSE } from 'hono/streaming';
|
|
67
67
|
import { matchedRoutes } from 'hono/route';
|
|
68
68
|
import { jsonZodValidator, paramZodValidator, queryZodValidator } from './validators.js';
|
|
69
|
-
import { RecentVoiceActions } from '../voice/decision-log.js';
|
|
70
|
-
import { selectVoiceEngine } from '../voice/engine.js';
|
|
71
|
-
import { createVoiceRoutes } from '../voice/routes.js';
|
|
72
69
|
import { deliverOnce, registryEntry, sendAgentReport } from '../runs/webhook.js';
|
|
73
70
|
import { parse as parseYaml, stringify as stringifyYaml } from 'yaml';
|
|
74
71
|
import { z } from 'zod';
|
|
@@ -309,7 +306,7 @@ function negotiate(accept, offers) {
|
|
|
309
306
|
return best?.offer ?? null;
|
|
310
307
|
}
|
|
311
308
|
/** What `GET /repo/commit/:sha` offers, DEFAULT FIRST: the legacy `text/plain` blob is what a
|
|
312
|
-
* request with no opinion has always received
|
|
309
|
+
* request with no opinion has always received, so it also wins an Accept tie. */
|
|
313
310
|
const COMMIT_FORMATS = ['text/plain', 'application/json'];
|
|
314
311
|
/** What `GET /runs/:id/files` offers, DEFAULT FIRST. `image/*` rather than a concrete type: which
|
|
315
312
|
* image type the bytes are is only known once the path resolves, and the raw branch refuses
|
|
@@ -699,8 +696,7 @@ export function createApp(deps) {
|
|
|
699
696
|
healthConfig(bootRoot, deps.home),
|
|
700
697
|
workspaceSummary(),
|
|
701
698
|
]);
|
|
702
|
-
//
|
|
703
|
-
// externally-depended-on JSON in the app (BACKWARD_COMPATIBILITY.md).
|
|
699
|
+
// Callers outside the cockpit read this JSON.
|
|
704
700
|
const forge = resolveProjectForge(repo);
|
|
705
701
|
const caps = capabilities();
|
|
706
702
|
return {
|
|
@@ -712,8 +708,8 @@ export function createApp(deps) {
|
|
|
712
708
|
...(update?.latest !== undefined ? { latestVersion: update.latest } : {}),
|
|
713
709
|
// Health is CORS-open and, in hosted mode, reachable off the loopback —
|
|
714
710
|
// so any site/host that reads it would learn the developer's absolute
|
|
715
|
-
// checkout path and username (#431). Local mode keeps the full path
|
|
716
|
-
//
|
|
711
|
+
// checkout path and username (#431). Local mode keeps the full path;
|
|
712
|
+
// hosted/remote mode trims it to a basename.
|
|
717
713
|
// The field is always present and a string, but under CEZ_REMOTE it is
|
|
718
714
|
// no longer an absolute path. A hosted cockpit's paths are on a machine
|
|
719
715
|
// the reader does not have anyway.
|
|
@@ -752,8 +748,7 @@ export function createApp(deps) {
|
|
|
752
748
|
// the same number — but the normal state of a background `hsq serve` is NO
|
|
753
749
|
// subscriber, and then nothing refreshes the cache at all: the next `GET
|
|
754
750
|
// /api/health`, an hour later, would answer with the boot pre-warm's payload
|
|
755
|
-
// and only the request AFTER it would see the truth.
|
|
756
|
-
// bookmarklet contract (BACKWARD_COMPATIBILITY.md) and `repo.branch` going stale is
|
|
751
|
+
// and only the request AFTER it would see the truth. `repo.branch` going stale there is
|
|
757
752
|
// literally #369, so past this age correctness beats the latency win and the
|
|
758
753
|
// read waits for the compute. `refreshHealth` dedupes, so waiting costs one.
|
|
759
754
|
const HEALTH_MAX_STALE_MS = 60_000;
|
|
@@ -2301,7 +2296,7 @@ export function createApp(deps) {
|
|
|
2301
2296
|
.use('/ui-state', bodyLimit({ maxSize: UI_STATE_BODY_LIMIT }))
|
|
2302
2297
|
.put('/ui-state', jsonZodValidator(uiStateBody), async (c) => {
|
|
2303
2298
|
const { root: repoRoot, dataDir } = c.get('project');
|
|
2304
|
-
// `.passthrough()` keeps unknown prefs
|
|
2299
|
+
// `.passthrough()` keeps unknown prefs, but a
|
|
2305
2300
|
// single request may not stuff an unbounded key set (#429) — the shared
|
|
2306
2301
|
// schema+cap half of both ui-state routes lives in `uiStateBody`.
|
|
2307
2302
|
const parsed = { data: c.req.valid('json') };
|
|
@@ -3379,8 +3374,8 @@ export function createApp(deps) {
|
|
|
3379
3374
|
if (wantsRaw) {
|
|
3380
3375
|
const mime = imageMimeType(result.path);
|
|
3381
3376
|
if (mime === null || result.tooLarge) {
|
|
3382
|
-
// `?raw=1` ASKED for bytes, so it hears why it cannot have them
|
|
3383
|
-
//
|
|
3377
|
+
// `?raw=1` ASKED for bytes, so it hears why it cannot have them (a 409 with the
|
|
3378
|
+
// reason). An `Accept` is only a preference, so a
|
|
3384
3379
|
// resource with no image representation falls THROUGH to the JSON answer below rather
|
|
3385
3380
|
// than turning a browser's navigation to a text file into an error.
|
|
3386
3381
|
if (query.raw !== undefined) {
|
|
@@ -4007,8 +4002,8 @@ export function createApp(deps) {
|
|
|
4007
4002
|
// One commit's message + stat + patch — the Repo view expands it inline.
|
|
4008
4003
|
// `?structured=1` is the ADDITIVE sibling (R5 Step 1.7): the new repo view's commit-diff
|
|
4009
4004
|
// shape `{sha, subject, author, when, files, stat}` with 409 + reason on failure. The
|
|
4010
|
-
// legacy text answer below is
|
|
4011
|
-
//
|
|
4005
|
+
// legacy text answer below is what the route returns without the flag, in-band failure
|
|
4006
|
+
// sentences included.
|
|
4012
4007
|
//
|
|
4013
4008
|
// `Accept: application/json` reaches the same structured answer without the flag, and
|
|
4014
4009
|
// `Accept: text/plain` asks for the blob; the flag still wins whenever it is present, and a
|
|
@@ -4206,15 +4201,9 @@ export function createApp(deps) {
|
|
|
4206
4201
|
// ---- assemble the chained families --------------------------------------
|
|
4207
4202
|
// Every chained family is registered ONCE and mounted into the versioned table. There is no
|
|
4208
4203
|
// second, unversioned spelling: `/api/*` was removed once the whole API was reachable under
|
|
4209
|
-
// `/api/v1
|
|
4204
|
+
// `/api/v1`. One surface means one thing to keep working, and
|
|
4210
4205
|
// it is the one the typed client describes.
|
|
4211
4206
|
//
|
|
4212
|
-
// ---- chained family: voice mode (project-scoped, gated on CEZ_VOICE) ----
|
|
4213
|
-
const voiceRoutes = createVoiceRoutes({
|
|
4214
|
-
voiceEnabled: () => capabilities().voice,
|
|
4215
|
-
engine: () => selectVoiceEngine(process.env),
|
|
4216
|
-
recent: new RecentVoiceActions(),
|
|
4217
|
-
});
|
|
4218
4207
|
// MOUNT ORDER IS REGISTRATION ORDER. Hono matches in the order routes were added, so each
|
|
4219
4208
|
// family keeps its internal order and the families keep theirs relative to each other.
|
|
4220
4209
|
//
|
|
@@ -4267,8 +4256,7 @@ export function createApp(deps) {
|
|
|
4267
4256
|
.route('/', githubRoutes)
|
|
4268
4257
|
.route('/', repoRoutes)
|
|
4269
4258
|
.route('/', configRoutes)
|
|
4270
|
-
.route('/', agentConfigRoutes)
|
|
4271
|
-
.route('/', voiceRoutes);
|
|
4259
|
+
.route('/', agentConfigRoutes);
|
|
4272
4260
|
projectRoutePaths = new Set(v1.routes.filter((route) => route.method !== 'ALL')
|
|
4273
4261
|
.flatMap((route) => [V1_PREFIX, V1_SCOPED_PREFIX].map((prefix) => `${route.method} ${prefix}${route.path}`)));
|
|
4274
4262
|
// ---- chained family: the cross-project run index (workspace-level) -------
|