@assistant-ui/mcp-docs-server 0.1.38 → 0.2.0
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/.docs/organized/code-examples/waterfall.md +11 -12
- package/.docs/organized/code-examples/with-a2a.md +18 -13
- package/.docs/organized/code-examples/with-ag-ui.md +19 -14
- package/.docs/organized/code-examples/{with-ai-sdk-v6.md → with-ai-sdk-v7.md} +34 -23
- package/.docs/organized/code-examples/with-artifacts.md +473 -141
- package/.docs/organized/code-examples/with-assistant-transport.md +17 -10
- package/.docs/organized/code-examples/with-browser-extension.md +17 -10
- package/.docs/organized/code-examples/with-chain-of-thought.md +21 -14
- package/.docs/organized/code-examples/with-cloud-standalone.md +12 -11
- package/.docs/organized/code-examples/with-cloud.md +20 -15
- package/.docs/organized/code-examples/with-custom-thread-list.md +19 -12
- package/.docs/organized/code-examples/with-elevenlabs-conversational.md +22 -15
- package/.docs/organized/code-examples/with-elevenlabs-scribe.md +22 -15
- package/.docs/organized/code-examples/with-eve.md +18 -11
- package/.docs/organized/code-examples/with-expo.md +35 -52
- package/.docs/organized/code-examples/with-external-store.md +18 -13
- package/.docs/organized/code-examples/with-ffmpeg.md +20 -15
- package/.docs/organized/code-examples/with-generative-ui.md +22 -17
- package/.docs/organized/code-examples/with-google-adk.md +18 -11
- package/.docs/organized/code-examples/with-heat-graph.md +10 -11
- package/.docs/organized/code-examples/with-image-generation.md +19 -12
- package/.docs/organized/code-examples/with-interactables.md +21 -17
- package/.docs/organized/code-examples/with-langchain.md +19 -12
- package/.docs/organized/code-examples/with-langgraph.md +19 -12
- package/.docs/organized/code-examples/with-livekit.md +23 -16
- package/.docs/organized/code-examples/with-mcp.md +46 -28
- package/.docs/organized/code-examples/with-opencode.md +25 -23
- package/.docs/organized/code-examples/with-pi.md +54 -19
- package/.docs/organized/code-examples/with-react-hook-form.md +21 -16
- package/.docs/organized/code-examples/with-react-ink-web.md +9 -9
- package/.docs/organized/code-examples/with-react-ink.md +4 -4
- package/.docs/organized/code-examples/with-react-router.md +22 -17
- package/.docs/organized/code-examples/with-resumable-stream.md +21 -14
- package/.docs/organized/code-examples/with-store.md +10 -11
- package/.docs/organized/code-examples/with-tanstack.md +19 -13
- package/.docs/organized/code-examples/with-tap-runtime.md +18 -13
- package/.docs/organized/code-examples/with-virtualized-thread.md +19 -14
- package/.docs/raw/docs/(docs)/base-ui.mdx +39 -0
- package/.docs/raw/docs/(docs)/cli.mdx +19 -1
- package/.docs/raw/docs/(docs)/devtools.mdx +7 -2
- package/.docs/raw/docs/(docs)/installation.mdx +15 -1
- package/.docs/raw/docs/(docs)/rtl.mdx +2 -4
- package/.docs/raw/docs/(reference)/api-reference/generative-ui/a2ui.mdx +40 -0
- package/.docs/raw/docs/(reference)/api-reference/generative-ui/actions.mdx +56 -0
- package/.docs/raw/docs/(reference)/api-reference/generative-ui/components.mdx +86 -0
- package/.docs/raw/docs/(reference)/api-reference/generative-ui/index.mdx +22 -1
- package/.docs/raw/docs/(reference)/api-reference/generative-ui/json-generative-ui.mdx +42 -0
- package/.docs/raw/docs/(reference)/api-reference/generative-ui/rendering.mdx +53 -2
- package/.docs/raw/docs/(reference)/api-reference/generative-ui/slack.mdx +81 -0
- package/.docs/raw/docs/(reference)/api-reference/generative-ui/teams.mdx +86 -0
- package/.docs/raw/docs/(reference)/api-reference/generative-ui/tokens.mdx +62 -0
- package/.docs/raw/docs/(reference)/api-reference/hooks/primitives.mdx +19 -420
- package/.docs/raw/docs/(reference)/api-reference/hooks/state.mdx +4 -1
- package/.docs/raw/docs/(reference)/api-reference/integrations/index.mdx +4 -1
- package/.docs/raw/docs/(reference)/api-reference/integrations/react-ai-sdk.mdx +25 -2
- package/.docs/raw/docs/(reference)/api-reference/integrations/react-data-stream.mdx +37 -0
- package/.docs/raw/docs/(reference)/api-reference/model-context/context.mdx +1 -9
- package/.docs/raw/docs/(reference)/api-reference/overview.mdx +1 -0
- package/.docs/raw/docs/(reference)/api-reference/primitives/assistant-if.mdx +14 -31
- package/.docs/raw/docs/(reference)/api-reference/primitives/composition.mdx +1 -0
- package/.docs/raw/docs/(reference)/api-reference/primitives/index.mdx +3 -0
- package/.docs/raw/docs/(reference)/api-reference/primitives/selection-toolbar.mdx +2 -0
- package/.docs/raw/docs/(reference)/api-reference/tools/status.mdx +0 -2
- package/.docs/raw/docs/(reference)/api-reference/tools/toolkits.mdx +12 -9
- package/.docs/raw/docs/(reference)/api-reference/utilities/miscellaneous.mdx +4 -0
- package/.docs/raw/docs/cloud/ai-sdk-assistant-ui.mdx +7 -1
- package/.docs/raw/docs/cloud/langgraph.mdx +4 -2
- package/.docs/raw/docs/copilots/model-context.mdx +1 -1
- package/.docs/raw/docs/copilots/motivation.mdx +1 -1
- package/.docs/raw/docs/guides/attachments.mdx +3 -3
- package/.docs/raw/docs/guides/branching.mdx +2 -2
- package/.docs/raw/docs/guides/chatgpt-subscription.mdx +108 -0
- package/.docs/raw/docs/guides/context-api.mdx +89 -111
- package/.docs/raw/docs/guides/dictation.mdx +185 -257
- package/.docs/raw/docs/guides/editing.mdx +5 -5
- package/.docs/raw/docs/guides/electron.mdx +369 -0
- package/.docs/raw/docs/guides/index.mdx +20 -0
- package/.docs/raw/docs/guides/mentions.mdx +31 -3
- package/.docs/raw/docs/guides/quoting.mdx +3 -3
- package/.docs/raw/docs/guides/resumable-stream-deployment.mdx +2 -2
- package/.docs/raw/docs/guides/resumable-streams.mdx +12 -1
- package/.docs/raw/docs/guides/speech.mdx +47 -29
- package/.docs/raw/docs/guides/suggestions.mdx +70 -1
- package/.docs/raw/docs/guides/voice.mdx +197 -267
- package/.docs/raw/docs/ink/hooks.mdx +3 -3
- package/.docs/raw/docs/ink/primitives.mdx +49 -8
- package/.docs/raw/docs/integrations/auth/better-auth.mdx +2 -2
- package/.docs/raw/docs/integrations/auth/clerk.mdx +2 -2
- package/.docs/raw/docs/integrations/auth/next-auth.mdx +3 -3
- package/.docs/raw/docs/integrations/frameworks/ai-sdk.mdx +10 -4
- package/.docs/raw/docs/integrations/frameworks/cloudflare-agents/overview.mdx +3 -3
- package/.docs/raw/docs/integrations/frameworks/mastra/full-stack.mdx +1 -1
- package/.docs/raw/docs/integrations/frameworks/mastra/overview.mdx +3 -3
- package/.docs/raw/docs/integrations/frameworks/mastra/separate-server.mdx +1 -1
- package/.docs/raw/docs/integrations/gateways/index.mdx +2 -2
- package/.docs/raw/docs/integrations/observability/helicone.mdx +1 -1
- package/.docs/raw/docs/integrations/observability/langfuse.mdx +1 -1
- package/.docs/raw/docs/integrations/observability/langsmith.mdx +2 -2
- package/.docs/raw/docs/integrations/persistence/custom-adapter.mdx +36 -9
- package/.docs/raw/docs/migrations/index.mdx +50 -0
- package/.docs/raw/docs/migrations/toolkit-tools.mdx +4 -2
- package/.docs/raw/docs/migrations/v0-15.mdx +156 -0
- package/.docs/raw/docs/primitives/chain-of-thought.mdx +6 -1
- package/.docs/raw/docs/primitives/composer.mdx +17 -1
- package/.docs/raw/docs/primitives/selection-toolbar.mdx +25 -0
- package/.docs/raw/docs/primitives/thread-list.mdx +2 -2
- package/.docs/raw/docs/react-native/hooks.mdx +3 -3
- package/.docs/raw/docs/react-native/index.mdx +2 -2
- package/.docs/raw/docs/react-native/primitives.mdx +62 -5
- package/.docs/raw/docs/runtimes/ag-ui/agent-state.mdx +124 -0
- package/.docs/raw/docs/runtimes/ag-ui/runtime-options.mdx +10 -1
- package/.docs/raw/docs/runtimes/ai-sdk/overview.mdx +14 -5
- package/.docs/raw/docs/runtimes/ai-sdk/v4-legacy.mdx +15 -15
- package/.docs/raw/docs/runtimes/ai-sdk/v5-legacy.mdx +8 -8
- package/.docs/raw/docs/runtimes/ai-sdk/{v6.mdx → v6-legacy.mdx} +11 -9
- package/.docs/raw/docs/runtimes/ai-sdk/v7.mdx +717 -0
- package/.docs/raw/docs/runtimes/concepts/adapters.mdx +1 -1
- package/.docs/raw/docs/runtimes/concepts/architecture.mdx +1 -1
- package/.docs/raw/docs/runtimes/concepts/threads.mdx +10 -10
- package/.docs/raw/docs/runtimes/custom/assistant-transport.mdx +2 -2
- package/.docs/raw/docs/runtimes/custom/data-stream.mdx +10 -19
- package/.docs/raw/docs/runtimes/custom/external-store.mdx +2 -2
- package/.docs/raw/docs/runtimes/custom/local-runtime.mdx +5 -3
- package/.docs/raw/docs/runtimes/eve/overview.mdx +1 -1
- package/.docs/raw/docs/runtimes/langchain.mdx +2 -2
- package/.docs/raw/docs/runtimes/langgraph/agent-state.mdx +181 -0
- package/.docs/raw/docs/runtimes/langgraph/overview.mdx +1 -1
- package/.docs/raw/docs/runtimes/opencode/hooks.mdx +3 -1
- package/.docs/raw/docs/tools/a2ui.mdx +107 -0
- package/.docs/raw/docs/tools/backend.mdx +6 -3
- package/.docs/raw/docs/tools/defining-tools.mdx +7 -1
- package/.docs/raw/docs/tools/generative-ui.mdx +60 -2
- package/.docs/raw/docs/tools/interactables-legacy.mdx +4 -4
- package/.docs/raw/docs/tools/interactables.mdx +3 -3
- package/.docs/raw/docs/tools/mcp-apps.mdx +90 -13
- package/.docs/raw/docs/tools/mcp.mdx +100 -3
- package/.docs/raw/docs/tools/tool-ui.mdx +6 -4
- package/.docs/raw/docs/tools/user-managed-mcp.mdx +77 -9
- package/.docs/raw/docs/ui/accordion.mdx +16 -10
- package/.docs/raw/docs/ui/assistant-modal.mdx +8 -4
- package/.docs/raw/docs/ui/attachment.mdx +5 -1
- package/.docs/raw/docs/ui/badge.mdx +23 -12
- package/.docs/raw/docs/ui/follow-up-suggestions.mdx +4 -2
- package/.docs/raw/docs/ui/model-selector.mdx +33 -3
- package/.docs/raw/docs/ui/part-grouping.mdx +0 -4
- package/.docs/raw/docs/ui/reasoning.mdx +1 -1
- package/.docs/raw/docs/ui/select.mdx +22 -14
- package/.docs/raw/docs/ui/sources.mdx +1 -1
- package/.docs/raw/docs/ui/tabs.mdx +25 -14
- package/.docs/raw/docs/utilities/heat-graph.mdx +2 -2
- package/dist/constants.d.ts.map +1 -1
- package/dist/index.d.ts +1 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +41 -2
- package/dist/index.js.map +1 -1
- package/dist/prepare-docs/code-examples.d.ts.map +1 -1
- package/dist/prepare-docs/code-examples.js.map +1 -1
- package/dist/prepare-docs/copy-raw.d.ts.map +1 -1
- package/dist/prepare-docs/prepare.d.ts +1 -1
- package/dist/prompts/xulux-playground.d.ts +12 -0
- package/dist/prompts/xulux-playground.d.ts.map +1 -0
- package/dist/prompts/xulux-playground.js +33 -0
- package/dist/prompts/xulux-playground.js.map +1 -0
- package/dist/stdio.d.ts +1 -1
- package/dist/tools/docs.d.ts +8 -14
- package/dist/tools/docs.d.ts.map +1 -1
- package/dist/tools/docs.js +26 -10
- package/dist/tools/docs.js.map +1 -1
- package/dist/tools/examples.d.ts +6 -12
- package/dist/tools/examples.d.ts.map +1 -1
- package/dist/tools/examples.js +11 -8
- package/dist/tools/examples.js.map +1 -1
- package/dist/tools/resources.d.ts +1 -2
- package/dist/tools/resources.d.ts.map +1 -1
- package/dist/tools/resources.js +1 -1
- package/dist/tools/resources.js.map +1 -1
- package/dist/tools/search.d.ts +6 -15
- package/dist/tools/search.d.ts.map +1 -1
- package/dist/tools/search.js +2 -2
- package/dist/tools/search.js.map +1 -1
- package/dist/tools/tests/mcp-test-client.d.ts +15 -0
- package/dist/tools/tests/mcp-test-client.d.ts.map +1 -0
- package/dist/tools/tests/mcp-test-client.js +68 -0
- package/dist/tools/tests/mcp-test-client.js.map +1 -0
- package/dist/tools/tests/test-setup.d.ts.map +1 -1
- package/dist/tools/tests/test-setup.js +5 -1
- package/dist/tools/tests/test-setup.js.map +1 -1
- package/dist/tools/xulux-templates.d.ts +58 -0
- package/dist/tools/xulux-templates.d.ts.map +1 -0
- package/dist/tools/xulux-templates.js +82 -0
- package/dist/tools/xulux-templates.js.map +1 -0
- package/dist/utils/cache.d.ts +5 -0
- package/dist/utils/cache.d.ts.map +1 -0
- package/dist/utils/cache.js +18 -0
- package/dist/utils/cache.js.map +1 -0
- package/dist/utils/logger.d.ts.map +1 -1
- package/dist/utils/mcp-format.d.ts +1 -0
- package/dist/utils/mcp-format.d.ts.map +1 -1
- package/dist/utils/mcp-format.js +7 -4
- package/dist/utils/mcp-format.js.map +1 -1
- package/dist/utils/mdx.d.ts.map +1 -1
- package/dist/utils/paths.d.ts +1 -1
- package/dist/utils/paths.d.ts.map +1 -1
- package/dist/utils/paths.js +3 -1
- package/dist/utils/paths.js.map +1 -1
- package/dist/utils/search.d.ts.map +1 -1
- package/dist/utils/security.d.ts.map +1 -1
- package/dist/utils/security.js.map +1 -1
- package/dist/xulux/catalog-client.d.ts +14 -0
- package/dist/xulux/catalog-client.d.ts.map +1 -0
- package/dist/xulux/catalog-client.js +67 -0
- package/dist/xulux/catalog-client.js.map +1 -0
- package/dist/xulux/fallback-catalog.d.ts +7 -0
- package/dist/xulux/fallback-catalog.d.ts.map +1 -0
- package/dist/xulux/fallback-catalog.js +47 -0
- package/dist/xulux/fallback-catalog.js.map +1 -0
- package/dist/xulux/fetch-sandbox.d.ts +5 -0
- package/dist/xulux/fetch-sandbox.d.ts.map +1 -0
- package/dist/xulux/fetch-sandbox.js +40 -0
- package/dist/xulux/fetch-sandbox.js.map +1 -0
- package/dist/xulux/template-service.d.ts +84 -0
- package/dist/xulux/template-service.d.ts.map +1 -0
- package/dist/xulux/template-service.js +223 -0
- package/dist/xulux/template-service.js.map +1 -0
- package/dist/xulux/types.d.ts +55 -0
- package/dist/xulux/types.d.ts.map +1 -0
- package/dist/xulux/types.js +6 -0
- package/dist/xulux/types.js.map +1 -0
- package/package.json +7 -6
- package/src/index.ts +55 -2
- package/src/prompts/xulux-playground.ts +36 -0
- package/src/tools/docs.ts +27 -5
- package/src/tools/examples.ts +17 -12
- package/src/tools/resources.ts +1 -4
- package/src/tools/search.ts +2 -2
- package/src/tools/tests/completions.test.ts +40 -26
- package/src/tools/tests/docs.test.ts +20 -0
- package/src/tools/tests/examples.test.ts +5 -5
- package/src/tools/tests/integration.test.ts +3 -4
- package/src/tools/tests/listings-cache.test.ts +19 -0
- package/src/tools/tests/mcp-protocol.test.ts +173 -108
- package/src/tools/tests/mcp-test-client.ts +111 -0
- package/src/tools/tests/resources.test.ts +97 -66
- package/src/tools/tests/test-setup.ts +8 -0
- package/src/tools/tests/xulux-templates.test.ts +262 -0
- package/src/tools/xulux-templates.ts +141 -0
- package/src/utils/cache.ts +20 -0
- package/src/utils/mcp-format.ts +8 -6
- package/src/utils/paths.ts +4 -1
- package/src/utils/tests/cache.test.ts +51 -0
- package/src/utils/tests/mcp-format.test.ts +22 -0
- package/src/utils/tests/security.test.ts +1 -1
- package/src/xulux/catalog-client.ts +105 -0
- package/src/xulux/fallback-catalog.ts +63 -0
- package/src/xulux/fetch-sandbox.ts +56 -0
- package/src/xulux/template-service.ts +406 -0
- package/src/xulux/types.ts +60 -0
- package/.docs/raw/docs/(reference)/api-reference/hooks/utilities.mdx +0 -464
|
@@ -336,27 +336,28 @@ export default withAui(nextConfig);
|
|
|
336
336
|
"@assistant-ui/react-langchain": "workspace:*",
|
|
337
337
|
"@assistant-ui/react-markdown": "workspace:*",
|
|
338
338
|
"@assistant-ui/ui": "workspace:*",
|
|
339
|
-
"@langchain/langgraph-sdk": "^1.9.
|
|
340
|
-
"@langchain/react": "^1.0.
|
|
339
|
+
"@langchain/langgraph-sdk": "^1.9.28",
|
|
340
|
+
"@langchain/react": "^1.0.29",
|
|
341
341
|
"class-variance-authority": "^0.7.1",
|
|
342
342
|
"clsx": "^2.1.1",
|
|
343
|
-
"lucide-react": "^1.
|
|
344
|
-
"next": "^16.2.
|
|
345
|
-
"react": "^19.2.
|
|
346
|
-
"react-dom": "^19.2.
|
|
343
|
+
"lucide-react": "^1.26.0",
|
|
344
|
+
"next": "^16.2.11",
|
|
345
|
+
"react": "^19.2.8",
|
|
346
|
+
"react-dom": "^19.2.8",
|
|
347
347
|
"tailwind-merge": "^3.6.0"
|
|
348
348
|
},
|
|
349
349
|
"devDependencies": {
|
|
350
350
|
"@assistant-ui/next": "workspace:*",
|
|
351
351
|
"@assistant-ui/x-buildutils": "workspace:*",
|
|
352
|
-
"@tailwindcss/postcss": "^4.3.
|
|
353
|
-
"@types/node": "^26.
|
|
352
|
+
"@tailwindcss/postcss": "^4.3.3",
|
|
353
|
+
"@types/node": "^26.1.1",
|
|
354
354
|
"@types/react": "^19.2.17",
|
|
355
355
|
"@types/react-dom": "^19.2.3",
|
|
356
|
-
"postcss": "^8.5.
|
|
357
|
-
"tailwindcss": "^4.3.
|
|
356
|
+
"postcss": "^8.5.23",
|
|
357
|
+
"tailwindcss": "^4.3.3",
|
|
358
358
|
"tw-animate-css": "^1.4.0",
|
|
359
|
-
"typescript": "
|
|
359
|
+
"typescript": "npm:@typescript/typescript6@^6.0.2",
|
|
360
|
+
"typescript-7": "npm:typescript@^7.0.2"
|
|
360
361
|
}
|
|
361
362
|
}
|
|
362
363
|
|
|
@@ -426,7 +427,13 @@ Open [http://localhost:3000](http://localhost:3000).
|
|
|
426
427
|
"@/components/assistant-ui/*": [
|
|
427
428
|
"../../packages/ui/src/components/assistant-ui/*"
|
|
428
429
|
],
|
|
429
|
-
"@/components/ui/*": [
|
|
430
|
+
"@/components/ui/*": [
|
|
431
|
+
"../../packages/ui/src/components/ui/base/*",
|
|
432
|
+
"../../packages/ui/src/components/ui/radix/*"
|
|
433
|
+
],
|
|
434
|
+
"@/components/ui/radix/*": [
|
|
435
|
+
"../../packages/ui/src/components/ui/radix/*"
|
|
436
|
+
],
|
|
430
437
|
"@/lib/utils": ["../../packages/ui/src/lib/utils"],
|
|
431
438
|
"@assistant-ui/ui/*": ["../../packages/ui/src/*"]
|
|
432
439
|
}
|
|
@@ -740,27 +740,28 @@ export default withAui(nextConfig);
|
|
|
740
740
|
"@assistant-ui/react-langchain": "workspace:*",
|
|
741
741
|
"@assistant-ui/react-markdown": "workspace:*",
|
|
742
742
|
"@assistant-ui/ui": "workspace:*",
|
|
743
|
-
"@langchain/langgraph-sdk": "^1.9.
|
|
744
|
-
"@langchain/react": "^1.0.
|
|
743
|
+
"@langchain/langgraph-sdk": "^1.9.28",
|
|
744
|
+
"@langchain/react": "^1.0.29",
|
|
745
745
|
"class-variance-authority": "^0.7.1",
|
|
746
746
|
"clsx": "^2.1.1",
|
|
747
|
-
"lucide-react": "^1.
|
|
748
|
-
"next": "^16.2.
|
|
749
|
-
"react": "^19.2.
|
|
750
|
-
"react-dom": "^19.2.
|
|
747
|
+
"lucide-react": "^1.26.0",
|
|
748
|
+
"next": "^16.2.11",
|
|
749
|
+
"react": "^19.2.8",
|
|
750
|
+
"react-dom": "^19.2.8",
|
|
751
751
|
"tailwind-merge": "^3.6.0"
|
|
752
752
|
},
|
|
753
753
|
"devDependencies": {
|
|
754
754
|
"@assistant-ui/next": "workspace:*",
|
|
755
755
|
"@assistant-ui/x-buildutils": "workspace:*",
|
|
756
|
-
"@tailwindcss/postcss": "^4.3.
|
|
757
|
-
"@types/node": "^26.
|
|
756
|
+
"@tailwindcss/postcss": "^4.3.3",
|
|
757
|
+
"@types/node": "^26.1.1",
|
|
758
758
|
"@types/react": "^19.2.17",
|
|
759
759
|
"@types/react-dom": "^19.2.3",
|
|
760
|
-
"postcss": "^8.5.
|
|
761
|
-
"tailwindcss": "^4.3.
|
|
760
|
+
"postcss": "^8.5.23",
|
|
761
|
+
"tailwindcss": "^4.3.3",
|
|
762
762
|
"tw-animate-css": "^1.4.0",
|
|
763
|
-
"typescript": "
|
|
763
|
+
"typescript": "npm:@typescript/typescript6@^6.0.2",
|
|
764
|
+
"typescript-7": "npm:typescript@^7.0.2"
|
|
764
765
|
}
|
|
765
766
|
}
|
|
766
767
|
|
|
@@ -828,7 +829,13 @@ npm run dev
|
|
|
828
829
|
"@/components/assistant-ui/*": [
|
|
829
830
|
"../../packages/ui/src/components/assistant-ui/*"
|
|
830
831
|
],
|
|
831
|
-
"@/components/ui/*": [
|
|
832
|
+
"@/components/ui/*": [
|
|
833
|
+
"../../packages/ui/src/components/ui/base/*",
|
|
834
|
+
"../../packages/ui/src/components/ui/radix/*"
|
|
835
|
+
],
|
|
836
|
+
"@/components/ui/radix/*": [
|
|
837
|
+
"../../packages/ui/src/components/ui/radix/*"
|
|
838
|
+
],
|
|
832
839
|
"@/lib/utils": ["../../packages/ui/src/lib/utils"],
|
|
833
840
|
"@assistant-ui/ui/*": ["../../packages/ui/src/*"]
|
|
834
841
|
}
|
|
@@ -554,36 +554,37 @@ export default withAui(nextConfig);
|
|
|
554
554
|
"version": "0.0.0",
|
|
555
555
|
"type": "module",
|
|
556
556
|
"dependencies": {
|
|
557
|
-
"@ai-sdk/openai": "^
|
|
558
|
-
"@ai-sdk/react": "^
|
|
557
|
+
"@ai-sdk/openai": "^4.0.20",
|
|
558
|
+
"@ai-sdk/react": "^4.0.40",
|
|
559
559
|
"@assistant-ui/react": "workspace:^",
|
|
560
560
|
"@assistant-ui/react-ai-sdk": "workspace:*",
|
|
561
561
|
"@assistant-ui/react-markdown": "workspace:^",
|
|
562
562
|
"@assistant-ui/ui": "workspace:*",
|
|
563
|
-
"@tailwindcss/postcss": "^4.3.
|
|
564
|
-
"ai": "^
|
|
563
|
+
"@tailwindcss/postcss": "^4.3.3",
|
|
564
|
+
"ai": "^7.0.37",
|
|
565
565
|
"class-variance-authority": "^0.7.1",
|
|
566
566
|
"clsx": "^2.1.1",
|
|
567
|
-
"livekit-client": "^2.
|
|
568
|
-
"livekit-server-sdk": "^2.
|
|
569
|
-
"lucide-react": "^1.
|
|
570
|
-
"motion": "^12.
|
|
571
|
-
"next": "^16.2.
|
|
572
|
-
"postcss": "^8.5.
|
|
573
|
-
"react": "^19.2.
|
|
574
|
-
"react-dom": "^19.2.
|
|
567
|
+
"livekit-client": "^2.21.0",
|
|
568
|
+
"livekit-server-sdk": "^2.17.0",
|
|
569
|
+
"lucide-react": "^1.26.0",
|
|
570
|
+
"motion": "^12.42.2",
|
|
571
|
+
"next": "^16.2.11",
|
|
572
|
+
"postcss": "^8.5.23",
|
|
573
|
+
"react": "^19.2.8",
|
|
574
|
+
"react-dom": "^19.2.8",
|
|
575
575
|
"tailwind-merge": "^3.6.0",
|
|
576
|
-
"tailwindcss": "^4.3.
|
|
576
|
+
"tailwindcss": "^4.3.3",
|
|
577
577
|
"zod": "^4.4.3"
|
|
578
578
|
},
|
|
579
579
|
"devDependencies": {
|
|
580
580
|
"@assistant-ui/next": "workspace:*",
|
|
581
581
|
"@assistant-ui/x-buildutils": "workspace:*",
|
|
582
|
-
"@types/node": "^26.
|
|
582
|
+
"@types/node": "^26.1.1",
|
|
583
583
|
"@types/react": "^19.2.17",
|
|
584
584
|
"@types/react-dom": "^19.2.3",
|
|
585
585
|
"tw-animate-css": "^1.4.0",
|
|
586
|
-
"typescript": "
|
|
586
|
+
"typescript": "npm:@typescript/typescript6@^6.0.2",
|
|
587
|
+
"typescript-7": "npm:typescript@^7.0.2"
|
|
587
588
|
},
|
|
588
589
|
"scripts": {
|
|
589
590
|
"dev": "next dev",
|
|
@@ -616,7 +617,13 @@ export default withAui(nextConfig);
|
|
|
616
617
|
"@/components/assistant-ui/*": [
|
|
617
618
|
"../../packages/ui/src/components/assistant-ui/*"
|
|
618
619
|
],
|
|
619
|
-
"@/components/ui/*": [
|
|
620
|
+
"@/components/ui/*": [
|
|
621
|
+
"../../packages/ui/src/components/ui/base/*",
|
|
622
|
+
"../../packages/ui/src/components/ui/radix/*"
|
|
623
|
+
],
|
|
624
|
+
"@/components/ui/radix/*": [
|
|
625
|
+
"../../packages/ui/src/components/ui/radix/*"
|
|
626
|
+
],
|
|
620
627
|
"@/lib/utils": ["../../packages/ui/src/lib/utils"],
|
|
621
628
|
"@assistant-ui/ui/*": ["../../packages/ui/src/*"],
|
|
622
629
|
"@assistant-ui/*": ["../../packages/*/src"],
|
|
@@ -312,7 +312,13 @@ export default nextConfig;
|
|
|
312
312
|
"@/components/assistant-ui/*": [
|
|
313
313
|
"../../../packages/ui/src/components/assistant-ui/*"
|
|
314
314
|
],
|
|
315
|
-
"@/components/ui/*": [
|
|
315
|
+
"@/components/ui/*": [
|
|
316
|
+
"../../../packages/ui/src/components/ui/base/*",
|
|
317
|
+
"../../../packages/ui/src/components/ui/radix/*"
|
|
318
|
+
],
|
|
319
|
+
"@/components/ui/radix/*": [
|
|
320
|
+
"../../../packages/ui/src/components/ui/radix/*"
|
|
321
|
+
],
|
|
316
322
|
"@/lib/utils": ["../../../packages/ui/src/lib/utils"],
|
|
317
323
|
"@assistant-ui/ui/*": ["../../../packages/ui/src/*"]
|
|
318
324
|
}
|
|
@@ -376,7 +382,7 @@ export default nextConfig;
|
|
|
376
382
|
"start:server": "tsx server/server.ts"
|
|
377
383
|
},
|
|
378
384
|
"dependencies": {
|
|
379
|
-
"@ai-sdk/openai": "^
|
|
385
|
+
"@ai-sdk/openai": "^4.0.20",
|
|
380
386
|
"@assistant-ui/react": "workspace:*",
|
|
381
387
|
"@assistant-ui/react-ai-sdk": "workspace:*",
|
|
382
388
|
"@assistant-ui/react-markdown": "workspace:*",
|
|
@@ -384,34 +390,38 @@ export default nextConfig;
|
|
|
384
390
|
"@assistant-ui/store": "workspace:*",
|
|
385
391
|
"@assistant-ui/tap": "workspace:*",
|
|
386
392
|
"@assistant-ui/ui": "workspace:*",
|
|
387
|
-
"@modelcontextprotocol/
|
|
388
|
-
"
|
|
393
|
+
"@modelcontextprotocol/express": "^2.0.0",
|
|
394
|
+
"@modelcontextprotocol/node": "^2.0.0",
|
|
395
|
+
"@modelcontextprotocol/server": "^2.0.0",
|
|
396
|
+
"@modelcontextprotocol/server-legacy": "^2.0.0",
|
|
397
|
+
"ai": "^7.0.37",
|
|
389
398
|
"assistant-stream": "workspace:*",
|
|
390
399
|
"class-variance-authority": "^0.7.1",
|
|
391
400
|
"clsx": "^2.1.1",
|
|
392
401
|
"cors": "^2.8.6",
|
|
393
402
|
"express": "^5.2.1",
|
|
394
|
-
"lucide-react": "^1.
|
|
395
|
-
"next": "^16.2.
|
|
396
|
-
"react": "^19.2.
|
|
397
|
-
"react-dom": "^19.2.
|
|
403
|
+
"lucide-react": "^1.26.0",
|
|
404
|
+
"next": "^16.2.11",
|
|
405
|
+
"react": "^19.2.8",
|
|
406
|
+
"react-dom": "^19.2.8",
|
|
398
407
|
"tailwind-merge": "^3.6.0",
|
|
399
408
|
"zod": "^4.4.3"
|
|
400
409
|
},
|
|
401
410
|
"devDependencies": {
|
|
402
411
|
"@assistant-ui/x-buildutils": "workspace:*",
|
|
403
|
-
"@tailwindcss/postcss": "^4.3.
|
|
412
|
+
"@tailwindcss/postcss": "^4.3.3",
|
|
404
413
|
"@types/cors": "^2.8.19",
|
|
405
414
|
"@types/express": "^5.0.6",
|
|
406
|
-
"@types/node": "^26.
|
|
415
|
+
"@types/node": "^26.1.1",
|
|
407
416
|
"@types/react": "^19.2.17",
|
|
408
417
|
"@types/react-dom": "^19.2.3",
|
|
409
|
-
"concurrently": "^10.0.
|
|
410
|
-
"postcss": "^8.5.
|
|
411
|
-
"tailwindcss": "^4.3.
|
|
412
|
-
"tsx": "^4.
|
|
418
|
+
"concurrently": "^10.0.4",
|
|
419
|
+
"postcss": "^8.5.23",
|
|
420
|
+
"tailwindcss": "^4.3.3",
|
|
421
|
+
"tsx": "^4.23.1",
|
|
413
422
|
"tw-animate-css": "^1.4.0",
|
|
414
|
-
"typescript": "
|
|
423
|
+
"typescript": "npm:@typescript/typescript6@^6.0.2",
|
|
424
|
+
"typescript-7": "npm:typescript@^7.0.2"
|
|
415
425
|
}
|
|
416
426
|
}
|
|
417
427
|
|
|
@@ -457,7 +467,7 @@ transitions to `connected` and the `echo` / `fingerprint` tools appear.
|
|
|
457
467
|
/**
|
|
458
468
|
* Standalone test MCP server with OAuth.
|
|
459
469
|
*
|
|
460
|
-
* - OAuth 2.1 authorization server (PKCE + DCR) via @modelcontextprotocol/
|
|
470
|
+
* - OAuth 2.1 authorization server (PKCE + DCR) via @modelcontextprotocol/server-legacy's auth router.
|
|
461
471
|
* - One MCP tool, `echo`, that returns its input.
|
|
462
472
|
* - All state in memory; for local development / E2E only.
|
|
463
473
|
*
|
|
@@ -466,17 +476,19 @@ transitions to `connected` and the `echo` / `fingerprint` tools appear.
|
|
|
466
476
|
import express from "express";
|
|
467
477
|
import cors from "cors";
|
|
468
478
|
import { randomBytes, randomUUID, createHash } from "node:crypto";
|
|
469
|
-
import { McpServer } from "@modelcontextprotocol/
|
|
470
|
-
import { StreamableHTTPServerTransport } from "@modelcontextprotocol/sdk/server/streamableHttp.js";
|
|
471
|
-
import { mcpAuthRouter } from "@modelcontextprotocol/sdk/server/auth/router.js";
|
|
472
|
-
import { requireBearerAuth } from "@modelcontextprotocol/sdk/server/auth/middleware/bearerAuth.js";
|
|
473
|
-
import type { OAuthServerProvider } from "@modelcontextprotocol/sdk/server/auth/provider.js";
|
|
474
|
-
import type { OAuthRegisteredClientsStore } from "@modelcontextprotocol/sdk/server/auth/clients.js";
|
|
479
|
+
import { McpServer } from "@modelcontextprotocol/server";
|
|
475
480
|
import type {
|
|
481
|
+
AuthInfo,
|
|
476
482
|
OAuthClientInformationFull,
|
|
477
483
|
OAuthTokens,
|
|
478
|
-
} from "@modelcontextprotocol/
|
|
479
|
-
import
|
|
484
|
+
} from "@modelcontextprotocol/server";
|
|
485
|
+
import { NodeStreamableHTTPServerTransport } from "@modelcontextprotocol/node";
|
|
486
|
+
import { mcpAuthRouter } from "@modelcontextprotocol/server-legacy/auth";
|
|
487
|
+
import type {
|
|
488
|
+
OAuthServerProvider,
|
|
489
|
+
OAuthRegisteredClientsStore,
|
|
490
|
+
} from "@modelcontextprotocol/server-legacy/auth";
|
|
491
|
+
import { requireBearerAuth } from "@modelcontextprotocol/express";
|
|
480
492
|
import { z } from "zod";
|
|
481
493
|
|
|
482
494
|
const PORT = Number(process.env.PORT ?? 8787);
|
|
@@ -626,7 +638,7 @@ function buildMcpServer(): McpServer {
|
|
|
626
638
|
{
|
|
627
639
|
title: "Echo",
|
|
628
640
|
description: "Echo back the provided text.",
|
|
629
|
-
inputSchema: { text: z.string().describe("Text to echo back") },
|
|
641
|
+
inputSchema: z.object({ text: z.string().describe("Text to echo back") }),
|
|
630
642
|
annotations: { readOnlyHint: true, openWorldHint: false },
|
|
631
643
|
},
|
|
632
644
|
async ({ text }) => ({
|
|
@@ -639,7 +651,7 @@ function buildMcpServer(): McpServer {
|
|
|
639
651
|
title: "Fingerprint",
|
|
640
652
|
description:
|
|
641
653
|
"Return a deterministic fingerprint of a string (sha256 hex).",
|
|
642
|
-
inputSchema: { input: z.string() },
|
|
654
|
+
inputSchema: z.object({ input: z.string() }),
|
|
643
655
|
annotations: { readOnlyHint: true, openWorldHint: false },
|
|
644
656
|
},
|
|
645
657
|
async ({ input }) => ({
|
|
@@ -690,7 +702,7 @@ async function main() {
|
|
|
690
702
|
|
|
691
703
|
app.post("/mcp", bearer, async (req, res) => {
|
|
692
704
|
try {
|
|
693
|
-
const transport = new
|
|
705
|
+
const transport = new NodeStreamableHTTPServerTransport({
|
|
694
706
|
sessionIdGenerator: undefined,
|
|
695
707
|
});
|
|
696
708
|
res.on("close", () => transport.close());
|
|
@@ -743,7 +755,13 @@ main().catch((err) => {
|
|
|
743
755
|
"@/components/assistant-ui/*": [
|
|
744
756
|
"../../packages/ui/src/components/assistant-ui/*"
|
|
745
757
|
],
|
|
746
|
-
"@/components/ui/*": [
|
|
758
|
+
"@/components/ui/*": [
|
|
759
|
+
"../../packages/ui/src/components/ui/base/*",
|
|
760
|
+
"../../packages/ui/src/components/ui/radix/*"
|
|
761
|
+
],
|
|
762
|
+
"@/components/ui/radix/*": [
|
|
763
|
+
"../../packages/ui/src/components/ui/radix/*"
|
|
764
|
+
],
|
|
747
765
|
"@/lib/utils": ["../../packages/ui/src/lib/utils"],
|
|
748
766
|
"@assistant-ui/ui/*": ["../../packages/ui/src/*"],
|
|
749
767
|
"@/*": ["./app/*"]
|
|
@@ -193,9 +193,9 @@ import {
|
|
|
193
193
|
SidebarInset,
|
|
194
194
|
SidebarProvider,
|
|
195
195
|
SidebarTrigger,
|
|
196
|
-
} from "@/components/ui/sidebar";
|
|
197
|
-
import { Separator } from "@/components/ui/separator";
|
|
198
|
-
import { ThreadListSidebar } from "@/components/assistant-ui/threadlist-sidebar";
|
|
196
|
+
} from "@/components/ui/radix/sidebar";
|
|
197
|
+
import { Separator } from "@/components/ui/radix/separator";
|
|
198
|
+
import { ThreadListSidebar } from "@/components/assistant-ui/threadlist-sidebar.radix";
|
|
199
199
|
import {
|
|
200
200
|
useOpenCodeRuntime,
|
|
201
201
|
useOpenCodeSession,
|
|
@@ -227,10 +227,7 @@ export default function Home() {
|
|
|
227
227
|
tools: Tools({ toolkit }),
|
|
228
228
|
});
|
|
229
229
|
|
|
230
|
-
useEffect(
|
|
231
|
-
() => aui.dataRenderers().setFallbackDataUI(OpenCodeDataPart),
|
|
232
|
-
[aui],
|
|
233
|
-
);
|
|
230
|
+
useEffect(() => aui.dataRenderers.setFallbackDataUI(OpenCodeDataPart), [aui]);
|
|
234
231
|
|
|
235
232
|
return (
|
|
236
233
|
<AssistantRuntimeProvider aui={aui} runtime={runtime}>
|
|
@@ -1210,7 +1207,7 @@ import {
|
|
|
1210
1207
|
Collapsible,
|
|
1211
1208
|
CollapsibleContent,
|
|
1212
1209
|
CollapsibleTrigger,
|
|
1213
|
-
} from "@/components/ui/collapsible";
|
|
1210
|
+
} from "@/components/ui/radix/collapsible";
|
|
1214
1211
|
import { cn } from "@/lib/utils";
|
|
1215
1212
|
import { PatchDiff } from "@pierre/diffs/react";
|
|
1216
1213
|
import {
|
|
@@ -1446,7 +1443,7 @@ import {
|
|
|
1446
1443
|
Collapsible,
|
|
1447
1444
|
CollapsibleContent,
|
|
1448
1445
|
CollapsibleTrigger,
|
|
1449
|
-
} from "@/components/ui/collapsible";
|
|
1446
|
+
} from "@/components/ui/radix/collapsible";
|
|
1450
1447
|
import { cn } from "@/lib/utils";
|
|
1451
1448
|
import {
|
|
1452
1449
|
ToolStatusIcon,
|
|
@@ -1868,9 +1865,7 @@ export default defineToolkit({
|
|
|
1868
1865
|
import { withAui } from "@assistant-ui/next";
|
|
1869
1866
|
import type { NextConfig } from "next";
|
|
1870
1867
|
|
|
1871
|
-
const nextConfig: NextConfig = {
|
|
1872
|
-
/* config options here */
|
|
1873
|
-
};
|
|
1868
|
+
const nextConfig: NextConfig = {/* config options here */};
|
|
1874
1869
|
|
|
1875
1870
|
export default withAui(nextConfig);
|
|
1876
1871
|
|
|
@@ -1894,27 +1889,28 @@ export default withAui(nextConfig);
|
|
|
1894
1889
|
"@assistant-ui/react-markdown": "workspace:*",
|
|
1895
1890
|
"@assistant-ui/react-opencode": "workspace:*",
|
|
1896
1891
|
"@assistant-ui/ui": "workspace:*",
|
|
1897
|
-
"@pierre/diffs": "^1.2.
|
|
1892
|
+
"@pierre/diffs": "^1.2.12",
|
|
1898
1893
|
"class-variance-authority": "^0.7.1",
|
|
1899
1894
|
"clsx": "^2.1.1",
|
|
1900
|
-
"lucide-react": "^1.
|
|
1901
|
-
"next": "^16.2.
|
|
1902
|
-
"react": "^19.2.
|
|
1903
|
-
"react-dom": "^19.2.
|
|
1895
|
+
"lucide-react": "^1.26.0",
|
|
1896
|
+
"next": "^16.2.11",
|
|
1897
|
+
"react": "^19.2.8",
|
|
1898
|
+
"react-dom": "^19.2.8",
|
|
1904
1899
|
"tailwind-merge": "^3.6.0",
|
|
1905
1900
|
"zod": "^4.4.3"
|
|
1906
1901
|
},
|
|
1907
1902
|
"devDependencies": {
|
|
1908
1903
|
"@assistant-ui/next": "workspace:*",
|
|
1909
1904
|
"@assistant-ui/x-buildutils": "workspace:*",
|
|
1910
|
-
"@tailwindcss/postcss": "^4.3.
|
|
1911
|
-
"@types/node": "^26.
|
|
1905
|
+
"@tailwindcss/postcss": "^4.3.3",
|
|
1906
|
+
"@types/node": "^26.1.1",
|
|
1912
1907
|
"@types/react": "^19.2.17",
|
|
1913
1908
|
"@types/react-dom": "^19.2.3",
|
|
1914
|
-
"postcss": "^8.5.
|
|
1915
|
-
"tailwindcss": "^4.3.
|
|
1909
|
+
"postcss": "^8.5.23",
|
|
1910
|
+
"tailwindcss": "^4.3.3",
|
|
1916
1911
|
"tw-animate-css": "^1.4.0",
|
|
1917
|
-
"typescript": "
|
|
1912
|
+
"typescript": "npm:@typescript/typescript6@^6.0.2",
|
|
1913
|
+
"typescript-7": "npm:typescript@^7.0.2"
|
|
1918
1914
|
}
|
|
1919
1915
|
}
|
|
1920
1916
|
|
|
@@ -1949,7 +1945,13 @@ Set `NEXT_PUBLIC_OPENCODE_BASE_URL` if your OpenCode server is not running on
|
|
|
1949
1945
|
"../../packages/ui/src/components/assistant-ui/*"
|
|
1950
1946
|
],
|
|
1951
1947
|
"@/components/icons/*": ["../../packages/ui/src/components/icons/*"],
|
|
1952
|
-
"@/components/ui/*": [
|
|
1948
|
+
"@/components/ui/*": [
|
|
1949
|
+
"../../packages/ui/src/components/ui/base/*",
|
|
1950
|
+
"../../packages/ui/src/components/ui/radix/*"
|
|
1951
|
+
],
|
|
1952
|
+
"@/components/ui/radix/*": [
|
|
1953
|
+
"../../packages/ui/src/components/ui/radix/*"
|
|
1954
|
+
],
|
|
1953
1955
|
"@/hooks/*": ["../../packages/ui/src/hooks/*"],
|
|
1954
1956
|
"@/lib/utils": ["../../packages/ui/src/lib/utils"],
|
|
1955
1957
|
"@assistant-ui/ui/*": ["../../packages/ui/src/*"]
|
|
@@ -373,6 +373,34 @@ export const POST = withFail(async (req: NextRequest) => {
|
|
|
373
373
|
@import "tailwindcss";
|
|
374
374
|
@import "tw-animate-css";
|
|
375
375
|
|
|
376
|
+
@custom-variant data-open (&:where([data-state="open"], [data-open]:not([data-open="false"])));
|
|
377
|
+
@custom-variant data-closed (&:where([data-state="closed"], [data-closed]:not([data-closed="false"])));
|
|
378
|
+
|
|
379
|
+
@theme inline {
|
|
380
|
+
@keyframes collapsible-down {
|
|
381
|
+
from {
|
|
382
|
+
height: 0;
|
|
383
|
+
}
|
|
384
|
+
to {
|
|
385
|
+
height: var(
|
|
386
|
+
--radix-collapsible-content-height,
|
|
387
|
+
var(--collapsible-panel-height, auto)
|
|
388
|
+
);
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
@keyframes collapsible-up {
|
|
392
|
+
from {
|
|
393
|
+
height: var(
|
|
394
|
+
--radix-collapsible-content-height,
|
|
395
|
+
var(--collapsible-panel-height, auto)
|
|
396
|
+
);
|
|
397
|
+
}
|
|
398
|
+
to {
|
|
399
|
+
height: 0;
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
|
|
376
404
|
@source "../../../packages/ui/src";
|
|
377
405
|
|
|
378
406
|
@custom-variant dark (&:is(.dark *));
|
|
@@ -700,7 +728,7 @@ import {
|
|
|
700
728
|
Tooltip,
|
|
701
729
|
TooltipContent,
|
|
702
730
|
TooltipTrigger,
|
|
703
|
-
} from "@/components/ui/tooltip";
|
|
731
|
+
} from "@/components/ui/radix/tooltip";
|
|
704
732
|
import { cn } from "@/lib/utils";
|
|
705
733
|
|
|
706
734
|
/**
|
|
@@ -1070,7 +1098,7 @@ const ComposerQueue: FC = () => {
|
|
|
1070
1098
|
.then(({ steering, followUp }) => {
|
|
1071
1099
|
const restored = [...steering, ...followUp].join("\n");
|
|
1072
1100
|
if (!restored) return;
|
|
1073
|
-
const composer = aui.composer
|
|
1101
|
+
const composer = aui.composer;
|
|
1074
1102
|
const current = composer.getState().text;
|
|
1075
1103
|
composer.setText(current ? `${current}\n${restored}` : restored);
|
|
1076
1104
|
})
|
|
@@ -1549,7 +1577,7 @@ import {
|
|
|
1549
1577
|
DialogHeader,
|
|
1550
1578
|
DialogTitle,
|
|
1551
1579
|
DialogTrigger,
|
|
1552
|
-
} from "@/components/ui/dialog";
|
|
1580
|
+
} from "@/components/ui/radix/dialog";
|
|
1553
1581
|
import { Button } from "@/components/ui/button";
|
|
1554
1582
|
import { ScrollArea } from "@/components/ui/scroll-area";
|
|
1555
1583
|
import { Spinner } from "@/components/ui/spinner";
|
|
@@ -1756,8 +1784,8 @@ export const modelKey = (provider: string, modelId: string): string =>
|
|
|
1756
1784
|
* (~/.pi/agent by default); when set, every Pi config source below points at it.
|
|
1757
1785
|
*/
|
|
1758
1786
|
import {
|
|
1759
|
-
AuthStorage,
|
|
1760
1787
|
ModelRegistry,
|
|
1788
|
+
ModelRuntime,
|
|
1761
1789
|
SettingsManager,
|
|
1762
1790
|
} from "@earendil-works/pi-coding-agent";
|
|
1763
1791
|
import {
|
|
@@ -1776,10 +1804,10 @@ const env = (key: string): string | undefined => {
|
|
|
1776
1804
|
const workspacePath = env("PI_WORKSPACE_PATH") ?? process.cwd();
|
|
1777
1805
|
const agentDir = env("PI_CODING_AGENT_DIR");
|
|
1778
1806
|
|
|
1779
|
-
const
|
|
1780
|
-
agentDir ? `${agentDir}/auth.json` :
|
|
1807
|
+
const modelRuntime = await ModelRuntime.create(
|
|
1808
|
+
agentDir ? { authPath: `${agentDir}/auth.json` } : {},
|
|
1781
1809
|
);
|
|
1782
|
-
const modelRegistry = ModelRegistry
|
|
1810
|
+
const modelRegistry = new ModelRegistry(modelRuntime);
|
|
1783
1811
|
const settingsManager = SettingsManager.create(workspacePath, agentDir);
|
|
1784
1812
|
|
|
1785
1813
|
// Env wins; otherwise fall back to Pi's configured default (settings.json).
|
|
@@ -1930,27 +1958,28 @@ export default withAui(nextConfig);
|
|
|
1930
1958
|
"@assistant-ui/react-markdown": "workspace:*",
|
|
1931
1959
|
"@assistant-ui/react-pi": "workspace:*",
|
|
1932
1960
|
"@assistant-ui/ui": "workspace:*",
|
|
1933
|
-
"@earendil-works/pi-coding-agent": "^0.
|
|
1961
|
+
"@earendil-works/pi-coding-agent": "^0.82.0",
|
|
1934
1962
|
"class-variance-authority": "^0.7.1",
|
|
1935
1963
|
"clsx": "^2.1.1",
|
|
1936
|
-
"lucide-react": "^1.
|
|
1937
|
-
"next": "^16.2.
|
|
1938
|
-
"radix-ui": "^1.6.
|
|
1939
|
-
"react": "^19.2.
|
|
1940
|
-
"react-dom": "^19.2.
|
|
1964
|
+
"lucide-react": "^1.26.0",
|
|
1965
|
+
"next": "^16.2.11",
|
|
1966
|
+
"radix-ui": "^1.6.7",
|
|
1967
|
+
"react": "^19.2.8",
|
|
1968
|
+
"react-dom": "^19.2.8",
|
|
1941
1969
|
"tailwind-merge": "^3.6.0"
|
|
1942
1970
|
},
|
|
1943
1971
|
"devDependencies": {
|
|
1944
1972
|
"@assistant-ui/next": "workspace:*",
|
|
1945
1973
|
"@assistant-ui/x-buildutils": "workspace:*",
|
|
1946
|
-
"@tailwindcss/postcss": "^4.3.
|
|
1947
|
-
"@types/node": "^26.
|
|
1974
|
+
"@tailwindcss/postcss": "^4.3.3",
|
|
1975
|
+
"@types/node": "^26.1.1",
|
|
1948
1976
|
"@types/react": "^19.2.17",
|
|
1949
1977
|
"@types/react-dom": "^19.2.3",
|
|
1950
|
-
"postcss": "^8.5.
|
|
1951
|
-
"tailwindcss": "^4.3.
|
|
1978
|
+
"postcss": "^8.5.23",
|
|
1979
|
+
"tailwindcss": "^4.3.3",
|
|
1952
1980
|
"tw-animate-css": "^1.4.0",
|
|
1953
|
-
"typescript": "
|
|
1981
|
+
"typescript": "npm:@typescript/typescript6@^6.0.2",
|
|
1982
|
+
"typescript-7": "npm:typescript@^7.0.2"
|
|
1954
1983
|
}
|
|
1955
1984
|
}
|
|
1956
1985
|
|
|
@@ -2033,7 +2062,13 @@ Point it at a scratch directory.
|
|
|
2033
2062
|
"@/components/assistant-ui/*": [
|
|
2034
2063
|
"../../packages/ui/src/components/assistant-ui/*"
|
|
2035
2064
|
],
|
|
2036
|
-
"@/components/ui/*": [
|
|
2065
|
+
"@/components/ui/*": [
|
|
2066
|
+
"../../packages/ui/src/components/ui/base/*",
|
|
2067
|
+
"../../packages/ui/src/components/ui/radix/*"
|
|
2068
|
+
],
|
|
2069
|
+
"@/components/ui/radix/*": [
|
|
2070
|
+
"../../packages/ui/src/components/ui/radix/*"
|
|
2071
|
+
],
|
|
2037
2072
|
"@/lib/utils": ["../../packages/ui/src/lib/utils"],
|
|
2038
2073
|
"@assistant-ui/ui/*": ["../../packages/ui/src/*"]
|
|
2039
2074
|
}
|
|
@@ -595,9 +595,7 @@ export const submitSignup = async (data: object) => {
|
|
|
595
595
|
import { withAui } from "@assistant-ui/next";
|
|
596
596
|
import type { NextConfig } from "next";
|
|
597
597
|
|
|
598
|
-
const nextConfig: NextConfig = {
|
|
599
|
-
/* config options here */
|
|
600
|
-
};
|
|
598
|
+
const nextConfig: NextConfig = {/* config options here */};
|
|
601
599
|
|
|
602
600
|
export default withAui(nextConfig);
|
|
603
601
|
|
|
@@ -617,33 +615,34 @@ export default withAui(nextConfig);
|
|
|
617
615
|
"start": "next start"
|
|
618
616
|
},
|
|
619
617
|
"dependencies": {
|
|
620
|
-
"@ai-sdk/openai": "^
|
|
618
|
+
"@ai-sdk/openai": "^4.0.20",
|
|
621
619
|
"@assistant-ui/react": "workspace:*",
|
|
622
620
|
"@assistant-ui/react-ai-sdk": "workspace:*",
|
|
623
621
|
"@assistant-ui/react-hook-form": "workspace:*",
|
|
624
622
|
"@assistant-ui/react-markdown": "workspace:*",
|
|
625
623
|
"@assistant-ui/ui": "workspace:*",
|
|
626
|
-
"ai": "^
|
|
624
|
+
"ai": "^7.0.37",
|
|
627
625
|
"class-variance-authority": "^0.7.1",
|
|
628
626
|
"clsx": "^2.1.1",
|
|
629
|
-
"lucide-react": "^1.
|
|
630
|
-
"next": "^16.2.
|
|
631
|
-
"react": "^19.2.
|
|
632
|
-
"react-dom": "^19.2.
|
|
633
|
-
"react-hook-form": "^7.
|
|
627
|
+
"lucide-react": "^1.26.0",
|
|
628
|
+
"next": "^16.2.11",
|
|
629
|
+
"react": "^19.2.8",
|
|
630
|
+
"react-dom": "^19.2.8",
|
|
631
|
+
"react-hook-form": "^7.83.0",
|
|
634
632
|
"tailwind-merge": "^3.6.0"
|
|
635
633
|
},
|
|
636
634
|
"devDependencies": {
|
|
637
635
|
"@assistant-ui/next": "workspace:*",
|
|
638
636
|
"@assistant-ui/x-buildutils": "workspace:*",
|
|
639
|
-
"@tailwindcss/postcss": "^4.3.
|
|
640
|
-
"@types/node": "^26.
|
|
637
|
+
"@tailwindcss/postcss": "^4.3.3",
|
|
638
|
+
"@types/node": "^26.1.1",
|
|
641
639
|
"@types/react": "^19.2.17",
|
|
642
640
|
"@types/react-dom": "^19.2.3",
|
|
643
|
-
"postcss": "^8.5.
|
|
644
|
-
"tailwindcss": "^4.3.
|
|
641
|
+
"postcss": "^8.5.23",
|
|
642
|
+
"tailwindcss": "^4.3.3",
|
|
645
643
|
"tw-animate-css": "^1.4.0",
|
|
646
|
-
"typescript": "
|
|
644
|
+
"typescript": "npm:@typescript/typescript6@^6.0.2",
|
|
645
|
+
"typescript-7": "npm:typescript@^7.0.2"
|
|
647
646
|
}
|
|
648
647
|
}
|
|
649
648
|
|
|
@@ -705,7 +704,13 @@ npm run dev
|
|
|
705
704
|
"@/components/assistant-ui/*": [
|
|
706
705
|
"../../packages/ui/src/components/assistant-ui/*"
|
|
707
706
|
],
|
|
708
|
-
"@/components/ui/*": [
|
|
707
|
+
"@/components/ui/*": [
|
|
708
|
+
"../../packages/ui/src/components/ui/base/*",
|
|
709
|
+
"../../packages/ui/src/components/ui/radix/*"
|
|
710
|
+
],
|
|
711
|
+
"@/components/ui/radix/*": [
|
|
712
|
+
"../../packages/ui/src/components/ui/radix/*"
|
|
713
|
+
],
|
|
709
714
|
"@/lib/utils": ["../../packages/ui/src/lib/utils"],
|
|
710
715
|
"@assistant-ui/ui/*": ["../../packages/ui/src/*"]
|
|
711
716
|
}
|