@hearsay-tools/squawk 0.18.0-pr3435.6000.2 → 0.18.0-pr3440.6026
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/planner.d.ts +8 -1
- package/dist/planner.js +63 -2
- package/dist/planner.js.map +1 -1
- package/dist/runs/auto-name.js +1 -1
- package/dist/runs/auto-name.js.map +1 -1
- package/dist/server/server.d.ts +194 -194
- package/package.json +4 -4
- package/web/dist/assets/{activity-motion-Bqd8S9Xy.js → activity-motion-Cbt93CYV.js} +1 -1
- package/web/dist/assets/activity-route-CT0QBJ9J.js +1 -0
- package/web/dist/assets/agent-accounts-ZwY6galR.js +18 -0
- package/web/dist/assets/commit-diff-panel-D6OTyblD.js +1 -0
- package/web/dist/assets/diff-DLHEZ0vc.js +3 -0
- package/web/dist/assets/{diff-view-B9kgeZTm.js → diff-view-B1i4Y0bd.js} +4 -4
- package/web/dist/assets/file-preview-BNWrqHUF.js +2 -0
- package/web/dist/assets/git-toolbar-DqLzQj0-.js +1 -0
- package/web/dist/assets/github-Na_TWZ_F.js +1 -0
- package/web/dist/assets/global-activity-route-DMbLmH6O.js +1 -0
- package/web/dist/assets/index-r0gk0S6i.js +17 -0
- package/web/dist/assets/preview-pane-connected-ij2M4eoI.js +3 -0
- package/web/dist/assets/prompt-template-menu-CRTwhki9.js +1 -0
- package/web/dist/assets/reference-chip-bNHpXEZ5.js +1 -0
- package/web/dist/assets/repo-git-Dp19NJSe.js +1 -0
- package/web/dist/assets/report-reader-DMIrYM49.js +1 -0
- package/web/dist/assets/reports-B2_wezRV.js +1 -0
- package/web/dist/assets/run-header-BRkSMfl0.js +2 -0
- package/web/dist/assets/skills-CLh9swZW.js +1 -0
- package/web/dist/assets/{task-changes-XAcKfebn.js → task-changes-VZXvKOhe.js} +1 -1
- package/web/dist/assets/task-commits-vyETnlsS.js +1 -0
- package/web/dist/assets/task-files-Cl9F-li-.js +1 -0
- package/web/dist/assets/task-github-item-B03Q3EET.js +1 -0
- package/web/dist/assets/{task-thread-DyR8HsDz.js → task-thread-CDt6ImyA.js} +7 -7
- package/web/dist/assets/{thread-state-BtmIMbkZ.js → thread-state-DsszrdIB.js} +1 -1
- package/web/dist/assets/use-hand-to-agent-state-U3QBZBWj.js +1 -0
- package/web/dist/assets/workflows-B0s8ZsHJ.js +7 -0
- package/web/dist/index.html +5 -5
- package/dist/core/structured-output.d.ts +0 -9
- package/dist/core/structured-output.js +0 -64
- package/dist/core/structured-output.js.map +0 -1
- package/web/dist/assets/activity-route-DQI_8J09.js +0 -1
- package/web/dist/assets/agent-accounts-C6eyz75V.js +0 -18
- package/web/dist/assets/commit-diff-panel-C7BUSPzE.js +0 -1
- package/web/dist/assets/control-locations-DlrUP5vD.js +0 -1
- package/web/dist/assets/diff-Bwy0qFul.js +0 -3
- package/web/dist/assets/file-preview-DrXgM1-S.js +0 -2
- package/web/dist/assets/git-toolbar-B1gOn_1U.js +0 -1
- package/web/dist/assets/github-g-ZOTwHQ.js +0 -1
- package/web/dist/assets/github-sidebar-model-BdoLA7qT.js +0 -1
- package/web/dist/assets/global-activity-route-CZ_xwiz3.js +0 -1
- package/web/dist/assets/index-75IttVLX.js +0 -17
- package/web/dist/assets/preview-pane-connected-Cx8q-Yrh.js +0 -3
- package/web/dist/assets/repo-git-DgZuI4FP.js +0 -1
- package/web/dist/assets/report-reader-CeBtx_Sf.js +0 -1
- package/web/dist/assets/reports-CRPxIRMM.js +0 -1
- package/web/dist/assets/run-header-C8Eeonkx.js +0 -2
- package/web/dist/assets/skills-DDoJCcmD.js +0 -1
- package/web/dist/assets/task-commits-D5V0Q0au.js +0 -1
- package/web/dist/assets/task-files-CkPJZE0w.js +0 -1
- package/web/dist/assets/task-github-item-CbCOKkvp.js +0 -1
- package/web/dist/assets/use-hand-to-agent-state-BUpbMYM9.js +0 -1
- package/web/dist/assets/workflows-CEFtJj_h.js +0 -7
package/dist/planner.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { Home } from './home/home.ts';
|
|
2
|
+
import { z } from 'zod';
|
|
2
3
|
import type { RunnerFactory } from './core/agent-runner.ts';
|
|
3
4
|
import { type Skill } from './skills.ts';
|
|
4
5
|
import { type WorkflowStepDef } from './workflows/types.ts';
|
|
5
|
-
export { parseStructured, extractJsonObjectCandidates } from './core/structured-output.ts';
|
|
6
6
|
export interface PlanResult {
|
|
7
7
|
/** The proposed workflow title (kebab-case slug), when the planner named one. The auto chain
|
|
8
8
|
* creator pre-fills the builder's name field with it. Absent on the degraded fallback. */
|
|
@@ -21,3 +21,10 @@ export declare function slugify(name: string): string;
|
|
|
21
21
|
* name instead of blanking it.
|
|
22
22
|
*/
|
|
23
23
|
export declare function proposeWorkflowName(raw: string | undefined): string | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* Best-effort structured-output extraction (trimmed from @cezar/core's
|
|
26
|
+
* `parseStructured`): try the whole string after stripping a ```json fence,
|
|
27
|
+
* then scan for balanced top-level `{...}` blocks and return the first that
|
|
28
|
+
* validates. Null when nothing does — the caller decides how to recover.
|
|
29
|
+
*/
|
|
30
|
+
export declare function parseStructured<T>(raw: string, schema: z.ZodType<T, unknown>): T | null;
|
package/dist/planner.js
CHANGED
|
@@ -5,8 +5,6 @@ import { loadConfig } from './config.js';
|
|
|
5
5
|
import { discoverSkills } from './skills.js';
|
|
6
6
|
import { resolveProfileEnvForRoot } from './workspace/agent-profiles.js';
|
|
7
7
|
import { workflowStepSchema } from './workflows/types.js';
|
|
8
|
-
import { parseStructured } from './core/structured-output.js';
|
|
9
|
-
export { parseStructured, extractJsonObjectCandidates } from './core/structured-output.js';
|
|
10
8
|
/**
|
|
11
9
|
* Chain-from-prompt (spec 008): one cheap `claude` call turns the user's task
|
|
12
10
|
* into a proposed chain of workflow steps built from the skills at hand plus a
|
|
@@ -206,4 +204,67 @@ function uniqueId(base, used) {
|
|
|
206
204
|
return id;
|
|
207
205
|
}
|
|
208
206
|
}
|
|
207
|
+
/**
|
|
208
|
+
* Best-effort structured-output extraction (trimmed from @cezar/core's
|
|
209
|
+
* `parseStructured`): try the whole string after stripping a ```json fence,
|
|
210
|
+
* then scan for balanced top-level `{...}` blocks and return the first that
|
|
211
|
+
* validates. Null when nothing does — the caller decides how to recover.
|
|
212
|
+
*/
|
|
213
|
+
export function parseStructured(raw, schema) {
|
|
214
|
+
const cleaned = raw
|
|
215
|
+
.replace(/^```(?:json|javascript|js|jsonl)?\s*\n?/im, '')
|
|
216
|
+
.replace(/\n?```\s*$/m, '')
|
|
217
|
+
.trim();
|
|
218
|
+
try {
|
|
219
|
+
return schema.parse(JSON.parse(cleaned));
|
|
220
|
+
}
|
|
221
|
+
catch {
|
|
222
|
+
for (const candidate of extractJsonObjectCandidates(raw)) {
|
|
223
|
+
try {
|
|
224
|
+
return schema.parse(JSON.parse(candidate));
|
|
225
|
+
}
|
|
226
|
+
catch {
|
|
227
|
+
continue;
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
return null;
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
function extractJsonObjectCandidates(raw) {
|
|
234
|
+
const candidates = [];
|
|
235
|
+
let start = -1;
|
|
236
|
+
let depth = 0;
|
|
237
|
+
let inString = false;
|
|
238
|
+
let escaped = false;
|
|
239
|
+
for (let i = 0; i < raw.length; i++) {
|
|
240
|
+
const ch = raw[i];
|
|
241
|
+
if (inString) {
|
|
242
|
+
if (escaped)
|
|
243
|
+
escaped = false;
|
|
244
|
+
else if (ch === '\\')
|
|
245
|
+
escaped = true;
|
|
246
|
+
else if (ch === '"')
|
|
247
|
+
inString = false;
|
|
248
|
+
continue;
|
|
249
|
+
}
|
|
250
|
+
if (ch === '"') {
|
|
251
|
+
inString = true;
|
|
252
|
+
}
|
|
253
|
+
else if (ch === '{') {
|
|
254
|
+
if (depth === 0)
|
|
255
|
+
start = i;
|
|
256
|
+
depth++;
|
|
257
|
+
}
|
|
258
|
+
else if (ch === '}') {
|
|
259
|
+
if (depth === 0)
|
|
260
|
+
continue;
|
|
261
|
+
depth--;
|
|
262
|
+
if (depth === 0 && start >= 0) {
|
|
263
|
+
candidates.push(raw.slice(start, i + 1));
|
|
264
|
+
start = -1;
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
return candidates;
|
|
269
|
+
}
|
|
209
270
|
//# sourceMappingURL=planner.js.map
|
package/dist/planner.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"planner.js","sourceRoot":"","sources":["../src/planner.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,cAAc,EAAc,MAAM,aAAa,CAAC;AACzD,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,kBAAkB,EAAwB,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"planner.js","sourceRoot":"","sources":["../src/planner.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,cAAc,EAAc,MAAM,aAAa,CAAC;AACzD,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,kBAAkB,EAAwB,MAAM,sBAAsB,CAAC;AAEhF;;;;;;GAMG;AAEH,MAAM,kBAAkB,GAAG,MAAM,CAAC;AAElC,MAAM,qBAAqB,GACzB,gGAAgG;IAChG,oHAAoH;I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C,CAAC,CAAC;QAClB,IAAI,QAAQ,EAAE,CAAC;YACb,IAAI,OAAO;gBAAE,OAAO,GAAG,KAAK,CAAC;iBACxB,IAAI,EAAE,KAAK,IAAI;gBAAE,OAAO,GAAG,IAAI,CAAC;iBAChC,IAAI,EAAE,KAAK,GAAG;gBAAE,QAAQ,GAAG,KAAK,CAAC;YACtC,SAAS;QACX,CAAC;QACD,IAAI,EAAE,KAAK,GAAG,EAAE,CAAC;YACf,QAAQ,GAAG,IAAI,CAAC;QAClB,CAAC;aAAM,IAAI,EAAE,KAAK,GAAG,EAAE,CAAC;YACtB,IAAI,KAAK,KAAK,CAAC;gBAAE,KAAK,GAAG,CAAC,CAAC;YAC3B,KAAK,EAAE,CAAC;QACV,CAAC;aAAM,IAAI,EAAE,KAAK,GAAG,EAAE,CAAC;YACtB,IAAI,KAAK,KAAK,CAAC;gBAAE,SAAS;YAC1B,KAAK,EAAE,CAAC;YACR,IAAI,KAAK,KAAK,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE,CAAC;gBAC9B,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;gBACzC,KAAK,GAAG,CAAC,CAAC,CAAC;YACb,CAAC;QACH,CAAC;IACH,CAAC;IACD,OAAO,UAAU,CAAC;AACpB,CAAC"}
|
package/dist/runs/auto-name.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { productEnv } from '../core/product-env.js';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
import { loadConfig } from '../config.js';
|
|
4
|
-
import { parseStructured } from '../
|
|
4
|
+
import { parseStructured } from '../planner.js';
|
|
5
5
|
import { resolveProfileEnvForRoot } from '../workspace/agent-profiles.js';
|
|
6
6
|
import { extractTaskRefs, refineTaskRefs, titleRefNumber } from './task-refs.js';
|
|
7
7
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auto-name.js","sourceRoot":"","sources":["../../src/runs/auto-name.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEpD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,OAAO,EAAE,eAAe,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"auto-name.js","sourceRoot":"","sources":["../../src/runs/auto-name.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEpD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AAC1E,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,cAAc,EAAiB,MAAM,gBAAgB,CAAC;AAEhG;;;;;;;GAOG;AAEH,MAAM,CAAC,MAAM,gBAAgB,GAAG,MAAM,CAAC;AAEvC,4FAA4F;AAC5F,MAAM,CAAC,MAAM,SAAS,GAAG,EAAE,CAAC;AAE5B;;;;;;GAMG;AACH,MAAM,UAAU,gBAAgB,CAAC,GAAG,GAAsB,OAAO,CAAC,GAAG;IACnE,IAAI,UAAU,CAAC,UAAU,EAAE,GAAG,CAAC,KAAK,GAAG;QAAE,OAAO,KAAK,CAAC;IACtD,IAAI,UAAU,CAAC,SAAS,EAAE,GAAG,CAAC,KAAK,GAAG,IAAI,UAAU,CAAC,UAAU,EAAE,GAAG,CAAC,KAAK,GAAG;QAAE,OAAO,KAAK,CAAC;IAC5F,OAAO,IAAI,CAAC;AACd,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,uBAAuB,CACrC,MAAkD,EAClD,GAAG,GAAsB,OAAO,CAAC,GAAG;IAEpC,IAAI,MAA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SAAS,CAAC,CAAC;IACtE,MAAM,OAAO,GAAG,cAAc,CAAC,MAAM,EAAE,GAAG,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IACvD,MAAM,SAAS,GAAG,OAAO,CAAC,QAAQ,IAAI,OAAO,CAAC,WAAW,IAAI,cAAc,CAAC,IAAI,CAAC,CAAC;IAClF,MAAM,YAAY,GAAG,iBAAiB,CAAC,MAAM,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC;IAChE,IAAI,CAAC,YAAY,IAAI,YAAY,KAAK,MAAM,CAAC,SAAS,IAAI,EAAE,CAAC;QAAE,OAAO,IAAI,CAAC;IAC3E,OAAO,EAAE,YAAY,EAAE,GAAG,OAAO,EAAE,CAAC;AACtC,CAAC"}
|
package/dist/server/server.d.ts
CHANGED
|
@@ -3303,103 +3303,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
3303
3303
|
};
|
|
3304
3304
|
};
|
|
3305
3305
|
};
|
|
3306
|
-
}, "/"> | import("hono/types").MergeSchemaPath<{
|
|
3307
|
-
"/voice/decide": {
|
|
3308
|
-
$post: {
|
|
3309
|
-
output: {
|
|
3310
|
-
error: string;
|
|
3311
|
-
};
|
|
3312
|
-
outputFormat: "json";
|
|
3313
|
-
status: 503;
|
|
3314
|
-
input: {
|
|
3315
|
-
json: {
|
|
3316
|
-
text: string;
|
|
3317
|
-
sidebarView: "active" | "automations";
|
|
3318
|
-
openRunId?: string | undefined;
|
|
3319
|
-
view?: "automations" | "git" | "github" | "inbox" | "new-task" | "other" | "settings" | "task" | undefined;
|
|
3320
|
-
askRequestId?: string | null | undefined;
|
|
3321
|
-
proposal?: {
|
|
3322
|
-
decisionId: string;
|
|
3323
|
-
action: "answer" | "tell";
|
|
3324
|
-
} | undefined;
|
|
3325
|
-
};
|
|
3326
|
-
};
|
|
3327
|
-
} | {
|
|
3328
|
-
output: {
|
|
3329
|
-
action: "open";
|
|
3330
|
-
decisionId: string;
|
|
3331
|
-
status: "archived" | "cancelled" | "done" | "failed" | "finished" | "monitoring" | "needs-permission" | "needs-review" | "needs-you" | "queued" | "running" | "scheduled" | "unread" | "waiting-for-capacity" | "waiting-for-ci" | "waiting-on-workers" | "working";
|
|
3332
|
-
position: number | "last" | "next" | "previous";
|
|
3333
|
-
confidence: number;
|
|
3334
|
-
alternatives?: {
|
|
3335
|
-
status: "archived" | "cancelled" | "done" | "failed" | "finished" | "monitoring" | "needs-permission" | "needs-review" | "needs-you" | "queued" | "running" | "scheduled" | "unread" | "waiting-for-capacity" | "waiting-for-ci" | "waiting-on-workers" | "working";
|
|
3336
|
-
position: number | "last" | "next" | "previous";
|
|
3337
|
-
}[] | undefined;
|
|
3338
|
-
} | {
|
|
3339
|
-
action: "answer";
|
|
3340
|
-
decisionId: string;
|
|
3341
|
-
runId: string;
|
|
3342
|
-
askRequestId: string;
|
|
3343
|
-
answers: ({
|
|
3344
|
-
question: number;
|
|
3345
|
-
kind: "option";
|
|
3346
|
-
labels: string[];
|
|
3347
|
-
} | {
|
|
3348
|
-
question: number;
|
|
3349
|
-
kind: "other";
|
|
3350
|
-
text: string;
|
|
3351
|
-
})[];
|
|
3352
|
-
confidence: number;
|
|
3353
|
-
} | {
|
|
3354
|
-
action: "tell";
|
|
3355
|
-
decisionId: string;
|
|
3356
|
-
runId: string;
|
|
3357
|
-
text: string;
|
|
3358
|
-
confidence: number;
|
|
3359
|
-
} | {
|
|
3360
|
-
action: "confirm";
|
|
3361
|
-
decisionId: string;
|
|
3362
|
-
} | {
|
|
3363
|
-
action: "cancel";
|
|
3364
|
-
decisionId: string;
|
|
3365
|
-
} | {
|
|
3366
|
-
action: "none";
|
|
3367
|
-
decisionId: string;
|
|
3368
|
-
reason: "ambiguous" | "no-open-question" | "no-open-task" | "not-a-command" | "stale-context" | "unclear" | "unsupported";
|
|
3369
|
-
};
|
|
3370
|
-
outputFormat: "json";
|
|
3371
|
-
status: 200;
|
|
3372
|
-
input: {
|
|
3373
|
-
json: {
|
|
3374
|
-
text: string;
|
|
3375
|
-
sidebarView: "active" | "automations";
|
|
3376
|
-
openRunId?: string | undefined;
|
|
3377
|
-
view?: "automations" | "git" | "github" | "inbox" | "new-task" | "other" | "settings" | "task" | undefined;
|
|
3378
|
-
askRequestId?: string | null | undefined;
|
|
3379
|
-
proposal?: {
|
|
3380
|
-
decisionId: string;
|
|
3381
|
-
action: "answer" | "tell";
|
|
3382
|
-
} | undefined;
|
|
3383
|
-
};
|
|
3384
|
-
};
|
|
3385
|
-
};
|
|
3386
|
-
};
|
|
3387
|
-
} & {
|
|
3388
|
-
"/voice/outcome": {
|
|
3389
|
-
$post: {
|
|
3390
|
-
output: {
|
|
3391
|
-
ok: true;
|
|
3392
|
-
};
|
|
3393
|
-
outputFormat: "json";
|
|
3394
|
-
status: 200;
|
|
3395
|
-
input: {
|
|
3396
|
-
json: {
|
|
3397
|
-
decisionId: string;
|
|
3398
|
-
outcome: "abandoned" | "cancelled" | "confirmed" | "executed" | "replaced";
|
|
3399
|
-
};
|
|
3400
|
-
};
|
|
3401
|
-
};
|
|
3402
|
-
};
|
|
3403
3306
|
}, "/"> | import("hono/types").MergeSchemaPath<{
|
|
3404
3307
|
"/ui-state": {
|
|
3405
3308
|
$get: {
|
|
@@ -3830,6 +3733,103 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
3830
3733
|
};
|
|
3831
3734
|
};
|
|
3832
3735
|
};
|
|
3736
|
+
}, "/"> | import("hono/types").MergeSchemaPath<{
|
|
3737
|
+
"/voice/decide": {
|
|
3738
|
+
$post: {
|
|
3739
|
+
output: {
|
|
3740
|
+
error: string;
|
|
3741
|
+
};
|
|
3742
|
+
outputFormat: "json";
|
|
3743
|
+
status: 503;
|
|
3744
|
+
input: {
|
|
3745
|
+
json: {
|
|
3746
|
+
text: string;
|
|
3747
|
+
sidebarView: "active" | "automations";
|
|
3748
|
+
openRunId?: string | undefined;
|
|
3749
|
+
view?: "automations" | "git" | "github" | "inbox" | "new-task" | "other" | "settings" | "task" | undefined;
|
|
3750
|
+
askRequestId?: string | null | undefined;
|
|
3751
|
+
proposal?: {
|
|
3752
|
+
decisionId: string;
|
|
3753
|
+
action: "answer" | "tell";
|
|
3754
|
+
} | undefined;
|
|
3755
|
+
};
|
|
3756
|
+
};
|
|
3757
|
+
} | {
|
|
3758
|
+
output: {
|
|
3759
|
+
action: "open";
|
|
3760
|
+
decisionId: string;
|
|
3761
|
+
status: "archived" | "cancelled" | "done" | "failed" | "finished" | "monitoring" | "needs-permission" | "needs-review" | "needs-you" | "queued" | "running" | "scheduled" | "unread" | "waiting-for-capacity" | "waiting-for-ci" | "waiting-on-workers" | "working";
|
|
3762
|
+
position: number | "last" | "next" | "previous";
|
|
3763
|
+
confidence: number;
|
|
3764
|
+
alternatives?: {
|
|
3765
|
+
status: "archived" | "cancelled" | "done" | "failed" | "finished" | "monitoring" | "needs-permission" | "needs-review" | "needs-you" | "queued" | "running" | "scheduled" | "unread" | "waiting-for-capacity" | "waiting-for-ci" | "waiting-on-workers" | "working";
|
|
3766
|
+
position: number | "last" | "next" | "previous";
|
|
3767
|
+
}[] | undefined;
|
|
3768
|
+
} | {
|
|
3769
|
+
action: "answer";
|
|
3770
|
+
decisionId: string;
|
|
3771
|
+
runId: string;
|
|
3772
|
+
askRequestId: string;
|
|
3773
|
+
answers: ({
|
|
3774
|
+
question: number;
|
|
3775
|
+
kind: "option";
|
|
3776
|
+
labels: string[];
|
|
3777
|
+
} | {
|
|
3778
|
+
question: number;
|
|
3779
|
+
kind: "other";
|
|
3780
|
+
text: string;
|
|
3781
|
+
})[];
|
|
3782
|
+
confidence: number;
|
|
3783
|
+
} | {
|
|
3784
|
+
action: "tell";
|
|
3785
|
+
decisionId: string;
|
|
3786
|
+
runId: string;
|
|
3787
|
+
text: string;
|
|
3788
|
+
confidence: number;
|
|
3789
|
+
} | {
|
|
3790
|
+
action: "confirm";
|
|
3791
|
+
decisionId: string;
|
|
3792
|
+
} | {
|
|
3793
|
+
action: "cancel";
|
|
3794
|
+
decisionId: string;
|
|
3795
|
+
} | {
|
|
3796
|
+
action: "none";
|
|
3797
|
+
decisionId: string;
|
|
3798
|
+
reason: "ambiguous" | "no-open-question" | "no-open-task" | "not-a-command" | "stale-context" | "unclear" | "unsupported";
|
|
3799
|
+
};
|
|
3800
|
+
outputFormat: "json";
|
|
3801
|
+
status: 200;
|
|
3802
|
+
input: {
|
|
3803
|
+
json: {
|
|
3804
|
+
text: string;
|
|
3805
|
+
sidebarView: "active" | "automations";
|
|
3806
|
+
openRunId?: string | undefined;
|
|
3807
|
+
view?: "automations" | "git" | "github" | "inbox" | "new-task" | "other" | "settings" | "task" | undefined;
|
|
3808
|
+
askRequestId?: string | null | undefined;
|
|
3809
|
+
proposal?: {
|
|
3810
|
+
decisionId: string;
|
|
3811
|
+
action: "answer" | "tell";
|
|
3812
|
+
} | undefined;
|
|
3813
|
+
};
|
|
3814
|
+
};
|
|
3815
|
+
};
|
|
3816
|
+
};
|
|
3817
|
+
} & {
|
|
3818
|
+
"/voice/outcome": {
|
|
3819
|
+
$post: {
|
|
3820
|
+
output: {
|
|
3821
|
+
ok: true;
|
|
3822
|
+
};
|
|
3823
|
+
outputFormat: "json";
|
|
3824
|
+
status: 200;
|
|
3825
|
+
input: {
|
|
3826
|
+
json: {
|
|
3827
|
+
decisionId: string;
|
|
3828
|
+
outcome: "abandoned" | "cancelled" | "confirmed" | "executed" | "replaced";
|
|
3829
|
+
};
|
|
3830
|
+
};
|
|
3831
|
+
};
|
|
3832
|
+
};
|
|
3833
3833
|
}, "/"> | import("hono/types").MergeSchemaPath<{
|
|
3834
3834
|
"/agent-webhooks": {
|
|
3835
3835
|
$get: {
|
|
@@ -19180,103 +19180,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
19180
19180
|
};
|
|
19181
19181
|
};
|
|
19182
19182
|
};
|
|
19183
|
-
}, "/"> | import("hono/types").MergeSchemaPath<{
|
|
19184
|
-
"/voice/decide": {
|
|
19185
|
-
$post: {
|
|
19186
|
-
output: {
|
|
19187
|
-
error: string;
|
|
19188
|
-
};
|
|
19189
|
-
outputFormat: "json";
|
|
19190
|
-
status: 503;
|
|
19191
|
-
input: {
|
|
19192
|
-
json: {
|
|
19193
|
-
text: string;
|
|
19194
|
-
sidebarView: "active" | "automations";
|
|
19195
|
-
openRunId?: string | undefined;
|
|
19196
|
-
view?: "automations" | "git" | "github" | "inbox" | "new-task" | "other" | "settings" | "task" | undefined;
|
|
19197
|
-
askRequestId?: string | null | undefined;
|
|
19198
|
-
proposal?: {
|
|
19199
|
-
decisionId: string;
|
|
19200
|
-
action: "answer" | "tell";
|
|
19201
|
-
} | undefined;
|
|
19202
|
-
};
|
|
19203
|
-
};
|
|
19204
|
-
} | {
|
|
19205
|
-
output: {
|
|
19206
|
-
action: "open";
|
|
19207
|
-
decisionId: string;
|
|
19208
|
-
status: "archived" | "cancelled" | "done" | "failed" | "finished" | "monitoring" | "needs-permission" | "needs-review" | "needs-you" | "queued" | "running" | "scheduled" | "unread" | "waiting-for-capacity" | "waiting-for-ci" | "waiting-on-workers" | "working";
|
|
19209
|
-
position: number | "last" | "next" | "previous";
|
|
19210
|
-
confidence: number;
|
|
19211
|
-
alternatives?: {
|
|
19212
|
-
status: "archived" | "cancelled" | "done" | "failed" | "finished" | "monitoring" | "needs-permission" | "needs-review" | "needs-you" | "queued" | "running" | "scheduled" | "unread" | "waiting-for-capacity" | "waiting-for-ci" | "waiting-on-workers" | "working";
|
|
19213
|
-
position: number | "last" | "next" | "previous";
|
|
19214
|
-
}[] | undefined;
|
|
19215
|
-
} | {
|
|
19216
|
-
action: "answer";
|
|
19217
|
-
decisionId: string;
|
|
19218
|
-
runId: string;
|
|
19219
|
-
askRequestId: string;
|
|
19220
|
-
answers: ({
|
|
19221
|
-
question: number;
|
|
19222
|
-
kind: "option";
|
|
19223
|
-
labels: string[];
|
|
19224
|
-
} | {
|
|
19225
|
-
question: number;
|
|
19226
|
-
kind: "other";
|
|
19227
|
-
text: string;
|
|
19228
|
-
})[];
|
|
19229
|
-
confidence: number;
|
|
19230
|
-
} | {
|
|
19231
|
-
action: "tell";
|
|
19232
|
-
decisionId: string;
|
|
19233
|
-
runId: string;
|
|
19234
|
-
text: string;
|
|
19235
|
-
confidence: number;
|
|
19236
|
-
} | {
|
|
19237
|
-
action: "confirm";
|
|
19238
|
-
decisionId: string;
|
|
19239
|
-
} | {
|
|
19240
|
-
action: "cancel";
|
|
19241
|
-
decisionId: string;
|
|
19242
|
-
} | {
|
|
19243
|
-
action: "none";
|
|
19244
|
-
decisionId: string;
|
|
19245
|
-
reason: "ambiguous" | "no-open-question" | "no-open-task" | "not-a-command" | "stale-context" | "unclear" | "unsupported";
|
|
19246
|
-
};
|
|
19247
|
-
outputFormat: "json";
|
|
19248
|
-
status: 200;
|
|
19249
|
-
input: {
|
|
19250
|
-
json: {
|
|
19251
|
-
text: string;
|
|
19252
|
-
sidebarView: "active" | "automations";
|
|
19253
|
-
openRunId?: string | undefined;
|
|
19254
|
-
view?: "automations" | "git" | "github" | "inbox" | "new-task" | "other" | "settings" | "task" | undefined;
|
|
19255
|
-
askRequestId?: string | null | undefined;
|
|
19256
|
-
proposal?: {
|
|
19257
|
-
decisionId: string;
|
|
19258
|
-
action: "answer" | "tell";
|
|
19259
|
-
} | undefined;
|
|
19260
|
-
};
|
|
19261
|
-
};
|
|
19262
|
-
};
|
|
19263
|
-
};
|
|
19264
|
-
} & {
|
|
19265
|
-
"/voice/outcome": {
|
|
19266
|
-
$post: {
|
|
19267
|
-
output: {
|
|
19268
|
-
ok: true;
|
|
19269
|
-
};
|
|
19270
|
-
outputFormat: "json";
|
|
19271
|
-
status: 200;
|
|
19272
|
-
input: {
|
|
19273
|
-
json: {
|
|
19274
|
-
decisionId: string;
|
|
19275
|
-
outcome: "abandoned" | "cancelled" | "confirmed" | "executed" | "replaced";
|
|
19276
|
-
};
|
|
19277
|
-
};
|
|
19278
|
-
};
|
|
19279
|
-
};
|
|
19280
19183
|
}, "/"> | import("hono/types").MergeSchemaPath<{
|
|
19281
19184
|
"/ui-state": {
|
|
19282
19185
|
$get: {
|
|
@@ -19707,6 +19610,103 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
19707
19610
|
};
|
|
19708
19611
|
};
|
|
19709
19612
|
};
|
|
19613
|
+
}, "/"> | import("hono/types").MergeSchemaPath<{
|
|
19614
|
+
"/voice/decide": {
|
|
19615
|
+
$post: {
|
|
19616
|
+
output: {
|
|
19617
|
+
error: string;
|
|
19618
|
+
};
|
|
19619
|
+
outputFormat: "json";
|
|
19620
|
+
status: 503;
|
|
19621
|
+
input: {
|
|
19622
|
+
json: {
|
|
19623
|
+
text: string;
|
|
19624
|
+
sidebarView: "active" | "automations";
|
|
19625
|
+
openRunId?: string | undefined;
|
|
19626
|
+
view?: "automations" | "git" | "github" | "inbox" | "new-task" | "other" | "settings" | "task" | undefined;
|
|
19627
|
+
askRequestId?: string | null | undefined;
|
|
19628
|
+
proposal?: {
|
|
19629
|
+
decisionId: string;
|
|
19630
|
+
action: "answer" | "tell";
|
|
19631
|
+
} | undefined;
|
|
19632
|
+
};
|
|
19633
|
+
};
|
|
19634
|
+
} | {
|
|
19635
|
+
output: {
|
|
19636
|
+
action: "open";
|
|
19637
|
+
decisionId: string;
|
|
19638
|
+
status: "archived" | "cancelled" | "done" | "failed" | "finished" | "monitoring" | "needs-permission" | "needs-review" | "needs-you" | "queued" | "running" | "scheduled" | "unread" | "waiting-for-capacity" | "waiting-for-ci" | "waiting-on-workers" | "working";
|
|
19639
|
+
position: number | "last" | "next" | "previous";
|
|
19640
|
+
confidence: number;
|
|
19641
|
+
alternatives?: {
|
|
19642
|
+
status: "archived" | "cancelled" | "done" | "failed" | "finished" | "monitoring" | "needs-permission" | "needs-review" | "needs-you" | "queued" | "running" | "scheduled" | "unread" | "waiting-for-capacity" | "waiting-for-ci" | "waiting-on-workers" | "working";
|
|
19643
|
+
position: number | "last" | "next" | "previous";
|
|
19644
|
+
}[] | undefined;
|
|
19645
|
+
} | {
|
|
19646
|
+
action: "answer";
|
|
19647
|
+
decisionId: string;
|
|
19648
|
+
runId: string;
|
|
19649
|
+
askRequestId: string;
|
|
19650
|
+
answers: ({
|
|
19651
|
+
question: number;
|
|
19652
|
+
kind: "option";
|
|
19653
|
+
labels: string[];
|
|
19654
|
+
} | {
|
|
19655
|
+
question: number;
|
|
19656
|
+
kind: "other";
|
|
19657
|
+
text: string;
|
|
19658
|
+
})[];
|
|
19659
|
+
confidence: number;
|
|
19660
|
+
} | {
|
|
19661
|
+
action: "tell";
|
|
19662
|
+
decisionId: string;
|
|
19663
|
+
runId: string;
|
|
19664
|
+
text: string;
|
|
19665
|
+
confidence: number;
|
|
19666
|
+
} | {
|
|
19667
|
+
action: "confirm";
|
|
19668
|
+
decisionId: string;
|
|
19669
|
+
} | {
|
|
19670
|
+
action: "cancel";
|
|
19671
|
+
decisionId: string;
|
|
19672
|
+
} | {
|
|
19673
|
+
action: "none";
|
|
19674
|
+
decisionId: string;
|
|
19675
|
+
reason: "ambiguous" | "no-open-question" | "no-open-task" | "not-a-command" | "stale-context" | "unclear" | "unsupported";
|
|
19676
|
+
};
|
|
19677
|
+
outputFormat: "json";
|
|
19678
|
+
status: 200;
|
|
19679
|
+
input: {
|
|
19680
|
+
json: {
|
|
19681
|
+
text: string;
|
|
19682
|
+
sidebarView: "active" | "automations";
|
|
19683
|
+
openRunId?: string | undefined;
|
|
19684
|
+
view?: "automations" | "git" | "github" | "inbox" | "new-task" | "other" | "settings" | "task" | undefined;
|
|
19685
|
+
askRequestId?: string | null | undefined;
|
|
19686
|
+
proposal?: {
|
|
19687
|
+
decisionId: string;
|
|
19688
|
+
action: "answer" | "tell";
|
|
19689
|
+
} | undefined;
|
|
19690
|
+
};
|
|
19691
|
+
};
|
|
19692
|
+
};
|
|
19693
|
+
};
|
|
19694
|
+
} & {
|
|
19695
|
+
"/voice/outcome": {
|
|
19696
|
+
$post: {
|
|
19697
|
+
output: {
|
|
19698
|
+
ok: true;
|
|
19699
|
+
};
|
|
19700
|
+
outputFormat: "json";
|
|
19701
|
+
status: 200;
|
|
19702
|
+
input: {
|
|
19703
|
+
json: {
|
|
19704
|
+
decisionId: string;
|
|
19705
|
+
outcome: "abandoned" | "cancelled" | "confirmed" | "executed" | "replaced";
|
|
19706
|
+
};
|
|
19707
|
+
};
|
|
19708
|
+
};
|
|
19709
|
+
};
|
|
19710
19710
|
}, "/"> | import("hono/types").MergeSchemaPath<{
|
|
19711
19711
|
"/agent-webhooks": {
|
|
19712
19712
|
$get: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hearsay-tools/squawk",
|
|
3
|
-
"version": "0.18.0-
|
|
3
|
+
"version": "0.18.0-pr3440.6026",
|
|
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-
|
|
64
|
-
"@open-mercato/cezar-contract": "0.18.0-
|
|
63
|
+
"@open-mercato/cezar-api-client": "0.18.0-pr3440.6026",
|
|
64
|
+
"@open-mercato/cezar-contract": "0.18.0-pr3440.6026",
|
|
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": "2f7470dc098a87797899ba292fc4e216efaa60ae"
|
|
82
82
|
}
|