@hearsay-tools/squawk 0.18.0-dev.7118 → 0.18.0-dev.7119
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/tools.d.ts +4 -4
- package/dist/core/agent-runner.d.ts +7 -0
- package/dist/core/agent-runner.js +1 -0
- package/dist/core/agent-runner.js.map +1 -1
- package/dist/core/claude-cli-runner.js +5 -4
- package/dist/core/claude-cli-runner.js.map +1 -1
- package/dist/core/codex-app-server-runner.js +7 -13
- package/dist/core/codex-app-server-runner.js.map +1 -1
- package/dist/core/codex-permissions.d.ts +7 -0
- package/dist/core/codex-permissions.js +7 -0
- package/dist/core/codex-permissions.js.map +1 -1
- package/dist/core/codex-thread-config.d.ts +18 -0
- package/dist/core/codex-thread-config.js +30 -0
- package/dist/core/codex-thread-config.js.map +1 -0
- package/dist/core/omp-runner.d.ts +3 -0
- package/dist/core/omp-runner.js +7 -0
- package/dist/core/omp-runner.js.map +1 -1
- package/dist/core/opencode-minimal.d.ts +42 -0
- package/dist/core/opencode-minimal.js +59 -0
- package/dist/core/opencode-minimal.js.map +1 -0
- package/dist/core/opencode-server-runner.js +10 -14
- package/dist/core/opencode-server-runner.js.map +1 -1
- package/dist/core/pi-args.d.ts +9 -2
- package/dist/core/pi-args.js +9 -3
- package/dist/core/pi-args.js.map +1 -1
- package/dist/core/pi-runner.js +5 -2
- package/dist/core/pi-runner.js.map +1 -1
- package/dist/runs/auto-name.js +2 -0
- package/dist/runs/auto-name.js.map +1 -1
- package/dist/server/server.d.ts +40 -40
- package/dist/server/workspace-live-routes.d.ts +6 -6
- package/package.json +4 -4
- package/scripts/mock-codex-app-server.mjs +9 -1
- package/scripts/mock-omp-rpc.mjs +1 -1
package/dist/server/server.d.ts
CHANGED
|
@@ -2981,12 +2981,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
2981
2981
|
output: {
|
|
2982
2982
|
generation: string;
|
|
2983
2983
|
results: ({
|
|
2984
|
-
projectId: string;
|
|
2985
|
-
runId: string;
|
|
2986
|
-
type: "error" | "reset";
|
|
2987
|
-
status: 400 | 404 | 409 | 413 | 503;
|
|
2988
|
-
error: string;
|
|
2989
|
-
} | {
|
|
2990
2984
|
projectId: string;
|
|
2991
2985
|
runId: string;
|
|
2992
2986
|
type: "batch";
|
|
@@ -3000,6 +2994,12 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
3000
2994
|
cursor: string;
|
|
3001
2995
|
afterSeq: number;
|
|
3002
2996
|
hasMore: boolean;
|
|
2997
|
+
} | {
|
|
2998
|
+
projectId: string;
|
|
2999
|
+
runId: string;
|
|
3000
|
+
type: "error" | "reset";
|
|
3001
|
+
status: 400 | 404 | 409 | 413 | 503;
|
|
3002
|
+
error: string;
|
|
3003
3003
|
})[];
|
|
3004
3004
|
};
|
|
3005
3005
|
outputFormat: "json";
|
|
@@ -8319,22 +8319,11 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
8319
8319
|
"/runs/:id/worker-destroy": {
|
|
8320
8320
|
$post: {
|
|
8321
8321
|
output: {
|
|
8322
|
-
|
|
8323
|
-
|
|
8324
|
-
readonly modelChoices?: {
|
|
8325
|
-
runner: "claude" | "codex" | "omp" | "opencode" | "pi";
|
|
8326
|
-
requestedModel: string;
|
|
8327
|
-
availableModels: {
|
|
8328
|
-
id: string;
|
|
8329
|
-
label: string;
|
|
8330
|
-
description: string;
|
|
8331
|
-
effortLevels?: ("high" | "low" | "max" | "medium" | "xhigh")[] | undefined;
|
|
8332
|
-
}[];
|
|
8333
|
-
otherRunners: ("claude" | "codex" | "omp" | "opencode" | "pi")[];
|
|
8334
|
-
} | undefined;
|
|
8322
|
+
error: string;
|
|
8323
|
+
code?: "invalid_input" | undefined;
|
|
8335
8324
|
};
|
|
8336
8325
|
outputFormat: "json";
|
|
8337
|
-
status: 400
|
|
8326
|
+
status: 400;
|
|
8338
8327
|
input: {
|
|
8339
8328
|
query: {
|
|
8340
8329
|
[x: string]: string | string[];
|
|
@@ -8348,11 +8337,22 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
8348
8337
|
};
|
|
8349
8338
|
} | {
|
|
8350
8339
|
output: {
|
|
8351
|
-
|
|
8352
|
-
|
|
8340
|
+
readonly code: "capacity_limit" | "denied_scope" | "incompatible_state" | "incomplete_cleanup" | "invalid_baseline" | "invalid_input" | "unauthenticated" | "unavailable_diff" | "unavailable_transport";
|
|
8341
|
+
readonly error: string;
|
|
8342
|
+
readonly modelChoices?: {
|
|
8343
|
+
runner: "claude" | "codex" | "omp" | "opencode" | "pi";
|
|
8344
|
+
requestedModel: string;
|
|
8345
|
+
availableModels: {
|
|
8346
|
+
id: string;
|
|
8347
|
+
label: string;
|
|
8348
|
+
description: string;
|
|
8349
|
+
effortLevels?: ("high" | "low" | "max" | "medium" | "xhigh")[] | undefined;
|
|
8350
|
+
}[];
|
|
8351
|
+
otherRunners: ("claude" | "codex" | "omp" | "opencode" | "pi")[];
|
|
8352
|
+
} | undefined;
|
|
8353
8353
|
};
|
|
8354
8354
|
outputFormat: "json";
|
|
8355
|
-
status: 400;
|
|
8355
|
+
status: 400 | 401 | 403 | 409 | 503;
|
|
8356
8356
|
input: {
|
|
8357
8357
|
query: {
|
|
8358
8358
|
[x: string]: string | string[];
|
|
@@ -23989,22 +23989,11 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
23989
23989
|
"/runs/:id/worker-destroy": {
|
|
23990
23990
|
$post: {
|
|
23991
23991
|
output: {
|
|
23992
|
-
|
|
23993
|
-
|
|
23994
|
-
readonly modelChoices?: {
|
|
23995
|
-
runner: "claude" | "codex" | "omp" | "opencode" | "pi";
|
|
23996
|
-
requestedModel: string;
|
|
23997
|
-
availableModels: {
|
|
23998
|
-
id: string;
|
|
23999
|
-
label: string;
|
|
24000
|
-
description: string;
|
|
24001
|
-
effortLevels?: ("high" | "low" | "max" | "medium" | "xhigh")[] | undefined;
|
|
24002
|
-
}[];
|
|
24003
|
-
otherRunners: ("claude" | "codex" | "omp" | "opencode" | "pi")[];
|
|
24004
|
-
} | undefined;
|
|
23992
|
+
error: string;
|
|
23993
|
+
code?: "invalid_input" | undefined;
|
|
24005
23994
|
};
|
|
24006
23995
|
outputFormat: "json";
|
|
24007
|
-
status: 400
|
|
23996
|
+
status: 400;
|
|
24008
23997
|
input: {
|
|
24009
23998
|
query: {
|
|
24010
23999
|
[x: string]: string | string[];
|
|
@@ -24018,11 +24007,22 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
24018
24007
|
};
|
|
24019
24008
|
} | {
|
|
24020
24009
|
output: {
|
|
24021
|
-
|
|
24022
|
-
|
|
24010
|
+
readonly code: "capacity_limit" | "denied_scope" | "incompatible_state" | "incomplete_cleanup" | "invalid_baseline" | "invalid_input" | "unauthenticated" | "unavailable_diff" | "unavailable_transport";
|
|
24011
|
+
readonly error: string;
|
|
24012
|
+
readonly modelChoices?: {
|
|
24013
|
+
runner: "claude" | "codex" | "omp" | "opencode" | "pi";
|
|
24014
|
+
requestedModel: string;
|
|
24015
|
+
availableModels: {
|
|
24016
|
+
id: string;
|
|
24017
|
+
label: string;
|
|
24018
|
+
description: string;
|
|
24019
|
+
effortLevels?: ("high" | "low" | "max" | "medium" | "xhigh")[] | undefined;
|
|
24020
|
+
}[];
|
|
24021
|
+
otherRunners: ("claude" | "codex" | "omp" | "opencode" | "pi")[];
|
|
24022
|
+
} | undefined;
|
|
24023
24023
|
};
|
|
24024
24024
|
outputFormat: "json";
|
|
24025
|
-
status: 400;
|
|
24025
|
+
status: 400 | 401 | 403 | 409 | 503;
|
|
24026
24026
|
input: {
|
|
24027
24027
|
query: {
|
|
24028
24028
|
[x: string]: string | string[];
|
|
@@ -7,12 +7,6 @@ export declare function createWorkspaceLiveRoutes(live: Parameters<typeof create
|
|
|
7
7
|
output: {
|
|
8
8
|
generation: string;
|
|
9
9
|
results: ({
|
|
10
|
-
projectId: string;
|
|
11
|
-
runId: string;
|
|
12
|
-
type: "error" | "reset";
|
|
13
|
-
status: 400 | 404 | 409 | 413 | 503;
|
|
14
|
-
error: string;
|
|
15
|
-
} | {
|
|
16
10
|
projectId: string;
|
|
17
11
|
runId: string;
|
|
18
12
|
type: "batch";
|
|
@@ -26,6 +20,12 @@ export declare function createWorkspaceLiveRoutes(live: Parameters<typeof create
|
|
|
26
20
|
cursor: string;
|
|
27
21
|
afterSeq: number;
|
|
28
22
|
hasMore: boolean;
|
|
23
|
+
} | {
|
|
24
|
+
projectId: string;
|
|
25
|
+
runId: string;
|
|
26
|
+
type: "error" | "reset";
|
|
27
|
+
status: 400 | 404 | 409 | 413 | 503;
|
|
28
|
+
error: string;
|
|
29
29
|
})[];
|
|
30
30
|
};
|
|
31
31
|
outputFormat: "json";
|
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.7119",
|
|
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",
|
|
@@ -63,8 +63,8 @@
|
|
|
63
63
|
"devDependencies": {
|
|
64
64
|
"@babel/parser": "^8.0.8",
|
|
65
65
|
"@babel/types": "^8.0.8",
|
|
66
|
-
"@open-mercato/cezar-api-client": "0.18.0-dev.
|
|
67
|
-
"@open-mercato/cezar-contract": "0.18.0-dev.
|
|
66
|
+
"@open-mercato/cezar-api-client": "0.18.0-dev.7119",
|
|
67
|
+
"@open-mercato/cezar-contract": "0.18.0-dev.7119",
|
|
68
68
|
"@types/node": "^24.19.1",
|
|
69
69
|
"@types/ws": "^8.18.1",
|
|
70
70
|
"esbuild": "^0.28.1",
|
|
@@ -81,5 +81,5 @@
|
|
|
81
81
|
"publishConfig": {
|
|
82
82
|
"access": "public"
|
|
83
83
|
},
|
|
84
|
-
"gitHead": "
|
|
84
|
+
"gitHead": "95801513d7ee7c63191ef80cd92fd9a727f72ef3"
|
|
85
85
|
}
|
|
@@ -424,7 +424,7 @@ function replyWithRequirements(msg) {
|
|
|
424
424
|
async function handleThread(msg) {
|
|
425
425
|
if (process.env.CEZ_MOCK_CI_PR) { const { probeCiTool } = await import('./mock-ci-tool.mjs'); await probeCiTool('codex', msg.params); }
|
|
426
426
|
ciWire = msg.params;
|
|
427
|
-
const expectedSandbox =
|
|
427
|
+
const expectedSandbox = expectedThreadSandbox(msg);
|
|
428
428
|
rejectedPermissionOverride = managedRequirements !== null && msg.params?.sandbox !== undefined;
|
|
429
429
|
if (rejectedPermissionOverride) permissionWarning();
|
|
430
430
|
if (rejectThreadPermissions(msg, expectedSandbox)) return;
|
|
@@ -450,6 +450,13 @@ async function handleThread(msg) {
|
|
|
450
450
|
}
|
|
451
451
|
}
|
|
452
452
|
|
|
453
|
+
/** The sandbox Squawk must send under an unmanaged policy. A minimal session (its config turns
|
|
454
|
+
* hooks off) runs read-only. */
|
|
455
|
+
function expectedThreadSandbox(msg) {
|
|
456
|
+
if (msg.params?.config?.['features.hooks'] === false) return 'read-only';
|
|
457
|
+
return productEnv('CODEX_NETWORK') === '0' ? 'workspace-write' : 'danger-full-access';
|
|
458
|
+
}
|
|
459
|
+
|
|
453
460
|
function rejectThreadPermissions(msg, expectedSandbox) {
|
|
454
461
|
const unknownRequirements = process.env.MOCK_CODEX_REQUIREMENTS_ERROR || process.env.MOCK_CODEX_REQUIREMENTS_MALFORMED;
|
|
455
462
|
if ((!managedRequirements && !unknownRequirements && msg.params?.sandbox !== expectedSandbox) || msg.params?.approvalPolicy !== undefined) {
|
|
@@ -463,6 +470,7 @@ function threadSandbox(msg) {
|
|
|
463
470
|
return managedRequirements
|
|
464
471
|
? { type: 'readOnly', networkAccess: process.env.MOCK_CODEX_MANAGED_NETWORK === '1' }
|
|
465
472
|
: msg.params?.sandbox === 'danger-full-access' ? { type: 'dangerFullAccess' }
|
|
473
|
+
: msg.params?.sandbox === 'read-only' ? { type: 'readOnly', networkAccess: false }
|
|
466
474
|
: { type: 'workspaceWrite', networkAccess: false, writableRoots: [], excludeTmpdirEnvVar: false, excludeSlashTmp: false };
|
|
467
475
|
}
|
|
468
476
|
|
package/scripts/mock-omp-rpc.mjs
CHANGED
|
@@ -30,7 +30,7 @@ const BUILTIN_TOOLS = ['read', 'bash', 'edit', 'ast_grep', 'ast_edit', 'ask', 'd
|
|
|
30
30
|
const GATED_TOOLS = new Set(['ast_grep']);
|
|
31
31
|
const DEFAULT_TOOLS = ['read', 'bash', 'edit', 'eval', 'glob', 'grep', 'find', 'task', 'wait', 'todo', 'web_search', 'write'];
|
|
32
32
|
const VALUE_FLAGS = new Set(['--mode', '--extension', '--resume', '--append-system-prompt', '--model', '--thinking', '--add-dir', '--config', '--tools']);
|
|
33
|
-
const BOOLEAN_FLAGS = new Set(['--no-tools']);
|
|
33
|
+
const BOOLEAN_FLAGS = new Set(['--no-tools', '--no-extensions', '--no-skills', '--no-rules', '--no-context-files', '--no-lsp', '--no-session', '--no-title']);
|
|
34
34
|
|
|
35
35
|
function startupError(code, message) {
|
|
36
36
|
process.stderr.write(`${message}\nRun \`omp --help\` for available flags.\n`);
|