-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpackage.json
More file actions
131 lines (131 loc) · 5.55 KB
/
Copy pathpackage.json
File metadata and controls
131 lines (131 loc) · 5.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
{
"name": "claudaborative-editing",
"version": "0.7.0",
"description": "MCP server for collaborative WordPress post editing via Yjs CRDT",
"type": "module",
"main": "dist/index.js",
"exports": {
".": "./dist/index.js",
"./prompts/definitions": "./dist/prompts/definitions.js",
"./prompts/prompt-content": "./dist/prompts/prompt-content.js",
"./prompts/registry": "./dist/prompts/registry.js",
"./server-instructions": "./dist/server-instructions.js",
"./session/session-manager": "./dist/session/session-manager.js",
"./shared/commands": "./dist/shared/commands.js",
"./tools/definitions": "./dist/tools/definitions.js",
"./tools/registry": "./dist/tools/registry.js"
},
"sideEffects": false,
"author": "Gary Pendergast",
"bin": {
"claudaborative-editing": "dist/index.js"
},
"files": [
"dist"
],
"license": "GPL-2.0-or-later",
"repository": {
"type": "git",
"url": "git+https://github.com/pento/claudaborative-editing.git"
},
"keywords": [
"mcp",
"wordpress",
"gutenberg",
"collaborative-editing",
"yjs",
"claude"
],
"engines": {
"node": ">=22.13"
},
"packageManager": "npm@12.0.2",
"devEngines": {
"runtime": {
"name": "node",
"version": "^22.22.2 || >=24.15.0",
"onFail": "warn"
},
"packageManager": {
"name": "npm",
"version": ">=12.0.0",
"onFail": "warn"
}
},
"scripts": {
"build": "tsup",
"build:all": "npm run build && npm --prefix wordpress-plugin run build",
"check:generated": "npm run generate:defs && git diff --exit-code wordpress-plugin/includes/class-command-defs.php wordpress-plugin/src/utils/command-i18n.ts",
"dev": "tsup --watch",
"dev:wp": "NODE_USE_ENV_PROXY=1 wp-playground-cli server --mount-before-install=./wordpress-plugin:/wordpress/wp-content/plugins/claudaborative-editing --blueprint=./playground/dev.blueprint.json --port=9400",
"generate:defs": "node bin/generate-shared-defs.js && prettier --write wordpress-plugin/src/utils/command-i18n.ts",
"knip": "knip",
"lint": "eslint --max-warnings 0 . && npm --prefix wordpress-plugin run lint:style && markdownlint-cli2 && prettier --check -u . && knip",
"lint:fix": "eslint --fix --max-warnings 0 . && npm --prefix wordpress-plugin run lint:style:fix && markdownlint-cli2 --fix && prettier --write -u . && knip",
"prepare": "husky && npm run build",
"prepublishOnly": "npm run typecheck && npm run lint && npm test",
"start": "node dist/index.js",
"test": "vitest run",
"pretest:e2e": "(cd wordpress-plugin && composer install --no-interaction --prefer-dist) && npm run build && npm --prefix wordpress-plugin run build:test",
"test:e2e": "playwright test",
"pretest:e2e:headed": "npm run pretest:e2e",
"test:e2e:headed": "playwright test --headed",
"test:e2e:install": "playwright install chromium",
"test:plugin-js": "npm --prefix wordpress-plugin test",
"test:plugin-js:coverage": "npm --prefix wordpress-plugin run test:coverage",
"pretest:plugin-php": "bash wordpress-plugin/bin/fetch-wp-tests-lib.sh && (cd wordpress-plugin && composer install --no-interaction --prefer-dist) && npm --prefix wordpress-plugin run prebuild",
"test:plugin-php": "NODE_USE_ENV_PROXY=1 wp-playground-cli php --mount=./wordpress-plugin:/wordpress/wp-content/plugins/claudaborative-editing --mount=./wordpress-plugin/.wp-tests-lib:/wordpress-phpunit --blueprint=./playground/phpunit.blueprint.json -- /wordpress/wp-content/plugins/claudaborative-editing/vendor/bin/phpunit -c /wordpress/wp-content/plugins/claudaborative-editing/phpunit.xml.dist",
"pretest:plugin-php:coverage": "npm run pretest:plugin-php",
"test:plugin-php:coverage": "NODE_USE_ENV_PROXY=1 wp-playground-cli php --xdebug --mount=./wordpress-plugin:/wordpress/wp-content/plugins/claudaborative-editing --mount=./wordpress-plugin/.wp-tests-lib:/wordpress-phpunit --mount=./playground/xdebug-coverage.ini:/internal/shared/extensions/zz-xdebug-coverage.ini --blueprint=./playground/phpunit.blueprint.json -- /wordpress/wp-content/plugins/claudaborative-editing/vendor/bin/phpunit -c /wordpress/wp-content/plugins/claudaborative-editing/phpunit.xml.dist",
"test:watch": "vitest",
"typecheck": "tsc --noEmit"
},
"lint-staged": {
"*.{ts,js,md,json,jsonc}": "prettier --write",
"*.{ts,js}": "eslint --max-warnings 0 --no-warn-ignored",
"*.md": "markdownlint-cli2",
"wordpress-plugin/src/**/*.scss": "npm --prefix wordpress-plugin run lint:style:fix",
"wordpress-plugin/**/*.php": [
"bash -c 'cd wordpress-plugin && (vendor/bin/phpcbf --no-cache || test $? -eq 1)'",
"bash -c 'cd wordpress-plugin && vendor/bin/phpstan analyse --no-progress --memory-limit=1024M'"
]
},
"dependencies": {
"@modelcontextprotocol/sdk": "^1.30.0",
"@wordpress/block-serialization-default-parser": "^5.55.0",
"lib0": "0.2.117",
"y-protocols": "^1.0.7",
"yjs": "13.6.32",
"zod": "^4.6.5"
},
"devDependencies": {
"@eslint/js": "^10.0.1",
"@playwright/test": "^1.63.0",
"@types/node": "^25.9.7",
"@vitest/coverage-v8": "^5.0.1",
"@wordpress/e2e-test-utils-playwright": "^2.0.0",
"@wordpress/eslint-plugin": "^26.0.0",
"@wordpress/prettier-config": "^4.55.0",
"@wp-playground/cli": "^3.1.54",
"eslint": "^10.10.0",
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-package-json": "^1.8.1",
"globals": "^17.12.0",
"husky": "^9.1.7",
"knip": "^6.36.0",
"lint-staged": "^17.5.1",
"markdownlint-cli2": "^0.23.2",
"prettier": "^3.9.7",
"tsup": "^8.5.1",
"typescript": "~6.0.2",
"typescript-eslint": "^8.70.0",
"vitest": "^5.0.1"
},
"allowScripts": {
"core-js": false,
"esbuild": false,
"fs-ext-extra-prebuilt": true,
"fsevents": false,
"unrs-resolver": false
}
}