@eigenpal/sdk 0.25.3 → 0.25.5

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,5 +1,11 @@
1
1
  # @eigenpal/sdk
2
2
 
3
+ ## 0.25.4
4
+
5
+ ### Patch Changes
6
+
7
+ - 7a90341: Run targets accept workflow version ranges such as `workflows.extract-invoice@^1`, and run sources include `requestedVersion`.
8
+
3
9
  ## 0.23.7
4
10
 
5
11
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eigenpal/sdk",
3
- "version": "0.25.3",
3
+ "version": "0.25.5",
4
4
  "description": "Official TypeScript SDK for the EigenPal API",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
@@ -1904,6 +1904,10 @@ export type RunSource = {
1904
1904
  * Captured workflow version id (workflow runs only).
1905
1905
  */
1906
1906
  versionId?: string | null;
1907
+ /**
1908
+ * Version selector the caller asked for (`latest`, `1.2.3`, `^1`), as resolved to `version` / `versionId` (workflow run start responses only).
1909
+ */
1910
+ requestedVersion?: string | null;
1907
1911
  /**
1908
1912
  * Agent slug (agent runs only).
1909
1913
  */
@@ -7572,7 +7576,7 @@ export type RunsStartData = {
7572
7576
  path?: never;
7573
7577
  query?: {
7574
7578
  /**
7575
- * Release or git ref. Defaults to latest.
7579
+ * Version to run. Defaults to `latest` (the current version). Workflows: an exact tag (`1.2.3`), a range (`1`, `1.2`, `1.x`, `^1.2.3`, `~1.2.3`; the highest released tag that matches, never a candidate), or a version id (`wfv_...`, `wfh_...`). Agents: a git ref (`main`, `1.2.3`, `1.x`, or a commit SHA).
7576
7580
  */
7577
7581
  version?: string;
7578
7582
  /**
@@ -8018,7 +8022,7 @@ export type RunsRerunData = {
8018
8022
  };
8019
8023
  query?: {
8020
8024
  /**
8021
- * Version for the new run. `original` pins the source run. Defaults to latest.
8025
+ * Version for the new run: `latest` (default), `original` (the source run's version), an exact workflow tag (`1.2.3`), a range (`^1`, `1.2.x`, `~1.2.3`; highest released tag that matches), or a version id. Agent reruns take a git ref.
8022
8026
  */
8023
8027
  version?: string;
8024
8028
  /**
package/src/telemetry.ts CHANGED
@@ -19,7 +19,7 @@
19
19
  export const SDK_LANGUAGE = 'typescript';
20
20
  // Rewritten at publish time by scripts/release/platform/render-sdk-versions.sh.
21
21
  // Keep this string literal exactly stable — sed matches on it.
22
- export const SDK_VERSION = '0.25.3';
22
+ export const SDK_VERSION = '0.25.5';
23
23
 
24
24
  function detectRuntime(): string {
25
25
  const g = globalThis as unknown as {