@lahat-group/cli 1.1.7 → 1.1.8
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 +3 -2
- package/package.json +1 -1
- package/skill/SKILL.md +5 -2
package/dist/index.js
CHANGED
|
@@ -9447,7 +9447,8 @@ var AGENT_SCOPES = {
|
|
|
9447
9447
|
"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" },
|
|
9448
9448
|
"orders:commit": { he: "\u05DC\u05D0\u05E9\u05E8 \u05D4\u05D6\u05DE\u05E0\u05D4 \u05D1\u05E9\u05DE\u05DA", en: "Confirm an order on your behalf" },
|
|
9449
9449
|
"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" },
|
|
9450
|
-
"staff:read": { he: "\u05DC\u05E7\u05E8\u05D5\u05D0 \u05D0\u05EA \u05D4\u05E0\u05EA\u05D5\u05E0\u05D9\u05DD \u05E9\u05DC \u05DB\u05DC \u05D4\u05DE\u05E9\u05EA\u05DE\u05E9\u05D9\u05DD \u05D1\u05DE\u05E2\u05E8\u05DB\u05EA", en: "Read every user's data in the system" }
|
|
9450
|
+
"staff:read": { he: "\u05DC\u05E7\u05E8\u05D5\u05D0 \u05D0\u05EA \u05D4\u05E0\u05EA\u05D5\u05E0\u05D9\u05DD \u05E9\u05DC \u05DB\u05DC \u05D4\u05DE\u05E9\u05EA\u05DE\u05E9\u05D9\u05DD \u05D1\u05DE\u05E2\u05E8\u05DB\u05EA", en: "Read every user's data in the system" },
|
|
9451
|
+
"staff:write": { he: "\u05DC\u05E2\u05E8\u05D5\u05DA \u05D0\u05EA \u05D4\u05E0\u05EA\u05D5\u05E0\u05D9\u05DD \u05E9\u05DC \u05DB\u05DC \u05D4\u05DE\u05E9\u05EA\u05DE\u05E9\u05D9\u05DD \u05D1\u05DE\u05E2\u05E8\u05DB\u05EA", en: "Edit every user's data in the system" }
|
|
9451
9452
|
};
|
|
9452
9453
|
var ALL_AGENT_SCOPES = Object.keys(AGENT_SCOPES);
|
|
9453
9454
|
|
|
@@ -12104,7 +12105,7 @@ async function formatCliError(err, json) {
|
|
|
12104
12105
|
|
|
12105
12106
|
// src/version.ts
|
|
12106
12107
|
init_esm_shims();
|
|
12107
|
-
var CLI_VERSION = "1.1.
|
|
12108
|
+
var CLI_VERSION = "1.1.8";
|
|
12108
12109
|
|
|
12109
12110
|
// src/index.ts
|
|
12110
12111
|
program.name("wardrobe").description("Wardrobe configurator CLI").version(CLI_VERSION);
|
package/package.json
CHANGED
package/skill/SKILL.md
CHANGED
|
@@ -99,7 +99,10 @@ a data one. `wardrobe whoami --json` reports the truth under `agent.scopes` and
|
|
|
99
99
|
to. A project belonging to someone else answers `403 Forbidden`, not `404`.
|
|
100
100
|
- A key approved by an **admin or support** user *and* carrying **`staff:read`** sees
|
|
101
101
|
**every** project, customer and order in the system. That scope is granted only to
|
|
102
|
-
staff, only for GETs, and is listed by name on the consent screen.
|
|
102
|
+
staff, only for GETs, and is listed by name on the consent screen. The same approver
|
|
103
|
+
also receives **`staff:write`**, which lets `designs create` / `designs update` land in
|
|
104
|
+
a project the admin does not own. A key logged in before 2026-09-05 lacks it — a `403
|
|
105
|
+
Forbidden` on a write to someone else's project means `wardrobe login` again.
|
|
103
106
|
|
|
104
107
|
Never tell a user something does not exist when you only know your key cannot see it.
|
|
105
108
|
Say which it is: `403 Forbidden` means the row is someone else's, `404` means it is gone.
|
|
@@ -138,7 +141,7 @@ Prefer generating the skeleton with `wardrobe init` rather than hand-writing it
|
|
|
138
141
|
|
|
139
142
|
- **The CLI can read orders but never place one.** Its key carries `profile:read`,
|
|
140
143
|
`projects:read`, `customers:read`, `designs:read`, `designs:write`, `orders:read`,
|
|
141
|
-
`price:read` (+ `staff:read` for staff) — **every write beyond designs is absent**,
|
|
144
|
+
`price:read` (+ `staff:read` and `staff:write` for staff) — **every write beyond designs is absent**,
|
|
142
145
|
and so is every admin scope. `wardrobe orders list` and `orders pdf` work; creating
|
|
143
146
|
or changing an order, a customer or a quotation answers `403 insufficient_scope`.
|
|
144
147
|
Don't attempt it, and don't attempt admin/catalog operations.
|