-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'alpha' into add_integrations
Conflicts: src/components/IntegrationsView/IntegrationDocker/IntegrationDocker.tsx src/components/IntegrationsView/IntegrationForm/IntegrationForm.tsx src/components/IntegrationsView/IntegrationsView.tsx src/features/Integrations/renderIntegrationFormField.tsx src/services/refact/integrations.ts Changes to be committed: modified: .gitignore modified: package-lock.json modified: package.json modified: src/__fixtures__/chat_config_thread.ts modified: src/__fixtures__/chat_links_response.ts modified: src/__fixtures__/integrations.ts modified: src/__fixtures__/msw.ts modified: src/__tests__/PinMessages.test.tsx new file: src/__tests__/isAbsolutePath.test.ts modified: src/app/middleware.ts modified: src/app/store.ts modified: src/components/Buttons/Buttons.tsx modified: src/components/Buttons/index.tsx modified: src/components/Callout/Callout.module.css modified: src/components/Callout/Callout.tsx modified: src/components/Chat/Chat.stories.tsx modified: src/components/Chat/Chat.tsx modified: src/components/ChatContent/AssistantInput.tsx modified: src/components/ChatContent/ChatContent.stories.tsx modified: src/components/ChatContent/ChatContent.tsx modified: src/components/ChatContent/ContextFiles.tsx modified: src/components/ChatContent/PlaceHolderText.tsx modified: src/components/ChatContent/useAutoScroll.ts modified: src/components/ChatForm/ChatControls.tsx modified: src/components/ChatForm/ChatForm.stories.tsx modified: src/components/ChatForm/ChatForm.test.tsx modified: src/components/ChatForm/ChatForm.tsx modified: src/components/ChatForm/PromptSelect.tsx modified: src/components/ChatForm/RetryForm.tsx modified: src/components/ChatForm/ToolConfirmation.module.css modified: src/components/ChatForm/ToolConfirmation.tsx modified: src/components/ChatForm/ToolUseSwitch.tsx modified: src/components/ChatForm/actions.ts modified: src/components/ChatForm/useCheckBoxes.ts modified: src/components/ChatForm/useInputValue.ts modified: src/components/ChatForm/utils.ts modified: src/components/ChatLinks/ChatLinks.module.css modified: src/components/ChatLinks/ChatLinks.tsx new file: src/components/ChatLinks/UncommittedChangesWarning.tsx modified: src/components/ChatLinks/index.ts new file: src/components/IntegrationsView/Confirmation/Confirmation.tsx new file: src/components/IntegrationsView/Confirmation/index.ts modified: src/components/IntegrationsView/IntegrationDeletePopover.tsx new file: src/components/IntegrationsView/IntegrationDocker/IntegrationDocker.module.css modified: src/components/IntegrationsView/IntegrationDocker/IntegrationDocker.tsx modified: src/components/IntegrationsView/IntegrationForm/IntegrationAvailability.tsx modified: src/components/IntegrationsView/IntegrationForm/IntegrationForm.module.css modified: src/components/IntegrationsView/IntegrationForm/IntegrationForm.tsx modified: src/components/IntegrationsView/IntegrationsHeader.module.css modified: src/components/IntegrationsView/IntegrationsHeader.tsx new file: src/components/IntegrationsView/IntegrationsTable/ConfirmationTable.module.css new file: src/components/IntegrationsView/IntegrationsTable/ConfirmationTable.tsx new file: src/components/IntegrationsView/IntegrationsTable/DefaultCell.tsx new file: src/components/IntegrationsView/IntegrationsTable/ParametersTable.tsx modified: src/components/IntegrationsView/IntegrationsView.tsx modified: src/components/IntegrationsView/IntermediateIntegration/IntermediateIntegration.tsx modified: src/components/Markdown/CodeBlock.tsx modified: src/components/Markdown/Markdown.module.css modified: src/components/Markdown/Markdown.tsx modified: src/components/Select/Select.stories.tsx modified: src/components/Select/Select.tsx modified: src/components/SmartLink/SmartLink.tsx modified: src/components/Toolbar/Dropdown.tsx modified: src/components/Toolbar/Toolbar.tsx modified: src/debugConfig.ts new file: src/features/AgentUsage/AgentUsage.module.css new file: src/features/AgentUsage/AgentUsage.stories.tsx new file: src/features/AgentUsage/AgentUsage.tsx new file: src/features/AgentUsage/agentUsageSlice.ts new file: src/features/AgentUsage/index.ts modified: src/features/Chat/Chat.test.tsx modified: src/features/Chat/Chat.tsx modified: src/features/Chat/Thread/actions.ts modified: src/features/Chat/Thread/reducer.ts modified: src/features/Chat/Thread/selectors.ts modified: src/features/Chat/Thread/types.ts modified: src/features/Chat/Thread/utils.ts modified: src/features/Config/configSlice.ts modified: src/features/History/historySlice.ts modified: src/features/Integrations/Integrations.tsx new file: src/features/Integrations/convertRawIntegrationFormValues.ts modified: src/features/Integrations/renderIntegrationFormField.tsx modified: src/features/Pages/pagesSlice.ts modified: src/features/ToolConfirmation/confirmationSlice.ts modified: src/hooks/index.ts new file: src/hooks/useAgentUsage.ts modified: src/hooks/useCanUseTools.ts new file: src/hooks/useCapsForToolUse.ts modified: src/hooks/useGetCapsQuery.ts modified: src/hooks/useGoToLink.ts modified: src/hooks/useLinksFromLsp.ts modified: src/hooks/useSendChatRequest.ts modified: src/hooks/useSmartLinks.ts modified: src/services/refact/caps.ts modified: src/services/refact/chat.ts modified: src/services/refact/integrations.ts modified: src/services/refact/links.ts modified: src/services/refact/prompts.ts modified: src/services/refact/tools.ts modified: src/services/refact/types.ts new file: src/utils/extractLinkFromPuzzle.ts modified: src/utils/fencedBackticks.ts new file: src/utils/validateSnakeCase.ts modified: src/vite-env.d.ts modified: vite.config.ts
- Loading branch information
Showing
105 changed files
with
3,019 additions
and
1,301 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
_help | ||
|
||
# Logs | ||
logs | ||
*.log | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -70,6 +70,20 @@ export const goodUser: HttpHandler = http.get( | |
}, | ||
); | ||
|
||
export const nonProUser: HttpHandler = http.get( | ||
"https://www.smallcloud.ai/v1/login", | ||
() => { | ||
return HttpResponse.json({ | ||
retcode: "OK", | ||
account: "[email protected]", | ||
inference_url: "https://www.smallcloud.ai/v1", | ||
inference: "FREE", | ||
metering_balance: -100000, | ||
questionnaire: {}, | ||
}); | ||
}, | ||
); | ||
|
||
export const chatLinks: HttpHandler = http.post( | ||
`http://127.0.0.1:8001${CHAT_LINKS_URL}`, | ||
() => { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import { describe, it, expect } from "vitest"; | ||
import { isAbsolutePath } from "../utils/isAbsolutePath"; | ||
|
||
describe("isAbsolutePath", () => { | ||
it("should return true for Windows absolute paths", () => { | ||
expect( | ||
isAbsolutePath( | ||
"\\\\?\\C:\\Users\\andre\\.config\\integrations.d\\cmdline_example.yaml", | ||
), | ||
).toBe(true); | ||
expect(isAbsolutePath("D:\\Folder\\Subfolder")).toBe(true); | ||
}); | ||
|
||
it("should return true for Unix absolute paths", () => { | ||
expect(isAbsolutePath("/usr/local/bin")).toBe(true); | ||
expect( | ||
isAbsolutePath( | ||
"/Users/andre/.config/integrations.d/cmdline_example.yaml", | ||
), | ||
).toBe(true); | ||
}); | ||
|
||
it("should return true for UNC paths", () => { | ||
expect(isAbsolutePath("\\\\Server\\Share")).toBe(true); | ||
expect(isAbsolutePath("//Server/Share")).toBe(true); | ||
}); | ||
|
||
it("should return false for relative paths", () => { | ||
expect(isAbsolutePath("relative/path")).toBe(false); | ||
expect(isAbsolutePath("folder\\subfolder")).toBe(false); | ||
expect(isAbsolutePath("./relative")).toBe(false); | ||
expect(isAbsolutePath("../relative")).toBe(false); | ||
}); | ||
|
||
it("should return false for empty string", () => { | ||
expect(isAbsolutePath("")).toBe(false); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,5 @@ export { | |
BackToSideBarButton, | ||
RightButton, | ||
RightButtonGroup, | ||
LinkButton, | ||
} from "./Buttons"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.