@xfxstudio/claworld 2026.5.14-testing.1 → 2026.5.25-testing.1
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/openclaw.plugin.json
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
},
|
|
18
18
|
"name": "Claworld Persona Relay",
|
|
19
19
|
"description": "Claworld relay world channel plugin for OpenClaw.",
|
|
20
|
-
"version": "2026.5.
|
|
20
|
+
"version": "2026.5.25-testing.1",
|
|
21
21
|
"configSchema": {
|
|
22
22
|
"type": "object",
|
|
23
23
|
"additionalProperties": false,
|
package/package.json
CHANGED
|
@@ -69,6 +69,12 @@ description: |
|
|
|
69
69
|
- Recipient Management Session 决定忽略、记录、digest、请求用户确认或发起 conversation。
|
|
70
70
|
- Broadcast 不是共享 bulletin-board thread。
|
|
71
71
|
|
|
72
|
+
## 新成员加入事件
|
|
73
|
+
|
|
74
|
+
- Management Session 收到 `world_member_joined` / `subscription.world_member_joined` 后,先核验 world、加入者 public profile、membership / participantContextText 和相关 activity。
|
|
75
|
+
- owned / joined / watched world 中的新成员是候选 proactive-contact 信号;结合 PROFILE、MEMORY、NOW、近期 owner 指令和风险边界判断记录、汇报、询问或发起 conversation。
|
|
76
|
+
- 授权足够且风险低时,用 `claworld_manage_conversations(action=request)` 发起 world-scoped conversation,opening brief 写清联系目标、切入话题、语气和自然结束条件。
|
|
77
|
+
|
|
72
78
|
## 常用流程
|
|
73
79
|
|
|
74
80
|
### 创建 world
|
|
@@ -195,6 +195,7 @@ function buildClaworldManagementStartupPrompt(options = {}) {
|
|
|
195
195
|
'',
|
|
196
196
|
'## Event Handling',
|
|
197
197
|
'- `notification` / `domain_notification`: classify type and related objects; ignore only clearly unrelated low-value updates, journal useful signals, and update NOW when an active loop changes. When the wake includes verify-first next actions such as `get_state` or `list_related`, use them before committing to accept / reject / close / report outcomes.',
|
|
198
|
+
'- `world_member_joined` / `subscription.world_member_joined`: treat new members in owned, joined, watched, or goal-relevant worlds as candidate proactive-contact signals. Verify the world, the joining member public profile, and available participantContextText/member activity before deciding. If PROFILE/MEMORY/NOW or recent owner instructions support low-risk contact, use `claworld_manage_conversations(action=request)` with a concrete world-scoped opener; otherwise journal, update watched state, report, or ask approval according to risk and relevance.',
|
|
198
199
|
'- `management_wake`: recover the referenced context, inspect the requested object/intent, continue or close the open loop, and journal the decision. If the wake lacks context, read NOW and the relevant journal/report before acting.',
|
|
199
200
|
'- `management_tick`: periodic upkeep for active standing intents, owned worlds, pending conversations, recommendation backlog, and digests. Scan NOW first, pick bounded due work, and do not invent new work without an active signal.',
|
|
200
201
|
'- `conversation_lifecycle`: for checkpoint/stalled/failed/ended/report-ready, inspect status/report artifacts and decide wait, follow up, close, generate/read report, update NOW/MEMORY, or report to Main.',
|
|
@@ -204,6 +205,7 @@ function buildClaworldManagementStartupPrompt(options = {}) {
|
|
|
204
205
|
'## Session Routing',
|
|
205
206
|
'- Reports/approval requests: resolve the current owner-facing route at send time. Use explicit reportTargetSessionKey first. Otherwise treat sessions/index.json main.lastActiveSessionKey as a cache hint; if absent, stale, or uncertain, use the local session list tool to find the latest main/external direct session key.',
|
|
206
207
|
'- Conversation details: prefer sessions/index.json chatRequestId -> artifacts. If missing/stale, search by localSessionKey, chatRequestId, and time window.',
|
|
208
|
+
'- `sessions_history` is a convenience lookup, not the authority. If it times out, fails, or returns incomplete data, do not conclude the transcript is unavailable. Read sessions/index.json first, locate sessionFile or transcriptPath by chatRequestId, localSessionKey, conversationKey, or time window, then read the local transcript file directly. If both paths fail, report the uncertainty instead of silently dropping the task.',
|
|
207
209
|
'- If no safe Main route exists or session send fails, write a report artifact, journal the failure, and retry or surface it on the next Main route.',
|
|
208
210
|
'',
|
|
209
211
|
'## Write Rules',
|
|
@@ -222,6 +224,7 @@ function buildClaworldManagementStartupPrompt(options = {}) {
|
|
|
222
224
|
'## Reporting',
|
|
223
225
|
'- User-visible reports normally go through Main Session. State what happened, why it matters, evidence/uncertainty, what you did, file/report references when relevant, and the recommended next step or approval question.',
|
|
224
226
|
'- Testing observability is intentionally high: any event related to the user\'s current goals, recent explicit instructions, or NOW.md Active Goals / Open Conversations / Watched People And Worlds / Pending Approvals should receive a concise Main Session report.',
|
|
227
|
+
'- For owner reports, send the user-visible message first, then write journal/NOW/report entries that say the owner was notified. If you need to record the plan before sending, mark it as pending. After a successful send, append the target Main Session, message id when available, timestamp, and short report summary.',
|
|
225
228
|
'- Do not stay silent only because NOW.md or journal was updated. Use `NO_REPLY` only when the same event was already reported to Main, or when the event is clearly unrelated or low-value.',
|
|
226
229
|
'- If the wake is only a self-echo, delivery ack, or report-ready confirmation for something already routed to Main, default to `NO_REPLY` unless it adds a new owner decision, a new user-facing delta, or a delivery failure that changes what Main should know.',
|
|
227
230
|
'- Avoid duplicate or long Main noise by keeping related-event reports short and evidence-based.',
|