portos-ai-toolkit 0.8.1 → 0.8.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "portos-ai-toolkit",
3
- "version": "0.8.1",
3
+ "version": "0.8.4",
4
4
  "description": "Shared AI provider, model, and prompt template patterns for PortOS-style applications",
5
5
  "author": "Adam Eivy <adam@eivy.com> (https://atomantic.com)",
6
6
  "license": "MIT",
@@ -272,6 +272,11 @@ export default function AIProviders({ onError = console.error, colorPrefix = 'ap
272
272
  {provider.heavyModel && <span className="ml-1 text-red-400">{provider.heavyModel}</span>}
273
273
  </p>
274
274
  )}
275
+ {provider.type === 'cli' && (provider.command === 'codex' || provider.command === 'gemini') && (
276
+ <p className="text-xs text-yellow-400/80 mt-1">
277
+ ⚠️ Reference only — the {provider.command} CLI runs with its own configured default model in headless execution. Selections here are not passed to the CLI.
278
+ </p>
279
+ )}
275
280
  </div>
276
281
 
277
282
  {testResults[provider.id] && !testResults[provider.id].testing && (
@@ -479,6 +484,11 @@ function ProviderForm({ provider, onClose, onSave, api, colorPrefix = 'app' }) {
479
484
  className={`w-full px-3 py-2 bg-${colorPrefix}-bg border border-${colorPrefix}-border rounded-lg text-white focus:border-${colorPrefix}-accent focus:outline-none`}
480
485
  />
481
486
  </div>
487
+ {(formData.command === 'codex' || formData.command === 'gemini') && (
488
+ <div className="text-xs text-yellow-400/80 bg-yellow-500/10 border border-yellow-500/20 rounded-lg p-2">
489
+ ⚠️ The {formData.command} CLI runs with its own configured default model in headless execution. Models, default, and tiers below are stored as metadata for the advisor UI but are not passed to the CLI.
490
+ </div>
491
+ )}
482
492
  </>
483
493
  )}
484
494
  {formData.type === 'api' && (
@@ -7,11 +7,11 @@
7
7
  "type": "cli",
8
8
  "command": "claude",
9
9
  "args": ["--print"],
10
- "models": ["claude-haiku-4-5", "claude-sonnet-4-6", "claude-opus-4-6"],
10
+ "models": ["claude-haiku-4-5", "claude-sonnet-4-6", "claude-opus-4-7"],
11
11
  "defaultModel": "claude-sonnet-4-6",
12
12
  "lightModel": "claude-haiku-4-5",
13
13
  "mediumModel": "claude-sonnet-4-6",
14
- "heavyModel": "claude-opus-4-6",
14
+ "heavyModel": "claude-opus-4-7",
15
15
  "timeout": 300000,
16
16
  "enabled": true,
17
17
  "envVars": {},
@@ -24,11 +24,11 @@
24
24
  "type": "cli",
25
25
  "command": "claude",
26
26
  "args": ["--print"],
27
- "models": ["us.anthropic.claude-sonnet-4-5-20250929-v1:0", "global.anthropic.claude-opus-4-5-20251101-v1:0", "us.anthropic.claude-opus-4-6-v1:0"],
28
- "defaultModel": "us.anthropic.claude-opus-4-6-v1:0",
27
+ "models": ["us.anthropic.claude-sonnet-4-5-20250929-v1:0", "global.anthropic.claude-opus-4-5-20251101-v1:0", "us.anthropic.claude-opus-4-7-v1:0"],
28
+ "defaultModel": "us.anthropic.claude-opus-4-7-v1:0",
29
29
  "lightModel": "us.anthropic.claude-sonnet-4-5-20250929-v1:0",
30
30
  "mediumModel": "global.anthropic.claude-opus-4-5-20251101-v1:0",
31
- "heavyModel": "us.anthropic.claude-opus-4-6-v1:0",
31
+ "heavyModel": "us.anthropic.claude-opus-4-7-v1:0",
32
32
  "timeout": 300000,
33
33
  "enabled": false,
34
34
  "envVars": {
@@ -44,11 +44,11 @@
44
44
  "type": "cli",
45
45
  "command": "codex",
46
46
  "args": [],
47
- "models": ["gpt-5.1-codex-mini", "gpt-5.1-codex-max"],
48
- "defaultModel": "gpt-5.1-codex-max",
47
+ "models": ["gpt-5.4", "gpt-5.3-codex", "gpt-5.2-codex", "gpt-5.2", "gpt-5.1-codex-max", "gpt-5.1-codex-mini"],
48
+ "defaultModel": "gpt-5.4",
49
49
  "lightModel": "gpt-5.1-codex-mini",
50
- "mediumModel": "gpt-5.1-codex-max",
51
- "heavyModel": "gpt-5.1-codex-max",
50
+ "mediumModel": "gpt-5.3-codex",
51
+ "heavyModel": "gpt-5.4",
52
52
  "timeout": 300000,
53
53
  "enabled": true,
54
54
  "envVars": {},
@@ -60,8 +60,11 @@
60
60
  "type": "cli",
61
61
  "command": "gemini",
62
62
  "args": [],
63
- "models": [],
64
- "defaultModel": null,
63
+ "models": ["gemini-3.1-pro", "gemini-3-flash", "gemini-2.5-pro", "gemini-2.5-flash"],
64
+ "defaultModel": "gemini-2.5-flash",
65
+ "lightModel": "gemini-2.5-flash",
66
+ "mediumModel": "gemini-3-flash",
67
+ "heavyModel": "gemini-3.1-pro",
65
68
  "timeout": 300000,
66
69
  "enabled": true,
67
70
  "envVars": {},
@@ -345,7 +345,7 @@ export function createProviderService(config = {}) {
345
345
  // Known Claude models — Anthropic doesn't have a public models list endpoint
346
346
  // so we maintain a curated list of current and recent models
347
347
  return [
348
- 'claude-opus-4-6',
348
+ 'claude-opus-4-7',
349
349
  'claude-sonnet-4-6',
350
350
  'claude-opus-4-5-20251101',
351
351
  'claude-sonnet-4-5-20250929',