@agentvault/secure-channel 0.5.0 → 0.6.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/README.md +37 -16
- package/dist/channel.d.ts.map +1 -1
- package/dist/cli.js +191 -25
- package/dist/cli.js.map +4 -4
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +203 -15
- package/dist/index.js.map +4 -4
- package/dist/openclaw-entry.d.ts +16 -0
- package/dist/openclaw-entry.d.ts.map +1 -0
- package/dist/openclaw-plugin.d.ts +57 -0
- package/dist/openclaw-plugin.d.ts.map +1 -0
- package/dist/setup.d.ts +15 -0
- package/dist/setup.d.ts.map +1 -0
- package/dist/transport.d.ts +3 -1
- package/dist/transport.d.ts.map +1 -1
- package/openclaw.plugin.json +13 -0
- package/package.json +26 -3
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OpenClaw plugin entry point.
|
|
3
|
+
*
|
|
4
|
+
* This file is loaded by OpenClaw at runtime via the `openclaw.extensions`
|
|
5
|
+
* field in package.json. It registers AgentVault as a first-class channel.
|
|
6
|
+
*
|
|
7
|
+
* Users should not import this file directly — use the main package export instead.
|
|
8
|
+
*/
|
|
9
|
+
declare const plugin: {
|
|
10
|
+
id: string;
|
|
11
|
+
name: string;
|
|
12
|
+
description: string;
|
|
13
|
+
register(api: any): void;
|
|
14
|
+
};
|
|
15
|
+
export default plugin;
|
|
16
|
+
//# sourceMappingURL=openclaw-entry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"openclaw-entry.d.ts","sourceRoot":"","sources":["../src/openclaw-entry.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,QAAA,MAAM,MAAM;;;;kBAMI,GAAG;CAKlB,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AgentVault OpenClaw Channel Plugin
|
|
3
|
+
*
|
|
4
|
+
* Registers AgentVault as a first-class OpenClaw messaging channel.
|
|
5
|
+
* Messages from the AgentVault UI are decrypted and routed into the
|
|
6
|
+
* OpenClaw agent loop; agent replies are encrypted and sent back.
|
|
7
|
+
*
|
|
8
|
+
* Installation (one-time):
|
|
9
|
+
* npx @agentvault/secure-channel setup --token=av_tok_...
|
|
10
|
+
*
|
|
11
|
+
* After setup, restart OpenClaw — no further configuration needed.
|
|
12
|
+
*/
|
|
13
|
+
import { SecureChannel } from "./channel.js";
|
|
14
|
+
export declare function setOcRuntime(runtime: any): void;
|
|
15
|
+
export declare function getActiveChannel(accountId?: string): SecureChannel | undefined;
|
|
16
|
+
interface AgentVaultAccount {
|
|
17
|
+
accountId: string;
|
|
18
|
+
dataDir: string;
|
|
19
|
+
apiUrl: string;
|
|
20
|
+
agentName: string;
|
|
21
|
+
configured: boolean;
|
|
22
|
+
}
|
|
23
|
+
export declare const agentVaultPlugin: {
|
|
24
|
+
id: string;
|
|
25
|
+
meta: {
|
|
26
|
+
id: string;
|
|
27
|
+
label: string;
|
|
28
|
+
selectionLabel: string;
|
|
29
|
+
docsPath: string;
|
|
30
|
+
blurb: string;
|
|
31
|
+
aliases: string[];
|
|
32
|
+
};
|
|
33
|
+
capabilities: {
|
|
34
|
+
chatTypes: string[];
|
|
35
|
+
};
|
|
36
|
+
config: {
|
|
37
|
+
listAccountIds: (cfg: any) => string[];
|
|
38
|
+
resolveAccount: (cfg: any, accountId?: string) => AgentVaultAccount;
|
|
39
|
+
};
|
|
40
|
+
gateway: {
|
|
41
|
+
startAccount: (ctx: any) => Promise<{
|
|
42
|
+
stop: () => Promise<void>;
|
|
43
|
+
}>;
|
|
44
|
+
};
|
|
45
|
+
outbound: {
|
|
46
|
+
deliveryMode: "direct";
|
|
47
|
+
sendText: ({ text, accountId, }: {
|
|
48
|
+
text: string;
|
|
49
|
+
accountId?: string;
|
|
50
|
+
}) => Promise<{
|
|
51
|
+
ok: boolean;
|
|
52
|
+
error?: string;
|
|
53
|
+
}>;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
export {};
|
|
57
|
+
//# sourceMappingURL=openclaw-plugin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"openclaw-plugin.d.ts","sourceRoot":"","sources":["../src/openclaw-plugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAGH,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAQ7C,wBAAgB,YAAY,CAAC,OAAO,EAAE,GAAG,GAAG,IAAI,CAE/C;AAED,wBAAgB,gBAAgB,CAAC,SAAS,SAAY,GAAG,aAAa,GAAG,SAAS,CAEjF;AAMD,UAAU,iBAAiB;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,OAAO,CAAC;CACrB;AAMD,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;8BAcH,GAAG,KAAG,MAAM,EAAE;8BAId,GAAG,cAAc,MAAM,KAAG,iBAAiB;;;4BAYvC,GAAG;;;;;;yCAkE1B;YACD,IAAI,EAAE,MAAM,CAAC;YACb,SAAS,CAAC,EAAE,MAAM,CAAC;SACpB,KAAG,OAAO,CAAC;YAAE,EAAE,EAAE,OAAO,CAAC;YAAC,KAAK,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC;;CAa/C,CAAC"}
|
package/dist/setup.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AgentVault one-time setup command.
|
|
3
|
+
*
|
|
4
|
+
* Runs enrollment + waits for owner approval + persists state,
|
|
5
|
+
* then auto-registers the agentvault channel in openclaw config.
|
|
6
|
+
*
|
|
7
|
+
* Usage: npx @agentvault/secure-channel setup --token=av_tok_...
|
|
8
|
+
*/
|
|
9
|
+
export declare function runSetupCommand(options: {
|
|
10
|
+
token: string;
|
|
11
|
+
name: string;
|
|
12
|
+
apiUrl: string;
|
|
13
|
+
dataDir: string;
|
|
14
|
+
}): Promise<void>;
|
|
15
|
+
//# sourceMappingURL=setup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setup.d.ts","sourceRoot":"","sources":["../src/setup.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAMH,wBAAsB,eAAe,CAAC,OAAO,EAAE;IAC7C,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;CACjB,GAAG,OAAO,CAAC,IAAI,CAAC,CAyHhB"}
|
package/dist/transport.d.ts
CHANGED
|
@@ -17,6 +17,8 @@ export interface ActivateResponse {
|
|
|
17
17
|
owner_ephemeral_public_key: string | null;
|
|
18
18
|
}
|
|
19
19
|
export declare function enrollDevice(apiUrl: string, inviteToken: string, identityPkHex: string, ephemeralPkHex: string, proofHex: string, platform?: string): Promise<EnrollResponse>;
|
|
20
|
-
export declare function pollDeviceStatus(apiUrl: string, deviceId: string): Promise<StatusResponse
|
|
20
|
+
export declare function pollDeviceStatus(apiUrl: string, deviceId: string): Promise<StatusResponse & {
|
|
21
|
+
rateLimited?: boolean;
|
|
22
|
+
}>;
|
|
21
23
|
export declare function activateDevice(apiUrl: string, deviceId: string): Promise<ActivateResponse>;
|
|
22
24
|
//# sourceMappingURL=transport.d.ts.map
|
package/dist/transport.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transport.d.ts","sourceRoot":"","sources":["../src/transport.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,cAAc;IAC7B,SAA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AM,EACnB,aAAa,EAAE,MAAM,EACrB,cAAc,EAAE,MAAM,EACtB,QAAQ,EAAE,MAAM,EAChB,QAAQ,CAAC,EAAE,MAAM,GAChB,OAAO,CAAC,cAAc,CAAC,CAiBzB;AAED,wBAAsB,gBAAgB,CACpC,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,cAAc,GAAG;IAAE,WAAW,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC,CAWrD;AAED,wBAAsB,cAAc,CAClC,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,gBAAgB,CAAC,CAW3B"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "agentvault",
|
|
3
|
+
"name": "AgentVault",
|
|
4
|
+
"description": "End-to-end encrypted, zero-knowledge messaging between AI agent owners and their agents.",
|
|
5
|
+
"version": "0.5.1",
|
|
6
|
+
"channels": ["agentvault"],
|
|
7
|
+
"configSchema": {
|
|
8
|
+
"type": "object",
|
|
9
|
+
"additionalProperties": false,
|
|
10
|
+
"properties": {}
|
|
11
|
+
},
|
|
12
|
+
"uiHints": {}
|
|
13
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agentvault/secure-channel",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -21,15 +21,38 @@
|
|
|
21
21
|
"secure-channel": "dist/cli.js"
|
|
22
22
|
},
|
|
23
23
|
"files": [
|
|
24
|
-
"dist"
|
|
24
|
+
"dist",
|
|
25
|
+
"openclaw.plugin.json"
|
|
25
26
|
],
|
|
27
|
+
"openclaw": {
|
|
28
|
+
"extensions": [
|
|
29
|
+
"./dist/openclaw-entry.js"
|
|
30
|
+
],
|
|
31
|
+
"channel": {
|
|
32
|
+
"id": "agentvault",
|
|
33
|
+
"label": "AgentVault",
|
|
34
|
+
"selectionLabel": "AgentVault (E2E Encrypted)",
|
|
35
|
+
"docsPath": "https://agentvault.chat/docs",
|
|
36
|
+
"blurb": "Zero-knowledge, end-to-end encrypted messaging between owners and their AI agents.",
|
|
37
|
+
"aliases": [
|
|
38
|
+
"av",
|
|
39
|
+
"agent-vault"
|
|
40
|
+
]
|
|
41
|
+
},
|
|
42
|
+
"install": {
|
|
43
|
+
"npmSpec": "@agentvault/secure-channel",
|
|
44
|
+
"defaultChoice": "npm"
|
|
45
|
+
}
|
|
46
|
+
},
|
|
26
47
|
"publishConfig": {
|
|
27
48
|
"access": "public"
|
|
28
49
|
},
|
|
29
50
|
"dependencies": {
|
|
30
|
-
"node-notifier": "^10.0.1",
|
|
31
51
|
"ws": "^8.16.0"
|
|
32
52
|
},
|
|
53
|
+
"optionalDependencies": {
|
|
54
|
+
"node-notifier": "^10.0.1"
|
|
55
|
+
},
|
|
33
56
|
"devDependencies": {
|
|
34
57
|
"@agentvault/crypto": "^0.1.0",
|
|
35
58
|
"@types/libsodium-wrappers-sumo": "^0.7.8",
|