openclaw-pine-voice 0.1.2 → 0.1.4
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/dist/auth.js +15 -4
- package/openclaw.plugin.json +2 -2
- package/package.json +2 -2
- package/skills/pine-voice-auth/SKILL.md +3 -1
package/dist/auth.js
CHANGED
|
@@ -43,10 +43,21 @@ 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 pine-voice config:`);
|
|
47
|
-
console.log(
|
|
48
|
-
console.log(`
|
|
49
|
-
console.log("
|
|
46
|
+
console.log(`Add this to your pine-voice config in ~/.openclaw/openclaw.json:`);
|
|
47
|
+
console.log("");
|
|
48
|
+
console.log(` "plugins": {`);
|
|
49
|
+
console.log(` "entries": {`);
|
|
50
|
+
console.log(` "pine-voice": {`);
|
|
51
|
+
console.log(` "config": {`);
|
|
52
|
+
console.log(` "access_token": "${accessToken}",`);
|
|
53
|
+
console.log(` "user_id": "${userId}"`);
|
|
54
|
+
console.log(` }`);
|
|
55
|
+
console.log(` }`);
|
|
56
|
+
console.log(` }`);
|
|
57
|
+
console.log(` }`);
|
|
58
|
+
console.log("");
|
|
59
|
+
console.log("Then restart the gateway:");
|
|
60
|
+
console.log(" openclaw gateway restart");
|
|
50
61
|
}
|
|
51
62
|
catch (err) {
|
|
52
63
|
const message = err instanceof Error ? err.message : String(err);
|
package/openclaw.plugin.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"id": "pine-voice",
|
|
2
|
+
"id": "openclaw-pine-voice",
|
|
3
3
|
"name": "Pine AI Voice Call",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.4",
|
|
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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "openclaw-pine-voice",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "Make phone calls via Pine AI voice agent from OpenClaw",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@sinclair/typebox": "^0.32.0",
|
|
45
|
-
"pine-voice": "^0.1.
|
|
45
|
+
"pine-voice": "^0.1.1"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"typescript": "^5.0.0"
|
|
@@ -104,7 +104,7 @@ Save **both** values:
|
|
|
104
104
|
|
|
105
105
|
### Step 5: Store the credentials and restart
|
|
106
106
|
|
|
107
|
-
Use `openclaw config set` to write both values. Replace `THE_ACCESS_TOKEN` and `THE_USER_ID` with the actual values from step 4.
|
|
107
|
+
Use `openclaw config set` to write both values to the OpenClaw config file (`~/.openclaw/openclaw.json`). Replace `THE_ACCESS_TOKEN` and `THE_USER_ID` with the actual values from step 4.
|
|
108
108
|
|
|
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
|
|
|
@@ -120,6 +120,8 @@ You can verify the stored values with:
|
|
|
120
120
|
openclaw config get plugins.entries.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.
|
|
124
|
+
|
|
123
125
|
### Step 6: Verify with a test call
|
|
124
126
|
|
|
125
127
|
After authentication is complete, suggest the user make a test call to their own phone number to verify everything works end-to-end:
|