| import { SlashCommandItem } from "#/hooks/chat/use-slash-command"; |
|
|
| export const JSON_VIEW_THEME = { |
| base00: "transparent", |
| base01: "var(--cool-grey-900)", |
| base02: "var(--cool-grey-700)", |
| base03: "var(--cool-grey-600)", |
| base04: "var(--cool-grey-500)", |
| base05: "var(--cool-grey-200)", |
| base06: "var(--cool-grey-100)", |
| base07: "#ffffff", |
| base08: "#ff5370", |
| base09: "#f78c6c", |
| base0A: "#ffcb6b", |
| base0B: "#c3e88d", |
| base0C: "#89ddff", |
| base0D: "#82aaff", |
| base0E: "#c792ea", |
| base0F: "#ff5370", |
| }; |
|
|
| export const PRODUCT_URL = { |
| PRODUCTION: "https://app.all-hands.dev", |
| }; |
|
|
| export const SETTINGS_FORM = { |
| LABEL_CLASSNAME: "text-[11px] font-medium leading-4 tracking-[0.11px]", |
| }; |
|
|
| |
| export const CHAT_INPUT = { |
| HEIGHT_THRESHOLD: 100, |
| }; |
|
|
| |
| export const EPS = 1.5; |
|
|
| |
| export const BTW_COMMAND = "/btw"; |
|
|
| |
| export const MODEL_COMMAND = "/model"; |
|
|
| |
| export const GOAL_COMMAND = "/goal"; |
|
|
| |
| export const PLAN_COMMAND = "/plan"; |
|
|
| |
| export const CODE_COMMAND = "/code"; |
|
|
| |
| export const BUILT_IN_COMMANDS: SlashCommandItem[] = [ |
| { |
| skill: { |
| name: "new", |
| type: "agentskills", |
| source: null, |
| content: "Creates a new conversation using the same runtime", |
| triggers: ["/new"], |
| }, |
| command: "/new", |
| }, |
| { |
| skill: { |
| name: "btw", |
| type: "agentskills", |
| source: null, |
| content: "Ask the agent a side question without derailing the main task", |
| triggers: [BTW_COMMAND], |
| }, |
| command: BTW_COMMAND, |
| }, |
| { |
| skill: { |
| name: "model", |
| type: "agentskills", |
| source: null, |
| content: |
| "List saved LLM profiles, or switch the conversation LLM profile with /model <name>", |
| triggers: [MODEL_COMMAND], |
| }, |
| command: MODEL_COMMAND, |
| }, |
| { |
| skill: { |
| name: "goal", |
| type: "agentskills", |
| source: null, |
| content: |
| "Drive the agent toward an objective until a judge says it's done — /goal <objective> or /goal --max <n> <objective>", |
| triggers: [GOAL_COMMAND], |
| }, |
| command: GOAL_COMMAND, |
| }, |
| { |
| skill: { |
| name: "plan", |
| type: "agentskills", |
| source: null, |
| content: |
| "Switch the conversation into Plan mode, or start planning immediately with /plan <task>", |
| triggers: [PLAN_COMMAND], |
| }, |
| command: PLAN_COMMAND, |
| }, |
| { |
| skill: { |
| name: "code", |
| type: "agentskills", |
| source: null, |
| content: |
| "Switch the conversation back to Code mode, or resume immediately with /code <task>", |
| triggers: [CODE_COMMAND], |
| }, |
| command: CODE_COMMAND, |
| }, |
| ]; |
|
|
| |
| export const METADATA_PREFIXES: readonly string[] = [ |
| "The following information has been included", |
| "It may or may not be relevant", |
| "Skill location:", |
| "(Use this path to resolve", |
| ]; |
|
|