@fenglimg/fabric-server 2.3.0-rc.15 → 2.3.0-rc.16

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 (3) hide show
  1. package/dist/index.d.ts +31 -11
  2. package/dist/index.js +2553 -1978
  3. package/package.json +2 -2
package/dist/index.d.ts CHANGED
@@ -160,7 +160,11 @@ interface AlwaysActiveBody {
160
160
  /** description.summary — the overflow-degrade fallback when the body cannot
161
161
  * fit the injection char budget (the budget is enforced hook-side, D10). */
162
162
  summary: string;
163
- /** frontmatter-stripped markdown body. */
163
+ /**
164
+ * ISS-20260713-014 / KT-DEC-0036: SessionStart wire is index-only.
165
+ * Body is empty on this path; full text via Read/fab_recall.
166
+ * Field retained for wire compatibility.
167
+ */
164
168
  body: string;
165
169
  }
166
170
  /**
@@ -666,6 +670,12 @@ declare function explainWhyNotSurfaced(projectRoot: string, query: string): Prom
666
670
  */
667
671
  declare function extractKnowledge(projectRoot: string, input: FabExtractKnowledgeInput): Promise<FabExtractKnowledgeOutput>;
668
672
 
673
+ /**
674
+ * fab_review / fab_pending facade (ISS-20260713-013).
675
+ * Action implementations live in review-write-actions / review-search;
676
+ * path/sandbox/list helpers in review-shared; frontmatter in review-frontmatter.
677
+ */
678
+
669
679
  /**
670
680
  * v2.0 rc.3 fab_review service (W3-K K2: WRITE-only).
671
681
  *
@@ -912,6 +922,26 @@ declare function readEventLedger(projectRoot: string, options?: ReadEventLedgerO
912
922
  */
913
923
  declare function flushAndSyncEventLedger(projectRoot: string): void;
914
924
 
925
+ /**
926
+ * ISS-20260713-011: selection_token mint / LRU cache for plan-context.
927
+ */
928
+ type SelectionTokenState = {
929
+ token: string;
930
+ revision_hash: string;
931
+ target_paths: string[];
932
+ required_stable_ids: string[];
933
+ ai_selectable_stable_ids: string[];
934
+ created_at: number;
935
+ expires_at: number;
936
+ };
937
+ declare function readSelectionToken(token: string, now?: number): SelectionTokenState | undefined;
938
+
939
+ /**
940
+ * planContext facade (ISS-20260713-011).
941
+ * Scoring / BM25 cache / selection-token live in dedicated modules;
942
+ * this file orchestrates the plan-context pipeline and re-exports the public API.
943
+ */
944
+
915
945
  type PlanContextInput = {
916
946
  paths: string[];
917
947
  intent?: string;
@@ -978,17 +1008,7 @@ type PlanContextResult = {
978
1008
  /** Internal service→tool signal; stripped before MCP output. */
979
1009
  payload_over_budget?: boolean;
980
1010
  };
981
- type SelectionTokenState = {
982
- token: string;
983
- revision_hash: string;
984
- target_paths: string[];
985
- required_stable_ids: string[];
986
- ai_selectable_stable_ids: string[];
987
- created_at: number;
988
- expires_at: number;
989
- };
990
1011
  declare function planContext(projectRoot: string, input: PlanContextInput): Promise<PlanContextResult>;
991
- declare function readSelectionToken(token: string, now?: number): SelectionTokenState | undefined;
992
1012
 
993
1013
  type RecallInput = PlanContextInput & {
994
1014
  /**