@hasna/skills 0.10.1 → 0.10.3

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.
@@ -29,6 +29,7 @@ export interface NativeMigrationTarget {
29
29
  projectRoot: string;
30
30
  path: string;
31
31
  treeSha256: string;
32
+ vendor?: true;
32
33
  }
33
34
  export interface NativeMigrationTargetManifest {
34
35
  schema: "hasna.skills-native-migration-targets.v1";
@@ -84,6 +85,7 @@ export declare function inventoryNativeSkills(home?: string, options?: {
84
85
  configured?: boolean;
85
86
  discoveryInputs?: ReviewedDiscoveryInputs;
86
87
  allowRootAliases?: boolean;
88
+ reviewedCacheAlias?: string;
87
89
  }): NativeSkillEntry[];
88
90
  /** Planning is read-only; credentials and unrelated settings never appear in CLI output. */
89
91
  export declare function planAgentIntegration(options: {
@@ -60,6 +60,18 @@ export declare function readSkillSession(sessionId: string, options?: SelectionC
60
60
  export declare function readSkillSessionSnapshotIfExists(sessionId: string, options?: SelectionCacheOptions): SkillSessionSnapshot | null;
61
61
  export declare function readSkillSessionSnapshot(sessionId: string, options?: SelectionCacheOptions): SkillSessionSnapshot;
62
62
  export declare function skillSessionSnapshotBinding(snapshot: SkillSessionSnapshot): SkillSessionParentBinding;
63
+ export declare function inspectSessionWriteLock(sessionId: string, options?: SelectionCacheOptions): {
64
+ sessionId: string;
65
+ schemaVersion: 2 | 1;
66
+ pid: number;
67
+ lockSha256: string;
68
+ lockMtime: string;
69
+ receiptSha256: string | null;
70
+ receiptGeneration: number | null;
71
+ reviewDigest: string;
72
+ hostBound: boolean;
73
+ };
74
+ export declare function recoverSessionWriteLock(sessionId: string, reviewDigest: string, options?: SelectionCacheOptions): string;
63
75
  export declare function nextSkillSessionGeneration(generation: number): number;
64
76
  /** Receipt creation and updates are exact-snapshot CAS operations. Child creation also fences its parent. */
65
77
  export declare function writeSkillSession(receipt: SkillSessionReceipt, expected: SkillSessionWritePrecondition, options?: SelectionCacheOptions): void;
@@ -30,7 +30,13 @@ export declare function inspectSkillSession(sessionId: string, options?: Selecti
30
30
  selectionCount: number;
31
31
  loadedCount: number;
32
32
  };
33
- /** Explicit opt-in only. Ordinary loads and hooks retain their immutable session pins. */
33
+ /**
34
+ * Managed hooks may move an expired pin only when every skill already loaded
35
+ * by this session is still selected with exactly the same behavior and bytes.
36
+ * The old receipt is archived and replaced under its exact snapshot lock.
37
+ */
38
+ export declare function reconcileSkillSessionIfSafe(sessionId: string, profileId: string, options?: SessionReconciliationOptions): Promise<boolean>;
39
+ /** Explicit review for changed loaded selections or intentional profile migration. */
34
40
  export declare function reconcileSkillSession(input: SessionReconciliationInput, options?: SessionReconciliationOptions): Promise<{
35
41
  applied: false;
36
42
  plan: {