@agent-webui/ai-desk-daemon 1.0.61-beta4 → 1.0.61-beta5
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/lib/daemon-registry.js +18 -0
- package/package.json +11 -11
package/lib/daemon-registry.js
CHANGED
|
@@ -153,6 +153,20 @@ function listIpAddresses() {
|
|
|
153
153
|
return [...new Set(out)];
|
|
154
154
|
}
|
|
155
155
|
|
|
156
|
+
function listMacAddresses() {
|
|
157
|
+
const out = [];
|
|
158
|
+
const interfaces = os.networkInterfaces();
|
|
159
|
+
for (const items of Object.values(interfaces)) {
|
|
160
|
+
for (const item of items || []) {
|
|
161
|
+
const mac = trim(item.mac).toLowerCase();
|
|
162
|
+
if (!item.internal && mac && mac !== '00:00:00:00:00:00') {
|
|
163
|
+
out.push(mac);
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
return [...new Set(out)];
|
|
168
|
+
}
|
|
169
|
+
|
|
156
170
|
function buildLifecyclePayload({
|
|
157
171
|
event,
|
|
158
172
|
runId,
|
|
@@ -161,16 +175,19 @@ function buildLifecyclePayload({
|
|
|
161
175
|
version,
|
|
162
176
|
daemonInstanceId,
|
|
163
177
|
}) {
|
|
178
|
+
const macAddresses = listMacAddresses();
|
|
164
179
|
return {
|
|
165
180
|
daemonInstanceId,
|
|
166
181
|
runId,
|
|
167
182
|
event,
|
|
168
183
|
seq,
|
|
184
|
+
machineId: macAddresses[0] || daemonInstanceId,
|
|
169
185
|
hostname: os.hostname(),
|
|
170
186
|
osUsername: os.userInfo().username,
|
|
171
187
|
daemonVersion: version,
|
|
172
188
|
port,
|
|
173
189
|
ipAddresses: listIpAddresses(),
|
|
190
|
+
macAddresses,
|
|
174
191
|
};
|
|
175
192
|
}
|
|
176
193
|
|
|
@@ -250,5 +267,6 @@ module.exports = {
|
|
|
250
267
|
ensureDaemonInstanceId,
|
|
251
268
|
readRunState,
|
|
252
269
|
writeRunState,
|
|
270
|
+
listMacAddresses,
|
|
253
271
|
reportLifecycle,
|
|
254
272
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agent-webui/ai-desk-daemon",
|
|
3
|
-
"version": "1.0.61-
|
|
3
|
+
"version": "1.0.61-beta5",
|
|
4
4
|
"description": "AI Desk Daemon - CLI tool for managing the AI Desk daemon service",
|
|
5
5
|
"workspaces": [
|
|
6
6
|
"packages/*"
|
|
@@ -39,16 +39,16 @@
|
|
|
39
39
|
"chalk": "^4.1.2"
|
|
40
40
|
},
|
|
41
41
|
"optionalDependencies": {
|
|
42
|
-
"@agent-webui/ai-desk-daemon-darwin-arm64": "1.0.61-
|
|
43
|
-
"@agent-webui/ai-desk-daemon-darwin-x64": "1.0.61-
|
|
44
|
-
"@agent-webui/ai-desk-daemon-linux-arm64": "1.0.61-
|
|
45
|
-
"@agent-webui/ai-desk-daemon-linux-x64": "1.0.61-
|
|
46
|
-
"@agent-webui/ai-desk-daemon-win32-x64": "1.0.61-
|
|
47
|
-
"@agent-webui/ai-desk-python-darwin-arm64": "1.0.61-
|
|
48
|
-
"@agent-webui/ai-desk-python-darwin-x64": "1.0.61-
|
|
49
|
-
"@agent-webui/ai-desk-python-linux-arm64": "1.0.61-
|
|
50
|
-
"@agent-webui/ai-desk-python-linux-x64": "1.0.61-
|
|
51
|
-
"@agent-webui/ai-desk-python-win32-x64": "1.0.61-
|
|
42
|
+
"@agent-webui/ai-desk-daemon-darwin-arm64": "1.0.61-beta5",
|
|
43
|
+
"@agent-webui/ai-desk-daemon-darwin-x64": "1.0.61-beta5",
|
|
44
|
+
"@agent-webui/ai-desk-daemon-linux-arm64": "1.0.61-beta5",
|
|
45
|
+
"@agent-webui/ai-desk-daemon-linux-x64": "1.0.61-beta5",
|
|
46
|
+
"@agent-webui/ai-desk-daemon-win32-x64": "1.0.61-beta5",
|
|
47
|
+
"@agent-webui/ai-desk-python-darwin-arm64": "1.0.61-beta5",
|
|
48
|
+
"@agent-webui/ai-desk-python-darwin-x64": "1.0.61-beta5",
|
|
49
|
+
"@agent-webui/ai-desk-python-linux-arm64": "1.0.61-beta5",
|
|
50
|
+
"@agent-webui/ai-desk-python-linux-x64": "1.0.61-beta5",
|
|
51
|
+
"@agent-webui/ai-desk-python-win32-x64": "1.0.61-beta5"
|
|
52
52
|
},
|
|
53
53
|
"repository": {
|
|
54
54
|
"type": "git",
|