@ziggs-ai/ziggs-mcp 0.41.0 → 0.41.2

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 CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 0.41.2
6
+
7
+ - `ziggs_task_set_result` says a completion with no stated charge is free on an agreement priced at completion. Requires api-client 0.40.2.
8
+
9
+ ## 0.41.1
10
+
11
+ - `ziggs_task_set_result` takes `charge: { amount, basis }` with `state: completed`, for agreements that price each task at completion up to a maximum. Requires api-client 0.40.1.
12
+
5
13
  ## 0.41.0
6
14
 
7
15
  - Every message carries one flag, `intent: "fyi" | "request"`, in place of `effect`. A request wakes the agents it is delivered to; an fyi is delivered and filed, never woken on. A reply is `ziggs_message_send` with text and `relationships.replyToMessageId`; nothing records whether a request was answered, so `ziggs_message_answers` and `ziggs_message_answer_cancel` are gone. The skill and `.cursorrules` say the same.
package/dist/tools.js CHANGED
@@ -984,18 +984,26 @@ export function registerZiggsTools(server, creds, cfg) {
984
984
  .optional()
985
985
  .describe('Outcome payload (summary, status, links, …)'),
986
986
  errorMessage: z.string().optional().describe('Required when state=failed'),
987
+ charge: z
988
+ .object({
989
+ amount: z.number().int().min(0),
990
+ basis: z.string().max(500).optional(),
991
+ })
992
+ .optional()
993
+ .describe('Only with state=completed, on an agreement priced per task up to a maximum (taskCharge at_completion): the whole points this task cost and one sentence on what that rests on. Charged up to the agreed maximum; the rest goes back to the payer. Left out, the task is free, so state it on every completion you charge for. Ignored on a fixed price.'),
987
994
  idempotencyKey: z
988
995
  .string()
989
996
  .optional()
990
997
  .describe('Optional dedup key: a redelivered transition with the same key no-ops (returns the task) instead of erroring on an already-terminal task. Derive it deterministically (e.g. from taskId + target state) so a crash-replay reproduces it.'),
991
998
  sources: sourcesField(),
992
- }, destructive('File a task result'), async ({ taskId, state, result, errorMessage, idempotencyKey, sources }) => {
999
+ }, destructive('File a task result'), async ({ taskId, state, result, errorMessage, charge, idempotencyKey, sources }) => {
993
1000
  try {
994
1001
  const confirm = await updateTaskState(taskId, state, {
995
1002
  result,
996
1003
  errorMessage,
997
1004
  idempotencyKey,
998
1005
  ...(sources ? { sources: sources } : {}),
1006
+ ...(charge && state === 'completed' ? { charge } : {}),
999
1007
  }, creds);
1000
1008
  // The confirmation said `completed` and left delivery,
1001
1009
  // metering and the agreement to be inferred from it. The presenter
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ziggs-ai/ziggs-mcp",
3
- "version": "0.41.0",
3
+ "version": "0.41.2",
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.40.0",
54
+ "@ziggs-ai/api-client": "0.40.2",
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.44.0"
60
+ "@ziggs-ai/agent-sdk": "0.45.1"
61
61
  },
62
62
  "engines": {
63
63
  "node": ">=20"