@hasna/skills 0.7.2 → 0.7.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.
@@ -1,5 +1,6 @@
1
1
  export interface DiscoveryByteBudget {
2
2
  remaining: number;
3
+ pathMetadataRemaining?: number;
3
4
  }
4
5
  export declare function discoveryByteBudget(): DiscoveryByteBudget;
5
6
  /** Hash exact bytes without decoding them or following links. The budget spans one capture/verification. */
@@ -0,0 +1,5 @@
1
+ import { type DiscoveryByteBudget } from "./agent-discovery-bytes.js";
2
+ /** Bind path identity and exact bytes without importing or executing the file.
3
+ * Absence also has a digest: null cannot attest the path leading to an absence.
4
+ * Planned replacement is refused because its future inode is not knowable. */
5
+ export declare function hashDiscoveryPathFile(path: string, budget: DiscoveryByteBudget, changes?: Map<string, string>): string;
@@ -4,7 +4,7 @@ export { captureDiscoveryDirectories, type DiscoveryDirectory } from "./agent-di
4
4
  export interface DiscoverySource {
5
5
  path: string;
6
6
  sha256: string | null;
7
- hashMode?: "bytes";
7
+ hashMode?: "bytes" | "path-bytes";
8
8
  format?: "json" | "toml" | "yaml";
9
9
  fields?: string[];
10
10
  }
@@ -30,6 +30,8 @@ export declare function verifyAgentDiscovery(binding: AgentDiscoveryBinding): vo
30
30
  export declare function rebindAgentDiscovery(binding: AgentDiscoveryBinding, changes: Map<string, string>): AgentDiscoveryBinding;
31
31
  /** Capture full byte witnesses for reviewed source or executable files; never import or execute them. */
32
32
  export declare function captureDiscoveryByteSources(paths: string[]): DiscoverySource[];
33
+ /** Capture executable/source path identity, including links and absent targets. */
34
+ export declare function captureDiscoveryPathSources(paths: string[]): DiscoverySource[];
33
35
  /** Project settings can introduce a higher-precedence discovery source. Until
34
36
  * its native merge format is supported, refuse that layer rather than certify
35
37
  * the home-only inventory. Ordinary unrelated project settings remain usable. */
@@ -5,6 +5,10 @@ export declare const AGENT_POLICY_LIMITS: Readonly<{
5
5
  discoverySources: 2048;
6
6
  discoveryRawSourceBytes: number;
7
7
  discoveryRawTotalBytes: number;
8
+ discoveryPathLinks: 40;
9
+ discoveryPathSteps: 256;
10
+ discoveryPathSourceMetadataBytes: number;
11
+ discoveryPathTotalMetadataBytes: number;
8
12
  discoveryRoots: 512;
9
13
  discoveryDirectories: 64;
10
14
  discoveryDirectoryEntries: 20000;
@@ -114,6 +114,8 @@ export interface PortPortableSkillOptions extends PortableSkillOptions {
114
114
  }
115
115
  export interface BulkPortPortableSkillOptions extends PortableSkillOptions {
116
116
  overwrite?: boolean;
117
+ /** Explicitly permit imported names that shadow bundled official skills. */
118
+ allowShadow?: boolean;
117
119
  /** When false, the first failure is rethrown. Defaults to true (skip-on-error). */
118
120
  continueOnError?: boolean;
119
121
  }
@@ -0,0 +1,27 @@
1
+ /** Verifies installed resolution against the selected standalone frozen lock.
2
+ * This is a graph/version check; the separate frozen installer receipt binds
3
+ * registry integrity. Package payload attestation is not inferred from version. */
4
+ export declare function verifyProducerDependencies(packageRoot: string): {
5
+ status: string;
6
+ package: {
7
+ name: string;
8
+ version: string;
9
+ };
10
+ manifestSha256: string;
11
+ lockSha256: string;
12
+ nodeCount: number;
13
+ edgeCount: number;
14
+ nodes: {
15
+ lockKey: string;
16
+ name: string;
17
+ version: string;
18
+ manifestSha256: string;
19
+ relativePath: string;
20
+ }[];
21
+ edges: {
22
+ from: string;
23
+ name: string;
24
+ to: string | null;
25
+ optionalAbsent?: boolean;
26
+ }[];
27
+ };