@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.
Files changed (106) hide show
  1. package/dist/agents-view/AgentCard.js +1 -1
  2. package/dist/agents-view/AgentCard.js.map +1 -1
  3. package/dist/agents-view/AgentsView.js +5 -7
  4. package/dist/agents-view/AgentsView.js.map +1 -1
  5. package/dist/config/config.js +14 -7
  6. package/dist/config/config.js.map +1 -1
  7. package/dist/editor/ItemInfo.js +3 -3
  8. package/dist/editor/ItemInfo.js.map +1 -1
  9. package/dist/editor/QuickItemSwitcher.js +1 -1
  10. package/dist/editor/QuickItemSwitcher.js.map +1 -1
  11. package/dist/editor/ai/AgentTerminal.d.ts +1 -7
  12. package/dist/editor/ai/AgentTerminal.js +382 -256
  13. package/dist/editor/ai/AgentTerminal.js.map +1 -1
  14. package/dist/editor/ai/Agents.js +84 -198
  15. package/dist/editor/ai/Agents.js.map +1 -1
  16. package/dist/editor/ai/AiResponseMessage.d.ts +1 -3
  17. package/dist/editor/ai/AiResponseMessage.js +12 -65
  18. package/dist/editor/ai/AiResponseMessage.js.map +1 -1
  19. package/dist/editor/ai/ToolCallDisplay.d.ts +1 -2
  20. package/dist/editor/ai/ToolCallDisplay.js +5 -13
  21. package/dist/editor/ai/ToolCallDisplay.js.map +1 -1
  22. package/dist/editor/client/EditorShell.js +5 -6
  23. package/dist/editor/client/EditorShell.js.map +1 -1
  24. package/dist/editor/client/hooks/useSocketMessageHandler.js +4 -6
  25. package/dist/editor/client/hooks/useSocketMessageHandler.js.map +1 -1
  26. package/dist/editor/commands/componentCommands.js +0 -2
  27. package/dist/editor/commands/componentCommands.js.map +1 -1
  28. package/dist/editor/control-center/About.js +1 -1
  29. package/dist/editor/control-center/About.js.map +1 -1
  30. package/dist/editor/control-center/AllAgentsPanel.js +1 -1
  31. package/dist/editor/field-types/MultiLineText.js +1 -1
  32. package/dist/editor/field-types/MultiLineText.js.map +1 -1
  33. package/dist/editor/services/aiService.d.ts +0 -1
  34. package/dist/editor/services/aiService.js.map +1 -1
  35. package/dist/editor/sidebar/Validation.js +1 -1
  36. package/dist/editor/sidebar/Validation.js.map +1 -1
  37. package/dist/index.d.ts +0 -3
  38. package/dist/index.js +0 -4
  39. package/dist/index.js.map +1 -1
  40. package/dist/page-wizard/PageWizard.js +3 -3
  41. package/dist/page-wizard/PageWizard.js.map +1 -1
  42. package/dist/page-wizard/WizardSteps.js +1 -1
  43. package/dist/page-wizard/WizardSteps.js.map +1 -1
  44. package/dist/revision.d.ts +2 -2
  45. package/dist/revision.js +2 -2
  46. package/dist/splash-screen/OpenPage.js +6 -10
  47. package/dist/splash-screen/OpenPage.js.map +1 -1
  48. package/dist/splash-screen/RecentPages.js +2 -2
  49. package/dist/splash-screen/RecentPages.js.map +1 -1
  50. package/dist/splash-screen/SplashScreen.js +1 -1
  51. package/dist/splash-screen/SplashScreen.js.map +1 -1
  52. package/dist/styles.css +12 -244
  53. package/package.json +1 -1
  54. package/src/agents-view/AgentCard.tsx +6 -1
  55. package/src/agents-view/AgentsView.tsx +30 -18
  56. package/src/config/config.tsx +17 -8
  57. package/src/editor/ItemInfo.tsx +2 -3
  58. package/src/editor/QuickItemSwitcher.tsx +1 -1
  59. package/src/editor/ai/AgentTerminal.tsx +649 -544
  60. package/src/editor/ai/Agents.tsx +250 -464
  61. package/src/editor/ai/AiResponseMessage.tsx +29 -134
  62. package/src/editor/ai/ToolCallDisplay.tsx +4 -18
  63. package/src/editor/client/EditorShell.tsx +6 -9
  64. package/src/editor/client/hooks/useSocketMessageHandler.ts +7 -6
  65. package/src/editor/commands/componentCommands.tsx +0 -1
  66. package/src/editor/control-center/About.tsx +2 -2
  67. package/src/editor/control-center/AllAgentsPanel.tsx +1 -1
  68. package/src/editor/field-types/MultiLineText.tsx +1 -1
  69. package/src/editor/services/aiService.ts +0 -2
  70. package/src/editor/sidebar/Validation.tsx +1 -1
  71. package/src/index.ts +0 -5
  72. package/src/page-wizard/PageWizard.tsx +3 -3
  73. package/src/page-wizard/WizardSteps.tsx +1 -1
  74. package/src/revision.ts +2 -2
  75. package/src/splash-screen/OpenPage.tsx +4 -12
  76. package/src/splash-screen/RecentPages.tsx +61 -58
  77. package/src/splash-screen/SplashScreen.tsx +1 -1
  78. package/styles.css +0 -20
  79. package/dist/components/ui/PlaceholderInput.d.ts +0 -41
  80. package/dist/components/ui/PlaceholderInput.js +0 -160
  81. package/dist/components/ui/PlaceholderInput.js.map +0 -1
  82. package/dist/components/ui/PlaceholderInputTypes.d.ts +0 -41
  83. package/dist/components/ui/PlaceholderInputTypes.js +0 -48
  84. package/dist/components/ui/PlaceholderInputTypes.js.map +0 -1
  85. package/dist/components/ui/PlaceholderItemSelector.d.ts +0 -7
  86. package/dist/components/ui/PlaceholderItemSelector.js +0 -154
  87. package/dist/components/ui/PlaceholderItemSelector.js.map +0 -1
  88. package/dist/editor/ai/MediaImage.d.ts +0 -6
  89. package/dist/editor/ai/MediaImage.js +0 -38
  90. package/dist/editor/ai/MediaImage.js.map +0 -1
  91. package/dist/splash-screen/ModernSplashScreen.d.ts +0 -8
  92. package/dist/splash-screen/ModernSplashScreen.js +0 -92
  93. package/dist/splash-screen/ModernSplashScreen.js.map +0 -1
  94. package/dist/splash-screen/ParheliaAssistantChat.d.ts +0 -8
  95. package/dist/splash-screen/ParheliaAssistantChat.js +0 -155
  96. package/dist/splash-screen/ParheliaAssistantChat.js.map +0 -1
  97. package/dist/splash-screen/RecentAgents.d.ts +0 -7
  98. package/dist/splash-screen/RecentAgents.js +0 -76
  99. package/dist/splash-screen/RecentAgents.js.map +0 -1
  100. package/src/components/ui/PlaceholderInput.tsx +0 -290
  101. package/src/components/ui/PlaceholderInputTypes.tsx +0 -97
  102. package/src/components/ui/PlaceholderItemSelector.tsx +0 -253
  103. package/src/editor/ai/MediaImage.tsx +0 -75
  104. package/src/splash-screen/ModernSplashScreen.tsx +0 -229
  105. package/src/splash-screen/ParheliaAssistantChat.tsx +0 -273
  106. package/src/splash-screen/RecentAgents.tsx +0 -151
@@ -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
- import { ModernSplashScreen } from "../splash-screen/ModernSplashScreen";
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-tree"],
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: <ModernSplashScreen />,
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 Overview",
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-tree",
921
- title: "Content Tree",
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 Tree",
937
+ title: "Content",
929
938
  content: <MainContentTree mode="normal" hideRootNodes={true} />,
930
939
  initialSize: 80,
931
940
  },
@@ -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 group flex items-center gap-1 font-medium">
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-tree");
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-tree"];
23
+ const editViewNames = ["page-editor", "content-editor"];
24
24
  return editViewNames.includes(viewName);
25
25
  }
26
26