@parhelia/core 0.1.12565 → 0.1.12572
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/editor/ai/AgentTerminal.js +18 -0
- package/dist/editor/ai/AgentTerminal.js.map +1 -1
- package/dist/editor/ai/ToolCallDisplay.js +134 -111
- package/dist/editor/ai/ToolCallDisplay.js.map +1 -1
- package/dist/editor/client/EditorShell.js +74 -23
- package/dist/editor/client/EditorShell.js.map +1 -1
- package/dist/editor/services/agentService.d.ts +11 -0
- package/dist/editor/services/agentService.js +7 -0
- package/dist/editor/services/agentService.js.map +1 -1
- package/dist/editor/settings/IndexOverview.js +3 -1
- package/dist/editor/settings/IndexOverview.js.map +1 -1
- package/dist/editor/settings/index/CollectionWarningsDisplay.d.ts +10 -0
- package/dist/editor/settings/index/CollectionWarningsDisplay.js +16 -0
- package/dist/editor/settings/index/CollectionWarningsDisplay.js.map +1 -0
- package/dist/editor/settings/index/useIndexStatus.js +3 -0
- package/dist/editor/settings/index/useIndexStatus.js.map +1 -1
- package/dist/editor/settings/panels/SearchConfigPanel.js +64 -3
- package/dist/editor/settings/panels/SearchConfigPanel.js.map +1 -1
- package/dist/editor/settings/panels/StatusPanel.js +7 -2
- package/dist/editor/settings/panels/StatusPanel.js.map +1 -1
- package/dist/editor/template-wizard/TemplateStructureInlineEditor.js +3 -2
- package/dist/editor/template-wizard/TemplateStructureInlineEditor.js.map +1 -1
- package/dist/revision.d.ts +2 -2
- package/dist/revision.js +2 -2
- package/dist/setup/services/setupWizardService.d.ts +9 -0
- package/dist/setup/services/setupWizardService.js +20 -0
- package/dist/setup/services/setupWizardService.js.map +1 -1
- package/dist/types.d.ts +6 -0
- package/package.json +1 -1
|
@@ -1798,6 +1798,7 @@ export function AgentTerminal({ agentStub, initialMetadata, profiles, isActive =
|
|
|
1798
1798
|
const seenMessageIdsRef = useRef(new Set());
|
|
1799
1799
|
const lastSeqRef = useRef(0);
|
|
1800
1800
|
const subscribedAgentIdRef = useRef(null);
|
|
1801
|
+
const reconcileServerStateInFlightRef = useRef(false);
|
|
1801
1802
|
const toolCallFirstSeenAtRef = useRef({});
|
|
1802
1803
|
const pendingToolCompletionTimersRef = useRef({});
|
|
1803
1804
|
// Cache mode/model/profile changes made while the agent is still "new" (not yet persisted)
|
|
@@ -3087,6 +3088,21 @@ export function AgentTerminal({ agentStub, initialMetadata, profiles, isActive =
|
|
|
3087
3088
|
setIsLoading(false);
|
|
3088
3089
|
}
|
|
3089
3090
|
}, [agentStub.id]);
|
|
3091
|
+
const reconcileServerStateRef = useRef(null);
|
|
3092
|
+
useEffect(() => {
|
|
3093
|
+
reconcileServerStateRef.current = async () => {
|
|
3094
|
+
if (reconcileServerStateInFlightRef.current) {
|
|
3095
|
+
return;
|
|
3096
|
+
}
|
|
3097
|
+
reconcileServerStateInFlightRef.current = true;
|
|
3098
|
+
try {
|
|
3099
|
+
await loadAgent();
|
|
3100
|
+
}
|
|
3101
|
+
finally {
|
|
3102
|
+
reconcileServerStateInFlightRef.current = false;
|
|
3103
|
+
}
|
|
3104
|
+
};
|
|
3105
|
+
}, [loadAgent]);
|
|
3090
3106
|
// Initial load
|
|
3091
3107
|
useEffect(() => {
|
|
3092
3108
|
loadAgent();
|
|
@@ -3528,6 +3544,7 @@ export function AgentTerminal({ agentStub, initialMetadata, profiles, isActive =
|
|
|
3528
3544
|
messagesRef.current = updated;
|
|
3529
3545
|
return updated;
|
|
3530
3546
|
});
|
|
3547
|
+
void reconcileServerStateRef.current?.();
|
|
3531
3548
|
return;
|
|
3532
3549
|
}
|
|
3533
3550
|
if (statusData?.state === "streamOpen") {
|
|
@@ -3651,6 +3668,7 @@ export function AgentTerminal({ agentStub, initialMetadata, profiles, isActive =
|
|
|
3651
3668
|
setIsConnecting(false);
|
|
3652
3669
|
setIsWaitingForResponse(false);
|
|
3653
3670
|
setIsAgentThinking(false);
|
|
3671
|
+
void reconcileServerStateRef.current?.();
|
|
3654
3672
|
return;
|
|
3655
3673
|
}
|
|
3656
3674
|
if (normalizedStatus === "waitingForInput") {
|