2025-06-01 18:30:29 -07:00
|
|
|
export const TIMEOUT_SEC = 60; // 1 minute
|
2025-05-31 00:59:14 +02:00
|
|
|
export const SANDBOX_ROOT_DIR = "/home/daytona";
|
2025-07-16 13:17:35 -07:00
|
|
|
export const DAYTONA_IMAGE_NAME = "daytonaio/langchain-open-swe:0.1.0";
|
|
|
|
|
export const DAYTONA_SNAPSHOT_NAME = "open-swe-vcpu2-mem4-disk5";
|
feat: Update chat UI to be Open SWE specific (#76) (#91)
* init repo-selector
* add branch selector UI, extend GH hook w branch info
* add reconnectOnMount: true resumeStream, remove repo description from selector, fix styling
* styling repo + branch
* udpate getBranch calls to include targetRepo arg
* format
* add search to repo + branch selectors
* add settings icon link to /github for dev convenience
* add default branch selection
* format
* minor cleanup
* init task list UI demo
* individual task component
* tasks real data
* task visual improvement
* persisting tasks, navigate to thread onClick
* task UI
* TaskSidebar, Navigate to tasks
* org tasks by thread
* group by thread
* improve sidebar, task-list, rm github modal on refresh
* collapse sidebar works when viewing a thread
* remove micro-tasks expansion from threads component, change taskId to taskIndex for persistence + simplicity
* init config sidebar ui
* open and close config sidebar
* add ref for getAllTasks + add graph_id metadata
* format
* create threadItem component
* format
* add threadUtils
* centralize + refactor types
* format
* improve thread status, realtime updates
* fix scroll issue
* remove temperature from config-sidebar
* Change model via sidebar
* fix flashing on updates
* init plan UI
* centralize types
* self CR: refactoring, cleanup, remove comments, add todos
* CR: clean comments + logs, fix repo selector bug
* fix: Update example env file in web (#77)
* disable auto scroll on pageload
* reposelector: use default branch not main master
* remove archived tab temp, default branch listed first in branchSelector dropdown
* auto select first repo
* improve status indicator
* refactor status indicator
* simplify status implementation to use Langgraph
* util moved from provider to thread-utils
* linting, improve task completion logic
* feat: Support followup requests (#60)
* feat: Support followup requests
* cr
* cr
* fix
* account for pr already exists
* remove task provider
* fix: Better prompting and context provided for codebase structure awareness (#85)
* fix: Better prompting and context provided for codebase structure awareness
* cr
* linting + skeleton loader
* fix: branch selector, add github api pagination
* small branch update
* update task completion status realtime
* threadItem stream remove flashing/polling
* feat: Create a shared package (#89)
* feat: Create a shared package
* formatting
* fix: drop passing target repo to getBranchName
* drop docs
* use shared package for config fields in config sidebar
* fix: styling and structure for repo/branch selectors
* fix: use shared types/objects for config fields
* default key for configs
* fix: improved styling for threads
* fix renering num tasks
* disable repo branch selector when chat started
* cr
* cr
* bump deps
* fix: rendering plan in interrupt
* cr
* cr
---------
Co-authored-by: Dylan Boudro <121908331+starmorph@users.noreply.github.com>
2025-06-08 17:29:40 -07:00
|
|
|
export const PLAN_INTERRUPT_DELIMITER = ":::";
|
|
|
|
|
export const PLAN_INTERRUPT_ACTION_TITLE = "Approve/Edit Plan";
|
2025-06-11 14:00:08 -07:00
|
|
|
|
|
|
|
|
// Prefix the access token with `x-` so that it's included in requests to the LangGraph server.
|
|
|
|
|
export const GITHUB_TOKEN_COOKIE = "x-github-access-token";
|
2025-06-15 12:37:31 -07:00
|
|
|
export const GITHUB_INSTALLATION_TOKEN_COOKIE = "x-github-installation-token";
|
2025-07-07 15:27:47 -04:00
|
|
|
export const GITHUB_INSTALLATION_NAME = "x-github-installation-name";
|
2025-07-14 09:08:36 -07:00
|
|
|
export const GITHUB_PAT = "x-github-pat";
|
2025-07-23 16:15:57 -07:00
|
|
|
export const GITHUB_INSTALLATION_ID = "x-github-installation-id";
|
2025-08-01 15:50:40 -04:00
|
|
|
export const LOCAL_MODE_HEADER = "x-local-mode";
|
2025-06-19 11:53:56 -07:00
|
|
|
export const DO_NOT_RENDER_ID_PREFIX = "do-not-render-";
|
2025-06-23 17:18:28 -07:00
|
|
|
export const GITHUB_AUTH_STATE_COOKIE = "github_auth_state";
|
|
|
|
|
export const GITHUB_INSTALLATION_ID_COOKIE = "github_installation_id";
|
|
|
|
|
export const GITHUB_TOKEN_TYPE_COOKIE = "github_token_type";
|
2025-06-30 16:43:09 -06:00
|
|
|
|
2025-08-22 16:58:27 -04:00
|
|
|
export const OPEN_SWE_V2_GRAPH_ID = "open-swe-v2";
|
2025-06-30 16:43:09 -06:00
|
|
|
export const MANAGER_GRAPH_ID = "manager";
|
|
|
|
|
export const PLANNER_GRAPH_ID = "planner";
|
|
|
|
|
export const PROGRAMMER_GRAPH_ID = "programmer";
|
|
|
|
|
|
|
|
|
|
export const GITHUB_USER_ID_HEADER = "x-github-user-id";
|
|
|
|
|
export const GITHUB_USER_LOGIN_HEADER = "x-github-user-login";
|
2025-07-08 12:39:17 -07:00
|
|
|
|
|
|
|
|
export const DEFAULT_MCP_SERVERS = {
|
|
|
|
|
"langgraph-docs-mcp": {
|
|
|
|
|
command: "uvx",
|
|
|
|
|
args: [
|
|
|
|
|
"--from",
|
|
|
|
|
"mcpdoc",
|
|
|
|
|
"mcpdoc",
|
|
|
|
|
"--urls",
|
|
|
|
|
"LangGraphPY:https://langchain-ai.github.io/langgraph/llms.txt LangGraphJS:https://langchain-ai.github.io/langgraphjs/llms.txt",
|
|
|
|
|
"--transport",
|
|
|
|
|
"stdio",
|
|
|
|
|
],
|
|
|
|
|
stderr: "inherit" as const,
|
|
|
|
|
},
|
|
|
|
|
};
|
2025-07-17 18:10:48 -07:00
|
|
|
|
|
|
|
|
export const API_KEY_REQUIRED_MESSAGE =
|
|
|
|
|
"Unknown users must provide API keys to use the Open SWE demo application";
|
2025-07-29 17:37:13 -04:00
|
|
|
|
|
|
|
|
export const OPEN_SWE_STREAM_MODE = [
|
|
|
|
|
"values",
|
|
|
|
|
"updates",
|
|
|
|
|
"messages",
|
|
|
|
|
"messages-tuple",
|
|
|
|
|
"custom",
|
|
|
|
|
];
|