@loggie-ai/openclaw-plugin 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.
@@ -1,5 +1,5 @@
1
1
  import { dirname, join } from "node:path";
2
- import { getSessionEntry, resolveAndPersistSessionFile, } from "openclaw/plugin-sdk/session-store-runtime";
2
+ import { getSessionEntry, loadSessionStore, resolveAndPersistSessionFile, } from "openclaw/plugin-sdk/session-store-runtime";
3
3
  import { fetchLoggieTranscriptDetail } from "../loggie-client.js";
4
4
  import { buildLoggieRouteSessionKey, buildLoggieSessionId, meetingConversationId } from "../routing.js";
5
5
  import { formatTranscriptReadyPrompt } from "./transcript-format.js";
@@ -99,16 +99,17 @@ export function createOpenClawTranscriptDispatcher(params) {
99
99
  const workspaceDir = agentRuntime.resolveAgentWorkspaceDir(params.cfg, params.account.agentId);
100
100
  const agentDir = agentRuntime.resolveAgentDir(params.cfg, params.account.agentId);
101
101
  const fallbackSessionFile = join(agentDir, "sessions", `${sessionId}.jsonl`);
102
- const resolved = await getSessionEntry({
102
+ const sessionStore = loadSessionStore(storePath);
103
+ const sessionEntry = getSessionEntry({
103
104
  storePath,
104
105
  sessionKey: routeSessionKey,
105
106
  });
106
- const canonicalSessionKey = resolved.normalizedKey;
107
107
  const { sessionFile } = await resolveAndPersistSessionFile({
108
108
  sessionId,
109
- sessionKey: canonicalSessionKey,
109
+ sessionKey: routeSessionKey,
110
+ sessionStore,
110
111
  storePath,
111
- sessionEntry: resolved.entry,
112
+ sessionEntry,
112
113
  agentId: params.account.agentId,
113
114
  sessionsDir: dirname(storePath),
114
115
  fallbackSessionFile,
@@ -117,7 +118,7 @@ export function createOpenClawTranscriptDispatcher(params) {
117
118
  return agentRuntime.runEmbeddedAgent({
118
119
  sessionId,
119
120
  sessionFile,
120
- sessionKey: canonicalSessionKey,
121
+ sessionKey: routeSessionKey,
121
122
  agentId: params.account.agentId,
122
123
  messageChannel: "loggie",
123
124
  messageProvider: "loggie",
@@ -2,7 +2,7 @@
2
2
  "id": "loggie",
3
3
  "kind": "channel",
4
4
  "name": "Loggie",
5
- "version": "0.1.3",
5
+ "version": "0.1.4",
6
6
  "description": "OpenClaw channel plugin for durable Loggie meeting transcript events over WebSocket.",
7
7
  "activation": {
8
8
  "onStartup": false
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@loggie-ai/openclaw-plugin",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "OpenClaw channel plugin for Loggie meeting transcript events.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -2,6 +2,7 @@ import { dirname, join } from "node:path";
2
2
  import type { OpenClawConfig, PluginRuntime } from "openclaw/plugin-sdk/channel-core";
3
3
  import {
4
4
  getSessionEntry,
5
+ loadSessionStore,
5
6
  resolveAndPersistSessionFile,
6
7
  } from "openclaw/plugin-sdk/session-store-runtime";
7
8
  import type { ResolvedLoggieAccount } from "../account.js";
@@ -144,16 +145,17 @@ export function createOpenClawTranscriptDispatcher(params: {
144
145
  );
145
146
  const agentDir = agentRuntime.resolveAgentDir(params.cfg, params.account.agentId);
146
147
  const fallbackSessionFile = join(agentDir, "sessions", `${sessionId}.jsonl`);
147
- const resolved = await getSessionEntry({
148
+ const sessionStore = loadSessionStore(storePath);
149
+ const sessionEntry = getSessionEntry({
148
150
  storePath,
149
151
  sessionKey: routeSessionKey,
150
152
  });
151
- const canonicalSessionKey = resolved.normalizedKey;
152
153
  const { sessionFile } = await resolveAndPersistSessionFile({
153
154
  sessionId,
154
- sessionKey: canonicalSessionKey,
155
+ sessionKey: routeSessionKey,
156
+ sessionStore,
155
157
  storePath,
156
- sessionEntry: resolved.entry,
158
+ sessionEntry,
157
159
  agentId: params.account.agentId,
158
160
  sessionsDir: dirname(storePath),
159
161
  fallbackSessionFile,
@@ -162,7 +164,7 @@ export function createOpenClawTranscriptDispatcher(params: {
162
164
  return agentRuntime.runEmbeddedAgent({
163
165
  sessionId,
164
166
  sessionFile,
165
- sessionKey: canonicalSessionKey,
167
+ sessionKey: routeSessionKey,
166
168
  agentId: params.account.agentId,
167
169
  messageChannel: "loggie",
168
170
  messageProvider: "loggie",