@ziggs-ai/api-client 0.9.8 → 0.9.10

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.
@@ -283,7 +283,7 @@ export const uploadArtifactUrlCapability = {
283
283
  'content) to have this tool PUT for you and return checksum. When extractionStatus ' +
284
284
  'becomes ok, read extracted text via context_read / the extracted-text child — not ' +
285
285
  'by stuffing file bytes into artifact_record.',
286
- mcp: 'Start a file artifact upload (pdf/docx/hwpx/md/txt). Returns uploadUrl + artifactId. ' +
286
+ mcp: 'Start a file artifact upload (pdf/docx/hwpx/md/txt/html). Returns uploadUrl + artifactId. ' +
287
287
  'PUT the file bytes to uploadUrl with the declared mime, then call ' +
288
288
  'ziggs_artifact_complete_file with sha256 hex. Prefer contentBase64 so this tool PUTs ' +
289
289
  'and returns checksum for you. Scope optional (chatId / agreementId / taskId) like ' +
@@ -306,7 +306,7 @@ export const uploadArtifactUrlCapability = {
306
306
  },
307
307
  format: {
308
308
  type: 'string',
309
- enum: ['pdf', 'docx', 'hwpx', 'md', 'txt'],
309
+ enum: ['pdf', 'docx', 'hwpx', 'md', 'txt', 'html'],
310
310
  description: 'Optional; inferred from filename when omitted',
311
311
  },
312
312
  visibility: {
@@ -37,7 +37,7 @@ export interface WriteArtifactInput {
37
37
  */
38
38
  idempotencyKey?: string;
39
39
  }
40
- export type ArtifactFileFormat = 'pdf' | 'docx' | 'hwpx' | 'md' | 'txt';
40
+ export type ArtifactFileFormat = 'pdf' | 'docx' | 'hwpx' | 'md' | 'txt' | 'html';
41
41
  export interface ArtifactUploadUrlInput {
42
42
  filename: string;
43
43
  mime: string;
@@ -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.8",
3
+ "version": "0.9.10",
4
4
  "description": "HTTP and WebSocket client for the Ziggs backend API",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",