815a09be34
- Fix McpTokenStorageTest: add IDBConnection mock for new constructor parameter - Add doctrine/dbal dev dependency for IQueryBuilder mock support - Add tests for getAllUsersWithTokens() database query method - Create RefreshUserTokensTest with comprehensive coverage: - Job interval configuration (15 min) - Token refresh threshold logic (50% lifetime) - issued_at tracking for accurate lifetime calculation - Fallback to default lifetime when issued_at missing - Token rotation handling - Error handling and logging Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
58 lines
1.4 KiB
JSON
58 lines
1.4 KiB
JSON
{
|
|
"name": "nextcloud/astrolabe",
|
|
"description": "This app provides a management UI for the Nextcloud MCP Server",
|
|
"license": "AGPL-3.0-or-later",
|
|
"authors": [
|
|
{
|
|
"name": "Chris Coutinho",
|
|
"email": "chris@coutinho.io",
|
|
"homepage": "https://github.com/cbcoutinho"
|
|
}
|
|
],
|
|
"autoload": {
|
|
"psr-4": {
|
|
"OCA\\Astrolabe\\": "lib/"
|
|
}
|
|
},
|
|
"autoload-dev": {
|
|
"psr-4": {
|
|
"OCP\\": "vendor/nextcloud/ocp/OCP/"
|
|
}
|
|
},
|
|
"scripts": {
|
|
"post-install-cmd": [
|
|
"@composer bin all install --ansi"
|
|
],
|
|
"post-update-cmd": [
|
|
"@composer bin all install --ansi"
|
|
],
|
|
"lint": "find . -name \\*.php -not -path './vendor/*' -not -path './vendor-bin/*' -not -path './build/*' -print0 | xargs -0 -n1 php -l",
|
|
"cs:check": "php-cs-fixer fix --dry-run --diff",
|
|
"cs:fix": "php-cs-fixer fix",
|
|
"psalm": "psalm --threads=1 --no-cache",
|
|
"test:unit": "./vendor/bin/phpunit -c tests/unit/phpunit.xml --colors=always",
|
|
"openapi": "generate-spec",
|
|
"rector": "rector && composer cs:fix"
|
|
},
|
|
"require": {
|
|
"bamarni/composer-bin-plugin": "^1.8",
|
|
"php": "^8.1"
|
|
},
|
|
"require-dev": {
|
|
"doctrine/dbal": "^3.8",
|
|
"nextcloud/ocp": "dev-stable30",
|
|
"phpunit/phpunit": "^10.0",
|
|
"roave/security-advisories": "dev-latest"
|
|
},
|
|
"config": {
|
|
"allow-plugins": {
|
|
"bamarni/composer-bin-plugin": true
|
|
},
|
|
"optimize-autoloader": true,
|
|
"sort-packages": true,
|
|
"platform": {
|
|
"php": "8.1"
|
|
}
|
|
}
|
|
}
|