@ziggs-ai/ziggs-mcp 0.37.10 → 0.37.12
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/inboxToolResult.js
CHANGED
|
@@ -22,13 +22,9 @@ function outOfReachOf(d) {
|
|
|
22
22
|
* itself for a free-standing one.
|
|
23
23
|
*/
|
|
24
24
|
function openCall(kind, id) {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
? { chatId: id }
|
|
29
|
-
: kind === 'task'
|
|
30
|
-
? { taskId: id }
|
|
31
|
-
: { agreementId: id };
|
|
25
|
+
// One field names any record; the kind is read from it.
|
|
26
|
+
void kind;
|
|
27
|
+
const args = { ref: id };
|
|
32
28
|
return {
|
|
33
29
|
tool: 'ziggs_open',
|
|
34
30
|
args,
|
|
@@ -185,7 +181,7 @@ export function buildReadPlan(inbox, grantsByScope, self = { agentId: '' }) {
|
|
|
185
181
|
surface: 'mcp',
|
|
186
182
|
});
|
|
187
183
|
if (words) {
|
|
188
|
-
add(`open:agreement:${agreementId}`, { tool: 'ziggs_open', args: { agreementId }, why: words.sentence }, mine, mine ? d.resourceId : undefined);
|
|
184
|
+
add(`open:agreement:${agreementId}`, { tool: 'ziggs_open', args: { ref: agreementId }, why: words.sentence }, mine, mine ? d.resourceId : undefined);
|
|
189
185
|
}
|
|
190
186
|
break;
|
|
191
187
|
}
|
package/dist/pendingDecisions.js
CHANGED
|
@@ -41,12 +41,12 @@ export function buildDecidedForMeItems(inbox) {
|
|
|
41
41
|
if (!words)
|
|
42
42
|
continue;
|
|
43
43
|
const next = [
|
|
44
|
-
{ tool: 'ziggs_open', args: { agreementId }, why: words.sentence },
|
|
44
|
+
{ tool: 'ziggs_open', args: { ref: agreementId }, why: words.sentence },
|
|
45
45
|
];
|
|
46
46
|
if (artifactId && d.reason === 'context_request_fulfilled') {
|
|
47
47
|
next.push({
|
|
48
48
|
tool: 'ziggs_open',
|
|
49
|
-
args: { artifactId },
|
|
49
|
+
args: { ref: artifactId },
|
|
50
50
|
why: `open the artifact ${artifactId} the approved grant covers`,
|
|
51
51
|
});
|
|
52
52
|
}
|
package/dist/workspaceRouting.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isDirectorySurface } from './directorySurface.js';
|
|
2
2
|
import { AsyncLocalStorage } from 'node:async_hooks';
|
|
3
|
-
import { AssistantConnectionClient, withAssistantRequest, decodeOperatorKeyClaims, } from '@ziggs-ai/api-client';
|
|
3
|
+
import { AssistantConnectionClient, withAssistantRequest, decodeOperatorKeyClaims, parseRef, } from '@ziggs-ai/api-client';
|
|
4
4
|
import { formatInboxToolResult } from './inboxToolResult.js';
|
|
5
5
|
import { compactTextResult, windowNote } from './inboxCompact.js';
|
|
6
6
|
import { sessionRules } from './protocol/connectText.js';
|
|
@@ -103,6 +103,13 @@ export class WorkspaceRouter {
|
|
|
103
103
|
}
|
|
104
104
|
/** The existing thing a call is about, from the argument that names it. */
|
|
105
105
|
target(args) {
|
|
106
|
+
// open names its record by one ref; its kind is read from it. Without
|
|
107
|
+
// this the call had no target and fanned out to every workspace.
|
|
108
|
+
if (typeof args.ref === 'string' && args.ref.trim()) {
|
|
109
|
+
const ref = parseRef(args.ref);
|
|
110
|
+
if (ref)
|
|
111
|
+
return { kind: ref.kind, id: ref.id };
|
|
112
|
+
}
|
|
106
113
|
for (const [field, kind] of TARGET_FIELDS) {
|
|
107
114
|
const value = args[field];
|
|
108
115
|
if (typeof value === 'string' && value)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ziggs-ai/ziggs-mcp",
|
|
3
|
-
"version": "0.37.
|
|
3
|
+
"version": "0.37.12",
|
|
4
4
|
"description": "MCP server for Claude Code, Cursor, and other MCP hosts \u2014 act as your Ziggs delegate agent",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
50
|
-
"@ziggs-ai/api-client": "0.37.
|
|
50
|
+
"@ziggs-ai/api-client": "0.37.12",
|
|
51
51
|
"dotenv": "^16.6.1",
|
|
52
52
|
"zod": "^3.24.2",
|
|
53
53
|
"zod-to-json-schema": "^3.25.1"
|