Peekaboo/package.json
Peter Steinberger 53ec5ef9a4 Add Swift linting and enhance image capture features
- Add SwiftLint and SwiftFormat configuration with npm scripts
- Refactor Swift code to comply with linting rules:
  - Fix identifier naming (x/y → xCoordinate/yCoordinate)
  - Extract long functions into smaller methods
  - Fix code style violations
- Enhance image capture tool:
  - Add blur detection parameter
  - Support custom image formats and quality
  - Add flexible naming patterns for saved files
- Add comprehensive integration tests for image tool
- Update documentation with new linting commands

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-05-25 18:02:39 +02:00

71 lines
1.9 KiB
JSON

{
"name": "@steipete/peekaboo-mcp",
"version": "1.0.0-beta.3",
"description": "A macOS utility exposed via Node.js MCP server for advanced screen captures, image analysis, and window management",
"type": "module",
"main": "dist/index.js",
"bin": {
"peekaboo-mcp": "dist/index.js"
},
"files": [
"dist/",
"peekaboo"
],
"scripts": {
"build": "tsc",
"build:swift": "./scripts/build-swift-universal.sh",
"build:all": "npm run build:swift && npm run build",
"start": "node dist/index.js",
"prepublishOnly": "npm run build:all",
"dev": "tsc --watch",
"clean": "rm -rf dist",
"test": "vitest run",
"test:watch": "vitest watch",
"test:coverage": "vitest run --coverage",
"test:ui": "vitest --ui",
"test:swift": "cd peekaboo-cli && swift test",
"test:integration": "npm run build && npm run test:swift && vitest run",
"test:all": "npm run test:integration",
"lint:swift": "cd peekaboo-cli && swiftlint",
"format:swift": "cd peekaboo-cli && swiftformat .",
"postinstall": "chmod +x dist/index.js 2>/dev/null || true"
},
"keywords": [
"mcp",
"screen-capture",
"macos",
"ai-analysis",
"image-analysis",
"window-management"
],
"author": "Peter Steinberger <steipete@gmail.com>",
"license": "MIT",
"dependencies": {
"@modelcontextprotocol/sdk": "^1.12.0",
"openai": "^4.0.0",
"pino": "^8.0.0",
"zod": "^3.22.0"
},
"devDependencies": {
"@types/node": "^20.10.0",
"pino-pretty": "^10.0.0",
"typescript": "^5.3.0",
"vitest": "^3.1.4",
"@vitest/ui": "^3.1.4",
"@vitest/coverage-v8": "^3.1.4"
},
"engines": {
"node": ">=18.0.0"
},
"os": [
"darwin"
],
"repository": {
"type": "git",
"url": "git+https://github.com/steipete/peekaboo.git"
},
"bugs": {
"url": "https://github.com/steipete/peekaboo/issues"
},
"homepage": "https://github.com/steipete/peekaboo#readme"
}