@byok-sdk/server 0.24.0 → 0.25.0-rc.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.
- package/README.md +10 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +36 -14
- package/dist/index.js.map +1 -1
- package/dist/sqlite-support.d.ts +20 -0
- package/dist/types.d.ts +3 -4
- package/package.json +4 -4
package/dist/sqlite-support.d.ts
CHANGED
|
@@ -28,6 +28,26 @@ export declare function closeSqliteDatabaseAfterInitializationFailure(db: Databa
|
|
|
28
28
|
export declare class SqliteUnavailableError extends Error {
|
|
29
29
|
constructor(cause: unknown);
|
|
30
30
|
}
|
|
31
|
+
/**
|
|
32
|
+
* Why a SQLite file was refused at open, so a host can tell the user what to do
|
|
33
|
+
* without parsing the message:
|
|
34
|
+
* - `SQLITE_SCHEMA_UNSUPPORTED`: the stored version is not this build's and no
|
|
35
|
+
* matching `migration` selector was given (an older file needs one; a newer
|
|
36
|
+
* file needs a newer build).
|
|
37
|
+
* - `SQLITE_MIGRATION_REFUSED`: the selected migration would lose durable
|
|
38
|
+
* authority; preserve the file for reconciliation.
|
|
39
|
+
* - `SQLITE_SCHEMA_INVALID`: the file contradicts its declared BYOK schema or
|
|
40
|
+
* is not a BYOK database.
|
|
41
|
+
*/
|
|
42
|
+
export type SqliteSchemaErrorCode = 'SQLITE_SCHEMA_UNSUPPORTED' | 'SQLITE_MIGRATION_REFUSED' | 'SQLITE_SCHEMA_INVALID';
|
|
43
|
+
export declare class SqliteSchemaError extends Error {
|
|
44
|
+
readonly code: SqliteSchemaErrorCode;
|
|
45
|
+
/** The stored `schema_version`; `undefined` when the file has none. */
|
|
46
|
+
readonly foundVersion: string | undefined;
|
|
47
|
+
/** The schema version this build writes. */
|
|
48
|
+
readonly requiredVersion: string;
|
|
49
|
+
constructor(code: SqliteSchemaErrorCode, message: string, foundVersion: string | undefined, requiredVersion: string, options?: ErrorOptions);
|
|
50
|
+
}
|
|
31
51
|
/**
|
|
32
52
|
* Whether `nodeVersion` (a `major.minor.patch` string shaped like
|
|
33
53
|
* `process.versions.node`) is new enough to have `node:sqlite` at all.
|
package/dist/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { HarnessInfo } from '@byok-sdk/protocol';
|
|
2
|
-
import type { AgentContentReadPayload, AgentHomeProjectionPayload, AgentHomeProjectionReadback, AgentEventOrUnknown, AgentEgressPolicy, AgentEgressReliablePayload, AgentMessageEgressRequirement, AgentMessageServerContext, AgentMessagePublishPayload, AgentRef, BlobRef, DispatchSelection,
|
|
2
|
+
import type { AgentContentReadPayload, AgentHomeProjectionPayload, AgentHomeProjectionReadback, AgentEventOrUnknown, AgentEgressPolicy, AgentEgressReliablePayload, AgentMessageEgressRequirement, AgentMessageServerContext, AgentMessagePublishPayload, AgentRef, BlobRef, DispatchSelection, RuntimeCapabilities, RuntimeId, RuntimeInfo, TaskApprovalResolvedPayload, TaskArtifactPayload, TaskState, ToolsetId, TerminalProjectionSelection } from '@byok-sdk/protocol';
|
|
3
3
|
import type { TenantId, TokenSigner } from '@byok-sdk/cloud';
|
|
4
4
|
import type { RateLimiterOptions } from './rate-limiter';
|
|
5
5
|
/** Mutually-exclusive storage authority for the embedded reference server. */
|
|
@@ -124,7 +124,6 @@ export interface DispatchInput {
|
|
|
124
124
|
dispatchSelection?: DispatchSelection;
|
|
125
125
|
runtime?: RuntimeId;
|
|
126
126
|
harnessId?: string;
|
|
127
|
-
policy?: PermissionPolicy;
|
|
128
127
|
deviceId?: string;
|
|
129
128
|
sessionRef?: string;
|
|
130
129
|
/** Logical device-local MCP toolsets required for this task; never executable definitions. */
|
|
@@ -289,8 +288,8 @@ export interface MachineInfo {
|
|
|
289
288
|
* `@byok-sdk/cloud`) on every call — never a mirrored record this package
|
|
290
289
|
* maintains alongside it.
|
|
291
290
|
*
|
|
292
|
-
* Deliberately smaller than it used to be: `instruction`, `runtime
|
|
293
|
-
*
|
|
291
|
+
* Deliberately smaller than it used to be: `instruction`, `runtime` and
|
|
292
|
+
* `requiredToolsets` were DISPATCH INPUT the host already holds and the
|
|
294
293
|
* kernel does not persist (ADR-028 — an attempt records ownership and
|
|
295
294
|
* disposition, not the request that produced it). A host that wants them back
|
|
296
295
|
* keeps its own map keyed by `taskId`; this snapshot never re-derives them.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@byok-sdk/server",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.25.0-rc.1",
|
|
4
4
|
"description": "BYOK SDK server: in-memory M0 reference implementation of the SaaS-side coordinator",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -44,9 +44,9 @@
|
|
|
44
44
|
"clean": "rm -rf dist"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@byok-sdk/cloud": "0.
|
|
48
|
-
"@byok-sdk/core": "0.
|
|
49
|
-
"@byok-sdk/protocol": "0.
|
|
47
|
+
"@byok-sdk/cloud": "0.25.0-rc.1",
|
|
48
|
+
"@byok-sdk/core": "0.25.0-rc.1",
|
|
49
|
+
"@byok-sdk/protocol": "0.25.0-rc.1",
|
|
50
50
|
"@hono/node-server": "^2.0.10",
|
|
51
51
|
"hono": "^4.12.30"
|
|
52
52
|
},
|