{"schema":"ankle.atcmd.registry.v1","product":{"name":"@command","owner":"ANKLE","summary":"Portable ANKLE terminal, widget runtime, source attribution bridge, and external-site activation layer.","canonical_widget_src":"https://ankle.website/atcmd/widget.js","runtime_widget_src":"https://aleqth.com/atcmd/widget.js","registry_url":"https://aleqth.com/atcmd/registry","manifest_url":"https://aleqth.com/atcmd/manifest"},"portable_protocol":{"schema":"ankle.atcmd.command.v1","grammar":"@<actor> ⌘ <verb> [arguments]","request":{"required":["input"],"fields":["schema","request_id","input","surface","page","origin","context_stack","context","selection","attachments","arguments","confirm","idempotency_key"],"idempotency_key":"Stable retry key for operations that accept one; never authority.","authority":"Every action resolves to one exact, revocable Agent Bridge scope. The protocol is not a super-scope."},"server":{"catalog":"GET /api/agent-bridge/command/catalog","plan":"POST /api/agent-bridge/command/plan","run":"POST /api/agent-bridge/command/run"},"result":{"schema":"ankle.atcmd.result.v1","fields":["status","request_id","command","result","receipt"],"authority":"A successful run carries a server audit id and authoritative=true. A plan validates but never executes."},"adapters":{"web_widget":"Browser-native commands stay on the browser surface; portable commands use the Agent Bridge envelope.","cli":"ankle commands; ankle command plan|run '@<actor> ⌘ <verb>' --payload '{...}'","mcp":"ankle_command_catalog, ankle_plan_command, and ankle_run_command","telegram":"Future adapter over the same catalog, plan, run, exact-scope, and audit model; never a separate authority model."},"portable_v1_policy":"Reads and owner-reviewed proposals only. Direct publish, wallet, payment, visibility, paid-generation, and arbitrary-write commands are excluded."},"domain_roles":{"ankle.website":{"role":"public distribution and install surface","duties":["host the canonical product story","offer the browser extension and public widget installer","route builders to /widget, /install, /credits, and examples"]},"ankle.md":{"role":"protocol canon and static spec mirror","duties":["publish the @command protocol shape","mirror snippets and verification docs","serve as the low-noise reference for agents and builders"]},"aleqth.com":{"role":"authenticated runtime, account, API, credits, and lab","duties":["own identity handoff and app tokens","write analytics and SURF attribution events","serve God-eye, Operator Desk, dashboard, credits, and data APIs"]},"external_hosts":{"role":"third-party pages activated as ANKLE surfaces","duties":["load the public widget script","declare widgets and sources with data attributes","send usage signals into the ANKLE graph while keeping their own domain and design"]}},"activation_flow":[{"step":"discover","actor":"builder","action":"Find @command through ankle.website/install, ankle.website/widget, ankle.md, the extension, or a shared snippet.","result":"Builder understands that @command is an ANKLE product, while aleqth.com remains the authenticated runtime."},{"step":"install","actor":"builder","action":"Paste the script tag, or let the extension inject it for the current site.","result":"The host page receives the terminal, identity bar, and widget runtime."},{"step":"register","actor":"widget","action":"POST /atcmd/surface/register with origin, page URL, title, tags, and manifest metadata.","result":"A deterministic external surface id is created and God-eye can see the host."},{"step":"mount","actor":"builder","action":"Add data-ankle-widget blocks for discplayer, SoundCloud, used-in cards, sources, or approved custom modules.","result":"The page becomes a connected ANKLE surface without being rebuilt on aleqth.com."},{"step":"attribute","actor":"widget","action":"POST /atcmd/source for embeds, images, media, and references.","result":"External sources enter SURF and the used-in backlink graph."},{"step":"operate","actor":"Hermes and @command agents","action":"Read the registry, surface events, and source graph to explain, install, modify, or verify widgets.","result":"Agents can apply system changes across native pages, external hosts, and the browser extension."},{"step":"monetize","actor":"builder and ANKLE","action":"Use credits, Whop checkout, premium widgets, missions, and marketplace listings around approved modules.","result":"User-created experiences can become callable products in the @command network."}],"commands":[{"command":"/activate","status":"core","description":"Explain and open the external-surface activation workflow."},{"command":"/registry","status":"core","description":"List approved/candidate widgets and app modules."},{"command":"/widgets","status":"core","description":"Alias for the registry view."},{"command":"/source <url>","status":"core","description":"Attribute an external source to the current host page."},{"command":"/used-in <url>","status":"core","description":"Show where an attributed source has appeared."},{"command":"/install","status":"core","description":"Open the field-kit install path."},{"command":"/credits","status":"core","description":"Open Whop-backed ANKLE credit packs."},{"command":"/scope [source]","status":"experimental","description":"Mount or explain the ANKLE Scope signal/data visualizer widget."},{"command":"/build <request>","status":"experimental","description":"Generate a scoped host-site build plan with HTML, CSS, iframe/srcdoc, and patch instructions."},{"command":"/host","status":"experimental","description":"Declare or inspect the current host page capability/tool surface."}],"widgets":[{"id":"atcmd-terminal","handle":"terminal","status":"core","title":"@command terminal","mount":"script","capabilities":["identity","chat","commands","credits","agent-help"],"monetization":"credits for agent actions; free signed-out install/sign-in surface"},{"id":"discplayer","handle":"discplayer","status":"core","title":"discplayer embed wrapper","mount":"data-ankle-widget=\"discplayer\"","capabilities":["iframe","source-attribution","analytics","Hermes-help"],"monetization":"eligible for premium widget listings and creator usage analytics"},{"id":"soundcloud","handle":"soundcloud","status":"experimental","title":"SoundCloud embed wrapper","mount":"data-ankle-widget=\"soundcloud\"","capabilities":["iframe","source-attribution","play-event-analytics"],"monetization":"future music/playlist modules and artist pages"},{"id":"used-in-card","handle":"used-in","status":"core","title":"Used-in backlink card","mount":"data-ankle-widget=\"used-in\"","capabilities":["asset-backlinks","SURF-usage-read","provenance-display"],"monetization":"free trust layer that increases value of attributed assets"},{"id":"surf-source","handle":"source","status":"core","title":"External source attribution block","mount":"data-ankle-widget=\"source\"","capabilities":["source-attribution","tagging","used-in-graph"],"monetization":"credits for deeper tagging, enrichment, and agent analysis"},{"id":"install-card","handle":"install","status":"core","title":"Install/get-started card","mount":"data-ankle-widget=\"install\"","capabilities":["extension-install","account-handoff","credit-topup-link"],"monetization":"onboarding into Whop-backed credit and membership funnels"},{"id":"ankle-scope","handle":"scope","status":"experimental","title":"ANKLE Scope signal visualizer","mount":"data-ankle-widget=\"scope\"","capabilities":["canvas-animation","page-motion-signal","tag-vector-signal","audio-like-signal","png-export","source-attribution","Hermes-help"],"monetization":"credits for deeper signal adapters, saved /dada motion objects, and premium analytics visualizations"},{"id":"custom-module","handle":"custom","status":"candidate","title":"User-created widget module","mount":"registered manifest","capabilities":["sandboxed-runtime","registry-review","agent-callable"],"monetization":"future approval path for builders to publish paid or free ANKLE modules"},{"id":"host-builder","handle":"builder","status":"experimental","title":"External host builder bridge","mount":"data-ankle-widget=\"builder\"","capabilities":["host-capability-handshake","build-plan-generation","html-css-artifacts","iframe-srcdoc","extension-confirmation-handoff","contained-preview-apply","Hermes-help"],"monetization":"credits for deeper build runs, hosted deployment help, and premium app modules"}],"app_lifecycle":[{"state":"proposed","meaning":"A builder submits a manifest, demo URL, source URLs, permissions, and monetization intent."},{"state":"sandboxed","meaning":"Hermes/Codex/adversarial UX agents inspect the module for privacy, CORS, data, and theme compatibility."},{"state":"approved","meaning":"The module receives a registry entry and can be mounted by @command on native or external surfaces."},{"state":"core","meaning":"The module is bundled into the public field kit and can be suggested by agents."},{"state":"monetized","meaning":"The module may charge credits, route purchases through Whop, or participate in marketplace revenue sharing."}],"data_flow":{"external_to_internal":["host page registers as an external surface","widgets report mount/open/play/ask/topup events","sources and media URLs write to media_usage_events","SURF and God-eye read the same graph as native aleqth pages","host capabilities declare MCP-like tools","build plans record external.build.plan.created analytics events"],"internal_to_external":["registry tells external hosts which modules exist","identity handoff lets logged-in users operate across domains","credits and Whop checkout power paid actions","agents can suggest snippets or modify host pages through the extension","Hermes can return structured HTML/CSS/iframe artifacts","approved registry modules can be mounted into external hosts by handle"]},"safety":{"public_registration":true,"secret_exposure":false,"wallet_actions":false,"public_posting":false,"notes":["External hosts never receive Hermes admin keys.","Payment, wallet, and public community actions require explicit human approval.","Registry approval is separate from public posting or paid bounty funding."]},"host_tool_protocol":{"schema":"ankle.atcmd.host_tool_protocol.v1","description":"MCP-like handshake for external websites. The host declares allowed tools; @command/Hermes returns plans, code artifacts, and user-confirmed actions rather than blindly mutating pages.","endpoints":{"declare_capabilities":"POST /atcmd/host/capabilities","plan_build":"POST /atcmd/build/plan","registry":"GET /atcmd/registry","manifest":"GET /atcmd/manifest"},"default_allowed_ops":["generate_html","generate_css","insert_snippet","mount_widget","attribute_source"],"write_policy":"Direct writes require builder mode, a scoped user/app token, a host capability grant, and explicit user confirmation through the extension or host UI.","extension_apply_flow":["host widget or terminal requests /atcmd/build/plan","extension stages the plan and shows the exact target, operations, and safety bounds","user clicks APPLY PREVIEW","extension injects a contained HTML/CSS preview into the current page only","persistent host writes require a separate approved host save/deploy capability"],"http_https":"Local previews may use http://localhost; public surfaces should use HTTPS for identity handoff, clipboard, media, and secure API behavior."}}