@hasna/skills 0.1.67 → 0.1.69
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/bin/index.js +380 -19
- package/bin/mcp.js +8 -4
- package/bin/server.js +198 -193
- package/bin/worker.js +191 -190
- package/dist/admin-contract.d.ts +6189 -0
- package/dist/admin-contract.js +4451 -0
- package/dist/index.js +7 -3
- package/dist/sdk/index.js +573 -223
- package/dist/sdk/runs.d.ts +8 -8
- package/package.json +7 -3
package/dist/sdk/runs.d.ts
CHANGED
|
@@ -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: "
|
|
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: "
|
|
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: "
|
|
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: "
|
|
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.
|
|
3
|
+
"version": "0.1.69",
|
|
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,8 +44,8 @@
|
|
|
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",
|