@agentick/kernel
Advanced tools
+8
-8
| { | ||
| "name": "@agentick/kernel", | ||
| "version": "0.2.0", | ||
| "version": "0.2.1", | ||
| "description": "Kernel for Agentick", | ||
@@ -11,2 +11,7 @@ "keywords": [ | ||
| "author": "Ryan Lindgren", | ||
| "repository": { | ||
| "type": "git", | ||
| "url": "git+https://github.com/agenticklabs/agentick.git", | ||
| "directory": "packages/kernel" | ||
| }, | ||
| "files": [ | ||
@@ -32,5 +37,5 @@ "dist" | ||
| "pino": "^9.6.0", | ||
| "zod": "^4.2.1", | ||
| "zod": "^4.3.6", | ||
| "zod-to-json-schema": "^3.25.1", | ||
| "@agentick/shared": "0.2.0" | ||
| "@agentick/shared": "0.2.1" | ||
| }, | ||
@@ -40,7 +45,2 @@ "devDependencies": { | ||
| }, | ||
| "repository": { | ||
| "type": "git", | ||
| "url": "git+https://github.com/agenticklabs/agentick.git", | ||
| "directory": "packages/kernel" | ||
| }, | ||
| "scripts": { | ||
@@ -47,0 +47,0 @@ "build": "tsc -p tsconfig.build.json", |
+6
-6
@@ -30,3 +30,3 @@ # @agentick/kernel | ||
| return await db.users.find(id); | ||
| } | ||
| }, | ||
| ); | ||
@@ -293,10 +293,10 @@ | ||
| // Factories | ||
| GuardError.role(["admin"]); // "Requires one of roles [admin]" | ||
| GuardError.denied("Custom reason"); // Custom denial | ||
| GuardError.role(["admin"]); // "Requires one of roles [admin]" | ||
| GuardError.denied("Custom reason"); // Custom denial | ||
| // Type guard | ||
| if (isGuardError(error)) { | ||
| error.code; // "GUARD_DENIED" | ||
| error.guardType; // "role", "custom", etc. | ||
| error.details; // { roles: [...], guard: "name", ... } | ||
| error.code; // "GUARD_DENIED" | ||
| error.guardType; // "role", "custom", etc. | ||
| error.details; // { roles: [...], guard: "name", ... } | ||
| } | ||
@@ -303,0 +303,0 @@ ``` |
Sorry, the diff of this file is not supported yet
466737
-0.01%+ Added
- Removed
Updated
Updated