|
1 | 1 | { |
2 | | - "name": "swissspidy/ai-command", |
| 2 | + "name": "mcp-wp/ai-command", |
3 | 3 | "type": "wp-cli-package", |
4 | 4 | "description": "", |
5 | | - "homepage": "https://github.com/swissspidy/ai-command", |
| 5 | + "homepage": "https://github.com/mcp-wp/ai-command", |
6 | 6 | "license": "MIT", |
7 | 7 | "authors": [], |
8 | 8 | "require": { |
9 | 9 | "php": "^8.2", |
| 10 | + "felixarntz/ai-services": "dev-main", |
10 | 11 | "logiscape/mcp-sdk-php": "^1.0", |
| 12 | + "mcaskill/composer-exclude-files": "^4.0", |
| 13 | + "mcp-wp/mcp-server": "dev-main", |
11 | 14 | "wp-cli/wp-cli": "^2.11" |
12 | 15 | }, |
13 | 16 | "require-dev": { |
14 | | - "roave/security-advisories": "dev-latest", |
15 | | - "wp-cli/wp-cli-tests": "^v4.3.9" |
| 17 | + "humbug/php-scoper": "^0.18.17", |
| 18 | + "roave/security-advisories": "dev-latest", |
| 19 | + "wp-cli/wp-cli-tests": "^v4.3.9" |
16 | 20 | }, |
| 21 | + "repositories": [ |
| 22 | + { |
| 23 | + "type": "vcs", |
| 24 | + "url": "https://github.com/mcp-wp/mcp-server", |
| 25 | + "no-api": true |
| 26 | + }, |
| 27 | + { |
| 28 | + "type": "vcs", |
| 29 | + "url": "https://github.com/felixarntz/ai-services", |
| 30 | + "no-api": true |
| 31 | + } |
| 32 | + ], |
17 | 33 | "config": { |
18 | 34 | "process-timeout": 7200, |
19 | 35 | "sort-packages": true, |
20 | 36 | "allow-plugins": { |
| 37 | + "composer/installers": true, |
21 | 38 | "dealerdirect/phpcodesniffer-composer-installer": true, |
| 39 | + "mcaskill/composer-exclude-files": true, |
22 | 40 | "php-http/discovery": true |
23 | 41 | } |
24 | 42 | }, |
|
32 | 50 | "mcp server list", |
33 | 51 | "mcp server add", |
34 | 52 | "mcp server remove" |
35 | | - ] |
| 53 | + ], |
| 54 | + "exclude-from-files": [ |
| 55 | + ], |
| 56 | + "installer-disable": true |
36 | 57 | }, |
37 | 58 | "autoload": { |
38 | 59 | "psr-4": { |
39 | | - "WP_CLI\\AiCommand\\": "src/", |
40 | | - "WP_CLI\\AiCommand\\MCP\\": "src/MCP" |
| 60 | + "McpWp\\AiCommand\\": "src/", |
| 61 | + "McpWp\\AiCommand\\MCP\\": "src/MCP" |
41 | 62 | }, |
42 | 63 | "files": [ |
43 | 64 | "ai-command.php" |
|
46 | 67 | "minimum-stability": "dev", |
47 | 68 | "prefer-stable": true, |
48 | 69 | "scripts": { |
| 70 | + "post-install-cmd": [ |
| 71 | + "@prefix-dependencies" |
| 72 | + ], |
| 73 | + "post-update-cmd": [ |
| 74 | + "@prefix-dependencies" |
| 75 | + ], |
49 | 76 | "behat": "run-behat-tests", |
50 | 77 | "behat-rerun": "rerun-behat-tests", |
51 | 78 | "lint": "run-linter-tests", |
|
58 | 85 | "@phpcs", |
59 | 86 | "@phpunit", |
60 | 87 | "@behat" |
61 | | - ] |
| 88 | + ], |
| 89 | + "prefix-dependencies": [ |
| 90 | + "php-scoper add-prefix --output-dir=./third-party --force --quiet", |
| 91 | + "echo '{ \"autoload\": { \"classmap\": [\"\"] } }' > ./third-party/composer.json", |
| 92 | + "@composer dump-autoload --working-dir ./third-party --no-dev --classmap-authoritative", |
| 93 | + "sed -i'.bak' -e 's/Composer\\\\/AiCommand_Composer\\\\/' third-party/vendor/composer/*.php && rm -rf third-party/vendor/composer/*.php.bak", |
| 94 | + "echo '{ \"autoload\": { \"classmap\": [\"\"] } }' > ./src/composer.json", |
| 95 | + "@composer dump-autoload --working-dir ./src --no-dev --classmap-authoritative", |
| 96 | + "sed -i'.bak' -e 's/Composer\\\\/AiCommand_Composer\\\\/' src/vendor/composer/*.php && rm -rf src/vendor/composer/*.php.bak" |
| 97 | + ] |
62 | 98 | }, |
63 | 99 | "support": { |
64 | | - "issues": "https://github.com/swissspidy/ai-command/issues" |
| 100 | + "issues": "https://github.com/mcp-wp/ai-command/issues" |
65 | 101 | } |
66 | 102 | } |
0 commit comments