@lamsa/cli 0.1.1-rc.3 → 0.1.1

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 CHANGED
@@ -1069,6 +1069,7 @@ UI designs live in \`*.lamsa.json\` files (see \`lamsa.config.json\`). They are
1069
1069
  - The user's selection in the editor: \`lamsa selection --json\`.
1070
1070
  - Comments people pinned to layers: \`lamsa comments --open --json\`; address each, then \`lamsa comments resolve <id> --reply "<what you did>"\`.
1071
1071
  - Every command takes \`--json\`. Full guide: \`lamsa skill\`.
1072
+ - No \`lamsa\` on PATH? Use the repo's install (\`pnpm exec lamsa\`) or \`npx @lamsa/cli\`; the npm package isn't called \`lamsa\`.
1072
1073
  ${MARK_END}
1073
1074
  `;
1074
1075
  async function upsertSection(path) {
@@ -1218,7 +1219,7 @@ async function checkNodesExist({ root, ids }) {
1218
1219
  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
1220
  }
1220
1221
  // 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.3").option("--json", "machine-readable output").showHelpAfterError();
1222
+ 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").option("--json", "machine-readable output").showHelpAfterError().addHelpText("after", "\nAgent guide: lamsa skill. Editor and docs: https://github.com/Shunseii/lamsa");
1222
1223
  const out = () => createOutput(Boolean(program.opts().json));
1223
1224
  const run = (task) => checkCommandResult(task, Boolean(program.opts().json));
1224
1225
  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({
@@ -1330,7 +1331,7 @@ comments.command("reopen <id>").description("reopen a resolved thread").action((
1330
1331
  out: out(),
1331
1332
  id
1332
1333
  })));
1333
- program.command("open [file]").description("show a design in the desktop editor (optional; nothing else needs it)").option("--select <ids>", "nodes to select: comma-separated IDs; repeatable", (value, previous = []) => [...previous, ...value.split(",")]).action((file, o) => run(() => openCommand({
1334
+ program.command("open [file]").description("show a design in the desktop editor (optional; nothing else needs it)").option("--select <ids>", "nodes to select: comma-separated IDs; repeatable", (value, previous = []) => [...previous, ...value.split(",")]).addHelpText("after", "\nFinds the editor as LAMSA_DESKTOP_BIN, lamsa-desktop on PATH (the Linux .deb), lamsa.app in /Applications\nor ~/Applications, or the newest lamsa AppImage in ~/Applications or ~/.local/bin.\nDownload it from https://github.com/Shunseii/lamsa/releases/latest").action((file, o) => run(() => openCommand({
1334
1335
  out: out(),
1335
1336
  file,
1336
1337
  select: o.select
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lamsa/cli",
3
- "version": "0.1.1-rc.3",
3
+ "version": "0.1.1",
4
4
  "description": "Local-first design files for apps, driven by your own coding agent",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
package/skill/SKILL.md CHANGED
@@ -7,6 +7,8 @@ description: Design app screens and components as lamsa design files (*.lamsa.js
7
7
 
8
8
  lamsa designs are plain JSON files in this repo (`*.lamsa.json`, see `lamsa.config.json` for where). You edit them directly or with the `lamsa` CLI, check them with `lamsa validate`, and look at them with `lamsa render`. Nothing needs a person to open an app: every step below runs headless.
9
9
 
10
+ If `lamsa` isn't on PATH, run it from the repo's own install (`pnpm exec lamsa`, `npx lamsa`) or as `npx @lamsa/cli`. Never `npx lamsa` outside a repo that has it installed: the npm package is `@lamsa/cli`, not `lamsa`.
11
+
10
12
  A design is a **spec**, not code. To build a designed screen, read its JSON and its PNG, then implement it with this repo's own framework, components, and tokens.
11
13
 
12
14
  ## The loop