@hasna/skills 0.10.59 → 0.10.61
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/README.md +41 -7
- package/bin/index.js +1688 -1071
- package/bin/mcp.js +18193 -35730
- package/bin/migrate.js +5 -4
- package/bin/server.js +5 -4
- package/bin/worker.js +5 -4
- package/dist/cli/commands/claude-installer-capture.d.ts +28 -0
- package/dist/cli/commands/runtime-launcher.d.ts +19 -11
- package/dist/index.js +1577 -999
- package/dist/lib/agent-adapters.d.ts +2 -2
- package/dist/lib/agent-install-selection.d.ts +10 -0
- package/dist/lib/agent-sumi.d.ts +29 -3
- package/dist/lib/claude-plugin-manifest-witness.d.ts +6 -0
- package/dist/lib/claude-prospective-review.d.ts +13 -0
- package/dist/lib/codex-hook-trust-identity.d.ts +22 -0
- package/dist/lib/kernel-lock-assets.d.ts +2 -0
- package/dist/native/kernel-lock-acl-darwin +0 -0
- package/dist/sdk/index.js +1837 -1259
- package/dist/server/launcher-environment-policy.d.ts +11 -0
- package/docs/plugin-admission.md +26 -0
- package/native/kernel-lock-acl-darwin +0 -0
- package/package.json +4 -3
|
@@ -27,8 +27,8 @@ export declare const AGENT_ADAPTERS: {
|
|
|
27
27
|
readonly promptContext: true;
|
|
28
28
|
};
|
|
29
29
|
readonly sumi: {
|
|
30
|
-
readonly root:
|
|
31
|
-
readonly config:
|
|
30
|
+
readonly root: null;
|
|
31
|
+
readonly config: null;
|
|
32
32
|
readonly events: readonly ["prompt", "context"];
|
|
33
33
|
readonly promptContext: true;
|
|
34
34
|
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type IntegrationAgent } from "./agent-adapters.js";
|
|
2
|
+
/** Presence selects adapters; it does not resolve native paths or approve
|
|
3
|
+
* their configuration. The existing planner still verifies every selected
|
|
4
|
+
* provider. Never execute a native CLI to detect it, particularly Sumi. */
|
|
5
|
+
export declare function detectedIntegrationAgents(options?: {
|
|
6
|
+
home?: string;
|
|
7
|
+
dataDir?: string;
|
|
8
|
+
env?: NodeJS.ProcessEnv;
|
|
9
|
+
cwd?: string;
|
|
10
|
+
}): IntegrationAgent[];
|
package/dist/lib/agent-sumi.d.ts
CHANGED
|
@@ -1,6 +1,31 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
3
|
-
|
|
1
|
+
declare const SUMI_PATH_KEYS: readonly ["data", "cache", "config", "state"];
|
|
2
|
+
export type SumiPathPlan = {
|
|
3
|
+
schemaVersion: 1;
|
|
4
|
+
kind: "sumi-paths";
|
|
5
|
+
home: string;
|
|
6
|
+
cwd: string;
|
|
7
|
+
roots: Record<typeof SUMI_PATH_KEYS[number], string>;
|
|
8
|
+
legacyRoots: Record<typeof SUMI_PATH_KEYS[number], string | null>;
|
|
9
|
+
configFiles: {
|
|
10
|
+
canonical: string;
|
|
11
|
+
legacy: string | null;
|
|
12
|
+
};
|
|
13
|
+
skillRoots: {
|
|
14
|
+
canonical: string;
|
|
15
|
+
legacy: string | null;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
export declare class SumiPathResolverError extends Error {
|
|
19
|
+
readonly code: string;
|
|
20
|
+
constructor(code: string);
|
|
21
|
+
}
|
|
22
|
+
/** Resolve native paths through Sumi's dedicated, read-only command. Never
|
|
23
|
+
* probe the general Sumi CLI: older versions may adopt their home on startup. */
|
|
24
|
+
export declare function sumiPathPlan(home: string, cwd?: string, env?: NodeJS.ProcessEnv): SumiPathPlan;
|
|
25
|
+
export declare function sumiConfigDirectory(home: string, env?: NodeJS.ProcessEnv, cwd?: string): string;
|
|
26
|
+
export declare function sumiSkillRoots(home: string, cwd?: string, env?: NodeJS.ProcessEnv): string[];
|
|
27
|
+
export declare function sumiBridgeRoot(home: string, cwd?: string, env?: NodeJS.ProcessEnv): string;
|
|
28
|
+
export declare function sumiConfigPath(home: string, cwd?: string, env?: NodeJS.ProcessEnv): string;
|
|
4
29
|
/** Native V2 plugin, not an OpenCode chat.message factory. Instructions enter
|
|
5
30
|
* transient request context; prompts and the plugin carry no payload fallback. */
|
|
6
31
|
export declare function renderSumiPlugin(command: string, profile: string): string;
|
|
@@ -16,3 +41,4 @@ export declare const SUMI_SKILL_PERMISSIONS: readonly [{
|
|
|
16
41
|
readonly resource: "skills-cli";
|
|
17
42
|
readonly effect: "allow";
|
|
18
43
|
}];
|
|
44
|
+
export {};
|
|
@@ -5,5 +5,11 @@ export declare const CLAUDE_PLUGIN_MANIFEST_LIMITS: Readonly<{
|
|
|
5
5
|
stringCharacters: 16384;
|
|
6
6
|
}>;
|
|
7
7
|
export declare function hashClaudePluginManifest(text: string): string;
|
|
8
|
+
/** Capture a canonical plugin.json file without following a link or exposing its contents. */
|
|
9
|
+
export declare function captureClaudePluginManifestFile(path: string): {
|
|
10
|
+
path: string;
|
|
11
|
+
hashMode: "claude-plugin-manifest-v1";
|
|
12
|
+
sha256: string;
|
|
13
|
+
};
|
|
8
14
|
/** Project only the exact raw manifest bytes that the explicit review attested. */
|
|
9
15
|
export declare function projectReviewedClaudePluginManifest(text: string, reviewedSha256: string): string;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { type ReviewedDiscoveryInputs } from "./agent-discovery.js";
|
|
2
2
|
export declare const CLAUDE_PROSPECTIVE_REVIEW_SCHEMA: "skills.claude-plugin-prospective-review/v1";
|
|
3
|
+
/** Hash the exact serialized Claude discovery binding used by review requests. */
|
|
4
|
+
export declare function hashClaudeDiscoveryBinding(binding: unknown): string;
|
|
3
5
|
export interface ClaudeProspectiveReviewRequest {
|
|
4
6
|
schema: typeof CLAUDE_PROSPECTIVE_REVIEW_SCHEMA;
|
|
5
7
|
scope: {
|
|
@@ -136,6 +138,17 @@ export interface ClaudeProspectiveReviewReceipt {
|
|
|
136
138
|
/** Fingerprint every file byte and directory name under the frozen candidate.
|
|
137
139
|
* Symlinks and special files refuse; the digest binds the complete closure. */
|
|
138
140
|
export declare function captureClaudeProspectiveCandidateClosure(root: string): string;
|
|
141
|
+
/** Read-only capture used by the installed Claude installer bridge. */
|
|
142
|
+
export declare function captureClaudeInstallerCandidate(root: string, policyPath: string): {
|
|
143
|
+
closureSha256: string;
|
|
144
|
+
discoverySha256: string;
|
|
145
|
+
manifests: Array<{
|
|
146
|
+
plugin: string;
|
|
147
|
+
path: string;
|
|
148
|
+
hashMode: "claude-plugin-manifest-v1";
|
|
149
|
+
sha256: string;
|
|
150
|
+
}>;
|
|
151
|
+
};
|
|
139
152
|
/** Validate a frozen candidate review against the current filesystem. This is
|
|
140
153
|
* intentionally a planner only: its receipt is not native-install authority. */
|
|
141
154
|
export declare function reviewClaudeProspectiveCandidate(request: ClaudeProspectiveReviewRequest, requestFileSha256: string): ClaudeProspectiveReviewReceipt;
|
|
@@ -25,3 +25,25 @@ export declare function bindSkillsCli(command: string, reviewed?: ReviewedSkills
|
|
|
25
25
|
};
|
|
26
26
|
recheck(): void;
|
|
27
27
|
};
|
|
28
|
+
/** A bounded, read-only producer identity for commands that must call their configured stable CLI. */
|
|
29
|
+
export declare function captureSkillsCliProducerIdentity(command: string): {
|
|
30
|
+
schema: "skills.cli-producer-identity/v1";
|
|
31
|
+
configuredCommandPath: string;
|
|
32
|
+
physicalLauncher: {
|
|
33
|
+
path: string;
|
|
34
|
+
sha256: string;
|
|
35
|
+
};
|
|
36
|
+
runtimeEntry: {
|
|
37
|
+
path: string;
|
|
38
|
+
sha256: string;
|
|
39
|
+
};
|
|
40
|
+
runtime: {
|
|
41
|
+
path: string;
|
|
42
|
+
sha256: string;
|
|
43
|
+
};
|
|
44
|
+
package: {
|
|
45
|
+
name: "@hasna/skills";
|
|
46
|
+
version: string;
|
|
47
|
+
manifestSha256: string;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
Binary file
|