@hasna/skills 0.10.60 → 0.10.62
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 +855 -455
- package/bin/mcp.js +19044 -36576
- package/bin/migrate.js +10 -4
- package/bin/server.js +10 -4
- package/bin/worker.js +10 -4
- package/dist/cli/commands/runtime-copyfile.d.ts +1 -0
- package/dist/cli/commands/runtime-launcher.d.ts +19 -11
- package/dist/index.js +1638 -1054
- package/dist/lib/agent-adapters.d.ts +2 -2
- package/dist/lib/agent-install-selection.d.ts +11 -0
- package/dist/lib/agent-sumi.d.ts +29 -3
- package/dist/lib/kernel-lock-assets.d.ts +2 -0
- package/dist/native/kernel-lock-acl-darwin +0 -0
- package/dist/runtime-prerequisites.d.ts +9 -0
- package/dist/runtime-prerequisites.js +3089 -0
- package/dist/sdk/index.js +2042 -1458
- package/dist/server/launcher-environment-policy.d.ts +11 -0
- package/docs/runtime-activation.md +23 -0
- package/native/kernel-lock-acl-darwin +0 -0
- package/package.json +9 -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,11 @@
|
|
|
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
|
+
allowEmpty?: boolean;
|
|
11
|
+
}): 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 {};
|
|
Binary file
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const RUNTIME_PREREQUISITES_SCHEMA = "skills.runtime-prerequisites.v1";
|
|
2
|
+
export declare const RUNTIME_PREREQUISITE_CODES: readonly ["RUNTIME_CONSUMER_DISCOVERY_REFUSED", "RUNTIME_PREREQUISITE_INPUT_REFUSED", "SUMI_PATH_INPUT_REFUSED", "SUMI_PATH_CONFIG_UNSUPPORTED", "SUMI_PATH_RESOLVER_UNAVAILABLE", "SUMI_PATH_RESOLVER_INVALID_RESPONSE", "SUMI_PATH_DISCOVERY_REFUSED"];
|
|
3
|
+
export declare function runtimePrerequisites(home: string, cwd: string): {
|
|
4
|
+
ok: boolean;
|
|
5
|
+
schema: string;
|
|
6
|
+
targetVersion: string;
|
|
7
|
+
checked: string[];
|
|
8
|
+
code: string | null;
|
|
9
|
+
};
|