@camstack/server 1.2.682 → 1.2.683
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/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [1.2.683] - 2026-10-28
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- Agents found on the network lists each agent's name
|
|
15
|
+
|
|
10
16
|
## [1.2.682] - 2026-10-28
|
|
11
17
|
|
|
12
18
|
### Changed
|
package/dist/agent/main.js
CHANGED
|
@@ -907,6 +907,7 @@ async function startAgent(configPath) {
|
|
|
907
907
|
void agentMdns.sync({
|
|
908
908
|
nodeId: config.nodeId,
|
|
909
909
|
version: agentVersion,
|
|
910
|
+
name: config.name,
|
|
910
911
|
port: config.statusPort ?? 4444,
|
|
911
912
|
state: pairing.state(),
|
|
912
913
|
leafFingerprint: (0, agent_pairing_store_js_1.pairedLeafFingerprint)(config.configPath),
|
|
@@ -954,6 +955,7 @@ async function startAgent(configPath) {
|
|
|
954
955
|
const pairing = new system_1.AgentPairing({
|
|
955
956
|
nodeId: config.nodeId,
|
|
956
957
|
version: agentVersion,
|
|
958
|
+
name: config.name,
|
|
957
959
|
isPaired: () => (0, agent_pairing_store_js_1.isAgentPaired)(config.configPath),
|
|
958
960
|
install: async (installed) => {
|
|
959
961
|
(0, agent_pairing_store_js_1.persistPairing)(config.configPath, installed);
|
|
@@ -55,6 +55,8 @@ const DiscoveredAgentSchema = zod_1.z.object({
|
|
|
55
55
|
host: zod_1.z.string(),
|
|
56
56
|
port: zod_1.z.number(),
|
|
57
57
|
version: zod_1.z.string().nullable(),
|
|
58
|
+
/** The agent's display name; `null` when it does not tell (an older agent). */
|
|
59
|
+
name: zod_1.z.string().nullable(),
|
|
58
60
|
state: zod_1.z.enum(['unpaired', 'pending', 'paired']),
|
|
59
61
|
fingerprint: zod_1.z.string().nullable(),
|
|
60
62
|
source: zod_1.z.enum(['mdns', 'address']),
|
|
@@ -44,7 +44,7 @@ class HubAgentPairing {
|
|
|
44
44
|
}
|
|
45
45
|
if (byKey.has(key))
|
|
46
46
|
continue;
|
|
47
|
-
byKey.set(key, this.describe(m.nodeId, m.endpoint.host, m.endpoint.port, { version: m.version, state: m.state, fingerprint: null }, 'address'));
|
|
47
|
+
byKey.set(key, this.describe(m.nodeId, m.endpoint.host, m.endpoint.port, { version: m.version, name: m.name, state: m.state, fingerprint: null }, 'address'));
|
|
48
48
|
}
|
|
49
49
|
return { agents: [...byKey.values()], scannedAt: this.scanned?.at ?? null };
|
|
50
50
|
}
|
|
@@ -56,10 +56,11 @@ class HubAgentPairing {
|
|
|
56
56
|
endpoint,
|
|
57
57
|
nodeId: hello.nodeId,
|
|
58
58
|
version: hello.version,
|
|
59
|
+
name: hello.name ?? null,
|
|
59
60
|
state: hello.state,
|
|
60
61
|
seenAt: this.now(),
|
|
61
62
|
});
|
|
62
|
-
return this.describe(hello.nodeId, host, port, { version: hello.version, state: hello.state, fingerprint: null }, 'address');
|
|
63
|
+
return this.describe(hello.nodeId, host, port, { version: hello.version, name: hello.name ?? null, state: hello.state, fingerprint: null }, 'address');
|
|
63
64
|
}
|
|
64
65
|
async begin(endpoint) {
|
|
65
66
|
const view = await this.deps.pairing.begin(endpoint);
|
|
@@ -112,6 +113,7 @@ class HubAgentPairing {
|
|
|
112
113
|
host,
|
|
113
114
|
port,
|
|
114
115
|
version: facts.version,
|
|
116
|
+
name: facts.name,
|
|
115
117
|
state: facts.state,
|
|
116
118
|
fingerprint: facts.fingerprint,
|
|
117
119
|
source,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/server",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.683",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -49,19 +49,19 @@
|
|
|
49
49
|
]
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@camstack/addon-admin-ui": "1.2.
|
|
52
|
+
"@camstack/addon-admin-ui": "1.2.511",
|
|
53
53
|
"@camstack/addon-agent-ui": "1.2.289",
|
|
54
54
|
"@camstack/addon-auth": "1.2.170",
|
|
55
55
|
"@camstack/addon-benchmark": "1.2.288",
|
|
56
56
|
"@camstack/addon-decoder-nodeav": "1.2.144",
|
|
57
57
|
"@camstack/addon-notifiers": "1.2.623",
|
|
58
58
|
"@camstack/addon-pipeline": "1.2.633",
|
|
59
|
-
"@camstack/addon-pipeline-orchestrator": "1.2.
|
|
59
|
+
"@camstack/addon-pipeline-orchestrator": "1.2.638",
|
|
60
60
|
"@camstack/addon-post-analysis": "1.2.650",
|
|
61
|
-
"@camstack/develop": "0.1.
|
|
61
|
+
"@camstack/develop": "0.1.39",
|
|
62
62
|
"@camstack/sdk": "1.2.154",
|
|
63
|
-
"@camstack/system": "1.2.
|
|
64
|
-
"@camstack/types": "1.2.
|
|
63
|
+
"@camstack/system": "1.2.514",
|
|
64
|
+
"@camstack/types": "1.2.440",
|
|
65
65
|
"@camstack/ui-library": "1.2.346",
|
|
66
66
|
"@fastify/compress": "^9.0.0",
|
|
67
67
|
"@fastify/cookie": "^11.0.2",
|