@camstack/server 1.2.144 → 1.2.145
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.
|
@@ -4361,6 +4361,45 @@ function createCapRouter_localNetwork(getProvider, createRemoteProxy) {
|
|
|
4361
4361
|
const p = resolveProvider('local-network', input?.nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
4362
4362
|
return p.resetAllowlistToBestMatch();
|
|
4363
4363
|
}),
|
|
4364
|
+
getTlsStatus: trpc_middleware_js_1.protectedProcedure
|
|
4365
|
+
.input(zod_1.z.object({ nodeId: zod_1.z.string().optional() }).optional())
|
|
4366
|
+
.output(types_57.localNetworkCapability.methods.getTlsStatus.output)
|
|
4367
|
+
.query(async ({ input, ctx }) => {
|
|
4368
|
+
const p = resolveProvider('local-network', input?.nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
4369
|
+
return p.getTlsStatus();
|
|
4370
|
+
}),
|
|
4371
|
+
regenerateCertificate: trpc_middleware_js_1.adminProcedure
|
|
4372
|
+
.input(types_57.localNetworkCapability.methods.regenerateCertificate.input.loose())
|
|
4373
|
+
.output(types_57.localNetworkCapability.methods.regenerateCertificate.output)
|
|
4374
|
+
.mutation(async ({ input, ctx }) => {
|
|
4375
|
+
const { nodeId, ...methodInput } = input;
|
|
4376
|
+
const p = resolveProvider('local-network', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
4377
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
4378
|
+
return p.regenerateCertificate(methodInput);
|
|
4379
|
+
}),
|
|
4380
|
+
uploadCertificate: trpc_middleware_js_1.adminProcedure
|
|
4381
|
+
.input(types_57.localNetworkCapability.methods.uploadCertificate.input.loose())
|
|
4382
|
+
.output(types_57.localNetworkCapability.methods.uploadCertificate.output)
|
|
4383
|
+
.mutation(async ({ input, ctx }) => {
|
|
4384
|
+
const { nodeId, ...methodInput } = input;
|
|
4385
|
+
const p = resolveProvider('local-network', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
4386
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
4387
|
+
return p.uploadCertificate(methodInput);
|
|
4388
|
+
}),
|
|
4389
|
+
downloadCa: trpc_middleware_js_1.protectedProcedure
|
|
4390
|
+
.input(zod_1.z.object({ nodeId: zod_1.z.string().optional() }).optional())
|
|
4391
|
+
.output(types_57.localNetworkCapability.methods.downloadCa.output)
|
|
4392
|
+
.query(async ({ input, ctx }) => {
|
|
4393
|
+
const p = resolveProvider('local-network', input?.nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
4394
|
+
return p.downloadCa();
|
|
4395
|
+
}),
|
|
4396
|
+
revertToGeneratedCertificate: trpc_middleware_js_1.adminProcedure
|
|
4397
|
+
.input(zod_1.z.object({ nodeId: zod_1.z.string().optional() }).optional())
|
|
4398
|
+
.output(types_57.localNetworkCapability.methods.revertToGeneratedCertificate.output)
|
|
4399
|
+
.mutation(async ({ input, ctx }) => {
|
|
4400
|
+
const p = resolveProvider('local-network', input?.nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
4401
|
+
return p.revertToGeneratedCertificate();
|
|
4402
|
+
}),
|
|
4364
4403
|
});
|
|
4365
4404
|
}
|
|
4366
4405
|
function createCapRouter_lockControl(getProvider, createRemoteProxy) {
|
|
@@ -9016,6 +9055,15 @@ function createCapRouter_terminalSession(getProvider, createRemoteProxy) {
|
|
|
9016
9055
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
9017
9056
|
return p.createInstance(methodInput);
|
|
9018
9057
|
}),
|
|
9058
|
+
updateInstance: trpc_middleware_js_1.adminProcedure
|
|
9059
|
+
.input(types_110.terminalSessionCapability.methods.updateInstance.input.loose())
|
|
9060
|
+
.output(types_110.terminalSessionCapability.methods.updateInstance.output)
|
|
9061
|
+
.mutation(async ({ input, ctx }) => {
|
|
9062
|
+
const { nodeId, ...methodInput } = input;
|
|
9063
|
+
const p = resolveProvider('terminal-session', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
9064
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
9065
|
+
return p.updateInstance(methodInput);
|
|
9066
|
+
}),
|
|
9019
9067
|
deleteInstance: trpc_middleware_js_1.adminProcedure
|
|
9020
9068
|
.input(types_110.terminalSessionCapability.methods.deleteInstance.input.loose())
|
|
9021
9069
|
.output(types_110.terminalSessionCapability.methods.deleteInstance.output)
|
package/dist/boot/boot-config.js
CHANGED
|
@@ -222,7 +222,8 @@ async function setupInfra(configPath, bootstrapConfig) {
|
|
|
222
222
|
}
|
|
223
223
|
else {
|
|
224
224
|
// Hub-generated local CA → leaf (D227)
|
|
225
|
-
const
|
|
225
|
+
const extraSans = [...(core.readExtraSans?.(dataPath) ?? [])];
|
|
226
|
+
const tlsResult = await ensureTlsCert(dataPath, extraSans.length > 0 ? { extraSans } : undefined);
|
|
226
227
|
tlsCert = tlsResult;
|
|
227
228
|
logTlsCert(tlsResult);
|
|
228
229
|
const pair = loadTlsCert(tlsResult.certPath, tlsResult.keyPath);
|
package/dist/main.js
CHANGED
|
@@ -1316,6 +1316,26 @@ async function bootstrap() {
|
|
|
1316
1316
|
const logger = app.get(logging_service_1.LoggingService).createLogger('System');
|
|
1317
1317
|
const protocol = tlsOptions ? 'https' : 'http';
|
|
1318
1318
|
logger.info('CamStack server listening', { meta: { protocol, host, port, trpcRegistered } });
|
|
1319
|
+
// LAN HTTP sibling — same Fastify request graph, dedicated port. Handler
|
|
1320
|
+
// is registered as soon as we have the instance; bind happens after HTTPS
|
|
1321
|
+
// is up so a failed HTTPS listen does not leave HTTP serving alone.
|
|
1322
|
+
(0, system_1.registerLanHttpHandler)((req, res) => {
|
|
1323
|
+
fastify.server.emit('request', req, res);
|
|
1324
|
+
});
|
|
1325
|
+
try {
|
|
1326
|
+
const lanHttp = await (0, system_1.bindPendingLanHttp)();
|
|
1327
|
+
if (lanHttp.listening) {
|
|
1328
|
+
logger.info('LAN HTTP listening', { meta: { port: lanHttp.port } });
|
|
1329
|
+
}
|
|
1330
|
+
else if (lanHttp.error) {
|
|
1331
|
+
logger.warn('LAN HTTP not bound', { meta: { error: lanHttp.error, port: lanHttp.port } });
|
|
1332
|
+
}
|
|
1333
|
+
}
|
|
1334
|
+
catch (err) {
|
|
1335
|
+
logger.warn('LAN HTTP bind failed', {
|
|
1336
|
+
meta: { error: err instanceof Error ? err.message : String(err) },
|
|
1337
|
+
});
|
|
1338
|
+
}
|
|
1319
1339
|
// UI runners are not part of control-plane readiness. Their mutable route
|
|
1320
1340
|
// state switches from 503 to static serving as soon as each capability is up.
|
|
1321
1341
|
void Promise.all([resolveAdminUi(), resolveViewerUi()]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/server",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.145",
|
|
4
4
|
"private": false,
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -33,18 +33,18 @@
|
|
|
33
33
|
]
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@camstack/addon-admin-ui": "1.2.
|
|
36
|
+
"@camstack/addon-admin-ui": "1.2.88",
|
|
37
37
|
"@camstack/addon-agent-ui": "1.2.27",
|
|
38
38
|
"@camstack/addon-auth": "1.2.29",
|
|
39
39
|
"@camstack/addon-decoder-nodeav": "1.2.25",
|
|
40
40
|
"@camstack/addon-notifiers": "1.2.30",
|
|
41
|
-
"@camstack/addon-pipeline": "1.2.
|
|
42
|
-
"@camstack/addon-pipeline-orchestrator": "1.2.
|
|
43
|
-
"@camstack/addon-post-analysis": "1.2.
|
|
44
|
-
"@camstack/sdk": "1.2.
|
|
45
|
-
"@camstack/system": "1.2.
|
|
46
|
-
"@camstack/types": "1.2.
|
|
47
|
-
"@camstack/ui-library": "1.2.
|
|
41
|
+
"@camstack/addon-pipeline": "1.2.107",
|
|
42
|
+
"@camstack/addon-pipeline-orchestrator": "1.2.90",
|
|
43
|
+
"@camstack/addon-post-analysis": "1.2.109",
|
|
44
|
+
"@camstack/sdk": "1.2.29",
|
|
45
|
+
"@camstack/system": "1.2.116",
|
|
46
|
+
"@camstack/types": "1.2.97",
|
|
47
|
+
"@camstack/ui-library": "1.2.67",
|
|
48
48
|
"@fastify/compress": "^9.0.0",
|
|
49
49
|
"@fastify/cookie": "^11.0.2",
|
|
50
50
|
"@fastify/cors": "^11.2.0",
|