@ziggs-ai/api-client 0.9.7 → 0.9.9

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.
@@ -55,17 +55,6 @@ export const recordArtifactCapability = {
55
55
  type: 'string',
56
56
  description: 'Default text; use result for a finished deliverable',
57
57
  },
58
- /**
59
- * ZIG-1009 — the name this parameter shipped as. Declared, not just tolerated
60
- * in the handler: the MCP layer validates arguments against this schema and
61
- * rejects unknown properties, so an agent on the published package would get
62
- * `Invalid arguments` mid-delivery rather than fall through to the alias.
63
- * Removed with the rest of the alias once the fleet has taken the rename.
64
- */
65
- content_type: {
66
- type: 'string',
67
- description: 'Deprecated — use contentType.',
68
- },
69
58
  idempotencyKey: {
70
59
  type: 'string',
71
60
  description: 'Optional dedup key: a redelivered record with the same key no-ops and returns the original artifact. Derive it deterministically (e.g. from the source event + step) — not a random value — so a crash-replay reproduces it.',
@@ -89,11 +78,7 @@ export const recordArtifactCapability = {
89
78
  if (visibility !== 'chat' && visibility !== 'agent-private') {
90
79
  throw new Error('visibility must be chat or agent-private');
91
80
  }
92
- // ZIG-1009: the tool's parameter is `contentType` now. The old spelling is
93
- // still read because an agent running the published package sends it, and a
94
- // dropped content type files a finished deliverable as `text`. It comes off
95
- // when the fleet has taken the release that renames it.
96
- const contentType = (args['contentType'] ?? args['content_type']);
81
+ const contentType = args['contentType'];
97
82
  const taskId = args['taskId'];
98
83
  const creds = fullCreds(env);
99
84
  const { artifactId } = await new ArtifactsClient(creds.operatorKey, creds.agentId, creds.laneId).writeStrict({
@@ -2,6 +2,7 @@ export { type CapabilitySurface, type CapabilityAnnotation, type CapabilityParam
2
2
  export { PAYMENT_CAPABILITIES, paymentBalanceCapability, paymentTransferCapability, paymentWaitForApprovalCapability, paymentHoldCapability, paymentReleaseCapability, paymentResolveWalletCapability, paymentIssueGrantCapability, paymentAttenuateGrantCapability, paymentRevokeGrantCapability, } from './payments.js';
3
3
  export { LINK_CAPABILITIES, createLinkInviteCapability, listLinksCapability, linkIsReachOnly, } from './links.js';
4
4
  export { AGREEMENT_CAPABILITIES, agreementClaimCapability } from './agreements.js';
5
+ export { AGREEMENT_PROPOSE_PROVIDER_ID_DESCRIPTION } from './proposeProviderId.js';
5
6
  export { MARKETPLACE_CAPABILITIES, marketplaceViewCapability } from './marketplace.js';
6
7
  export { GRANTS_CAPABILITIES, listGrantsCapability } from './grants.js';
7
8
  export { CONTEXT_CAPABILITIES, contextReadCapability, contextDelegateCapability, contextExpandReachCapability, contextDiscoverGrantableCapability, contextBounds, resolveOrgScopeId, } from './context.js';
@@ -2,6 +2,7 @@ export { fullCreds, rethrowWithContext, } from './types.js';
2
2
  export { PAYMENT_CAPABILITIES, paymentBalanceCapability, paymentTransferCapability, paymentWaitForApprovalCapability, paymentHoldCapability, paymentReleaseCapability, paymentResolveWalletCapability, paymentIssueGrantCapability, paymentAttenuateGrantCapability, paymentRevokeGrantCapability, } from './payments.js';
3
3
  export { LINK_CAPABILITIES, createLinkInviteCapability, listLinksCapability, linkIsReachOnly, } from './links.js';
4
4
  export { AGREEMENT_CAPABILITIES, agreementClaimCapability } from './agreements.js';
5
+ export { AGREEMENT_PROPOSE_PROVIDER_ID_DESCRIPTION } from './proposeProviderId.js';
5
6
  export { MARKETPLACE_CAPABILITIES, marketplaceViewCapability } from './marketplace.js';
6
7
  export { GRANTS_CAPABILITIES, listGrantsCapability } from './grants.js';
7
8
  export { CONTEXT_CAPABILITIES, contextReadCapability, contextDelegateCapability, contextExpandReachCapability, contextDiscoverGrantableCapability, contextBounds, resolveOrgScopeId, } from './context.js';
@@ -0,0 +1,6 @@
1
+ /**
2
+ * ZIG-1274 — `providerId` parameter description shared by SDK + MCP propose
3
+ * tools. Stated on the schema so a fresh agent does not burn a turn learning
4
+ * the rule from the validation error.
5
+ */
6
+ export declare const AGREEMENT_PROPOSE_PROVIDER_ID_DESCRIPTION = "REQUIRED on a direct proposal: name who does the work \u2014 your own id (you are offering to work) or the proposedTo id (you are commissioning the recipient). Do not omit it when proposedTo is a person/agent id. Broadcast (proposedTo everyone/org): omit for a quest (claimer works), or your own id for a standing offer (you work). A third-party id brokers and needs a matching published offer. Payer is always the non-providing side.";
@@ -0,0 +1,6 @@
1
+ /**
2
+ * ZIG-1274 — `providerId` parameter description shared by SDK + MCP propose
3
+ * tools. Stated on the schema so a fresh agent does not burn a turn learning
4
+ * the rule from the validation error.
5
+ */
6
+ export const AGREEMENT_PROPOSE_PROVIDER_ID_DESCRIPTION = 'REQUIRED on a direct proposal: name who does the work — your own id (you are offering to work) or the proposedTo id (you are commissioning the recipient). Do not omit it when proposedTo is a person/agent id. Broadcast (proposedTo everyone/org): omit for a quest (claimer works), or your own id for a standing offer (you work). A third-party id brokers and needs a matching published offer. Payer is always the non-providing side.';
@@ -43,6 +43,14 @@ export interface PlanReplaceStep {
43
43
  description: string;
44
44
  /** Omit to use the array index (ZIG-1268). */
45
45
  order?: number;
46
+ /**
47
+ * ZIG-1313: step progress. Omit for `pending`. Send `completed` /
48
+ * `in_progress` when replacing the plan so a later task completion does not
49
+ * rewrite finished steps as skipped.
50
+ */
51
+ status?: 'pending' | 'in_progress' | 'completed' | 'skipped';
52
+ /** Optional step output stored with this replace. */
53
+ result?: unknown;
46
54
  }
47
55
  export declare function replaceTaskPlan(taskId: string, steps: PlanReplaceStep[], creds: Creds): Promise<Task>;
48
56
  export declare function updateTaskPlanStep(taskId: string, stepId: string, status: string, result: unknown, creds: Creds): Promise<Task>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ziggs-ai/api-client",
3
- "version": "0.9.7",
3
+ "version": "0.9.9",
4
4
  "description": "HTTP and WebSocket client for the Ziggs backend API",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",