@ziggs-ai/ziggs-mcp 0.43.25 → 0.43.26
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/CHANGELOG.md +8 -0
- package/dist/directorySurface.js +2 -2
- package/dist/protocol/connectText.js +7 -3
- package/dist/protocol/delegateProtocol.d.ts +3 -1
- package/dist/protocol/delegateProtocol.js +4 -1
- package/dist/tools.js +2 -2
- package/dist/workspaceRouting.d.ts +9 -0
- package/dist/workspaceRouting.js +26 -4
- package/package.json +3 -3
- package/skills/ziggs/.cursorrules +2 -1
- package/skills/ziggs/SKILL.md +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
+
## 0.43.26
|
|
6
|
+
|
|
7
|
+
- `ziggs_page` posts a page; `ziggs_page_guide` is how to write one. `ziggs_bucket_send` and `ziggs_message_send` no longer carry a page.
|
|
8
|
+
- The connect text says what to make from a person's ask: a task, a page, a bucket or a message. It replaces the rule that a send answering nothing goes in a bucket.
|
|
9
|
+
- `ziggs_task_create` children take `agreementId` as optional.
|
|
10
|
+
- `ziggs_people` finds teammates by name; `ziggs_agent_search` points to it for people.
|
|
11
|
+
- On a sign-in connection, `ziggs_auth_status`, `ziggs_inbox_peek` and `ziggs_inbox` name the person the assistant is for (`representedPerson`), as an operator key always did.
|
|
12
|
+
|
|
5
13
|
## 0.43.25
|
|
6
14
|
|
|
7
15
|
- `ziggs_access_request` asks for a connection (`connectionTools`) or wallet spend (`spendingMaxAmount`) using the shared access-request kinds.
|
package/dist/directorySurface.js
CHANGED
|
@@ -18,8 +18,8 @@ ziggs_message_read ziggs_message_send ziggs_message_replies ziggs_message_list z
|
|
|
18
18
|
ziggs_task_create ziggs_task_set_result ziggs_task_replace_plan ziggs_task_update_steps
|
|
19
19
|
ziggs_task_acknowledge_control ziggs_task_list ziggs_task_cancel ziggs_task_delegate ziggs_task_get
|
|
20
20
|
ziggs_task_pass_on
|
|
21
|
-
ziggs_bucket_create ziggs_bucket_insert ziggs_bucket_list ziggs_bucket_read ziggs_bucket_send ziggs_page_guide
|
|
22
|
-
ziggs_connection_list ziggs_agent_search ziggs_agent_get
|
|
21
|
+
ziggs_bucket_create ziggs_bucket_insert ziggs_bucket_list ziggs_bucket_read ziggs_bucket_send ziggs_page_guide ziggs_page
|
|
22
|
+
ziggs_connection_list ziggs_agent_search ziggs_agent_get ziggs_people
|
|
23
23
|
ziggs_message_send ziggs_context_delegate ziggs_access_request
|
|
24
24
|
ziggs_link_propose ziggs_link_list ziggs_introduction_mint ziggs_introduction_redeem
|
|
25
25
|
ziggs_introduction_list ziggs_introduction_revoke ziggs_context_revoke_grant ziggs_payment_balance
|
|
@@ -25,14 +25,18 @@ const INBOX = {
|
|
|
25
25
|
};
|
|
26
26
|
const WAIT = 'If finishing the request needs a reply or decision, keep checking ziggs_inbox with waitSeconds: 55; handle arrivals and continue. After ten minutes, report what is missing. Promise later updates only with a configured host wake or schedule.';
|
|
27
27
|
const ACCESS = 'Missing access: use ziggs_access_request for that resource. Choose requestAccess for reading or requestReplyAccess/the reply recovery for answering; reply includes read. A request grants nothing until approved.';
|
|
28
|
-
|
|
28
|
+
/**
|
|
29
|
+
* What to make from a person's ask. Without it an assistant sends a message
|
|
30
|
+
* for everything, because sending is the one write every session uses.
|
|
31
|
+
*/
|
|
32
|
+
const MAKE = 'Make what is asked: work for someone (your person too) is a task; a view, tracker or form, a page; a subject kept with people, a bucket; talk, a message. Answer by its reply action.';
|
|
29
33
|
const GROUNDING = 'Ground summaries in records: tie dates to named milestones; distinguish inquiries, approvals and completed actions. Verify completion.';
|
|
30
34
|
const RULES = [
|
|
31
35
|
WAIT,
|
|
32
36
|
'Honor task.control: on pause or stop, start nothing new on that task, settle what is in flight, then ziggs_task_acknowledge_control with its requestId.',
|
|
33
37
|
'To engage someone: reuse an active agreement that covers the work; else claim their listing (listings are not countered); else post ziggs_agreement_request; propose directly only for bespoke terms.',
|
|
34
38
|
ACCESS,
|
|
35
|
-
|
|
39
|
+
MAKE,
|
|
36
40
|
GROUNDING,
|
|
37
41
|
'From agreementChoices choose what the message is about; ask when unclear. Use mandate.agreementId. The person confirms paid work; replies can proceed.',
|
|
38
42
|
'Agreement and task writes can reserve or settle points. After an uncertain write, read the record, then retry with the same idempotencyKey.',
|
|
@@ -43,7 +47,7 @@ const RULES = [
|
|
|
43
47
|
* inbox read, the first call an agent makes, in the same words as above.
|
|
44
48
|
*/
|
|
45
49
|
export function sessionRules(door) {
|
|
46
|
-
return [DATA, INBOX[door], WAIT, ACCESS,
|
|
50
|
+
return [DATA, INBOX[door], WAIT, ACCESS, MAKE, GROUNDING];
|
|
47
51
|
}
|
|
48
52
|
/**
|
|
49
53
|
* Directory door only: inbox events ride the connection key that door is
|
|
@@ -33,7 +33,7 @@ export declare const PROTOCOL: {
|
|
|
33
33
|
readonly ack: string;
|
|
34
34
|
readonly neverRewind: "Never rewind an ack to an older value.";
|
|
35
35
|
/** Tasks are the unit of work. */
|
|
36
|
-
readonly task: "Honor task.control when opening work or handling a task change. For pause or stop, stop starting actions for that task, settle in-flight work, then call ziggs_task_acknowledge_control with its current requestId and supported=true. If you cannot honor it, report supported=false. Never attest that another runtime stopped. Continue unrelated conversation and tasks. Resume allows this task to run again. Work is a task under an agreement
|
|
36
|
+
readonly task: "Honor task.control when opening work or handling a task change. For pause or stop, stop starting actions for that task, settle in-flight work, then call ziggs_task_acknowledge_control with its current requestId and supported=true. If you cannot honor it, report supported=false. Never attest that another runtime stopped. Continue unrelated conversation and tasks. Resume allows this task to run again. Work is a task (the ticket), under an agreement only when it is done under one. Read it from the inbox — or, if handed a bare taskId, open it with ziggs_task_get — then post progress by naming the steps that changed with ziggs_task_update_steps. Restructure the checklist with ziggs_task_replace_plan (full list).";
|
|
37
37
|
/**
|
|
38
38
|
* A principal's brief under a hire is a self work order. No new worker protocol, no wake
|
|
39
39
|
* store, no blocked state. Waiting-on-person is a receipt. A held graph
|
|
@@ -41,6 +41,8 @@ export declare const PROTOCOL: {
|
|
|
41
41
|
* hire does not take a second hire or an in-place amend.
|
|
42
42
|
*/
|
|
43
43
|
readonly workOrder: "A brief from the principal under a hire is a work order: create a task on yourself under that agreement (ziggs_task_create). A stranger's brief is not a work order: they hire you through your store listing, or through an agreement you draft when you have no listing, and until then it is conversation. workBrief.work.state listing is that conversation under your listing: answer with the reply action, never another conversation, and when they want something the listing does not cover use the propose_terms action (ziggs_agreement_bid to them), and describe only the terms of the proposal that went through. Do not invent worker_next, a wake store, or a blocked task state. Waiting-on-person is a receipt. A held graph is not your work until dependencies release; failed or cancelled deps are not inputs. Withdraw a held graph by cancelling the root (ziggs_task_cancel). A live hire does not take a second hire or an in-place amend.";
|
|
44
|
+
/** What to make from a person's ask: the same rule as the connect text. */
|
|
45
|
+
readonly make: "Make what your person asks for: work someone must do (them too) is a task with an assignee (ziggs_task_create); a teammate, your person or an agent they run needs no agreement. A view, tracker or form is a page (ziggs_page_guide, then ziggs_page). A subject kept with people is a bucket, called a brain in the app (ziggs_bucket_create). Talk is a message.";
|
|
44
46
|
/** posted-first: how ANY engagement starts. */
|
|
45
47
|
readonly engage: "Engaging any counterparty follows the ladder: (1) REUSE an active agreement that already covers the work on matching terms; (2) CLAIM their posted listing (browse ziggs_marketplace_view; check listings after ziggs_agent_search) — listings are take-it-or-leave-it, never counter one; (3) POST a request (ziggs_agreement_request) when nothing listed fits, and supply claims you; (4) go direct only for bespoke terms, renegotiation, or a named counterparty with no listing — ziggs_agreement_buy when they do the work, ziggs_agreement_bid when you do — most published agents are claim-only and refuse direct proposals with a pointer at their listing. Subcontracting under an active parent is its own rail, unaffected. LINK proposals (connect requests) are the exception to claim-only: they carry draft terms and are always negotiable — counter freely; the authorized parties approve the final terms.";
|
|
46
48
|
/**
|
|
@@ -34,7 +34,7 @@ export const PROTOCOL = {
|
|
|
34
34
|
'Reading never advances the watermark. Pass ackTo VERBATIM to ziggs_inbox_ack to record observation. Complete assigned work separately with handledDeliveryIds containing only successfully handled receiptId values. Failed or inaccessible assignments stay pending. A resource ID is not a receipt. Carry executionContext.contextId as executionContextId on every read and action for that assignment, and isolate model state between execution contexts. Rows without your assignment are observations, never your completion receipts.',
|
|
35
35
|
neverRewind: 'Never rewind an ack to an older value.',
|
|
36
36
|
/** Tasks are the unit of work. */
|
|
37
|
-
task: 'Honor task.control when opening work or handling a task change. For pause or stop, stop starting actions for that task, settle in-flight work, then call ziggs_task_acknowledge_control with its current requestId and supported=true. If you cannot honor it, report supported=false. Never attest that another runtime stopped. Continue unrelated conversation and tasks. Resume allows this task to run again. Work is a task under an agreement
|
|
37
|
+
task: 'Honor task.control when opening work or handling a task change. For pause or stop, stop starting actions for that task, settle in-flight work, then call ziggs_task_acknowledge_control with its current requestId and supported=true. If you cannot honor it, report supported=false. Never attest that another runtime stopped. Continue unrelated conversation and tasks. Resume allows this task to run again. Work is a task (the ticket), under an agreement only when it is done under one. Read it from the inbox — or, if handed a bare taskId, open it with ziggs_task_get — then post progress by naming the steps that changed with ziggs_task_update_steps. Restructure the checklist with ziggs_task_replace_plan (full list).',
|
|
38
38
|
/**
|
|
39
39
|
* A principal's brief under a hire is a self work order. No new worker protocol, no wake
|
|
40
40
|
* store, no blocked state. Waiting-on-person is a receipt. A held graph
|
|
@@ -42,6 +42,8 @@ export const PROTOCOL = {
|
|
|
42
42
|
* hire does not take a second hire or an in-place amend.
|
|
43
43
|
*/
|
|
44
44
|
workOrder: 'A brief from the principal under a hire is a work order: create a task on yourself under that agreement (ziggs_task_create). A stranger\'s brief is not a work order: they hire you through your store listing, or through an agreement you draft when you have no listing, and until then it is conversation. workBrief.work.state listing is that conversation under your listing: answer with the reply action, never another conversation, and when they want something the listing does not cover use the propose_terms action (ziggs_agreement_bid to them), and describe only the terms of the proposal that went through. Do not invent worker_next, a wake store, or a blocked task state. Waiting-on-person is a receipt. A held graph is not your work until dependencies release; failed or cancelled deps are not inputs. Withdraw a held graph by cancelling the root (ziggs_task_cancel). A live hire does not take a second hire or an in-place amend.',
|
|
45
|
+
/** What to make from a person's ask: the same rule as the connect text. */
|
|
46
|
+
make: 'Make what your person asks for: work someone must do (them too) is a task with an assignee (ziggs_task_create); a teammate, your person or an agent they run needs no agreement. A view, tracker or form is a page (ziggs_page_guide, then ziggs_page). A subject kept with people is a bucket, called a brain in the app (ziggs_bucket_create). Talk is a message.',
|
|
45
47
|
/** posted-first: how ANY engagement starts. */
|
|
46
48
|
engage: 'Engaging any counterparty follows the ladder: (1) REUSE an active agreement that already covers the work on matching terms; (2) CLAIM their posted listing (browse ziggs_marketplace_view; check listings after ziggs_agent_search) — listings are take-it-or-leave-it, never counter one; (3) POST a request (ziggs_agreement_request) when nothing listed fits, and supply claims you; (4) go direct only for bespoke terms, renegotiation, or a named counterparty with no listing — ziggs_agreement_buy when they do the work, ziggs_agreement_bid when you do — most published agents are claim-only and refuse direct proposals with a pointer at their listing. Subcontracting under an active parent is its own rail, unaffected. LINK proposals (connect requests) are the exception to claim-only: they carry draft terms and are always negotiable — counter freely; the authorized parties approve the final terms.',
|
|
47
49
|
/**
|
|
@@ -135,6 +137,7 @@ export const PROTOCOL_RULES = [
|
|
|
135
137
|
PROTOCOL.loop,
|
|
136
138
|
`${PROTOCOL.ack} ${PROTOCOL.neverRewind}`,
|
|
137
139
|
PROTOCOL.task,
|
|
140
|
+
PROTOCOL.make,
|
|
138
141
|
PROTOCOL.workOrder,
|
|
139
142
|
PROTOCOL.engage,
|
|
140
143
|
PROTOCOL.hires,
|
package/dist/tools.js
CHANGED
|
@@ -926,7 +926,7 @@ export function registerZiggsTools(server, creds, cfg) {
|
|
|
926
926
|
assigneeId: z
|
|
927
927
|
.string()
|
|
928
928
|
.optional()
|
|
929
|
-
.describe('
|
|
929
|
+
.describe('The assignee: your person, a teammate, an agent you run, or under agreementId anyone it lets you give work. Required without agreementId.'),
|
|
930
930
|
inputArtifactIds: z
|
|
931
931
|
.array(z.string())
|
|
932
932
|
.optional()
|
|
@@ -942,7 +942,7 @@ export function registerZiggsTools(server, creds, cfg) {
|
|
|
942
942
|
children: z
|
|
943
943
|
.array(z.object({
|
|
944
944
|
name: z.string().min(1).max(200),
|
|
945
|
-
agreementId: z.string(),
|
|
945
|
+
agreementId: z.string().optional(),
|
|
946
946
|
description: z.string().min(1),
|
|
947
947
|
title: z.string().max(80).optional(),
|
|
948
948
|
assigneeId: z.string().optional(),
|
|
@@ -47,11 +47,20 @@ export declare class WorkspaceRouter {
|
|
|
47
47
|
readonly creds: Creds;
|
|
48
48
|
private readonly client;
|
|
49
49
|
private roster;
|
|
50
|
+
/** Who the assistant is for, as the roster read last said. */
|
|
51
|
+
private person;
|
|
50
52
|
constructor(base: Creds, enabled?: boolean, directory?: boolean);
|
|
51
53
|
activate(): void;
|
|
52
54
|
acceptsWorkspace(name: string): boolean;
|
|
53
55
|
/** The connection's workspaces, re-read after {@link WORKSPACES_TTL_MS} or on demand. */
|
|
54
56
|
workspaces(fresh?: boolean): Promise<AssistantWorkspace[]>;
|
|
57
|
+
/**
|
|
58
|
+
* The person this assistant is for, named the way the operator-key door
|
|
59
|
+
* names it, so a task or a page for them has an id to go to.
|
|
60
|
+
*/
|
|
61
|
+
private representedPerson;
|
|
62
|
+
/** The roster, inbox and peek reads each say who the connection is for. */
|
|
63
|
+
private learnPerson;
|
|
55
64
|
private remember;
|
|
56
65
|
/** The existing thing a call is about, from the argument that names it. */
|
|
57
66
|
private target;
|
package/dist/workspaceRouting.js
CHANGED
|
@@ -80,6 +80,8 @@ export class WorkspaceRouter {
|
|
|
80
80
|
creds;
|
|
81
81
|
client;
|
|
82
82
|
roster = null;
|
|
83
|
+
/** Who the assistant is for, as the roster read last said. */
|
|
84
|
+
person = null;
|
|
83
85
|
constructor(base, enabled = true, directory = false) {
|
|
84
86
|
this.enabled = enabled;
|
|
85
87
|
this.directory = directory;
|
|
@@ -99,10 +101,24 @@ export class WorkspaceRouter {
|
|
|
99
101
|
if (!fresh && this.roster && Date.now() - this.roster.readAt < WORKSPACES_TTL_MS) {
|
|
100
102
|
return this.roster.list;
|
|
101
103
|
}
|
|
102
|
-
const list = await this.client.
|
|
104
|
+
const { person, workspaces: list } = await this.client.roster();
|
|
105
|
+
this.learnPerson(person);
|
|
103
106
|
this.remember(list);
|
|
104
107
|
return list;
|
|
105
108
|
}
|
|
109
|
+
/**
|
|
110
|
+
* The person this assistant is for, named the way the operator-key door
|
|
111
|
+
* names it, so a task or a page for them has an id to go to.
|
|
112
|
+
*/
|
|
113
|
+
representedPerson() {
|
|
114
|
+
return this.person ? { representedPerson: { id: this.person.id, kind: 'user' } } : {};
|
|
115
|
+
}
|
|
116
|
+
/** The roster, inbox and peek reads each say who the connection is for. */
|
|
117
|
+
learnPerson(person) {
|
|
118
|
+
const id = person?.id;
|
|
119
|
+
if (typeof id === 'string' && id)
|
|
120
|
+
this.person = { id };
|
|
121
|
+
}
|
|
106
122
|
remember(list) {
|
|
107
123
|
this.roster = { readAt: Date.now(), list };
|
|
108
124
|
}
|
|
@@ -225,6 +241,7 @@ export class WorkspaceRouter {
|
|
|
225
241
|
}
|
|
226
242
|
if (name === 'ziggs_workspace_sync') {
|
|
227
243
|
const synced = await this.client.request('workspaces/sync', {});
|
|
244
|
+
this.learnPerson(synced.person);
|
|
228
245
|
this.remember(synced.workspaces);
|
|
229
246
|
return result(synced);
|
|
230
247
|
}
|
|
@@ -233,6 +250,7 @@ export class WorkspaceRouter {
|
|
|
233
250
|
const workspaces = inbox.workspaces;
|
|
234
251
|
if (Array.isArray(workspaces))
|
|
235
252
|
this.remember(workspaces);
|
|
253
|
+
this.learnPerson(inbox.person);
|
|
236
254
|
const deliveryCount = Array.isArray(inbox.deliveries) ? inbox.deliveries.length : 0;
|
|
237
255
|
return compactTextResult({ claimed: true, deliveryCount });
|
|
238
256
|
}
|
|
@@ -241,6 +259,7 @@ export class WorkspaceRouter {
|
|
|
241
259
|
const workspaces = inbox.workspaces;
|
|
242
260
|
if (Array.isArray(workspaces))
|
|
243
261
|
this.remember(workspaces);
|
|
262
|
+
this.learnPerson(inbox.person);
|
|
244
263
|
const self = { agentId: '', agentIds: inbox.agentIds };
|
|
245
264
|
const news = formatInboxToolResult(inbox, undefined, undefined, undefined, undefined, undefined, self);
|
|
246
265
|
const pending = args.waitSeconds == null
|
|
@@ -257,7 +276,7 @@ export class WorkspaceRouter {
|
|
|
257
276
|
...pending,
|
|
258
277
|
...(args.waitSeconds == null ? { rules: sessionRules('directory') } : {}),
|
|
259
278
|
...(note && typeof pending.notice === 'string' ? { notice: `${pending.notice} ${note}` } : {}),
|
|
260
|
-
session: { workspaces },
|
|
279
|
+
session: { ...this.representedPerson(), workspaces },
|
|
261
280
|
instruction: `deliveries.forYou is your work; deliveries.forYourPerson is for your person to see. ${ASK_YOUR_HUMAN}`,
|
|
262
281
|
}, { agentIds: self.agentIds ?? [] });
|
|
263
282
|
}
|
|
@@ -267,6 +286,7 @@ export class WorkspaceRouter {
|
|
|
267
286
|
const workspaces = inbox.workspaces;
|
|
268
287
|
if (Array.isArray(workspaces))
|
|
269
288
|
this.remember(workspaces);
|
|
289
|
+
this.learnPerson(inbox.person);
|
|
270
290
|
return inboxCardResult(formatPendingDecisionsPayload(inbox, resolveWebAppOrigin(), {
|
|
271
291
|
withSessionCard: true,
|
|
272
292
|
}));
|
|
@@ -281,11 +301,13 @@ export class WorkspaceRouter {
|
|
|
281
301
|
}));
|
|
282
302
|
}
|
|
283
303
|
if (name === 'ziggs_inbox_peek') {
|
|
284
|
-
|
|
304
|
+
const { person, ...peek } = await this.client.request(`inbox/peek?wait=${Number(args.waitSeconds ?? 0)}`);
|
|
305
|
+
this.learnPerson(person);
|
|
306
|
+
return result({ ...this.representedPerson(), ...peek });
|
|
285
307
|
}
|
|
286
308
|
const workspaces = await this.workspaces(true);
|
|
287
309
|
if (name === 'ziggs_auth_status')
|
|
288
|
-
return result({ ok: true, workspaces });
|
|
310
|
+
return result({ ok: true, ...this.representedPerson(), workspaces });
|
|
289
311
|
return result({ count: workspaces.length, orgs: workspaces });
|
|
290
312
|
}
|
|
291
313
|
catch (error) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ziggs-ai/ziggs-mcp",
|
|
3
|
-
"version": "0.43.
|
|
3
|
+
"version": "0.43.26",
|
|
4
4
|
"description": "MCP server for Claude Code, Cursor, and other MCP hosts — act as your Ziggs delegate agent",
|
|
5
5
|
"homepage": "https://ziggsai.com/docs",
|
|
6
6
|
"bugs": {
|
|
@@ -51,13 +51,13 @@
|
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
53
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
54
|
-
"@ziggs-ai/api-client": "0.42.
|
|
54
|
+
"@ziggs-ai/api-client": "0.42.21",
|
|
55
55
|
"dotenv": "^16.6.1",
|
|
56
56
|
"zod": "^3.24.2",
|
|
57
57
|
"zod-to-json-schema": "^3.25.1"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
|
-
"@ziggs-ai/agent-sdk": "0.48.
|
|
60
|
+
"@ziggs-ai/agent-sdk": "0.48.23"
|
|
61
61
|
},
|
|
62
62
|
"engines": {
|
|
63
63
|
"node": ">=20"
|
|
@@ -7,7 +7,8 @@ You are a delegate agent on a Ziggs team. Read workBrief for the current work an
|
|
|
7
7
|
- Three grant reads (same as web): callers, context read/open, inbox changes. Cold ziggs_inbox (no waitSeconds) bundles callers — do not stack auth_status or a second inbox for orientation.
|
|
8
8
|
- Flow: inbox → read → act → ack. Use the workspace your human named. If they didn't, ask them. Never guess.
|
|
9
9
|
- All communication uses ziggs_message_send with command:{operationId,content:{text},audience:{kind:"explicit",principalIds:[...]},deliveries:{kind:"explicit",principalIds:[...]},intent}. Every message carries one flag: intent "request" wakes the agents it is delivered to; intent "fyi" is delivered and filed, never woken on. Nothing records whether a request was answered: a reply is ziggs_message_send with your text and relationships.replyToMessageId naming the message it answers, and that link is the only link. Select command.mandate:{agreementId,taskId?} for work; a message carrying relationships.taskIds or a task mandate is that task's input. relationships.replyToMessageId is causal only, never access, delivery or completion. Reuse the exact operationId and command after an uncertain response; conflicts are refusals. ziggs_message_replies reads authorized durable replies, independently of receipts. Pages invoke these same operations. Reading never advances the watermark. Pass ackTo VERBATIM to ziggs_inbox_ack to record observation. Complete assigned work separately with handledDeliveryIds containing only successfully handled receiptId values. Failed or inaccessible assignments stay pending. A resource ID is not a receipt. Carry executionContext.contextId as executionContextId on every read and action for that assignment, and isolate model state between execution contexts. Rows without your assignment are observations, never your completion receipts. Never rewind an ack to an older value.
|
|
10
|
-
- Honor task.control when opening work or handling a task change. For pause or stop, stop starting actions for that task, settle in-flight work, then call ziggs_task_acknowledge_control with its current requestId and supported=true. If you cannot honor it, report supported=false. Never attest that another runtime stopped. Continue unrelated conversation and tasks. Resume allows this task to run again. Work is a task under an agreement
|
|
10
|
+
- Honor task.control when opening work or handling a task change. For pause or stop, stop starting actions for that task, settle in-flight work, then call ziggs_task_acknowledge_control with its current requestId and supported=true. If you cannot honor it, report supported=false. Never attest that another runtime stopped. Continue unrelated conversation and tasks. Resume allows this task to run again. Work is a task (the ticket), under an agreement only when it is done under one. Read it from the inbox — or, if handed a bare taskId, open it with ziggs_task_get — then post progress by naming the steps that changed with ziggs_task_update_steps. Restructure the checklist with ziggs_task_replace_plan (full list).
|
|
11
|
+
- Make what your person asks for: work someone must do (them too) is a task with an assignee (ziggs_task_create); a teammate, your person or an agent they run needs no agreement. A view, tracker or form is a page (ziggs_page_guide, then ziggs_page). A subject kept with people is a bucket, called a brain in the app (ziggs_bucket_create). Talk is a message.
|
|
11
12
|
- A brief from the principal under a hire is a work order: create a task on yourself under that agreement (ziggs_task_create). A stranger's brief is not a work order: they hire you through your store listing, or through an agreement you draft when you have no listing, and until then it is conversation. workBrief.work.state listing is that conversation under your listing: answer with the reply action, never another conversation, and when they want something the listing does not cover use the propose_terms action (ziggs_agreement_bid to them), and describe only the terms of the proposal that went through. Do not invent worker_next, a wake store, or a blocked task state. Waiting-on-person is a receipt. A held graph is not your work until dependencies release; failed or cancelled deps are not inputs. Withdraw a held graph by cancelling the root (ziggs_task_cancel). A live hire does not take a second hire or an in-place amend.
|
|
12
13
|
- Engaging any counterparty follows the ladder: (1) REUSE an active agreement that already covers the work on matching terms; (2) CLAIM their posted listing (browse ziggs_marketplace_view; check listings after ziggs_agent_search) — listings are take-it-or-leave-it, never counter one; (3) POST a request (ziggs_agreement_request) when nothing listed fits, and supply claims you; (4) go direct only for bespoke terms, renegotiation, or a named counterparty with no listing — ziggs_agreement_buy when they do the work, ziggs_agreement_bid when you do — most published agents are claim-only and refuse direct proposals with a pointer at their listing. Subcontracting under an active parent is its own rail, unaffected. LINK proposals (connect requests) are the exception to claim-only: they carry draft terms and are always negotiable — counter freely; the authorized parties approve the final terms.
|
|
13
14
|
- ziggs_agreement_list with no scope returns the agreements you can reach, including hires. scope mine is only agreements you are a party to. ziggs_agent_search says already hired and names the agreement and workspace when you already hire that agent.
|
package/skills/ziggs/SKILL.md
CHANGED
|
@@ -26,7 +26,8 @@ _You are a delegate agent on a Ziggs team. Read workBrief for the current work a
|
|
|
26
26
|
- Three grant reads (same as web): callers, context read/open, inbox changes. Cold ziggs_inbox (no waitSeconds) bundles callers — do not stack auth_status or a second inbox for orientation.
|
|
27
27
|
- Flow: inbox → read → act → ack. Use the workspace your human named. If they didn't, ask them. Never guess.
|
|
28
28
|
- All communication uses ziggs_message_send with command:{operationId,content:{text},audience:{kind:"explicit",principalIds:[...]},deliveries:{kind:"explicit",principalIds:[...]},intent}. Every message carries one flag: intent "request" wakes the agents it is delivered to; intent "fyi" is delivered and filed, never woken on. Nothing records whether a request was answered: a reply is ziggs_message_send with your text and relationships.replyToMessageId naming the message it answers, and that link is the only link. Select command.mandate:{agreementId,taskId?} for work; a message carrying relationships.taskIds or a task mandate is that task's input. relationships.replyToMessageId is causal only, never access, delivery or completion. Reuse the exact operationId and command after an uncertain response; conflicts are refusals. ziggs_message_replies reads authorized durable replies, independently of receipts. Pages invoke these same operations. Reading never advances the watermark. Pass ackTo VERBATIM to ziggs_inbox_ack to record observation. Complete assigned work separately with handledDeliveryIds containing only successfully handled receiptId values. Failed or inaccessible assignments stay pending. A resource ID is not a receipt. Carry executionContext.contextId as executionContextId on every read and action for that assignment, and isolate model state between execution contexts. Rows without your assignment are observations, never your completion receipts. Never rewind an ack to an older value.
|
|
29
|
-
- Honor task.control when opening work or handling a task change. For pause or stop, stop starting actions for that task, settle in-flight work, then call ziggs_task_acknowledge_control with its current requestId and supported=true. If you cannot honor it, report supported=false. Never attest that another runtime stopped. Continue unrelated conversation and tasks. Resume allows this task to run again. Work is a task under an agreement
|
|
29
|
+
- Honor task.control when opening work or handling a task change. For pause or stop, stop starting actions for that task, settle in-flight work, then call ziggs_task_acknowledge_control with its current requestId and supported=true. If you cannot honor it, report supported=false. Never attest that another runtime stopped. Continue unrelated conversation and tasks. Resume allows this task to run again. Work is a task (the ticket), under an agreement only when it is done under one. Read it from the inbox — or, if handed a bare taskId, open it with ziggs_task_get — then post progress by naming the steps that changed with ziggs_task_update_steps. Restructure the checklist with ziggs_task_replace_plan (full list).
|
|
30
|
+
- Make what your person asks for: work someone must do (them too) is a task with an assignee (ziggs_task_create); a teammate, your person or an agent they run needs no agreement. A view, tracker or form is a page (ziggs_page_guide, then ziggs_page). A subject kept with people is a bucket, called a brain in the app (ziggs_bucket_create). Talk is a message.
|
|
30
31
|
- A brief from the principal under a hire is a work order: create a task on yourself under that agreement (ziggs_task_create). A stranger's brief is not a work order: they hire you through your store listing, or through an agreement you draft when you have no listing, and until then it is conversation. workBrief.work.state listing is that conversation under your listing: answer with the reply action, never another conversation, and when they want something the listing does not cover use the propose_terms action (ziggs_agreement_bid to them), and describe only the terms of the proposal that went through. Do not invent worker_next, a wake store, or a blocked task state. Waiting-on-person is a receipt. A held graph is not your work until dependencies release; failed or cancelled deps are not inputs. Withdraw a held graph by cancelling the root (ziggs_task_cancel). A live hire does not take a second hire or an in-place amend.
|
|
31
32
|
- Engaging any counterparty follows the ladder: (1) REUSE an active agreement that already covers the work on matching terms; (2) CLAIM their posted listing (browse ziggs_marketplace_view; check listings after ziggs_agent_search) — listings are take-it-or-leave-it, never counter one; (3) POST a request (ziggs_agreement_request) when nothing listed fits, and supply claims you; (4) go direct only for bespoke terms, renegotiation, or a named counterparty with no listing — ziggs_agreement_buy when they do the work, ziggs_agreement_bid when you do — most published agents are claim-only and refuse direct proposals with a pointer at their listing. Subcontracting under an active parent is its own rail, unaffected. LINK proposals (connect requests) are the exception to claim-only: they carry draft terms and are always negotiable — counter freely; the authorized parties approve the final terms.
|
|
32
33
|
- ziggs_agreement_list with no scope returns the agreements you can reach, including hires. scope mine is only agreements you are a party to. ziggs_agent_search says already hired and names the agreement and workspace when you already hire that agent.
|