openclaw-pine-voice 0.1.4 → 0.1.6
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 +3 -3
- package/dist/auth.js +2 -2
- package/dist/tool.js +3 -3
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
- package/skills/pine-voice-auth/SKILL.md +4 -4
package/README.md
CHANGED
|
@@ -107,10 +107,10 @@ The command prints your access token. Add it to your plugin config in `openclaw.
|
|
|
107
107
|
{
|
|
108
108
|
"plugins": {
|
|
109
109
|
"entries": {
|
|
110
|
-
"pine-voice": {
|
|
111
|
-
"enabled": true,
|
|
110
|
+
"openclaw-pine-voice": {
|
|
112
111
|
"config": {
|
|
113
|
-
"access_token": "PASTE_YOUR_TOKEN_HERE"
|
|
112
|
+
"access_token": "PASTE_YOUR_TOKEN_HERE",
|
|
113
|
+
"user_id": "PASTE_YOUR_USER_ID_HERE"
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
116
|
}
|
package/dist/auth.js
CHANGED
|
@@ -43,11 +43,11 @@ export function registerAuthCommands(api) {
|
|
|
43
43
|
try {
|
|
44
44
|
const { accessToken, userId } = await PineVoice.auth.verifyCode(opts.email, opts.requestToken || "", opts.code);
|
|
45
45
|
console.log("Authentication successful!");
|
|
46
|
-
console.log(`Add this to your
|
|
46
|
+
console.log(`Add this to your plugin config in ~/.openclaw/openclaw.json:`);
|
|
47
47
|
console.log("");
|
|
48
48
|
console.log(` "plugins": {`);
|
|
49
49
|
console.log(` "entries": {`);
|
|
50
|
-
console.log(` "pine-voice": {`);
|
|
50
|
+
console.log(` "openclaw-pine-voice": {`);
|
|
51
51
|
console.log(` "config": {`);
|
|
52
52
|
console.log(` "access_token": "${accessToken}",`);
|
|
53
53
|
console.log(` "user_id": "${userId}"`);
|
package/dist/tool.js
CHANGED
|
@@ -13,8 +13,8 @@ const AUTH_MISSING_MESSAGE = [
|
|
|
13
13
|
" openclaw pine-voice auth verify --email <USER_EMAIL> --request-token <TOKEN> --code <CODE>",
|
|
14
14
|
"",
|
|
15
15
|
" # Step 3: Add both values to your plugin config in openclaw.json:",
|
|
16
|
-
' # plugins.entries.pine-voice.config.user_id = "<USER_ID>"',
|
|
17
|
-
' # plugins.entries.pine-voice.config.access_token = "<TOKEN>"',
|
|
16
|
+
' # plugins.entries.openclaw-pine-voice.config.user_id = "<USER_ID>"',
|
|
17
|
+
' # plugins.entries.openclaw-pine-voice.config.access_token = "<TOKEN>"',
|
|
18
18
|
"",
|
|
19
19
|
" # Step 4: Restart the gateway",
|
|
20
20
|
" openclaw gateway restart",
|
|
@@ -33,7 +33,7 @@ const AUTH_EXPIRED_MESSAGE = [
|
|
|
33
33
|
].join("\n");
|
|
34
34
|
/** Read plugin config and create a PineVoice SDK client. Returns error response if not authenticated. */
|
|
35
35
|
function getClientOrError(api) {
|
|
36
|
-
const config = api.config?.plugins?.entries?.["pine-voice"]?.config;
|
|
36
|
+
const config = api.config?.plugins?.entries?.["openclaw-pine-voice"]?.config;
|
|
37
37
|
if (!config?.access_token || !config?.user_id) {
|
|
38
38
|
return { content: [{ type: "text", text: AUTH_MISSING_MESSAGE }], isError: true };
|
|
39
39
|
}
|
package/openclaw.plugin.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "openclaw-pine-voice",
|
|
3
3
|
"name": "Pine AI Voice Call",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.6",
|
|
5
5
|
"description": "Make phone calls via Pine AI voice agent. The AI agent calls the specified number and carries out the conversation based on your instructions. The voice agent can only speak English, so calls can only be delivered to English-speaking countries. Before calling, gather all information the callee may need for authentication and verification — the agent cannot ask a human for missing info mid-call. Returns the full transcript. Powered by Pine AI.",
|
|
6
6
|
"configSchema": {
|
|
7
7
|
"type": "object",
|
package/package.json
CHANGED
|
@@ -109,18 +109,18 @@ Use `openclaw config set` to write both values to the OpenClaw config file (`~/.
|
|
|
109
109
|
**Important:** The user ID is all digits, so the CLI will parse it as a number unless you force it to be a JSON string with `--json` and explicit quotes.
|
|
110
110
|
|
|
111
111
|
```bash
|
|
112
|
-
openclaw config set plugins.entries.pine-voice.config.access_token "THE_ACCESS_TOKEN"
|
|
113
|
-
openclaw config set plugins.entries.pine-voice.config.user_id '"THE_USER_ID"' --json
|
|
112
|
+
openclaw config set plugins.entries.openclaw-pine-voice.config.access_token "THE_ACCESS_TOKEN"
|
|
113
|
+
openclaw config set plugins.entries.openclaw-pine-voice.config.user_id '"THE_USER_ID"' --json
|
|
114
114
|
openclaw gateway restart
|
|
115
115
|
```
|
|
116
116
|
|
|
117
117
|
You can verify the stored values with:
|
|
118
118
|
|
|
119
119
|
```bash
|
|
120
|
-
openclaw config get plugins.entries.pine-voice.config
|
|
120
|
+
openclaw config get plugins.entries.openclaw-pine-voice.config
|
|
121
121
|
```
|
|
122
122
|
|
|
123
|
-
**Note:** The config file is located at `~/.openclaw/openclaw.json`. The `plugins.entries.pine-voice.config` section should contain both `access_token` and `user_id`. The gateway **must be restarted** after updating the config for the new credentials to take effect.
|
|
123
|
+
**Note:** The config file is located at `~/.openclaw/openclaw.json`. The `plugins.entries.openclaw-pine-voice.config` section should contain both `access_token` and `user_id`. The gateway **must be restarted** after updating the config for the new credentials to take effect.
|
|
124
124
|
|
|
125
125
|
### Step 6: Verify with a test call
|
|
126
126
|
|