@cherwell/emdash-crm 0.0.0-stage → 0.1.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.
@@ -0,0 +1,332 @@
1
+ <!-- Generated by scripts/docs.mjs from emdash-plugin.jsonc and the build output. Do not edit; run `pnpm run docs`. -->
2
+ # CRM: reference
3
+
4
+ Exact facts about `@cherwell/emdash-crm` 0.1.0 (registry slug `crm`), generated from its manifest and build. For what it does and how to set it up, read [the README](../README.md).
5
+
6
+ ## Package
7
+
8
+ | Import | What it is |
9
+ | --- | --- |
10
+ | `@cherwell/emdash-crm` | The plugin descriptor: pass it to `sandboxed` (or `plugins`) in `emdash()` in astro.config. |
11
+ | `@cherwell/emdash-crm/sandbox` | The plugin's runtime bundle (what the sandbox loads). |
12
+ | `@cherwell/emdash-crm/testing` | Site helpers for your Astro pages and middleware (see [Site helpers](#site-helpers)). |
13
+
14
+ Requires EmDash `>=1.0.0`. Licence: MIT.
15
+
16
+ ## Capabilities
17
+
18
+ What the plugin asks permission for when you install it, and why.
19
+
20
+ | Capability | Why |
21
+ | --- | --- |
22
+ | `content:read` | |
23
+ | `network:request:unrestricted` | |
24
+
25
+ No fixed host allow-list (`allowedHosts` is empty).
26
+
27
+ ## Settings
28
+
29
+ Set under **Admin ▸ Plugins ▸ CRM ▸ Settings**. Keys are what the API and `ctx.kv` use.
30
+
31
+ | Key | Type | Default | Label |
32
+ | --- | --- | --- | --- |
33
+ | `roles` | string | | Roles and permissions as JSON, highest role first (see the README); empty uses the defaults |
34
+ | `ownerRole` | string | `owner` | The role that owns an organisation |
35
+ | `billingRole` | string | `billing` | The role that gets renewal reminders (used by Memberships) |
36
+ | `notifyPermission` | string | `notify` | Permission that receives notifications about an organisation's entries |
37
+ | `contactRole` | string | `contact` | Role for people added without one (imports, staff) |
38
+ | `orgFields` | string | | Custom fields on organisations (JSON; see the README) |
39
+ | `personFields` | string | | Custom fields on people (JSON; see the README) |
40
+ | `timeZone` | string | `UTC` | Time zone for due dates (IANA name, e.g. Europe/London) |
41
+ | `serviceKey` | secret | | Service key: give the same value to plugins that build on the CRM (Memberships and others) |
42
+ | `webhookSecret` | secret | | Webhook signing secret |
43
+ | `callBudget` | number (10–10000) | `28` | Host calls per background run (28 suits a Cloudflare sandbox; raise it when running in-process) |
44
+ | `auditDays` | number (30–3650) | `730` | Keep the audit trail for (days) |
45
+ | `deliveryDays` | number (1–365) | `30` | Keep webhook delivery records for (days) |
46
+
47
+ ## Storage
48
+
49
+ Plugin-owned collections (EmDash plugin storage), with their indexes.
50
+
51
+ | Collection | Indexes | Unique |
52
+ | --- | --- | --- |
53
+ | `organisations` | `status`, `nameKey`, `email`, `updatedAt`, `status+nameKey` | |
54
+ | `people` | `nameKey`, `createdAt` | `email` |
55
+ | `links` | `orgId`, `personId`, `role` | `key` |
56
+ | `activities` | `orgId`, `createdAt`, `orgId+createdAt` | |
57
+ | `tasks` | `orgId`, `personId`, `assignee`, `dueOn`, `done`, `done+dueOn`, `done+assignee`, `orgId+done` | |
58
+ | `audit` | `at`, `target`, `actor`, `target+at` | |
59
+ | `webhooks` | `createdAt` | |
60
+ | `deliveries` | `status`, `createdAt`, `status+nextAt` | |
61
+ | `rate_limits` | `expiresAt` | |
62
+
63
+ ## Admin pages
64
+
65
+ | Path | Label | Group |
66
+ | --- | --- | --- |
67
+ | `/organisations` | Organisations | CRM |
68
+ | `/tasks` | Tasks | CRM |
69
+ | `/import` | Import | CRM |
70
+ | `/privacy` | Data requests | CRM |
71
+ | `/webhooks` | Webhooks | CRM |
72
+ | `/audit` | Audit trail | CRM |
73
+
74
+ Dashboard widgets: CRM (`overview`, half).
75
+
76
+ ## Hooks
77
+
78
+ - `plugin:activate`
79
+ - `cron`
80
+
81
+ ## Routes
82
+
83
+ Served at `/_emdash/api/plugins/crm/<route>`. Public routes need no EmDash session; the others need the permission shown.
84
+
85
+ | Route | Methods | Access | Notes |
86
+ | --- | --- | --- | --- |
87
+ | `service/config` | POST | public (needs `x-crm-service-key`) | json body |
88
+ | `service/person` | POST | public (needs `x-crm-service-key`) | json body |
89
+ | `service/organisation` | POST | public (needs `x-crm-service-key`) | json body |
90
+ | `service/organisations` | POST | public (needs `x-crm-service-key`) | json body |
91
+ | `service/entry-owner` | POST | public (needs `x-crm-service-key`) | json body |
92
+ | `service/timeline` | POST | public (needs `x-crm-service-key`) | json body |
93
+ | `service/organisation/create` | POST | public (needs `x-crm-service-key`) | json body |
94
+ | `service/organisation/update` | POST | public (needs `x-crm-service-key`) | json body |
95
+ | `service/person/ensure` | POST | public (needs `x-crm-service-key`) | json body |
96
+ | `service/link` | POST | public (needs `x-crm-service-key`) | json body |
97
+ | `service/activity` | POST | public (needs `x-crm-service-key`) | json body |
98
+ | `service/record` | POST | public (needs `x-crm-service-key`) | json body |
99
+ | `privacy/download` | GET | public | raw response |
100
+ | `organisations/list` | POST | `content:edit_any` | |
101
+ | `organisations/get` | POST | `content:edit_any` | |
102
+ | `organisations/create` | POST | `content:edit_any` | |
103
+ | `organisations/update` | POST | `content:edit_any` | |
104
+ | `people/find` | POST | `content:edit_any` | |
105
+ | `people/update` | POST | `content:edit_any` | |
106
+ | `activities/add` | POST | `content:edit_any` | |
107
+ | `tasks/list` | POST | `content:edit_any` | |
108
+ | `tasks/create` | POST | `content:edit_any` | |
109
+ | `tasks/complete` | POST | `content:edit_any` | |
110
+ | `privacy/export` | POST | `users:manage` | |
111
+ | `privacy/erase` | POST | `users:manage` | |
112
+ | `admin` | POST | `content:edit_any` | |
113
+
114
+ ## MCP tools
115
+
116
+ Available to AI agents through EmDash's MCP server, with the same permissions as the route each calls.
117
+
118
+ ### `crm_organisations_list`
119
+
120
+ List CRM organisations by name prefix or status, with cursor paging.
121
+
122
+ Route `organisations/list`; needs `content:edit_any`.
123
+
124
+ | Input | Type | Required | Notes |
125
+ | --- | --- | --- | --- |
126
+ | `q` | string | | max length 80 |
127
+ | `status` | "prospect" \| "active" \| "lapsed" \| "archived" | | |
128
+ | `cursor` | string | | max length 500 |
129
+ | `limit` | integer | | ≥ 1, ≤ 100 |
130
+
131
+ ### `crm_organisation_get`
132
+
133
+ Read one organisation with its people and roles, active plans and recent timeline.
134
+
135
+ Route `organisations/get`; needs `content:edit_any`.
136
+
137
+ | Input | Type | Required | Notes |
138
+ | --- | --- | --- | --- |
139
+ | `id` | string | yes | min length 1, max length 40 |
140
+
141
+ ### `crm_organisation_create`
142
+
143
+ Add an organisation to the CRM.
144
+
145
+ Route `organisations/create`; needs `content:edit_any`.
146
+
147
+ | Input | Type | Required | Notes |
148
+ | --- | --- | --- | --- |
149
+ | `name` | string | yes | min length 1, max length 160 |
150
+ | `status` | "prospect" \| "active" \| "lapsed" \| "archived" | | |
151
+ | `email` | string \| "" | | |
152
+ | `phone` | string | | max length 40 |
153
+ | `website` | string | | max length 500 |
154
+ | `address` | object | | |
155
+ | `tags` | array | | |
156
+ | `entries` | array | | |
157
+ | `notifyEmails` | array | | |
158
+ | `custom` | object | | |
159
+
160
+ ### `crm_organisation_update`
161
+
162
+ Change an organisation's details, tags, status or linked entries.
163
+
164
+ Route `organisations/update`; needs `content:edit_any`; **destructive**.
165
+
166
+ | Input | Type | Required | Notes |
167
+ | --- | --- | --- | --- |
168
+ | `name` | string | | min length 1, max length 160 |
169
+ | `status` | "prospect" \| "active" \| "lapsed" \| "archived" | | |
170
+ | `email` | string \| "" | | |
171
+ | `phone` | string | | max length 40 |
172
+ | `website` | string | | max length 500 |
173
+ | `address` | object | | |
174
+ | `tags` | array | | |
175
+ | `entries` | array | | |
176
+ | `notifyEmails` | array | | |
177
+ | `custom` | object | | |
178
+ | `id` | string | yes | |
179
+
180
+ ### `crm_people_find`
181
+
182
+ Find people by exact email or name prefix.
183
+
184
+ Route `people/find`; needs `content:edit_any`.
185
+
186
+ | Input | Type | Required | Notes |
187
+ | --- | --- | --- | --- |
188
+ | `email` | string | | max length 254 |
189
+ | `q` | string | | max length 80 |
190
+ | `cursor` | string | | max length 500 |
191
+
192
+ ### `crm_note_add`
193
+
194
+ Add a note, call, email or meeting to an organisation's timeline; visibleToMember shows it to the organisation.
195
+
196
+ Route `activities/add`; needs `content:edit_any`.
197
+
198
+ | Input | Type | Required | Notes |
199
+ | --- | --- | --- | --- |
200
+ | `orgId` | string | yes | min length 1, max length 40 |
201
+ | `text` | string | yes | min length 1, max length 4000 |
202
+ | `kind` | "note" \| "call" \| "email" \| "meeting" | | |
203
+ | `visibleToMember` | boolean | | |
204
+
205
+ ### `crm_tasks_list`
206
+
207
+ List open follow-up tasks, optionally only mine.
208
+
209
+ Route `tasks/list`; needs `content:edit_any`.
210
+
211
+ | Input | Type | Required | Notes |
212
+ | --- | --- | --- | --- |
213
+ | `mine` | boolean | | |
214
+ | `cursor` | string | | |
215
+
216
+ ### `crm_task_create`
217
+
218
+ Create a follow-up task with a due date.
219
+
220
+ Route `tasks/create`; needs `content:edit_any`.
221
+
222
+ | Input | Type | Required | Notes |
223
+ | --- | --- | --- | --- |
224
+ | `title` | string | yes | min length 1, max length 200 |
225
+ | `orgId` | string \| null | | |
226
+ | `personId` | string \| null | | |
227
+ | `assignee` | string \| null | | |
228
+ | `dueOn` | string | yes | |
229
+
230
+ ## Site helpers
231
+
232
+ Type declarations of the site helpers, as published. Import them from the paths shown.
233
+
234
+ ### `@cherwell/emdash-crm/testing`
235
+
236
+ ```ts
237
+ //#region src/testing.d.ts
238
+ /**
239
+ * A fake CRM service API (emdash-plugins/docs/crm-service.md), answering
240
+ * `POST {site}/_emdash/api/plugins/crm/service/<route>` from memory. Give
241
+ * `crm.fetch` to `createTestContext({ fetch })` and a plugin built on the
242
+ * CRM (claims, members) talks to it as it would to the real one: the same
243
+ * key header, the same `{ data: { ok, ... } }` answers and the same refusals
244
+ * (SERVICE_KEY, NOT_FOUND, ENTRY_TAKEN, LAST_OWNER, ROLE_UNKNOWN, ALREADY_MEMBER).
245
+ *
246
+ * import { fakeCrm } from "@cherwell/emdash-crm/testing";
247
+ */
248
+ declare const CRM_KEY = "crm-service-key-0123456789";
249
+ type OrgStatus = "prospect" | "active" | "lapsed" | "archived";
250
+ interface FakeOrg {
251
+ id: string;
252
+ name: string;
253
+ status: OrgStatus;
254
+ email: string | null;
255
+ phone: string | null;
256
+ website: string | null;
257
+ address: Record<string, string> | null;
258
+ entries: string[];
259
+ notifyEmails: string[];
260
+ plans: Record<string, string>;
261
+ renewals: Record<string, string>;
262
+ }
263
+ interface FakePerson {
264
+ id: string;
265
+ name: string;
266
+ email: string;
267
+ }
268
+ interface FakeLink {
269
+ orgId: string;
270
+ personId: string;
271
+ role: string;
272
+ jobTitle: string | null;
273
+ primary: boolean;
274
+ /** Set when the place ended. */
275
+ ended: boolean;
276
+ }
277
+ interface FakeActivity {
278
+ orgId: string;
279
+ kind: string;
280
+ text: string;
281
+ by: string | null;
282
+ byName: string | null;
283
+ visibleToMember: boolean;
284
+ at: string;
285
+ }
286
+ interface FakeRecord {
287
+ actor: string;
288
+ action: string;
289
+ target: string;
290
+ before?: unknown;
291
+ after?: unknown;
292
+ event?: string;
293
+ data?: Record<string, unknown>;
294
+ }
295
+ declare const DEFAULT_ROLES: Record<string, string[]>;
296
+ interface FakeCrmOptions {
297
+ key?: string;
298
+ site?: string;
299
+ roles?: Record<string, string[]>;
300
+ ownerRole?: string;
301
+ billingRole?: string;
302
+ notifyPermission?: string;
303
+ contactRole?: string;
304
+ }
305
+ declare function fakeCrm(opts?: FakeCrmOptions): {
306
+ orgs: Map<string, FakeOrg>;
307
+ people: Map<string, FakePerson>;
308
+ links: FakeLink[];
309
+ activities: FakeActivity[];
310
+ records: FakeRecord[];
311
+ calls: {
312
+ route: string;
313
+ body: any;
314
+ }[];
315
+ key: string; /** Answers every call with UNAVAILABLE-making junk while true. */
316
+ down: boolean;
317
+ addOrg(o: Partial<FakeOrg> & {
318
+ name: string;
319
+ }): string;
320
+ addPerson(email: string, name?: string): string;
321
+ link(orgId: string, personId: string, role: string, extra?: Partial<FakeLink>): void; /** An organisation with one primary owner. */
322
+ orgWithOwner(name: string, ownerEmail: string, extra?: Partial<FakeOrg>, ownerName?: string): string;
323
+ roleOf(orgId: string, email: string): string | null;
324
+ routes: () => string[]; /** Refuse the next call to `route` with `code`. */
325
+ refuseNext(route: string, code: string): void;
326
+ answer(route: string, b: any): object; /** For `createTestContext({ fetch })`. */
327
+ fetch(url: string, init?: RequestInit): Promise<Response>;
328
+ };
329
+ type FakeCrm = ReturnType<typeof fakeCrm>;
330
+ //#endregion
331
+ export { CRM_KEY, DEFAULT_ROLES, FakeActivity, FakeCrm, FakeCrmOptions, FakeLink, FakeOrg, FakePerson, FakeRecord, OrgStatus, fakeCrm };
332
+ ```
@@ -0,0 +1,11 @@
1
+ <!-- Generated by scripts/docs.mjs. Do not edit; run `pnpm run docs`. -->
2
+ Report a vulnerability privately through [GitHub security advisories](https://github.com/cherwell-studio/emdash-plugins/security/advisories/new), not a public issue. We reply within three working days. The latest minor release is supported.
3
+
4
+ **What it may do.** CRM runs in EmDash's sandbox and can use only what it declares:
5
+
6
+ - `content:read`
7
+ - `network:request:unrestricted`
8
+
9
+ **What it stores.** Its own plugin-storage collections (`organisations`, `people`, `links`, `activities`, `tasks`, `audit`, `webhooks`, `deliveries`, `rate_limits`) and settings. Secrets are `secret` settings, encrypted by EmDash.
10
+
11
+ **Public routes.** `service/config`, `service/person`, `service/organisation`, `service/organisations`, `service/entry-owner`, `service/timeline`, `service/organisation/create`, `service/organisation/update`, `service/person/ensure`, `service/link`, `service/activity`, `service/record`, `privacy/download` answer without a session and validate their input. Everything else needs an EmDash login with the permission listed in the [reference](https://raw.githubusercontent.com/cherwell-studio/emdash-plugins/main/plugins/crm/docs/reference.md).
@@ -0,0 +1,74 @@
1
+ {
2
+ "$schema": "./node_modules/@emdash-cms/plugin-cli/schemas/emdash-plugin.schema.json",
3
+
4
+ "slug": "crm",
5
+ "publisher": "did:plc:aaaaaaaaaaaaaaaaaaaaaaaa",
6
+ "name": "CRM",
7
+ "license": "MIT",
8
+ "author": { "name": "Cherwell Studio", "url": "https://cherwell.studio" },
9
+ "security": { "url": "https://github.com/cherwell-studio/emdash-plugins/security/advisories/new" },
10
+ "description": "Organisations, people and their roles, with a timeline, tasks, imports, data requests and a service API for plugins that build on it.",
11
+ "keywords": ["crm", "organisations", "contacts", "directory", "partners"],
12
+ "repo": "https://github.com/cherwell-studio/emdash-plugins",
13
+
14
+ // The registry listing: long-form pages (each at most 2,000 characters) and images.
15
+ "sections": {
16
+ "description": { "file": "docs/overview.md" },
17
+ "installation": { "file": "docs/install.md" },
18
+ "faq": { "file": "docs/faq.md" },
19
+ "changelog": { "file": "CHANGELOG.md" },
20
+ "security": { "file": "docs/security.md" }
21
+ },
22
+ "release": {
23
+ "requires": { "env:emdash": ">=1.0.0" },
24
+ "artifacts": {
25
+ "icon": { "file": "assets/icon.png" },
26
+ "banner": { "file": "assets/banner.png" }
27
+ }
28
+ },
29
+
30
+ // Why each capability:
31
+ // - content:read: link organisations to the entries they run, and show those entries' titles.
32
+ // - network:request:unrestricted: webhooks to addresses you enter.
33
+ "capabilities": ["content:read", "network:request:unrestricted"],
34
+ "allowedHosts": [],
35
+
36
+ "storage": {
37
+ "organisations": { "indexes": ["status", "nameKey", "email", "updatedAt", ["status", "nameKey"]] },
38
+ "people": { "indexes": ["nameKey", "createdAt"], "uniqueIndexes": ["email"] },
39
+ "links": { "indexes": ["orgId", "personId", "role"], "uniqueIndexes": ["key"] },
40
+ "activities": { "indexes": ["orgId", "createdAt", ["orgId", "createdAt"]] },
41
+ "tasks": { "indexes": ["orgId", "personId", "assignee", "dueOn", "done", ["done", "dueOn"], ["done", "assignee"], ["orgId", "done"]] },
42
+ "audit": { "indexes": ["at", "target", "actor", ["target", "at"]] },
43
+ "webhooks": { "indexes": ["createdAt"] },
44
+ "deliveries": { "indexes": ["status", "createdAt", ["status", "nextAt"]] },
45
+ "rate_limits": { "indexes": ["expiresAt"] }
46
+ },
47
+
48
+ "admin": {
49
+ "pages": [
50
+ { "path": "/organisations", "label": "Organisations", "icon": "buildings", "group": "CRM" },
51
+ { "path": "/tasks", "label": "Tasks", "icon": "check-square", "group": "CRM" },
52
+ { "path": "/import", "label": "Import", "icon": "upload", "group": "CRM" },
53
+ { "path": "/privacy", "label": "Data requests", "icon": "shield-check", "group": "CRM" },
54
+ { "path": "/webhooks", "label": "Webhooks", "icon": "plugs", "group": "CRM" },
55
+ { "path": "/audit", "label": "Audit trail", "icon": "clock-counter-clockwise", "group": "CRM" }
56
+ ],
57
+ "widgets": [{ "id": "overview", "title": "CRM", "size": "half" }],
58
+ "settingsSchema": {
59
+ "roles": { "type": "string", "label": "Roles and permissions as JSON, highest role first (see the README); empty uses the defaults", "multiline": true },
60
+ "ownerRole": { "type": "string", "label": "The role that owns an organisation", "default": "owner" },
61
+ "billingRole": { "type": "string", "label": "The role that gets renewal reminders (used by Memberships)", "default": "billing" },
62
+ "notifyPermission": { "type": "string", "label": "Permission that receives notifications about an organisation's entries", "default": "notify" },
63
+ "contactRole": { "type": "string", "label": "Role for people added without one (imports, staff)", "default": "contact" },
64
+ "orgFields": { "type": "string", "label": "Custom fields on organisations (JSON; see the README)", "multiline": true },
65
+ "personFields": { "type": "string", "label": "Custom fields on people (JSON; see the README)", "multiline": true },
66
+ "timeZone": { "type": "string", "label": "Time zone for due dates (IANA name, e.g. Europe/London)", "default": "UTC" },
67
+ "serviceKey": { "type": "secret", "label": "Service key: give the same value to plugins that build on the CRM (Memberships and others)" },
68
+ "webhookSecret": { "type": "secret", "label": "Webhook signing secret" },
69
+ "callBudget": { "type": "number", "label": "Host calls per background run (28 suits a Cloudflare sandbox; raise it when running in-process)", "default": 28, "min": 10, "max": 10000 },
70
+ "auditDays": { "type": "number", "label": "Keep the audit trail for (days)", "default": 730, "min": 30, "max": 3650 },
71
+ "deliveryDays": { "type": "number", "label": "Keep webhook delivery records for (days)", "default": 30, "min": 1, "max": 365 }
72
+ }
73
+ }
74
+ }
package/llms.txt ADDED
@@ -0,0 +1,20 @@
1
+ # CRM (EmDash plugin)
2
+
3
+ > Organisations, people and their roles, with a timeline, tasks, imports, data requests and a service API for plugins that build on it.
4
+
5
+ `@cherwell/emdash-crm` is a sandboxed plugin for EmDash CMS (Astro, Cloudflare Workers). Registry slug: `crm`. MIT licence. Requires EmDash >=1.0.0.
6
+
7
+ Install: Admin ▸ Plugins ▸ Browse in EmDash, or `npm install @cherwell/emdash-crm` and add it to `emdash()` in astro.config. The site helpers are imported from `@cherwell/emdash-crm/testing`.
8
+
9
+ ## Docs
10
+
11
+ - [README](https://raw.githubusercontent.com/cherwell-studio/emdash-plugins/main/plugins/crm/README.md): what it does, setup, site wiring, limits
12
+ - [Reference](https://raw.githubusercontent.com/cherwell-studio/emdash-plugins/main/plugins/crm/docs/reference.md): every setting, capability, storage collection, route, MCP tool and site helper signature, generated from the code
13
+ - [Installation](https://raw.githubusercontent.com/cherwell-studio/emdash-plugins/main/plugins/crm/docs/install.md): the shortest path to a working install
14
+ - [FAQ](https://raw.githubusercontent.com/cherwell-studio/emdash-plugins/main/plugins/crm/docs/faq.md): common questions and troubleshooting
15
+
16
+ ## Optional
17
+
18
+ - [Changelog](https://raw.githubusercontent.com/cherwell-studio/emdash-plugins/main/plugins/crm/CHANGELOG.md)
19
+ - [Manifest](https://raw.githubusercontent.com/cherwell-studio/emdash-plugins/main/plugins/crm/emdash-plugin.jsonc): the plugin's declared capabilities, storage and settings
20
+ - [Source](https://github.com/cherwell-studio/emdash-plugins/blob/main/plugins/crm/src)
package/package.json CHANGED
@@ -1,6 +1,80 @@
1
1
  {
2
2
  "name": "@cherwell/emdash-crm",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "0.1.0",
4
+ "description": "Organisations, people and roles for EmDash, with a service API for plugins that build on it.",
5
+ "keywords": [
6
+ "emdash",
7
+ "emdash-plugin",
8
+ "crm",
9
+ "organisations",
10
+ "contacts"
11
+ ],
12
+ "homepage": "https://github.com/cherwell-studio/emdash-plugins/tree/main/plugins/crm#readme",
13
+ "bugs": {
14
+ "url": "https://github.com/cherwell-studio/emdash-plugins/issues"
15
+ },
16
+ "repository": {
17
+ "type": "git",
18
+ "url": "git+https://github.com/cherwell-studio/emdash-plugins.git",
19
+ "directory": "plugins/crm"
20
+ },
21
+ "license": "MIT",
22
+ "author": "Cherwell Studio (https://cherwell.studio)",
23
+ "type": "module",
24
+ "sideEffects": false,
25
+ "main": "./dist/index.mjs",
26
+ "types": "./dist/index.d.mts",
27
+ "exports": {
28
+ ".": {
29
+ "types": "./dist/index.d.mts",
30
+ "import": "./dist/index.mjs"
31
+ },
32
+ "./sandbox": "./dist/plugin.mjs",
33
+ "./testing": {
34
+ "types": "./dist/helpers/testing.d.ts",
35
+ "import": "./dist/helpers/testing.js"
36
+ }
37
+ },
38
+ "files": [
39
+ "dist",
40
+ "emdash-plugin.jsonc",
41
+ "assets",
42
+ "docs",
43
+ "README.md",
44
+ "CHANGELOG.md",
45
+ "LICENSE",
46
+ "llms.txt"
47
+ ],
48
+ "peerDependencies": {
49
+ "emdash": ">=1.0.0"
50
+ },
51
+ "devDependencies": {
52
+ "@emdash-cms/blocks": "^1.6.0",
53
+ "@emdash-cms/plugin-cli": "0.13.7",
54
+ "@emdash-cms/plugin-test": "^0.2.6",
55
+ "@types/node": "^24.0.0",
56
+ "@vitest/coverage-v8": "^4.1.0",
57
+ "emdash": "^1.6.0",
58
+ "tsdown": "^0.20.0",
59
+ "typescript": "^5.9.0",
60
+ "vitest": "^4.1.0",
61
+ "zod": "4.6.7",
62
+ "@cherwell/emdash-kit": "0.1.0"
63
+ },
64
+ "publishConfig": {
65
+ "access": "public"
66
+ },
67
+ "engines": {
68
+ "node": ">=22"
69
+ },
70
+ "scripts": {
71
+ "build": "emdash-plugin build && tsdown",
72
+ "dev": "emdash-plugin dev",
73
+ "validate": "emdash-plugin validate",
74
+ "typecheck": "tsc --noEmit",
75
+ "test": "vitest run",
76
+ "bundle": "emdash-plugin bundle",
77
+ "test:unit": "vitest run --project unit",
78
+ "coverage": "vitest run --project unit --coverage"
79
+ }
6
80
  }