@uipath/ixp-tool 1.201.0-preview.121 → 1.201.0-preview.123

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/dist/index.js CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  Command,
4
4
  package_default,
5
5
  registerCommands
6
- } from "./tool-0fw76nep.js";
6
+ } from "./tool-a1ap6yax.js";
7
7
  import"./tool-9qecd4wb.js";
8
8
  import"./tool-7eva0peq.js";
9
9
  import"./tool-5arsyj36.js";
@@ -2112,7 +2112,7 @@ var require_commander = __commonJS((exports) => {
2112
2112
  var package_default = {
2113
2113
  name: "@uipath/ixp-tool",
2114
2114
  license: "MIT",
2115
- version: "1.201.0-preview.121",
2115
+ version: "1.201.0-preview.123",
2116
2116
  description: "Manage UiPath IXP projects, prompts, predictions, and model publishing.",
2117
2117
  private: false,
2118
2118
  repository: {
@@ -5999,7 +5999,7 @@ var TENANT_SELECTION_CODES = new Set([
5999
5999
  var package_default2 = {
6000
6000
  name: "@uipath/ixp-sdk",
6001
6001
  license: "MIT",
6002
- version: "1.201.0-preview.121",
6002
+ version: "1.201.0-preview.123",
6003
6003
  description: "SDK for the UiPath IXP (Intelligent eXtraction Platform) API — projects, taxonomies, prompts, predictions, and model publishing.",
6004
6004
  repository: {
6005
6005
  type: "git",
@@ -7615,18 +7615,6 @@ function buildUnconfirmBody(options) {
7615
7615
  };
7616
7616
  }
7617
7617
  var LABELLINGS_CONFIRM_EXAMPLES = [
7618
- {
7619
- Description: "Confirm predictions for every document in a project",
7620
- Command: "uip ixp labellings confirm my-invoices",
7621
- Output: {
7622
- Code: "IxpLabellingsConfirm",
7623
- Data: {
7624
- ProjectName: "my-invoices",
7625
- TotalDocuments: 12,
7626
- PredictionsConfirmed: 10
7627
- }
7628
- }
7629
- },
7630
7618
  {
7631
7619
  Description: "Confirm a single document with field filter and a correction",
7632
7620
  Command: `uip ixp labellings confirm my-invoices 5f3a9c21-7e4b-4d8a-9f12-6c0b8e3d2a14.7f3c8a21 -f a7c3e9105f2b4d86,b2f8a01c7d3e6940 -c '[{"field_id":"a7c3e9105f2b4d86","value":"INV-7654321"}]'`,
@@ -7710,6 +7698,18 @@ var LABELLINGS_CONFIRM_EXAMPLES = [
7710
7698
  PredictionsConfirmed: 1
7711
7699
  }
7712
7700
  }
7701
+ },
7702
+ {
7703
+ Description: "Deprecated: omit the document id to confirm every document in the project. Removed in the next release — pass a document id instead.",
7704
+ Command: "uip ixp labellings confirm my-invoices",
7705
+ Output: {
7706
+ Code: "IxpLabellingsConfirm",
7707
+ Data: {
7708
+ ProjectName: "my-invoices",
7709
+ TotalDocuments: 12,
7710
+ PredictionsConfirmed: 10
7711
+ }
7712
+ }
7713
7713
  }
7714
7714
  ];
7715
7715
  var LABELLINGS_UNCONFIRM_EXAMPLES = [
@@ -7843,10 +7843,13 @@ async function listAllDocumentIds(config, projectName) {
7843
7843
  }
7844
7844
  var registerLabellingsCommand = (program2) => {
7845
7845
  const labelling = program2.command("labellings").description("Manage IXP labellings and predictions");
7846
- labelling.command("confirm").description("Confirm IXP-generated predictions as ground truth. Confirms all documents, or a single document if document-id is provided. For a repeatable field group, narrow with --group: alone it confirms every occurrence; add --occurrence to confirm ONE occurrence (the ergonomic single-line form); or use --updates to confirm SEVERAL occurrences in one atomic call (one request). --updates is the superset — --occurrence <N> equals --updates with a single entry — so reach for --occurrence for one line and --updates when several lines need confirming together (or with different per-line fields/corrections).").argument("<project-name>", "Project name").argument("[document-id]", "Document ID confirm only this document (omit to confirm all)").addOption(createHiddenDeprecatedTenantOption("-t, --tenant <tenant-name>")).option("-f, --fields <field-ids>", "Comma-separated field IDs to confirm (omit to confirm all predicted fields). Without --group, confirms each field_id across every occurrence it appears in. With --group + --occurrence, confirms only within that specific occurrence.").option("-c, --corrections <json>", 'Override predicted values while keeping references: [{"field_id":"...","value":"corrected"}]. Applies across every occurrence the field appears in (or just the targeted occurrence when --group + --occurrence are given).').option("--group <name>", 'Target field group (label_def). Must be the FULL label path exactly as shown in the "Name" field of `get-predictions` (e.g. "Invoice > Line Items"), not just the leaf name. On its own, confirms every occurrence of the group as-is. Add --occurrence to target a single occurrence, or --updates to batch specific occurrences in one call. Combine with --fields to limit to specific fields within the group.').option("--occurrence <index>", "Single-occurrence form: 0-based index of ONE occurrence within --group to confirm. Use --fields to limit to specific fields in that occurrence; omit --fields to confirm every predicted field there. Requires --group. Mutually exclusive with --updates — for several occurrences in one call, use --updates instead.").option("--updates <json>", 'Batched form: confirm SEVERAL occurrences of --group in one atomic call. JSON array of {"occurrence":<0-based-index>,"fields"?:["<field_id>",...],"corrections"?:{"<field_id>":"<value>"}}. Per entry: omit "fields" to confirm every predicted field in that occurrence (same default as --occurrence without --fields), or list specific ones. Un-selected fields in a selected occurrence carry forward their existing annotation; occurrences not listed are left as-is. Equivalent to running --occurrence once per entry, but in a single request. Mutually exclusive with --fields, --corrections, and --occurrence.').option("-m, --model-version <version>", "Optimistic-concurrency guard: the model version (from `get-predictions`' ModelVersion) the predictions being confirmed were reviewed against. If a retrain has produced a newer version since, the confirm is rejected instead of stamping drifted values as ground truth — re-read predictions and review again. Omit to skip the check.", (raw) => parseBoundedInt(raw, "--model-version", {
7846
+ labelling.command("confirm").description("Confirm IXP-generated predictions as ground truth for one document. Omitting <document-id> confirms every document in the project — deprecated, and removed in the next release. For a repeatable field group, narrow with --group: alone it confirms every occurrence; add --occurrence to confirm ONE occurrence (the ergonomic single-line form); or use --updates to confirm SEVERAL occurrences in one atomic call (one request). --updates is the superset — --occurrence <N> equals --updates with a single entry — so reach for --occurrence for one line and --updates when several lines need confirming together (or with different per-line fields/corrections).").argument("<project-name>", "Project name").argument("[document-id]", "Document ID. Omitting it confirms every document in the project — deprecated, and removed in the next release.").addOption(createHiddenDeprecatedTenantOption("-t, --tenant <tenant-name>")).option("-f, --fields <field-ids>", "Comma-separated field IDs to confirm (omit to confirm all predicted fields). Without --group, confirms each field_id across every occurrence it appears in. With --group + --occurrence, confirms only within that specific occurrence.").option("-c, --corrections <json>", 'Override predicted values while keeping references: [{"field_id":"...","value":"corrected"}]. Applies across every occurrence the field appears in (or just the targeted occurrence when --group + --occurrence are given).').option("--group <name>", 'Target field group (label_def). Must be the FULL label path exactly as shown in the "Name" field of `get-predictions` (e.g. "Invoice > Line Items"), not just the leaf name. On its own, confirms every occurrence of the group as-is. Add --occurrence to target a single occurrence, or --updates to batch specific occurrences in one call. Combine with --fields to limit to specific fields within the group.').option("--occurrence <index>", "Single-occurrence form: 0-based index of ONE occurrence within --group to confirm. Use --fields to limit to specific fields in that occurrence; omit --fields to confirm every predicted field there. Requires --group. Mutually exclusive with --updates — for several occurrences in one call, use --updates instead.").option("--updates <json>", 'Batched form: confirm SEVERAL occurrences of --group in one atomic call. JSON array of {"occurrence":<0-based-index>,"fields"?:["<field_id>",...],"corrections"?:{"<field_id>":"<value>"}}. Per entry: omit "fields" to confirm every predicted field in that occurrence (same default as --occurrence without --fields), or list specific ones. Un-selected fields in a selected occurrence carry forward their existing annotation; occurrences not listed are left as-is. Equivalent to running --occurrence once per entry, but in a single request. Mutually exclusive with --fields, --corrections, and --occurrence.').option("-m, --model-version <version>", "Optimistic-concurrency guard: the model version (from `get-predictions`' ModelVersion) the predictions being confirmed were reviewed against. If a retrain has produced a newer version since, the confirm is rejected instead of stamping drifted values as ground truth — re-read predictions and review again. Omit to skip the check.", (raw) => parseBoundedInt(raw, "--model-version", {
7847
7847
  min: 0,
7848
7848
  max: Number.MAX_SAFE_INTEGER
7849
7849
  })).examples(LABELLINGS_CONFIRM_EXAMPLES).trackedAction(processContext, async (projectName, documentUid, options) => {
7850
+ if (!documentUid) {
7851
+ getOutputSink().writeErr(PROJECT_WIDE_DEPRECATION_WARNING);
7852
+ }
7850
7853
  const [err, result] = await catchError2((async () => {
7851
7854
  validateConfirmMode(documentUid, options);
7852
7855
  const config = await createIxpConfig({
@@ -8840,4 +8843,4 @@ var registerCommands = async (program2) => {
8840
8843
 
8841
8844
  export { package_default, Command, metadata, registerCommands };
8842
8845
 
8843
- //# debugId=602E75D2CA2C538164756E2164756E21
8846
+ //# debugId=948F3C7C231642D864756E2164756E21
package/dist/tool.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  metadata,
3
3
  registerCommands
4
- } from "./tool-0fw76nep.js";
4
+ } from "./tool-a1ap6yax.js";
5
5
  import"./tool-9qecd4wb.js";
6
6
  import"./tool-7eva0peq.js";
7
7
  import"./tool-5arsyj36.js";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@uipath/ixp-tool",
3
3
  "license": "MIT",
4
- "version": "1.201.0-preview.121",
4
+ "version": "1.201.0-preview.123",
5
5
  "description": "Manage UiPath IXP projects, prompts, predictions, and model publishing.",
6
6
  "private": false,
7
7
  "repository": {
@@ -26,5 +26,5 @@
26
26
  "files": [
27
27
  "dist"
28
28
  ],
29
- "gitHead": "c70ccfc0b12e637441d67df1d212b71d7784b5f8"
29
+ "gitHead": "0b5e086775b5974d9df45fc98f96f868bb3dda61"
30
30
  }