[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EVSHHNK6S5N1R1VG1P37R6":3,"skill-same:01M7EVSHHNK6S5N1R1VG1P37R6":60},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":38,"commitSha":39,"skillDirectory":40,"forksCount":41,"repositoryHtmlUrl":42,"repositoryHomepageUrl":6,"ownerHtmlUrl":43,"ownerBlogUrl":6,"ownerDescription":44,"updatedAt":45,"install":46,"resources":59},"01M7EVSHHNK6S5N1R1VG1P37R6","a2ui-renderer",null,"Render A2UI (Agent-to-UI declarative surfaces) in CopilotKit v2. Enable the runtime via CopilotRuntime({ a2ui: {...} }), then enable the provider via \u003CCopilotKit a2ui={{ theme }}>. Auto-activates via \u002Finfo — do NOT manually pass renderActivityMessages. createA2UIMessageRenderer ships from @copilotkit\u002Freact-core\u002Fv2; low-level primitives (A2UIProvider, A2UIRenderer, createCatalog) ship from @copilotkit\u002Fa2ui-renderer. Covers theme customization, createSurface dedup, action-bridge try\u002Ffinally cleanup. Load when an agent emits A2UI operations (createSurface \u002F updateComponents \u002F updateDataModel), when wiring a2ui on CopilotRuntime, or when styling A2UI surfaces.","lza6\u002FArmor-piercing-system-prompts","lza6","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F128880206?v=4","01M7EB3K7WPX5T28EJ2NVHE6EG","Chinese-tingfeng","01M7EB3K97E1KQ16QWKJMFNGX8",11,"MIT","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F05-技能与代理开发\u002Fa2ui-renderer\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: a2ui-renderer\ndescription: >\n  Render A2UI (Agent-to-UI declarative surfaces) in CopilotKit v2. Enable the\n  runtime via CopilotRuntime({ a2ui: {...} }), then enable the provider via\n  \u003CCopilotKit a2ui={{ theme }}>. Auto-activates via \u002Finfo — do NOT\n  manually pass renderActivityMessages. createA2UIMessageRenderer ships from\n  @copilotkit\u002Freact-core\u002Fv2; low-level primitives (A2UIProvider, A2UIRenderer,\n  createCatalog) ship from @copilotkit\u002Fa2ui-renderer. Covers theme\n  customization, createSurface dedup, action-bridge try\u002Ffinally cleanup. Load\n  when an agent emits A2UI operations (createSurface \u002F updateComponents \u002F\n  updateDataModel), when wiring a2ui on CopilotRuntime, or when styling A2UI\n  surfaces.\ntype: framework\nlibrary: copilotkit\nframework: react\nlibrary_version: \"1.70.3\"\nrequires:\n  - copilotkit\u002Freact-core\n  - copilotkit\u002Fruntime\nsources:\n  - \"CopilotKit\u002FCopilotKit:packages\u002Fa2ui-renderer\u002Fsrc\u002Findex.ts\"\n  - \"CopilotKit\u002FCopilotKit:packages\u002Fa2ui-renderer\u002Fsrc\u002Freact-renderer\u002Findex.ts\"\n  - \"CopilotKit\u002FCopilotKit:packages\u002Freact-core\u002Fsrc\u002Fv2\u002Fa2ui\u002FA2UIMessageRenderer.tsx\"\n  - \"CopilotKit\u002FCopilotKit:packages\u002Freact-core\u002Fsrc\u002Fv2\u002Fproviders\u002FCopilotKitProvider.tsx\"\n  - \"CopilotKit\u002FCopilotKit:packages\u002Fruntime\u002Fsrc\u002Fv2\u002Fruntime\u002Fcore\u002Fruntime.ts\"\n---\n\nThis skill builds on copilotkit\u002Freact-core (for `CopilotKit` provider fundamentals) and\ncopilotkit\u002Fruntime (for CopilotRuntime fundamentals). Read those first.\n\n## Setup\n\nA2UI has two halves. The runtime declares a2ui middleware; the client enables\nthe a2ui prop on the provider. Once both are set, `\u002Finfo` flags A2UI and the\nclient auto-mounts `createA2UIMessageRenderer` — you do NOT wire\n`renderActivityMessages` yourself.\n\n### Runtime side (`app\u002Froutes\u002Fapi.copilotkit.$.tsx`)\n\n```tsx\nimport type { Route } from \".\u002F+types\u002Fapi.copilotkit.$\";\nimport {\n  CopilotRuntime,\n  createCopilotRuntimeHandler,\n  BuiltInAgent,\n  convertInputToTanStackAI,\n} from \"@copilotkit\u002Fruntime\u002Fv2\";\nimport { chat } from \"@tanstack\u002Fai\";\nimport { openaiText } from \"@tanstack\u002Fai-openai\";\n\nconst agent = new BuiltInAgent({\n  type: \"tanstack\",\n  factory: ({ input, abortController }) => {\n    const { messages, systemPrompts } = convertInputToTanStackAI(input);\n    return chat({\n      adapter: openaiText(\"gpt-4o\"),\n      messages,\n      systemPrompts,\n      abortController,\n    });\n  },\n});\n\nconst runtime = new CopilotRuntime({\n  agents: { default: agent },\n  \u002F\u002F Enabling this key causes \u002Finfo to advertise A2UI to the client.\n  a2ui: {},\n});\n\nconst handler = createCopilotRuntimeHandler({\n  runtime,\n  basePath: \"\u002Fapi\u002Fcopilotkit\",\n});\n\nexport async function loader({ request }: Route.LoaderArgs) {\n  return handler(request);\n}\nexport async function action({ request }: Route.ActionArgs) {\n  return handler(request);\n}\n```\n\n### Client side (`app\u002Froot.tsx` or the app shell)\n\n```tsx\nimport { CopilotKit, CopilotChat } from \"@copilotkit\u002Freact-core\u002Fv2\";\nimport \"@copilotkit\u002Freact-core\u002Fv2\u002Fstyles.css\";\n\nexport default function App() {\n  return (\n    \u003CCopilotKit\n      runtimeUrl=\"\u002Fapi\u002Fcopilotkit\"\n      a2ui={{\n        theme: {\n          \u002F\u002F Theme object forwarded to A2UIProvider → ThemeProvider.\n          \u002F\u002F Tokens map to A2UI's basic catalog CSS vars.\n          colors: { primary: \"#0ea5e9\" },\n        },\n      }}\n    >\n      \u003CCopilotChat agentId=\"default\" className=\"h-full\" \u002F>\n    \u003C\u002FCopilotKit>\n  );\n}\n```\n\n## Core Patterns\n\n### Custom catalog\n\nPass a custom catalog to extend the built-in component set. `createCatalog`\nand `extractSchema` let the agent see what components it may render.\n\n```tsx\nimport { createCatalog } from \"@copilotkit\u002Fa2ui-renderer\";\nimport { z } from \"zod\";\n\nconst theme = { colors: { primary: \"#0ea5e9\" } };\n\n\u002F\u002F Definitions are platform-agnostic (Zod schemas + descriptions).\n\u002F\u002F Renderers are platform-specific (React components).\n\u002F\u002F TypeScript enforces that renderer keys match definition keys exactly.\nconst definitions = {\n  ProductCard: {\n    description: \"A product card with title and price\",\n    props: z.object({ title: z.string(), price: z.number() }),\n  },\n};\n\nconst catalog = createCatalog(\n  definitions,\n  {\n    ProductCard: ({ props }) => (\n      \u003Cdiv className=\"rounded-xl border p-3\">\n        \u003Cdiv className=\"font-medium\">{props.title}\u003C\u002Fdiv>\n        \u003Cdiv className=\"text-sm text-muted-foreground\">${props.price}\u003C\u002Fdiv>\n      \u003C\u002Fdiv>\n    ),\n  },\n  { includeBasicCatalog: true },\n);\n\n\u003CCopilotKit runtimeUrl=\"\u002Fapi\u002Fcopilotkit\" a2ui={{ theme, catalog }}>\n  \u003CCopilotChat agentId=\"default\" \u002F>\n\u003C\u002FCopilotKit>;\n```\n\n`extractSchema(definitions)` is available for passing a JSON-serializable\nview of the definitions to the runtime's `a2ui.schema` config — it is not\na generic type helper. Type parameters erase at runtime; the agent needs a\nreal runtime schema value (Zod).\n\n### Override the loading skeleton\n\n```tsx\n\u003CCopilotKit\n  runtimeUrl=\"\u002Fapi\u002Fcopilotkit\"\n  a2ui={{\n    theme,\n    loadingComponent: () => \u003Cdiv className=\"animate-pulse\">Building UI…\u003C\u002Fdiv>,\n  }}\n>\n  \u003CCopilotChat agentId=\"default\" \u002F>\n\u003C\u002FCopilotKit>\n```\n\n## Common Mistakes\n\n### CRITICAL forgetting runtime.a2ui\n\nWrong:\n\n```tsx\n\u002F\u002F server\nnew CopilotRuntime({ agents: { default: agent } });\n\u002F\u002F client\n\u003CCopilotKit runtimeUrl=\"\u002Fapi\u002Fcopilotkit\" a2ui={{ theme }} \u002F>;\n```\n\nCorrect:\n\n```tsx\n\u002F\u002F server\nnew CopilotRuntime({ agents: { default: agent }, a2ui: {} });\n\u002F\u002F client\n\u003CCopilotKit runtimeUrl=\"\u002Fapi\u002Fcopilotkit\" a2ui={{ theme }} \u002F>;\n```\n\nWithout `runtime.a2ui`, `\u002Finfo` never flags A2UI and the provider's a2ui prop\nsilently no-ops — the renderer never mounts.\n\nSource: packages\u002Fruntime\u002Fsrc\u002Fv2\u002Fruntime\u002Fcore\u002Fruntime.ts:55-58,217,242\n\n### HIGH manually wiring renderActivityMessages for A2UI\n\nWrong:\n\n```tsx\nimport { createA2UIMessageRenderer } from \"@copilotkit\u002Freact-core\u002Fv2\";\n\n\u003CCopilotKit\n  runtimeUrl=\"\u002Fapi\u002Fcopilotkit\"\n  renderActivityMessages={[createA2UIMessageRenderer({ theme })]}\n\u002F>;\n```\n\nCorrect:\n\n```tsx\n\u003CCopilotKit runtimeUrl=\"\u002Fapi\u002Fcopilotkit\" a2ui={{ theme }} \u002F>\n```\n\nThe `CopilotKit` provider auto-detects runtime A2UI via `\u002Finfo` and injects the\nbuilt-in renderer. Passing it through `renderActivityMessages` duplicates the\nrenderer and can race with the auto-injected one.\n\nSource: packages\u002Freact-core\u002Fsrc\u002Fv2\u002Fproviders\u002FCopilotKitProvider.tsx:188-222,294-296\n\n### MEDIUM re-emitting createSurface on every snapshot\n\nWrong:\n\n```python\n# Pseudocode — inside your agent generator. Exact API names\u002Fkwargs vary by\n# A2UI SDK version; consult your SDK's docs for real call shapes.\nasync def agent_generator():\n    # agent re-emits createSurface operation on every state delta\n    async for update in stream:\n        yield a2ui.create_surface(surface_id=\"main\", ...)  # every tick\n        yield a2ui.update_components(...)\n```\n\nCorrect:\n\n```python\n# Pseudocode — inside your agent generator.\n# Emit createSurface once per surfaceId; use updateComponents \u002F updateDataModel\n# for changes.\nasync def agent_generator():\n    yield a2ui.create_surface(surface_id=\"main\", ...)  # once\n    async for update in stream:\n        yield a2ui.update_components(surface_id=\"main\", ...)\n```\n\nThe MessageProcessor dedups on `surfaceId` but re-emitting is an agent-side\nbug — the client re-runs reconciliation logic for nothing and flickers.\n\nSource: packages\u002Freact-core\u002Fsrc\u002Fv2\u002Fa2ui\u002FA2UIMessageRenderer.tsx:218-226\n\n### MEDIUM custom action bridge without a2uiAction cleanup\n\nWrong:\n\n```ts\ncopilotkit.setProperties({ ...copilotkit.properties, a2uiAction: msg });\nawait copilotkit.runAgent({ agent });\n\u002F\u002F no finally — a2uiAction leaks into the next run's properties\n```\n\nCorrect:\n\n```ts\ntry {\n  copilotkit.setProperties({ ...copilotkit.properties, a2uiAction: msg });\n  await copilotkit.runAgent({ agent });\n} finally {\n  if (copilotkit.properties) {\n    const { a2uiAction, ...rest } = copilotkit.properties;\n    copilotkit.setProperties(rest);\n  }\n}\n```\n\nThe built-in bridge always strips `a2uiAction` in `finally`, guarded by a\n`copilotkit.properties` null-check so it can't mask the original `runAgent`\nerror with a `TypeError` during destructuring. Skipping cleanup keeps the\nprevious action attached to subsequent runs.\n\nSource: packages\u002Freact-core\u002Fsrc\u002Fv2\u002Fa2ui\u002FA2UIMessageRenderer.tsx:146-167\n\n### MEDIUM installing @copilotkitnext\u002Fa2ui-renderer\n\nWrong:\n\n```ts\nimport { createA2UIMessageRenderer } from \"@copilotkitnext\u002Fa2ui-renderer\";\n```\n\nCorrect:\n\n```ts\n\u002F\u002F Low-level primitives (rarely needed — the CopilotKit provider's a2ui prop is the default path):\nimport {\n  A2UIProvider,\n  A2UIRenderer,\n  createCatalog,\n} from \"@copilotkit\u002Fa2ui-renderer\";\n\u002F\u002F Auto-mounted renderer lives in react-core\u002Fv2:\nimport { createA2UIMessageRenderer } from \"@copilotkit\u002Freact-core\u002Fv2\";\n```\n\nThis package ships as `@copilotkit\u002Fa2ui-renderer`, not\n`@copilotkitnext\u002Fa2ui-renderer`. The `@copilotkitnext\u002F` scope is reserved\nfor other packages that ship under it separately — do not assume it applies\nhere.\n\nSource: packages\u002Fa2ui-renderer\u002Fpackage.json\n","This skill builds on copilotkit\u002Freact-core (for `CopilotKit` provider fundamentals) and\ncopilotkit\u002Fruntime (for CopilotRuntime fundamentals). Read those first.\n\n## Setup\n\nA2UI has two halves. The runtime declares a2ui middleware; the client enables\nthe a2ui prop on the provider. Once both are set, `\u002Finfo` flags A2UI and the\nclient auto-mounts `createA2UIMessageRenderer` — you do NOT wire\n`renderActivityMessages` yourself.\n\n### Runtime side (`app\u002Froutes\u002Fapi.copilotkit.$.tsx`)\n\n```tsx\nimport type { Route } from \".\u002F+types\u002Fapi.copilotkit.$\";\nimport {\n  CopilotRuntime,\n  createCopilotRuntimeHandler,\n  BuiltInAgent,\n  convertInputToTanStackAI,\n} from \"@copilotkit\u002Fruntime\u002Fv2\";\nimport { chat } from \"@tanstack\u002Fai\";\nimport { openaiText } from \"@tanstack\u002Fai-openai\";\n\nconst agent = new BuiltInAgent({\n  type: \"tanstack\",\n  factory: ({ input, abortController }) => {\n    const { messages, systemPrompts } = convertInputToTanStackAI(input);\n    return chat({\n      adapter: openaiText(\"gpt-4o\"),\n      messages,\n      systemPrompts,\n      abortController,\n    });\n  },\n});\n\nconst runtime = new CopilotRuntime({\n  agents: { default: agent },\n  \u002F\u002F Enabling this key causes \u002Finfo to advertise A2UI to the client.\n  a2ui: {},\n});\n\nconst handler = createCopilotRuntimeHandler({\n  runtime,\n  basePath: \"\u002Fapi\u002Fcopilotkit\",\n});\n\nexport async function loader({ request }: Route.LoaderArgs) {\n  return handler(request);\n}\nexport async function action({ request }: Route.ActionArgs) {\n  return handler(request);\n}\n```\n\n### Client side (`app\u002Froot.tsx` or the app shell)\n\n```tsx\nimport { CopilotKit, CopilotChat } from \"@copilotkit\u002Freact-core\u002Fv2\";\nimport \"@copilotkit\u002Freact-core\u002Fv2\u002Fstyles.css\";\n\nexport default function App() {\n  return (\n    \u003CCopilotKit\n      runtimeUrl=\"\u002Fapi\u002Fcopilotkit\"\n      a2ui={{\n        theme: {\n          \u002F\u002F Theme object forwarded to A2UIProvider → ThemeProvider.\n          \u002F\u002F Tokens map to A2UI's basic catalog CSS vars.\n          colors: { primary: \"#0ea5e9\" },\n        },\n      }}\n    >\n      \u003CCopilotChat agentId=\"default\" className=\"h-full\" \u002F>\n    \u003C\u002FCopilotKit>\n  );\n}\n```\n\n## Core Patterns\n\n### Custom catalog\n\nPass a custom catalog to extend the built-in component set. `createCatalog`\nand `extractSchema` let the agent see what components it may render.\n\n```tsx\nimport { createCatalog } from \"@copilotkit\u002Fa2ui-renderer\";\nimport { z } from \"zod\";\n\nconst theme = { colors: { primary: \"#0ea5e9\" } };\n\n\u002F\u002F Definitions are platform-agnostic (Zod schemas + descriptions).\n\u002F\u002F Renderers are platform-specific (React components).\n\u002F\u002F TypeScript enforces that renderer keys match definition keys exactly.\nconst definitions = {\n  ProductCard: {\n    description: \"A product card with title and price\",\n    props: z.object({ title: z.string(), price: z.number() }),\n  },\n};\n\nconst catalog = createCatalog(\n  definitions,\n  {\n    ProductCard: ({ props }) => (\n      \u003Cdiv className=\"rounded-xl border p-3\">\n        \u003Cdiv className=\"font-medium\">{props.title}\u003C\u002Fdiv>\n        \u003Cdiv className=\"text-sm text-muted-foreground\">${props.price}\u003C\u002Fdiv>\n      \u003C\u002Fdiv>\n    ),\n  },\n  { includeBasicCatalog: true },\n);\n\n\u003CCopilotKit runtimeUrl=\"\u002Fapi\u002Fcopilotkit\" a2ui={{ theme, catalog }}>\n  \u003CCopilotChat agentId=\"default\" \u002F>\n\u003C\u002FCopilotKit>;\n```\n\n`extractSchema(definitions)` is available for passing a JSON-serializable\nview of the definitions to the runtime's `a2ui.schema` config — it is not\na generic type helper. Type parameters erase at runtime; the agent needs a\nreal runtime schema value (Zod).\n\n### Override the loading skeleton\n\n```tsx\n\u003CCopilotKit\n  runtimeUrl=\"\u002Fapi\u002Fcopilotkit\"\n  a2ui={{\n    theme,\n    loadingComponent: () => \u003Cdiv className=\"animate-pulse\">Building UI…\u003C\u002Fdiv>,\n  }}\n>\n  \u003CCopilotChat agentId=\"default\" \u002F>\n\u003C\u002FCopilotKit>\n```\n\n## Common Mistakes\n\n### CRITICAL forgetting runtime.a2ui\n\nWrong:\n\n```tsx\n\u002F\u002F server\nnew CopilotRuntime({ agents: { default: agent } });\n\u002F\u002F client\n\u003CCopilotKit runtimeUrl=\"\u002Fapi\u002Fcopilotkit\" a2ui={{ theme }} \u002F>;\n```\n\nCorrect:\n\n```tsx\n\u002F\u002F server\nnew CopilotRuntime({ agents: { default: agent }, a2ui: {} });\n\u002F\u002F client\n\u003CCopilotKit runtimeUrl=\"\u002Fapi\u002Fcopilotkit\" a2ui={{ theme }} \u002F>;\n```\n\nWithout `runtime.a2ui`, `\u002Finfo` never flags A2UI and the provider's a2ui prop\nsilently no-ops — the renderer never mounts.\n\nSource: packages\u002Fruntime\u002Fsrc\u002Fv2\u002Fruntime\u002Fcore\u002Fruntime.ts:55-58,217,242\n\n### HIGH manually wiring renderActivityMessages for A2UI\n\nWrong:\n\n```tsx\nimport { createA2UIMessageRenderer } from \"@copilotkit\u002Freact-core\u002Fv2\";\n\n\u003CCopilotKit\n  runtimeUrl=\"\u002Fapi\u002Fcopilotkit\"\n  renderActivityMessages={[createA2UIMessageRenderer({ theme })]}\n\u002F>;\n```\n\nCorrect:\n\n```tsx\n\u003CCopilotKit runtimeUrl=\"\u002Fapi\u002Fcopilotkit\" a2ui={{ theme }} \u002F>\n```\n\nThe `CopilotKit` provider auto-detects runtime A2UI via `\u002Finfo` and injects the\nbuilt-in renderer. Passing it through `renderActivityMessages` duplicates the\nrenderer and can race with the auto-injected one.\n\nSource: packages\u002Freact-core\u002Fsrc\u002Fv2\u002Fproviders\u002FCopilotKitProvider.tsx:188-222,294-296\n\n### MEDIUM re-emitting createSurface on every snapshot\n\nWrong:\n\n```python\n# Pseudocode — inside your agent generator. Exact API names\u002Fkwargs vary by\n# A2UI SDK version; consult your SDK's docs for real call shapes.\nasync def agent_generator():\n    # agent re-emits createSurface operation on every state delta\n    async for update in stream:\n        yield a2ui.create_surface(surface_id=\"main\", ...)  # every tick\n        yield a2ui.update_components(...)\n```\n\nCorrect:\n\n```python\n# Pseudocode — inside your agent generator.\n# Emit createSurface once per surfaceId; use updateComponents \u002F updateDataModel\n# for changes.\nasync def agent_generator():\n    yield a2ui.create_surface(surface_id=\"main\", ...)  # once\n    async for update in stream:\n        yield a2ui.update_components(surface_id=\"main\", ...)\n```\n\nThe MessageProcessor dedups on `surfaceId` but re-emitting is an agent-side\nbug — the client re-runs reconciliation logic for nothing and flickers.\n\nSource: packages\u002Freact-core\u002Fsrc\u002Fv2\u002Fa2ui\u002FA2UIMessageRenderer.tsx:218-226\n\n### MEDIUM custom action bridge without a2uiAction cleanup\n\nWrong:\n\n```ts\ncopilotkit.setProperties({ ...copilotkit.properties, a2uiAction: msg });\nawait copilotkit.runAgent({ agent });\n\u002F\u002F no finally — a2uiAction leaks into the next run's properties\n```\n\nCorrect:\n\n```ts\ntry {\n  copilotkit.setProperties({ ...copilotkit.properties, a2uiAction: msg });\n  await copilotkit.runAgent({ agent });\n} finally {\n  if (copilotkit.properties) {\n    const { a2uiAction, ...rest } = copilotkit.properties;\n    copilotkit.setProperties(rest);\n  }\n}\n```\n\nThe built-in bridge always strips `a2uiAction` in `finally`, guarded by a\n`copilotkit.properties` null-check so it can't mask the original `runAgent`\nerror with a `TypeError` during destructuring. Skipping cleanup keeps the\nprevious action attached to subsequent runs.\n\nSource: packages\u002Freact-core\u002Fsrc\u002Fv2\u002Fa2ui\u002FA2UIMessageRenderer.tsx:146-167\n\n### MEDIUM installing @copilotkitnext\u002Fa2ui-renderer\n\nWrong:\n\n```ts\nimport { createA2UIMessageRenderer } from \"@copilotkitnext\u002Fa2ui-renderer\";\n```\n\nCorrect:\n\n```ts\n\u002F\u002F Low-level primitives (rarely needed — the CopilotKit provider's a2ui prop is the default path):\nimport {\n  A2UIProvider,\n  A2UIRenderer,\n  createCatalog,\n} from \"@copilotkit\u002Fa2ui-renderer\";\n\u002F\u002F Auto-mounted renderer lives in react-core\u002Fv2:\nimport { createA2UIMessageRenderer } from \"@copilotkit\u002Freact-core\u002Fv2\";\n```\n\nThis package ships as `@copilotkit\u002Fa2ui-renderer`, not\n`@copilotkitnext\u002Fa2ui-renderer`. The `@copilotkitnext\u002F` scope is reserved\nfor other packages that ship under it separately — do not assume it applies\nhere.\n\nSource: packages\u002Fa2ui-renderer\u002Fpackage.json\n",{"name":5,"type":24,"library":25,"sources":26,"requires":32,"framework":35,"description":36,"library_version":37},"framework","copilotkit",[27,28,29,30,31],"CopilotKit\u002FCopilotKit:packages\u002Fa2ui-renderer\u002Fsrc\u002Findex.ts","CopilotKit\u002FCopilotKit:packages\u002Fa2ui-renderer\u002Fsrc\u002Freact-renderer\u002Findex.ts","CopilotKit\u002FCopilotKit:packages\u002Freact-core\u002Fsrc\u002Fv2\u002Fa2ui\u002FA2UIMessageRenderer.tsx","CopilotKit\u002FCopilotKit:packages\u002Freact-core\u002Fsrc\u002Fv2\u002Fproviders\u002FCopilotKitProvider.tsx","CopilotKit\u002FCopilotKit:packages\u002Fruntime\u002Fsrc\u002Fv2\u002Fruntime\u002Fcore\u002Fruntime.ts",[33,34],"copilotkit\u002Freact-core","copilotkit\u002Fruntime","react","Render A2UI (Agent-to-UI declarative surfaces) in CopilotKit v2. Enable the runtime via CopilotRuntime({ a2ui: {...} }), then enable the provider via \u003CCopilotKit a2ui={{ theme }}>. Auto-activates via \u002Finfo — do NOT manually pass renderActivityMessages. createA2UIMessageRenderer ships from @copilotkit\u002Freact-core\u002Fv2; low-level primitives (A2UIProvider, A2UIRenderer, createCatalog) ship from @copilotkit\u002Fa2ui-renderer. Covers theme customization, createSurface dedup, action-bridge try\u002Ffinally cleanup. Load when an agent emits A2UI operations (createSurface \u002F updateComponents \u002F updateDataModel), when wiring a2ui on CopilotRuntime, or when styling A2UI surfaces.\n","1.70.3","main","d69096e239f2a89aabc2cd078c47664a9d3b1e11","05-技能与代理开发\u002Fa2ui-renderer",3,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts","https:\u002F\u002Fgithub.com\u002Flza6","个人vx：Tf00798\r\n个人✈：@TFGY999","2026-10-08 14:29:22",{"source":8,"skillName":5,"commands":47,"prompt":57,"zipAvailable":58},[48,51,54],{"tool":49,"command":50},"npx","npx skills add lza6\u002FArmor-piercing-system-prompts --skill a2ui-renderer",{"tool":52,"command":53},"bunx","bunx skills add lza6\u002FArmor-piercing-system-prompts --skill a2ui-renderer",{"tool":55,"command":56},"pnpm","pnpm dlx skills add lza6\u002FArmor-piercing-system-prompts --skill a2ui-renderer","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F05-技能与代理开发\u002Fa2ui-renderer\u002FSKILL.md",true,[],[61,69,74,81,88,95],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":68},"01M7FFG485KY83TD6HSC4YPCMC","obsidian-clipper-template-creator","Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator\u002FSKILL.md",[],[],"2026-11-16 10:05:34",{"skillNo":70,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":68},"01M7FFG0T6AZ0STEJPSB3CX84K","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator-antigravity-awesome-skills-main\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":68},"01M7FFFY0QEM14SKWPDYGMXM2P","python-api","Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP\u002FmAP semantics, and source-style import diagnostics.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Fpython-api\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":68},"01M7FFFVZQZ2GJ0C0TGP7JHD20","file-evaluation","Folder-based PASCAL VOC AP\u002FmAP evaluation from ground-truth and detection text files.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Ffile-evaluation\u002FSKILL.md",[],[],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":68},"01M7FFFSFNYSE77SJ6PE1CK2DA","object-detection-metrics","Guides legacy Object-Detection-Metrics PASCAL VOC AP\u002FmAP evaluation from detection text folders and direct Python API classes.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002FSKILL.md",[],[],{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":68},"01M7FFFP0GCK1RVXBCPQ8APBMT","nx-workspace-patterns","Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fnx-workspace-patterns\u002FSKILL.md",[],[]]