@hearsay-tools/squawk 0.18.0-dev.6454 → 0.18.0-dev.6468
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/contract/events.d.ts +4 -4
- package/dist/contract/health.d.ts +2 -3
- package/dist/contract/index.js +1 -1
- package/dist/contract/workspace.d.ts +1 -1
- package/dist/home/identity.d.ts +0 -2
- package/dist/home/identity.js +2 -2
- package/dist/home/identity.js.map +1 -1
- package/dist/server/forge/github-merge-state.d.ts +1 -1
- package/dist/server/forge/github-merge-state.js +4 -9
- package/dist/server/forge/github-merge-state.js.map +1 -1
- package/dist/server/forge/github.d.ts +1 -2
- package/dist/server/forge/github.js +3 -4
- package/dist/server/forge/github.js.map +1 -1
- package/dist/server/forge/types.d.ts +2 -2
- package/dist/server/git-changes.d.ts +1 -1
- package/dist/server/run-checkout.js +2 -2
- package/dist/server/run-checkout.js.map +1 -1
- package/dist/server/server.js +11 -13
- package/dist/server/server.js.map +1 -1
- package/dist/server/validators.js +1 -1
- package/dist/server-install/types.d.ts +3 -3
- package/dist/server-install/types.js +3 -3
- package/dist/ui-state.d.ts +3 -3
- package/dist/ui-state.js +3 -3
- package/dist/voice/routes.d.ts +19 -19
- package/dist/workspace/ui-state.js +1 -1
- package/dist/workspace/ui-state.js.map +1 -1
- package/package.json +4 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { validator } from 'hono/validator';
|
|
2
2
|
/**
|
|
3
|
-
* `{ error }`, the one 400 shape this API answers
|
|
3
|
+
* `{ error }`, the one 400 shape this API answers.
|
|
4
4
|
*
|
|
5
5
|
* Each issue is prefixed with the field path, because zod's own message never names the field:
|
|
6
6
|
* `"Invalid input: expected array, received undefined"` on its own does not tell the cockpit user
|
|
@@ -76,9 +76,9 @@ export declare const stepOutcomeSchema: z.ZodObject<{
|
|
|
76
76
|
}, z.core.$strip>;
|
|
77
77
|
export type StepOutcome = z.infer<typeof stepOutcomeSchema>;
|
|
78
78
|
/**
|
|
79
|
-
* `~/.cezar/server.json` — host-level, install-once.
|
|
80
|
-
*
|
|
81
|
-
* (
|
|
79
|
+
* `~/.cezar/server.json` — host-level, install-once. Every new field is
|
|
80
|
+
* optional / defaulted, so a newer Squawk opens a file an older one wrote
|
|
81
|
+
* (AGENTS.md, Changing what already works). No secrets live here.
|
|
82
82
|
*/
|
|
83
83
|
export declare const serverStateSchema: z.ZodObject<{
|
|
84
84
|
schema: z.ZodCatch<z.ZodLiteral<1>>;
|
|
@@ -45,9 +45,9 @@ export const stepOutcomeSchema = z.object({
|
|
|
45
45
|
created: stepCreatedSchema.optional().catch(null),
|
|
46
46
|
});
|
|
47
47
|
/**
|
|
48
|
-
* `~/.cezar/server.json` — host-level, install-once.
|
|
49
|
-
*
|
|
50
|
-
* (
|
|
48
|
+
* `~/.cezar/server.json` — host-level, install-once. Every new field is
|
|
49
|
+
* optional / defaulted, so a newer Squawk opens a file an older one wrote
|
|
50
|
+
* (AGENTS.md, Changing what already works). No secrets live here.
|
|
51
51
|
*/
|
|
52
52
|
export const serverStateSchema = z
|
|
53
53
|
.object({
|
package/dist/ui-state.d.ts
CHANGED
|
@@ -16,12 +16,12 @@ export declare function uiStatePath(repoRoot: string): string;
|
|
|
16
16
|
* Typed by the CONTRACT (`UiState`), not by a loose record: `GET /api/v1/ui-state` answers this
|
|
17
17
|
* value verbatim, so a `Record<string, unknown>` here made the route name no key at all and the
|
|
18
18
|
* per-route parity guard vacuous — the same defect `healthSnapshot` had. `UiState` is a
|
|
19
|
-
* `z.looseObject`, so the index signature (and with it the round-trip
|
|
20
|
-
*
|
|
19
|
+
* `z.looseObject`, so the index signature (and with it the round-trip of
|
|
20
|
+
* unknown keys) survives; what it adds is the NAMES of the keys the server knows.
|
|
21
21
|
*
|
|
22
22
|
* Only sidebarLimits is normalized field by field through its contract schema. Unrelated
|
|
23
23
|
* preferences retain their existing open-bag behavior. The file is user-editable JSON and is
|
|
24
|
-
* deliberately NOT parsed through the whole schema, because a single malformed pref must not discard the whole bag
|
|
24
|
+
* deliberately NOT parsed through the whole schema, because a single malformed pref must not discard the whole bag. What
|
|
25
25
|
* the type asserts is the wire shape the route promises; the write side (`PUT /ui-state`, validated
|
|
26
26
|
* by `uiStateBody`) is what actually enforces it.
|
|
27
27
|
*/
|
package/dist/ui-state.js
CHANGED
|
@@ -24,12 +24,12 @@ export function uiStatePath(repoRoot) {
|
|
|
24
24
|
* Typed by the CONTRACT (`UiState`), not by a loose record: `GET /api/v1/ui-state` answers this
|
|
25
25
|
* value verbatim, so a `Record<string, unknown>` here made the route name no key at all and the
|
|
26
26
|
* per-route parity guard vacuous — the same defect `healthSnapshot` had. `UiState` is a
|
|
27
|
-
* `z.looseObject`, so the index signature (and with it the round-trip
|
|
28
|
-
*
|
|
27
|
+
* `z.looseObject`, so the index signature (and with it the round-trip of
|
|
28
|
+
* unknown keys) survives; what it adds is the NAMES of the keys the server knows.
|
|
29
29
|
*
|
|
30
30
|
* Only sidebarLimits is normalized field by field through its contract schema. Unrelated
|
|
31
31
|
* preferences retain their existing open-bag behavior. The file is user-editable JSON and is
|
|
32
|
-
* deliberately NOT parsed through the whole schema, because a single malformed pref must not discard the whole bag
|
|
32
|
+
* deliberately NOT parsed through the whole schema, because a single malformed pref must not discard the whole bag. What
|
|
33
33
|
* the type asserts is the wire shape the route promises; the write side (`PUT /ui-state`, validated
|
|
34
34
|
* by `uiStateBody`) is what actually enforces it.
|
|
35
35
|
*/
|
package/dist/voice/routes.d.ts
CHANGED
|
@@ -18,6 +18,25 @@ export interface VoiceRouteDeps {
|
|
|
18
18
|
export declare function createVoiceRoutes(deps: VoiceRouteDeps): import("hono/hono-base").HonoBase<ProjectApiEnv, {
|
|
19
19
|
"/voice/decide": {
|
|
20
20
|
$post: {
|
|
21
|
+
output: {
|
|
22
|
+
error: string;
|
|
23
|
+
};
|
|
24
|
+
outputFormat: "json";
|
|
25
|
+
status: 503;
|
|
26
|
+
input: {
|
|
27
|
+
json: {
|
|
28
|
+
text: string;
|
|
29
|
+
sidebarView: "active" | "automations";
|
|
30
|
+
openRunId?: string | undefined;
|
|
31
|
+
view?: "automations" | "git" | "github" | "inbox" | "new-task" | "other" | "settings" | "task" | undefined;
|
|
32
|
+
askRequestId?: string | null | undefined;
|
|
33
|
+
proposal?: {
|
|
34
|
+
decisionId: string;
|
|
35
|
+
action: "answer" | "tell";
|
|
36
|
+
} | undefined;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
} | {
|
|
21
40
|
output: {
|
|
22
41
|
action: "open";
|
|
23
42
|
decisionId: string;
|
|
@@ -75,25 +94,6 @@ export declare function createVoiceRoutes(deps: VoiceRouteDeps): import("hono/ho
|
|
|
75
94
|
} | undefined;
|
|
76
95
|
};
|
|
77
96
|
};
|
|
78
|
-
} | {
|
|
79
|
-
output: {
|
|
80
|
-
error: string;
|
|
81
|
-
};
|
|
82
|
-
outputFormat: "json";
|
|
83
|
-
status: 503;
|
|
84
|
-
input: {
|
|
85
|
-
json: {
|
|
86
|
-
text: string;
|
|
87
|
-
sidebarView: "active" | "automations";
|
|
88
|
-
openRunId?: string | undefined;
|
|
89
|
-
view?: "automations" | "git" | "github" | "inbox" | "new-task" | "other" | "settings" | "task" | undefined;
|
|
90
|
-
askRequestId?: string | null | undefined;
|
|
91
|
-
proposal?: {
|
|
92
|
-
decisionId: string;
|
|
93
|
-
action: "answer" | "tell";
|
|
94
|
-
} | undefined;
|
|
95
|
-
};
|
|
96
|
-
};
|
|
97
97
|
};
|
|
98
98
|
};
|
|
99
99
|
} & {
|
|
@@ -18,7 +18,7 @@ import { HomeStore, readHomeFile } from '../home/store.js';
|
|
|
18
18
|
* Typed by the CONTRACT (`WorkspaceUiState`) for the same reason as its per-repo twin in
|
|
19
19
|
* `src/ui-state.ts`: `GET /api/v1/workspace/ui-state` answers this value verbatim, so a loose
|
|
20
20
|
* record left the route naming no key. The schema is a `z.looseObject`, so unknown prefs keep
|
|
21
|
-
* round-tripping
|
|
21
|
+
* round-tripping — the type only adds the known names. */
|
|
22
22
|
function readWorkspaceUiStateSync(path, home) {
|
|
23
23
|
try {
|
|
24
24
|
const parsed = JSON.parse(readHomeFile(path, home));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui-state.js","sourceRoot":"","sources":["../../src/workspace/ui-state.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAG3D;;;;;;;;;;;;GAYG;AAEH;;;;;;
|
|
1
|
+
{"version":3,"file":"ui-state.js","sourceRoot":"","sources":["../../src/workspace/ui-state.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAG3D;;;;;;;;;;;;GAYG;AAEH;;;;;;2DAM2D;AAC3D,SAAS,wBAAwB,CAAC,IAAY,EAAE,IAAW;IACzD,IAAI,CAAC;QACH,MAAM,MAAM,GAAY,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC;QAC7D,OAAO,MAAM,KAAK,IAAI,IAAI,OAAO,MAAM,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC;YAC5E,CAAC,CAAE,MAA2B;YAC9B,CAAC,CAAC,EAAE,CAAC;IACT,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,EAAE,CAAC;IACZ,CAAC;AACH,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,oBAAoB,CAAC,IAAY,EAAE,IAAW;IAClE,OAAO,wBAAwB,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;AAC9C,CAAC;AAED;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,KAAK,UAAU,0BAA0B,CAC9C,OAA6D,EAC7D,IAAU;IAEV,MAAM,KAAK,GAAG,IAAI,SAAS,CAAC,IAAI,CAAC,CAAC;IAClC,OAAO,KAAK,CAAC,WAAW,CAAC,GAAG,EAAE;QAC5B,MAAM,IAAI,GAAG,IAAI,CAAC,gBAAgB,CAAC;QACnC,MAAM,OAAO,GAAG,wBAAwB,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QACrD,MAAM,IAAI,GAAG,OAAO,CAAC,OAAO,CAAC,IAAI,OAAO,CAAC;QACzC,KAAK,CAAC,SAAS,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QAC5B,OAAO,IAAI,CAAC;IACd,CAAC,EAAE,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC,CAAC;AAC9B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hearsay-tools/squawk",
|
|
3
|
-
"version": "0.18.0-dev.
|
|
3
|
+
"version": "0.18.0-dev.6468",
|
|
4
4
|
"description": "Local cockpit for running and tracking AI agent tasks in your repo. Uses your logged-in `claude` CLI and `gh` — zero config, zero database.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -60,8 +60,8 @@
|
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@babel/parser": "^8.0.8",
|
|
62
62
|
"@babel/types": "^8.0.8",
|
|
63
|
-
"@open-mercato/cezar-api-client": "0.18.0-dev.
|
|
64
|
-
"@open-mercato/cezar-contract": "0.18.0-dev.
|
|
63
|
+
"@open-mercato/cezar-api-client": "0.18.0-dev.6468",
|
|
64
|
+
"@open-mercato/cezar-contract": "0.18.0-dev.6468",
|
|
65
65
|
"@types/node": "^24.19.1",
|
|
66
66
|
"@types/ws": "^8.18.1",
|
|
67
67
|
"esbuild": "^0.28.1",
|
|
@@ -78,5 +78,5 @@
|
|
|
78
78
|
"publishConfig": {
|
|
79
79
|
"access": "public"
|
|
80
80
|
},
|
|
81
|
-
"gitHead": "
|
|
81
|
+
"gitHead": "47cb377ed833d60a3b0472f2fa80637b226e6938"
|
|
82
82
|
}
|