dyadic 1.7.1 → 1.8.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,5 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.8.0 (2026-10-17)
4
+
5
+ The Black Box as an execution record.
6
+
7
+ - `client.blackbox.runs.lineage(id)`: the file versions a run made (`path`, `sha256`, `previous`, the tool call), each with the plan steps under
8
+ way when it was made (observed, never a claim that the step caused it), and the steps the run moved. A key needs its
9
+ Black Box content switch.
10
+ - A run (`runs.retrieve`) now carries `actor` (who started it, beside its owner), `costs` (from the usage ledger:
11
+ credits charged and held, the provider's cost as reported or estimated, cache use; for the key that made it) and
12
+ `links` (its batch, the plans and steps it moved, re-runs, simulations); its `outcome` is verification alone
13
+ (`verified`, `contradicted`, `unverified`, `blocked`, `not_applicable`), apart from how it ended (`status`).
14
+
3
15
  ## 1.7.1 (2026-10-17)
4
16
 
5
17
  - Corrected: `anthropic.messages.batches.create` described message batches as running at half price. Dyadic runs them in the
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export declare const VERSION = "1.7.1";
1
+ export declare const VERSION = "1.8.0";
2
2
  export declare const DEFAULT_BASE_URL = "https://dyadic.app/api/openai/v1";
3
3
  /** The Anthropic API version the `anthropic` calls speak (sent as anthropic-version, as Anthropic's SDKs do). */
4
4
  export declare const ANTHROPIC_VERSION = "2023-06-01";
@@ -1568,6 +1568,9 @@ export declare class Dyadic {
1568
1568
  has_more: boolean;
1569
1569
  }>;
1570
1570
  graph: (id: string) => Promise<Record<string, unknown>>;
1571
+ /** The file versions the run made, each with the plan steps under way when it was made (observed, never a claim that
1572
+ * the step caused it), and the plan steps it moved. A key needs its Black Box content switch. */
1573
+ lineage: (id: string) => Promise<Record<string, unknown>>;
1571
1574
  verify: (id: string) => Promise<VerifyReport>;
1572
1575
  /** The run's signed checkpoints and the anchor (an RFC 3161 timestamp over a Merkle root) that fixes them in time. */
1573
1576
  checkpoints: (id: string) => Promise<{
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  // The official TypeScript SDK for the Dyadic API: Iris
2
2
  // through the OpenAI-compatible endpoints at https://dyadic.app/api/openai/v1, and beside them the Anthropic API
3
3
  // (/api/anthropic/v1) and OpenRouter's API through the AI gateway (/api/openrouter/v1).
4
- export const VERSION = "1.7.1";
4
+ export const VERSION = "1.8.0";
5
5
  export const DEFAULT_BASE_URL = "https://dyadic.app/api/openai/v1";
6
6
  /** The Anthropic API version the `anthropic` calls speak (sent as anthropic-version, as Anthropic's SDKs do). */
7
7
  export const ANTHROPIC_VERSION = "2023-06-01";
@@ -570,6 +570,9 @@ export class Dyadic {
570
570
  /** The run's events in chain order; `types` keeps only those types (up to 20). */
571
571
  events: (id, query = {}) => this.request("GET", this.platformURL(`/blackbox/runs/${id}/events`), undefined, false, { query: { after: query.after, limit: query.limit, types: Array.isArray(query.types) ? query.types.join(",") || undefined : query.types } }),
572
572
  graph: (id) => this.request("GET", this.platformURL(`/blackbox/runs/${id}/graph`)),
573
+ /** The file versions the run made, each with the plan steps under way when it was made (observed, never a claim that
574
+ * the step caused it), and the plan steps it moved. A key needs its Black Box content switch. */
575
+ lineage: (id) => this.request("GET", this.platformURL(`/blackbox/runs/${id}/lineage`)),
573
576
  verify: (id) => this.request("GET", this.platformURL(`/blackbox/runs/${id}/verify`)),
574
577
  /** The run's signed checkpoints and the anchor (an RFC 3161 timestamp over a Merkle root) that fixes them in time. */
575
578
  checkpoints: (id) => this.request("GET", this.platformURL(`/blackbox/runs/${id}/checkpoints`)),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dyadic",
3
- "version": "1.7.1",
3
+ "version": "1.8.0",
4
4
  "description": "The official TypeScript and JavaScript SDK for the Dyadic API: runs with your own agents and functions, plus the OpenAI-, Anthropic- and OpenRouter-compatible APIs.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",