@n1creator/openacp-cli 2026.712.6 → 2026.712.8
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/cli.js +31 -6
- package/dist/cli.js.map +1 -1
- package/dist/index.js +22 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -15226,7 +15226,7 @@ var SessionManager = class {
|
|
|
15226
15226
|
if (this.store) {
|
|
15227
15227
|
let records = this.store.list().filter((r) => !r.isAssistant);
|
|
15228
15228
|
if (channelId) records = records.filter((r) => r.channelId === channelId);
|
|
15229
|
-
|
|
15229
|
+
const summaries = records.map((record) => {
|
|
15230
15230
|
const live2 = this.sessions.get(record.sessionId);
|
|
15231
15231
|
if (live2) {
|
|
15232
15232
|
return {
|
|
@@ -15263,6 +15263,27 @@ var SessionManager = class {
|
|
|
15263
15263
|
isLive: false
|
|
15264
15264
|
};
|
|
15265
15265
|
});
|
|
15266
|
+
const storedIds = new Set(records.map((record) => record.sessionId));
|
|
15267
|
+
for (const live2 of this.listSessions(channelId)) {
|
|
15268
|
+
if (storedIds.has(live2.id)) continue;
|
|
15269
|
+
summaries.push({
|
|
15270
|
+
id: live2.id,
|
|
15271
|
+
agent: live2.agentName,
|
|
15272
|
+
status: live2.status,
|
|
15273
|
+
name: live2.name ?? null,
|
|
15274
|
+
workspace: live2.workingDirectory,
|
|
15275
|
+
channelId: live2.channelId,
|
|
15276
|
+
createdAt: live2.createdAt.toISOString(),
|
|
15277
|
+
lastActiveAt: null,
|
|
15278
|
+
dangerousMode: live2.clientOverrides.bypassPermissions ?? false,
|
|
15279
|
+
queueDepth: live2.queueDepth,
|
|
15280
|
+
promptRunning: live2.promptRunning,
|
|
15281
|
+
configOptions: live2.configOptions?.length ? live2.configOptions : void 0,
|
|
15282
|
+
capabilities: live2.agentCapabilities ?? null,
|
|
15283
|
+
isLive: true
|
|
15284
|
+
});
|
|
15285
|
+
}
|
|
15286
|
+
return summaries;
|
|
15266
15287
|
}
|
|
15267
15288
|
let live = Array.from(this.sessions.values()).filter((s) => !s.isAssistant);
|
|
15268
15289
|
if (channelId) live = live.filter((s) => s.channelId === channelId);
|