Repository navigation
@agent-native/core@0.41.0
Minor Changes
-
520d641: Add global (admin) hide for extensions. The
toolstable gains additive
hidden_at/hidden_bycolumns (distinct from the existing per-user
tool_hidden_extensionshide). When set, the extension is hidden from
everyone's Extensions list/sidebar without being deleted.listExtensionsnow excludes globally-hidden extensions by default and
acceptsincludeGloballyHidden: trueto surface them.- New store helpers
globalHideExtension/globalUnhideExtension(require
owner/admin access) and new agent actionsglobal-hide-extension/
global-unhide-extension.list-extensionsacceptsincludeGloballyHidden
and reportsgloballyHidden/hiddenAt/hiddenByper extension. - The extensions list endpoint accepts
?includeGloballyHidden=true. - The Extensions sidebar and list page add a "Hide from everyone" /
"Unhide for everyone" affordance for admins plus a "Show hidden" toggle.
-
520d641: Notion-style code blocks for the shared editor and plan surfaces. The rich
markdown editor's fenced code blocks now render through a shared
createCodeBlockNodenode view with a language picker header (Auto-detects by
default) instead of a bare highlighted<pre>, and the editor code surface
follows the app's light/dark--muted/--foreground/--bordertokens instead
of a hardcoded dark navy. The read-sideCodeSurface(code tabs, API specs,
markdown read view) gains a language label and collapses long snippets behind a
"Show N more lines" toggle (default 30 lines, configurable per code tab via the
newmaxLinesfield,0to disable) rather than scrolling a fixed-height box.
New exports:createCodeBlockNode,DEFAULT_CODE_LANGUAGES,CodeSurface,
HighlightedCode,prettyLanguageName,DEFAULT_CODE_MAX_LINES. -
520d641: PR Visual Recap is now LLM-driven. Instead of a deterministic diff→MDX
generator, thepr-visual-recapGitHub Action runs the repo'svisual-recap
skill via a real coding agent (Claude Code by default, or Codex — selected with
theVISUAL_RECAP_AGENTrepo variable), which publishes the plan through the
plan MCP tools. The workflow screenshots the published plan in headless Chrome,
uploads it to the new signedrecap-imageroute, and posts the screenshot
inline in the sticky PR comment.New CLI surface backing the action:
agent-native recap <scan|build-prompt|shot|comment>— the helper commands
the workflow calls (no helper scripts are copied into the consuming repo).agent-native skills add visual-plan --with-github-action— installs the PR
Visual Recap workflow into a repo and prints the secrets/variables to set.
The agent-produced plan URL is treated as untrusted throughout: the screenshot
CLI only forwards the publish token to requests whose origin matches the plan
app (so a poisonedrecap-url.txtcan't exfiltrate it to a third party or via
cross-origin subresources), and the workflow passes the URL through the
environment rather than${{ }}shell interpolation. The workflow runs on PRs
into any base branch (not justmain) so the generated workflow works in repos
with a different default branch. -
520d641: Add a standard
codedev-doc block: a single syntax-highlighted snippet
(Notion-style — one border, hover-revealed language switcher + copy button,
collapse-to-N-lines) with an optional filename header. It is the primitive code
block; a multi-file "rail" is just atabsblock containingcodeblocks, so
there is no bespoke container. The legacycode-tabsblock stays renderable for
stored documents but is no longer authored. The pure schema/MDX config lives in
code.config.ts(React-free, safe for the server MDX adapter and SSR bundle).
Patch Changes
-
520d641: annotated-code: mute the per-annotation line-range label (
LINES 3–6/LINE 8) to a quiet gray (text-plan-muted) instead of bright amber, so the range reads as secondary metadata and the annotation label stays the focus. -
520d641: Plans docs now lead with the two-command story —
/visual-plan(plan before
implementation) and/visual-recap(review a change that already landed).
Documented/visual-recapon the Plans (template-plan) and Visual Plans pages,
cross-linked PR Visual Recap, and stopped documenting the/ui-plan,
/prototype-plan,/plan-design, and/visual-questionscompanion commands as
separate surfaces (their capabilities are folded into/visual-plan). The skills
themselves are unchanged. -
520d641: Re-add and redesign the
annotated-codedev-doc block for Plans/Content (block
source, client/server registries, schema, slash menu, and skill guidance).The read view now renders a standard syntax-highlighted code surface (shared
code-highlightlowlight palette, matching thecode-tabsblock) with a
highlight band + accent rail on annotated line ranges and the notes as
always-visible cards to the side (Stripe-docs "explain this code" layout).
Code lines render as spans rather than one<pre>per line, so they no longer
pick up document code/pre chrome, and the surface is theme-aware in light and
dark. Restores the block removed in the previous patch while keeping the SSR
cold-start smoke test. -
520d641: Add a signed, content-only recap PNG image route so the PR visual-recap GitHub
Action can inline a recap screenshot into a (private-repo) PR comment.POST /_agent-native/recap-imagestores a PNG (rawimage/pngbytes or JSON
{ pngBase64 }, capped at ~5 MB) and returns
{ imageUrl: "<origin>/_agent-native/recap-image/<token>.png" }. It
authenticates with the SAMEagent-native connectbearer token the MCP /
action surface accepts (legacysessionsbearer or a connect-minted MCP
OAuth access token, audience-bound to this app's MCP resource via the
canonicalverifyAuth), plus normal browser session cookies. Unauthenticated
callers get a 401.GET /_agent-native/recap-image/<token>.pngserves the opaque bytes
anonymously (so GitHub's camo image proxy can fetch them) with a strict
Content-Type: image/pngand a long immutable cache header. Tokens are 32+
hex chars (no directory traversal); unknown tokens 404. The interactive plan
stays login-gated.
Storage is a new additive, dialect-agnostic
recap_imagestable created via
CREATE TABLE IF NOT EXISTS(PNG kept as base64 TEXT for portability across
SQLite / Neon-Postgres / libSQL / D1). Stored images are pruned on write past a
30-day TTL so the table and the set of anonymously-fetchable image URLs stay
bounded.