@hearsay-tools/squawk 0.18.0-pr3435.6000.2 → 0.18.0-pr3437.6021
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/ci-wait/client.d.ts +5 -5
- package/dist/ci-wait/client.js +10 -10
- package/dist/ci-wait/client.js.map +1 -1
- package/dist/ci-wait/controller.d.ts +11 -11
- package/dist/ci-wait/controller.js +9 -9
- package/dist/ci-wait/controller.js.map +1 -1
- package/dist/ci-wait/injection.js +2 -2
- package/dist/ci-wait/injection.js.map +1 -1
- package/dist/ci-wait/mcp.js +3 -3
- package/dist/ci-wait/mcp.js.map +1 -1
- package/dist/ci-wait/tool-catalog.d.ts +3 -3
- package/dist/ci-wait/tool-catalog.js +10 -10
- package/dist/ci-wait/tool-catalog.js.map +1 -1
- package/dist/ci-wait/tools.d.ts +7 -7
- package/dist/ci-wait/tools.js +11 -11
- package/dist/ci-wait/tools.js.map +1 -1
- package/dist/contract/ask-schema.d.ts +1 -1
- package/dist/contract/index.js +16 -16
- package/dist/contract/waits.d.ts +17 -17
- package/dist/core/agent-runner.d.ts +1 -1
- package/dist/core/agent-runner.js +1 -1
- package/dist/core/agent-runner.js.map +1 -1
- package/dist/core/claude-cli-runner.js +14 -14
- package/dist/core/claude-cli-runner.js.map +1 -1
- package/dist/core/claude-stream.d.ts +1 -1
- package/dist/core/claude-stream.js +2 -2
- package/dist/core/claude-stream.js.map +1 -1
- package/dist/core/codex-app-server-runner.js +15 -15
- package/dist/core/codex-app-server-runner.js.map +1 -1
- package/dist/core/codex-approvals.d.ts +2 -2
- package/dist/core/codex-approvals.js +5 -5
- package/dist/core/codex-approvals.js.map +1 -1
- package/dist/core/codex-native-frames.d.ts +4 -4
- package/dist/core/codex-native-frames.js +5 -5
- package/dist/core/codex-native-frames.js.map +1 -1
- package/dist/core/cursor-print-runner.js +7 -7
- package/dist/core/cursor-print-runner.js.map +1 -1
- package/dist/core/omp-runner.d.ts +1 -1
- package/dist/core/omp-runner.js +13 -13
- package/dist/core/omp-runner.js.map +1 -1
- package/dist/core/opencode-server-runner.js +4 -4
- package/dist/core/opencode-server-runner.js.map +1 -1
- package/dist/core/pi-rpc-turn.d.ts +1 -1
- package/dist/core/pi-rpc-turn.js +1 -1
- package/dist/core/pi-rpc-turn.js.map +1 -1
- package/dist/core/pi-runner.js +14 -14
- package/dist/core/pi-runner.js.map +1 -1
- package/dist/delegation/park-notice.js +2 -2
- package/dist/delegation/park-notice.js.map +1 -1
- package/dist/home/boundary.js +4 -4
- package/dist/home/boundary.js.map +1 -1
- package/dist/home/home.js +2 -2
- package/dist/home/home.js.map +1 -1
- package/dist/home/install-marker.js +3 -3
- package/dist/home/install-marker.js.map +1 -1
- package/dist/home/migrate.js +2 -2
- package/dist/home/migrate.js.map +1 -1
- package/dist/home/migration-plan.d.ts +1 -1
- package/dist/home/migration-plan.js +1 -1
- package/dist/home/migration-plan.js.map +1 -1
- package/dist/home/store.js +2 -2
- package/dist/home/store.js.map +1 -1
- package/dist/managed-install/launcher.js +3 -3
- package/dist/managed-install/launcher.js.map +1 -1
- package/dist/paths.d.ts +1 -1
- package/dist/paths.js +1 -1
- package/dist/paths.js.map +1 -1
- package/dist/planner.d.ts +8 -1
- package/dist/planner.js +63 -2
- package/dist/planner.js.map +1 -1
- package/dist/preview/registration.d.ts +1 -1
- package/dist/preview/registration.js +1 -1
- package/dist/preview/registration.js.map +1 -1
- package/dist/preview/run-tools.d.ts +2 -2
- package/dist/preview/run-tools.js +5 -5
- package/dist/preview/run-tools.js.map +1 -1
- package/dist/runs/auto-name.js +1 -1
- package/dist/runs/auto-name.js.map +1 -1
- package/dist/serve-command.js +3 -3
- package/dist/serve-command.js.map +1 -1
- package/dist/server/project-context.d.ts +1 -1
- package/dist/server/project-context.js +1 -1
- package/dist/server/project-context.js.map +1 -1
- package/dist/server/server.d.ts +195 -195
- package/dist/server/server.js +5 -5
- package/dist/server/server.js.map +1 -1
- package/dist/server/workspace-projects.d.ts +1 -1
- package/dist/server-install/platforms/macosx-ngrok.d.ts +2 -2
- package/dist/server-install/platforms/macosx-ngrok.js +8 -8
- package/dist/server-install/platforms/macosx-ngrok.js.map +1 -1
- package/dist/server-install/platforms/ubuntu-vps-migration.d.ts +1 -1
- package/dist/server-install/platforms/ubuntu-vps-migration.js +1 -1
- package/dist/server-install/platforms/ubuntu-vps-migration.js.map +1 -1
- package/dist/server-install/platforms/ubuntu-vps-redeploy.d.ts +1 -1
- package/dist/server-install/platforms/ubuntu-vps-redeploy.js +1 -1
- package/dist/server-install/platforms/ubuntu-vps-redeploy.js.map +1 -1
- package/dist/server-install/platforms/ubuntu-vps.js +11 -11
- package/dist/server-install/platforms/ubuntu-vps.js.map +1 -1
- package/dist/workflows/completion-policy.d.ts +2 -2
- package/dist/workflows/run/compose.d.ts +8 -8
- package/dist/workflows/run/compose.js +6 -6
- package/dist/workflows/run/compose.js.map +1 -1
- package/dist/workflows/run/continuation-session.js +2 -2
- package/dist/workflows/run/continuation-session.js.map +1 -1
- package/dist/workflows/run/human-waits.d.ts +5 -5
- package/dist/workflows/run/human-waits.js +10 -10
- package/dist/workflows/run/human-waits.js.map +1 -1
- package/dist/workflows/run/run-finish.d.ts +2 -2
- package/dist/workflows/run/run-finish.js +3 -3
- package/dist/workflows/run/run-finish.js.map +1 -1
- package/dist/workflows/run/run-recovery.js +3 -3
- package/dist/workflows/run/run-recovery.js.map +1 -1
- package/dist/workflows/run/run-settlement.js +1 -1
- package/dist/workflows/run/run-settlement.js.map +1 -1
- package/dist/workflows/run/{cezar-tools.d.ts → squawk-tools.d.ts} +7 -7
- package/dist/workflows/run/{cezar-tools.js → squawk-tools.js} +3 -3
- package/dist/workflows/run/squawk-tools.js.map +1 -0
- package/dist/workflows/run/step-loop.js +1 -1
- package/dist/workflows/run/step-loop.js.map +1 -1
- package/dist/workflows/run/step-session.js +1 -1
- package/dist/workflows/run/step-session.js.map +1 -1
- package/dist/workflows/run/turn-settler.js +5 -5
- package/dist/workflows/run/turn-settler.js.map +1 -1
- package/dist/workflows/run/wait-engine.d.ts +1 -1
- package/dist/workflows/run/wait-engine.js +1 -1
- package/dist/workflows/run/wait-engine.js.map +1 -1
- package/dist/workflows/run/wait-kinds.d.ts +19 -19
- package/dist/workflows/run/wait-kinds.js +2 -2
- package/dist/workflows/run/wait-kinds.js.map +1 -1
- package/dist/workflows/run/wait-registration-tool.d.ts +3 -3
- package/dist/workflows/run/wait-registration-tool.js +2 -2
- package/dist/workflows/run/wait-registration-tool.js.map +1 -1
- package/dist/workflows/run/wait-registration.d.ts +2 -2
- package/dist/workflows/run/wait-registration.js.map +1 -1
- package/dist/workflows/run/wait-registry.d.ts +3 -3
- package/dist/workflows/run/wait-registry.js +4 -4
- package/dist/workflows/run/wait-registry.js.map +1 -1
- package/dist/workflows/run/worker-questions.d.ts +1 -1
- package/dist/workflows/run/worker-questions.js +2 -2
- package/dist/workflows/run/worker-questions.js.map +1 -1
- package/dist/workflows/run-states.js +1 -1
- package/dist/workflows/run-states.js.map +1 -1
- package/dist/workflows/run.d.ts +6 -6
- package/dist/workflows/run.js +6 -6
- package/dist/workflows/run.js.map +1 -1
- package/dist/workflows/turn-end.d.ts +1 -1
- package/dist/workflows/turn-end.js +1 -1
- package/dist/workflows/turn-end.js.map +1 -1
- package/dist/workflows/wait-scope.d.ts +2 -2
- package/dist/workflows/wait-scope.js.map +1 -1
- package/dist/workflows/waits.d.ts +1 -1
- package/dist/workflows/waits.js +3 -3
- package/dist/workflows/waits.js.map +1 -1
- package/dist/workspace/backups.js +6 -6
- package/dist/workspace/backups.js.map +1 -1
- package/package.json +4 -4
- package/scripts/mock-ci-tool.mjs +9 -9
- package/scripts/mock-codex-app-server.mjs +4 -4
- package/scripts/omp-ci-wait.mjs +2 -2
- package/scripts/opencode-task-scope.d.mts +1 -1
- package/scripts/opencode-task-scope.mjs +1 -1
- package/scripts/pi-ci-wait.mjs +2 -2
- package/dist/core/structured-output.d.ts +0 -9
- package/dist/core/structured-output.js +0 -64
- package/dist/core/structured-output.js.map +0 -1
- package/dist/workflows/run/cezar-tools.js.map +0 -1
package/dist/server/server.d.ts
CHANGED
|
@@ -127,7 +127,7 @@ export interface ServerDeps extends ActivityServerDeps {
|
|
|
127
127
|
* and every run manager answers `headless`. */
|
|
128
128
|
previewHost?: PreviewHost | undefined;
|
|
129
129
|
/** The port the cockpit listens on, once it does: `cezar_preview_serve` refuses it. */
|
|
130
|
-
|
|
130
|
+
squawkPort?: () => number | undefined;
|
|
131
131
|
/** Shared workspace identity and upgrade lookup; direct createApp callers get a local instance. */
|
|
132
132
|
workspaceProjects?: WorkspaceProjects;
|
|
133
133
|
/** Re-arm the workspace automation timer after definition mutations. */
|
|
@@ -3303,103 +3303,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
3303
3303
|
};
|
|
3304
3304
|
};
|
|
3305
3305
|
};
|
|
3306
|
-
}, "/"> | import("hono/types").MergeSchemaPath<{
|
|
3307
|
-
"/voice/decide": {
|
|
3308
|
-
$post: {
|
|
3309
|
-
output: {
|
|
3310
|
-
error: string;
|
|
3311
|
-
};
|
|
3312
|
-
outputFormat: "json";
|
|
3313
|
-
status: 503;
|
|
3314
|
-
input: {
|
|
3315
|
-
json: {
|
|
3316
|
-
text: string;
|
|
3317
|
-
sidebarView: "active" | "automations";
|
|
3318
|
-
openRunId?: string | undefined;
|
|
3319
|
-
view?: "automations" | "git" | "github" | "inbox" | "new-task" | "other" | "settings" | "task" | undefined;
|
|
3320
|
-
askRequestId?: string | null | undefined;
|
|
3321
|
-
proposal?: {
|
|
3322
|
-
decisionId: string;
|
|
3323
|
-
action: "answer" | "tell";
|
|
3324
|
-
} | undefined;
|
|
3325
|
-
};
|
|
3326
|
-
};
|
|
3327
|
-
} | {
|
|
3328
|
-
output: {
|
|
3329
|
-
action: "open";
|
|
3330
|
-
decisionId: string;
|
|
3331
|
-
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";
|
|
3332
|
-
position: number | "last" | "next" | "previous";
|
|
3333
|
-
confidence: number;
|
|
3334
|
-
alternatives?: {
|
|
3335
|
-
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";
|
|
3336
|
-
position: number | "last" | "next" | "previous";
|
|
3337
|
-
}[] | undefined;
|
|
3338
|
-
} | {
|
|
3339
|
-
action: "answer";
|
|
3340
|
-
decisionId: string;
|
|
3341
|
-
runId: string;
|
|
3342
|
-
askRequestId: string;
|
|
3343
|
-
answers: ({
|
|
3344
|
-
question: number;
|
|
3345
|
-
kind: "option";
|
|
3346
|
-
labels: string[];
|
|
3347
|
-
} | {
|
|
3348
|
-
question: number;
|
|
3349
|
-
kind: "other";
|
|
3350
|
-
text: string;
|
|
3351
|
-
})[];
|
|
3352
|
-
confidence: number;
|
|
3353
|
-
} | {
|
|
3354
|
-
action: "tell";
|
|
3355
|
-
decisionId: string;
|
|
3356
|
-
runId: string;
|
|
3357
|
-
text: string;
|
|
3358
|
-
confidence: number;
|
|
3359
|
-
} | {
|
|
3360
|
-
action: "confirm";
|
|
3361
|
-
decisionId: string;
|
|
3362
|
-
} | {
|
|
3363
|
-
action: "cancel";
|
|
3364
|
-
decisionId: string;
|
|
3365
|
-
} | {
|
|
3366
|
-
action: "none";
|
|
3367
|
-
decisionId: string;
|
|
3368
|
-
reason: "ambiguous" | "no-open-question" | "no-open-task" | "not-a-command" | "stale-context" | "unclear" | "unsupported";
|
|
3369
|
-
};
|
|
3370
|
-
outputFormat: "json";
|
|
3371
|
-
status: 200;
|
|
3372
|
-
input: {
|
|
3373
|
-
json: {
|
|
3374
|
-
text: string;
|
|
3375
|
-
sidebarView: "active" | "automations";
|
|
3376
|
-
openRunId?: string | undefined;
|
|
3377
|
-
view?: "automations" | "git" | "github" | "inbox" | "new-task" | "other" | "settings" | "task" | undefined;
|
|
3378
|
-
askRequestId?: string | null | undefined;
|
|
3379
|
-
proposal?: {
|
|
3380
|
-
decisionId: string;
|
|
3381
|
-
action: "answer" | "tell";
|
|
3382
|
-
} | undefined;
|
|
3383
|
-
};
|
|
3384
|
-
};
|
|
3385
|
-
};
|
|
3386
|
-
};
|
|
3387
|
-
} & {
|
|
3388
|
-
"/voice/outcome": {
|
|
3389
|
-
$post: {
|
|
3390
|
-
output: {
|
|
3391
|
-
ok: true;
|
|
3392
|
-
};
|
|
3393
|
-
outputFormat: "json";
|
|
3394
|
-
status: 200;
|
|
3395
|
-
input: {
|
|
3396
|
-
json: {
|
|
3397
|
-
decisionId: string;
|
|
3398
|
-
outcome: "abandoned" | "cancelled" | "confirmed" | "executed" | "replaced";
|
|
3399
|
-
};
|
|
3400
|
-
};
|
|
3401
|
-
};
|
|
3402
|
-
};
|
|
3403
3306
|
}, "/"> | import("hono/types").MergeSchemaPath<{
|
|
3404
3307
|
"/ui-state": {
|
|
3405
3308
|
$get: {
|
|
@@ -3830,6 +3733,103 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
3830
3733
|
};
|
|
3831
3734
|
};
|
|
3832
3735
|
};
|
|
3736
|
+
}, "/"> | import("hono/types").MergeSchemaPath<{
|
|
3737
|
+
"/voice/decide": {
|
|
3738
|
+
$post: {
|
|
3739
|
+
output: {
|
|
3740
|
+
error: string;
|
|
3741
|
+
};
|
|
3742
|
+
outputFormat: "json";
|
|
3743
|
+
status: 503;
|
|
3744
|
+
input: {
|
|
3745
|
+
json: {
|
|
3746
|
+
text: string;
|
|
3747
|
+
sidebarView: "active" | "automations";
|
|
3748
|
+
openRunId?: string | undefined;
|
|
3749
|
+
view?: "automations" | "git" | "github" | "inbox" | "new-task" | "other" | "settings" | "task" | undefined;
|
|
3750
|
+
askRequestId?: string | null | undefined;
|
|
3751
|
+
proposal?: {
|
|
3752
|
+
decisionId: string;
|
|
3753
|
+
action: "answer" | "tell";
|
|
3754
|
+
} | undefined;
|
|
3755
|
+
};
|
|
3756
|
+
};
|
|
3757
|
+
} | {
|
|
3758
|
+
output: {
|
|
3759
|
+
action: "open";
|
|
3760
|
+
decisionId: string;
|
|
3761
|
+
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";
|
|
3762
|
+
position: number | "last" | "next" | "previous";
|
|
3763
|
+
confidence: number;
|
|
3764
|
+
alternatives?: {
|
|
3765
|
+
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";
|
|
3766
|
+
position: number | "last" | "next" | "previous";
|
|
3767
|
+
}[] | undefined;
|
|
3768
|
+
} | {
|
|
3769
|
+
action: "answer";
|
|
3770
|
+
decisionId: string;
|
|
3771
|
+
runId: string;
|
|
3772
|
+
askRequestId: string;
|
|
3773
|
+
answers: ({
|
|
3774
|
+
question: number;
|
|
3775
|
+
kind: "option";
|
|
3776
|
+
labels: string[];
|
|
3777
|
+
} | {
|
|
3778
|
+
question: number;
|
|
3779
|
+
kind: "other";
|
|
3780
|
+
text: string;
|
|
3781
|
+
})[];
|
|
3782
|
+
confidence: number;
|
|
3783
|
+
} | {
|
|
3784
|
+
action: "tell";
|
|
3785
|
+
decisionId: string;
|
|
3786
|
+
runId: string;
|
|
3787
|
+
text: string;
|
|
3788
|
+
confidence: number;
|
|
3789
|
+
} | {
|
|
3790
|
+
action: "confirm";
|
|
3791
|
+
decisionId: string;
|
|
3792
|
+
} | {
|
|
3793
|
+
action: "cancel";
|
|
3794
|
+
decisionId: string;
|
|
3795
|
+
} | {
|
|
3796
|
+
action: "none";
|
|
3797
|
+
decisionId: string;
|
|
3798
|
+
reason: "ambiguous" | "no-open-question" | "no-open-task" | "not-a-command" | "stale-context" | "unclear" | "unsupported";
|
|
3799
|
+
};
|
|
3800
|
+
outputFormat: "json";
|
|
3801
|
+
status: 200;
|
|
3802
|
+
input: {
|
|
3803
|
+
json: {
|
|
3804
|
+
text: string;
|
|
3805
|
+
sidebarView: "active" | "automations";
|
|
3806
|
+
openRunId?: string | undefined;
|
|
3807
|
+
view?: "automations" | "git" | "github" | "inbox" | "new-task" | "other" | "settings" | "task" | undefined;
|
|
3808
|
+
askRequestId?: string | null | undefined;
|
|
3809
|
+
proposal?: {
|
|
3810
|
+
decisionId: string;
|
|
3811
|
+
action: "answer" | "tell";
|
|
3812
|
+
} | undefined;
|
|
3813
|
+
};
|
|
3814
|
+
};
|
|
3815
|
+
};
|
|
3816
|
+
};
|
|
3817
|
+
} & {
|
|
3818
|
+
"/voice/outcome": {
|
|
3819
|
+
$post: {
|
|
3820
|
+
output: {
|
|
3821
|
+
ok: true;
|
|
3822
|
+
};
|
|
3823
|
+
outputFormat: "json";
|
|
3824
|
+
status: 200;
|
|
3825
|
+
input: {
|
|
3826
|
+
json: {
|
|
3827
|
+
decisionId: string;
|
|
3828
|
+
outcome: "abandoned" | "cancelled" | "confirmed" | "executed" | "replaced";
|
|
3829
|
+
};
|
|
3830
|
+
};
|
|
3831
|
+
};
|
|
3832
|
+
};
|
|
3833
3833
|
}, "/"> | import("hono/types").MergeSchemaPath<{
|
|
3834
3834
|
"/agent-webhooks": {
|
|
3835
3835
|
$get: {
|
|
@@ -19180,103 +19180,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
19180
19180
|
};
|
|
19181
19181
|
};
|
|
19182
19182
|
};
|
|
19183
|
-
}, "/"> | import("hono/types").MergeSchemaPath<{
|
|
19184
|
-
"/voice/decide": {
|
|
19185
|
-
$post: {
|
|
19186
|
-
output: {
|
|
19187
|
-
error: string;
|
|
19188
|
-
};
|
|
19189
|
-
outputFormat: "json";
|
|
19190
|
-
status: 503;
|
|
19191
|
-
input: {
|
|
19192
|
-
json: {
|
|
19193
|
-
text: string;
|
|
19194
|
-
sidebarView: "active" | "automations";
|
|
19195
|
-
openRunId?: string | undefined;
|
|
19196
|
-
view?: "automations" | "git" | "github" | "inbox" | "new-task" | "other" | "settings" | "task" | undefined;
|
|
19197
|
-
askRequestId?: string | null | undefined;
|
|
19198
|
-
proposal?: {
|
|
19199
|
-
decisionId: string;
|
|
19200
|
-
action: "answer" | "tell";
|
|
19201
|
-
} | undefined;
|
|
19202
|
-
};
|
|
19203
|
-
};
|
|
19204
|
-
} | {
|
|
19205
|
-
output: {
|
|
19206
|
-
action: "open";
|
|
19207
|
-
decisionId: string;
|
|
19208
|
-
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";
|
|
19209
|
-
position: number | "last" | "next" | "previous";
|
|
19210
|
-
confidence: number;
|
|
19211
|
-
alternatives?: {
|
|
19212
|
-
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";
|
|
19213
|
-
position: number | "last" | "next" | "previous";
|
|
19214
|
-
}[] | undefined;
|
|
19215
|
-
} | {
|
|
19216
|
-
action: "answer";
|
|
19217
|
-
decisionId: string;
|
|
19218
|
-
runId: string;
|
|
19219
|
-
askRequestId: string;
|
|
19220
|
-
answers: ({
|
|
19221
|
-
question: number;
|
|
19222
|
-
kind: "option";
|
|
19223
|
-
labels: string[];
|
|
19224
|
-
} | {
|
|
19225
|
-
question: number;
|
|
19226
|
-
kind: "other";
|
|
19227
|
-
text: string;
|
|
19228
|
-
})[];
|
|
19229
|
-
confidence: number;
|
|
19230
|
-
} | {
|
|
19231
|
-
action: "tell";
|
|
19232
|
-
decisionId: string;
|
|
19233
|
-
runId: string;
|
|
19234
|
-
text: string;
|
|
19235
|
-
confidence: number;
|
|
19236
|
-
} | {
|
|
19237
|
-
action: "confirm";
|
|
19238
|
-
decisionId: string;
|
|
19239
|
-
} | {
|
|
19240
|
-
action: "cancel";
|
|
19241
|
-
decisionId: string;
|
|
19242
|
-
} | {
|
|
19243
|
-
action: "none";
|
|
19244
|
-
decisionId: string;
|
|
19245
|
-
reason: "ambiguous" | "no-open-question" | "no-open-task" | "not-a-command" | "stale-context" | "unclear" | "unsupported";
|
|
19246
|
-
};
|
|
19247
|
-
outputFormat: "json";
|
|
19248
|
-
status: 200;
|
|
19249
|
-
input: {
|
|
19250
|
-
json: {
|
|
19251
|
-
text: string;
|
|
19252
|
-
sidebarView: "active" | "automations";
|
|
19253
|
-
openRunId?: string | undefined;
|
|
19254
|
-
view?: "automations" | "git" | "github" | "inbox" | "new-task" | "other" | "settings" | "task" | undefined;
|
|
19255
|
-
askRequestId?: string | null | undefined;
|
|
19256
|
-
proposal?: {
|
|
19257
|
-
decisionId: string;
|
|
19258
|
-
action: "answer" | "tell";
|
|
19259
|
-
} | undefined;
|
|
19260
|
-
};
|
|
19261
|
-
};
|
|
19262
|
-
};
|
|
19263
|
-
};
|
|
19264
|
-
} & {
|
|
19265
|
-
"/voice/outcome": {
|
|
19266
|
-
$post: {
|
|
19267
|
-
output: {
|
|
19268
|
-
ok: true;
|
|
19269
|
-
};
|
|
19270
|
-
outputFormat: "json";
|
|
19271
|
-
status: 200;
|
|
19272
|
-
input: {
|
|
19273
|
-
json: {
|
|
19274
|
-
decisionId: string;
|
|
19275
|
-
outcome: "abandoned" | "cancelled" | "confirmed" | "executed" | "replaced";
|
|
19276
|
-
};
|
|
19277
|
-
};
|
|
19278
|
-
};
|
|
19279
|
-
};
|
|
19280
19183
|
}, "/"> | import("hono/types").MergeSchemaPath<{
|
|
19281
19184
|
"/ui-state": {
|
|
19282
19185
|
$get: {
|
|
@@ -19707,6 +19610,103 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
19707
19610
|
};
|
|
19708
19611
|
};
|
|
19709
19612
|
};
|
|
19613
|
+
}, "/"> | import("hono/types").MergeSchemaPath<{
|
|
19614
|
+
"/voice/decide": {
|
|
19615
|
+
$post: {
|
|
19616
|
+
output: {
|
|
19617
|
+
error: string;
|
|
19618
|
+
};
|
|
19619
|
+
outputFormat: "json";
|
|
19620
|
+
status: 503;
|
|
19621
|
+
input: {
|
|
19622
|
+
json: {
|
|
19623
|
+
text: string;
|
|
19624
|
+
sidebarView: "active" | "automations";
|
|
19625
|
+
openRunId?: string | undefined;
|
|
19626
|
+
view?: "automations" | "git" | "github" | "inbox" | "new-task" | "other" | "settings" | "task" | undefined;
|
|
19627
|
+
askRequestId?: string | null | undefined;
|
|
19628
|
+
proposal?: {
|
|
19629
|
+
decisionId: string;
|
|
19630
|
+
action: "answer" | "tell";
|
|
19631
|
+
} | undefined;
|
|
19632
|
+
};
|
|
19633
|
+
};
|
|
19634
|
+
} | {
|
|
19635
|
+
output: {
|
|
19636
|
+
action: "open";
|
|
19637
|
+
decisionId: string;
|
|
19638
|
+
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";
|
|
19639
|
+
position: number | "last" | "next" | "previous";
|
|
19640
|
+
confidence: number;
|
|
19641
|
+
alternatives?: {
|
|
19642
|
+
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";
|
|
19643
|
+
position: number | "last" | "next" | "previous";
|
|
19644
|
+
}[] | undefined;
|
|
19645
|
+
} | {
|
|
19646
|
+
action: "answer";
|
|
19647
|
+
decisionId: string;
|
|
19648
|
+
runId: string;
|
|
19649
|
+
askRequestId: string;
|
|
19650
|
+
answers: ({
|
|
19651
|
+
question: number;
|
|
19652
|
+
kind: "option";
|
|
19653
|
+
labels: string[];
|
|
19654
|
+
} | {
|
|
19655
|
+
question: number;
|
|
19656
|
+
kind: "other";
|
|
19657
|
+
text: string;
|
|
19658
|
+
})[];
|
|
19659
|
+
confidence: number;
|
|
19660
|
+
} | {
|
|
19661
|
+
action: "tell";
|
|
19662
|
+
decisionId: string;
|
|
19663
|
+
runId: string;
|
|
19664
|
+
text: string;
|
|
19665
|
+
confidence: number;
|
|
19666
|
+
} | {
|
|
19667
|
+
action: "confirm";
|
|
19668
|
+
decisionId: string;
|
|
19669
|
+
} | {
|
|
19670
|
+
action: "cancel";
|
|
19671
|
+
decisionId: string;
|
|
19672
|
+
} | {
|
|
19673
|
+
action: "none";
|
|
19674
|
+
decisionId: string;
|
|
19675
|
+
reason: "ambiguous" | "no-open-question" | "no-open-task" | "not-a-command" | "stale-context" | "unclear" | "unsupported";
|
|
19676
|
+
};
|
|
19677
|
+
outputFormat: "json";
|
|
19678
|
+
status: 200;
|
|
19679
|
+
input: {
|
|
19680
|
+
json: {
|
|
19681
|
+
text: string;
|
|
19682
|
+
sidebarView: "active" | "automations";
|
|
19683
|
+
openRunId?: string | undefined;
|
|
19684
|
+
view?: "automations" | "git" | "github" | "inbox" | "new-task" | "other" | "settings" | "task" | undefined;
|
|
19685
|
+
askRequestId?: string | null | undefined;
|
|
19686
|
+
proposal?: {
|
|
19687
|
+
decisionId: string;
|
|
19688
|
+
action: "answer" | "tell";
|
|
19689
|
+
} | undefined;
|
|
19690
|
+
};
|
|
19691
|
+
};
|
|
19692
|
+
};
|
|
19693
|
+
};
|
|
19694
|
+
} & {
|
|
19695
|
+
"/voice/outcome": {
|
|
19696
|
+
$post: {
|
|
19697
|
+
output: {
|
|
19698
|
+
ok: true;
|
|
19699
|
+
};
|
|
19700
|
+
outputFormat: "json";
|
|
19701
|
+
status: 200;
|
|
19702
|
+
input: {
|
|
19703
|
+
json: {
|
|
19704
|
+
decisionId: string;
|
|
19705
|
+
outcome: "abandoned" | "cancelled" | "confirmed" | "executed" | "replaced";
|
|
19706
|
+
};
|
|
19707
|
+
};
|
|
19708
|
+
};
|
|
19709
|
+
};
|
|
19710
19710
|
}, "/"> | import("hono/types").MergeSchemaPath<{
|
|
19711
19711
|
"/agent-webhooks": {
|
|
19712
19712
|
$get: {
|
package/dist/server/server.js
CHANGED
|
@@ -393,7 +393,7 @@ export function createApp(deps) {
|
|
|
393
393
|
};
|
|
394
394
|
// Hosted-mode gate (spec §"Deployment modes") — read per request so
|
|
395
395
|
// CEZ_REMOTE flips take effect live (and tests can toggle it).
|
|
396
|
-
const capabilities = () => resolveCapabilities(process.env, bindHost, deps.
|
|
396
|
+
const capabilities = () => resolveCapabilities(process.env, bindHost, deps.squawkPort?.(), deps.home);
|
|
397
397
|
const singleProjectRefusal = (action) => ({ error: `single-project mode is enabled; ${action} is disabled` });
|
|
398
398
|
// Inbox live updates (spec 007). Opt-in (#471): no capability, no watcher —
|
|
399
399
|
// and since step 2.3 the per-dataDir watch is created lazily by the first
|
|
@@ -410,7 +410,7 @@ export function createApp(deps) {
|
|
|
410
410
|
// count against the same workspace semaphore as the boot manager (step 2.5).
|
|
411
411
|
const contexts = createWorkspaceProjectContexts(deps, taskWebhooks, {
|
|
412
412
|
listProjects: () => workspaceProjects.listVisibleProjects(),
|
|
413
|
-
|
|
413
|
+
squawkPort: deps.squawkPort,
|
|
414
414
|
});
|
|
415
415
|
// Workspace-level SSE bus (step 2.8) — the registry mutators and the
|
|
416
416
|
// checkout flow (Phase 4) emit here; /api/workspace/events relays.
|
|
@@ -4545,7 +4545,7 @@ export function startServer(deps, port, listener) {
|
|
|
4545
4545
|
const socketHub = deps.socketHub ?? createSocketHub();
|
|
4546
4546
|
// `cezar_preview_serve` refuses the cockpit's own port: the one the listener BOUND (`--port 0`).
|
|
4547
4547
|
let listeningPort;
|
|
4548
|
-
const
|
|
4548
|
+
const squawkPort = deps.squawkPort ?? (() => listeningPort);
|
|
4549
4549
|
const workspaceProjects = deps.workspaceProjects ?? createWorkspaceProjects({ bootRoot: deps.repoRoot, bootProjectId: deps.bootProjectId, bindHost: deps.bindHost, home: deps.home });
|
|
4550
4550
|
// Every registry reader below sees what createApp sees: single-project mode hides other projects.
|
|
4551
4551
|
const visibleProjects = () => workspaceProjects.listVisibleProjects();
|
|
@@ -4564,7 +4564,7 @@ export function startServer(deps, port, listener) {
|
|
|
4564
4564
|
const sharedContexts = createWorkspaceProjectContexts(deps, taskWebhooks, {
|
|
4565
4565
|
ownership: deps.ownership,
|
|
4566
4566
|
listProjects: visibleProjects,
|
|
4567
|
-
|
|
4567
|
+
squawkPort,
|
|
4568
4568
|
automationStore: (projectId, root) => automationCoordinator.store(projectId, root),
|
|
4569
4569
|
addressManager,
|
|
4570
4570
|
});
|
|
@@ -4612,7 +4612,7 @@ export function startServer(deps, port, listener) {
|
|
|
4612
4612
|
automationStore: bootAutomationStore,
|
|
4613
4613
|
workspaceEvents,
|
|
4614
4614
|
socketHub,
|
|
4615
|
-
|
|
4615
|
+
squawkPort,
|
|
4616
4616
|
workspaceProjects,
|
|
4617
4617
|
archiveOnMergeChanged: () => archiveOnMerge.invalidate(),
|
|
4618
4618
|
automationsChanged: () => rescheduleAutomations(),
|