@hearsay-tools/squawk 0.19.0-pr4608.9175 → 0.19.0-pr4611.9176
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/contract/hosts.d.ts +0 -925
- package/dist/contract/index.js +2 -104
- package/dist/core/server-hook-registry.d.ts +0 -13
- package/dist/core/server-hook-registry.js.map +1 -1
- package/dist/features/hosts/gateway.d.ts +3 -14
- package/dist/features/hosts/gateway.js +21 -35
- package/dist/features/hosts/gateway.js.map +1 -1
- package/dist/features/hosts/index.d.ts +3 -7
- package/dist/features/hosts/index.js +7 -41
- package/dist/features/hosts/index.js.map +1 -1
- package/dist/features/hosts/routes.d.ts +4 -370
- package/dist/features/hosts/routes.js +62 -72
- package/dist/features/hosts/routes.js.map +1 -1
- package/dist/features/hosts/supervisor.d.ts +0 -4
- package/dist/features/hosts/supervisor.js +6 -14
- package/dist/features/hosts/supervisor.js.map +1 -1
- package/dist/plugin/index.d.ts +1 -1
- package/dist/plugin/index.js.map +1 -1
- package/dist/server/runs-routes.d.ts +18 -18
- package/dist/server/server.js +1 -7
- package/dist/server/server.js.map +1 -1
- package/dist/server/workspace-run-feed.d.ts +0 -4
- package/dist/server/workspace-run-feed.js +0 -13
- package/dist/server/workspace-run-feed.js.map +1 -1
- package/package.json +4 -4
- package/web/dist/assets/accounts-section-Coep85Qm.js +1 -0
- package/web/dist/assets/activity-motion-CM8nuxNf.js +1 -0
- package/web/dist/assets/{activity-route-D8BPLoZj.js → activity-route-DYSrWBK_.js} +1 -1
- package/web/dist/assets/{agent-accounts-C2ILQhZy.js → agent-accounts-D_ZKAmaW.js} +1 -1
- package/web/dist/assets/{agent-config-section-BO8w2cry.js → agent-config-section-Dfbsx-BK.js} +2 -2
- package/web/dist/assets/agent-defaults-section-0zpHsOPH.js +1 -0
- package/web/dist/assets/{appearance-yF_NXlq5.js → appearance-ct0u5OLE.js} +1 -1
- package/web/dist/assets/{archive-on-merge-field-Dh1M21D6.js → archive-on-merge-field-BOPQXrQm.js} +1 -1
- package/web/dist/assets/{ask-card-2E9m5VRA.js → ask-card-4QLmxAYS.js} +1 -1
- package/web/dist/assets/attention-BI6592lk.js +1 -0
- package/web/dist/assets/automations-route-Crvxt2Pz.js +2 -0
- package/web/dist/assets/{commit-list-sFxchD2V.js → commit-list-jEPLreA6.js} +1 -1
- package/web/dist/assets/{diff-C5-32cRp.js → diff-Dj_FOo1n.js} +2 -2
- package/web/dist/assets/{diff-controls-Ci36iPlK.js → diff-controls-DvP1kxFK.js} +1 -1
- package/web/dist/assets/{diff-view-CCtuYJNL.js → diff-view-DXObnE-U.js} +1 -1
- package/web/dist/assets/{discard-changes-dialog-BACqR1hj.js → discard-changes-dialog-C0wxwc3E.js} +1 -1
- package/web/dist/assets/{file-preview-B7T7jFYo.js → file-preview-C3i5CLUU.js} +1 -1
- package/web/dist/assets/{folder-browser-3cBLlnE9.js → folder-browser-CFd1U5hn.js} +1 -1
- package/web/dist/assets/{git-toolbar-UkRnjuDs.js → git-toolbar-Bpi9zpct.js} +1 -1
- package/web/dist/assets/github-Hu_w_5Lp.js +1 -0
- package/web/dist/assets/{global-activity-route-j37l-BQU.js → global-activity-route-u0AO0QDE.js} +1 -1
- package/web/dist/assets/hosts-CpDMDiQW.js +1 -0
- package/web/dist/assets/{index-DkQ5xrLr.js → index-DCMeT-lV.js} +6 -6
- package/web/dist/assets/index-omjOrhh3.css +1 -0
- package/web/dist/assets/{label-CWlxyeC-.js → label-CgU9vxuM.js} +1 -1
- package/web/dist/assets/{markdown-FIfZPsax.js → markdown-lJLEOSju.js} +1 -1
- package/web/dist/assets/{open-in-menu-Bf8JA2DJ.js → open-in-menu-BI7mnPPf.js} +1 -1
- package/web/dist/assets/{option-select-DylfDjGi.js → option-select-CHbGu1G2.js} +1 -1
- package/web/dist/assets/{preferences-section-DjWfc1i-.js → preferences-section-Bm9wXzRq.js} +1 -1
- package/web/dist/assets/{preview-BSFJfN4s.js → preview-EtD19mg1.js} +1 -1
- package/web/dist/assets/{preview-pane-connected-CfiPFvTH.js → preview-pane-connected-CnP8G5U6.js} +2 -2
- package/web/dist/assets/{project-location-CEX0-MZp.js → project-location-BpcbxTf9.js} +1 -1
- package/web/dist/assets/{project-router-CwD1firw.js → project-router-Dc6KBQsv.js} +1 -1
- package/web/dist/assets/{projects-section-Czmf0wFK.js → projects-section-BkCrNrKD.js} +1 -1
- package/web/dist/assets/{prompt-templates-section-DK4CV73w.js → prompt-templates-section-Cg-uiM9G.js} +1 -1
- package/web/dist/assets/queries-IlC9MZgh.js +1 -0
- package/web/dist/assets/{read-state-BsTfJki5.js → read-state-BeVNfGkB.js} +1 -1
- package/web/dist/assets/{reference-chip-CZKBU_Ud.js → reference-chip-BjerVjzM.js} +1 -1
- package/web/dist/assets/{remote-settings-notice-Dott-jyP.js → remote-settings-notice-C_AfqJ32.js} +1 -1
- package/web/dist/assets/repo-git-D5cNc_Xl.js +1 -0
- package/web/dist/assets/{report-reader-CrdDix7Z.js → report-reader-C5NiutOH.js} +1 -1
- package/web/dist/assets/{report-selection-Y2F9NTAs.js → report-selection-CZ8eb9QP.js} +1 -1
- package/web/dist/assets/{reports-Iw4LUvz2.js → reports-DJqgpiN-.js} +1 -1
- package/web/dist/assets/{resources-section-D3wUzdUQ.js → resources-section-D-XuG00u.js} +1 -1
- package/web/dist/assets/{review-notes-drafts-xyC7GvRB.js → review-notes-drafts-Be4nD7Qr.js} +1 -1
- package/web/dist/assets/{review-panel-3x_2lbej.js → review-panel-1rH1EraZ.js} +1 -1
- package/web/dist/assets/{review-strip-CDYpq9_S.js → review-strip-4rb7B51C.js} +1 -1
- package/web/dist/assets/{run-detail-refresh-SYZM94ch.js → run-detail-refresh-CE0vyYYA.js} +1 -1
- package/web/dist/assets/{run-diff-D26PXp6r.js → run-diff-ClfLRsHF.js} +1 -1
- package/web/dist/assets/run-header-BOF42bav.js +2 -0
- package/web/dist/assets/{select-DC_G2no3.js → select-Cg3zpVm5.js} +1 -1
- package/web/dist/assets/{session-context-section-DEUv-ISr.js → session-context-section-DFUiNb4Y.js} +1 -1
- package/web/dist/assets/{settings-agent-picker-BrFN2RaQ.js → settings-agent-picker-Cvxfker1.js} +1 -1
- package/web/dist/assets/{settings-save-bar-C0pFHqte.js → settings-save-bar-Dn8YJtuj.js} +1 -1
- package/web/dist/assets/{settings-shell-BWWbVxv-.js → settings-shell-gXoYNk8D.js} +1 -1
- package/web/dist/assets/{sidebar-section-BGo1zjJt.js → sidebar-section-CfVn_vb2.js} +1 -1
- package/web/dist/assets/{skills-qFMQz6sm.js → skills-DX7_PHqn.js} +1 -1
- package/web/dist/assets/{status-dot-DTU7afRv.js → status-dot-Bmn4xhch.js} +1 -1
- package/web/dist/assets/{tab-link-BJDe5cT4.js → tab-link-6TltE1jl.js} +1 -1
- package/web/dist/assets/{task-changes-DKJHAtKC.js → task-changes-CDT_LIVv.js} +2 -2
- package/web/dist/assets/{task-commits-Dtt60D0o.js → task-commits-CckqyeC-.js} +1 -1
- package/web/dist/assets/{task-file-scope-FTt7SiGn.js → task-file-scope-CggGR3PB.js} +1 -1
- package/web/dist/assets/{task-files-DVz4222z.js → task-files-B1zutx7k.js} +1 -1
- package/web/dist/assets/{task-github-item-CJpKQ6cU.js → task-github-item-D5Wxc2W9.js} +1 -1
- package/web/dist/assets/{task-groups-BvVfsQKd.js → task-groups-DCg4iOB9.js} +1 -1
- package/web/dist/assets/{task-thread-DiYtqka4.js → task-thread-4O4WxXps.js} +2 -2
- package/web/dist/assets/{thread-state-pO7Wy_7R.js → thread-state-CPEFUtCX.js} +1 -1
- package/web/dist/assets/toaster-DNnL8v10.js +4 -0
- package/web/dist/assets/{use-finish-run-5S30Eu3d.js → use-finish-run-3Ww1_ZUR.js} +1 -1
- package/web/dist/assets/{use-hand-to-agent-state-BB_VmbF7.js → use-hand-to-agent-state-DFVPKt-i.js} +1 -1
- package/web/dist/assets/use-path-bases-BhgMREe6.js +1 -0
- package/web/dist/assets/use-workspace-config-save-DScW6_8J.js +1 -0
- package/web/dist/assets/{workflows-DLuBawpi.js → workflows-C7RoliRv.js} +2 -2
- package/web/dist/assets/{workspace-tools-D4jshe-2.js → workspace-tools-CkO5dnia.js} +1 -1
- package/web/dist/assets/{worktrees-section-CESTBOem.js → worktrees-section-DQ4Il2xD.js} +5 -5
- package/web/dist/index.html +20 -20
- package/dist/features/hosts/admission.d.ts +0 -52
- package/dist/features/hosts/admission.js +0 -89
- package/dist/features/hosts/admission.js.map +0 -1
- package/dist/features/hosts/registry-reconciler.d.ts +0 -41
- package/dist/features/hosts/registry-reconciler.js +0 -168
- package/dist/features/hosts/registry-reconciler.js.map +0 -1
- package/dist/features/hosts/runs-index-events.d.ts +0 -23
- package/dist/features/hosts/runs-index-events.js +0 -116
- package/dist/features/hosts/runs-index-events.js.map +0 -1
- package/dist/features/hosts/runs-index-patch.d.ts +0 -203
- package/dist/features/hosts/runs-index-patch.js +0 -798
- package/dist/features/hosts/runs-index-patch.js.map +0 -1
- package/dist/features/hosts/runs-index.d.ts +0 -149
- package/dist/features/hosts/runs-index.js +0 -762
- package/dist/features/hosts/runs-index.js.map +0 -1
- package/dist/features/hosts/runs-search.d.ts +0 -28
- package/dist/features/hosts/runs-search.js +0 -151
- package/dist/features/hosts/runs-search.js.map +0 -1
- package/scripts/benchmark-hosts-runs-index-probes.ts +0 -242
- package/scripts/benchmark-hosts-runs-index.ts +0 -776
- package/web/dist/assets/accounts-section-BDUoikVg.js +0 -1
- package/web/dist/assets/activity-motion-CYdEr0hu.js +0 -1
- package/web/dist/assets/agent-defaults-section-BBcv7Vbh.js +0 -1
- package/web/dist/assets/attention-C7BUdd2s.js +0 -1
- package/web/dist/assets/automations-route-D27bK2j6.js +0 -2
- package/web/dist/assets/github-CkbZgMnJ.js +0 -1
- package/web/dist/assets/hosts-iUyg8S3j.js +0 -1
- package/web/dist/assets/index-BVRdRJAN.css +0 -1
- package/web/dist/assets/queries-D9mg7sFY.js +0 -1
- package/web/dist/assets/repo-git-Djt3N2wP.js +0 -1
- package/web/dist/assets/run-header-DZ0rkryR.js +0 -2
- package/web/dist/assets/toaster-2ud_VdfV.js +0 -4
- package/web/dist/assets/use-path-bases-npA-uKvg.js +0 -1
- package/web/dist/assets/use-workspace-config-save-DDI7_WtK.js +0 -1
package/dist/contract/hosts.d.ts
CHANGED
|
@@ -10,16 +10,8 @@ import { z } from 'zod';
|
|
|
10
10
|
export declare const HOST_ID_PATTERN: RegExp;
|
|
11
11
|
/** Reserved id for the local server; never allowed as a saved remote host id. */
|
|
12
12
|
export declare const LOCAL_HOST_ID = "local";
|
|
13
|
-
/**
|
|
14
|
-
* Host ids reserved for static sub-routes under `/api/v1/hosts/*`.
|
|
15
|
-
* Enforced on `hsq host add` and `POST /api/v1/hosts` only (`createHostInputSchema`);
|
|
16
|
-
* `hostIdSchema` and `hostEntrySchema` stay unchanged so saved `hosts.json` files stay readable.
|
|
17
|
-
*/
|
|
18
|
-
export declare const RESERVED_HOST_ROUTE_IDS: readonly ['projects', 'runs-index', 'runs-search'];
|
|
19
13
|
export declare const hostIdSchema: z.ZodString;
|
|
20
14
|
export type HostId = z.infer<typeof hostIdSchema>;
|
|
21
|
-
/** Host id schema for creating a new host (`hsq host add` and `POST /api/v1/hosts`). */
|
|
22
|
-
export declare const createHostIdSchema: z.ZodString;
|
|
23
15
|
export declare const hostLabelSchema: z.ZodString;
|
|
24
16
|
export declare const hostSshAliasSchema: z.ZodString;
|
|
25
17
|
export declare const hostPortSchema: z.ZodNumber;
|
|
@@ -604,920 +596,3 @@ export declare const hostsProjectsResponseSchema: z.ZodObject<{
|
|
|
604
596
|
warning: z.ZodOptional<z.ZodString>;
|
|
605
597
|
}, z.core.$strip>;
|
|
606
598
|
export type HostsProjectsResponse = z.infer<typeof hostsProjectsResponseSchema>;
|
|
607
|
-
/**
|
|
608
|
-
* Remote task index row carried by `GET /api/v1/hosts/runs-index` and
|
|
609
|
-
* `GET /api/v1/hosts/runs-search` (spec § Architecture 5, hearsay-tools/squawk#4541).
|
|
610
|
-
* Extends `RunIndexEntry` with `hostId` so rows from multiple hosts with identical
|
|
611
|
-
* `(projectId, id)` stay distinct and work directly with `deriveAttention`.
|
|
612
|
-
*/
|
|
613
|
-
export declare const hostRunIndexEntrySchema: z.ZodObject<{
|
|
614
|
-
id: z.ZodString;
|
|
615
|
-
title: z.ZodString;
|
|
616
|
-
titleSummary: z.ZodOptional<z.ZodString>;
|
|
617
|
-
titleOrigin: z.ZodOptional<z.ZodEnum<{
|
|
618
|
-
auto: "auto";
|
|
619
|
-
marker: "marker";
|
|
620
|
-
user: "user";
|
|
621
|
-
}>>;
|
|
622
|
-
status: z.ZodEnum<{
|
|
623
|
-
cancelled: "cancelled";
|
|
624
|
-
done: "done";
|
|
625
|
-
failed: "failed";
|
|
626
|
-
queued: "queued";
|
|
627
|
-
review: "review";
|
|
628
|
-
running: "running";
|
|
629
|
-
waiting: "waiting";
|
|
630
|
-
}>;
|
|
631
|
-
hasPendingPermission: z.ZodOptional<z.ZodBoolean>;
|
|
632
|
-
waitingOn: z.ZodOptional<z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
633
|
-
kind: z.ZodLiteral<"human">;
|
|
634
|
-
shown: z.ZodOptional<z.ZodLiteral<true>>;
|
|
635
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
636
|
-
kind: z.ZodLiteral<"usage-limit">;
|
|
637
|
-
at: z.ZodString;
|
|
638
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
639
|
-
kind: z.ZodLiteral<"workers">;
|
|
640
|
-
count: z.ZodNumber;
|
|
641
|
-
replies: z.ZodOptional<z.ZodLiteral<true>>;
|
|
642
|
-
peers: z.ZodOptional<z.ZodLiteral<true>>;
|
|
643
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
644
|
-
kind: z.ZodLiteral<"peers">;
|
|
645
|
-
count: z.ZodNumber;
|
|
646
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
647
|
-
kind: z.ZodLiteral<"subagents">;
|
|
648
|
-
count: z.ZodNumber;
|
|
649
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
650
|
-
kind: z.ZodLiteral<"pr">;
|
|
651
|
-
until: z.ZodEnum<{
|
|
652
|
-
checks: "checks";
|
|
653
|
-
merge: "merge";
|
|
654
|
-
merge_or_blocked: "merge_or_blocked";
|
|
655
|
-
}>;
|
|
656
|
-
waitId: z.ZodUUID;
|
|
657
|
-
prUrl: z.ZodString;
|
|
658
|
-
repository: z.ZodString;
|
|
659
|
-
prNumber: z.ZodNumber;
|
|
660
|
-
deadline: z.ZodISODateTime;
|
|
661
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
662
|
-
kind: z.ZodLiteral<"process">;
|
|
663
|
-
waitId: z.ZodUUID;
|
|
664
|
-
pid: z.ZodNumber;
|
|
665
|
-
deadline: z.ZodISODateTime;
|
|
666
|
-
note: z.ZodOptional<z.ZodString>;
|
|
667
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
668
|
-
kind: z.ZodLiteral<"plugin">;
|
|
669
|
-
pluginKind: z.ZodString;
|
|
670
|
-
waitId: z.ZodUUID;
|
|
671
|
-
summary: z.ZodString;
|
|
672
|
-
deadline: z.ZodOptional<z.ZodISODateTime>;
|
|
673
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
674
|
-
kind: z.ZodLiteral<"timer">;
|
|
675
|
-
waitId: z.ZodUUID;
|
|
676
|
-
at: z.ZodISODateTime;
|
|
677
|
-
note: z.ZodOptional<z.ZodString>;
|
|
678
|
-
}, z.core.$strip>], "kind">>>;
|
|
679
|
-
waitWakePending: z.ZodOptional<z.ZodLiteral<true>>;
|
|
680
|
-
delegation: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
681
|
-
role: z.ZodLiteral<"root">;
|
|
682
|
-
wait: z.ZodOptional<z.ZodObject<{
|
|
683
|
-
workerIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
|
|
684
|
-
requestIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
|
|
685
|
-
phase: z.ZodEnum<{
|
|
686
|
-
parked: "parked";
|
|
687
|
-
registered: "registered";
|
|
688
|
-
"wake-pending": "wake-pending";
|
|
689
|
-
}>;
|
|
690
|
-
outcomes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
691
|
-
workerId: z.ZodUUID;
|
|
692
|
-
}, z.core.$strip>>>;
|
|
693
|
-
}, z.core.$strip>>;
|
|
694
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
695
|
-
role: z.ZodLiteral<"worker">;
|
|
696
|
-
parentRunId: z.ZodUUID;
|
|
697
|
-
supervisorRunId: z.ZodOptional<z.ZodUUID>;
|
|
698
|
-
wait: z.ZodOptional<z.ZodObject<{
|
|
699
|
-
requestIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
|
|
700
|
-
phase: z.ZodEnum<{
|
|
701
|
-
parked: "parked";
|
|
702
|
-
registered: "registered";
|
|
703
|
-
"wake-pending": "wake-pending";
|
|
704
|
-
}>;
|
|
705
|
-
}, z.core.$strip>>;
|
|
706
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
707
|
-
role: z.ZodLiteral<"invalid">;
|
|
708
|
-
}, z.core.$strip>], "role">>;
|
|
709
|
-
createdAt: z.ZodString;
|
|
710
|
-
finishedAt: z.ZodOptional<z.ZodString>;
|
|
711
|
-
seenAt: z.ZodOptional<z.ZodString>;
|
|
712
|
-
archived: z.ZodBoolean;
|
|
713
|
-
autoResumeAt: z.ZodOptional<z.ZodString>;
|
|
714
|
-
autoResumeReason: z.ZodOptional<z.ZodEnum<{
|
|
715
|
-
"provider-error": "provider-error";
|
|
716
|
-
"usage-limit": "usage-limit";
|
|
717
|
-
}>>;
|
|
718
|
-
workflow: z.ZodString;
|
|
719
|
-
branch: z.ZodOptional<z.ZodString>;
|
|
720
|
-
startedAt: z.ZodOptional<z.ZodString>;
|
|
721
|
-
pullRequestUrl: z.ZodOptional<z.ZodString>;
|
|
722
|
-
pullRequests: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
723
|
-
number: z.ZodNumber;
|
|
724
|
-
url: z.ZodOptional<z.ZodString>;
|
|
725
|
-
source: z.ZodEnum<{
|
|
726
|
-
created: "created";
|
|
727
|
-
declared: "declared";
|
|
728
|
-
}>;
|
|
729
|
-
}, z.core.$strip>>>;
|
|
730
|
-
referencedPullRequestUrl: z.ZodOptional<z.ZodString>;
|
|
731
|
-
prNumber: z.ZodOptional<z.ZodNumber>;
|
|
732
|
-
issueNumber: z.ZodOptional<z.ZodNumber>;
|
|
733
|
-
referencedIssueUrl: z.ZodOptional<z.ZodString>;
|
|
734
|
-
markerRefs: z.ZodOptional<z.ZodObject<{
|
|
735
|
-
pr: z.ZodOptional<z.ZodNumber>;
|
|
736
|
-
issue: z.ZodOptional<z.ZodNumber>;
|
|
737
|
-
}, z.core.$strip>>;
|
|
738
|
-
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
739
|
-
peakRssBytes: z.ZodOptional<z.ZodNumber>;
|
|
740
|
-
peakProcCount: z.ZodOptional<z.ZodNumber>;
|
|
741
|
-
usage: z.ZodOptional<z.ZodObject<{
|
|
742
|
-
cpuPct: z.ZodNumber;
|
|
743
|
-
rssBytes: z.ZodNumber;
|
|
744
|
-
procCount: z.ZodNumber;
|
|
745
|
-
}, z.core.$strip>>;
|
|
746
|
-
workflowLabel: z.ZodString;
|
|
747
|
-
groupId: z.ZodOptional<z.ZodString>;
|
|
748
|
-
variant: z.ZodOptional<z.ZodString>;
|
|
749
|
-
pinned: z.ZodOptional<z.ZodBoolean>;
|
|
750
|
-
automationId: z.ZodOptional<z.ZodString>;
|
|
751
|
-
runner: z.ZodOptional<z.ZodString>;
|
|
752
|
-
removedRunner: z.ZodOptional<z.ZodString>;
|
|
753
|
-
model: z.ZodOptional<z.ZodString>;
|
|
754
|
-
notify: z.ZodOptional<z.ZodBoolean>;
|
|
755
|
-
diffStat: z.ZodOptional<z.ZodObject<{
|
|
756
|
-
adds: z.ZodNumber;
|
|
757
|
-
dels: z.ZodNumber;
|
|
758
|
-
files: z.ZodNumber;
|
|
759
|
-
repointed: z.ZodOptional<z.ZodBoolean>;
|
|
760
|
-
}, z.core.$strip>>;
|
|
761
|
-
tokensUsed: z.ZodNumber;
|
|
762
|
-
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
763
|
-
outputTokens: z.ZodOptional<z.ZodNumber>;
|
|
764
|
-
currentStepId: z.ZodOptional<z.ZodString>;
|
|
765
|
-
currentStepBackend: z.ZodOptional<z.ZodString>;
|
|
766
|
-
error: z.ZodOptional<z.ZodString>;
|
|
767
|
-
statePreview: z.ZodOptional<z.ZodObject<{
|
|
768
|
-
kind: z.ZodEnum<{
|
|
769
|
-
ask: "ask";
|
|
770
|
-
error: "error";
|
|
771
|
-
permission: "permission";
|
|
772
|
-
review: "review";
|
|
773
|
-
}>;
|
|
774
|
-
text: z.ZodString;
|
|
775
|
-
}, z.core.$strip>>;
|
|
776
|
-
worktreePath: z.ZodOptional<z.ZodString>;
|
|
777
|
-
projectId: z.ZodString;
|
|
778
|
-
hostId: z.ZodString;
|
|
779
|
-
}, z.core.$strip>;
|
|
780
|
-
export type HostRunIndexEntry = z.infer<typeof hostRunIndexEntrySchema>;
|
|
781
|
-
/**
|
|
782
|
-
* Per-host task index state in `GET /api/v1/hosts/runs-index`.
|
|
783
|
-
* Safe for every session (no `reason`, `sshAlias`, `port`, or other admin-only fields).
|
|
784
|
-
*/
|
|
785
|
-
export declare const hostRunsIndexStateSchema: z.ZodObject<{
|
|
786
|
-
id: z.ZodString;
|
|
787
|
-
label: z.ZodString;
|
|
788
|
-
state: z.ZodEnum<{
|
|
789
|
-
"cannot-persist": "cannot-persist";
|
|
790
|
-
connected: "connected";
|
|
791
|
-
connecting: "connecting";
|
|
792
|
-
"identity-changed": "identity-changed";
|
|
793
|
-
"needs-node": "needs-node";
|
|
794
|
-
"not-hosted": "not-hosted";
|
|
795
|
-
paused: "paused";
|
|
796
|
-
"several-servers": "several-servers";
|
|
797
|
-
unreachable: "unreachable";
|
|
798
|
-
"version-mismatch": "version-mismatch";
|
|
799
|
-
}>;
|
|
800
|
-
stale: z.ZodBoolean;
|
|
801
|
-
loaded: z.ZodBoolean;
|
|
802
|
-
truncated: z.ZodArray<z.ZodString>;
|
|
803
|
-
referenceStatuses: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
804
|
-
prs: z.ZodRecord<z.ZodNumber, z.ZodEnum<{
|
|
805
|
-
"changes-requested": "changes-requested";
|
|
806
|
-
"checks-failing": "checks-failing";
|
|
807
|
-
"checks-pending": "checks-pending";
|
|
808
|
-
closed: "closed";
|
|
809
|
-
completed: "completed";
|
|
810
|
-
draft: "draft";
|
|
811
|
-
merged: "merged";
|
|
812
|
-
"not-planned": "not-planned";
|
|
813
|
-
open: "open";
|
|
814
|
-
ready: "ready";
|
|
815
|
-
"review-required": "review-required";
|
|
816
|
-
}>>;
|
|
817
|
-
issues: z.ZodRecord<z.ZodNumber, z.ZodEnum<{
|
|
818
|
-
"changes-requested": "changes-requested";
|
|
819
|
-
"checks-failing": "checks-failing";
|
|
820
|
-
"checks-pending": "checks-pending";
|
|
821
|
-
closed: "closed";
|
|
822
|
-
completed: "completed";
|
|
823
|
-
draft: "draft";
|
|
824
|
-
merged: "merged";
|
|
825
|
-
"not-planned": "not-planned";
|
|
826
|
-
open: "open";
|
|
827
|
-
ready: "ready";
|
|
828
|
-
"review-required": "review-required";
|
|
829
|
-
}>>;
|
|
830
|
-
}, z.core.$strip>>;
|
|
831
|
-
perProjectLimit: z.ZodOptional<z.ZodNumber>;
|
|
832
|
-
}, z.core.$strip>;
|
|
833
|
-
export type HostRunsIndexState = z.infer<typeof hostRunsIndexStateSchema>;
|
|
834
|
-
/** Optional query parameters for `GET /api/v1/hosts/runs-index`. */
|
|
835
|
-
export declare const hostsRunsIndexQuerySchema: z.ZodObject<{
|
|
836
|
-
hostId: z.ZodOptional<z.ZodString>;
|
|
837
|
-
}, z.core.$strip>;
|
|
838
|
-
export type HostsRunsIndexQuery = z.infer<typeof hostsRunsIndexQuerySchema>;
|
|
839
|
-
/**
|
|
840
|
-
* `GET /api/v1/hosts/runs-index`: in-memory task rows and per-host freshness across saved remote
|
|
841
|
-
* hosts (or one host when `?hostId=` is supplied). Contains remote hosts only (local rows come
|
|
842
|
-
* from `GET /api/v1/workspace/runs-index`).
|
|
843
|
-
*
|
|
844
|
-
* `generation` matches `ready.generation` on `GET /api/v1/workspace/events?runs=summary`.
|
|
845
|
-
* `eventSeq` is the last host delta sequence number (`host-run-summary` / `host-run-deleted`)
|
|
846
|
-
* applied before this snapshot was read. After a restart of the main server, `generation` changes
|
|
847
|
-
* and `eventSeq` restarts from `0`; clients must read the host index again on a changed generation.
|
|
848
|
-
*/
|
|
849
|
-
export declare const hostsRunsIndexResponseSchema: z.ZodObject<{
|
|
850
|
-
runs: z.ZodArray<z.ZodObject<{
|
|
851
|
-
id: z.ZodString;
|
|
852
|
-
title: z.ZodString;
|
|
853
|
-
titleSummary: z.ZodOptional<z.ZodString>;
|
|
854
|
-
titleOrigin: z.ZodOptional<z.ZodEnum<{
|
|
855
|
-
auto: "auto";
|
|
856
|
-
marker: "marker";
|
|
857
|
-
user: "user";
|
|
858
|
-
}>>;
|
|
859
|
-
status: z.ZodEnum<{
|
|
860
|
-
cancelled: "cancelled";
|
|
861
|
-
done: "done";
|
|
862
|
-
failed: "failed";
|
|
863
|
-
queued: "queued";
|
|
864
|
-
review: "review";
|
|
865
|
-
running: "running";
|
|
866
|
-
waiting: "waiting";
|
|
867
|
-
}>;
|
|
868
|
-
hasPendingPermission: z.ZodOptional<z.ZodBoolean>;
|
|
869
|
-
waitingOn: z.ZodOptional<z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
870
|
-
kind: z.ZodLiteral<"human">;
|
|
871
|
-
shown: z.ZodOptional<z.ZodLiteral<true>>;
|
|
872
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
873
|
-
kind: z.ZodLiteral<"usage-limit">;
|
|
874
|
-
at: z.ZodString;
|
|
875
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
876
|
-
kind: z.ZodLiteral<"workers">;
|
|
877
|
-
count: z.ZodNumber;
|
|
878
|
-
replies: z.ZodOptional<z.ZodLiteral<true>>;
|
|
879
|
-
peers: z.ZodOptional<z.ZodLiteral<true>>;
|
|
880
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
881
|
-
kind: z.ZodLiteral<"peers">;
|
|
882
|
-
count: z.ZodNumber;
|
|
883
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
884
|
-
kind: z.ZodLiteral<"subagents">;
|
|
885
|
-
count: z.ZodNumber;
|
|
886
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
887
|
-
kind: z.ZodLiteral<"pr">;
|
|
888
|
-
until: z.ZodEnum<{
|
|
889
|
-
checks: "checks";
|
|
890
|
-
merge: "merge";
|
|
891
|
-
merge_or_blocked: "merge_or_blocked";
|
|
892
|
-
}>;
|
|
893
|
-
waitId: z.ZodUUID;
|
|
894
|
-
prUrl: z.ZodString;
|
|
895
|
-
repository: z.ZodString;
|
|
896
|
-
prNumber: z.ZodNumber;
|
|
897
|
-
deadline: z.ZodISODateTime;
|
|
898
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
899
|
-
kind: z.ZodLiteral<"process">;
|
|
900
|
-
waitId: z.ZodUUID;
|
|
901
|
-
pid: z.ZodNumber;
|
|
902
|
-
deadline: z.ZodISODateTime;
|
|
903
|
-
note: z.ZodOptional<z.ZodString>;
|
|
904
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
905
|
-
kind: z.ZodLiteral<"plugin">;
|
|
906
|
-
pluginKind: z.ZodString;
|
|
907
|
-
waitId: z.ZodUUID;
|
|
908
|
-
summary: z.ZodString;
|
|
909
|
-
deadline: z.ZodOptional<z.ZodISODateTime>;
|
|
910
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
911
|
-
kind: z.ZodLiteral<"timer">;
|
|
912
|
-
waitId: z.ZodUUID;
|
|
913
|
-
at: z.ZodISODateTime;
|
|
914
|
-
note: z.ZodOptional<z.ZodString>;
|
|
915
|
-
}, z.core.$strip>], "kind">>>;
|
|
916
|
-
waitWakePending: z.ZodOptional<z.ZodLiteral<true>>;
|
|
917
|
-
delegation: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
918
|
-
role: z.ZodLiteral<"root">;
|
|
919
|
-
wait: z.ZodOptional<z.ZodObject<{
|
|
920
|
-
workerIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
|
|
921
|
-
requestIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
|
|
922
|
-
phase: z.ZodEnum<{
|
|
923
|
-
parked: "parked";
|
|
924
|
-
registered: "registered";
|
|
925
|
-
"wake-pending": "wake-pending";
|
|
926
|
-
}>;
|
|
927
|
-
outcomes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
928
|
-
workerId: z.ZodUUID;
|
|
929
|
-
}, z.core.$strip>>>;
|
|
930
|
-
}, z.core.$strip>>;
|
|
931
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
932
|
-
role: z.ZodLiteral<"worker">;
|
|
933
|
-
parentRunId: z.ZodUUID;
|
|
934
|
-
supervisorRunId: z.ZodOptional<z.ZodUUID>;
|
|
935
|
-
wait: z.ZodOptional<z.ZodObject<{
|
|
936
|
-
requestIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
|
|
937
|
-
phase: z.ZodEnum<{
|
|
938
|
-
parked: "parked";
|
|
939
|
-
registered: "registered";
|
|
940
|
-
"wake-pending": "wake-pending";
|
|
941
|
-
}>;
|
|
942
|
-
}, z.core.$strip>>;
|
|
943
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
944
|
-
role: z.ZodLiteral<"invalid">;
|
|
945
|
-
}, z.core.$strip>], "role">>;
|
|
946
|
-
createdAt: z.ZodString;
|
|
947
|
-
finishedAt: z.ZodOptional<z.ZodString>;
|
|
948
|
-
seenAt: z.ZodOptional<z.ZodString>;
|
|
949
|
-
archived: z.ZodBoolean;
|
|
950
|
-
autoResumeAt: z.ZodOptional<z.ZodString>;
|
|
951
|
-
autoResumeReason: z.ZodOptional<z.ZodEnum<{
|
|
952
|
-
"provider-error": "provider-error";
|
|
953
|
-
"usage-limit": "usage-limit";
|
|
954
|
-
}>>;
|
|
955
|
-
workflow: z.ZodString;
|
|
956
|
-
branch: z.ZodOptional<z.ZodString>;
|
|
957
|
-
startedAt: z.ZodOptional<z.ZodString>;
|
|
958
|
-
pullRequestUrl: z.ZodOptional<z.ZodString>;
|
|
959
|
-
pullRequests: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
960
|
-
number: z.ZodNumber;
|
|
961
|
-
url: z.ZodOptional<z.ZodString>;
|
|
962
|
-
source: z.ZodEnum<{
|
|
963
|
-
created: "created";
|
|
964
|
-
declared: "declared";
|
|
965
|
-
}>;
|
|
966
|
-
}, z.core.$strip>>>;
|
|
967
|
-
referencedPullRequestUrl: z.ZodOptional<z.ZodString>;
|
|
968
|
-
prNumber: z.ZodOptional<z.ZodNumber>;
|
|
969
|
-
issueNumber: z.ZodOptional<z.ZodNumber>;
|
|
970
|
-
referencedIssueUrl: z.ZodOptional<z.ZodString>;
|
|
971
|
-
markerRefs: z.ZodOptional<z.ZodObject<{
|
|
972
|
-
pr: z.ZodOptional<z.ZodNumber>;
|
|
973
|
-
issue: z.ZodOptional<z.ZodNumber>;
|
|
974
|
-
}, z.core.$strip>>;
|
|
975
|
-
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
976
|
-
peakRssBytes: z.ZodOptional<z.ZodNumber>;
|
|
977
|
-
peakProcCount: z.ZodOptional<z.ZodNumber>;
|
|
978
|
-
usage: z.ZodOptional<z.ZodObject<{
|
|
979
|
-
cpuPct: z.ZodNumber;
|
|
980
|
-
rssBytes: z.ZodNumber;
|
|
981
|
-
procCount: z.ZodNumber;
|
|
982
|
-
}, z.core.$strip>>;
|
|
983
|
-
workflowLabel: z.ZodString;
|
|
984
|
-
groupId: z.ZodOptional<z.ZodString>;
|
|
985
|
-
variant: z.ZodOptional<z.ZodString>;
|
|
986
|
-
pinned: z.ZodOptional<z.ZodBoolean>;
|
|
987
|
-
automationId: z.ZodOptional<z.ZodString>;
|
|
988
|
-
runner: z.ZodOptional<z.ZodString>;
|
|
989
|
-
removedRunner: z.ZodOptional<z.ZodString>;
|
|
990
|
-
model: z.ZodOptional<z.ZodString>;
|
|
991
|
-
notify: z.ZodOptional<z.ZodBoolean>;
|
|
992
|
-
diffStat: z.ZodOptional<z.ZodObject<{
|
|
993
|
-
adds: z.ZodNumber;
|
|
994
|
-
dels: z.ZodNumber;
|
|
995
|
-
files: z.ZodNumber;
|
|
996
|
-
repointed: z.ZodOptional<z.ZodBoolean>;
|
|
997
|
-
}, z.core.$strip>>;
|
|
998
|
-
tokensUsed: z.ZodNumber;
|
|
999
|
-
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
1000
|
-
outputTokens: z.ZodOptional<z.ZodNumber>;
|
|
1001
|
-
currentStepId: z.ZodOptional<z.ZodString>;
|
|
1002
|
-
currentStepBackend: z.ZodOptional<z.ZodString>;
|
|
1003
|
-
error: z.ZodOptional<z.ZodString>;
|
|
1004
|
-
statePreview: z.ZodOptional<z.ZodObject<{
|
|
1005
|
-
kind: z.ZodEnum<{
|
|
1006
|
-
ask: "ask";
|
|
1007
|
-
error: "error";
|
|
1008
|
-
permission: "permission";
|
|
1009
|
-
review: "review";
|
|
1010
|
-
}>;
|
|
1011
|
-
text: z.ZodString;
|
|
1012
|
-
}, z.core.$strip>>;
|
|
1013
|
-
worktreePath: z.ZodOptional<z.ZodString>;
|
|
1014
|
-
projectId: z.ZodString;
|
|
1015
|
-
hostId: z.ZodString;
|
|
1016
|
-
}, z.core.$strip>>;
|
|
1017
|
-
hosts: z.ZodArray<z.ZodObject<{
|
|
1018
|
-
id: z.ZodString;
|
|
1019
|
-
label: z.ZodString;
|
|
1020
|
-
state: z.ZodEnum<{
|
|
1021
|
-
"cannot-persist": "cannot-persist";
|
|
1022
|
-
connected: "connected";
|
|
1023
|
-
connecting: "connecting";
|
|
1024
|
-
"identity-changed": "identity-changed";
|
|
1025
|
-
"needs-node": "needs-node";
|
|
1026
|
-
"not-hosted": "not-hosted";
|
|
1027
|
-
paused: "paused";
|
|
1028
|
-
"several-servers": "several-servers";
|
|
1029
|
-
unreachable: "unreachable";
|
|
1030
|
-
"version-mismatch": "version-mismatch";
|
|
1031
|
-
}>;
|
|
1032
|
-
stale: z.ZodBoolean;
|
|
1033
|
-
loaded: z.ZodBoolean;
|
|
1034
|
-
truncated: z.ZodArray<z.ZodString>;
|
|
1035
|
-
referenceStatuses: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1036
|
-
prs: z.ZodRecord<z.ZodNumber, z.ZodEnum<{
|
|
1037
|
-
"changes-requested": "changes-requested";
|
|
1038
|
-
"checks-failing": "checks-failing";
|
|
1039
|
-
"checks-pending": "checks-pending";
|
|
1040
|
-
closed: "closed";
|
|
1041
|
-
completed: "completed";
|
|
1042
|
-
draft: "draft";
|
|
1043
|
-
merged: "merged";
|
|
1044
|
-
"not-planned": "not-planned";
|
|
1045
|
-
open: "open";
|
|
1046
|
-
ready: "ready";
|
|
1047
|
-
"review-required": "review-required";
|
|
1048
|
-
}>>;
|
|
1049
|
-
issues: z.ZodRecord<z.ZodNumber, z.ZodEnum<{
|
|
1050
|
-
"changes-requested": "changes-requested";
|
|
1051
|
-
"checks-failing": "checks-failing";
|
|
1052
|
-
"checks-pending": "checks-pending";
|
|
1053
|
-
closed: "closed";
|
|
1054
|
-
completed: "completed";
|
|
1055
|
-
draft: "draft";
|
|
1056
|
-
merged: "merged";
|
|
1057
|
-
"not-planned": "not-planned";
|
|
1058
|
-
open: "open";
|
|
1059
|
-
ready: "ready";
|
|
1060
|
-
"review-required": "review-required";
|
|
1061
|
-
}>>;
|
|
1062
|
-
}, z.core.$strip>>;
|
|
1063
|
-
perProjectLimit: z.ZodOptional<z.ZodNumber>;
|
|
1064
|
-
}, z.core.$strip>>;
|
|
1065
|
-
generation: z.ZodString;
|
|
1066
|
-
eventSeq: z.ZodNumber;
|
|
1067
|
-
warning: z.ZodOptional<z.ZodString>;
|
|
1068
|
-
}, z.core.$strip>;
|
|
1069
|
-
export type HostsRunsIndexResponse = z.infer<typeof hostsRunsIndexResponseSchema>;
|
|
1070
|
-
/** Reason class for a saved host that did not answer `GET /api/v1/hosts/runs-search`. */
|
|
1071
|
-
export declare const HOST_SEARCH_UNANSWERED_REASONS: readonly ['not-connected', 'deadline', 'error'];
|
|
1072
|
-
export declare const hostSearchUnansweredReasonSchema: z.ZodEnum<{
|
|
1073
|
-
deadline: "deadline";
|
|
1074
|
-
error: "error";
|
|
1075
|
-
"not-connected": "not-connected";
|
|
1076
|
-
}>;
|
|
1077
|
-
export type HostSearchUnansweredReason = z.infer<typeof hostSearchUnansweredReasonSchema>;
|
|
1078
|
-
/** One saved host that did not contribute results to `GET /api/v1/hosts/runs-search`. */
|
|
1079
|
-
export declare const hostSearchUnansweredSchema: z.ZodObject<{
|
|
1080
|
-
hostId: z.ZodString;
|
|
1081
|
-
label: z.ZodString;
|
|
1082
|
-
state: z.ZodEnum<{
|
|
1083
|
-
"cannot-persist": "cannot-persist";
|
|
1084
|
-
connected: "connected";
|
|
1085
|
-
connecting: "connecting";
|
|
1086
|
-
"identity-changed": "identity-changed";
|
|
1087
|
-
"needs-node": "needs-node";
|
|
1088
|
-
"not-hosted": "not-hosted";
|
|
1089
|
-
paused: "paused";
|
|
1090
|
-
"several-servers": "several-servers";
|
|
1091
|
-
unreachable: "unreachable";
|
|
1092
|
-
"version-mismatch": "version-mismatch";
|
|
1093
|
-
}>;
|
|
1094
|
-
reason: z.ZodEnum<{
|
|
1095
|
-
deadline: "deadline";
|
|
1096
|
-
error: "error";
|
|
1097
|
-
"not-connected": "not-connected";
|
|
1098
|
-
}>;
|
|
1099
|
-
}, z.core.$strip>;
|
|
1100
|
-
export type HostSearchUnanswered = z.infer<typeof hostSearchUnansweredSchema>;
|
|
1101
|
-
/** Project on a remote host that had more matches than `limit` during search. */
|
|
1102
|
-
export declare const hostTruncatedProjectSchema: z.ZodObject<{
|
|
1103
|
-
hostId: z.ZodString;
|
|
1104
|
-
projectId: z.ZodString;
|
|
1105
|
-
}, z.core.$strip>;
|
|
1106
|
-
export type HostTruncatedProject = z.infer<typeof hostTruncatedProjectSchema>;
|
|
1107
|
-
/**
|
|
1108
|
-
* `GET /api/v1/hosts/runs-search`: merged search hits across connected remote hosts plus every
|
|
1109
|
-
* saved host that did not answer and its reason class. Contains remote hosts only.
|
|
1110
|
-
*/
|
|
1111
|
-
export declare const hostsRunsSearchResponseSchema: z.ZodObject<{
|
|
1112
|
-
runs: z.ZodArray<z.ZodObject<{
|
|
1113
|
-
id: z.ZodString;
|
|
1114
|
-
title: z.ZodString;
|
|
1115
|
-
titleSummary: z.ZodOptional<z.ZodString>;
|
|
1116
|
-
titleOrigin: z.ZodOptional<z.ZodEnum<{
|
|
1117
|
-
auto: "auto";
|
|
1118
|
-
marker: "marker";
|
|
1119
|
-
user: "user";
|
|
1120
|
-
}>>;
|
|
1121
|
-
status: z.ZodEnum<{
|
|
1122
|
-
cancelled: "cancelled";
|
|
1123
|
-
done: "done";
|
|
1124
|
-
failed: "failed";
|
|
1125
|
-
queued: "queued";
|
|
1126
|
-
review: "review";
|
|
1127
|
-
running: "running";
|
|
1128
|
-
waiting: "waiting";
|
|
1129
|
-
}>;
|
|
1130
|
-
hasPendingPermission: z.ZodOptional<z.ZodBoolean>;
|
|
1131
|
-
waitingOn: z.ZodOptional<z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1132
|
-
kind: z.ZodLiteral<"human">;
|
|
1133
|
-
shown: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1134
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1135
|
-
kind: z.ZodLiteral<"usage-limit">;
|
|
1136
|
-
at: z.ZodString;
|
|
1137
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1138
|
-
kind: z.ZodLiteral<"workers">;
|
|
1139
|
-
count: z.ZodNumber;
|
|
1140
|
-
replies: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1141
|
-
peers: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1142
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1143
|
-
kind: z.ZodLiteral<"peers">;
|
|
1144
|
-
count: z.ZodNumber;
|
|
1145
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1146
|
-
kind: z.ZodLiteral<"subagents">;
|
|
1147
|
-
count: z.ZodNumber;
|
|
1148
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1149
|
-
kind: z.ZodLiteral<"pr">;
|
|
1150
|
-
until: z.ZodEnum<{
|
|
1151
|
-
checks: "checks";
|
|
1152
|
-
merge: "merge";
|
|
1153
|
-
merge_or_blocked: "merge_or_blocked";
|
|
1154
|
-
}>;
|
|
1155
|
-
waitId: z.ZodUUID;
|
|
1156
|
-
prUrl: z.ZodString;
|
|
1157
|
-
repository: z.ZodString;
|
|
1158
|
-
prNumber: z.ZodNumber;
|
|
1159
|
-
deadline: z.ZodISODateTime;
|
|
1160
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1161
|
-
kind: z.ZodLiteral<"process">;
|
|
1162
|
-
waitId: z.ZodUUID;
|
|
1163
|
-
pid: z.ZodNumber;
|
|
1164
|
-
deadline: z.ZodISODateTime;
|
|
1165
|
-
note: z.ZodOptional<z.ZodString>;
|
|
1166
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1167
|
-
kind: z.ZodLiteral<"plugin">;
|
|
1168
|
-
pluginKind: z.ZodString;
|
|
1169
|
-
waitId: z.ZodUUID;
|
|
1170
|
-
summary: z.ZodString;
|
|
1171
|
-
deadline: z.ZodOptional<z.ZodISODateTime>;
|
|
1172
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1173
|
-
kind: z.ZodLiteral<"timer">;
|
|
1174
|
-
waitId: z.ZodUUID;
|
|
1175
|
-
at: z.ZodISODateTime;
|
|
1176
|
-
note: z.ZodOptional<z.ZodString>;
|
|
1177
|
-
}, z.core.$strip>], "kind">>>;
|
|
1178
|
-
waitWakePending: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1179
|
-
delegation: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1180
|
-
role: z.ZodLiteral<"root">;
|
|
1181
|
-
wait: z.ZodOptional<z.ZodObject<{
|
|
1182
|
-
workerIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
|
|
1183
|
-
requestIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
|
|
1184
|
-
phase: z.ZodEnum<{
|
|
1185
|
-
parked: "parked";
|
|
1186
|
-
registered: "registered";
|
|
1187
|
-
"wake-pending": "wake-pending";
|
|
1188
|
-
}>;
|
|
1189
|
-
outcomes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1190
|
-
workerId: z.ZodUUID;
|
|
1191
|
-
}, z.core.$strip>>>;
|
|
1192
|
-
}, z.core.$strip>>;
|
|
1193
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1194
|
-
role: z.ZodLiteral<"worker">;
|
|
1195
|
-
parentRunId: z.ZodUUID;
|
|
1196
|
-
supervisorRunId: z.ZodOptional<z.ZodUUID>;
|
|
1197
|
-
wait: z.ZodOptional<z.ZodObject<{
|
|
1198
|
-
requestIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
|
|
1199
|
-
phase: z.ZodEnum<{
|
|
1200
|
-
parked: "parked";
|
|
1201
|
-
registered: "registered";
|
|
1202
|
-
"wake-pending": "wake-pending";
|
|
1203
|
-
}>;
|
|
1204
|
-
}, z.core.$strip>>;
|
|
1205
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1206
|
-
role: z.ZodLiteral<"invalid">;
|
|
1207
|
-
}, z.core.$strip>], "role">>;
|
|
1208
|
-
createdAt: z.ZodString;
|
|
1209
|
-
finishedAt: z.ZodOptional<z.ZodString>;
|
|
1210
|
-
seenAt: z.ZodOptional<z.ZodString>;
|
|
1211
|
-
archived: z.ZodBoolean;
|
|
1212
|
-
autoResumeAt: z.ZodOptional<z.ZodString>;
|
|
1213
|
-
autoResumeReason: z.ZodOptional<z.ZodEnum<{
|
|
1214
|
-
"provider-error": "provider-error";
|
|
1215
|
-
"usage-limit": "usage-limit";
|
|
1216
|
-
}>>;
|
|
1217
|
-
workflow: z.ZodString;
|
|
1218
|
-
branch: z.ZodOptional<z.ZodString>;
|
|
1219
|
-
startedAt: z.ZodOptional<z.ZodString>;
|
|
1220
|
-
pullRequestUrl: z.ZodOptional<z.ZodString>;
|
|
1221
|
-
pullRequests: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1222
|
-
number: z.ZodNumber;
|
|
1223
|
-
url: z.ZodOptional<z.ZodString>;
|
|
1224
|
-
source: z.ZodEnum<{
|
|
1225
|
-
created: "created";
|
|
1226
|
-
declared: "declared";
|
|
1227
|
-
}>;
|
|
1228
|
-
}, z.core.$strip>>>;
|
|
1229
|
-
referencedPullRequestUrl: z.ZodOptional<z.ZodString>;
|
|
1230
|
-
prNumber: z.ZodOptional<z.ZodNumber>;
|
|
1231
|
-
issueNumber: z.ZodOptional<z.ZodNumber>;
|
|
1232
|
-
referencedIssueUrl: z.ZodOptional<z.ZodString>;
|
|
1233
|
-
markerRefs: z.ZodOptional<z.ZodObject<{
|
|
1234
|
-
pr: z.ZodOptional<z.ZodNumber>;
|
|
1235
|
-
issue: z.ZodOptional<z.ZodNumber>;
|
|
1236
|
-
}, z.core.$strip>>;
|
|
1237
|
-
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
1238
|
-
peakRssBytes: z.ZodOptional<z.ZodNumber>;
|
|
1239
|
-
peakProcCount: z.ZodOptional<z.ZodNumber>;
|
|
1240
|
-
usage: z.ZodOptional<z.ZodObject<{
|
|
1241
|
-
cpuPct: z.ZodNumber;
|
|
1242
|
-
rssBytes: z.ZodNumber;
|
|
1243
|
-
procCount: z.ZodNumber;
|
|
1244
|
-
}, z.core.$strip>>;
|
|
1245
|
-
workflowLabel: z.ZodString;
|
|
1246
|
-
groupId: z.ZodOptional<z.ZodString>;
|
|
1247
|
-
variant: z.ZodOptional<z.ZodString>;
|
|
1248
|
-
pinned: z.ZodOptional<z.ZodBoolean>;
|
|
1249
|
-
automationId: z.ZodOptional<z.ZodString>;
|
|
1250
|
-
runner: z.ZodOptional<z.ZodString>;
|
|
1251
|
-
removedRunner: z.ZodOptional<z.ZodString>;
|
|
1252
|
-
model: z.ZodOptional<z.ZodString>;
|
|
1253
|
-
notify: z.ZodOptional<z.ZodBoolean>;
|
|
1254
|
-
diffStat: z.ZodOptional<z.ZodObject<{
|
|
1255
|
-
adds: z.ZodNumber;
|
|
1256
|
-
dels: z.ZodNumber;
|
|
1257
|
-
files: z.ZodNumber;
|
|
1258
|
-
repointed: z.ZodOptional<z.ZodBoolean>;
|
|
1259
|
-
}, z.core.$strip>>;
|
|
1260
|
-
tokensUsed: z.ZodNumber;
|
|
1261
|
-
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
1262
|
-
outputTokens: z.ZodOptional<z.ZodNumber>;
|
|
1263
|
-
currentStepId: z.ZodOptional<z.ZodString>;
|
|
1264
|
-
currentStepBackend: z.ZodOptional<z.ZodString>;
|
|
1265
|
-
error: z.ZodOptional<z.ZodString>;
|
|
1266
|
-
statePreview: z.ZodOptional<z.ZodObject<{
|
|
1267
|
-
kind: z.ZodEnum<{
|
|
1268
|
-
ask: "ask";
|
|
1269
|
-
error: "error";
|
|
1270
|
-
permission: "permission";
|
|
1271
|
-
review: "review";
|
|
1272
|
-
}>;
|
|
1273
|
-
text: z.ZodString;
|
|
1274
|
-
}, z.core.$strip>>;
|
|
1275
|
-
worktreePath: z.ZodOptional<z.ZodString>;
|
|
1276
|
-
projectId: z.ZodString;
|
|
1277
|
-
hostId: z.ZodString;
|
|
1278
|
-
}, z.core.$strip>>;
|
|
1279
|
-
truncated: z.ZodArray<z.ZodObject<{
|
|
1280
|
-
hostId: z.ZodString;
|
|
1281
|
-
projectId: z.ZodString;
|
|
1282
|
-
}, z.core.$strip>>;
|
|
1283
|
-
unanswered: z.ZodArray<z.ZodObject<{
|
|
1284
|
-
hostId: z.ZodString;
|
|
1285
|
-
label: z.ZodString;
|
|
1286
|
-
state: z.ZodEnum<{
|
|
1287
|
-
"cannot-persist": "cannot-persist";
|
|
1288
|
-
connected: "connected";
|
|
1289
|
-
connecting: "connecting";
|
|
1290
|
-
"identity-changed": "identity-changed";
|
|
1291
|
-
"needs-node": "needs-node";
|
|
1292
|
-
"not-hosted": "not-hosted";
|
|
1293
|
-
paused: "paused";
|
|
1294
|
-
"several-servers": "several-servers";
|
|
1295
|
-
unreachable: "unreachable";
|
|
1296
|
-
"version-mismatch": "version-mismatch";
|
|
1297
|
-
}>;
|
|
1298
|
-
reason: z.ZodEnum<{
|
|
1299
|
-
deadline: "deadline";
|
|
1300
|
-
error: "error";
|
|
1301
|
-
"not-connected": "not-connected";
|
|
1302
|
-
}>;
|
|
1303
|
-
}, z.core.$strip>>;
|
|
1304
|
-
warning: z.ZodOptional<z.ZodString>;
|
|
1305
|
-
}, z.core.$strip>;
|
|
1306
|
-
export type HostsRunsSearchResponse = z.infer<typeof hostsRunsSearchResponseSchema>;
|
|
1307
|
-
/**
|
|
1308
|
-
* Workspace SSE event emitted on the main server's `/api/v1/workspace/events` stream when a saved
|
|
1309
|
-
* host's state, `stale`/`loaded` status, registry entry, or full host row set changes (snapshot
|
|
1310
|
-
* replacement or remote project removal; never single-row or usage deltas, which stream through
|
|
1311
|
-
* `host-run-summary`, `host-run-deleted`, and `host-usage` on `?runs=summary`).
|
|
1312
|
-
* Safe for every session: carries only host ids and invalidation booleans.
|
|
1313
|
-
*/
|
|
1314
|
-
export declare const HOSTS_CHANGED_EVENT: 'hosts-changed';
|
|
1315
|
-
export declare const hostsChangedEventSchema: z.ZodObject<{
|
|
1316
|
-
hostIds: z.ZodArray<z.ZodString>;
|
|
1317
|
-
stateChanged: z.ZodBoolean;
|
|
1318
|
-
indexChanged: z.ZodBoolean;
|
|
1319
|
-
}, z.core.$strip>;
|
|
1320
|
-
export type HostsChangedEvent = z.infer<typeof hostsChangedEventSchema>;
|
|
1321
|
-
/**
|
|
1322
|
-
* Summary-mode workspace SSE delta events emitted ONLY to `/api/v1/workspace/events?runs=summary`
|
|
1323
|
-
* subscribers when a connected host's cached task index applies a single row update, row deletion,
|
|
1324
|
-
* or usage tick (hearsay-tools/squawk#4541).
|
|
1325
|
-
*
|
|
1326
|
-
* `host-run-summary` and `host-run-deleted` carry a dedicated monotonic `seq` owned by the main
|
|
1327
|
-
* server's host index manager (independent of the local run feed's `seq` so local clients never
|
|
1328
|
-
* see false gaps). Within one main-server `generation`, `seq` is contiguous across all saved hosts
|
|
1329
|
-
* (`1, 2, 3, ...`) and matches `eventSeq` in `GET /api/v1/hosts/runs-index`. After a main-server
|
|
1330
|
-
* restart, `generation` changes and `seq` starts again from `1`; clients must read the host index
|
|
1331
|
-
* again on a changed generation. `host-usage` carries no `seq`, matching the local `usage` event.
|
|
1332
|
-
*/
|
|
1333
|
-
export declare const HOST_RUN_SUMMARY_EVENT: 'host-run-summary';
|
|
1334
|
-
export declare const hostRunSummaryEventSchema: z.ZodObject<{
|
|
1335
|
-
hostId: z.ZodString;
|
|
1336
|
-
project: z.ZodString;
|
|
1337
|
-
seq: z.ZodNumber;
|
|
1338
|
-
run: z.ZodObject<{
|
|
1339
|
-
id: z.ZodString;
|
|
1340
|
-
title: z.ZodString;
|
|
1341
|
-
titleSummary: z.ZodOptional<z.ZodString>;
|
|
1342
|
-
titleOrigin: z.ZodOptional<z.ZodEnum<{
|
|
1343
|
-
auto: "auto";
|
|
1344
|
-
marker: "marker";
|
|
1345
|
-
user: "user";
|
|
1346
|
-
}>>;
|
|
1347
|
-
status: z.ZodEnum<{
|
|
1348
|
-
cancelled: "cancelled";
|
|
1349
|
-
done: "done";
|
|
1350
|
-
failed: "failed";
|
|
1351
|
-
queued: "queued";
|
|
1352
|
-
review: "review";
|
|
1353
|
-
running: "running";
|
|
1354
|
-
waiting: "waiting";
|
|
1355
|
-
}>;
|
|
1356
|
-
hasPendingPermission: z.ZodOptional<z.ZodBoolean>;
|
|
1357
|
-
waitingOn: z.ZodOptional<z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1358
|
-
kind: z.ZodLiteral<"human">;
|
|
1359
|
-
shown: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1360
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1361
|
-
kind: z.ZodLiteral<"usage-limit">;
|
|
1362
|
-
at: z.ZodString;
|
|
1363
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1364
|
-
kind: z.ZodLiteral<"workers">;
|
|
1365
|
-
count: z.ZodNumber;
|
|
1366
|
-
replies: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1367
|
-
peers: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1368
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1369
|
-
kind: z.ZodLiteral<"peers">;
|
|
1370
|
-
count: z.ZodNumber;
|
|
1371
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1372
|
-
kind: z.ZodLiteral<"subagents">;
|
|
1373
|
-
count: z.ZodNumber;
|
|
1374
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1375
|
-
kind: z.ZodLiteral<"pr">;
|
|
1376
|
-
until: z.ZodEnum<{
|
|
1377
|
-
checks: "checks";
|
|
1378
|
-
merge: "merge";
|
|
1379
|
-
merge_or_blocked: "merge_or_blocked";
|
|
1380
|
-
}>;
|
|
1381
|
-
waitId: z.ZodUUID;
|
|
1382
|
-
prUrl: z.ZodString;
|
|
1383
|
-
repository: z.ZodString;
|
|
1384
|
-
prNumber: z.ZodNumber;
|
|
1385
|
-
deadline: z.ZodISODateTime;
|
|
1386
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1387
|
-
kind: z.ZodLiteral<"process">;
|
|
1388
|
-
waitId: z.ZodUUID;
|
|
1389
|
-
pid: z.ZodNumber;
|
|
1390
|
-
deadline: z.ZodISODateTime;
|
|
1391
|
-
note: z.ZodOptional<z.ZodString>;
|
|
1392
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1393
|
-
kind: z.ZodLiteral<"plugin">;
|
|
1394
|
-
pluginKind: z.ZodString;
|
|
1395
|
-
waitId: z.ZodUUID;
|
|
1396
|
-
summary: z.ZodString;
|
|
1397
|
-
deadline: z.ZodOptional<z.ZodISODateTime>;
|
|
1398
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1399
|
-
kind: z.ZodLiteral<"timer">;
|
|
1400
|
-
waitId: z.ZodUUID;
|
|
1401
|
-
at: z.ZodISODateTime;
|
|
1402
|
-
note: z.ZodOptional<z.ZodString>;
|
|
1403
|
-
}, z.core.$strip>], "kind">>>;
|
|
1404
|
-
waitWakePending: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1405
|
-
delegation: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1406
|
-
role: z.ZodLiteral<"root">;
|
|
1407
|
-
wait: z.ZodOptional<z.ZodObject<{
|
|
1408
|
-
workerIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
|
|
1409
|
-
requestIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
|
|
1410
|
-
phase: z.ZodEnum<{
|
|
1411
|
-
parked: "parked";
|
|
1412
|
-
registered: "registered";
|
|
1413
|
-
"wake-pending": "wake-pending";
|
|
1414
|
-
}>;
|
|
1415
|
-
outcomes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1416
|
-
workerId: z.ZodUUID;
|
|
1417
|
-
}, z.core.$strip>>>;
|
|
1418
|
-
}, z.core.$strip>>;
|
|
1419
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1420
|
-
role: z.ZodLiteral<"worker">;
|
|
1421
|
-
parentRunId: z.ZodUUID;
|
|
1422
|
-
supervisorRunId: z.ZodOptional<z.ZodUUID>;
|
|
1423
|
-
wait: z.ZodOptional<z.ZodObject<{
|
|
1424
|
-
requestIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
|
|
1425
|
-
phase: z.ZodEnum<{
|
|
1426
|
-
parked: "parked";
|
|
1427
|
-
registered: "registered";
|
|
1428
|
-
"wake-pending": "wake-pending";
|
|
1429
|
-
}>;
|
|
1430
|
-
}, z.core.$strip>>;
|
|
1431
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1432
|
-
role: z.ZodLiteral<"invalid">;
|
|
1433
|
-
}, z.core.$strip>], "role">>;
|
|
1434
|
-
createdAt: z.ZodString;
|
|
1435
|
-
finishedAt: z.ZodOptional<z.ZodString>;
|
|
1436
|
-
seenAt: z.ZodOptional<z.ZodString>;
|
|
1437
|
-
archived: z.ZodBoolean;
|
|
1438
|
-
autoResumeAt: z.ZodOptional<z.ZodString>;
|
|
1439
|
-
autoResumeReason: z.ZodOptional<z.ZodEnum<{
|
|
1440
|
-
"provider-error": "provider-error";
|
|
1441
|
-
"usage-limit": "usage-limit";
|
|
1442
|
-
}>>;
|
|
1443
|
-
workflow: z.ZodString;
|
|
1444
|
-
branch: z.ZodOptional<z.ZodString>;
|
|
1445
|
-
startedAt: z.ZodOptional<z.ZodString>;
|
|
1446
|
-
pullRequestUrl: z.ZodOptional<z.ZodString>;
|
|
1447
|
-
pullRequests: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1448
|
-
number: z.ZodNumber;
|
|
1449
|
-
url: z.ZodOptional<z.ZodString>;
|
|
1450
|
-
source: z.ZodEnum<{
|
|
1451
|
-
created: "created";
|
|
1452
|
-
declared: "declared";
|
|
1453
|
-
}>;
|
|
1454
|
-
}, z.core.$strip>>>;
|
|
1455
|
-
referencedPullRequestUrl: z.ZodOptional<z.ZodString>;
|
|
1456
|
-
prNumber: z.ZodOptional<z.ZodNumber>;
|
|
1457
|
-
issueNumber: z.ZodOptional<z.ZodNumber>;
|
|
1458
|
-
referencedIssueUrl: z.ZodOptional<z.ZodString>;
|
|
1459
|
-
markerRefs: z.ZodOptional<z.ZodObject<{
|
|
1460
|
-
pr: z.ZodOptional<z.ZodNumber>;
|
|
1461
|
-
issue: z.ZodOptional<z.ZodNumber>;
|
|
1462
|
-
}, z.core.$strip>>;
|
|
1463
|
-
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
1464
|
-
peakRssBytes: z.ZodOptional<z.ZodNumber>;
|
|
1465
|
-
peakProcCount: z.ZodOptional<z.ZodNumber>;
|
|
1466
|
-
usage: z.ZodOptional<z.ZodObject<{
|
|
1467
|
-
cpuPct: z.ZodNumber;
|
|
1468
|
-
rssBytes: z.ZodNumber;
|
|
1469
|
-
procCount: z.ZodNumber;
|
|
1470
|
-
}, z.core.$strip>>;
|
|
1471
|
-
workflowLabel: z.ZodString;
|
|
1472
|
-
groupId: z.ZodOptional<z.ZodString>;
|
|
1473
|
-
variant: z.ZodOptional<z.ZodString>;
|
|
1474
|
-
pinned: z.ZodOptional<z.ZodBoolean>;
|
|
1475
|
-
automationId: z.ZodOptional<z.ZodString>;
|
|
1476
|
-
runner: z.ZodOptional<z.ZodString>;
|
|
1477
|
-
removedRunner: z.ZodOptional<z.ZodString>;
|
|
1478
|
-
model: z.ZodOptional<z.ZodString>;
|
|
1479
|
-
notify: z.ZodOptional<z.ZodBoolean>;
|
|
1480
|
-
diffStat: z.ZodOptional<z.ZodObject<{
|
|
1481
|
-
adds: z.ZodNumber;
|
|
1482
|
-
dels: z.ZodNumber;
|
|
1483
|
-
files: z.ZodNumber;
|
|
1484
|
-
repointed: z.ZodOptional<z.ZodBoolean>;
|
|
1485
|
-
}, z.core.$strip>>;
|
|
1486
|
-
tokensUsed: z.ZodNumber;
|
|
1487
|
-
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
1488
|
-
outputTokens: z.ZodOptional<z.ZodNumber>;
|
|
1489
|
-
currentStepId: z.ZodOptional<z.ZodString>;
|
|
1490
|
-
currentStepBackend: z.ZodOptional<z.ZodString>;
|
|
1491
|
-
error: z.ZodOptional<z.ZodString>;
|
|
1492
|
-
statePreview: z.ZodOptional<z.ZodObject<{
|
|
1493
|
-
kind: z.ZodEnum<{
|
|
1494
|
-
ask: "ask";
|
|
1495
|
-
error: "error";
|
|
1496
|
-
permission: "permission";
|
|
1497
|
-
review: "review";
|
|
1498
|
-
}>;
|
|
1499
|
-
text: z.ZodString;
|
|
1500
|
-
}, z.core.$strip>>;
|
|
1501
|
-
worktreePath: z.ZodOptional<z.ZodString>;
|
|
1502
|
-
}, z.core.$strip>;
|
|
1503
|
-
}, z.core.$strip>;
|
|
1504
|
-
export type HostRunSummaryEvent = z.infer<typeof hostRunSummaryEventSchema>;
|
|
1505
|
-
export declare const HOST_RUN_DELETED_EVENT: 'host-run-deleted';
|
|
1506
|
-
export declare const hostRunDeletedEventSchema: z.ZodObject<{
|
|
1507
|
-
hostId: z.ZodString;
|
|
1508
|
-
project: z.ZodString;
|
|
1509
|
-
seq: z.ZodNumber;
|
|
1510
|
-
id: z.ZodString;
|
|
1511
|
-
}, z.core.$strip>;
|
|
1512
|
-
export type HostRunDeletedEvent = z.infer<typeof hostRunDeletedEventSchema>;
|
|
1513
|
-
export declare const HOST_USAGE_EVENT: 'host-usage';
|
|
1514
|
-
export declare const hostUsageEventSchema: z.ZodObject<{
|
|
1515
|
-
hostId: z.ZodString;
|
|
1516
|
-
project: z.ZodString;
|
|
1517
|
-
usage: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1518
|
-
cpuPct: z.ZodNumber;
|
|
1519
|
-
rssBytes: z.ZodNumber;
|
|
1520
|
-
procCount: z.ZodNumber;
|
|
1521
|
-
}, z.core.$strip>>;
|
|
1522
|
-
}, z.core.$strip>;
|
|
1523
|
-
export type HostUsageEvent = z.infer<typeof hostUsageEventSchema>;
|