@ziggs-ai/ziggs-mcp 0.30.0 → 0.30.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.
- package/dist/toolAliases.d.ts +4 -3
- package/dist/toolAliases.js +18 -4
- package/dist/tools.js +1 -1
- package/package.json +2 -2
package/dist/toolAliases.d.ts
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* tool, and it matched on name and title only. That is fine when the caller
|
|
6
6
|
* already speaks our vocabulary and useless when it does not: searching "hire"
|
|
7
7
|
* returned `ziggs_agreement_handoff` — one tool, and the wrong one — because
|
|
8
|
-
* "hire" happened to appear in that title and nowhere else. The
|
|
9
|
-
* `ziggs_agreement_buy
|
|
8
|
+
* "hire" happened to appear in that title and nowhere else. The default door
|
|
9
|
+
* is `ziggs_agreement_claim`; `ziggs_agreement_buy` is the direct proposal.
|
|
10
10
|
*
|
|
11
11
|
* So a tool may declare the words a caller is likely to reach for. Aliases are
|
|
12
12
|
* a DISCOVERY aid and nothing else: they never become callable names, never
|
|
@@ -16,7 +16,8 @@
|
|
|
16
16
|
* Two kinds of word belong here:
|
|
17
17
|
*
|
|
18
18
|
* 1. The plain-English word for the intent, when our name is a term of art.
|
|
19
|
-
* "hire" for
|
|
19
|
+
* "hire" for claim (the default) and for buy (a direct proposal),
|
|
20
|
+
* "subcontract" for the parent-rail verb.
|
|
20
21
|
* 2. A name we retired. `agreement_commission` and `agreement_quest` were
|
|
21
22
|
* renamed before the surface went public; anything still holding the old
|
|
22
23
|
* word searches it and lands on the tool that replaced it, rather than on
|
package/dist/toolAliases.js
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* tool, and it matched on name and title only. That is fine when the caller
|
|
6
6
|
* already speaks our vocabulary and useless when it does not: searching "hire"
|
|
7
7
|
* returned `ziggs_agreement_handoff` — one tool, and the wrong one — because
|
|
8
|
-
* "hire" happened to appear in that title and nowhere else. The
|
|
9
|
-
* `ziggs_agreement_buy
|
|
8
|
+
* "hire" happened to appear in that title and nowhere else. The default door
|
|
9
|
+
* is `ziggs_agreement_claim`; `ziggs_agreement_buy` is the direct proposal.
|
|
10
10
|
*
|
|
11
11
|
* So a tool may declare the words a caller is likely to reach for. Aliases are
|
|
12
12
|
* a DISCOVERY aid and nothing else: they never become callable names, never
|
|
@@ -16,17 +16,31 @@
|
|
|
16
16
|
* Two kinds of word belong here:
|
|
17
17
|
*
|
|
18
18
|
* 1. The plain-English word for the intent, when our name is a term of art.
|
|
19
|
-
* "hire" for
|
|
19
|
+
* "hire" for claim (the default) and for buy (a direct proposal),
|
|
20
|
+
* "subcontract" for the parent-rail verb.
|
|
20
21
|
* 2. A name we retired. `agreement_commission` and `agreement_quest` were
|
|
21
22
|
* renamed before the surface went public; anything still holding the old
|
|
22
23
|
* word searches it and lands on the tool that replaced it, rather than on
|
|
23
24
|
* nothing.
|
|
24
25
|
*/
|
|
25
26
|
export const SEARCH_ALIASES = {
|
|
26
|
-
ziggs_chat_open: [
|
|
27
|
+
ziggs_chat_open: [
|
|
28
|
+
'contact',
|
|
29
|
+
'teammate',
|
|
30
|
+
'colleague',
|
|
31
|
+
'start conversation',
|
|
32
|
+
'create chat',
|
|
33
|
+
'message someone',
|
|
34
|
+
'room',
|
|
35
|
+
'group',
|
|
36
|
+
'channel',
|
|
37
|
+
'invite',
|
|
38
|
+
'add people',
|
|
39
|
+
],
|
|
27
40
|
ziggs_agent_search: ['teammate', 'colleague', 'directory', 'find person'],
|
|
28
41
|
ziggs_access_request: ['access', 'permission', 'request access', 'chat', 'approval', 'grant'],
|
|
29
42
|
ziggs_context_request: ['grant', 'permission', 'restricted', 'request access', 'unlock document'],
|
|
43
|
+
ziggs_agreement_claim: ['hire'],
|
|
30
44
|
ziggs_agreement_buy: [
|
|
31
45
|
'hire',
|
|
32
46
|
'commission', // retired name
|
package/dist/tools.js
CHANGED
|
@@ -762,7 +762,7 @@ export function registerZiggsTools(server, creds, cfg) {
|
|
|
762
762
|
* had to keep: an assistant polling while its person waits cannot be stopped
|
|
763
763
|
* for a permission prompt on every poll.
|
|
764
764
|
*/
|
|
765
|
-
registerStrictTool(server, 'ziggs_inbox_ack', 'Hand back what you have handled. Reading never clears anything; the watermark moves only here. Acking asserts you handled these ASSIGNED rows: the resourceIds you pass (assigneeId = you; request agreementIds too). Reads of rows assigned to others never count; skip them freely. Pass an `ackTo` back VERBATIM (it is opaque; the per-mailbox watermarks ride inside): the envelope\'s to hand back the whole window, or a delivery row\'s own `ackTo` to stop early, listing the assigned ids up to and including that row; the rest stays for the next pass. An older `ack` is a no-op, so a repeat is safe. The last step of a readPlan is this call, pre-filled.', {
|
|
765
|
+
registerStrictTool(server, 'ziggs_inbox_ack', 'Hand back what you have handled. Reading never clears anything; the watermark moves only here. Acking asserts you handled these ASSIGNED rows: the resourceIds you pass (assigneeId = you; request agreementIds too). Reads of rows assigned to others never count; skip them freely. Pass an `ackTo` back VERBATIM (it is opaque; the per-mailbox watermarks ride inside): the envelope\'s to hand back the whole window, or a delivery row\'s own `ackTo` to stop early, listing the assigned ids up to and including that row; the rest stays for the next pass. An older `ack` is a no-op, so a repeat is safe. The server refuses an ack that would bury a delivery assigned to you (INBOX_ACK_UNHANDLED). An empty handledResourceIds is safe when nothing in the window is assigned to you. The last step of a readPlan is this call, pre-filled.', {
|
|
766
766
|
ack: z
|
|
767
767
|
.string()
|
|
768
768
|
.describe("An `ackTo` from a previous ziggs_inbox call, passed back VERBATIM: the envelope's for the whole window, or a delivery row's own to stop early at that row. Opaque and monotonic (an older value is a no-op)."),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ziggs-ai/ziggs-mcp",
|
|
3
|
-
"version": "0.30.
|
|
3
|
+
"version": "0.30.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": {
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
42
|
-
"@ziggs-ai/api-client": "0.30.
|
|
42
|
+
"@ziggs-ai/api-client": "0.30.1",
|
|
43
43
|
"dotenv": "^16.6.1",
|
|
44
44
|
"zod": "^3.24.2",
|
|
45
45
|
"zod-to-json-schema": "^3.25.1"
|