Skip to content

Dev - #2

Merged
AlkaidSTART merged 2 commits into
mainfrom
dev
Aug 5, 2026
Merged

Dev#2
AlkaidSTART merged 2 commits into
mainfrom
dev

Conversation

@AlkaidSTART

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI lite review requested due to automatic review settings August 5, 2026 09:01
@AlkaidSTART
AlkaidSTART merged commit 34492bc into main Aug 5, 2026
1 of 2 checks passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR tightens CLI startup/configuration by making OPENAI_MODEL a required setting, surfacing the selected model in the Ink UI, and adding project metadata/lockfile for reproducible installs.

Changes:

  • Enforce OPENAI_MODEL presence in the LLM layer and in the CLI UI (status + inline warning + submit guard).
  • Add root package.json + pnpm-lock.yaml and update README quickstart to use pnpm dev.
  • Adjust TS config to include Node types and update .env.example/.gitignore.

Reviewed changes

Copilot reviewed 5 out of 8 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
tsconfig.json Adds explicit TypeScript types configuration (Node typings).
source/app.tsx Displays configured model and blocks interactions when OPENAI_MODEL is missing.
packages/agent-core/src/core/llm.ts Loads dotenv files and throws a clear error when model is missing.
README.md Updates quickstart commands and documents OPENAI_MODEL as required.
.env.example Updates example env vars to reflect required model and base URL guidance.
package.json Introduces project scripts (dev/start/typecheck/test/build) and dependencies.
pnpm-lock.yaml Adds lockfile for deterministic installs.
.gitignore Stops ignoring package metadata and adjusts ignored paths.
Files not reviewed (1)
  • pnpm-lock.yaml: Generated file

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +4 to +5
dotenv.config();
dotenv.config({ path: '.env.local' });
Comment thread .env.example
# Optional: custom OpenAI-compatible base URL
# 留空时使用 OpenAI 默认地址;DeepSeek 可填写 https://api.deepseek.com
OPENAI_API_BASE_URL=https://api.deepseek.com
OPENAI_API_BASE_URL=xxx
Comment thread README.md

```bash
pnpm exec tsx source/app.tsx
pnpm dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants