mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
6b226afd81
- server.ts now loads .env (import dotenv/config) so COPILOTKIT_LICENSE_TOKEN / INTELLIGENCE_* / AGENT_URL / PORT are honored — Intelligence/threads were unreachable before (tsx does not auto-load .env like Next.js did) - .env.example: drop PORT=8200 (the agent's load_dotenv read it and bound 8200, colliding with the runtime); align AGENT_URL trailing slash - app.ts: set --copilot-kit-primary-color on the .layout root so setThemeColor reaches the chat-rendered weather card (was scoped to .main-content only) - app.ts: mobile stacks center+chat instead of hiding the chat (kept assistant reachable) - proverbs.ts: re-seed on every fresh thread (drop lifetime latch); mirror React - agent-state.ts: proverbs?: string[] (code depends on undefined-before-seed) - package.json: drop unused hono/@hono/node-server/@angular/forms/@angular/router; add dotenv - .gitignore: !.env.example so the tracked template can't be dropped by the .env* rule - scripts/run-agent.bat: quote cd path + exit guard (match setup-agent.bat) - agent/main.py: fix garbled prompt rule 5, stray quote, wether/provers/incude/recipe typos - README: Intelligence path needs Node >=22 + a real provisioned user (not demo-user) Verified: ng build green; server.ts binds .env PORT (dotenv loads); oxlint 0/0
49 lines
551 B
Plaintext
49 lines
551 B
Plaintext
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
|
|
|
|
# dependencies
|
|
/node_modules
|
|
/.pnp
|
|
.pnp.*
|
|
.yarn/*
|
|
!.yarn/patches
|
|
!.yarn/plugins
|
|
!.yarn/releases
|
|
!.yarn/versions
|
|
|
|
# testing
|
|
/coverage
|
|
|
|
# angular
|
|
/dist
|
|
/.angular/
|
|
/tmp
|
|
/out-tsc
|
|
|
|
# production
|
|
/build
|
|
|
|
# misc
|
|
.DS_Store
|
|
*.pem
|
|
|
|
# debug
|
|
npm-debug.log*
|
|
yarn-debug.log*
|
|
yarn-error.log*
|
|
.pnpm-debug.log*
|
|
|
|
# env files (can opt-in for committing if needed)
|
|
.env*
|
|
!.env.example
|
|
|
|
# vercel
|
|
.vercel
|
|
|
|
# typescript
|
|
*.tsbuildinfo
|
|
|
|
|
|
# python
|
|
agent/venv/
|
|
agent/__pycache__/
|
|
agent/.venv/ |