Files
open-design/apps/cli/package.json
pftomandClaude Opus 4.7 409064809f feat: refactor to Next.js 16 App Router with cloud + local daemon split
Restructures the project into a pnpm workspace mirroring multica-ai/multica
on a unified TypeScript stack so the product can run as a hosted cloud app
that pairs with a local `od` daemon CLI for executing code-agents on the
user's machine.

Adds:
- apps/web — Next.js 16 App Router (auth, projects, daemon endpoints, SSE)
- apps/cli — `od` daemon CLI (login via local-listener OAuth, register, claim,
  spawn agents, stream task messages)
- packages/db — Drizzle schema with Postgres + SQLite dialects, runtime-
  selected by DATABASE_URL prefix
- packages/shared — zod request schemas, JWT helpers, token mint/hash

Sharing primitives: multica-style workspace_invitation (email → membership)
plus a per-project share link (`/share/<token>` with view/comment/edit role)
so a single project can be sent as a public URL without granting workspace
access.

Legacy Vite + Express stack (src/, daemon/) preserved alongside under
`legacy:*` npm scripts. Components, S3 file storage, and skill route
handlers are out of scope for this scaffold and tracked in HANDOFF.md.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-29 17:45:59 +08:00

27 lines
501 B
JSON

{
"name": "@open-design/cli",
"version": "0.2.0",
"private": false,
"type": "module",
"bin": {
"od": "./dist/cli.js"
},
"files": ["dist"],
"scripts": {
"dev": "tsx src/cli.ts",
"build": "tsup",
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@open-design/shared": "workspace:*",
"execa": "^9.5.1",
"open": "^10.1.0"
},
"devDependencies": {
"@types/node": "^22.7.4",
"tsup": "^8.3.0",
"tsx": "^4.19.2",
"typescript": "^5.6.3"
}
}