@coclaw/openclaw-coclaw 0.1.3 → 0.1.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coclaw/openclaw-coclaw",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "description": "OpenClaw CoClaw channel plugin for remote chat",
@@ -264,7 +264,9 @@ export function createSessionManager(options = {}) {
264
264
  const limit = clamp(params.limit, 1, 500, 100);
265
265
  const cursor = clamp(params.cursor, 0, Number.MAX_SAFE_INTEGER, 0);
266
266
  const file = resolveTranscriptFile(agentId, sessionId);
267
- if (!file) throw new Error(`session transcript not found: ${sessionId}`);
267
+ if (!file) {
268
+ return { agentId, sessionId, total: 0, cursor: String(cursor), nextCursor: null, messages: [] };
269
+ }
268
270
 
269
271
  const all = [];
270
272
  for (const line of fs.readFileSync(file, 'utf8').split(/\r?\n/).filter(Boolean)) {