@portel/photon 1.32.1 → 1.32.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -4
- package/dist/auto-ui/beam.d.ts.map +1 -1
- package/dist/auto-ui/beam.js +35 -4
- package/dist/auto-ui/beam.js.map +1 -1
- package/dist/auto-ui/bridge/index.js +1 -1
- package/dist/auto-ui/streamable-http-transport.d.ts +5 -0
- package/dist/auto-ui/streamable-http-transport.d.ts.map +1 -1
- package/dist/auto-ui/streamable-http-transport.js +402 -171
- package/dist/auto-ui/streamable-http-transport.js.map +1 -1
- package/dist/auto-ui/types.d.ts +34 -0
- package/dist/auto-ui/types.d.ts.map +1 -1
- package/dist/auto-ui/types.js +57 -0
- package/dist/auto-ui/types.js.map +1 -1
- package/dist/beam.bundle.js +2492 -1442
- package/dist/beam.bundle.js.map +4 -4
- package/dist/claude-code-plugin.js +9 -3
- package/dist/claude-code-plugin.js.map +1 -1
- package/dist/cli/commands/beam.d.ts.map +1 -1
- package/dist/cli/commands/beam.js +5 -0
- package/dist/cli/commands/beam.js.map +1 -1
- package/dist/context.d.ts.map +1 -1
- package/dist/context.js +12 -6
- package/dist/context.js.map +1 -1
- package/dist/daemon/client.d.ts.map +1 -1
- package/dist/daemon/client.js +165 -478
- package/dist/daemon/client.js.map +1 -1
- package/dist/daemon/manager.d.ts +1 -1
- package/dist/daemon/manager.d.ts.map +1 -1
- package/dist/daemon/manager.js +18 -19
- package/dist/daemon/manager.js.map +1 -1
- package/dist/daemon/server.js +61 -23
- package/dist/daemon/server.js.map +1 -1
- package/dist/loader.d.ts.map +1 -1
- package/dist/loader.js +19 -8
- package/dist/loader.js.map +1 -1
- package/dist/photons/marketplace.photon.d.ts.map +1 -1
- package/dist/photons/marketplace.photon.js +34 -7
- package/dist/photons/marketplace.photon.js.map +1 -1
- package/dist/photons/marketplace.photon.ts +35 -7
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +40 -6
- package/dist/server.js.map +1 -1
- package/dist/types/server-types.d.ts +2 -0
- package/dist/types/server-types.d.ts.map +1 -1
- package/dist/version-notify.d.ts +5 -0
- package/dist/version-notify.d.ts.map +1 -1
- package/dist/version-notify.js +57 -7
- package/dist/version-notify.js.map +1 -1
- package/dist/watcher.d.ts.map +1 -1
- package/dist/watcher.js +8 -3
- package/dist/watcher.js.map +1 -1
- package/package.json +89 -73
package/dist/version-notify.js
CHANGED
|
@@ -42,20 +42,70 @@ function isStale(cache) {
|
|
|
42
42
|
const checkedAt = new Date(cache.checkedAt).getTime();
|
|
43
43
|
return Date.now() - checkedAt > CACHE_TTL_MS;
|
|
44
44
|
}
|
|
45
|
+
function parseSemver(version) {
|
|
46
|
+
const withoutBuild = version.split('+')[0];
|
|
47
|
+
const [corePart, prereleasePart] = withoutBuild.split('-', 2);
|
|
48
|
+
const parts = corePart.split('.').map((part) => Number(part));
|
|
49
|
+
return {
|
|
50
|
+
core: [
|
|
51
|
+
Number.isFinite(parts[0]) ? parts[0] : 0,
|
|
52
|
+
Number.isFinite(parts[1]) ? parts[1] : 0,
|
|
53
|
+
Number.isFinite(parts[2]) ? parts[2] : 0,
|
|
54
|
+
],
|
|
55
|
+
prerelease: prereleasePart ? prereleasePart.split('.') : [],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
function comparePrerelease(a, b) {
|
|
59
|
+
if (a.length === 0 && b.length === 0)
|
|
60
|
+
return 0;
|
|
61
|
+
if (a.length === 0)
|
|
62
|
+
return 1;
|
|
63
|
+
if (b.length === 0)
|
|
64
|
+
return -1;
|
|
65
|
+
const max = Math.max(a.length, b.length);
|
|
66
|
+
for (let i = 0; i < max; i++) {
|
|
67
|
+
const ai = a[i];
|
|
68
|
+
const bi = b[i];
|
|
69
|
+
if (ai === undefined)
|
|
70
|
+
return -1;
|
|
71
|
+
if (bi === undefined)
|
|
72
|
+
return 1;
|
|
73
|
+
const an = Number(ai);
|
|
74
|
+
const bn = Number(bi);
|
|
75
|
+
const aNumeric = Number.isInteger(an) && String(an) === ai;
|
|
76
|
+
const bNumeric = Number.isInteger(bn) && String(bn) === bi;
|
|
77
|
+
if (aNumeric && bNumeric) {
|
|
78
|
+
if (an > bn)
|
|
79
|
+
return 1;
|
|
80
|
+
if (an < bn)
|
|
81
|
+
return -1;
|
|
82
|
+
continue;
|
|
83
|
+
}
|
|
84
|
+
if (aNumeric)
|
|
85
|
+
return -1;
|
|
86
|
+
if (bNumeric)
|
|
87
|
+
return 1;
|
|
88
|
+
if (ai > bi)
|
|
89
|
+
return 1;
|
|
90
|
+
if (ai < bi)
|
|
91
|
+
return -1;
|
|
92
|
+
}
|
|
93
|
+
return 0;
|
|
94
|
+
}
|
|
45
95
|
/**
|
|
46
|
-
* Compare two semver strings.
|
|
96
|
+
* Compare two semver strings, ignoring build metadata.
|
|
47
97
|
* Returns 1 if a > b, -1 if a < b, 0 if equal.
|
|
48
98
|
*/
|
|
49
|
-
function compareSemver(a, b) {
|
|
50
|
-
const pa = a
|
|
51
|
-
const pb = b
|
|
99
|
+
export function compareSemver(a, b) {
|
|
100
|
+
const pa = parseSemver(a);
|
|
101
|
+
const pb = parseSemver(b);
|
|
52
102
|
for (let i = 0; i < 3; i++) {
|
|
53
|
-
if (
|
|
103
|
+
if (pa.core[i] > pb.core[i])
|
|
54
104
|
return 1;
|
|
55
|
-
if (
|
|
105
|
+
if (pa.core[i] < pb.core[i])
|
|
56
106
|
return -1;
|
|
57
107
|
}
|
|
58
|
-
return
|
|
108
|
+
return comparePrerelease(pa.prerelease, pb.prerelease);
|
|
59
109
|
}
|
|
60
110
|
/**
|
|
61
111
|
* Spawn a detached background process that fetches the latest version
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version-notify.js","sourceRoot":"","sources":["../src/version-notify.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,MAAM,IAAI,CAAC;AACzB,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAC7B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GAAG,CAAC,CAAC;IAC1D,MAAM,GAAG,GAAG,CAAC,CAAS,EAAE,EAAE,CAAC,CAAC,GAAG,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,KAAK,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;IAEzE,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IAClB,OAAO,CAAC,KAAK,CAAC,IAAI,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACxC,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;QACzB,OAAO,CAAC,KAAK,CAAC,IAAI,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAClC,CAAC;IACD,OAAO,CAAC,KAAK,CAAC,IAAI,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAExC,2DAA2D;IAC3D,KAAK,CAAC,eAAe,GAAG,KAAK,CAAC,MAAM,CAAC;IACrC,UAAU,CAAC,KAAK,CAAC,CAAC;AACpB,CAAC"}
|
package/dist/watcher.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"watcher.d.ts","sourceRoot":"","sources":["../src/watcher.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAKH,OAAO,EAAE,YAAY,EAA0B,MAAM,aAAa,CAAC;AACnE,OAAO,EAAE,MAAM,EAAgB,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"watcher.d.ts","sourceRoot":"","sources":["../src/watcher.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAKH,OAAO,EAAE,YAAY,EAA0B,MAAM,aAAa,CAAC;AACnE,OAAO,EAAE,MAAM,EAAgB,MAAM,oBAAoB,CAAC;AAS1D,qBAAa,WAAW;IACtB,OAAO,CAAC,OAAO,CAA0B;IACzC,OAAO,CAAC,MAAM,CAAe;IAC7B,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,eAAe,CAAuB;IAC9C,OAAO,CAAC,aAAa,CAA+B;IACpD,OAAO,CAAC,MAAM,CAAS;gBAEX,MAAM,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM;IAiBnE;;OAEG;IACH,KAAK;IAsCL;;OAEG;IACH,OAAO,CAAC,gBAAgB;IA8BxB;;OAEG;IACG,IAAI;CAaX"}
|
package/dist/watcher.js
CHANGED
|
@@ -8,6 +8,11 @@ import * as path from 'path';
|
|
|
8
8
|
import * as fs from 'fs';
|
|
9
9
|
import { HotReloadDisabledError } from './server.js';
|
|
10
10
|
import { createLogger } from './shared/logger.js';
|
|
11
|
+
const HOT_RELOAD_DEBOUNCE_MS = parseNonNegativeEnvInt('PHOTON_HOT_RELOAD_DEBOUNCE_MS', 1000);
|
|
12
|
+
function parseNonNegativeEnvInt(name, fallback) {
|
|
13
|
+
const parsed = Number(process.env[name]);
|
|
14
|
+
return Number.isFinite(parsed) && parsed >= 0 ? parsed : fallback;
|
|
15
|
+
}
|
|
11
16
|
export class FileWatcher {
|
|
12
17
|
watcher = null;
|
|
13
18
|
server;
|
|
@@ -45,7 +50,7 @@ export class FileWatcher {
|
|
|
45
50
|
persistent: true,
|
|
46
51
|
ignoreInitial: true,
|
|
47
52
|
awaitWriteFinish: {
|
|
48
|
-
stabilityThreshold:
|
|
53
|
+
stabilityThreshold: HOT_RELOAD_DEBOUNCE_MS,
|
|
49
54
|
pollInterval: 50,
|
|
50
55
|
},
|
|
51
56
|
});
|
|
@@ -73,7 +78,7 @@ export class FileWatcher {
|
|
|
73
78
|
displayPath = path.relative(path.dirname(this.assetFolderPath), changedPath);
|
|
74
79
|
}
|
|
75
80
|
this.logger.info(`File changed: ${displayPath}`);
|
|
76
|
-
//
|
|
81
|
+
// Trailing debounce: reload only after streamed writes/editor saves settle.
|
|
77
82
|
if (this.reloadTimeout) {
|
|
78
83
|
clearTimeout(this.reloadTimeout);
|
|
79
84
|
}
|
|
@@ -93,7 +98,7 @@ export class FileWatcher {
|
|
|
93
98
|
}
|
|
94
99
|
}
|
|
95
100
|
})();
|
|
96
|
-
},
|
|
101
|
+
}, HOT_RELOAD_DEBOUNCE_MS);
|
|
97
102
|
}
|
|
98
103
|
/**
|
|
99
104
|
* Stop watching
|
package/dist/watcher.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"watcher.js","sourceRoot":"","sources":["../src/watcher.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,QAA4B,MAAM,UAAU,CAAC;AACpD,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAC7B,OAAO,KAAK,EAAE,MAAM,IAAI,CAAC;AACzB,OAAO,EAAgB,sBAAsB,EAAE,MAAM,aAAa,CAAC;AACnE,OAAO,EAAU,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAE1D,MAAM,OAAO,WAAW;IACd,OAAO,GAAqB,IAAI,CAAC;IACjC,MAAM,CAAe;IACrB,QAAQ,CAAS;IACjB,eAAe,GAAkB,IAAI,CAAC;IACtC,aAAa,GAA0B,IAAI,CAAC;IAC5C,MAAM,CAAS;IAEvB,YAAY,MAAoB,EAAE,QAAgB,EAAE,MAAe;QACjE,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;QACvC,IAAI,CAAC,MAAM;YACT,MAAM,IAAI,YAAY,CAAC,EAAE,SAAS,EAAE,cAAc,EAAE,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;QAExF,4EAA4E;QAC5E,MAAM,GAAG,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACxC,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,OAAO,CAA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CAAC;oBACpB,IAAI,KAAK,YAAY,sBAAsB,EAAE,CAAC;wBAC5C,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;wBACjC,MAAM,IAAI,CAAC,IAAI,EAAE,CAAC;oBACpB,CAAC;yBAAM,CAAC;wBACN,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,sBAAsB,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC;oBAC3D,CAAC;gBACH,CAAC;YACH,CAAC,CAAC,EAAE,CAAC;QACP,CAAC,EAAE,sBAAsB,CAAC,CAAC;IAC7B,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,IAAI;QACR,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC;YACjB,MAAM,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;YAC3B,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;QACtB,CAAC;QAED,IAAI,IAAI,CAAC,aAAa,EAAE,CAAC;YACvB,YAAY,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;YACjC,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC;QAC5B,CAAC;QAED,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,sBAAsB,CAAC,CAAC;IAC3C,CAAC;CACF"}
|
package/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@portel/photon",
|
|
3
|
-
"version": "1.32.
|
|
3
|
+
"version": "1.32.3",
|
|
4
4
|
"description": "You focus on the business logic. We'll enable the rest. Build MCP servers and CLI tools in a single TypeScript file.",
|
|
5
5
|
"type": "module",
|
|
6
|
+
"packageManager": "bun@1.2.20",
|
|
6
7
|
"main": "dist/index.js",
|
|
7
8
|
"bin": {
|
|
8
9
|
"photon": "bin/photon"
|
|
@@ -24,80 +25,83 @@
|
|
|
24
25
|
"typecheck": "tsc --noEmit",
|
|
25
26
|
"build:beam": "node scripts/build-beam.mjs",
|
|
26
27
|
"watch:beam": "node scripts/build-beam.mjs --watch",
|
|
27
|
-
"dev:beam": "
|
|
28
|
-
"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
|
|
28
|
+
"dev:beam": "bun run build && bun run build:beam && (trap 'kill 0' EXIT; tsc --watch --preserveWatchOutput & node scripts/build-beam.mjs --watch & sleep 1 && tsx watch src/cli.ts beam)",
|
|
29
|
+
"prepublishOnly": "bun run verify:publish-version && 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 linked. Run: bun remove '+d+' && bun add '+d); process.exit(1);}}\" && bun run build && bun run build:beam",
|
|
29
30
|
"test": "bash scripts/run-tests.sh",
|
|
30
|
-
"test:chain": "
|
|
31
|
-
"test:all": "
|
|
32
|
-
"test:daemon-watcher": "
|
|
33
|
-
"test:instance-drift": "
|
|
34
|
-
"test:photon-instance-manager": "
|
|
35
|
-
"test:cf-bindings": "
|
|
36
|
-
"test:cf-runtime": "
|
|
37
|
-
"test:cf-overrides": "
|
|
38
|
-
"test:cf-deploy": "
|
|
39
|
-
"test:cf-mcp-bearer": "
|
|
40
|
-
"test:viewport-aware-proxy": "
|
|
41
|
-
"test:viewport-manager": "
|
|
42
|
-
"test:pagination-integration": "
|
|
43
|
-
"test:pagination-performance": "
|
|
44
|
-
"test:multi-client-pagination": "
|
|
45
|
-
"test:security": "
|
|
46
|
-
"test:zero-config": "
|
|
47
|
-
"test:mcp-config": "
|
|
48
|
-
"test:coverage": "
|
|
49
|
-
"test:unit": "
|
|
50
|
-
"test:cli:comprehensive": "
|
|
51
|
-
"test:loader:comprehensive": "
|
|
52
|
-
"test:server:comprehensive": "
|
|
53
|
-
"test:daemon-pubsub": "
|
|
54
|
-
"test:daemon-buffer": "
|
|
55
|
-
"test:bridge": "
|
|
56
|
-
"test:bridge:generation": "
|
|
57
|
-
"test:bridge:protocol": "
|
|
58
|
-
"test:bridge:beam": "
|
|
59
|
-
"test:cli": "
|
|
60
|
-
"test:logger": "
|
|
61
|
-
"test:error-handler": "
|
|
62
|
-
"test:validation": "
|
|
63
|
-
"test:
|
|
31
|
+
"test:chain": "bun run test:all",
|
|
32
|
+
"test:all": "bun run build && bun run test:security && bun run test:schema && bun run test:marketplace && bun run test:loader && bun run test:server && bun run test:integration && bun run test:byte-compat && bun run test:format-registry && bun run test:content-negotiation && bun run test:ui-resources && bun run test:client-adaptive && bun run test:zero-config && bun run test:mcp-config && bun run test:cli && bun run test:logger && bun run test:error-handler && bun run test:validation && bun run test:daemon-pubsub && bun run test:daemon-buffer && bun run test:instance-drift && bun run test:daemon-watcher && bun run test:ui-rendering && bun run test:photon-instance-manager && bun run test:viewport-aware-proxy && bun run test:viewport-manager && bun run test:pagination-integration && bun run test:pagination-performance && bun run test:pagination-phase5 && bun run test:pagination-phase5c && bun run test:pagination-phase5d && bun run test:phase6a && bun run test:phase6b && bun run test:phase6c && bun run test:phase6d && bun run test:promises && bun run test:cf-bindings && bun run test:cf-runtime && bun run test:cf-overrides && bun run test:cf-deploy && bun run test:cf-mcp-bearer && bun run test:readme",
|
|
33
|
+
"test:daemon-watcher": "tsx tests/daemon-watcher.test.ts",
|
|
34
|
+
"test:instance-drift": "tsx tests/instance-drift.test.ts",
|
|
35
|
+
"test:photon-instance-manager": "vitest run tests/photon-instance-manager.test.ts",
|
|
36
|
+
"test:cf-bindings": "vitest run tests/cf-bindings-parser.test.ts",
|
|
37
|
+
"test:cf-runtime": "vitest run tests/cf-runtime-kv.test.ts",
|
|
38
|
+
"test:cf-overrides": "vitest run tests/cf-overrides.test.ts",
|
|
39
|
+
"test:cf-deploy": "vitest run tests/cf-deploy-toml.test.ts",
|
|
40
|
+
"test:cf-mcp-bearer": "vitest run tests/cf-mcp-bearer.test.ts",
|
|
41
|
+
"test:viewport-aware-proxy": "vitest run tests/viewport-aware-proxy.test.ts",
|
|
42
|
+
"test:viewport-manager": "vitest run tests/viewport-manager.test.ts",
|
|
43
|
+
"test:pagination-integration": "vitest run tests/pagination-integration.test.ts",
|
|
44
|
+
"test:pagination-performance": "vitest run tests/pagination-performance.test.ts",
|
|
45
|
+
"test:multi-client-pagination": "bun run build && tsx tests/multi-client-pagination.test.ts",
|
|
46
|
+
"test:security": "tsx tests/security.test.ts",
|
|
47
|
+
"test:zero-config": "tsx tests/zero-config.test.ts",
|
|
48
|
+
"test:mcp-config": "tsx tests/mcp-configuration.test.ts",
|
|
49
|
+
"test:coverage": "bun run build && c8 --include='dist/**/*.js' --reporter=text --reporter=html bun run test:unit",
|
|
50
|
+
"test:unit": "tsx tests/schema-extractor.test.ts && tsx tests/marketplace-manager.test.ts && tsx tests/loader.test.ts && tsx tests/loader.comprehensive.test.ts && tsx tests/server.test.ts && tsx tests/server.comprehensive.test.ts && tsx tests/cli-runner.test.ts && tsx tests/cli.comprehensive.test.ts && tsx tests/logger.test.ts && tsx tests/error-handler.test.ts && tsx tests/validation.test.ts && tsx tests/daemon-pubsub.test.ts && tsx tests/shared-utils.test.ts",
|
|
51
|
+
"test:cli:comprehensive": "tsx tests/cli.comprehensive.test.ts",
|
|
52
|
+
"test:loader:comprehensive": "tsx tests/loader.comprehensive.test.ts",
|
|
53
|
+
"test:server:comprehensive": "tsx tests/server.comprehensive.test.ts",
|
|
54
|
+
"test:daemon-pubsub": "tsx tests/daemon-pubsub.test.ts",
|
|
55
|
+
"test:daemon-buffer": "tsx tests/daemon-event-buffer.test.ts",
|
|
56
|
+
"test:bridge": "bun run test:bridge:generation && bun run test:bridge:protocol && bun run test:bridge:beam",
|
|
57
|
+
"test:bridge:generation": "tsx tests/bridge/bridge-generation.test.ts",
|
|
58
|
+
"test:bridge:protocol": "tsx tests/bridge/protocol.test.ts",
|
|
59
|
+
"test:bridge:beam": "tsx tests/bridge/beam-integration.test.ts",
|
|
60
|
+
"test:cli": "tsx tests/cli-runner.test.ts",
|
|
61
|
+
"test:logger": "tsx tests/logger.test.ts",
|
|
62
|
+
"test:error-handler": "tsx tests/error-handler.test.ts",
|
|
63
|
+
"test:validation": "tsx tests/validation.test.ts",
|
|
64
|
+
"test:version-notify": "tsx tests/version-notify.test.ts",
|
|
65
|
+
"test:streamable-http": "tsx tests/streamable-http-transport.test.ts",
|
|
66
|
+
"test:smoke": "tsx tests/smoke.test.ts",
|
|
64
67
|
"test:readme": "bash tests/readme-validation.sh",
|
|
65
|
-
"test:schema": "
|
|
66
|
-
"test:marketplace": "
|
|
67
|
-
"test:github-ref": "
|
|
68
|
-
"test:loader": "
|
|
69
|
-
"test:server": "
|
|
70
|
-
"test:integration": "
|
|
71
|
-
"test:byte-compat": "RUN_E2E=1
|
|
72
|
-
"test:format-registry": "
|
|
73
|
-
"test:content-negotiation": "RUN_E2E=1
|
|
74
|
-
"test:ui-resources": "
|
|
75
|
-
"test:ui-rendering": "
|
|
76
|
-
"test:client-adaptive": "
|
|
77
|
-
"test:load": "
|
|
78
|
-
"test:sqlite": "
|
|
79
|
-
"test:github": "
|
|
80
|
-
"test:beam": "
|
|
81
|
-
"test:beam:regressions": "
|
|
82
|
-
"test:e2e": "
|
|
83
|
-
"test:e2e:ui": "
|
|
84
|
-
"test:visual": "
|
|
85
|
-
"test:contracts": "
|
|
86
|
-
"test:a2ui": "
|
|
87
|
-
"test:dom": "
|
|
88
|
-
"test:promises": "
|
|
68
|
+
"test:schema": "tsx tests/schema-extractor.test.ts",
|
|
69
|
+
"test:marketplace": "tsx tests/marketplace-manager.test.ts",
|
|
70
|
+
"test:github-ref": "tsx tests/github-ref-install.test.ts",
|
|
71
|
+
"test:loader": "tsx tests/loader.test.ts",
|
|
72
|
+
"test:server": "tsx tests/server.test.ts",
|
|
73
|
+
"test:integration": "tsx tests/integration.test.ts",
|
|
74
|
+
"test:byte-compat": "RUN_E2E=1 vitest run tests/v128-byte-compat.test.ts",
|
|
75
|
+
"test:format-registry": "vitest run tests/format-registry.test.ts",
|
|
76
|
+
"test:content-negotiation": "RUN_E2E=1 vitest run tests/http-content-negotiation.test.ts",
|
|
77
|
+
"test:ui-resources": "tsx tests/ui-resources.test.ts",
|
|
78
|
+
"test:ui-rendering": "tsx --test tests/ui/result-rendering.test.ts",
|
|
79
|
+
"test:client-adaptive": "tsx tests/client-adaptive.test.ts",
|
|
80
|
+
"test:load": "bun run build && node --expose-gc --max-old-space-size=4096 node_modules/.bin/tsx tests/load-test.ts",
|
|
81
|
+
"test:sqlite": "bun run build && tsx tests/sqlite.test.ts",
|
|
82
|
+
"test:github": "bun run build && tsx tests/github-issues.integration.ts",
|
|
83
|
+
"test:beam": "bun run build && tsx tests/beam/rendering.test.ts",
|
|
84
|
+
"test:beam:regressions": "bun run build && tsx tests/beam/beam-integration-regressions.test.ts",
|
|
85
|
+
"test:e2e": "bun run build && playwright test",
|
|
86
|
+
"test:e2e:ui": "bun run build && playwright test --ui",
|
|
87
|
+
"test:visual": "bun run build && bun run build:beam && tsx tests/beam/visual/visual.test.ts",
|
|
88
|
+
"test:contracts": "tsx tests/contract/format-coverage.test.ts && tsx tests/contract/schema-contract.test.ts",
|
|
89
|
+
"test:a2ui": "bun run build && tsx tests/a2ui-mapper.test.ts && tsx tests/a2ui-e2e.test.ts && tsx tests/a2ui-renderer-script.test.ts",
|
|
90
|
+
"test:dom": "bun run build && bun run build:beam && tsx tests/contract/dom-structure.test.ts",
|
|
91
|
+
"test:promises": "bun run build && bun run build:beam && tsx tests/promises.test.ts",
|
|
89
92
|
"release": "release-it",
|
|
90
93
|
"release:minor": "release-it minor",
|
|
91
94
|
"release:major": "release-it major",
|
|
92
95
|
"release:patch": "release-it patch",
|
|
93
96
|
"release:dry": "release-it --dry-run",
|
|
94
|
-
"test:pagination-phase5": "
|
|
95
|
-
"test:pagination-phase5c": "
|
|
96
|
-
"test:pagination-phase5d": "
|
|
97
|
-
"test:phase6a": "
|
|
98
|
-
"test:phase6b": "
|
|
99
|
-
"test:phase6c": "
|
|
100
|
-
"test:phase6d": "
|
|
97
|
+
"test:pagination-phase5": "bun run build && tsx tests/pagination-phase5.test.ts",
|
|
98
|
+
"test:pagination-phase5c": "bun run build && tsx tests/pagination-phase5c.test.ts",
|
|
99
|
+
"test:pagination-phase5d": "bun run build && tsx tests/pagination-phase5d.test.ts",
|
|
100
|
+
"test:phase6a": "bun run build && tsx tests/phase6a-service-worker.test.ts",
|
|
101
|
+
"test:phase6b": "bun run build && tsx tests/phase6b-offline-state.test.ts",
|
|
102
|
+
"test:phase6c": "bun run build && tsx tests/phase6c-offline-sync.test.ts",
|
|
103
|
+
"test:phase6d": "bun run build && tsx tests/phase6d-integration.test.ts",
|
|
104
|
+
"verify:publish-version": "node scripts/verify-publish-version.mjs"
|
|
101
105
|
},
|
|
102
106
|
"keywords": [
|
|
103
107
|
"mcp",
|
|
@@ -117,9 +121,9 @@
|
|
|
117
121
|
"author": "Portel Dev",
|
|
118
122
|
"license": "MIT",
|
|
119
123
|
"dependencies": {
|
|
120
|
-
"@chenglou/pretext": "^0.0.
|
|
124
|
+
"@chenglou/pretext": "^0.0.7",
|
|
121
125
|
"@modelcontextprotocol/ext-apps": "^1.0.1",
|
|
122
|
-
"@modelcontextprotocol/sdk": "^1.
|
|
126
|
+
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
123
127
|
"@portel/cli": "^1.1.0",
|
|
124
128
|
"@portel/photon-core": "^2.27.0",
|
|
125
129
|
"boxen": "^8.0.1",
|
|
@@ -159,9 +163,9 @@
|
|
|
159
163
|
"autocannon": "^8.0.0",
|
|
160
164
|
"c8": "^11.0.0",
|
|
161
165
|
"codemirror": "^6.0.2",
|
|
162
|
-
"eslint": "^10.0
|
|
166
|
+
"eslint": "^10.3.0",
|
|
163
167
|
"eslint-config-prettier": "^10.1.8",
|
|
164
|
-
"knip": "^
|
|
168
|
+
"knip": "^6.13.1",
|
|
165
169
|
"lit": "^3.3.2",
|
|
166
170
|
"openapi-types": "^12.1.3",
|
|
167
171
|
"playwright": "^1.57.0",
|
|
@@ -172,7 +176,19 @@
|
|
|
172
176
|
"vitest": "^4.1.5"
|
|
173
177
|
},
|
|
174
178
|
"overrides": {
|
|
175
|
-
"
|
|
179
|
+
"@hono/node-server": "^1.19.13",
|
|
180
|
+
"basic-ftp": "^6.0.1",
|
|
181
|
+
"brace-expansion": "^5.0.6",
|
|
182
|
+
"defu": "^6.1.7",
|
|
183
|
+
"express-rate-limit": "^8.2.2",
|
|
184
|
+
"fast-uri": "^3.1.2",
|
|
185
|
+
"flatted": "^3.4.2",
|
|
186
|
+
"handlebars": "^4.7.9",
|
|
187
|
+
"hono": "^4.12.18",
|
|
188
|
+
"ip-address": "^10.2.0",
|
|
189
|
+
"minimatch": "^10.2.1",
|
|
190
|
+
"path-to-regexp": "^8.4.2",
|
|
191
|
+
"picomatch": "^4.0.4"
|
|
176
192
|
},
|
|
177
193
|
"engines": {
|
|
178
194
|
"node": ">=20.0.0",
|