@ramme-io/shared 4.7.0 → 4.9.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 +236 -1
- package/dist/index.d.cts +86 -3
- package/dist/index.d.ts +86 -3
- package/dist/index.js +233 -1
- 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,
|
|
@@ -1675,7 +1678,7 @@ var PROVIDER_DEFAULT_MODEL = {
|
|
|
1675
1678
|
"anthropic": "claude-haiku-4-5-20251001",
|
|
1676
1679
|
"grok": "grok-2-1212",
|
|
1677
1680
|
"deepseek": "deepseek-chat",
|
|
1678
|
-
"ollama": "
|
|
1681
|
+
"ollama": "qwen3.5:27b"
|
|
1679
1682
|
};
|
|
1680
1683
|
var ASSISTANT_PROVIDER = "anthropic";
|
|
1681
1684
|
var ASSISTANT_MODEL = PROVIDER_DEFAULT_MODEL[ASSISTANT_PROVIDER];
|
|
@@ -1714,6 +1717,235 @@ var AI_ROSTER = {
|
|
|
1714
1717
|
}
|
|
1715
1718
|
};
|
|
1716
1719
|
|
|
1720
|
+
// src/ai/modelMatrix.ts
|
|
1721
|
+
var MODEL_MATRIX_REVIEWED = "2026-11-25";
|
|
1722
|
+
var QWEN_LOCAL = {
|
|
1723
|
+
model: "qwen3.5:27b",
|
|
1724
|
+
name: "Qwen 3.5 27B",
|
|
1725
|
+
where: "local",
|
|
1726
|
+
provider: "Ollama",
|
|
1727
|
+
memoryGb: 20
|
|
1728
|
+
};
|
|
1729
|
+
var GPT_OSS_LOCAL = {
|
|
1730
|
+
model: "gpt-oss:20b",
|
|
1731
|
+
name: "gpt-oss 20B",
|
|
1732
|
+
where: "local",
|
|
1733
|
+
provider: "Ollama",
|
|
1734
|
+
memoryGb: 13
|
|
1735
|
+
};
|
|
1736
|
+
var HAIKU = {
|
|
1737
|
+
model: "claude-haiku-5-5",
|
|
1738
|
+
name: "Claude Haiku 5.5",
|
|
1739
|
+
where: "api",
|
|
1740
|
+
provider: "Anthropic",
|
|
1741
|
+
price: { input: 0.1, output: 0.5 }
|
|
1742
|
+
};
|
|
1743
|
+
var HAIKU_45 = {
|
|
1744
|
+
model: "claude-haiku-4-5-20251001",
|
|
1745
|
+
name: "Claude Haiku 4.5",
|
|
1746
|
+
where: "api",
|
|
1747
|
+
provider: "Anthropic",
|
|
1748
|
+
price: { input: 1, output: 5 }
|
|
1749
|
+
};
|
|
1750
|
+
var SONNET = {
|
|
1751
|
+
model: "claude-sonnet-5-5",
|
|
1752
|
+
name: "Claude Sonnet 5.5",
|
|
1753
|
+
where: "api",
|
|
1754
|
+
provider: "Anthropic",
|
|
1755
|
+
price: { input: 2, output: 10 }
|
|
1756
|
+
};
|
|
1757
|
+
var OPUS = {
|
|
1758
|
+
model: "claude-opus-5-5",
|
|
1759
|
+
name: "Claude Opus 5.5",
|
|
1760
|
+
where: "api",
|
|
1761
|
+
provider: "Anthropic",
|
|
1762
|
+
price: { input: 4, output: 20 }
|
|
1763
|
+
};
|
|
1764
|
+
var GPT_LUNA = {
|
|
1765
|
+
model: "gpt-6-luna",
|
|
1766
|
+
name: "GPT-6 Luna",
|
|
1767
|
+
where: "api",
|
|
1768
|
+
provider: "OpenAI",
|
|
1769
|
+
price: { input: 0.1, output: 0.5 }
|
|
1770
|
+
};
|
|
1771
|
+
var GEMINI_LITE = {
|
|
1772
|
+
model: "gemini-3.5-flash-lite",
|
|
1773
|
+
name: "Gemini 3.5 Flash-Lite",
|
|
1774
|
+
where: "api",
|
|
1775
|
+
provider: "Google",
|
|
1776
|
+
price: { input: 0.3, output: 2.5 }
|
|
1777
|
+
};
|
|
1778
|
+
var BAKEOFF = "engines/data-factory-api/core/local_models.py";
|
|
1779
|
+
var MODEL_MATRIX = [
|
|
1780
|
+
{
|
|
1781
|
+
id: "chat",
|
|
1782
|
+
name: "Chat and assistant",
|
|
1783
|
+
jargon: "Conversational agent with tool calling",
|
|
1784
|
+
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.",
|
|
1785
|
+
typical: { task: "a question and its answer", inputTokens: 1500, outputTokens: 300 },
|
|
1786
|
+
options: [
|
|
1787
|
+
{
|
|
1788
|
+
...QWEN_LOCAL,
|
|
1789
|
+
status: "in-use",
|
|
1790
|
+
result: "Chose the right tool, or none, on 4 of 4 test prompts; first word in 1.5 s with thinking off.",
|
|
1791
|
+
evidence: "framework/shared/src/ai/registry.ts"
|
|
1792
|
+
},
|
|
1793
|
+
{ ...HAIKU_45, status: "in-use", result: "Runs the ramme.io site assistant.", evidence: "framework/shared/src/ai/registry.ts" },
|
|
1794
|
+
{ ...HAIKU, status: "candidate" },
|
|
1795
|
+
{ ...GPT_OSS_LOCAL, status: "candidate" }
|
|
1796
|
+
]
|
|
1797
|
+
},
|
|
1798
|
+
{
|
|
1799
|
+
id: "scoring",
|
|
1800
|
+
name: "Scoring short texts",
|
|
1801
|
+
jargon: "Classification / sentiment scoring",
|
|
1802
|
+
plain: "Reads a headline or a filing summary and gives it a number, such as 0 for bad news and 100 for good.",
|
|
1803
|
+
typical: { task: "one headline", inputTokens: 150, outputTokens: 60 },
|
|
1804
|
+
options: [
|
|
1805
|
+
{
|
|
1806
|
+
...QWEN_LOCAL,
|
|
1807
|
+
status: "in-use",
|
|
1808
|
+
result: "Same reading as Claude Opus on 55% of 40 real headlines, and 5 of 5 obvious cases right.",
|
|
1809
|
+
evidence: BAKEOFF
|
|
1810
|
+
},
|
|
1811
|
+
{ ...GPT_OSS_LOCAL, status: "measured", result: "Same reading as Claude Opus on 52% of 40; fastest locally.", evidence: BAKEOFF },
|
|
1812
|
+
{ ...HAIKU, status: "candidate" }
|
|
1813
|
+
]
|
|
1814
|
+
},
|
|
1815
|
+
{
|
|
1816
|
+
id: "extraction",
|
|
1817
|
+
name: "Pulling facts out of text",
|
|
1818
|
+
jargon: "Structured extraction (JSON output)",
|
|
1819
|
+
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.",
|
|
1820
|
+
typical: { task: "one news story", inputTokens: 400, outputTokens: 150 },
|
|
1821
|
+
options: [
|
|
1822
|
+
{
|
|
1823
|
+
...QWEN_LOCAL,
|
|
1824
|
+
status: "in-use",
|
|
1825
|
+
result: "Named the same companies as Claude Opus 90% of the time on 40 real signals.",
|
|
1826
|
+
evidence: BAKEOFF
|
|
1827
|
+
},
|
|
1828
|
+
{ ...GPT_OSS_LOCAL, status: "measured", result: "88% on the same test.", evidence: BAKEOFF },
|
|
1829
|
+
{ ...HAIKU, status: "candidate" }
|
|
1830
|
+
]
|
|
1831
|
+
},
|
|
1832
|
+
{
|
|
1833
|
+
id: "reports",
|
|
1834
|
+
name: "Writing reports and briefings",
|
|
1835
|
+
jargon: "Long-form generation, grounded in sources",
|
|
1836
|
+
plain: "Writes a few paragraphs about a company from its numbers and news, citing where each claim came from.",
|
|
1837
|
+
typical: { task: "one report section", inputTokens: 6e3, outputTokens: 800 },
|
|
1838
|
+
options: [
|
|
1839
|
+
{ ...HAIKU, status: "in-use", result: "The default for reports and Generate Briefing.", evidence: "engines/data-factory-api/core/ai_router.py" },
|
|
1840
|
+
{
|
|
1841
|
+
...QWEN_LOCAL,
|
|
1842
|
+
status: "measured",
|
|
1843
|
+
result: "Passed the briefing and the longest report section without being cut off (42 s and 10 s).",
|
|
1844
|
+
evidence: "engines/data-factory-api/core/model_smoke.py"
|
|
1845
|
+
},
|
|
1846
|
+
{ ...SONNET, status: "candidate" },
|
|
1847
|
+
{ ...GEMINI_LITE, status: "candidate" },
|
|
1848
|
+
{ ...GPT_LUNA, status: "candidate" }
|
|
1849
|
+
]
|
|
1850
|
+
},
|
|
1851
|
+
{
|
|
1852
|
+
id: "coding",
|
|
1853
|
+
name: "Writing and changing code",
|
|
1854
|
+
jargon: "Agentic coding",
|
|
1855
|
+
plain: "Reads a codebase, makes a change across several files and checks its own work. This repo is built this way.",
|
|
1856
|
+
typical: { task: "one change, start to finish", inputTokens: 4e5, outputTokens: 3e4 },
|
|
1857
|
+
options: [
|
|
1858
|
+
{ ...OPUS, status: "in-use", result: "Builds and maintains this repo through Claude Code.", evidence: "AGENTS.md" },
|
|
1859
|
+
{ ...SONNET, status: "candidate" },
|
|
1860
|
+
{ ...QWEN_LOCAL, status: "candidate" }
|
|
1861
|
+
]
|
|
1862
|
+
},
|
|
1863
|
+
{
|
|
1864
|
+
id: "vision",
|
|
1865
|
+
name: "Understanding images",
|
|
1866
|
+
jargon: "Vision-language model (multimodal input)",
|
|
1867
|
+
plain: "Looks at a photo or a chart and describes it or answers questions about it.",
|
|
1868
|
+
typical: { task: "one photo and a question", inputTokens: 1600, outputTokens: 200 },
|
|
1869
|
+
options: [
|
|
1870
|
+
{ ...QWEN_LOCAL, status: "candidate" },
|
|
1871
|
+
{ ...HAIKU, status: "candidate" }
|
|
1872
|
+
]
|
|
1873
|
+
},
|
|
1874
|
+
{
|
|
1875
|
+
id: "speech-to-text",
|
|
1876
|
+
name: "Turning speech into text",
|
|
1877
|
+
jargon: "Speech-to-text (STT, automatic speech recognition)",
|
|
1878
|
+
plain: "Listens to someone talk and writes down what they said.",
|
|
1879
|
+
typical: { task: "one minute of speech", inputTokens: 0, outputTokens: 0 },
|
|
1880
|
+
options: []
|
|
1881
|
+
},
|
|
1882
|
+
{
|
|
1883
|
+
id: "text-to-speech",
|
|
1884
|
+
name: "Reading text aloud",
|
|
1885
|
+
jargon: "Text-to-speech (TTS, speech synthesis)",
|
|
1886
|
+
plain: "Turns written words into a natural-sounding voice.",
|
|
1887
|
+
typical: { task: "one paragraph spoken", inputTokens: 0, outputTokens: 0 },
|
|
1888
|
+
options: []
|
|
1889
|
+
},
|
|
1890
|
+
{
|
|
1891
|
+
id: "embeddings",
|
|
1892
|
+
name: "Finding similar things",
|
|
1893
|
+
jargon: "Embeddings (vector search)",
|
|
1894
|
+
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.",
|
|
1895
|
+
typical: { task: "one paragraph", inputTokens: 200, outputTokens: 0 },
|
|
1896
|
+
options: [
|
|
1897
|
+
{
|
|
1898
|
+
model: "nomic-embed-text",
|
|
1899
|
+
name: "Nomic Embed Text",
|
|
1900
|
+
where: "local",
|
|
1901
|
+
provider: "Ollama",
|
|
1902
|
+
memoryGb: 0.3,
|
|
1903
|
+
status: "candidate"
|
|
1904
|
+
}
|
|
1905
|
+
]
|
|
1906
|
+
},
|
|
1907
|
+
{
|
|
1908
|
+
id: "documents",
|
|
1909
|
+
name: "Reading PDFs and scanned documents",
|
|
1910
|
+
jargon: "Document parsing (layout analysis, OCR, table extraction)",
|
|
1911
|
+
plain: "Turns a PDF, including its tables and scanned pages, into text and tables a program can read.",
|
|
1912
|
+
typical: { task: "one 20-page report", inputTokens: 0, outputTokens: 0 },
|
|
1913
|
+
options: [
|
|
1914
|
+
{
|
|
1915
|
+
model: "llamaparse-agentic",
|
|
1916
|
+
name: "LlamaParse (agentic)",
|
|
1917
|
+
where: "api",
|
|
1918
|
+
provider: "LlamaIndex",
|
|
1919
|
+
status: "in-use",
|
|
1920
|
+
result: "Read 24 of 24 values right on two servicer reports.",
|
|
1921
|
+
evidence: "engines/data-factory-api/scripts/eval_document_parser.py"
|
|
1922
|
+
},
|
|
1923
|
+
{
|
|
1924
|
+
model: "docling",
|
|
1925
|
+
name: "Docling",
|
|
1926
|
+
where: "local",
|
|
1927
|
+
provider: "IBM (open source)",
|
|
1928
|
+
status: "measured",
|
|
1929
|
+
result: "Read 17 of 24 right, and none wrong, on the same reports.",
|
|
1930
|
+
evidence: "engines/data-factory-api/scripts/eval_document_parser.py"
|
|
1931
|
+
}
|
|
1932
|
+
]
|
|
1933
|
+
}
|
|
1934
|
+
];
|
|
1935
|
+
var MODEL_GLOSSARY = [
|
|
1936
|
+
{ 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." },
|
|
1937
|
+
{ term: "Local", plain: "Runs on your own computer. Free per use, private, and needs enough memory to hold the model." },
|
|
1938
|
+
{ term: "API (hosted)", plain: "Runs on a company's servers. You send it a request over the internet and pay per use." },
|
|
1939
|
+
{ term: "Token", plain: "The unit models count in, roughly three quarters of a word. Prices are per million tokens." },
|
|
1940
|
+
{ term: "Input and output tokens", plain: "What you send (the question, the document) and what comes back (the answer). Output usually costs more." },
|
|
1941
|
+
{ 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." },
|
|
1942
|
+
{ 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." },
|
|
1943
|
+
{ 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." },
|
|
1944
|
+
{ term: "Tool calling", plain: "A model asking the app to do something, such as open a chart, instead of only replying in words." },
|
|
1945
|
+
{ term: "Ollama", plain: "Free software that downloads and runs open models on your own computer." },
|
|
1946
|
+
{ term: "Open weights", plain: "A model whose files anyone may download and run. Every local model here is one." }
|
|
1947
|
+
];
|
|
1948
|
+
|
|
1717
1949
|
// src/ai/prompts/theme.prompt.ts
|
|
1718
1950
|
var THEME_SYSTEM_PROMPT = `
|
|
1719
1951
|
You are a Senior UI Design Engineer specializing in WCAG 2.1 Accessibility.
|
|
@@ -2649,6 +2881,9 @@ var NewAccessTokenSchema = import_zod19.z.object({
|
|
|
2649
2881
|
InviteRecordSchema,
|
|
2650
2882
|
MAX_PASSWORD_LENGTH,
|
|
2651
2883
|
MIN_PASSWORD_LENGTH,
|
|
2884
|
+
MODEL_GLOSSARY,
|
|
2885
|
+
MODEL_MATRIX,
|
|
2886
|
+
MODEL_MATRIX_REVIEWED,
|
|
2652
2887
|
MountHolesSchema,
|
|
2653
2888
|
NewAccessTokenSchema,
|
|
2654
2889
|
ORIGINAL_MAX_BYTES,
|
package/dist/index.d.cts
CHANGED
|
@@ -59623,7 +59623,12 @@ declare const DEFAULT_PRO_MODEL: "gemini-2.5-pro";
|
|
|
59623
59623
|
* - google-gemini: 2.5-flash — the 2.0/1.5 series are deprecated (404)
|
|
59624
59624
|
* - anthropic: claude-haiku-4-5 — top performer in this app's own Model
|
|
59625
59625
|
* Inventory comparisons (see PROVIDER_MODELS notes in the kernel)
|
|
59626
|
-
* - ollama:
|
|
59626
|
+
* - ollama: qwen3.5:27b — 2026-11-25, on four chat prompts with two tools:
|
|
59627
|
+
* 4/4 right, first word in a median 1.5s with thinking off. llama3.3 got
|
|
59628
|
+
* 2/4 (opened an Apple chart for "hello there!") at 5.5s, and llama3.2 (3B)
|
|
59629
|
+
* had already been dropped for the same greeting mis-fire. The engine's
|
|
59630
|
+
* local jobs moved to the same model the same day
|
|
59631
|
+
* (engines/data-factory-api/core/local_models.py).
|
|
59627
59632
|
*/
|
|
59628
59633
|
declare const PROVIDER_DEFAULT_MODEL: {
|
|
59629
59634
|
readonly 'google-gemini': "gemini-2.5-flash";
|
|
@@ -59631,7 +59636,7 @@ declare const PROVIDER_DEFAULT_MODEL: {
|
|
|
59631
59636
|
readonly anthropic: "claude-haiku-4-5-20251001";
|
|
59632
59637
|
readonly grok: "grok-2-1212";
|
|
59633
59638
|
readonly deepseek: "deepseek-chat";
|
|
59634
|
-
readonly ollama: "
|
|
59639
|
+
readonly ollama: "qwen3.5:27b";
|
|
59635
59640
|
};
|
|
59636
59641
|
type ProviderDefaultModelKey = keyof typeof PROVIDER_DEFAULT_MODEL;
|
|
59637
59642
|
/**
|
|
@@ -59692,6 +59697,84 @@ declare const AI_ROSTER: {
|
|
|
59692
59697
|
type AgentRoleKey = keyof typeof AI_ROSTER;
|
|
59693
59698
|
type AgentRoleConfig = (typeof AI_ROSTER)[AgentRoleKey];
|
|
59694
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
|
+
}
|
|
59753
|
+
interface ModelJob {
|
|
59754
|
+
id: string;
|
|
59755
|
+
/** The job in plain words. */
|
|
59756
|
+
name: string;
|
|
59757
|
+
/** What the job is called by people who build these systems. */
|
|
59758
|
+
jargon: string;
|
|
59759
|
+
/** One or two sentences for someone who has never called a model. */
|
|
59760
|
+
plain: string;
|
|
59761
|
+
/** A typical single task, so the page can say what one costs. */
|
|
59762
|
+
typical: {
|
|
59763
|
+
task: string;
|
|
59764
|
+
inputTokens: number;
|
|
59765
|
+
outputTokens: number;
|
|
59766
|
+
};
|
|
59767
|
+
options: ModelOption[];
|
|
59768
|
+
}
|
|
59769
|
+
interface ModelGlossaryEntry {
|
|
59770
|
+
term: string;
|
|
59771
|
+
plain: string;
|
|
59772
|
+
}
|
|
59773
|
+
/** The day this file was last checked against prices and releases. */
|
|
59774
|
+
declare const MODEL_MATRIX_REVIEWED: "2026-11-25";
|
|
59775
|
+
declare const MODEL_MATRIX: ModelJob[];
|
|
59776
|
+
declare const MODEL_GLOSSARY: ModelGlossaryEntry[];
|
|
59777
|
+
|
|
59695
59778
|
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";
|
|
59696
59779
|
|
|
59697
59780
|
/**
|
|
@@ -63350,4 +63433,4 @@ type AccessTokenRecord = z.infer<typeof AccessTokenRecordSchema>;
|
|
|
63350
63433
|
type PublicAccessToken = z.infer<typeof PublicAccessTokenSchema>;
|
|
63351
63434
|
type NewAccessToken = z.infer<typeof NewAccessTokenSchema>;
|
|
63352
63435
|
|
|
63353
|
-
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 };
|
|
63436
|
+
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 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
|
@@ -59623,7 +59623,12 @@ declare const DEFAULT_PRO_MODEL: "gemini-2.5-pro";
|
|
|
59623
59623
|
* - google-gemini: 2.5-flash — the 2.0/1.5 series are deprecated (404)
|
|
59624
59624
|
* - anthropic: claude-haiku-4-5 — top performer in this app's own Model
|
|
59625
59625
|
* Inventory comparisons (see PROVIDER_MODELS notes in the kernel)
|
|
59626
|
-
* - ollama:
|
|
59626
|
+
* - ollama: qwen3.5:27b — 2026-11-25, on four chat prompts with two tools:
|
|
59627
|
+
* 4/4 right, first word in a median 1.5s with thinking off. llama3.3 got
|
|
59628
|
+
* 2/4 (opened an Apple chart for "hello there!") at 5.5s, and llama3.2 (3B)
|
|
59629
|
+
* had already been dropped for the same greeting mis-fire. The engine's
|
|
59630
|
+
* local jobs moved to the same model the same day
|
|
59631
|
+
* (engines/data-factory-api/core/local_models.py).
|
|
59627
59632
|
*/
|
|
59628
59633
|
declare const PROVIDER_DEFAULT_MODEL: {
|
|
59629
59634
|
readonly 'google-gemini': "gemini-2.5-flash";
|
|
@@ -59631,7 +59636,7 @@ declare const PROVIDER_DEFAULT_MODEL: {
|
|
|
59631
59636
|
readonly anthropic: "claude-haiku-4-5-20251001";
|
|
59632
59637
|
readonly grok: "grok-2-1212";
|
|
59633
59638
|
readonly deepseek: "deepseek-chat";
|
|
59634
|
-
readonly ollama: "
|
|
59639
|
+
readonly ollama: "qwen3.5:27b";
|
|
59635
59640
|
};
|
|
59636
59641
|
type ProviderDefaultModelKey = keyof typeof PROVIDER_DEFAULT_MODEL;
|
|
59637
59642
|
/**
|
|
@@ -59692,6 +59697,84 @@ declare const AI_ROSTER: {
|
|
|
59692
59697
|
type AgentRoleKey = keyof typeof AI_ROSTER;
|
|
59693
59698
|
type AgentRoleConfig = (typeof AI_ROSTER)[AgentRoleKey];
|
|
59694
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
|
+
}
|
|
59753
|
+
interface ModelJob {
|
|
59754
|
+
id: string;
|
|
59755
|
+
/** The job in plain words. */
|
|
59756
|
+
name: string;
|
|
59757
|
+
/** What the job is called by people who build these systems. */
|
|
59758
|
+
jargon: string;
|
|
59759
|
+
/** One or two sentences for someone who has never called a model. */
|
|
59760
|
+
plain: string;
|
|
59761
|
+
/** A typical single task, so the page can say what one costs. */
|
|
59762
|
+
typical: {
|
|
59763
|
+
task: string;
|
|
59764
|
+
inputTokens: number;
|
|
59765
|
+
outputTokens: number;
|
|
59766
|
+
};
|
|
59767
|
+
options: ModelOption[];
|
|
59768
|
+
}
|
|
59769
|
+
interface ModelGlossaryEntry {
|
|
59770
|
+
term: string;
|
|
59771
|
+
plain: string;
|
|
59772
|
+
}
|
|
59773
|
+
/** The day this file was last checked against prices and releases. */
|
|
59774
|
+
declare const MODEL_MATRIX_REVIEWED: "2026-11-25";
|
|
59775
|
+
declare const MODEL_MATRIX: ModelJob[];
|
|
59776
|
+
declare const MODEL_GLOSSARY: ModelGlossaryEntry[];
|
|
59777
|
+
|
|
59695
59778
|
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";
|
|
59696
59779
|
|
|
59697
59780
|
/**
|
|
@@ -63350,4 +63433,4 @@ type AccessTokenRecord = z.infer<typeof AccessTokenRecordSchema>;
|
|
|
63350
63433
|
type PublicAccessToken = z.infer<typeof PublicAccessTokenSchema>;
|
|
63351
63434
|
type NewAccessToken = z.infer<typeof NewAccessTokenSchema>;
|
|
63352
63435
|
|
|
63353
|
-
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 };
|
|
63436
|
+
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 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
|
@@ -1436,7 +1436,7 @@ var PROVIDER_DEFAULT_MODEL = {
|
|
|
1436
1436
|
"anthropic": "claude-haiku-4-5-20251001",
|
|
1437
1437
|
"grok": "grok-2-1212",
|
|
1438
1438
|
"deepseek": "deepseek-chat",
|
|
1439
|
-
"ollama": "
|
|
1439
|
+
"ollama": "qwen3.5:27b"
|
|
1440
1440
|
};
|
|
1441
1441
|
var ASSISTANT_PROVIDER = "anthropic";
|
|
1442
1442
|
var ASSISTANT_MODEL = PROVIDER_DEFAULT_MODEL[ASSISTANT_PROVIDER];
|
|
@@ -1475,6 +1475,235 @@ var AI_ROSTER = {
|
|
|
1475
1475
|
}
|
|
1476
1476
|
};
|
|
1477
1477
|
|
|
1478
|
+
// src/ai/modelMatrix.ts
|
|
1479
|
+
var MODEL_MATRIX_REVIEWED = "2026-11-25";
|
|
1480
|
+
var QWEN_LOCAL = {
|
|
1481
|
+
model: "qwen3.5:27b",
|
|
1482
|
+
name: "Qwen 3.5 27B",
|
|
1483
|
+
where: "local",
|
|
1484
|
+
provider: "Ollama",
|
|
1485
|
+
memoryGb: 20
|
|
1486
|
+
};
|
|
1487
|
+
var GPT_OSS_LOCAL = {
|
|
1488
|
+
model: "gpt-oss:20b",
|
|
1489
|
+
name: "gpt-oss 20B",
|
|
1490
|
+
where: "local",
|
|
1491
|
+
provider: "Ollama",
|
|
1492
|
+
memoryGb: 13
|
|
1493
|
+
};
|
|
1494
|
+
var HAIKU = {
|
|
1495
|
+
model: "claude-haiku-5-5",
|
|
1496
|
+
name: "Claude Haiku 5.5",
|
|
1497
|
+
where: "api",
|
|
1498
|
+
provider: "Anthropic",
|
|
1499
|
+
price: { input: 0.1, output: 0.5 }
|
|
1500
|
+
};
|
|
1501
|
+
var HAIKU_45 = {
|
|
1502
|
+
model: "claude-haiku-4-5-20251001",
|
|
1503
|
+
name: "Claude Haiku 4.5",
|
|
1504
|
+
where: "api",
|
|
1505
|
+
provider: "Anthropic",
|
|
1506
|
+
price: { input: 1, output: 5 }
|
|
1507
|
+
};
|
|
1508
|
+
var SONNET = {
|
|
1509
|
+
model: "claude-sonnet-5-5",
|
|
1510
|
+
name: "Claude Sonnet 5.5",
|
|
1511
|
+
where: "api",
|
|
1512
|
+
provider: "Anthropic",
|
|
1513
|
+
price: { input: 2, output: 10 }
|
|
1514
|
+
};
|
|
1515
|
+
var OPUS = {
|
|
1516
|
+
model: "claude-opus-5-5",
|
|
1517
|
+
name: "Claude Opus 5.5",
|
|
1518
|
+
where: "api",
|
|
1519
|
+
provider: "Anthropic",
|
|
1520
|
+
price: { input: 4, output: 20 }
|
|
1521
|
+
};
|
|
1522
|
+
var GPT_LUNA = {
|
|
1523
|
+
model: "gpt-6-luna",
|
|
1524
|
+
name: "GPT-6 Luna",
|
|
1525
|
+
where: "api",
|
|
1526
|
+
provider: "OpenAI",
|
|
1527
|
+
price: { input: 0.1, output: 0.5 }
|
|
1528
|
+
};
|
|
1529
|
+
var GEMINI_LITE = {
|
|
1530
|
+
model: "gemini-3.5-flash-lite",
|
|
1531
|
+
name: "Gemini 3.5 Flash-Lite",
|
|
1532
|
+
where: "api",
|
|
1533
|
+
provider: "Google",
|
|
1534
|
+
price: { input: 0.3, output: 2.5 }
|
|
1535
|
+
};
|
|
1536
|
+
var BAKEOFF = "engines/data-factory-api/core/local_models.py";
|
|
1537
|
+
var MODEL_MATRIX = [
|
|
1538
|
+
{
|
|
1539
|
+
id: "chat",
|
|
1540
|
+
name: "Chat and assistant",
|
|
1541
|
+
jargon: "Conversational agent with tool calling",
|
|
1542
|
+
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.",
|
|
1543
|
+
typical: { task: "a question and its answer", inputTokens: 1500, outputTokens: 300 },
|
|
1544
|
+
options: [
|
|
1545
|
+
{
|
|
1546
|
+
...QWEN_LOCAL,
|
|
1547
|
+
status: "in-use",
|
|
1548
|
+
result: "Chose the right tool, or none, on 4 of 4 test prompts; first word in 1.5 s with thinking off.",
|
|
1549
|
+
evidence: "framework/shared/src/ai/registry.ts"
|
|
1550
|
+
},
|
|
1551
|
+
{ ...HAIKU_45, status: "in-use", result: "Runs the ramme.io site assistant.", evidence: "framework/shared/src/ai/registry.ts" },
|
|
1552
|
+
{ ...HAIKU, status: "candidate" },
|
|
1553
|
+
{ ...GPT_OSS_LOCAL, status: "candidate" }
|
|
1554
|
+
]
|
|
1555
|
+
},
|
|
1556
|
+
{
|
|
1557
|
+
id: "scoring",
|
|
1558
|
+
name: "Scoring short texts",
|
|
1559
|
+
jargon: "Classification / sentiment scoring",
|
|
1560
|
+
plain: "Reads a headline or a filing summary and gives it a number, such as 0 for bad news and 100 for good.",
|
|
1561
|
+
typical: { task: "one headline", inputTokens: 150, outputTokens: 60 },
|
|
1562
|
+
options: [
|
|
1563
|
+
{
|
|
1564
|
+
...QWEN_LOCAL,
|
|
1565
|
+
status: "in-use",
|
|
1566
|
+
result: "Same reading as Claude Opus on 55% of 40 real headlines, and 5 of 5 obvious cases right.",
|
|
1567
|
+
evidence: BAKEOFF
|
|
1568
|
+
},
|
|
1569
|
+
{ ...GPT_OSS_LOCAL, status: "measured", result: "Same reading as Claude Opus on 52% of 40; fastest locally.", evidence: BAKEOFF },
|
|
1570
|
+
{ ...HAIKU, status: "candidate" }
|
|
1571
|
+
]
|
|
1572
|
+
},
|
|
1573
|
+
{
|
|
1574
|
+
id: "extraction",
|
|
1575
|
+
name: "Pulling facts out of text",
|
|
1576
|
+
jargon: "Structured extraction (JSON output)",
|
|
1577
|
+
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.",
|
|
1578
|
+
typical: { task: "one news story", inputTokens: 400, outputTokens: 150 },
|
|
1579
|
+
options: [
|
|
1580
|
+
{
|
|
1581
|
+
...QWEN_LOCAL,
|
|
1582
|
+
status: "in-use",
|
|
1583
|
+
result: "Named the same companies as Claude Opus 90% of the time on 40 real signals.",
|
|
1584
|
+
evidence: BAKEOFF
|
|
1585
|
+
},
|
|
1586
|
+
{ ...GPT_OSS_LOCAL, status: "measured", result: "88% on the same test.", evidence: BAKEOFF },
|
|
1587
|
+
{ ...HAIKU, status: "candidate" }
|
|
1588
|
+
]
|
|
1589
|
+
},
|
|
1590
|
+
{
|
|
1591
|
+
id: "reports",
|
|
1592
|
+
name: "Writing reports and briefings",
|
|
1593
|
+
jargon: "Long-form generation, grounded in sources",
|
|
1594
|
+
plain: "Writes a few paragraphs about a company from its numbers and news, citing where each claim came from.",
|
|
1595
|
+
typical: { task: "one report section", inputTokens: 6e3, outputTokens: 800 },
|
|
1596
|
+
options: [
|
|
1597
|
+
{ ...HAIKU, status: "in-use", result: "The default for reports and Generate Briefing.", evidence: "engines/data-factory-api/core/ai_router.py" },
|
|
1598
|
+
{
|
|
1599
|
+
...QWEN_LOCAL,
|
|
1600
|
+
status: "measured",
|
|
1601
|
+
result: "Passed the briefing and the longest report section without being cut off (42 s and 10 s).",
|
|
1602
|
+
evidence: "engines/data-factory-api/core/model_smoke.py"
|
|
1603
|
+
},
|
|
1604
|
+
{ ...SONNET, status: "candidate" },
|
|
1605
|
+
{ ...GEMINI_LITE, status: "candidate" },
|
|
1606
|
+
{ ...GPT_LUNA, status: "candidate" }
|
|
1607
|
+
]
|
|
1608
|
+
},
|
|
1609
|
+
{
|
|
1610
|
+
id: "coding",
|
|
1611
|
+
name: "Writing and changing code",
|
|
1612
|
+
jargon: "Agentic coding",
|
|
1613
|
+
plain: "Reads a codebase, makes a change across several files and checks its own work. This repo is built this way.",
|
|
1614
|
+
typical: { task: "one change, start to finish", inputTokens: 4e5, outputTokens: 3e4 },
|
|
1615
|
+
options: [
|
|
1616
|
+
{ ...OPUS, status: "in-use", result: "Builds and maintains this repo through Claude Code.", evidence: "AGENTS.md" },
|
|
1617
|
+
{ ...SONNET, status: "candidate" },
|
|
1618
|
+
{ ...QWEN_LOCAL, status: "candidate" }
|
|
1619
|
+
]
|
|
1620
|
+
},
|
|
1621
|
+
{
|
|
1622
|
+
id: "vision",
|
|
1623
|
+
name: "Understanding images",
|
|
1624
|
+
jargon: "Vision-language model (multimodal input)",
|
|
1625
|
+
plain: "Looks at a photo or a chart and describes it or answers questions about it.",
|
|
1626
|
+
typical: { task: "one photo and a question", inputTokens: 1600, outputTokens: 200 },
|
|
1627
|
+
options: [
|
|
1628
|
+
{ ...QWEN_LOCAL, status: "candidate" },
|
|
1629
|
+
{ ...HAIKU, status: "candidate" }
|
|
1630
|
+
]
|
|
1631
|
+
},
|
|
1632
|
+
{
|
|
1633
|
+
id: "speech-to-text",
|
|
1634
|
+
name: "Turning speech into text",
|
|
1635
|
+
jargon: "Speech-to-text (STT, automatic speech recognition)",
|
|
1636
|
+
plain: "Listens to someone talk and writes down what they said.",
|
|
1637
|
+
typical: { task: "one minute of speech", inputTokens: 0, outputTokens: 0 },
|
|
1638
|
+
options: []
|
|
1639
|
+
},
|
|
1640
|
+
{
|
|
1641
|
+
id: "text-to-speech",
|
|
1642
|
+
name: "Reading text aloud",
|
|
1643
|
+
jargon: "Text-to-speech (TTS, speech synthesis)",
|
|
1644
|
+
plain: "Turns written words into a natural-sounding voice.",
|
|
1645
|
+
typical: { task: "one paragraph spoken", inputTokens: 0, outputTokens: 0 },
|
|
1646
|
+
options: []
|
|
1647
|
+
},
|
|
1648
|
+
{
|
|
1649
|
+
id: "embeddings",
|
|
1650
|
+
name: "Finding similar things",
|
|
1651
|
+
jargon: "Embeddings (vector search)",
|
|
1652
|
+
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.",
|
|
1653
|
+
typical: { task: "one paragraph", inputTokens: 200, outputTokens: 0 },
|
|
1654
|
+
options: [
|
|
1655
|
+
{
|
|
1656
|
+
model: "nomic-embed-text",
|
|
1657
|
+
name: "Nomic Embed Text",
|
|
1658
|
+
where: "local",
|
|
1659
|
+
provider: "Ollama",
|
|
1660
|
+
memoryGb: 0.3,
|
|
1661
|
+
status: "candidate"
|
|
1662
|
+
}
|
|
1663
|
+
]
|
|
1664
|
+
},
|
|
1665
|
+
{
|
|
1666
|
+
id: "documents",
|
|
1667
|
+
name: "Reading PDFs and scanned documents",
|
|
1668
|
+
jargon: "Document parsing (layout analysis, OCR, table extraction)",
|
|
1669
|
+
plain: "Turns a PDF, including its tables and scanned pages, into text and tables a program can read.",
|
|
1670
|
+
typical: { task: "one 20-page report", inputTokens: 0, outputTokens: 0 },
|
|
1671
|
+
options: [
|
|
1672
|
+
{
|
|
1673
|
+
model: "llamaparse-agentic",
|
|
1674
|
+
name: "LlamaParse (agentic)",
|
|
1675
|
+
where: "api",
|
|
1676
|
+
provider: "LlamaIndex",
|
|
1677
|
+
status: "in-use",
|
|
1678
|
+
result: "Read 24 of 24 values right on two servicer reports.",
|
|
1679
|
+
evidence: "engines/data-factory-api/scripts/eval_document_parser.py"
|
|
1680
|
+
},
|
|
1681
|
+
{
|
|
1682
|
+
model: "docling",
|
|
1683
|
+
name: "Docling",
|
|
1684
|
+
where: "local",
|
|
1685
|
+
provider: "IBM (open source)",
|
|
1686
|
+
status: "measured",
|
|
1687
|
+
result: "Read 17 of 24 right, and none wrong, on the same reports.",
|
|
1688
|
+
evidence: "engines/data-factory-api/scripts/eval_document_parser.py"
|
|
1689
|
+
}
|
|
1690
|
+
]
|
|
1691
|
+
}
|
|
1692
|
+
];
|
|
1693
|
+
var MODEL_GLOSSARY = [
|
|
1694
|
+
{ 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." },
|
|
1695
|
+
{ term: "Local", plain: "Runs on your own computer. Free per use, private, and needs enough memory to hold the model." },
|
|
1696
|
+
{ term: "API (hosted)", plain: "Runs on a company's servers. You send it a request over the internet and pay per use." },
|
|
1697
|
+
{ term: "Token", plain: "The unit models count in, roughly three quarters of a word. Prices are per million tokens." },
|
|
1698
|
+
{ term: "Input and output tokens", plain: "What you send (the question, the document) and what comes back (the answer). Output usually costs more." },
|
|
1699
|
+
{ 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." },
|
|
1700
|
+
{ 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." },
|
|
1701
|
+
{ 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." },
|
|
1702
|
+
{ term: "Tool calling", plain: "A model asking the app to do something, such as open a chart, instead of only replying in words." },
|
|
1703
|
+
{ term: "Ollama", plain: "Free software that downloads and runs open models on your own computer." },
|
|
1704
|
+
{ term: "Open weights", plain: "A model whose files anyone may download and run. Every local model here is one." }
|
|
1705
|
+
];
|
|
1706
|
+
|
|
1478
1707
|
// src/ai/prompts/theme.prompt.ts
|
|
1479
1708
|
var THEME_SYSTEM_PROMPT = `
|
|
1480
1709
|
You are a Senior UI Design Engineer specializing in WCAG 2.1 Accessibility.
|
|
@@ -2409,6 +2638,9 @@ export {
|
|
|
2409
2638
|
InviteRecordSchema,
|
|
2410
2639
|
MAX_PASSWORD_LENGTH,
|
|
2411
2640
|
MIN_PASSWORD_LENGTH,
|
|
2641
|
+
MODEL_GLOSSARY,
|
|
2642
|
+
MODEL_MATRIX,
|
|
2643
|
+
MODEL_MATRIX_REVIEWED,
|
|
2412
2644
|
MountHolesSchema,
|
|
2413
2645
|
NewAccessTokenSchema,
|
|
2414
2646
|
ORIGINAL_MAX_BYTES,
|