amicus 3.0.0 → 3.1.1
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.
- package/.claude-plugin/plugin.json +1 -1
- package/CHANGELOG.md +66 -0
- package/README.md +13 -4
- package/electron/setup-ui-aliases.js +1 -1
- package/electron/setup-ui.js +27 -3
- package/package.json +2 -1
- package/skills/second-opinion/SKILL.md +2 -0
- package/skills/sidecar/SKILL.md +66 -38
- package/src/cli-handlers-resume-continue.js +31 -4
- package/src/cli-handlers-run.js +15 -4
- package/src/cli.js +17 -0
- package/src/mcp-server.js +99 -12
- package/src/mcp-tools.js +26 -4
- package/src/opencode-client.js +18 -2
- package/src/sidecar/continue.js +10 -3
- package/src/sidecar/fanout-leg.js +26 -1
- package/src/sidecar/fanout-output.js +5 -0
- package/src/sidecar/fanout-validate.js +81 -0
- package/src/sidecar/fanout.js +65 -77
- package/src/sidecar/models.js +39 -17
- package/src/sidecar/session-utils.js +6 -0
- package/src/sidecar/setup.js +2 -1
- package/src/utils/alias-resolver.js +6 -35
- package/src/utils/api-key-store.js +1 -9
- package/src/utils/auth-json.js +1 -1
- package/src/utils/config.js +98 -16
- package/src/utils/curated-models.js +99 -8
- package/src/utils/gateway-route-audit.js +103 -0
- package/src/utils/gateway-route-catalog.js +92 -0
- package/src/utils/gateway-router.js +131 -0
- package/src/utils/input-validators.js +12 -42
- package/src/utils/model-classification.js +65 -0
- package/src/utils/model-descriptor.js +72 -0
- package/src/utils/model-fetcher.js +46 -14
- package/src/utils/model-input-default.js +32 -0
- package/src/utils/model-validator.js +68 -84
- package/src/utils/provider-registry.js +57 -0
- package/src/utils/quick-picks.js +11 -3
- package/src/utils/result-schema-rebuild.js +98 -0
- package/src/utils/result-schema.js +15 -78
- package/src/utils/route-error.js +154 -0
- package/src/utils/route-launch.js +219 -0
- package/src/utils/start-helpers.js +96 -43
- package/src/utils/validators.js +1 -8
package/src/utils/validators.js
CHANGED
|
@@ -19,13 +19,7 @@ const VALID_AGENT_MODES = OPENCODE_AGENTS;
|
|
|
19
19
|
/**
|
|
20
20
|
* Provider to API key mapping
|
|
21
21
|
*/
|
|
22
|
-
const PROVIDER_KEY_MAP =
|
|
23
|
-
'openrouter': { key: 'OPENROUTER_API_KEY', name: 'OpenRouter' },
|
|
24
|
-
'google': { key: 'GOOGLE_GENERATIVE_AI_API_KEY', name: 'Google Gemini' },
|
|
25
|
-
'openai': { key: 'OPENAI_API_KEY', name: 'OpenAI' },
|
|
26
|
-
'anthropic': { key: 'ANTHROPIC_API_KEY', name: 'Anthropic' },
|
|
27
|
-
'deepseek': { key: 'DEEPSEEK_API_KEY', name: 'DeepSeek' },
|
|
28
|
-
};
|
|
22
|
+
const { PROVIDER_KEY_MAP } = require('./provider-registry');
|
|
29
23
|
|
|
30
24
|
/** Task ID format: alphanumeric, hyphens, underscores, 1-64 chars */
|
|
31
25
|
const TASK_ID_PATTERN = /^[a-zA-Z0-9_-]{1,64}$/;
|
|
@@ -272,5 +266,4 @@ module.exports = {
|
|
|
272
266
|
findSessionInProjectDirs,
|
|
273
267
|
// Re-exported from input-validators.js
|
|
274
268
|
validateStartInputs: require('./input-validators').validateStartInputs,
|
|
275
|
-
findSimilar: require('./input-validators').findSimilar,
|
|
276
269
|
};
|