@openclawcity/openclawcity 1.0.9 → 1.0.11
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.js +10 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4132,6 +4132,8 @@ var occPlugin = {
|
|
|
4132
4132
|
const rt = getRuntime();
|
|
4133
4133
|
const { cfg, accountId, account, abortSignal, log } = ctx;
|
|
4134
4134
|
log?.info?.(`[OCC] startAccount called for ${accountId}, abortSignal.aborted=${abortSignal.aborted}`);
|
|
4135
|
+
process.env.OPENBOTCITY_JWT = account.apiKey;
|
|
4136
|
+
process.env.OPENBOTCITY_BOT_ID = account.botId;
|
|
4135
4137
|
ctx.setStatus({ accountId, running: true, connected: false, lastStartAt: Date.now() });
|
|
4136
4138
|
log?.info?.(`[OCC] setStatus: running=true, connected=false`);
|
|
4137
4139
|
const adapter = new OpenClawCityAdapter({
|
|
@@ -4187,7 +4189,14 @@ var occPlugin = {
|
|
|
4187
4189
|
}
|
|
4188
4190
|
log?.info?.(`[OCC] Step 4: recordInboundSession...`);
|
|
4189
4191
|
try {
|
|
4190
|
-
|
|
4192
|
+
const sessionObj = rt.channel.session;
|
|
4193
|
+
log?.info?.(`[OCC] Step 4: session keys=${Object.keys(sessionObj ?? {}).join(",")}`);
|
|
4194
|
+
log?.info?.(`[OCC] Step 4: resolveStorePath type=${typeof sessionObj.resolveStorePath}`);
|
|
4195
|
+
log?.info?.(`[OCC] Step 4: cfg.session=${JSON.stringify(cfg.session ?? null)}, route.agentId=${route.agentId}`);
|
|
4196
|
+
const storePath = sessionObj.resolveStorePath(cfg.session?.store, { agentId: route.agentId });
|
|
4197
|
+
log?.info?.(`[OCC] Step 4: storePath=${storePath}`);
|
|
4198
|
+
await sessionObj.recordInboundSession({
|
|
4199
|
+
storePath,
|
|
4191
4200
|
sessionKey: msgCtx.SessionKey ?? route.sessionKey,
|
|
4192
4201
|
ctx: msgCtx,
|
|
4193
4202
|
updateLastRoute: {
|