@agentick/shared 0.0.1

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.
Files changed (85) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +322 -0
  3. package/dist/.tsbuildinfo +1 -0
  4. package/dist/.tsbuildinfo.build +1 -0
  5. package/dist/block-types.d.ts +85 -0
  6. package/dist/block-types.d.ts.map +1 -0
  7. package/dist/block-types.js +98 -0
  8. package/dist/block-types.js.map +1 -0
  9. package/dist/blocks.d.ts +396 -0
  10. package/dist/blocks.d.ts.map +1 -0
  11. package/dist/blocks.js +209 -0
  12. package/dist/blocks.js.map +1 -0
  13. package/dist/devtools.d.ts +672 -0
  14. package/dist/devtools.d.ts.map +1 -0
  15. package/dist/devtools.js +445 -0
  16. package/dist/devtools.js.map +1 -0
  17. package/dist/errors.d.ts +335 -0
  18. package/dist/errors.d.ts.map +1 -0
  19. package/dist/errors.js +529 -0
  20. package/dist/errors.js.map +1 -0
  21. package/dist/identity.d.ts +99 -0
  22. package/dist/identity.d.ts.map +1 -0
  23. package/dist/identity.js +116 -0
  24. package/dist/identity.js.map +1 -0
  25. package/dist/index.d.ts +56 -0
  26. package/dist/index.d.ts.map +1 -0
  27. package/dist/index.js +56 -0
  28. package/dist/index.js.map +1 -0
  29. package/dist/input.d.ts +55 -0
  30. package/dist/input.d.ts.map +1 -0
  31. package/dist/input.js +83 -0
  32. package/dist/input.js.map +1 -0
  33. package/dist/messages.d.ts +98 -0
  34. package/dist/messages.d.ts.map +1 -0
  35. package/dist/messages.js +81 -0
  36. package/dist/messages.js.map +1 -0
  37. package/dist/model-catalog.d.ts +144 -0
  38. package/dist/model-catalog.d.ts.map +1 -0
  39. package/dist/model-catalog.js +861 -0
  40. package/dist/model-catalog.js.map +1 -0
  41. package/dist/models.d.ts +173 -0
  42. package/dist/models.d.ts.map +1 -0
  43. package/dist/models.js +10 -0
  44. package/dist/models.js.map +1 -0
  45. package/dist/protocol.d.ts +257 -0
  46. package/dist/protocol.d.ts.map +1 -0
  47. package/dist/protocol.js +41 -0
  48. package/dist/protocol.js.map +1 -0
  49. package/dist/streaming.d.ts +635 -0
  50. package/dist/streaming.d.ts.map +1 -0
  51. package/dist/streaming.js +134 -0
  52. package/dist/streaming.js.map +1 -0
  53. package/dist/testing/fixtures.d.ts +250 -0
  54. package/dist/testing/fixtures.d.ts.map +1 -0
  55. package/dist/testing/fixtures.js +827 -0
  56. package/dist/testing/fixtures.js.map +1 -0
  57. package/dist/testing/helpers.d.ts +95 -0
  58. package/dist/testing/helpers.d.ts.map +1 -0
  59. package/dist/testing/helpers.js +271 -0
  60. package/dist/testing/helpers.js.map +1 -0
  61. package/dist/testing/index.d.ts +42 -0
  62. package/dist/testing/index.d.ts.map +1 -0
  63. package/dist/testing/index.js +70 -0
  64. package/dist/testing/index.js.map +1 -0
  65. package/dist/timeline.d.ts +59 -0
  66. package/dist/timeline.d.ts.map +1 -0
  67. package/dist/timeline.js +11 -0
  68. package/dist/timeline.js.map +1 -0
  69. package/dist/tools.d.ts +220 -0
  70. package/dist/tools.d.ts.map +1 -0
  71. package/dist/tools.js +63 -0
  72. package/dist/tools.js.map +1 -0
  73. package/dist/utils/entity-ids.d.ts +26 -0
  74. package/dist/utils/entity-ids.d.ts.map +1 -0
  75. package/dist/utils/entity-ids.js +44 -0
  76. package/dist/utils/entity-ids.js.map +1 -0
  77. package/dist/utils/index.d.ts +3 -0
  78. package/dist/utils/index.d.ts.map +1 -0
  79. package/dist/utils/index.js +3 -0
  80. package/dist/utils/index.js.map +1 -0
  81. package/dist/utils/merge-deep.d.ts +10 -0
  82. package/dist/utils/merge-deep.d.ts.map +1 -0
  83. package/dist/utils/merge-deep.js +33 -0
  84. package/dist/utils/merge-deep.js.map +1 -0
  85. package/package.json +84 -0
@@ -0,0 +1,335 @@
1
+ /**
2
+ * Agentick Error Hierarchy
3
+ *
4
+ * Structured error classes for consistent error handling across the framework.
5
+ * All errors extend AgentickError which provides:
6
+ * - Unique error codes for programmatic handling
7
+ * - Rich metadata for debugging
8
+ * - Serialization support for client/server communication
9
+ * - Type guards for catching specific error types
10
+ *
11
+ * @example Throwing errors
12
+ * ```typescript
13
+ * throw new NotFoundError('model', 'gpt-4', 'Model not found in registry');
14
+ * throw new ValidationError('messages', 'array', 'Messages must be an array');
15
+ * throw new AbortError('User cancelled operation');
16
+ * ```
17
+ *
18
+ * @example Catching specific errors
19
+ * ```typescript
20
+ * try {
21
+ * await engine.execute(input);
22
+ * } catch (error) {
23
+ * if (isAbortError(error)) {
24
+ * // Handle cancellation
25
+ * } else if (isNotFoundError(error)) {
26
+ * // Handle missing resource
27
+ * } else if (isAgentickError(error)) {
28
+ * // Handle any Agentick error
29
+ * console.log(error.code, error.toJSON());
30
+ * }
31
+ * }
32
+ * ```
33
+ */
34
+ /**
35
+ * Error codes for programmatic error handling.
36
+ * Format: CATEGORY_SPECIFIC (e.g., ABORT_CANCELLED, NOT_FOUND_MODEL)
37
+ */
38
+ export type AgentickErrorCode = "ABORT_CANCELLED" | "ABORT_TIMEOUT" | "ABORT_SIGNAL" | "NOT_FOUND_MODEL" | "NOT_FOUND_TOOL" | "NOT_FOUND_AGENT" | "NOT_FOUND_EXECUTION" | "NOT_FOUND_RESOURCE" | "VALIDATION_REQUIRED" | "VALIDATION_TYPE" | "VALIDATION_FORMAT" | "VALIDATION_CONSTRAINT" | "STATE_INVALID" | "STATE_TRANSITION" | "STATE_NOT_READY" | "STATE_ALREADY_COMPLETE" | "TRANSPORT_TIMEOUT" | "TRANSPORT_CONNECTION" | "TRANSPORT_RESPONSE" | "TRANSPORT_PARSE" | "ADAPTER_RESPONSE" | "ADAPTER_RATE_LIMIT" | "ADAPTER_AUTH" | "ADAPTER_CONTENT_FILTER" | "ADAPTER_CONTEXT_LENGTH" | "CONTEXT_NOT_FOUND" | "CONTEXT_INVALID" | "GUARD_DENIED" | "REACTIVITY_CIRCULAR" | "REACTIVITY_DISPOSED";
39
+ /**
40
+ * Serialized error format for transport
41
+ */
42
+ export interface SerializedAgentickError {
43
+ name: string;
44
+ code: AgentickErrorCode;
45
+ message: string;
46
+ details?: Record<string, unknown>;
47
+ cause?: SerializedAgentickError | {
48
+ message: string;
49
+ name?: string;
50
+ };
51
+ stack?: string;
52
+ }
53
+ /**
54
+ * Base class for all Agentick errors.
55
+ * Provides consistent structure, serialization, and type identification.
56
+ */
57
+ export declare class AgentickError extends Error {
58
+ /** Unique error code for programmatic handling */
59
+ readonly code: AgentickErrorCode;
60
+ /** Additional error details */
61
+ readonly details: Record<string, unknown>;
62
+ /** Original error that caused this error */
63
+ readonly cause?: Error;
64
+ constructor(code: AgentickErrorCode, message: string, details?: Record<string, unknown>, cause?: Error);
65
+ /**
66
+ * Serialize error for transport (JSON-safe)
67
+ */
68
+ toJSON(): SerializedAgentickError;
69
+ /**
70
+ * Create error from serialized format
71
+ */
72
+ static fromJSON(json: SerializedAgentickError): AgentickError;
73
+ }
74
+ /**
75
+ * Error thrown when an operation is aborted or cancelled.
76
+ *
77
+ * @example
78
+ * ```typescript
79
+ * throw new AbortError('User cancelled the operation');
80
+ * throw new AbortError('Operation timed out', 'ABORT_TIMEOUT', { timeoutMs: 30000 });
81
+ * ```
82
+ */
83
+ export declare class AbortError extends AgentickError {
84
+ constructor(message?: string, code?: "ABORT_CANCELLED" | "ABORT_TIMEOUT" | "ABORT_SIGNAL", details?: Record<string, unknown>, cause?: Error);
85
+ /**
86
+ * Create from an AbortSignal's reason
87
+ */
88
+ static fromSignal(signal: AbortSignal): AbortError;
89
+ /**
90
+ * Create a timeout abort error
91
+ */
92
+ static timeout(timeoutMs: number): AbortError;
93
+ }
94
+ /**
95
+ * Resource types that can be "not found"
96
+ */
97
+ export type ResourceType = "model" | "tool" | "agent" | "execution" | "channel" | "session" | "procedure" | "mcp-client" | "scope" | "resource";
98
+ /**
99
+ * Error thrown when a required resource cannot be found.
100
+ *
101
+ * @example
102
+ * ```typescript
103
+ * throw new NotFoundError('model', 'gpt-4');
104
+ * throw new NotFoundError('tool', 'search', 'Tool not found in registry');
105
+ * throw new NotFoundError('execution', 'exec-123', 'Parent execution not found');
106
+ * ```
107
+ */
108
+ export declare class NotFoundError extends AgentickError {
109
+ /** Type of resource that was not found */
110
+ readonly resourceType: ResourceType;
111
+ /** Identifier of the resource */
112
+ readonly resourceId: string;
113
+ constructor(resourceType: ResourceType, resourceId: string, message?: string, cause?: Error);
114
+ }
115
+ /**
116
+ * Error thrown when input validation fails.
117
+ *
118
+ * @example
119
+ * ```typescript
120
+ * throw new ValidationError('messages', 'Messages are required');
121
+ * throw new ValidationError('handler', 'Handler function required', { expected: 'function' });
122
+ * throw new ValidationError('input.model', 'Model identifier must be provided');
123
+ * ```
124
+ */
125
+ export declare class ValidationError extends AgentickError {
126
+ /** Field or parameter that failed validation */
127
+ readonly field: string;
128
+ /** Expected type or format (optional) */
129
+ readonly expected?: string;
130
+ /** Actual value received (optional) */
131
+ readonly received?: string;
132
+ constructor(field: string, message: string, options?: {
133
+ expected?: string;
134
+ received?: string;
135
+ code?: "VALIDATION_REQUIRED" | "VALIDATION_TYPE" | "VALIDATION_FORMAT" | "VALIDATION_CONSTRAINT";
136
+ }, cause?: Error);
137
+ /**
138
+ * Create a "required" validation error
139
+ */
140
+ static required(field: string, message?: string): ValidationError;
141
+ /**
142
+ * Create a "type mismatch" validation error
143
+ */
144
+ static type(field: string, expected: string, received?: string): ValidationError;
145
+ }
146
+ /**
147
+ * Error thrown when an operation is attempted in an invalid state.
148
+ *
149
+ * @example
150
+ * ```typescript
151
+ * throw new StateError('streaming', 'completed', 'Cannot send message to completed execution');
152
+ * throw new StateError('initializing', 'ready', 'Engine is still initializing');
153
+ * ```
154
+ */
155
+ export declare class StateError extends AgentickError {
156
+ /** Current state */
157
+ readonly current: string;
158
+ /** Expected/required state (optional) */
159
+ readonly expectedState?: string;
160
+ constructor(current: string, expectedState: string | undefined, message: string, code?: "STATE_INVALID" | "STATE_TRANSITION" | "STATE_NOT_READY" | "STATE_ALREADY_COMPLETE", cause?: Error);
161
+ /**
162
+ * Create error for "not ready" state
163
+ */
164
+ static notReady(component: string, current: string): StateError;
165
+ /**
166
+ * Create error for "already complete" state
167
+ */
168
+ static alreadyComplete(operation: string): StateError;
169
+ }
170
+ /**
171
+ * Error thrown for network/transport failures.
172
+ *
173
+ * @example
174
+ * ```typescript
175
+ * throw new TransportError('timeout', 'Request timed out after 30000ms');
176
+ * throw new TransportError('connection', 'SSE connection error');
177
+ * throw new TransportError('response', 'No response body');
178
+ * ```
179
+ */
180
+ export declare class TransportError extends AgentickError {
181
+ /** Type of transport error */
182
+ readonly transportCode: "timeout" | "connection" | "response" | "parse";
183
+ /** HTTP status code if applicable */
184
+ readonly statusCode?: number;
185
+ constructor(transportCode: "timeout" | "connection" | "response" | "parse", message: string, options?: {
186
+ statusCode?: number;
187
+ url?: string;
188
+ method?: string;
189
+ }, cause?: Error);
190
+ /**
191
+ * Create a timeout error
192
+ */
193
+ static timeout(timeoutMs: number, url?: string): TransportError;
194
+ /**
195
+ * Create a connection error
196
+ */
197
+ static connection(message: string, url?: string, cause?: Error): TransportError;
198
+ /**
199
+ * Create an HTTP error (non-2xx response)
200
+ */
201
+ static http(statusCode: number, url: string, message?: string): TransportError;
202
+ }
203
+ /**
204
+ * Error thrown by model adapters for provider-specific errors.
205
+ *
206
+ * @example
207
+ * ```typescript
208
+ * throw new AdapterError('openai', 'No message in response', 'ADAPTER_RESPONSE');
209
+ * throw new AdapterError('google', 'Rate limit exceeded', 'ADAPTER_RATE_LIMIT', { retryAfter: 60 });
210
+ * throw new AdapterError('anthropic', 'Content blocked', 'ADAPTER_CONTENT_FILTER');
211
+ * ```
212
+ */
213
+ export declare class AdapterError extends AgentickError {
214
+ /** Provider name (openai, google, anthropic, etc.) */
215
+ readonly provider: string;
216
+ /** Provider-specific error code */
217
+ readonly providerErrorCode?: string;
218
+ constructor(provider: string, message: string, code?: "ADAPTER_RESPONSE" | "ADAPTER_RATE_LIMIT" | "ADAPTER_AUTH" | "ADAPTER_CONTENT_FILTER" | "ADAPTER_CONTEXT_LENGTH", details?: Record<string, unknown>, cause?: Error);
219
+ /**
220
+ * Create a rate limit error
221
+ */
222
+ static rateLimit(provider: string, retryAfter?: number): AdapterError;
223
+ /**
224
+ * Create a content filter error
225
+ */
226
+ static contentFiltered(provider: string, reason?: string): AdapterError;
227
+ /**
228
+ * Create a context length error
229
+ */
230
+ static contextLength(provider: string, maxTokens: number, requestedTokens?: number): AdapterError;
231
+ }
232
+ /**
233
+ * Error thrown when context is missing or invalid.
234
+ *
235
+ * @example
236
+ * ```typescript
237
+ * throw new ContextError('Context not found. Ensure you are running within Context.run()');
238
+ * throw new ContextError('Invalid context: missing required field', 'CONTEXT_INVALID');
239
+ * ```
240
+ */
241
+ export declare class ContextError extends AgentickError {
242
+ constructor(message: string, code?: "CONTEXT_NOT_FOUND" | "CONTEXT_INVALID", details?: Record<string, unknown>, cause?: Error);
243
+ /**
244
+ * Create "context not found" error with helpful message
245
+ */
246
+ static notFound(): ContextError;
247
+ }
248
+ /**
249
+ * Error thrown for reactivity/signal system issues.
250
+ *
251
+ * @example
252
+ * ```typescript
253
+ * throw new ReactivityError('Circular dependency detected in computed signal');
254
+ * throw new ReactivityError('Attempted to set disposed signal', 'REACTIVITY_DISPOSED');
255
+ * ```
256
+ */
257
+ export declare class ReactivityError extends AgentickError {
258
+ constructor(message: string, code?: "REACTIVITY_CIRCULAR" | "REACTIVITY_DISPOSED", details?: Record<string, unknown>, cause?: Error);
259
+ /**
260
+ * Create circular dependency error
261
+ */
262
+ static circular(signalName?: string): ReactivityError;
263
+ }
264
+ /**
265
+ * Error thrown when a guard denies access to a procedure or resource.
266
+ *
267
+ * @example
268
+ * ```typescript
269
+ * throw GuardError.role(['admin', 'moderator']);
270
+ * throw GuardError.denied('Insufficient permissions', { resource: 'settings' });
271
+ * ```
272
+ */
273
+ export declare class GuardError extends AgentickError {
274
+ /** Type of guard that denied access */
275
+ readonly guardType?: string;
276
+ constructor(message: string, guardType?: string, details?: Record<string, unknown>, cause?: Error);
277
+ /**
278
+ * Create a role-based guard error
279
+ */
280
+ static role(roles: string[]): GuardError;
281
+ /**
282
+ * Create a custom guard denied error
283
+ */
284
+ static denied(reason: string, details?: Record<string, unknown>): GuardError;
285
+ }
286
+ /**
287
+ * Check if error is any Agentick error
288
+ */
289
+ export declare function isAgentickError(error: unknown): error is AgentickError;
290
+ /**
291
+ * Check if error is an AbortError
292
+ */
293
+ export declare function isAbortError(error: unknown): error is AbortError;
294
+ /**
295
+ * Check if error is a NotFoundError
296
+ */
297
+ export declare function isNotFoundError(error: unknown): error is NotFoundError;
298
+ /**
299
+ * Check if error is a ValidationError
300
+ */
301
+ export declare function isValidationError(error: unknown): error is ValidationError;
302
+ /**
303
+ * Check if error is a StateError
304
+ */
305
+ export declare function isStateError(error: unknown): error is StateError;
306
+ /**
307
+ * Check if error is a TransportError
308
+ */
309
+ export declare function isTransportError(error: unknown): error is TransportError;
310
+ /**
311
+ * Check if error is an AdapterError
312
+ */
313
+ export declare function isAdapterError(error: unknown): error is AdapterError;
314
+ /**
315
+ * Check if error is a ContextError
316
+ */
317
+ export declare function isContextError(error: unknown): error is ContextError;
318
+ /**
319
+ * Check if error is a ReactivityError
320
+ */
321
+ export declare function isReactivityError(error: unknown): error is ReactivityError;
322
+ /**
323
+ * Check if error is a GuardError
324
+ */
325
+ export declare function isGuardError(error: unknown): error is GuardError;
326
+ /**
327
+ * Ensure a value is an Error, wrapping if necessary.
328
+ * Useful for catch blocks that might receive non-Error values.
329
+ */
330
+ export declare function ensureError(value: unknown): Error;
331
+ /**
332
+ * Wrap any error as an Agentick error if it isn't already.
333
+ */
334
+ export declare function wrapAsAgentickError(error: unknown, defaultCode?: AgentickErrorCode): AgentickError;
335
+ //# sourceMappingURL=errors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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