Skip to content

armgit / alook

Public Imported from GitHub
0

Multi-Agent Collaboration for Team and Friends

chore: scaffold @alook/cli

Gener1d12ee7ec5a2
diff --git a/src/cli/package.json b/src/cli/package.json
index a9d775233..8b62bb6d5 100644
--- a/src/cli/package.json
+++ b/src/cli/package.json
@@ -1,24 +1,21 @@
{
"name": "@alook/cli",
- "version": "0.1.0",
+ "version": "0.0.1",
"private": true,
"type": "module",
- "bin": { "alook": "./dist/index.js" },
"scripts": {
- "build": "tsup src/index.ts --format esm --dts",
- "dev": "tsx src/index.ts",
- "lint": "eslint"
+ "dev": "bun run src/index.ts",
+ "build": "bun build src/index.ts --outdir dist --target bun",
+ "test": "bun test src/__tests__",
+ "typecheck": "tsc --noEmit"
},
"dependencies": {
"@alook/shared": "workspace:*",
- "commander": "^13.0.0",
- "dotenv": "^16.0.0"
+ "@anthropic-ai/claude-agent-sdk": "latest",
+ "@openai/codex-sdk": "latest",
+ "citty": "^0.2.2"
},
"devDependencies": {
- "eslint": "^9.0.0",
- "tsup": "^8.0.0",
- "tsx": "^4.0.0",
- "typescript": "^5.0.0",
- "typescript-eslint": "^8.0.0"
+ "typescript": "latest"
}
}
diff --git a/src/cli/src/index.ts b/src/cli/src/index.ts
index 77f314501..b2dda2a5f 100644
--- a/src/cli/src/index.ts
+++ b/src/cli/src/index.ts
@@ -1,25 +1 @@
-#!/usr/bin/env node
-import { Command } from "commander";
-import { registerCommand } from "../commands/register.js";
-import { statusCommand } from "../commands/status.js";
-import { agentCommand } from "../commands/agent.js";
-import { daemonCommand } from "../commands/daemon.js";
-import { configCommand } from "../commands/config.js";
-import { versionCommand } from "../commands/version.js";
-
-const program = new Command();
-
-program
- .name("alook")
- .description("Alook CLI")
- .option("--server <url>", "Server URL")
- .option("--profile <name>", "Profile name");
-
-program.addCommand(registerCommand());
-program.addCommand(statusCommand());
-program.addCommand(agentCommand());
-program.addCommand(daemonCommand());
-program.addCommand(configCommand());
-program.addCommand(versionCommand());
-
-program.parse();
+console.log("alook cli")
diff --git a/src/cli/tsconfig.json b/src/cli/tsconfig.json
index 9ce2bbf38..e8749402c 100644
--- a/src/cli/tsconfig.json
+++ b/src/cli/tsconfig.json
@@ -1,15 +1,12 @@
{
"compilerOptions": {
"target": "ES2022",
- "module": "esnext",
+ "module": "ESNext",
"moduleResolution": "bundler",
"strict": true,
- "esModuleInterop": true,
"skipLibCheck": true,
- "declaration": true,
- "outDir": "dist",
- "rootDir": "."
+ "types": ["bun-types"]
},
- "include": ["src/**/*.ts", "commands/**/*.ts", "lib/**/*.ts"],
- "references": [{ "path": "../shared" }]
+ "include": ["src"],
+ "exclude": ["src/__tests__"]
}