@fenglimg/fabric-shared 2.3.0-rc.8 → 2.3.0-rc.9
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.
|
@@ -681,7 +681,19 @@ var _fabReviewModifyChangesSchema = z3.object({
|
|
|
681
681
|
// edges via fab_recall and sends the merged set. Absent this field the modify
|
|
682
682
|
// path silently dropped `related` via zod .strip() (KT-PIT-0005 recurrence),
|
|
683
683
|
// leaving the only programmatic related-write path non-functional.
|
|
684
|
-
related: z3.array(z3.string()).optional()
|
|
684
|
+
related: z3.array(z3.string()).optional(),
|
|
685
|
+
// rc.9 (2026-07-06): discovery-signal scalar patches — must_read_if triggers
|
|
686
|
+
// Reference-type entry surfacing; intent_clues drives the AI's "should I Read
|
|
687
|
+
// the body?" judgment; impact enumerates consequence prose surfaced in the
|
|
688
|
+
// BM25F body slot. Before rc.9 these three fields were undeclared here, so
|
|
689
|
+
// fab_review modify silently .strip()'d them (KT-PIT-0005 recurrence) and the
|
|
690
|
+
// only path to fix a bad-shape must_read_if / missing intent_clues was direct
|
|
691
|
+
// Edit — bypassing the skill audit trail. All three are REPLACE semantics
|
|
692
|
+
// (mirror tags/related). must_read_if is a scalar string; intent_clues +
|
|
693
|
+
// impact are flow-arrays.
|
|
694
|
+
must_read_if: z3.string().optional(),
|
|
695
|
+
intent_clues: z3.array(z3.string()).optional(),
|
|
696
|
+
impact: z3.array(z3.string()).optional()
|
|
685
697
|
});
|
|
686
698
|
var FabReviewInputSchema = z3.discriminatedUnion("action", [
|
|
687
699
|
z3.object({
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import "./chunk-LXNCAKJZ.js";
|
|
1
2
|
import {
|
|
2
3
|
BOOTSTRAP_CANONICAL_BY_LOCALE,
|
|
3
4
|
BOOTSTRAP_CANONICAL_EN,
|
|
@@ -8,7 +9,6 @@ import {
|
|
|
8
9
|
matchBootstrapCanonicalLocale,
|
|
9
10
|
resolveBootstrapCanonical
|
|
10
11
|
} from "./chunk-KFFBQRL5.js";
|
|
11
|
-
import "./chunk-LXNCAKJZ.js";
|
|
12
12
|
import {
|
|
13
13
|
PROTECTED_TOKENS,
|
|
14
14
|
createTranslator,
|
|
@@ -116,7 +116,7 @@ import {
|
|
|
116
116
|
scopeCoordinateSchema,
|
|
117
117
|
scopeRoot,
|
|
118
118
|
structuredWarningSchema
|
|
119
|
-
} from "./chunk-
|
|
119
|
+
} from "./chunk-TV264D7E.js";
|
|
120
120
|
|
|
121
121
|
// src/schemas/agents-meta.ts
|
|
122
122
|
import { z } from "zod";
|
|
@@ -1244,12 +1244,18 @@ declare const FabReviewInputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObje
|
|
|
1244
1244
|
relevance_paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1245
1245
|
semantic_scope: z.ZodOptional<z.ZodString>;
|
|
1246
1246
|
related: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1247
|
+
must_read_if: z.ZodOptional<z.ZodString>;
|
|
1248
|
+
intent_clues: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1249
|
+
impact: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1247
1250
|
}, "strip", z.ZodTypeAny, {
|
|
1248
1251
|
semantic_scope?: string | undefined;
|
|
1249
1252
|
relevance_scope?: "narrow" | "broad" | undefined;
|
|
1250
1253
|
relevance_paths?: string[] | undefined;
|
|
1251
1254
|
layer?: "personal" | "team" | undefined;
|
|
1252
1255
|
summary?: string | undefined;
|
|
1256
|
+
intent_clues?: string[] | undefined;
|
|
1257
|
+
impact?: string[] | undefined;
|
|
1258
|
+
must_read_if?: string | undefined;
|
|
1253
1259
|
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
1254
1260
|
tags?: string[] | undefined;
|
|
1255
1261
|
related?: string[] | undefined;
|
|
@@ -1260,6 +1266,9 @@ declare const FabReviewInputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObje
|
|
|
1260
1266
|
relevance_paths?: string[] | undefined;
|
|
1261
1267
|
layer?: "personal" | "team" | undefined;
|
|
1262
1268
|
summary?: string | undefined;
|
|
1269
|
+
intent_clues?: string[] | undefined;
|
|
1270
|
+
impact?: string[] | undefined;
|
|
1271
|
+
must_read_if?: string | undefined;
|
|
1263
1272
|
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
1264
1273
|
tags?: string[] | undefined;
|
|
1265
1274
|
related?: string[] | undefined;
|
|
@@ -1274,6 +1283,9 @@ declare const FabReviewInputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObje
|
|
|
1274
1283
|
relevance_paths?: string[] | undefined;
|
|
1275
1284
|
layer?: "personal" | "team" | undefined;
|
|
1276
1285
|
summary?: string | undefined;
|
|
1286
|
+
intent_clues?: string[] | undefined;
|
|
1287
|
+
impact?: string[] | undefined;
|
|
1288
|
+
must_read_if?: string | undefined;
|
|
1277
1289
|
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
1278
1290
|
tags?: string[] | undefined;
|
|
1279
1291
|
related?: string[] | undefined;
|
|
@@ -1288,6 +1300,9 @@ declare const FabReviewInputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObje
|
|
|
1288
1300
|
relevance_paths?: string[] | undefined;
|
|
1289
1301
|
layer?: "personal" | "team" | undefined;
|
|
1290
1302
|
summary?: string | undefined;
|
|
1303
|
+
intent_clues?: string[] | undefined;
|
|
1304
|
+
impact?: string[] | undefined;
|
|
1305
|
+
must_read_if?: string | undefined;
|
|
1291
1306
|
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
1292
1307
|
tags?: string[] | undefined;
|
|
1293
1308
|
related?: string[] | undefined;
|
|
@@ -1306,12 +1321,18 @@ declare const FabReviewInputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObje
|
|
|
1306
1321
|
relevance_paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1307
1322
|
semantic_scope: z.ZodOptional<z.ZodString>;
|
|
1308
1323
|
related: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1324
|
+
must_read_if: z.ZodOptional<z.ZodString>;
|
|
1325
|
+
intent_clues: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1326
|
+
impact: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1309
1327
|
}, "strip", z.ZodTypeAny, {
|
|
1310
1328
|
semantic_scope?: string | undefined;
|
|
1311
1329
|
relevance_scope?: "narrow" | "broad" | undefined;
|
|
1312
1330
|
relevance_paths?: string[] | undefined;
|
|
1313
1331
|
layer?: "personal" | "team" | undefined;
|
|
1314
1332
|
summary?: string | undefined;
|
|
1333
|
+
intent_clues?: string[] | undefined;
|
|
1334
|
+
impact?: string[] | undefined;
|
|
1335
|
+
must_read_if?: string | undefined;
|
|
1315
1336
|
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
1316
1337
|
tags?: string[] | undefined;
|
|
1317
1338
|
related?: string[] | undefined;
|
|
@@ -1322,6 +1343,9 @@ declare const FabReviewInputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObje
|
|
|
1322
1343
|
relevance_paths?: string[] | undefined;
|
|
1323
1344
|
layer?: "personal" | "team" | undefined;
|
|
1324
1345
|
summary?: string | undefined;
|
|
1346
|
+
intent_clues?: string[] | undefined;
|
|
1347
|
+
impact?: string[] | undefined;
|
|
1348
|
+
must_read_if?: string | undefined;
|
|
1325
1349
|
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
1326
1350
|
tags?: string[] | undefined;
|
|
1327
1351
|
related?: string[] | undefined;
|
|
@@ -1336,6 +1360,9 @@ declare const FabReviewInputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObje
|
|
|
1336
1360
|
relevance_paths?: string[] | undefined;
|
|
1337
1361
|
layer?: "personal" | "team" | undefined;
|
|
1338
1362
|
summary?: string | undefined;
|
|
1363
|
+
intent_clues?: string[] | undefined;
|
|
1364
|
+
impact?: string[] | undefined;
|
|
1365
|
+
must_read_if?: string | undefined;
|
|
1339
1366
|
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
1340
1367
|
tags?: string[] | undefined;
|
|
1341
1368
|
related?: string[] | undefined;
|
|
@@ -1350,6 +1377,9 @@ declare const FabReviewInputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObje
|
|
|
1350
1377
|
relevance_paths?: string[] | undefined;
|
|
1351
1378
|
layer?: "personal" | "team" | undefined;
|
|
1352
1379
|
summary?: string | undefined;
|
|
1380
|
+
intent_clues?: string[] | undefined;
|
|
1381
|
+
impact?: string[] | undefined;
|
|
1382
|
+
must_read_if?: string | undefined;
|
|
1353
1383
|
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
1354
1384
|
tags?: string[] | undefined;
|
|
1355
1385
|
related?: string[] | undefined;
|
|
@@ -1367,6 +1397,9 @@ declare const FabReviewInputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObje
|
|
|
1367
1397
|
relevance_paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1368
1398
|
semantic_scope: z.ZodOptional<z.ZodString>;
|
|
1369
1399
|
related: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1400
|
+
must_read_if: z.ZodOptional<z.ZodString>;
|
|
1401
|
+
intent_clues: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1402
|
+
impact: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1370
1403
|
} & {
|
|
1371
1404
|
layer: z.ZodEnum<["team", "personal"]>;
|
|
1372
1405
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1375,6 +1408,9 @@ declare const FabReviewInputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObje
|
|
|
1375
1408
|
relevance_scope?: "narrow" | "broad" | undefined;
|
|
1376
1409
|
relevance_paths?: string[] | undefined;
|
|
1377
1410
|
summary?: string | undefined;
|
|
1411
|
+
intent_clues?: string[] | undefined;
|
|
1412
|
+
impact?: string[] | undefined;
|
|
1413
|
+
must_read_if?: string | undefined;
|
|
1378
1414
|
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
1379
1415
|
tags?: string[] | undefined;
|
|
1380
1416
|
related?: string[] | undefined;
|
|
@@ -1385,6 +1421,9 @@ declare const FabReviewInputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObje
|
|
|
1385
1421
|
relevance_scope?: "narrow" | "broad" | undefined;
|
|
1386
1422
|
relevance_paths?: string[] | undefined;
|
|
1387
1423
|
summary?: string | undefined;
|
|
1424
|
+
intent_clues?: string[] | undefined;
|
|
1425
|
+
impact?: string[] | undefined;
|
|
1426
|
+
must_read_if?: string | undefined;
|
|
1388
1427
|
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
1389
1428
|
tags?: string[] | undefined;
|
|
1390
1429
|
related?: string[] | undefined;
|
|
@@ -1399,6 +1438,9 @@ declare const FabReviewInputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObje
|
|
|
1399
1438
|
relevance_scope?: "narrow" | "broad" | undefined;
|
|
1400
1439
|
relevance_paths?: string[] | undefined;
|
|
1401
1440
|
summary?: string | undefined;
|
|
1441
|
+
intent_clues?: string[] | undefined;
|
|
1442
|
+
impact?: string[] | undefined;
|
|
1443
|
+
must_read_if?: string | undefined;
|
|
1402
1444
|
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
1403
1445
|
tags?: string[] | undefined;
|
|
1404
1446
|
related?: string[] | undefined;
|
|
@@ -1413,6 +1455,9 @@ declare const FabReviewInputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObje
|
|
|
1413
1455
|
relevance_scope?: "narrow" | "broad" | undefined;
|
|
1414
1456
|
relevance_paths?: string[] | undefined;
|
|
1415
1457
|
summary?: string | undefined;
|
|
1458
|
+
intent_clues?: string[] | undefined;
|
|
1459
|
+
impact?: string[] | undefined;
|
|
1460
|
+
must_read_if?: string | undefined;
|
|
1416
1461
|
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
1417
1462
|
tags?: string[] | undefined;
|
|
1418
1463
|
related?: string[] | undefined;
|
|
@@ -1595,12 +1640,18 @@ declare const FabReviewInputShape: {
|
|
|
1595
1640
|
relevance_paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1596
1641
|
semantic_scope: z.ZodOptional<z.ZodString>;
|
|
1597
1642
|
related: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1643
|
+
must_read_if: z.ZodOptional<z.ZodString>;
|
|
1644
|
+
intent_clues: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1645
|
+
impact: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1598
1646
|
}, "strip", z.ZodTypeAny, {
|
|
1599
1647
|
semantic_scope?: string | undefined;
|
|
1600
1648
|
relevance_scope?: "narrow" | "broad" | undefined;
|
|
1601
1649
|
relevance_paths?: string[] | undefined;
|
|
1602
1650
|
layer?: "personal" | "team" | undefined;
|
|
1603
1651
|
summary?: string | undefined;
|
|
1652
|
+
intent_clues?: string[] | undefined;
|
|
1653
|
+
impact?: string[] | undefined;
|
|
1654
|
+
must_read_if?: string | undefined;
|
|
1604
1655
|
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
1605
1656
|
tags?: string[] | undefined;
|
|
1606
1657
|
related?: string[] | undefined;
|
|
@@ -1611,6 +1662,9 @@ declare const FabReviewInputShape: {
|
|
|
1611
1662
|
relevance_paths?: string[] | undefined;
|
|
1612
1663
|
layer?: "personal" | "team" | undefined;
|
|
1613
1664
|
summary?: string | undefined;
|
|
1665
|
+
intent_clues?: string[] | undefined;
|
|
1666
|
+
impact?: string[] | undefined;
|
|
1667
|
+
must_read_if?: string | undefined;
|
|
1614
1668
|
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
1615
1669
|
tags?: string[] | undefined;
|
|
1616
1670
|
related?: string[] | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fenglimg/fabric-shared",
|
|
3
|
-
"version": "2.3.0-rc.
|
|
3
|
+
"version": "2.3.0-rc.9",
|
|
4
4
|
"description": "Fabric shared types — Zod schemas, i18n, atomic-write helpers, MCP payload guard, error classes. Consumed by @fenglimg/fabric-server + @fenglimg/fabric-cli.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "wangzhichao <fenglimg90@gmail.com>",
|