You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Bump to v0.12.0 — add Module.preflight()/describe(), ExecutionCancelledError extends ModuleError
- Add optional preflight() and describe() methods to Module interface (spec §5.6)
- Add ModuleDescription interface and export from package index
- ExecutionCancelledError now extends ModuleError with code EXECUTION_CANCELLED (was bare Error)
- Add EXECUTION_CANCELLED to ErrorCodes constants
- Remove phantom batchProcessing CHANGELOG entry (never implemented)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
-**`ModuleDescription`** interface — Typed return type for `Module.describe()`, exported from package index
14
+
15
+
### Changed
16
+
-**`ExecutionCancelledError`** now extends `ModuleError` (was bare `Error`) with error code `EXECUTION_CANCELLED`, aligning with PROTOCOL_SPEC §8.7 error hierarchy
-**Removed phantom CHANGELOG entry** — `ModuleAnnotations.batchProcessing` (v0.4.0) was never implemented
21
+
22
+
---
23
+
8
24
## [0.11.0] - 2026-03-08
9
25
10
26
### Added
@@ -235,7 +251,6 @@ Built-in `system.*` modules that allow AI agents to query, monitor
235
251
- Improved performance of `Executor.stream()` with optimized buffering.
236
252
237
253
### Added
238
-
- Introduced `ModuleAnnotations.batchProcessing` for enhanced batch processing capabilities.
239
254
- Added new logging features for better observability in the execution pipeline.
240
255
-**ExtensionManager** and **ExtensionPoint** exports for unified extension point management (discoverer, middleware, acl, span_exporter, module_validator)
241
256
-**AsyncTaskManager**, **TaskStatus**, **TaskInfo** exports for async task execution with status tracking (PENDING, RUNNING, COMPLETED, FAILED, CANCELLED) and cancellation
Copy file name to clipboardExpand all lines: src/errors.ts
+8-7Lines changed: 8 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -131,7 +131,7 @@ export class ACLDeniedError extends ModuleError {
131
131
options?.cause,
132
132
options?.traceId,
133
133
options?.retryable,
134
-
options?.aiGuidance,
134
+
options?.aiGuidance??`Access denied for '${callerId}' calling '${targetId}'. Verify the caller has the required role or permission, or try an alternative module with similar functionality.`,
135
135
options?.userFixable,
136
136
options?.suggestion,
137
137
);
@@ -158,7 +158,7 @@ export class ModuleNotFoundError extends ModuleError {
158
158
options?.cause,
159
159
options?.traceId,
160
160
options?.retryable,
161
-
options?.aiGuidance,
161
+
options?.aiGuidance??`Module '${moduleId}' does not exist in the registry. Verify the module ID spelling. Use system.manifest.full to list available modules.`,
162
162
options?.userFixable,
163
163
options?.suggestion,
164
164
);
@@ -177,7 +177,7 @@ export class ModuleDisabledError extends ModuleError {
177
177
options?.cause,
178
178
options?.traceId,
179
179
options?.retryable,
180
-
options?.aiGuidance,
180
+
options?.aiGuidance??`Module '${moduleId}' is currently disabled. Use system.control.toggle_feature to re-enable it, or find an alternative module.`,
181
181
options?.userFixable,
182
182
options?.suggestion,
183
183
);
@@ -196,7 +196,7 @@ export class ModuleTimeoutError extends ModuleError {
196
196
options?.cause,
197
197
options?.traceId,
198
198
options?.retryable,
199
-
options?.aiGuidance,
199
+
options?.aiGuidance??`Module '${moduleId}' timed out after ${timeoutMs}ms. Consider: 1) Breaking the operation into smaller steps. 2) Reducing the input data size. 3) Asking the user if a longer timeout is acceptable.`,
200
200
options?.userFixable,
201
201
options?.suggestion,
202
202
);
@@ -227,7 +227,7 @@ export class SchemaValidationError extends ModuleError {
227
227
options?.cause,
228
228
options?.traceId,
229
229
options?.retryable,
230
-
options?.aiGuidance,
230
+
options?.aiGuidance??'Input validation failed. Review the error details to identify which fields have invalid values, then correct them or ask the user for valid input.',
231
231
options?.userFixable,
232
232
options?.suggestion,
233
233
);
@@ -293,7 +293,7 @@ export class CallDepthExceededError extends ModuleError {
293
293
options?.cause,
294
294
options?.traceId,
295
295
options?.retryable,
296
-
options?.aiGuidance,
296
+
options?.aiGuidance??`Call depth ${depth} exceeds maximum ${maxDepth}. Simplify the module call chain or restructure to reduce nesting depth.`,
297
297
options?.userFixable,
298
298
options?.suggestion,
299
299
);
@@ -320,7 +320,7 @@ export class CircularCallError extends ModuleError {
320
320
options?.cause,
321
321
options?.traceId,
322
322
options?.retryable,
323
-
options?.aiGuidance,
323
+
options?.aiGuidance??'A circular call was detected in the module call chain. Review the call_chain in error details and restructure to eliminate the cycle.',
0 commit comments