@tangle-network/agent-provider-cli-bridge 0.9.0 → 0.9.1

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.
@@ -65,15 +65,12 @@ export function narrowCliBridgeCapabilities(adapter, reported, selectedBackend,
65
65
  ? { atomicBoundary: true, requestIdempotency: true }
66
66
  : undefined;
67
67
  const sessions = {
68
- continue: nativeContinuation !== undefined &&
69
- adapter.sessions.continue &&
70
- reported.sessions.continue,
68
+ continue: adapter.sessions.continue && reported.sessions.continue,
71
69
  // The Bridge can list and inspect sessions, but this adapter exposes neither method.
72
70
  list: false,
73
71
  messages: false,
74
72
  };
75
- const retainedControl = sessions.continue &&
76
- supportsRetainedControl(adapter) &&
73
+ const retainedControl = supportsRetainedControl(adapter) &&
77
74
  supportsRetainedControl(reported)
78
75
  ? {
79
76
  exactRunIdentity: true,
package/dist/index.js CHANGED
@@ -148,19 +148,15 @@ export function defaultCliBridgeCapabilities(harness) {
148
148
  validation: false,
149
149
  },
150
150
  streaming: { live: true, replay: true, detach: true, turnIdempotency: true },
151
- sessions: {
152
- continue: harness === "pi",
153
- list: false,
154
- messages: false,
151
+ sessions: { continue: true, list: false, messages: false },
152
+ retainedControl: {
153
+ exactRunIdentity: true,
154
+ resultIdentity: true,
155
+ eventIdentity: true,
156
+ cancellationIdempotency: true,
155
157
  },
156
158
  ...(harness === "pi"
157
159
  ? {
158
- retainedControl: {
159
- exactRunIdentity: true,
160
- resultIdentity: true,
161
- eventIdentity: true,
162
- cancellationIdempotency: true,
163
- },
164
160
  nativeContinuation: {
165
161
  atomicBoundary: true,
166
162
  requestIdempotency: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tangle-network/agent-provider-cli-bridge",
3
- "version": "0.9.0",
3
+ "version": "0.9.1",
4
4
  "description": "AgentEnvironmentProvider adapter for cli-bridge retained sessions and one-shot turns",
5
5
  "type": "module",
6
6
  "license": "MIT",