@hearsay-tools/squawk 0.18.0-dev.8338 → 0.18.0-dev.8342
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/controller.d.ts +7 -7
- package/dist/contract/agent-profiles.d.ts +13 -10
- package/dist/contract/index.js +12 -7
- package/dist/delegation/routes.d.ts +65 -65
- package/dist/remote-settings-cli.d.ts +1 -1
- package/dist/remote-settings-cli.js +2 -2
- package/dist/remote-settings-cli.js.map +1 -1
- package/dist/server/capabilities.d.ts +4 -2
- package/dist/server/capabilities.js.map +1 -1
- package/dist/server/models-routes.d.ts +0 -18
- package/dist/server/models-routes.js +1 -3
- package/dist/server/models-routes.js.map +1 -1
- package/dist/server/project-settings-routes.d.ts +107 -121
- package/dist/server/project-settings-routes.js +2 -4
- package/dist/server/project-settings-routes.js.map +1 -1
- package/dist/server/provider-sign-in-routes.d.ts +2 -2
- package/dist/server/providers-routes.d.ts +17 -34
- package/dist/server/providers-routes.js +55 -41
- package/dist/server/providers-routes.js.map +1 -1
- package/dist/server/server-types.d.ts +1 -1
- package/dist/server/server-types.js +6 -3
- package/dist/server/server-types.js.map +1 -1
- package/dist/server/server.d.ts +16 -72
- package/dist/server/server.js +4 -8
- package/dist/server/server.js.map +1 -1
- package/dist/workspace/agent-accounts.d.ts +2 -0
- package/dist/workspace/agent-accounts.js +4 -0
- package/dist/workspace/agent-accounts.js.map +1 -1
- package/package.json +4 -4
- package/web/dist/assets/accounts-section-D3rKSj1e.js +1 -0
- package/web/dist/assets/{activity-motion-wGHBuD_L.js → activity-motion-CFgok4CI.js} +1 -1
- package/web/dist/assets/{activity-route-BhT-npje.js → activity-route-HvdWBepL.js} +1 -1
- package/web/dist/assets/{agent-config-section-BIkW506A.js → agent-config-section-DbmhTCJA.js} +2 -2
- package/web/dist/assets/agent-defaults-section-5fBA2FMV.js +1 -0
- package/web/dist/assets/{appearance-CipbKN5k.js → appearance-ZpysBpxH.js} +1 -1
- package/web/dist/assets/{archive-on-merge-field-Dx8afb0D.js → archive-on-merge-field-BlGo3o7a.js} +1 -1
- package/web/dist/assets/attention-CvHM4cjG.js +1 -0
- package/web/dist/assets/{automations-route-DKKwkBjL.js → automations-route-aINxoEQX.js} +1 -1
- package/web/dist/assets/{commit-diff-panel-OqVigspU.js → commit-diff-panel-BzAqXG0p.js} +1 -1
- package/web/dist/assets/{diff-CpkjO5Q-.js → diff-lVUk7FAR.js} +2 -2
- package/web/dist/assets/{diff-view-D6QC4z_i.js → diff-view-B5RGiepv.js} +1 -1
- package/web/dist/assets/{file-preview-C-oYrG0r.js → file-preview-Bn5u5k1W.js} +1 -1
- package/web/dist/assets/{folder-browser-DJd_sQFq.js → folder-browser-CffyHz8w.js} +1 -1
- package/web/dist/assets/{git-toolbar-BiWUXSvy.js → git-toolbar-xLFz5nnr.js} +1 -1
- package/web/dist/assets/{github-DSZtAYK0.js → github-DxiILmDg.js} +1 -1
- package/web/dist/assets/{global-activity-route-ylV7sfQb.js → global-activity-route-BmqMaZug.js} +1 -1
- package/web/dist/assets/index-DndX-kC-.js +21 -0
- package/web/dist/assets/{label-HRVFTN4V.js → label-6PgIe3Ny.js} +1 -1
- package/web/dist/assets/{live-reads-Djkq38NT.js → live-reads-BxjlQXfN.js} +1 -1
- package/web/dist/assets/{markdown-Drj1MCd_.js → markdown-DHYxiDex.js} +1 -1
- package/web/dist/assets/{notifications-section-BNncS89W.js → notifications-section-xHvjaRxV.js} +1 -1
- package/web/dist/assets/{open-in-menu-BeAj_aq3.js → open-in-menu-AZMtej8C.js} +1 -1
- package/web/dist/assets/{preview-pane-connected-C9bYs_nr.js → preview-pane-connected-C5Lsjf2P.js} +2 -2
- package/web/dist/assets/{project-location-DJEH4PmN.js → project-location-DzOgHfcA.js} +1 -1
- package/web/dist/assets/{project-router-C6zhlnwO.js → project-router-CDPfL2Jz.js} +1 -1
- package/web/dist/assets/{project-scope-context-d3J3hWPR.js → project-scope-context-D9axDY18.js} +2 -2
- package/web/dist/assets/{projects-section-DAyPYxaB.js → projects-section-0ov7IK9p.js} +1 -1
- package/web/dist/assets/{prompt-templates-section-BUTjHN-R.js → prompt-templates-section-DgLWN4ZB.js} +1 -1
- package/web/dist/assets/{queries-dnpdX9VT.js → queries-DzwCG927.js} +1 -1
- package/web/dist/assets/{reference-chip-DHWnJcWz.js → reference-chip-BnIoiMgY.js} +1 -1
- package/web/dist/assets/remote-settings-notice-kmlL_JEi.js +1 -0
- package/web/dist/assets/{repo-git-CahuM1Bi.js → repo-git-D-L0KYwh.js} +1 -1
- package/web/dist/assets/{report-reader-BMw7TyID.js → report-reader-Fb02sGC6.js} +1 -1
- package/web/dist/assets/{reports-BqhgWSM-.js → reports--yxm1Dbp.js} +1 -1
- package/web/dist/assets/{resources-section-CPdErsDL.js → resources-section-CZu7afz7.js} +1 -1
- package/web/dist/assets/run-header-Bajufo9w.js +2 -0
- package/web/dist/assets/settings-agent-picker-XdHS0cXP.js +1 -0
- package/web/dist/assets/{settings-shell-Cg1j_HUU.js → settings-shell-63smMna1.js} +1 -1
- package/web/dist/assets/{sidebar-section-C7mKySo9.js → sidebar-section-Dgf9Tda6.js} +1 -1
- package/web/dist/assets/{skills-DL6gTurZ.js → skills-CVoGqJeT.js} +1 -1
- package/web/dist/assets/{tab-link-Cq8g7cFx.js → tab-link-BaKE6KnE.js} +1 -1
- package/web/dist/assets/{task-changes-BYdPYqmr.js → task-changes-Cd30VNwk.js} +1 -1
- package/web/dist/assets/{task-commits-CZs64PxA.js → task-commits-33kwaiVP.js} +1 -1
- package/web/dist/assets/{task-files-CHDvZdch.js → task-files-W2NkAX0s.js} +1 -1
- package/web/dist/assets/{task-github-item-BaAS8tc7.js → task-github-item-C7dEQxMN.js} +1 -1
- package/web/dist/assets/{task-groups-BF7_ZZTh.js → task-groups-DoiPFEfM.js} +1 -1
- package/web/dist/assets/{task-thread-DKTYTRYk.js → task-thread-Bi5cKYmZ.js} +6 -6
- package/web/dist/assets/{tasks-table-CzLkD-kr.js → tasks-table-CmESFng9.js} +1 -1
- package/web/dist/assets/{thread-state-Cnu6irf1.js → thread-state-DI7JLoTx.js} +1 -1
- package/web/dist/assets/{use-hand-to-agent-state-C0HmC08K.js → use-hand-to-agent-state-B869bBKO.js} +1 -1
- package/web/dist/assets/{useInfiniteQuery-qJcgwcf9.js → useInfiniteQuery-GZp9laKm.js} +1 -1
- package/web/dist/assets/useQuery-CzVHT8UE.js +1 -0
- package/web/dist/assets/{workflows-BxrHkrIx.js → workflows-CeRdeF9n.js} +3 -3
- package/web/dist/assets/{workspace-tools-DK0GgizV.js → workspace-tools-YqTAoyv7.js} +1 -1
- package/web/dist/assets/{worktrees-section-CBWXq2mc.js → worktrees-section-9fwC5DGp.js} +1 -1
- package/web/dist/index.html +14 -14
- package/web/dist/assets/accounts-section-qnA3YX9G.js +0 -1
- package/web/dist/assets/agent-defaults-section-D9oxRh7t.js +0 -1
- package/web/dist/assets/attention-VcsXbAZz.js +0 -1
- package/web/dist/assets/index-CS5yyNbo.js +0 -21
- package/web/dist/assets/remote-settings-notice-BTtluTx2.js +0 -1
- package/web/dist/assets/run-header-BpdSJ6lc.js +0 -2
- package/web/dist/assets/settings-agent-picker-By-EZVYH.js +0 -1
- package/web/dist/assets/useQuery-CkUPLiaa.js +0 -1
|
@@ -121,9 +121,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
121
121
|
} & {
|
|
122
122
|
"/api/v1/tools/:name": {
|
|
123
123
|
$post: {
|
|
124
|
-
output:
|
|
124
|
+
output: {
|
|
125
|
+
code: string;
|
|
126
|
+
message: string;
|
|
127
|
+
};
|
|
125
128
|
outputFormat: "json";
|
|
126
|
-
status:
|
|
129
|
+
status: 401;
|
|
127
130
|
input: {
|
|
128
131
|
json: unknown;
|
|
129
132
|
} & {
|
|
@@ -146,12 +149,9 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
146
149
|
};
|
|
147
150
|
};
|
|
148
151
|
} | {
|
|
149
|
-
output:
|
|
150
|
-
code: string;
|
|
151
|
-
message: string;
|
|
152
|
-
};
|
|
152
|
+
output: never;
|
|
153
153
|
outputFormat: "json";
|
|
154
|
-
status:
|
|
154
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
155
155
|
input: {
|
|
156
156
|
json: unknown;
|
|
157
157
|
} & {
|
|
@@ -33,8 +33,8 @@ export declare const agentProfileSchema: z.ZodObject<{
|
|
|
33
33
|
id: z.ZodString;
|
|
34
34
|
provider: z.ZodString;
|
|
35
35
|
label: z.ZodString;
|
|
36
|
-
configDir: z.ZodString
|
|
37
|
-
path: z.ZodString
|
|
36
|
+
configDir: z.ZodOptional<z.ZodString>;
|
|
37
|
+
path: z.ZodOptional<z.ZodString>;
|
|
38
38
|
exists: z.ZodBoolean;
|
|
39
39
|
looksValid: z.ZodBoolean;
|
|
40
40
|
isDefault: z.ZodBoolean;
|
|
@@ -70,9 +70,10 @@ export type AgentAccountSelection = z.infer<typeof agentAccountSelectionSchema>;
|
|
|
70
70
|
/**
|
|
71
71
|
* `GET /api/v1/workspace/agent-profiles` — every account, discovered defaults first.
|
|
72
72
|
*
|
|
73
|
-
* `editable`
|
|
74
|
-
*
|
|
75
|
-
*
|
|
73
|
+
* `editable` mirrors `settingsAdmin` (true locally, or on a remote cockpit with a host grant).
|
|
74
|
+
* Without `settingsAdmin`, accounts are still listed so users can choose configured logins, while
|
|
75
|
+
* host paths (`configDir`, `path`, and raw repo roots in `selections`) are withheld and project
|
|
76
|
+
* choices ride on `projectSelections` keyed by project id.
|
|
76
77
|
*/
|
|
77
78
|
export declare const agentProfilesResponseSchema: z.ZodObject<{
|
|
78
79
|
editable: z.ZodBoolean;
|
|
@@ -80,8 +81,8 @@ export declare const agentProfilesResponseSchema: z.ZodObject<{
|
|
|
80
81
|
id: z.ZodString;
|
|
81
82
|
provider: z.ZodString;
|
|
82
83
|
label: z.ZodString;
|
|
83
|
-
configDir: z.ZodString
|
|
84
|
-
path: z.ZodString
|
|
84
|
+
configDir: z.ZodOptional<z.ZodString>;
|
|
85
|
+
path: z.ZodOptional<z.ZodString>;
|
|
85
86
|
exists: z.ZodBoolean;
|
|
86
87
|
looksValid: z.ZodBoolean;
|
|
87
88
|
isDefault: z.ZodBoolean;
|
|
@@ -102,6 +103,7 @@ export declare const agentProfilesResponseSchema: z.ZodObject<{
|
|
|
102
103
|
}, z.core.$strip>>;
|
|
103
104
|
profileCapableProviders: z.ZodArray<z.ZodString>;
|
|
104
105
|
selections: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodString>>>;
|
|
106
|
+
projectSelections: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodString>>>;
|
|
105
107
|
}, z.core.$strip>;
|
|
106
108
|
export type AgentProfilesResponse = z.infer<typeof agentProfilesResponseSchema>;
|
|
107
109
|
/**
|
|
@@ -117,9 +119,10 @@ export declare const selectAgentProfileInputSchema: z.ZodObject<{
|
|
|
117
119
|
profileId: z.ZodNullable<z.ZodString>;
|
|
118
120
|
}, z.core.$strip>;
|
|
119
121
|
export type SelectAgentProfileInput = z.infer<typeof selectAgentProfileInputSchema>;
|
|
120
|
-
/** The selection
|
|
122
|
+
/** The selection maps after the write — the same shape the listing carries. */
|
|
121
123
|
export declare const agentProfileSelectionsResponseSchema: z.ZodObject<{
|
|
122
124
|
selections: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodString>>>;
|
|
125
|
+
projectSelections: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodString>>>;
|
|
123
126
|
}, z.core.$strip>;
|
|
124
127
|
export type AgentProfileSelectionsResponse = z.infer<typeof agentProfileSelectionsResponseSchema>;
|
|
125
128
|
/** `GET /api/v1/workspace/agent-profiles/:id/status` — one account's auth state, probed for real.
|
|
@@ -161,8 +164,8 @@ export declare const agentProfileResponseSchema: z.ZodObject<{
|
|
|
161
164
|
id: z.ZodString;
|
|
162
165
|
provider: z.ZodString;
|
|
163
166
|
label: z.ZodString;
|
|
164
|
-
configDir: z.ZodString
|
|
165
|
-
path: z.ZodString
|
|
167
|
+
configDir: z.ZodOptional<z.ZodString>;
|
|
168
|
+
path: z.ZodOptional<z.ZodString>;
|
|
166
169
|
exists: z.ZodBoolean;
|
|
167
170
|
looksValid: z.ZodBoolean;
|
|
168
171
|
isDefault: z.ZodBoolean;
|
package/dist/contract/index.js
CHANGED
|
@@ -4020,10 +4020,11 @@ var agentProfileSchema = z31.object({
|
|
|
4020
4020
|
id: z31.string(),
|
|
4021
4021
|
provider: providerIdSchema,
|
|
4022
4022
|
label: z31.string(),
|
|
4023
|
-
/** As the user wrote it — a literal `~` is preserved, matching `browseRoot`/`projectsDir`.
|
|
4024
|
-
|
|
4025
|
-
|
|
4026
|
-
path
|
|
4023
|
+
/** As the user wrote it — a literal `~` is preserved, matching `browseRoot`/`projectsDir`.
|
|
4024
|
+
* Omitted on a remote cockpit without `settingsAdmin` so host paths are not disclosed. */
|
|
4025
|
+
configDir: z31.string().optional(),
|
|
4026
|
+
/** Expanded absolute path. Omitted on a remote cockpit without `settingsAdmin`. */
|
|
4027
|
+
path: z31.string().optional(),
|
|
4027
4028
|
/** False for a dir the CLI has not created yet — legitimate, and NOT a reason to fall back
|
|
4028
4029
|
* to another account at run time (that would silently bill the wrong subscription). */
|
|
4029
4030
|
exists: z31.boolean(),
|
|
@@ -4057,8 +4058,11 @@ var agentProfilesResponseSchema = z31.object({
|
|
|
4057
4058
|
* Served here rather than on `GET /api/v1/projects` because it is stored beside the accounts it
|
|
4058
4059
|
* names (`~/.cezar/agent-accounts.json`) — one file, so deleting an account and scrubbing every
|
|
4059
4060
|
* reference to it is one atomic write, and neither can be dropped by a Squawk version that never
|
|
4060
|
-
* heard of accounts. Empty
|
|
4061
|
-
selections: z31.record(z31.string(), agentAccountSelectionSchema)
|
|
4061
|
+
* heard of accounts. Empty without `settingsAdmin` so host paths are not disclosed. */
|
|
4062
|
+
selections: z31.record(z31.string(), agentAccountSelectionSchema),
|
|
4063
|
+
/** Which account each project uses, keyed by canonical project id (plus `'default'` for the boot
|
|
4064
|
+
* project). Always populated without disclosing host filesystem paths. */
|
|
4065
|
+
projectSelections: z31.record(z31.string(), agentAccountSelectionSchema)
|
|
4062
4066
|
});
|
|
4063
4067
|
var selectAgentProfileInputSchema = z31.object({
|
|
4064
4068
|
/** Registry slug, or the reserved `default` boot alias. Resolved to a root server-side. */
|
|
@@ -4067,7 +4071,8 @@ var selectAgentProfileInputSchema = z31.object({
|
|
|
4067
4071
|
profileId: z31.string().max(64).nullable()
|
|
4068
4072
|
});
|
|
4069
4073
|
var agentProfileSelectionsResponseSchema = z31.object({
|
|
4070
|
-
selections: z31.record(z31.string(), agentAccountSelectionSchema)
|
|
4074
|
+
selections: z31.record(z31.string(), agentAccountSelectionSchema),
|
|
4075
|
+
projectSelections: z31.record(z31.string(), agentAccountSelectionSchema)
|
|
4071
4076
|
});
|
|
4072
4077
|
var agentAccountStatusResponseSchema = z31.object({ status: providerStatusSchema });
|
|
4073
4078
|
var createAgentProfileInputSchema = z31.object({
|
|
@@ -27,18 +27,6 @@ export declare function delegationFailure(error: unknown): {
|
|
|
27
27
|
export declare function createDelegationRoutes(service: DelegationService, credentials: CredentialRegistry): import("hono/hono-base").HonoBase<Env, {
|
|
28
28
|
"/list": {
|
|
29
29
|
$get: {
|
|
30
|
-
output: {
|
|
31
|
-
error: string;
|
|
32
|
-
code?: "invalid_input" | undefined;
|
|
33
|
-
};
|
|
34
|
-
outputFormat: "json";
|
|
35
|
-
status: 400;
|
|
36
|
-
input: {
|
|
37
|
-
query: {
|
|
38
|
-
offset?: string | undefined;
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
} | {
|
|
42
30
|
output: {
|
|
43
31
|
workers: {
|
|
44
32
|
workerId: string;
|
|
@@ -91,6 +79,18 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
91
79
|
offset?: string | undefined;
|
|
92
80
|
};
|
|
93
81
|
};
|
|
82
|
+
} | {
|
|
83
|
+
output: {
|
|
84
|
+
error: string;
|
|
85
|
+
code?: "invalid_input" | undefined;
|
|
86
|
+
};
|
|
87
|
+
outputFormat: "json";
|
|
88
|
+
status: 400;
|
|
89
|
+
input: {
|
|
90
|
+
query: {
|
|
91
|
+
offset?: string | undefined;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
94
|
};
|
|
95
95
|
};
|
|
96
96
|
} & {
|
|
@@ -677,18 +677,6 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
677
677
|
} & {
|
|
678
678
|
"/:workerId": {
|
|
679
679
|
$get: {
|
|
680
|
-
output: {
|
|
681
|
-
error: string;
|
|
682
|
-
code?: "invalid_input" | undefined;
|
|
683
|
-
};
|
|
684
|
-
outputFormat: "json";
|
|
685
|
-
status: 400;
|
|
686
|
-
input: {
|
|
687
|
-
param: {
|
|
688
|
-
workerId: string;
|
|
689
|
-
};
|
|
690
|
-
};
|
|
691
|
-
} | {
|
|
692
680
|
output: {
|
|
693
681
|
workerId: string;
|
|
694
682
|
settled: boolean;
|
|
@@ -813,11 +801,7 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
813
801
|
workerId: string;
|
|
814
802
|
};
|
|
815
803
|
};
|
|
816
|
-
}
|
|
817
|
-
};
|
|
818
|
-
} & {
|
|
819
|
-
"/:workerId/collect": {
|
|
820
|
-
$post: {
|
|
804
|
+
} | {
|
|
821
805
|
output: {
|
|
822
806
|
error: string;
|
|
823
807
|
code?: "invalid_input" | undefined;
|
|
@@ -828,10 +812,12 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
828
812
|
param: {
|
|
829
813
|
workerId: string;
|
|
830
814
|
};
|
|
831
|
-
} & {
|
|
832
|
-
json: Record<string, never>;
|
|
833
815
|
};
|
|
834
|
-
}
|
|
816
|
+
};
|
|
817
|
+
};
|
|
818
|
+
} & {
|
|
819
|
+
"/:workerId/collect": {
|
|
820
|
+
$post: {
|
|
835
821
|
output: {
|
|
836
822
|
workerId: string;
|
|
837
823
|
parentRunId: string;
|
|
@@ -954,11 +940,7 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
954
940
|
} & {
|
|
955
941
|
json: Record<string, never>;
|
|
956
942
|
};
|
|
957
|
-
}
|
|
958
|
-
};
|
|
959
|
-
} & {
|
|
960
|
-
"/:workerId/steer": {
|
|
961
|
-
$post: {
|
|
943
|
+
} | {
|
|
962
944
|
output: {
|
|
963
945
|
error: string;
|
|
964
946
|
code?: "invalid_input" | undefined;
|
|
@@ -970,11 +952,13 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
970
952
|
workerId: string;
|
|
971
953
|
};
|
|
972
954
|
} & {
|
|
973
|
-
json:
|
|
974
|
-
text: string;
|
|
975
|
-
};
|
|
955
|
+
json: Record<string, never>;
|
|
976
956
|
};
|
|
977
|
-
}
|
|
957
|
+
};
|
|
958
|
+
};
|
|
959
|
+
} & {
|
|
960
|
+
"/:workerId/steer": {
|
|
961
|
+
$post: {
|
|
978
962
|
output: {
|
|
979
963
|
workerId: string;
|
|
980
964
|
state: "delivered" | "queued";
|
|
@@ -990,11 +974,7 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
990
974
|
text: string;
|
|
991
975
|
};
|
|
992
976
|
};
|
|
993
|
-
}
|
|
994
|
-
};
|
|
995
|
-
} & {
|
|
996
|
-
"/:workerId/stop": {
|
|
997
|
-
$post: {
|
|
977
|
+
} | {
|
|
998
978
|
output: {
|
|
999
979
|
error: string;
|
|
1000
980
|
code?: "invalid_input" | undefined;
|
|
@@ -1006,9 +986,15 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
1006
986
|
workerId: string;
|
|
1007
987
|
};
|
|
1008
988
|
} & {
|
|
1009
|
-
json:
|
|
989
|
+
json: {
|
|
990
|
+
text: string;
|
|
991
|
+
};
|
|
1010
992
|
};
|
|
1011
|
-
}
|
|
993
|
+
};
|
|
994
|
+
};
|
|
995
|
+
} & {
|
|
996
|
+
"/:workerId/stop": {
|
|
997
|
+
$post: {
|
|
1012
998
|
output: {
|
|
1013
999
|
workerId: string;
|
|
1014
1000
|
state: "stopping" | "terminated";
|
|
@@ -1022,11 +1008,7 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
1022
1008
|
} & {
|
|
1023
1009
|
json: Record<string, never>;
|
|
1024
1010
|
};
|
|
1025
|
-
}
|
|
1026
|
-
};
|
|
1027
|
-
} & {
|
|
1028
|
-
"/:workerId/destroy": {
|
|
1029
|
-
$post: {
|
|
1011
|
+
} | {
|
|
1030
1012
|
output: {
|
|
1031
1013
|
error: string;
|
|
1032
1014
|
code?: "invalid_input" | undefined;
|
|
@@ -1038,11 +1020,13 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
1038
1020
|
workerId: string;
|
|
1039
1021
|
};
|
|
1040
1022
|
} & {
|
|
1041
|
-
json:
|
|
1042
|
-
discardWork?: true | undefined;
|
|
1043
|
-
};
|
|
1023
|
+
json: Record<string, never>;
|
|
1044
1024
|
};
|
|
1045
|
-
}
|
|
1025
|
+
};
|
|
1026
|
+
};
|
|
1027
|
+
} & {
|
|
1028
|
+
"/:workerId/destroy": {
|
|
1029
|
+
$post: {
|
|
1046
1030
|
output: {
|
|
1047
1031
|
workerId: string;
|
|
1048
1032
|
state: "complete" | "incomplete";
|
|
@@ -1071,6 +1055,22 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
1071
1055
|
discardWork?: true | undefined;
|
|
1072
1056
|
};
|
|
1073
1057
|
};
|
|
1058
|
+
} | {
|
|
1059
|
+
output: {
|
|
1060
|
+
error: string;
|
|
1061
|
+
code?: "invalid_input" | undefined;
|
|
1062
|
+
};
|
|
1063
|
+
outputFormat: "json";
|
|
1064
|
+
status: 400;
|
|
1065
|
+
input: {
|
|
1066
|
+
param: {
|
|
1067
|
+
workerId: string;
|
|
1068
|
+
};
|
|
1069
|
+
} & {
|
|
1070
|
+
json: {
|
|
1071
|
+
discardWork?: true | undefined;
|
|
1072
|
+
};
|
|
1073
|
+
};
|
|
1074
1074
|
} | {
|
|
1075
1075
|
output: {
|
|
1076
1076
|
workerId: string;
|
|
@@ -1106,11 +1106,13 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
1106
1106
|
"/:workerId/diff": {
|
|
1107
1107
|
$get: {
|
|
1108
1108
|
output: {
|
|
1109
|
-
|
|
1110
|
-
|
|
1109
|
+
workerId: string;
|
|
1110
|
+
baselineSha: string;
|
|
1111
|
+
diff: string;
|
|
1112
|
+
truncated: boolean;
|
|
1111
1113
|
};
|
|
1112
1114
|
outputFormat: "json";
|
|
1113
|
-
status:
|
|
1115
|
+
status: 200;
|
|
1114
1116
|
input: {
|
|
1115
1117
|
param: {
|
|
1116
1118
|
workerId: string;
|
|
@@ -1118,13 +1120,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
1118
1120
|
};
|
|
1119
1121
|
} | {
|
|
1120
1122
|
output: {
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
diff: string;
|
|
1124
|
-
truncated: boolean;
|
|
1123
|
+
error: string;
|
|
1124
|
+
code?: "invalid_input" | undefined;
|
|
1125
1125
|
};
|
|
1126
1126
|
outputFormat: "json";
|
|
1127
|
-
status:
|
|
1127
|
+
status: 400;
|
|
1128
1128
|
input: {
|
|
1129
1129
|
param: {
|
|
1130
1130
|
workerId: string;
|
|
@@ -6,7 +6,7 @@ import { type RemoteSettingsState } from './remote-settings.ts';
|
|
|
6
6
|
* port. It runs on the machine that runs Squawk, as the same user (and the same `CEZ_HOME`) as the
|
|
7
7
|
* cockpit service. One JSON object per invocation; exit 0 ok, 2 refused, 64 usage.
|
|
8
8
|
*/
|
|
9
|
-
export declare const REMOTE_SETTINGS_WARNING = "Anyone this cockpit admits can now save agent hooks, MCP servers and worktree setup commands that run on this machine as this user, and sign in to runner accounts on this machine. Keep the cockpit behind owner-only Tailscale access or an authenticated HTTPS proxy, bound to loopback.";
|
|
9
|
+
export declare const REMOTE_SETTINGS_WARNING = "Anyone this cockpit admits can now save agent hooks, MCP servers and worktree setup commands that run on this machine as this user, and manage or sign in to runner accounts on this machine. Keep the cockpit behind owner-only Tailscale access or an authenticated HTTPS proxy, bound to loopback.";
|
|
10
10
|
export interface CockpitHealth {
|
|
11
11
|
url: string;
|
|
12
12
|
localHandoff: boolean;
|
|
@@ -10,8 +10,8 @@ import { COCKPIT_PORTS } from './task-cli/discovery.js';
|
|
|
10
10
|
* port. It runs on the machine that runs Squawk, as the same user (and the same `CEZ_HOME`) as the
|
|
11
11
|
* cockpit service. One JSON object per invocation; exit 0 ok, 2 refused, 64 usage.
|
|
12
12
|
*/
|
|
13
|
-
export const REMOTE_SETTINGS_WARNING = 'Anyone this cockpit admits can now save agent hooks, MCP servers and worktree setup commands that run on this machine as this user, and sign in to runner accounts on this machine. Keep the cockpit behind owner-only Tailscale access or an authenticated HTTPS proxy, bound to loopback.';
|
|
14
|
-
const USAGE = commandText(`cez remote-settings — let a remote cockpit (CEZ_REMOTE=1) edit Agent config and worktree setup, and sign in to runner accounts.
|
|
13
|
+
export const REMOTE_SETTINGS_WARNING = 'Anyone this cockpit admits can now save agent hooks, MCP servers and worktree setup commands that run on this machine as this user, and manage or sign in to runner accounts on this machine. Keep the cockpit behind owner-only Tailscale access or an authenticated HTTPS proxy, bound to loopback.';
|
|
14
|
+
const USAGE = commandText(`cez remote-settings — let a remote cockpit (CEZ_REMOTE=1) edit Agent config and worktree setup, and manage or sign in to runner accounts.
|
|
15
15
|
One JSON object per invocation; exit 0 ok, 2 refused, 64 usage.
|
|
16
16
|
|
|
17
17
|
enable [--port <n>] allow remote edits on the cockpit listening on that port. Without --port,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remote-settings-cli.js","sourceRoot":"","sources":["../src/remote-settings-cli.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAm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,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,CAAC;QACrD,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QACjB,OAAO,CAAC,CAAC;IACX,CAAC;IACD,IAAI,CAAC;QACH,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,IAAI,EAAE,GAAG,EAAE,EAAE,EAAE,IAAI,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;QACnE,OAAO,CAAC,CAAC;IACX,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAI,CAAC,CAAC,KAAK,YAAY,OAAO,CAAC;YAAE,MAAM,KAAK,CAAC;QAC7C,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;QAC/C,OAAO,KAAK,CAAC,QAAQ,CAAC;IACxB,CAAC;AACH,CAAC"}
|
|
@@ -24,8 +24,10 @@
|
|
|
24
24
|
* A browser cannot set the switch, a grant for another port (another cockpit sharing this home)
|
|
25
25
|
* grants nothing here, and a non-loopback bind never takes it, because direct backend access would
|
|
26
26
|
* skip the deployment's authentication. `remoteSettingsAdmin` is the remote half, which the cockpit warns
|
|
27
|
-
* about. Browser sign-in
|
|
28
|
-
*
|
|
27
|
+
* about. Browser sign-in and agent account management (creating, editing, removing, showing host paths and
|
|
28
|
+
* CLI sign-in commands for named accounts) also require `settingsAdmin`, while listing and choosing existing
|
|
29
|
+
* accounts works on every remote cockpit with host paths omitted. Neither widens `localHandoff`: host
|
|
30
|
+
* application launches stay local-only.
|
|
29
31
|
*
|
|
30
32
|
* Usage presentation: token counts and monetary cost stay visible by default.
|
|
31
33
|
* `CEZ_HIDE_TOKEN_USAGE=1` and `CEZ_HIDE_COST=1` hide them independently;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"capabilities.js","sourceRoot":"","sources":["../../src/server/capabilities.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AACtE,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"capabilities.js","sourceRoot":"","sources":["../../src/server/capabilities.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AACtE,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAwC/D,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAEtD;;;0CAG0C;AAC1C,MAAM,WAAW,GAAG,4CAA4C,CAAC;AAEjE,kEAAkE;AAClE,MAAM,WAAW,GAAG,iBAAiB,CAAC;AAEtC;;;;;;YAMY;AACZ,SAAS,UAAU,CAAC,CAAS;IAC3B,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAC7B,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC;QAAE,OAAO,IAAI,CAAC;IACnC,IAAI,MAAgB,CAAC;IACrB,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACxB,MAAM,IAAI,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;QACnD,MAAM,IAAI,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;QACnD,IAAI,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,GAAG,CAAC;YAAE,OAAO,IAAI,CAAC;QAC/C,MAAM,GAAG,CAAC,GAAG,IAAI,EAAE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AAC;IACnE,MAAM,iBAAiB,GAAG,CAAC,YAAY,IAAI,UAAU,CAAC,kBAAkB,EAAE,GAAG,CAAC,KAAK,GAAG,CAAC;IACvF,MAAM,WAAW,GAAG,CAAC,YAAY,IAAI,UAAU,CAAC,WAAW,EAAE,GAAG,CAAC,KAAK,GAAG,CAAC;IAC1E,OAAO;QACL,YAAY;QACZ,aAAa,EAAE,YAAY,IAAI,mBAAmB;QAClD,mBAAmB;QACnB,WAAW,EAAE,kBAAkB,CAAC,GAAG,CAAC;QACpC,OAAO,EAAE,UAAU,CAAC,SAAS,EAAE,GAAG,CAAC,KAAK,GAAG;QAC3C,YAAY,EAAE,iBAAiB,IAAI,WAAW;QAC9C,iBAAiB;QACjB,WAAW;KACZ,CAAC;AACJ,CAAC"}
|
|
@@ -1,18 +1,12 @@
|
|
|
1
1
|
import type { RunnerModelCatalog } from '../core/runner-model-catalog.ts';
|
|
2
2
|
import type { ResolvedAgentProfile } from '../workspace/agent-profiles.ts';
|
|
3
3
|
export declare function createModelsRoutes(options: {
|
|
4
|
-
capabilities(): {
|
|
5
|
-
localHandoff: boolean;
|
|
6
|
-
};
|
|
7
4
|
resolveWorkspaceProfile(provider: string, profileId?: string): Promise<{
|
|
8
5
|
profile: ResolvedAgentProfile;
|
|
9
6
|
} | {
|
|
10
7
|
error: string;
|
|
11
8
|
}>;
|
|
12
9
|
modelCatalog: RunnerModelCatalog;
|
|
13
|
-
hostedProfileRefusal: {
|
|
14
|
-
error: string;
|
|
15
|
-
};
|
|
16
10
|
}): import("hono/hono-base").HonoBase<import("hono/types").BlankEnv, {
|
|
17
11
|
"/models": {
|
|
18
12
|
$get: {
|
|
@@ -49,18 +43,6 @@ export declare function createModelsRoutes(options: {
|
|
|
49
43
|
profileId?: string | undefined;
|
|
50
44
|
};
|
|
51
45
|
};
|
|
52
|
-
} | {
|
|
53
|
-
output: {
|
|
54
|
-
error: string;
|
|
55
|
-
};
|
|
56
|
-
outputFormat: "json";
|
|
57
|
-
status: 409;
|
|
58
|
-
input: {
|
|
59
|
-
query: {
|
|
60
|
-
runner: string | string[];
|
|
61
|
-
profileId?: string | undefined;
|
|
62
|
-
};
|
|
63
|
-
};
|
|
64
46
|
} | {
|
|
65
47
|
output: {
|
|
66
48
|
error: string;
|
|
@@ -4,7 +4,7 @@ import { DEFAULT_AGENT_ACCOUNT_ID } from '../contract/index.js';
|
|
|
4
4
|
import { knownRunnerIds, registeredRunnerId } from '../core/runner-registry.js';
|
|
5
5
|
import { queryZodValidator } from './validators.js';
|
|
6
6
|
export function createModelsRoutes(options) {
|
|
7
|
-
const {
|
|
7
|
+
const { resolveWorkspaceProfile, modelCatalog } = options;
|
|
8
8
|
return new Hono()
|
|
9
9
|
// `modelDiscoveryRunnerSchema` is the contract's own list of the runners with an
|
|
10
10
|
// authoritative host-local catalog (hearsay-tools/cezarion#794), so the client compiles against exactly what this
|
|
@@ -15,8 +15,6 @@ export function createModelsRoutes(options) {
|
|
|
15
15
|
if (query.data.profileId === undefined || query.data.profileId === DEFAULT_AGENT_ACCOUNT_ID) {
|
|
16
16
|
return c.json(await modelCatalog.get(runner));
|
|
17
17
|
}
|
|
18
|
-
if (!capabilities().localHandoff)
|
|
19
|
-
return c.json(hostedProfileRefusal, 409);
|
|
20
18
|
const resolved = await resolveWorkspaceProfile(runner, query.data.profileId);
|
|
21
19
|
if ('error' in resolved)
|
|
22
20
|
return c.json({ error: resolved.error }, 400);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models-routes.js","sourceRoot":"","sources":["../../src/server/models-routes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,EAAE,yBAAyB,EAAE,MAAM,6CAA6C,CAAC;AACxF,OAAO,EAAE,wBAAwB,EAAE,MAAM,6CAA6C,CAAC;AACvF,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAGhF,OAAO,EAAE,iBAAiB,E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