@mrciphersmith/keryx 0.4.36 → 0.4.37
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/core.js
CHANGED
|
@@ -49018,6 +49018,12 @@ var HELP_GROUPS = [
|
|
|
49018
49018
|
group: "External agents, ACP and MCP",
|
|
49019
49019
|
summary: "Speak ACP v1 (newline-delimited JSON-RPC) over stdio, for an ACP client (e.g. an editor)."
|
|
49020
49020
|
},
|
|
49021
|
+
{
|
|
49022
|
+
kind: "cli",
|
|
49023
|
+
name: "app",
|
|
49024
|
+
group: "External agents, ACP and MCP",
|
|
49025
|
+
summary: "Install, update, build or check the Keryx desktop app (macOS), the ACP client over keryx acp --profile shell."
|
|
49026
|
+
},
|
|
49021
49027
|
{
|
|
49022
49028
|
kind: "cli",
|
|
49023
49029
|
name: "agents",
|
|
@@ -36618,6 +36618,17 @@ var TURN_INTERRUPTED_LINE = `
|
|
|
36618
36618
|
[stopped] Model turn interrupted by user.
|
|
36619
36619
|
`;
|
|
36620
36620
|
var usageAnchors = new WeakMap;
|
|
36621
|
+
function isFloorExemptMcpCall(call, exempt) {
|
|
36622
|
+
if (exempt === undefined || call.name !== "use_tool")
|
|
36623
|
+
return false;
|
|
36624
|
+
try {
|
|
36625
|
+
const parsed = JSON.parse(call.input);
|
|
36626
|
+
const fqn = typeof parsed === "object" && parsed !== null ? parsed.tool_name : undefined;
|
|
36627
|
+
return typeof fqn === "string" && exempt(fqn);
|
|
36628
|
+
} catch {
|
|
36629
|
+
return false;
|
|
36630
|
+
}
|
|
36631
|
+
}
|
|
36621
36632
|
var RECOVERY_MAX_DELAY_MS = 60000;
|
|
36622
36633
|
var RECOVERY_MAX_RETRY_AFTER_MS = 300000;
|
|
36623
36634
|
function recoveryDelayMs(attempt, retryAfterMs, random) {
|
|
@@ -38465,7 +38476,7 @@ ${shown.join(`
|
|
|
38465
38476
|
}
|
|
38466
38477
|
const risk = toolByName.get(call.name)?.definition.risk;
|
|
38467
38478
|
const isPureReadTool = risk === "read" && !DURABLE_READ_TOOL_NAMES.has(call.name);
|
|
38468
|
-
const untrustedOrigin = !isPureReadTool && untrustedContentSeen;
|
|
38479
|
+
const untrustedOrigin = !isPureReadTool && untrustedContentSeen && !isFloorExemptMcpCall(call, io.mcpFloorExempt);
|
|
38469
38480
|
if (untrustedOrigin && deps.unattended === true) {
|
|
38470
38481
|
const result = {
|
|
38471
38482
|
output: "tool blocked: external web content cannot authorize further tool calls in this turn",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mrciphersmith/keryx",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.37",
|
|
4
4
|
"description": "Version-controlled project context for AI coding agents: code graph, architecture wiki, project memory, relevant tests, quality signals, and task flows.",
|
|
5
5
|
"private": false,
|
|
6
6
|
"publishConfig": {
|
|
@@ -40,6 +40,7 @@
|
|
|
40
40
|
},
|
|
41
41
|
"scripts": {
|
|
42
42
|
"keryx": "bun ./src/cli.ts",
|
|
43
|
+
"desktop:build": "bash scripts/desktop/build.sh",
|
|
43
44
|
"build": "bun scripts/build-hub-web.ts --check && bun build ./src/cli.ts --outdir ./dist --target bun --external @modelcontextprotocol/sdk --external web-tree-sitter --external @opentui/core && bun build ./src/core.ts --outdir ./dist --target bun --external @modelcontextprotocol/sdk --external web-tree-sitter --external @opentui/core && bun build ./src/harness/process/sandbox/proxy-worker.ts --outdir ./dist --target bun --external @modelcontextprotocol/sdk --external web-tree-sitter --external @opentui/core && bun build ./src/commands/review-agents-runtime/keryx-general-worker-entry.ts --outdir ./dist --target bun --external @modelcontextprotocol/sdk --external web-tree-sitter --external @opentui/core",
|
|
44
45
|
"prepare": "bun run build",
|
|
45
46
|
"typecheck": "tsc --noEmit",
|
|
@@ -32,9 +32,12 @@ operator reads in the shell's Schedules section.
|
|
|
32
32
|
"sometimes". Ask.
|
|
33
33
|
- **Prompt**: the task in the operator's words, written for an agent that runs
|
|
34
34
|
alone and whose final message is the report.
|
|
35
|
-
- **
|
|
36
|
-
|
|
37
|
-
|
|
35
|
+
- **Permission mode**: ASK which one the unattended run uses: `ask` (commands
|
|
36
|
+
needing approval are DENIED), `trust` (non-destructive commands run in the
|
|
37
|
+
sandbox) or `auto` (all but credential-touching ones run in the sandbox).
|
|
38
|
+
- **Cost** (optional): `rates` (USD per million tokens) only prices the report;
|
|
39
|
+
`ceilingUsd` is informational. Cost is reported, never a limit. No price
|
|
40
|
+
table: if rates are unknown, leave them out. Never guess them.
|
|
38
41
|
|
|
39
42
|
### Step 2: Grant only what the task needs
|
|
40
43
|
- `tools`: pick from the fixed catalogue: `gh.pr.list`, `gh.pr.view`,
|
|
@@ -48,12 +51,10 @@ operator reads in the shell's Schedules section.
|
|
|
48
51
|
tools cover it. `full` hands the shell the whole host network; say why. `allowlist`
|
|
49
52
|
(Linux only, `domains` required) reaches only the named domains, and governs only
|
|
50
53
|
the agent's own shell — never the model call or a granted tool.
|
|
51
|
-
- `permissionMode`: `ask` (the default) is read-only, and granted tools still run.
|
|
52
|
-
Propose `trust` only when the scheduled agent must run shell commands.
|
|
53
54
|
|
|
54
55
|
### Step 3: Propose with schedule_create
|
|
55
56
|
Call `schedule_create`. The operator then sees a confirmation card: cadence and
|
|
56
|
-
next runs, prompt, runner,
|
|
57
|
+
next runs, prompt, runner, permission mode, network, every granted tool with its binary
|
|
57
58
|
and account, and exactly what gets installed. You do not confirm it. Only the
|
|
58
59
|
operator can, and every permission mode asks, `auto` included. Changing an existing schedule works the same way (`schedule_pause`, `schedule_resume`, `schedule_run`, `schedule_remove`): the operator answers a card; never send them to a terminal.
|
|
59
60
|
|
|
@@ -85,7 +86,6 @@ that nothing was written. Point to `/schedules` for the list and the reports.
|
|
|
85
86
|
| "The operator said 'every so often' — I'll pick hourly" | A cadence runs and spends unattended. Ask for it |
|
|
86
87
|
| "I'll grant every gh tool so the agent is not stuck" | Grants are the operator's credentials acting unattended. Grant what the prompt needs |
|
|
87
88
|
| "Network full is simpler than granted tools" | It gives the unattended shell the whole host network. Granted tools need none |
|
|
88
|
-
| "I know roughly what the model costs" | A wrong rate makes both spend ceilings wrong by the same factor. Ask |
|
|
89
89
|
|
|
90
90
|
## Verification
|
|
91
91
|
|