@hasna/skills 0.1.68 → 0.1.70

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.
@@ -39,16 +39,16 @@ export declare const runAdmissionSchema: z.ZodObject<{
39
39
  status: z.ZodLiteral<"admitted">;
40
40
  createdAt: z.ZodString;
41
41
  }, "strip", z.ZodTypeAny, {
42
- createdAt: string;
43
42
  status: "admitted";
43
+ createdAt: string;
44
44
  skill: string;
45
45
  contractVersion: 1;
46
46
  runId: string;
47
47
  leaseGeneration: number;
48
48
  attemptId: string;
49
49
  }, {
50
- createdAt: string;
51
50
  status: "admitted";
51
+ createdAt: string;
52
52
  skill: string;
53
53
  contractVersion: 1;
54
54
  runId: string;
@@ -90,7 +90,7 @@ export declare const runTerminalSchema: z.ZodObject<{
90
90
  status: z.ZodEnum<["succeeded", "failed", "cancelled", "expired"]>;
91
91
  completedAt: z.ZodString;
92
92
  }, "strip", z.ZodTypeAny, {
93
- status: "failed" | "succeeded" | "cancelled" | "expired";
93
+ status: "cancelled" | "failed" | "succeeded" | "expired";
94
94
  skill: string;
95
95
  completedAt: string;
96
96
  contractVersion: 1;
@@ -98,7 +98,7 @@ export declare const runTerminalSchema: z.ZodObject<{
98
98
  leaseGeneration: number;
99
99
  attemptId: string;
100
100
  }, {
101
- status: "failed" | "succeeded" | "cancelled" | "expired";
101
+ status: "cancelled" | "failed" | "succeeded" | "expired";
102
102
  skill: string;
103
103
  completedAt: string;
104
104
  contractVersion: 1;
@@ -117,16 +117,16 @@ export declare const runProtocolSchema: z.ZodDiscriminatedUnion<"status", [z.Zod
117
117
  status: z.ZodLiteral<"admitted">;
118
118
  createdAt: z.ZodString;
119
119
  }, "strip", z.ZodTypeAny, {
120
- createdAt: string;
121
120
  status: "admitted";
121
+ createdAt: string;
122
122
  skill: string;
123
123
  contractVersion: 1;
124
124
  runId: string;
125
125
  leaseGeneration: number;
126
126
  attemptId: string;
127
127
  }, {
128
- createdAt: string;
129
128
  status: "admitted";
129
+ createdAt: string;
130
130
  skill: string;
131
131
  contractVersion: 1;
132
132
  runId: string;
@@ -162,7 +162,7 @@ export declare const runProtocolSchema: z.ZodDiscriminatedUnion<"status", [z.Zod
162
162
  status: z.ZodEnum<["succeeded", "failed", "cancelled", "expired"]>;
163
163
  completedAt: z.ZodString;
164
164
  }, "strip", z.ZodTypeAny, {
165
- status: "failed" | "succeeded" | "cancelled" | "expired";
165
+ status: "cancelled" | "failed" | "succeeded" | "expired";
166
166
  skill: string;
167
167
  completedAt: string;
168
168
  contractVersion: 1;
@@ -170,7 +170,7 @@ export declare const runProtocolSchema: z.ZodDiscriminatedUnion<"status", [z.Zod
170
170
  leaseGeneration: number;
171
171
  attemptId: string;
172
172
  }, {
173
- status: "failed" | "succeeded" | "cancelled" | "expired";
173
+ status: "cancelled" | "failed" | "succeeded" | "expired";
174
174
  skill: string;
175
175
  completedAt: string;
176
176
  contractVersion: 1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hasna/skills",
3
- "version": "0.1.68",
3
+ "version": "0.1.70",
4
4
  "description": "Skills library for AI coding agents",
5
5
  "type": "module",
6
6
  "bin": {
@@ -22,6 +22,10 @@
22
22
  "./sdk": {
23
23
  "import": "./dist/sdk/index.js",
24
24
  "types": "./dist/sdk/index.d.ts"
25
+ },
26
+ "./admin-contract": {
27
+ "import": "./dist/admin-contract.js",
28
+ "types": "./dist/admin-contract.d.ts"
25
29
  }
26
30
  },
27
31
  "files": [
@@ -40,14 +44,15 @@
40
44
  "types": "./dist/index.d.ts",
41
45
  "scripts": {
42
46
  "clean": "rm -rf bin/ dist/",
43
- "build": "bun run clean && bun build ./src/cli/index.tsx --outdir ./bin --target bun && bun build ./src/mcp/index.ts --outfile ./bin/mcp.js --target bun && bun build ./src/server/index.ts --outfile ./bin/server.js --target bun && bun build ./src/server/worker.ts --outfile ./bin/worker.js --target bun && bun build ./src/server/migrate.ts --outfile ./bin/migrate.js --target bun && bun build ./src/index.ts ./src/storage.ts ./src/sdk/index.ts --outdir ./dist --target bun && tsc --emitDeclarationOnly --declaration --outDir dist",
44
- "build:js": "rm -rf dist && bun build ./src/index.ts ./src/storage.ts ./src/sdk/index.ts --outdir ./dist --target bun && tsc --emitDeclarationOnly --declaration --outDir dist",
47
+ "build": "bun run clean && bun build ./src/cli/index.tsx --outdir ./bin --target bun && bun build ./src/mcp/index.ts --outfile ./bin/mcp.js --target bun && bun build ./src/server/index.ts --outfile ./bin/server.js --target bun && bun build ./src/server/worker.ts --outfile ./bin/worker.js --target bun && bun build ./src/server/migrate.ts --outfile ./bin/migrate.js --target bun && bun build ./src/index.ts ./src/storage.ts ./src/sdk/index.ts ./src/admin-contract.ts --outdir ./dist --target bun && tsc --emitDeclarationOnly --declaration --outDir dist",
48
+ "build:js": "rm -rf dist && bun build ./src/index.ts ./src/storage.ts ./src/sdk/index.ts ./src/admin-contract.ts --outdir ./dist --target bun && tsc --emitDeclarationOnly --declaration --outDir dist",
45
49
  "test": "bun test --timeout 30000",
46
50
  "dev": "bun run ./src/cli/index.tsx",
47
51
  "dev:watch": "bun --watch run ./src/cli/index.tsx",
48
52
  "dev:mcp": "bun --watch run ./src/mcp/index.ts",
49
53
  "dev:server": "bun --watch run ./src/server/index.ts",
50
54
  "dev:worker": "bun --watch run ./src/server/worker.ts",
55
+ "docker:check": "bash scripts/docker-build-check.sh",
51
56
  "migrate": "bun run ./src/server/migrate.ts",
52
57
  "typecheck": "tsc --noEmit",
53
58
  "verify:release": "bun run scripts/release-guard.ts",
@@ -80,7 +85,8 @@
80
85
  "@types/react": "^18.2.0",
81
86
  "bun-types": "1.3.14",
82
87
  "react-devtools-core": "^7.0.1",
83
- "typescript": "^5"
88
+ "typescript": "^5",
89
+ "yaml": "^2.9.0"
84
90
  },
85
91
  "dependencies": {
86
92
  "@aws-sdk/client-ecs": "^3.1079.0",