@tangle-network/agent-interface 0.50.0 → 0.51.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/README.md CHANGED
@@ -10,6 +10,8 @@ shapes; higher-level packages import from here rather than redefining them.
10
10
  `AgentRunControlRef` identifies a retained run without depending on a live JavaScript object and may carry the provider's admission digest so reconstruction can reject changed-input reuse.
11
11
  `RuntimeEventEnvelope` adds stable run, event, sequence, cursor, and timestamp fields around the existing `StreamEvent` union, and its runtime schema validates every canonical event variant.
12
12
  Providers advertise `retainedControl` only when exact run, result, event, cancellation, replay, detach, turn, and session identity are all implemented together.
13
+ `AgentEnvironment.metadata` is the detached snapshot returned by create or get, so recovery can check persisted annotations without listing environments.
14
+ Metadata can include caller-authored values and does not prove authorization or authorship.
13
15
  `AgentSession.cancelRun()` accepts a canonical request digest bound to one operation and `AgentExactRunControlRef`, so a caller can safely repeat the same cancellation after losing the first acknowledgement.
14
16
  Its acknowledgement repeats the operation, digest, and run coordinates and distinguishes a known cancellation effect from conflict or unknown state.
15
17
 
@@ -623,6 +623,11 @@ export interface AgentEnvironment {
623
623
  readonly id: string;
624
624
  readonly provider: string;
625
625
  readonly name?: string;
626
+ /**
627
+ * Detached metadata returned by the provider.
628
+ * It can contain caller-authored annotations and is not authorization evidence.
629
+ */
630
+ readonly metadata?: Readonly<Record<string, unknown>>;
626
631
  /**
627
632
  * The capability document for THIS environment, and the document a caller
628
633
  * reads to decide which operation to offer against it.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tangle-network/agent-interface",
3
- "version": "0.50.0",
3
+ "version": "0.51.0",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "license": "MIT",