@pairdraw/core 0.22.2 → 0.22.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  //#region src/ai/providers.d.ts
2
2
  /** ACP agents, direct AI providers, and the models each provider recommends. */
3
- type ACPAgentID = 'claude-code' | 'codex' | 'gemini-cli' | 'omp';
3
+ type ACPAgentID = 'claude-code' | 'codex' | 'gemini-cli' | 'agy' | 'omp';
4
4
  interface ACPAgentDef {
5
5
  id: ACPAgentID;
6
6
  name: string;
@@ -1 +1 @@
1
- {"version":3,"file":"providers.d.ts","names":[],"sources":["../../src/ai/providers.ts"],"mappings":";;KAIY;UAEK;EACf,IAAI;EACJ;EACA;EACA;;EAEA;;EAEA;;EAEA;EACA;;;;;;EAMA;IAAW;IAAY;;IAAqB;IAAiB;IAAgB;;;;;;EAK7E;;cAGW,YAAY;KA8Cb,oVAuBD;cAEE;KACD,0BAA0B;UAErB;EACf;EACA;EACA;EACA;EACA;EACA;EACA;;EAEA,qBAAqB;;EAErB;IAAY;IAAsB;IAAuB;;;UAG1C;EACf,IAAI;EACJ;EACA;EACA;EACA,QAAQ;EACR;EACA;EACA;;EAEA;;cAmDW;cAEA,cAAc;cAoSd,qBAAqB;cACrB"}
1
+ {"version":3,"file":"providers.d.ts","names":[],"sources":["../../src/ai/providers.ts"],"mappings":";;KAIY;UAEK;EACf,IAAI;EACJ;EACA;EACA;;EAEA;;EAEA;;EAEA;EACA;;;;;;EAMA;IAAW;IAAY;;IAAqB;IAAiB;IAAgB;;;;;;EAK7E;;cAGW,YAAY;KAuDb,oVAuBD;cAEE;KACD,0BAA0B;UAErB;EACf;EACA;EACA;EACA;EACA;EACA;EACA;;EAEA,qBAAqB;;EAErB;IAAY;IAAsB;IAAuB;;;UAG1C;EACf,IAAI;EACJ;EACA;EACA;EACA,QAAQ;EACR;EACA;EACA;;EAEA;;cAmDW;cAEA,cAAc;cAoSd,qBAAqB;cACrB"}
@@ -44,6 +44,18 @@ const ACP_AGENTS = [
44
44
  setupURL: "https://geminicli.com/docs/get-started/installation/",
45
45
  installCommand: "npm i -g @google/gemini-cli"
46
46
  },
47
+ {
48
+ id: "agy",
49
+ name: "agy",
50
+ command: "agy",
51
+ args: ["acp"],
52
+ setupURL: "https://antigravity.google/docs/cli/overview",
53
+ installCommand: "curl -fsSL https://antigravity.google/cli/install.sh | bash",
54
+ signIn: {
55
+ via: "acp",
56
+ method: "oauth-personal"
57
+ }
58
+ },
47
59
  {
48
60
  id: "omp",
49
61
  name: "omp",
@@ -1 +1 @@
1
- {"version":3,"file":"providers.js","names":[],"sources":["../../src/ai/providers.ts"],"sourcesContent":["/** ACP agents, direct AI providers, and the models each provider recommends. */\n\nimport { OPENAI_COMPATIBLE_PRESETS } from './presets'\n\nexport type ACPAgentID = 'claude-code' | 'codex' | 'gemini-cli' | 'omp'\n\nexport interface ACPAgentDef {\n id: ACPAgentID\n name: string\n command: string\n args: string[]\n /** The agent's own CLI, when the ACP program is a separate adapter for it. */\n cliCommand?: string\n /** npm package that provides `command` when it is an adapter. */\n adapterPackage?: string\n /** The vendor's installation guide for the agent itself. */\n setupURL?: string\n installCommand?: string\n /**\n * The ACP auth method setup signs in with, once the agent offers it. `acp` methods run inside\n * the agent through `authenticate`; `terminal` methods run the agent's command with `args`,\n * which the desktop shell scope pins under `<command>-sign-in`.\n */\n signIn?: { via: 'acp'; method: string } | { via: 'terminal'; method: string; args: string[] }\n /**\n * The agent runs on the providers and keys already set up in its own configuration and has no\n * account to sign in to, so setup shows no sign-in step.\n */\n ownCredentials?: boolean\n}\n\nexport const ACP_AGENTS: ACPAgentDef[] = [\n {\n id: 'claude-code',\n name: 'Claude Code',\n command: 'claude-agent-acp',\n args: [],\n cliCommand: 'claude',\n adapterPackage: '@agentclientprotocol/claude-agent-acp',\n setupURL: 'https://code.claude.com/docs/en/setup',\n installCommand: 'npm i -g @agentclientprotocol/claude-agent-acp',\n signIn: {\n via: 'terminal',\n method: 'claude-ai-login',\n args: ['--cli', 'auth', 'login', '--claudeai']\n }\n },\n {\n id: 'codex',\n name: 'Codex',\n command: 'codex-acp',\n args: [],\n cliCommand: 'codex',\n adapterPackage: '@agentclientprotocol/codex-acp',\n setupURL: 'https://developers.openai.com/codex/cli',\n installCommand: 'npm i -g @agentclientprotocol/codex-acp',\n signIn: { via: 'acp', method: 'chat-gpt' }\n },\n {\n id: 'gemini-cli',\n name: 'Gemini CLI',\n command: 'gemini',\n args: ['--acp'],\n setupURL: 'https://geminicli.com/docs/get-started/installation/',\n installCommand: 'npm i -g @google/gemini-cli'\n },\n {\n id: 'omp',\n name: 'omp',\n command: 'omp',\n args: ['acp'],\n setupURL: 'https://omp.sh',\n installCommand: 'bun i -g @oh-my-pi/pi-coding-agent',\n ownCredentials: true\n }\n]\n\nexport type AIProviderID =\n | 'openrouter'\n | 'anthropic'\n | 'openai'\n | 'chatgpt'\n | 'google'\n | 'deepseek'\n | 'openai-compatible'\n | 'zai'\n | 'minimax'\n | 'xai'\n | 'meta'\n | 'kimi-for-coding'\n | 'moonshot'\n | 'together'\n | 'fireworks'\n | 'opencode-zen'\n | 'opencode-go'\n | 'anthropic-compatible'\n | 'amazon-bedrock'\n | 'google-vertex'\n | 'pairdraw'\n | 'harness:pi'\n | `acp:${ACPAgentID}`\n\nexport const REASONING_EFFORTS = ['minimal', 'low', 'medium', 'high', 'xhigh'] as const\nexport type ReasoningEffort = (typeof REASONING_EFFORTS)[number]\n\nexport interface ModelOption {\n id: string\n name: string\n tag?: string\n capabilities?: readonly ('tools' | 'vision')[]\n recommendedMaxOutputTokens?: number\n releaseDate?: string\n status?: 'active' | 'beta' | 'deprecated'\n /** Lowest reasoning effort the model accepts; lower thinking levels, Off included, use it. */\n minReasoningEffort?: ReasoningEffort\n /** List price in US dollars per million tokens, when the catalog knows it; absent otherwise. */\n pricing?: { inputPerMTok: number; outputPerMTok: number; cacheReadPerMTok?: number }\n}\n\nexport interface AIProviderDef {\n id: AIProviderID\n name: string\n keyPlaceholder: string\n keyURL: string\n models: ModelOption[]\n defaultModel: string\n supportsCustomBaseURL?: boolean\n supportsCustomModel?: boolean\n /** The credential comes from signing in to an account; there is no key to paste. */\n signInOnly?: boolean\n}\n\nconst OPENAI_MODELS: ModelOption[] = [\n {\n id: 'gpt-6.1-sol',\n name: 'GPT-6.1 Sol',\n tag: 'Best',\n capabilities: ['tools', 'vision'],\n minReasoningEffort: 'low'\n },\n {\n id: 'gpt-6-astra',\n name: 'GPT-6 Astra',\n tag: 'Smartest',\n capabilities: ['tools', 'vision'],\n minReasoningEffort: 'low'\n },\n { id: 'gpt-6-luna', name: 'GPT-6 Luna', tag: 'Fast', capabilities: ['tools', 'vision'] }\n]\n\n/** Claude on a cloud platform: the same models under the platform's own IDs. */\nfunction claudeModels(prefix: string): ModelOption[] {\n return [\n {\n id: `${prefix}claude-sonnet-5-5`,\n name: 'Claude Sonnet 5.5',\n tag: 'Best for design',\n capabilities: ['tools', 'vision']\n },\n {\n id: `${prefix}claude-opus-5-5`,\n name: 'Claude Opus 5.5',\n tag: 'Deep reasoning',\n capabilities: ['tools', 'vision']\n },\n {\n id: `${prefix}claude-fable-5-1`,\n name: 'Claude Fable 5.1',\n tag: 'Most capable',\n capabilities: ['tools', 'vision']\n },\n {\n id: `${prefix}claude-haiku-5-5`,\n name: 'Claude Haiku 5.5',\n tag: 'Fast',\n capabilities: ['tools', 'vision']\n }\n ]\n}\n\nexport const HARNESS_PROVIDER_ID = 'harness:pi' as const\n\nexport const AI_PROVIDERS: AIProviderDef[] = [\n {\n id: HARNESS_PROVIDER_ID,\n name: 'Pi',\n keyPlaceholder: 'AI Gateway key (optional)',\n keyURL: '',\n defaultModel: '',\n supportsCustomModel: true,\n models: []\n },\n {\n id: 'openrouter',\n name: 'OpenRouter',\n keyPlaceholder: 'sk-or-…',\n keyURL: 'https://openrouter.ai/keys',\n defaultModel: 'anthropic/claude-sonnet-5.5',\n supportsCustomModel: true,\n models: [\n {\n id: 'anthropic/claude-sonnet-5.5',\n name: 'Claude Sonnet 5.5',\n tag: 'Best for design',\n capabilities: ['tools', 'vision']\n },\n {\n id: 'anthropic/claude-opus-5.5',\n name: 'Claude Opus 5.5',\n tag: 'Deep reasoning',\n capabilities: ['tools', 'vision']\n },\n {\n id: 'anthropic/claude-fable-5.1',\n name: 'Claude Fable 5.1',\n tag: 'Most capable',\n capabilities: ['tools', 'vision']\n },\n {\n id: 'anthropic/claude-haiku-5.5',\n name: 'Claude Haiku 5.5',\n tag: 'Fast',\n capabilities: ['tools', 'vision']\n },\n {\n id: 'openai/gpt-6.1-sol',\n name: 'GPT-6.1 Sol',\n tag: 'Latest OpenAI',\n capabilities: ['tools', 'vision']\n },\n {\n id: 'google/gemini-3.8-flash',\n name: 'Gemini 3.8 Flash',\n tag: 'Fast',\n capabilities: ['tools', 'vision']\n },\n { id: 'z-ai/glm-5.3', name: 'GLM-5.3', capabilities: ['tools'] },\n {\n id: 'deepseek/deepseek-v4-pro',\n name: 'DeepSeek V4 Pro',\n tag: 'Reasoning',\n capabilities: ['tools']\n },\n {\n id: 'moonshotai/kimi-k3',\n name: 'Kimi K3',\n tag: 'Vision + code',\n capabilities: ['tools', 'vision']\n },\n {\n id: 'minimax/minimax-m3.1-flash:free',\n name: 'MiniMax-M3.1-Flash',\n tag: 'Free',\n capabilities: ['tools', 'vision']\n },\n {\n id: 'google/gemma-4-31b-it:free',\n name: 'Gemma 4 31B',\n tag: 'Free',\n capabilities: ['tools', 'vision']\n }\n ]\n },\n {\n id: 'anthropic',\n name: 'Anthropic',\n keyPlaceholder: 'sk-ant-…',\n keyURL: 'https://console.anthropic.com/settings/keys',\n defaultModel: 'claude-sonnet-5-5',\n models: [\n {\n id: 'claude-sonnet-5-5',\n name: 'Claude Sonnet 5.5',\n tag: 'Best for design',\n capabilities: ['tools', 'vision']\n },\n {\n id: 'claude-opus-5-5',\n name: 'Claude Opus 5.5',\n tag: 'Deep reasoning',\n capabilities: ['tools', 'vision']\n },\n {\n id: 'claude-fable-5-1',\n name: 'Claude Fable 5.1',\n tag: 'Most capable',\n capabilities: ['tools', 'vision']\n },\n {\n id: 'claude-haiku-5-5',\n name: 'Claude Haiku 5.5',\n tag: 'Fast',\n capabilities: ['tools', 'vision']\n }\n ]\n },\n {\n id: 'openai',\n name: 'OpenAI',\n keyPlaceholder: 'sk-…',\n keyURL: 'https://platform.openai.com/api-keys',\n defaultModel: 'gpt-6.1-sol',\n models: OPENAI_MODELS\n },\n {\n id: 'chatgpt',\n name: 'ChatGPT',\n keyPlaceholder: '',\n keyURL: '',\n defaultModel: 'gpt-6.1-sol',\n signInOnly: true,\n // The Codex backend rejects minimal effort on every model.\n models: OPENAI_MODELS.map((model) => ({ ...model, minReasoningEffort: 'low' }))\n },\n {\n id: 'google',\n name: 'Google AI',\n keyPlaceholder: 'AIza…',\n keyURL: 'https://aistudio.google.com/apikey',\n defaultModel: 'gemini-3.8-flash',\n models: [\n {\n id: 'gemini-3.8-flash',\n name: 'Gemini 3.8 Flash',\n tag: 'Best',\n capabilities: ['tools', 'vision']\n },\n {\n id: 'gemini-4-argon',\n name: 'Gemini 4 Argon',\n tag: 'Most capable',\n capabilities: ['tools', 'vision'],\n minReasoningEffort: 'low'\n },\n {\n id: 'gemini-flash-latest',\n name: 'Gemini Flash Latest',\n tag: 'Alias',\n capabilities: ['tools', 'vision']\n },\n {\n id: 'gemini-3.1-pro-preview',\n name: 'Gemini 3.1 Pro',\n tag: 'Pro',\n capabilities: ['tools', 'vision'],\n minReasoningEffort: 'low'\n }\n ]\n },\n {\n id: 'deepseek',\n name: 'DeepSeek',\n keyPlaceholder: 'sk-…',\n keyURL: 'https://platform.deepseek.com/api_keys',\n defaultModel: 'deepseek-flash',\n models: [\n { id: 'deepseek-flash', name: 'DeepSeek Flash', tag: 'Fast' },\n { id: 'deepseek-v4-pro', name: 'DeepSeek V4 Pro', tag: 'Reasoning' }\n ]\n },\n {\n id: 'zai',\n name: 'Z.ai',\n keyPlaceholder: 'API key',\n keyURL: 'https://docs.z.ai/devpack/quick-start',\n defaultModel: 'glm-5.3',\n models: [\n { id: 'glm-5.3', name: 'GLM-5.3', tag: 'Best', minReasoningEffort: 'low' },\n {\n id: 'glm-5.3-flash',\n name: 'GLM-5.3-Flash',\n tag: 'Fast',\n capabilities: ['tools', 'vision'],\n minReasoningEffort: 'low'\n },\n {\n id: 'glm-5.3-flashx',\n name: 'GLM-5.3-FlashX',\n capabilities: ['tools', 'vision'],\n minReasoningEffort: 'low'\n },\n {\n id: 'glm-5v-turbo',\n name: 'GLM-5V-Turbo',\n tag: 'Vision',\n capabilities: ['tools', 'vision']\n },\n { id: 'glm-5.2', name: 'GLM-5.2' },\n { id: 'glm-4.7-flash', name: 'GLM-4.7-Flash', tag: 'Free' }\n ]\n },\n {\n id: 'minimax',\n name: 'MiniMax',\n keyPlaceholder: 'API key',\n keyURL: 'https://platform.minimax.io/user-center/basic-information/interface-key',\n defaultModel: 'MiniMax-M3.1-Flash',\n models: [\n {\n id: 'MiniMax-M3.1-Flash',\n name: 'MiniMax-M3.1-Flash',\n tag: 'Best',\n minReasoningEffort: 'low'\n },\n { id: 'MiniMax-M3', name: 'MiniMax-M3' }\n ]\n },\n ...OPENAI_COMPATIBLE_PRESETS,\n {\n id: 'openai-compatible',\n name: 'OpenAI-compatible',\n keyPlaceholder: 'API key',\n keyURL: '',\n defaultModel: '',\n models: [],\n supportsCustomBaseURL: true,\n supportsCustomModel: true\n },\n {\n id: 'anthropic-compatible',\n name: 'Anthropic-compatible',\n keyPlaceholder: 'API key',\n keyURL: '',\n defaultModel: '',\n models: [],\n supportsCustomBaseURL: true,\n supportsCustomModel: true\n },\n {\n // Claude in Amazon Bedrock: the Messages API at `bedrock-mantle.<region>.api.aws`, reached\n // with a Bedrock API key or AWS access keys. The connection's base URL holds the region.\n id: 'amazon-bedrock',\n name: 'Amazon Bedrock',\n keyPlaceholder: 'ABSK… / bedrock-api-key-…',\n keyURL: 'https://console.aws.amazon.com/bedrock/home#/api-keys',\n defaultModel: 'anthropic.claude-sonnet-5-5',\n supportsCustomModel: true,\n models: claudeModels('anthropic.')\n },\n {\n // Vertex AI serves Claude through `:rawPredict` and Gemini through `:generateContent`. The\n // connection's base URL holds the project and location.\n id: 'google-vertex',\n name: 'Google Vertex AI',\n keyPlaceholder: 'ya29.… / AIza…',\n keyURL: 'https://console.cloud.google.com/vertex-ai',\n defaultModel: 'claude-sonnet-5-5',\n supportsCustomModel: true,\n models: [\n ...claudeModels(''),\n {\n id: 'gemini-3.8-flash',\n name: 'Gemini 3.8 Flash',\n tag: 'Fast',\n capabilities: ['tools', 'vision']\n },\n {\n id: 'gemini-4-argon',\n name: 'Gemini 4 Argon',\n capabilities: ['tools', 'vision'],\n minReasoningEffort: 'low'\n }\n ]\n },\n {\n id: 'pairdraw',\n name: 'Pairdraw Cloud',\n keyPlaceholder: '',\n keyURL: '',\n defaultModel: '',\n models: []\n }\n]\n\nexport const DEFAULT_AI_PROVIDER: AIProviderID = 'openai-compatible'\nexport const DEFAULT_AI_MODEL =\n AI_PROVIDERS.find((provider) => provider.id === DEFAULT_AI_PROVIDER)?.defaultModel ?? ''\n"],"mappings":";;;AA+BA,MAAa,aAA4B;CACvC;EACE,IAAI;EACJ,MAAM;EACN,SAAS;EACT,MAAM,CAAC;EACP,YAAY;EACZ,gBAAgB;EAChB,UAAU;EACV,gBAAgB;EAChB,QAAQ;GACN,KAAK;GACL,QAAQ;GACR,MAAM;IAAC;IAAS;IAAQ;IAAS;GAAY;EAC/C;CACF;CACA;EACE,IAAI;EACJ,MAAM;EACN,SAAS;EACT,MAAM,CAAC;EACP,YAAY;EACZ,gBAAgB;EAChB,UAAU;EACV,gBAAgB;EAChB,QAAQ;GAAE,KAAK;GAAO,QAAQ;EAAW;CAC3C;CACA;EACE,IAAI;EACJ,MAAM;EACN,SAAS;EACT,MAAM,CAAC,OAAO;EACd,UAAU;EACV,gBAAgB;CAClB;CACA;EACE,IAAI;EACJ,MAAM;EACN,SAAS;EACT,MAAM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IAAI;GAAc,MAAM;EAAa,CACzC;CACF;CACA,GAAG;CACH;EACE,IAAI;EACJ,MAAM;EACN,gBAAgB;EAChB,QAAQ;EACR,cAAc;EACd,QAAQ,CAAC;EACT,uBAAuB;EACvB,qBAAqB;CACvB;CACA;EACE,IAAI;EACJ,MAAM;EACN,gBAAgB;EAChB,QAAQ;EACR,cAAc;EACd,QAAQ,CAAC;EACT,uBAAuB;EACvB,qBAAqB;CACvB;CACA;EAGE,IAAI;EACJ,MAAM;EACN,gBAAgB;EAChB,QAAQ;EACR,cAAc;EACd,qBAAqB;EACrB,QAAQ,aAAa,YAAY;CACnC;CACA;EAGE,IAAI;EACJ,MAAM;EACN,gBAAgB;EAChB,QAAQ;EACR,cAAc;EACd,qBAAqB;EACrB,QAAQ;GACN,GAAG,aAAa,EAAE;GAClB;IACE,IAAI;IACJ,MAAM;IACN,KAAK;IACL,cAAc,CAAC,SAAS,QAAQ;GAClC;GACA;IACE,IAAI;IACJ,MAAM;IACN,cAAc,CAAC,SAAS,QAAQ;IAChC,oBAAoB;GACtB;EACF;CACF;CACA;EACE,IAAI;EACJ,MAAM;EACN,gBAAgB;EAChB,QAAQ;EACR,cAAc;EACd,QAAQ,CAAC;CACX;AACF;AAEA,MAAa,sBAAoC;AACjD,MAAa,mBACX,aAAa,MAAM,aAAa,SAAS,OAAA,mBAA0B,CAAC,EAAE,gBAAgB"}
1
+ {"version":3,"file":"providers.js","names":[],"sources":["../../src/ai/providers.ts"],"sourcesContent":["/** ACP agents, direct AI providers, and the models each provider recommends. */\n\nimport { OPENAI_COMPATIBLE_PRESETS } from './presets'\n\nexport type ACPAgentID = 'claude-code' | 'codex' | 'gemini-cli' | 'agy' | 'omp'\n\nexport interface ACPAgentDef {\n id: ACPAgentID\n name: string\n command: string\n args: string[]\n /** The agent's own CLI, when the ACP program is a separate adapter for it. */\n cliCommand?: string\n /** npm package that provides `command` when it is an adapter. */\n adapterPackage?: string\n /** The vendor's installation guide for the agent itself. */\n setupURL?: string\n installCommand?: string\n /**\n * The ACP auth method setup signs in with, once the agent offers it. `acp` methods run inside\n * the agent through `authenticate`; `terminal` methods run the agent's command with `args`,\n * which the desktop shell scope pins under `<command>-sign-in`.\n */\n signIn?: { via: 'acp'; method: string } | { via: 'terminal'; method: string; args: string[] }\n /**\n * The agent runs on the providers and keys already set up in its own configuration and has no\n * account to sign in to, so setup shows no sign-in step.\n */\n ownCredentials?: boolean\n}\n\nexport const ACP_AGENTS: ACPAgentDef[] = [\n {\n id: 'claude-code',\n name: 'Claude Code',\n command: 'claude-agent-acp',\n args: [],\n cliCommand: 'claude',\n adapterPackage: '@agentclientprotocol/claude-agent-acp',\n setupURL: 'https://code.claude.com/docs/en/setup',\n installCommand: 'npm i -g @agentclientprotocol/claude-agent-acp',\n signIn: {\n via: 'terminal',\n method: 'claude-ai-login',\n args: ['--cli', 'auth', 'login', '--claudeai']\n }\n },\n {\n id: 'codex',\n name: 'Codex',\n command: 'codex-acp',\n args: [],\n cliCommand: 'codex',\n adapterPackage: '@agentclientprotocol/codex-acp',\n setupURL: 'https://developers.openai.com/codex/cli',\n installCommand: 'npm i -g @agentclientprotocol/codex-acp',\n signIn: { via: 'acp', method: 'chat-gpt' }\n },\n {\n id: 'gemini-cli',\n name: 'Gemini CLI',\n command: 'gemini',\n args: ['--acp'],\n setupURL: 'https://geminicli.com/docs/get-started/installation/',\n installCommand: 'npm i -g @google/gemini-cli'\n },\n {\n id: 'agy',\n name: 'agy',\n command: 'agy',\n args: ['acp'],\n setupURL: 'https://antigravity.google/docs/cli/overview',\n installCommand: 'curl -fsSL https://antigravity.google/cli/install.sh | bash',\n signIn: { via: 'acp', method: 'oauth-personal' }\n },\n {\n id: 'omp',\n name: 'omp',\n command: 'omp',\n args: ['acp'],\n setupURL: 'https://omp.sh',\n installCommand: 'bun i -g @oh-my-pi/pi-coding-agent',\n ownCredentials: true\n }\n]\n\nexport type AIProviderID =\n | 'openrouter'\n | 'anthropic'\n | 'openai'\n | 'chatgpt'\n | 'google'\n | 'deepseek'\n | 'openai-compatible'\n | 'zai'\n | 'minimax'\n | 'xai'\n | 'meta'\n | 'kimi-for-coding'\n | 'moonshot'\n | 'together'\n | 'fireworks'\n | 'opencode-zen'\n | 'opencode-go'\n | 'anthropic-compatible'\n | 'amazon-bedrock'\n | 'google-vertex'\n | 'pairdraw'\n | 'harness:pi'\n | `acp:${ACPAgentID}`\n\nexport const REASONING_EFFORTS = ['minimal', 'low', 'medium', 'high', 'xhigh'] as const\nexport type ReasoningEffort = (typeof REASONING_EFFORTS)[number]\n\nexport interface ModelOption {\n id: string\n name: string\n tag?: string\n capabilities?: readonly ('tools' | 'vision')[]\n recommendedMaxOutputTokens?: number\n releaseDate?: string\n status?: 'active' | 'beta' | 'deprecated'\n /** Lowest reasoning effort the model accepts; lower thinking levels, Off included, use it. */\n minReasoningEffort?: ReasoningEffort\n /** List price in US dollars per million tokens, when the catalog knows it; absent otherwise. */\n pricing?: { inputPerMTok: number; outputPerMTok: number; cacheReadPerMTok?: number }\n}\n\nexport interface AIProviderDef {\n id: AIProviderID\n name: string\n keyPlaceholder: string\n keyURL: string\n models: ModelOption[]\n defaultModel: string\n supportsCustomBaseURL?: boolean\n supportsCustomModel?: boolean\n /** The credential comes from signing in to an account; there is no key to paste. */\n signInOnly?: boolean\n}\n\nconst OPENAI_MODELS: ModelOption[] = [\n {\n id: 'gpt-6.1-sol',\n name: 'GPT-6.1 Sol',\n tag: 'Best',\n capabilities: ['tools', 'vision'],\n minReasoningEffort: 'low'\n },\n {\n id: 'gpt-6-astra',\n name: 'GPT-6 Astra',\n tag: 'Smartest',\n capabilities: ['tools', 'vision'],\n minReasoningEffort: 'low'\n },\n { id: 'gpt-6-luna', name: 'GPT-6 Luna', tag: 'Fast', capabilities: ['tools', 'vision'] }\n]\n\n/** Claude on a cloud platform: the same models under the platform's own IDs. */\nfunction claudeModels(prefix: string): ModelOption[] {\n return [\n {\n id: `${prefix}claude-sonnet-5-5`,\n name: 'Claude Sonnet 5.5',\n tag: 'Best for design',\n capabilities: ['tools', 'vision']\n },\n {\n id: `${prefix}claude-opus-5-5`,\n name: 'Claude Opus 5.5',\n tag: 'Deep reasoning',\n capabilities: ['tools', 'vision']\n },\n {\n id: `${prefix}claude-fable-5-1`,\n name: 'Claude Fable 5.1',\n tag: 'Most capable',\n capabilities: ['tools', 'vision']\n },\n {\n id: `${prefix}claude-haiku-5-5`,\n name: 'Claude Haiku 5.5',\n tag: 'Fast',\n capabilities: ['tools', 'vision']\n }\n ]\n}\n\nexport const HARNESS_PROVIDER_ID = 'harness:pi' as const\n\nexport const AI_PROVIDERS: AIProviderDef[] = [\n {\n id: HARNESS_PROVIDER_ID,\n name: 'Pi',\n keyPlaceholder: 'AI Gateway key (optional)',\n keyURL: '',\n defaultModel: '',\n supportsCustomModel: true,\n models: []\n },\n {\n id: 'openrouter',\n name: 'OpenRouter',\n keyPlaceholder: 'sk-or-…',\n keyURL: 'https://openrouter.ai/keys',\n defaultModel: 'anthropic/claude-sonnet-5.5',\n supportsCustomModel: true,\n models: [\n {\n id: 'anthropic/claude-sonnet-5.5',\n name: 'Claude Sonnet 5.5',\n tag: 'Best for design',\n capabilities: ['tools', 'vision']\n },\n {\n id: 'anthropic/claude-opus-5.5',\n name: 'Claude Opus 5.5',\n tag: 'Deep reasoning',\n capabilities: ['tools', 'vision']\n },\n {\n id: 'anthropic/claude-fable-5.1',\n name: 'Claude Fable 5.1',\n tag: 'Most capable',\n capabilities: ['tools', 'vision']\n },\n {\n id: 'anthropic/claude-haiku-5.5',\n name: 'Claude Haiku 5.5',\n tag: 'Fast',\n capabilities: ['tools', 'vision']\n },\n {\n id: 'openai/gpt-6.1-sol',\n name: 'GPT-6.1 Sol',\n tag: 'Latest OpenAI',\n capabilities: ['tools', 'vision']\n },\n {\n id: 'google/gemini-3.8-flash',\n name: 'Gemini 3.8 Flash',\n tag: 'Fast',\n capabilities: ['tools', 'vision']\n },\n { id: 'z-ai/glm-5.3', name: 'GLM-5.3', capabilities: ['tools'] },\n {\n id: 'deepseek/deepseek-v4-pro',\n name: 'DeepSeek V4 Pro',\n tag: 'Reasoning',\n capabilities: ['tools']\n },\n {\n id: 'moonshotai/kimi-k3',\n name: 'Kimi K3',\n tag: 'Vision + code',\n capabilities: ['tools', 'vision']\n },\n {\n id: 'minimax/minimax-m3.1-flash:free',\n name: 'MiniMax-M3.1-Flash',\n tag: 'Free',\n capabilities: ['tools', 'vision']\n },\n {\n id: 'google/gemma-4-31b-it:free',\n name: 'Gemma 4 31B',\n tag: 'Free',\n capabilities: ['tools', 'vision']\n }\n ]\n },\n {\n id: 'anthropic',\n name: 'Anthropic',\n keyPlaceholder: 'sk-ant-…',\n keyURL: 'https://console.anthropic.com/settings/keys',\n defaultModel: 'claude-sonnet-5-5',\n models: [\n {\n id: 'claude-sonnet-5-5',\n name: 'Claude Sonnet 5.5',\n tag: 'Best for design',\n capabilities: ['tools', 'vision']\n },\n {\n id: 'claude-opus-5-5',\n name: 'Claude Opus 5.5',\n tag: 'Deep reasoning',\n capabilities: ['tools', 'vision']\n },\n {\n id: 'claude-fable-5-1',\n name: 'Claude Fable 5.1',\n tag: 'Most capable',\n capabilities: ['tools', 'vision']\n },\n {\n id: 'claude-haiku-5-5',\n name: 'Claude Haiku 5.5',\n tag: 'Fast',\n capabilities: ['tools', 'vision']\n }\n ]\n },\n {\n id: 'openai',\n name: 'OpenAI',\n keyPlaceholder: 'sk-…',\n keyURL: 'https://platform.openai.com/api-keys',\n defaultModel: 'gpt-6.1-sol',\n models: OPENAI_MODELS\n },\n {\n id: 'chatgpt',\n name: 'ChatGPT',\n keyPlaceholder: '',\n keyURL: '',\n defaultModel: 'gpt-6.1-sol',\n signInOnly: true,\n // The Codex backend rejects minimal effort on every model.\n models: OPENAI_MODELS.map((model) => ({ ...model, minReasoningEffort: 'low' }))\n },\n {\n id: 'google',\n name: 'Google AI',\n keyPlaceholder: 'AIza…',\n keyURL: 'https://aistudio.google.com/apikey',\n defaultModel: 'gemini-3.8-flash',\n models: [\n {\n id: 'gemini-3.8-flash',\n name: 'Gemini 3.8 Flash',\n tag: 'Best',\n capabilities: ['tools', 'vision']\n },\n {\n id: 'gemini-4-argon',\n name: 'Gemini 4 Argon',\n tag: 'Most capable',\n capabilities: ['tools', 'vision'],\n minReasoningEffort: 'low'\n },\n {\n id: 'gemini-flash-latest',\n name: 'Gemini Flash Latest',\n tag: 'Alias',\n capabilities: ['tools', 'vision']\n },\n {\n id: 'gemini-3.1-pro-preview',\n name: 'Gemini 3.1 Pro',\n tag: 'Pro',\n capabilities: ['tools', 'vision'],\n minReasoningEffort: 'low'\n }\n ]\n },\n {\n id: 'deepseek',\n name: 'DeepSeek',\n keyPlaceholder: 'sk-…',\n keyURL: 'https://platform.deepseek.com/api_keys',\n defaultModel: 'deepseek-flash',\n models: [\n { id: 'deepseek-flash', name: 'DeepSeek Flash', tag: 'Fast' },\n { id: 'deepseek-v4-pro', name: 'DeepSeek V4 Pro', tag: 'Reasoning' }\n ]\n },\n {\n id: 'zai',\n name: 'Z.ai',\n keyPlaceholder: 'API key',\n keyURL: 'https://docs.z.ai/devpack/quick-start',\n defaultModel: 'glm-5.3',\n models: [\n { id: 'glm-5.3', name: 'GLM-5.3', tag: 'Best', minReasoningEffort: 'low' },\n {\n id: 'glm-5.3-flash',\n name: 'GLM-5.3-Flash',\n tag: 'Fast',\n capabilities: ['tools', 'vision'],\n minReasoningEffort: 'low'\n },\n {\n id: 'glm-5.3-flashx',\n name: 'GLM-5.3-FlashX',\n capabilities: ['tools', 'vision'],\n minReasoningEffort: 'low'\n },\n {\n id: 'glm-5v-turbo',\n name: 'GLM-5V-Turbo',\n tag: 'Vision',\n capabilities: ['tools', 'vision']\n },\n { id: 'glm-5.2', name: 'GLM-5.2' },\n { id: 'glm-4.7-flash', name: 'GLM-4.7-Flash', tag: 'Free' }\n ]\n },\n {\n id: 'minimax',\n name: 'MiniMax',\n keyPlaceholder: 'API key',\n keyURL: 'https://platform.minimax.io/user-center/basic-information/interface-key',\n defaultModel: 'MiniMax-M3.1-Flash',\n models: [\n {\n id: 'MiniMax-M3.1-Flash',\n name: 'MiniMax-M3.1-Flash',\n tag: 'Best',\n minReasoningEffort: 'low'\n },\n { id: 'MiniMax-M3', name: 'MiniMax-M3' }\n ]\n },\n ...OPENAI_COMPATIBLE_PRESETS,\n {\n id: 'openai-compatible',\n name: 'OpenAI-compatible',\n keyPlaceholder: 'API key',\n keyURL: '',\n defaultModel: '',\n models: [],\n supportsCustomBaseURL: true,\n supportsCustomModel: true\n },\n {\n id: 'anthropic-compatible',\n name: 'Anthropic-compatible',\n keyPlaceholder: 'API key',\n keyURL: '',\n defaultModel: '',\n models: [],\n supportsCustomBaseURL: true,\n supportsCustomModel: true\n },\n {\n // Claude in Amazon Bedrock: the Messages API at `bedrock-mantle.<region>.api.aws`, reached\n // with a Bedrock API key or AWS access keys. The connection's base URL holds the region.\n id: 'amazon-bedrock',\n name: 'Amazon Bedrock',\n keyPlaceholder: 'ABSK… / bedrock-api-key-…',\n keyURL: 'https://console.aws.amazon.com/bedrock/home#/api-keys',\n defaultModel: 'anthropic.claude-sonnet-5-5',\n supportsCustomModel: true,\n models: claudeModels('anthropic.')\n },\n {\n // Vertex AI serves Claude through `:rawPredict` and Gemini through `:generateContent`. The\n // connection's base URL holds the project and location.\n id: 'google-vertex',\n name: 'Google Vertex AI',\n keyPlaceholder: 'ya29.… / AIza…',\n keyURL: 'https://console.cloud.google.com/vertex-ai',\n defaultModel: 'claude-sonnet-5-5',\n supportsCustomModel: true,\n models: [\n ...claudeModels(''),\n {\n id: 'gemini-3.8-flash',\n name: 'Gemini 3.8 Flash',\n tag: 'Fast',\n capabilities: ['tools', 'vision']\n },\n {\n id: 'gemini-4-argon',\n name: 'Gemini 4 Argon',\n capabilities: ['tools', 'vision'],\n minReasoningEffort: 'low'\n }\n ]\n },\n {\n id: 'pairdraw',\n name: 'Pairdraw Cloud',\n keyPlaceholder: '',\n keyURL: '',\n defaultModel: '',\n models: []\n }\n]\n\nexport const DEFAULT_AI_PROVIDER: AIProviderID = 'openai-compatible'\nexport const DEFAULT_AI_MODEL =\n AI_PROVIDERS.find((provider) => provider.id === DEFAULT_AI_PROVIDER)?.defaultModel ?? ''\n"],"mappings":";;;AA+BA,MAAa,aAA4B;CACvC;EACE,IAAI;EACJ,MAAM;EACN,SAAS;EACT,MAAM,CAAC;EACP,YAAY;EACZ,gBAAgB;EAChB,UAAU;EACV,gBAAgB;EAChB,QAAQ;GACN,KAAK;GACL,QAAQ;GACR,MAAM;IAAC;IAAS;IAAQ;IAAS;GAAY;EAC/C;CACF;CACA;EACE,IAAI;EACJ,MAAM;EACN,SAAS;EACT,MAAM,CAAC;EACP,YAAY;EACZ,gBAAgB;EAChB,UAAU;EACV,gBAAgB;EAChB,QAAQ;GAAE,KAAK;GAAO,QAAQ;EAAW;CAC3C;CACA;EACE,IAAI;EACJ,MAAM;EACN,SAAS;EACT,MAAM,CAAC,OAAO;EACd,UAAU;EACV,gBAAgB;CAClB;CACA;EACE,IAAI;EACJ,MAAM;EACN,SAAS;EACT,MAAM,CAAC,KAAK;EACZ,UAAU;EACV,gBAAgB;EAChB,QAAQ;GAAE,KAAK;GAAO,QAAQ;EAAiB;CACjD;CACA;EACE,IAAI;EACJ,MAAM;EACN,SAAS;EACT,MAAM,CAAC,KAAK;EACZ,UAAU;EACV,gBAAgB;EAChB,gBAAgB;CAClB;AACF;AA2BA,MAAa,oBAAoB;CAAC;CAAW;CAAO;CAAU;CAAQ;AAAO;AA8B7E,MAAM,gBAA+B;CACnC;EACE,IAAI;EACJ,MAAM;EACN,KAAK;EACL,cAAc,CAAC,SAAS,QAAQ;EAChC,oBAAoB;CACtB;CACA;EACE,IAAI;EACJ,MAAM;EACN,KAAK;EACL,cAAc,CAAC,SAAS,QAAQ;EAChC,oBAAoB;CACtB;CACA;EAAE,IAAI;EAAc,MAAM;EAAc,KAAK;EAAQ,cAAc,CAAC,SAAS,QAAQ;CAAE;AACzF;;AAGA,SAAS,aAAa,QAA+B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B,QAAQ;EACR,cAAc;EACd,qBAAqB;EACrB,QAAQ;GACN,GAAG,aAAa,EAAE;GAClB;IACE,IAAI;IACJ,MAAM;IACN,KAAK;IACL,cAAc,CAAC,SAAS,QAAQ;GAClC;GACA;IACE,IAAI;IACJ,MAAM;IACN,cAAc,CAAC,SAAS,QAAQ;IAChC,oBAAoB;GACtB;EACF;CACF;CACA;EACE,IAAI;EACJ,MAAM;EACN,gBAAgB;EAChB,QAAQ;EACR,cAAc;EACd,QAAQ,CAAC;CACX;AACF;AAEA,MAAa,sBAAoC;AACjD,MAAa,mBACX,aAAa,MAAM,aAAa,SAAS,OAAA,mBAA0B,CAAC,EAAE,gBAAgB"}
@@ -47,7 +47,7 @@ declare function styleNodeProps(style: Pick<PlannedStyle, 'kind'> | {
47
47
  }, fields: Partial<SceneNode>): Partial<SceneNode>;
48
48
  declare function styleNodeType(style: Pick<PlannedStyle, 'kind'> | {
49
49
  kind: SharedStyleType;
50
- }): "RECTANGLE" | "TEXT";
50
+ }): "TEXT" | "RECTANGLE";
51
51
  /**
52
52
  * Imports straight into a graph, for scripts, tools, and the CLI working on a document without
53
53
  * an editor; the layers bound to variables whose values changed are resolved and laid out
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pairdraw/core",
3
- "version": "0.22.2",
3
+ "version": "0.22.3",
4
4
  "license": "MIT",
5
5
  "files": [
6
6
  "dist",
@@ -11,14 +11,14 @@
11
11
  "types": "./dist/index.d.ts",
12
12
  "dependencies": {
13
13
  "@iconify/utils": "^3.1.4",
14
- "@pairdraw/design-jsx": "^0.22.2",
15
- "@pairdraw/dom-css": "^0.22.2",
16
- "@pairdraw/drawio": "^0.22.2",
17
- "@pairdraw/fig": "^0.22.2",
18
- "@pairdraw/kiwi": "^0.22.2",
19
- "@pairdraw/mermaid": "^0.22.2",
20
- "@pairdraw/pen": "^0.22.2",
21
- "@pairdraw/scene-graph": "^0.22.2",
14
+ "@pairdraw/design-jsx": "^0.22.3",
15
+ "@pairdraw/dom-css": "^0.22.3",
16
+ "@pairdraw/drawio": "^0.22.3",
17
+ "@pairdraw/fig": "^0.22.3",
18
+ "@pairdraw/kiwi": "^0.22.3",
19
+ "@pairdraw/mermaid": "^0.22.3",
20
+ "@pairdraw/pen": "^0.22.3",
21
+ "@pairdraw/scene-graph": "^0.22.3",
22
22
  "@tauri-apps/api": "^2.12.1",
23
23
  "@valibot/to-json-schema": "^1.8.0",
24
24
  "@xmldom/xmldom": "^0.9.12",
@@ -2,7 +2,7 @@
2
2
 
3
3
  import { OPENAI_COMPATIBLE_PRESETS } from './presets'
4
4
 
5
- export type ACPAgentID = 'claude-code' | 'codex' | 'gemini-cli' | 'omp'
5
+ export type ACPAgentID = 'claude-code' | 'codex' | 'gemini-cli' | 'agy' | 'omp'
6
6
 
7
7
  export interface ACPAgentDef {
8
8
  id: ACPAgentID
@@ -64,6 +64,15 @@ export const ACP_AGENTS: ACPAgentDef[] = [
64
64
  setupURL: 'https://geminicli.com/docs/get-started/installation/',
65
65
  installCommand: 'npm i -g @google/gemini-cli'
66
66
  },
67
+ {
68
+ id: 'agy',
69
+ name: 'agy',
70
+ command: 'agy',
71
+ args: ['acp'],
72
+ setupURL: 'https://antigravity.google/docs/cli/overview',
73
+ installCommand: 'curl -fsSL https://antigravity.google/cli/install.sh | bash',
74
+ signIn: { via: 'acp', method: 'oauth-personal' }
75
+ },
67
76
  {
68
77
  id: 'omp',
69
78
  name: 'omp',