@marimo-team/islands 0.24.1-dev116 → 0.24.1-dev119
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/{ConnectedDataExplorerComponent-BabDOEkd.js → ConnectedDataExplorerComponent-qIKbwYin.js} +4 -4
- package/dist/{ErrorBoundary-DXp6EXOC.js → ErrorBoundary-CR-ZQN_c.js} +1 -1
- package/dist/assets/__vite-browser-external-BdKGjRZ4.js +1 -0
- package/dist/assets/{worker-C3TCEtlU.js → worker-DlIBfp9S.js} +2 -2
- package/dist/{chat-ui-B2KTPWqm.js → chat-ui-DttQ-5Ut.js} +6 -6
- package/dist/{common-mAFq987V.js → common-B2pVJVWJ.js} +11 -13
- package/dist/{dropdown-menu-D1s8H8Ow.js → dropdown-menu-DhCfcscX.js} +1 -1
- package/dist/{formats-DrWM-ouO.js → formats-CJMVUfb3.js} +1 -1
- package/dist/{glide-data-editor-B-3cUJQd.js → glide-data-editor-sPZ8fUFn.js} +3 -3
- package/dist/{html-to-image-DqqHcuV2.js → html-to-image-BTYnN4ev.js} +5 -5
- package/dist/main.js +19 -19
- package/dist/{mermaid-DWMOBSe8.js → mermaid-BsHdQeQf.js} +2 -2
- package/dist/{process-output-D5dqSIGW.js → process-output-CsALk6tp.js} +1 -1
- package/dist/{reveal-component-DU6Wrhzv.js → reveal-component-CiaqFa0B.js} +4 -4
- package/dist/{spec-DzTo7SI8.js → spec-CutWdqo3.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{toDate-Cq6SCTVJ.js → toDate-D-Rx3ux5.js} +1 -1
- package/dist/{useAsyncData-DqlulK9M.js → useAsyncData-CH6-CgJF.js} +1 -1
- package/dist/{useDeepCompareMemoize-Ceu-LMdC.js → useDeepCompareMemoize-JC87C_jO.js} +1 -1
- package/dist/{useLifecycle-DmYfrWCI.js → useLifecycle-B4RGlyf0.js} +1 -1
- package/dist/{useTheme-CWrCsZgw.js → useTheme-CVJ0UOf2.js} +1 -0
- package/dist/{vega-component-Dzo_03Dh.js → vega-component-D-IXRnlx.js} +5 -5
- package/package.json +1 -1
- package/src/components/ai/ai-provider-icon.tsx +2 -2
- package/src/components/ai/ai-utils.ts +1 -1
- package/src/components/app-config/ai-config.tsx +33 -37
- package/src/components/app-config/user-config-form.tsx +1 -1
- package/src/components/data-table/renderers.tsx +2 -6
- package/src/components/editor/file-tree/__tests__/file-explorer-navigation.test.tsx +832 -0
- package/src/components/editor/file-tree/__tests__/file-viewer.test.tsx +27 -0
- package/src/components/editor/file-tree/__tests__/requesting-tree.test.ts +130 -0
- package/src/components/editor/file-tree/file-browser-row.tsx +82 -0
- package/src/components/editor/file-tree/file-explorer.tsx +377 -159
- package/src/components/editor/file-tree/file-operations.tsx +1 -1
- package/src/components/editor/file-tree/file-search-results.tsx +142 -0
- package/src/components/editor/file-tree/file-tree-row.tsx +40 -0
- package/src/components/editor/file-tree/file-viewer.tsx +2 -1
- package/src/components/editor/file-tree/requesting-tree.tsx +162 -32
- package/src/components/editor/file-tree/use-file-search.ts +142 -0
- package/src/components/editor/file-tree/use-hover-expand.ts +34 -0
- package/src/components/ui/links.tsx +2 -1
- package/src/core/ai/ids/__tests__/ids.test.ts +0 -8
- package/src/core/ai/ids/ids.ts +1 -1
- package/src/core/config/config-schema.ts +1 -0
- package/src/core/network/__tests__/requests-toasting.test.tsx +14 -0
- package/src/core/network/requests-toasting.tsx +1 -1
- package/dist/assets/__vite-browser-external-Cf4O9gnt.js +0 -1
package/src/core/ai/ids/ids.ts
CHANGED
|
@@ -4,13 +4,13 @@ import type { TypedString } from "@/utils/typed";
|
|
|
4
4
|
|
|
5
5
|
export const KNOWN_PROVIDERS = [
|
|
6
6
|
"openai",
|
|
7
|
+
"github",
|
|
7
8
|
"anthropic",
|
|
8
9
|
"google",
|
|
9
10
|
"ollama",
|
|
10
11
|
"bedrock",
|
|
11
12
|
"deepseek",
|
|
12
13
|
"azure",
|
|
13
|
-
"github",
|
|
14
14
|
"openrouter",
|
|
15
15
|
"wandb",
|
|
16
16
|
"opencode-go",
|
|
@@ -171,6 +171,7 @@ export const UserConfigSchema = z
|
|
|
171
171
|
inline_tooltip: z.boolean().prefault(false),
|
|
172
172
|
allow_provider_config: z.boolean().prefault(true),
|
|
173
173
|
open_ai: AiConfigSchema.optional(),
|
|
174
|
+
github: AiConfigSchema.optional(),
|
|
174
175
|
anthropic: AiConfigSchema.optional(),
|
|
175
176
|
google: AiConfigSchema.optional(),
|
|
176
177
|
ollama: AiConfigSchema.optional(),
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/* Copyright 2026 Marimo. All rights reserved. */
|
|
2
2
|
|
|
3
3
|
import { beforeEach, describe, expect, it, vi } from "vitest";
|
|
4
|
+
import { MockRequestClient } from "@/__mocks__/requests";
|
|
4
5
|
import { HTTPError } from "@/utils/errors";
|
|
5
6
|
|
|
6
7
|
const toastMock = vi.fn();
|
|
@@ -44,6 +45,19 @@ describe("createErrorToastingRequests", () => {
|
|
|
44
45
|
);
|
|
45
46
|
});
|
|
46
47
|
|
|
48
|
+
it("leaves search errors to callers without a toast per failed root", async () => {
|
|
49
|
+
const client = MockRequestClient.create();
|
|
50
|
+
const error = new Error("Storage unavailable");
|
|
51
|
+
vi.mocked(client.sendSearchFiles).mockRejectedValue(error);
|
|
52
|
+
const requests = createErrorToastingRequests(client);
|
|
53
|
+
for (const path of ["/workspace", "/shared"]) {
|
|
54
|
+
await expect(
|
|
55
|
+
requests.sendSearchFiles({ query: "report", path }),
|
|
56
|
+
).rejects.toBe(error);
|
|
57
|
+
}
|
|
58
|
+
expect(toastMock).not.toHaveBeenCalled();
|
|
59
|
+
});
|
|
60
|
+
|
|
47
61
|
it("leaves file-root errors for the requesting tree to surface", async () => {
|
|
48
62
|
const error = new Error("Failed to load roots");
|
|
49
63
|
const requests = createErrorToastingRequests({
|
|
@@ -50,7 +50,7 @@ export function createErrorToastingRequests(
|
|
|
50
50
|
getEnvironmentInfo: "", // No toast
|
|
51
51
|
getFileRoots: "", // RequestingTree surfaces this error
|
|
52
52
|
sendListFiles: "Failed to list files",
|
|
53
|
-
sendSearchFiles: "
|
|
53
|
+
sendSearchFiles: "", // Search callers handle errors
|
|
54
54
|
sendPdb: "Failed to start debug session",
|
|
55
55
|
sendSetBreakpoints: "", // No toast
|
|
56
56
|
sendCreateFileOrFolder: "Failed to create file or folder",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./worker-C3TCEtlU.js";var t=e(((e,t)=>{t.exports={}}));export default t();
|