Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): discover Claude commands in each workspace #15462

Mergedmaria-rcksmerged 5 commits intomain fromrefs/pull/15462/headmerged by maria-rcks View on GitHub

Showing 13 changed files with 224 additions and 3 deletions (loading 12).

x
0 of 13 viewed, 13 left
224 additions and 3 deletionsapps/mobile/src/features/threads/use-composer-command-menu.test.tsModified
View file
@@ -1,5 +1,14 @@
-import { describe, expect, it, vi } from "vite-plus/test";
-import { ProviderDriverKind } from "@t3tools/contracts";
+import { afterEach, beforeEach, describe, expect, it, vi } from "vite-plus/test";
+import {
+ EnvironmentId,
+ ProviderDriverKind,
+ ProviderInstanceId,
+ type ServerProvider,
+} from "@t3tools/contracts";
+import { act, createElement } from "react";
+import { createRoot, type Root } from "react-dom/client";
+​
+const refreshProviders = vi.hoisted(() => vi.fn());
vi.mock("react-native", () => ({ Alert: { alert: vi.fn() } }));
​
vi.mock("../../state/queries", () => ({
@@ -8,6 +17,7 @@
}));
vi.mock("../../state/use-composer-drafts", () => ({
getComposerDraftSnapshot: vi.fn(),
+ readComposerDraftSelection: vi.fn(),
setComposerDraftContext: vi.fn(),
}));
vi.mock("../../lib/uuid", () => ({ uuidv4: () => "context-id" }));
@@ -15,12 +25,13 @@
serverEnvironment: { refreshProviders: Symbol("refreshProviders") },
}));
vi.mock("../../state/use-atom-command", () => ({