@alfe.ai/openclaw-chat 0.5.1 → 0.6.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/dist/index.d.cts CHANGED
@@ -11,6 +11,10 @@ import { _ as AlfeResolvedAccount, g as AlfePluginConfig, h as AlfeChannelConfig
11
11
  * Each session file contains metadata and the full message history.
12
12
  * Sessions are written on every message to ensure durability.
13
13
  * Old sessions are cleaned up automatically (30-day TTL, 1000 max).
14
+ *
15
+ * NOTE: the storage path and SessionData shape are a read contract —
16
+ * packages/openclaw-memory-cloud/src/session-backfill.ts reads these files
17
+ * directly (the memory plugin can't depend on this package). Keep in sync.
14
18
  */
15
19
  interface ChatMessage {
16
20
  role: 'user' | 'assistant';
@@ -57,8 +61,24 @@ interface SessionData {
57
61
  createdAt: string;
58
62
  updatedAt: string;
59
63
  messages: ChatMessage[];
60
- /** Absent on session files written before activity persistence shipped. */
64
+ /**
65
+ * Fallback activity records (see appendActivity). The PRIMARY history
66
+ * source is OpenClaw's own session transcript (transcript-activity.ts) —
67
+ * these records serve conversations whose transcript is missing
68
+ * (deleted / rotated / compacted). Absent on pre-persistence files.
69
+ */
61
70
  activity?: ChatActivityRecord[];
71
+ /**
72
+ * OpenClaw route(s) this conversation dispatched through, captured per
73
+ * turn — the exact transcript lookup keys for transcript-backed history.
74
+ * Multiple entries occur for group conversations (per-peer dm scope
75
+ * yields one OpenClaw session per sender). Absent on old files (the
76
+ * transcript index `:conv:` scan covers those retroactively).
77
+ */
78
+ routes?: {
79
+ sessionKey: string;
80
+ storePath: string;
81
+ }[];
62
82
  }
63
83
  interface SessionSummary {
64
84
  sessionId: string;
package/dist/index.d.ts CHANGED
@@ -11,6 +11,10 @@ import { _ as AlfeResolvedAccount, g as AlfePluginConfig, h as AlfeChannelConfig
11
11
  * Each session file contains metadata and the full message history.
12
12
  * Sessions are written on every message to ensure durability.
13
13
  * Old sessions are cleaned up automatically (30-day TTL, 1000 max).
14
+ *
15
+ * NOTE: the storage path and SessionData shape are a read contract —
16
+ * packages/openclaw-memory-cloud/src/session-backfill.ts reads these files
17
+ * directly (the memory plugin can't depend on this package). Keep in sync.
14
18
  */
15
19
  interface ChatMessage {
16
20
  role: 'user' | 'assistant';
@@ -57,8 +61,24 @@ interface SessionData {
57
61
  createdAt: string;
58
62
  updatedAt: string;
59
63
  messages: ChatMessage[];
60
- /** Absent on session files written before activity persistence shipped. */
64
+ /**
65
+ * Fallback activity records (see appendActivity). The PRIMARY history
66
+ * source is OpenClaw's own session transcript (transcript-activity.ts) —
67
+ * these records serve conversations whose transcript is missing
68
+ * (deleted / rotated / compacted). Absent on pre-persistence files.
69
+ */
61
70
  activity?: ChatActivityRecord[];
71
+ /**
72
+ * OpenClaw route(s) this conversation dispatched through, captured per
73
+ * turn — the exact transcript lookup keys for transcript-backed history.
74
+ * Multiple entries occur for group conversations (per-peer dm scope
75
+ * yields one OpenClaw session per sender). Absent on old files (the
76
+ * transcript index `:conv:` scan covers those retroactively).
77
+ */
78
+ routes?: {
79
+ sessionKey: string;
80
+ storePath: string;
81
+ }[];
62
82
  }
63
83
  interface SessionSummary {
64
84
  sessionId: string;