@alpaca-editor/core 1.0.4184 → 1.0.4185
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.d.ts +12 -0
- package/dist/agents-view/AgentCard.js +30 -0
- package/dist/agents-view/AgentCard.js.map +1 -0
- package/dist/agents-view/AgentsView.d.ts +2 -2
- package/dist/agents-view/AgentsView.js +102 -85
- package/dist/agents-view/AgentsView.js.map +1 -1
- package/dist/agents-view/ProfileAgentsGroup.d.ts +17 -0
- package/dist/agents-view/ProfileAgentsGroup.js +13 -0
- package/dist/agents-view/ProfileAgentsGroup.js.map +1 -0
- package/dist/editor/ai/AgentProfilesOverview.js +1 -1
- package/dist/editor/ai/AgentProfilesOverview.js.map +1 -1
- package/dist/editor/commands/componentCommands.js +19 -1
- package/dist/editor/commands/componentCommands.js.map +1 -1
- package/dist/editor/page-editor-chrome/FrameMenu.js +7 -3
- package/dist/editor/page-editor-chrome/FrameMenu.js.map +1 -1
- package/dist/editor/page-viewer/PageViewerFrame.js +7 -28
- package/dist/editor/page-viewer/PageViewerFrame.js.map +1 -1
- package/dist/editor/reviews/Comment.js +56 -4
- package/dist/editor/reviews/Comment.js.map +1 -1
- package/dist/editor/services/agentService.d.ts +19 -0
- package/dist/editor/services/agentService.js +39 -0
- package/dist/editor/services/agentService.js.map +1 -1
- package/dist/editor/services/serviceHelper.d.ts +1 -0
- package/dist/editor/services/serviceHelper.js +58 -4
- package/dist/editor/services/serviceHelper.js.map +1 -1
- package/dist/revision.d.ts +2 -2
- package/dist/revision.js +2 -2
- package/dist/styles.css +4 -6
- package/dist/tour/default-tour.js +24 -9
- package/dist/tour/default-tour.js.map +1 -1
- package/package.json +1 -1
- package/src/agents-view/AgentCard.tsx +162 -0
- package/src/agents-view/AgentsView.tsx +218 -253
- package/src/agents-view/ProfileAgentsGroup.tsx +123 -0
- package/src/editor/ai/AgentProfilesOverview.tsx +1 -2
- package/src/editor/commands/componentCommands.tsx +19 -1
- package/src/editor/page-editor-chrome/FrameMenu.tsx +9 -3
- package/src/editor/page-viewer/PageViewerFrame.tsx +7 -36
- package/src/editor/reviews/Comment.tsx +85 -4
- package/src/editor/services/agentService.ts +77 -0
- package/src/editor/services/serviceHelper.ts +92 -28
- package/src/revision.ts +2 -2
- package/src/tour/default-tour.tsx +63 -48
|
@@ -63,7 +63,7 @@ export function getDefaultTourSteps(
|
|
|
63
63
|
</>
|
|
64
64
|
),
|
|
65
65
|
focusElement: '#create-new-page-button, [data-testid="create-new-page-button"]',
|
|
66
|
-
bubblePosition: "
|
|
66
|
+
bubblePosition: "right",
|
|
67
67
|
waitForUserInput: async () => {
|
|
68
68
|
await waitForElement(".tour-pick-location");
|
|
69
69
|
},
|
|
@@ -261,63 +261,78 @@ export function getDefaultTourSteps(
|
|
|
261
261
|
<>
|
|
262
262
|
<ArrowRight className="inline h-4 w-4" /> Great, show me!
|
|
263
263
|
</>
|
|
264
|
-
|
|
265
|
-
|
|
264
|
+
),
|
|
265
|
+
onClick: () => nextStep("open-agents-panel"),
|
|
266
|
+
},
|
|
267
|
+
],
|
|
266
268
|
},
|
|
267
|
-
],
|
|
268
|
-
},
|
|
269
269
|
"open-agents-panel": {
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
await new Promise<void>((resolve) => {
|
|
270
|
+
title: "Open AI Agents",
|
|
271
|
+
description: "Open the Agents panel to start an AI chat.",
|
|
272
|
+
focusElement: "#agents-panel-button, [data-testid='agents-panel-button']",
|
|
273
|
+
bubblePosition: "left",
|
|
274
|
+
waitForUserInput: async () => {
|
|
275
|
+
const btn = document.querySelector(
|
|
276
|
+
"#agents-panel-button, [data-testid='agents-panel-button']"
|
|
277
|
+
);
|
|
278
|
+
if (btn) {
|
|
279
|
+
await new Promise<void>((resolve) => {
|
|
281
280
|
btn.addEventListener("click", () => resolve(), { once: true });
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
281
|
+
});
|
|
282
|
+
}
|
|
283
|
+
await delay(500);
|
|
284
|
+
await waitForElement("[data-testid='agent-profile-card']");
|
|
285
|
+
},
|
|
286
|
+
nextStep: "choose-agent",
|
|
287
|
+
},
|
|
288
|
+
"choose-agent": {
|
|
289
|
+
title: "Choose an AI Agent",
|
|
290
|
+
description: "Choose an AI agent to assist you with your tasks.",
|
|
291
|
+
focusElement: "#agent-profile-card, [data-testid='agent-profile-card']",
|
|
292
|
+
bubblePosition: "left",
|
|
293
|
+
waitForUserInput: async () => {
|
|
294
|
+
const btn = document.querySelector(
|
|
295
|
+
"#agent-profile-card, [data-testid='agent-profile-card']"
|
|
296
|
+
);
|
|
297
|
+
if (btn) {
|
|
298
|
+
await new Promise<void>((resolve) => {
|
|
299
|
+
btn.addEventListener("click", () => resolve(), { once: true });
|
|
300
|
+
});
|
|
301
|
+
}
|
|
302
|
+
await delay(500);
|
|
303
|
+
await waitForElement("[data-testid='agent-terminal-prompt']");
|
|
304
|
+
},
|
|
305
|
+
nextStep: "start-agent-chat",
|
|
306
|
+
},
|
|
290
307
|
"start-agent-chat": {
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
308
|
+
title: "Start a chat",
|
|
309
|
+
description:
|
|
310
|
+
"Type a prompt for the agent - Let AI create your whole webpage or just parts and press Enter.",
|
|
311
|
+
focusElement: "[data-testid='agent-terminal-prompt']",
|
|
312
|
+
bubblePosition: "top-left",
|
|
313
|
+
buttons: [
|
|
314
|
+
{
|
|
315
|
+
label: (
|
|
298
316
|
<>
|
|
299
317
|
<Check className="inline h-4 w-4" /> Got it
|
|
300
318
|
</>
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
319
|
+
),
|
|
320
|
+
onClick: () => nextStep("congratulations"),
|
|
321
|
+
className: "button button-primary mt-2",
|
|
322
|
+
},
|
|
323
|
+
],
|
|
324
|
+
waitForUserInput: async () => {
|
|
325
|
+
await waitForInput("[data-testid='agent-terminal-prompt'] textarea", 5);
|
|
326
|
+
},
|
|
327
|
+
nextStep: "congratulations",
|
|
304
328
|
},
|
|
305
|
-
],
|
|
306
|
-
waitForUserInput: async () => {
|
|
307
|
-
await waitForInput(
|
|
308
|
-
`[data-testid="agent-terminal-prompt"] textarea`,
|
|
309
|
-
5,
|
|
310
|
-
);
|
|
311
|
-
},
|
|
312
|
-
nextStep: "congratulations",
|
|
313
|
-
},
|
|
314
329
|
|
|
315
330
|
congratulations: {
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
331
|
+
title: "Congratulations!",
|
|
332
|
+
description: "You have completed the tour and are now an AI Editor Pro!",
|
|
333
|
+
buttons: [
|
|
334
|
+
{
|
|
335
|
+
label: (
|
|
321
336
|
<>
|
|
322
337
|
<Check className="inline h-4 w-4" /> Finish Tour
|
|
323
338
|
</>
|