every-plugin 0.4.2 → 0.4.4

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/dist/errors.d.ts CHANGED
@@ -1,12 +1,70 @@
1
- declare const PluginConfigurationError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").Equals<A, {}> extends true ? void : { readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }) => import("effect/Cause").YieldableError & {
2
- readonly _tag: "PluginConfigurationError";
3
- } & Readonly<A>;
4
- export declare class PluginConfigurationError extends PluginConfigurationError_base<{
5
- readonly message: string;
6
- readonly retryable: boolean;
7
- readonly cause?: Error;
8
- }> {
9
- get name(): string;
10
- }
11
- export {};
1
+ import { z } from "./zod";
2
+ /**
3
+ * Common error schemas for plugin contracts.
4
+ * Import these to ensure consistent error handling across plugins.
5
+ *
6
+ * @example
7
+ * ```typescript
8
+ * import { CommonPluginErrors } from "every-plugin/errors";
9
+ *
10
+ * export const contract = oc.router({
11
+ * getData: oc.route(...)
12
+ * .errors(CommonPluginErrors)
13
+ * });
14
+ * ```
15
+ */
16
+ export declare const CommonPluginErrors: {
17
+ readonly UNAUTHORIZED: {
18
+ readonly data: z.ZodObject<{
19
+ apiKeyProvided: z.ZodBoolean;
20
+ provider: z.ZodOptional<z.ZodString>;
21
+ authType: z.ZodOptional<z.ZodEnum<{
22
+ apiKey: "apiKey";
23
+ oauth: "oauth";
24
+ token: "token";
25
+ }>>;
26
+ }, z.core.$strip>;
27
+ };
28
+ readonly RATE_LIMITED: {
29
+ readonly data: z.ZodObject<{
30
+ retryAfter: z.ZodNumber;
31
+ remainingRequests: z.ZodOptional<z.ZodNumber>;
32
+ resetTime: z.ZodOptional<z.ZodString>;
33
+ limitType: z.ZodOptional<z.ZodEnum<{
34
+ requests: "requests";
35
+ tokens: "tokens";
36
+ bandwidth: "bandwidth";
37
+ }>>;
38
+ }, z.core.$strip>;
39
+ };
40
+ readonly SERVICE_UNAVAILABLE: {
41
+ readonly data: z.ZodObject<{
42
+ retryAfter: z.ZodOptional<z.ZodNumber>;
43
+ maintenanceWindow: z.ZodDefault<z.ZodBoolean>;
44
+ estimatedUptime: z.ZodOptional<z.ZodString>;
45
+ }, z.core.$strip>;
46
+ };
47
+ readonly BAD_REQUEST: {
48
+ readonly data: z.ZodObject<{
49
+ invalidFields: z.ZodOptional<z.ZodArray<z.ZodString>>;
50
+ validationErrors: z.ZodOptional<z.ZodArray<z.ZodObject<{
51
+ field: z.ZodString;
52
+ message: z.ZodString;
53
+ code: z.ZodOptional<z.ZodString>;
54
+ }, z.core.$strip>>>;
55
+ }, z.core.$strip>;
56
+ };
57
+ readonly NOT_FOUND: {
58
+ readonly data: z.ZodObject<{
59
+ resource: z.ZodOptional<z.ZodString>;
60
+ resourceId: z.ZodOptional<z.ZodString>;
61
+ }, z.core.$strip>;
62
+ };
63
+ readonly FORBIDDEN: {
64
+ readonly data: z.ZodObject<{
65
+ requiredPermissions: z.ZodOptional<z.ZodArray<z.ZodString>>;
66
+ action: z.ZodOptional<z.ZodString>;
67
+ }, z.core.$strip>;
68
+ };
69
+ };
12
70
  //# sourceMappingURL=errors.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":";;;AAIA,qBAAa,wBAAyB,SAAQ,8BAA6C;IAC1F,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC;IAC5B,QAAQ,CAAC,KAAK,CAAC,EAAE,KAAK,CAAC;CACvB,CAAC;IACD,IAAa,IAAI,WAAyC;CAC1D"}
1
+ {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,OAAO,CAAC;AAE1B;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6CrB,CAAC"}
package/dist/errors.js CHANGED
@@ -1,5 +1,61 @@
1
- import { Data } from "effect";
2
- // TODO: We still need this?
3
- export class PluginConfigurationError extends Data.TaggedError("PluginConfigurationError") {
4
- get name() { return "PluginConfigurationError"; }
5
- }
1
+ import { z } from "./zod";
2
+ /**
3
+ * Common error schemas for plugin contracts.
4
+ * Import these to ensure consistent error handling across plugins.
5
+ *
6
+ * @example
7
+ * ```typescript
8
+ * import { CommonPluginErrors } from "every-plugin/errors";
9
+ *
10
+ * export const contract = oc.router({
11
+ * getData: oc.route(...)
12
+ * .errors(CommonPluginErrors)
13
+ * });
14
+ * ```
15
+ */
16
+ export const CommonPluginErrors = {
17
+ UNAUTHORIZED: {
18
+ data: z.object({
19
+ apiKeyProvided: z.boolean(),
20
+ provider: z.string().optional(),
21
+ authType: z.enum(['apiKey', 'oauth', 'token']).optional(),
22
+ })
23
+ },
24
+ RATE_LIMITED: {
25
+ data: z.object({
26
+ retryAfter: z.number().int().min(1),
27
+ remainingRequests: z.number().int().min(0).optional(),
28
+ resetTime: z.string().datetime().optional(),
29
+ limitType: z.enum(['requests', 'tokens', 'bandwidth']).optional(),
30
+ })
31
+ },
32
+ SERVICE_UNAVAILABLE: {
33
+ data: z.object({
34
+ retryAfter: z.number().int().optional(),
35
+ maintenanceWindow: z.boolean().default(false),
36
+ estimatedUptime: z.string().datetime().optional(),
37
+ })
38
+ },
39
+ BAD_REQUEST: {
40
+ data: z.object({
41
+ invalidFields: z.array(z.string()).optional(),
42
+ validationErrors: z.array(z.object({
43
+ field: z.string(),
44
+ message: z.string(),
45
+ code: z.string().optional(),
46
+ })).optional(),
47
+ })
48
+ },
49
+ NOT_FOUND: {
50
+ data: z.object({
51
+ resource: z.string().optional(),
52
+ resourceId: z.string().optional(),
53
+ })
54
+ },
55
+ FORBIDDEN: {
56
+ data: z.object({
57
+ requiredPermissions: z.array(z.string()).optional(),
58
+ action: z.string().optional(),
59
+ })
60
+ }
61
+ };
package/dist/plugin.d.ts CHANGED
@@ -1,7 +1,6 @@
1
1
  import type { AnyContractRouter, AnySchema, InferSchemaOutput } from "@orpc/contract";
2
2
  import type { Context, Implementer, Router } from "@orpc/server";
3
3
  import { Effect, type Scope } from "effect";
4
- import { z } from "zod";
5
4
  /**
6
5
  * Helper type that correctly constructs the config schema type
7
6
  */
@@ -18,68 +17,9 @@ export interface LoadedPluginWithBinding<TContract extends AnyContractRouter, TV
18
17
  contract: TContract;
19
18
  variables: TVariables;
20
19
  secrets: TSecrets;
21
- config: PluginConfigFor<TVariables, TSecrets>;
22
20
  context: TContext;
23
21
  };
24
22
  }
25
- /**
26
- * Common error schemas that all plugins can use
27
- * These provide consistent error handling across the plugin ecosystem
28
- */
29
- export declare const CommonPluginErrors: {
30
- readonly UNAUTHORIZED: {
31
- readonly data: z.ZodObject<{
32
- apiKeyProvided: z.ZodBoolean;
33
- provider: z.ZodOptional<z.ZodString>;
34
- authType: z.ZodOptional<z.ZodEnum<{
35
- apiKey: "apiKey";
36
- oauth: "oauth";
37
- token: "token";
38
- }>>;
39
- }, z.core.$strip>;
40
- };
41
- readonly RATE_LIMITED: {
42
- readonly data: z.ZodObject<{
43
- retryAfter: z.ZodNumber;
44
- remainingRequests: z.ZodOptional<z.ZodNumber>;
45
- resetTime: z.ZodOptional<z.ZodString>;
46
- limitType: z.ZodOptional<z.ZodEnum<{
47
- requests: "requests";
48
- tokens: "tokens";
49
- bandwidth: "bandwidth";
50
- }>>;
51
- }, z.core.$strip>;
52
- };
53
- readonly SERVICE_UNAVAILABLE: {
54
- readonly data: z.ZodObject<{
55
- retryAfter: z.ZodOptional<z.ZodNumber>;
56
- maintenanceWindow: z.ZodDefault<z.ZodBoolean>;
57
- estimatedUptime: z.ZodOptional<z.ZodString>;
58
- }, z.core.$strip>;
59
- };
60
- readonly BAD_REQUEST: {
61
- readonly data: z.ZodObject<{
62
- invalidFields: z.ZodOptional<z.ZodArray<z.ZodString>>;
63
- validationErrors: z.ZodOptional<z.ZodArray<z.ZodObject<{
64
- field: z.ZodString;
65
- message: z.ZodString;
66
- code: z.ZodOptional<z.ZodString>;
67
- }, z.core.$strip>>>;
68
- }, z.core.$strip>;
69
- };
70
- readonly NOT_FOUND: {
71
- readonly data: z.ZodObject<{
72
- resource: z.ZodOptional<z.ZodString>;
73
- resourceId: z.ZodOptional<z.ZodString>;
74
- }, z.core.$strip>;
75
- };
76
- readonly FORBIDDEN: {
77
- readonly data: z.ZodObject<{
78
- requiredPermissions: z.ZodOptional<z.ZodArray<z.ZodString>>;
79
- action: z.ZodOptional<z.ZodString>;
80
- }, z.core.$strip>;
81
- };
82
- };
83
23
  /**
84
24
  * Plugin interface
85
25
  */
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACtF,OAAO,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAEjE,OAAO,EAAE,MAAM,EAAE,KAAK,KAAK,EAAE,MAAM,QAAQ,CAAC;AAC5C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;GAEG;AACH,MAAM,MAAM,eAAe,CAAC,CAAC,SAAS,SAAS,EAAE,CAAC,SAAS,SAAS,IAAI;IACvE,SAAS,EAAE,CAAC,CAAC;IACb,OAAO,EAAE,CAAC,CAAC;CACX,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,uBAAuB,CACvC,SAAS,SAAS,iBAAiB,EACnC,UAAU,SAAS,SAAS,EAC5B,QAAQ,SAAS,SAAS,EAC1B,QAAQ,SAAS,OAAO,GAAG,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC;IAE/C,QAAO,MAAM,CAAC,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,CAAC,C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AAS,EACnB,SAAS,SAAS,iBAAiB,EACnC,QAAQ,SAAS,OAAO,GAAG,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,EAC9C,MAAM,EAAE;IACT,SAAS,EAAE,CAAC,CAAC;IACb,OAAO,EAAE,CAAC,CAAC;IACX,QAAQ,EAAE,SAAS,CAAC;IACpB,UAAU,CAAC,EAAE,CACZ,MAAM,EAAE;QAAE,SAAS,EAAE,iBAAiB,CAAC,CAAC,CAAC,CAAC;QAAC,OAAO,EAAE,iBAAiB,CAAC,CAAC,CAAC,CAAA;KAAE,KACtE,MAAM,CAAC,MAAM,CAAC,QAAQ,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;IACjD,YAAY,EAAE,CACb,OAAO,EAAE,QAAQ,EACjB,OAAO,EAAE,WAAW,CAAC,SAAS,EAAE,QAAQ,EAAE,QAAQ,CAAC,KAC/C,MAAM,CAAC,SAAS,EAAE,GAAG,CAAC,CAAC;IAC5B,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,QAAQ,KAAK,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;CAChE,GA6D4B,uBAAuB,CAAC,SAAS,EAAE,CAAC,EAAE,CAAC,EAAE,QAAQ,CAAC,CAC9E"}
package/dist/plugin.js CHANGED
@@ -1,56 +1,5 @@
1
1
  import { implement } from "@orpc/server";
2
2
  import { Effect } from "effect";
3
- import { z } from "zod";
4
- /**
5
- * Common error schemas that all plugins can use
6
- * These provide consistent error handling across the plugin ecosystem
7
- */
8
- export const CommonPluginErrors = {
9
- UNAUTHORIZED: {
10
- data: z.object({
11
- apiKeyProvided: z.boolean(),
12
- provider: z.string().optional(),
13
- authType: z.enum(['apiKey', 'oauth', 'token']).optional(),
14
- })
15
- },
16
- RATE_LIMITED: {
17
- data: z.object({
18
- retryAfter: z.number().int().min(1),
19
- remainingRequests: z.number().int().min(0).optional(),
20
- resetTime: z.string().datetime().optional(),
21
- limitType: z.enum(['requests', 'tokens', 'bandwidth']).optional(),
22
- })
23
- },
24
- SERVICE_UNAVAILABLE: {
25
- data: z.object({
26
- retryAfter: z.number().int().optional(),
27
- maintenanceWindow: z.boolean().default(false),
28
- estimatedUptime: z.string().datetime().optional(),
29
- })
30
- },
31
- BAD_REQUEST: {
32
- data: z.object({
33
- invalidFields: z.array(z.string()).optional(),
34
- validationErrors: z.array(z.object({
35
- field: z.string(),
36
- message: z.string(),
37
- code: z.string().optional(),
38
- })).optional(),
39
- })
40
- },
41
- NOT_FOUND: {
42
- data: z.object({
43
- resource: z.string().optional(),
44
- resourceId: z.string().optional(),
45
- })
46
- },
47
- FORBIDDEN: {
48
- data: z.object({
49
- requiredPermissions: z.array(z.string()).optional(),
50
- action: z.string().optional(),
51
- })
52
- }
53
- };
54
3
  /**
55
4
  * Factory function to create plugins
56
5
  */
@@ -88,7 +37,6 @@ export function createPlugin(config) {
88
37
  contract: config.contract,
89
38
  variables: config.variables,
90
39
  secrets: config.secrets,
91
- config: configSchema,
92
40
  context: {}
93
41
  };
94
42
  return PluginConstructor;
@@ -19,7 +19,7 @@ const createModuleFederationInstance = Effect.cached(Effect.sync(() => {
19
19
  singleton: true,
20
20
  requiredVersion: `^${pkg.version}`,
21
21
  eager: true,
22
- strictVersion: true,
22
+ strictVersion: false, // Allow bidirectional version compatibility
23
23
  },
24
24
  },
25
25
  effect: {
@@ -28,7 +28,7 @@ const createModuleFederationInstance = Effect.cached(Effect.sync(() => {
28
28
  singleton: true,
29
29
  requiredVersion: "^3.18.0", // Allow any 3.18.x patch version
30
30
  eager: true,
31
- strictVersion: true, // Enforce major/minor compatibility
31
+ strictVersion: false, // Allow version flexibility for compatibility
32
32
  },
33
33
  },
34
34
  zod: {
@@ -37,7 +37,7 @@ const createModuleFederationInstance = Effect.cached(Effect.sync(() => {
37
37
  singleton: true,
38
38
  requiredVersion: "^4.1.0", // Allow any 4.1.x patch version
39
39
  eager: true,
40
- strictVersion: true,
40
+ strictVersion: false, // Allow version flexibility for compatibility
41
41
  },
42
42
  },
43
43
  "@orpc/contract": {
@@ -46,7 +46,7 @@ const createModuleFederationInstance = Effect.cached(Effect.sync(() => {
46
46
  singleton: true,
47
47
  requiredVersion: "^1.8.0", // Allow any 1.8.x patch version
48
48
  eager: true,
49
- strictVersion: true,
49
+ strictVersion: false, // Allow version flexibility for compatibility
50
50
  },
51
51
  },
52
52
  "@orpc/server": {
@@ -55,7 +55,7 @@ const createModuleFederationInstance = Effect.cached(Effect.sync(() => {
55
55
  singleton: true,
56
56
  requiredVersion: "^1.8.0", // Allow any 1.8.x patch version
57
57
  eager: true,
58
- strictVersion: true,
58
+ strictVersion: false, // Allow version flexibility for compatibility
59
59
  },
60
60
  }
61
61
  },
@@ -37,7 +37,7 @@ declare const PluginLoaderService_base: Effect.Service.Class<PluginLoaderService
37
37
  context: any;
38
38
  scope: Scope.CloseableScope;
39
39
  }, PluginRuntimeError, never>;
40
- }, never, ModuleFederationService | SecretsService | RegistryService>;
40
+ }, never, ModuleFederationService | RegistryService | SecretsService>;
41
41
  }>;
42
42
  export declare class PluginLoaderService extends PluginLoaderService_base {
43
43
  }