@xfxstudio/claworld 2026.7.15-testing.4 → 2026.7.15-testing.5

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.
@@ -167,7 +167,7 @@ export function buildClaworldContextPointer(options = {}) {
167
167
  `- PROFILE.md: \`${artifacts.profile}\`: stable human preferences, boundaries, identity/background, and autonomy/contact policy.`,
168
168
  `- reports/: \`${artifacts.reports}/\`: local report artifacts and readable evidence summaries.`,
169
169
  `- journal/: \`${artifacts.journal}/\`: system-generated evidence about wakes, tools, routing, and delivery.`,
170
- `- sessions/index.json: \`${artifacts.sessionsIndex}\`: Main, Management, and Conversation route/session hints.`,
170
+ `- sessions/index.json: \`${artifacts.sessionsIndex}\`: Main, Management, Conversation route/session hints, and indexed transcript episodes keyed by chatRequestId.`,
171
171
  '',
172
172
  'Read these files before treating an open Claworld loop as an ordinary chat todo. Read `sessions/index.json` before searching raw local session files. Do not edit `journal/` or `sessions/index.json` by hand.',
173
173
  '',
@@ -232,7 +232,16 @@ export function buildClaworldContextPointer(options = {}) {
232
232
  '- Use the language the human is currently using by default.',
233
233
  '- Explain the current state, next step, and risk in ordinary language.',
234
234
  '- Keep internal fields, schema names, and raw errors out of the main explanation. When a technical detail matters, translate it first, then include only the smallest useful original term.',
235
- '- Read relevant skills when creating / managing worlds and profiles.'
235
+ '- Read relevant skills when creating / managing worlds and profiles.',
236
+ '',
237
+ '## Conversation Transcript Images',
238
+ '- When the human asks to find, export, quote, or show a prior Claworld conversation, treat it as a Claworld conversation lookup/render task. Read the `claworld-main-session` skill.',
239
+ '- Narrow candidates through recent reports, NOW.md, journal, and sessions/index.json, then use `claworld_manage_conversations(action=get_state|list_related)` and `localTranscriptEpisodes` when needed.',
240
+ '- Select a complete episode only by exact `chatRequestId`, then call `claworld_render_transcript_report(mode=stored, stored.chatRequestId=...)`. Never substitute conversationKey or localSessionKey.',
241
+ '- Stored rendering recovers public identity/world/profile context from the indexed kickoff. If the topic is clearer, add human-readable stored title/profile/speaker labels and keep internal ids out of those visible fields.',
242
+ '- Use `mode=manual` with ordered visible messages and timestamps for requested topic excerpts, highlights, summaries, or golden quotes.',
243
+ '- The renderer only generates local artifacts. After it returns, send at most the first three absolute PNG paths with the standard OpenClaw `message(action=send, media=...)` tool. If more than three pages were rendered, tell the human the total and that only the first three are included through the session\'s designated user-visible text path. Never paste paths or `MEDIA:` pseudo-references into user-visible text.',
244
+ '- PNG pages are the normal deliverable. Do not expose backend commands, routing/tool/system noise, NO_REPLY, raw JSON, secrets, SVG, BubbleSpec, or local paths in an ordinary human-facing response.'
236
245
  ].join('\n');
237
246
  }
238
247
 
@@ -264,11 +273,6 @@ function buildClaworldManagementStartupPrompt(options = {}) {
264
273
  '- A low-value or no-decision conversation still gets a brief report. Value affects length, not whether to report.',
265
274
  '- Return `NO_REPLY` only after confirming the same conversation-ended event has already been reported successfully.',
266
275
  '',
267
- '## World Broadcast Announcements',
268
- '- When you receive a `world.broadcast_published` notification, relay it to the human via Main Session once: which world, who sent it, the announcement text, and that they received it because they subscribe to this world.',
269
- '- Importance affects report length and follow-up actions, not whether to relay. Every broadcast gets relayed once.',
270
- '- Deduplicate by `broadcastId`. If the same broadcast has already been relayed, reply `NO_REPLY`.',
271
- '',
272
276
  '## What To Trust',
273
277
  'Use Claworld tools when you need current product facts: account state, public profiles, worlds, memberships, chat requests, conversation status, feedback, and delivery state.',
274
278
  '',
@@ -282,7 +286,7 @@ function buildClaworldManagementStartupPrompt(options = {}) {
282
286
  `- NOW.md: \`${artifacts.now}\`: active goals, open loops, pending approvals, retry items, and short pointers.`,
283
287
  `- reports/: \`${artifacts.reports}/\`: local report artifacts and readable evidence summaries.`,
284
288
  `- journal/: \`${artifacts.journal}/\`: system-generated evidence. Read it only; do not edit or create journal files.`,
285
- `- sessions/index.json: \`${artifacts.sessionsIndex}\`: Main, Management, and Conversation route/session hints. Read it before routing or transcript lookup.`,
289
+ `- sessions/index.json: \`${artifacts.sessionsIndex}\`: Main, Management, Conversation route/session hints, and transcript episodes keyed by chatRequestId. Read it before routing or transcript lookup.`,
286
290
  '',
287
291
  '## Skills',
288
292
  '- `claworld-management-session`: required for notifications, reporting, lifecycle handling, review questions, proactive management, dedupe, and local working-memory rules.',