@ziggs-ai/api-client 0.36.2 → 0.36.3
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.
|
@@ -327,12 +327,16 @@ export const openCapability = {
|
|
|
327
327
|
names: { sdk: 'open', mcp: 'ziggs_open' },
|
|
328
328
|
title: 'Open a returned resource',
|
|
329
329
|
descriptions: {
|
|
330
|
-
sdk: 'Read a returned resource: pass exactly one of artifactId, chatId, taskId, agreementId. The backend resolves access and returns scoped actions with required inputs and recovery calls. Opening executes none of those actions. Extraction pending/failed is not an empty document.',
|
|
330
|
+
sdk: 'Read a returned resource: pass exactly one of artifactId, chatId, taskId, agreementId. The backend resolves access and returns scoped actions with required inputs and recovery calls. Opening executes none of those actions. Extraction pending/failed is not an empty document. To read a chat\'s messages under one agreement, use context_read with type=messages, via=chat:<id> and agreementId.',
|
|
331
331
|
},
|
|
332
332
|
annotation: 'read-only',
|
|
333
|
+
// agreementId here is the agreement to open, one id among four
|
|
334
|
+
// (OPEN_ID_PARAMS). It used to carry context_read's filter wording, so an
|
|
335
|
+
// agent passed it beside chatId as a filter and was refused by the
|
|
336
|
+
// exactly-one rule. Filtering a room's messages to one agreement is
|
|
337
|
+
// context_read's job, and the description says so.
|
|
333
338
|
params: {
|
|
334
339
|
...OPEN_ID_PARAMS,
|
|
335
|
-
agreementId: { type: 'string', description: 'Filter message history to this exact work agreement. Use cursor pagination to expand a wake packet.' },
|
|
336
340
|
cursor: { type: 'string', description: 'Opaque cursor from a prior open page' },
|
|
337
341
|
after: { type: 'string', description: 'ISO timestamp for a forward-delta' },
|
|
338
342
|
limit: { type: 'number', description: 'Page size' },
|
|
@@ -125,7 +125,7 @@ const BRIEFS = {
|
|
|
125
125
|
},
|
|
126
126
|
// Reading context
|
|
127
127
|
ziggs_open: {
|
|
128
|
-
does: 'Reads one artifact, chat, task or agreement by id, with the actions you may take and any recovery call. Hidden and unknown look the same.',
|
|
128
|
+
does: 'Reads one artifact, chat, task or agreement by id (exactly one id), with the actions you may take and any recovery call. Hidden and unknown look the same. A chat\'s messages under one agreement: ziggs_context_read with agreementId.',
|
|
129
129
|
},
|
|
130
130
|
ziggs_access_explain: {
|
|
131
131
|
does: 'Explains what you may do with one artifact, chat, task or agreement, and the recovery calls; runs none of them.',
|