@lamsa/cli 0.1.1-rc.1 → 0.1.1-rc.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +2 -2
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -1183,7 +1183,7 @@ function findDesktopApp() {
|
|
|
1183
1183
|
if (process.env.LAMSA_DESKTOP_BIN) return process.env.LAMSA_DESKTOP_BIN;
|
|
1184
1184
|
const onPath = findOnPath("lamsa-desktop");
|
|
1185
1185
|
if (onPath) return onPath;
|
|
1186
|
-
if (process.platform === "darwin") return [join("/Applications"), join(homedir(), "Applications")].map((dir) => join(dir, "lamsa.app", "Contents", "MacOS", "lamsa
|
|
1186
|
+
if (process.platform === "darwin") return [join("/Applications"), join(homedir(), "Applications")].map((dir) => join(dir, "lamsa.app", "Contents", "MacOS", "lamsa")).find((path) => existsSync(path));
|
|
1187
1187
|
if (process.platform === "linux") return [join(homedir(), "Applications"), join(homedir(), ".local", "bin")].map(findAppImage).find(Boolean);
|
|
1188
1188
|
}
|
|
1189
1189
|
async function openCommand({ out, file, select }) {
|
|
@@ -1218,7 +1218,7 @@ async function checkNodesExist({ root, ids }) {
|
|
|
1218
1218
|
throw new CliError(`no node with ID ${missing.join(", ")}`, ExitCode.notFound, missing.map((id) => didYouMean(id, Object.keys(nodes))).filter(Boolean).join("; ") || "run `lamsa tree` to list nodes");
|
|
1219
1219
|
}
|
|
1220
1220
|
// src/cli.ts
|
|
1221
|
-
const program = new Command().name("lamsa").description("Design files for apps, driven by your own coding agent. Every command is non-interactive.").version("0.1.1-rc.
|
|
1221
|
+
const program = new Command().name("lamsa").description("Design files for apps, driven by your own coding agent. Every command is non-interactive.").version("0.1.1-rc.3").option("--json", "machine-readable output").showHelpAfterError();
|
|
1222
1222
|
const out = () => createOutput(Boolean(program.opts().json));
|
|
1223
1223
|
const run = (task) => checkCommandResult(task, Boolean(program.opts().json));
|
|
1224
1224
|
program.command("init").description("set up lamsa in this repo: config, agent skill, AGENTS.md section").option("--agent <name>", "claude | codex | cursor | generic", "claude").option("--tokens <path>", "token source CSS (default: detect globals.css)").option("--designs <dir>", "where design files live", "designs").option("--force", "overwrite an existing lamsa.config.json").option("--yes", "accepted for scripts; init never prompts").action((o) => run(() => initCommand({
|