@tutti-os/agent-gui 0.0.109 → 0.0.110
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/agent-gui.js +3 -3
- package/dist/{chunk-J4K7KIFZ.js → chunk-A4WCTHWS.js} +4 -13
- package/dist/chunk-A4WCTHWS.js.map +1 -0
- package/dist/{chunk-EBXOSQ5G.js → chunk-J7KJ4MX4.js} +3 -1
- package/dist/{chunk-EBXOSQ5G.js.map → chunk-J7KJ4MX4.js.map} +1 -1
- package/dist/{chunk-34JD75OB.js → chunk-YRMT6UYB.js} +18 -25
- package/dist/{chunk-34JD75OB.js.map → chunk-YRMT6UYB.js.map} +1 -1
- package/dist/index.js +3 -3
- package/dist/workbench/contribution.js +1 -1
- package/dist/workbench/index.js +1 -1
- package/dist/workspace-query-cache.d.ts +0 -1
- package/dist/workspace-query-cache.js +1 -1
- package/package.json +14 -14
- package/dist/chunk-J4K7KIFZ.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createWorkspaceQueryCache
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-A4WCTHWS.js";
|
|
4
4
|
import {
|
|
5
5
|
AGENT_GUI_COLLAPSED_MIN_WIDTH_PX,
|
|
6
6
|
AGENT_GUI_CONVERSATION_RAIL_MIN_WIDTH_PX,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
resolveAgentGuiSessionProviderFlatIconUrl,
|
|
13
13
|
resolveNextAgentGUIConversationRailWidthPx,
|
|
14
14
|
shouldAutoCollapseAgentGUIConversationRail
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-J7KJ4MX4.js";
|
|
16
16
|
import {
|
|
17
17
|
AGENT_PROVIDERS,
|
|
18
18
|
AGENT_PROVIDER_LABEL,
|
|
@@ -29097,10 +29097,6 @@ function cachedConversationRailQueryFromFirstPages(page, scopeKey) {
|
|
|
29097
29097
|
conversationRailPageState(section)
|
|
29098
29098
|
);
|
|
29099
29099
|
}
|
|
29100
|
-
const sessions = [
|
|
29101
|
-
...page.pinned?.sessions ?? [],
|
|
29102
|
-
...page.sections.flatMap((section) => section.sessions)
|
|
29103
|
-
];
|
|
29104
29100
|
return {
|
|
29105
29101
|
queryState: {
|
|
29106
29102
|
pending: false,
|
|
@@ -29109,15 +29105,14 @@ function cachedConversationRailQueryFromFirstPages(page, scopeKey) {
|
|
|
29109
29105
|
sectionPageStates,
|
|
29110
29106
|
sections
|
|
29111
29107
|
},
|
|
29112
|
-
returnedSessionCount: sessions.length
|
|
29113
|
-
|
|
29114
|
-
|
|
29108
|
+
returnedSessionCount: (page.pinned?.sessions.length ?? 0) + page.sections.reduce(
|
|
29109
|
+
(count, section) => count + section.sessions.length,
|
|
29110
|
+
0
|
|
29111
|
+
),
|
|
29112
|
+
sectionCount: page.sections.length + (page.pinned ? 1 : 0)
|
|
29115
29113
|
};
|
|
29116
29114
|
}
|
|
29117
29115
|
function applyCachedConversationRailQuery(input) {
|
|
29118
|
-
if (input.cache.claimIngestion(input.scopeKey, input.entry.version)) {
|
|
29119
|
-
input.upsertSessions(input.entry.value.sessions);
|
|
29120
|
-
}
|
|
29121
29116
|
return input.entry.value.queryState;
|
|
29122
29117
|
}
|
|
29123
29118
|
function writeConversationRailQueryCache(input) {
|
|
@@ -29131,8 +29126,7 @@ function writeConversationRailQueryCache(input) {
|
|
|
29131
29126
|
(count, section) => count + section.sessionIds.length,
|
|
29132
29127
|
0
|
|
29133
29128
|
),
|
|
29134
|
-
sectionCount: queryState.sections.length
|
|
29135
|
-
sessions: []
|
|
29129
|
+
sectionCount: queryState.sections.length
|
|
29136
29130
|
});
|
|
29137
29131
|
}
|
|
29138
29132
|
function replaceConversationRailFirstPages(input) {
|
|
@@ -29588,7 +29582,7 @@ var AgentGUIConversationRailQueryController = class {
|
|
|
29588
29582
|
};
|
|
29589
29583
|
handleEngineState(state) {
|
|
29590
29584
|
const next = projectConversationRailMembershipRecords(state);
|
|
29591
|
-
if (this.ingestingSessions || !this.runtimeSectionsEnabled()) {
|
|
29585
|
+
if (this.ingestingSessions || !this.runtimeSectionsEnabled() || state.engineRuntime.workspaceReconcile.status === "loading") {
|
|
29592
29586
|
this.previousMembershipRecords = next;
|
|
29593
29587
|
return;
|
|
29594
29588
|
}
|
|
@@ -29631,7 +29625,7 @@ var AgentGUIConversationRailQueryController = class {
|
|
|
29631
29625
|
const cached = this.sessionSectionsQueryCache.read(scopeKey);
|
|
29632
29626
|
const cacheApplyStartedAt = cached && this.providerSwitchDiagnostics.hasPending(scopeKey) ? this.diagnosticNow() : null;
|
|
29633
29627
|
if (cached && this.queryState.resolvedScopeKey !== scopeKey) {
|
|
29634
|
-
this.applyCachedFirstPages(
|
|
29628
|
+
this.applyCachedFirstPages(cached);
|
|
29635
29629
|
this.emit();
|
|
29636
29630
|
}
|
|
29637
29631
|
if (cached && !cached.stale && this.cacheNow() - cached.resolvedAtUnixMs <= this.cacheFreshMs) {
|
|
@@ -29663,13 +29657,17 @@ var AgentGUIConversationRailQueryController = class {
|
|
|
29663
29657
|
limitPerSection: SECTION_PAGE_SIZE2,
|
|
29664
29658
|
workspaceId: this.workspaceId
|
|
29665
29659
|
});
|
|
29660
|
+
this.upsertSessions([
|
|
29661
|
+
...page.pinned?.sessions ?? [],
|
|
29662
|
+
...page.sections.flatMap((section) => section.sessions)
|
|
29663
|
+
]);
|
|
29666
29664
|
return cachedConversationRailQueryFromFirstPages(page, scopeKey);
|
|
29667
29665
|
}).then((entry) => {
|
|
29668
29666
|
if (requestSequence !== this.pagingRequestSequence || scopeKey !== this.railSectionQueryKey) {
|
|
29669
29667
|
return;
|
|
29670
29668
|
}
|
|
29671
29669
|
const requestResolvedAt = this.diagnosticNow();
|
|
29672
|
-
this.applyCachedFirstPages(
|
|
29670
|
+
this.applyCachedFirstPages(entry);
|
|
29673
29671
|
this.emit();
|
|
29674
29672
|
const completedAt = this.diagnosticNow();
|
|
29675
29673
|
this.providerSwitchDiagnostics.complete(scopeKey, {
|
|
@@ -29737,13 +29735,8 @@ var AgentGUIConversationRailQueryController = class {
|
|
|
29737
29735
|
this.emit();
|
|
29738
29736
|
});
|
|
29739
29737
|
}
|
|
29740
|
-
applyCachedFirstPages(
|
|
29741
|
-
this.queryState = applyCachedConversationRailQuery({
|
|
29742
|
-
cache: this.sessionSectionsQueryCache,
|
|
29743
|
-
entry,
|
|
29744
|
-
scopeKey,
|
|
29745
|
-
upsertSessions: (sessions) => this.upsertSessions(sessions)
|
|
29746
|
-
});
|
|
29738
|
+
applyCachedFirstPages(entry) {
|
|
29739
|
+
this.queryState = applyCachedConversationRailQuery({ entry });
|
|
29747
29740
|
}
|
|
29748
29741
|
writeCurrentQueryCache() {
|
|
29749
29742
|
writeConversationRailQueryCache({
|
|
@@ -35330,4 +35323,4 @@ export {
|
|
|
35330
35323
|
resolveAgentGUIAgentTarget,
|
|
35331
35324
|
AgentGUI
|
|
35332
35325
|
};
|
|
35333
|
-
//# sourceMappingURL=chunk-
|
|
35326
|
+
//# sourceMappingURL=chunk-YRMT6UYB.js.map
|