@byok-sdk/cloud 0.19.0 → 0.21.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/dist/capabilities.d.ts +1 -1
- package/dist/cloud.d.ts +3 -1
- package/dist/index.js +31 -25
- package/dist/index.js.map +1 -1
- package/dist/terminal-result.d.ts +9 -1
- package/package.json +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type AgentRef, type BlobRef, type Envelope, type TerminalInferenceUsage, type TaskFailPayload } from '@byok-sdk/protocol';
|
|
1
|
+
import { type AgentRef, type BlobRef, type Envelope, type TerminalInferenceUsage, type TerminalPreparedObservation, type TaskFailPayload } from '@byok-sdk/protocol';
|
|
2
2
|
import type { RequestReceipt } from './stores/ports';
|
|
3
3
|
/** Canonical device evidence, independent of the Host cancellation projection. */
|
|
4
4
|
export interface DeviceTerminal {
|
|
@@ -39,6 +39,14 @@ export interface TerminalResult {
|
|
|
39
39
|
* or entitlement authority.
|
|
40
40
|
*/
|
|
41
41
|
readonly usage?: TerminalInferenceUsage;
|
|
42
|
+
/**
|
|
43
|
+
* The prepared-only observation copied verbatim from a prepared Execution's
|
|
44
|
+
* winning `task.complete` / `task.fail`: the frozen request digest, the
|
|
45
|
+
* first provider call's prompt tokens and the largest. Unlike `usage` it is
|
|
46
|
+
* evidence the Host checks its own budget ruling against; the cloud performs
|
|
47
|
+
* no arithmetic over it.
|
|
48
|
+
*/
|
|
49
|
+
readonly preparedObservation?: TerminalPreparedObservation;
|
|
42
50
|
readonly reason?: string;
|
|
43
51
|
/** Terminal cause projection; currently the protocol's terminal reason. */
|
|
44
52
|
readonly terminalCause?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@byok-sdk/cloud",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.21.0",
|
|
4
4
|
"description": "BYOK SDK hosted device surface: stateless frozen-v1 HTTP handlers over tenant-first @byok-sdk/core ports",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
"clean": "rm -rf dist"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@byok-sdk/core": "0.
|
|
48
|
-
"@byok-sdk/protocol": "0.
|
|
47
|
+
"@byok-sdk/core": "0.21.0",
|
|
48
|
+
"@byok-sdk/protocol": "0.21.0",
|
|
49
49
|
"hono": "^4.12.30",
|
|
50
50
|
"zod": "^4.4.3"
|
|
51
51
|
}
|