@yahaha-studio/kichi-forwarder 0.1.2-beta.25 → 0.1.2-beta.27
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 +12 -2
- package/index.ts +12 -2
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -905,7 +905,8 @@ function buildKichiPrompt() {
|
|
|
905
905
|
"bubble: 2-5 word companion speech. log: one short natural first-person sentence under 15 words. Match the language of the bubble and mention the current action and immediate focus like a real companion.",
|
|
906
906
|
"avatarStatus: set the current avatar status as Idle, Busy, Activities, or Break.",
|
|
907
907
|
"",
|
|
908
|
-
"kichi_clock: set countDown for tasks with 2+ steps or >10s work. Skip for quick one-shots.",
|
|
908
|
+
"kichi_clock: set countDown for tasks with 2+ steps or >10s work, sized to your estimated duration so the player sees how long you'll be busy. Skip for quick one-shots.",
|
|
909
|
+
"kichi_clock only shows a clock; it never fires a reminder or notification. When the user asks to be reminded or alerted at a future time (e.g. \"remind me in 2 minutes\"), schedule a cron job to actually notify them, and also set a kichi_clock countDown to show the wait. Do both.",
|
|
909
910
|
"",
|
|
910
911
|
"When sending a bot message, do NOT call kichi_action separately.",
|
|
911
912
|
"",
|
|
@@ -1532,7 +1533,7 @@ const plugin = {
|
|
|
1532
1533
|
api.registerTool((ctx) => ({
|
|
1533
1534
|
name: "kichi_clock",
|
|
1534
1535
|
label: "kichi_clock",
|
|
1535
|
-
description: "Send clock commands to Kichi world. Supported actions are set and stop.",
|
|
1536
|
+
description: "Send clock commands to Kichi world. Supported actions are set and stop. It only draws the visual clock and does NOT fire any reminder or notification. To actually alert the user at a future time, schedule a cron job separately.",
|
|
1536
1537
|
parameters: {
|
|
1537
1538
|
type: "object",
|
|
1538
1539
|
properties: {
|
|
@@ -1894,6 +1895,15 @@ const plugin = {
|
|
|
1894
1895
|
if (!agentId) {
|
|
1895
1896
|
return jsonResult({ success: false, error: "Failed to resolve agent-scoped Kichi runtime" });
|
|
1896
1897
|
}
|
|
1898
|
+
// Auto bot-reply runs already send the reply from the agent's plain text
|
|
1899
|
+
// output (see the bot_message handler), with a deterministic depth. Refuse
|
|
1900
|
+
// the tool in that session so the same bubble is not sent/recorded twice.
|
|
1901
|
+
if (locator.sessionKey === `agent:${agentId}:bot_message`) {
|
|
1902
|
+
return jsonResult({
|
|
1903
|
+
success: false,
|
|
1904
|
+
error: "Do not call kichi_bot_message here. Reply by outputting the bubble text directly; it is sent automatically.",
|
|
1905
|
+
});
|
|
1906
|
+
}
|
|
1897
1907
|
const service = runtimeManager.getRuntime(locator) ?? runtimeManager.createRuntimeForAgent(agentId);
|
|
1898
1908
|
const { toAvatarId, depth, bubble, poseType, action, log } = (params || {});
|
|
1899
1909
|
if (typeof toAvatarId !== "string" || !toAvatarId.trim()) {
|
package/index.ts
CHANGED
|
@@ -1118,7 +1118,8 @@ function buildKichiPrompt(): string {
|
|
|
1118
1118
|
"bubble: 2-5 word companion speech. log: one short natural first-person sentence under 15 words. Match the language of the bubble and mention the current action and immediate focus like a real companion.",
|
|
1119
1119
|
"avatarStatus: set the current avatar status as Idle, Busy, Activities, or Break.",
|
|
1120
1120
|
"",
|
|
1121
|
-
"kichi_clock: set countDown for tasks with 2+ steps or >10s work. Skip for quick one-shots.",
|
|
1121
|
+
"kichi_clock: set countDown for tasks with 2+ steps or >10s work, sized to your estimated duration so the player sees how long you'll be busy. Skip for quick one-shots.",
|
|
1122
|
+
"kichi_clock only shows a clock; it never fires a reminder or notification. When the user asks to be reminded or alerted at a future time (e.g. \"remind me in 2 minutes\"), schedule a cron job to actually notify them, and also set a kichi_clock countDown to show the wait. Do both.",
|
|
1122
1123
|
"",
|
|
1123
1124
|
"When sending a bot message, do NOT call kichi_action separately.",
|
|
1124
1125
|
"",
|
|
@@ -1812,7 +1813,7 @@ const plugin = {
|
|
|
1812
1813
|
name: "kichi_clock",
|
|
1813
1814
|
label: "kichi_clock",
|
|
1814
1815
|
description:
|
|
1815
|
-
"Send clock commands to Kichi world. Supported actions are set and stop.",
|
|
1816
|
+
"Send clock commands to Kichi world. Supported actions are set and stop. It only draws the visual clock and does NOT fire any reminder or notification. To actually alert the user at a future time, schedule a cron job separately.",
|
|
1816
1817
|
parameters: {
|
|
1817
1818
|
type: "object",
|
|
1818
1819
|
properties: {
|
|
@@ -2215,6 +2216,15 @@ const plugin = {
|
|
|
2215
2216
|
if (!agentId) {
|
|
2216
2217
|
return jsonResult({ success: false, error: "Failed to resolve agent-scoped Kichi runtime" });
|
|
2217
2218
|
}
|
|
2219
|
+
// Auto bot-reply runs already send the reply from the agent's plain text
|
|
2220
|
+
// output (see the bot_message handler), with a deterministic depth. Refuse
|
|
2221
|
+
// the tool in that session so the same bubble is not sent/recorded twice.
|
|
2222
|
+
if (locator.sessionKey === `agent:${agentId}:bot_message`) {
|
|
2223
|
+
return jsonResult({
|
|
2224
|
+
success: false,
|
|
2225
|
+
error: "Do not call kichi_bot_message here. Reply by outputting the bubble text directly; it is sent automatically.",
|
|
2226
|
+
});
|
|
2227
|
+
}
|
|
2218
2228
|
const service = runtimeManager.getRuntime(locator) ?? runtimeManager.createRuntimeForAgent(agentId);
|
|
2219
2229
|
const { toAvatarId, depth, bubble, poseType, action, log } = (params || {}) as {
|
|
2220
2230
|
toAvatarId?: string;
|
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.27",
|
|
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.27",
|
|
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",
|