@byok-sdk/cloud-dataplane 0.13.0 → 0.15.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.
@@ -0,0 +1,5 @@
1
+ -- Additive custom-harness contract. Existing runtime columns retain their enum meaning.
2
+ ALTER TABLE device ADD COLUMN harnesses jsonb;
3
+ ALTER TABLE task ADD COLUMN claimed_harness_id text;
4
+ ALTER TABLE task ADD CONSTRAINT task_claimed_identity_exclusive
5
+ CHECK (claimed_runtime IS NULL OR claimed_harness_id IS NULL);
@@ -1,3 +1,4 @@
1
+ import type { HarnessInfo } from '@byok-sdk/protocol';
1
2
  /**
2
3
  * Postgres {@link DeviceDirectory}.
3
4
  *
@@ -46,6 +47,7 @@ export declare class PostgresDeviceDirectory implements DeviceDirectory {
46
47
  revoke(tenant: TenantId, deviceId: string): Promise<void>;
47
48
  recordCapabilities(tenant: TenantId, input: {
48
49
  readonly deviceId: string;
50
+ readonly harnesses?: readonly HarnessInfo[];
49
51
  readonly capabilities: readonly string[];
50
52
  }): Promise<DeviceRecord | undefined>;
51
53
  list(tenant: TenantId): Promise<readonly DeviceRecord[]>;
@@ -30,11 +30,12 @@ export interface TaskRow {
30
30
  readonly cancel_requested_at: Date | null;
31
31
  readonly cancel_reason: string | null;
32
32
  readonly cancel_message_id: string | null;
33
+ readonly claimed_harness_id: string | null;
33
34
  readonly claimed_runtime: string | null;
34
35
  readonly claimed_runtime_capabilities: RuntimeCapabilities | null;
35
36
  readonly updated_at: Date;
36
37
  }
37
- export declare const TASK_SELECT_COLUMNS = "tenant_id, task_id, device_id, agent_id, agent_profile_revision, owner_device_id, status, terminal_cause, cancel_requested_at, cancel_reason, cancel_message_id, claimed_runtime, claimed_runtime_capabilities, updated_at";
38
+ export declare const TASK_SELECT_COLUMNS = "tenant_id, task_id, device_id, agent_id, agent_profile_revision, owner_device_id, status, terminal_cause, cancel_requested_at, cancel_reason, cancel_message_id, claimed_runtime, claimed_harness_id, claimed_runtime_capabilities, updated_at";
38
39
  export declare function taskRowToAttempt(row: TaskRow): TaskAttempt;
39
40
  export declare class PostgresTaskAttemptStore implements TaskAttemptStore {
40
41
  #private;
@@ -78,6 +79,7 @@ export declare class PostgresTaskAttemptStore implements TaskAttemptStore {
78
79
  readonly taskId: string;
79
80
  readonly deviceId: string;
80
81
  readonly runtime?: RuntimeId;
82
+ readonly harnessId?: string;
81
83
  readonly capabilities?: RuntimeCapabilities;
82
84
  }): Promise<TaskAttempt | undefined>;
83
85
  recordStatus(tenant: TenantId, input: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@byok-sdk/cloud-dataplane",
3
- "version": "0.13.0",
3
+ "version": "0.15.0",
4
4
  "description": "BYOK SDK hosted data plane: canonical Postgres + R2 stores, migrations, truth transactions, and maintenance",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -49,9 +49,9 @@
49
49
  "clean": "rm -rf dist"
50
50
  },
51
51
  "dependencies": {
52
- "@byok-sdk/cloud": "0.13.0",
53
- "@byok-sdk/core": "0.13.0",
54
- "@byok-sdk/protocol": "0.13.0",
52
+ "@byok-sdk/cloud": "0.15.0",
53
+ "@byok-sdk/core": "0.15.0",
54
+ "@byok-sdk/protocol": "0.15.0",
55
55
  "aws4fetch": "1.0.20",
56
56
  "fast-xml-parser": "^5.10.1",
57
57
  "pg": "^8.22.0"