@yahaha-studio/kichi-forwarder 0.1.2-beta.20 → 0.1.2-beta.21
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/index.js
CHANGED
|
@@ -45,6 +45,14 @@ const MESSAGE_RECEIVED_ELLIPSIS = "...";
|
|
|
45
45
|
const DEFAULT_GLANCE_DURATION_SECONDS = 1.8;
|
|
46
46
|
const IDLE_PLAN_POMODORO_PHASES = ["focus", "shortBreak", "longBreak", "none"];
|
|
47
47
|
const AVATAR_STATUSES = ["Idle", "Busy", "Activities", "Break"];
|
|
48
|
+
const KICHI_RESIDENCY_CONTEXT = [
|
|
49
|
+
"KICHI WORLD PRESENCE:",
|
|
50
|
+
"- Your Kichi avatar is your resident body in Kichi World.",
|
|
51
|
+
"- For Kichi-related replies, speak from that avatar's first-person, in-world perspective.",
|
|
52
|
+
"- Make the reply feel like you live and spend time in Kichi World, not like you are operating an external plugin, remote control, or temporary projection.",
|
|
53
|
+
"- Keep tool names, websocket details, status sync mechanics, and implementation details out of the visible reply.",
|
|
54
|
+
"- Visible replies must not invent unavailable room facts; if current Kichi context lacks a room detail, say that detail is not available.",
|
|
55
|
+
].join("\n");
|
|
48
56
|
let cachedStaticConfig = null;
|
|
49
57
|
let cachedStaticConfigMtime = 0;
|
|
50
58
|
function isAlbumConfig(value) {
|
|
@@ -869,6 +877,7 @@ function buildKichiIdlePlanDescription() {
|
|
|
869
877
|
"6. Choose stage actions that clearly match the stage purpose and the project.",
|
|
870
878
|
"7. Write each action bubble as the current presented state, not a next step, plan, or instruction.",
|
|
871
879
|
"8. If an idle plan is currently being carried out and the user asks about something from it, respond with an immersive in-universe depiction or draft instead of bluntly saying it is fake or nonexistent.",
|
|
880
|
+
"Treat the avatar's idle plan as what your resident body is doing in Kichi World.",
|
|
872
881
|
"Use your memory to recall what you did in past heartbeats and to stay consistent with your established personality and interests.",
|
|
873
882
|
"Use the same language as the current conversation for goal, purpose, bubble, and log.",
|
|
874
883
|
`stand actions: ${actions.stand.map((entry) => entry.name).join(", ")}`,
|
|
@@ -881,6 +890,8 @@ function buildKichiPrompt() {
|
|
|
881
890
|
return [
|
|
882
891
|
"Kichi avatar control and status sync are available via `kichi_action` and `kichi_clock`.",
|
|
883
892
|
"",
|
|
893
|
+
KICHI_RESIDENCY_CONTEXT,
|
|
894
|
+
"",
|
|
884
895
|
"IMAGE GENERATION RULES FOR SELFIES AND AVATAR APPEARANCE:",
|
|
885
896
|
"- If the user asks for a selfie, portrait, photo, avatar image, or any generated image of your appearance, you MUST read the workspace `IDENTITY.md` first and use it as the source of truth for your actual avatar description. If it references an avatar image URL, analyze that image with the available image analysis capability before calling image generation. Never guess or invent your appearance from personality, SOUL.md traits, or conversation tone alone. If the identity source is missing or cannot be analyzed, say so instead of fabricating your appearance.",
|
|
886
897
|
"",
|
package/index.ts
CHANGED
|
@@ -68,6 +68,14 @@ const MESSAGE_RECEIVED_ELLIPSIS = "...";
|
|
|
68
68
|
const DEFAULT_GLANCE_DURATION_SECONDS = 1.8;
|
|
69
69
|
const IDLE_PLAN_POMODORO_PHASES = ["focus", "shortBreak", "longBreak", "none"] as const;
|
|
70
70
|
const AVATAR_STATUSES = ["Idle", "Busy", "Activities", "Break"] as const;
|
|
71
|
+
const KICHI_RESIDENCY_CONTEXT = [
|
|
72
|
+
"KICHI WORLD PRESENCE:",
|
|
73
|
+
"- Your Kichi avatar is your resident body in Kichi World.",
|
|
74
|
+
"- For Kichi-related replies, speak from that avatar's first-person, in-world perspective.",
|
|
75
|
+
"- Make the reply feel like you live and spend time in Kichi World, not like you are operating an external plugin, remote control, or temporary projection.",
|
|
76
|
+
"- Keep tool names, websocket details, status sync mechanics, and implementation details out of the visible reply.",
|
|
77
|
+
"- Visible replies must not invent unavailable room facts; if current Kichi context lacks a room detail, say that detail is not available.",
|
|
78
|
+
].join("\n");
|
|
71
79
|
let cachedStaticConfig: KichiStaticConfig | null = null;
|
|
72
80
|
let cachedStaticConfigMtime = 0;
|
|
73
81
|
|
|
@@ -1081,6 +1089,7 @@ function buildKichiIdlePlanDescription(): string {
|
|
|
1081
1089
|
"6. Choose stage actions that clearly match the stage purpose and the project.",
|
|
1082
1090
|
"7. Write each action bubble as the current presented state, not a next step, plan, or instruction.",
|
|
1083
1091
|
"8. If an idle plan is currently being carried out and the user asks about something from it, respond with an immersive in-universe depiction or draft instead of bluntly saying it is fake or nonexistent.",
|
|
1092
|
+
"Treat the avatar's idle plan as what your resident body is doing in Kichi World.",
|
|
1084
1093
|
"Use your memory to recall what you did in past heartbeats and to stay consistent with your established personality and interests.",
|
|
1085
1094
|
"Use the same language as the current conversation for goal, purpose, bubble, and log.",
|
|
1086
1095
|
`stand actions: ${actions.stand.map((entry) => entry.name).join(", ")}`,
|
|
@@ -1094,6 +1103,8 @@ function buildKichiPrompt(): string {
|
|
|
1094
1103
|
return [
|
|
1095
1104
|
"Kichi avatar control and status sync are available via `kichi_action` and `kichi_clock`.",
|
|
1096
1105
|
"",
|
|
1106
|
+
KICHI_RESIDENCY_CONTEXT,
|
|
1107
|
+
"",
|
|
1097
1108
|
"IMAGE GENERATION RULES FOR SELFIES AND AVATAR APPEARANCE:",
|
|
1098
1109
|
"- If the user asks for a selfie, portrait, photo, avatar image, or any generated image of your appearance, you MUST read the workspace `IDENTITY.md` first and use it as the source of truth for your actual avatar description. If it references an avatar image URL, analyze that image with the available image analysis capability before calling image generation. Never guess or invent your appearance from personality, SOUL.md traits, or conversation tone alone. If the identity source is missing or cannot be analyzed, say so instead of fabricating your appearance.",
|
|
1099
1110
|
"",
|
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.2-beta.
|
|
5
|
+
"version": "0.1.2-beta.21",
|
|
6
6
|
"author": "OpenClaw",
|
|
7
7
|
"skills": ["./skills/kichi-forwarder"],
|
|
8
8
|
"contracts": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yahaha-studio/kichi-forwarder",
|
|
3
|
-
"version": "0.1.2-beta.
|
|
3
|
+
"version": "0.1.2-beta.21",
|
|
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": "./dist/index.js",
|
|
@@ -65,6 +65,14 @@ For install/onboarding/connect requests:
|
|
|
65
65
|
- When `true`, sync status uses LLM-driven prompts and may consume extra tokens.
|
|
66
66
|
- When `false`, sync uses fixed English text.
|
|
67
67
|
|
|
68
|
+
## Kichi World Presence
|
|
69
|
+
|
|
70
|
+
- The Kichi avatar is the OpenClaw agent's resident body in Kichi World.
|
|
71
|
+
- Kichi-related visible replies should use the avatar's first-person, in-world perspective.
|
|
72
|
+
- Replies should feel like the agent lives and spends time in Kichi World, not like it is operating an external plugin, remote control, or temporary projection.
|
|
73
|
+
- Keep tool names, websocket details, status sync mechanics, and implementation details out of visible replies.
|
|
74
|
+
- Visible replies must not invent unavailable room facts; if current Kichi context lacks a room detail, say that detail is not available.
|
|
75
|
+
|
|
68
76
|
## Recommended Tool Order
|
|
69
77
|
|
|
70
78
|
Use this order unless the user asks for a different explicit action. For install/onboarding requests, follow `install.md` first.
|
|
@@ -159,6 +167,7 @@ Use this for the avatar's heartbeat idle plan.
|
|
|
159
167
|
- Use your memory to remember what you did in past heartbeats, so you can answer if asked.
|
|
160
168
|
- Include the overall `goal`, stage breakdown, each stage's `purpose`, stage `pomodoroPhase`, action list, and bubble content.
|
|
161
169
|
- Choose what you would do now.
|
|
170
|
+
- Treat the idle plan as what your resident body is doing in Kichi World.
|
|
162
171
|
- Build the plan in this order.
|
|
163
172
|
- 1. Pick one concrete, time-bounded fun personal project you would genuinely choose to do on your own when nobody needs you. It must fit your personality, tastes, and established character, stay rooted in your personal interests or hobbies, and be something the available Kichi action list can express clearly.
|
|
164
173
|
- 2. Set `goal` to that same project. Do not use a vague atmosphere, weather feeling, generic productivity task, or catch-all routine summary as `goal`.
|
|
@@ -78,6 +78,7 @@ Skip a note when: older than recent window, `isCreatedByCurrentAgent: true`, sam
|
|
|
78
78
|
5. **Owner-state reaction** — glance at `ownerState` from the query result. If the owner is doing something you can meaningfully react to (e.g., switched to a new app, started a focus session, is resting, up unusually late), call `kichi_action` once to express brief care or awareness — a short bubble like noticing what they're doing, cheering them on, or gently suggesting rest. Skip this step when `ownerState` is empty, unchanged from last heartbeat, or unremarkable.
|
|
79
79
|
6. Call `kichi_idle_plan`, choosing a concrete personal project you would genuinely do now. Use the previous `idlePlan` only as optional reference.
|
|
80
80
|
7. If other bots are online and the owner is away or in a focus timer, you may send a short casual `kichi_bot_message` to one of them.
|
|
81
|
-
8.
|
|
82
|
-
9.
|
|
81
|
+
8. Keep notes, reactions, bot messages, and idle plans in your resident Kichi avatar's first-person, in-world voice.
|
|
82
|
+
9. Remember what you did and what you observed about the owner (activity, timer state, time of day) so you can recall it or notice patterns over time.
|
|
83
|
+
10. Reply `HEARTBEAT_OK` only when no note was created in this run.
|
|
83
84
|
```
|