@hasna/skills 0.10.90 → 0.10.91
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 +12 -3
- package/THIRD_PARTY_NOTICES +5926 -0
- package/bin/index.js +572 -1786
- package/bin/mcp.js +66 -1353
- package/bin/migrate.js +8 -5
- package/bin/server.js +73819 -12659
- package/bin/worker.js +60586 -7855
- package/dist/index.js +11 -5
- package/dist/lib/execution-secrets.d.ts +17 -1
- package/dist/runtime-prerequisites.js +8 -5
- package/dist/sdk/index.js +78725 -18745
- package/package.json +8 -5
package/dist/index.js
CHANGED
|
@@ -16369,7 +16369,7 @@ import { basename as basename15, dirname as dirname27, isAbsolute as isAbsolute2
|
|
|
16369
16369
|
import { homedir as homedir5 } from "os";
|
|
16370
16370
|
import { isAbsolute as isAbsolute25, join as join39, resolve as resolve25 } from "path";
|
|
16371
16371
|
// package.json
|
|
16372
|
-
var version = "0.10.
|
|
16372
|
+
var version = "0.10.91";
|
|
16373
16373
|
var package_default = {
|
|
16374
16374
|
name: "@hasna/skills",
|
|
16375
16375
|
version,
|
|
@@ -16416,6 +16416,7 @@ var package_default = {
|
|
|
16416
16416
|
"docs/runtime-activation.md",
|
|
16417
16417
|
"schemas/",
|
|
16418
16418
|
"LICENSE",
|
|
16419
|
+
"THIRD_PARTY_NOTICES",
|
|
16419
16420
|
"README.md",
|
|
16420
16421
|
"!dist/**/*test-utils.d.ts",
|
|
16421
16422
|
"!dist/**/*fixtures.d.ts"
|
|
@@ -16423,9 +16424,9 @@ var package_default = {
|
|
|
16423
16424
|
main: "./dist/index.js",
|
|
16424
16425
|
types: "./dist/index.d.ts",
|
|
16425
16426
|
scripts: {
|
|
16426
|
-
clean: "rm -rf bin/ dist/",
|
|
16427
|
-
build: "bun run clean && bun build --external @hasna/contracts/kernel-lock ./src/cli/index.tsx --outdir ./bin --target bun && bun build --external @modelcontextprotocol/sdk ./src/mcp/index.ts --outfile ./bin/mcp.js --target bun && bun build --external @hasna/contracts/kernel-lock ./src/server/index.ts --outfile ./bin/server.js --target bun && bun build --external @hasna/contracts/kernel-lock ./src/server/worker.ts --outfile ./bin/worker.js --target bun && bun build --external @hasna/contracts/kernel-lock ./src/server/migrate.ts --outfile ./bin/migrate.js --target bun && bun build --external @hasna/contracts/kernel-lock ./src/server/maintenance.ts --outfile ./bin/maintenance.js --target bun && bun build ./src/index.ts ./src/storage.ts ./src/sdk/index.ts ./src/admin-contract.ts ./src/runtime-prerequisites.ts --outdir ./dist --target bun && tsc --emitDeclarationOnly --declaration --outDir dist && bun scripts/stage-kernel-lock-assets.ts",
|
|
16428
|
-
"build:js": "rm -rf dist && bun build ./src/index.ts ./src/storage.ts ./src/sdk/index.ts ./src/admin-contract.ts ./src/runtime-prerequisites.ts --outdir ./dist --target bun && tsc --emitDeclarationOnly --declaration --outDir dist && bun scripts/stage-kernel-lock-assets.ts",
|
|
16427
|
+
clean: "rm -rf bin/ dist/ THIRD_PARTY_NOTICES",
|
|
16428
|
+
build: "bun run clean && bun build --external @hasna/secrets --external @hasna/contracts/kernel-lock ./src/cli/index.tsx --outdir ./bin --target bun && bun build --external @hasna/secrets --external @modelcontextprotocol/sdk ./src/mcp/index.ts --outfile ./bin/mcp.js --target bun && bun build --external @hasna/secrets --external @hasna/contracts/kernel-lock ./src/server/index.ts --outfile ./bin/server.js --target bun && bun build --external @hasna/secrets --external @hasna/contracts/kernel-lock ./src/server/worker.ts --outfile ./bin/worker.js --target bun && bun build --external @hasna/secrets --external @hasna/contracts/kernel-lock ./src/server/migrate.ts --outfile ./bin/migrate.js --target bun && bun build --external @hasna/secrets --external @hasna/contracts/kernel-lock ./src/server/maintenance.ts --outfile ./bin/maintenance.js --target bun && bun build --external @hasna/secrets ./src/index.ts ./src/storage.ts ./src/sdk/index.ts ./src/admin-contract.ts ./src/runtime-prerequisites.ts --outdir ./dist --target bun && tsc --emitDeclarationOnly --declaration --outDir dist && bun scripts/stage-kernel-lock-assets.ts && bun scripts/third-party-notices.ts",
|
|
16429
|
+
"build:js": "rm -rf dist && bun build --external @hasna/secrets ./src/index.ts ./src/storage.ts ./src/sdk/index.ts ./src/admin-contract.ts ./src/runtime-prerequisites.ts --outdir ./dist --target bun && tsc --emitDeclarationOnly --declaration --outDir dist && bun scripts/stage-kernel-lock-assets.ts",
|
|
16429
16430
|
test: "bun test --timeout 30000",
|
|
16430
16431
|
dev: "bun run ./src/cli/index.tsx",
|
|
16431
16432
|
"dev:watch": "bun --watch run ./src/cli/index.tsx",
|
|
@@ -16476,7 +16477,6 @@ var package_default = {
|
|
|
16476
16477
|
"@aws-sdk/client-ecs": "^3.1079.0",
|
|
16477
16478
|
"@aws-sdk/client-s3": "^3.1079.0",
|
|
16478
16479
|
"@hasna/events": "0.1.18",
|
|
16479
|
-
"@hasna/secrets": "0.4.2",
|
|
16480
16480
|
"@modelcontextprotocol/sdk": "^1.26.0",
|
|
16481
16481
|
chalk: "^5.3.0",
|
|
16482
16482
|
commander: "^12.1.0",
|
|
@@ -16488,6 +16488,9 @@ var package_default = {
|
|
|
16488
16488
|
zod: "^4.3.6",
|
|
16489
16489
|
"@hasna/contracts": "1.3.5"
|
|
16490
16490
|
},
|
|
16491
|
+
optionalDependencies: {
|
|
16492
|
+
"@hasna/secrets": "0.4.2"
|
|
16493
|
+
},
|
|
16491
16494
|
engines: {
|
|
16492
16495
|
bun: ">=1.0.0"
|
|
16493
16496
|
},
|
|
@@ -17715,6 +17718,9 @@ async function resolveSkillsConnection(env = process.env, options = {}) {
|
|
|
17715
17718
|
completed = await completePointerCredential(SKILLS_APP, pointer, explicitVault ? snapshotEnv : env);
|
|
17716
17719
|
} catch (error) {
|
|
17717
17720
|
const translated = asSkillsFleetCredentialError(error, pointer.pointerVaultKey);
|
|
17721
|
+
if (translated?.message.includes("(@hasna/secrets) is not installed")) {
|
|
17722
|
+
throw new SkillsFleetCredentialError(`${translated.message} @hasna/secrets is optional and private: install it with access to it.`, "MISSING_API_CREDENTIAL");
|
|
17723
|
+
}
|
|
17718
17724
|
if (translated)
|
|
17719
17725
|
throw translated;
|
|
17720
17726
|
throw error;
|
|
@@ -28,7 +28,23 @@ export interface SelectedSecretScope {
|
|
|
28
28
|
profileId: string;
|
|
29
29
|
cwd: string;
|
|
30
30
|
}
|
|
31
|
-
|
|
31
|
+
/**
|
|
32
|
+
* The part of the @hasna/secrets SDK entry Skills uses. Skills typechecks and
|
|
33
|
+
* builds without the optional package: src/types/hasna-secrets-sdk.d.ts declares
|
|
34
|
+
* this much of the module, and src/lib/secrets-sdk-types.test.ts checks both
|
|
35
|
+
* against the real package wherever that is installed.
|
|
36
|
+
*/
|
|
37
|
+
export interface SecretsSdk {
|
|
38
|
+
createSecretsClientFromEnv(env?: Record<string, string | undefined>): SelectedSecretsClient;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* The independently configured Secrets SDK. @hasna/secrets is an optional
|
|
42
|
+
* dependency that only an install with access to it receives (SH-00058), and
|
|
43
|
+
* the build keeps it external, so it is loaded here, when a vault grant needs
|
|
44
|
+
* it, and nowhere else.
|
|
45
|
+
*/
|
|
46
|
+
export declare function defaultSecretsClientFactory(load?: () => Promise<SecretsSdk>): Promise<() => SelectedSecretsClient>;
|
|
47
|
+
export declare function selectedSecretBindingsTemplate(scope: SelectedSecretScope, names: string[], createClient: () => SelectedSecretsClient): SelectedSecretBindings;
|
|
32
48
|
/** Runtime controls must not be supplied as credentials, even by a reviewed binding. */
|
|
33
49
|
export declare function declaredSecretNames(value: unknown): string[];
|
|
34
50
|
/** Reading is bounded and rejects symlinks/devices. Parsing errors never echo file contents. */
|
|
@@ -49,7 +49,7 @@ var __require = import.meta.require;
|
|
|
49
49
|
// src/runtime-prerequisites.ts
|
|
50
50
|
import { isAbsolute as isAbsolute7 } from "path";
|
|
51
51
|
// package.json
|
|
52
|
-
var version = "0.10.
|
|
52
|
+
var version = "0.10.91";
|
|
53
53
|
var package_default = {
|
|
54
54
|
name: "@hasna/skills",
|
|
55
55
|
version,
|
|
@@ -96,6 +96,7 @@ var package_default = {
|
|
|
96
96
|
"docs/runtime-activation.md",
|
|
97
97
|
"schemas/",
|
|
98
98
|
"LICENSE",
|
|
99
|
+
"THIRD_PARTY_NOTICES",
|
|
99
100
|
"README.md",
|
|
100
101
|
"!dist/**/*test-utils.d.ts",
|
|
101
102
|
"!dist/**/*fixtures.d.ts"
|
|
@@ -103,9 +104,9 @@ var package_default = {
|
|
|
103
104
|
main: "./dist/index.js",
|
|
104
105
|
types: "./dist/index.d.ts",
|
|
105
106
|
scripts: {
|
|
106
|
-
clean: "rm -rf bin/ dist/",
|
|
107
|
-
build: "bun run clean && bun build --external @hasna/contracts/kernel-lock ./src/cli/index.tsx --outdir ./bin --target bun && bun build --external @modelcontextprotocol/sdk ./src/mcp/index.ts --outfile ./bin/mcp.js --target bun && bun build --external @hasna/contracts/kernel-lock ./src/server/index.ts --outfile ./bin/server.js --target bun && bun build --external @hasna/contracts/kernel-lock ./src/server/worker.ts --outfile ./bin/worker.js --target bun && bun build --external @hasna/contracts/kernel-lock ./src/server/migrate.ts --outfile ./bin/migrate.js --target bun && bun build --external @hasna/contracts/kernel-lock ./src/server/maintenance.ts --outfile ./bin/maintenance.js --target bun && bun build ./src/index.ts ./src/storage.ts ./src/sdk/index.ts ./src/admin-contract.ts ./src/runtime-prerequisites.ts --outdir ./dist --target bun && tsc --emitDeclarationOnly --declaration --outDir dist && bun scripts/stage-kernel-lock-assets.ts",
|
|
108
|
-
"build:js": "rm -rf dist && bun build ./src/index.ts ./src/storage.ts ./src/sdk/index.ts ./src/admin-contract.ts ./src/runtime-prerequisites.ts --outdir ./dist --target bun && tsc --emitDeclarationOnly --declaration --outDir dist && bun scripts/stage-kernel-lock-assets.ts",
|
|
107
|
+
clean: "rm -rf bin/ dist/ THIRD_PARTY_NOTICES",
|
|
108
|
+
build: "bun run clean && bun build --external @hasna/secrets --external @hasna/contracts/kernel-lock ./src/cli/index.tsx --outdir ./bin --target bun && bun build --external @hasna/secrets --external @modelcontextprotocol/sdk ./src/mcp/index.ts --outfile ./bin/mcp.js --target bun && bun build --external @hasna/secrets --external @hasna/contracts/kernel-lock ./src/server/index.ts --outfile ./bin/server.js --target bun && bun build --external @hasna/secrets --external @hasna/contracts/kernel-lock ./src/server/worker.ts --outfile ./bin/worker.js --target bun && bun build --external @hasna/secrets --external @hasna/contracts/kernel-lock ./src/server/migrate.ts --outfile ./bin/migrate.js --target bun && bun build --external @hasna/secrets --external @hasna/contracts/kernel-lock ./src/server/maintenance.ts --outfile ./bin/maintenance.js --target bun && bun build --external @hasna/secrets ./src/index.ts ./src/storage.ts ./src/sdk/index.ts ./src/admin-contract.ts ./src/runtime-prerequisites.ts --outdir ./dist --target bun && tsc --emitDeclarationOnly --declaration --outDir dist && bun scripts/stage-kernel-lock-assets.ts && bun scripts/third-party-notices.ts",
|
|
109
|
+
"build:js": "rm -rf dist && bun build --external @hasna/secrets ./src/index.ts ./src/storage.ts ./src/sdk/index.ts ./src/admin-contract.ts ./src/runtime-prerequisites.ts --outdir ./dist --target bun && tsc --emitDeclarationOnly --declaration --outDir dist && bun scripts/stage-kernel-lock-assets.ts",
|
|
109
110
|
test: "bun test --timeout 30000",
|
|
110
111
|
dev: "bun run ./src/cli/index.tsx",
|
|
111
112
|
"dev:watch": "bun --watch run ./src/cli/index.tsx",
|
|
@@ -156,7 +157,6 @@ var package_default = {
|
|
|
156
157
|
"@aws-sdk/client-ecs": "^3.1079.0",
|
|
157
158
|
"@aws-sdk/client-s3": "^3.1079.0",
|
|
158
159
|
"@hasna/events": "0.1.18",
|
|
159
|
-
"@hasna/secrets": "0.4.2",
|
|
160
160
|
"@modelcontextprotocol/sdk": "^1.26.0",
|
|
161
161
|
chalk: "^5.3.0",
|
|
162
162
|
commander: "^12.1.0",
|
|
@@ -168,6 +168,9 @@ var package_default = {
|
|
|
168
168
|
zod: "^4.3.6",
|
|
169
169
|
"@hasna/contracts": "1.3.5"
|
|
170
170
|
},
|
|
171
|
+
optionalDependencies: {
|
|
172
|
+
"@hasna/secrets": "0.4.2"
|
|
173
|
+
},
|
|
171
174
|
engines: {
|
|
172
175
|
bun: ">=1.0.0"
|
|
173
176
|
},
|