nothumanallowed 11.1.1 → 11.1.2
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/package.json +1 -1
- package/src/commands/collab.mjs +8 -4
- package/src/constants.mjs +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nothumanallowed",
|
|
3
|
-
"version": "11.1.
|
|
3
|
+
"version": "11.1.2",
|
|
4
4
|
"description": "NotHumanAllowed — 38 AI agents, 53 tools. Email, calendar, browser automation, screen capture, canvas, cron/heartbeat, GitHub, Notion, Slack, voice chat, 28 languages. Zero-dependency CLI.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
package/src/commands/collab.mjs
CHANGED
|
@@ -121,11 +121,15 @@ function getOrCreateIdentity() {
|
|
|
121
121
|
let id = loadIdentity();
|
|
122
122
|
if (!id) {
|
|
123
123
|
id = generateKeypair();
|
|
124
|
-
// Use profile name from config if available
|
|
124
|
+
// Use profile name from NHA config if available
|
|
125
125
|
try {
|
|
126
|
-
const
|
|
127
|
-
|
|
128
|
-
|
|
126
|
+
const cfgFile = path.join(NHA_DIR, 'config.json');
|
|
127
|
+
if (fs.existsSync(cfgFile)) {
|
|
128
|
+
const cfg = JSON.parse(fs.readFileSync(cfgFile, 'utf-8'));
|
|
129
|
+
id.displayName = cfg.profile?.name || `Agent-${id.fingerprint.slice(0, 6)}`;
|
|
130
|
+
} else {
|
|
131
|
+
id.displayName = `Agent-${id.fingerprint.slice(0, 6)}`;
|
|
132
|
+
}
|
|
129
133
|
} catch {
|
|
130
134
|
id.displayName = `Agent-${id.fingerprint.slice(0, 6)}`;
|
|
131
135
|
}
|
package/src/constants.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import { fileURLToPath } from 'url';
|
|
|
5
5
|
const __filename = fileURLToPath(import.meta.url);
|
|
6
6
|
const __dirname = path.dirname(__filename);
|
|
7
7
|
|
|
8
|
-
export const VERSION = '11.1.
|
|
8
|
+
export const VERSION = '11.1.2';
|
|
9
9
|
export const BASE_URL = 'https://nothumanallowed.com/cli';
|
|
10
10
|
export const API_BASE = 'https://nothumanallowed.com/api/v1';
|
|
11
11
|
|