@hasna/skills 0.10.47 → 0.10.49
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 +34 -0
- package/bin/index.js +1091 -649
- package/bin/maintenance.js +18 -0
- package/bin/mcp.js +65 -2
- package/bin/migrate.js +19 -1
- package/bin/server.js +19 -1
- package/bin/worker.js +19 -1
- package/dist/cli/commands/runtime-launcher.d.ts +102 -0
- package/dist/cli/commands/runtime.d.ts +7 -0
- package/dist/cli/index.d.ts +1 -1
- package/dist/index.js +414 -262
- package/dist/lib/launch-cwd-apply.d.ts +1 -0
- package/dist/lib/launch-cwd.d.ts +5 -0
- package/dist/lib/self-spawn.d.ts +21 -0
- package/dist/mcp/index.d.ts +1 -0
- package/dist/sdk/index.js +397 -245
- package/dist/server/index.d.ts +1 -1
- package/dist/server/maintenance.d.ts +1 -1
- package/dist/server/migrate.d.ts +17 -0
- package/dist/server/worker.d.ts +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The trusted directory for a child of `entry`: the copyfile runtime version
|
|
3
|
+
* root that holds `node_modules/@hasna/skills` (what the pinned launcher uses),
|
|
4
|
+
* or the entry's own directory for a build or source checkout.
|
|
5
|
+
*/
|
|
6
|
+
export declare function selfSpawnRoot(entry: string): string;
|
|
7
|
+
export interface SelfSpawnCommand {
|
|
8
|
+
command: string[];
|
|
9
|
+
cwd: string;
|
|
10
|
+
env: Record<string, string>;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Argv, working directory and environment to run this Skills entry again with
|
|
14
|
+
* `args`. Pass the result to Bun.spawn as `cmd`, `cwd` and `env`.
|
|
15
|
+
*/
|
|
16
|
+
export declare function selfSpawnCommand(args: readonly string[], options?: {
|
|
17
|
+
entry?: string;
|
|
18
|
+
runtime?: string;
|
|
19
|
+
env?: Record<string, string | undefined>;
|
|
20
|
+
callerCwd?: string;
|
|
21
|
+
}): SelfSpawnCommand;
|
package/dist/mcp/index.d.ts
CHANGED
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
* skills-mcp # Direct binary
|
|
9
9
|
* skills-mcp --http # Streamable HTTP on 127.0.0.1:8836
|
|
10
10
|
*/
|
|
11
|
+
import "../lib/launch-cwd-apply.js";
|
|
11
12
|
/**
|
|
12
13
|
* FAIL CLOSED AT STARTUP (owner ruling 2026-09-04, hasna/apps#1720; #1720
|
|
13
14
|
* validation, round 1): the MCP process resolves the fleet ladder BEFORE it
|