comisai 1.0.8 → 1.0.9
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/node_modules/@comis/agent/package.json +1 -1
- package/node_modules/@comis/channels/package.json +1 -1
- package/node_modules/@comis/cli/dist/commands/daemon.js +15 -2
- package/node_modules/@comis/cli/package.json +1 -1
- package/node_modules/@comis/core/package.json +1 -1
- package/node_modules/@comis/daemon/package.json +1 -1
- package/node_modules/@comis/gateway/package.json +1 -1
- package/node_modules/@comis/infra/package.json +1 -1
- package/node_modules/@comis/memory/package.json +1 -1
- package/node_modules/@comis/scheduler/package.json +1 -1
- package/node_modules/@comis/shared/package.json +1 -1
- package/node_modules/@comis/skills/package.json +1 -1
- package/package.json +12 -12
|
@@ -190,7 +190,7 @@ async function execSystemctl(manager, ...args) {
|
|
|
190
190
|
// System-scope systemd requires root; escalate via sudo if we're not root
|
|
191
191
|
// eslint-disable-next-line no-restricted-syntax -- CLI bootstrap before SecretManager
|
|
192
192
|
if (manager === "systemd" && process.getuid?.() !== 0) {
|
|
193
|
-
return exec("sudo", ["systemctl", ...fullArgs], { timeout: 15_000 });
|
|
193
|
+
return exec("sudo", ["-n", "systemctl", ...fullArgs], { timeout: 15_000 });
|
|
194
194
|
}
|
|
195
195
|
return exec("systemctl", fullArgs, { timeout: 15_000 });
|
|
196
196
|
}
|
|
@@ -264,7 +264,20 @@ async function handleDaemonStart() {
|
|
|
264
264
|
case "systemd":
|
|
265
265
|
case "systemd-user": {
|
|
266
266
|
if (await isSystemdActive(manager)) {
|
|
267
|
-
|
|
267
|
+
// Verify the CLI can actually talk to the daemon
|
|
268
|
+
try {
|
|
269
|
+
await withClient(async (client) => client.call("system.ping", {}));
|
|
270
|
+
success("Daemon is already running (systemd)");
|
|
271
|
+
}
|
|
272
|
+
catch {
|
|
273
|
+
warn("Daemon is running (systemd) but CLI cannot connect");
|
|
274
|
+
if (!existsSync(safePath(os.homedir(), ".comis", "config.yaml"))) {
|
|
275
|
+
info("Run 'comis init' to configure the daemon");
|
|
276
|
+
}
|
|
277
|
+
else {
|
|
278
|
+
info("Try restarting: sudo systemctl restart comis");
|
|
279
|
+
}
|
|
280
|
+
}
|
|
268
281
|
return;
|
|
269
282
|
}
|
|
270
283
|
const scope = manager === "systemd-user" ? "systemd (user scope)" : "systemd";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "comisai",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.9",
|
|
4
4
|
"author": "Moshe Anconina",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"description": "Security-first AI agent platform — connects AI agents to Discord, Telegram, Slack, WhatsApp, and more",
|
|
@@ -115,17 +115,17 @@
|
|
|
115
115
|
"@comis/daemon"
|
|
116
116
|
],
|
|
117
117
|
"dependencies": {
|
|
118
|
-
"@comis/shared": "1.0.
|
|
119
|
-
"@comis/core": "1.0.
|
|
120
|
-
"@comis/infra": "1.0.
|
|
121
|
-
"@comis/memory": "1.0.
|
|
122
|
-
"@comis/gateway": "1.0.
|
|
123
|
-
"@comis/skills": "1.0.
|
|
124
|
-
"@comis/scheduler": "1.0.
|
|
125
|
-
"@comis/agent": "1.0.
|
|
126
|
-
"@comis/channels": "1.0.
|
|
127
|
-
"@comis/cli": "1.0.
|
|
128
|
-
"@comis/daemon": "1.0.
|
|
118
|
+
"@comis/shared": "1.0.9",
|
|
119
|
+
"@comis/core": "1.0.9",
|
|
120
|
+
"@comis/infra": "1.0.9",
|
|
121
|
+
"@comis/memory": "1.0.9",
|
|
122
|
+
"@comis/gateway": "1.0.9",
|
|
123
|
+
"@comis/skills": "1.0.9",
|
|
124
|
+
"@comis/scheduler": "1.0.9",
|
|
125
|
+
"@comis/agent": "1.0.9",
|
|
126
|
+
"@comis/channels": "1.0.9",
|
|
127
|
+
"@comis/cli": "1.0.9",
|
|
128
|
+
"@comis/daemon": "1.0.9",
|
|
129
129
|
"@agentclientprotocol/sdk": "^0.15.0",
|
|
130
130
|
"@clack/core": "^1.1.0",
|
|
131
131
|
"@clack/prompts": "^1.1.0",
|