@nimbus-dev/client 0.17.2 → 0.17.3
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 +24 -5
- package/dist/nimbus-client.d.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -55,14 +55,15 @@ covers these gateway namespaces:
|
|
|
55
55
|
| Audit | `auditList`, `auditVerify`, `auditGetSummary`, `auditToolCalls` |
|
|
56
56
|
| Egress | `egressHead`, `egressList`, `egressVerify`, `egressProveWindow` |
|
|
57
57
|
| Connectors | `connectorListStatus`, `connectorStatus`, `connectorHealthHistory`, `connectorPause`, `connectorResume`, `connectorSetInterval`, `connectorSetConfig`, `connectorSync`, `connectorAuth`, `connectorAddMcp`, `connectorRemove`, `connectorReindex` |
|
|
58
|
-
| Workflows | `workflowList`, `workflowSave`, `workflowDelete`, `workflowListRuns`, `workflowRun` |
|
|
58
|
+
| Workflows | `workflowList`, `workflowSave`, `workflowDelete`, `workflowListRuns`, `workflowRun`, `workflowCancel` |
|
|
59
59
|
| Metrics & deploy | `metricsDora`, `deployPreflight` |
|
|
60
60
|
| Consent | `consentRespond` |
|
|
61
61
|
| Diagnostics | `gatewayPing`, `diagGetVersion`, `diagSnapshot`, `indexMetrics`, `adminStatus` |
|
|
62
62
|
|
|
63
63
|
Streaming and subscriptions: `askStream` (`AskStreamHandle`), `workflowRunStream`
|
|
64
64
|
(`WorkflowRunStreamHandle`), `subscribeHitl` (`HitlRequest`),
|
|
65
|
-
`subscribeConnectorConfigChanged` (`ConnectorConfigChanged`),
|
|
65
|
+
`subscribeConnectorConfigChanged` (`ConnectorConfigChanged`),
|
|
66
|
+
`subscribeAgentBrief` (`AgentBriefEvent`), and `cancelStream`.
|
|
66
67
|
|
|
67
68
|
### Validated responses
|
|
68
69
|
|
|
@@ -90,10 +91,28 @@ outbound action, recorded before it dispatches:
|
|
|
90
91
|
```typescript
|
|
91
92
|
const { head, count } = await client.egressHead(); // ledger head + row count
|
|
92
93
|
const { rows } = await client.egressList({ limit: 100 }); // recent rows
|
|
93
|
-
const verify = await client.egressVerify(); // offline chain verify
|
|
94
94
|
const proof = await client.egressProveWindow({ since: Date.now() - 3_600_000 });
|
|
95
|
-
|
|
96
|
-
//
|
|
95
|
+
|
|
96
|
+
// A zero is only a claim when THREE things hold: the whole-ledger verify passed, the
|
|
97
|
+
// window is not indeterminate, and the class you are asking about was actually being
|
|
98
|
+
// observed. `indeterminate` means no boot marker covers the window — nothing is known
|
|
99
|
+
// to have been observing, so a bare zero says nothing at all; `validate.ts` defaults
|
|
100
|
+
// it to `true` when the field is absent, for that reason. There is a standalone
|
|
101
|
+
// `egressVerify()` too, but `egressProveWindow` already carries the same whole-ledger
|
|
102
|
+
// verify as `proof.verify`, so asking twice proves nothing extra.
|
|
103
|
+
const { coverage, outboundEgressEvents, indeterminate } = proof.completeness;
|
|
104
|
+
const sound = proof.verify.ok && !indeterminate && outboundEgressEvents === 0;
|
|
105
|
+
const observed = (cls: EgressCoverageClass) => coverage[cls] !== "none";
|
|
106
|
+
|
|
107
|
+
// Scoped claim: nothing left the machine over HTTP. A class sitting at `"none"` was
|
|
108
|
+
// never observed by the binary that wrote this window, so the zero makes no claim
|
|
109
|
+
// about it — which is why the coverage check is per-class rather than a formality.
|
|
110
|
+
// See `EGRESS_COVERAGE_CLASSES` and `NO_EGRESS_COVERAGE`.
|
|
111
|
+
const noHttpEgress = sound && observed("http");
|
|
112
|
+
|
|
113
|
+
// Unqualified "nothing left this machine" is the much stronger claim, and it needs
|
|
114
|
+
// EVERY class observed — not just the one you happened to ask about.
|
|
115
|
+
const provablyLocal = sound && EGRESS_COVERAGE_CLASSES.every(observed);
|
|
97
116
|
```
|
|
98
117
|
|
|
99
118
|
## Publishing (maintainers)
|
package/dist/nimbus-client.d.ts
CHANGED
|
@@ -201,7 +201,7 @@ export declare const NO_EGRESS_COVERAGE: EgressCoverageVector;
|
|
|
201
201
|
/**
|
|
202
202
|
* Completeness attached to a prove-window result.
|
|
203
203
|
*
|
|
204
|
-
* **Breaking change in
|
|
204
|
+
* **Breaking change in 0.16.0:** the scalar `tier: "authorized-actions"` field is
|
|
205
205
|
* gone, replaced by the per-class `coverage` vector plus `indeterminate`.
|
|
206
206
|
*
|
|
207
207
|
* One string could not describe a binary observing several classes at different
|