Skip to content
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: 6 additions & 0 deletions .changeset/salty-stars-smell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@shellular/protocol": patch
"shellular": patch
---

feat(agent): add Vercel fx
2 changes: 1 addition & 1 deletion biome.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://biomejs.dev/schemas/2.5.8/schema.json",
"$schema": "https://biomejs.dev/schemas/2.5.9/schema.json",
"vcs": {
"enabled": true,
"clientKind": "git",
Expand Down
90 changes: 53 additions & 37 deletions cli/src/agents/agents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,22 @@ export const BUILTIN_AGENT_DESCRIPTORS: Record<AgentId, AgentDescriptor> = {
args: ["acp"],
},
},
fx: {
id: "fx",
name: "Vercel fx",
title: "Vercel Fx",
agentExecutable: "fx",
installationCommands: {
Shell: {
os: ["macos", "linux"],
command: "curl -fsSL https://fx.sh/setup.sh | bash",
},
},
spawn: {
command: "fx",
args: ["acp"],
},
},
"claude-code": {
id: "claude-code",
name: "Claude Code",
Expand Down Expand Up @@ -96,33 +112,21 @@ export const BUILTIN_AGENT_DESCRIPTORS: Record<AgentId, AgentDescriptor> = {
args: ["-y", "@agentclientprotocol/claude-agent-acp"],
},
},
copilot: {
id: "copilot",
name: "GitHub Copilot",
title: "GitHub Copilot",
registryId: "github-copilot-cli",
agentExecutable: "copilot",
pi: {
id: "pi",
name: "Pi",
title: "Pi",
registryId: "pi-acp",
agentExecutable: "pi",
installationCommands: {
Shell: {
os: ["linux", "macos"],
command: "curl -fsSL https://gh.io/copilot-install | bash",
},
npm: {
os: ["all"],
command: "npm install -g @github/copilot",
},
PowerShell: {
os: ["windows"],
command: "winget install GitHub.Copilot",
},
Homebrew: {
os: ["macos", "linux"],
command: "brew install copilot-cli",
command: "npm install -g @earendil-works/pi-coding-agent",
},
},
spawn: {
command: npxCommand,
args: ["-y", "@github/copilot@1.0.39", "--acp"],
args: ["-y", "pi-acp"],
},
},
cursor: {
Expand Down Expand Up @@ -152,23 +156,6 @@ export const BUILTIN_AGENT_DESCRIPTORS: Record<AgentId, AgentDescriptor> = {
args: ["acp"],
},
},
pi: {
id: "pi",
name: "Pi",
title: "Pi",
registryId: "pi-acp",
agentExecutable: "pi",
installationCommands: {
npm: {
os: ["all"],
command: "npm install -g @earendil-works/pi-coding-agent",
},
},
spawn: {
command: npxCommand,
args: ["-y", "pi-acp"],
},
},
hermes: {
id: "hermes",
name: "Hermes",
Expand Down Expand Up @@ -211,6 +198,35 @@ export const BUILTIN_AGENT_DESCRIPTORS: Record<AgentId, AgentDescriptor> = {
args: ["agent", "stdio"],
},
},
copilot: {
id: "copilot",
name: "GitHub Copilot",
title: "GitHub Copilot",
registryId: "github-copilot-cli",
agentExecutable: "copilot",
installationCommands: {
Shell: {
os: ["linux", "macos"],
command: "curl -fsSL https://gh.io/copilot-install | bash",
},
npm: {
os: ["all"],
command: "npm install -g @github/copilot",
},
PowerShell: {
os: ["windows"],
command: "winget install GitHub.Copilot",
},
Homebrew: {
os: ["macos", "linux"],
command: "brew install copilot-cli",
},
},
spawn: {
command: npxCommand,
args: ["-y", "@github/copilot@1.0.39", "--acp"],
},
},
};

export function toAgentInfo(
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
"dev:cli": "pnpm --filter protocol run build && cd cli && pnpm run dev",
"build": "pnpm -r run build",
"ci:publish": "pnpm changeset publish",
"format": "pnpx @biomejs/biome check --write"
"format": "biome check --write"
},
"keywords": [],
"author": "",
"license": "AGPL-3.0-only",
"devDependencies": {
"@biomejs/biome": "2.5.8",
"@biomejs/biome": "2.5.9",
"@changesets/cli": "^2.31.0"
}
}
74 changes: 37 additions & 37 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions protocol/src/agents/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export const AGENT_IDS = [
"opencode",
"codex",
"claude-code",
"fx",
"copilot",
"cursor",
"pi",
Expand Down
1 change: 1 addition & 0 deletions protocol/src/ai-legacy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const _AiBackendSchema = z.enum([
"opencode",
"codex",
"claude-code",
"fx",
"copilot",
"cursor",
"pi",
Expand Down
Loading