@hasna/skills 0.8.11 → 0.8.12

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.
@@ -5,7 +5,7 @@ export { captureDiscoveryDirectories, type DiscoveryDirectory } from "./agent-di
5
5
  export interface DiscoverySource {
6
6
  path: string;
7
7
  sha256: string | null;
8
- hashMode?: "bytes" | "path-bytes" | "claude-plugin-registry" | "claude-marketplace-registry";
8
+ hashMode?: "bytes" | "path-bytes" | "claude-plugin-registry" | "claude-marketplace-registry" | "claude-settings-v1";
9
9
  managedPlugins?: ManagedPluginRegistrationWitness[];
10
10
  format?: "json" | "toml" | "yaml";
11
11
  fields?: string[];
@@ -0,0 +1,19 @@
1
+ export declare const CLAUDE_SETTINGS_WITNESS_LIMITS: Readonly<{
2
+ bytes: number;
3
+ rows: 1024;
4
+ depth: 32;
5
+ nodes: 65536;
6
+ stringCharacters: 16384;
7
+ pathCharacters: 4096;
8
+ }>;
9
+ export interface ClaudeSettingsWitnessBudget {
10
+ remaining: number;
11
+ }
12
+ /** Hash only reviewed installer-rendered settings after the disk preimage has been verified. */
13
+ export declare function hashClaudeSettingsReplacement(text: string, budget: ClaudeSettingsWitnessBudget): string;
14
+ /** Explicit capture never converts a stored legacy raw witness or changes settings. */
15
+ export declare function captureClaudeSettings(path: string, budget?: ClaudeSettingsWitnessBudget): {
16
+ path: string;
17
+ hashMode: "claude-settings-v1";
18
+ sha256: string;
19
+ };