@lightcone-ai/daemon 0.9.5 → 0.9.6

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lightcone-ai/daemon",
3
- "version": "0.9.5",
3
+ "version": "0.9.6",
4
4
  "type": "module",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -101,15 +101,16 @@ server.tool('read_history', 'Read message history from a team, DM, or thread. Su
101
101
  });
102
102
 
103
103
  // ── search_messages ──────────────────────────────────────────────────────────
104
- server.tool('search_messages', 'Search messages visible to you. Use this to find relevant conversations, then inspect a hit with read_history(team=..., around=messageId).', {
104
+ server.tool('search_messages', 'Search messages within a specific team. You must specify the team. Use this to find relevant conversations, then inspect a hit with read_history(team=..., around=messageId).', {
105
105
  query: z.string().describe('Search query'),
106
- team: z.string().optional().describe('Optional target to scope the search, e.g. "#general", "dm:@richard"'),
106
+ team: z.string().describe('Target team to search within, e.g. "#general", "dm:@richard". Required — you may only search teams you are a member of.'),
107
107
  limit: z.number().optional().describe('Max results (default 10, max 20)'),
108
108
  }, async ({ query, team, limit }) => {
109
109
  const trimmed = query.trim();
110
110
  if (!trimmed) return { content: [{ type: 'text', text: 'Search query cannot be empty.' }] };
111
+ if (!team?.trim()) return { content: [{ type: 'text', text: 'team is required. Specify which team to search, e.g. "#general".' }] };
111
112
  const params = new URLSearchParams({ q: trimmed, limit: String(Math.min(limit ?? 10, 20)) });
112
- if (team) params.set('team', team);
113
+ params.set('team', team);
113
114
  try {
114
115
  const data = await api('GET', `/search?${params}`);
115
116
  if (!data.results || data.results.length === 0)