veryfront 0.1.268 → 0.1.270

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/esm/deno.js CHANGED
@@ -1,6 +1,6 @@
1
1
  export default {
2
2
  "name": "veryfront",
3
- "version": "0.1.268",
3
+ "version": "0.1.270",
4
4
  "license": "Apache-2.0",
5
5
  "nodeModulesDir": "auto",
6
6
  "workspace": [
@@ -1 +1 @@
1
- {"version":3,"file":"model-resolution.d.ts","sourceRoot":"","sources":["../../../../src/src/agent/runtime/model-resolution.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,gBAAgB,SAAS,CAAC;AAIvC,wBAAgB,yBAAyB,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAGhE;AAED,wBAAgB,2BAA2B,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAGlE;AAeD;;;;;;;;;GASG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CA4B1D"}
1
+ {"version":3,"file":"model-resolution.d.ts","sourceRoot":"","sources":["../../../../src/src/agent/runtime/model-resolution.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,gBAAgB,SAAS,CAAC;AAoBvC,wBAAgB,yBAAyB,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAGhE;AAED,wBAAgB,2BAA2B,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAWlE;AAeD;;;;;;;;;GASG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CA4B1D"}
@@ -4,13 +4,35 @@ import { DEFAULT_LOCAL_MODEL } from "../../provider/local/model-catalog.js";
4
4
  import { isVeryfrontCloudEnabled } from "../../platform/cloud/resolver.js";
5
5
  export const AUTO_AGENT_MODEL = "auto";
6
6
  const HOSTED_PROVIDER_NAMES = new Set(["anthropic", "google", "openai"]);
7
+ const LEGACY_MODEL_ALIASES = {
8
+ opus: "anthropic/claude-opus-4-6",
9
+ sonnet: "anthropic/claude-sonnet-4-6",
10
+ haiku: "anthropic/claude-haiku-4-5-20251001",
11
+ "claude-opus-4-6": "anthropic/claude-opus-4-6",
12
+ "claude-sonnet-4-6": "anthropic/claude-sonnet-4-6",
13
+ "claude-haiku-4-5-20251001": "anthropic/claude-haiku-4-5-20251001",
14
+ "gpt-5.2": "openai/gpt-5.2",
15
+ "gpt-5.4": "openai/gpt-5.2",
16
+ "gpt-5.4-mini": "openai/gpt-5.2",
17
+ "o3-pro": "openai/gpt-5.2",
18
+ "o4-mini": "openai/gpt-5.2",
19
+ "gemini-3.1-pro": "google-ai-studio/gemini-2.5-pro",
20
+ "gemini-2.5-pro": "google-ai-studio/gemini-2.5-pro",
21
+ "gemini-2.5-flash": "google-ai-studio/gemini-2.5-flash",
22
+ };
7
23
  export function normalizeAgentModelConfig(model) {
8
24
  const normalized = model?.trim();
9
25
  return normalized && normalized.length > 0 ? normalized : AUTO_AGENT_MODEL;
10
26
  }
11
27
  export function resolveConfiguredAgentModel(model) {
12
28
  const normalized = normalizeAgentModelConfig(model);
13
- return normalized === AUTO_AGENT_MODEL ? `local/${DEFAULT_LOCAL_MODEL}` : normalized;
29
+ if (normalized === AUTO_AGENT_MODEL) {
30
+ return `local/${DEFAULT_LOCAL_MODEL}`;
31
+ }
32
+ if (normalized.includes("/")) {
33
+ return normalized;
34
+ }
35
+ return LEGACY_MODEL_ALIASES[normalized] ?? normalized;
14
36
  }
15
37
  function hasDirectProviderCredentials(provider) {
16
38
  switch (provider) {
@@ -1,31 +1,31 @@
1
1
  declare namespace _default {
2
2
  let version: number;
3
3
  let files: {
4
- "shared/mount-react-app.tsx": string;
5
- "projects/components/EmptyState.tsx": string;
4
+ "projects/App.tsx": string;
6
5
  "projects/components/ProjectCard.tsx": string;
7
- "projects/components/Header.tsx": string;
8
6
  "projects/components/SearchInput.tsx": string;
9
- "projects/App.tsx": string;
7
+ "projects/components/EmptyState.tsx": string;
8
+ "projects/components/Header.tsx": string;
10
9
  "projects/index.tsx": string;
11
- "dashboard/components/APITab.tsx": string;
12
- "dashboard/components/Sidebar.tsx": string;
13
- "dashboard/components/Card.tsx": string;
14
- "dashboard/components/ErrorsTab.tsx": string;
10
+ "shared/mount-react-app.tsx": string;
11
+ "dashboard/App.tsx": string;
15
12
  "dashboard/components/AgentsTab.tsx": string;
16
- "dashboard/components/WorkflowsTab.tsx": string;
17
- "dashboard/components/RuntimeTab.tsx": string;
18
- "dashboard/components/ConfigTab.tsx": string;
19
- "dashboard/components/WorkflowsTab.helpers.test.ts": string;
20
- "dashboard/components/ServerTab.tsx": string;
13
+ "dashboard/components/Sidebar.tsx": string;
21
14
  "dashboard/components/WorkflowsTab.helpers.ts": string;
22
- "dashboard/components/AgentTab.tsx": string;
23
- "dashboard/components/Header.tsx": string;
24
- "dashboard/components/TabNav.tsx": string;
15
+ "dashboard/components/WorkflowsTab.tsx": string;
25
16
  "dashboard/components/shared.tsx": string;
17
+ "dashboard/components/Card.tsx": string;
18
+ "dashboard/components/TabNav.tsx": string;
26
19
  "dashboard/components/MCPTab.tsx": string;
20
+ "dashboard/components/ServerTab.tsx": string;
21
+ "dashboard/components/ConfigTab.tsx": string;
22
+ "dashboard/components/RuntimeTab.tsx": string;
23
+ "dashboard/components/ErrorsTab.tsx": string;
27
24
  "dashboard/components/FilesTab.tsx": string;
28
- "dashboard/App.tsx": string;
25
+ "dashboard/components/APITab.tsx": string;
26
+ "dashboard/components/AgentTab.tsx": string;
27
+ "dashboard/components/WorkflowsTab.helpers.test.ts": string;
28
+ "dashboard/components/Header.tsx": string;
29
29
  "dashboard/index.tsx": string;
30
30
  };
31
31
  }