synabun 2.4.4 → 2.4.6
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/CHANGELOG.md +42 -0
- package/README.md +1 -1
- package/docs/browser-extension-bridge.md +5 -4
- package/docs/whatsapp.md +19 -3
- package/hooks/claude-code/session-start.mjs +21 -18
- package/lib/claude-global-config.js +214 -0
- package/lib/client-config-repair.js +17 -3
- package/mcp-server/dist/index.d.ts.map +1 -1
- package/mcp-server/dist/index.js +6 -1
- package/mcp-server/dist/index.js.map +1 -1
- package/mcp-server/dist/services/neural-interface.d.ts +1 -0
- package/mcp-server/dist/services/neural-interface.d.ts.map +1 -1
- package/mcp-server/dist/services/neural-interface.js +1 -0
- package/mcp-server/dist/services/neural-interface.js.map +1 -1
- package/mcp-server/dist/services/tool-catalog.js +1 -1
- package/mcp-server/dist/services/tool-catalog.js.map +1 -1
- package/mcp-server/dist/tools/agents.d.ts +18 -3
- package/mcp-server/dist/tools/agents.d.ts.map +1 -1
- package/mcp-server/dist/tools/agents.js +85 -16
- package/mcp-server/dist/tools/agents.js.map +1 -1
- package/mcp-server/dist/tools/skill-tools.d.ts +24 -5
- package/mcp-server/dist/tools/skill-tools.d.ts.map +1 -1
- package/mcp-server/dist/tools/skill-tools.js +88 -8
- package/mcp-server/dist/tools/skill-tools.js.map +1 -1
- package/mcp-server/dist/tools/tool-groups.d.ts.map +1 -1
- package/mcp-server/dist/tools/tool-groups.js +19 -4
- package/mcp-server/dist/tools/tool-groups.js.map +1 -1
- package/mcp-server/package-lock.json +2 -2
- package/mcp-server/package.json +1 -1
- package/mcp-server/src/index.ts +6 -1
- package/mcp-server/src/services/neural-interface.ts +2 -1
- package/mcp-server/src/services/tool-catalog.ts +1 -1
- package/mcp-server/src/tools/agents.ts +78 -16
- package/mcp-server/src/tools/skill-tools.ts +82 -9
- package/mcp-server/src/tools/tool-groups.ts +19 -4
- package/neural-interface/i18n/en.json +484 -19
- package/neural-interface/i18n/pt-BR.json +484 -19
- package/neural-interface/lib/agents-studio-api.js +7 -2
- package/neural-interface/lib/antigravity/home.js +43 -8
- package/neural-interface/lib/antigravity/panel-bridge.js +7 -3
- package/neural-interface/lib/antigravity/tool-call.js +14 -0
- package/neural-interface/lib/assistant-brains/antigravity.js +4 -2
- package/neural-interface/lib/assistant-dispatch.js +15 -1
- package/neural-interface/lib/assistant-persona.js +8 -3
- package/neural-interface/lib/assistant-route-gate.js +11 -2
- package/neural-interface/lib/assistant-runtime.js +95 -13
- package/neural-interface/lib/assistant-spilled-output.js +53 -0
- package/neural-interface/lib/assistant-user-context.js +7 -3
- package/neural-interface/lib/browser-default.js +22 -2
- package/neural-interface/lib/browser-extension-bridge.js +50 -3
- package/neural-interface/lib/browser-extension-pin.json +7 -7
- package/neural-interface/lib/browser-extension-protocol.js +30 -1
- package/neural-interface/lib/browser-extension-setup.js +204 -36
- package/neural-interface/lib/claude-agent-bridge.js +13 -2
- package/neural-interface/lib/codex-thread-history.js +144 -7
- package/neural-interface/lib/codex-worker-app-server.js +84 -30
- package/neural-interface/lib/db.js +26 -0
- package/neural-interface/lib/greeting/sources.js +7 -3
- package/neural-interface/lib/jsonl-lines.js +10 -11
- package/neural-interface/lib/line-buffer.js +88 -0
- package/neural-interface/lib/loop-stall.js +15 -1
- package/neural-interface/lib/memory-list-read.js +105 -0
- package/neural-interface/lib/memory-timers.js +4 -1
- package/neural-interface/lib/native-loop-runtime.js +7 -3
- package/neural-interface/lib/provider-panel-api-key-auth.js +33 -6
- package/neural-interface/lib/remote-policy.js +24 -7
- package/neural-interface/lib/skills/api-v2.js +18 -3
- package/neural-interface/lib/skills/bundle.js +2 -2
- package/neural-interface/lib/skills/deploy.js +169 -34
- package/neural-interface/lib/skills/digest.js +57 -3
- package/neural-interface/lib/skills/health.js +55 -1
- package/neural-interface/lib/skills/known-bridge-digests.json +12 -0
- package/neural-interface/lib/skills/runtime-checks.js +7 -4
- package/neural-interface/lib/skills/scan-shell.js +56 -7
- package/neural-interface/lib/skills/scan.js +13 -12
- package/neural-interface/lib/skills/service.js +7 -2
- package/neural-interface/lib/skills/telemetry.js +2 -2
- package/neural-interface/lib/teams/README.md +34 -6
- package/neural-interface/lib/teams/api.js +94 -10
- package/neural-interface/lib/teams/index.js +4 -0
- package/neural-interface/lib/teams/landing.js +195 -75
- package/neural-interface/lib/teams/recovery.js +68 -0
- package/neural-interface/lib/teams/scheduler.js +380 -61
- package/neural-interface/lib/teams/worktrees.js +123 -30
- package/neural-interface/lib/terminal-token-redaction.js +228 -58
- package/neural-interface/lib/terminal-tokens.js +18 -0
- package/neural-interface/lib/whatsapp/brain.js +21 -0
- package/neural-interface/lib/whatsapp/bridge.js +40 -4
- package/neural-interface/package-lock.json +2 -2
- package/neural-interface/package.json +1 -1
- package/neural-interface/public/extension-setup.html +6 -2
- package/neural-interface/public/index.html +117 -37
- package/neural-interface/public/shared/agents/studio/ax-api.js +27 -0
- package/neural-interface/public/shared/agents/studio/ax-create-view.js +1 -1
- package/neural-interface/public/shared/agents/studio/ax-icons.js +1 -0
- package/neural-interface/public/shared/agents/studio/ax-library-view.js +3 -2
- package/neural-interface/public/shared/agents/studio/ax-main.js +127 -41
- package/neural-interface/public/shared/agents/studio/ax-review-view.js +3 -2
- package/neural-interface/public/shared/agents/studio/ax-teams-view.js +436 -33
- package/neural-interface/public/shared/agents/studio/ax-teams.js +357 -10
- package/neural-interface/public/shared/agents/studio/ax-ui.js +31 -0
- package/neural-interface/public/shared/agents/studio/ax-views.js +67 -69
- package/neural-interface/public/shared/agents/studio/ax-work-answer.js +86 -0
- package/neural-interface/public/shared/agents/studio/ax-work-view.js +305 -0
- package/neural-interface/public/shared/agents/studio/ax-work.css +74 -0
- package/neural-interface/public/shared/agents/studio/ax-work.js +300 -0
- package/neural-interface/public/shared/browser-extension-updates.js +3 -1
- package/neural-interface/public/shared/cdx/cdx-deferred.js +90 -0
- package/neural-interface/public/shared/cdx/cdx-render.js +18 -7
- package/neural-interface/public/shared/cdx/cdx-tabs.js +2 -1
- package/neural-interface/public/shared/extension-setup/es-page.js +23 -4
- package/neural-interface/public/shared/extension-setup/es-view.js +51 -11
- package/neural-interface/public/shared/extension-update-view.js +1 -1
- package/neural-interface/public/shared/loading-diagnostic-entry.js +16 -1
- package/neural-interface/public/shared/settings/settings-ai-browser.js +23 -3
- package/neural-interface/public/shared/settings/settings-browser-extension.js +575 -197
- package/neural-interface/public/shared/settings/settings-extension-diagrams.js +116 -0
- package/neural-interface/public/shared/settings/settings-extension-guide.js +222 -0
- package/neural-interface/public/shared/settings/settings-ia.js +2 -2
- package/neural-interface/public/shared/settings/settings-shell.js +5 -0
- package/neural-interface/public/shared/skills/studio/sx-operations-view.js +5 -0
- package/neural-interface/public/shared/skills/studio/sx-plan.js +42 -3
- package/neural-interface/public/shared/skills/studio/sx-publish-view.js +20 -4
- package/neural-interface/public/shared/styles.css +196 -13
- package/neural-interface/public/shared/ui-settings.js +48 -11
- package/neural-interface/server.js +336 -253
- package/npm-shrinkwrap.json +2 -2
- package/package.json +2 -1
- package/skills/skill-forge/SKILL.md +7 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-catalog.js","sourceRoot":"","sources":["../../src/services/tool-catalog.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC;AAEtC,+EAA+E;AAC/E,MAAM,CAAC,MAAM,eAAe,GAAG,MAAM,CAAC,MAAM,CAAC;IAC3C,UAAU,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE,UAAU;IAChE,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,QAAQ;CAC3C,CAAC,CAAC;AAEZ,yEAAyE;AACzE,MAAM,CAAC,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,QAAQ,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,QAAQ,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,CAAC,EAAE,EAAE,EAAE,SAAS,EAAE,CAAC,CAAC,MAAM;QACnD,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;KAC5C,CAAC,CAAC;IACH,OAAO;QACL,OAAO,EAAE,oBAAoB;QAC7B,OAAO,EAAE,CAAC,GAAG,aAAa,CAAC;QAC3B,QAAQ,EAAE,eAAe,CAAC,MAAM;QAChC,aAAa,EAAE,CAAC,GAAG,eAAe,CAAC;QACnC,MAAM,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC;QAC5D,KAAK,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC;QAC1D,MAAM,EAAE,EAAE,GAAG,WAAW,EAAE;KAC3B,CAAC;AACJ,CAAC"}
|
|
@@ -7,6 +7,9 @@ export declare const TASK_CLASSES: readonly ["chat", "quick", "code", "complex",
|
|
|
7
7
|
export declare const RUN_EVENT_KINDS: readonly ["run.result", "run.needs_input", "run.permission", "run.failed", "run.stalled", "run.stopped", "run.interrupted", "run.completed", "run.budget", "run.notice", "run.message", "run.progress"];
|
|
8
8
|
/** One title limit for agent_route planned_split.slices and agent_team slices[].title (= TEAM_LIMITS.title in neural-interface/lib/teams/schema.js). */
|
|
9
9
|
export declare const SLICE_TITLE_MAX = 80;
|
|
10
|
+
/** agent_list's page: newest first, AGENT_LIST_DEFAULT runs unless the brain asks for more. */
|
|
11
|
+
export declare const AGENT_LIST_DEFAULT = 20;
|
|
12
|
+
export declare const AGENT_LIST_MAX = 100;
|
|
10
13
|
export declare const agentCatalogSchema: {
|
|
11
14
|
provider: z.ZodOptional<z.ZodEnum<["claude-code", "codex", "opencode", "antigravity"]>>;
|
|
12
15
|
search: z.ZodOptional<z.ZodString>;
|
|
@@ -105,6 +108,7 @@ export declare const agentListSchema: {
|
|
|
105
108
|
active_only: z.ZodOptional<z.ZodBoolean>;
|
|
106
109
|
assistant_session_id: z.ZodOptional<z.ZodString>;
|
|
107
110
|
workflow_id: z.ZodOptional<z.ZodString>;
|
|
111
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
108
112
|
};
|
|
109
113
|
export declare const agentDispatchSchema: {
|
|
110
114
|
provider: z.ZodOptional<z.ZodEnum<["claude-code", "codex", "opencode", "antigravity"]>>;
|
|
@@ -200,12 +204,12 @@ export declare const agentUsageSchema: {
|
|
|
200
204
|
export declare const agentCatalogDescription = "Discover what you can route to: providers (claude-code, codex, opencode, antigravity) with models (tier, price per 1M tokens, vision, context, efforts), plus `chat` (chat-only providers such as maritaca: a side panel the user talks to, prices in BRL, never a dispatch target), accounts with subscription usage remaining (or usage unknown; API keys are n/a), registered projects (cwd candidates), SynaBun tool groups and each host's effect, rails/limits, active runs, and `agents`: the SynaBun agents the owner approved, which a dispatch names with agent_ref (ref, name, description, provider/model, task classes, scope global or project, revision; provider and search filter them too). Without arguments it returns a compact routing view (OpenCode sampled); pass provider and/or search to list more models. Call it when the routing sheet in your instructions lacks a model, or after a MODEL_UNKNOWN rejection. Returns JSON.";
|
|
201
205
|
export declare const agentRouteDescription = "The runtime taskId owns one card: retries return it even with different wording or proposals. Only a genuinely separate subtask uses its own stable task_key. Plan the whole task before routing it once. At Pair/Team/Swarm, code/complex/research/review target 2/4/6 workers: pass planned_split with that many distinct titles or fewer with a reason. All four require cwd; a non-git project falls back to one worker with a reason. The card shows this split and one approval covers all workers. Follow next: agent_team plan \u2192 start for all splits. Research/review pass task_class and empty owned_paths: separate worktrees, no integration or landing; wait and synthesize. Never route individual slices. Other classes and Solo stay single. For work that requires access outside the worker sandbox, set needs_host:true. Only Here is available. The worker-only classes design, image_gen, and video_gen refuse needs_host:true with ROUTE_INVALID. Route an actionable task BEFORE starting it (you are the planner). Give task_class, a one-line summary, your honest confidence (0-1) and 1-3 proposals (direct = here on your model; dispatch = a worker provider/model). proposals.account_id accepts an account id or \"auto\" (most subscription usage left); limited pinned/default accounts fall back within the provider. The returned target.account includes usage and corrections explain the choice. The server applies the session's route mode (always ask / ask when unsure / never ask): it approves at once, or shows the user a route card and waits briefly. A planned split uses workers; on a single-task route card the user can pick here or a worker: follow the returned target.kind and next, never your proposal. Follow the returned status and next: approved+dispatch \u2192 follow next with the approved route_id; approved+direct \u2192 do it yourself (a route the user kept here is never dispatched: agent_dispatch refuses it with ROUTE_IS_DIRECT); continuation \u2192 end your turn (SynaBun continues on the chosen model); pending \u2192 end your turn, the choice arrives as a [SynaBun Mailbox] route_decided event; declined \u2192 do not start (reason no_capable_model: no model can make the image or video, or see for design; tell the user which Model routes row needs one); clarifying \u2192 end your turn, the user has not answered your agent_clarify questions yet (independent:true for a task that does not depend on them). image_gen / video_gen always route to a worker whose model generates the medium, design to a worker whose model can see. With a session budget, a provider whose share is used up cannot take the task: SynaBun first divides the unspent budget again, then moves the task to the next capable provider with money left (your next proposal, the same tier on another provider, then a free model) and says so in corrections (reason budget_share, \"budget: codex share used up -> claude-code/sonnet\"); the saved routes yield to this. When no provider can pay it declines with reason budget_exhausted and names the dry providers (dry). A host-only route on an unpriced provider declines with reason budget_unpriced (BUDGET_UNPRICED). The result carries budget: each provider's share, spent and left. Routed workers inherit the approved agent for their task class; agent_ref \"none\" opts out. A proposal may name an agent (agent_ref, with cwd for a project's own): it is a dispatch on what the agent runs on, unless the proposal names its own. Never use it for conversation or bookkeeping. Returns JSON.";
|
|
202
206
|
export declare const agentClarifyDescription = "Ask the user 1-3 targeted questions BEFORE routing a new request that is materially ambiguous: two plausible readings with different results, an unclear target (project, feature, files, audience), destructive or irreversible scope, spend, or memories that conflict with it. Not for clear requests, details a sensible default covers, anything the request, memory or the project answers, or the model (agent_route asks that). Each question gets 2-4 options (recommended first; the user can always type their own); add constraints (what the request fixes) and assumptions (what you will assume for the rest). The card waits briefly. Follow the returned status and next: answered \u2192 route, then agent_dispatch with the brief_id (SynaBun adds the user's original words, their answers, the constraints and assumptions to the worker's context); declined \u2192 proceed on your assumptions; pending \u2192 end your turn, the answers arrive as a [SynaBun Mailbox] clarify_answered event or as the user's next message, and dependent routes and dispatches wait until then. Returns JSON.";
|
|
203
|
-
export declare const agentListDescription = "List dispatched worker runs with status, state, provider/model, the agent a run runs as (agentRef, agentRevision; absent for a plain worker), title, elapsed time, work time left (workLeftMs), cost and resumes (how often a server restart cut the run off and it was resumed). Use it before dispatching more work, to recover run ids, or after a mailbox event. Filter with active_only, assistant_session_id (your own session) or workflow_id. Returns JSON.";
|
|
207
|
+
export declare const agentListDescription = "List dispatched worker runs with status, state, provider/model, the agent a run runs as (agentRef, agentRevision; absent for a plain worker), title, elapsed time, work time left (workLeftMs), cost and resumes (how often a server restart cut the run off and it was resumed). Use it before dispatching more work, to recover run ids, or after a mailbox event. Filter with active_only, assistant_session_id (your own session) or workflow_id; limit sets how many (newest first, default 20). Each run is compact: the task, context and turn texts are counted, not repeated (agent_read and agent_status have them). Returns JSON.";
|
|
204
208
|
export declare const agentDispatchDescription = "Dispatch a task to a worker agent (Claude Code, Codex or OpenCode). Route it first with agent_route and pass the approved route_id (the server applies that provider/model/effort); without one, the dispatch may be held until the user picks a model (awaitingRoute:true \u2014 do not dispatch it again; if the user picks \"here\" instead, the run never starts and a route_decided mailbox event asks you to do the task yourself). A route_id the user decided to keep here is refused (ROUTE_IS_DIRECT): do that task yourself. After agent_clarify, pass its brief_id: the worker gets the user's own words and answers; while its questions are open a dependent dispatch is refused (CLARIFICATION_PENDING). The run attaches as a live automation tab in the matching sidepanel without stealing focus. Write a self-contained task that ends with a ## Result block, pass the absolute cwd and your assistant_session_id. Defaults: permission_policy \"auto\", capability \"full\", 45 minutes of work time (max_minutes, at least 20), no per-run dollar ceiling (with a budget the run draws from its provider's share; a provider whose share is used up and cannot get more is refused with BUDGET_SHARE_EXHAUSTED: route again). Use \"ask\" only for sensitive scopes (Codex cannot ask: use \"restricted\"). uses_computer:true for desktop work (one at a time, vision model). uses_browser:true with morelogin_profile (a profile id or name) opens the worker's browser tab in that MoreLogin profile for this run only, next to runs in the default or other profiles (only a profile the owner allowed agents to choose; MORELOGIN_PROFILE_NOT_ALLOWED otherwise: tell the user to switch it on in Settings). An image_gen / video_gen run makes the asset with its model's own generation tool; SynaBun collects the files into the run's result (media: path + url); with no model that generates the medium an un-routed dispatch is refused (NO_CAPABLE_MODEL), and a route_id approved for other work is refused for image_gen / video_gen / design (and the other way round: ROUTE_CLASS_MISMATCH; route the task again with its own class). A design run gets SynaBun's design rules and the project's style guide, defaults to capability \"workspace\", uses_browser true, browser, styleguide and image groups, and 60 minutes of work time (explicit values win), runs only on a model confirmed to see (MODEL_CANNOT_SEE otherwise), and its screenshots land in the result's media. The class agent applies automatically; agent_ref \"none\" opts out. An explicit agent_ref runs the worker as one of the owner's approved agents (agent_catalog agents): its definition fills what you leave out and its instructions become the worker's role, the run carries agentRef and agentRevision, and corrections list what the definition was held to. Group fan-outs with workflow_id, chain with parent_run_id, retry safely with idempotency_key. Over-limit dispatches are queued (queued:true, position). After dispatching, block with agent_wait rather than polling. Returns JSON.";
|
|
205
|
-
export declare const agentStatusDescription = "Get one run's current descriptor: status (queued, starting, running, completed, failed, stopped, interrupted), state (the detail: also idle, awaiting_permission, and suspended / resuming while a SynaBun server restart cuts a Claude Code worker off and the next start resumes it as the same run, its Claude session and its tab; resumes counts that, at most 3; a run that could not be resumed ends interrupted, with why in notes), turnState (running, idle, awaiting_permission), provider/model/account, the agent it runs as (agentRef, agentRevision, agentPin with what its definition was held to; absent for a plain worker), elapsed time (elapsedMs, wall clock), work time used and left of max_minutes (workMs, workLeftMs), cost, the last parsed result summary and any pending permission or question requests. Cheap; use it between agent_wait calls or before agent_send / agent_stop. Returns JSON.";
|
|
209
|
+
export declare const agentStatusDescription = "Get one run's current descriptor: status (queued, starting, running, completed, failed, stopped, interrupted), state (the detail: also idle, awaiting_permission, and suspended / resuming while a SynaBun server restart cuts a Claude Code worker off and the next start resumes it as the same run, its Claude session and its tab; resumes counts that, at most 3; a run that could not be resumed ends interrupted, with why in notes), turnState (running, idle, awaiting_permission), provider/model/account, the agent it runs as (agentRef, agentRevision, agentPin with what its definition was held to; absent for a plain worker), elapsed time (elapsedMs, wall clock), work time used and left of max_minutes (workMs, workLeftMs), cost, the last parsed result summary and any pending permission or question requests. The task, context and turn texts are counted, not repeated (agent_read has the texts). Cheap; use it between agent_wait calls or before agent_send / agent_stop. Returns JSON.";
|
|
206
210
|
export declare const agentReadDescription = "Read a run's output. format \"result\" (default) returns the parsed ## Result contract (status, summary, changes, follow_ups, question, json, and media: the images / videos an image_gen or video_gen run generated or a design run captured, each { kind, path, url, mime, bytes } \u2014 show one with  plus its path); \"tail\" returns the last transcript events (also after the run ended or the server restarted); \"text\" the worker's assistant text; \"files\" the files it reported. Call after agent_wait reports idle or terminal; keep max_chars small. A text longer than max_chars is read in pages: the answer carries totalChars, offset and nextOffset; pass offset (0 for the start, then each nextOffset) to read the rest. Returns JSON.";
|
|
207
211
|
export declare const agentSendDescription = "Continue a worker's conversation. text sends a follow-up turn (queue:true enqueues it while the worker is still running, or while it is suspended / resuming after a server restart: it goes to the worker once resumed; queued follow-ups keep their order, survive a restart, and at most 20 wait per run). reply answers a pending permission or question request: decision allow/deny for tools, answer (with answers) for questions, note as an optional message. Obtain request ids from agent_status or agent_wait until=\"event\". A follow-up to a run whose work time (max_minutes) is used up is refused with TIME_CAP: dispatch a new run with its result as context. steer:true with text redirects a run that is still working: its current turn is cut, its context kept, and the change follows at once (use it on the one run the user's change concerns, never to stop other runs). Returns JSON.";
|
|
208
|
-
export declare const agentWaitDescription = "Blocking barrier for orchestration. Waits up to timeout_seconds (max 120) for one run (run_id), several runs (run_ids with mode all/any) or a whole workflow to reach until=\"idle\" (turn finished; default), \"terminal\" (completed, failed, stopped, interrupted) or \"event\" (typed events: by default a result, a question, a permission request, a failure, a stall, a stop; narrow with kinds). An \"event\" answer lists the events with their seq and a cursor: pass it back as after_seq to go on from there. A workflow wait follows runs added to the workflow while it waits. A run suspended or resuming after a SynaBun server restart is still working: keep waiting (a wait cut off by the restart is simply called again, with the same after_seq). Returns
|
|
212
|
+
export declare const agentWaitDescription = "Blocking barrier for orchestration. Waits up to timeout_seconds (max 120) for one run (run_id), several runs (run_ids with mode all/any) or a whole workflow to reach until=\"idle\" (turn finished; default), \"terminal\" (completed, failed, stopped, interrupted) or \"event\" (typed events: by default a result, a question, a permission request, a failure, a stall, a stop; narrow with kinds). An \"event\" answer lists the events with their seq and a cursor: pass it back as after_seq to go on from there. A workflow wait follows runs added to the workflow while it waits. A run suspended or resuming after a SynaBun server restart is still working: keep waiting (a wait cut off by the restart is simply called again, with the same after_seq). Returns compact run descriptors (task, context and turn texts counted, not repeated; questions, permission requests and events whole) and whether the wait timed out; call again to keep waiting. Prefer this over polling agent_status. Returns JSON.";
|
|
209
213
|
export declare const agentStopDescription = "Stop work. run_id stops one run; all:true with your assistant_session_id stops every run of this assistant session, workflow_id every run of a workflow (kill-all). Use when the user cancels, a worker misbehaves, or a time/budget rail is at risk. Returns JSON.";
|
|
210
214
|
export declare const agentFocusDescription = "Bring a run's sidepanel automation tab to the front (focus:false releases it). Use when the user asks to watch a worker; dispatches never steal focus by themselves. Returns JSON.";
|
|
211
215
|
export declare const agentUsageDescription = "Get token usage for a task, run, or entire Assistant session. Returns compact JSON. `session` is the headline the panel shows: every task of this session added up (it only grows, and survives a restart), with a per-model breakdown (models: inputTotal, outputTotal, total, costUsd, costBasis). Below it the task asked for: tokens, USD cost, fidelity, unsynced (rows not on disk yet, normally 0), and each agent's key, title, provider, model, total, sub-agents total, fidelity and state (partialReason when a count is partial; calls on the Jev judgments row). `budget` is the session budget: mode (limited / unlimited: the user chose No limit), the amount, spent and left, warned / exceeded, how the split was made (source jev | fallback, updatedAt) and each provider's share, spent and left (brain marks your own provider; leftUsd is what its workers may still spend), and dry: the providers whose share is used up. Every tokens object has the five additive classes (input = uncached input, cacheWrite, cacheRead, output = visible output, reasoning), total, inputTotal (input + cacheWrite + cacheRead: everything sent to the model) and outputTotal (output + reasoning): the same meaning for every provider, nothing counted twice. costUsd is at API list prices; costBasis says how it is known: reported (the provider reported it), estimated (tokens at list price: Codex and other plan-billed work, where it is the list-price equivalent, not a charge), free, or unpriced (no list price: tokens counted, no dollars). Counts are exact provider counts when fidelity is exact; live marks provisional counts and partial marks incomplete counts. metered:false means this server keeps no usage ledger. No routing is needed.";
|
|
@@ -262,6 +266,8 @@ export declare const agentTeamSchema: {
|
|
|
262
266
|
slice_id: z.ZodOptional<z.ZodString>;
|
|
263
267
|
paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
264
268
|
target_branch: z.ZodOptional<z.ZodString>;
|
|
269
|
+
expected_target_head: z.ZodOptional<z.ZodString>;
|
|
270
|
+
expected_integration_head: z.ZodOptional<z.ZodString>;
|
|
265
271
|
mode: z.ZodOptional<z.ZodEnum<["ff", "merge"]>>;
|
|
266
272
|
user_confirmed: z.ZodOptional<z.ZodBoolean>;
|
|
267
273
|
reason: z.ZodOptional<z.ZodString>;
|
|
@@ -286,6 +292,15 @@ export type AgentUsageArgs = z.infer<z.ZodObject<typeof agentUsageSchema>>;
|
|
|
286
292
|
export declare function handleAgentCatalog(args?: AgentCatalogArgs): Promise<ToolResult>;
|
|
287
293
|
export declare function handleAgentRoute(args: AgentRouteArgs): Promise<ToolResult>;
|
|
288
294
|
export declare function handleAgentClarify(args: AgentClarifyArgs): Promise<ToolResult>;
|
|
295
|
+
/**
|
|
296
|
+
* A run as a roster row or a dispatch answer shows it. The server's view carries the whole run: the task and context
|
|
297
|
+
* the brain wrote itself, the last text and up to 50 turns (each up to 20 KB of text, and its parsed result with the
|
|
298
|
+
* worker's whole final message as `raw`). Those are what agent_read serves; here they are counted, not repeated, so an
|
|
299
|
+
* answer stays small enough for every host (Antigravity spills an output above about 10 KB into a file).
|
|
300
|
+
*/
|
|
301
|
+
export declare function compactRunView(run: unknown, { keepResult }?: {
|
|
302
|
+
keepResult?: boolean;
|
|
303
|
+
}): unknown;
|
|
289
304
|
export declare function handleAgentList(args: AgentListArgs): Promise<ToolResult>;
|
|
290
305
|
export declare function handleAgentDispatch(args: AgentDispatchArgs): Promise<ToolResult>;
|
|
291
306
|
export declare function handleAgentStatus(args: AgentStatusArgs): Promise<ToolResult>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agents.d.ts","sourceRoot":"","sources":["../../src/tools/agents.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAC3B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAGzE,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAarC,eAAO,MAAM,iBAAiB,uEAAuE,CAAC;AAEtG,eAAO,MAAM,gBAAgB,gNAInB,CAAC;AAIX,eAAO,MAAM,YAAY,8IAA+I,CAAC;AAOzK,eAAO,MAAM,eAAe,yMAGlB,CAAC;AAEX,wJAAwJ;AACxJ,eAAO,MAAM,eAAe,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"agents.d.ts","sourceRoot":"","sources":["../../src/tools/agents.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAC3B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAGzE,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAarC,eAAO,MAAM,iBAAiB,uEAAuE,CAAC;AAEtG,eAAO,MAAM,gBAAgB,gNAInB,CAAC;AAIX,eAAO,MAAM,YAAY,8IAA+I,CAAC;AAOzK,eAAO,MAAM,eAAe,yMAGlB,CAAC;AAEX,wJAAwJ;AACxJ,eAAO,MAAM,eAAe,KAAK,CAAC;AAElC,+FAA+F;AAC/F,eAAO,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AC,CAE5E;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,aAAa,GAAG,OAAO,CAAC,UAAU,CAAC,CAMxE;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,aAAa,GAAG,OAAO,CAAC,UAAU,CAAC,CAqBxE;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,aAAa,GAAG,OAAO,CAAC,UAAU,CAAC,CAsBxE;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,aAAa,GAAG,OAAO,CAAC,UAAU,CAAC,CAWxE;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,cAAc,GAAG,OAAO,CAAC,UAAU,CAAC,CAE1E;AAOD,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,cAAc,GAAG,OAAO,CAAC,UAAU,CAAC,CA+E1E;AAuBD,wBAAgB,eAAe,CAAC,IAAI,EAAE,aAAa,GAAG,OAAO,CAAC,UAAU,CAAC,CA8CxE;AAKD;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,SAAS,sEAsBnD"}
|
|
@@ -34,6 +34,11 @@ export const RUN_EVENT_KINDS = [
|
|
|
34
34
|
];
|
|
35
35
|
/** One title limit for agent_route planned_split.slices and agent_team slices[].title (= TEAM_LIMITS.title in neural-interface/lib/teams/schema.js). */
|
|
36
36
|
export const SLICE_TITLE_MAX = 80;
|
|
37
|
+
/** agent_list's page: newest first, AGENT_LIST_DEFAULT runs unless the brain asks for more. */
|
|
38
|
+
export const AGENT_LIST_DEFAULT = 20;
|
|
39
|
+
export const AGENT_LIST_MAX = 100;
|
|
40
|
+
/** How much of a run's result summary a roster row or a dispatch answer keeps (agent_read has the whole result). */
|
|
41
|
+
const RUN_SUMMARY_CHARS = 400;
|
|
37
42
|
const runIdField = (purpose) => z.string().min(1).max(200).describe(purpose);
|
|
38
43
|
const optionalId = (purpose) => z.string().min(1).max(200).optional().describe(purpose);
|
|
39
44
|
// ── Schemas ──
|
|
@@ -87,6 +92,7 @@ export const agentListSchema = {
|
|
|
87
92
|
active_only: z.boolean().optional().describe('true = only queued, running or awaiting runs. Default lists recent runs including finished ones.'),
|
|
88
93
|
assistant_session_id: optionalId('Restrict to runs dispatched by this assistant session (your ASSISTANT_SESSION_ID).'),
|
|
89
94
|
workflow_id: optionalId('Restrict to one workflow (the workflow_id passed to agent_dispatch).'),
|
|
95
|
+
limit: z.number().int().min(1).max(AGENT_LIST_MAX).optional().describe(`How many runs, newest first (default ${AGENT_LIST_DEFAULT}, at most ${AGENT_LIST_MAX}).`),
|
|
90
96
|
};
|
|
91
97
|
export const agentDispatchSchema = {
|
|
92
98
|
provider: z.enum(PROVIDERS).optional().describe('Worker runtime. "claude-code" (Claude Agent SDK; supports permission_policy "ask"), "codex" (Codex app-server; supports questions and permission_policy "ask"), "opencode" (isolated OpenCode serve), "antigravity" (Google Antigravity\'s agy CLI over ACP; supports "ask"; no accounts; reports tokens, not prices, so it runs only when the session budget is No limit). Optional with route_id (the approved route sets it), task_class (the router selects it), or a named agent_ref. Reviews should use a different provider than the author.'),
|
|
@@ -173,12 +179,12 @@ export const agentUsageSchema = {
|
|
|
173
179
|
export const agentCatalogDescription = 'Discover what you can route to: providers (claude-code, codex, opencode, antigravity) with models (tier, price per 1M tokens, vision, context, efforts), plus `chat` (chat-only providers such as maritaca: a side panel the user talks to, prices in BRL, never a dispatch target), accounts with subscription usage remaining (or usage unknown; API keys are n/a), registered projects (cwd candidates), SynaBun tool groups and each host\'s effect, rails/limits, active runs, and `agents`: the SynaBun agents the owner approved, which a dispatch names with agent_ref (ref, name, description, provider/model, task classes, scope global or project, revision; provider and search filter them too). Without arguments it returns a compact routing view (OpenCode sampled); pass provider and/or search to list more models. Call it when the routing sheet in your instructions lacks a model, or after a MODEL_UNKNOWN rejection. Returns JSON.';
|
|
174
180
|
export const agentRouteDescription = 'The runtime taskId owns one card: retries return it even with different wording or proposals. Only a genuinely separate subtask uses its own stable task_key. Plan the whole task before routing it once. At Pair/Team/Swarm, code/complex/research/review target 2/4/6 workers: pass planned_split with that many distinct titles or fewer with a reason. All four require cwd; a non-git project falls back to one worker with a reason. The card shows this split and one approval covers all workers. Follow next: agent_team plan → start for all splits. Research/review pass task_class and empty owned_paths: separate worktrees, no integration or landing; wait and synthesize. Never route individual slices. Other classes and Solo stay single. For work that requires access outside the worker sandbox, set needs_host:true. Only Here is available. The worker-only classes design, image_gen, and video_gen refuse needs_host:true with ROUTE_INVALID. Route an actionable task BEFORE starting it (you are the planner). Give task_class, a one-line summary, your honest confidence (0-1) and 1-3 proposals (direct = here on your model; dispatch = a worker provider/model). proposals.account_id accepts an account id or "auto" (most subscription usage left); limited pinned/default accounts fall back within the provider. The returned target.account includes usage and corrections explain the choice. The server applies the session\'s route mode (always ask / ask when unsure / never ask): it approves at once, or shows the user a route card and waits briefly. A planned split uses workers; on a single-task route card the user can pick here or a worker: follow the returned target.kind and next, never your proposal. Follow the returned status and next: approved+dispatch → follow next with the approved route_id; approved+direct → do it yourself (a route the user kept here is never dispatched: agent_dispatch refuses it with ROUTE_IS_DIRECT); continuation → end your turn (SynaBun continues on the chosen model); pending → end your turn, the choice arrives as a [SynaBun Mailbox] route_decided event; declined → do not start (reason no_capable_model: no model can make the image or video, or see for design; tell the user which Model routes row needs one); clarifying → end your turn, the user has not answered your agent_clarify questions yet (independent:true for a task that does not depend on them). image_gen / video_gen always route to a worker whose model generates the medium, design to a worker whose model can see. With a session budget, a provider whose share is used up cannot take the task: SynaBun first divides the unspent budget again, then moves the task to the next capable provider with money left (your next proposal, the same tier on another provider, then a free model) and says so in corrections (reason budget_share, "budget: codex share used up -> claude-code/sonnet"); the saved routes yield to this. When no provider can pay it declines with reason budget_exhausted and names the dry providers (dry). A host-only route on an unpriced provider declines with reason budget_unpriced (BUDGET_UNPRICED). The result carries budget: each provider\'s share, spent and left. Routed workers inherit the approved agent for their task class; agent_ref "none" opts out. A proposal may name an agent (agent_ref, with cwd for a project\'s own): it is a dispatch on what the agent runs on, unless the proposal names its own. Never use it for conversation or bookkeeping. Returns JSON.';
|
|
175
181
|
export const agentClarifyDescription = 'Ask the user 1-3 targeted questions BEFORE routing a new request that is materially ambiguous: two plausible readings with different results, an unclear target (project, feature, files, audience), destructive or irreversible scope, spend, or memories that conflict with it. Not for clear requests, details a sensible default covers, anything the request, memory or the project answers, or the model (agent_route asks that). Each question gets 2-4 options (recommended first; the user can always type their own); add constraints (what the request fixes) and assumptions (what you will assume for the rest). The card waits briefly. Follow the returned status and next: answered → route, then agent_dispatch with the brief_id (SynaBun adds the user\'s original words, their answers, the constraints and assumptions to the worker\'s context); declined → proceed on your assumptions; pending → end your turn, the answers arrive as a [SynaBun Mailbox] clarify_answered event or as the user\'s next message, and dependent routes and dispatches wait until then. Returns JSON.';
|
|
176
|
-
export const agentListDescription = 'List dispatched worker runs with status, state, provider/model, the agent a run runs as (agentRef, agentRevision; absent for a plain worker), title, elapsed time, work time left (workLeftMs), cost and resumes (how often a server restart cut the run off and it was resumed). Use it before dispatching more work, to recover run ids, or after a mailbox event. Filter with active_only, assistant_session_id (your own session) or workflow_id. Returns JSON.';
|
|
182
|
+
export const agentListDescription = 'List dispatched worker runs with status, state, provider/model, the agent a run runs as (agentRef, agentRevision; absent for a plain worker), title, elapsed time, work time left (workLeftMs), cost and resumes (how often a server restart cut the run off and it was resumed). Use it before dispatching more work, to recover run ids, or after a mailbox event. Filter with active_only, assistant_session_id (your own session) or workflow_id; limit sets how many (newest first, default 20). Each run is compact: the task, context and turn texts are counted, not repeated (agent_read and agent_status have them). Returns JSON.';
|
|
177
183
|
export const agentDispatchDescription = 'Dispatch a task to a worker agent (Claude Code, Codex or OpenCode). Route it first with agent_route and pass the approved route_id (the server applies that provider/model/effort); without one, the dispatch may be held until the user picks a model (awaitingRoute:true — do not dispatch it again; if the user picks "here" instead, the run never starts and a route_decided mailbox event asks you to do the task yourself). A route_id the user decided to keep here is refused (ROUTE_IS_DIRECT): do that task yourself. After agent_clarify, pass its brief_id: the worker gets the user\'s own words and answers; while its questions are open a dependent dispatch is refused (CLARIFICATION_PENDING). The run attaches as a live automation tab in the matching sidepanel without stealing focus. Write a self-contained task that ends with a ## Result block, pass the absolute cwd and your assistant_session_id. Defaults: permission_policy "auto", capability "full", 45 minutes of work time (max_minutes, at least 20), no per-run dollar ceiling (with a budget the run draws from its provider\'s share; a provider whose share is used up and cannot get more is refused with BUDGET_SHARE_EXHAUSTED: route again). Use "ask" only for sensitive scopes (Codex cannot ask: use "restricted"). uses_computer:true for desktop work (one at a time, vision model). uses_browser:true with morelogin_profile (a profile id or name) opens the worker\'s browser tab in that MoreLogin profile for this run only, next to runs in the default or other profiles (only a profile the owner allowed agents to choose; MORELOGIN_PROFILE_NOT_ALLOWED otherwise: tell the user to switch it on in Settings). An image_gen / video_gen run makes the asset with its model\'s own generation tool; SynaBun collects the files into the run\'s result (media: path + url); with no model that generates the medium an un-routed dispatch is refused (NO_CAPABLE_MODEL), and a route_id approved for other work is refused for image_gen / video_gen / design (and the other way round: ROUTE_CLASS_MISMATCH; route the task again with its own class). A design run gets SynaBun\'s design rules and the project\'s style guide, defaults to capability "workspace", uses_browser true, browser, styleguide and image groups, and 60 minutes of work time (explicit values win), runs only on a model confirmed to see (MODEL_CANNOT_SEE otherwise), and its screenshots land in the result\'s media. The class agent applies automatically; agent_ref "none" opts out. An explicit agent_ref runs the worker as one of the owner\'s approved agents (agent_catalog agents): its definition fills what you leave out and its instructions become the worker\'s role, the run carries agentRef and agentRevision, and corrections list what the definition was held to. Group fan-outs with workflow_id, chain with parent_run_id, retry safely with idempotency_key. Over-limit dispatches are queued (queued:true, position). After dispatching, block with agent_wait rather than polling. Returns JSON.';
|
|
178
|
-
export const agentStatusDescription = 'Get one run\'s current descriptor: status (queued, starting, running, completed, failed, stopped, interrupted), state (the detail: also idle, awaiting_permission, and suspended / resuming while a SynaBun server restart cuts a Claude Code worker off and the next start resumes it as the same run, its Claude session and its tab; resumes counts that, at most 3; a run that could not be resumed ends interrupted, with why in notes), turnState (running, idle, awaiting_permission), provider/model/account, the agent it runs as (agentRef, agentRevision, agentPin with what its definition was held to; absent for a plain worker), elapsed time (elapsedMs, wall clock), work time used and left of max_minutes (workMs, workLeftMs), cost, the last parsed result summary and any pending permission or question requests. Cheap; use it between agent_wait calls or before agent_send / agent_stop. Returns JSON.';
|
|
184
|
+
export const agentStatusDescription = 'Get one run\'s current descriptor: status (queued, starting, running, completed, failed, stopped, interrupted), state (the detail: also idle, awaiting_permission, and suspended / resuming while a SynaBun server restart cuts a Claude Code worker off and the next start resumes it as the same run, its Claude session and its tab; resumes counts that, at most 3; a run that could not be resumed ends interrupted, with why in notes), turnState (running, idle, awaiting_permission), provider/model/account, the agent it runs as (agentRef, agentRevision, agentPin with what its definition was held to; absent for a plain worker), elapsed time (elapsedMs, wall clock), work time used and left of max_minutes (workMs, workLeftMs), cost, the last parsed result summary and any pending permission or question requests. The task, context and turn texts are counted, not repeated (agent_read has the texts). Cheap; use it between agent_wait calls or before agent_send / agent_stop. Returns JSON.';
|
|
179
185
|
export const agentReadDescription = 'Read a run\'s output. format "result" (default) returns the parsed ## Result contract (status, summary, changes, follow_ups, question, json, and media: the images / videos an image_gen or video_gen run generated or a design run captured, each { kind, path, url, mime, bytes } — show one with  plus its path); "tail" returns the last transcript events (also after the run ended or the server restarted); "text" the worker\'s assistant text; "files" the files it reported. Call after agent_wait reports idle or terminal; keep max_chars small. A text longer than max_chars is read in pages: the answer carries totalChars, offset and nextOffset; pass offset (0 for the start, then each nextOffset) to read the rest. Returns JSON.';
|
|
180
186
|
export const agentSendDescription = 'Continue a worker\'s conversation. text sends a follow-up turn (queue:true enqueues it while the worker is still running, or while it is suspended / resuming after a server restart: it goes to the worker once resumed; queued follow-ups keep their order, survive a restart, and at most 20 wait per run). reply answers a pending permission or question request: decision allow/deny for tools, answer (with answers) for questions, note as an optional message. Obtain request ids from agent_status or agent_wait until="event". A follow-up to a run whose work time (max_minutes) is used up is refused with TIME_CAP: dispatch a new run with its result as context. steer:true with text redirects a run that is still working: its current turn is cut, its context kept, and the change follows at once (use it on the one run the user\'s change concerns, never to stop other runs). Returns JSON.';
|
|
181
|
-
export const agentWaitDescription = 'Blocking barrier for orchestration. Waits up to timeout_seconds (max 120) for one run (run_id), several runs (run_ids with mode all/any) or a whole workflow to reach until="idle" (turn finished; default), "terminal" (completed, failed, stopped, interrupted) or "event" (typed events: by default a result, a question, a permission request, a failure, a stall, a stop; narrow with kinds). An "event" answer lists the events with their seq and a cursor: pass it back as after_seq to go on from there. A workflow wait follows runs added to the workflow while it waits. A run suspended or resuming after a SynaBun server restart is still working: keep waiting (a wait cut off by the restart is simply called again, with the same after_seq). Returns
|
|
187
|
+
export const agentWaitDescription = 'Blocking barrier for orchestration. Waits up to timeout_seconds (max 120) for one run (run_id), several runs (run_ids with mode all/any) or a whole workflow to reach until="idle" (turn finished; default), "terminal" (completed, failed, stopped, interrupted) or "event" (typed events: by default a result, a question, a permission request, a failure, a stall, a stop; narrow with kinds). An "event" answer lists the events with their seq and a cursor: pass it back as after_seq to go on from there. A workflow wait follows runs added to the workflow while it waits. A run suspended or resuming after a SynaBun server restart is still working: keep waiting (a wait cut off by the restart is simply called again, with the same after_seq). Returns compact run descriptors (task, context and turn texts counted, not repeated; questions, permission requests and events whole) and whether the wait timed out; call again to keep waiting. Prefer this over polling agent_status. Returns JSON.';
|
|
182
188
|
export const agentStopDescription = 'Stop work. run_id stops one run; all:true with your assistant_session_id stops every run of this assistant session, workflow_id every run of a workflow (kill-all). Use when the user cancels, a worker misbehaves, or a time/budget rail is at risk. Returns JSON.';
|
|
183
189
|
export const agentFocusDescription = 'Bring a run\'s sidepanel automation tab to the front (focus:false releases it). Use when the user asks to watch a worker; dispatches never steal focus by themselves. Returns JSON.';
|
|
184
190
|
export const agentUsageDescription = 'Get token usage for a task, run, or entire Assistant session. Returns compact JSON. `session` is the headline the panel shows: every task of this session added up (it only grows, and survives a restart), with a per-model breakdown (models: inputTotal, outputTotal, total, costUsd, costBasis). Below it the task asked for: tokens, USD cost, fidelity, unsynced (rows not on disk yet, normally 0), and each agent\'s key, title, provider, model, total, sub-agents total, fidelity and state (partialReason when a count is partial; calls on the Jev judgments row). `budget` is the session budget: mode (limited / unlimited: the user chose No limit), the amount, spent and left, warned / exceeded, how the split was made (source jev | fallback, updatedAt) and each provider\'s share, spent and left (brain marks your own provider; leftUsd is what its workers may still spend), and dry: the providers whose share is used up. Every tokens object has the five additive classes (input = uncached input, cacheWrite, cacheRead, output = visible output, reasoning), total, inputTotal (input + cacheWrite + cacheRead: everything sent to the model) and outputTotal (output + reasoning): the same meaning for every provider, nothing counted twice. costUsd is at API list prices; costBasis says how it is known: reported (the provider reported it), estimated (tokens at list price: Codex and other plan-billed work, where it is the list-price equivalent, not a charge), free, or unpriced (no list price: tokens counted, no dollars). Counts are exact provider counts when fidelity is exact; live marks provisional counts and partial marks incomplete counts. metered:false means this server keeps no usage ledger. No routing is needed.';
|
|
@@ -198,7 +204,7 @@ const teamSliceSchema = z.object({
|
|
|
198
204
|
agent_ref: z.string().min(1).max(140).optional().describe('Run this slice\'s worker as one of the owner\'s agents (an id from agent_catalog agents).'),
|
|
199
205
|
});
|
|
200
206
|
export const agentTeamSchema = {
|
|
201
|
-
action: z.enum(AGENT_TEAM_ACTIONS).describe('plan: check a plan (density, overlapping files, dependency cycles) and return it normalized; creates nothing. start: create the worktrees and dispatch the workers. status: slices, runs, claims, the integration branch, the last events. assign: give unowned paths to a slice. set_test_command: correct the test command before the first join attempt. integrate: try again after a needs_attention. land: the integration branch into the user\'s branch. cleanup: after successful land and the user\'s yes, delete finished team worktrees/branches. discard: give the team up. list: this session\'s teams.'),
|
|
207
|
+
action: z.enum(AGENT_TEAM_ACTIONS).describe('plan: check a plan (density, overlapping files, dependency cycles) and return it normalized; creates nothing. start: create the worktrees and dispatch the workers. status: slices, runs, claims, the integration branch, the landing as it stands (landing.preview), the last events. assign: give unowned paths to a slice. set_test_command: correct the test command before the first join attempt. integrate: try again after a needs_attention. land: the integration branch into the user\'s branch. cleanup: after successful land and the user\'s yes, delete finished team worktrees/branches. discard: give the team up. list: this session\'s teams.'),
|
|
202
208
|
assistant_session_id: optionalId('Your ASSISTANT_SESSION_ID (plan, start, list).'),
|
|
203
209
|
team_id: z.string().min(1).max(40).optional().describe('Required for status, assign, set_test_command, integrate, land, cleanup and discard. For start, use the team_id from plan or let the server generate one.'),
|
|
204
210
|
title: z.string().min(1).max(80).optional().describe('plan / start: the team\'s task in a few words.'),
|
|
@@ -222,7 +228,9 @@ export const agentTeamSchema = {
|
|
|
222
228
|
brief_id: optionalId('start: the brief_id of a clarification, so every worker gets the user\'s own words and answers.'),
|
|
223
229
|
slice_id: z.string().min(1).max(40).optional().describe('assign: the slice receiving the paths. integrate: retry only this slice (omitted: every slice that is not joined).'),
|
|
224
230
|
paths: z.array(z.string().min(1).max(300)).min(1).max(64).optional().describe('assign: unowned project-relative paths or patterns to add to this slice, using the plan’s ownership rules.'),
|
|
225
|
-
target_branch: z.string().min(1).max(200).optional().describe('land: the branch that receives the work (default: the branch
|
|
231
|
+
target_branch: z.string().min(1).max(200).optional().describe('land: the branch that receives the work (default: the team\'s recorded base branch, the branch the project was on when the team was created; never the branch that happens to be checked out). status shows it as landing.preview.targetBranch.'),
|
|
232
|
+
expected_target_head: z.string().min(40).max(64).optional().describe('land: the full commit id status gave as landing.preview.targetHead. If the target branch is elsewhere when the landing runs, nothing moves and the answer is LANDING_PREVIEW_STALE with the fresh preview.'),
|
|
233
|
+
expected_integration_head: z.string().min(40).max(64).optional().describe('land: the full commit id status gave as landing.preview.integrationHead. If the integration branch is elsewhere when the landing runs, nothing moves and the answer is LANDING_PREVIEW_STALE with the fresh preview.'),
|
|
226
234
|
mode: z.enum(['ff', 'merge']).optional().describe('land: "ff" (default) moves the branch forward to the integration branch; "merge" makes a merge commit.'),
|
|
227
235
|
user_confirmed: z.boolean().optional().describe('cleanup: true only after the user says yes to deleting the landed team worktrees and branches; otherwise refused locally.'),
|
|
228
236
|
reason: z.string().max(240).optional().describe('discard: why.'),
|
|
@@ -231,7 +239,8 @@ export const agentTeamDescription = 'Code/complex/research/review: plan the task
|
|
|
231
239
|
'Flow: agent_route the task once → action "plan" (returns the normalized plan with its team_id and base_commit, the density check and any errors; creates nothing) → action "start" with that plan and the approved route_id (returns workflow_id) → agent_wait on the workflow_id → a team_ready mailbox event → action "status" → action "land", or ask the user. ' +
|
|
232
240
|
'For a request_change on an unowned path, use "assign" with team_id, slice_id and paths. The worker receives the new scope. Use "set_test_command" to correct the verification command before the first join attempt. ' +
|
|
233
241
|
'SynaBun commits each finished slice\'s own files, joins them on synabun/<team>/integration in dependency order and runs test_command on that exact commit; a conflict or failed tests go back to the slice\'s worker with the report (twice), then a needs_attention event reaches you: read "status", help with agent_send, then "integrate", or "discard". ' +
|
|
234
|
-
'Landing rule: land yourself only when you judge the work ready, the integration tests passed, the user\'s branch has not moved and no file with local changes is touched; land returns SynaBun\'s refusal report unchanged (TESTS_NOT_PASSED, NOT_FAST_FORWARD, OWNER_BRANCH_MOVED, DIRTY_FILES_AFFECTED, TEAM_NOT_READY…). On a refusal do not retry or work around it: ask the user. ' +
|
|
242
|
+
'Landing rule: land yourself only when you judge the work ready, the integration tests passed, the user\'s branch has not moved and no file with local changes is touched; land returns SynaBun\'s refusal report unchanged (TESTS_NOT_PASSED, NOT_FAST_FORWARD, OWNER_BRANCH_MOVED, DIRTY_FILES_AFFECTED, TEAM_NOT_READY, NOTHING_TO_LAND…). On a refusal do not retry or work around it: ask the user. ' +
|
|
243
|
+
'What a landing would do is status → landing.preview: { targetBranch, targetHead, integrationHead, testCommand, testsPassedOnHead, canLand, code, reason }. targetBranch is the team\'s recorded base branch, the default target of land, whatever branch is checked out now; canLand false comes with the refusal code land would answer and why. Pass its targetHead and integrationHead to land as expected_target_head and expected_integration_head: if either branch moved in between, nothing is landed and LANDING_PREVIEW_STALE returns the fresh preview; read it and decide again, or ask the user. ' +
|
|
235
244
|
'Cleanup: successful land returns cleanup (worktrees, branches). When the task is fully finished, suggest deleting them with a synabun-followups confirm card. Only after the user says yes call cleanup with team_id and user_confirmed:true. The server requires a landed team, every run ended done, every branch merged into the target and every worktree clean. Refusals CLEANUP_NOT_CONFIRMED, TEAM_NOT_LANDED, TEAM_RUNS_ACTIVE, BRANCH_NOT_MERGED, BRANCH_MOVED (a branch moved after the check), WORKTREE_DIRTY remove nothing: keep them and tell the user which check failed. Never delete team worktrees or branches with git directly. Returns JSON.';
|
|
236
245
|
function json(result) {
|
|
237
246
|
return text(JSON.stringify(result, null, 2));
|
|
@@ -278,12 +287,68 @@ export function handleAgentClarify(args) {
|
|
|
278
287
|
assumptions: args.assumptions,
|
|
279
288
|
})));
|
|
280
289
|
}
|
|
290
|
+
/**
|
|
291
|
+
* A run as a roster row or a dispatch answer shows it. The server's view carries the whole run: the task and context
|
|
292
|
+
* the brain wrote itself, the last text and up to 50 turns (each up to 20 KB of text, and its parsed result with the
|
|
293
|
+
* worker's whole final message as `raw`). Those are what agent_read serves; here they are counted, not repeated, so an
|
|
294
|
+
* answer stays small enough for every host (Antigravity spills an output above about 10 KB into a file).
|
|
295
|
+
*/
|
|
296
|
+
export function compactRunView(run, { keepResult = false } = {}) {
|
|
297
|
+
if (!run || typeof run !== 'object' || Array.isArray(run))
|
|
298
|
+
return run;
|
|
299
|
+
const { task, context, lastText, turns, lastResult, ...rest } = run;
|
|
300
|
+
const out = { ...rest };
|
|
301
|
+
if (typeof task === 'string')
|
|
302
|
+
out.taskChars = task.length;
|
|
303
|
+
if (typeof context === 'string' && context)
|
|
304
|
+
out.contextChars = context.length;
|
|
305
|
+
if (typeof lastText === 'string' && lastText)
|
|
306
|
+
out.lastTextChars = lastText.length;
|
|
307
|
+
if (Array.isArray(turns) && typeof out.turnCount !== 'number')
|
|
308
|
+
out.turnCount = turns.length;
|
|
309
|
+
if (keepResult && lastResult && typeof lastResult === 'object') {
|
|
310
|
+
// agent_status / agent_wait: the parsed result whole (changes, files, follow-ups, media, question), the
|
|
311
|
+
// worker's whole final message (`raw`) aside.
|
|
312
|
+
const { raw: _raw, ...result } = lastResult;
|
|
313
|
+
out.lastResult = result;
|
|
314
|
+
}
|
|
315
|
+
else if (lastResult && typeof lastResult === 'object') {
|
|
316
|
+
const result = lastResult;
|
|
317
|
+
const summary = typeof result.summary === 'string' ? result.summary : '';
|
|
318
|
+
out.lastResult = {
|
|
319
|
+
status: result.status ?? null,
|
|
320
|
+
summary: summary.length > RUN_SUMMARY_CHARS ? `${summary.slice(0, RUN_SUMMARY_CHARS)}…` : summary,
|
|
321
|
+
...(typeof result.question === 'string' && result.question ? { question: result.question } : {}),
|
|
322
|
+
};
|
|
323
|
+
}
|
|
324
|
+
else if (lastResult !== undefined)
|
|
325
|
+
out.lastResult = lastResult;
|
|
326
|
+
return out;
|
|
327
|
+
}
|
|
328
|
+
/**
|
|
329
|
+
* An answer whose runs are compacted (compactRunView): `run`, `runs`, and agent_wait's `done` / `pending`.
|
|
330
|
+
* Everything else as it came: a wait's `needsInput`, `permissions` and `events` (the questions and permission
|
|
331
|
+
* requests to answer) and a run's own `pending` requests stay whole.
|
|
332
|
+
*/
|
|
333
|
+
function withCompactRuns(answer, options = {}) {
|
|
334
|
+
if (!answer || typeof answer !== 'object' || Array.isArray(answer))
|
|
335
|
+
return answer;
|
|
336
|
+
const out = { ...answer };
|
|
337
|
+
const compact = (run) => compactRunView(run, options);
|
|
338
|
+
for (const key of ['runs', 'done', 'pending'])
|
|
339
|
+
if (Array.isArray(out[key]))
|
|
340
|
+
out[key] = out[key].map(compact);
|
|
341
|
+
if (out.run && typeof out.run === 'object')
|
|
342
|
+
out.run = compact(out.run);
|
|
343
|
+
return out;
|
|
344
|
+
}
|
|
281
345
|
export function handleAgentList(args) {
|
|
282
|
-
return guarded(async () => json(await ni.assistantListRuns({
|
|
346
|
+
return guarded(async () => json(withCompactRuns(await ni.assistantListRuns({
|
|
283
347
|
activeOnly: args.active_only === true,
|
|
284
348
|
assistantSessionId: args.assistant_session_id,
|
|
285
349
|
workflowId: args.workflow_id,
|
|
286
|
-
|
|
350
|
+
limit: args.limit ?? AGENT_LIST_DEFAULT,
|
|
351
|
+
}))));
|
|
287
352
|
}
|
|
288
353
|
export function handleAgentDispatch(args) {
|
|
289
354
|
return guarded(async () => {
|
|
@@ -295,7 +360,8 @@ export function handleAgentDispatch(args) {
|
|
|
295
360
|
const selection = resolveToolList(args.tools, { source: 'dispatch', provider: args.provider, usesBrowser: args.uses_browser, taskClass: args.task_class });
|
|
296
361
|
if (!selection.ok)
|
|
297
362
|
return { ...json(selection), isError: true };
|
|
298
|
-
|
|
363
|
+
// The answer's run is compacted (compactRunView): the brain wrote the task and context it would echo.
|
|
364
|
+
return json(withCompactRuns(await ni.assistantDispatch({
|
|
299
365
|
provider: args.provider,
|
|
300
366
|
task: args.task,
|
|
301
367
|
cwd: args.cwd,
|
|
@@ -332,11 +398,11 @@ export function handleAgentDispatch(args) {
|
|
|
332
398
|
idempotencyKey: args.idempotency_key,
|
|
333
399
|
briefId: args.brief_id,
|
|
334
400
|
independent: args.independent,
|
|
335
|
-
}));
|
|
401
|
+
})));
|
|
336
402
|
});
|
|
337
403
|
}
|
|
338
404
|
export function handleAgentStatus(args) {
|
|
339
|
-
return guarded(async () => json(await ni.assistantRun(args.run_id)));
|
|
405
|
+
return guarded(async () => json(withCompactRuns(await ni.assistantRun(args.run_id), { keepResult: true })));
|
|
340
406
|
}
|
|
341
407
|
export function handleAgentRead(args) {
|
|
342
408
|
return guarded(async () => {
|
|
@@ -379,11 +445,11 @@ export function handleAgentWait(args) {
|
|
|
379
445
|
if (!multi) {
|
|
380
446
|
if (!args.run_id)
|
|
381
447
|
return invalid('Provide run_id, run_ids or workflow_id.');
|
|
382
|
-
return json(await ni.assistantWaitRun(args.run_id, { until, timeoutMs, afterSeq: args.after_seq, kinds: args.kinds }));
|
|
448
|
+
return json(withCompactRuns(await ni.assistantWaitRun(args.run_id, { until, timeoutMs, afterSeq: args.after_seq, kinds: args.kinds }), { keepResult: true }));
|
|
383
449
|
}
|
|
384
450
|
if (args.run_id && !runIds.includes(args.run_id))
|
|
385
451
|
runIds.unshift(args.run_id);
|
|
386
|
-
return json(await ni.assistantWaitMany({
|
|
452
|
+
return json(withCompactRuns(await ni.assistantWaitMany({
|
|
387
453
|
runIds: runIds.length ? runIds : undefined,
|
|
388
454
|
workflowId: args.workflow_id,
|
|
389
455
|
mode: args.mode || (until === 'event' ? 'any' : 'all'),
|
|
@@ -391,7 +457,7 @@ export function handleAgentWait(args) {
|
|
|
391
457
|
timeoutMs,
|
|
392
458
|
afterSeq: args.after_seq,
|
|
393
459
|
kinds: args.kinds,
|
|
394
|
-
}));
|
|
460
|
+
}), { keepResult: true }));
|
|
395
461
|
});
|
|
396
462
|
}
|
|
397
463
|
export function handleAgentStop(args) {
|
|
@@ -561,8 +627,11 @@ export function handleAgentTeam(args) {
|
|
|
561
627
|
return json(await ni.assistantTeamSetTestCommand(args.team_id, args.test_command));
|
|
562
628
|
case 'integrate':
|
|
563
629
|
return needTeam() ?? json(await ni.assistantTeamIntegrate(args.team_id, { sliceId: args.slice_id }));
|
|
564
|
-
case 'land':
|
|
565
|
-
|
|
630
|
+
case 'land': {
|
|
631
|
+
// The heads the landing was decided on (status → landing.preview): the server refuses when they moved.
|
|
632
|
+
const landing = { targetBranch: args.target_branch, mode: args.mode, expectedTargetHead: args.expected_target_head, expectedIntegrationHead: args.expected_integration_head };
|
|
633
|
+
return needTeam() ?? json(await ni.assistantTeamLand(args.team_id, landing));
|
|
634
|
+
}
|
|
566
635
|
case 'cleanup':
|
|
567
636
|
if (args.user_confirmed !== true)
|
|
568
637
|
return json({ ok: false, code: 'CLEANUP_NOT_CONFIRMED', message: 'Cleanup requires the user to confirm deleting the team worktrees and branches.' });
|