@saasontools/strauss-kb 0.1.22 → 0.1.23

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.d.cts CHANGED
@@ -2919,6 +2919,38 @@ declare class KbAnchorSetDuplicateError extends BaseError {
2919
2919
  constructor(locator: string);
2920
2920
  }
2921
2921
 
2922
+ /**
2923
+ * What the run did about an anchor it set out to write. `applied` is set only
2924
+ * after the record is persisted, so a report never claims a baseline the store
2925
+ * does not hold.
2926
+ */
2927
+ type AnchorUpdateOutcome = "applied" | "skipped" | "failed";
2928
+ /** Why an intended write did not happen. */
2929
+ type AnchorUpdateReason = "frozen" | "write-failed" | "pinned-ref";
2930
+ type AnchorResolveResult = {
2931
+ file: string;
2932
+ symbol?: string;
2933
+ /** Set only for `side: "old"`: resolved at `ref`, never in the working tree. */
2934
+ side?: "old";
2935
+ /** `unstamped`: no hash yet, and nothing wrote one. */
2936
+ state: "stamped" | "unstamped" | "match" | "drifted" | "unresolved";
2937
+ storedHash?: string;
2938
+ currentHash?: string;
2939
+ /** What the compared hashes were taken over. */
2940
+ hashKind?: AnchorHashKind;
2941
+ /** `null` when the anchor recorded no `lines` — size unknown, not zero. */
2942
+ diffSize?: number | null;
2943
+ reason?: AnchorUnresolvedReason | AnchorDriftReason;
2944
+ resolver?: AnchorResolverName;
2945
+ /** Set only where a baseline write was due: the comparison is `state`. */
2946
+ outcome?: AnchorUpdateOutcome;
2947
+ outcomeReason?: AnchorUpdateReason;
2948
+ rebaselined?: boolean;
2949
+ /** Set only when the anchor was resolved against another repository. */
2950
+ repo?: string;
2951
+ remoteState?: RemoteAnchorState;
2952
+ };
2953
+
2922
2954
  /**
2923
2955
  * The record's anchors, as the caller means them to end up.
2924
2956
  *
@@ -2962,10 +2994,13 @@ type KbAnchorSetResult = {
2962
2994
  /** Unchanged anchors are not listed; a no-op write reports nothing. */
2963
2995
  changes: KbAnchorChange[];
2964
2996
  anchors: KbAnchor[];
2965
- /** `stamped` when `resolve` ran; `unchanged` otherwise. */
2966
- baseline: "unchanged" | "stamped";
2997
+ /**
2998
+ * `unchanged` without `resolve`; with it, `stamped` only when every anchor
2999
+ * matched or its write was `applied`, else `incomplete`.
3000
+ */
3001
+ baseline: "unchanged" | "stamped" | "incomplete";
2967
3002
  /** anchor-resolve's per-anchor results, when `resolve` ran. */
2968
- resolved?: unknown[];
3003
+ resolved?: AnchorResolveResult[];
2969
3004
  note: string;
2970
3005
  };
2971
3006
 
package/dist/index.d.ts CHANGED
@@ -2919,6 +2919,38 @@ declare class KbAnchorSetDuplicateError extends BaseError {
2919
2919
  constructor(locator: string);
2920
2920
  }
2921
2921
 
2922
+ /**
2923
+ * What the run did about an anchor it set out to write. `applied` is set only
2924
+ * after the record is persisted, so a report never claims a baseline the store
2925
+ * does not hold.
2926
+ */
2927
+ type AnchorUpdateOutcome = "applied" | "skipped" | "failed";
2928
+ /** Why an intended write did not happen. */
2929
+ type AnchorUpdateReason = "frozen" | "write-failed" | "pinned-ref";
2930
+ type AnchorResolveResult = {
2931
+ file: string;
2932
+ symbol?: string;
2933
+ /** Set only for `side: "old"`: resolved at `ref`, never in the working tree. */
2934
+ side?: "old";
2935
+ /** `unstamped`: no hash yet, and nothing wrote one. */
2936
+ state: "stamped" | "unstamped" | "match" | "drifted" | "unresolved";
2937
+ storedHash?: string;
2938
+ currentHash?: string;
2939
+ /** What the compared hashes were taken over. */
2940
+ hashKind?: AnchorHashKind;
2941
+ /** `null` when the anchor recorded no `lines` — size unknown, not zero. */
2942
+ diffSize?: number | null;
2943
+ reason?: AnchorUnresolvedReason | AnchorDriftReason;
2944
+ resolver?: AnchorResolverName;
2945
+ /** Set only where a baseline write was due: the comparison is `state`. */
2946
+ outcome?: AnchorUpdateOutcome;
2947
+ outcomeReason?: AnchorUpdateReason;
2948
+ rebaselined?: boolean;
2949
+ /** Set only when the anchor was resolved against another repository. */
2950
+ repo?: string;
2951
+ remoteState?: RemoteAnchorState;
2952
+ };
2953
+
2922
2954
  /**
2923
2955
  * The record's anchors, as the caller means them to end up.
2924
2956
  *
@@ -2962,10 +2994,13 @@ type KbAnchorSetResult = {
2962
2994
  /** Unchanged anchors are not listed; a no-op write reports nothing. */
2963
2995
  changes: KbAnchorChange[];
2964
2996
  anchors: KbAnchor[];
2965
- /** `stamped` when `resolve` ran; `unchanged` otherwise. */
2966
- baseline: "unchanged" | "stamped";
2997
+ /**
2998
+ * `unchanged` without `resolve`; with it, `stamped` only when every anchor
2999
+ * matched or its write was `applied`, else `incomplete`.
3000
+ */
3001
+ baseline: "unchanged" | "stamped" | "incomplete";
2967
3002
  /** anchor-resolve's per-anchor results, when `resolve` ran. */
2968
- resolved?: unknown[];
3003
+ resolved?: AnchorResolveResult[];
2969
3004
  note: string;
2970
3005
  };
2971
3006
 
package/dist/index.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  runKbCli
3
- } from "./chunk-DVSPHL4B.js";
3
+ } from "./chunk-5IPQVXCM.js";
4
4
  import {
5
5
  createKbMcpServer,
6
6
  runKbMcpServer
7
- } from "./chunk-TSE4YQEG.js";
7
+ } from "./chunk-3EZ3PAPA.js";
8
8
  import {
9
9
  BaseError,
10
10
  CONTEXT_BEGIN,
@@ -156,7 +156,7 @@ import {
156
156
  unifiedDiff,
157
157
  unpinBase,
158
158
  validateBundle
159
- } from "./chunk-AEO5U42S.js";
159
+ } from "./chunk-XENLCPL5.js";
160
160
  export {
161
161
  BaseError,
162
162
  CONTEXT_BEGIN,