@lahat-group/cli 1.1.5 → 1.1.6

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.
Files changed (2) hide show
  1. package/dist/index.js +64 -11
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -3128,10 +3128,12 @@ var HELP_KEYS = {
3128
3128
  },
3129
3129
  orderStatus: {
3130
3130
  created: "orderStatus.created",
3131
- pending_contact: "orderStatus.pending_contact",
3131
+ pending_payment: "orderStatus.pending_payment",
3132
3132
  paid: "orderStatus.paid",
3133
+ pending_measurement: "orderStatus.pending_measurement",
3133
3134
  sent_to_manufacturing: "orderStatus.sent_to_manufacturing",
3134
3135
  in_manufacturing: "orderStatus.in_manufacturing",
3136
+ pending_assembly: "orderStatus.pending_assembly",
3135
3137
  provided: "orderStatus.provided"
3136
3138
  }
3137
3139
  };
@@ -3156,10 +3158,12 @@ var ALL_HELP_KEYS = [
3156
3158
  HELP_KEYS.inspector.layout,
3157
3159
  HELP_KEYS.inspector.column,
3158
3160
  HELP_KEYS.orderStatus.created,
3159
- HELP_KEYS.orderStatus.pending_contact,
3161
+ HELP_KEYS.orderStatus.pending_payment,
3160
3162
  HELP_KEYS.orderStatus.paid,
3163
+ HELP_KEYS.orderStatus.pending_measurement,
3161
3164
  HELP_KEYS.orderStatus.sent_to_manufacturing,
3162
3165
  HELP_KEYS.orderStatus.in_manufacturing,
3166
+ HELP_KEYS.orderStatus.pending_assembly,
3163
3167
  HELP_KEYS.orderStatus.provided
3164
3168
  ];
3165
3169
 
@@ -9442,7 +9446,8 @@ var AGENT_SCOPES = {
9442
9446
  "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
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" },
9444
9448
  "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" }
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" }
9446
9451
  };
9447
9452
  var ALL_AGENT_SCOPES = Object.keys(AGENT_SCOPES);
9448
9453
 
@@ -9453,10 +9458,12 @@ init_esm_shims();
9453
9458
  init_esm_shims();
9454
9459
  var ORDER_STATUSES = [
9455
9460
  "created",
9456
- "pending_contact",
9461
+ "pending_payment",
9457
9462
  "paid",
9463
+ "pending_measurement",
9458
9464
  "sent_to_manufacturing",
9459
9465
  "in_manufacturing",
9466
+ "pending_assembly",
9460
9467
  "provided",
9461
9468
  "cancelled"
9462
9469
  ];
@@ -9465,25 +9472,66 @@ var LOGISTICS_STATUSES = ["pending_coordination", "coordinated", "done"];
9465
9472
  var OFFICE = ["admin", "support"];
9466
9473
  var TRANSITIONS = [
9467
9474
  // Main pipeline
9468
- { track: "main", from: "created", to: "pending_contact", roles: ["admin", "support", "designer", "client"], viaVerification: true },
9469
- { track: "main", from: "pending_contact", to: "paid", roles: OFFICE },
9475
+ { track: "main", from: "created", to: "pending_payment", roles: ["admin", "support", "designer", "client"], viaVerification: true },
9476
+ { track: "main", from: "pending_payment", to: "paid", roles: OFFICE },
9477
+ // Exactly one of the next two is unblocked, decided by whether the customer
9478
+ // bought the measurement service. `pending_measurement` is never entered — and
9479
+ // so never appears in statusHistory — when they didn't.
9480
+ {
9481
+ track: "main",
9482
+ from: "paid",
9483
+ to: "pending_measurement",
9484
+ roles: OFFICE,
9485
+ guard: (o) => o.services.measurement ? null : "measurementNotPurchased"
9486
+ },
9470
9487
  {
9471
9488
  track: "main",
9472
9489
  from: "paid",
9473
9490
  to: "sent_to_manufacturing",
9474
9491
  roles: OFFICE,
9475
- guard: (o) => !o.services.measurement || o.measurement?.status === "measured" ? null : "measurementNotDone"
9492
+ guard: (o) => o.services.measurement ? "measurementRequired" : null
9493
+ },
9494
+ {
9495
+ track: "main",
9496
+ from: "pending_measurement",
9497
+ to: "sent_to_manufacturing",
9498
+ roles: OFFICE,
9499
+ guard: (o) => o.measurement?.status === "measured" ? null : "measurementNotDone"
9476
9500
  },
9477
9501
  { track: "main", from: "sent_to_manufacturing", to: "in_manufacturing", roles: OFFICE, requires: "estimatedDeliveryDate" },
9502
+ // Same either/or shape as measurement, for transport & installation.
9503
+ {
9504
+ track: "main",
9505
+ from: "in_manufacturing",
9506
+ to: "pending_assembly",
9507
+ roles: OFFICE,
9508
+ guard: (o) => o.services.logistics ? null : "logisticsNotPurchased"
9509
+ },
9478
9510
  {
9479
9511
  track: "main",
9480
9512
  from: "in_manufacturing",
9481
9513
  to: "provided",
9482
9514
  roles: OFFICE,
9483
- guard: (o) => !o.services.logistics || o.logistics?.status === "done" ? null : "logisticsNotDone"
9515
+ guard: (o) => o.services.logistics ? "logisticsRequired" : null
9516
+ },
9517
+ {
9518
+ track: "main",
9519
+ from: "pending_assembly",
9520
+ to: "provided",
9521
+ roles: OFFICE,
9522
+ guard: (o) => o.logistics?.status === "done" ? null : "logisticsNotDone"
9484
9523
  },
9485
9524
  // Cancel — reachable from any non-terminal main status, office only
9486
- ...["created", "pending_contact", "paid", "sent_to_manufacturing", "in_manufacturing", "provided"].map(
9525
+ ...[
9526
+ "created",
9527
+ "pending_payment",
9528
+ "paid",
9529
+ "pending_measurement",
9530
+ "sent_to_manufacturing",
9531
+ "in_manufacturing",
9532
+ "pending_assembly",
9533
+ "provided"
9534
+ ].map(
9487
9535
  (from) => ({ track: "main", from, to: "cancelled", roles: OFFICE })
9488
9536
  ),
9489
9537
  // Measurement sub-track
@@ -9494,14 +9542,19 @@ var TRANSITIONS = [
9494
9542
  { track: "logistics", from: "coordinated", to: "done", roles: OFFICE }
9495
9543
  ];
9496
9544
 
9545
+ // ../../packages/shared/src/quotations.ts
9546
+ init_esm_shims();
9547
+
9497
9548
  // ../../packages/shared/src/orderEmailEvents.ts
9498
9549
  init_esm_shims();
9499
9550
  var MAIN_LABELS = {
9500
9551
  created: "\u05D4\u05D6\u05DE\u05E0\u05D4 \u05E0\u05D5\u05E6\u05E8\u05D4",
9501
- pending_contact: "\u05DE\u05DE\u05EA\u05D9\u05DF \u05DC\u05D9\u05E6\u05D9\u05E8\u05EA \u05E7\u05E9\u05E8",
9552
+ pending_payment: "\u05DE\u05DE\u05EA\u05D9\u05DF \u05DC\u05EA\u05E9\u05DC\u05D5\u05DD",
9502
9553
  paid: "\u05E9\u05D5\u05DC\u05DD",
9554
+ pending_measurement: "\u05DE\u05DE\u05EA\u05D9\u05DF \u05DC\u05DE\u05D3\u05D9\u05D3\u05D4",
9503
9555
  sent_to_manufacturing: "\u05E0\u05E9\u05DC\u05D7 \u05DC\u05D9\u05D9\u05E6\u05D5\u05E8",
9504
9556
  in_manufacturing: "\u05D1\u05D9\u05D9\u05E6\u05D5\u05E8",
9557
+ pending_assembly: "\u05DE\u05DE\u05EA\u05D9\u05DF \u05DC\u05D4\u05E8\u05DB\u05D1\u05D4",
9505
9558
  provided: "\u05E1\u05D5\u05E4\u05E7",
9506
9559
  cancelled: "\u05D1\u05D5\u05D8\u05DC"
9507
9560
  };
@@ -11913,7 +11966,7 @@ async function formatCliError(err, json) {
11913
11966
 
11914
11967
  // src/version.ts
11915
11968
  init_esm_shims();
11916
- var CLI_VERSION = "1.1.5";
11969
+ var CLI_VERSION = "1.1.6";
11917
11970
 
11918
11971
  // src/index.ts
11919
11972
  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.5",
3
+ "version": "1.1.6",
4
4
  "description": "CLI + Claude Skill to build, validate, price, and save wardrobe designs.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",