@rynx-ai/workspace 0.1.10 → 0.1.11-beta.2
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.
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import type { WorkspaceDevice, WorkspaceDeviceIdentity, WorkspaceDeviceInventory, WorkspaceDeviceSkillArtifactBundle, WorkspaceDeviceSkillRuntimeImportReport, WorkspaceDeviceSkillRuntimeImportTask, WorkspaceDeviceSkillRuntimeScanReport, WorkspaceDeviceSkillRuntimeScanTask, WorkspaceRepositoryScanResult } from "./types.js";
|
|
2
2
|
import type { WorkspaceAgentExecutionSpecV1, WorkspaceAgentInteractionResolution } from "./agent-execution.js";
|
|
3
3
|
import type { WorkspaceAgentRuntimeId } from "./agent-options.js";
|
|
4
|
-
export declare const WORKSPACE_DEVICE_PROTOCOL_VERSION:
|
|
4
|
+
export declare const WORKSPACE_DEVICE_PROTOCOL_VERSION: 6;
|
|
5
5
|
export declare const WORKSPACE_DEVICE_WS_PATH = "/api/device-connection";
|
|
6
6
|
export declare const WORKSPACE_INSTALLATION_PROOF_ALGORITHM: "Ed25519";
|
|
7
|
-
export declare const WORKSPACE_INSTALLATION_PROOF_PLUGIN_ID: "workspace";
|
|
8
7
|
export declare const WORKSPACE_INSTALLATION_PROOF_DOMAIN: "rynx-plugin-installation-proof-v1";
|
|
9
8
|
export declare const WORKSPACE_DEVICE_PROOF_CONTEXT: "rynx-workspace-device-proof-v1";
|
|
10
9
|
export declare const WORKSPACE_DEVICE_ACCESS_PROOF_CONTEXT: "rynx-workspace-device-access-proof-v1";
|
|
11
10
|
export declare function workspaceInstallationProofChallenge(serverId: string, workspaceId: string, challenge: string): string;
|
|
12
|
-
export declare function workspaceInstallationProofMessage(installationId: string, serverId: string, workspaceId: string, challenge: string): string;
|
|
11
|
+
export declare function workspaceInstallationProofMessage(installationId: string, serverId: string, workspaceId: string, challenge: string, pluginInstallationId: string): string;
|
|
13
12
|
export declare function workspaceDeviceAccessProofChallenge(serverId: string, authorizationId: string, nonce: string): string;
|
|
14
|
-
export declare function workspaceDeviceAccessProofMessage(installationId: string, serverId: string, authorizationId: string, nonce: string): string;
|
|
13
|
+
export declare function workspaceDeviceAccessProofMessage(installationId: string, serverId: string, authorizationId: string, nonce: string, pluginInstallationId: string): string;
|
|
15
14
|
export type WorkspaceDeviceTaskKind = "repository.inspect" | "skill.runtime.scan" | "skill.runtime.import";
|
|
16
15
|
export interface WorkspaceRepositoryInspectPayload {
|
|
17
16
|
requestId: string;
|
|
@@ -62,6 +61,7 @@ export interface WorkspaceDeviceHelloMessage {
|
|
|
62
61
|
installationId: string;
|
|
63
62
|
proof: {
|
|
64
63
|
algorithm: typeof WORKSPACE_INSTALLATION_PROOF_ALGORITHM;
|
|
64
|
+
pluginInstallationId: string;
|
|
65
65
|
publicKey: string;
|
|
66
66
|
challenge: string;
|
|
67
67
|
signature: string;
|
package/dist/device-protocol.js
CHANGED
|
@@ -1,21 +1,20 @@
|
|
|
1
|
-
export const WORKSPACE_DEVICE_PROTOCOL_VERSION =
|
|
1
|
+
export const WORKSPACE_DEVICE_PROTOCOL_VERSION = 6;
|
|
2
2
|
export const WORKSPACE_DEVICE_WS_PATH = "/api/device-connection";
|
|
3
3
|
export const WORKSPACE_INSTALLATION_PROOF_ALGORITHM = "Ed25519";
|
|
4
|
-
export const WORKSPACE_INSTALLATION_PROOF_PLUGIN_ID = "workspace";
|
|
5
4
|
export const WORKSPACE_INSTALLATION_PROOF_DOMAIN = "rynx-plugin-installation-proof-v1";
|
|
6
5
|
export const WORKSPACE_DEVICE_PROOF_CONTEXT = "rynx-workspace-device-proof-v1";
|
|
7
6
|
export const WORKSPACE_DEVICE_ACCESS_PROOF_CONTEXT = "rynx-workspace-device-access-proof-v1";
|
|
8
7
|
export function workspaceInstallationProofChallenge(serverId, workspaceId, challenge) {
|
|
9
8
|
return `${WORKSPACE_DEVICE_PROOF_CONTEXT}\0${serverId}\0${workspaceId}\0${challenge}`;
|
|
10
9
|
}
|
|
11
|
-
export function workspaceInstallationProofMessage(installationId, serverId, workspaceId, challenge) {
|
|
12
|
-
return `${WORKSPACE_INSTALLATION_PROOF_DOMAIN}\0${installationId}\0plugin:${
|
|
10
|
+
export function workspaceInstallationProofMessage(installationId, serverId, workspaceId, challenge, pluginInstallationId) {
|
|
11
|
+
return `${WORKSPACE_INSTALLATION_PROOF_DOMAIN}\0${installationId}\0plugin:${pluginInstallationId}\0${workspaceInstallationProofChallenge(serverId, workspaceId, challenge)}`;
|
|
13
12
|
}
|
|
14
13
|
export function workspaceDeviceAccessProofChallenge(serverId, authorizationId, nonce) {
|
|
15
14
|
return `${WORKSPACE_DEVICE_ACCESS_PROOF_CONTEXT}\0${serverId}\0${authorizationId}\0${nonce}`;
|
|
16
15
|
}
|
|
17
|
-
export function workspaceDeviceAccessProofMessage(installationId, serverId, authorizationId, nonce) {
|
|
18
|
-
return `${WORKSPACE_INSTALLATION_PROOF_DOMAIN}\0${installationId}\0plugin:${
|
|
16
|
+
export function workspaceDeviceAccessProofMessage(installationId, serverId, authorizationId, nonce, pluginInstallationId) {
|
|
17
|
+
return `${WORKSPACE_INSTALLATION_PROOF_DOMAIN}\0${installationId}\0plugin:${pluginInstallationId}\0${workspaceDeviceAccessProofChallenge(serverId, authorizationId, nonce)}`;
|
|
19
18
|
}
|
|
20
19
|
/** One source of truth for both the WebSocket boundary and durable Run store. */
|
|
21
20
|
export const WORKSPACE_AGENT_ATTEMPT_EVENT_LIMITS = {
|