@tangle-network/agent-interface 0.49.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 +2 -0
- package/dist/environment-runtime.d.ts +18 -0
- package/package.json +1 -1
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,24 @@ 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>>;
|
|
631
|
+
/**
|
|
632
|
+
* The capability document for THIS environment, and the document a caller
|
|
633
|
+
* reads to decide which operation to offer against it.
|
|
634
|
+
*
|
|
635
|
+
* A capability the connected deployment decides is environment-scoped: one
|
|
636
|
+
* provider reaches deployments of different ages, so
|
|
637
|
+
* {@link AgentEnvironmentProvider.capabilities} can only state what holds
|
|
638
|
+
* before an environment exists. A provider that measures a capability per
|
|
639
|
+
* environment publishes the measured answer here, and the operations this
|
|
640
|
+
* environment exposes match it exactly. Absent when the provider document
|
|
641
|
+
* already describes every environment it creates.
|
|
642
|
+
*/
|
|
643
|
+
readonly capabilities?: AgentEnvironmentCapabilities;
|
|
626
644
|
status(options?: {
|
|
627
645
|
signal?: AbortSignal;
|
|
628
646
|
}): Promise<AgentEnvironmentStatus>;
|