veryfront 0.1.688 → 0.1.690

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.688",
3
+ "version": "0.1.690",
4
4
  "license": "Apache-2.0",
5
5
  "nodeModulesDir": "auto",
6
6
  "workspace": [
@@ -4,6 +4,7 @@ import { type DefaultResearchArtifactContext } from "../artifacts/default-resear
4
4
  import { type AgentServiceMcpServerConfig } from "../service/mcp-server-config.js";
5
5
  import { type HostedProjectRemoteToolSourceMutationHandler, type HostedProjectRemoteToolSourcePrepareToolInput, type HostedProjectRemoteToolSourceProjectSwitchHandler, type HostedProjectRemoteToolSourceRetryPolicy } from "./project-remote-tool-source.js";
6
6
  import { type RuntimeClientProfile } from "../runtime/client-profile.js";
7
+ import { type HostedRuntimeAllowedToolNames } from "./runtime-essential-tools.js";
7
8
  /** Context for hosted chat runtime tool assembly. */
8
9
  export type HostedChatRuntimeToolAssemblyContext = DefaultResearchArtifactContext & {
9
10
  authToken: string;
@@ -12,10 +13,11 @@ export type HostedChatRuntimeToolAssemblyContext = DefaultResearchArtifactContex
12
13
  model?: string;
13
14
  clientProfile?: RuntimeClientProfile | null;
14
15
  availableToolNames?: string[];
16
+ availableSkillIds?: readonly string[];
15
17
  userId?: string | null;
16
18
  };
17
19
  /** Public API contract for hosted chat runtime allowed tool names. */
18
- export type HostedChatRuntimeAllowedToolNames = readonly string[] | ReadonlySet<string> | null;
20
+ export type HostedChatRuntimeAllowedToolNames = HostedRuntimeAllowedToolNames;
19
21
  /** Result returned from hosted chat runtime tool assembly. */
20
22
  export type HostedChatRuntimeToolAssemblyResult = {
21
23
  runtimeTools: ToolSet;
@@ -1 +1 @@
1
- {"version":3,"file":"chat-runtime-tool-assembly.d.ts","sourceRoot":"","sources":["../../../../src/src/agent/hosted/chat-runtime-tool-assembly.ts"],"names":[],"mappings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AC,KAAK,EAAE;IACvD,KAAK,EAAE,WAAW,CAAC;IACnB,gBAAgB,CAAC,EAAE,iCAAiC,CAAC;CACtD,GAAG,WAAW,CAOd;AAED,iDAAiD;AACjD,wBAAsB,oCAAoC,CACxD,gBAAgB,SAAS,uBAAuB,GAAG,uBAAuB,EAE1E,KAAK,EAAE,yCAAyC,CAAC,gBAAgB,CAAC,GACjE,OAAO,CAAC,mCAAmC,CAAC,CA+E9C"}
1
+ {"version":3,"file":"chat-runtime-tool-assembly.d.ts","sourceRoot":"","sources":["../../../../src/src/agent/hosted/chat-runtime-tool-assembly.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,EAGL,KAAK,WAAW,EAChB,KAAK,uBAAuB,EAE5B,KAAK,8BAA8B,EACnC,KAAK,yBAAyB,EAC9B,KAAK,gBAAgB,EACrB,KAAK,OAAO,EAEZ,KAAK,qBAAqB,EAC3B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,KAAK,8BAA8B,EAGpC,MAAM,mDAAmD,CAAC;AAC3D,OAAO,EAAE,KAAK,2BAA2B,EAAE,MAAM,iCAAiC,CAAC;AACnF,OAAO,EAEL,KAAK,4CAA4C,EACjD,KAAK,6CAA6C,EAClD,KAAK,iDAAiD,EACtD,KAAK,wCAAwC,EAC9C,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAIzE,OAAO,EACL,KAAK,6BAA6B,EAGnC,MAAM,8BAA8B,CAAC;AAEtC,qDAAqD;AACrD,MAAM,MAAM,oCAAoC,GAAG,8BAA8B,GAAG;IAClF,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,C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Ae,CAAC,EAAE,qBAAqB,CAAC,gBAAgB,CAAC,CAAC;IAC1D,YAAY,CAAC,EAAE,MAAM,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC/C,iBAAiB,CAAC,EAAE,MAAM,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACpD,sBAAsB,CAAC,EAAE,6CAA6C,CAAC;IACvE,yBAAyB,CAAC,EAAE,wCAAwC,CAAC;IACrE,kBAAkB,CAAC,EAAE,4CAA4C,CAAC;IAClE,qBAAqB,CAAC,EAAE,iDAAiD,CAAC;IAC1E,iCAAiC,CAAC,EAAE,OAAO,CAAC;CAC7C,CAAC;AAUF,8CAA8C;AAC9C,wBAAgB,iCAAiC,CAAC,KAAK,EAAE;IACvD,KAAK,EAAE,WAAW,CAAC;IACnB,gBAAgB,CAAC,EAAE,iCAAiC,CAAC;CACtD,GAAG,WAAW,CAOd;AAED,iDAAiD;AACjD,wBAAsB,oCAAoC,CACxD,gBAAgB,SAAS,uBAAuB,GAAG,uBAAuB,EAE1E,KAAK,EAAE,yCAAyC,CAAC,gBAAgB,CAAC,GACjE,OAAO,CAAC,mCAAmC,CAAC,CAmF9C"}
@@ -4,12 +4,7 @@ import { createHostedProjectRemoteToolSources, } from "./project-remote-tool-sou
4
4
  import { selectProviderCompatibleToolNames } from "../runtime/provider-tool-compat.js";
5
5
  import { getProviderNativeToolNames } from "../runtime/provider-native-tool-inventory.js";
6
6
  import { flattenSystemInstructions, withRuntimeToolInventory } from "../runtime/tool-inventory.js";
7
- function normalizeAllowedToolNames(toolNames) {
8
- if (!toolNames) {
9
- return null;
10
- }
11
- return new Set(toolNames);
12
- }
7
+ import { normalizeHostedRuntimeAllowedToolNames, resolveHostedRuntimeAllowedToolNames, } from "./runtime-essential-tools.js";
13
8
  function activeProjectId(taskContext) {
14
9
  return taskContext.projectId || null;
15
10
  }
@@ -18,13 +13,17 @@ function activeBranchId(taskContext) {
18
13
  }
19
14
  /** Filter hosted chat runtime local tools. */
20
15
  export function filterHostedChatRuntimeLocalTools(input) {
21
- const allowedToolNames = normalizeAllowedToolNames(input.allowedToolNames);
16
+ const allowedToolNames = normalizeHostedRuntimeAllowedToolNames(input.allowedToolNames);
22
17
  const entries = Object.entries(input.tools).filter(([toolName]) => allowedToolNames ? allowedToolNames.has(toolName) : true);
23
18
  return Object.fromEntries(entries.sort(([left], [right]) => left.localeCompare(right)));
24
19
  }
25
20
  /** Prepare hosted chat runtime tool assembly. */
26
21
  export async function prepareHostedChatRuntimeToolAssembly(input) {
27
- const allowedToolNames = normalizeAllowedToolNames(input.allowedToolNames);
22
+ const allowedToolNames = resolveHostedRuntimeAllowedToolNames({
23
+ allowedToolNames: input.allowedToolNames,
24
+ localToolNames: Object.keys(input.localTools),
25
+ availableSkillIds: input.taskContext.availableSkillIds,
26
+ });
28
27
  const sortedLocalTools = filterHostedChatRuntimeLocalTools({
29
28
  tools: input.localTools,
30
29
  allowedToolNames,
@@ -0,0 +1,13 @@
1
+ /** Public API contract for hosted runtime allowed tool names. */
2
+ export type HostedRuntimeAllowedToolNames = readonly string[] | ReadonlySet<string> | null;
3
+ /** Input payload for resolving hosted runtime allowed tools. */
4
+ export type ResolveHostedRuntimeAllowedToolNamesInput = {
5
+ allowedToolNames?: HostedRuntimeAllowedToolNames;
6
+ localToolNames: Iterable<string>;
7
+ availableSkillIds?: readonly string[];
8
+ };
9
+ /** Normalize hosted runtime allowed tools. */
10
+ export declare function normalizeHostedRuntimeAllowedToolNames(toolNames: HostedRuntimeAllowedToolNames | undefined): ReadonlySet<string> | null;
11
+ /** Resolve allowed tools after applying runtime-essential hosted tool policy. */
12
+ export declare function resolveHostedRuntimeAllowedToolNames(input: ResolveHostedRuntimeAllowedToolNamesInput): ReadonlySet<string> | null;
13
+ //# sourceMappingURL=runtime-essential-tools.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runtime-essential-tools.d.ts","sourceRoot":"","sources":["../../../../src/src/agent/hosted/runtime-essential-tools.ts"],"names":[],"mappings":"AAAA,iEAAiE;AACjE,MAAM,MAAM,6BAA6B,GAAG,SAAS,MAAM,EAAE,GAAG,WAAW,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;AAE3F,gEAAgE;AAChE,MAAM,MAAM,yCAAyC,GAAG;IACtD,gBAAgB,CAAC,EAAE,6BAA6B,CAAC;IACjD,cAAc,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;IACjC,iBAAiB,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CACvC,CAAC;AAKF,8CAA8C;AAC9C,wBAAgB,sCAAsC,CACpD,SAAS,EAAE,6BAA6B,GAAG,SAAS,GACnD,WAAW,CAAC,MAAM,CAAC,GAAG,IAAI,CAM5B;AAED,iFAAiF;AACjF,wBAAgB,oCAAoC,CAClD,KAAK,EAAE,yCAAyC,GAC/C,WAAW,CAAC,MAAM,CAAC,GAAG,IAAI,CA0B5B"}
@@ -0,0 +1,32 @@
1
+ const SKILL_RUNTIME_TOOL_NAMES = ["load_skill", "load_skill_reference"];
2
+ const SKILL_DELEGATION_TOOL_NAMES = ["invoke_agent"];
3
+ /** Normalize hosted runtime allowed tools. */
4
+ export function normalizeHostedRuntimeAllowedToolNames(toolNames) {
5
+ if (!toolNames) {
6
+ return null;
7
+ }
8
+ return new Set(toolNames);
9
+ }
10
+ /** Resolve allowed tools after applying runtime-essential hosted tool policy. */
11
+ export function resolveHostedRuntimeAllowedToolNames(input) {
12
+ const allowedToolNames = normalizeHostedRuntimeAllowedToolNames(input.allowedToolNames);
13
+ if (!allowedToolNames || allowedToolNames.size === 0) {
14
+ return allowedToolNames;
15
+ }
16
+ if (!input.availableSkillIds?.length) {
17
+ return allowedToolNames;
18
+ }
19
+ const localToolNames = new Set(input.localToolNames);
20
+ const resolvedToolNames = new Set(allowedToolNames);
21
+ for (const toolName of SKILL_RUNTIME_TOOL_NAMES) {
22
+ if (localToolNames.has(toolName)) {
23
+ resolvedToolNames.add(toolName);
24
+ }
25
+ }
26
+ for (const toolName of SKILL_DELEGATION_TOOL_NAMES) {
27
+ if (localToolNames.has(toolName)) {
28
+ resolvedToolNames.add(toolName);
29
+ }
30
+ }
31
+ return resolvedToolNames;
32
+ }
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/src/agent/runtime/constants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,kBAAkB,MAA2B,CAAC;AAC3D,eAAO,MAAM,mBAAmB,GAA6B,CAAC;AAC9D,eAAO,MAAM,sBAAsB,QAAmC,CAAC;AACvE,eAAO,MAAM,iBAAiB,KAAK,CAAC;AAiBpC,sFAAsF;AACtF,wBAAgB,uBAAuB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAK/E"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/src/agent/runtime/constants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,kBAAkB,MAA2B,CAAC;AAC3D,eAAO,MAAM,mBAAmB,GAA6B,CAAC;AAC9D,eAAO,MAAM,sBAAsB,QAAmC,CAAC;AACvE,eAAO,MAAM,iBAAiB,KAAK,CAAC;AA4BpC,sFAAsF;AACtF,wBAAgB,uBAAuB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAK/E"}
@@ -5,14 +5,25 @@ export const MAX_STREAM_BUFFER_SIZE = STREAMING_DEFAULTS.maxBufferSize;
5
5
  export const DEFAULT_MAX_STEPS = 20;
6
6
  /** Max output token limits per model (normalized IDs without `veryfront-cloud/` prefix). */
7
7
  const MODEL_MAX_OUTPUT_TOKENS = {
8
+ "anthropic/claude-opus-4-8": 128_000,
8
9
  "anthropic/claude-opus-4-6": 128_000,
9
10
  "anthropic/claude-sonnet-4-6": 64_000,
10
11
  "anthropic/claude-haiku-4-5-20251001": 64_000,
12
+ "openai/gpt-5.5": 128_000,
11
13
  "openai/gpt-5.2": 128_000,
14
+ "google-ai-studio/gemini-3.1-pro-preview": 65_536,
15
+ "google-ai-studio/gemini-3.5-flash": 65_536,
16
+ "google-ai-studio/gemini-3-flash-preview": 65_536,
17
+ "google-ai-studio/gemini-3.1-flash-lite": 65_536,
12
18
  "google-ai-studio/gemini-2.5-pro": 65_536,
13
19
  "google-ai-studio/gemini-2.5-flash": 65_536,
14
20
  };
15
21
  const MODEL_MAX_OUTPUT_TOKEN_ALIASES = {
22
+ "google/gemini-3.1-pro": "google-ai-studio/gemini-3.1-pro-preview",
23
+ "google/gemini-3.1-pro-preview": "google-ai-studio/gemini-3.1-pro-preview",
24
+ "google/gemini-3.5-flash": "google-ai-studio/gemini-3.5-flash",
25
+ "google/gemini-3-flash-preview": "google-ai-studio/gemini-3-flash-preview",
26
+ "google/gemini-3.1-flash-lite": "google-ai-studio/gemini-3.1-flash-lite",
16
27
  "google/gemini-2.5-pro": "google-ai-studio/gemini-2.5-pro",
17
28
  "google/gemini-2.5-flash": "google-ai-studio/gemini-2.5-flash",
18
29
  };
@@ -1,10 +1,9 @@
1
1
  /**
2
2
  * Framework-default `providerOptions` for known providers.
3
3
  *
4
- * Currently: enable Anthropic extended thinking by default for any
5
- * Anthropic model, since the `reasoning-*` event surface in this framework
6
- * relies on the provider-side feature being on. Apps can override or opt
7
- * out by returning their own `providerOptions.anthropic.thinking` from
4
+ * Currently: enable Anthropic extended thinking by default only for catalog
5
+ * models that declare a thinking budget. Apps can override or opt out by
6
+ * returning their own `providerOptions.anthropic.thinking` from
8
7
  * `AgentConfig.resolveModelTransport`.
9
8
  */
10
9
  export declare function resolveProviderOptionsWithDefaults(modelString: string, existing: Record<string, unknown> | undefined): Record<string, unknown> | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"default-provider-options.d.ts","sourceRoot":"","sources":["../../../../src/src/agent/runtime/default-provider-options.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAoBH,wBAAgB,kCAAkC,CAChD,WAAW,EAAE,MAAM,EACnB,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,GAC5C,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAoBrC"}
1
+ {"version":3,"file":"default-provider-options.d.ts","sourceRoot":"","sources":["../../../../src/src/agent/runtime/default-provider-options.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAgCH,wBAAgB,kCAAkC,CAChD,WAAW,EAAE,MAAM,EACnB,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,GAC5C,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAyBrC"}
@@ -1,15 +1,14 @@
1
1
  /**
2
2
  * Framework-default `providerOptions` for known providers.
3
3
  *
4
- * Currently: enable Anthropic extended thinking by default for any
5
- * Anthropic model, since the `reasoning-*` event surface in this framework
6
- * relies on the provider-side feature being on. Apps can override or opt
7
- * out by returning their own `providerOptions.anthropic.thinking` from
4
+ * Currently: enable Anthropic extended thinking by default only for catalog
5
+ * models that declare a thinking budget. Apps can override or opt out by
6
+ * returning their own `providerOptions.anthropic.thinking` from
8
7
  * `AgentConfig.resolveModelTransport`.
9
8
  */
9
+ import { resolveVeryfrontCloudModelThinking } from "../../provider/veryfront-cloud/model-catalog.js";
10
10
  const VERYFRONT_CLOUD_PREFIX = "veryfront-cloud/";
11
11
  const ANTHROPIC_PREFIX = "anthropic/";
12
- const DEFAULT_ANTHROPIC_THINKING_BUDGET_TOKENS = 2048;
13
12
  function isAnthropicModel(modelString) {
14
13
  const normalized = modelString.startsWith(VERYFRONT_CLOUD_PREFIX)
15
14
  ? modelString.slice(VERYFRONT_CLOUD_PREFIX.length)
@@ -24,6 +23,14 @@ function hasAnthropicThinkingConfig(existing) {
24
23
  return false;
25
24
  return "thinking" in anthropic;
26
25
  }
26
+ function resolveAnthropicThinkingBudgetTokens(modelString) {
27
+ const thinking = resolveVeryfrontCloudModelThinking(modelString);
28
+ if (thinking?.enabled !== true || typeof thinking.budgetTokens !== "number" ||
29
+ thinking.budgetTokens <= 0) {
30
+ return undefined;
31
+ }
32
+ return Math.floor(thinking.budgetTokens);
33
+ }
27
34
  export function resolveProviderOptionsWithDefaults(modelString, existing) {
28
35
  if (!isAnthropicModel(modelString)) {
29
36
  return existing;
@@ -31,6 +38,10 @@ export function resolveProviderOptionsWithDefaults(modelString, existing) {
31
38
  if (hasAnthropicThinkingConfig(existing)) {
32
39
  return existing;
33
40
  }
41
+ const budgetTokens = resolveAnthropicThinkingBudgetTokens(modelString);
42
+ if (!budgetTokens) {
43
+ return existing;
44
+ }
34
45
  const existingAnthropic = (existing?.anthropic ?? {});
35
46
  return {
36
47
  ...(existing ?? {}),
@@ -39,7 +50,7 @@ export function resolveProviderOptionsWithDefaults(modelString, existing) {
39
50
  // Only `thinking` is forced because we already confirmed it isn't set.
40
51
  temperature: 1,
41
52
  ...existingAnthropic,
42
- thinking: { type: "enabled", budget_tokens: DEFAULT_ANTHROPIC_THINKING_BUDGET_TOKENS },
53
+ thinking: { type: "enabled", budget_tokens: budgetTokens },
43
54
  },
44
55
  };
45
56
  }
@@ -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;AAiCvC,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,CA6B1D"}
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;AAyCvC,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,CA6B1D"}
@@ -17,20 +17,28 @@ const DIRECT_RUNTIME_PROVIDER_ALIASES = {
17
17
  "google-ai-studio": "google",
18
18
  };
19
19
  const LEGACY_MODEL_ALIASES = {
20
- opus: "anthropic/claude-opus-4-6",
20
+ opus: "anthropic/claude-opus-4-8",
21
21
  sonnet: "anthropic/claude-sonnet-4-6",
22
22
  haiku: "anthropic/claude-haiku-4-5-20251001",
23
+ "claude-opus-4-8": "anthropic/claude-opus-4-8",
23
24
  "claude-opus-4-6": "anthropic/claude-opus-4-6",
24
25
  "claude-sonnet-4-6": "anthropic/claude-sonnet-4-6",
25
26
  "claude-haiku-4-5-20251001": "anthropic/claude-haiku-4-5-20251001",
27
+ "gpt-5.5": "openai/gpt-5.5",
26
28
  "gpt-5.2": "openai/gpt-5.2",
27
- "gpt-5.4": "openai/gpt-5.2",
28
- "gpt-5.4-mini": "openai/gpt-5.2",
29
- "o3-pro": "openai/gpt-5.2",
30
- "o4-mini": "openai/gpt-5.2",
31
- "gemini-3.1-pro": "google-ai-studio/gemini-2.5-pro",
29
+ "gpt-5.4": "openai/gpt-5.4",
30
+ "gpt-5.4-mini": "openai/gpt-5.4-mini",
31
+ "gpt-5.4-nano": "openai/gpt-5.4-nano",
32
+ "o3-pro": "openai/o3-pro",
33
+ "o4-mini": "openai/o4-mini",
34
+ "gemini-3.1-pro": "google-ai-studio/gemini-3.1-pro-preview",
35
+ "gemini-3.1-pro-preview": "google-ai-studio/gemini-3.1-pro-preview",
36
+ "gemini-3.5-flash": "google-ai-studio/gemini-3.5-flash",
37
+ "gemini-3-flash-preview": "google-ai-studio/gemini-3-flash-preview",
38
+ "gemini-3.1-flash-lite": "google-ai-studio/gemini-3.1-flash-lite",
32
39
  "gemini-2.5-pro": "google-ai-studio/gemini-2.5-pro",
33
40
  "gemini-2.5-flash": "google-ai-studio/gemini-2.5-flash",
41
+ "kimi-k2.6": "moonshotai/kimi-k2.6",
34
42
  "kimi-k2.5": "moonshotai/kimi-k2.5",
35
43
  };
36
44
  export function normalizeAgentModelConfig(model) {
@@ -1 +1 @@
1
- {"version":3,"file":"model-catalog.d.ts","sourceRoot":"","sources":["../../../../src/src/provider/veryfront-cloud/model-catalog.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAC;AAE5D,4DAA4D;AAC5D,MAAM,MAAM,iCAAiC,GAAG;IAC9C,OAAO,EAAE,OAAO,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,0DAA0D;AAC1D,MAAM,MAAM,uBAAuB,GAAG;IACpC,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,wBAAwB,CAAC;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B,CAAC;AAEF,kDAAkD;AAClD,eAAO,MAAM,gCAAgC,SAAS,CAAC;AACvD,iDAAiD;AACjD,eAAO,MAAM,4BAA4B,qBAAqB,CAAC;AAU/D,gDAAgD;AAChD,eAAO,MAAM,2BAA2B,EAAE,uBAAuB,EAqDhE,CAAC;AAEF,kCAAkC;AAClC,wBAAgB,uBAAuB,CAAC,EAAE,EAAE,MAAM,GAAG,uBAAuB,GAAG,SAAS,CAEvF;AAED,2CAA2C;AAC3C,wBAAgB,8BAA8B,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAItE;AAED,8CAA8C;AAC9C,wBAAgB,gCAAgC,CAC9C,OAAO,EAAE,MAAM,GACd,uBAAuB,GAAG,SAAS,CAGrC;AAED,qDAAqD;AACrD,wBAAgB,oCAAoC,CAClD,OAAO,EAAE,MAAM,GACd,wBAAwB,CAO1B;AAED,yDAAyD;AACzD,wBAAgB,uCAAuC,CACrD,OAAO,EAAE,MAAM,GACd,wBAAwB,GAAG,SAAS,CAMtC;AAED,yCAAyC;AACzC,wBAAgB,4BAA4B,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAkBnE;AAED,iDAAiD;AACjD,wBAAgB,mCAAmC,CACjD,OAAO,EAAE,MAAM,GAAG,SAAS,GAC1B,MAAM,GAAG,SAAS,CAcpB;AAED,+CAA+C;AAC/C,wBAAgB,kCAAkC,CAChD,OAAO,EAAE,MAAM,GAAG,SAAS,GAC1B,iCAAiC,GAAG,SAAS,CAc/C;AAED,qEAAqE;AACrE,wBAAgB,4CAA4C,CAC1D,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,iCAAiC,GAAG,SAAS,GACtD,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAqBrC;AAWD,gDAAgD;AAChD,wBAAgB,mCAAmC,IAAI,KAAK,CAAC;IAC3D,QAAQ,EAAE,wBAAwB,CAAC;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,uBAAuB,EAAE,CAAC;CACnC,CAAC,CAMD;AAED,gDAAgD;AAChD,eAAO,MAAM,kCAAkC,4CAAsC,CAAC"}
1
+ {"version":3,"file":"model-catalog.d.ts","sourceRoot":"","sources":["../../../../src/src/provider/veryfront-cloud/model-catalog.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAC;AAE5D,4DAA4D;AAC5D,MAAM,MAAM,iCAAiC,GAAG;IAC9C,OAAO,EAAE,OAAO,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,0DAA0D;AAC1D,MAAM,MAAM,uBAAuB,GAAG;IACpC,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,E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D,wBAAgB,mCAAmC,IAAI,KAAK,CAAC;IAC3D,QAAQ,EAAE,wBAAwB,CAAC;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,uBAAuB,EAAE,CAAC;CACnC,CAAC,CAMD;AAED,gDAAgD;AAChD,eAAO,MAAM,kCAAkC,4CAAsC,CAAC"}
@@ -13,11 +13,10 @@ const VERYFRONT_CLOUD_GATEWAY_MODEL_PROVIDER_PREFIXES = [
13
13
  export const VERYFRONT_CLOUD_CHAT_MODELS = [
14
14
  {
15
15
  id: "opus",
16
- modelId: "anthropic/claude-opus-4-6",
16
+ modelId: "anthropic/claude-opus-4-8",
17
17
  provider: "anthropic",
18
- name: "Claude Opus 4.6",
18
+ name: "Claude Opus 4.8",
19
19
  description: "Most capable for ambitious work",
20
- thinkingBudgetTokens: 2048,
21
20
  },
22
21
  {
23
22
  id: "sonnet",
@@ -36,31 +35,31 @@ export const VERYFRONT_CLOUD_CHAT_MODELS = [
36
35
  thinkingBudgetTokens: 1024,
37
36
  },
38
37
  {
39
- id: "gpt-5.2",
40
- modelId: "openai/gpt-5.2",
38
+ id: "gpt-5.5",
39
+ modelId: "openai/gpt-5.5",
41
40
  provider: "openai",
42
- name: "GPT-5.2",
41
+ name: "GPT-5.5",
43
42
  description: "Most capable OpenAI model",
44
43
  },
45
44
  {
46
- id: "gemini-2.5-pro",
47
- modelId: "google-ai-studio/gemini-2.5-pro",
45
+ id: "gemini-3.1-pro-preview",
46
+ modelId: "google-ai-studio/gemini-3.1-pro-preview",
48
47
  provider: "google",
49
- name: "Gemini 2.5 Pro",
48
+ name: "Gemini 3.1 Pro Preview",
50
49
  description: "Advanced reasoning and analysis",
51
50
  },
52
51
  {
53
- id: "gemini-2.5-flash",
54
- modelId: "google-ai-studio/gemini-2.5-flash",
52
+ id: "gemini-3.5-flash",
53
+ modelId: "google-ai-studio/gemini-3.5-flash",
55
54
  provider: "google",
56
- name: "Gemini 2.5 Flash",
55
+ name: "Gemini 3.5 Flash",
57
56
  description: "Fast and cost-efficient",
58
57
  },
59
58
  {
60
- id: "kimi-k2.5",
61
- modelId: "moonshotai/kimi-k2.5",
59
+ id: "kimi-k2.6",
60
+ modelId: "moonshotai/kimi-k2.6",
62
61
  provider: "moonshotai",
63
- name: "Kimi K2.5",
62
+ name: "Kimi K2.6",
64
63
  description: "Deep thinking and multimodal",
65
64
  },
66
65
  ];
@@ -1,3 +1,3 @@
1
1
  /** Shared version value. */
2
- export declare const VERSION = "0.1.688";
2
+ export declare const VERSION = "0.1.690";
3
3
  //# sourceMappingURL=version-constant.d.ts.map
@@ -1,4 +1,4 @@
1
1
  // Keep in sync with deno.json version.
2
2
  // scripts/release.ts updates this constant during releases.
3
3
  /** Shared version value. */
4
- export const VERSION = "0.1.688";
4
+ export const VERSION = "0.1.690";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "veryfront",
3
- "version": "0.1.688",
3
+ "version": "0.1.690",
4
4
  "description": "The simplest way to build AI-powered apps",
5
5
  "keywords": [
6
6
  "react",