@docmana/sdk 0.23.0 → 0.24.0

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
@@ -1,6 +1,13 @@
1
1
  # Changelog
2
2
 
3
- ## Unreleased
3
+ ## Unreleased
4
+
5
+ ## 0.24.0 - 2026-08-20
6
+
7
+ - Preserve the exact numeric flow version when mapping raw execution results.
8
+ - Expose each processing step's LLM model and immutable prompt identifier without
9
+ reintroducing token or cost telemetry.
10
+ - Update vulnerable HTTP and build-tool transitive dependencies to patched versions.
4
11
 
5
12
  ## 0.23.0 - 2026-08-07
6
13
 
package/README.md CHANGED
@@ -138,7 +138,8 @@ use `RunFlowParams` for request data:
138
138
  `GET /v1/executions/:executionResultId/status`.
139
139
  - `getResult(executionResultId, signal?, language?)` calls
140
140
  `GET /v1/executions/:executionResultId/result`; its result includes the optional
141
- `flowVersion` identifying the exact flow version used by the execution.
141
+ `flowVersion` identifying the exact flow version used by the execution. Processing
142
+ steps can also include `model` and `promptId` provenance when Docmana reports them.
142
143
  - `runFlow(flowId, params, options?)` starts async execution, polls status, fetches the
143
144
  result, respects `X-Poll-After` and `429 Retry-After` while polling, and throws
144
145
  `DocmanaExecutionError` if the result status is `FAILED`.
@@ -2,6 +2,10 @@ export interface DocmanaNodeResult {
2
2
  status: string;
3
3
  /** Human-readable name configured for this processing step. */
4
4
  label?: string;
5
+ /** Exact LLM deployment/model reported for this processing step. */
6
+ model?: string;
7
+ /** Prompt identifier used by this step, including its commit when reported by Docmana. */
8
+ promptId?: string;
5
9
  /** Machine-readable code identifying why this document was rejected. */
6
10
  rejectionCode?: string;
7
11
  /** Human-readable explanation of why this document was rejected. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docmana/sdk",
3
- "version": "0.23.0",
3
+ "version": "0.24.0",
4
4
  "description": "Official Docmana SDK — run document-analysis flows with a single call.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -60,8 +60,11 @@
60
60
  "tsx": "^4.22.4",
61
61
  "typescript": "^6.0.3",
62
62
  "typescript-eslint": "^8.61.0",
63
- "undici": "^8.4.1",
63
+ "undici": "^8.10.0",
64
64
  "vitest": "^4.1.8",
65
65
  "yalc": "^1.0.0-pre.53"
66
+ },
67
+ "overrides": {
68
+ "esbuild": "0.28.1"
66
69
  }
67
70
  }