heximon 0.39.0 → 0.40.1
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/dist/bin.mjs +15 -2
- package/package.json +18 -18
package/dist/bin.mjs
CHANGED
|
@@ -6172,6 +6172,7 @@ const RoutesDiagnosticCode = {
|
|
|
6172
6172
|
* source that resolves neither stays exactly as wide as it always was: `SCOPES` for the authorization union,
|
|
6173
6173
|
* and `MIDDLEWARE` for the connect/upgrade chain that guards a streaming path — the two are different
|
|
6174
6174
|
* answers to "what stands between a caller and this path", so neither is rendered in the other's column.
|
|
6175
|
+
* `MCP` is appended when some row carries an MCP fact: the tool name, or `excluded`.
|
|
6175
6176
|
*/
|
|
6176
6177
|
var RouteTableReport = class RouteTableReport {
|
|
6177
6178
|
static baseHeaders = [
|
|
@@ -6184,6 +6185,10 @@ var RouteTableReport = class RouteTableReport {
|
|
|
6184
6185
|
static scopesHeader = "SCOPES";
|
|
6185
6186
|
/** The `MIDDLEWARE` column header, appended only when some row carries a connect/upgrade chain. */
|
|
6186
6187
|
static middlewareHeader = "MIDDLEWARE";
|
|
6188
|
+
/** The `MCP` column header, appended only when some row is an MCP tool or excluded from the tools. */
|
|
6189
|
+
static mcpHeader = "MCP";
|
|
6190
|
+
/** The `MCP` cell for a route that a `.mcp({ exclude: true })` mark leaves out. */
|
|
6191
|
+
static excludedMcpCell = "excluded";
|
|
6187
6192
|
/** The `SCOPES` cell for a route that resolved to no scopes at all — an unguarded route. */
|
|
6188
6193
|
static noScopesCell = "-";
|
|
6189
6194
|
/** The `SCOPES` cell for a route whose scopes could not be resolved — NOT the same fact as none. */
|
|
@@ -6192,10 +6197,12 @@ var RouteTableReport = class RouteTableReport {
|
|
|
6192
6197
|
static render(rows) {
|
|
6193
6198
|
const withScopes = rows.some((row) => row.scopes !== void 0 || row.scopesUnresolved !== void 0);
|
|
6194
6199
|
const withMiddleware = rows.some((row) => row.middlewares !== void 0);
|
|
6200
|
+
const withMcp = rows.some((row) => row.mcp !== void 0);
|
|
6195
6201
|
const headers = [
|
|
6196
6202
|
...RouteTableReport.baseHeaders,
|
|
6197
6203
|
...withScopes ? [RouteTableReport.scopesHeader] : [],
|
|
6198
|
-
...withMiddleware ? [RouteTableReport.middlewareHeader] : []
|
|
6204
|
+
...withMiddleware ? [RouteTableReport.middlewareHeader] : [],
|
|
6205
|
+
...withMcp ? [RouteTableReport.mcpHeader] : []
|
|
6199
6206
|
];
|
|
6200
6207
|
const cells = rows.map((row) => [
|
|
6201
6208
|
row.method,
|
|
@@ -6203,7 +6210,8 @@ var RouteTableReport = class RouteTableReport {
|
|
|
6203
6210
|
row.source,
|
|
6204
6211
|
RouteTableReport.handlerOf(row),
|
|
6205
6212
|
...withScopes ? [RouteTableReport.scopesOf(row)] : [],
|
|
6206
|
-
...withMiddleware ? [(row.middlewares ?? []).join(", ")] : []
|
|
6213
|
+
...withMiddleware ? [(row.middlewares ?? []).join(", ")] : [],
|
|
6214
|
+
...withMcp ? [RouteTableReport.mcpOf(row)] : []
|
|
6207
6215
|
]);
|
|
6208
6216
|
const widths = headers.map((header, column) => Math.max(header.length, ...cells.map((row) => row[column].length)));
|
|
6209
6217
|
const line = (columns) => columns.map((value, column) => value.padEnd(widths[column])).join(" ").trimEnd();
|
|
@@ -6226,6 +6234,11 @@ var RouteTableReport = class RouteTableReport {
|
|
|
6226
6234
|
if (row.scopes !== void 0) return row.scopes.length === 0 ? RouteTableReport.noScopesCell : row.scopes.join(", ");
|
|
6227
6235
|
return row.scopesUnresolved === void 0 ? "" : RouteTableReport.unresolvedScopesCell;
|
|
6228
6236
|
}
|
|
6237
|
+
/** The `MCP` cell: the tool name, `excluded`, or empty for a route that is not a tool. */
|
|
6238
|
+
static mcpOf(row) {
|
|
6239
|
+
if (row.mcp?.excluded === true) return RouteTableReport.excludedMcpCell;
|
|
6240
|
+
return row.mcp?.tool ?? "";
|
|
6241
|
+
}
|
|
6229
6242
|
};
|
|
6230
6243
|
// src/transform-boot.ts
|
|
6231
6244
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "heximon",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.40.1",
|
|
4
4
|
"description": "The Heximon CLI: create, develop, build, migrate, and deploy Heximon apps.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cli",
|
|
@@ -38,28 +38,28 @@
|
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@bomb.sh/tab": "^0.0.22",
|
|
40
40
|
"@clack/prompts": "^1.8.1",
|
|
41
|
-
"@heximon/compiler": "0.
|
|
42
|
-
"@heximon/cqrs": "0.
|
|
43
|
-
"@heximon/deploy": "0.
|
|
44
|
-
"@heximon/http": "0.
|
|
45
|
-
"@heximon/node": "0.
|
|
46
|
-
"@heximon/runtime": "0.
|
|
47
|
-
"@heximon/testing": "0.
|
|
41
|
+
"@heximon/compiler": "0.40.1",
|
|
42
|
+
"@heximon/cqrs": "0.40.1",
|
|
43
|
+
"@heximon/deploy": "0.40.1",
|
|
44
|
+
"@heximon/http": "0.40.1",
|
|
45
|
+
"@heximon/node": "0.40.1",
|
|
46
|
+
"@heximon/runtime": "0.40.1",
|
|
47
|
+
"@heximon/testing": "0.40.1",
|
|
48
48
|
"citty": "^0.2.2",
|
|
49
49
|
"giget": "^3.3.1",
|
|
50
50
|
"pathe": "^2.0.3"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@heximon/build": "0.
|
|
54
|
-
"@heximon/cloudflare": "0.
|
|
55
|
-
"@heximon/durable": "0.
|
|
56
|
-
"@heximon/integration": "0.
|
|
57
|
-
"@heximon/library": "0.
|
|
58
|
-
"@heximon/nitro": "0.
|
|
59
|
-
"@heximon/otel": "0.
|
|
60
|
-
"@heximon/queue": "0.
|
|
61
|
-
"@heximon/schedule": "0.
|
|
62
|
-
"@heximon/schema": "0.
|
|
53
|
+
"@heximon/build": "0.40.1",
|
|
54
|
+
"@heximon/cloudflare": "0.40.1",
|
|
55
|
+
"@heximon/durable": "0.40.1",
|
|
56
|
+
"@heximon/integration": "0.40.1",
|
|
57
|
+
"@heximon/library": "0.40.1",
|
|
58
|
+
"@heximon/nitro": "0.40.1",
|
|
59
|
+
"@heximon/otel": "0.40.1",
|
|
60
|
+
"@heximon/queue": "0.40.1",
|
|
61
|
+
"@heximon/schedule": "0.40.1",
|
|
62
|
+
"@heximon/schema": "0.40.1",
|
|
63
63
|
"@heximon/test-support": "0.0.1",
|
|
64
64
|
"@types/node": "^24.19.0",
|
|
65
65
|
"@typescript/native-preview": "^7.0.0-dev.20260707.2",
|