@parhelia/core 0.1.12285 → 0.1.12287
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 +1 -47
- package/dist/editor/ai/AgentTerminal.js.map +1 -1
- package/dist/editor/client/EditorShell.js +12 -1
- package/dist/editor/client/EditorShell.js.map +1 -1
- package/dist/editor/services/agentService.d.ts +3 -2
- package/dist/editor/services/agentService.js.map +1 -1
- package/dist/editor/services/aiService.d.ts +1 -0
- package/dist/editor/services/aiService.js.map +1 -1
- package/dist/editor/ui/CopyMoveTargetSelectorDialog.js +1 -1
- package/dist/editor/ui/CopyMoveTargetSelectorDialog.js.map +1 -1
- package/dist/editor/ui/Splitter.js +85 -71
- package/dist/editor/ui/Splitter.js.map +1 -1
- package/dist/revision.d.ts +2 -2
- package/dist/revision.js +2 -2
- package/dist/splash-screen/ParheliaAssistantChat.js +15 -28
- package/dist/splash-screen/ParheliaAssistantChat.js.map +1 -1
- package/dist/task-board/components/ProjectDashboard.js +24 -6
- package/dist/task-board/components/ProjectDashboard.js.map +1 -1
- package/dist/task-board/views/ListView.js +1 -1
- package/dist/task-board/views/WizardView.js +1 -1
- package/dist/task-board/views/WizardView.js.map +1 -1
- package/package.json +1 -1
|
@@ -1156,26 +1156,6 @@ export function AgentTerminal({ agentStub, initialMetadata, profiles, isActive =
|
|
|
1156
1156
|
});
|
|
1157
1157
|
editContext.switchWorkspace("editor");
|
|
1158
1158
|
}, [editContext]);
|
|
1159
|
-
// Read deterministic flags from query string once
|
|
1160
|
-
let deterministicFlags;
|
|
1161
|
-
try {
|
|
1162
|
-
const params = new URLSearchParams(window.location.search);
|
|
1163
|
-
const detParam = params.get("deterministic");
|
|
1164
|
-
const deterministic = detParam === "true" ||
|
|
1165
|
-
(detParam === null ? params.has("deterministic") : false);
|
|
1166
|
-
const seedStr = params.get("seed");
|
|
1167
|
-
const seed = seedStr ? Number(seedStr) : undefined;
|
|
1168
|
-
deterministicFlags = {
|
|
1169
|
-
deterministic,
|
|
1170
|
-
seed: Number.isFinite(seed) ? seed : undefined,
|
|
1171
|
-
};
|
|
1172
|
-
}
|
|
1173
|
-
catch {
|
|
1174
|
-
deterministicFlags = {
|
|
1175
|
-
deterministic: false,
|
|
1176
|
-
seed: undefined,
|
|
1177
|
-
};
|
|
1178
|
-
}
|
|
1179
1159
|
useEffect(() => {
|
|
1180
1160
|
localStorageService.setItem("editor.agent.promptHistory", promptHistory);
|
|
1181
1161
|
}, [promptHistory]);
|
|
@@ -3607,8 +3587,6 @@ export function AgentTerminal({ agentStub, initialMetadata, profiles, isActive =
|
|
|
3607
3587
|
model: selectedModelId,
|
|
3608
3588
|
mode: mode,
|
|
3609
3589
|
context: canonicalizeAgentMetadata(effectiveContext), // Use fresh live context when in live mode
|
|
3610
|
-
deterministic: deterministicFlags.deterministic,
|
|
3611
|
-
seed: deterministicFlags.seed,
|
|
3612
3590
|
};
|
|
3613
3591
|
console.log("[AgentTerminal] Calling startAgent API for agent:", agentId);
|
|
3614
3592
|
const response = await startAgent(request);
|
|
@@ -3865,8 +3843,6 @@ export function AgentTerminal({ agentStub, initialMetadata, profiles, isActive =
|
|
|
3865
3843
|
model: selectedModelId,
|
|
3866
3844
|
mode: mode,
|
|
3867
3845
|
context: canonicalizeAgentMetadata(effectiveContext), // Use fresh live context when in live mode
|
|
3868
|
-
deterministic: deterministicFlags.deterministic,
|
|
3869
|
-
seed: deterministicFlags.seed,
|
|
3870
3846
|
};
|
|
3871
3847
|
console.log("[AgentTerminal] Calling startAgent API for quick message");
|
|
3872
3848
|
await startAgent(request);
|
|
@@ -5014,29 +4990,7 @@ export function AgentTerminal({ agentStub, initialMetadata, profiles, isActive =
|
|
|
5014
4990
|
}, children: _jsx(ExternalLink, { className: "h-2.5 w-2.5", strokeWidth: 1.5 }) }), backendAssignedSkillSet.has(skillId.toLowerCase()) ? (_jsx("span", { className: "text-[9px] text-gray-500", children: "auto" })) : (_jsx("button", { type: "button", className: "rounded p-0.5 text-gray-500 hover:bg-gray-200 hover:text-gray-700", onClick: () => {
|
|
5015
4991
|
void handleRemoveSkill(skillId);
|
|
5016
4992
|
}, title: "Remove skill", "aria-label": `Remove ${skill?.name || skillId}`, children: _jsx(X, { className: "h-2.5 w-2.5", strokeWidth: 1 }) }))] }, skillId));
|
|
5017
|
-
}) })), _jsxs("div", { className: "
|
|
5018
|
-
undefined, expandedItemId: selectedSkillIds[selectedSkillIds.length - 1] ||
|
|
5019
|
-
skillRootIds[0], scrollToSelected: true, hideRootNodes: false, onSelectionChange: (selection) => {
|
|
5020
|
-
const selected = selection[0];
|
|
5021
|
-
if (!selected?.id)
|
|
5022
|
-
return;
|
|
5023
|
-
if (selectableTemplateIdSet.size > 0 &&
|
|
5024
|
-
(!selected.templateId ||
|
|
5025
|
-
!selectableTemplateIdSet.has(selected.templateId.toLowerCase()))) {
|
|
5026
|
-
return;
|
|
5027
|
-
}
|
|
5028
|
-
if (!profileFilteredSkillIdSet.has(selected.id.toLowerCase())) {
|
|
5029
|
-
return;
|
|
5030
|
-
}
|
|
5031
|
-
void handleAddSkill(selected.id);
|
|
5032
|
-
} }), skillsLoading && (_jsx("div", { className: "bg-background/70 absolute inset-0 flex items-center justify-center text-[10px] text-gray-500", children: "Loading skills..." }))] }), !skillsLoading &&
|
|
5033
|
-
profileFilteredSkills.length > 0 && (_jsx("div", { className: "mt-1 text-[10px] text-gray-500", children: "Click a skill item in the tree to add it." })), skillsError && (_jsx("div", { className: "mt-1 text-[10px] text-red-600", children: skillsError })), !skillsLoading &&
|
|
5034
|
-
!skillsError &&
|
|
5035
|
-
skillRootIds.length === 0 && (_jsx("div", { className: "mt-1 text-[10px] text-gray-500", children: "No skill roots available." })), !skillsLoading &&
|
|
5036
|
-
!skillsError &&
|
|
5037
|
-
profileFilteredSkills.length === 0 && (_jsx("div", { className: "mt-1 text-[10px] text-gray-500", children: selectedSkillIds.length > 0
|
|
5038
|
-
? "All allowed skills are selected"
|
|
5039
|
-
: "No skills available for this profile" }))] }), _jsxs("div", { children: [_jsx("div", { className: "mb-1 text-[11px] font-medium text-gray-700", children: "Subscribed triggers" }), _jsx("div", { className: "max-h-28 space-y-1 overflow-y-auto rounded border border-gray-200 bg-gray-50 p-1.5", children: triggerSubscriptionsLoading ? (_jsx("div", { className: "px-1 text-[10px] text-gray-500", children: "Loading subscribed triggers..." })) : activeTriggerSubscriptions.length > 0 ? (activeTriggerSubscriptions.map((sub) => {
|
|
4993
|
+
}) }))] }), _jsxs("div", { children: [_jsx("div", { className: "mb-1 text-[11px] font-medium text-gray-700", children: "Subscribed triggers" }), _jsx("div", { className: "max-h-28 space-y-1 overflow-y-auto rounded border border-gray-200 bg-gray-50 p-1.5", children: triggerSubscriptionsLoading ? (_jsx("div", { className: "px-1 text-[10px] text-gray-500", children: "Loading subscribed triggers..." })) : activeTriggerSubscriptions.length > 0 ? (activeTriggerSubscriptions.map((sub) => {
|
|
5040
4994
|
const filterText = (sub.filter || "").trim();
|
|
5041
4995
|
return (_jsxs("div", { className: "rounded border border-gray-200 bg-white px-1.5 py-1", children: [_jsx("div", { className: "truncate text-[10px] font-medium text-gray-800", children: sub.triggerName }), filterText.length > 0 && (_jsxs("div", { className: "mt-0.5 line-clamp-2 text-[9px] break-all text-gray-500", children: ["filter: ", filterText] }))] }, sub.id));
|
|
5042
4996
|
})) : (_jsx("div", { className: "px-1 text-[10px] text-gray-500", children: "No active trigger subscriptions" })) }), triggerSubscriptionsError && (_jsx("div", { className: "mt-1 text-[10px] text-red-600", children: triggerSubscriptionsError }))] })] }) })] }), activeProfile?.prompts?.length ? (_jsxs(Popover, { open: showPredefined, onOpenChange: setShowPredefined, children: [_jsx(PopoverTrigger, { asChild: true, children: _jsx("button", { className: "rounded p-1 hover:bg-gray-100", onClick: () => { }, title: "Predefined prompts", "aria-label": "Predefined prompts", type: "button", children: _jsx(Wand2, { className: "h-3 w-3", strokeWidth: 1 }) }) }), _jsx(PopoverContent, { className: "w-64 p-0", align: "start", children: _jsx("div", { className: "max-h-56 overflow-y-auto p-2", children: activeProfile.prompts.map((p, index) => (_jsx("div", { className: "cursor-pointer rounded p-1.5 text-[10px] text-gray-700 hover:bg-gray-100", onClick: () => {
|