Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .grace/graph/index.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@
<M-TELEGRAM-BOT-API />
<M-TELEGRAM-CONFIG />
<M-PLUGIN-SPEC-GUARD />
<M-GUI-SPIKE />
<M-PLUGIN-GUI-SETTINGS />
<M-WEB-CONFIG />
<M-WEB-HTTP />
<M-WEB-SEARCH-SERVICE />
Expand Down
2 changes: 2 additions & 0 deletions .grace/graph/main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
<M-TELEGRAM-GATEWAY><Name>TelegramGateway</Name><Type>INTEGRATION</Type><Status>implemented</Status><Purpose>Bridge native sessions to Telegram topics and own the polling loop: structural event decoding without casting for session lifecycle, step, part-text, permission, question, and child-session events with per-event containment; top-level-only candidate reconciliation with immediate adoption of new sessions on creation, a resubscribing event pump with a periodic resync that purges evicted-thread delivery state; prompt, abort, and model-switch admission; streamed turns through the delivery layer; status transitions through throttled titles; bounded subagent cards; and the persisted-offset long-poll loop with owner allowlist, stale dropping, album grouping, and bounded backoff.</Purpose><Paths>src/plugins/telegram/sessions.ts, src/plugins/telegram/gateway.ts, src/plugins/telegram/commands.ts</Paths><Depends>M-TELEGRAM-TOPICS, M-TELEGRAM-DELIVERY, M-TELEGRAM-BOT-API</Depends><Verification>V-M-TELEGRAM-GATEWAY</Verification></M-TELEGRAM-GATEWAY>
<M-PLUGIN-TELEGRAM-BRIDGE><Name>TelegramBridgePlugin</Name><Type>INTEGRATION</Type><Status>implemented</Status><Purpose>Assemble the native vvoc.telegram server plugin: resolve the telegram section and toggle with value-free disabled diagnostics, run exactly one grammy gateway per process behind an app-identity singleton, wire topology, delivery, session bridge, interactions, commands, and the polling gateway over structural context and full-client seams, register owner commands, resurface pending permissions, and tear everything down in reverse on the last cleanup with partial-setup rollback; the entire bootstrap including native client acquisition runs as a supervised background task with bounded backoff retries after setup returns, because awaiting the client during setup deadlocks server boot, and every bootstrap await is abortable so cleanup resolves even when the client never becomes ready, and the assembly wires the maxTopics rotation cap and a bounded file log whose tail the CLI reads.</Purpose><Paths>src/plugins/telegram/index.ts, src/plugins/telegram/log.ts</Paths><Depends>M-NATIVE-RUNTIME, M-TELEGRAM-GATEWAY, M-TELEGRAM-TOPICS, M-TELEGRAM-DELIVERY, M-TELEGRAM-BOT-API, M-TELEGRAM-CONFIG, M-PLUGIN-TOGGLE-CONFIG, M-CLI-CONFIG, @opencode/plugin</Depends><Verification>V-M-PLUGIN-TELEGRAM-BRIDGE</Verification></M-PLUGIN-TELEGRAM-BRIDGE>
<M-PLUGIN-SPEC-GUARD><Name>SpecGuardPlugin</Name><Type>INTEGRATION</Type><Status>implemented</Status><Purpose>Annotate reads of active spec-package artifacts with cache-backed lint verdicts through tool.execute.after, validate post-write state with sibling spec cross-file inputs, refuse enforce-mode full-content writes that would leave ERROR findings through tool.execute.before, never annotate archived files, and degrade fail-open on any internal error.</Purpose><Paths>src/plugins/spec-guard/index.ts</Paths><Depends>M-SPEC-LINT, M-CONFIG-LAYERS, M-PLUGIN-TOGGLE-CONFIG</Depends><Verification>V-M-PLUGIN-SPEC-GUARD</Verification></M-PLUGIN-SPEC-GUARD>
<M-GUI-SPIKE><Name>GuiSpike</Name><Type>INTEGRATION</Type><Status>implemented</Status><Purpose>Ship the minimal experimental `./gui-experimental` window part and its portable versioned RPC contract: a "vvoc" settings page stub and a composer pill that show the orchestration profile from the effective vvoc defaults through `vvoc.gui.v1` (defaults.get/set, session.get/patch) with strict Effect Schema codecs bridged to the portable Standard Schema surface, host ui components, and an English i18n catalog; the bundle builds with the host-provided Vite GUI preset as one CommonJS file.</Purpose><Paths>src/gui-experimental.tsx, src/rpc.ts, src/rpc.test.ts, scripts/vite-gui.ts, scripts/gui-bundle.test.ts</Paths><Depends>M-PLUGIN-GUI-SETTINGS, M-CONFIG-LAYERS, M-PLUGIN-TOGGLE-CONFIG, @opencode/plugin/gui, vite, solid-js</Depends><Verification>V-M-GUI-SPIKE</Verification></M-GUI-SPIKE>
<M-PLUGIN-GUI-SETTINGS><Name>GuiSettingsPlugin</Name><Type>INTEGRATION</Type><Status>implemented</Status><Purpose>Register the versioned GUI RPC (`vvoc.gui.v1`) on the native server context so the `./gui-experimental` window part reads the bounded effective-defaults projection, writes the orchestration profile through the conservative CLI write path with an explicit global/project scope, and receives honest stub/unsupported session-settings verdicts with value-free error mapping; teardown disposes only its own registration.</Purpose><Paths>src/plugins/gui-settings.ts</Paths><Depends>M-GUI-SPIKE, M-CONFIG-LAYERS, M-PLUGIN-TOGGLE-CONFIG, M-NATIVE-RUNTIME, M-CLI-COMMANDS</Depends><Verification>V-M-PLUGIN-GUI-SETTINGS</Verification></M-PLUGIN-GUI-SETTINGS>
<M-PLUGIN-CONTEXT-TUI><Name>ContextTuiPlugin</Name><Type>INTEGRATION</Type><Status>implemented</Status><Purpose>Register /context and the /vv-settings explicit family-settings command in the native OpenCode TUI, collect the selected session&#8217;s location-scoped state through the read-only versioned context-inspection RPC (registered tool catalog plus allowlisted family or current-runtime policy) together with provider-reported usage and active message history, combine measured truth with honest observable category estimates, classify canonical web tools as vvoc-managed, derive reconciled per-tool and per-MCP schema/history attribution and context-limit percentages, disclose schema catalogs the host cannot expose, render a bounded Overview/Tools/MCP dialog, and fail softly on missing or ambiguous state; the default TUI module also registers the analytics indicator, branding footer, and persistent peak-hours banner beside /context.</Purpose><Paths>src/tui.tsx, src/tui/settings/plugin.ts, src/tui/context/*.ts, src/tui/context/*.tsx</Paths><Depends>M-NATIVE-RUNTIME, M-CONFIG-LAYERS, M-CLI-CONFIG, M-PLUGIN-TOGGLE-CONFIG, M-TUI-PEAK-HOURS-BANNER, @opencode/plugin/tui, @opentui/keymap, @opentui/solid, solid-js</Depends><Verification>V-M-PLUGIN-CONTEXT-TUI</Verification></M-PLUGIN-CONTEXT-TUI>
<M-PLUGIN-WEB-TOOLS><Name>WebToolsPlugin</Name><Type>INTEGRATION</Type><Status>implemented</Status><Purpose>Register web_search and web_fetch with closed provider-neutral input schemas and declared text/metadata/attachment result envelopes, reject unknown or invalid fields before dispatch, and select per family between the owned tools and the genuine native websearch/webfetch builtins through per-session tool visibility driven by the family-settings projection — never by mutating user permissions or unrelated host/MCP tools — while resolving provider config per session and reporting credential source metadata.</Purpose><Paths>src/plugins/web-tools/index.ts, src/plugins/web-tools/schemas.ts, src/plugins/web-tools/contracts.test.ts, src/plugins/web-tools.integration.test.ts</Paths><Depends>M-NATIVE-RUNTIME, M-WEB-CONFIG, M-WEB-SEARCH-SERVICE, M-WEB-FETCH-SERVICE, M-CONFIG-LAYERS, M-PLUGIN-TOGGLE-CONFIG, M-AGENT-TOOL-CONTRACT</Depends><Verification>V-M-PLUGIN-WEB-TOOLS</Verification></M-PLUGIN-WEB-TOOLS>
<M-PLUGIN-TOOL-HISTORY-COMPACTION><Name>ToolHistoryCompactionPlugin</Name><Type>INTEGRATION</Type><Status>implemented</Status><Purpose>Shrink the replayed conversation context non-destructively: through the native session context hook, deterministically rewrite only the in-memory tool part outputs the model is about to receive under the family&#8217;s resolved settings — collapsing old read outputs to [Read &lt;file&gt;, lines X-Y] headers and head/marker/tail pruning over-budget ephemeral outputs (bash/grep/glob), while retaining knowledge outputs (web fetch/search, skill, subagent) — with an absolute recency-time recent-message window (protectRecentMessages, default 8) that never rewrites the working context, per-call protection that retained tools no longer consume, recoverable disk-backed pruning (savePrunedOutput with the full output path embedded in the marker), a min-savings guard, and strict vvoc config materialized on sync.</Purpose><Paths>src/plugins/tool-history-compaction/*.ts</Paths><Depends>M-NATIVE-RUNTIME, M-PLUGIN-TOGGLE-CONFIG, M-CONFIG-LAYERS, M-CLI-CONFIG</Depends><Verification>V-M-PLUGIN-TOOL-HISTORY-COMPACTION</Verification></M-PLUGIN-TOOL-HISTORY-COMPACTION>
Expand Down
2 changes: 2 additions & 0 deletions .grace/verification/index.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@
<V-M-TUI-PEAK-HOURS-BANNER />
<V-M-SPEC-LINT />
<V-M-PLUGIN-SPEC-GUARD />
<V-M-GUI-SPIKE />
<V-M-PLUGIN-GUI-SETTINGS />
<V-M-WEB-CONFIG />
<V-M-WEB-HTTP />
<V-M-WEB-SEARCH-SERVICE />
Expand Down
Loading
Loading