summaryrefslogtreecommitdiff
path: root/package.json
diff options
context:
space:
mode:
authorYurenHao0426 <blackhao0426@gmail.com>2026-09-13 04:05:47 +0000
committerYurenHao0426 <blackhao0426@gmail.com>2026-09-13 04:05:47 +0000
commit1e81ba361eed444442fa98b0770e7ed78dae864b (patch)
tree69877995c0ecad3eb7266b1bb282c11a6f16dcdf /package.json
parentf3b2fc01082e754f7dfe73caa4f0a4f207a2adfb (diff)
Add CLI build scripts, README docs, and tsconfig referenceagent-cli
- package.json: add build:cli, typecheck:cli, test:cli scripts - README.md: add "Headless / Agent Mode (CLI)" section with full docs - tsconfig.json: add tsconfig.cli.json reference Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Diffstat (limited to 'package.json')
-rw-r--r--package.json3
1 files changed, 3 insertions, 0 deletions
diff --git a/package.json b/package.json
index e645d94..d736062 100644
--- a/package.json
+++ b/package.json
@@ -8,6 +8,9 @@
"scripts": {
"dev": "electron-vite dev",
"build": "electron-vite build && npx esbuild src/mcp/lattex.mjs --bundle --platform=node --format=esm --outfile=out/mcp/lattex.mjs",
+ "build:cli": "npx esbuild src/cli/main.ts --bundle --platform=node --format=esm --target=node18 --outfile=out/cli/lattex-cli.mjs --external:ws --banner:js='#!/usr/bin/env node'",
+ "typecheck:cli": "npx tsc --project tsconfig.cli.json --noEmit",
+ "test:cli": "node --experimental-vm-modules out/cli/test.mjs",
"preview": "electron-vite preview",
"postinstall": "electron-builder install-app-deps",
"pack": "electron-builder --dir",