@wickermoney/plugin-sdk 0.0.0 → 0.1.0-rc.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/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@wickermoney/plugin-sdk",
3
- "version": "0.0.0",
3
+ "version": "0.1.0-rc.4",
4
4
  "license": "Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",
7
- "url": "git+https://github.com/wickermoney/wicker-money.git",
7
+ "url": "git+https://github.com/WickerMoney/wicker-money.git",
8
8
  "directory": "packages/plugin-sdk"
9
9
  },
10
- "homepage": "https://github.com/wickermoney/wicker-money#readme",
10
+ "homepage": "https://github.com/WickerMoney/wicker-money#readme",
11
11
  "bugs": {
12
- "url": "https://github.com/wickermoney/wicker-money/issues"
12
+ "url": "https://github.com/WickerMoney/wicker-money/issues"
13
13
  },
14
14
  "type": "module",
15
15
  "main": "./dist/index.js",
@@ -1,175 +0,0 @@
1
- import { z } from 'zod';
2
- /**
3
- * Major version of this SDK. A plugin declares the major it was built against;
4
- * the host refuses anything newer than its own.
5
- */
6
- export declare const SDK_MAJOR_VERSION: 0;
7
- /** Core tables a plugin may request access to. */
8
- export declare const CORE_TABLES: readonly ["accounts", "transactions", "transaction_splits", "categories", "category_rules", "category_rule_conditions", "recurring_items"];
9
- export type CoreTableName = (typeof CORE_TABLES)[number];
10
- export declare const tableGrantSchema: z.ZodObject<{
11
- table: z.ZodEnum<{
12
- accounts: "accounts";
13
- transactions: "transactions";
14
- transaction_splits: "transaction_splits";
15
- categories: "categories";
16
- category_rules: "category_rules";
17
- category_rule_conditions: "category_rule_conditions";
18
- recurring_items: "recurring_items";
19
- }>;
20
- access: z.ZodEnum<{
21
- read: "read";
22
- write: "write";
23
- }>;
24
- }, z.core.$strip>;
25
- export type TableGrant = z.infer<typeof tableGrantSchema>;
26
- export declare const PERMISSIONS: readonly ["network:outbound", "schedule:daily", "notify"];
27
- export type Permission = (typeof PERMISSIONS)[number];
28
- /** Where on the shell a widget may mount. */
29
- export declare const WIDGET_SLOTS: readonly ["dashboard.primary", "dashboard.secondary", "account.detail"];
30
- export type WidgetSlot = (typeof WIDGET_SLOTS)[number];
31
- export declare const WIDGET_SIZES: readonly ["sm", "md", "lg", "full"];
32
- export type WidgetSize = (typeof WIDGET_SIZES)[number];
33
- export declare const pageContributionSchema: z.ZodObject<{
34
- path: z.ZodString;
35
- title: z.ZodString;
36
- nav: z.ZodOptional<z.ZodObject<{
37
- label: z.ZodString;
38
- icon: z.ZodOptional<z.ZodString>;
39
- section: z.ZodDefault<z.ZodEnum<{
40
- main: "main";
41
- reports: "reports";
42
- settings: "settings";
43
- }>>;
44
- order: z.ZodDefault<z.ZodNumber>;
45
- }, z.core.$strip>>;
46
- module: z.ZodString;
47
- }, z.core.$strip>;
48
- export type PageContribution = z.infer<typeof pageContributionSchema>;
49
- export declare const widgetContributionSchema: z.ZodObject<{
50
- id: z.ZodString;
51
- slot: z.ZodEnum<{
52
- "dashboard.primary": "dashboard.primary";
53
- "dashboard.secondary": "dashboard.secondary";
54
- "account.detail": "account.detail";
55
- }>;
56
- title: z.ZodString;
57
- defaultSize: z.ZodDefault<z.ZodEnum<{
58
- sm: "sm";
59
- md: "md";
60
- lg: "lg";
61
- full: "full";
62
- }>>;
63
- order: z.ZodDefault<z.ZodNumber>;
64
- module: z.ZodString;
65
- }, z.core.$strip>;
66
- export type WidgetContribution = z.infer<typeof widgetContributionSchema>;
67
- export declare const pluginManifestSchema: z.ZodObject<{
68
- id: z.ZodString;
69
- name: z.ZodString;
70
- version: z.ZodString;
71
- description: z.ZodDefault<z.ZodString>;
72
- author: z.ZodDefault<z.ZodString>;
73
- sdkVersion: z.ZodNumber;
74
- requiredTables: z.ZodDefault<z.ZodArray<z.ZodObject<{
75
- table: z.ZodEnum<{
76
- accounts: "accounts";
77
- transactions: "transactions";
78
- transaction_splits: "transaction_splits";
79
- categories: "categories";
80
- category_rules: "category_rules";
81
- category_rule_conditions: "category_rule_conditions";
82
- recurring_items: "recurring_items";
83
- }>;
84
- access: z.ZodEnum<{
85
- read: "read";
86
- write: "write";
87
- }>;
88
- }, z.core.$strip>>>;
89
- permissions: z.ZodDefault<z.ZodArray<z.ZodEnum<{
90
- "network:outbound": "network:outbound";
91
- "schedule:daily": "schedule:daily";
92
- notify: "notify";
93
- }>>>;
94
- remoteEntry: z.ZodString;
95
- contributes: z.ZodDefault<z.ZodObject<{
96
- pages: z.ZodDefault<z.ZodArray<z.ZodObject<{
97
- path: z.ZodString;
98
- title: z.ZodString;
99
- nav: z.ZodOptional<z.ZodObject<{
100
- label: z.ZodString;
101
- icon: z.ZodOptional<z.ZodString>;
102
- section: z.ZodDefault<z.ZodEnum<{
103
- main: "main";
104
- reports: "reports";
105
- settings: "settings";
106
- }>>;
107
- order: z.ZodDefault<z.ZodNumber>;
108
- }, z.core.$strip>>;
109
- module: z.ZodString;
110
- }, z.core.$strip>>>;
111
- widgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
112
- id: z.ZodString;
113
- slot: z.ZodEnum<{
114
- "dashboard.primary": "dashboard.primary";
115
- "dashboard.secondary": "dashboard.secondary";
116
- "account.detail": "account.detail";
117
- }>;
118
- title: z.ZodString;
119
- defaultSize: z.ZodDefault<z.ZodEnum<{
120
- sm: "sm";
121
- md: "md";
122
- lg: "lg";
123
- full: "full";
124
- }>>;
125
- order: z.ZodDefault<z.ZodNumber>;
126
- module: z.ZodString;
127
- }, z.core.$strip>>>;
128
- endpoints: z.ZodDefault<z.ZodBoolean>;
129
- exporters: z.ZodDefault<z.ZodBoolean>;
130
- }, z.core.$strip>>;
131
- }, z.core.$strip>;
132
- export type PluginManifest = z.infer<typeof pluginManifestSchema>;
133
- /**
134
- * True when the host can load a plugin built against `pluginSdkMajor`.
135
- * Older majors are accepted; newer are refused — the same compatibility gate
136
- * the previous C# PluginHost used, which worked well.
137
- */
138
- export declare function isCompatible(pluginSdkMajor: number, hostSdkMajor?: number): boolean;
139
- export interface ManifestParseResult {
140
- readonly manifest?: PluginManifest;
141
- readonly error?: string;
142
- }
143
- /**
144
- * Validates an untrusted manifest.
145
- *
146
- * Manifests arrive from the database and, later, from third-party packages, so
147
- * they are parsed rather than cast. A malformed one is a load failure for that
148
- * plugin alone — never a crash of the host.
149
- */
150
- export declare function parseManifest(input: unknown): ManifestParseResult;
151
- /**
152
- * Module Federation container name for a plugin id.
153
- *
154
- * MF names must be valid JS identifiers, but plugin ids are reverse-domain. Both
155
- * sides derive the name from the id with this function rather than writing it
156
- * twice — a mismatch there fails at runtime with an opaque "remote not found".
157
- */
158
- export declare function federationName(pluginId: string): string;
159
- /**
160
- * How the host loads a plugin's remote entry.
161
- *
162
- * Plugins build with `target: 'esnext'` and Vite emits the entry as an ES module
163
- * with top-level `import` statements. The federation runtime defaults to
164
- * injecting a classic `<script>` tag, which parses that file as a script and
165
- * fails with "Cannot use import statement outside a module" — one opaque error
166
- * per widget, at mount time, long after the manifest validated. Declaring the
167
- * type here makes the runtime use a dynamic `import()` instead.
168
- *
169
- * This is a contract, not a preference: a remote entry that is not an ES module
170
- * will not load.
171
- */
172
- export declare const REMOTE_ENTRY_TYPE: "module";
173
- /** Route a page contribution is mounted at. The host owns this prefix. */
174
- export declare function pagePath(pluginId: string, contribution: PageContribution): string;
175
- //# sourceMappingURL=manifest.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"manifest.d.ts","sourceRoot":"","sources":["../src/manifest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB;;;GAGG;AACH,eAAO,MAAM,iBAAiB,EAAG,CAAU,CAAA;AAE3C,kDAAkD;AAClD,eAAO,MAAM,WAAW,4IAQd,CAAA;AACV,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,CAAC,CAAA;AAExD,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;iBAG3B,CAAA;AACF,MAAM,M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;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAEvD;AAED;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,iBAAiB,EAAG,QAAiB,CAAA;AAElD,0EAA0E;AAC1E,wBAAgB,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,YAAY,EAAE,gBAAgB,GAAG,MAAM,CAGjF"}
package/dist/manifest.js DELETED
@@ -1,148 +0,0 @@
1
- import { z } from 'zod';
2
- /**
3
- * Major version of this SDK. A plugin declares the major it was built against;
4
- * the host refuses anything newer than its own.
5
- */
6
- export const SDK_MAJOR_VERSION = 0;
7
- /** Core tables a plugin may request access to. */
8
- export const CORE_TABLES = [
9
- 'accounts',
10
- 'transactions',
11
- 'transaction_splits',
12
- 'categories',
13
- 'category_rules',
14
- 'category_rule_conditions',
15
- 'recurring_items',
16
- ];
17
- export const tableGrantSchema = z.object({
18
- table: z.enum(CORE_TABLES),
19
- access: z.enum(['read', 'write']),
20
- });
21
- export const PERMISSIONS = ['network:outbound', 'schedule:daily', 'notify'];
22
- /** Where on the shell a widget may mount. */
23
- export const WIDGET_SLOTS = [
24
- 'dashboard.primary',
25
- 'dashboard.secondary',
26
- 'account.detail',
27
- ];
28
- export const WIDGET_SIZES = ['sm', 'md', 'lg', 'full'];
29
- export const pageContributionSchema = z.object({
30
- /** Mounted at /p/<pluginId>/<path>. The host owns the prefix. */
31
- path: z.string().min(1),
32
- title: z.string().min(1),
33
- nav: z
34
- .object({
35
- label: z.string().min(1),
36
- icon: z.string().min(1).optional(),
37
- section: z.enum(['main', 'reports', 'settings']).default('main'),
38
- order: z.number().int().default(100),
39
- })
40
- .optional(),
41
- /** Name exposed by the plugin's Module Federation build. */
42
- module: z.string().min(1),
43
- });
44
- export const widgetContributionSchema = z.object({
45
- id: z.string().min(1),
46
- slot: z.enum(WIDGET_SLOTS),
47
- title: z.string().min(1),
48
- defaultSize: z.enum(WIDGET_SIZES).default('md'),
49
- order: z.number().int().default(100),
50
- module: z.string().min(1),
51
- });
52
- export const pluginManifestSchema = z.object({
53
- /** Reverse-domain, stable across versions. e.g. "fioneer.insights" */
54
- id: z.string().regex(/^[a-z0-9]+(\.[a-z0-9-]+)+$/, 'Must be reverse-domain, e.g. fioneer.insights'),
55
- name: z.string().min(1),
56
- version: z.string().min(1),
57
- description: z.string().default(''),
58
- author: z.string().default(''),
59
- sdkVersion: z.number().int().nonnegative(),
60
- requiredTables: z.array(tableGrantSchema).default([]),
61
- permissions: z.array(z.enum(PERMISSIONS)).default([]),
62
- /**
63
- * URL of the Module Federation entry. Relative paths resolve against the host.
64
- *
65
- * The entry must be an ES module: the host registers every remote with
66
- * `type: 'module'` and loads it with a dynamic `import()`, never a classic
67
- * script tag. See `REMOTE_ENTRY_TYPE`.
68
- */
69
- remoteEntry: z.string().min(1),
70
- contributes: z
71
- .object({
72
- pages: z.array(pageContributionSchema).default([]),
73
- widgets: z.array(widgetContributionSchema).default([]),
74
- endpoints: z.boolean().default(false),
75
- /**
76
- * True if the plugin can produce its own rows for a full data export.
77
- *
78
- * Same trust boundary as `endpoints`, and for the same reason: an
79
- * exporter runs server-side code that reads a plugin's own schema, which
80
- * only a bundled plugin's code is reviewed and sandboxed enough to do.
81
- * Core does not know `plugin_budgets` or `plugin_import_csv` exist —
82
- * this is the contribution point that lets an "export everything"
83
- * feature include them without core ever naming them.
84
- */
85
- exporters: z.boolean().default(false),
86
- })
87
- .default({ pages: [], widgets: [], endpoints: false, exporters: false }),
88
- });
89
- /**
90
- * True when the host can load a plugin built against `pluginSdkMajor`.
91
- * Older majors are accepted; newer are refused — the same compatibility gate
92
- * the previous C# PluginHost used, which worked well.
93
- */
94
- export function isCompatible(pluginSdkMajor, hostSdkMajor = SDK_MAJOR_VERSION) {
95
- return Number.isInteger(pluginSdkMajor) && pluginSdkMajor <= hostSdkMajor;
96
- }
97
- /**
98
- * Validates an untrusted manifest.
99
- *
100
- * Manifests arrive from the database and, later, from third-party packages, so
101
- * they are parsed rather than cast. A malformed one is a load failure for that
102
- * plugin alone — never a crash of the host.
103
- */
104
- export function parseManifest(input) {
105
- const parsed = pluginManifestSchema.safeParse(input);
106
- if (!parsed.success) {
107
- return {
108
- error: parsed.error.issues.map((i) => `${i.path.join('.')}: ${i.message}`).join('; '),
109
- };
110
- }
111
- if (!isCompatible(parsed.data.sdkVersion)) {
112
- return {
113
- error: `built against SDK v${parsed.data.sdkVersion}, host is v${SDK_MAJOR_VERSION} — ` +
114
- `upgrade the host to load this plugin`,
115
- };
116
- }
117
- return { manifest: parsed.data };
118
- }
119
- /**
120
- * Module Federation container name for a plugin id.
121
- *
122
- * MF names must be valid JS identifiers, but plugin ids are reverse-domain. Both
123
- * sides derive the name from the id with this function rather than writing it
124
- * twice — a mismatch there fails at runtime with an opaque "remote not found".
125
- */
126
- export function federationName(pluginId) {
127
- return pluginId.replace(/[^a-zA-Z0-9_]/g, '_');
128
- }
129
- /**
130
- * How the host loads a plugin's remote entry.
131
- *
132
- * Plugins build with `target: 'esnext'` and Vite emits the entry as an ES module
133
- * with top-level `import` statements. The federation runtime defaults to
134
- * injecting a classic `<script>` tag, which parses that file as a script and
135
- * fails with "Cannot use import statement outside a module" — one opaque error
136
- * per widget, at mount time, long after the manifest validated. Declaring the
137
- * type here makes the runtime use a dynamic `import()` instead.
138
- *
139
- * This is a contract, not a preference: a remote entry that is not an ES module
140
- * will not load.
141
- */
142
- export const REMOTE_ENTRY_TYPE = 'module';
143
- /** Route a page contribution is mounted at. The host owns this prefix. */
144
- export function pagePath(pluginId, contribution) {
145
- const clean = contribution.path.replace(/^\/+/, '');
146
- return `/p/${pluginId}/${clean}`;
147
- }
148
- //# sourceMappingURL=manifest.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"manifest.js","sourceRoot":"","sources":["../src/manifest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB;;;GAGG;AACH,MAAM,CAAC,MAAM,iBAAi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