@alpaca-editor/core 1.0.4192 → 1.0.4194
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/agents-view/AgentCard.js +1 -1
- package/dist/agents-view/AgentCard.js.map +1 -1
- package/dist/agents-view/AgentsView.js +5 -7
- package/dist/agents-view/AgentsView.js.map +1 -1
- package/dist/config/config.js +14 -7
- package/dist/config/config.js.map +1 -1
- package/dist/editor/ItemInfo.js +3 -3
- package/dist/editor/ItemInfo.js.map +1 -1
- package/dist/editor/QuickItemSwitcher.js +1 -1
- package/dist/editor/QuickItemSwitcher.js.map +1 -1
- package/dist/editor/ai/AgentTerminal.d.ts +1 -7
- package/dist/editor/ai/AgentTerminal.js +382 -256
- package/dist/editor/ai/AgentTerminal.js.map +1 -1
- package/dist/editor/ai/Agents.js +84 -198
- package/dist/editor/ai/Agents.js.map +1 -1
- package/dist/editor/ai/AiResponseMessage.d.ts +1 -3
- package/dist/editor/ai/AiResponseMessage.js +12 -65
- package/dist/editor/ai/AiResponseMessage.js.map +1 -1
- package/dist/editor/ai/ToolCallDisplay.d.ts +1 -2
- package/dist/editor/ai/ToolCallDisplay.js +5 -13
- package/dist/editor/ai/ToolCallDisplay.js.map +1 -1
- package/dist/editor/client/EditorShell.js +5 -6
- package/dist/editor/client/EditorShell.js.map +1 -1
- package/dist/editor/client/hooks/useSocketMessageHandler.js +4 -6
- package/dist/editor/client/hooks/useSocketMessageHandler.js.map +1 -1
- package/dist/editor/commands/componentCommands.js +0 -2
- package/dist/editor/commands/componentCommands.js.map +1 -1
- package/dist/editor/control-center/About.js +1 -1
- package/dist/editor/control-center/About.js.map +1 -1
- package/dist/editor/control-center/AllAgentsPanel.js +1 -1
- package/dist/editor/field-types/MultiLineText.js +1 -1
- package/dist/editor/field-types/MultiLineText.js.map +1 -1
- package/dist/editor/services/aiService.d.ts +0 -1
- package/dist/editor/services/aiService.js.map +1 -1
- package/dist/editor/sidebar/Validation.js +1 -1
- package/dist/editor/sidebar/Validation.js.map +1 -1
- package/dist/index.d.ts +0 -3
- package/dist/index.js +0 -4
- package/dist/index.js.map +1 -1
- package/dist/page-wizard/PageWizard.js +3 -3
- package/dist/page-wizard/PageWizard.js.map +1 -1
- package/dist/page-wizard/WizardSteps.js +1 -1
- package/dist/page-wizard/WizardSteps.js.map +1 -1
- package/dist/revision.d.ts +2 -2
- package/dist/revision.js +2 -2
- package/dist/splash-screen/OpenPage.js +6 -10
- package/dist/splash-screen/OpenPage.js.map +1 -1
- package/dist/splash-screen/RecentPages.js +2 -2
- package/dist/splash-screen/RecentPages.js.map +1 -1
- package/dist/splash-screen/SplashScreen.js +1 -1
- package/dist/splash-screen/SplashScreen.js.map +1 -1
- package/dist/styles.css +12 -244
- package/package.json +1 -1
- package/src/agents-view/AgentCard.tsx +6 -1
- package/src/agents-view/AgentsView.tsx +30 -18
- package/src/config/config.tsx +17 -8
- package/src/editor/ItemInfo.tsx +2 -3
- package/src/editor/QuickItemSwitcher.tsx +1 -1
- package/src/editor/ai/AgentTerminal.tsx +649 -544
- package/src/editor/ai/Agents.tsx +250 -464
- package/src/editor/ai/AiResponseMessage.tsx +29 -134
- package/src/editor/ai/ToolCallDisplay.tsx +4 -18
- package/src/editor/client/EditorShell.tsx +6 -9
- package/src/editor/client/hooks/useSocketMessageHandler.ts +7 -6
- package/src/editor/commands/componentCommands.tsx +0 -1
- package/src/editor/control-center/About.tsx +2 -2
- package/src/editor/control-center/AllAgentsPanel.tsx +1 -1
- package/src/editor/field-types/MultiLineText.tsx +1 -1
- package/src/editor/services/aiService.ts +0 -2
- package/src/editor/sidebar/Validation.tsx +1 -1
- package/src/index.ts +0 -5
- package/src/page-wizard/PageWizard.tsx +3 -3
- package/src/page-wizard/WizardSteps.tsx +1 -1
- package/src/revision.ts +2 -2
- package/src/splash-screen/OpenPage.tsx +4 -12
- package/src/splash-screen/RecentPages.tsx +61 -58
- package/src/splash-screen/SplashScreen.tsx +1 -1
- package/styles.css +0 -20
- package/dist/components/ui/PlaceholderInput.d.ts +0 -41
- package/dist/components/ui/PlaceholderInput.js +0 -160
- package/dist/components/ui/PlaceholderInput.js.map +0 -1
- package/dist/components/ui/PlaceholderInputTypes.d.ts +0 -41
- package/dist/components/ui/PlaceholderInputTypes.js +0 -48
- package/dist/components/ui/PlaceholderInputTypes.js.map +0 -1
- package/dist/components/ui/PlaceholderItemSelector.d.ts +0 -7
- package/dist/components/ui/PlaceholderItemSelector.js +0 -154
- package/dist/components/ui/PlaceholderItemSelector.js.map +0 -1
- package/dist/editor/ai/MediaImage.d.ts +0 -6
- package/dist/editor/ai/MediaImage.js +0 -38
- package/dist/editor/ai/MediaImage.js.map +0 -1
- package/dist/splash-screen/ModernSplashScreen.d.ts +0 -8
- package/dist/splash-screen/ModernSplashScreen.js +0 -92
- package/dist/splash-screen/ModernSplashScreen.js.map +0 -1
- package/dist/splash-screen/ParheliaAssistantChat.d.ts +0 -8
- package/dist/splash-screen/ParheliaAssistantChat.js +0 -155
- package/dist/splash-screen/ParheliaAssistantChat.js.map +0 -1
- package/dist/splash-screen/RecentAgents.d.ts +0 -7
- package/dist/splash-screen/RecentAgents.js +0 -76
- package/dist/splash-screen/RecentAgents.js.map +0 -1
- package/src/components/ui/PlaceholderInput.tsx +0 -290
- package/src/components/ui/PlaceholderInputTypes.tsx +0 -97
- package/src/components/ui/PlaceholderItemSelector.tsx +0 -253
- package/src/editor/ai/MediaImage.tsx +0 -75
- package/src/splash-screen/ModernSplashScreen.tsx +0 -229
- package/src/splash-screen/ParheliaAssistantChat.tsx +0 -273
- package/src/splash-screen/RecentAgents.tsx +0 -151
package/src/config/config.tsx
CHANGED
|
@@ -36,16 +36,17 @@ import {
|
|
|
36
36
|
GraphQLIcon,
|
|
37
37
|
JsonIcon,
|
|
38
38
|
PageWizardIcon,
|
|
39
|
+
TreeIcon,
|
|
39
40
|
} from "../editor/ui/Icons";
|
|
40
41
|
import { Debug } from "../editor/sidebar/Debug";
|
|
41
42
|
import { GraphQL } from "../editor/sidebar/GraphQL";
|
|
42
|
-
|
|
43
|
+
|
|
43
44
|
import { EditContextType } from "../editor/client/editContext";
|
|
44
45
|
|
|
45
46
|
import { Titlebar } from "../editor/Titlebar";
|
|
46
47
|
import { NoWriteLanguageAccess } from "../editor/editor-warnings/NoLanguageWriteAccess";
|
|
47
48
|
import { NoWorkflowWriteAccess } from "../editor/editor-warnings/NoWorkflowWriteAccess";
|
|
48
|
-
|
|
49
|
+
import { SplashScreen } from "../splash-screen/SplashScreen";
|
|
49
50
|
import { AgentsView } from "../agents-view/AgentsView";
|
|
50
51
|
import { createEditToolbar } from "../editor/menubar/ToolbarFactory";
|
|
51
52
|
|
|
@@ -734,14 +735,21 @@ export const getConfiguration = (): EditorConfiguration => {
|
|
|
734
735
|
expandTreeNode: "bafb88a1-506a-4671-b47b-1947730d25f6",
|
|
735
736
|
},
|
|
736
737
|
},
|
|
737
|
-
defaultPinnedViews: ["parhelia", "ai", "content-
|
|
738
|
+
defaultPinnedViews: ["parhelia", "ai", "content-editor"],
|
|
738
739
|
views: [
|
|
740
|
+
// {
|
|
741
|
+
// name: "parhelia",
|
|
742
|
+
// title: "Parhelia",
|
|
743
|
+
// icon: <AnimatedSunIcon strokeWidth={1} />,
|
|
744
|
+
// defaultCenterPanelView: <ParheliaView />,
|
|
745
|
+
// hideViewSelector: false,
|
|
746
|
+
// },
|
|
739
747
|
{
|
|
740
748
|
name: "splash-screen",
|
|
741
749
|
title: "Splash Screen",
|
|
742
750
|
icon: <Home strokeWidth={1} />,
|
|
743
751
|
hidden: true,
|
|
744
|
-
defaultCenterPanelView: <
|
|
752
|
+
defaultCenterPanelView: <SplashScreen />,
|
|
745
753
|
hideViewSelector: true,
|
|
746
754
|
},
|
|
747
755
|
{
|
|
@@ -762,8 +770,9 @@ export const getConfiguration = (): EditorConfiguration => {
|
|
|
762
770
|
},
|
|
763
771
|
{
|
|
764
772
|
name: "agents-overview",
|
|
765
|
-
title: "Agents
|
|
773
|
+
title: "My Agents",
|
|
766
774
|
icon: <Bot strokeWidth={1} />,
|
|
775
|
+
|
|
767
776
|
defaultCenterPanelView: <AgentsView />,
|
|
768
777
|
hideViewSelector: false,
|
|
769
778
|
menuBar: <></>,
|
|
@@ -917,15 +926,15 @@ export const getConfiguration = (): EditorConfiguration => {
|
|
|
917
926
|
...pageEditorViewBase,
|
|
918
927
|
},
|
|
919
928
|
{
|
|
920
|
-
name: "content-
|
|
921
|
-
title: "Content
|
|
929
|
+
name: "content-editor",
|
|
930
|
+
title: "Content Editor",
|
|
922
931
|
icon: <FolderTreeIcon strokeWidth={1} />,
|
|
923
932
|
defaultCenterPanelView: editView,
|
|
924
933
|
leftSidebar: {
|
|
925
934
|
panels: [
|
|
926
935
|
{
|
|
927
936
|
name: "tree",
|
|
928
|
-
title: "Content
|
|
937
|
+
title: "Content",
|
|
929
938
|
content: <MainContentTree mode="normal" hideRootNodes={true} />,
|
|
930
939
|
initialSize: 80,
|
|
931
940
|
},
|
package/src/editor/ItemInfo.tsx
CHANGED
|
@@ -30,7 +30,7 @@ export function ItemInfo({ item }: { item: FullItem | null }) {
|
|
|
30
30
|
className="mr-2"
|
|
31
31
|
style={{ height: "32px", width: "32px" }}
|
|
32
32
|
/>
|
|
33
|
-
<h2 className="text-l
|
|
33
|
+
<h2 className="text-l flex items-center gap-1 font-medium">
|
|
34
34
|
{item.name}
|
|
35
35
|
<SimpleIconButton
|
|
36
36
|
onClick={() => {
|
|
@@ -41,7 +41,6 @@ export function ItemInfo({ item }: { item: FullItem | null }) {
|
|
|
41
41
|
}}
|
|
42
42
|
icon={<Pencil size={14} strokeWidth={1} />}
|
|
43
43
|
label="Rename"
|
|
44
|
-
className="opacity-0 transition-opacity group-hover:opacity-100"
|
|
45
44
|
></SimpleIconButton>
|
|
46
45
|
</h2>
|
|
47
46
|
</div>
|
|
@@ -69,7 +68,7 @@ export function ItemInfo({ item }: { item: FullItem | null }) {
|
|
|
69
68
|
language: "en",
|
|
70
69
|
version: 0,
|
|
71
70
|
});
|
|
72
|
-
editContext?.switchView("content-
|
|
71
|
+
editContext?.switchView("content-editor");
|
|
73
72
|
}}
|
|
74
73
|
>
|
|
75
74
|
{" "}
|
|
@@ -20,7 +20,7 @@ export interface QuickItemSwitcherProps {
|
|
|
20
20
|
// Helper to determine if a view shows EditView as main content
|
|
21
21
|
function viewShowsEditView(viewName: string): boolean {
|
|
22
22
|
// Views that show EditView: page-editor, content-editor, and default item views
|
|
23
|
-
const editViewNames = ["page-editor", "content-
|
|
23
|
+
const editViewNames = ["page-editor", "content-editor"];
|
|
24
24
|
return editViewNames.includes(viewName);
|
|
25
25
|
}
|
|
26
26
|
|