@fenglimg/fabric-shared 2.0.0-rc.10 → 2.0.0-rc.11
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/{chunk-G4IKTNY4.js → chunk-NNDFOOBO.js} +17 -0
- package/dist/{chunk-YGEE3WMC.js → chunk-W4TKEXRG.js} +17 -0
- package/dist/i18n/index.d.ts +1 -1
- package/dist/i18n/index.js +1 -1
- package/dist/index.d.ts +200 -102
- package/dist/index.js +73 -4
- package/dist/schemas/api-contracts.d.ts +116 -104
- package/dist/schemas/api-contracts.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
enMessages,
|
|
7
7
|
normalizeLocale,
|
|
8
8
|
zhCNMessages
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-W4TKEXRG.js";
|
|
10
10
|
import {
|
|
11
11
|
FabExtractKnowledgeInputSchema,
|
|
12
12
|
FabExtractKnowledgeInputShape,
|
|
@@ -45,7 +45,7 @@ import {
|
|
|
45
45
|
planContextInputSchema,
|
|
46
46
|
planContextOutputSchema,
|
|
47
47
|
structuredWarningSchema
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-NNDFOOBO.js";
|
|
49
49
|
import "./chunk-LXNCAKJZ.js";
|
|
50
50
|
|
|
51
51
|
// src/schemas/agents-meta.ts
|
|
@@ -373,7 +373,65 @@ var fabricConfigSchema = z5.object({
|
|
|
373
373
|
// the user doesn't run doctor. Default 7 keeps the reminder weekly at
|
|
374
374
|
// worst — pairing 14d trigger + 7d cooldown means at most ~2 reminders
|
|
375
375
|
// per month for a workspace that ignores them.
|
|
376
|
-
maintenance_hint_cooldown_days: z5.number().int().positive().optional().default(7)
|
|
376
|
+
maintenance_hint_cooldown_days: z5.number().int().positive().optional().default(7),
|
|
377
|
+
// rc.9+ (skill-contract-fix B1): first-run import window in months. The
|
|
378
|
+
// `fabric-import` skill scans this many months of git history on the very
|
|
379
|
+
// first invocation (when no prior `import_run_completed` event exists).
|
|
380
|
+
// Default 60 (~5 years) captures the bulk of a mature repo's signal in
|
|
381
|
+
// one pass; small / fresh repos can lower to 12-24 with no loss.
|
|
382
|
+
import_window_first_run_months: z5.number().int().min(1).optional().default(60),
|
|
383
|
+
// rc.9+ (skill-contract-fix B1): rerun import window in months. After
|
|
384
|
+
// the first successful import, subsequent runs only scan this many
|
|
385
|
+
// recent months — assumed everything older has already been crystallized
|
|
386
|
+
// into pending or canonical knowledge. Default 2 keeps incremental cost
|
|
387
|
+
// low; raise to 6 if the workspace pauses fabric-import for long stretches.
|
|
388
|
+
import_window_rerun_months: z5.number().int().min(1).optional().default(2),
|
|
389
|
+
// rc.9+ (skill-contract-fix B1): hard cap on pending entries produced
|
|
390
|
+
// per fabric-import invocation. Prevents one run from dumping hundreds
|
|
391
|
+
// of proposals when a backfill window is wide open. Default 10 matches
|
|
392
|
+
// the rule-of-thumb "human can triage ~10 pending entries in one
|
|
393
|
+
// review pass." Range 1-50.
|
|
394
|
+
import_max_pending_per_run: z5.number().int().min(1).max(50).optional().default(10),
|
|
395
|
+
// rc.9+ (skill-contract-fix B1): hard cap on commits scanned per
|
|
396
|
+
// fabric-import invocation. Bounds runtime on monorepos with high
|
|
397
|
+
// commit velocity. Default 500 covers ~2 months of typical churn;
|
|
398
|
+
// range 50-2000. Hitting the cap mid-window is logged but non-fatal.
|
|
399
|
+
import_max_commits_scan: z5.number().int().min(50).max(2e3).optional().default(500),
|
|
400
|
+
// rc.9+ (skill-contract-fix B1): canonical-node count above which
|
|
401
|
+
// fabric-import's pre-flight should warn / suggest review instead of
|
|
402
|
+
// proceeding. A workspace with 50+ canonical entries usually benefits
|
|
403
|
+
// more from `fabric-review` to consolidate than from importing more.
|
|
404
|
+
// Default 50; raise to 100+ for large polyglot repos.
|
|
405
|
+
import_skip_canonical_threshold: z5.number().int().positive().optional().default(50),
|
|
406
|
+
// rc.9+ (skill-contract-fix B1): max candidate entries surfaced per
|
|
407
|
+
// fabric-archive batch (one invocation of the skill). Pagination knob
|
|
408
|
+
// for the archive UI flow. Default 8 keeps each batch reviewable in
|
|
409
|
+
// one sitting; raise for large repos with high archive throughput.
|
|
410
|
+
archive_max_candidates_per_batch: z5.number().int().positive().optional().default(8),
|
|
411
|
+
// rc.9+ (skill-contract-fix B1): max recently-touched paths included
|
|
412
|
+
// in fabric-archive's "relevant context" lookup. Limits the size of
|
|
413
|
+
// the path-relevance digest the skill emits when ranking candidates.
|
|
414
|
+
// Default 20; large repos with deep directory fan-out can raise to
|
|
415
|
+
// 50+ if archive candidates feel under-contextualized.
|
|
416
|
+
archive_max_recent_paths: z5.number().int().positive().optional().default(20),
|
|
417
|
+
// rc.9+ (skill-contract-fix B1): max prior fabric-archive sessions
|
|
418
|
+
// summarised in the digest the skill loads on start. Prevents the
|
|
419
|
+
// digest from ballooning past the model context budget on workspaces
|
|
420
|
+
// that have archived repeatedly. Default 10; lower if context pressure
|
|
421
|
+
// bites, raise if you want longer-range archive trend visibility.
|
|
422
|
+
archive_digest_max_sessions: z5.number().int().positive().optional().default(10),
|
|
423
|
+
// rc.9+ (skill-contract-fix B1): max review results returned per
|
|
424
|
+
// topic when `fabric-review` clusters pending entries. Pagination
|
|
425
|
+
// knob analogous to archive_max_candidates_per_batch but scoped to
|
|
426
|
+
// each topic cluster. Default 8; raise to 15-20 for large repos
|
|
427
|
+
// where each topic legitimately groups many pending entries.
|
|
428
|
+
review_topic_result_cap: z5.number().int().positive().optional().default(8),
|
|
429
|
+
// rc.9+ (skill-contract-fix B1): age threshold (in days) above which
|
|
430
|
+
// a pending entry is considered "stale" by fabric-review and surfaced
|
|
431
|
+
// for explicit resolve-or-drop decision. Default 14; tighter than the
|
|
432
|
+
// 7d Signal-B trigger because review specifically targets the long
|
|
433
|
+
// tail. Large repos with slower cadence can raise to 30.
|
|
434
|
+
review_stale_pending_days: z5.number().int().positive().optional().default(14)
|
|
377
435
|
});
|
|
378
436
|
|
|
379
437
|
// src/schemas/forensic-report.ts
|
|
@@ -791,6 +849,13 @@ var knowledgePathDangledEventSchema = z9.object({
|
|
|
791
849
|
stable_id: z9.string(),
|
|
792
850
|
removed_glob: z9.string()
|
|
793
851
|
});
|
|
852
|
+
var relevanceMigrationRunEventSchema = z9.object({
|
|
853
|
+
...eventLedgerEnvelopeSchema,
|
|
854
|
+
event_type: z9.literal("relevance_migration_run"),
|
|
855
|
+
timestamp: z9.string().datetime(),
|
|
856
|
+
scanned_count: z9.number().int().nonnegative(),
|
|
857
|
+
touched_count: z9.number().int().nonnegative()
|
|
858
|
+
});
|
|
794
859
|
var pendingAutoArchivedEventSchema = z9.object({
|
|
795
860
|
...eventLedgerEnvelopeSchema,
|
|
796
861
|
event_type: z9.literal("pending_auto_archived"),
|
|
@@ -837,7 +902,10 @@ var eventLedgerEventSchema = z9.discriminatedUnion("event_type", [
|
|
|
837
902
|
// #24 when a glob in relevance_paths resolves to zero filesystem matches.
|
|
838
903
|
knowledgePathDangledEventSchema,
|
|
839
904
|
// v2.0.0-rc.7 T10: doctor_run — emitted by `fabric doctor` to drive Signal D.
|
|
840
|
-
doctorRunEventSchema
|
|
905
|
+
doctorRunEventSchema,
|
|
906
|
+
// v2.0.0-rc.9 TASK-003 (A3): relevance_migration_run — emitted by
|
|
907
|
+
// `doctor --apply-lint` after the lint #26 frontmatter back-fill pass.
|
|
908
|
+
relevanceMigrationRunEventSchema
|
|
841
909
|
]);
|
|
842
910
|
export {
|
|
843
911
|
AGENTS_META_IDENTITY_SOURCES,
|
|
@@ -969,6 +1037,7 @@ export {
|
|
|
969
1037
|
planContextInputSchema,
|
|
970
1038
|
planContextOutputSchema,
|
|
971
1039
|
reapplyCompletedEventSchema,
|
|
1040
|
+
relevanceMigrationRunEventSchema,
|
|
972
1041
|
ruleDescriptionIndexItemSchema,
|
|
973
1042
|
ruleDescriptionSchema,
|
|
974
1043
|
structuredWarningSchema,
|