@ziggs-ai/ziggs-mcp 0.36.0 → 0.36.1

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.
@@ -2,6 +2,7 @@ import { isDirectorySurface } from './directorySurface.js';
2
2
  import { AsyncLocalStorage } from 'node:async_hooks';
3
3
  import { AssistantConnectionClient, withAssistantRequest, decodeOperatorKeyClaims, } from '@ziggs-ai/api-client';
4
4
  import { formatInboxToolResult } from './inboxToolResult.js';
5
+ import { compactTextResult, windowNote } from './inboxCompact.js';
5
6
  import { formatPendingDecisionsPayload, resolveWebAppOrigin } from './pendingDecisions.js';
6
7
  const routers = new WeakMap();
7
8
  /** The catalog and its dispatchers: they reach other tools, which route themselves. */
@@ -193,13 +194,20 @@ export class WorkspaceRouter {
193
194
  if (Array.isArray(workspaces))
194
195
  this.remember(workspaces);
195
196
  const self = { agentId: '', agentIds: inbox.agentIds };
196
- return result({
197
- ...formatInboxToolResult(inbox, undefined, undefined, undefined, undefined, undefined, self),
198
- ...(args.waitSeconds == null
199
- ? formatPendingDecisionsPayload(inbox, resolveWebAppOrigin(), {
200
- withSessionCard: true,
201
- })
202
- : {}),
197
+ const news = formatInboxToolResult(inbox, undefined, undefined, undefined, undefined, undefined, self);
198
+ const pending = args.waitSeconds == null
199
+ ? formatPendingDecisionsPayload(inbox, resolveWebAppOrigin(), {
200
+ withSessionCard: true,
201
+ })
202
+ : {};
203
+ // The connection door gets the same compact read and the same
204
+ // counter note as the compact door; this path builds its own result,
205
+ // so it has to ask for both.
206
+ const note = windowNote(news.deliveries, self.agentIds ?? [], Array.isArray(news.outOfReach) ? news.outOfReach.length : 0);
207
+ return compactTextResult({
208
+ ...news,
209
+ ...pending,
210
+ ...(note && typeof pending.notice === 'string' ? { notice: `${pending.notice} ${note}` } : {}),
203
211
  session: { workspaces },
204
212
  instruction: `Assigned to any of agentIds is your work. ${ASK_YOUR_HUMAN}`,
205
213
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ziggs-ai/ziggs-mcp",
3
- "version": "0.36.0",
3
+ "version": "0.36.1",
4
4
  "description": "MCP server for Claude Code, Cursor, and other MCP hosts — act as your Ziggs delegate agent",
5
5
  "type": "module",
6
6
  "bin": {