-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathpackage.json
More file actions
179 lines (179 loc) · 9.73 KB
/
package.json
File metadata and controls
179 lines (179 loc) · 9.73 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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
{
"name": "@portel/photon",
"version": "1.25.0",
"description": "You focus on the business logic. We'll enable the rest. Build MCP servers and CLI tools in a single TypeScript file.",
"type": "module",
"main": "dist/index.js",
"bin": {
"photon": "bin/photon"
},
"files": [
"bin",
"dist",
"templates"
],
"scripts": {
"prepare": "git config core.hooksPath .githooks || true",
"build": "eslint src/ --quiet && tsc && cp -r src/photons dist/ && chmod +x dist/cli.js && node scripts/build-beam.mjs",
"dev": "tsc --watch",
"lint": "eslint src/",
"lint:fix": "eslint src/ --fix",
"knip": "knip",
"format": "prettier --write \"src/**/*.ts\"",
"format:check": "prettier --check \"src/**/*.ts\"",
"typecheck": "tsc --noEmit",
"build:beam": "node scripts/build-beam.mjs",
"watch:beam": "node scripts/build-beam.mjs --watch",
"dev:beam": "npm run build && npm run build:beam && (trap 'kill 0' EXIT; tsc --watch --preserveWatchOutput & node scripts/build-beam.mjs --watch & sleep 1 && tsx watch src/cli.ts beam)",
"prepublishOnly": "node -e \"const p=require('./package.json'); if(JSON.stringify(p.dependencies).includes('file:')) { console.error('ERROR: file: dependency found.'); process.exit(1); }\" && node -e \"const fs=require('fs'),path=require('path'); const p=require('./package.json'); for(const d of Object.keys(p.dependencies||{})){const t=path.join('node_modules',d); if(fs.lstatSync(t).isSymbolicLink()){console.error('ERROR: '+d+' is npm-linked. Run: npm unlink '+d+' && npm install '+d); process.exit(1);}}\" && npm run build && npm run build:beam",
"test": "bash scripts/run-tests.sh",
"test:chain": "npm run test:all",
"test:all": "npm run build && npm run test:security && npm run test:schema && npm run test:marketplace && npm run test:loader && npm run test:server && npm run test:integration && npm run test:ui-resources && npm run test:client-adaptive && npm run test:zero-config && npm run test:mcp-config && npm run test:cli && npm run test:logger && npm run test:error-handler && npm run test:validation && npm run test:daemon-pubsub && npm run test:daemon-buffer && npm run test:instance-drift && npm run test:daemon-watcher && npm run test:ui-rendering && npm run test:photon-instance-manager && npm run test:viewport-aware-proxy && npm run test:viewport-manager && npm run test:pagination-integration && npm run test:pagination-performance && npm run test:pagination-phase5 && npm run test:pagination-phase5c && npm run test:pagination-phase5d && npm run test:phase6a && npm run test:phase6b && npm run test:phase6c && npm run test:phase6d && npm run test:promises && npm run test:readme",
"test:daemon-watcher": "npx tsx tests/daemon-watcher.test.ts",
"test:instance-drift": "npx tsx tests/instance-drift.test.ts",
"test:photon-instance-manager": "npx vitest run tests/photon-instance-manager.test.ts",
"test:viewport-aware-proxy": "npx vitest run tests/viewport-aware-proxy.test.ts",
"test:viewport-manager": "npx vitest run tests/viewport-manager.test.ts",
"test:pagination-integration": "npx vitest run tests/pagination-integration.test.ts",
"test:pagination-performance": "npx vitest run tests/pagination-performance.test.ts",
"test:multi-client-pagination": "npm run build && npx tsx tests/multi-client-pagination.test.ts",
"test:security": "npx tsx tests/security.test.ts",
"test:zero-config": "npx tsx tests/zero-config.test.ts",
"test:mcp-config": "npx tsx tests/mcp-configuration.test.ts",
"test:coverage": "npm run build && c8 --include='dist/**/*.js' --reporter=text --reporter=html npm run test:unit",
"test:unit": "npx tsx tests/schema-extractor.test.ts && npx tsx tests/marketplace-manager.test.ts && npx tsx tests/loader.test.ts && npx tsx tests/loader.comprehensive.test.ts && npx tsx tests/server.test.ts && npx tsx tests/server.comprehensive.test.ts && npx tsx tests/cli-runner.test.ts && npx tsx tests/cli.comprehensive.test.ts && npx tsx tests/logger.test.ts && npx tsx tests/error-handler.test.ts && npx tsx tests/validation.test.ts && npx tsx tests/daemon-pubsub.test.ts && npx tsx tests/shared-utils.test.ts",
"test:cli:comprehensive": "npx tsx tests/cli.comprehensive.test.ts",
"test:loader:comprehensive": "npx tsx tests/loader.comprehensive.test.ts",
"test:server:comprehensive": "npx tsx tests/server.comprehensive.test.ts",
"test:daemon-pubsub": "npx tsx tests/daemon-pubsub.test.ts",
"test:daemon-buffer": "npx tsx tests/daemon-event-buffer.test.ts",
"test:bridge": "npm run test:bridge:generation && npm run test:bridge:protocol && npm run test:bridge:beam",
"test:bridge:generation": "npx tsx tests/bridge/bridge-generation.test.ts",
"test:bridge:protocol": "npx tsx tests/bridge/protocol.test.ts",
"test:bridge:beam": "npx tsx tests/bridge/beam-integration.test.ts",
"test:cli": "npx tsx tests/cli-runner.test.ts",
"test:logger": "npx tsx tests/logger.test.ts",
"test:error-handler": "npx tsx tests/error-handler.test.ts",
"test:validation": "npx tsx tests/validation.test.ts",
"test:smoke": "npx tsx tests/smoke.test.ts",
"test:readme": "bash tests/readme-validation.sh",
"test:schema": "npx tsx tests/schema-extractor.test.ts",
"test:marketplace": "npx tsx tests/marketplace-manager.test.ts",
"test:github-ref": "npx tsx tests/github-ref-install.test.ts",
"test:loader": "npx tsx tests/loader.test.ts",
"test:server": "npx tsx tests/server.test.ts",
"test:integration": "npx tsx tests/integration.test.ts",
"test:ui-resources": "npx tsx tests/ui-resources.test.ts",
"test:ui-rendering": "npx tsx --test tests/ui/result-rendering.test.ts",
"test:client-adaptive": "npx tsx tests/client-adaptive.test.ts",
"test:load": "npm run build && node --expose-gc --max-old-space-size=4096 node_modules/.bin/tsx tests/load-test.ts",
"test:sqlite": "npm run build && npx tsx tests/sqlite.test.ts",
"test:github": "npm run build && npx tsx tests/github-issues.integration.ts",
"test:beam": "npm run build && npx tsx tests/beam/rendering.test.ts",
"test:beam:regressions": "npm run build && npx tsx tests/beam/beam-integration-regressions.test.ts",
"test:e2e": "npm run build && npx playwright test",
"test:e2e:ui": "npm run build && npx playwright test --ui",
"test:visual": "npm run build && npm run build:beam && npx tsx tests/beam/visual/visual.test.ts",
"test:contracts": "npx tsx tests/contract/format-coverage.test.ts && npx tsx tests/contract/schema-contract.test.ts",
"test:a2ui": "npm run build && npx tsx tests/a2ui-mapper.test.ts && npx tsx tests/a2ui-e2e.test.ts && npx tsx tests/a2ui-renderer-script.test.ts",
"test:dom": "npm run build && npm run build:beam && npx tsx tests/contract/dom-structure.test.ts",
"test:promises": "npm run build && npm run build:beam && npx tsx tests/promises.test.ts",
"release": "release-it",
"release:minor": "release-it minor",
"release:major": "release-it major",
"release:patch": "release-it patch",
"release:dry": "release-it --dry-run",
"test:pagination-phase5": "npm run build && npx tsx tests/pagination-phase5.test.ts",
"test:pagination-phase5c": "npm run build && npx tsx tests/pagination-phase5c.test.ts",
"test:pagination-phase5d": "npm run build && npx tsx tests/pagination-phase5d.test.ts",
"test:phase6a": "npm run build && npx tsx tests/phase6a-service-worker.test.ts",
"test:phase6b": "npm run build && npx tsx tests/phase6b-offline-state.test.ts",
"test:phase6c": "npm run build && npx tsx tests/phase6c-offline-sync.test.ts",
"test:phase6d": "npm run build && npx tsx tests/phase6d-integration.test.ts"
},
"keywords": [
"mcp",
"model-context-protocol",
"photon",
"typescript",
"cli",
"single-file",
"business-logic",
"convention-over-configuration",
"claude",
"claude-desktop",
"hot-reload",
"marketplace",
"enterprise"
],
"author": "Portel Dev",
"license": "MIT",
"dependencies": {
"@chenglou/pretext": "^0.0.3",
"@modelcontextprotocol/ext-apps": "^1.0.1",
"@modelcontextprotocol/sdk": "^1.25.2",
"@portel/cli": "^1.1.0",
"@portel/photon-core": "^2.25.0",
"boxen": "^8.0.1",
"chalk": "^5.4.1",
"chart.js": "^4.5.1",
"chokidar": "^4.0.3",
"cli-highlight": "^2.1.11",
"cli-table3": "^0.6.5",
"commander": "^12.1.0",
"esbuild": "^0.28.0",
"fast-json-patch": "^3.1.1",
"ora": "^9.3.0",
"qrcode": "^1.5.4"
},
"optionalDependencies": {
"better-sqlite3": "^12.9.0"
},
"trustedDependencies": [
"better-sqlite3",
"esbuild"
],
"devDependencies": {
"@codemirror/autocomplete": "^6.20.0",
"@codemirror/commands": "^6.10.1",
"@codemirror/lang-javascript": "^6.2.4",
"@codemirror/state": "^6.5.4",
"@codemirror/theme-one-dark": "^6.1.3",
"@codemirror/view": "^6.39.12",
"@playwright/test": "^1.58.0",
"@release-it/conventional-changelog": "^11.0.0",
"@types/inquirer": "^9.0.9",
"@types/node": "^22.10.2",
"@types/qrcode": "^1.5.6",
"@typescript-eslint/eslint-plugin": "^8.56.0",
"@typescript-eslint/parser": "^8.56.0",
"autocannon": "^8.0.0",
"c8": "^11.0.0",
"codemirror": "^6.0.2",
"eslint": "^10.0.1",
"eslint-config-prettier": "^10.1.8",
"knip": "^5.85.0",
"lit": "^3.3.2",
"openapi-types": "^12.1.3",
"playwright": "^1.57.0",
"prettier": "^3.8.0",
"release-it": "^20.0.0",
"tsx": "^4.20.6",
"typescript": "^5.7.3"
},
"overrides": {
"minimatch": "^10.2.1"
},
"engines": {
"node": ">=20.0.0",
"bun": ">=1.0.0"
},
"repository": {
"type": "git",
"url": "git+https://github.com/portel-dev/photon.git"
},
"bugs": {
"url": "https://github.com/portel-dev/photon/issues"
},
"homepage": "https://github.com/portel-dev/photon#readme"
}