@lahat-group/cli 1.1.4 → 1.1.5

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/index.js CHANGED
@@ -9424,6 +9424,28 @@ init_esm_shims();
9424
9424
  // ../../packages/shared/src/permissions.ts
9425
9425
  init_esm_shims();
9426
9426
 
9427
+ // ../../packages/shared/src/agentScopes.ts
9428
+ init_esm_shims();
9429
+ var AGENT_SCOPES = {
9430
+ "profile:read": { he: "\u05DC\u05E8\u05D0\u05D5\u05EA \u05D0\u05EA \u05D4\u05E9\u05DD \u05D5\u05D4\u05D0\u05D9\u05DE\u05D9\u05D9\u05DC \u05E9\u05DC\u05DA", en: "See your name and email" },
9431
+ "projects:read": { he: "\u05DC\u05E8\u05D0\u05D5\u05EA \u05D0\u05EA \u05D4\u05E4\u05E8\u05D5\u05D9\u05E7\u05D8\u05D9\u05DD \u05E9\u05DC\u05DA", en: "See your projects" },
9432
+ "projects:write": { he: "\u05DC\u05D9\u05E6\u05D5\u05E8 \u05D5\u05DC\u05E2\u05E8\u05D5\u05DA \u05E4\u05E8\u05D5\u05D9\u05E7\u05D8\u05D9\u05DD", en: "Create and edit projects" },
9433
+ "customers:read": { he: "\u05DC\u05E8\u05D0\u05D5\u05EA \u05D0\u05EA \u05D4\u05DC\u05E7\u05D5\u05D7\u05D5\u05EA \u05E9\u05DC\u05DA", en: "See your customers" },
9434
+ "customers:write": { he: "\u05DC\u05D9\u05E6\u05D5\u05E8 \u05D5\u05DC\u05E2\u05E8\u05D5\u05DA \u05DC\u05E7\u05D5\u05D7\u05D5\u05EA", en: "Create and edit customers" },
9435
+ "designs:read": { he: "\u05DC\u05E8\u05D0\u05D5\u05EA \u05D0\u05EA \u05EA\u05DB\u05E0\u05D5\u05E0\u05D9 \u05D4\u05D0\u05E8\u05D5\u05E0\u05D5\u05EA \u05E9\u05DC\u05DA", en: "See your wardrobe designs" },
9436
+ "designs:write": { he: "\u05DC\u05D9\u05E6\u05D5\u05E8 \u05D5\u05DC\u05E2\u05E8\u05D5\u05DA \u05EA\u05DB\u05E0\u05D5\u05E0\u05D9 \u05D0\u05E8\u05D5\u05E0\u05D5\u05EA", en: "Create and edit wardrobe designs" },
9437
+ "price:read": { he: "\u05DC\u05EA\u05DE\u05D7\u05E8 \u05EA\u05E6\u05D5\u05E8\u05EA \u05D0\u05E8\u05D5\u05DF", en: "Price a configuration" },
9438
+ "chat:read": { he: "\u05DC\u05E7\u05E8\u05D5\u05D0 \u05D4\u05D5\u05D3\u05E2\u05D5\u05EA \u05D1\u05E4\u05E8\u05D5\u05D9\u05E7\u05D8\u05D9\u05DD \u05E9\u05DC\u05DA", en: "Read project messages" },
9439
+ "chat:write": { he: "\u05DC\u05DB\u05EA\u05D5\u05D1 \u05D4\u05D5\u05D3\u05E2\u05D5\u05EA \u05D1\u05E4\u05E8\u05D5\u05D9\u05E7\u05D8\u05D9\u05DD \u05E9\u05DC\u05DA", en: "Post project messages" },
9440
+ "files:write": { he: "\u05DC\u05D4\u05E2\u05DC\u05D5\u05EA \u05EA\u05DE\u05D5\u05E0\u05D5\u05EA \u05E9\u05DC \u05EA\u05DB\u05E0\u05D5\u05E0\u05D9\u05DD", en: "Upload design images" },
9441
+ "quotations:write": { he: "\u05DC\u05D4\u05E4\u05D9\u05E7 \u05D4\u05E6\u05E2\u05EA \u05DE\u05D7\u05D9\u05E8", en: "Generate a quotation PDF" },
9442
+ "orders:read": { he: "\u05DC\u05E8\u05D0\u05D5\u05EA \u05D0\u05EA \u05D4\u05D4\u05D6\u05DE\u05E0\u05D5\u05EA \u05E9\u05DC\u05DA", en: "See your orders" },
9443
+ "orders:write": { he: "\u05DC\u05D4\u05DB\u05D9\u05DF \u05D8\u05D9\u05D5\u05D8\u05EA \u05D4\u05D6\u05DE\u05E0\u05D4 \u05DC\u05D0\u05D9\u05E9\u05D5\u05E8\u05DA", en: "Draft an order for you to confirm" },
9444
+ "orders:commit": { he: "\u05DC\u05D0\u05E9\u05E8 \u05D4\u05D6\u05DE\u05E0\u05D4 \u05D1\u05E9\u05DE\u05DA", en: "Confirm an order on your behalf" },
9445
+ "invitations:write": { he: "\u05DC\u05D4\u05D6\u05DE\u05D9\u05DF \u05D0\u05E0\u05E9\u05D9\u05DD \u05DC\u05E4\u05E8\u05D5\u05D9\u05E7\u05D8\u05D9\u05DD \u05E9\u05DC\u05DA", en: "Invite people to your projects" }
9446
+ };
9447
+ var ALL_AGENT_SCOPES = Object.keys(AGENT_SCOPES);
9448
+
9427
9449
  // ../../packages/shared/src/legal.ts
9428
9450
  init_esm_shims();
9429
9451
 
@@ -11891,7 +11913,7 @@ async function formatCliError(err, json) {
11891
11913
 
11892
11914
  // src/version.ts
11893
11915
  init_esm_shims();
11894
- var CLI_VERSION = "1.1.4";
11916
+ var CLI_VERSION = "1.1.5";
11895
11917
 
11896
11918
  // src/index.ts
11897
11919
  program.name("wardrobe").description("Wardrobe configurator CLI").version(CLI_VERSION);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lahat-group/cli",
3
- "version": "1.1.4",
3
+ "version": "1.1.5",
4
4
  "description": "CLI + Claude Skill to build, validate, price, and save wardrobe designs.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
package/skill/SKILL.md CHANGED
@@ -63,15 +63,21 @@ Prefer generating the skeleton with `wardrobe init` rather than hand-writing it
63
63
  `init` fills materials, `ruleVersion`, and a valid column layout for you. Column
64
64
  `id`s are `nanoid()` and are not stable across rebuilds.
65
65
 
66
- ## Guardrails — orders require a human
66
+ ## Guardrails — committing to an order requires a human
67
67
 
68
- - **The CLI cannot place orders.** Ordering is intentionally not an agent verb: the
69
- agent key carries only `designs:read`, `designs:write`, `price:read` — **no order or
70
- admin scope**. Don't attempt to order, or to run admin/catalog operations.
68
+ - **The CLI cannot place orders.** The `wardrobe-cli` client is registered with
69
+ `profile:read`, `projects:read`, `designs:read`, `designs:write`, `price:read` —
70
+ **no order or admin scope** — so every order route answers `403 insufficient_scope`.
71
+ Don't attempt to order, or to run admin/catalog operations.
71
72
  - To turn a saved design into an order, direct the **human** to the web app: they
72
73
  open the project, review the design, and complete the **verify-details** flow —
73
74
  which computes the final price, freezes the PDF, and advances the order. Only a
74
75
  human does this. Your job ends at `apply` (a saved design) plus a clear summary.
76
+ - This is now a **scope** boundary rather than a property of the API surface: other
77
+ registered clients may hold `orders:write` and *draft* an order (status `created` —
78
+ no frozen PDF, no confirmation email). But `orders:commit`, which gates
79
+ `verify-details`, is held by no client at all, so the commitment step stays human
80
+ for every agent. See `docs/bot-api.md`.
75
81
 
76
82
  ## Error handling
77
83