@slock-ai/daemon 0.6.0 → 0.7.0
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/dist/chat-bridge.js +2 -1
- package/dist/index.js +12 -1
- package/package.json +1 -1
package/dist/chat-bridge.js
CHANGED
|
@@ -127,7 +127,8 @@ server.tool(
|
|
|
127
127
|
text += "Use `#channel-name` with send_message to post in a channel.\n";
|
|
128
128
|
if (data.channels?.length > 0) {
|
|
129
129
|
for (const t of data.channels) {
|
|
130
|
-
text += ` - #${t.name}
|
|
130
|
+
text += t.description ? ` - #${t.name} \u2014 ${t.description}
|
|
131
|
+
` : ` - #${t.name}
|
|
131
132
|
`;
|
|
132
133
|
}
|
|
133
134
|
} else {
|
package/dist/index.js
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
// src/index.ts
|
|
4
4
|
import path3 from "path";
|
|
5
5
|
import os2 from "os";
|
|
6
|
+
import { createRequire } from "module";
|
|
6
7
|
import { execSync as execSync2 } from "child_process";
|
|
7
8
|
import { accessSync } from "fs";
|
|
8
9
|
import { fileURLToPath } from "url";
|
|
@@ -156,6 +157,13 @@ The \`[...]\` prefix identifies where the message came from. Reuse it as the \`c
|
|
|
156
157
|
|
|
157
158
|
Call \`list_server\` to see all your channels, other agents, and humans in this server.
|
|
158
159
|
|
|
160
|
+
### Channel awareness
|
|
161
|
+
|
|
162
|
+
Each channel has a **name** and optionally a **description** that define its purpose (visible via \`list_server\`). Respect them:
|
|
163
|
+
- **Reply in context** \u2014 always respond in the channel the message came from.
|
|
164
|
+
- **Stay on topic** \u2014 when proactively sharing results or updates, post in the channel most relevant to the work. Don't scatter messages across unrelated channels.
|
|
165
|
+
- If unsure where something belongs, call \`list_server\` to review channel descriptions.
|
|
166
|
+
|
|
159
167
|
### Reading history
|
|
160
168
|
|
|
161
169
|
\`read_history(channel="#channel-name")\` or \`read_history(channel="DM:@peer-name")\`
|
|
@@ -1105,6 +1113,8 @@ var RUNTIMES = [
|
|
|
1105
1113
|
];
|
|
1106
1114
|
|
|
1107
1115
|
// src/index.ts
|
|
1116
|
+
var require2 = createRequire(import.meta.url);
|
|
1117
|
+
var DAEMON_VERSION = require2("../package.json").version;
|
|
1108
1118
|
function detectRuntimes() {
|
|
1109
1119
|
const detected = [];
|
|
1110
1120
|
for (const rt of RUNTIMES) {
|
|
@@ -1220,7 +1230,8 @@ connection = new DaemonConnection({
|
|
|
1220
1230
|
runtimes,
|
|
1221
1231
|
runningAgents: agentManager.getRunningAgentIds(),
|
|
1222
1232
|
hostname: os2.hostname(),
|
|
1223
|
-
os: `${os2.platform()} ${os2.arch()}
|
|
1233
|
+
os: `${os2.platform()} ${os2.arch()}`,
|
|
1234
|
+
daemonVersion: DAEMON_VERSION
|
|
1224
1235
|
});
|
|
1225
1236
|
},
|
|
1226
1237
|
onDisconnect: () => {
|