@n1creator/openacp-cli 2026.712.6 → 2026.712.7
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 +25 -5
- 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/cli.js
CHANGED
|
@@ -10837,8 +10837,7 @@ async function systemRoutes(app, deps) {
|
|
|
10837
10837
|
app.get("/health/details", {
|
|
10838
10838
|
preHandler: [...authPreHandler ? [authPreHandler] : [], requireScopes("system:health")]
|
|
10839
10839
|
}, async () => {
|
|
10840
|
-
const
|
|
10841
|
-
const allRecords = deps.core.sessionManager.listRecords();
|
|
10840
|
+
const sessions = deps.core.sessionManager.listAllSessions();
|
|
10842
10841
|
const mem = process.memoryUsage();
|
|
10843
10842
|
const tunnel = deps.core.tunnelService;
|
|
10844
10843
|
return {
|
|
@@ -10851,10 +10850,10 @@ async function systemRoutes(app, deps) {
|
|
|
10851
10850
|
heapTotal: mem.heapTotal
|
|
10852
10851
|
},
|
|
10853
10852
|
sessions: {
|
|
10854
|
-
active:
|
|
10853
|
+
active: sessions.filter(
|
|
10855
10854
|
(s) => s.status === "active" || s.status === "initializing"
|
|
10856
10855
|
).length,
|
|
10857
|
-
total:
|
|
10856
|
+
total: sessions.length
|
|
10858
10857
|
},
|
|
10859
10858
|
adapters: Array.from(deps.core.adapters.keys()),
|
|
10860
10859
|
tunnel: tunnel ? { enabled: true, url: tunnel.getPublicUrl() } : { enabled: false }
|
|
@@ -24246,7 +24245,7 @@ var init_session_manager = __esm({
|
|
|
24246
24245
|
if (this.store) {
|
|
24247
24246
|
let records = this.store.list().filter((r) => !r.isAssistant);
|
|
24248
24247
|
if (channelId) records = records.filter((r) => r.channelId === channelId);
|
|
24249
|
-
|
|
24248
|
+
const summaries = records.map((record) => {
|
|
24250
24249
|
const live2 = this.sessions.get(record.sessionId);
|
|
24251
24250
|
if (live2) {
|
|
24252
24251
|
return {
|
|
@@ -24283,6 +24282,27 @@ var init_session_manager = __esm({
|
|
|
24283
24282
|
isLive: false
|
|
24284
24283
|
};
|
|
24285
24284
|
});
|
|
24285
|
+
const storedIds = new Set(records.map((record) => record.sessionId));
|
|
24286
|
+
for (const live2 of this.listSessions(channelId)) {
|
|
24287
|
+
if (storedIds.has(live2.id)) continue;
|
|
24288
|
+
summaries.push({
|
|
24289
|
+
id: live2.id,
|
|
24290
|
+
agent: live2.agentName,
|
|
24291
|
+
status: live2.status,
|
|
24292
|
+
name: live2.name ?? null,
|
|
24293
|
+
workspace: live2.workingDirectory,
|
|
24294
|
+
channelId: live2.channelId,
|
|
24295
|
+
createdAt: live2.createdAt.toISOString(),
|
|
24296
|
+
lastActiveAt: null,
|
|
24297
|
+
dangerousMode: live2.clientOverrides.bypassPermissions ?? false,
|
|
24298
|
+
queueDepth: live2.queueDepth,
|
|
24299
|
+
promptRunning: live2.promptRunning,
|
|
24300
|
+
configOptions: live2.configOptions?.length ? live2.configOptions : void 0,
|
|
24301
|
+
capabilities: live2.agentCapabilities ?? null,
|
|
24302
|
+
isLive: true
|
|
24303
|
+
});
|
|
24304
|
+
}
|
|
24305
|
+
return summaries;
|
|
24286
24306
|
}
|
|
24287
24307
|
let live = Array.from(this.sessions.values()).filter((s) => !s.isAssistant);
|
|
24288
24308
|
if (channelId) live = live.filter((s) => s.channelId === channelId);
|