@tangle-network/starter-foundry 0.1.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/LICENSE +21 -0
- package/README.md +140 -0
- package/corpus/held-out-validation.json +322 -0
- package/corpus/ideasai-prompts.json +820 -0
- package/corpus/template-family-mapping.json +87 -0
- package/corpus/vibecode-e2e.json +744 -0
- package/corpus/vibecoder-prompts.json +324 -0
- package/dist/cli.d.ts +2 -0
- package/dist/cli.js +294 -0
- package/dist/cli.js.map +1 -0
- package/dist/lib/agent-runners.d.ts +28 -0
- package/dist/lib/agent-runners.js +163 -0
- package/dist/lib/agent-runners.js.map +1 -0
- package/dist/lib/audit.d.ts +14 -0
- package/dist/lib/audit.js +75 -0
- package/dist/lib/audit.js.map +1 -0
- package/dist/lib/augment.d.ts +17 -0
- package/dist/lib/augment.js +45 -0
- package/dist/lib/augment.js.map +1 -0
- package/dist/lib/batch-export.d.ts +27 -0
- package/dist/lib/batch-export.js +124 -0
- package/dist/lib/batch-export.js.map +1 -0
- package/dist/lib/benchmark.d.ts +6 -0
- package/dist/lib/benchmark.js +80 -0
- package/dist/lib/benchmark.js.map +1 -0
- package/dist/lib/build-plan.d.ts +2 -0
- package/dist/lib/build-plan.js +144 -0
- package/dist/lib/build-plan.js.map +1 -0
- package/dist/lib/catalog.d.ts +15 -0
- package/dist/lib/catalog.js +41 -0
- package/dist/lib/catalog.js.map +1 -0
- package/dist/lib/compose.d.ts +5 -0
- package/dist/lib/compose.js +242 -0
- package/dist/lib/compose.js.map +1 -0
- package/dist/lib/context-pack.d.ts +10 -0
- package/dist/lib/context-pack.js +49 -0
- package/dist/lib/context-pack.js.map +1 -0
- package/dist/lib/fatten.d.ts +34 -0
- package/dist/lib/fatten.js +110 -0
- package/dist/lib/fatten.js.map +1 -0
- package/dist/lib/fs.d.ts +9 -0
- package/dist/lib/fs.js +87 -0
- package/dist/lib/fs.js.map +1 -0
- package/dist/lib/index.d.ts +16 -0
- package/dist/lib/index.js +16 -0
- package/dist/lib/index.js.map +1 -0
- package/dist/lib/keywords.d.ts +29 -0
- package/dist/lib/keywords.js +377 -0
- package/dist/lib/keywords.js.map +1 -0
- package/dist/lib/prompt-e2e.d.ts +59 -0
- package/dist/lib/prompt-e2e.js +177 -0
- package/dist/lib/prompt-e2e.js.map +1 -0
- package/dist/lib/prompt-planner.d.ts +9 -0
- package/dist/lib/prompt-planner.js +879 -0
- package/dist/lib/prompt-planner.js.map +1 -0
- package/dist/lib/prove.d.ts +61 -0
- package/dist/lib/prove.js +88 -0
- package/dist/lib/prove.js.map +1 -0
- package/dist/lib/registry.d.ts +36 -0
- package/dist/lib/registry.js +280 -0
- package/dist/lib/registry.js.map +1 -0
- package/dist/lib/release.d.ts +14 -0
- package/dist/lib/release.js +49 -0
- package/dist/lib/release.js.map +1 -0
- package/dist/lib/selection.d.ts +5 -0
- package/dist/lib/selection.js +128 -0
- package/dist/lib/selection.js.map +1 -0
- package/dist/lib/semantic-router.d.ts +29 -0
- package/dist/lib/semantic-router.js +114 -0
- package/dist/lib/semantic-router.js.map +1 -0
- package/dist/lib/telemetry.d.ts +62 -0
- package/dist/lib/telemetry.js +102 -0
- package/dist/lib/telemetry.js.map +1 -0
- package/dist/lib/validate.d.ts +5 -0
- package/dist/lib/validate.js +201 -0
- package/dist/lib/validate.js.map +1 -0
- package/dist/lib/workspace.d.ts +79 -0
- package/dist/lib/workspace.js +304 -0
- package/dist/lib/workspace.js.map +1 -0
- package/dist/types.d.ts +309 -0
- package/dist/types.js +2 -0
- package/dist/types.js.map +1 -0
- package/package.json +63 -0
- package/registry/families/agent-service-py/files/requirements.txt +1 -0
- package/registry/families/agent-service-py/manifest.json +159 -0
- package/registry/families/agent-service-rust/manifest.json +123 -0
- package/registry/families/agent-service-ts/files/package.json +8 -0
- package/registry/families/agent-service-ts/manifest.json +276 -0
- package/registry/families/angular-ts/files/package.json +16 -0
- package/registry/families/angular-ts/manifest.json +100 -0
- package/registry/families/api-service/files/package.json +9 -0
- package/registry/families/api-service/manifest.json +149 -0
- package/registry/families/browser-extension-ts/files/package.json +12 -0
- package/registry/families/browser-extension-ts/files/preview-server.mjs +33 -0
- package/registry/families/browser-extension-ts/files/validate-types.mjs +13 -0
- package/registry/families/browser-extension-ts/manifest.json +118 -0
- package/registry/families/cli-ts/files/package.json +12 -0
- package/registry/families/cli-ts/files/validate-types.mjs +7 -0
- package/registry/families/cli-ts/manifest.json +99 -0
- package/registry/families/cloudflare-worker-ts/files/package.json +11 -0
- package/registry/families/cloudflare-worker-ts/files/validate-worker.mjs +9 -0
- package/registry/families/cloudflare-worker-ts/files/wrangler.jsonc +5 -0
- package/registry/families/cloudflare-worker-ts/manifest.json +130 -0
- package/registry/families/dspy-pipeline-py/manifest.json +115 -0
- package/registry/families/eigenlayer-avs/files/validate-avs.mjs +18 -0
- package/registry/families/eigenlayer-avs/manifest.json +79 -0
- package/registry/families/electron-desktop-ts/files/package.json +13 -0
- package/registry/families/electron-desktop-ts/files/preview-server.mjs +33 -0
- package/registry/families/electron-desktop-ts/files/validate-types.mjs +12 -0
- package/registry/families/electron-desktop-ts/manifest.json +121 -0
- package/registry/families/evm-infra-ts/files/package.json +8 -0
- package/registry/families/evm-infra-ts/manifest.json +151 -0
- package/registry/families/expo-react-native-ts/files/package.json +14 -0
- package/registry/families/expo-react-native-ts/files/validate-types.mjs +10 -0
- package/registry/families/expo-react-native-ts/manifest.json +118 -0
- package/registry/families/fhenix-contracts/files/package.json +16 -0
- package/registry/families/fhenix-contracts/manifest.json +32 -0
- package/registry/families/fhevm-contracts/files/package.json +16 -0
- package/registry/families/fhevm-contracts/manifest.json +30 -0
- package/registry/families/forge-contracts/manifest.json +214 -0
- package/registry/families/frontend-static/files/package.json +14 -0
- package/registry/families/frontend-static/files/serve.mjs +33 -0
- package/registry/families/frontend-static/manifest.json +91 -0
- package/registry/families/fullstack-ts/files/package.json +21 -0
- package/registry/families/fullstack-ts/files/validate-types.mjs +12 -0
- package/registry/families/fullstack-ts/manifest.json +418 -0
- package/registry/families/go-api/files/validate-go.mjs +21 -0
- package/registry/families/go-api/manifest.json +136 -0
- package/registry/families/go-worker/files/validate-go-worker.mjs +14 -0
- package/registry/families/go-worker/manifest.json +92 -0
- package/registry/families/hardhat-contracts/files/package.json +13 -0
- package/registry/families/hardhat-contracts/files/validate-hardhat.mjs +13 -0
- package/registry/families/hardhat-contracts/manifest.json +79 -0
- package/registry/families/mcp-server-ts/files/package.json +6 -0
- package/registry/families/mcp-server-ts/manifest.json +120 -0
- package/registry/families/move-contracts/files/validate-move.mjs +25 -0
- package/registry/families/move-contracts/manifest.json +79 -0
- package/registry/families/nextjs-ts/files/package.json +30 -0
- package/registry/families/nextjs-ts/files/preview-server.mjs +33 -0
- package/registry/families/nextjs-ts/files/validate-types.mjs +18 -0
- package/registry/families/nextjs-ts/manifest.json +261 -0
- package/registry/families/playwright-worker/files/package.json +11 -0
- package/registry/families/playwright-worker/manifest.json +86 -0
- package/registry/families/python-api/files/requirements.txt +1 -0
- package/registry/families/python-api/manifest.json +141 -0
- package/registry/families/python-data-app/files/requirements.txt +1 -0
- package/registry/families/python-data-app/manifest.json +83 -0
- package/registry/families/python-worker/files/requirements.txt +1 -0
- package/registry/families/python-worker/manifest.json +99 -0
- package/registry/families/react-vite-ts/files/package.json +30 -0
- package/registry/families/react-vite-ts/files/preview-server.mjs +33 -0
- package/registry/families/react-vite-ts/files/validate-types.mjs +18 -0
- package/registry/families/react-vite-ts/manifest.json +183 -0
- package/registry/families/remix-ts/files/package.json +28 -0
- package/registry/families/remix-ts/manifest.json +102 -0
- package/registry/families/rust-service/manifest.json +122 -0
- package/registry/families/solana-program/manifest.json +75 -0
- package/registry/families/stylus-contracts/manifest.json +58 -0
- package/registry/families/sveltekit-ts/files/package.json +19 -0
- package/registry/families/sveltekit-ts/manifest.json +105 -0
- package/registry/families/tangle-blueprint/manifest.json +88 -0
- package/registry/families/tauri-desktop/files/package.json +19 -0
- package/registry/families/tauri-desktop/files/preview-server.mjs +33 -0
- package/registry/families/tauri-desktop/files/validate-types.mjs +12 -0
- package/registry/families/tauri-desktop/manifest.json +122 -0
- package/registry/families/vue-ts/files/package.json +17 -0
- package/registry/families/vue-ts/manifest.json +106 -0
- package/registry/families/worker-job/files/package.json +9 -0
- package/registry/families/worker-job/manifest.json +108 -0
- package/registry/families/x402-service/files/package.json +6 -0
- package/registry/families/x402-service/manifest.json +119 -0
- package/registry/families/zk-prover-service/files/package.json +6 -0
- package/registry/families/zk-prover-service/manifest.json +136 -0
- package/registry/layers/auth/better-auth/files/auth-config.json +24 -0
- package/registry/layers/auth/better-auth/manifest.json +65 -0
- package/registry/layers/auth/clerk/files/auth-config.json +31 -0
- package/registry/layers/auth/clerk/manifest.json +67 -0
- package/registry/layers/auth/none/manifest.json +31 -0
- package/registry/layers/auth/supabase-auth/files/auth-config.json +27 -0
- package/registry/layers/auth/supabase-auth/manifest.json +67 -0
- package/registry/layers/capability/admin-crud/files/admin-config.json +29 -0
- package/registry/layers/capability/admin-crud/files/admin-data.json +10 -0
- package/registry/layers/capability/admin-crud/manifest.json +58 -0
- package/registry/layers/capability/agent-ai-sdk/files/ai-sdk-config.json +15 -0
- package/registry/layers/capability/agent-ai-sdk/manifest.json +18 -0
- package/registry/layers/capability/agent-browser/files/browser-agent-config.json +13 -0
- package/registry/layers/capability/agent-browser/manifest.json +17 -0
- package/registry/layers/capability/agent-code-review/files/review-config.json +11 -0
- package/registry/layers/capability/agent-code-review/files/review-pipeline.ts +205 -0
- package/registry/layers/capability/agent-code-review/manifest.json +37 -0
- package/registry/layers/capability/agent-customer-support/files/support-config.json +15 -0
- package/registry/layers/capability/agent-customer-support/files/support-pipeline.ts +122 -0
- package/registry/layers/capability/agent-customer-support/manifest.json +38 -0
- package/registry/layers/capability/agent-data-pipeline/files/analyst.ts +192 -0
- package/registry/layers/capability/agent-data-pipeline/files/pipeline-config.json +15 -0
- package/registry/layers/capability/agent-data-pipeline/manifest.json +38 -0
- package/registry/layers/capability/agent-github/files/github-config.json +10 -0
- package/registry/layers/capability/agent-github/files/github-handler.ts +153 -0
- package/registry/layers/capability/agent-github/manifest.json +36 -0
- package/registry/layers/capability/agent-hermes/files/hermes-config.json +15 -0
- package/registry/layers/capability/agent-hermes/manifest.json +30 -0
- package/registry/layers/capability/agent-intel/files/entity-card.tsx +97 -0
- package/registry/layers/capability/agent-intel/files/intel-config.json +14 -0
- package/registry/layers/capability/agent-intel/files/intel-dashboard.tsx +224 -0
- package/registry/layers/capability/agent-intel/files/scrape-status.tsx +78 -0
- package/registry/layers/capability/agent-intel/manifest.json +32 -0
- package/registry/layers/capability/agent-langgraph/files/langgraph-config.json +17 -0
- package/registry/layers/capability/agent-langgraph/manifest.json +17 -0
- package/registry/layers/capability/agent-mastra/files/mastra-config.json +6 -0
- package/registry/layers/capability/agent-mastra/manifest.json +27 -0
- package/registry/layers/capability/agent-multi-agent/files/orchestration-config.json +18 -0
- package/registry/layers/capability/agent-multi-agent/files/supervisor.ts +154 -0
- package/registry/layers/capability/agent-multi-agent/manifest.json +39 -0
- package/registry/layers/capability/agent-openclaw/files/openclaw-config.json +6 -0
- package/registry/layers/capability/agent-openclaw/manifest.json +28 -0
- package/registry/layers/capability/agent-rag/files/rag-config.json +12 -0
- package/registry/layers/capability/agent-rag/files/retrieval-pipeline.ts +183 -0
- package/registry/layers/capability/agent-rag/manifest.json +65 -0
- package/registry/layers/capability/agent-slack/files/slack-config.json +10 -0
- package/registry/layers/capability/agent-slack/files/slack-handler.ts +125 -0
- package/registry/layers/capability/agent-slack/manifest.json +34 -0
- package/registry/layers/capability/agent-trading/files/strategy.ts +128 -0
- package/registry/layers/capability/agent-trading/files/trading-config.json +16 -0
- package/registry/layers/capability/agent-trading/manifest.json +61 -0
- package/registry/layers/capability/agent-voice/files/voice-config.json +18 -0
- package/registry/layers/capability/agent-voice/manifest.json +17 -0
- package/registry/layers/capability/ai-agent-dashboard/files/dashboard-config.json +6 -0
- package/registry/layers/capability/ai-agent-dashboard/files/dashboard-data.json +6 -0
- package/registry/layers/capability/ai-agent-dashboard/manifest.json +37 -0
- package/registry/layers/capability/ai-agent-orchestrator/files/agent-card.tsx +78 -0
- package/registry/layers/capability/ai-agent-orchestrator/files/agent-run-view.tsx +143 -0
- package/registry/layers/capability/ai-agent-orchestrator/files/orchestrator-page.tsx +132 -0
- package/registry/layers/capability/ai-agent-orchestrator/manifest.json +26 -0
- package/registry/layers/capability/ai-chat-sessions/files/chat-header.tsx +109 -0
- package/registry/layers/capability/ai-chat-sessions/files/session-folders.tsx +98 -0
- package/registry/layers/capability/ai-chat-sessions/files/session-list.tsx +194 -0
- package/registry/layers/capability/ai-chat-sessions/manifest.json +26 -0
- package/registry/layers/capability/ai-chat-ui/files/chat-config.json +12 -0
- package/registry/layers/capability/ai-chat-ui/files/chat-data.json +8 -0
- package/registry/layers/capability/ai-chat-ui/manifest.json +65 -0
- package/registry/layers/capability/ai-fine-tuning/files/finetune-config.json +10 -0
- package/registry/layers/capability/ai-fine-tuning/manifest.json +37 -0
- package/registry/layers/capability/ai-rag-chat/files/knowledge-base-manager.tsx +187 -0
- package/registry/layers/capability/ai-rag-chat/files/rag-message.tsx +132 -0
- package/registry/layers/capability/ai-rag-chat/files/source-panel.tsx +117 -0
- package/registry/layers/capability/ai-rag-chat/manifest.json +26 -0
- package/registry/layers/capability/ai-voice-chat/files/voice-chat-page.tsx +162 -0
- package/registry/layers/capability/ai-voice-chat/files/voice-controls.tsx +118 -0
- package/registry/layers/capability/ai-voice-chat/files/voice-transcript.tsx +68 -0
- package/registry/layers/capability/ai-voice-chat/manifest.json +26 -0
- package/registry/layers/capability/chart-widget/files/metric-card.tsx +51 -0
- package/registry/layers/capability/chart-widget/files/simple-chart.tsx +109 -0
- package/registry/layers/capability/chart-widget/files/starter-data.json +19 -0
- package/registry/layers/capability/chart-widget/manifest.json +23 -0
- package/registry/layers/capability/crypto-bridge-ui/files/bridge-card.tsx +173 -0
- package/registry/layers/capability/crypto-bridge-ui/files/bridge-history.tsx +91 -0
- package/registry/layers/capability/crypto-bridge-ui/manifest.json +24 -0
- package/registry/layers/capability/crypto-governance-ui/files/governance-page.tsx +98 -0
- package/registry/layers/capability/crypto-governance-ui/files/proposal-card.tsx +88 -0
- package/registry/layers/capability/crypto-governance-ui/manifest.json +24 -0
- package/registry/layers/capability/crypto-launchpad-ui/files/sale-card.tsx +113 -0
- package/registry/layers/capability/crypto-launchpad-ui/files/vesting-schedule.tsx +101 -0
- package/registry/layers/capability/crypto-launchpad-ui/manifest.json +24 -0
- package/registry/layers/capability/crypto-portfolio-ui/files/portfolio-overview.tsx +118 -0
- package/registry/layers/capability/crypto-portfolio-ui/files/token-row.tsx +79 -0
- package/registry/layers/capability/crypto-portfolio-ui/manifest.json +24 -0
- package/registry/layers/capability/crypto-staking-ui/files/staking-dashboard.tsx +170 -0
- package/registry/layers/capability/crypto-staking-ui/files/validator-card.tsx +82 -0
- package/registry/layers/capability/crypto-staking-ui/manifest.json +24 -0
- package/registry/layers/capability/crypto-swap-ui/files/pool-card.tsx +93 -0
- package/registry/layers/capability/crypto-swap-ui/files/swap-card.tsx +151 -0
- package/registry/layers/capability/crypto-swap-ui/files/token-select-dialog.tsx +104 -0
- package/registry/layers/capability/crypto-swap-ui/manifest.json +25 -0
- package/registry/layers/capability/defi-bridge/files/bridge-config.json +15 -0
- package/registry/layers/capability/defi-bridge/manifest.json +35 -0
- package/registry/layers/capability/defi-dex/files/dex-config.json +15 -0
- package/registry/layers/capability/defi-dex/manifest.json +36 -0
- package/registry/layers/capability/defi-lending/files/lending-config.json +15 -0
- package/registry/layers/capability/defi-lending/manifest.json +36 -0
- package/registry/layers/capability/defi-perpetuals/files/perp-config.json +11 -0
- package/registry/layers/capability/defi-perpetuals/manifest.json +34 -0
- package/registry/layers/capability/defi-restaking/files/restaking-config.json +6 -0
- package/registry/layers/capability/defi-restaking/manifest.json +32 -0
- package/registry/layers/capability/defi-yield/files/yield-config.json +16 -0
- package/registry/layers/capability/defi-yield/manifest.json +36 -0
- package/registry/layers/capability/deploy-docker/files/deploy-config.json +15 -0
- package/registry/layers/capability/deploy-docker/manifest.json +42 -0
- package/registry/layers/capability/deploy-github-actions/files/ci-config.json +12 -0
- package/registry/layers/capability/deploy-github-actions/manifest.json +46 -0
- package/registry/layers/capability/effect-ts/files/effect-config.json +5 -0
- package/registry/layers/capability/effect-ts/manifest.json +30 -0
- package/registry/layers/capability/evm-account-abstraction/files/Deploy.s.sol +10 -0
- package/registry/layers/capability/evm-account-abstraction/files/GaslessCollectible.sol +21 -0
- package/registry/layers/capability/evm-account-abstraction/files/GaslessCollectible.t.sol +17 -0
- package/registry/layers/capability/evm-account-abstraction/files/MintWithBundler.s.sol +11 -0
- package/registry/layers/capability/evm-account-abstraction/files/bundler-config.json +10 -0
- package/registry/layers/capability/evm-account-abstraction/manifest.json +46 -0
- package/registry/layers/capability/evm-chain-monitor/files/hooks.mjs +14 -0
- package/registry/layers/capability/evm-chain-monitor/files/monitor-config.json +6 -0
- package/registry/layers/capability/evm-chain-monitor/manifest.json +31 -0
- package/registry/layers/capability/evm-deploy-foundry/files/Deploy.s.sol +11 -0
- package/registry/layers/capability/evm-deploy-foundry/files/deploy-config.json +10 -0
- package/registry/layers/capability/evm-deploy-foundry/files/env.example +2 -0
- package/registry/layers/capability/evm-deploy-foundry/files/foundry.toml +13 -0
- package/registry/layers/capability/evm-deploy-foundry/manifest.json +43 -0
- package/registry/layers/capability/evm-layerzero-oft/files/OmnichainToken.sol +21 -0
- package/registry/layers/capability/evm-layerzero-oft/files/OmnichainToken.t.sol +18 -0
- package/registry/layers/capability/evm-layerzero-oft/files/SendTokens.s.sol +10 -0
- package/registry/layers/capability/evm-layerzero-oft/files/bridge-config.json +10 -0
- package/registry/layers/capability/evm-layerzero-oft/manifest.json +39 -0
- package/registry/layers/capability/evm-protocol-api/files/protocol-config.json +8 -0
- package/registry/layers/capability/evm-protocol-api/files/protocol-hooks.ts +149 -0
- package/registry/layers/capability/evm-protocol-api/manifest.json +36 -0
- package/registry/layers/capability/evm-wallet-dashboard/files/hooks.mjs +10 -0
- package/registry/layers/capability/evm-wallet-dashboard/files/wallet-dashboard.json +6 -0
- package/registry/layers/capability/evm-wallet-dashboard/manifest.json +30 -0
- package/registry/layers/capability/exchange-binance/files/exchange-config.json +17 -0
- package/registry/layers/capability/exchange-binance/manifest.json +33 -0
- package/registry/layers/capability/exchange-coinbase/files/exchange-config.json +17 -0
- package/registry/layers/capability/exchange-coinbase/manifest.json +33 -0
- package/registry/layers/capability/exchange-okx/files/exchange-config.json +17 -0
- package/registry/layers/capability/exchange-okx/manifest.json +33 -0
- package/registry/layers/capability/fhe-private-token/files/PrivateToken.sol +49 -0
- package/registry/layers/capability/fhe-private-token/manifest.json +12 -0
- package/registry/layers/capability/fhe-private-voting/files/PrivateVoting.sol +50 -0
- package/registry/layers/capability/fhe-private-voting/manifest.json +12 -0
- package/registry/layers/capability/fhe-sealed-auction/files/SealedAuction.sol +43 -0
- package/registry/layers/capability/fhe-sealed-auction/manifest.json +12 -0
- package/registry/layers/capability/gpu-modal/files/gpu-config.json +8 -0
- package/registry/layers/capability/gpu-modal/manifest.json +31 -0
- package/registry/layers/capability/gpu-replicate/files/gpu-config.json +5 -0
- package/registry/layers/capability/gpu-replicate/manifest.json +33 -0
- package/registry/layers/capability/gpu-together/files/gpu-config.json +5 -0
- package/registry/layers/capability/gpu-together/manifest.json +32 -0
- package/registry/layers/capability/icons/files/icons-config.json +18 -0
- package/registry/layers/capability/icons/manifest.json +33 -0
- package/registry/layers/capability/infra-k8s/files/k8s-config.json +7 -0
- package/registry/layers/capability/infra-k8s/manifest.json +38 -0
- package/registry/layers/capability/infra-pulumi/files/pulumi-config.json +7 -0
- package/registry/layers/capability/infra-pulumi/manifest.json +36 -0
- package/registry/layers/capability/infra-terraform/files/terraform-config.json +7 -0
- package/registry/layers/capability/infra-terraform/manifest.json +37 -0
- package/registry/layers/capability/json-render/files/json-render-config.json +16 -0
- package/registry/layers/capability/json-render/manifest.json +24 -0
- package/registry/layers/capability/layout-admin/files/admin-page.tsx +141 -0
- package/registry/layers/capability/layout-admin/files/column-header.tsx +37 -0
- package/registry/layers/capability/layout-admin/files/data-table.tsx +221 -0
- package/registry/layers/capability/layout-admin/files/entity-form.tsx +109 -0
- package/registry/layers/capability/layout-admin/files/media-manifest.json +14 -0
- package/registry/layers/capability/layout-admin/manifest.json +30 -0
- package/registry/layers/capability/layout-auth/files/sign-in-page.tsx +82 -0
- package/registry/layers/capability/layout-auth/files/sign-up-page.tsx +94 -0
- package/registry/layers/capability/layout-auth/manifest.json +51 -0
- package/registry/layers/capability/layout-chat/files/chat-input.tsx +76 -0
- package/registry/layers/capability/layout-chat/files/chat-message.tsx +100 -0
- package/registry/layers/capability/layout-chat/files/chat-page.tsx +149 -0
- package/registry/layers/capability/layout-chat/files/chat-sidebar.tsx +78 -0
- package/registry/layers/capability/layout-chat/files/media-manifest.json +24 -0
- package/registry/layers/capability/layout-chat/manifest.json +30 -0
- package/registry/layers/capability/layout-dashboard/files/dashboard-page.tsx +113 -0
- package/registry/layers/capability/layout-dashboard/files/media-manifest.json +34 -0
- package/registry/layers/capability/layout-dashboard/files/nav-config.ts +46 -0
- package/registry/layers/capability/layout-dashboard/files/sidebar-layout.tsx +149 -0
- package/registry/layers/capability/layout-dashboard/manifest.json +33 -0
- package/registry/layers/capability/layout-dashboard/variants/sidebar/dashboard-page.tsx +113 -0
- package/registry/layers/capability/layout-dashboard/variants/sidebar/media-manifest.json +34 -0
- package/registry/layers/capability/layout-dashboard/variants/sidebar/nav-config.ts +46 -0
- package/registry/layers/capability/layout-dashboard/variants/sidebar/sidebar-layout.tsx +149 -0
- package/registry/layers/capability/layout-dashboard/variants/topnav/dashboard-page.tsx +113 -0
- package/registry/layers/capability/layout-dashboard/variants/topnav/media-manifest.json +34 -0
- package/registry/layers/capability/layout-dashboard/variants/topnav/nav-config.ts +26 -0
- package/registry/layers/capability/layout-dashboard/variants/topnav/sidebar-layout.tsx +157 -0
- package/registry/layers/capability/layout-landing/files/features-section.tsx +98 -0
- package/registry/layers/capability/layout-landing/files/hero-section.tsx +111 -0
- package/registry/layers/capability/layout-landing/files/landing-page.tsx +164 -0
- package/registry/layers/capability/layout-landing/files/media-manifest.json +44 -0
- package/registry/layers/capability/layout-landing/files/pricing-section.tsx +175 -0
- package/registry/layers/capability/layout-landing/manifest.json +73 -0
- package/registry/layers/capability/layout-landing/variants/dark-product/features-section.tsx +79 -0
- package/registry/layers/capability/layout-landing/variants/dark-product/hero-section.tsx +78 -0
- package/registry/layers/capability/layout-landing/variants/dark-product/landing-page.tsx +164 -0
- package/registry/layers/capability/layout-landing/variants/dark-product/media-manifest.json +44 -0
- package/registry/layers/capability/layout-landing/variants/dark-product/pricing-section.tsx +166 -0
- package/registry/layers/capability/layout-landing/variants/default/features-section.tsx +98 -0
- package/registry/layers/capability/layout-landing/variants/default/hero-section.tsx +111 -0
- package/registry/layers/capability/layout-landing/variants/default/landing-page.tsx +164 -0
- package/registry/layers/capability/layout-landing/variants/default/media-manifest.json +44 -0
- package/registry/layers/capability/layout-landing/variants/default/pricing-section.tsx +175 -0
- package/registry/layers/capability/layout-landing/variants/gradient-hero/features-section.tsx +79 -0
- package/registry/layers/capability/layout-landing/variants/gradient-hero/hero-section.tsx +73 -0
- package/registry/layers/capability/layout-landing/variants/gradient-hero/landing-page.tsx +164 -0
- package/registry/layers/capability/layout-landing/variants/gradient-hero/media-manifest.json +44 -0
- package/registry/layers/capability/layout-landing/variants/gradient-hero/pricing-section.tsx +165 -0
- package/registry/layers/capability/layout-landing/variants/minimal-clean/features-section.tsx +73 -0
- package/registry/layers/capability/layout-landing/variants/minimal-clean/hero-section.tsx +65 -0
- package/registry/layers/capability/layout-landing/variants/minimal-clean/landing-page.tsx +164 -0
- package/registry/layers/capability/layout-landing/variants/minimal-clean/media-manifest.json +44 -0
- package/registry/layers/capability/layout-landing/variants/minimal-clean/pricing-section.tsx +162 -0
- package/registry/layers/capability/layout-settings/files/settings-page.tsx +165 -0
- package/registry/layers/capability/layout-settings/manifest.json +45 -0
- package/registry/layers/capability/logging/files/error-handler.ts +35 -0
- package/registry/layers/capability/logging/files/logger.ts +78 -0
- package/registry/layers/capability/logging/files/request-logger.ts +52 -0
- package/registry/layers/capability/logging/manifest.json +47 -0
- package/registry/layers/capability/market-sim/files/market-feed.json +16 -0
- package/registry/layers/capability/market-sim/manifest.json +19 -0
- package/registry/layers/capability/marketplace/files/listing-card.tsx +80 -0
- package/registry/layers/capability/marketplace/files/listing-grid.tsx +55 -0
- package/registry/layers/capability/marketplace/files/marketplace-config.json +26 -0
- package/registry/layers/capability/marketplace/files/review-card.tsx +57 -0
- package/registry/layers/capability/marketplace/files/search-filters.tsx +113 -0
- package/registry/layers/capability/marketplace/manifest.json +29 -0
- package/registry/layers/capability/move-amm/files/amm-config.json +1 -0
- package/registry/layers/capability/move-amm/manifest.json +46 -0
- package/registry/layers/capability/move-launchpad/files/launchpad-config.json +1 -0
- package/registry/layers/capability/move-launchpad/manifest.json +45 -0
- package/registry/layers/capability/move-nft/files/nft-config.json +1 -0
- package/registry/layers/capability/move-nft/manifest.json +9 -0
- package/registry/layers/capability/move-oracle/files/oracle-config.json +1 -0
- package/registry/layers/capability/move-oracle/manifest.json +10 -0
- package/registry/layers/capability/move-staking/files/staking-config.json +1 -0
- package/registry/layers/capability/move-staking/manifest.json +9 -0
- package/registry/layers/capability/realtime-ws/files/realtime-config.json +19 -0
- package/registry/layers/capability/realtime-ws/files/ws-client.ts +90 -0
- package/registry/layers/capability/realtime-ws/files/ws-server.ts +121 -0
- package/registry/layers/capability/realtime-ws/files/ws-types.ts +30 -0
- package/registry/layers/capability/realtime-ws/manifest.json +66 -0
- package/registry/layers/capability/saas-billing/files/billing-api.ts +134 -0
- package/registry/layers/capability/saas-billing/files/billing-config.json +15 -0
- package/registry/layers/capability/saas-billing/files/billing-guard.ts +38 -0
- package/registry/layers/capability/saas-billing/files/billing-ui.tsx +100 -0
- package/registry/layers/capability/saas-billing/manifest.json +73 -0
- package/registry/layers/capability/saas-teams/files/teams-api.ts +118 -0
- package/registry/layers/capability/saas-teams/files/teams-config.json +16 -0
- package/registry/layers/capability/saas-teams/files/teams-guard.ts +35 -0
- package/registry/layers/capability/saas-teams/files/teams-ui.tsx +235 -0
- package/registry/layers/capability/saas-teams/manifest.json +74 -0
- package/registry/layers/capability/shadcn/files/alert.tsx +39 -0
- package/registry/layers/capability/shadcn/files/avatar.tsx +33 -0
- package/registry/layers/capability/shadcn/files/badge.tsx +28 -0
- package/registry/layers/capability/shadcn/files/breadcrumb.tsx +45 -0
- package/registry/layers/capability/shadcn/files/button.tsx +44 -0
- package/registry/layers/capability/shadcn/files/card.tsx +46 -0
- package/registry/layers/capability/shadcn/files/checkbox.tsx +26 -0
- package/registry/layers/capability/shadcn/files/command.tsx +72 -0
- package/registry/layers/capability/shadcn/files/dialog.tsx +75 -0
- package/registry/layers/capability/shadcn/files/dropdown-menu.tsx +68 -0
- package/registry/layers/capability/shadcn/files/form.tsx +57 -0
- package/registry/layers/capability/shadcn/files/input.tsx +21 -0
- package/registry/layers/capability/shadcn/files/label.tsx +18 -0
- package/registry/layers/capability/shadcn/files/progress.tsx +28 -0
- package/registry/layers/capability/shadcn/files/scroll-area.tsx +32 -0
- package/registry/layers/capability/shadcn/files/select.tsx +80 -0
- package/registry/layers/capability/shadcn/files/separator.tsx +21 -0
- package/registry/layers/capability/shadcn/files/shadcn-config.json +26 -0
- package/registry/layers/capability/shadcn/files/sheet.tsx +71 -0
- package/registry/layers/capability/shadcn/files/sidebar.tsx +73 -0
- package/registry/layers/capability/shadcn/files/skeleton.tsx +7 -0
- package/registry/layers/capability/shadcn/files/switch.tsx +36 -0
- package/registry/layers/capability/shadcn/files/table.tsx +58 -0
- package/registry/layers/capability/shadcn/files/tabs.tsx +56 -0
- package/registry/layers/capability/shadcn/files/textarea.tsx +20 -0
- package/registry/layers/capability/shadcn/files/toast.tsx +68 -0
- package/registry/layers/capability/shadcn/files/toggle.tsx +43 -0
- package/registry/layers/capability/shadcn/files/tooltip.tsx +45 -0
- package/registry/layers/capability/shadcn/files/utils.ts +6 -0
- package/registry/layers/capability/shadcn/manifest.json +171 -0
- package/registry/layers/capability/solana-amm/files/README.md +5 -0
- package/registry/layers/capability/solana-amm/files/lib.rs +52 -0
- package/registry/layers/capability/solana-amm/files/pool-config.json +6 -0
- package/registry/layers/capability/solana-amm/manifest.json +22 -0
- package/registry/layers/capability/solana-keeper/files/keeper-hooks.ts +90 -0
- package/registry/layers/capability/solana-keeper/files/market-feed.json +7 -0
- package/registry/layers/capability/solana-keeper/manifest.json +18 -0
- package/registry/layers/capability/solana-launchpad/files/README.md +5 -0
- package/registry/layers/capability/solana-launchpad/files/lib.rs +52 -0
- package/registry/layers/capability/solana-launchpad/files/sale-config.json +5 -0
- package/registry/layers/capability/solana-launchpad/manifest.json +35 -0
- package/registry/layers/capability/solana-nft/files/README.md +5 -0
- package/registry/layers/capability/solana-nft/files/lib.rs +52 -0
- package/registry/layers/capability/solana-nft/files/marketplace-config.json +4 -0
- package/registry/layers/capability/solana-nft/manifest.json +34 -0
- package/registry/layers/capability/solana-perps/files/README.md +5 -0
- package/registry/layers/capability/solana-perps/files/lib.rs +52 -0
- package/registry/layers/capability/solana-perps/files/market-config.json +6 -0
- package/registry/layers/capability/solana-perps/manifest.json +22 -0
- package/registry/layers/capability/solana-prediction/files/README.md +5 -0
- package/registry/layers/capability/solana-prediction/files/lib.rs +52 -0
- package/registry/layers/capability/solana-prediction/files/prediction-config.json +6 -0
- package/registry/layers/capability/solana-prediction/manifest.json +22 -0
- package/registry/layers/capability/solana-staking/files/README.md +5 -0
- package/registry/layers/capability/solana-staking/files/lib.rs +52 -0
- package/registry/layers/capability/solana-staking/files/staking-config.json +5 -0
- package/registry/layers/capability/solana-staking/manifest.json +22 -0
- package/registry/layers/capability/tailwind/files/design-tokens.json +51 -0
- package/registry/layers/capability/tailwind/files/tailwind-config.json +34 -0
- package/registry/layers/capability/tailwind/manifest.json +53 -0
- package/registry/layers/capability/tangle-custody/files/blueprint.json +17 -0
- package/registry/layers/capability/tangle-custody/files/lib.rs +53 -0
- package/registry/layers/capability/tangle-custody/manifest.json +30 -0
- package/registry/layers/capability/tangle-oracle/files/blueprint.json +17 -0
- package/registry/layers/capability/tangle-oracle/files/lib.rs +53 -0
- package/registry/layers/capability/tangle-oracle/manifest.json +29 -0
- package/registry/layers/capability/typography/files/typography-config.json +24 -0
- package/registry/layers/capability/typography/manifest.json +35 -0
- package/registry/layers/capability/webhook-processor/files/webhook-config.json +26 -0
- package/registry/layers/capability/webhook-processor/files/webhook-handler.ts +61 -0
- package/registry/layers/capability/webhook-processor/files/webhook-queue.ts +77 -0
- package/registry/layers/capability/webhook-processor/files/webhook-router.ts +77 -0
- package/registry/layers/capability/webhook-processor/manifest.json +67 -0
- package/registry/layers/capability/webrtc/files/call-controls.tsx +82 -0
- package/registry/layers/capability/webrtc/files/participant-tile.tsx +66 -0
- package/registry/layers/capability/webrtc/files/video-room.tsx +97 -0
- package/registry/layers/capability/webrtc/files/webrtc-config.json +18 -0
- package/registry/layers/capability/webrtc/manifest.json +30 -0
- package/registry/layers/database/convex/files/database-config.json +5 -0
- package/registry/layers/database/convex/manifest.json +31 -0
- package/registry/layers/database/mongodb/files/database-config.json +5 -0
- package/registry/layers/database/mongodb/manifest.json +31 -0
- package/registry/layers/database/postgres/files/database-config.json +5 -0
- package/registry/layers/database/postgres/manifest.json +31 -0
- package/registry/layers/database/sqlite/files/database-config.json +5 -0
- package/registry/layers/database/sqlite/manifest.json +31 -0
- package/registry/layers/framework/agent-service-py/files/agent.config.json +9 -0
- package/registry/layers/framework/agent-service-py/files/app.py +43 -0
- package/registry/layers/framework/agent-service-py/manifest.json +15 -0
- package/registry/layers/framework/agent-service-rust/files/Cargo.toml +6 -0
- package/registry/layers/framework/agent-service-rust/files/agent.config.json +8 -0
- package/registry/layers/framework/agent-service-rust/files/main.rs +23 -0
- package/registry/layers/framework/agent-service-rust/manifest.json +19 -0
- package/registry/layers/framework/agent-service-ts/files/agent.config.json +9 -0
- package/registry/layers/framework/agent-service-ts/files/agent.mjs +39 -0
- package/registry/layers/framework/agent-service-ts/manifest.json +15 -0
- package/registry/layers/framework/angular-ts/files/app.component.ts +10 -0
- package/registry/layers/framework/angular-ts/files/main.ts +4 -0
- package/registry/layers/framework/angular-ts/manifest.json +9 -0
- package/registry/layers/framework/browser-extension-ts/files/background.ts +3 -0
- package/registry/layers/framework/browser-extension-ts/files/content.ts +1 -0
- package/registry/layers/framework/browser-extension-ts/files/manifest.json +13 -0
- package/registry/layers/framework/browser-extension-ts/files/popup.css +16 -0
- package/registry/layers/framework/browser-extension-ts/files/popup.html +16 -0
- package/registry/layers/framework/browser-extension-ts/files/popup.ts +13 -0
- package/registry/layers/framework/browser-extension-ts/files/tsconfig.json +8 -0
- package/registry/layers/framework/browser-extension-ts/manifest.json +39 -0
- package/registry/layers/framework/cli-ts/files/index.ts +26 -0
- package/registry/layers/framework/cli-ts/files/tsconfig.json +8 -0
- package/registry/layers/framework/cli-ts/manifest.json +15 -0
- package/registry/layers/framework/cloudflare-worker-ts/files/worker.ts +21 -0
- package/registry/layers/framework/cloudflare-worker-ts/manifest.json +11 -0
- package/registry/layers/framework/dspy-pipeline-py/files/main.py +17 -0
- package/registry/layers/framework/dspy-pipeline-py/files/pipeline.json +9 -0
- package/registry/layers/framework/dspy-pipeline-py/manifest.json +15 -0
- package/registry/layers/framework/eigenlayer-avs/files/ServiceManager.sol +10 -0
- package/registry/layers/framework/eigenlayer-avs/files/avs.config.json +9 -0
- package/registry/layers/framework/eigenlayer-avs/files/main.rs +3 -0
- package/registry/layers/framework/eigenlayer-avs/manifest.json +19 -0
- package/registry/layers/framework/electron-desktop-ts/files/app.ts +9 -0
- package/registry/layers/framework/electron-desktop-ts/files/index.html +16 -0
- package/registry/layers/framework/electron-desktop-ts/files/main.ts +1 -0
- package/registry/layers/framework/electron-desktop-ts/files/preload.ts +1 -0
- package/registry/layers/framework/electron-desktop-ts/files/styles.css +18 -0
- package/registry/layers/framework/electron-desktop-ts/files/tsconfig.json +8 -0
- package/registry/layers/framework/electron-desktop-ts/manifest.json +35 -0
- package/registry/layers/framework/evm-infra-ts/files/chain-config.json +5 -0
- package/registry/layers/framework/evm-infra-ts/files/server.mjs +39 -0
- package/registry/layers/framework/evm-infra-ts/manifest.json +15 -0
- package/registry/layers/framework/expo-react-native-ts/files/App.tsx +37 -0
- package/registry/layers/framework/expo-react-native-ts/files/app.json +8 -0
- package/registry/layers/framework/expo-react-native-ts/files/tsconfig.json +9 -0
- package/registry/layers/framework/expo-react-native-ts/manifest.json +23 -0
- package/registry/layers/framework/fhenix-contracts/files/FHECounter.sol +26 -0
- package/registry/layers/framework/fhenix-contracts/files/FHECounter.test.ts +23 -0
- package/registry/layers/framework/fhenix-contracts/files/deploy.ts +13 -0
- package/registry/layers/framework/fhenix-contracts/files/hardhat.config.ts +16 -0
- package/registry/layers/framework/fhenix-contracts/manifest.json +11 -0
- package/registry/layers/framework/fhevm-contracts/files/EncryptedCounter.sol +28 -0
- package/registry/layers/framework/fhevm-contracts/files/EncryptedCounter.test.ts +23 -0
- package/registry/layers/framework/fhevm-contracts/files/deploy.ts +13 -0
- package/registry/layers/framework/fhevm-contracts/files/hardhat.config.ts +21 -0
- package/registry/layers/framework/fhevm-contracts/manifest.json +11 -0
- package/registry/layers/framework/forge-foundation/files/Counter.sol +14 -0
- package/registry/layers/framework/forge-foundation/files/Counter.t.sol +17 -0
- package/registry/layers/framework/forge-foundation/files/Deploy.s.sol +10 -0
- package/registry/layers/framework/forge-foundation/files/foundry.toml +6 -0
- package/registry/layers/framework/forge-foundation/manifest.json +23 -0
- package/registry/layers/framework/fullstack-node-ts/files/client.js +60 -0
- package/registry/layers/framework/fullstack-node-ts/files/client.ts +6 -0
- package/registry/layers/framework/fullstack-node-ts/files/index.html +25 -0
- package/registry/layers/framework/fullstack-node-ts/files/server.ts +62 -0
- package/registry/layers/framework/fullstack-node-ts/files/styles.css +86 -0
- package/registry/layers/framework/fullstack-node-ts/files/tsconfig.json +10 -0
- package/registry/layers/framework/fullstack-node-ts/manifest.json +36 -0
- package/registry/layers/framework/go-net-http/files/go.mod +3 -0
- package/registry/layers/framework/go-net-http/files/handlers.go +28 -0
- package/registry/layers/framework/go-net-http/files/main.go +23 -0
- package/registry/layers/framework/go-net-http/manifest.json +19 -0
- package/registry/layers/framework/go-worker/files/cycle.go +5 -0
- package/registry/layers/framework/go-worker/files/go.mod +3 -0
- package/registry/layers/framework/go-worker/files/main.go +11 -0
- package/registry/layers/framework/go-worker/manifest.json +19 -0
- package/registry/layers/framework/hardhat-ts/files/contract.sol +6 -0
- package/registry/layers/framework/hardhat-ts/files/deploy.ts +1 -0
- package/registry/layers/framework/hardhat-ts/files/env.example +1 -0
- package/registry/layers/framework/hardhat-ts/files/hardhat.config.ts +10 -0
- package/registry/layers/framework/hardhat-ts/files/test.ts +3 -0
- package/registry/layers/framework/hardhat-ts/files/tsconfig.json +9 -0
- package/registry/layers/framework/hardhat-ts/manifest.json +31 -0
- package/registry/layers/framework/mcp-server-ts/files/mcp.config.json +9 -0
- package/registry/layers/framework/mcp-server-ts/files/server.mjs +12 -0
- package/registry/layers/framework/mcp-server-ts/manifest.json +15 -0
- package/registry/layers/framework/move-package/files/Move.toml +6 -0
- package/registry/layers/framework/move-package/files/module.move +22 -0
- package/registry/layers/framework/move-package/files/test.move +9 -0
- package/registry/layers/framework/move-package/manifest.json +19 -0
- package/registry/layers/framework/nextjs-app-router/files/globals.css +42 -0
- package/registry/layers/framework/nextjs-app-router/files/layout.tsx +16 -0
- package/registry/layers/framework/nextjs-app-router/files/next.config.ts +5 -0
- package/registry/layers/framework/nextjs-app-router/files/page.tsx +8 -0
- package/registry/layers/framework/nextjs-app-router/files/postcss.config.js +5 -0
- package/registry/layers/framework/nextjs-app-router/files/preview-client.js +47 -0
- package/registry/layers/framework/nextjs-app-router/files/preview-index.html +19 -0
- package/registry/layers/framework/nextjs-app-router/files/tsconfig.json +15 -0
- package/registry/layers/framework/nextjs-app-router/manifest.json +43 -0
- package/registry/layers/framework/node-http/files/server.mjs +65 -0
- package/registry/layers/framework/node-http/manifest.json +11 -0
- package/registry/layers/framework/node-worker/files/worker.mjs +43 -0
- package/registry/layers/framework/node-worker/manifest.json +11 -0
- package/registry/layers/framework/playwright-worker/files/worker.mjs +13 -0
- package/registry/layers/framework/playwright-worker/manifest.json +11 -0
- package/registry/layers/framework/python-data-app/files/app.py +54 -0
- package/registry/layers/framework/python-data-app/manifest.json +15 -0
- package/registry/layers/framework/python-http/files/app.py +44 -0
- package/registry/layers/framework/python-http/manifest.json +11 -0
- package/registry/layers/framework/python-worker/files/worker.py +49 -0
- package/registry/layers/framework/python-worker/manifest.json +8 -0
- package/registry/layers/framework/react-vite-ts/files/App.tsx +8 -0
- package/registry/layers/framework/react-vite-ts/files/index.html +15 -0
- package/registry/layers/framework/react-vite-ts/files/main.ts +8 -0
- package/registry/layers/framework/react-vite-ts/files/preview-client.js +49 -0
- package/registry/layers/framework/react-vite-ts/files/styles.css +43 -0
- package/registry/layers/framework/react-vite-ts/files/tsconfig.json +15 -0
- package/registry/layers/framework/react-vite-ts/files/vite.config.ts +13 -0
- package/registry/layers/framework/react-vite-ts/manifest.json +39 -0
- package/registry/layers/framework/remix-ts/files/index.tsx +8 -0
- package/registry/layers/framework/remix-ts/files/root.tsx +10 -0
- package/registry/layers/framework/remix-ts/files/vite.config.ts +14 -0
- package/registry/layers/framework/remix-ts/manifest.json +10 -0
- package/registry/layers/framework/rust-http/files/Cargo.toml +6 -0
- package/registry/layers/framework/rust-http/files/main.rs +26 -0
- package/registry/layers/framework/rust-http/manifest.json +15 -0
- package/registry/layers/framework/solana-native-rust/files/Cargo.toml +9 -0
- package/registry/layers/framework/solana-native-rust/files/README.md +5 -0
- package/registry/layers/framework/solana-native-rust/files/lib.rs +48 -0
- package/registry/layers/framework/solana-native-rust/manifest.json +19 -0
- package/registry/layers/framework/stylus-contracts/files/Cargo.toml +8 -0
- package/registry/layers/framework/stylus-contracts/files/lib.rs +13 -0
- package/registry/layers/framework/stylus-contracts/files/stylus.json +4 -0
- package/registry/layers/framework/stylus-contracts/manifest.json +19 -0
- package/registry/layers/framework/sveltekit-ts/files/app.html +5 -0
- package/registry/layers/framework/sveltekit-ts/files/layout.svelte +1 -0
- package/registry/layers/framework/sveltekit-ts/files/page.svelte +8 -0
- package/registry/layers/framework/sveltekit-ts/files/svelte.config.js +2 -0
- package/registry/layers/framework/sveltekit-ts/files/vite.config.ts +9 -0
- package/registry/layers/framework/sveltekit-ts/manifest.json +12 -0
- package/registry/layers/framework/tangle-blueprint/files/Cargo.toml +10 -0
- package/registry/layers/framework/tangle-blueprint/files/HelloBlueprint.sol +32 -0
- package/registry/layers/framework/tangle-blueprint/files/bin-Cargo.toml +15 -0
- package/registry/layers/framework/tangle-blueprint/files/blueprint.json +16 -0
- package/registry/layers/framework/tangle-blueprint/files/cargo-config.toml +2 -0
- package/registry/layers/framework/tangle-blueprint/files/foundry.toml +17 -0
- package/registry/layers/framework/tangle-blueprint/files/lib-Cargo.toml +13 -0
- package/registry/layers/framework/tangle-blueprint/files/lib.rs +55 -0
- package/registry/layers/framework/tangle-blueprint/files/main.rs +70 -0
- package/registry/layers/framework/tangle-blueprint/files/rust-toolchain.toml +4 -0
- package/registry/layers/framework/tangle-blueprint/manifest.json +47 -0
- package/registry/layers/framework/tauri-desktop/files/Cargo.toml +7 -0
- package/registry/layers/framework/tauri-desktop/files/app.ts +7 -0
- package/registry/layers/framework/tauri-desktop/files/index.html +16 -0
- package/registry/layers/framework/tauri-desktop/files/main.rs +3 -0
- package/registry/layers/framework/tauri-desktop/files/styles.css +18 -0
- package/registry/layers/framework/tauri-desktop/files/tauri.conf.json +7 -0
- package/registry/layers/framework/tauri-desktop/files/tsconfig.json +8 -0
- package/registry/layers/framework/tauri-desktop/manifest.json +35 -0
- package/registry/layers/framework/vue-ts/files/App.vue +11 -0
- package/registry/layers/framework/vue-ts/files/index.html +5 -0
- package/registry/layers/framework/vue-ts/files/main.ts +3 -0
- package/registry/layers/framework/vue-ts/files/vite.config.ts +14 -0
- package/registry/layers/framework/vue-ts/manifest.json +11 -0
- package/registry/layers/framework/web-static/files/app.js +53 -0
- package/registry/layers/framework/web-static/files/index.html +21 -0
- package/registry/layers/framework/web-static/files/styles.css +85 -0
- package/registry/layers/framework/web-static/manifest.json +23 -0
- package/registry/layers/framework/x402-service/files/server.mjs +18 -0
- package/registry/layers/framework/x402-service/files/x402.config.json +7 -0
- package/registry/layers/framework/x402-service/manifest.json +15 -0
- package/registry/layers/framework/zk-prover-service/files/proof-system.json +8 -0
- package/registry/layers/framework/zk-prover-service/files/server.mjs +18 -0
- package/registry/layers/framework/zk-prover-service/manifest.json +15 -0
- package/registry/layers/payments/coinbase-commerce/files/payments-config.json +5 -0
- package/registry/layers/payments/coinbase-commerce/manifest.json +39 -0
- package/registry/layers/payments/none/manifest.json +30 -0
- package/registry/layers/payments/stripe/files/payments-config.json +5 -0
- package/registry/layers/payments/stripe/manifest.json +39 -0
- package/registry/layers/queue/bullmq/files/queue-config.json +5 -0
- package/registry/layers/queue/bullmq/manifest.json +35 -0
- package/registry/layers/queue/none/manifest.json +26 -0
- package/registry/layers/queue/trigger-dev/files/queue-config.json +5 -0
- package/registry/layers/queue/trigger-dev/manifest.json +35 -0
- package/registry/layers/sdk/coinbase-cdp/files/sdk-config.json +30 -0
- package/registry/layers/sdk/coinbase-cdp/manifest.json +61 -0
- package/registry/layers/sdk/evm-wallet/files/sdk-config.json +49 -0
- package/registry/layers/sdk/evm-wallet/manifest.json +64 -0
- package/registry/layers/sdk/none/manifest.json +34 -0
- package/registry/layers/sdk/solana-web3/files/sdk-config.json +31 -0
- package/registry/layers/sdk/solana-web3/manifest.json +59 -0
- package/registry/partners/arbitrum/files/partner-config.json +5 -0
- package/registry/partners/arbitrum/files/starter-brand.json +5 -0
- package/registry/partners/arbitrum/manifest.json +42 -0
- package/registry/partners/coinbase/files/partner-config.json +6 -0
- package/registry/partners/coinbase/files/starter-brand.json +4 -0
- package/registry/partners/coinbase/manifest.json +46 -0
- package/registry/partners/eigenlayer/files/partner-config.json +5 -0
- package/registry/partners/eigenlayer/files/starter-brand.json +5 -0
- package/registry/partners/eigenlayer/manifest.json +39 -0
- package/registry/partners/solana/files/partner-config.json +5 -0
- package/registry/partners/solana/files/starter-brand.json +5 -0
- package/registry/partners/solana/manifest.json +39 -0
- package/registry/partners/tangle/files/partner-config.json +5 -0
- package/registry/partners/tangle/files/starter-brand.json +5 -0
- package/registry/partners/tangle/manifest.json +39 -0
- package/registry/partners/xlayer/files/partner-config.json +5 -0
- package/registry/partners/xlayer/files/starter-brand.json +5 -0
- package/registry/partners/xlayer/manifest.json +41 -0
- package/specs/agent-python-research.json +12 -0
- package/specs/agent-rust-runtime.json +11 -0
- package/specs/agent-ts-control-plane.json +13 -0
- package/specs/api-evm-protocol.json +17 -0
- package/specs/api-health.json +14 -0
- package/specs/browser-extension-research.json +12 -0
- package/specs/cli-release-tool.json +9 -0
- package/specs/cloudflare-edge.json +13 -0
- package/specs/coinbase-landing.json +13 -0
- package/specs/dspy-pipeline.json +8 -0
- package/specs/eigenlayer-avs.json +8 -0
- package/specs/electron-ops-console.json +14 -0
- package/specs/evm-infra.json +15 -0
- package/specs/expo-wallet-mobile.json +14 -0
- package/specs/forge-counter.json +10 -0
- package/specs/fullstack-control-plane.json +16 -0
- package/specs/go-api.json +12 -0
- package/specs/go-worker.json +11 -0
- package/specs/hardhat-xlayer-config.json +9 -0
- package/specs/mcp-server.json +8 -0
- package/specs/move-treasury.json +10 -0
- package/specs/multichain-workspace.json +74 -0
- package/specs/nextjs-saas.json +11 -0
- package/specs/playwright-worker.json +11 -0
- package/specs/python-api.json +13 -0
- package/specs/python-data-insights.json +9 -0
- package/specs/react-vite-coinbase.json +11 -0
- package/specs/rust-service.json +13 -0
- package/specs/solana-keeper-worker.json +13 -0
- package/specs/solana-perps.json +12 -0
- package/specs/solana-prediction.json +12 -0
- package/specs/solana-treasury.json +10 -0
- package/specs/stylus-contracts.json +8 -0
- package/specs/tangle-blueprint.json +9 -0
- package/specs/tangle-custody.json +11 -0
- package/specs/tangle-oracle.json +11 -0
- package/specs/tauri-desktop.json +13 -0
- package/specs/trading-worker.json +12 -0
- package/specs/x402-service.json +8 -0
- package/specs/xlayer-aa.json +13 -0
- package/specs/xlayer-foundry-deploy.json +12 -0
- package/specs/xlayer-oft.json +13 -0
- package/specs/xlayer-wallet-dashboard.json +18 -0
- package/specs/zk-prover.json +8 -0
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { Button } from "@/components/ui/button"
|
|
2
|
+
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card"
|
|
3
|
+
import { Input } from "@/components/ui/input"
|
|
4
|
+
import { Label } from "@/components/ui/label"
|
|
5
|
+
import { Separator } from "@/components/ui/separator"
|
|
6
|
+
import { Checkbox } from "@/components/ui/checkbox"
|
|
7
|
+
|
|
8
|
+
export default function SignUpPage() {
|
|
9
|
+
return (
|
|
10
|
+
<div className="flex min-h-screen">
|
|
11
|
+
{/* Branded panel */}
|
|
12
|
+
<div className="hidden lg:flex lg:w-1/2 flex-col justify-between bg-primary p-12 text-primary-foreground">
|
|
13
|
+
<div>
|
|
14
|
+
<h1 className="text-2xl font-bold">{"{{headline}}"}</h1>
|
|
15
|
+
</div>
|
|
16
|
+
<div>
|
|
17
|
+
<h2 className="text-3xl font-bold leading-tight">Start building<br />in minutes.</h2>
|
|
18
|
+
<p className="mt-4 text-lg opacity-75">Free to start. No credit card required.</p>
|
|
19
|
+
</div>
|
|
20
|
+
<p className="text-sm opacity-50">© 2026 {"{{headline}}"}. All rights reserved.</p>
|
|
21
|
+
</div>
|
|
22
|
+
|
|
23
|
+
{/* Form panel */}
|
|
24
|
+
<div className="flex w-full items-center justify-center p-6 lg:w-1/2">
|
|
25
|
+
<Card className="w-full max-w-sm border-0 shadow-none">
|
|
26
|
+
<CardHeader className="text-center">
|
|
27
|
+
<CardTitle className="text-2xl">Create your account</CardTitle>
|
|
28
|
+
<CardDescription>Get started with a free account</CardDescription>
|
|
29
|
+
</CardHeader>
|
|
30
|
+
<CardContent className="space-y-4">
|
|
31
|
+
{/* Social signup */}
|
|
32
|
+
<div className="grid grid-cols-2 gap-3">
|
|
33
|
+
<Button variant="outline" className="w-full">
|
|
34
|
+
<svg className="mr-2 h-4 w-4" viewBox="0 0 24 24"><path d="M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92a5.06 5.06 0 0 1-2.2 3.32v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.1z" fill="#4285F4"/><path d="M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z" fill="#34A853"/><path d="M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z" fill="#FBBC05"/><path d="M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z" fill="#EA4335"/></svg>
|
|
35
|
+
Google
|
|
36
|
+
</Button>
|
|
37
|
+
<Button variant="outline" className="w-full">
|
|
38
|
+
<svg className="mr-2 h-4 w-4" fill="currentColor" viewBox="0 0 24 24"><path d="M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z"/></svg>
|
|
39
|
+
GitHub
|
|
40
|
+
</Button>
|
|
41
|
+
</div>
|
|
42
|
+
|
|
43
|
+
<div className="relative">
|
|
44
|
+
<Separator />
|
|
45
|
+
<span className="absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 bg-card px-2 text-xs text-muted-foreground">
|
|
46
|
+
or continue with email
|
|
47
|
+
</span>
|
|
48
|
+
</div>
|
|
49
|
+
|
|
50
|
+
<form className="space-y-4">
|
|
51
|
+
<div className="grid grid-cols-2 gap-3">
|
|
52
|
+
<div className="space-y-2">
|
|
53
|
+
<Label htmlFor="first-name">First name</Label>
|
|
54
|
+
<Input id="first-name" placeholder="John" />
|
|
55
|
+
</div>
|
|
56
|
+
<div className="space-y-2">
|
|
57
|
+
<Label htmlFor="last-name">Last name</Label>
|
|
58
|
+
<Input id="last-name" placeholder="Doe" />
|
|
59
|
+
</div>
|
|
60
|
+
</div>
|
|
61
|
+
<div className="space-y-2">
|
|
62
|
+
<Label htmlFor="email">Email</Label>
|
|
63
|
+
<Input id="email" type="email" placeholder="you@example.com" />
|
|
64
|
+
</div>
|
|
65
|
+
<div className="space-y-2">
|
|
66
|
+
<Label htmlFor="password">Password</Label>
|
|
67
|
+
<Input id="password" type="password" />
|
|
68
|
+
</div>
|
|
69
|
+
<div className="flex items-start gap-2">
|
|
70
|
+
<Checkbox id="terms" />
|
|
71
|
+
<Label htmlFor="terms" className="text-xs text-muted-foreground leading-tight">
|
|
72
|
+
I agree to the{" "}
|
|
73
|
+
<a href="/terms" className="text-primary hover:underline">Terms of Service</a>
|
|
74
|
+
{" "}and{" "}
|
|
75
|
+
<a href="/privacy" className="text-primary hover:underline">Privacy Policy</a>
|
|
76
|
+
</Label>
|
|
77
|
+
</div>
|
|
78
|
+
<Button type="submit" className="w-full">
|
|
79
|
+
Create Account
|
|
80
|
+
</Button>
|
|
81
|
+
</form>
|
|
82
|
+
|
|
83
|
+
<p className="text-center text-sm text-muted-foreground">
|
|
84
|
+
Already have an account?{" "}
|
|
85
|
+
<a href="/sign-in" className="font-medium text-primary hover:underline">
|
|
86
|
+
Sign in
|
|
87
|
+
</a>
|
|
88
|
+
</p>
|
|
89
|
+
</CardContent>
|
|
90
|
+
</Card>
|
|
91
|
+
</div>
|
|
92
|
+
</div>
|
|
93
|
+
)
|
|
94
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "layout-auth",
|
|
3
|
+
"description": "Pre-built sign-in and sign-up pages with social login buttons, email/password form, and responsive two-column layout.",
|
|
4
|
+
"appliesTo": [
|
|
5
|
+
"nextjs-ts",
|
|
6
|
+
"react-vite-ts",
|
|
7
|
+
"fullstack-ts",
|
|
8
|
+
"remix-ts"
|
|
9
|
+
],
|
|
10
|
+
"files": [
|
|
11
|
+
{
|
|
12
|
+
"source": "files/sign-in-page.tsx",
|
|
13
|
+
"target": "app/sign-in/page.tsx"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"source": "files/sign-up-page.tsx",
|
|
17
|
+
"target": "app/sign-up/page.tsx"
|
|
18
|
+
}
|
|
19
|
+
],
|
|
20
|
+
"keywords": [
|
|
21
|
+
"sign in",
|
|
22
|
+
"sign up",
|
|
23
|
+
"login",
|
|
24
|
+
"register",
|
|
25
|
+
"auth pages",
|
|
26
|
+
"authentication pages",
|
|
27
|
+
"sign-in",
|
|
28
|
+
"sign-up",
|
|
29
|
+
"login page",
|
|
30
|
+
"register page",
|
|
31
|
+
"authentication"
|
|
32
|
+
],
|
|
33
|
+
"buildHints": {
|
|
34
|
+
"pages": [
|
|
35
|
+
"/sign-in",
|
|
36
|
+
"/sign-up"
|
|
37
|
+
],
|
|
38
|
+
"components": [
|
|
39
|
+
"SignInForm",
|
|
40
|
+
"SignUpForm",
|
|
41
|
+
"SocialButtons",
|
|
42
|
+
"AuthLayout"
|
|
43
|
+
],
|
|
44
|
+
"architectureNotes": [
|
|
45
|
+
"Auth pages are pre-built with email/password + social login buttons.",
|
|
46
|
+
"Connect to your auth provider (Clerk, Better Auth, Supabase) by updating the form handlers.",
|
|
47
|
+
"The two-column layout shows a branded panel on desktop, form-only on mobile.",
|
|
48
|
+
"Add middleware.ts to protect routes and redirect unauthenticated users."
|
|
49
|
+
]
|
|
50
|
+
}
|
|
51
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
|
|
3
|
+
import * as React from "react"
|
|
4
|
+
import { cn } from "@/lib/utils"
|
|
5
|
+
import { Button } from "@/components/ui/button"
|
|
6
|
+
import { Textarea } from "@/components/ui/textarea"
|
|
7
|
+
import { ArrowUp, Paperclip, Loader2 } from "lucide-react"
|
|
8
|
+
|
|
9
|
+
interface ChatInputProps {
|
|
10
|
+
onSend: (message: string) => void
|
|
11
|
+
isLoading?: boolean
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export function ChatInput({ onSend, isLoading }: ChatInputProps) {
|
|
15
|
+
const [value, setValue] = React.useState("")
|
|
16
|
+
const textareaRef = React.useRef<HTMLTextAreaElement>(null)
|
|
17
|
+
|
|
18
|
+
const adjustHeight = () => {
|
|
19
|
+
const el = textareaRef.current
|
|
20
|
+
if (!el) return
|
|
21
|
+
el.style.height = "auto"
|
|
22
|
+
el.style.height = `${Math.min(el.scrollHeight, 168)}px`
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
React.useEffect(adjustHeight, [value])
|
|
26
|
+
|
|
27
|
+
const handleSend = () => {
|
|
28
|
+
const trimmed = value.trim()
|
|
29
|
+
if (!trimmed || isLoading) return
|
|
30
|
+
onSend(trimmed)
|
|
31
|
+
setValue("")
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
const handleKeyDown = (e: React.KeyboardEvent) => {
|
|
35
|
+
if (e.key === "Enter" && !e.shiftKey) {
|
|
36
|
+
e.preventDefault()
|
|
37
|
+
handleSend()
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
return (
|
|
42
|
+
<div className="border-t bg-background px-4 py-3">
|
|
43
|
+
<div className="mx-auto flex max-w-3xl items-end gap-2">
|
|
44
|
+
<Button
|
|
45
|
+
variant="ghost"
|
|
46
|
+
size="icon"
|
|
47
|
+
className="mb-0.5 shrink-0 text-muted-foreground hover:text-foreground"
|
|
48
|
+
disabled={isLoading}
|
|
49
|
+
>
|
|
50
|
+
<Paperclip className="h-4 w-4" />
|
|
51
|
+
</Button>
|
|
52
|
+
<Textarea
|
|
53
|
+
ref={textareaRef}
|
|
54
|
+
value={value}
|
|
55
|
+
onChange={(e) => setValue(e.target.value)}
|
|
56
|
+
onKeyDown={handleKeyDown}
|
|
57
|
+
placeholder="Send a message…"
|
|
58
|
+
disabled={isLoading}
|
|
59
|
+
rows={1}
|
|
60
|
+
className={cn(
|
|
61
|
+
"max-h-[168px] min-h-[40px] resize-none rounded-xl border-0 bg-muted px-4 py-2.5 text-sm",
|
|
62
|
+
"focus-visible:ring-1 focus-visible:ring-ring"
|
|
63
|
+
)}
|
|
64
|
+
/>
|
|
65
|
+
<Button
|
|
66
|
+
size="icon"
|
|
67
|
+
className="mb-0.5 shrink-0 rounded-full"
|
|
68
|
+
disabled={!value.trim() || isLoading}
|
|
69
|
+
onClick={handleSend}
|
|
70
|
+
>
|
|
71
|
+
{isLoading ? <Loader2 className="h-4 w-4 animate-spin" /> : <ArrowUp className="h-4 w-4" />}
|
|
72
|
+
</Button>
|
|
73
|
+
</div>
|
|
74
|
+
</div>
|
|
75
|
+
)
|
|
76
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
|
|
3
|
+
import * as React from "react"
|
|
4
|
+
import { cn } from "@/lib/utils"
|
|
5
|
+
import { Avatar } from "@/components/ui/avatar"
|
|
6
|
+
import { Button } from "@/components/ui/button"
|
|
7
|
+
import { Copy, Check } from "lucide-react"
|
|
8
|
+
|
|
9
|
+
interface ChatMessageProps {
|
|
10
|
+
role: "user" | "assistant"
|
|
11
|
+
content: string
|
|
12
|
+
timestamp?: Date
|
|
13
|
+
isStreaming?: boolean
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
function CodeBlock({ code, lang }: { code: string; lang?: string }) {
|
|
17
|
+
const [copied, setCopied] = React.useState(false)
|
|
18
|
+
|
|
19
|
+
const handleCopy = () => {
|
|
20
|
+
navigator.clipboard.writeText(code)
|
|
21
|
+
setCopied(true)
|
|
22
|
+
setTimeout(() => setCopied(false), 2000)
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
return (
|
|
26
|
+
<div className="group relative my-2 rounded-lg bg-zinc-950 dark:bg-zinc-900">
|
|
27
|
+
<div className="flex items-center justify-between border-b border-zinc-800 px-4 py-1.5">
|
|
28
|
+
<span className="text-xs text-zinc-400">{lang || "code"}</span>
|
|
29
|
+
<Button variant="ghost" size="icon" className="h-6 w-6 text-zinc-400 hover:text-zinc-200" onClick={handleCopy}>
|
|
30
|
+
{copied ? <Check className="h-3 w-3" /> : <Copy className="h-3 w-3" />}
|
|
31
|
+
</Button>
|
|
32
|
+
</div>
|
|
33
|
+
<pre className="overflow-x-auto p-4 text-sm leading-relaxed">
|
|
34
|
+
<code className="text-zinc-100">{code}</code>
|
|
35
|
+
</pre>
|
|
36
|
+
</div>
|
|
37
|
+
)
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
function StreamingDots() {
|
|
41
|
+
return (
|
|
42
|
+
<div className="flex items-center gap-1 px-1 py-2">
|
|
43
|
+
<span className="h-2 w-2 animate-bounce rounded-full bg-muted-foreground/50 [animation-delay:0ms]" />
|
|
44
|
+
<span className="h-2 w-2 animate-bounce rounded-full bg-muted-foreground/50 [animation-delay:150ms]" />
|
|
45
|
+
<span className="h-2 w-2 animate-bounce rounded-full bg-muted-foreground/50 [animation-delay:300ms]" />
|
|
46
|
+
</div>
|
|
47
|
+
)
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
function parseContent(content: string) {
|
|
51
|
+
const parts: React.ReactNode[] = []
|
|
52
|
+
const regex = /```(\w*)\n([\s\S]*?)```/g
|
|
53
|
+
let lastIndex = 0
|
|
54
|
+
let match
|
|
55
|
+
|
|
56
|
+
while ((match = regex.exec(content)) !== null) {
|
|
57
|
+
if (match.index > lastIndex) {
|
|
58
|
+
parts.push(<span key={lastIndex} className="whitespace-pre-wrap">{content.slice(lastIndex, match.index)}</span>)
|
|
59
|
+
}
|
|
60
|
+
parts.push(<CodeBlock key={match.index} lang={match[1]} code={match[2].trimEnd()} />)
|
|
61
|
+
lastIndex = regex.lastIndex
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
if (lastIndex < content.length) {
|
|
65
|
+
parts.push(<span key={lastIndex} className="whitespace-pre-wrap">{content.slice(lastIndex)}</span>)
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
return parts
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function ChatMessage({ role, content, timestamp, isStreaming }: ChatMessageProps) {
|
|
72
|
+
const isUser = role === "user"
|
|
73
|
+
|
|
74
|
+
return (
|
|
75
|
+
<div className={cn("flex gap-3 px-4 py-3", isUser && "flex-row-reverse")}>
|
|
76
|
+
{!isUser && (
|
|
77
|
+
<Avatar className="mt-0.5 flex h-8 w-8 shrink-0 items-center justify-center rounded-full bg-primary text-sm font-medium text-primary-foreground">
|
|
78
|
+
AI
|
|
79
|
+
</Avatar>
|
|
80
|
+
)}
|
|
81
|
+
<div className={cn("max-w-[75%] space-y-1", isUser && "items-end")}>
|
|
82
|
+
<div
|
|
83
|
+
className={cn(
|
|
84
|
+
"rounded-2xl px-4 py-2.5 text-sm leading-relaxed",
|
|
85
|
+
isUser
|
|
86
|
+
? "bg-primary text-primary-foreground"
|
|
87
|
+
: "bg-muted text-foreground"
|
|
88
|
+
)}
|
|
89
|
+
>
|
|
90
|
+
{isStreaming && !content ? <StreamingDots /> : parseContent(content)}
|
|
91
|
+
</div>
|
|
92
|
+
{timestamp && (
|
|
93
|
+
<p className={cn("px-1 text-[11px] text-muted-foreground", isUser && "text-right")}>
|
|
94
|
+
{timestamp.toLocaleTimeString([], { hour: "2-digit", minute: "2-digit" })}
|
|
95
|
+
</p>
|
|
96
|
+
)}
|
|
97
|
+
</div>
|
|
98
|
+
</div>
|
|
99
|
+
)
|
|
100
|
+
}
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
|
|
3
|
+
import * as React from "react"
|
|
4
|
+
import { cn } from "@/lib/utils"
|
|
5
|
+
import { Button } from "@/components/ui/button"
|
|
6
|
+
import { ScrollArea } from "@/components/ui/scroll-area"
|
|
7
|
+
import {
|
|
8
|
+
DropdownMenu,
|
|
9
|
+
DropdownMenuContent,
|
|
10
|
+
DropdownMenuItem,
|
|
11
|
+
DropdownMenuTrigger,
|
|
12
|
+
} from "@/components/ui/dropdown-menu"
|
|
13
|
+
import { Sheet, SheetContent } from "@/components/ui/sheet"
|
|
14
|
+
import { ChatMessage } from "@/components/chat/chat-message"
|
|
15
|
+
import { ChatInput } from "@/components/chat/chat-input"
|
|
16
|
+
import { ChatSidebar } from "@/components/chat/chat-sidebar"
|
|
17
|
+
import { Menu, ChevronDown, Settings } from "lucide-react"
|
|
18
|
+
|
|
19
|
+
interface Message {
|
|
20
|
+
id: string
|
|
21
|
+
role: "user" | "assistant"
|
|
22
|
+
content: string
|
|
23
|
+
timestamp: Date
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
const sampleMessages: Message[] = [
|
|
27
|
+
{ id: "1", role: "user", content: "Can you explain how streaming responses work?", timestamp: new Date(Date.now() - 300000) },
|
|
28
|
+
{ id: "2", role: "assistant", content: "Streaming responses use Server-Sent Events (SSE) to send data incrementally from server to client. The server writes chunks of the response as they become available, and the client appends each chunk to the display in real-time.\n\nHere's a minimal example:\n\n```typescript\nexport async function POST(req: Request) {\n const encoder = new TextEncoder()\n const stream = new ReadableStream({\n async start(controller) {\n for (const chunk of chunks) {\n controller.enqueue(encoder.encode(`data: ${chunk}\\n\\n`))\n }\n controller.close()\n },\n })\n return new Response(stream, {\n headers: { 'Content-Type': 'text/event-stream' },\n })\n}\n```\n\nThe client reads from this stream and updates the UI as each token arrives.", timestamp: new Date(Date.now() - 240000) },
|
|
29
|
+
{ id: "3", role: "user", content: "How do I handle errors during streaming?", timestamp: new Date(Date.now() - 180000) },
|
|
30
|
+
{ id: "4", role: "assistant", content: "You have a few options for error handling during streaming:\n\n1. **Send an error event** — Write a special SSE event type that the client recognizes as an error and displays appropriately.\n2. **Close the stream** — If the error is unrecoverable, close the stream and let the client detect the incomplete response.\n3. **Retry logic** — Implement exponential backoff on the client side for transient failures.\n\nThe key is to always surface errors to the user rather than silently failing.", timestamp: new Date(Date.now() - 120000) },
|
|
31
|
+
]
|
|
32
|
+
|
|
33
|
+
const sampleConversations = [
|
|
34
|
+
{ id: "conv-1", title: "Streaming responses", lastMessage: "How do I handle errors during streaming?", updatedAt: new Date(Date.now() - 120000) },
|
|
35
|
+
{ id: "conv-2", title: "Database migrations", lastMessage: "What's the best migration tool for Postgres?", updatedAt: new Date(Date.now() - 3600000) },
|
|
36
|
+
{ id: "conv-3", title: "Auth setup", lastMessage: "How do I add OAuth to Next.js?", updatedAt: new Date(Date.now() - 86400000) },
|
|
37
|
+
]
|
|
38
|
+
|
|
39
|
+
const models = ["GPT-4o", "Claude Sonnet", "Claude Opus", "Llama 3"]
|
|
40
|
+
|
|
41
|
+
export default function ChatPage() {
|
|
42
|
+
const [messages, setMessages] = React.useState<Message[]>(sampleMessages)
|
|
43
|
+
const [isLoading, setIsLoading] = React.useState(false)
|
|
44
|
+
const [activeConv, setActiveConv] = React.useState("conv-1")
|
|
45
|
+
const [sidebarOpen, setSidebarOpen] = React.useState(false)
|
|
46
|
+
const [model, setModel] = React.useState(models[0])
|
|
47
|
+
const scrollRef = React.useRef<HTMLDivElement>(null)
|
|
48
|
+
|
|
49
|
+
React.useEffect(() => {
|
|
50
|
+
const el = scrollRef.current
|
|
51
|
+
if (el) el.scrollTop = el.scrollHeight
|
|
52
|
+
}, [messages])
|
|
53
|
+
|
|
54
|
+
const handleSend = (content: string) => {
|
|
55
|
+
const userMsg: Message = { id: crypto.randomUUID(), role: "user", content, timestamp: new Date() }
|
|
56
|
+
setMessages((prev) => [...prev, userMsg])
|
|
57
|
+
setIsLoading(true)
|
|
58
|
+
|
|
59
|
+
const streamingMsg: Message = { id: crypto.randomUUID(), role: "assistant", content: "", timestamp: new Date() }
|
|
60
|
+
setMessages((prev) => [...prev, streamingMsg])
|
|
61
|
+
|
|
62
|
+
const response = "This is a simulated response. Wire up `/api/chat` to your LLM provider to get real streaming responses."
|
|
63
|
+
let i = 0
|
|
64
|
+
const interval = setInterval(() => {
|
|
65
|
+
i += 3
|
|
66
|
+
if (i >= response.length) {
|
|
67
|
+
setMessages((prev) =>
|
|
68
|
+
prev.map((m) => (m.id === streamingMsg.id ? { ...m, content: response } : m))
|
|
69
|
+
)
|
|
70
|
+
setIsLoading(false)
|
|
71
|
+
clearInterval(interval)
|
|
72
|
+
} else {
|
|
73
|
+
setMessages((prev) =>
|
|
74
|
+
prev.map((m) => (m.id === streamingMsg.id ? { ...m, content: response.slice(0, i) } : m))
|
|
75
|
+
)
|
|
76
|
+
}
|
|
77
|
+
}, 30)
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
return (
|
|
81
|
+
<div className="flex h-screen bg-background">
|
|
82
|
+
<aside className="hidden w-72 border-r lg:block">
|
|
83
|
+
<ChatSidebar
|
|
84
|
+
conversations={sampleConversations}
|
|
85
|
+
activeId={activeConv}
|
|
86
|
+
onSelect={setActiveConv}
|
|
87
|
+
onNew={() => setMessages([])}
|
|
88
|
+
/>
|
|
89
|
+
</aside>
|
|
90
|
+
|
|
91
|
+
<Sheet open={sidebarOpen} onOpenChange={setSidebarOpen}>
|
|
92
|
+
<SheetContent side="left" className="w-72 p-0">
|
|
93
|
+
<ChatSidebar
|
|
94
|
+
conversations={sampleConversations}
|
|
95
|
+
activeId={activeConv}
|
|
96
|
+
onSelect={(id) => { setActiveConv(id); setSidebarOpen(false) }}
|
|
97
|
+
onNew={() => { setMessages([]); setSidebarOpen(false) }}
|
|
98
|
+
/>
|
|
99
|
+
</SheetContent>
|
|
100
|
+
</Sheet>
|
|
101
|
+
|
|
102
|
+
<div className="flex flex-1 flex-col overflow-hidden">
|
|
103
|
+
<header className="flex h-14 items-center gap-3 border-b px-4">
|
|
104
|
+
<Button variant="ghost" size="icon" className="lg:hidden" onClick={() => setSidebarOpen(true)}>
|
|
105
|
+
<Menu className="h-5 w-5" />
|
|
106
|
+
</Button>
|
|
107
|
+
|
|
108
|
+
<DropdownMenu>
|
|
109
|
+
<DropdownMenuTrigger asChild>
|
|
110
|
+
<Button variant="ghost" className="gap-1 text-sm font-medium">
|
|
111
|
+
{model}
|
|
112
|
+
<ChevronDown className="h-3 w-3 text-muted-foreground" />
|
|
113
|
+
</Button>
|
|
114
|
+
</DropdownMenuTrigger>
|
|
115
|
+
<DropdownMenuContent align="start">
|
|
116
|
+
{models.map((m) => (
|
|
117
|
+
<DropdownMenuItem key={m} onClick={() => setModel(m)}>
|
|
118
|
+
{m}
|
|
119
|
+
</DropdownMenuItem>
|
|
120
|
+
))}
|
|
121
|
+
</DropdownMenuContent>
|
|
122
|
+
</DropdownMenu>
|
|
123
|
+
|
|
124
|
+
<div className="flex-1" />
|
|
125
|
+
|
|
126
|
+
<Button variant="ghost" size="icon">
|
|
127
|
+
<Settings className="h-4 w-4" />
|
|
128
|
+
</Button>
|
|
129
|
+
</header>
|
|
130
|
+
|
|
131
|
+
<ScrollArea className="flex-1" ref={scrollRef}>
|
|
132
|
+
<div className="mx-auto max-w-3xl py-4">
|
|
133
|
+
{messages.map((msg) => (
|
|
134
|
+
<ChatMessage
|
|
135
|
+
key={msg.id}
|
|
136
|
+
role={msg.role}
|
|
137
|
+
content={msg.content}
|
|
138
|
+
timestamp={msg.timestamp}
|
|
139
|
+
isStreaming={isLoading && msg === messages[messages.length - 1] && msg.role === "assistant"}
|
|
140
|
+
/>
|
|
141
|
+
))}
|
|
142
|
+
</div>
|
|
143
|
+
</ScrollArea>
|
|
144
|
+
|
|
145
|
+
<ChatInput onSend={handleSend} isLoading={isLoading} />
|
|
146
|
+
</div>
|
|
147
|
+
</div>
|
|
148
|
+
)
|
|
149
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
|
|
3
|
+
import * as React from "react"
|
|
4
|
+
import { cn } from "@/lib/utils"
|
|
5
|
+
import { Button } from "@/components/ui/button"
|
|
6
|
+
import { ScrollArea } from "@/components/ui/scroll-area"
|
|
7
|
+
import { Separator } from "@/components/ui/separator"
|
|
8
|
+
import { Plus, MessageSquare } from "lucide-react"
|
|
9
|
+
|
|
10
|
+
interface Conversation {
|
|
11
|
+
id: string
|
|
12
|
+
title: string
|
|
13
|
+
lastMessage: string
|
|
14
|
+
updatedAt: Date
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
interface ChatSidebarProps {
|
|
18
|
+
conversations: Conversation[]
|
|
19
|
+
activeId?: string
|
|
20
|
+
onSelect: (id: string) => void
|
|
21
|
+
onNew: () => void
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
function formatRelativeTime(date: Date) {
|
|
25
|
+
const diff = Date.now() - date.getTime()
|
|
26
|
+
const minutes = Math.floor(diff / 60000)
|
|
27
|
+
if (minutes < 1) return "Just now"
|
|
28
|
+
if (minutes < 60) return `${minutes}m ago`
|
|
29
|
+
const hours = Math.floor(minutes / 60)
|
|
30
|
+
if (hours < 24) return `${hours}h ago`
|
|
31
|
+
const days = Math.floor(hours / 24)
|
|
32
|
+
return `${days}d ago`
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export function ChatSidebar({ conversations, activeId, onSelect, onNew }: ChatSidebarProps) {
|
|
36
|
+
return (
|
|
37
|
+
<div className="flex h-full flex-col">
|
|
38
|
+
<div className="flex h-14 items-center justify-between border-b px-4">
|
|
39
|
+
<span className="text-sm font-semibold">Chats</span>
|
|
40
|
+
<Button variant="ghost" size="icon" className="h-8 w-8" onClick={onNew}>
|
|
41
|
+
<Plus className="h-4 w-4" />
|
|
42
|
+
</Button>
|
|
43
|
+
</div>
|
|
44
|
+
|
|
45
|
+
<ScrollArea className="flex-1">
|
|
46
|
+
<div className="space-y-0.5 p-2">
|
|
47
|
+
{conversations.map((conv) => (
|
|
48
|
+
<button
|
|
49
|
+
key={conv.id}
|
|
50
|
+
onClick={() => onSelect(conv.id)}
|
|
51
|
+
className={cn(
|
|
52
|
+
"flex w-full items-start gap-3 rounded-lg px-3 py-2.5 text-left transition-colors",
|
|
53
|
+
"hover:bg-accent",
|
|
54
|
+
activeId === conv.id && "bg-accent"
|
|
55
|
+
)}
|
|
56
|
+
>
|
|
57
|
+
<MessageSquare className="mt-0.5 h-4 w-4 shrink-0 text-muted-foreground" />
|
|
58
|
+
<div className="flex-1 overflow-hidden">
|
|
59
|
+
<p className="truncate text-sm font-medium">{conv.title}</p>
|
|
60
|
+
<p className="truncate text-xs text-muted-foreground">{conv.lastMessage}</p>
|
|
61
|
+
</div>
|
|
62
|
+
<span className="shrink-0 text-[11px] text-muted-foreground">
|
|
63
|
+
{formatRelativeTime(conv.updatedAt)}
|
|
64
|
+
</span>
|
|
65
|
+
</button>
|
|
66
|
+
))}
|
|
67
|
+
</div>
|
|
68
|
+
</ScrollArea>
|
|
69
|
+
|
|
70
|
+
<Separator />
|
|
71
|
+
<div className="p-3">
|
|
72
|
+
<p className="text-center text-xs text-muted-foreground">
|
|
73
|
+
{conversations.length} conversation{conversations.length !== 1 && "s"}
|
|
74
|
+
</p>
|
|
75
|
+
</div>
|
|
76
|
+
</div>
|
|
77
|
+
)
|
|
78
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"slots": [
|
|
3
|
+
{
|
|
4
|
+
"id": "ai-avatar",
|
|
5
|
+
"path": "public/images/ai-avatar.png",
|
|
6
|
+
"width": 64,
|
|
7
|
+
"height": 64,
|
|
8
|
+
"purpose": "AI assistant avatar shown next to assistant messages",
|
|
9
|
+
"prompt": "Friendly AI assistant avatar icon, abstract geometric face with primary brand color, circular",
|
|
10
|
+
"fallback": "icon",
|
|
11
|
+
"usedIn": "src/components/chat/chat-message.tsx"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"id": "chat-empty-state",
|
|
15
|
+
"path": "public/images/chat-empty.svg",
|
|
16
|
+
"width": 200,
|
|
17
|
+
"height": 160,
|
|
18
|
+
"purpose": "Illustration for empty chat state when no conversation is selected",
|
|
19
|
+
"prompt": "Minimal illustration of chat bubbles floating, muted pastel colors",
|
|
20
|
+
"fallback": "icon",
|
|
21
|
+
"usedIn": "src/components/chat/chat-page.tsx"
|
|
22
|
+
}
|
|
23
|
+
]
|
|
24
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "layout-chat",
|
|
3
|
+
"description": "Pre-built AI chat interface with message list, streaming input, code blocks, and tool-call display.",
|
|
4
|
+
"group": "capability",
|
|
5
|
+
"appliesTo": ["nextjs-ts", "react-vite-ts", "fullstack-ts", "remix-ts"],
|
|
6
|
+
"keywords": ["chat", "ai chat", "chatbot", "chat interface", "messaging", "conversation", "chat app", "chat room", "ai assistant"],
|
|
7
|
+
"capabilityRequires": ["shadcn"],
|
|
8
|
+
"files": [
|
|
9
|
+
{ "source": "files/chat-page.tsx", "target": "app/chat/page.tsx" },
|
|
10
|
+
{ "source": "files/chat-page.tsx", "target": "app/page.tsx" },
|
|
11
|
+
{ "source": "files/chat-page.tsx", "target": "src/App.tsx" },
|
|
12
|
+
{ "source": "files/chat-message.tsx", "target": "src/components/chat/chat-message.tsx" },
|
|
13
|
+
{ "source": "files/chat-input.tsx", "target": "src/components/chat/chat-input.tsx" },
|
|
14
|
+
{ "source": "files/chat-sidebar.tsx", "target": "src/components/chat/chat-sidebar.tsx" },
|
|
15
|
+
{ "source": "files/media-manifest.json", "target": "media-manifest.json" }
|
|
16
|
+
],
|
|
17
|
+
"buildHints": {
|
|
18
|
+
"pages": ["/chat", "/chat/[id]"],
|
|
19
|
+
"apiRoutes": ["/api/chat"],
|
|
20
|
+
"components": ["ChatPage", "ChatMessage", "ChatInput", "ChatSidebar", "CodeBlock", "StreamingDots"],
|
|
21
|
+
"integrations": ["Server-Sent Events or WebSocket for streaming", "Markdown rendering via react-markdown or similar"],
|
|
22
|
+
"architectureNotes": [
|
|
23
|
+
"Chat layout is pre-built with sidebar for conversation history and main chat area.",
|
|
24
|
+
"ChatMessage renders user and assistant messages with avatar, timestamp, and markdown.",
|
|
25
|
+
"ChatInput supports multi-line with Shift+Enter and send on Enter.",
|
|
26
|
+
"Wire /api/chat to your LLM provider (OpenAI, Anthropic, etc.) with streaming response.",
|
|
27
|
+
"Code blocks in assistant messages use syntax highlighting placeholder — add shiki or prism."
|
|
28
|
+
]
|
|
29
|
+
}
|
|
30
|
+
}
|