@open-ic/openchat_openclaw 0.1.3 → 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.
@@ -0,0 +1,8 @@
1
+ {
2
+ "permissions": {
3
+ "allow": [
4
+ "Bash(openclaw --help)",
5
+ "Bash(openclaw plugins --help)"
6
+ ]
7
+ }
8
+ }
package/README.md CHANGED
@@ -11,7 +11,7 @@ An [OpenClaw](https://openclaw.ai) plugin that adds [OpenChat](https://oc.app) a
11
11
  ## Installation
12
12
 
13
13
  ```sh
14
- openclaw plugin install @open-ic/openchat_openclaw
14
+ openclaw plugins install @open-ic/openchat_openclaw
15
15
  ```
16
16
 
17
17
  ## Setup
@@ -37,13 +37,13 @@ OC_PUBLIC_KEY="-----BEGIN PUBLIC KEY-----\n...\n-----END PUBLIC KEY-----"
37
37
  OC_USER_INDEX_CANISTER="<canister-id>"
38
38
  ```
39
39
 
40
- | Variable | Required | Default | Description |
41
- |---|---|---|---|
42
- | `OC_PUBLIC_KEY` | Yes | — | OpenChat's ES256 public key for JWT verification |
43
- | `OC_USER_INDEX_CANISTER` | Yes | — | OpenChat user index canister ID |
44
- | `OC_PRIVATE_KEY` | See below | — | Bot private key PEM (alternative to config) |
45
- | `OC_IC_HOST` | No | `https://icp-api.io` | Internet Computer host (override for local replicas) |
46
- | `OC_STORAGE_INDEX_CANISTER` | No | `nbpzs-kqaaa-aaaar-qaaua-cai` | Storage index canister ID |
40
+ | Variable | Required | Default | Description |
41
+ | --------------------------- | --------- | ----------------------------- | ---------------------------------------------------- |
42
+ | `OC_PUBLIC_KEY` | Yes | — | OpenChat's ES256 public key for JWT verification |
43
+ | `OC_USER_INDEX_CANISTER` | Yes | — | OpenChat user index canister ID |
44
+ | `OC_PRIVATE_KEY` | See below | — | Bot private key PEM (alternative to config) |
45
+ | `OC_IC_HOST` | No | `https://icp-api.io` | Internet Computer host (override for local replicas) |
46
+ | `OC_STORAGE_INDEX_CANISTER` | No | `nbpzs-kqaaa-aaaar-qaaua-cai` | Storage index canister ID |
47
47
 
48
48
  ### 3. Configure the private key
49
49
 
@@ -78,9 +78,13 @@ openclaw gateway run
78
78
 
79
79
  ### 5. Register the bot on OpenChat
80
80
 
81
- Once the gateway is running and reachable from the internet, go to [oc.app](https://oc.app), navigate to **Settings Bots Register bot**, and provide:
81
+ Once the gateway is running and reachable from the browser, go to [oc.app](https://oc.app), run the `/register_bot` command from any chat. To register the bot you can give it the name and avatar of your choice and you will also need the following two details.
82
82
 
83
- - **Endpoint URL**: `https://<your-gateway-host>/openchat`
83
+ - **Gateway endpoint origin**: `https://<your-gateway-host>:<gateway-port>`
84
84
  - **Principal**: the value printed in step 1
85
85
 
86
- OpenChat will call `GET /openchat/bot_definition` to verify your endpoint is reachable before completing registration, and `POST /openchat/execute_command` each time a user sends `/prompt`.
86
+ OpenChat will call `GET /bot_definition` to verify your endpoint is reachable before completing registration, and `POST /execute_command` each time a user sends `/prompt`.
87
+
88
+ ### 6. Install the bot as a direct chat.
89
+
90
+ Search for the bot you registered as if searching for a user. Install the bot as a direct chat (which involves accepting the required permissions). Start talking to the bot! Congratulations, you are now talking to OpenClaw directly from OpenChat.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-ic/openchat_openclaw",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "OpenClaw OpenChat channel plugin",
5
5
  "type": "module",
6
6
  "scripts": {