apcore-js 0.17.1 → 0.19.0
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/LICENSE +190 -0
- package/README.md +14 -10
- package/dist/acl-handlers.d.ts +14 -0
- package/dist/acl-handlers.d.ts.map +1 -1
- package/dist/acl-handlers.js +37 -4
- package/dist/acl-handlers.js.map +1 -1
- package/dist/acl.d.ts +4 -3
- package/dist/acl.d.ts.map +1 -1
- package/dist/acl.js +44 -40
- package/dist/acl.js.map +1 -1
- package/dist/async-task.d.ts +6 -5
- package/dist/async-task.d.ts.map +1 -1
- package/dist/async-task.js +10 -6
- package/dist/async-task.js.map +1 -1
- package/dist/bindings.d.ts.map +1 -1
- package/dist/bindings.js +113 -11
- package/dist/bindings.js.map +1 -1
- package/dist/builtin-steps.d.ts +19 -5
- package/dist/builtin-steps.d.ts.map +1 -1
- package/dist/builtin-steps.js +83 -27
- package/dist/builtin-steps.js.map +1 -1
- package/dist/client.d.ts +2 -1
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +8 -6
- package/dist/client.js.map +1 -1
- package/dist/config.d.ts +8 -2
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +44 -6
- package/dist/config.js.map +1 -1
- package/dist/context.d.ts +34 -7
- package/dist/context.d.ts.map +1 -1
- package/dist/context.js +97 -40
- package/dist/context.js.map +1 -1
- package/dist/decorator.d.ts +3 -0
- package/dist/decorator.d.ts.map +1 -1
- package/dist/decorator.js +17 -1
- package/dist/decorator.js.map +1 -1
- package/dist/errors.d.ts +65 -16
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +191 -82
- package/dist/errors.js.map +1 -1
- package/dist/events/emitter.d.ts +4 -1
- package/dist/events/emitter.d.ts.map +1 -1
- package/dist/events/emitter.js +26 -16
- package/dist/events/emitter.js.map +1 -1
- package/dist/executor.d.ts +9 -9
- package/dist/executor.d.ts.map +1 -1
- package/dist/executor.js +62 -38
- package/dist/executor.js.map +1 -1
- package/dist/generated/version.d.ts +1 -1
- package/dist/generated/version.js +1 -1
- package/dist/index.d.ts +21 -7
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +21 -7
- package/dist/index.js.map +1 -1
- package/dist/middleware/index.d.ts +1 -1
- package/dist/middleware/index.d.ts.map +1 -1
- package/dist/middleware/index.js +1 -1
- package/dist/middleware/index.js.map +1 -1
- package/dist/middleware/logging.d.ts +6 -0
- package/dist/middleware/logging.d.ts.map +1 -1
- package/dist/middleware/logging.js +13 -3
- package/dist/middleware/logging.js.map +1 -1
- package/dist/middleware/manager.d.ts.map +1 -1
- package/dist/middleware/manager.js +1 -0
- package/dist/middleware/manager.js.map +1 -1
- package/dist/middleware/platform-notify.d.ts +1 -1
- package/dist/middleware/platform-notify.d.ts.map +1 -1
- package/dist/middleware/platform-notify.js +5 -3
- package/dist/middleware/platform-notify.js.map +1 -1
- package/dist/middleware/retry.d.ts +16 -7
- package/dist/middleware/retry.d.ts.map +1 -1
- package/dist/middleware/retry.js +21 -15
- package/dist/middleware/retry.js.map +1 -1
- package/dist/module.d.ts +8 -2
- package/dist/module.d.ts.map +1 -1
- package/dist/module.js +10 -3
- package/dist/module.js.map +1 -1
- package/dist/observability/context-logger.d.ts.map +1 -1
- package/dist/observability/context-logger.js +18 -5
- package/dist/observability/context-logger.js.map +1 -1
- package/dist/observability/metrics-utils.d.ts.map +1 -1
- package/dist/observability/metrics-utils.js +3 -5
- package/dist/observability/metrics-utils.js.map +1 -1
- package/dist/observability/metrics.d.ts +1 -0
- package/dist/observability/metrics.d.ts.map +1 -1
- package/dist/observability/metrics.js +14 -1
- package/dist/observability/metrics.js.map +1 -1
- package/dist/observability/tracing.d.ts +2 -0
- package/dist/observability/tracing.d.ts.map +1 -1
- package/dist/observability/tracing.js +12 -2
- package/dist/observability/tracing.js.map +1 -1
- package/dist/observability/usage.d.ts.map +1 -1
- package/dist/observability/usage.js +10 -1
- package/dist/observability/usage.js.map +1 -1
- package/dist/pipeline-config.d.ts +13 -9
- package/dist/pipeline-config.d.ts.map +1 -1
- package/dist/pipeline-config.js +77 -13
- package/dist/pipeline-config.js.map +1 -1
- package/dist/registry/conflicts.d.ts +29 -0
- package/dist/registry/conflicts.d.ts.map +1 -0
- package/dist/registry/conflicts.js +61 -0
- package/dist/registry/conflicts.js.map +1 -0
- package/dist/registry/dependencies.d.ts +1 -1
- package/dist/registry/dependencies.d.ts.map +1 -1
- package/dist/registry/dependencies.js +69 -20
- package/dist/registry/dependencies.js.map +1 -1
- package/dist/registry/entry-point.d.ts.map +1 -1
- package/dist/registry/entry-point.js.map +1 -1
- package/dist/registry/index.d.ts +5 -2
- package/dist/registry/index.d.ts.map +1 -1
- package/dist/registry/index.js +4 -2
- package/dist/registry/index.js.map +1 -1
- package/dist/registry/metadata.d.ts.map +1 -1
- package/dist/registry/metadata.js +24 -3
- package/dist/registry/metadata.js.map +1 -1
- package/dist/registry/registry.d.ts +40 -4
- package/dist/registry/registry.d.ts.map +1 -1
- package/dist/registry/registry.js +222 -53
- package/dist/registry/registry.js.map +1 -1
- package/dist/registry/scanner.d.ts.map +1 -1
- package/dist/registry/scanner.js +6 -0
- package/dist/registry/scanner.js.map +1 -1
- package/dist/registry/version.d.ts +50 -0
- package/dist/registry/version.d.ts.map +1 -0
- package/dist/registry/version.js +198 -0
- package/dist/registry/version.js.map +1 -0
- package/dist/schema/exporter.js +2 -2
- package/dist/schema/extractor.d.ts +69 -0
- package/dist/schema/extractor.d.ts.map +1 -0
- package/dist/schema/extractor.js +142 -0
- package/dist/schema/extractor.js.map +1 -0
- package/dist/schema/index.d.ts +2 -0
- package/dist/schema/index.d.ts.map +1 -1
- package/dist/schema/index.js +1 -0
- package/dist/schema/index.js.map +1 -1
- package/dist/schema/loader.js +7 -7
- package/dist/schema/loader.js.map +1 -1
- package/dist/schema/ref-resolver.d.ts.map +1 -1
- package/dist/schema/ref-resolver.js +10 -1
- package/dist/schema/ref-resolver.js.map +1 -1
- package/dist/schema/types.d.ts +6 -6
- package/dist/schema/types.d.ts.map +1 -1
- package/dist/schema/types.js +6 -6
- package/dist/schema/types.js.map +1 -1
- package/dist/sys-modules/control.d.ts +79 -1
- package/dist/sys-modules/control.d.ts.map +1 -1
- package/dist/sys-modules/control.js +44 -11
- package/dist/sys-modules/control.js.map +1 -1
- package/dist/sys-modules/health.d.ts +89 -1
- package/dist/sys-modules/health.d.ts.map +1 -1
- package/dist/sys-modules/health.js +41 -1
- package/dist/sys-modules/health.js.map +1 -1
- package/dist/sys-modules/index.d.ts +5 -5
- package/dist/sys-modules/index.d.ts.map +1 -1
- package/dist/sys-modules/index.js +5 -5
- package/dist/sys-modules/index.js.map +1 -1
- package/dist/sys-modules/manifest.d.ts +98 -1
- package/dist/sys-modules/manifest.d.ts.map +1 -1
- package/dist/sys-modules/manifest.js +43 -1
- package/dist/sys-modules/manifest.js.map +1 -1
- package/dist/sys-modules/registration.d.ts +12 -0
- package/dist/sys-modules/registration.d.ts.map +1 -1
- package/dist/sys-modules/registration.js +20 -8
- package/dist/sys-modules/registration.js.map +1 -1
- package/dist/sys-modules/toggle.d.ts +39 -2
- package/dist/sys-modules/toggle.d.ts.map +1 -1
- package/dist/sys-modules/toggle.js +23 -6
- package/dist/sys-modules/toggle.js.map +1 -1
- package/dist/sys-modules/usage.d.ts +92 -1
- package/dist/sys-modules/usage.d.ts.map +1 -1
- package/dist/sys-modules/usage.js +42 -1
- package/dist/sys-modules/usage.js.map +1 -1
- package/dist/trace-context.d.ts +3 -4
- package/dist/trace-context.d.ts.map +1 -1
- package/dist/trace-context.js +4 -5
- package/dist/trace-context.js.map +1 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +2 -1
- package/dist/utils/index.js.map +1 -1
- package/package.json +9 -5
package/dist/errors.d.ts
CHANGED
|
@@ -94,14 +94,6 @@ export declare class InvalidInputError extends ModuleError {
|
|
|
94
94
|
static readonly DEFAULT_RETRYABLE: boolean | null;
|
|
95
95
|
constructor(message?: string, options?: ErrorOptions);
|
|
96
96
|
}
|
|
97
|
-
export declare class FuncMissingTypeHintError extends ModuleError {
|
|
98
|
-
static readonly DEFAULT_RETRYABLE: boolean | null;
|
|
99
|
-
constructor(functionName: string, parameterName: string, options?: ErrorOptions);
|
|
100
|
-
}
|
|
101
|
-
export declare class FuncMissingReturnTypeError extends ModuleError {
|
|
102
|
-
static readonly DEFAULT_RETRYABLE: boolean | null;
|
|
103
|
-
constructor(functionName: string, options?: ErrorOptions);
|
|
104
|
-
}
|
|
105
97
|
export declare class BindingInvalidTargetError extends ModuleError {
|
|
106
98
|
static readonly DEFAULT_RETRYABLE: boolean | null;
|
|
107
99
|
constructor(target: string, options?: ErrorOptions);
|
|
@@ -118,9 +110,50 @@ export declare class BindingNotCallableError extends ModuleError {
|
|
|
118
110
|
static readonly DEFAULT_RETRYABLE: boolean | null;
|
|
119
111
|
constructor(target: string, options?: ErrorOptions);
|
|
120
112
|
}
|
|
121
|
-
export declare class
|
|
113
|
+
export declare class BindingSchemaInferenceFailedError extends ModuleError {
|
|
122
114
|
static readonly DEFAULT_RETRYABLE: boolean | null;
|
|
123
|
-
constructor(target: string, options?: ErrorOptions);
|
|
115
|
+
constructor(target: string, moduleId?: string, filePath?: string, remediation?: string, options?: ErrorOptions);
|
|
116
|
+
}
|
|
117
|
+
export declare class BindingSchemaMissingError extends BindingSchemaInferenceFailedError {
|
|
118
|
+
constructor(target: string, moduleId?: string, filePath?: string, remediation?: string, options?: ErrorOptions);
|
|
119
|
+
}
|
|
120
|
+
export declare class BindingSchemaModeConflictError extends ModuleError {
|
|
121
|
+
static readonly DEFAULT_RETRYABLE: boolean | null;
|
|
122
|
+
constructor(moduleId: string, modesListed: string[], filePath?: string, options?: ErrorOptions);
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* Raised when auto_schema: strict is requested but the inferred schema contains
|
|
126
|
+
* features incompatible with strict mode (e.g., `anyOf`, `oneOf`, recursive `$ref`).
|
|
127
|
+
* See DECLARATIVE_CONFIG_SPEC.md §6.2.
|
|
128
|
+
*/
|
|
129
|
+
export declare class BindingStrictSchemaIncompatibleError extends ModuleError {
|
|
130
|
+
static readonly DEFAULT_RETRYABLE: boolean | null;
|
|
131
|
+
constructor(moduleId: string, featuresListed: string[], filePath?: string, line?: number, options?: ErrorOptions);
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* Raised when a binding entry field violates a configured policy limit
|
|
135
|
+
* (e.g., description exceeds policy.max_description_length).
|
|
136
|
+
* See DECLARATIVE_CONFIG_SPEC.md §7.1 and §9.
|
|
137
|
+
*/
|
|
138
|
+
export declare class BindingPolicyViolationError extends ModuleError {
|
|
139
|
+
static readonly DEFAULT_RETRYABLE: boolean | null;
|
|
140
|
+
constructor(moduleId: string, fieldName: string, policyPath: string, reason: string, limitValue: unknown, filePath?: string, line?: number, options?: ErrorOptions);
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* Raised when a function parameter has no type annotation or a forward
|
|
144
|
+
* reference cannot be resolved during auto-schema inference.
|
|
145
|
+
*/
|
|
146
|
+
export declare class FuncMissingTypeHintError extends ModuleError {
|
|
147
|
+
static readonly DEFAULT_RETRYABLE: boolean | null;
|
|
148
|
+
constructor(functionName: string, parameterName: string, options?: ErrorOptions);
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* Raised when a function has no return type annotation during auto-schema
|
|
152
|
+
* inference.
|
|
153
|
+
*/
|
|
154
|
+
export declare class FuncMissingReturnTypeError extends ModuleError {
|
|
155
|
+
static readonly DEFAULT_RETRYABLE: boolean | null;
|
|
156
|
+
constructor(functionName: string, options?: ErrorOptions);
|
|
124
157
|
}
|
|
125
158
|
export declare class BindingFileInvalidError extends ModuleError {
|
|
126
159
|
static readonly DEFAULT_RETRYABLE: boolean | null;
|
|
@@ -130,17 +163,17 @@ export declare class CircularDependencyError extends ModuleError {
|
|
|
130
163
|
static readonly DEFAULT_RETRYABLE: boolean | null;
|
|
131
164
|
constructor(cyclePath: string[], options?: ErrorOptions);
|
|
132
165
|
}
|
|
133
|
-
export declare class
|
|
166
|
+
export declare class ModuleLoadError extends ModuleError {
|
|
134
167
|
static readonly DEFAULT_RETRYABLE: boolean | null;
|
|
135
|
-
constructor(moduleId: string,
|
|
168
|
+
constructor(moduleId: string, reason: string, options?: ErrorOptions);
|
|
136
169
|
}
|
|
137
|
-
export declare class
|
|
170
|
+
export declare class DependencyNotFoundError extends ModuleError {
|
|
138
171
|
static readonly DEFAULT_RETRYABLE: boolean | null;
|
|
139
|
-
constructor(
|
|
172
|
+
constructor(moduleId: string, dependencyId: string, options?: ErrorOptions);
|
|
140
173
|
}
|
|
141
|
-
export declare class
|
|
174
|
+
export declare class DependencyVersionMismatchError extends ModuleError {
|
|
142
175
|
static readonly DEFAULT_RETRYABLE: boolean | null;
|
|
143
|
-
constructor(moduleId: string,
|
|
176
|
+
constructor(moduleId: string, dependencyId: string, required: string, actual: string, options?: ErrorOptions);
|
|
144
177
|
}
|
|
145
178
|
export declare class ReloadFailedError extends ModuleError {
|
|
146
179
|
static readonly DEFAULT_RETRYABLE: boolean | null;
|
|
@@ -206,6 +239,14 @@ export declare class ErrorFormatterDuplicateError extends ModuleError {
|
|
|
206
239
|
static readonly DEFAULT_RETRYABLE: boolean | null;
|
|
207
240
|
constructor(adapterName: string, options?: ErrorOptions);
|
|
208
241
|
}
|
|
242
|
+
export declare class TaskLimitExceededError extends ModuleError {
|
|
243
|
+
static readonly DEFAULT_RETRYABLE: boolean | null;
|
|
244
|
+
constructor(maxTasks: number, options?: ErrorOptions);
|
|
245
|
+
}
|
|
246
|
+
export declare class VersionConstraintError extends ModuleError {
|
|
247
|
+
static readonly DEFAULT_RETRYABLE: boolean | null;
|
|
248
|
+
constructor(constraint: string, reason: string, options?: ErrorOptions);
|
|
249
|
+
}
|
|
209
250
|
/**
|
|
210
251
|
* All framework error codes as constants.
|
|
211
252
|
* Use these instead of hardcoding error code strings.
|
|
@@ -218,6 +259,7 @@ export declare const ErrorCodes: Readonly<{
|
|
|
218
259
|
readonly CONFIG_ENV_PREFIX_CONFLICT: "CONFIG_ENV_PREFIX_CONFLICT";
|
|
219
260
|
readonly CONFIG_MOUNT_ERROR: "CONFIG_MOUNT_ERROR";
|
|
220
261
|
readonly CONFIG_BIND_ERROR: "CONFIG_BIND_ERROR";
|
|
262
|
+
readonly CONFIG_ENV_MAP_CONFLICT: "CONFIG_ENV_MAP_CONFLICT";
|
|
221
263
|
readonly ERROR_FORMATTER_DUPLICATE: "ERROR_FORMATTER_DUPLICATE";
|
|
222
264
|
readonly ACL_RULE_ERROR: "ACL_RULE_ERROR";
|
|
223
265
|
readonly ACL_DENIED: "ACL_DENIED";
|
|
@@ -244,6 +286,10 @@ export declare const ErrorCodes: Readonly<{
|
|
|
244
286
|
readonly BINDING_CALLABLE_NOT_FOUND: "BINDING_CALLABLE_NOT_FOUND";
|
|
245
287
|
readonly BINDING_NOT_CALLABLE: "BINDING_NOT_CALLABLE";
|
|
246
288
|
readonly BINDING_SCHEMA_MISSING: "BINDING_SCHEMA_MISSING";
|
|
289
|
+
readonly BINDING_SCHEMA_INFERENCE_FAILED: "BINDING_SCHEMA_INFERENCE_FAILED";
|
|
290
|
+
readonly BINDING_SCHEMA_MODE_CONFLICT: "BINDING_SCHEMA_MODE_CONFLICT";
|
|
291
|
+
readonly BINDING_STRICT_SCHEMA_INCOMPATIBLE: "BINDING_STRICT_SCHEMA_INCOMPATIBLE";
|
|
292
|
+
readonly BINDING_POLICY_VIOLATION: "BINDING_POLICY_VIOLATION";
|
|
247
293
|
readonly BINDING_FILE_INVALID: "BINDING_FILE_INVALID";
|
|
248
294
|
readonly CIRCULAR_DEPENDENCY: "CIRCULAR_DEPENDENCY";
|
|
249
295
|
readonly MIDDLEWARE_CHAIN_ERROR: "MIDDLEWARE_CHAIN_ERROR";
|
|
@@ -254,6 +300,9 @@ export declare const ErrorCodes: Readonly<{
|
|
|
254
300
|
readonly ERROR_CODE_COLLISION: "ERROR_CODE_COLLISION";
|
|
255
301
|
readonly GENERAL_NOT_IMPLEMENTED: "GENERAL_NOT_IMPLEMENTED";
|
|
256
302
|
readonly DEPENDENCY_NOT_FOUND: "DEPENDENCY_NOT_FOUND";
|
|
303
|
+
readonly DEPENDENCY_VERSION_MISMATCH: "DEPENDENCY_VERSION_MISMATCH";
|
|
304
|
+
readonly TASK_LIMIT_EXCEEDED: "TASK_LIMIT_EXCEEDED";
|
|
305
|
+
readonly VERSION_CONSTRAINT_INVALID: "VERSION_CONSTRAINT_INVALID";
|
|
257
306
|
}>;
|
|
258
307
|
export type ErrorCode = (typeof ErrorCodes)[keyof typeof ErrorCodes];
|
|
259
308
|
//# sourceMappingURL=errors.d.ts.map
|
package/dist/errors.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,WAAW,YAAY;IAC3B,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAC3B,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,WAAW,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAC7B,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B;AAED,qBAAa,WAAY,SAAQ,KAAK;IACpC,MAAM,CAAC,QAAQ,CAAC,iBAAiB,EAAE,OAAO,GAAG,IAAI,CAAQ;IAEzD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC1C,SAAkB,KAAK,CAAC,EAAE,KAAK,CAAC;IAChC,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAA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/errors.js
CHANGED
|
@@ -20,7 +20,10 @@ export class ModuleError extends Error {
|
|
|
20
20
|
this.cause = cause;
|
|
21
21
|
this.traceId = traceId;
|
|
22
22
|
this.timestamp = new Date().toISOString();
|
|
23
|
-
this.retryable =
|
|
23
|
+
this.retryable =
|
|
24
|
+
retryable !== undefined
|
|
25
|
+
? retryable
|
|
26
|
+
: this.constructor.DEFAULT_RETRYABLE;
|
|
24
27
|
this.aiGuidance = aiGuidance ?? null;
|
|
25
28
|
this.userFixable = userFixable ?? null;
|
|
26
29
|
this.suggestion = suggestion ?? null;
|
|
@@ -37,7 +40,7 @@ export class ModuleError extends Error {
|
|
|
37
40
|
obj.details = this.details;
|
|
38
41
|
}
|
|
39
42
|
if (this.cause !== undefined) {
|
|
40
|
-
obj.cause = String(this.cause);
|
|
43
|
+
obj.cause = this.cause instanceof Error ? this.cause.message : String(this.cause);
|
|
41
44
|
}
|
|
42
45
|
if (this.traceId !== undefined) {
|
|
43
46
|
obj.traceId = this.traceId;
|
|
@@ -82,7 +85,8 @@ export class ACLRuleError extends ModuleError {
|
|
|
82
85
|
export class ACLDeniedError extends ModuleError {
|
|
83
86
|
static DEFAULT_RETRYABLE = false;
|
|
84
87
|
constructor(callerId, targetId, options) {
|
|
85
|
-
super('ACL_DENIED', `Access denied: ${callerId} -> ${targetId}`, { callerId, targetId }, options?.cause, options?.traceId, options?.retryable, options?.aiGuidance ??
|
|
88
|
+
super('ACL_DENIED', `Access denied: ${callerId} -> ${targetId}`, { callerId, targetId }, options?.cause, options?.traceId, options?.retryable, options?.aiGuidance ??
|
|
89
|
+
`Access denied for '${callerId}' calling '${targetId}'. Verify the caller has the required role or permission, or try an alternative module with similar functionality.`, options?.userFixable, options?.suggestion);
|
|
86
90
|
this.name = 'ACLDeniedError';
|
|
87
91
|
}
|
|
88
92
|
get callerId() {
|
|
@@ -95,21 +99,24 @@ export class ACLDeniedError extends ModuleError {
|
|
|
95
99
|
export class ModuleNotFoundError extends ModuleError {
|
|
96
100
|
static DEFAULT_RETRYABLE = false;
|
|
97
101
|
constructor(moduleId, options) {
|
|
98
|
-
super('MODULE_NOT_FOUND', `Module not found: ${moduleId}`, { moduleId }, options?.cause, options?.traceId, options?.retryable, options?.aiGuidance ??
|
|
102
|
+
super('MODULE_NOT_FOUND', `Module not found: ${moduleId}`, { moduleId }, options?.cause, options?.traceId, options?.retryable, options?.aiGuidance ??
|
|
103
|
+
`Module '${moduleId}' does not exist in the registry. Verify the module ID spelling. Use system.manifest.full to list available modules.`, options?.userFixable, options?.suggestion);
|
|
99
104
|
this.name = 'ModuleNotFoundError';
|
|
100
105
|
}
|
|
101
106
|
}
|
|
102
107
|
export class ModuleDisabledError extends ModuleError {
|
|
103
108
|
static DEFAULT_RETRYABLE = false;
|
|
104
109
|
constructor(moduleId, options) {
|
|
105
|
-
super('MODULE_DISABLED', `Module is disabled: ${moduleId}`, { moduleId }, options?.cause, options?.traceId, options?.retryable, options?.aiGuidance ??
|
|
110
|
+
super('MODULE_DISABLED', `Module is disabled: ${moduleId}`, { moduleId }, options?.cause, options?.traceId, options?.retryable, options?.aiGuidance ??
|
|
111
|
+
`Module '${moduleId}' is currently disabled. Use system.control.toggle_feature to re-enable it, or find an alternative module.`, options?.userFixable, options?.suggestion);
|
|
106
112
|
this.name = 'ModuleDisabledError';
|
|
107
113
|
}
|
|
108
114
|
}
|
|
109
115
|
export class ModuleTimeoutError extends ModuleError {
|
|
110
116
|
static DEFAULT_RETRYABLE = true;
|
|
111
117
|
constructor(moduleId, timeoutMs, options) {
|
|
112
|
-
super('MODULE_TIMEOUT', `Module ${moduleId} timed out after ${timeoutMs}ms`, { moduleId, timeoutMs }, options?.cause, options?.traceId, options?.retryable, options?.aiGuidance ??
|
|
118
|
+
super('MODULE_TIMEOUT', `Module ${moduleId} timed out after ${timeoutMs}ms`, { moduleId, timeoutMs }, options?.cause, options?.traceId, options?.retryable, options?.aiGuidance ??
|
|
119
|
+
`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.`, options?.userFixable, options?.suggestion);
|
|
113
120
|
this.name = 'ModuleTimeoutError';
|
|
114
121
|
}
|
|
115
122
|
get moduleId() {
|
|
@@ -122,7 +129,8 @@ export class ModuleTimeoutError extends ModuleError {
|
|
|
122
129
|
export class SchemaValidationError extends ModuleError {
|
|
123
130
|
static DEFAULT_RETRYABLE = false;
|
|
124
131
|
constructor(message = 'Schema validation failed', errors, options) {
|
|
125
|
-
super('SCHEMA_VALIDATION_ERROR', message, { errors: errors ?? [] }, options?.cause, options?.traceId, options?.retryable, options?.aiGuidance ??
|
|
132
|
+
super('SCHEMA_VALIDATION_ERROR', message, { errors: errors ?? [] }, options?.cause, options?.traceId, options?.retryable, options?.aiGuidance ??
|
|
133
|
+
'Input validation failed. Review the error details to identify which fields have invalid values, then correct them or ask the user for valid input.', options?.userFixable, options?.suggestion);
|
|
126
134
|
this.name = 'SchemaValidationError';
|
|
127
135
|
}
|
|
128
136
|
}
|
|
@@ -150,7 +158,8 @@ export class SchemaCircularRefError extends ModuleError {
|
|
|
150
158
|
export class CallDepthExceededError extends ModuleError {
|
|
151
159
|
static DEFAULT_RETRYABLE = false;
|
|
152
160
|
constructor(depth, maxDepth, callChain, options) {
|
|
153
|
-
super('CALL_DEPTH_EXCEEDED', `Call depth ${depth} exceeds maximum ${maxDepth}`, { depth, maxDepth, callChain }, options?.cause, options?.traceId, options?.retryable, options?.aiGuidance ??
|
|
161
|
+
super('CALL_DEPTH_EXCEEDED', `Call depth ${depth} exceeds maximum ${maxDepth}`, { depth, maxDepth, callChain }, options?.cause, options?.traceId, options?.retryable, options?.aiGuidance ??
|
|
162
|
+
`Call depth ${depth} exceeds maximum ${maxDepth}. Simplify the module call chain or restructure to reduce nesting depth.`, options?.userFixable, options?.suggestion);
|
|
154
163
|
this.name = 'CallDepthExceededError';
|
|
155
164
|
}
|
|
156
165
|
get currentDepth() {
|
|
@@ -163,7 +172,8 @@ export class CallDepthExceededError extends ModuleError {
|
|
|
163
172
|
export class CircularCallError extends ModuleError {
|
|
164
173
|
static DEFAULT_RETRYABLE = false;
|
|
165
174
|
constructor(moduleId, callChain, options) {
|
|
166
|
-
super('CIRCULAR_CALL', `Circular call detected for module ${moduleId}`, { moduleId, callChain }, options?.cause, options?.traceId, options?.retryable, options?.aiGuidance ??
|
|
175
|
+
super('CIRCULAR_CALL', `Circular call detected for module ${moduleId}`, { moduleId, callChain }, options?.cause, options?.traceId, options?.retryable, options?.aiGuidance ??
|
|
176
|
+
'A circular call was detected in the module call chain. Review the call_chain in error details and restructure to eliminate the cycle.', options?.userFixable, options?.suggestion);
|
|
167
177
|
this.name = 'CircularCallError';
|
|
168
178
|
}
|
|
169
179
|
get moduleId() {
|
|
@@ -193,20 +203,6 @@ export class InvalidInputError extends ModuleError {
|
|
|
193
203
|
this.name = 'InvalidInputError';
|
|
194
204
|
}
|
|
195
205
|
}
|
|
196
|
-
export class FuncMissingTypeHintError extends ModuleError {
|
|
197
|
-
static DEFAULT_RETRYABLE = false;
|
|
198
|
-
constructor(functionName, parameterName, options) {
|
|
199
|
-
super('FUNC_MISSING_TYPE_HINT', `Parameter '${parameterName}' in function '${functionName}' has no type annotation. Add a type annotation like '${parameterName}: string'.`, { functionName, parameterName }, options?.cause, options?.traceId, options?.retryable, options?.aiGuidance, options?.userFixable, options?.suggestion);
|
|
200
|
-
this.name = 'FuncMissingTypeHintError';
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
export class FuncMissingReturnTypeError extends ModuleError {
|
|
204
|
-
static DEFAULT_RETRYABLE = false;
|
|
205
|
-
constructor(functionName, options) {
|
|
206
|
-
super('FUNC_MISSING_RETURN_TYPE', `Function '${functionName}' has no return type annotation. Add a return type like ': Record<string, unknown>'.`, { functionName }, options?.cause, options?.traceId, options?.retryable, options?.aiGuidance, options?.userFixable, options?.suggestion);
|
|
207
|
-
this.name = 'FuncMissingReturnTypeError';
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
206
|
export class BindingInvalidTargetError extends ModuleError {
|
|
211
207
|
static DEFAULT_RETRYABLE = false;
|
|
212
208
|
constructor(target, options) {
|
|
@@ -235,11 +231,98 @@ export class BindingNotCallableError extends ModuleError {
|
|
|
235
231
|
this.name = 'BindingNotCallableError';
|
|
236
232
|
}
|
|
237
233
|
}
|
|
238
|
-
export class
|
|
234
|
+
export class BindingSchemaInferenceFailedError extends ModuleError {
|
|
239
235
|
static DEFAULT_RETRYABLE = false;
|
|
240
|
-
constructor(target, options) {
|
|
241
|
-
|
|
242
|
-
|
|
236
|
+
constructor(target, moduleId, filePath, remediation, options) {
|
|
237
|
+
const loc = filePath ? `${filePath}: ` : '';
|
|
238
|
+
const modPart = moduleId ? `binding '${moduleId}' ` : '';
|
|
239
|
+
const rem = remediation ??
|
|
240
|
+
'no schema source detected. Provide one of: target input/output as TypeBox schemas, zod schemas, ' +
|
|
241
|
+
'class-validator-decorated DTO, or use the typia adapter. ' +
|
|
242
|
+
'Alternatively specify input_schema/output_schema explicitly.';
|
|
243
|
+
super('BINDING_SCHEMA_INFERENCE_FAILED', `${loc}${modPart}auto schema inference failed for target '${target}'. ${rem} See DECLARATIVE_CONFIG_SPEC.md §6`, { target, moduleId, filePath }, options?.cause, options?.traceId, options?.retryable, options?.aiGuidance, options?.userFixable, options?.suggestion);
|
|
244
|
+
this.name = 'BindingSchemaInferenceFailedError';
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
/**
|
|
248
|
+
* Deprecated alias for {@link BindingSchemaInferenceFailedError}.
|
|
249
|
+
* Per DECLARATIVE_CONFIG_SPEC.md §7.1, the canonical name is
|
|
250
|
+
* BindingSchemaInferenceFailedError. Scheduled for removal in 0.20.0;
|
|
251
|
+
* emits a one-shot deprecation warning on first construction.
|
|
252
|
+
*
|
|
253
|
+
* @deprecated Will be removed in 1.0.0. Use {@link BindingSchemaInferenceFailedError} instead.
|
|
254
|
+
*/
|
|
255
|
+
let _bindingSchemaMissingWarned = false;
|
|
256
|
+
export class BindingSchemaMissingError extends BindingSchemaInferenceFailedError {
|
|
257
|
+
constructor(target, moduleId, filePath, remediation, options) {
|
|
258
|
+
super(target, moduleId, filePath, remediation, options);
|
|
259
|
+
if (!_bindingSchemaMissingWarned) {
|
|
260
|
+
_bindingSchemaMissingWarned = true;
|
|
261
|
+
console.warn('[apcore:errors] BindingSchemaMissingError is deprecated and scheduled for removal in 0.20.0. ' +
|
|
262
|
+
'Use BindingSchemaInferenceFailedError instead (DECLARATIVE_CONFIG_SPEC.md §7.1).');
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
export class BindingSchemaModeConflictError extends ModuleError {
|
|
267
|
+
static DEFAULT_RETRYABLE = false;
|
|
268
|
+
constructor(moduleId, modesListed, filePath, options) {
|
|
269
|
+
const loc = filePath ? `${filePath}: ` : '';
|
|
270
|
+
super('BINDING_SCHEMA_MODE_CONFLICT', `${loc}binding '${moduleId}' specifies multiple schema modes (${modesListed.join(', ')}). ` +
|
|
271
|
+
'Choose one. See DECLARATIVE_CONFIG_SPEC.md §3.4', { moduleId, modesListed, filePath }, options?.cause, options?.traceId, options?.retryable, options?.aiGuidance, options?.userFixable, options?.suggestion);
|
|
272
|
+
this.name = 'BindingSchemaModeConflictError';
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
/**
|
|
276
|
+
* Raised when auto_schema: strict is requested but the inferred schema contains
|
|
277
|
+
* features incompatible with strict mode (e.g., `anyOf`, `oneOf`, recursive `$ref`).
|
|
278
|
+
* See DECLARATIVE_CONFIG_SPEC.md §6.2.
|
|
279
|
+
*/
|
|
280
|
+
export class BindingStrictSchemaIncompatibleError extends ModuleError {
|
|
281
|
+
static DEFAULT_RETRYABLE = false;
|
|
282
|
+
constructor(moduleId, featuresListed, filePath, line, options) {
|
|
283
|
+
const loc = filePath ? (line !== undefined ? `${filePath}:${line}: ` : `${filePath}: `) : '';
|
|
284
|
+
super('BINDING_STRICT_SCHEMA_INCOMPATIBLE', `${loc}binding '${moduleId}' uses auto_schema: strict but inferred schema ` +
|
|
285
|
+
`contains incompatible features: ${featuresListed.join(', ')}. ` +
|
|
286
|
+
'See DECLARATIVE_CONFIG_SPEC.md §6.2', { moduleId, featuresListed, filePath, line }, options?.cause, options?.traceId, options?.retryable, options?.aiGuidance, options?.userFixable, options?.suggestion);
|
|
287
|
+
this.name = 'BindingStrictSchemaIncompatibleError';
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
/**
|
|
291
|
+
* Raised when a binding entry field violates a configured policy limit
|
|
292
|
+
* (e.g., description exceeds policy.max_description_length).
|
|
293
|
+
* See DECLARATIVE_CONFIG_SPEC.md §7.1 and §9.
|
|
294
|
+
*/
|
|
295
|
+
export class BindingPolicyViolationError extends ModuleError {
|
|
296
|
+
static DEFAULT_RETRYABLE = false;
|
|
297
|
+
constructor(moduleId, fieldName, policyPath, reason, limitValue, filePath, line, options) {
|
|
298
|
+
const loc = filePath ? (line !== undefined ? `${filePath}:${line}: ` : `${filePath}: `) : '';
|
|
299
|
+
super('BINDING_POLICY_VIOLATION', `${loc}binding '${moduleId}' field '${fieldName}' violates policy ` +
|
|
300
|
+
`'${policyPath}': ${reason} (configured limit: ${String(limitValue)}). ` +
|
|
301
|
+
'Adjust the limit in apcore.yaml or shorten the value.', { moduleId, fieldName, policyPath, reason, limitValue, filePath, line }, options?.cause, options?.traceId, options?.retryable, options?.aiGuidance, options?.userFixable, options?.suggestion);
|
|
302
|
+
this.name = 'BindingPolicyViolationError';
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
/**
|
|
306
|
+
* Raised when a function parameter has no type annotation or a forward
|
|
307
|
+
* reference cannot be resolved during auto-schema inference.
|
|
308
|
+
*/
|
|
309
|
+
export class FuncMissingTypeHintError extends ModuleError {
|
|
310
|
+
static DEFAULT_RETRYABLE = false;
|
|
311
|
+
constructor(functionName, parameterName, options) {
|
|
312
|
+
super('FUNC_MISSING_TYPE_HINT', `Parameter '${parameterName}' in function '${functionName}' has no type annotation. ` +
|
|
313
|
+
`Add a type hint like '${parameterName}: string'.`, { functionName, parameterName }, options?.cause, options?.traceId, options?.retryable, options?.aiGuidance, options?.userFixable, options?.suggestion);
|
|
314
|
+
this.name = 'FuncMissingTypeHintError';
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
/**
|
|
318
|
+
* Raised when a function has no return type annotation during auto-schema
|
|
319
|
+
* inference.
|
|
320
|
+
*/
|
|
321
|
+
export class FuncMissingReturnTypeError extends ModuleError {
|
|
322
|
+
static DEFAULT_RETRYABLE = false;
|
|
323
|
+
constructor(functionName, options) {
|
|
324
|
+
super('FUNC_MISSING_RETURN_TYPE', `Function '${functionName}' has no return type annotation. Add a return type like ': Promise<Record<string, unknown>>'.`, { functionName }, options?.cause, options?.traceId, options?.retryable, options?.aiGuidance, options?.userFixable, options?.suggestion);
|
|
325
|
+
this.name = 'FuncMissingReturnTypeError';
|
|
243
326
|
}
|
|
244
327
|
}
|
|
245
328
|
export class BindingFileInvalidError extends ModuleError {
|
|
@@ -256,25 +339,27 @@ export class CircularDependencyError extends ModuleError {
|
|
|
256
339
|
this.name = 'CircularDependencyError';
|
|
257
340
|
}
|
|
258
341
|
}
|
|
259
|
-
export class
|
|
342
|
+
export class ModuleLoadError extends ModuleError {
|
|
260
343
|
static DEFAULT_RETRYABLE = false;
|
|
261
|
-
constructor(moduleId,
|
|
262
|
-
super('
|
|
263
|
-
this.name = '
|
|
344
|
+
constructor(moduleId, reason, options) {
|
|
345
|
+
super('MODULE_LOAD_ERROR', `Failed to load module '${moduleId}': ${reason}`, { moduleId, reason }, options?.cause, options?.traceId, options?.retryable, options?.aiGuidance, options?.userFixable, options?.suggestion);
|
|
346
|
+
this.name = 'ModuleLoadError';
|
|
264
347
|
}
|
|
265
348
|
}
|
|
266
|
-
export class
|
|
349
|
+
export class DependencyNotFoundError extends ModuleError {
|
|
267
350
|
static DEFAULT_RETRYABLE = false;
|
|
268
|
-
constructor(
|
|
269
|
-
super('
|
|
270
|
-
|
|
351
|
+
constructor(moduleId, dependencyId, options) {
|
|
352
|
+
super('DEPENDENCY_NOT_FOUND', `Module '${moduleId}' has unsatisfied required dependency '${dependencyId}'`, { moduleId, dependencyId }, options?.cause, options?.traceId, options?.retryable, options?.aiGuidance ??
|
|
353
|
+
`Module '${moduleId}' declares a required dependency on '${dependencyId}', but no such module is registered. Either register '${dependencyId}' before loading '${moduleId}', mark the dependency as optional, or remove it.`, options?.userFixable, options?.suggestion);
|
|
354
|
+
this.name = 'DependencyNotFoundError';
|
|
271
355
|
}
|
|
272
356
|
}
|
|
273
|
-
export class
|
|
357
|
+
export class DependencyVersionMismatchError extends ModuleError {
|
|
274
358
|
static DEFAULT_RETRYABLE = false;
|
|
275
|
-
constructor(moduleId,
|
|
276
|
-
super('
|
|
277
|
-
|
|
359
|
+
constructor(moduleId, dependencyId, required, actual, options) {
|
|
360
|
+
super('DEPENDENCY_VERSION_MISMATCH', `Module '${moduleId}' requires dependency '${dependencyId}' version '${required}', but registered version is '${actual}'`, { moduleId, dependencyId, required, actual }, options?.cause, options?.traceId, options?.retryable, options?.aiGuidance ??
|
|
361
|
+
`Module '${moduleId}' declares dependency '${dependencyId}' with version constraint '${required}', but the registered version is '${actual}'. Either upgrade the dependency, relax the constraint, or register a compatible version.`, options?.userFixable, options?.suggestion);
|
|
362
|
+
this.name = 'DependencyVersionMismatchError';
|
|
278
363
|
}
|
|
279
364
|
}
|
|
280
365
|
export class ReloadFailedError extends ModuleError {
|
|
@@ -398,53 +483,77 @@ export class ErrorFormatterDuplicateError extends ModuleError {
|
|
|
398
483
|
this.name = 'ErrorFormatterDuplicateError';
|
|
399
484
|
}
|
|
400
485
|
}
|
|
486
|
+
export class TaskLimitExceededError extends ModuleError {
|
|
487
|
+
static DEFAULT_RETRYABLE = true;
|
|
488
|
+
constructor(maxTasks, options) {
|
|
489
|
+
super('TASK_LIMIT_EXCEEDED', `Task limit reached (${maxTasks})`, { maxTasks }, options?.cause, options?.traceId, options?.retryable, options?.aiGuidance, options?.userFixable, options?.suggestion);
|
|
490
|
+
this.name = 'TaskLimitExceededError';
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
export class VersionConstraintError extends ModuleError {
|
|
494
|
+
static DEFAULT_RETRYABLE = false;
|
|
495
|
+
constructor(constraint, reason, options) {
|
|
496
|
+
super('VERSION_CONSTRAINT_INVALID', `Invalid version constraint '${constraint}': ${reason}`, { constraint, reason }, options?.cause, options?.traceId, options?.retryable, options?.aiGuidance ??
|
|
497
|
+
`Constraint '${constraint}' is not a valid semver expression. ` +
|
|
498
|
+
`Use forms like '1.2.3', '>=1.2.0,<2.0.0', '^1.2.3', or '~1.2'. ${reason}`, options?.userFixable, options?.suggestion);
|
|
499
|
+
this.name = 'VersionConstraintError';
|
|
500
|
+
}
|
|
501
|
+
}
|
|
401
502
|
/**
|
|
402
503
|
* All framework error codes as constants.
|
|
403
504
|
* Use these instead of hardcoding error code strings.
|
|
404
505
|
*/
|
|
405
506
|
export const ErrorCodes = Object.freeze({
|
|
406
|
-
CONFIG_NOT_FOUND:
|
|
407
|
-
CONFIG_INVALID:
|
|
408
|
-
CONFIG_NAMESPACE_DUPLICATE:
|
|
409
|
-
CONFIG_NAMESPACE_RESERVED:
|
|
410
|
-
CONFIG_ENV_PREFIX_CONFLICT:
|
|
411
|
-
CONFIG_MOUNT_ERROR:
|
|
412
|
-
CONFIG_BIND_ERROR:
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
507
|
+
CONFIG_NOT_FOUND: 'CONFIG_NOT_FOUND',
|
|
508
|
+
CONFIG_INVALID: 'CONFIG_INVALID',
|
|
509
|
+
CONFIG_NAMESPACE_DUPLICATE: 'CONFIG_NAMESPACE_DUPLICATE',
|
|
510
|
+
CONFIG_NAMESPACE_RESERVED: 'CONFIG_NAMESPACE_RESERVED',
|
|
511
|
+
CONFIG_ENV_PREFIX_CONFLICT: 'CONFIG_ENV_PREFIX_CONFLICT',
|
|
512
|
+
CONFIG_MOUNT_ERROR: 'CONFIG_MOUNT_ERROR',
|
|
513
|
+
CONFIG_BIND_ERROR: 'CONFIG_BIND_ERROR',
|
|
514
|
+
CONFIG_ENV_MAP_CONFLICT: 'CONFIG_ENV_MAP_CONFLICT',
|
|
515
|
+
ERROR_FORMATTER_DUPLICATE: 'ERROR_FORMATTER_DUPLICATE',
|
|
516
|
+
ACL_RULE_ERROR: 'ACL_RULE_ERROR',
|
|
517
|
+
ACL_DENIED: 'ACL_DENIED',
|
|
518
|
+
MODULE_NOT_FOUND: 'MODULE_NOT_FOUND',
|
|
519
|
+
MODULE_DISABLED: 'MODULE_DISABLED',
|
|
520
|
+
MODULE_TIMEOUT: 'MODULE_TIMEOUT',
|
|
521
|
+
MODULE_LOAD_ERROR: 'MODULE_LOAD_ERROR',
|
|
522
|
+
RELOAD_FAILED: 'RELOAD_FAILED',
|
|
523
|
+
EXECUTION_CANCELLED: 'EXECUTION_CANCELLED',
|
|
524
|
+
MODULE_EXECUTE_ERROR: 'MODULE_EXECUTE_ERROR',
|
|
525
|
+
SCHEMA_VALIDATION_ERROR: 'SCHEMA_VALIDATION_ERROR',
|
|
526
|
+
SCHEMA_NOT_FOUND: 'SCHEMA_NOT_FOUND',
|
|
527
|
+
SCHEMA_PARSE_ERROR: 'SCHEMA_PARSE_ERROR',
|
|
528
|
+
SCHEMA_CIRCULAR_REF: 'SCHEMA_CIRCULAR_REF',
|
|
529
|
+
CALL_DEPTH_EXCEEDED: 'CALL_DEPTH_EXCEEDED',
|
|
530
|
+
CIRCULAR_CALL: 'CIRCULAR_CALL',
|
|
531
|
+
CALL_FREQUENCY_EXCEEDED: 'CALL_FREQUENCY_EXCEEDED',
|
|
532
|
+
GENERAL_INVALID_INPUT: 'GENERAL_INVALID_INPUT',
|
|
533
|
+
GENERAL_INTERNAL_ERROR: 'GENERAL_INTERNAL_ERROR',
|
|
534
|
+
FUNC_MISSING_TYPE_HINT: 'FUNC_MISSING_TYPE_HINT',
|
|
535
|
+
FUNC_MISSING_RETURN_TYPE: 'FUNC_MISSING_RETURN_TYPE',
|
|
536
|
+
BINDING_INVALID_TARGET: 'BINDING_INVALID_TARGET',
|
|
537
|
+
BINDING_MODULE_NOT_FOUND: 'BINDING_MODULE_NOT_FOUND',
|
|
538
|
+
BINDING_CALLABLE_NOT_FOUND: 'BINDING_CALLABLE_NOT_FOUND',
|
|
539
|
+
BINDING_NOT_CALLABLE: 'BINDING_NOT_CALLABLE',
|
|
540
|
+
BINDING_SCHEMA_MISSING: 'BINDING_SCHEMA_MISSING',
|
|
541
|
+
BINDING_SCHEMA_INFERENCE_FAILED: 'BINDING_SCHEMA_INFERENCE_FAILED',
|
|
542
|
+
BINDING_SCHEMA_MODE_CONFLICT: 'BINDING_SCHEMA_MODE_CONFLICT',
|
|
543
|
+
BINDING_STRICT_SCHEMA_INCOMPATIBLE: 'BINDING_STRICT_SCHEMA_INCOMPATIBLE',
|
|
544
|
+
BINDING_POLICY_VIOLATION: 'BINDING_POLICY_VIOLATION',
|
|
545
|
+
BINDING_FILE_INVALID: 'BINDING_FILE_INVALID',
|
|
546
|
+
CIRCULAR_DEPENDENCY: 'CIRCULAR_DEPENDENCY',
|
|
547
|
+
MIDDLEWARE_CHAIN_ERROR: 'MIDDLEWARE_CHAIN_ERROR',
|
|
548
|
+
APPROVAL_DENIED: 'APPROVAL_DENIED',
|
|
549
|
+
APPROVAL_TIMEOUT: 'APPROVAL_TIMEOUT',
|
|
550
|
+
APPROVAL_PENDING: 'APPROVAL_PENDING',
|
|
551
|
+
VERSION_INCOMPATIBLE: 'VERSION_INCOMPATIBLE',
|
|
552
|
+
ERROR_CODE_COLLISION: 'ERROR_CODE_COLLISION',
|
|
553
|
+
GENERAL_NOT_IMPLEMENTED: 'GENERAL_NOT_IMPLEMENTED',
|
|
554
|
+
DEPENDENCY_NOT_FOUND: 'DEPENDENCY_NOT_FOUND',
|
|
555
|
+
DEPENDENCY_VERSION_MISMATCH: 'DEPENDENCY_VERSION_MISMATCH',
|
|
556
|
+
TASK_LIMIT_EXCEEDED: 'TASK_LIMIT_EXCEEDED',
|
|
557
|
+
VERSION_CONSTRAINT_INVALID: 'VERSION_CONSTRAINT_INVALID',
|
|
449
558
|
});
|
|
450
559
|
//# sourceMappingURL=errors.js.map
|