@tangle-network/agent-app 0.50.14 → 0.50.16
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/dist/assistant/index.js +5 -5
- package/dist/catalog/index.js +1 -1
- package/dist/chat-react/index.js +3 -3
- package/dist/{chunk-YWHLMR3N.js → chunk-5BDSNHWW.js} +2 -2
- package/dist/{chunk-SUUQ2QCS.js → chunk-7YA4QNTU.js} +22 -4
- package/dist/chunk-7YA4QNTU.js.map +1 -0
- package/dist/{chunk-6AIJSXAX.js → chunk-BPSRJTJG.js} +2 -2
- package/dist/{chunk-56VZACEN.js → chunk-OUK7JZDV.js} +17 -5
- package/dist/chunk-OUK7JZDV.js.map +1 -0
- package/dist/{chunk-7JTWJ5NN.js → chunk-ZNSR7RSQ.js} +2 -2
- package/dist/{mention-editor-NUQ2NJ6Z.js → mention-editor-BCLZUAF7.js} +3 -3
- package/dist/runtime/index.js +1 -1
- package/dist/runtime/model-catalog.d.ts +5 -5
- package/dist/studio-react/index.js +3 -3
- package/dist/web-react/index.js +5 -5
- package/dist/web-react/lazy-load-boundary.d.ts +1 -1
- package/package.json +1 -1
- package/dist/chunk-56VZACEN.js.map +0 -1
- package/dist/chunk-SUUQ2QCS.js.map +0 -1
- /package/dist/{chunk-YWHLMR3N.js.map → chunk-5BDSNHWW.js.map} +0 -0
- /package/dist/{chunk-6AIJSXAX.js.map → chunk-BPSRJTJG.js.map} +0 -0
- /package/dist/{chunk-7JTWJ5NN.js.map → chunk-ZNSR7RSQ.js.map} +0 -0
- /package/dist/{mention-editor-NUQ2NJ6Z.js.map → mention-editor-BCLZUAF7.js.map} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/runtime/model-catalog.ts"],"sourcesContent":["/**\n * Model catalogue — computed live from the Tangle Router, never hand-curated.\n * Lifted from tuner-agent so every agent app's model picker shares one\n * filter/dedupe/rank/feature pipeline instead of re-deriving it.\n *\n * The router's /models endpoint returns every routeable model (~200), which is\n * unusable as a picker list: it mixes chat models with TTS/embedding/realtime\n * endpoints, dated snapshots alias their parents, and provider-prefixed ids\n * duplicate canonical ones. This module turns that into a product catalogue:\n *\n * filter (chat-capable, routeable) → dedupe (snapshot/prefix/:free aliases)\n * → rank (provider tier, current generation) → recommend (current families)\n * → default (env override or preferred family)\n *\n * The router is the authority for availability, but its response has no\n * release dates. The shortlist therefore uses the newest routeable entry in\n * each current family, with a conservative generation floor. Other routeable\n * models stay in the catalogue for search and explicit browsing.\n */\n\nexport interface RouterModel {\n id: string\n name?: string\n description?: string\n release_date?: string\n released_at?: string\n _provider?: string\n provider?: string\n pricing?: { prompt?: string | null; completion?: string | null }\n context_length?: number\n architecture?: {\n modality?: string\n input_modalities?: string[]\n output_modalities?: string[]\n }\n supported_parameters?: string[]\n routeability?: {\n status?: string\n routeable?: boolean\n provider?: string\n endpoints?: {\n chat_completions?: {\n status?: string\n routeable?: boolean\n }\n }\n }\n}\n\n/** Define the structure and capabilities of a catalog item with optional pricing and feature flags */\nexport interface CatalogModel {\n id: string\n name: string\n provider: string\n description?: string\n /** Router-supplied release date when available; never inferred from an id. */\n releaseDate?: string\n contextLength?: number\n pricing?: { prompt?: string; completion?: string }\n supportsTools: boolean\n supportsReasoning: boolean\n featured: boolean\n}\n\n/** Define a catalog containing models with a default ID and fetch timestamp */\nexport interface ModelCatalog {\n defaultModelId: string | null\n fetchedAt: string\n models: CatalogModel[]\n}\n\n/** Display order. Unlisted providers sort after these, alphabetically. */\nconst PROVIDER_TIER: string[] = [\n 'anthropic',\n 'openai',\n 'google',\n 'xai',\n 'deepseek',\n 'moonshot',\n 'zai',\n 'mistral',\n 'groq',\n 'nvidia',\n 'cohere',\n 'cerebras',\n]\n\n/** Router aliases that are one provider in a user-facing catalogue. */\nfunction normalizeProvider(provider: string): string {\n const normalized = provider.toLowerCase()\n if (normalized === 'moonshotai') return 'moonshot'\n if (normalized === 'z-ai') return 'zai'\n if (normalized === 'x-ai') return 'xai'\n if (normalized === 'mistralai') return 'mistral'\n return normalized\n}\n\n/** Resolve provider metadata across router response versions. */\nfunction providerForModel(model: RouterModel): string {\n const declared = model._provider ?? model.provider ?? model.routeability?.provider\n if (declared) return normalizeProvider(declared)\n\n const id = normalizeModelId(model.id).toLowerCase()\n if (/^claude-/.test(id)) return 'anthropic'\n if (/^(?:gpt-|o\\d)/.test(id)) return 'openai'\n if (/^gemini-/.test(id)) return 'google'\n if (/^grok-/.test(id)) return 'xai'\n if (/^deepseek-/.test(id)) return 'deepseek'\n if (/^kimi-/.test(id)) return 'moonshot'\n if (/^glm-/.test(id)) return 'zai'\n if (/^mistral/.test(id)) return 'mistral'\n return 'unknown'\n}\n\n/** A short, varied first screen. All other routeable entries remain searchable. */\nexport const MAX_RECOMMENDED_MODELS = 8\n\n/** Non-chat endpoints that pollute the router list (matched on normalized id). */\nconst EXCLUDED_ID = /(embedding|tts|transcribe|whisper|audio|realtime|image|lyria|sora|dall-e|moderation|content-safety|search-preview|search-api|deep-research|:batch$)/\n\n/**\n * Default families, in preference order. Each rule finds the highest-version\n * routeable model whose normalized id matches. Patterns anchor on the family\n * name and stop before specialty suffixes (codex, nano, lite, …) so the\n * mainline model wins.\n */\nconst DEFAULT_CANDIDATE_RULES: Array<{ providers: string[]; match: RegExp }> = [\n { providers: ['anthropic'], match: /^claude-sonnet-[\\d-]+$/ },\n { providers: ['anthropic'], match: /^claude-opus-[\\d-]+$/ },\n { providers: ['anthropic'], match: /^claude-haiku-[\\d-]+$/ },\n { providers: ['openai'], match: /^gpt-\\d+(\\.\\d+)?$/ },\n { providers: ['openai'], match: /^gpt-\\d+(\\.\\d+)?-mini$/ },\n { providers: ['google'], match: /^gemini-[\\d.]+-pro(-preview)?$/ },\n { providers: ['google'], match: /^gemini-[\\d.]+-flash(-preview)?$/ },\n { providers: ['xai'], match: /^grok-[\\d.]+$/ },\n { providers: ['deepseek'], match: /^deepseek-(chat|v[\\d.]+(-\\w+)?)$/ },\n { providers: ['moonshotai', 'moonshot'], match: /^kimi-k[\\d.]+$/ },\n { providers: ['zai', 'z-ai'], match: /^glm-[\\d.]+$/ },\n { providers: ['mistral'], match: /^mistral-(large|medium)-?[\\d.-]*$/ },\n]\n\n/**\n * Current-family floors are based on the routeable Router catalogue checked\n * 2026-09-29. Router entries do not carry release dates, so these are version\n * checks, not claims about a model's launch month. Never promote an older\n * generation merely because a newer route becomes unavailable; browsing and\n * search retain it. A newer routeable version in a family replaces its peer.\n * DeepSeek V4.1 Flash and Kimi K3 remain searchable but are excluded until\n * a live completion succeeds (2026-09-29 probes: quota 503 and server 500).\n */\nconst RECOMMENDED_FAMILIES: Array<{\n provider: string\n match: RegExp\n minVersion: number[]\n}> = [\n { provider: 'anthropic', match: /^claude-opus-\\d+(?:[-.]\\d+)*$/, minVersion: [5] },\n { provider: 'anthropic', match: /^claude-sonnet-\\d+(?:[-.]\\d+)*$/, minVersion: [5] },\n { provider: 'openai', match: /^gpt-\\d+(?:\\.\\d+)?-sol$/, minVersion: [6] },\n { provider: 'openai', match: /^gpt-\\d+(?:\\.\\d+)?-astra$/, minVersion: [6] },\n { provider: 'google', match: /^gemini-\\d+(?:\\.\\d+)?-flash(?:-preview)?$/, minVersion: [3, 5] },\n { provider: 'zai', match: /^glm-\\d+(?:\\.\\d+)?$/, minVersion: [5, 3] },\n]\n\nconst RECOMMENDATION_WINDOW_MS = 120 * 24 * 60 * 60 * 1000\n\nfunction releaseDateFromRouter(model: RouterModel): string | undefined {\n const value = model.release_date ?? model.released_at\n if (!value || !/^\\d{4}-\\d{2}-\\d{2}(?:T|$)/.test(value)) return undefined\n const time = Date.parse(value)\n return Number.isFinite(time) ? new Date(time).toISOString() : undefined\n}\n\n/** Families known to support tool calls even when router metadata omits it\n * (dated snapshots often lack the supported_parameters of their parent). */\nconst TOOL_CAPABLE_FAMILY = /^(claude|gpt-\\d|gpt-oss|o[134]|gemini|grok|deepseek|glm|kimi|mistral|ministral|magistral|command|nemotron|llama)/\n\n/** Strip provider prefix, :free suffix, and trailing date stamps. */\nexport function normalizeModelId(id: string): string {\n let tail = id.split('/').pop() ?? id\n tail = tail.replace(/:free$/, '')\n tail = tail.replace(/-\\d{8}$/, '')\n tail = tail.replace(/-\\d{4}-\\d{2}-\\d{2}$/, '')\n return tail\n}\n\n/** All numeric groups in a normalized id, for version comparison. */\nfunction versionOf(normId: string): number[] {\n return (normId.match(/\\d+/g) ?? []).map(Number)\n}\n\nfunction compareVersions(a: number[], b: number[]): number {\n const len = Math.max(a.length, b.length)\n for (let i = 0; i < len; i++) {\n const d = (a[i] ?? -1) - (b[i] ?? -1)\n if (d !== 0) return d\n }\n return 0\n}\n\n/**\n * Read the generation attached to a known model family.\n *\n * This deliberately does not read every number in the id. A parameter count\n * such as `gpt-oss-120b` is not newer than GPT 5.6.\n */\nfunction releaseVersion(id: string): number[] {\n const normalized = normalizeModelId(id).toLowerCase()\n const patterns = [\n /^claude-[a-z0-9]+-(\\d+(?:[.-]\\d+)*)/,\n /^gpt-(\\d+(?:\\.\\d+)*)/,\n /^o(\\d+(?:\\.\\d+)*)/,\n /^gemini-(\\d+(?:\\.\\d+)*)/,\n /^deepseek-v(\\d+(?:\\.\\d+)*)/,\n /^kimi-k(\\d+(?:\\.\\d+)*)/,\n /^glm-(\\d+(?:\\.\\d+)*)/,\n /^grok-(\\d+(?:\\.\\d+)*)/,\n /^mistral-(?:large|medium)-?(\\d+(?:[.-]\\d+)*)/,\n /^qwen-?(\\d+(?:\\.\\d+)*)/,\n /^llama-?(\\d+(?:\\.\\d+)*)/,\n ]\n for (const pattern of patterns) {\n const match = normalized.match(pattern)\n if (match?.[1]) return match[1].split(/[.-]/).map(Number)\n }\n return []\n}\n\n/**\n * Return a copy sorted for a model menu.\n *\n * Providers keep the shared display order. Within each provider, current\n * generations come first across families. Stable ids win ties with previews.\n * Callers can sort separate sections without changing `featured` or defaults.\n */\nexport function sortModelsByFreshness(models: readonly CatalogModel[]): CatalogModel[] {\n return [...models].sort((a, b) => {\n const providerA = normalizeProvider(a.provider)\n const providerB = normalizeProvider(b.provider)\n const providerOrder = providerRank(providerA) - providerRank(providerB)\n if (providerOrder !== 0) return providerOrder\n if (providerA !== providerB) return providerA.localeCompare(providerB)\n\n const generationOrder = compareVersions(releaseVersion(b.id), releaseVersion(a.id))\n if (generationOrder !== 0) return generationOrder\n\n const previewOrder = Number(/preview/i.test(a.id)) - Number(/preview/i.test(b.id))\n if (previewOrder !== 0) return previewOrder\n return a.id.localeCompare(b.id)\n })\n}\n\n/** Lower = preferred representative for an alias group. */\nfunction aliasPenalty(id: string): number {\n let p = 0\n if (id.includes('/')) p += 4\n if (/-\\d{8}$|-\\d{4}-\\d{2}-\\d{2}$/.test(id.replace(/:free$/, ''))) p += 2\n if (id.endsWith(':free')) p += 1\n return p\n}\n\nfunction providerRank(provider: string): number {\n const i = PROVIDER_TIER.indexOf(normalizeProvider(provider))\n return i === -1 ? PROVIDER_TIER.length : i\n}\n\n/**\n * Can this router entry serve a text chat turn?\n *\n * The router lists every routeable endpoint, which is not the same list a chat\n * picker should show: measured against the live catalogue (504 entries), this\n * rejects 35 — image generators, TTS voices, embedding models, and the\n * audio-IN transcription endpoints (`whisper-1`, `gpt-4o-transcribe`, …) that\n * emit text but cannot take a text prompt.\n *\n * A model whose metadata omits either modality list is KEPT. The router is the\n * source of that metadata and it is occasionally sparse; dropping a usable\n * model because a field is missing is the worse failure of the two.\n *\n * Exported because a picker needs the same answer `buildCatalog` uses — the\n * fleet had this predicate copied into a product component, where its narrower\n * spelling let the 10 transcription endpoints through.\n */\nexport function isChatCapableModel(m: RouterModel): boolean {\n const arch = m.architecture\n if (!arch?.input_modalities || !arch?.output_modalities) return true\n return arch.input_modalities.includes('text') && arch.output_modalities.includes('text')\n}\n\nconst isChatModel = isChatCapableModel\n\nfunction isRouteable(m: RouterModel): boolean {\n const routeability = m.routeability\n if (!routeability) return true\n const chatEndpoint = routeability.endpoints?.chat_completions\n if (chatEndpoint?.routeable === false) return false\n if (chatEndpoint?.status !== undefined && chatEndpoint.status !== 'routeable') return false\n if (routeability.routeable === true || routeability.status === 'routeable') return true\n if (routeability.routeable === false) return false\n return routeability.status === undefined\n}\n\n/** Find a catalogue row by direct or provider-prefixed model id. */\nexport function catalogModelForId(\n models: readonly CatalogModel[],\n requestedId: string | undefined,\n): CatalogModel | undefined {\n const requested = requestedId?.trim()\n if (!requested) return undefined\n\n const exact = models.find((model) => model.id === requested)\n if (exact) return exact\n\n const slash = requested.indexOf('/')\n const requestedProvider = slash > 0 ? normalizeProvider(requested.slice(0, slash)) : undefined\n const normalized = normalizeModelId(requested)\n return models.find((model) => {\n if (normalizeModelId(model.id) !== normalized) return false\n return requestedProvider === undefined || normalizeProvider(model.provider) === requestedProvider\n })\n}\n\n/**\n * Reconcile a persisted selection against the live catalogue.\n *\n * The returned id is always a catalogue id once the catalogue has entries.\n * This keeps a removed model from remaining selected while preserving the\n * current value during the brief empty/loading state.\n */\nexport function resolveCatalogModelId(\n models: readonly CatalogModel[],\n selectedId?: string,\n fallbackId?: string,\n): string | undefined {\n if (models.length === 0) return selectedId?.trim() || fallbackId?.trim()\n return catalogModelForId(models, selectedId)?.id\n ?? catalogModelForId(models, fallbackId)?.id\n ?? models[0]?.id\n}\n\n/**\n * Pure catalogue pipeline. `preferredDefault` (typically the MODEL_NAME env\n * var) wins when it survives filtering; otherwise the first featured model.\n */\nexport function buildCatalog(raw: RouterModel[], opts?: { preferredDefault?: string }): ModelCatalog {\n // Filter to chat-capable, routeable, non-specialty models\n const candidates = raw.filter(\n (m) =>\n m.id &&\n isRouteable(m) &&\n isChatModel(m) &&\n !EXCLUDED_ID.test(normalizeModelId(m.id)),\n )\n\n // Dedupe alias groups (dated snapshots, provider prefixes, :free variants).\n // Within a group, merge metadata so the representative keeps the richest\n // supported_parameters claim (snapshots often omit what the parent lists).\n const groups = new Map<string, RouterModel[]>()\n for (const m of candidates) {\n const key = `${providerForModel(m)}::${normalizeModelId(m.id)}`\n const g = groups.get(key)\n if (g) g.push(m)\n else groups.set(key, [m])\n }\n\n const reps: Array<{ model: RouterModel; normId: string; mergedParams: Set<string>; releaseDate?: string }> = []\n for (const group of groups.values()) {\n group.sort((a, b) => aliasPenalty(a.id) - aliasPenalty(b.id) || a.id.length - b.id.length)\n const rep = group[0]!\n const mergedParams = new Set<string>(group.flatMap((m) => m.supported_parameters ?? []))\n const releaseDate = group.map(releaseDateFromRouter).find((date) => date !== undefined)\n reps.push({ model: rep, normId: normalizeModelId(rep.id), mergedParams, releaseDate })\n }\n\n // Resolve the default independently from menu recommendations.\n const defaultCandidateIds: string[] = []\n for (const rule of DEFAULT_CANDIDATE_RULES) {\n const matches = reps.filter(\n (r) =>\n rule.providers.map(normalizeProvider).includes(providerForModel(r.model)) &&\n rule.match.test(r.normId) &&\n !defaultCandidateIds.includes(r.model.id),\n )\n if (!matches.length) continue\n matches.sort(\n (a, b) =>\n compareVersions(versionOf(b.normId), versionOf(a.normId)) ||\n Number(a.normId.includes('preview')) - Number(b.normId.includes('preview')) ||\n a.model.id.length - b.model.id.length,\n )\n defaultCandidateIds.push(matches[0]!.model.id)\n }\n\n const toCatalogModel = (r: (typeof reps)[number]): CatalogModel => {\n const m = r.model\n const provider = providerForModel(m)\n return {\n id: m.id,\n name: m.name ?? m.id,\n provider,\n description: m.description ? m.description.slice(0, 160) : undefined,\n releaseDate: r.releaseDate,\n contextLength: m.context_length,\n pricing:\n m.pricing?.prompt || m.pricing?.completion\n ? { prompt: m.pricing.prompt ?? undefined, completion: m.pricing.completion ?? undefined }\n : undefined,\n supportsTools: r.mergedParams.has('tools') || TOOL_CAPABLE_FAMILY.test(r.normId),\n supportsReasoning: r.mergedParams.has('reasoning') || r.mergedParams.has('include_reasoning'),\n featured: false,\n }\n }\n\n // Family rules retain the intentional default preference. Display order is\n // independent: every catalogue consumer gets provider-grouped freshness,\n // even when it does not render ModelPicker.\n const defaultCandidatesInRuleOrder = defaultCandidateIds\n .map((id) => reps.find((r) => r.model.id === id)!)\n .map(toCatalogModel)\n const sorted = sortModelsByFreshness(reps.map(toCatalogModel))\n const recommendedIds = new Set<string>()\n const recentSince = Date.now() - RECOMMENDATION_WINDOW_MS\n for (const family of RECOMMENDED_FAMILIES) {\n const current = sorted.find((model) =>\n normalizeProvider(model.provider) === family.provider &&\n family.match.test(normalizeModelId(model.id)) &&\n compareVersions(releaseVersion(model.id), family.minVersion) >= 0 &&\n (model.releaseDate === undefined || Date.parse(model.releaseDate) >= recentSince),\n )\n if (current) recommendedIds.add(current.id)\n if (recommendedIds.size >= MAX_RECOMMENDED_MODELS) break\n }\n const models = sorted.map((model) =>\n recommendedIds.has(model.id) ? { ...model, featured: true } : model,\n )\n\n const preferred = opts?.preferredDefault\n const defaultModelId =\n (preferred && models.find((m) => m.id === preferred || normalizeModelId(m.id) === normalizeModelId(preferred))?.id) ||\n defaultCandidatesInRuleOrder.find((m) => m.supportsTools)?.id ||\n models[0]?.id ||\n null\n\n return { defaultModelId, fetchedAt: new Date().toISOString(), models }\n}\n\n// ── Cached fetch ─────────────────────────────────────────────────────────\n\nconst CATALOG_TTL_MS = 5 * 60 * 1000\n\nlet _cache: { catalog: ModelCatalog; at: number } | null = null\n\n/**\n * Fetch the router model list and build the catalogue, with an in-isolate\n * cache (TTL 5 min). On router failure a stale catalogue is served rather\n * than erroring the picker.\n */\nexport async function fetchModelCatalog(cfg: {\n baseUrl: string\n apiKey: string\n preferredDefault?: string\n}): Promise<ModelCatalog> {\n if (_cache && Date.now() - _cache.at < CATALOG_TTL_MS) {\n return _cache.catalog\n }\n try {\n const res = await fetch(`${cfg.baseUrl}/models`, {\n headers: { Authorization: `Bearer ${cfg.apiKey}` },\n })\n if (!res.ok) throw new Error(`Router /models returned ${res.status}`)\n const data = (await res.json()) as { data?: RouterModel[] }\n const catalog = buildCatalog(data.data ?? [], { preferredDefault: cfg.preferredDefault })\n _cache = { catalog, at: Date.now() }\n return catalog\n } catch (err) {\n if (_cache) return _cache.catalog\n throw err\n }\n}\n\n/** Test-only: clear the catalogue cache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