xparse-cli 2.4.4 → 2.4.5-beta.1

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.
Files changed (2) hide show
  1. package/README.md +70 -1
  2. package/package.json +8 -8
package/README.md CHANGED
@@ -590,5 +590,74 @@ xparse-cli task retry <task-id> --resource-id <resource-id> --pending-result-id
590
590
  This settles the saved result without another model call. Replaying the same candidate is safe.
591
591
  The Task stays suspended; use `task result` or `task export` for delivered files. Explicit
592
592
  `task resume <task-id>` continues remaining Agent work and adds execution budget. Preserve its
593
- `command_id` and `checkpoint_version` for exact replay. Without a saved candidate, `task retry`
593
+ `command_id` and `checkpoint_version` for exact replay. Without a saved candidate, `task retry --resource-id RESOURCE_ID`
594
594
  re-extracts the one resource; do not blindly replay an ambiguous response.
595
+
596
+ ## Extraction workspace commands
597
+
598
+ The workspace commands below require a matching CLI build and backend. They do
599
+ not create a replacement Task. Request JSON is read from `--input FILE` or stdin
600
+ with `--input -`; values and version tokens are transmitted without reinterpretation.
601
+
602
+ ```bash
603
+ xparse-cli task retry TASK_ID
604
+ xparse-cli task retry TASK_ID --scope selected --resource-id RESOURCE_ID --field-id FIELD_ID
605
+ xparse-cli task retry TASK_ID --only-outdated
606
+ xparse-cli task spec get TASK_ID
607
+ xparse-cli task spec set TASK_ID --input fields.json
608
+ xparse-cli task spec clarify TASK_ID --input clarification.json
609
+ xparse-cli task field set TASK_ID RESOURCE_ID FIELD_ID --input correction.json
610
+ xparse-cli task field confirm TASK_ID RESOURCE_ID FIELD_ID --input confirmation.json
611
+ xparse-cli task history TASK_ID RESOURCE_ID
612
+ xparse-cli task preview TASK_ID RESOURCE_ID
613
+ xparse-cli task copilot show TASK_ID
614
+ xparse-cli task copilot steps TASK_ID --after 0
615
+ xparse-cli task copilot send TASK_ID --text 'Recheck the contract amount'
616
+ xparse-cli task copilot send TASK_ID --input reply.json
617
+ xparse-cli task memory list TASK_ID
618
+ xparse-cli task memory revoke TASK_ID MEMORY_ID
619
+ xparse-cli task list --search contract --limit 20
620
+ xparse-cli task page TASK_ID
621
+ xparse-cli task add TASK_ID new.pdf
622
+ xparse-cli task add TASK_ID --history-id 123
623
+ xparse-cli task add TASK_ID --uploaded-file-id FILE_ID
624
+ xparse-cli task add TASK_ID --reconcile
625
+ ```
626
+
627
+ `retry TASK_ID` re-extracts every file using the current definition. File and field
628
+ selectors intersect; with a field definition, only active fields are used. A Task
629
+ without a field definition reruns its original instruction and cannot use field
630
+ selectors or `--only-outdated`. Old results remain until replaced by new results.
631
+ Legacy `retry TASK_ID --resource-id RESOURCE_ID` still recovers one failed file or
632
+ settles its saved result; use `--scope selected` to force re-extraction of that file.
633
+ `resume` continues suspended work and remains separate from re-extraction.
634
+
635
+ `fields.json` is the complete active field list, not a partial patch. Omitting an
636
+ existing field deletes it; use `restore_field_ids` to restore deleted fields:
637
+
638
+ ```json
639
+ {"expected_version":7,"task_rules":"Extract contract data","fields":[{"field_id":"amount","name":"Amount","description":"Total including tax"}],"restore_field_ids":[],"apply_to_existing":false}
640
+ ```
641
+
642
+ For clarification, send `expected_version`, `name`, and `description`.
643
+ For field correction/confirmation, preserve the reviewed result and spec versions:
644
+
645
+ ```json
646
+ {"base_result_version":3,"expected_spec_version":7,"request_id":"review-unique-id","value":{"value":"100.00"},"review":{"apply_to_future":false}}
647
+ ```
648
+
649
+ Copilot supports all page interaction kinds, including edited definitions,
650
+ confirm-only, confirm-and-rerun, answers and dismissals. Preserve the original
651
+ identities and reviewed draft values. Example (replace all identifiers/versions):
652
+
653
+ ```json
654
+ {"client_message_id":"reply-unique-id","kind":"confirm_and_rerun","text":"","expected_version":7,"draft_id":"draft-id","draft_revision":2}
655
+ ```
656
+
657
+ A conflict is not retried with a silently refreshed version. After an ambiguous
658
+ mutation response, query the same Task before any repeat. Managed local additions
659
+ return upload identities for recovery and use the page's managed import pipeline.
660
+ `task page` requires the backend's `page-session?result_page_url=true` support and
661
+ returns the exact server-issued URL; never build grants in the client.
662
+
663
+ Regional availability follows the page: task list, spec set/clarify, whole-task or scoped retry, preview and version history are domestic-only. Other operations retain their existing regional rules. These additions require a matching CLI/Connector build; check the installed CLI's command help before using them.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xparse-cli",
3
- "version": "2.4.4",
3
+ "version": "2.4.5-beta.1",
4
4
  "description": "TextIn xParse command-line client for document parsing",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -19,15 +19,15 @@
19
19
  "node": ">=18"
20
20
  },
21
21
  "optionalDependencies": {
22
- "xparse-cli-darwin-amd64": "2.4.4",
23
- "xparse-cli-darwin-arm64": "2.4.4",
24
- "xparse-cli-linux-amd64": "2.4.4",
25
- "xparse-cli-linux-arm64": "2.4.4",
26
- "xparse-cli-windows-amd64": "2.4.4",
27
- "xparse-cli-windows-arm64": "2.4.4"
22
+ "xparse-cli-darwin-amd64": "2.4.5-beta.1",
23
+ "xparse-cli-darwin-arm64": "2.4.5-beta.1",
24
+ "xparse-cli-linux-amd64": "2.4.5-beta.1",
25
+ "xparse-cli-linux-arm64": "2.4.5-beta.1",
26
+ "xparse-cli-windows-amd64": "2.4.5-beta.1",
27
+ "xparse-cli-windows-arm64": "2.4.5-beta.1"
28
28
  },
29
29
  "publishConfig": {
30
30
  "access": "public",
31
- "tag": "latest"
31
+ "tag": "beta"
32
32
  }
33
33
  }