log-llm-config 1.3.68 → 1.3.69

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.
@@ -91,6 +91,19 @@ const readClaudeEmailFromHomeFiles = () => {
91
91
  return '';
92
92
  };
93
93
  const readClaudeAuthEmail = () => readClaudeAuthEmailFromCli().trim() || readClaudeEmailFromHomeFiles();
94
+ const readMachineName = () => {
95
+ const fromEnv = process.env.OPTIMUS_MACHINE_NAME?.trim();
96
+ if (fromEnv)
97
+ return fromEnv;
98
+ // macOS: human-readable computer name set in System Settings
99
+ if (process.platform === 'darwin') {
100
+ const name = readCommandOutput('scutil --get ComputerName');
101
+ if (name)
102
+ return name;
103
+ }
104
+ // Fallback: OS hostname
105
+ return os.hostname();
106
+ };
94
107
  const readMacUsername = () => {
95
108
  const fromEnv = process.env.OPTIMUS_MAC_USERNAME?.trim() ||
96
109
  process.env.USER?.trim() ||
@@ -169,6 +182,7 @@ const buildDefaultUserProfile = () => ({
169
182
  generateduuid: readMacAccountGeneratedUid() || crypto.randomUUID(),
170
183
  machineuuid: resolveHardwareUuid(),
171
184
  mac_username: readMacUsername(),
185
+ machine_name: readMachineName(),
172
186
  github_username: readGithubUsername(),
173
187
  claude_email: readClaudeAuthEmail(),
174
188
  cursor_email: readCursorCachedEmail(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "log-llm-config",
3
- "version": "1.3.68",
3
+ "version": "1.3.69",
4
4
  "description": "CLI helpers for logging hardware UUIDs and posting startup payloads to Optimus Security.",
5
5
  "type": "module",
6
6
  "bin": {