Elffuss BraidHub

kikocis/continue public

chore: format
Changesetdc42dd67a510f5dea69fc4a5ec61a1ce4f6e17a79a5666c520527d0c39a667a9
AuthorNate <sestinj@gmail.com> · 2025-08-29 08:24 -07:00
CommitterNate <sestinj@gmail.com> · 2025-08-29 08:24 -07:00
Parents66328f2e8dcf

Browse the files at this changeset

6 files changed

modified extensions/cli/AGENTS.md +5 −0
@@ -18,25 +18,30 @@
1818 ### Core Components
1919
2020 1. **Entry Point** (`src/index.ts`): Main CLI logic with two modes:
21+
2122 - **Headless mode**: Non-interactive mode for automation/CI
2223 - **TUI mode**: Terminal User Interface using Ink/React
2324 - **Standard mode**: Traditional readline-based chat interface
2425
2526 2. **Authentication** (`src/auth/`): WorkOS-based authentication system
27+
2628 - `ensureAuth.ts`: Handles authentication flow
2729 - `workos.ts`: WorkOS configuration and token management
2830
2931 3. **Continue SDK Integration** (`src/continueSDK.ts`): Initializes the Continue SDK client with:
32+
3033 - API key authentication
3134 - Assistant configuration (slug-based)
3235 - Organization support
3336
3437 4. **Terminal UI** (`src/ui/`): React/Ink-based TUI components
38+
3539 - `TUIChat.tsx`: Main chat interface component
3640 - `UserInput.tsx`: Input handling with multi-line support
3741 - `TextBuffer.ts`: Text display utilities
3842
3943 5. **Tools System** (`src/tools/`): Built-in development tools including:
44+
4045 - File operations (read, write, list)
4146 - Code search functionality
4247 - Terminal command execution
modified extensions/cli/spec/config-loading.md +2 −0
@@ -23,11 +23,13 @@
2323 **When CLI is invoked, config source is determined in this order:**
2424
2525 1. **CLI `--config` Flag** (highest priority)
26+
2627 - File path (starts with `.`, `/`, `~`): Loads local YAML file
2728 - Assistant slug (`owner/package`): Fetches from Continue platform
2829 - Overrides any saved preferences
2930
3031 2. **Saved Config URI** (if no `--config` flag)
32+
3133 - Retrieved from authentication config
3234 - Converts `file://` URIs back to file paths
3335 - Converts `slug://` URIs back to assistant slugs
modified extensions/cli/spec/onboarding.md +1 −0
@@ -8,6 +8,7 @@
88
99 1. If the --config flag is provided, load this config
1010 2. Otherwise, we will present the user with two options:
11+
1112 - Log in with Continue: log them in, which will automatically create their assistant and then we can load the first assistant from the first org
1213 - Enter your Anthropic API key: let them enter the key, and then either create a ~/.continue/config.yaml with the following contents OR update the existing config.yaml to add the model
1314
modified extensions/cli/src/slashCommands.ts +1 −4
@@ -18,10 +18,7 @@
1818 assistant: AssistantConfig,
1919 ) => Promise<SlashCommandResult> | SlashCommandResult;
2020
21-async function handleHelp(
22- _args: string[],
23- _assistant: AssistantConfig,
24-) {
21+async function handleHelp(_args: string[], _assistant: AssistantConfig) {
2522 const helpMessage = [
2623 chalk.bold("Keyboard Shortcuts:"),
2724 "",
modified extensions/cli/src/ui/hooks/useChat.remote.helpers.ts +2 −2
@@ -100,8 +100,8 @@
100100 // Update chat history from server - now using session.history directly
101101 if (state.session && state.session.history) {
102102 setChatHistory((prevHistory) => {
103- // Use session history directly - no conversion needed
104- const newHistory = state.session.history as ChatHistoryItem[];
103+ // Use session history directly - it already has the correct type
104+ const newHistory = state.session.history;
105105
106106 // Quick length check first
107107 if (prevHistory.length !== newHistory.length) {
modified extensions/cli/src/ui/hooks/useChat.types.ts +2 −13
@@ -1,5 +1,6 @@
11 import { AssistantUnrolled, ModelConfig } from "@continuedev/config-yaml";
22 import { BaseLlmApi } from "@continuedev/openai-adapters";
3+import type { Session } from "core/index.js";
34
45 import { ToolCallPreview } from "../../tools/types.js";
56
@@ -36,19 +37,7 @@
3637 }
3738
3839 export interface RemoteServerState {
39- session: {
40- history: Array<{
41- message: {
42- role: string;
43- content?: string;
44- tool_calls?: any[];
45- };
46- contextItems: any[];
47- toolCallStates?: any[];
48- }>;
49- id: string;
50- workspaceDirectory: string;
51- };
40+ session: Session;
5241 isProcessing: boolean;
5342 messageQueueLength: number;
5443 pendingPermission?: {