@marimo-team/islands 0.25.3-dev222 → 0.25.3-dev223

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 (23) hide show
  1. package/dist/{ErrorBoundary-Cg9q4kUW.js → ErrorBoundary-BToheQV2.js} +1 -1
  2. package/dist/{code-visibility-Dp-DkL1e.js → code-visibility-CO0hOr56.js} +1 -1
  3. package/dist/{common-DHr2MXY3.js → common-CV0669k1.js} +1 -1
  4. package/dist/{data-grid-overlay-editor-B-OJHxuO.js → data-grid-overlay-editor-CwDPMtXI.js} +1 -1
  5. package/dist/{feedback-button-DGAcA9xH.js → feedback-button-RB_OfVUt.js} +2 -2
  6. package/dist/{glide-data-editor-09FJOvJw.js → glide-data-editor-B2h5fYfH.js} +3 -3
  7. package/dist/{globals-2eTRp9qC.js → globals-YR9OeOwq.js} +1 -1
  8. package/dist/main.js +6 -6
  9. package/dist/{number-overlay-editor-XJ1jA8Jv.js → number-overlay-editor-BY4yYxfZ.js} +1 -1
  10. package/dist/{reveal-component-DxdLWQiq.js → reveal-component-GiGQpBMz.js} +2 -2
  11. package/dist/style.css +1 -1
  12. package/package.json +1 -1
  13. package/src/components/app-config/ai-config.tsx +148 -147
  14. package/src/components/app-config/app-config-button.tsx +6 -5
  15. package/src/components/app-config/common.tsx +7 -9
  16. package/src/components/app-config/data-form.tsx +112 -113
  17. package/src/components/app-config/mcp-config.tsx +30 -53
  18. package/src/components/app-config/user-config-form.css +91 -0
  19. package/src/components/app-config/user-config-form.tsx +236 -298
  20. package/src/components/editor/actions/__tests__/pair-with-agent-modal.test.tsx +9 -5
  21. package/src/components/editor/actions/__tests__/pair-with-agent.test.tsx +3 -3
  22. package/src/components/editor/actions/pair-with-agent-modal.tsx +5 -5
  23. package/src/components/editor/actions/pair-with-agent.tsx +10 -7
@@ -102,11 +102,14 @@ describe("PairWithAgentModal", () => {
102
102
  expect(
103
103
  panel.textContent?.includes("Agent connections require OpenCode 2.x"),
104
104
  ).toBe(tab === "OpenCode");
105
- expect(panel).toHaveTextContent(
106
- tab === "Other Agents"
107
- ? "1. Copy this prompt"
108
- : "1. Run in your terminal",
109
- );
105
+ expect(
106
+ within(panel).getByText(
107
+ tab === "Other Agents"
108
+ ? "Copy this prompt into your agent"
109
+ : "Run in your terminal",
110
+ { exact: true },
111
+ ),
112
+ ).toBeInTheDocument();
110
113
  fireEvent.click(
111
114
  within(panel).getByRole("button", {
112
115
  name: tab === "Other Agents" ? "Copy prompt" : "Copy command",
@@ -364,6 +367,7 @@ describe("PairWithAgentModal", () => {
364
367
  });
365
368
 
366
369
  const panel = screen.getByRole("tabpanel");
370
+ expect(panel).toHaveTextContent("1. Run in your terminal");
367
371
  expect(panel).toHaveTextContent("2. Paste when prompted for a token");
368
372
  expect(panel).not.toHaveTextContent("secret-token");
369
373
  fireEvent.click(
@@ -60,18 +60,18 @@ describe("PairWithAgent", () => {
60
60
  ).toBeVisible();
61
61
  expect(
62
62
  screen.getByRole("button", {
63
- name: "Pair your agent",
63
+ name: "Set up pairing",
64
64
  }),
65
65
  ).toBeVisible();
66
66
  });
67
67
 
68
- it("opens the pairing dialog from the banner description", () => {
68
+ it("opens the pairing dialog from the banner button", () => {
69
69
  stubTokenFetch();
70
70
  render(<PairWithAgentBanner />, { wrapper });
71
71
 
72
72
  fireEvent.click(
73
73
  screen.getByRole("button", {
74
- name: "Pair your agent",
74
+ name: "Set up pairing",
75
75
  }),
76
76
  );
77
77
 
@@ -118,7 +118,7 @@ export const PairWithAgentModal: React.FC<{
118
118
  <DialogHeader>
119
119
  <DialogTitle>Pair an agent</DialogTitle>
120
120
  <DialogDescription>
121
- Use an AI coding agent to pair-program on this notebook.{" "}
121
+ Use an AI coding agent to pair program on this notebook.{" "}
122
122
  <a
123
123
  href="https://links.marimo.app/marimo-pair"
124
124
  target="_blank"
@@ -159,7 +159,7 @@ export const PairWithAgentModal: React.FC<{
159
159
  className="mt-4 flex flex-col gap-4"
160
160
  >
161
161
  <Step
162
- index={1}
162
+ index={hasToken ? 1 : undefined}
163
163
  title="Run in your terminal"
164
164
  hint={
165
165
  hostEnabled && tab === "opencode"
@@ -191,7 +191,6 @@ export const PairWithAgentModal: React.FC<{
191
191
 
192
192
  <TabsContent value="prompt" className="mt-4 flex flex-col gap-4">
193
193
  <Step
194
- index={1}
195
194
  title="Copy this prompt into your agent"
196
195
  hint={
197
196
  hasToken
@@ -224,7 +223,7 @@ export const PairWithAgentModal: React.FC<{
224
223
  };
225
224
 
226
225
  const Step: React.FC<{
227
- index: number;
226
+ index?: number;
228
227
  title: string;
229
228
  hint?: string;
230
229
  children: React.ReactNode;
@@ -232,7 +231,8 @@ const Step: React.FC<{
232
231
  <div className="flex flex-col gap-2">
233
232
  <div className="flex items-baseline gap-2">
234
233
  <span className="text-sm font-medium">
235
- {index}. {title}
234
+ {index !== undefined && `${index}. `}
235
+ {title}
236
236
  </span>
237
237
  {hint && <span className="text-xs text-muted-foreground">{hint}</span>}
238
238
  </div>
@@ -1,6 +1,6 @@
1
1
  /* Copyright 2026 Marimo. All rights reserved. */
2
2
 
3
- import { BotIcon } from "lucide-react";
3
+ import { ArrowUpRightIcon, BotIcon } from "lucide-react";
4
4
  import React from "react";
5
5
  import { AiProviderIcon } from "@/components/ai/ai-provider-icon";
6
6
  import { useImperativeModal } from "@/components/modal/ImperativeModal";
@@ -72,7 +72,7 @@ export const PairWithAgentBanner: React.FC<{
72
72
  return (
73
73
  <div
74
74
  className={cn(
75
- "rounded-lg border border-(--blue-6) bg-(--blue-2)/50 p-3",
75
+ "rounded-lg border border-border bg-muted/30 p-3",
76
76
  className,
77
77
  )}
78
78
  >
@@ -103,18 +103,21 @@ export const PairWithAgentBanner: React.FC<{
103
103
  </fieldset>
104
104
  </div>
105
105
  <div className="mt-1 text-xs leading-relaxed">
106
- <p className="inline">
106
+ <p>
107
107
  Pair your coding agent with this notebook to edit and run cells,
108
108
  inspect variables, and more, straight from your agent's CLI or user
109
109
  interface.
110
110
  </p>
111
- <button
111
+ <Button
112
112
  type="button"
113
+ variant="outline"
114
+ size="xs"
113
115
  onClick={openPairWithAgentModal}
114
- className="text-link hover:underline ml-1"
116
+ className="mt-3 gap-1"
115
117
  >
116
- Pair your agent
117
- </button>
118
+ Set up pairing
119
+ <ArrowUpRightIcon className="size-3.5" aria-hidden={true} />
120
+ </Button>
118
121
  </div>
119
122
  </div>
120
123
  );