Skip to content
This repository was archived by the owner on Feb 28, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/__fixtures__/knowledge.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
import { MemdbSubEvent, MemoRecord, VecDbStatus } from "../events";
import type {
MemdbSubEvent,
MemoRecord,
VecDbStatus,
} from "../services/refact";

export const STUB_MEMORIES: MemoRecord[] = [
{
Expand Down
3 changes: 2 additions & 1 deletion src/components/ChatContent/ChatContent.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import { setUpStore } from "../../app/store";
import { Theme } from "../Theme";
import { AbortControllerProvider } from "../../contexts/AbortControllers";
import { MarkdownMessage } from "../../__fixtures__/markdown";
import { ChatMessages, ChatThread } from "../../events";
import type { ChatMessages } from "../../services/refact";
import type { ChatThread } from "../../features/Chat/Thread";
import {
CHAT_FUNCTIONS_MESSAGES,
CHAT_WITH_DIFF_ACTIONS,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { DefaultCell } from "./DefaultCell";

import styles from "./ConfirmationTable.module.css";
import { debugIntegrations } from "../../../debugConfig";
import { MCPEnvs } from "../../../events";
import { MCPEnvs } from "../../../services/refact";

type EnvironmentVariablesTableProps = {
initialData: MCPEnvs;
Expand Down
13 changes: 12 additions & 1 deletion src/events/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,17 @@ export {
type CurrentProjectInfo,
} from "../features/Chat/currentProject";

export type {
ToolCommand,
CustomPromptsResponse,
DiffPreviewResponse,
PatchResult,
CapsResponse,
UserMessage,
ChatMessage,
ChatMessages,
} from "../services/refact";

export const showPatchTicket = createAction<string>("showPatchTicket");

// TODO: re-exporting from redux seems to break things :/
Expand Down Expand Up @@ -102,7 +113,7 @@ export {
isUserMessage,
} from "../services/refact";

export type * from "../services/refact";
// export type * from "../services/refact";

export * from "./setup";
export type * from "./setup";
2 changes: 1 addition & 1 deletion src/features/ToolConfirmation/confirmationSlice.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { createSlice, PayloadAction } from "@reduxjs/toolkit";
import { ToolConfirmationPauseReason } from "../../events";
import type { ToolConfirmationPauseReason } from "../../services/refact";

export type ConfirmationState = {
pauseReasons: ToolConfirmationPauseReason[];
Expand Down