@ramme-io/shared 4.8.0 → 4.10.0
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/index.cjs +250 -0
- package/dist/index.d.cts +89 -1
- package/dist/index.d.ts +89 -1
- package/dist/index.js +247 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -165,6 +165,9 @@ __export(index_exports, {
|
|
|
165
165
|
InviteRecordSchema: () => InviteRecordSchema,
|
|
166
166
|
MAX_PASSWORD_LENGTH: () => MAX_PASSWORD_LENGTH,
|
|
167
167
|
MIN_PASSWORD_LENGTH: () => MIN_PASSWORD_LENGTH,
|
|
168
|
+
MODEL_GLOSSARY: () => MODEL_GLOSSARY,
|
|
169
|
+
MODEL_MATRIX: () => MODEL_MATRIX,
|
|
170
|
+
MODEL_MATRIX_REVIEWED: () => MODEL_MATRIX_REVIEWED,
|
|
168
171
|
MountHolesSchema: () => MountHolesSchema,
|
|
169
172
|
NewAccessTokenSchema: () => NewAccessTokenSchema,
|
|
170
173
|
ORIGINAL_MAX_BYTES: () => ORIGINAL_MAX_BYTES,
|
|
@@ -1714,6 +1717,250 @@ var AI_ROSTER = {
|
|
|
1714
1717
|
}
|
|
1715
1718
|
};
|
|
1716
1719
|
|
|
1720
|
+
// src/ai/modelMatrix.ts
|
|
1721
|
+
var MODEL_MATRIX_REVIEWED = "2026-11-25";
|
|
1722
|
+
var ANTHROPIC_LINKS = {
|
|
1723
|
+
docs: "https://platform.claude.com/docs/en/models/overview",
|
|
1724
|
+
get: "https://platform.claude.com/settings/keys"
|
|
1725
|
+
};
|
|
1726
|
+
var QWEN_LOCAL = {
|
|
1727
|
+
model: "qwen3.5:27b",
|
|
1728
|
+
name: "Qwen 3.5 27B",
|
|
1729
|
+
where: "local",
|
|
1730
|
+
provider: "Ollama",
|
|
1731
|
+
memoryGb: 20,
|
|
1732
|
+
links: { docs: "https://huggingface.co/Qwen/Qwen3.5-27B", get: "https://ollama.com/library/qwen3.5" }
|
|
1733
|
+
};
|
|
1734
|
+
var GPT_OSS_LOCAL = {
|
|
1735
|
+
model: "gpt-oss:20b",
|
|
1736
|
+
name: "gpt-oss 20B",
|
|
1737
|
+
where: "local",
|
|
1738
|
+
provider: "Ollama",
|
|
1739
|
+
memoryGb: 13,
|
|
1740
|
+
links: { docs: "https://openai.com/index/introducing-gpt-oss/", get: "https://ollama.com/library/gpt-oss" }
|
|
1741
|
+
};
|
|
1742
|
+
var HAIKU = {
|
|
1743
|
+
model: "claude-haiku-5-5",
|
|
1744
|
+
name: "Claude Haiku 5.5",
|
|
1745
|
+
where: "api",
|
|
1746
|
+
provider: "Anthropic",
|
|
1747
|
+
price: { input: 0.1, output: 0.5 },
|
|
1748
|
+
links: ANTHROPIC_LINKS
|
|
1749
|
+
};
|
|
1750
|
+
var HAIKU_45 = {
|
|
1751
|
+
model: "claude-haiku-4-5-20251001",
|
|
1752
|
+
name: "Claude Haiku 4.5",
|
|
1753
|
+
where: "api",
|
|
1754
|
+
provider: "Anthropic",
|
|
1755
|
+
price: { input: 1, output: 5 },
|
|
1756
|
+
links: ANTHROPIC_LINKS
|
|
1757
|
+
};
|
|
1758
|
+
var SONNET = {
|
|
1759
|
+
model: "claude-sonnet-5-5",
|
|
1760
|
+
name: "Claude Sonnet 5.5",
|
|
1761
|
+
where: "api",
|
|
1762
|
+
provider: "Anthropic",
|
|
1763
|
+
price: { input: 2, output: 10 },
|
|
1764
|
+
links: ANTHROPIC_LINKS
|
|
1765
|
+
};
|
|
1766
|
+
var OPUS = {
|
|
1767
|
+
model: "claude-opus-5-5",
|
|
1768
|
+
name: "Claude Opus 5.5",
|
|
1769
|
+
where: "api",
|
|
1770
|
+
provider: "Anthropic",
|
|
1771
|
+
price: { input: 4, output: 20 },
|
|
1772
|
+
links: ANTHROPIC_LINKS
|
|
1773
|
+
};
|
|
1774
|
+
var GPT_LUNA = {
|
|
1775
|
+
model: "gpt-6-luna",
|
|
1776
|
+
name: "GPT-6 Luna",
|
|
1777
|
+
where: "api",
|
|
1778
|
+
provider: "OpenAI",
|
|
1779
|
+
price: { input: 0.1, output: 0.5 },
|
|
1780
|
+
links: { docs: "https://developers.openai.com/api/docs/models", get: "https://platform.openai.com/api-keys" }
|
|
1781
|
+
};
|
|
1782
|
+
var GEMINI_LITE = {
|
|
1783
|
+
model: "gemini-3.5-flash-lite",
|
|
1784
|
+
name: "Gemini 3.5 Flash-Lite",
|
|
1785
|
+
where: "api",
|
|
1786
|
+
provider: "Google",
|
|
1787
|
+
price: { input: 0.3, output: 2.5 },
|
|
1788
|
+
links: { docs: "https://aistudio.google.com/docs/models", get: "https://aistudio.google.com/apikey" }
|
|
1789
|
+
};
|
|
1790
|
+
var BAKEOFF = "engines/data-factory-api/core/local_models.py";
|
|
1791
|
+
var MODEL_MATRIX = [
|
|
1792
|
+
{
|
|
1793
|
+
id: "chat",
|
|
1794
|
+
name: "Chat and assistant",
|
|
1795
|
+
jargon: "Conversational agent with tool calling",
|
|
1796
|
+
plain: "Answers questions in a conversation and, when asked, does something: opens a chart, looks up a company. The hard part is knowing when not to.",
|
|
1797
|
+
typical: { task: "a question and its answer", inputTokens: 1500, outputTokens: 300 },
|
|
1798
|
+
options: [
|
|
1799
|
+
{
|
|
1800
|
+
...QWEN_LOCAL,
|
|
1801
|
+
status: "in-use",
|
|
1802
|
+
result: "Chose the right tool, or none, on 4 of 4 test prompts; first word in 1.5 s with thinking off.",
|
|
1803
|
+
evidence: "framework/shared/src/ai/registry.ts"
|
|
1804
|
+
},
|
|
1805
|
+
{ ...HAIKU_45, status: "in-use", result: "Runs the ramme.io site assistant.", evidence: "framework/shared/src/ai/registry.ts" },
|
|
1806
|
+
{ ...HAIKU, status: "candidate" },
|
|
1807
|
+
{ ...GPT_OSS_LOCAL, status: "candidate" }
|
|
1808
|
+
]
|
|
1809
|
+
},
|
|
1810
|
+
{
|
|
1811
|
+
id: "scoring",
|
|
1812
|
+
name: "Scoring short texts",
|
|
1813
|
+
jargon: "Classification / sentiment scoring",
|
|
1814
|
+
plain: "Reads a headline or a filing summary and gives it a number, such as 0 for bad news and 100 for good.",
|
|
1815
|
+
typical: { task: "one headline", inputTokens: 150, outputTokens: 60 },
|
|
1816
|
+
options: [
|
|
1817
|
+
{
|
|
1818
|
+
...QWEN_LOCAL,
|
|
1819
|
+
status: "in-use",
|
|
1820
|
+
result: "Same reading as Claude Opus on 55% of 40 real headlines, and 5 of 5 obvious cases right.",
|
|
1821
|
+
evidence: BAKEOFF
|
|
1822
|
+
},
|
|
1823
|
+
{ ...GPT_OSS_LOCAL, status: "measured", result: "Same reading as Claude Opus on 52% of 40; fastest locally.", evidence: BAKEOFF },
|
|
1824
|
+
{ ...HAIKU, status: "candidate" }
|
|
1825
|
+
]
|
|
1826
|
+
},
|
|
1827
|
+
{
|
|
1828
|
+
id: "extraction",
|
|
1829
|
+
name: "Pulling facts out of text",
|
|
1830
|
+
jargon: "Structured extraction (JSON output)",
|
|
1831
|
+
plain: "Finds named things in text and returns them in a fixed shape: which companies a news story mentions, how many jobs a layoff cuts.",
|
|
1832
|
+
typical: { task: "one news story", inputTokens: 400, outputTokens: 150 },
|
|
1833
|
+
options: [
|
|
1834
|
+
{
|
|
1835
|
+
...QWEN_LOCAL,
|
|
1836
|
+
status: "in-use",
|
|
1837
|
+
result: "Named the same companies as Claude Opus 90% of the time on 40 real signals.",
|
|
1838
|
+
evidence: BAKEOFF
|
|
1839
|
+
},
|
|
1840
|
+
{ ...GPT_OSS_LOCAL, status: "measured", result: "88% on the same test.", evidence: BAKEOFF },
|
|
1841
|
+
{ ...HAIKU, status: "candidate" }
|
|
1842
|
+
]
|
|
1843
|
+
},
|
|
1844
|
+
{
|
|
1845
|
+
id: "reports",
|
|
1846
|
+
name: "Writing reports and briefings",
|
|
1847
|
+
jargon: "Long-form generation, grounded in sources",
|
|
1848
|
+
plain: "Writes a few paragraphs about a company from its numbers and news, citing where each claim came from.",
|
|
1849
|
+
typical: { task: "one report section", inputTokens: 6e3, outputTokens: 800 },
|
|
1850
|
+
options: [
|
|
1851
|
+
{ ...HAIKU, status: "in-use", result: "The default for reports and Generate Briefing.", evidence: "engines/data-factory-api/core/ai_router.py" },
|
|
1852
|
+
{
|
|
1853
|
+
...QWEN_LOCAL,
|
|
1854
|
+
status: "measured",
|
|
1855
|
+
result: "Passed the briefing and the longest report section without being cut off (42 s and 10 s).",
|
|
1856
|
+
evidence: "engines/data-factory-api/core/model_smoke.py"
|
|
1857
|
+
},
|
|
1858
|
+
{ ...SONNET, status: "candidate" },
|
|
1859
|
+
{ ...GEMINI_LITE, status: "candidate" },
|
|
1860
|
+
{ ...GPT_LUNA, status: "candidate" }
|
|
1861
|
+
]
|
|
1862
|
+
},
|
|
1863
|
+
{
|
|
1864
|
+
id: "coding",
|
|
1865
|
+
name: "Writing and changing code",
|
|
1866
|
+
jargon: "Agentic coding",
|
|
1867
|
+
plain: "Reads a codebase, makes a change across several files and checks its own work. This repo is built this way.",
|
|
1868
|
+
typical: { task: "one change, start to finish", inputTokens: 4e5, outputTokens: 3e4 },
|
|
1869
|
+
options: [
|
|
1870
|
+
{ ...OPUS, status: "in-use", result: "Builds and maintains this repo through Claude Code.", evidence: "AGENTS.md" },
|
|
1871
|
+
{ ...SONNET, status: "candidate" },
|
|
1872
|
+
{ ...QWEN_LOCAL, status: "candidate" }
|
|
1873
|
+
]
|
|
1874
|
+
},
|
|
1875
|
+
{
|
|
1876
|
+
id: "vision",
|
|
1877
|
+
name: "Understanding images",
|
|
1878
|
+
jargon: "Vision-language model (multimodal input)",
|
|
1879
|
+
plain: "Looks at a photo or a chart and describes it or answers questions about it.",
|
|
1880
|
+
typical: { task: "one photo and a question", inputTokens: 1600, outputTokens: 200 },
|
|
1881
|
+
options: [
|
|
1882
|
+
{ ...QWEN_LOCAL, status: "candidate" },
|
|
1883
|
+
{ ...HAIKU, status: "candidate" }
|
|
1884
|
+
]
|
|
1885
|
+
},
|
|
1886
|
+
{
|
|
1887
|
+
id: "speech-to-text",
|
|
1888
|
+
name: "Turning speech into text",
|
|
1889
|
+
jargon: "Speech-to-text (STT, automatic speech recognition)",
|
|
1890
|
+
plain: "Listens to someone talk and writes down what they said.",
|
|
1891
|
+
typical: { task: "one minute of speech", inputTokens: 0, outputTokens: 0 },
|
|
1892
|
+
options: []
|
|
1893
|
+
},
|
|
1894
|
+
{
|
|
1895
|
+
id: "text-to-speech",
|
|
1896
|
+
name: "Reading text aloud",
|
|
1897
|
+
jargon: "Text-to-speech (TTS, speech synthesis)",
|
|
1898
|
+
plain: "Turns written words into a natural-sounding voice.",
|
|
1899
|
+
typical: { task: "one paragraph spoken", inputTokens: 0, outputTokens: 0 },
|
|
1900
|
+
options: []
|
|
1901
|
+
},
|
|
1902
|
+
{
|
|
1903
|
+
id: "embeddings",
|
|
1904
|
+
name: "Finding similar things",
|
|
1905
|
+
jargon: "Embeddings (vector search)",
|
|
1906
|
+
plain: "Turns text into a list of numbers so that texts about the same thing end up close together, which is how search by meaning works.",
|
|
1907
|
+
typical: { task: "one paragraph", inputTokens: 200, outputTokens: 0 },
|
|
1908
|
+
options: [
|
|
1909
|
+
{
|
|
1910
|
+
model: "nomic-embed-text",
|
|
1911
|
+
name: "Nomic Embed Text",
|
|
1912
|
+
where: "local",
|
|
1913
|
+
provider: "Ollama",
|
|
1914
|
+
memoryGb: 0.3,
|
|
1915
|
+
status: "candidate",
|
|
1916
|
+
links: { docs: "https://huggingface.co/nomic-ai/nomic-embed-text-v1.5", get: "https://ollama.com/library/nomic-embed-text" }
|
|
1917
|
+
}
|
|
1918
|
+
]
|
|
1919
|
+
},
|
|
1920
|
+
{
|
|
1921
|
+
id: "documents",
|
|
1922
|
+
name: "Reading PDFs and scanned documents",
|
|
1923
|
+
jargon: "Document parsing (layout analysis, OCR, table extraction)",
|
|
1924
|
+
plain: "Turns a PDF, including its tables and scanned pages, into text and tables a program can read.",
|
|
1925
|
+
typical: { task: "one 20-page report", inputTokens: 0, outputTokens: 0 },
|
|
1926
|
+
options: [
|
|
1927
|
+
{
|
|
1928
|
+
model: "llamaparse-agentic",
|
|
1929
|
+
name: "LlamaParse (agentic)",
|
|
1930
|
+
where: "api",
|
|
1931
|
+
provider: "LlamaIndex",
|
|
1932
|
+
status: "in-use",
|
|
1933
|
+
result: "Read 24 of 24 values right on two servicer reports.",
|
|
1934
|
+
evidence: "engines/data-factory-api/scripts/eval_document_parser.py",
|
|
1935
|
+
links: { docs: "https://developers.llamaindex.ai/llamaparse/parse/getting_started/", get: "https://cloud.llamaindex.ai/api-key" }
|
|
1936
|
+
},
|
|
1937
|
+
{
|
|
1938
|
+
model: "docling",
|
|
1939
|
+
name: "Docling",
|
|
1940
|
+
where: "local",
|
|
1941
|
+
provider: "IBM (open source)",
|
|
1942
|
+
status: "measured",
|
|
1943
|
+
result: "Read 17 of 24 right, and none wrong, on the same reports.",
|
|
1944
|
+
evidence: "engines/data-factory-api/scripts/eval_document_parser.py",
|
|
1945
|
+
links: { docs: "https://docling-project.github.io/docling/", get: "https://github.com/docling-project/docling" }
|
|
1946
|
+
}
|
|
1947
|
+
]
|
|
1948
|
+
}
|
|
1949
|
+
];
|
|
1950
|
+
var MODEL_GLOSSARY = [
|
|
1951
|
+
{ term: "Model", plain: "The program that reads and writes text (or images, or speech). It was trained once, on a huge amount of writing, and is then asked questions." },
|
|
1952
|
+
{ term: "Local", plain: "Runs on your own computer. Free per use, private, and needs enough memory to hold the model." },
|
|
1953
|
+
{ term: "API (hosted)", plain: "Runs on a company's servers. You send it a request over the internet and pay per use." },
|
|
1954
|
+
{ term: "Token", plain: "The unit models count in, roughly three quarters of a word. Prices are per million tokens." },
|
|
1955
|
+
{ term: "Input and output tokens", plain: "What you send (the question, the document) and what comes back (the answer). Output usually costs more." },
|
|
1956
|
+
{ term: "Context window", plain: "How much text a model can read at once. Asking for more than it needs costs memory, so this repo asks for just enough." },
|
|
1957
|
+
{ term: "Parameters (27B, 20B)", plain: "A rough measure of a model's size: 27B is 27 billion numbers. Bigger usually means better and slower, and needs more memory." },
|
|
1958
|
+
{ term: "Thinking (reasoning)", plain: "Some models work through a problem before answering. Better for hard problems, slower for easy ones, so this repo turns it off for quick jobs." },
|
|
1959
|
+
{ term: "Tool calling", plain: "A model asking the app to do something, such as open a chart, instead of only replying in words." },
|
|
1960
|
+
{ term: "Ollama", plain: "Free software that downloads and runs open models on your own computer." },
|
|
1961
|
+
{ term: "Open weights", plain: "A model whose files anyone may download and run. Every local model here is one." }
|
|
1962
|
+
];
|
|
1963
|
+
|
|
1717
1964
|
// src/ai/prompts/theme.prompt.ts
|
|
1718
1965
|
var THEME_SYSTEM_PROMPT = `
|
|
1719
1966
|
You are a Senior UI Design Engineer specializing in WCAG 2.1 Accessibility.
|
|
@@ -2649,6 +2896,9 @@ var NewAccessTokenSchema = import_zod19.z.object({
|
|
|
2649
2896
|
InviteRecordSchema,
|
|
2650
2897
|
MAX_PASSWORD_LENGTH,
|
|
2651
2898
|
MIN_PASSWORD_LENGTH,
|
|
2899
|
+
MODEL_GLOSSARY,
|
|
2900
|
+
MODEL_MATRIX,
|
|
2901
|
+
MODEL_MATRIX_REVIEWED,
|
|
2652
2902
|
MountHolesSchema,
|
|
2653
2903
|
NewAccessTokenSchema,
|
|
2654
2904
|
ORIGINAL_MAX_BYTES,
|
package/dist/index.d.cts
CHANGED
|
@@ -59697,6 +59697,94 @@ declare const AI_ROSTER: {
|
|
|
59697
59697
|
type AgentRoleKey = keyof typeof AI_ROSTER;
|
|
59698
59698
|
type AgentRoleConfig = (typeof AI_ROSTER)[AgentRoleKey];
|
|
59699
59699
|
|
|
59700
|
+
/**
|
|
59701
|
+
* @file modelMatrix.ts
|
|
59702
|
+
* @package @ramme-io/shared
|
|
59703
|
+
* @description Which AI model for which job: local and hosted options, what
|
|
59704
|
+
* each costs, and how sure we are about it.
|
|
59705
|
+
*
|
|
59706
|
+
* One source for three readers: agents choosing a model in this repo, the
|
|
59707
|
+
* /docs/ai-models page on ramme.io (which renders this file and nothing
|
|
59708
|
+
* else), and the monthly model check, which opens a pull request against
|
|
59709
|
+
* this file when a better or cheaper option appears.
|
|
59710
|
+
*
|
|
59711
|
+
* WHAT A STATUS MEANS
|
|
59712
|
+
*
|
|
59713
|
+
* in-use what this repo runs for the job today
|
|
59714
|
+
* measured tested here, on this job's real prompts; `result` says how
|
|
59715
|
+
* candidate known and plausible, not yet tested here
|
|
59716
|
+
*
|
|
59717
|
+
* A job with no option yet is listed anyway with `options: []`: the page says
|
|
59718
|
+
* it has not been evaluated, rather than leaving it out.
|
|
59719
|
+
*
|
|
59720
|
+
* PRICES are US dollars per million tokens, input then output, for hosted
|
|
59721
|
+
* models only; a local model costs the machine it runs on. Each hosted price
|
|
59722
|
+
* matches engines/data-factory-api/core/model_pricing.py, which the engine
|
|
59723
|
+
* meters spend with; model-matrix.test.ts in products/ramme-marketing fails
|
|
59724
|
+
* when the two disagree, and when a model this repo runs is missing here.
|
|
59725
|
+
*
|
|
59726
|
+
* IRON LAW (this package): constants and types only, no functions.
|
|
59727
|
+
*/
|
|
59728
|
+
type ModelWhere = 'local' | 'api';
|
|
59729
|
+
type ModelStatus = 'in-use' | 'measured' | 'candidate';
|
|
59730
|
+
interface ModelOption {
|
|
59731
|
+
/** The id a request names: 'qwen3.5:27b', 'claude-haiku-5-5'. */
|
|
59732
|
+
model: string;
|
|
59733
|
+
/** What a person calls it. */
|
|
59734
|
+
name: string;
|
|
59735
|
+
where: ModelWhere;
|
|
59736
|
+
/** Who serves it: 'Ollama' for local, the company for a hosted model. */
|
|
59737
|
+
provider: string;
|
|
59738
|
+
status: ModelStatus;
|
|
59739
|
+
/** USD per million tokens, hosted models only. */
|
|
59740
|
+
price?: {
|
|
59741
|
+
input: number;
|
|
59742
|
+
output: number;
|
|
59743
|
+
};
|
|
59744
|
+
/** What a document costs, for a service priced by the page. */
|
|
59745
|
+
pricePerPage?: number;
|
|
59746
|
+
/** Memory the model holds while loaded, local models only. */
|
|
59747
|
+
memoryGb?: number;
|
|
59748
|
+
/** The measured outcome, in one sentence, when status is measured or in-use. */
|
|
59749
|
+
result?: string;
|
|
59750
|
+
/** Where the measurement or decision is recorded in this repo. */
|
|
59751
|
+
evidence?: string;
|
|
59752
|
+
links: ModelLinks;
|
|
59753
|
+
}
|
|
59754
|
+
/**
|
|
59755
|
+
* Where a reader goes next. `docs` is the creator's own documentation;
|
|
59756
|
+
* `get` is where to download it for a local model, and where to create an
|
|
59757
|
+
* API key for a hosted one, so the page can label it by `where`.
|
|
59758
|
+
*/
|
|
59759
|
+
interface ModelLinks {
|
|
59760
|
+
docs: string;
|
|
59761
|
+
get: string;
|
|
59762
|
+
}
|
|
59763
|
+
interface ModelJob {
|
|
59764
|
+
id: string;
|
|
59765
|
+
/** The job in plain words. */
|
|
59766
|
+
name: string;
|
|
59767
|
+
/** What the job is called by people who build these systems. */
|
|
59768
|
+
jargon: string;
|
|
59769
|
+
/** One or two sentences for someone who has never called a model. */
|
|
59770
|
+
plain: string;
|
|
59771
|
+
/** A typical single task, so the page can say what one costs. */
|
|
59772
|
+
typical: {
|
|
59773
|
+
task: string;
|
|
59774
|
+
inputTokens: number;
|
|
59775
|
+
outputTokens: number;
|
|
59776
|
+
};
|
|
59777
|
+
options: ModelOption[];
|
|
59778
|
+
}
|
|
59779
|
+
interface ModelGlossaryEntry {
|
|
59780
|
+
term: string;
|
|
59781
|
+
plain: string;
|
|
59782
|
+
}
|
|
59783
|
+
/** The day this file was last checked against prices and releases. */
|
|
59784
|
+
declare const MODEL_MATRIX_REVIEWED: "2026-11-25";
|
|
59785
|
+
declare const MODEL_MATRIX: ModelJob[];
|
|
59786
|
+
declare const MODEL_GLOSSARY: ModelGlossaryEntry[];
|
|
59787
|
+
|
|
59700
59788
|
declare const THEME_SYSTEM_PROMPT = "\n You are a Senior UI Design Engineer specializing in WCAG 2.1 Accessibility.\n Generate a JSON theme for: \"Ramme Project\".\n\n CRITICAL FONT RULE: \n Do NOT use generic fonts like 'Roboto', 'Open Sans', or 'Lato' unless specifically asked. \n Instead, pick high-contrast, expressive pairings from Google Fonts that match the vibe. Dont be afraid of taking risks.\n \n\n VIBE-TO-FONT REFERENCE:\n - Futuristic/Cyberpunk: 'Orbitron', 'Space Grotesk', 'Rajdhani', 'Exo 2', 'Syne'\n - Elegant/Luxury: 'Playfair Display', 'Cormorant Garamond', 'Prata', 'Fraunces'\n - Brutalist/Bold: 'Archivo Black', 'Syne', 'Bebas Neue', 'Lexend', 'Clash Display'\n - Modern Tech: 'Inter', 'Sora', 'Plus Jakarta Sans', 'Outfit', 'Manrope'\n - Retro/Whimsical: 'BioRhyme', 'Space Mono', 'Zilla Slab', 'Bungee'\n \n RULES:\n 1. Use RGB space-separated values (e.g., \"13 110 253\").\n 2. Pick a high-quality Google Font pair (Heading + Body). \n 3. Ensure the 'fonts' object is included in the root of the JSON.\n 4. Use ONLY valid Google Font names (e.g., 'Montserrat', 'Inter', 'Playfair Display', 'Poppins', 'Lato', 'Merriweather').\n 5. Return ONLY raw JSON. No markdown backticks.\n 5. ACCESSIBILITY RULE (WCAG 2.1): \n - The Contrast Ratio between --app-text-color and --app-bg-color MUST be at least 4.5:1.\n - The Contrast Ratio between --app-primary-foreground-color and --app-primary-color MUST be at least 4.5:1.\n - If the background is Light (high RGB values), the text MUST be Dark (low RGB values).\n - If the background is Dark, the text MUST be Light.\n - SECONDARY/ACCENT: Must be vibrant but legible.\n\n JSON STRUCTURE:\n {\n \"name\": \"Theme Name\",\n \"description\": \"Vibe description\",\n \"fonts\": {\n \"heading\": \"Montserrat\",\n \"body\": \"Inter\"\n },\n \"cssVars\": {\n \"--app-primary-color\": \"R G B\",\n \"--app-primary-foreground-color\": \"R G B\",\n \"--app-secondary-color\": \"R G B\",\n \"--app-accent-color\": \"R G B\",\n \"--app-bg-color\": \"R G B\",\n \"--app-card-bg-color\": \"R G B\",\n \"--app-text-color\": \"R G B\",\n \"--app-border-color\": \"R G B\",\n \"--app-muted-bg\": \"R G B\",\n \"--app-input-bg-color\": \"R G B\",\n \"--app-input-border-color\": \"R G B\",\n \"--app-chart-1\": \"R G B\",\n \"--app-chart-2\": \"R G B\",\n \"--app-chart-3\": \"R G B\",\n \"--app-chart-4\": \"R G B\",\n \"--app-chart-5\": \"R G B\",\n \"--app-border-radius-md\": \"0.375rem\"\n }\n }\n";
|
|
59701
59789
|
|
|
59702
59790
|
/**
|
|
@@ -63355,4 +63443,4 @@ type AccessTokenRecord = z.infer<typeof AccessTokenRecordSchema>;
|
|
|
63355
63443
|
type PublicAccessToken = z.infer<typeof PublicAccessTokenSchema>;
|
|
63356
63444
|
type NewAccessToken = z.infer<typeof NewAccessTokenSchema>;
|
|
63357
63445
|
|
|
63358
|
-
export { ACCESS_REQUEST_TTL_SECONDS, ACCESS_TOKEN_LIFETIMES_DAYS, ACCESS_TOKEN_MAX_PER_ACCOUNT, ACCESS_TOKEN_PREFIX, ACCESS_TOKEN_RATE_PER_MINUTE, ACCESS_TOKEN_SCOPES, ACCESS_TOKEN_SCOPE_LABELS, ACCOUNT_TTL_SECONDS, type AIKeyManifest, AIKeyManifestSchema, type AITheme, AIThemeSchema, AI_ROSTER, AI_TOOLS, APP_DOCUMENT_EDIT_PREFIX, APP_DOCUMENT_SYSTEM_PROMPT, ASSISTANT_MODEL, ASSISTANT_PROVIDER, type AccessRequest, type AccessRequestRecord, AccessRequestRecordSchema, AccessRequestSchema, type AccessRequestStatus, AccessRequestStatusSchema, type AccessTokenRecord, AccessTokenRecordSchema, type AccessTokenScope, AccessTokenScopeSchema, type AccountId, AccountIdSchema, type AccountRecord, AccountRecordSchema, type AccountRole, AccountRoleSchema, type AccountStatus, AccountStatusSchema, type AccountTheme, AccountThemeSchema, type ActionDefinition, ActionSchema, type AgentRoleConfig, type AgentRoleKey, AircraftAppConfigSchema, type AppAlign, AppAlignSchema, AppBarSchema, type AppBinding, AppBindingSchema, type AppBlock, AppBlockSchema, type AppColor, AppColorSchema, type AppColorToken, AppColorTokenSchema, type AppCompute, AppComputeSchema, type AppCondition, AppConditionSchema, AppDialSchema, type AppDocument, AppDocumentSchema, type AppGroup, AppGroupSchema, type AppIcon, AppIconSchema, type AppImage, AppImageSchema, type AppLeaf, AppLeafSchema, type AppOperand, AppOperandSchema, AppRgbSchema, type AppScreenSize, AppScreenSizeSchema, AppSignalSchema, type AppSource, AppSourceSchema, AppSparklineSchema, type AppSpecification, AppSpecificationSchema, AppSpriteSchema, AppStatusSchema, type AppStyleRule, AppStyleRuleSchema, AppTextSchema, type AppTextSize, AppTextSizeSchema, AssetHashSchema, AuthStrategySchema, BOARD_REMOTE_COMMANDS, BOARD_REMOTE_PENDING_MAX, BOARD_REMOTE_TTL_MS, BOARD_SLEEP_MINUTES, BOARD_SLEEP_MINUTES_DEFAULT, type Block, BlockSchema, BoardFontSchema, BoardPaletteHexSchema, type BoardRemoteCommand, BoardRemoteCommandSchema, type BoardRemotePress, BoardRemotePressSchema, type BoardSleepMinutes, BoardSleepMinutesSchema, schema as Bodewell, CLAIMED_DEVICE_TTL_SECONDS, CONTROL_STATES, CONTROL_STATE_MEANINGS, type CaseFamily, CaseFamilySchema, ClockAppConfigSchema, ComponentSchema, type ControlState, DEFAULT_CHAT_MODEL, DEFAULT_DEVICE_CONFIG, DEFAULT_PRO_MODEL, DEFAULT_SCHEMA_MODEL, DEFAULT_THEME_TOKENS, DEVICE_AP_SSID_PREFIX, DEVICE_ENDPOINTS, DEVICE_FEATURES, DEVICE_FEATURE_STATE_LABELS, DEVICE_FRESH_MS, DEVICE_GLYPHS, DEVICE_LABEL_MAX, DEVICE_PALETTE, DEVICE_POLL_QUERY, DEVICE_PROTOCOL, DEVICE_STALE_MS, DEVICE_TIMEZONES, DEVICE_TIMEZONE_FALLBACK, DEVICE_TTL_SECONDS, DEVICE_UNKNOWN_GLYPH, DEVICE_VITALS_FIELDS, DEVICE_VOICE_CLIP, DISPLAY_FACE_MIN_PX, DISPLAY_NAME_MAX, type DeliveredApp, DeliveredAppSchema, type DeviceAppId, DeviceAppIdSchema, DeviceAppsSchema, type DeviceConfig, DeviceConfigSchema, DeviceDisplayConfigSchema, DeviceFeatureKeySchema, type DeviceFeatureState, DeviceFeatureStateSchema, type DeviceFeatures, DeviceFeaturesSchema, type DeviceGlyph, type DeviceId, DeviceIdSchema, type DeviceKind, DeviceKindSchema, type DevicePollReply, DevicePollReplySchema, type DeviceProtocolCall, type DeviceReading, DeviceReadingSchema, type DeviceRecord, DeviceRecordSchema, type DeviceRegistration, DeviceRegistrationSchema, type DeviceReport, DeviceReportSchema, type DeviceSeen, DeviceSeenSchema, type DeviceStatus, DeviceStatusSchema, DeviceThemeSchema, type DeviceTimeZone, type DeviceVitals, DeviceVitalsSchema, type DeviceVoiceReply, DeviceVoiceReplySchema, DisplayNameSchema, EdgeSchema, EmblemSchema, type EntityDefinition, EntitySchema, FIRMWARE_UPDATE_ATTEMPTS, FIRMWARE_UPDATE_PREFIX, FULL_COLOUR_FRAME_MAX, FULL_RENDITION, type FamilyChoice, FamilyChoiceSchema, FamilyOptionSchema, type FieldDefinition, FieldSchema, type FirmwareUpdate, FirmwareUpdateSchema, FlexButtonSchema, type FloraTelemetry, FloraTelemetrySchema, GENESIS_LIBRARY_CONTEXT, GENESIS_VALID_COMPONENTS, type GenesisComponentType, type HardwareManifest, HardwareManifestSchema, ICON_GRID, ICON_SIZE_PX, ICON_STROKE, IMAGE_MAX_DRAWN, IMAGE_MAX_SCALE, INVITE_TTL_SECONDS, InterfaceSchema, type InviteRecord, InviteRecordSchema, MAX_PASSWORD_LENGTH, MIN_PASSWORD_LENGTH, type ManifestComponent, type ManifestEdge, type ManifestEmblem, type ManifestFlexButton, type ManifestInterface, type ManifestMountHoles, type ManifestPlacement, MountHolesSchema, type NewAccessToken, NewAccessTokenSchema, ORIGINAL_MAX_BYTES, ORIGINAL_MAX_SIDE, type OwnedSendRequest, OwnedSendRequestSchema, PANEL_SIZE, PHOTOS_PER_ACCOUNT, PHOTO_UPLOADS_PER_HOUR, PROVIDER_DEFAULT_MODEL, type PageDefinition, PageSchema, type PageSection, PageSectionSchema, type PairCode, PairCodeSchema, type PanelOrientation, PanelOrientationSchema, type PhotoCrop, PhotoCropSchema, PhotoFullSchema, type PhotoSummary, PhotoSummarySchema, type PhotoUpload, PhotoUploadSchema, PlacementSchema, type PrinterProfile, PrinterProfileSchema, type ProviderDefaultModelKey, type ProvisioningState, ProvisioningStateSchema, type PublicAccessToken, PublicAccessTokenSchema, type PublicAccount, PublicAccountSchema, RETRO_RENDITION, type ResourceDefinition, ResourceSchema, SAVED_APPS_MAX, SCRYPT_PARAMS, SESSION_COOKIE_NAME, SESSION_TTL_SECONDS, SHELF_MAX_APPS, SHELF_MAX_BYTES, SHELF_ROTATE_MINUTES, SIGNAL_DOMAINS, SIGNAL_KINDS, SIGNAL_KIND_LABELS, SIGNAL_SOURCES, SMOOTH_FACES, SMOOTH_FONT_ADVANCES, SPRITE_MAX_BASE64, SPRITE_MAX_ROW_BYTES, SPRITE_MAX_SIDE, SPR_FORMAT, SPR_MAX_BYTES, type SavedApp, SavedAppSchema, type SavedAppSummary, type ScryptHash, ScryptHashSchema, type SendRequest, SendRequestSchema, SensorAppConfigSchema, type SessionRecord, SessionRecordSchema, type Shelf, type ShelfEdit, ShelfEditSchema, ShelfSchema, type Signal, type SignalArray, SignalArraySchema, type SignalDefinition, type SignalDomain, type SignalKind, SignalKindSchema, type SignalPacket, SignalPacketSchema, SignalSchema, type SignalSource, SignalSourceSchema, type SmoothFace, THEME_PALETTE_TOKENS, THEME_PRESETS, THEME_RADII, THEME_SYSTEM_PROMPT, type TelemetryGraphParams, type ThemeFonts, ThemeFontsSchema, type ThemeLettering, ThemeLetteringSchema, type ThemeOverrides, ThemeOverridesSchema, type ThemePalette7, ThemePaletteSchema, type ThemePreset, ThemeRgbSchema, type ThemeTokens, ThemeTokensSchema, type ThemeWebFonts, ThemeWebFontsSchema, type ToolCall, type ToolDefinition, TriggerSchema, type User, UserSchema, type ViewState, type VitalSource, VitalSourceSchema, WEATHER_CODES, WEATHER_ICONS, WEATHER_ICON_NAMES, WeatherAppConfigSchema, type WeatherIcon, WebFontFamilySchema, type WorkflowDefinition, WorkflowSchema, telemetryGraphParameters };
|
|
63446
|
+
export { ACCESS_REQUEST_TTL_SECONDS, ACCESS_TOKEN_LIFETIMES_DAYS, ACCESS_TOKEN_MAX_PER_ACCOUNT, ACCESS_TOKEN_PREFIX, ACCESS_TOKEN_RATE_PER_MINUTE, ACCESS_TOKEN_SCOPES, ACCESS_TOKEN_SCOPE_LABELS, ACCOUNT_TTL_SECONDS, type AIKeyManifest, AIKeyManifestSchema, type AITheme, AIThemeSchema, AI_ROSTER, AI_TOOLS, APP_DOCUMENT_EDIT_PREFIX, APP_DOCUMENT_SYSTEM_PROMPT, ASSISTANT_MODEL, ASSISTANT_PROVIDER, type AccessRequest, type AccessRequestRecord, AccessRequestRecordSchema, AccessRequestSchema, type AccessRequestStatus, AccessRequestStatusSchema, type AccessTokenRecord, AccessTokenRecordSchema, type AccessTokenScope, AccessTokenScopeSchema, type AccountId, AccountIdSchema, type AccountRecord, AccountRecordSchema, type AccountRole, AccountRoleSchema, type AccountStatus, AccountStatusSchema, type AccountTheme, AccountThemeSchema, type ActionDefinition, ActionSchema, type AgentRoleConfig, type AgentRoleKey, AircraftAppConfigSchema, type AppAlign, AppAlignSchema, AppBarSchema, type AppBinding, AppBindingSchema, type AppBlock, AppBlockSchema, type AppColor, AppColorSchema, type AppColorToken, AppColorTokenSchema, type AppCompute, AppComputeSchema, type AppCondition, AppConditionSchema, AppDialSchema, type AppDocument, AppDocumentSchema, type AppGroup, AppGroupSchema, type AppIcon, AppIconSchema, type AppImage, AppImageSchema, type AppLeaf, AppLeafSchema, type AppOperand, AppOperandSchema, AppRgbSchema, type AppScreenSize, AppScreenSizeSchema, AppSignalSchema, type AppSource, AppSourceSchema, AppSparklineSchema, type AppSpecification, AppSpecificationSchema, AppSpriteSchema, AppStatusSchema, type AppStyleRule, AppStyleRuleSchema, AppTextSchema, type AppTextSize, AppTextSizeSchema, AssetHashSchema, AuthStrategySchema, BOARD_REMOTE_COMMANDS, BOARD_REMOTE_PENDING_MAX, BOARD_REMOTE_TTL_MS, BOARD_SLEEP_MINUTES, BOARD_SLEEP_MINUTES_DEFAULT, type Block, BlockSchema, BoardFontSchema, BoardPaletteHexSchema, type BoardRemoteCommand, BoardRemoteCommandSchema, type BoardRemotePress, BoardRemotePressSchema, type BoardSleepMinutes, BoardSleepMinutesSchema, schema as Bodewell, CLAIMED_DEVICE_TTL_SECONDS, CONTROL_STATES, CONTROL_STATE_MEANINGS, type CaseFamily, CaseFamilySchema, ClockAppConfigSchema, ComponentSchema, type ControlState, DEFAULT_CHAT_MODEL, DEFAULT_DEVICE_CONFIG, DEFAULT_PRO_MODEL, DEFAULT_SCHEMA_MODEL, DEFAULT_THEME_TOKENS, DEVICE_AP_SSID_PREFIX, DEVICE_ENDPOINTS, DEVICE_FEATURES, DEVICE_FEATURE_STATE_LABELS, DEVICE_FRESH_MS, DEVICE_GLYPHS, DEVICE_LABEL_MAX, DEVICE_PALETTE, DEVICE_POLL_QUERY, DEVICE_PROTOCOL, DEVICE_STALE_MS, DEVICE_TIMEZONES, DEVICE_TIMEZONE_FALLBACK, DEVICE_TTL_SECONDS, DEVICE_UNKNOWN_GLYPH, DEVICE_VITALS_FIELDS, DEVICE_VOICE_CLIP, DISPLAY_FACE_MIN_PX, DISPLAY_NAME_MAX, type DeliveredApp, DeliveredAppSchema, type DeviceAppId, DeviceAppIdSchema, DeviceAppsSchema, type DeviceConfig, DeviceConfigSchema, DeviceDisplayConfigSchema, DeviceFeatureKeySchema, type DeviceFeatureState, DeviceFeatureStateSchema, type DeviceFeatures, DeviceFeaturesSchema, type DeviceGlyph, type DeviceId, DeviceIdSchema, type DeviceKind, DeviceKindSchema, type DevicePollReply, DevicePollReplySchema, type DeviceProtocolCall, type DeviceReading, DeviceReadingSchema, type DeviceRecord, DeviceRecordSchema, type DeviceRegistration, DeviceRegistrationSchema, type DeviceReport, DeviceReportSchema, type DeviceSeen, DeviceSeenSchema, type DeviceStatus, DeviceStatusSchema, DeviceThemeSchema, type DeviceTimeZone, type DeviceVitals, DeviceVitalsSchema, type DeviceVoiceReply, DeviceVoiceReplySchema, DisplayNameSchema, EdgeSchema, EmblemSchema, type EntityDefinition, EntitySchema, FIRMWARE_UPDATE_ATTEMPTS, FIRMWARE_UPDATE_PREFIX, FULL_COLOUR_FRAME_MAX, FULL_RENDITION, type FamilyChoice, FamilyChoiceSchema, FamilyOptionSchema, type FieldDefinition, FieldSchema, type FirmwareUpdate, FirmwareUpdateSchema, FlexButtonSchema, type FloraTelemetry, FloraTelemetrySchema, GENESIS_LIBRARY_CONTEXT, GENESIS_VALID_COMPONENTS, type GenesisComponentType, type HardwareManifest, HardwareManifestSchema, ICON_GRID, ICON_SIZE_PX, ICON_STROKE, IMAGE_MAX_DRAWN, IMAGE_MAX_SCALE, INVITE_TTL_SECONDS, InterfaceSchema, type InviteRecord, InviteRecordSchema, MAX_PASSWORD_LENGTH, MIN_PASSWORD_LENGTH, MODEL_GLOSSARY, MODEL_MATRIX, MODEL_MATRIX_REVIEWED, type ManifestComponent, type ManifestEdge, type ManifestEmblem, type ManifestFlexButton, type ManifestInterface, type ManifestMountHoles, type ManifestPlacement, type ModelGlossaryEntry, type ModelJob, type ModelLinks, type ModelOption, type ModelStatus, type ModelWhere, MountHolesSchema, type NewAccessToken, NewAccessTokenSchema, ORIGINAL_MAX_BYTES, ORIGINAL_MAX_SIDE, type OwnedSendRequest, OwnedSendRequestSchema, PANEL_SIZE, PHOTOS_PER_ACCOUNT, PHOTO_UPLOADS_PER_HOUR, PROVIDER_DEFAULT_MODEL, type PageDefinition, PageSchema, type PageSection, PageSectionSchema, type PairCode, PairCodeSchema, type PanelOrientation, PanelOrientationSchema, type PhotoCrop, PhotoCropSchema, PhotoFullSchema, type PhotoSummary, PhotoSummarySchema, type PhotoUpload, PhotoUploadSchema, PlacementSchema, type PrinterProfile, PrinterProfileSchema, type ProviderDefaultModelKey, type ProvisioningState, ProvisioningStateSchema, type PublicAccessToken, PublicAccessTokenSchema, type PublicAccount, PublicAccountSchema, RETRO_RENDITION, type ResourceDefinition, ResourceSchema, SAVED_APPS_MAX, SCRYPT_PARAMS, SESSION_COOKIE_NAME, SESSION_TTL_SECONDS, SHELF_MAX_APPS, SHELF_MAX_BYTES, SHELF_ROTATE_MINUTES, SIGNAL_DOMAINS, SIGNAL_KINDS, SIGNAL_KIND_LABELS, SIGNAL_SOURCES, SMOOTH_FACES, SMOOTH_FONT_ADVANCES, SPRITE_MAX_BASE64, SPRITE_MAX_ROW_BYTES, SPRITE_MAX_SIDE, SPR_FORMAT, SPR_MAX_BYTES, type SavedApp, SavedAppSchema, type SavedAppSummary, type ScryptHash, ScryptHashSchema, type SendRequest, SendRequestSchema, SensorAppConfigSchema, type SessionRecord, SessionRecordSchema, type Shelf, type ShelfEdit, ShelfEditSchema, ShelfSchema, type Signal, type SignalArray, SignalArraySchema, type SignalDefinition, type SignalDomain, type SignalKind, SignalKindSchema, type SignalPacket, SignalPacketSchema, SignalSchema, type SignalSource, SignalSourceSchema, type SmoothFace, THEME_PALETTE_TOKENS, THEME_PRESETS, THEME_RADII, THEME_SYSTEM_PROMPT, type TelemetryGraphParams, type ThemeFonts, ThemeFontsSchema, type ThemeLettering, ThemeLetteringSchema, type ThemeOverrides, ThemeOverridesSchema, type ThemePalette7, ThemePaletteSchema, type ThemePreset, ThemeRgbSchema, type ThemeTokens, ThemeTokensSchema, type ThemeWebFonts, ThemeWebFontsSchema, type ToolCall, type ToolDefinition, TriggerSchema, type User, UserSchema, type ViewState, type VitalSource, VitalSourceSchema, WEATHER_CODES, WEATHER_ICONS, WEATHER_ICON_NAMES, WeatherAppConfigSchema, type WeatherIcon, WebFontFamilySchema, type WorkflowDefinition, WorkflowSchema, telemetryGraphParameters };
|
package/dist/index.d.ts
CHANGED
|
@@ -59697,6 +59697,94 @@ declare const AI_ROSTER: {
|
|
|
59697
59697
|
type AgentRoleKey = keyof typeof AI_ROSTER;
|
|
59698
59698
|
type AgentRoleConfig = (typeof AI_ROSTER)[AgentRoleKey];
|
|
59699
59699
|
|
|
59700
|
+
/**
|
|
59701
|
+
* @file modelMatrix.ts
|
|
59702
|
+
* @package @ramme-io/shared
|
|
59703
|
+
* @description Which AI model for which job: local and hosted options, what
|
|
59704
|
+
* each costs, and how sure we are about it.
|
|
59705
|
+
*
|
|
59706
|
+
* One source for three readers: agents choosing a model in this repo, the
|
|
59707
|
+
* /docs/ai-models page on ramme.io (which renders this file and nothing
|
|
59708
|
+
* else), and the monthly model check, which opens a pull request against
|
|
59709
|
+
* this file when a better or cheaper option appears.
|
|
59710
|
+
*
|
|
59711
|
+
* WHAT A STATUS MEANS
|
|
59712
|
+
*
|
|
59713
|
+
* in-use what this repo runs for the job today
|
|
59714
|
+
* measured tested here, on this job's real prompts; `result` says how
|
|
59715
|
+
* candidate known and plausible, not yet tested here
|
|
59716
|
+
*
|
|
59717
|
+
* A job with no option yet is listed anyway with `options: []`: the page says
|
|
59718
|
+
* it has not been evaluated, rather than leaving it out.
|
|
59719
|
+
*
|
|
59720
|
+
* PRICES are US dollars per million tokens, input then output, for hosted
|
|
59721
|
+
* models only; a local model costs the machine it runs on. Each hosted price
|
|
59722
|
+
* matches engines/data-factory-api/core/model_pricing.py, which the engine
|
|
59723
|
+
* meters spend with; model-matrix.test.ts in products/ramme-marketing fails
|
|
59724
|
+
* when the two disagree, and when a model this repo runs is missing here.
|
|
59725
|
+
*
|
|
59726
|
+
* IRON LAW (this package): constants and types only, no functions.
|
|
59727
|
+
*/
|
|
59728
|
+
type ModelWhere = 'local' | 'api';
|
|
59729
|
+
type ModelStatus = 'in-use' | 'measured' | 'candidate';
|
|
59730
|
+
interface ModelOption {
|
|
59731
|
+
/** The id a request names: 'qwen3.5:27b', 'claude-haiku-5-5'. */
|
|
59732
|
+
model: string;
|
|
59733
|
+
/** What a person calls it. */
|
|
59734
|
+
name: string;
|
|
59735
|
+
where: ModelWhere;
|
|
59736
|
+
/** Who serves it: 'Ollama' for local, the company for a hosted model. */
|
|
59737
|
+
provider: string;
|
|
59738
|
+
status: ModelStatus;
|
|
59739
|
+
/** USD per million tokens, hosted models only. */
|
|
59740
|
+
price?: {
|
|
59741
|
+
input: number;
|
|
59742
|
+
output: number;
|
|
59743
|
+
};
|
|
59744
|
+
/** What a document costs, for a service priced by the page. */
|
|
59745
|
+
pricePerPage?: number;
|
|
59746
|
+
/** Memory the model holds while loaded, local models only. */
|
|
59747
|
+
memoryGb?: number;
|
|
59748
|
+
/** The measured outcome, in one sentence, when status is measured or in-use. */
|
|
59749
|
+
result?: string;
|
|
59750
|
+
/** Where the measurement or decision is recorded in this repo. */
|
|
59751
|
+
evidence?: string;
|
|
59752
|
+
links: ModelLinks;
|
|
59753
|
+
}
|
|
59754
|
+
/**
|
|
59755
|
+
* Where a reader goes next. `docs` is the creator's own documentation;
|
|
59756
|
+
* `get` is where to download it for a local model, and where to create an
|
|
59757
|
+
* API key for a hosted one, so the page can label it by `where`.
|
|
59758
|
+
*/
|
|
59759
|
+
interface ModelLinks {
|
|
59760
|
+
docs: string;
|
|
59761
|
+
get: string;
|
|
59762
|
+
}
|
|
59763
|
+
interface ModelJob {
|
|
59764
|
+
id: string;
|
|
59765
|
+
/** The job in plain words. */
|
|
59766
|
+
name: string;
|
|
59767
|
+
/** What the job is called by people who build these systems. */
|
|
59768
|
+
jargon: string;
|
|
59769
|
+
/** One or two sentences for someone who has never called a model. */
|
|
59770
|
+
plain: string;
|
|
59771
|
+
/** A typical single task, so the page can say what one costs. */
|
|
59772
|
+
typical: {
|
|
59773
|
+
task: string;
|
|
59774
|
+
inputTokens: number;
|
|
59775
|
+
outputTokens: number;
|
|
59776
|
+
};
|
|
59777
|
+
options: ModelOption[];
|
|
59778
|
+
}
|
|
59779
|
+
interface ModelGlossaryEntry {
|
|
59780
|
+
term: string;
|
|
59781
|
+
plain: string;
|
|
59782
|
+
}
|
|
59783
|
+
/** The day this file was last checked against prices and releases. */
|
|
59784
|
+
declare const MODEL_MATRIX_REVIEWED: "2026-11-25";
|
|
59785
|
+
declare const MODEL_MATRIX: ModelJob[];
|
|
59786
|
+
declare const MODEL_GLOSSARY: ModelGlossaryEntry[];
|
|
59787
|
+
|
|
59700
59788
|
declare const THEME_SYSTEM_PROMPT = "\n You are a Senior UI Design Engineer specializing in WCAG 2.1 Accessibility.\n Generate a JSON theme for: \"Ramme Project\".\n\n CRITICAL FONT RULE: \n Do NOT use generic fonts like 'Roboto', 'Open Sans', or 'Lato' unless specifically asked. \n Instead, pick high-contrast, expressive pairings from Google Fonts that match the vibe. Dont be afraid of taking risks.\n \n\n VIBE-TO-FONT REFERENCE:\n - Futuristic/Cyberpunk: 'Orbitron', 'Space Grotesk', 'Rajdhani', 'Exo 2', 'Syne'\n - Elegant/Luxury: 'Playfair Display', 'Cormorant Garamond', 'Prata', 'Fraunces'\n - Brutalist/Bold: 'Archivo Black', 'Syne', 'Bebas Neue', 'Lexend', 'Clash Display'\n - Modern Tech: 'Inter', 'Sora', 'Plus Jakarta Sans', 'Outfit', 'Manrope'\n - Retro/Whimsical: 'BioRhyme', 'Space Mono', 'Zilla Slab', 'Bungee'\n \n RULES:\n 1. Use RGB space-separated values (e.g., \"13 110 253\").\n 2. Pick a high-quality Google Font pair (Heading + Body). \n 3. Ensure the 'fonts' object is included in the root of the JSON.\n 4. Use ONLY valid Google Font names (e.g., 'Montserrat', 'Inter', 'Playfair Display', 'Poppins', 'Lato', 'Merriweather').\n 5. Return ONLY raw JSON. No markdown backticks.\n 5. ACCESSIBILITY RULE (WCAG 2.1): \n - The Contrast Ratio between --app-text-color and --app-bg-color MUST be at least 4.5:1.\n - The Contrast Ratio between --app-primary-foreground-color and --app-primary-color MUST be at least 4.5:1.\n - If the background is Light (high RGB values), the text MUST be Dark (low RGB values).\n - If the background is Dark, the text MUST be Light.\n - SECONDARY/ACCENT: Must be vibrant but legible.\n\n JSON STRUCTURE:\n {\n \"name\": \"Theme Name\",\n \"description\": \"Vibe description\",\n \"fonts\": {\n \"heading\": \"Montserrat\",\n \"body\": \"Inter\"\n },\n \"cssVars\": {\n \"--app-primary-color\": \"R G B\",\n \"--app-primary-foreground-color\": \"R G B\",\n \"--app-secondary-color\": \"R G B\",\n \"--app-accent-color\": \"R G B\",\n \"--app-bg-color\": \"R G B\",\n \"--app-card-bg-color\": \"R G B\",\n \"--app-text-color\": \"R G B\",\n \"--app-border-color\": \"R G B\",\n \"--app-muted-bg\": \"R G B\",\n \"--app-input-bg-color\": \"R G B\",\n \"--app-input-border-color\": \"R G B\",\n \"--app-chart-1\": \"R G B\",\n \"--app-chart-2\": \"R G B\",\n \"--app-chart-3\": \"R G B\",\n \"--app-chart-4\": \"R G B\",\n \"--app-chart-5\": \"R G B\",\n \"--app-border-radius-md\": \"0.375rem\"\n }\n }\n";
|
|
59701
59789
|
|
|
59702
59790
|
/**
|
|
@@ -63355,4 +63443,4 @@ type AccessTokenRecord = z.infer<typeof AccessTokenRecordSchema>;
|
|
|
63355
63443
|
type PublicAccessToken = z.infer<typeof PublicAccessTokenSchema>;
|
|
63356
63444
|
type NewAccessToken = z.infer<typeof NewAccessTokenSchema>;
|
|
63357
63445
|
|
|
63358
|
-
export { ACCESS_REQUEST_TTL_SECONDS, ACCESS_TOKEN_LIFETIMES_DAYS, ACCESS_TOKEN_MAX_PER_ACCOUNT, ACCESS_TOKEN_PREFIX, ACCESS_TOKEN_RATE_PER_MINUTE, ACCESS_TOKEN_SCOPES, ACCESS_TOKEN_SCOPE_LABELS, ACCOUNT_TTL_SECONDS, type AIKeyManifest, AIKeyManifestSchema, type AITheme, AIThemeSchema, AI_ROSTER, AI_TOOLS, APP_DOCUMENT_EDIT_PREFIX, APP_DOCUMENT_SYSTEM_PROMPT, ASSISTANT_MODEL, ASSISTANT_PROVIDER, type AccessRequest, type AccessRequestRecord, AccessRequestRecordSchema, AccessRequestSchema, type AccessRequestStatus, AccessRequestStatusSchema, type AccessTokenRecord, AccessTokenRecordSchema, type AccessTokenScope, AccessTokenScopeSchema, type AccountId, AccountIdSchema, type AccountRecord, AccountRecordSchema, type AccountRole, AccountRoleSchema, type AccountStatus, AccountStatusSchema, type AccountTheme, AccountThemeSchema, type ActionDefinition, ActionSchema, type AgentRoleConfig, type AgentRoleKey, AircraftAppConfigSchema, type AppAlign, AppAlignSchema, AppBarSchema, type AppBinding, AppBindingSchema, type AppBlock, AppBlockSchema, type AppColor, AppColorSchema, type AppColorToken, AppColorTokenSchema, type AppCompute, AppComputeSchema, type AppCondition, AppConditionSchema, AppDialSchema, type AppDocument, AppDocumentSchema, type AppGroup, AppGroupSchema, type AppIcon, AppIconSchema, type AppImage, AppImageSchema, type AppLeaf, AppLeafSchema, type AppOperand, AppOperandSchema, AppRgbSchema, type AppScreenSize, AppScreenSizeSchema, AppSignalSchema, type AppSource, AppSourceSchema, AppSparklineSchema, type AppSpecification, AppSpecificationSchema, AppSpriteSchema, AppStatusSchema, type AppStyleRule, AppStyleRuleSchema, AppTextSchema, type AppTextSize, AppTextSizeSchema, AssetHashSchema, AuthStrategySchema, BOARD_REMOTE_COMMANDS, BOARD_REMOTE_PENDING_MAX, BOARD_REMOTE_TTL_MS, BOARD_SLEEP_MINUTES, BOARD_SLEEP_MINUTES_DEFAULT, type Block, BlockSchema, BoardFontSchema, BoardPaletteHexSchema, type BoardRemoteCommand, BoardRemoteCommandSchema, type BoardRemotePress, BoardRemotePressSchema, type BoardSleepMinutes, BoardSleepMinutesSchema, schema as Bodewell, CLAIMED_DEVICE_TTL_SECONDS, CONTROL_STATES, CONTROL_STATE_MEANINGS, type CaseFamily, CaseFamilySchema, ClockAppConfigSchema, ComponentSchema, type ControlState, DEFAULT_CHAT_MODEL, DEFAULT_DEVICE_CONFIG, DEFAULT_PRO_MODEL, DEFAULT_SCHEMA_MODEL, DEFAULT_THEME_TOKENS, DEVICE_AP_SSID_PREFIX, DEVICE_ENDPOINTS, DEVICE_FEATURES, DEVICE_FEATURE_STATE_LABELS, DEVICE_FRESH_MS, DEVICE_GLYPHS, DEVICE_LABEL_MAX, DEVICE_PALETTE, DEVICE_POLL_QUERY, DEVICE_PROTOCOL, DEVICE_STALE_MS, DEVICE_TIMEZONES, DEVICE_TIMEZONE_FALLBACK, DEVICE_TTL_SECONDS, DEVICE_UNKNOWN_GLYPH, DEVICE_VITALS_FIELDS, DEVICE_VOICE_CLIP, DISPLAY_FACE_MIN_PX, DISPLAY_NAME_MAX, type DeliveredApp, DeliveredAppSchema, type DeviceAppId, DeviceAppIdSchema, DeviceAppsSchema, type DeviceConfig, DeviceConfigSchema, DeviceDisplayConfigSchema, DeviceFeatureKeySchema, type DeviceFeatureState, DeviceFeatureStateSchema, type DeviceFeatures, DeviceFeaturesSchema, type DeviceGlyph, type DeviceId, DeviceIdSchema, type DeviceKind, DeviceKindSchema, type DevicePollReply, DevicePollReplySchema, type DeviceProtocolCall, type DeviceReading, DeviceReadingSchema, type DeviceRecord, DeviceRecordSchema, type DeviceRegistration, DeviceRegistrationSchema, type DeviceReport, DeviceReportSchema, type DeviceSeen, DeviceSeenSchema, type DeviceStatus, DeviceStatusSchema, DeviceThemeSchema, type DeviceTimeZone, type DeviceVitals, DeviceVitalsSchema, type DeviceVoiceReply, DeviceVoiceReplySchema, DisplayNameSchema, EdgeSchema, EmblemSchema, type EntityDefinition, EntitySchema, FIRMWARE_UPDATE_ATTEMPTS, FIRMWARE_UPDATE_PREFIX, FULL_COLOUR_FRAME_MAX, FULL_RENDITION, type FamilyChoice, FamilyChoiceSchema, FamilyOptionSchema, type FieldDefinition, FieldSchema, type FirmwareUpdate, FirmwareUpdateSchema, FlexButtonSchema, type FloraTelemetry, FloraTelemetrySchema, GENESIS_LIBRARY_CONTEXT, GENESIS_VALID_COMPONENTS, type GenesisComponentType, type HardwareManifest, HardwareManifestSchema, ICON_GRID, ICON_SIZE_PX, ICON_STROKE, IMAGE_MAX_DRAWN, IMAGE_MAX_SCALE, INVITE_TTL_SECONDS, InterfaceSchema, type InviteRecord, InviteRecordSchema, MAX_PASSWORD_LENGTH, MIN_PASSWORD_LENGTH, type ManifestComponent, type ManifestEdge, type ManifestEmblem, type ManifestFlexButton, type ManifestInterface, type ManifestMountHoles, type ManifestPlacement, MountHolesSchema, type NewAccessToken, NewAccessTokenSchema, ORIGINAL_MAX_BYTES, ORIGINAL_MAX_SIDE, type OwnedSendRequest, OwnedSendRequestSchema, PANEL_SIZE, PHOTOS_PER_ACCOUNT, PHOTO_UPLOADS_PER_HOUR, PROVIDER_DEFAULT_MODEL, type PageDefinition, PageSchema, type PageSection, PageSectionSchema, type PairCode, PairCodeSchema, type PanelOrientation, PanelOrientationSchema, type PhotoCrop, PhotoCropSchema, PhotoFullSchema, type PhotoSummary, PhotoSummarySchema, type PhotoUpload, PhotoUploadSchema, PlacementSchema, type PrinterProfile, PrinterProfileSchema, type ProviderDefaultModelKey, type ProvisioningState, ProvisioningStateSchema, type PublicAccessToken, PublicAccessTokenSchema, type PublicAccount, PublicAccountSchema, RETRO_RENDITION, type ResourceDefinition, ResourceSchema, SAVED_APPS_MAX, SCRYPT_PARAMS, SESSION_COOKIE_NAME, SESSION_TTL_SECONDS, SHELF_MAX_APPS, SHELF_MAX_BYTES, SHELF_ROTATE_MINUTES, SIGNAL_DOMAINS, SIGNAL_KINDS, SIGNAL_KIND_LABELS, SIGNAL_SOURCES, SMOOTH_FACES, SMOOTH_FONT_ADVANCES, SPRITE_MAX_BASE64, SPRITE_MAX_ROW_BYTES, SPRITE_MAX_SIDE, SPR_FORMAT, SPR_MAX_BYTES, type SavedApp, SavedAppSchema, type SavedAppSummary, type ScryptHash, ScryptHashSchema, type SendRequest, SendRequestSchema, SensorAppConfigSchema, type SessionRecord, SessionRecordSchema, type Shelf, type ShelfEdit, ShelfEditSchema, ShelfSchema, type Signal, type SignalArray, SignalArraySchema, type SignalDefinition, type SignalDomain, type SignalKind, SignalKindSchema, type SignalPacket, SignalPacketSchema, SignalSchema, type SignalSource, SignalSourceSchema, type SmoothFace, THEME_PALETTE_TOKENS, THEME_PRESETS, THEME_RADII, THEME_SYSTEM_PROMPT, type TelemetryGraphParams, type ThemeFonts, ThemeFontsSchema, type ThemeLettering, ThemeLetteringSchema, type ThemeOverrides, ThemeOverridesSchema, type ThemePalette7, ThemePaletteSchema, type ThemePreset, ThemeRgbSchema, type ThemeTokens, ThemeTokensSchema, type ThemeWebFonts, ThemeWebFontsSchema, type ToolCall, type ToolDefinition, TriggerSchema, type User, UserSchema, type ViewState, type VitalSource, VitalSourceSchema, WEATHER_CODES, WEATHER_ICONS, WEATHER_ICON_NAMES, WeatherAppConfigSchema, type WeatherIcon, WebFontFamilySchema, type WorkflowDefinition, WorkflowSchema, telemetryGraphParameters };
|
|
63446
|
+
export { ACCESS_REQUEST_TTL_SECONDS, ACCESS_TOKEN_LIFETIMES_DAYS, ACCESS_TOKEN_MAX_PER_ACCOUNT, ACCESS_TOKEN_PREFIX, ACCESS_TOKEN_RATE_PER_MINUTE, ACCESS_TOKEN_SCOPES, ACCESS_TOKEN_SCOPE_LABELS, ACCOUNT_TTL_SECONDS, type AIKeyManifest, AIKeyManifestSchema, type AITheme, AIThemeSchema, AI_ROSTER, AI_TOOLS, APP_DOCUMENT_EDIT_PREFIX, APP_DOCUMENT_SYSTEM_PROMPT, ASSISTANT_MODEL, ASSISTANT_PROVIDER, type AccessRequest, type AccessRequestRecord, AccessRequestRecordSchema, AccessRequestSchema, type AccessRequestStatus, AccessRequestStatusSchema, type AccessTokenRecord, AccessTokenRecordSchema, type AccessTokenScope, AccessTokenScopeSchema, type AccountId, AccountIdSchema, type AccountRecord, AccountRecordSchema, type AccountRole, AccountRoleSchema, type AccountStatus, AccountStatusSchema, type AccountTheme, AccountThemeSchema, type ActionDefinition, ActionSchema, type AgentRoleConfig, type AgentRoleKey, AircraftAppConfigSchema, type AppAlign, AppAlignSchema, AppBarSchema, type AppBinding, AppBindingSchema, type AppBlock, AppBlockSchema, type AppColor, AppColorSchema, type AppColorToken, AppColorTokenSchema, type AppCompute, AppComputeSchema, type AppCondition, AppConditionSchema, AppDialSchema, type AppDocument, AppDocumentSchema, type AppGroup, AppGroupSchema, type AppIcon, AppIconSchema, type AppImage, AppImageSchema, type AppLeaf, AppLeafSchema, type AppOperand, AppOperandSchema, AppRgbSchema, type AppScreenSize, AppScreenSizeSchema, AppSignalSchema, type AppSource, AppSourceSchema, AppSparklineSchema, type AppSpecification, AppSpecificationSchema, AppSpriteSchema, AppStatusSchema, type AppStyleRule, AppStyleRuleSchema, AppTextSchema, type AppTextSize, AppTextSizeSchema, AssetHashSchema, AuthStrategySchema, BOARD_REMOTE_COMMANDS, BOARD_REMOTE_PENDING_MAX, BOARD_REMOTE_TTL_MS, BOARD_SLEEP_MINUTES, BOARD_SLEEP_MINUTES_DEFAULT, type Block, BlockSchema, BoardFontSchema, BoardPaletteHexSchema, type BoardRemoteCommand, BoardRemoteCommandSchema, type BoardRemotePress, BoardRemotePressSchema, type BoardSleepMinutes, BoardSleepMinutesSchema, schema as Bodewell, CLAIMED_DEVICE_TTL_SECONDS, CONTROL_STATES, CONTROL_STATE_MEANINGS, type CaseFamily, CaseFamilySchema, ClockAppConfigSchema, ComponentSchema, type ControlState, DEFAULT_CHAT_MODEL, DEFAULT_DEVICE_CONFIG, DEFAULT_PRO_MODEL, DEFAULT_SCHEMA_MODEL, DEFAULT_THEME_TOKENS, DEVICE_AP_SSID_PREFIX, DEVICE_ENDPOINTS, DEVICE_FEATURES, DEVICE_FEATURE_STATE_LABELS, DEVICE_FRESH_MS, DEVICE_GLYPHS, DEVICE_LABEL_MAX, DEVICE_PALETTE, DEVICE_POLL_QUERY, DEVICE_PROTOCOL, DEVICE_STALE_MS, DEVICE_TIMEZONES, DEVICE_TIMEZONE_FALLBACK, DEVICE_TTL_SECONDS, DEVICE_UNKNOWN_GLYPH, DEVICE_VITALS_FIELDS, DEVICE_VOICE_CLIP, DISPLAY_FACE_MIN_PX, DISPLAY_NAME_MAX, type DeliveredApp, DeliveredAppSchema, type DeviceAppId, DeviceAppIdSchema, DeviceAppsSchema, type DeviceConfig, DeviceConfigSchema, DeviceDisplayConfigSchema, DeviceFeatureKeySchema, type DeviceFeatureState, DeviceFeatureStateSchema, type DeviceFeatures, DeviceFeaturesSchema, type DeviceGlyph, type DeviceId, DeviceIdSchema, type DeviceKind, DeviceKindSchema, type DevicePollReply, DevicePollReplySchema, type DeviceProtocolCall, type DeviceReading, DeviceReadingSchema, type DeviceRecord, DeviceRecordSchema, type DeviceRegistration, DeviceRegistrationSchema, type DeviceReport, DeviceReportSchema, type DeviceSeen, DeviceSeenSchema, type DeviceStatus, DeviceStatusSchema, DeviceThemeSchema, type DeviceTimeZone, type DeviceVitals, DeviceVitalsSchema, type DeviceVoiceReply, DeviceVoiceReplySchema, DisplayNameSchema, EdgeSchema, EmblemSchema, type EntityDefinition, EntitySchema, FIRMWARE_UPDATE_ATTEMPTS, FIRMWARE_UPDATE_PREFIX, FULL_COLOUR_FRAME_MAX, FULL_RENDITION, type FamilyChoice, FamilyChoiceSchema, FamilyOptionSchema, type FieldDefinition, FieldSchema, type FirmwareUpdate, FirmwareUpdateSchema, FlexButtonSchema, type FloraTelemetry, FloraTelemetrySchema, GENESIS_LIBRARY_CONTEXT, GENESIS_VALID_COMPONENTS, type GenesisComponentType, type HardwareManifest, HardwareManifestSchema, ICON_GRID, ICON_SIZE_PX, ICON_STROKE, IMAGE_MAX_DRAWN, IMAGE_MAX_SCALE, INVITE_TTL_SECONDS, InterfaceSchema, type InviteRecord, InviteRecordSchema, MAX_PASSWORD_LENGTH, MIN_PASSWORD_LENGTH, MODEL_GLOSSARY, MODEL_MATRIX, MODEL_MATRIX_REVIEWED, type ManifestComponent, type ManifestEdge, type ManifestEmblem, type ManifestFlexButton, type ManifestInterface, type ManifestMountHoles, type ManifestPlacement, type ModelGlossaryEntry, type ModelJob, type ModelLinks, type ModelOption, type ModelStatus, type ModelWhere, MountHolesSchema, type NewAccessToken, NewAccessTokenSchema, ORIGINAL_MAX_BYTES, ORIGINAL_MAX_SIDE, type OwnedSendRequest, OwnedSendRequestSchema, PANEL_SIZE, PHOTOS_PER_ACCOUNT, PHOTO_UPLOADS_PER_HOUR, PROVIDER_DEFAULT_MODEL, type PageDefinition, PageSchema, type PageSection, PageSectionSchema, type PairCode, PairCodeSchema, type PanelOrientation, PanelOrientationSchema, type PhotoCrop, PhotoCropSchema, PhotoFullSchema, type PhotoSummary, PhotoSummarySchema, type PhotoUpload, PhotoUploadSchema, PlacementSchema, type PrinterProfile, PrinterProfileSchema, type ProviderDefaultModelKey, type ProvisioningState, ProvisioningStateSchema, type PublicAccessToken, PublicAccessTokenSchema, type PublicAccount, PublicAccountSchema, RETRO_RENDITION, type ResourceDefinition, ResourceSchema, SAVED_APPS_MAX, SCRYPT_PARAMS, SESSION_COOKIE_NAME, SESSION_TTL_SECONDS, SHELF_MAX_APPS, SHELF_MAX_BYTES, SHELF_ROTATE_MINUTES, SIGNAL_DOMAINS, SIGNAL_KINDS, SIGNAL_KIND_LABELS, SIGNAL_SOURCES, SMOOTH_FACES, SMOOTH_FONT_ADVANCES, SPRITE_MAX_BASE64, SPRITE_MAX_ROW_BYTES, SPRITE_MAX_SIDE, SPR_FORMAT, SPR_MAX_BYTES, type SavedApp, SavedAppSchema, type SavedAppSummary, type ScryptHash, ScryptHashSchema, type SendRequest, SendRequestSchema, SensorAppConfigSchema, type SessionRecord, SessionRecordSchema, type Shelf, type ShelfEdit, ShelfEditSchema, ShelfSchema, type Signal, type SignalArray, SignalArraySchema, type SignalDefinition, type SignalDomain, type SignalKind, SignalKindSchema, type SignalPacket, SignalPacketSchema, SignalSchema, type SignalSource, SignalSourceSchema, type SmoothFace, THEME_PALETTE_TOKENS, THEME_PRESETS, THEME_RADII, THEME_SYSTEM_PROMPT, type TelemetryGraphParams, type ThemeFonts, ThemeFontsSchema, type ThemeLettering, ThemeLetteringSchema, type ThemeOverrides, ThemeOverridesSchema, type ThemePalette7, ThemePaletteSchema, type ThemePreset, ThemeRgbSchema, type ThemeTokens, ThemeTokensSchema, type ThemeWebFonts, ThemeWebFontsSchema, type ToolCall, type ToolDefinition, TriggerSchema, type User, UserSchema, type ViewState, type VitalSource, VitalSourceSchema, WEATHER_CODES, WEATHER_ICONS, WEATHER_ICON_NAMES, WeatherAppConfigSchema, type WeatherIcon, WebFontFamilySchema, type WorkflowDefinition, WorkflowSchema, telemetryGraphParameters };
|
package/dist/index.js
CHANGED
|
@@ -1475,6 +1475,250 @@ var AI_ROSTER = {
|
|
|
1475
1475
|
}
|
|
1476
1476
|
};
|
|
1477
1477
|
|
|
1478
|
+
// src/ai/modelMatrix.ts
|
|
1479
|
+
var MODEL_MATRIX_REVIEWED = "2026-11-25";
|
|
1480
|
+
var ANTHROPIC_LINKS = {
|
|
1481
|
+
docs: "https://platform.claude.com/docs/en/models/overview",
|
|
1482
|
+
get: "https://platform.claude.com/settings/keys"
|
|
1483
|
+
};
|
|
1484
|
+
var QWEN_LOCAL = {
|
|
1485
|
+
model: "qwen3.5:27b",
|
|
1486
|
+
name: "Qwen 3.5 27B",
|
|
1487
|
+
where: "local",
|
|
1488
|
+
provider: "Ollama",
|
|
1489
|
+
memoryGb: 20,
|
|
1490
|
+
links: { docs: "https://huggingface.co/Qwen/Qwen3.5-27B", get: "https://ollama.com/library/qwen3.5" }
|
|
1491
|
+
};
|
|
1492
|
+
var GPT_OSS_LOCAL = {
|
|
1493
|
+
model: "gpt-oss:20b",
|
|
1494
|
+
name: "gpt-oss 20B",
|
|
1495
|
+
where: "local",
|
|
1496
|
+
provider: "Ollama",
|
|
1497
|
+
memoryGb: 13,
|
|
1498
|
+
links: { docs: "https://openai.com/index/introducing-gpt-oss/", get: "https://ollama.com/library/gpt-oss" }
|
|
1499
|
+
};
|
|
1500
|
+
var HAIKU = {
|
|
1501
|
+
model: "claude-haiku-5-5",
|
|
1502
|
+
name: "Claude Haiku 5.5",
|
|
1503
|
+
where: "api",
|
|
1504
|
+
provider: "Anthropic",
|
|
1505
|
+
price: { input: 0.1, output: 0.5 },
|
|
1506
|
+
links: ANTHROPIC_LINKS
|
|
1507
|
+
};
|
|
1508
|
+
var HAIKU_45 = {
|
|
1509
|
+
model: "claude-haiku-4-5-20251001",
|
|
1510
|
+
name: "Claude Haiku 4.5",
|
|
1511
|
+
where: "api",
|
|
1512
|
+
provider: "Anthropic",
|
|
1513
|
+
price: { input: 1, output: 5 },
|
|
1514
|
+
links: ANTHROPIC_LINKS
|
|
1515
|
+
};
|
|
1516
|
+
var SONNET = {
|
|
1517
|
+
model: "claude-sonnet-5-5",
|
|
1518
|
+
name: "Claude Sonnet 5.5",
|
|
1519
|
+
where: "api",
|
|
1520
|
+
provider: "Anthropic",
|
|
1521
|
+
price: { input: 2, output: 10 },
|
|
1522
|
+
links: ANTHROPIC_LINKS
|
|
1523
|
+
};
|
|
1524
|
+
var OPUS = {
|
|
1525
|
+
model: "claude-opus-5-5",
|
|
1526
|
+
name: "Claude Opus 5.5",
|
|
1527
|
+
where: "api",
|
|
1528
|
+
provider: "Anthropic",
|
|
1529
|
+
price: { input: 4, output: 20 },
|
|
1530
|
+
links: ANTHROPIC_LINKS
|
|
1531
|
+
};
|
|
1532
|
+
var GPT_LUNA = {
|
|
1533
|
+
model: "gpt-6-luna",
|
|
1534
|
+
name: "GPT-6 Luna",
|
|
1535
|
+
where: "api",
|
|
1536
|
+
provider: "OpenAI",
|
|
1537
|
+
price: { input: 0.1, output: 0.5 },
|
|
1538
|
+
links: { docs: "https://developers.openai.com/api/docs/models", get: "https://platform.openai.com/api-keys" }
|
|
1539
|
+
};
|
|
1540
|
+
var GEMINI_LITE = {
|
|
1541
|
+
model: "gemini-3.5-flash-lite",
|
|
1542
|
+
name: "Gemini 3.5 Flash-Lite",
|
|
1543
|
+
where: "api",
|
|
1544
|
+
provider: "Google",
|
|
1545
|
+
price: { input: 0.3, output: 2.5 },
|
|
1546
|
+
links: { docs: "https://aistudio.google.com/docs/models", get: "https://aistudio.google.com/apikey" }
|
|
1547
|
+
};
|
|
1548
|
+
var BAKEOFF = "engines/data-factory-api/core/local_models.py";
|
|
1549
|
+
var MODEL_MATRIX = [
|
|
1550
|
+
{
|
|
1551
|
+
id: "chat",
|
|
1552
|
+
name: "Chat and assistant",
|
|
1553
|
+
jargon: "Conversational agent with tool calling",
|
|
1554
|
+
plain: "Answers questions in a conversation and, when asked, does something: opens a chart, looks up a company. The hard part is knowing when not to.",
|
|
1555
|
+
typical: { task: "a question and its answer", inputTokens: 1500, outputTokens: 300 },
|
|
1556
|
+
options: [
|
|
1557
|
+
{
|
|
1558
|
+
...QWEN_LOCAL,
|
|
1559
|
+
status: "in-use",
|
|
1560
|
+
result: "Chose the right tool, or none, on 4 of 4 test prompts; first word in 1.5 s with thinking off.",
|
|
1561
|
+
evidence: "framework/shared/src/ai/registry.ts"
|
|
1562
|
+
},
|
|
1563
|
+
{ ...HAIKU_45, status: "in-use", result: "Runs the ramme.io site assistant.", evidence: "framework/shared/src/ai/registry.ts" },
|
|
1564
|
+
{ ...HAIKU, status: "candidate" },
|
|
1565
|
+
{ ...GPT_OSS_LOCAL, status: "candidate" }
|
|
1566
|
+
]
|
|
1567
|
+
},
|
|
1568
|
+
{
|
|
1569
|
+
id: "scoring",
|
|
1570
|
+
name: "Scoring short texts",
|
|
1571
|
+
jargon: "Classification / sentiment scoring",
|
|
1572
|
+
plain: "Reads a headline or a filing summary and gives it a number, such as 0 for bad news and 100 for good.",
|
|
1573
|
+
typical: { task: "one headline", inputTokens: 150, outputTokens: 60 },
|
|
1574
|
+
options: [
|
|
1575
|
+
{
|
|
1576
|
+
...QWEN_LOCAL,
|
|
1577
|
+
status: "in-use",
|
|
1578
|
+
result: "Same reading as Claude Opus on 55% of 40 real headlines, and 5 of 5 obvious cases right.",
|
|
1579
|
+
evidence: BAKEOFF
|
|
1580
|
+
},
|
|
1581
|
+
{ ...GPT_OSS_LOCAL, status: "measured", result: "Same reading as Claude Opus on 52% of 40; fastest locally.", evidence: BAKEOFF },
|
|
1582
|
+
{ ...HAIKU, status: "candidate" }
|
|
1583
|
+
]
|
|
1584
|
+
},
|
|
1585
|
+
{
|
|
1586
|
+
id: "extraction",
|
|
1587
|
+
name: "Pulling facts out of text",
|
|
1588
|
+
jargon: "Structured extraction (JSON output)",
|
|
1589
|
+
plain: "Finds named things in text and returns them in a fixed shape: which companies a news story mentions, how many jobs a layoff cuts.",
|
|
1590
|
+
typical: { task: "one news story", inputTokens: 400, outputTokens: 150 },
|
|
1591
|
+
options: [
|
|
1592
|
+
{
|
|
1593
|
+
...QWEN_LOCAL,
|
|
1594
|
+
status: "in-use",
|
|
1595
|
+
result: "Named the same companies as Claude Opus 90% of the time on 40 real signals.",
|
|
1596
|
+
evidence: BAKEOFF
|
|
1597
|
+
},
|
|
1598
|
+
{ ...GPT_OSS_LOCAL, status: "measured", result: "88% on the same test.", evidence: BAKEOFF },
|
|
1599
|
+
{ ...HAIKU, status: "candidate" }
|
|
1600
|
+
]
|
|
1601
|
+
},
|
|
1602
|
+
{
|
|
1603
|
+
id: "reports",
|
|
1604
|
+
name: "Writing reports and briefings",
|
|
1605
|
+
jargon: "Long-form generation, grounded in sources",
|
|
1606
|
+
plain: "Writes a few paragraphs about a company from its numbers and news, citing where each claim came from.",
|
|
1607
|
+
typical: { task: "one report section", inputTokens: 6e3, outputTokens: 800 },
|
|
1608
|
+
options: [
|
|
1609
|
+
{ ...HAIKU, status: "in-use", result: "The default for reports and Generate Briefing.", evidence: "engines/data-factory-api/core/ai_router.py" },
|
|
1610
|
+
{
|
|
1611
|
+
...QWEN_LOCAL,
|
|
1612
|
+
status: "measured",
|
|
1613
|
+
result: "Passed the briefing and the longest report section without being cut off (42 s and 10 s).",
|
|
1614
|
+
evidence: "engines/data-factory-api/core/model_smoke.py"
|
|
1615
|
+
},
|
|
1616
|
+
{ ...SONNET, status: "candidate" },
|
|
1617
|
+
{ ...GEMINI_LITE, status: "candidate" },
|
|
1618
|
+
{ ...GPT_LUNA, status: "candidate" }
|
|
1619
|
+
]
|
|
1620
|
+
},
|
|
1621
|
+
{
|
|
1622
|
+
id: "coding",
|
|
1623
|
+
name: "Writing and changing code",
|
|
1624
|
+
jargon: "Agentic coding",
|
|
1625
|
+
plain: "Reads a codebase, makes a change across several files and checks its own work. This repo is built this way.",
|
|
1626
|
+
typical: { task: "one change, start to finish", inputTokens: 4e5, outputTokens: 3e4 },
|
|
1627
|
+
options: [
|
|
1628
|
+
{ ...OPUS, status: "in-use", result: "Builds and maintains this repo through Claude Code.", evidence: "AGENTS.md" },
|
|
1629
|
+
{ ...SONNET, status: "candidate" },
|
|
1630
|
+
{ ...QWEN_LOCAL, status: "candidate" }
|
|
1631
|
+
]
|
|
1632
|
+
},
|
|
1633
|
+
{
|
|
1634
|
+
id: "vision",
|
|
1635
|
+
name: "Understanding images",
|
|
1636
|
+
jargon: "Vision-language model (multimodal input)",
|
|
1637
|
+
plain: "Looks at a photo or a chart and describes it or answers questions about it.",
|
|
1638
|
+
typical: { task: "one photo and a question", inputTokens: 1600, outputTokens: 200 },
|
|
1639
|
+
options: [
|
|
1640
|
+
{ ...QWEN_LOCAL, status: "candidate" },
|
|
1641
|
+
{ ...HAIKU, status: "candidate" }
|
|
1642
|
+
]
|
|
1643
|
+
},
|
|
1644
|
+
{
|
|
1645
|
+
id: "speech-to-text",
|
|
1646
|
+
name: "Turning speech into text",
|
|
1647
|
+
jargon: "Speech-to-text (STT, automatic speech recognition)",
|
|
1648
|
+
plain: "Listens to someone talk and writes down what they said.",
|
|
1649
|
+
typical: { task: "one minute of speech", inputTokens: 0, outputTokens: 0 },
|
|
1650
|
+
options: []
|
|
1651
|
+
},
|
|
1652
|
+
{
|
|
1653
|
+
id: "text-to-speech",
|
|
1654
|
+
name: "Reading text aloud",
|
|
1655
|
+
jargon: "Text-to-speech (TTS, speech synthesis)",
|
|
1656
|
+
plain: "Turns written words into a natural-sounding voice.",
|
|
1657
|
+
typical: { task: "one paragraph spoken", inputTokens: 0, outputTokens: 0 },
|
|
1658
|
+
options: []
|
|
1659
|
+
},
|
|
1660
|
+
{
|
|
1661
|
+
id: "embeddings",
|
|
1662
|
+
name: "Finding similar things",
|
|
1663
|
+
jargon: "Embeddings (vector search)",
|
|
1664
|
+
plain: "Turns text into a list of numbers so that texts about the same thing end up close together, which is how search by meaning works.",
|
|
1665
|
+
typical: { task: "one paragraph", inputTokens: 200, outputTokens: 0 },
|
|
1666
|
+
options: [
|
|
1667
|
+
{
|
|
1668
|
+
model: "nomic-embed-text",
|
|
1669
|
+
name: "Nomic Embed Text",
|
|
1670
|
+
where: "local",
|
|
1671
|
+
provider: "Ollama",
|
|
1672
|
+
memoryGb: 0.3,
|
|
1673
|
+
status: "candidate",
|
|
1674
|
+
links: { docs: "https://huggingface.co/nomic-ai/nomic-embed-text-v1.5", get: "https://ollama.com/library/nomic-embed-text" }
|
|
1675
|
+
}
|
|
1676
|
+
]
|
|
1677
|
+
},
|
|
1678
|
+
{
|
|
1679
|
+
id: "documents",
|
|
1680
|
+
name: "Reading PDFs and scanned documents",
|
|
1681
|
+
jargon: "Document parsing (layout analysis, OCR, table extraction)",
|
|
1682
|
+
plain: "Turns a PDF, including its tables and scanned pages, into text and tables a program can read.",
|
|
1683
|
+
typical: { task: "one 20-page report", inputTokens: 0, outputTokens: 0 },
|
|
1684
|
+
options: [
|
|
1685
|
+
{
|
|
1686
|
+
model: "llamaparse-agentic",
|
|
1687
|
+
name: "LlamaParse (agentic)",
|
|
1688
|
+
where: "api",
|
|
1689
|
+
provider: "LlamaIndex",
|
|
1690
|
+
status: "in-use",
|
|
1691
|
+
result: "Read 24 of 24 values right on two servicer reports.",
|
|
1692
|
+
evidence: "engines/data-factory-api/scripts/eval_document_parser.py",
|
|
1693
|
+
links: { docs: "https://developers.llamaindex.ai/llamaparse/parse/getting_started/", get: "https://cloud.llamaindex.ai/api-key" }
|
|
1694
|
+
},
|
|
1695
|
+
{
|
|
1696
|
+
model: "docling",
|
|
1697
|
+
name: "Docling",
|
|
1698
|
+
where: "local",
|
|
1699
|
+
provider: "IBM (open source)",
|
|
1700
|
+
status: "measured",
|
|
1701
|
+
result: "Read 17 of 24 right, and none wrong, on the same reports.",
|
|
1702
|
+
evidence: "engines/data-factory-api/scripts/eval_document_parser.py",
|
|
1703
|
+
links: { docs: "https://docling-project.github.io/docling/", get: "https://github.com/docling-project/docling" }
|
|
1704
|
+
}
|
|
1705
|
+
]
|
|
1706
|
+
}
|
|
1707
|
+
];
|
|
1708
|
+
var MODEL_GLOSSARY = [
|
|
1709
|
+
{ term: "Model", plain: "The program that reads and writes text (or images, or speech). It was trained once, on a huge amount of writing, and is then asked questions." },
|
|
1710
|
+
{ term: "Local", plain: "Runs on your own computer. Free per use, private, and needs enough memory to hold the model." },
|
|
1711
|
+
{ term: "API (hosted)", plain: "Runs on a company's servers. You send it a request over the internet and pay per use." },
|
|
1712
|
+
{ term: "Token", plain: "The unit models count in, roughly three quarters of a word. Prices are per million tokens." },
|
|
1713
|
+
{ term: "Input and output tokens", plain: "What you send (the question, the document) and what comes back (the answer). Output usually costs more." },
|
|
1714
|
+
{ term: "Context window", plain: "How much text a model can read at once. Asking for more than it needs costs memory, so this repo asks for just enough." },
|
|
1715
|
+
{ term: "Parameters (27B, 20B)", plain: "A rough measure of a model's size: 27B is 27 billion numbers. Bigger usually means better and slower, and needs more memory." },
|
|
1716
|
+
{ term: "Thinking (reasoning)", plain: "Some models work through a problem before answering. Better for hard problems, slower for easy ones, so this repo turns it off for quick jobs." },
|
|
1717
|
+
{ term: "Tool calling", plain: "A model asking the app to do something, such as open a chart, instead of only replying in words." },
|
|
1718
|
+
{ term: "Ollama", plain: "Free software that downloads and runs open models on your own computer." },
|
|
1719
|
+
{ term: "Open weights", plain: "A model whose files anyone may download and run. Every local model here is one." }
|
|
1720
|
+
];
|
|
1721
|
+
|
|
1478
1722
|
// src/ai/prompts/theme.prompt.ts
|
|
1479
1723
|
var THEME_SYSTEM_PROMPT = `
|
|
1480
1724
|
You are a Senior UI Design Engineer specializing in WCAG 2.1 Accessibility.
|
|
@@ -2409,6 +2653,9 @@ export {
|
|
|
2409
2653
|
InviteRecordSchema,
|
|
2410
2654
|
MAX_PASSWORD_LENGTH,
|
|
2411
2655
|
MIN_PASSWORD_LENGTH,
|
|
2656
|
+
MODEL_GLOSSARY,
|
|
2657
|
+
MODEL_MATRIX,
|
|
2658
|
+
MODEL_MATRIX_REVIEWED,
|
|
2412
2659
|
MountHolesSchema,
|
|
2413
2660
|
NewAccessTokenSchema,
|
|
2414
2661
|
ORIGINAL_MAX_BYTES,
|