byok-sdk 0.0.1 → 0.1.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 ancienttwo
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,10 +1,26 @@
1
- # byok-sdk (placeholder)
1
+ # byok-sdk
2
2
 
3
- This unscoped name is reserved by the BYOK SDK project to prevent confusion.
3
+ The complete BYOK dispatch SDK. It groups the six public dispatch packages by
4
+ their ownership boundary:
4
5
 
5
- Official packages are published under the **@byok-sdk** scope:
6
+ ```ts
7
+ import { client, cloud, cloudPostgres, core, protocol, server } from 'byok-sdk';
8
+ ```
6
9
 
7
- - `@byok-sdk/keys` provider key management
8
- - `@byok-sdk/protocol`, `@byok-sdk/server`, `@byok-sdk/client` — agent dispatch plane (not yet published)
10
+ - `client`: the end-user daemon and local runtime adapters.
11
+ - `server`: the self-hosted in-memory coordinator.
12
+ - `cloud`: stateless hosted HTTP handlers and in-memory composition.
13
+ - `cloudPostgres`: durable Postgres + R2 composition and migrations.
14
+ - `core`: tenant-first platform contracts and store ports.
15
+ - `protocol`: the frozen v1 device wire contract.
9
16
 
10
- Source: https://github.com/Ancienttwo/byok-sdk
17
+ `@byok-sdk/keys` is deliberately not exported or installed by this package.
18
+ Provider-key custody has a separate security model; install it explicitly only
19
+ when the host needs direct provider transports.
20
+
21
+ See the [repository README](https://github.com/Ancienttwo/byok-sdk#readme) for
22
+ composition examples and operational boundaries.
23
+
24
+ ## License
25
+
26
+ MIT
@@ -0,0 +1,12 @@
1
+ /**
2
+ * The complete dispatch-platform SDK, grouped by package ownership.
3
+ *
4
+ * `@byok-sdk/keys` is intentionally absent. Key custody has a separate
5
+ * dependency and security boundary and must be installed explicitly.
6
+ */
7
+ export * as core from '@byok-sdk/core';
8
+ export * as protocol from '@byok-sdk/protocol';
9
+ export * as client from '@byok-sdk/client';
10
+ export * as server from '@byok-sdk/server';
11
+ export * as cloud from '@byok-sdk/cloud';
12
+ export * as cloudPostgres from '@byok-sdk/cloud-postgres';
package/dist/index.js ADDED
@@ -0,0 +1,14 @@
1
+ import * as core from '@byok-sdk/core';
2
+ export { core };
3
+ import * as protocol from '@byok-sdk/protocol';
4
+ export { protocol };
5
+ import * as client from '@byok-sdk/client';
6
+ export { client };
7
+ import * as server from '@byok-sdk/server';
8
+ export { server };
9
+ import * as cloud from '@byok-sdk/cloud';
10
+ export { cloud };
11
+ import * as cloudPostgres from '@byok-sdk/cloud-postgres';
12
+ export { cloudPostgres };
13
+ //# sourceMappingURL=index.js.map
14
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.js","sourcesContent":[]}
package/package.json CHANGED
@@ -1,11 +1,54 @@
1
1
  {
2
2
  "name": "byok-sdk",
3
- "version": "0.0.1",
4
- "description": "Name placeholder for the BYOK SDK. Official packages are published under the @byok-sdk scope (e.g. @byok-sdk/keys).",
3
+ "version": "0.1.0",
4
+ "description": "Bring-your-own-agent SDK for local daemons, self-hosted coordination, and hosted multi-tenant BYOK infrastructure",
5
+ "type": "module",
5
6
  "license": "MIT",
6
7
  "repository": {
7
8
  "type": "git",
8
- "url": "git+https://github.com/Ancienttwo/byok-sdk.git"
9
+ "url": "git+https://github.com/Ancienttwo/byok-sdk.git",
10
+ "directory": "packages/sdk"
9
11
  },
10
- "homepage": "https://github.com/Ancienttwo/byok-sdk#readme"
11
- }
12
+ "bugs": {
13
+ "url": "https://github.com/Ancienttwo/byok-sdk/issues"
14
+ },
15
+ "homepage": "https://github.com/Ancienttwo/byok-sdk#readme",
16
+ "engines": {
17
+ "node": ">=20"
18
+ },
19
+ "sideEffects": false,
20
+ "main": "./dist/index.js",
21
+ "module": "./dist/index.js",
22
+ "types": "./dist/index.d.ts",
23
+ "exports": {
24
+ ".": {
25
+ "types": "./dist/index.d.ts",
26
+ "import": "./dist/index.js"
27
+ },
28
+ "./package.json": "./package.json"
29
+ },
30
+ "files": [
31
+ "dist",
32
+ "README.md",
33
+ "LICENSE"
34
+ ],
35
+ "publishConfig": {
36
+ "access": "public"
37
+ },
38
+ "dependencies": {
39
+ "@byok-sdk/client": "0.1.0",
40
+ "@byok-sdk/core": "0.1.0",
41
+ "@byok-sdk/cloud": "0.1.0",
42
+ "@byok-sdk/cloud-postgres": "0.1.0",
43
+ "@byok-sdk/server": "0.1.0",
44
+ "@byok-sdk/protocol": "0.1.0"
45
+ },
46
+ "scripts": {
47
+ "build": "tsup && tsc -p tsconfig.build.json",
48
+ "dev": "tsup --watch",
49
+ "test": "vitest run",
50
+ "test:watch": "vitest",
51
+ "typecheck": "tsc --noEmit",
52
+ "clean": "rm -rf dist"
53
+ }
54
+ }