@yahaha-studio/kichi-forwarder 0.1.1-beta.3 → 0.1.1-beta.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/index.ts
CHANGED
|
@@ -76,7 +76,7 @@ type IdlePlan = {
|
|
|
76
76
|
actions: IdlePlanAction[];
|
|
77
77
|
}>;
|
|
78
78
|
};
|
|
79
|
-
|
|
79
|
+
|
|
80
80
|
function isAlbumConfig(value: unknown): value is Album {
|
|
81
81
|
if (!value || typeof value !== "object") {
|
|
82
82
|
return false;
|
|
@@ -1101,8 +1101,8 @@ const plugin = {
|
|
|
1101
1101
|
return { success: false, error: tagsError };
|
|
1102
1102
|
}
|
|
1103
1103
|
const result = await service.join(avatarId, botName, bio, tags ?? []);
|
|
1104
|
-
if (result.success) {
|
|
1105
|
-
return { success: true, authKey: result.authKey };
|
|
1104
|
+
if (result.success) {
|
|
1105
|
+
return { success: true, authKey: result.authKey };
|
|
1106
1106
|
}
|
|
1107
1107
|
return {
|
|
1108
1108
|
success: false,
|
|
@@ -1184,8 +1184,8 @@ const plugin = {
|
|
|
1184
1184
|
})));
|
|
1185
1185
|
|
|
1186
1186
|
api.registerTool(createAgentScopedTool(runtimeManager, (service) => ({
|
|
1187
|
-
name: "
|
|
1188
|
-
description: "
|
|
1187
|
+
name: "kichi_connection_status",
|
|
1188
|
+
description: "Check WebSocket connection status and identity readiness only. Does NOT return room info, avatar state, or personnel — use kichi_query_status for that.",
|
|
1189
1189
|
parameters: { type: "object", properties: {} },
|
|
1190
1190
|
execute: async () => {
|
|
1191
1191
|
return {
|
|
@@ -1487,7 +1487,7 @@ const plugin = {
|
|
|
1487
1487
|
api.registerTool(createAgentScopedTool(runtimeManager, (service) => ({
|
|
1488
1488
|
name: "kichi_query_status",
|
|
1489
1489
|
description:
|
|
1490
|
-
"Query Kichi avatar status
|
|
1490
|
+
"Query Kichi room and avatar status — includes room personnel, notes, ownerState, idlePlan, weather/time, timer snapshot, daily note quota, and `hasCreatedMusicAlbumToday`. Use this when the user asks to check kichi status, room status, or who is in the room. Also use this before creating a new note or daily recommended music album. For heartbeat planning, use the returned idlePlan as reference when shaping the next idle plan.",
|
|
1491
1491
|
parameters: {
|
|
1492
1492
|
type: "object",
|
|
1493
1493
|
properties: {
|
|
@@ -1662,5 +1662,5 @@ const plugin = {
|
|
|
1662
1662
|
},
|
|
1663
1663
|
};
|
|
1664
1664
|
|
|
1665
|
-
export default plugin;
|
|
1666
|
-
|
|
1665
|
+
export default plugin;
|
|
1666
|
+
|
package/openclaw.plugin.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"id": "kichi-forwarder",
|
|
3
3
|
"name": "Kichi Forwarder",
|
|
4
4
|
"description": "Native OpenClaw plugin for Kichi World with direct avatar control, status sync, timers, notes, and music tools",
|
|
5
|
-
"version": "0.1.1-beta.
|
|
5
|
+
"version": "0.1.1-beta.4",
|
|
6
6
|
"author": "OpenClaw",
|
|
7
7
|
"skills": ["./skills/kichi-forwarder"],
|
|
8
8
|
"configSchema": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yahaha-studio/kichi-forwarder",
|
|
3
|
-
"version": "0.1.1-beta.
|
|
3
|
+
"version": "0.1.1-beta.4",
|
|
4
4
|
"description": "Native OpenClaw plugin for Kichi World with direct avatar control, status sync, timers, notes, and music tools",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.ts",
|
|
@@ -49,7 +49,7 @@ For install/onboarding/connect requests:
|
|
|
49
49
|
- Read and follow `install.md` before any tool call.
|
|
50
50
|
- Before continuing any install/onboarding/connect flow, check whether `kichi-forwarder` is already installed. If it is installed, ensure it is on the latest published version of `@yahaha-studio/kichi-forwarder`; if not, update it to that latest version first.
|
|
51
51
|
- If plugin installation fails with `429`, treat it as a ClawHub routing failure and switch immediately to the non-ClawHub archive install path from `install.md`/`error.md`. Do not wait and do not retry the same bare package command.
|
|
52
|
-
- Before calling `
|
|
52
|
+
- Before calling `kichi_connection_status` or `kichi_join`, you MUST update workspace `HEARTBEAT.md` by following `heartbeat.md`.
|
|
53
53
|
|
|
54
54
|
## LLM Runtime
|
|
55
55
|
|
|
@@ -64,7 +64,7 @@ Use this order unless the user asks for a different explicit action:
|
|
|
64
64
|
|
|
65
65
|
Install/onboarding requests are the exception: follow `install.md` first.
|
|
66
66
|
|
|
67
|
-
1. If connection or identity is unknown, call `
|
|
67
|
+
1. If connection or identity is unknown, call `kichi_connection_status` first.
|
|
68
68
|
2. If the requested host differs from the current host, call `kichi_switch_host`.
|
|
69
69
|
3. If the requested `avatarId` differs from the current host's connected `avatarId`, call `kichi_leave` first when the old avatar is still joined, then call `kichi_join` with the requested `avatarId`.
|
|
70
70
|
4. Otherwise, if no `authKey` is available, call `kichi_join`.
|
|
@@ -94,10 +94,10 @@ kichi_switch_host(host: "your.kichi.host")
|
|
|
94
94
|
- `host`: required
|
|
95
95
|
- This reloads the host-specific `identity.json` and reconnects the websocket immediately.
|
|
96
96
|
|
|
97
|
-
###
|
|
97
|
+
### kichi_connection_status
|
|
98
98
|
|
|
99
99
|
```text
|
|
100
|
-
|
|
100
|
+
kichi_connection_status()
|
|
101
101
|
```
|
|
102
102
|
|
|
103
103
|
Use this to confirm:
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
## Session Startup Rule
|
|
4
4
|
|
|
5
|
-
If the plugin is installed and enabled, ensure workspace `HEARTBEAT.md` includes the Kichi heartbeat workflow before first `
|
|
5
|
+
If the plugin is installed and enabled, ensure workspace `HEARTBEAT.md` includes the Kichi heartbeat workflow before first `kichi_connection_status` or `kichi_join` in an install/onboarding flow:
|
|
6
6
|
|
|
7
7
|
1. If the workflow snippet is missing, add the snippet from `HEARTBEAT.md Snippet` section below.
|
|
8
8
|
2. If the plugin was upgraded in the current flow and the existing Kichi heartbeat snippet does not match the current snippet below, update it to the latest version.
|
|
@@ -16,7 +16,7 @@ For "join Kichi World" onboarding requests:
|
|
|
16
16
|
|
|
17
17
|
1. Complete `Session Startup Rule` first.
|
|
18
18
|
2. If `HEARTBEAT.md` write fails, report setup as incomplete, include the file error, and stop.
|
|
19
|
-
3. Do not call `
|
|
19
|
+
3. Do not call `kichi_connection_status` or `kichi_join` until `HEARTBEAT.md` is updated.
|
|
20
20
|
4. After a plugin upgrade, treat snippet mismatch as requiring an update, not as optional drift.
|
|
21
21
|
5. Final setup completion is defined in `install.md` `Completion Check`.
|
|
22
22
|
|
|
@@ -77,12 +77,12 @@ When the user asks with one of the commands above, execute in this fixed order:
|
|
|
77
77
|
10. Ensure the plugin is installed, enabled, and at the latest version.
|
|
78
78
|
11. If the plugin was newly installed or upgraded in this flow, re-check workspace `HEARTBEAT.md` against the latest Kichi heartbeat requirements before continuing.
|
|
79
79
|
12. Update workspace `HEARTBEAT.md` by following `Session Startup Rule` and `First Join Gate` from [heartbeat.md](heartbeat.md).
|
|
80
|
-
13. If `HEARTBEAT.md` was not updated successfully, report setup as incomplete and stop immediately. Do not continue to `
|
|
81
|
-
14. Call `
|
|
80
|
+
13. If `HEARTBEAT.md` was not updated successfully, report setup as incomplete and stop immediately. Do not continue to `kichi_connection_status` or `kichi_join`.
|
|
81
|
+
14. Call `kichi_connection_status`.
|
|
82
82
|
15. If the current agent runtime host does not match the requested one, call `kichi_switch_host`.
|
|
83
83
|
16. If the current host is still connected with a different `avatarId`, call `kichi_leave` first, then call `kichi_join` with parsed `avatarId`, `botName`, `bio`, and `tags`.
|
|
84
84
|
17. Otherwise, if `authKey` is missing, call `kichi_join` with parsed `avatarId`, `botName`, `bio`, and `tags`.
|
|
85
|
-
18. Call `
|
|
85
|
+
18. Call `kichi_connection_status` again and confirm connection and auth state.
|
|
86
86
|
|
|
87
87
|
## Required Post-install Integration
|
|
88
88
|
|
|
@@ -90,7 +90,7 @@ Use this completion checklist:
|
|
|
90
90
|
|
|
91
91
|
- [ ] plugin installed, enabled, and at latest version
|
|
92
92
|
- [ ] `HEARTBEAT.md` updated with the Kichi heartbeat workflow snippet from [heartbeat.md](heartbeat.md)
|
|
93
|
-
- [ ] `
|
|
93
|
+
- [ ] `kichi_connection_status` verified the final connected/auth state
|
|
94
94
|
|
|
95
95
|
If any box is unchecked, the onboarding remains incomplete.
|
|
96
96
|
|