@ravi-hq/ravi 0.2.1 → 0.3.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 +18 -30
- package/dist/index.d.ts +42 -21
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +28 -25
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -18,40 +18,27 @@ encrypted vault through a single plugin.
|
|
|
18
18
|
## Installation
|
|
19
19
|
|
|
20
20
|
```bash
|
|
21
|
-
openclaw plugins install @ravi-hq/
|
|
21
|
+
openclaw plugins install @ravi-hq/ravi
|
|
22
22
|
```
|
|
23
23
|
|
|
24
24
|
## Quick Start
|
|
25
25
|
|
|
26
|
-
### 1. Install and authenticate
|
|
27
|
-
|
|
28
26
|
```bash
|
|
29
|
-
openclaw plugins install @ravi-hq/
|
|
27
|
+
openclaw plugins install @ravi-hq/ravi
|
|
30
28
|
openclaw ravi login
|
|
31
29
|
```
|
|
32
30
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
```yaml
|
|
38
|
-
# In your OpenClaw config
|
|
39
|
-
plugins:
|
|
40
|
-
ravi:
|
|
41
|
-
token: "eyJhbGciOiJIUzI1NiIs..." # From 'openclaw ravi login'
|
|
42
|
-
pin: "123456" # Your 6-digit E2E encryption PIN
|
|
43
|
-
```
|
|
31
|
+
`login` opens a browser for device-code authentication, then auto-configures
|
|
32
|
+
OpenClaw -- it stores credentials in `~/.ravi/auth.json` and sets `identityUuid`
|
|
33
|
+
via `openclaw config set`. No manual config editing needed.
|
|
44
34
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
```bash
|
|
48
|
-
openclaw ravi setup
|
|
49
|
-
```
|
|
35
|
+
## Configuration
|
|
50
36
|
|
|
51
|
-
|
|
52
|
-
|
|
37
|
+
Authentication is stored in `~/.ravi/auth.json` (written by `openclaw ravi login`).
|
|
38
|
+
The `identityUuid` is set automatically during login via `openclaw config set`.
|
|
53
39
|
|
|
54
|
-
|
|
40
|
+
Manual plugin config is only needed for multi-agent setups where different agents
|
|
41
|
+
use different identities, or to customize channel DM policies.
|
|
55
42
|
|
|
56
43
|
```yaml
|
|
57
44
|
plugins:
|
|
@@ -59,11 +46,9 @@ plugins:
|
|
|
59
46
|
# Ravi API base URL (default: https://ravi.app)
|
|
60
47
|
apiUrl: "https://ravi.app"
|
|
61
48
|
|
|
62
|
-
#
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
# 6-digit E2E encryption PIN (required)
|
|
66
|
-
pin: "123456"
|
|
49
|
+
# Identity UUID -- set automatically by 'openclaw ravi login'.
|
|
50
|
+
# Override here only for multi-agent setups.
|
|
51
|
+
identityUuid: "identity-uuid-here"
|
|
67
52
|
|
|
68
53
|
# Channel accounts (from 'openclaw ravi setup')
|
|
69
54
|
channels:
|
|
@@ -238,6 +223,7 @@ Agent (OpenClaw runtime)
|
|
|
238
223
|
+-- Tools (19 agent tools)
|
|
239
224
|
| '-- REST calls --> GET/POST/DELETE /api/...
|
|
240
225
|
| Identity-scoped via X-Ravi-Identity header
|
|
226
|
+
| Returns MCP-style content arrays
|
|
241
227
|
|
|
|
242
228
|
'-- Crypto layer (lazy-initialized)
|
|
243
229
|
PIN + salt --> Argon2id --> NaCl SealedBox
|
|
@@ -252,8 +238,10 @@ Key points:
|
|
|
252
238
|
- **REST data may be encrypted** -- historical email content, passwords, and vault
|
|
253
239
|
secrets can contain `"e2e::<base64>"` ciphertext that the plugin decrypts
|
|
254
240
|
client-side using the PIN-derived keypair.
|
|
255
|
-
- **
|
|
256
|
-
|
|
241
|
+
- **Tool responses** return MCP-style content arrays (e.g. `[{ type: "text", text: "..." }]`),
|
|
242
|
+
letting the runtime render structured results natively.
|
|
243
|
+
- **Authentication** uses unbound JWTs stored in `~/.ravi/auth.json`. The
|
|
244
|
+
`X-Ravi-Identity` header scopes each API request to a specific identity.
|
|
257
245
|
|
|
258
246
|
## Development
|
|
259
247
|
|
package/dist/index.d.ts
CHANGED
|
@@ -28,31 +28,45 @@ export declare const allTools: import("./index.js").ToolDefinition[];
|
|
|
28
28
|
/**
|
|
29
29
|
* Minimal OpenClaw Plugin API type.
|
|
30
30
|
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
31
|
+
* Mirrors the real `OpenClawPluginApi` from the OpenClaw runtime. See
|
|
32
|
+
* https://docs.openclaw.ai/tools/plugin and src/plugins/registry.ts in
|
|
33
|
+
* the openclaw/openclaw repo for the authoritative definitions.
|
|
34
34
|
*/
|
|
35
35
|
interface PluginAPI {
|
|
36
|
-
/**
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
|
|
42
|
-
|
|
36
|
+
/** Full OpenClaw gateway configuration. */
|
|
37
|
+
config: Record<string, unknown>;
|
|
38
|
+
/** Validated plugin-specific config from plugins.entries.ravi.config. */
|
|
39
|
+
pluginConfig?: Record<string, unknown>;
|
|
40
|
+
/** Structured logger (info, warn, error, debug). */
|
|
41
|
+
logger: {
|
|
42
|
+
info: (...args: unknown[]) => void;
|
|
43
|
+
warn: (...args: unknown[]) => void;
|
|
44
|
+
error: (...args: unknown[]) => void;
|
|
45
|
+
debug: (...args: unknown[]) => void;
|
|
46
|
+
};
|
|
47
|
+
/** Register an agent tool. See https://docs.openclaw.ai/plugins/agent-tools */
|
|
43
48
|
registerTool(tool: {
|
|
44
49
|
name: string;
|
|
45
50
|
description: string;
|
|
46
51
|
parameters: unknown;
|
|
47
|
-
|
|
52
|
+
execute: (id: string, params: Record<string, unknown>) => Promise<{
|
|
53
|
+
content: Array<{
|
|
54
|
+
type: string;
|
|
55
|
+
text: string;
|
|
56
|
+
}>;
|
|
57
|
+
}>;
|
|
58
|
+
}, options?: {
|
|
59
|
+
optional?: boolean;
|
|
48
60
|
}): void;
|
|
49
61
|
/** Register a messaging channel (email, SMS, etc.). */
|
|
50
|
-
registerChannel(channel:
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
62
|
+
registerChannel(channel: {
|
|
63
|
+
plugin: unknown;
|
|
64
|
+
}): void;
|
|
65
|
+
/** Register CLI commands via Commander.js-style program. */
|
|
66
|
+
registerCli(registrar: (ctx: {
|
|
67
|
+
program: CLIProgram;
|
|
68
|
+
}) => void, opts?: {
|
|
69
|
+
commands?: string[];
|
|
56
70
|
}): void;
|
|
57
71
|
/** Register a background service with start/stop lifecycle. */
|
|
58
72
|
registerService(svc: {
|
|
@@ -60,10 +74,17 @@ interface PluginAPI {
|
|
|
60
74
|
start: () => void;
|
|
61
75
|
stop: () => void;
|
|
62
76
|
}): void;
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
77
|
+
}
|
|
78
|
+
/** Minimal Commander.js program interface for CLI registration. */
|
|
79
|
+
interface CLIProgram {
|
|
80
|
+
command(name: string): CLICommand;
|
|
81
|
+
}
|
|
82
|
+
/** Minimal Commander.js command interface. */
|
|
83
|
+
interface CLICommand {
|
|
84
|
+
command(name: string): CLICommand;
|
|
85
|
+
description(desc: string): CLICommand;
|
|
86
|
+
argument(name: string, desc?: string): CLICommand;
|
|
87
|
+
action(fn: (...args: unknown[]) => void | Promise<void>): CLICommand;
|
|
67
88
|
}
|
|
68
89
|
/**
|
|
69
90
|
* The OpenClaw plugin registration function.
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAKH,YAAY,EACV,gBAAgB,EAChB,QAAQ,EACR,WAAW,EACX,YAAY,EACZ,eAAe,EACf,UAAU,EACV,aAAa,EACb,WAAW,EACX,cAAc,EACd,UAAU,EACV,QAAQ,EACR,UAAU,GACX,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,aAAa,CA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55
55
|
export default function registerPlugin(api) {
|
|
56
|
-
const config = api.
|
|
56
|
+
const config = (api.pluginConfig ?? {});
|
|
57
57
|
// Load auth from ~/.ravi/auth.json (written by `openclaw ravi login`)
|
|
58
58
|
const auth = loadAuth();
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
59
|
+
// ── Always register CLI commands (login works even without auth) ───────
|
|
60
|
+
api.registerCli(({ program }) => {
|
|
61
|
+
const ravi = program
|
|
62
|
+
.command("ravi")
|
|
63
|
+
.description("Ravi identity provider — email, phone, passwords, vault");
|
|
62
64
|
for (const cmd of cliCommands) {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
description
|
|
66
|
-
|
|
65
|
+
ravi
|
|
66
|
+
.command(cmd.name)
|
|
67
|
+
.description(cmd.description)
|
|
68
|
+
.action(async () => {
|
|
69
|
+
const output = await cmd.handler([], config);
|
|
70
|
+
process.stdout.write(output + "\n");
|
|
67
71
|
});
|
|
68
72
|
}
|
|
73
|
+
}, { commands: ["ravi"] });
|
|
74
|
+
if (!auth?.access_token) {
|
|
75
|
+
api.logger.warn("Not authenticated — only CLI commands available. Run 'openclaw ravi login' to enable tools and channels.");
|
|
69
76
|
return;
|
|
70
77
|
}
|
|
71
78
|
// Background listener service — created early so onTokenRefresh can update it.
|
|
72
79
|
const service = new RaviListenerService((message) => {
|
|
73
|
-
api.
|
|
80
|
+
api.logger.debug("Dispatching inbound message", message);
|
|
74
81
|
});
|
|
75
82
|
// Initialize HTTP client from auth.json + config identityUuid
|
|
76
83
|
const client = new RaviClient({
|
|
@@ -92,12 +99,12 @@ export default function registerPlugin(api) {
|
|
|
92
99
|
}
|
|
93
100
|
catch (err) {
|
|
94
101
|
const detail = err instanceof Error ? err.message : String(err);
|
|
95
|
-
|
|
102
|
+
api.logger.error(`Failed to initialize E2E encryption: ${detail}. ` +
|
|
96
103
|
`Encrypted data will not be readable. Run 'openclaw ravi login' to fix.`);
|
|
97
104
|
}
|
|
98
105
|
}
|
|
99
106
|
else if (auth.access_token) {
|
|
100
|
-
|
|
107
|
+
api.logger.warn("No encryption keypair found. Encrypted data (passwords, vault) will not be readable. " +
|
|
101
108
|
"Run 'openclaw ravi login' to set up E2E encryption.");
|
|
102
109
|
}
|
|
103
110
|
// ── Register all tools ──────────────────────────────────────────────────
|
|
@@ -106,22 +113,18 @@ export default function registerPlugin(api) {
|
|
|
106
113
|
name: tool.name,
|
|
107
114
|
description: tool.description,
|
|
108
115
|
parameters: tool.parameters,
|
|
109
|
-
|
|
110
|
-
|
|
116
|
+
execute: async (_id, params) => {
|
|
117
|
+
const result = await tool.handler(params, { client, crypto });
|
|
118
|
+
const text = typeof result === "string"
|
|
119
|
+
? result
|
|
120
|
+
: JSON.stringify(result, null, 2);
|
|
121
|
+
return { content: [{ type: "text", text }] };
|
|
111
122
|
},
|
|
112
123
|
});
|
|
113
124
|
}
|
|
114
125
|
// ── Register channels ───────────────────────────────────────────────────
|
|
115
|
-
api.registerChannel(raviEmailChannel);
|
|
116
|
-
api.registerChannel(raviSmsChannel);
|
|
117
|
-
// ── Register CLI commands ───────────────────────────────────────────────
|
|
118
|
-
for (const cmd of cliCommands) {
|
|
119
|
-
api.registerCommand({
|
|
120
|
-
name: cmd.name,
|
|
121
|
-
description: cmd.description,
|
|
122
|
-
handler: (args) => cmd.handler(args, config),
|
|
123
|
-
});
|
|
124
|
-
}
|
|
126
|
+
api.registerChannel({ plugin: raviEmailChannel });
|
|
127
|
+
api.registerChannel({ plugin: raviSmsChannel });
|
|
125
128
|
// ── Register background listener service ────────────────────────────────
|
|
126
129
|
api.registerService({
|
|
127
130
|
id: "ravi-listener",
|
|
@@ -138,7 +141,7 @@ export default function registerPlugin(api) {
|
|
|
138
141
|
apiUrl: RAVI_API_URL,
|
|
139
142
|
token: auth.access_token,
|
|
140
143
|
identityUuid,
|
|
141
|
-
agentId:
|
|
144
|
+
agentId: "default",
|
|
142
145
|
emailAccount: {
|
|
143
146
|
identityUuid,
|
|
144
147
|
identityName: name,
|
|
@@ -155,7 +158,7 @@ export default function registerPlugin(api) {
|
|
|
155
158
|
});
|
|
156
159
|
}).catch((err) => {
|
|
157
160
|
const detail = err instanceof Error ? err.message : String(err);
|
|
158
|
-
|
|
161
|
+
api.logger.error(`Failed to start listener: ${detail}`);
|
|
159
162
|
});
|
|
160
163
|
},
|
|
161
164
|
stop: () => {
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAoBH,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAUvD,gFAAgF;AAEhF,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,8BAA8B,EAAsB,MAAM,aAAa,CAAC;AACjF,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACjD,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,EAAE,gBAAgB,EAA2B,MAAM,qBAAqB,CAAC;AAChF,OAAO,EAAE,cAAc,EAAyB,MAAM,mBAAmB,CAAC;AAC1E,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAGvC,gFAAgF;AAEhF;;;;;;GA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