@dudko.dev/agent-web-ui 0.0.0 → 0.0.1
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/LICENSE +21 -0
- package/README.md +251 -5
- package/dist/canvas.cjs +266 -0
- package/dist/canvas.cjs.map +1 -0
- package/dist/canvas.d.cts +105 -0
- package/dist/canvas.d.ts +105 -0
- package/dist/canvas.js +200 -0
- package/dist/canvas.js.map +1 -0
- package/dist/chunk-4EHUITGU.js +342 -0
- package/dist/chunk-4EHUITGU.js.map +1 -0
- package/dist/chunk-7O64ZI6Z.js +125 -0
- package/dist/chunk-7O64ZI6Z.js.map +1 -0
- package/dist/chunk-A55Q377T.js +342 -0
- package/dist/chunk-A55Q377T.js.map +1 -0
- package/dist/chunk-EL2YCROY.js +127 -0
- package/dist/chunk-EL2YCROY.js.map +1 -0
- package/dist/chunk-GB7RZJMG.js +98 -0
- package/dist/chunk-GB7RZJMG.js.map +1 -0
- package/dist/chunk-KZQB35LS.js +22 -0
- package/dist/chunk-KZQB35LS.js.map +1 -0
- package/dist/chunk-P2F2P3JC.js +400 -0
- package/dist/chunk-P2F2P3JC.js.map +1 -0
- package/dist/chunk-TPK25QGK.js +342 -0
- package/dist/chunk-TPK25QGK.js.map +1 -0
- package/dist/en-CcNUz2tN.d.cts +342 -0
- package/dist/en-CcNUz2tN.d.ts +342 -0
- package/dist/index.cjs +4143 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +919 -0
- package/dist/index.d.ts +919 -0
- package/dist/index.js +3771 -0
- package/dist/index.js.map +1 -0
- package/dist/labels-B5xpIGf_.d.cts +25 -0
- package/dist/labels-B5xpIGf_.d.ts +25 -0
- package/dist/labels-D5BrHct4.d.cts +1208 -0
- package/dist/labels-UuWI7wPo.d.ts +1208 -0
- package/dist/locales/be.cjs +794 -0
- package/dist/locales/be.cjs.map +1 -0
- package/dist/locales/be.d.cts +14 -0
- package/dist/locales/be.d.ts +14 -0
- package/dist/locales/be.js +374 -0
- package/dist/locales/be.js.map +1 -0
- package/dist/locales/bg.cjs +747 -0
- package/dist/locales/bg.cjs.map +1 -0
- package/dist/locales/bg.d.cts +14 -0
- package/dist/locales/bg.d.ts +14 -0
- package/dist/locales/bg.js +327 -0
- package/dist/locales/bg.js.map +1 -0
- package/dist/locales/ca.cjs +773 -0
- package/dist/locales/ca.cjs.map +1 -0
- package/dist/locales/ca.d.cts +14 -0
- package/dist/locales/ca.d.ts +14 -0
- package/dist/locales/ca.js +353 -0
- package/dist/locales/ca.js.map +1 -0
- package/dist/locales/cs.cjs +794 -0
- package/dist/locales/cs.cjs.map +1 -0
- package/dist/locales/cs.d.cts +14 -0
- package/dist/locales/cs.d.ts +14 -0
- package/dist/locales/cs.js +374 -0
- package/dist/locales/cs.js.map +1 -0
- package/dist/locales/da.cjs +747 -0
- package/dist/locales/da.cjs.map +1 -0
- package/dist/locales/da.d.cts +14 -0
- package/dist/locales/da.d.ts +14 -0
- package/dist/locales/da.js +327 -0
- package/dist/locales/da.js.map +1 -0
- package/dist/locales/de.cjs +756 -0
- package/dist/locales/de.cjs.map +1 -0
- package/dist/locales/de.d.cts +14 -0
- package/dist/locales/de.d.ts +14 -0
- package/dist/locales/de.js +336 -0
- package/dist/locales/de.js.map +1 -0
- package/dist/locales/el.cjs +756 -0
- package/dist/locales/el.cjs.map +1 -0
- package/dist/locales/el.d.cts +14 -0
- package/dist/locales/el.d.ts +14 -0
- package/dist/locales/el.js +336 -0
- package/dist/locales/el.js.map +1 -0
- package/dist/locales/en.cjs +753 -0
- package/dist/locales/en.cjs.map +1 -0
- package/dist/locales/en.d.cts +10 -0
- package/dist/locales/en.d.ts +10 -0
- package/dist/locales/en.js +333 -0
- package/dist/locales/en.js.map +1 -0
- package/dist/locales/es-419.cjs +778 -0
- package/dist/locales/es-419.cjs.map +1 -0
- package/dist/locales/es-419.d.cts +16 -0
- package/dist/locales/es-419.d.ts +16 -0
- package/dist/locales/es-419.js +23 -0
- package/dist/locales/es-419.js.map +1 -0
- package/dist/locales/es.cjs +769 -0
- package/dist/locales/es.cjs.map +1 -0
- package/dist/locales/es.d.cts +14 -0
- package/dist/locales/es.d.ts +14 -0
- package/dist/locales/es.js +14 -0
- package/dist/locales/es.js.map +1 -0
- package/dist/locales/fi.cjs +753 -0
- package/dist/locales/fi.cjs.map +1 -0
- package/dist/locales/fi.d.cts +14 -0
- package/dist/locales/fi.d.ts +14 -0
- package/dist/locales/fi.js +333 -0
- package/dist/locales/fi.js.map +1 -0
- package/dist/locales/fr-CA.cjs +777 -0
- package/dist/locales/fr-CA.cjs.map +1 -0
- package/dist/locales/fr-CA.d.cts +17 -0
- package/dist/locales/fr-CA.d.ts +17 -0
- package/dist/locales/fr-CA.js +22 -0
- package/dist/locales/fr-CA.js.map +1 -0
- package/dist/locales/fr.cjs +769 -0
- package/dist/locales/fr.cjs.map +1 -0
- package/dist/locales/fr.d.cts +14 -0
- package/dist/locales/fr.d.ts +14 -0
- package/dist/locales/fr.js +14 -0
- package/dist/locales/fr.js.map +1 -0
- package/dist/locales/gn.cjs +750 -0
- package/dist/locales/gn.cjs.map +1 -0
- package/dist/locales/gn.d.cts +16 -0
- package/dist/locales/gn.d.ts +16 -0
- package/dist/locales/gn.js +330 -0
- package/dist/locales/gn.js.map +1 -0
- package/dist/locales/hr.cjs +769 -0
- package/dist/locales/hr.cjs.map +1 -0
- package/dist/locales/hr.d.cts +14 -0
- package/dist/locales/hr.d.ts +14 -0
- package/dist/locales/hr.js +349 -0
- package/dist/locales/hr.js.map +1 -0
- package/dist/locales/ht.cjs +750 -0
- package/dist/locales/ht.cjs.map +1 -0
- package/dist/locales/ht.d.cts +16 -0
- package/dist/locales/ht.d.ts +16 -0
- package/dist/locales/ht.js +330 -0
- package/dist/locales/ht.js.map +1 -0
- package/dist/locales/hu.cjs +753 -0
- package/dist/locales/hu.cjs.map +1 -0
- package/dist/locales/hu.d.cts +14 -0
- package/dist/locales/hu.d.ts +14 -0
- package/dist/locales/hu.js +333 -0
- package/dist/locales/hu.js.map +1 -0
- package/dist/locales/index.cjs +537 -0
- package/dist/locales/index.cjs.map +1 -0
- package/dist/locales/index.d.cts +38 -0
- package/dist/locales/index.d.ts +38 -0
- package/dist/locales/index.js +105 -0
- package/dist/locales/index.js.map +1 -0
- package/dist/locales/it.cjs +777 -0
- package/dist/locales/it.cjs.map +1 -0
- package/dist/locales/it.d.cts +14 -0
- package/dist/locales/it.d.ts +14 -0
- package/dist/locales/it.js +357 -0
- package/dist/locales/it.js.map +1 -0
- package/dist/locales/nb.cjs +747 -0
- package/dist/locales/nb.cjs.map +1 -0
- package/dist/locales/nb.d.cts +14 -0
- package/dist/locales/nb.d.ts +14 -0
- package/dist/locales/nb.js +327 -0
- package/dist/locales/nb.js.map +1 -0
- package/dist/locales/nl.cjs +753 -0
- package/dist/locales/nl.cjs.map +1 -0
- package/dist/locales/nl.d.cts +14 -0
- package/dist/locales/nl.d.ts +14 -0
- package/dist/locales/nl.js +333 -0
- package/dist/locales/nl.js.map +1 -0
- package/dist/locales/pl.cjs +794 -0
- package/dist/locales/pl.cjs.map +1 -0
- package/dist/locales/pl.d.cts +14 -0
- package/dist/locales/pl.d.ts +14 -0
- package/dist/locales/pl.js +374 -0
- package/dist/locales/pl.js.map +1 -0
- package/dist/locales/pt-BR.cjs +773 -0
- package/dist/locales/pt-BR.cjs.map +1 -0
- package/dist/locales/pt-BR.d.cts +14 -0
- package/dist/locales/pt-BR.d.ts +14 -0
- package/dist/locales/pt-BR.js +353 -0
- package/dist/locales/pt-BR.js.map +1 -0
- package/dist/locales/pt.cjs +777 -0
- package/dist/locales/pt.cjs.map +1 -0
- package/dist/locales/pt.d.cts +14 -0
- package/dist/locales/pt.d.ts +14 -0
- package/dist/locales/pt.js +357 -0
- package/dist/locales/pt.js.map +1 -0
- package/dist/locales/qu.cjs +756 -0
- package/dist/locales/qu.cjs.map +1 -0
- package/dist/locales/qu.d.cts +16 -0
- package/dist/locales/qu.d.ts +16 -0
- package/dist/locales/qu.js +336 -0
- package/dist/locales/qu.js.map +1 -0
- package/dist/locales/ro.cjs +769 -0
- package/dist/locales/ro.cjs.map +1 -0
- package/dist/locales/ro.d.cts +14 -0
- package/dist/locales/ro.d.ts +14 -0
- package/dist/locales/ro.js +349 -0
- package/dist/locales/ro.js.map +1 -0
- package/dist/locales/ru.cjs +789 -0
- package/dist/locales/ru.cjs.map +1 -0
- package/dist/locales/ru.d.cts +14 -0
- package/dist/locales/ru.d.ts +14 -0
- package/dist/locales/ru.js +369 -0
- package/dist/locales/ru.js.map +1 -0
- package/dist/locales/sk.cjs +794 -0
- package/dist/locales/sk.cjs.map +1 -0
- package/dist/locales/sk.d.cts +14 -0
- package/dist/locales/sk.d.ts +14 -0
- package/dist/locales/sk.js +374 -0
- package/dist/locales/sk.js.map +1 -0
- package/dist/locales/sq.cjs +753 -0
- package/dist/locales/sq.cjs.map +1 -0
- package/dist/locales/sq.d.cts +14 -0
- package/dist/locales/sq.d.ts +14 -0
- package/dist/locales/sq.js +333 -0
- package/dist/locales/sq.js.map +1 -0
- package/dist/locales/sr-Latn.cjs +841 -0
- package/dist/locales/sr-Latn.cjs.map +1 -0
- package/dist/locales/sr-Latn.d.cts +17 -0
- package/dist/locales/sr-Latn.d.ts +17 -0
- package/dist/locales/sr-Latn.js +86 -0
- package/dist/locales/sr-Latn.js.map +1 -0
- package/dist/locales/sr.cjs +769 -0
- package/dist/locales/sr.cjs.map +1 -0
- package/dist/locales/sr.d.cts +14 -0
- package/dist/locales/sr.d.ts +14 -0
- package/dist/locales/sr.js +14 -0
- package/dist/locales/sr.js.map +1 -0
- package/dist/locales/sv.cjs +753 -0
- package/dist/locales/sv.cjs.map +1 -0
- package/dist/locales/sv.d.cts +14 -0
- package/dist/locales/sv.d.ts +14 -0
- package/dist/locales/sv.js +333 -0
- package/dist/locales/sv.js.map +1 -0
- package/dist/locales/tr.cjs +750 -0
- package/dist/locales/tr.cjs.map +1 -0
- package/dist/locales/tr.d.cts +14 -0
- package/dist/locales/tr.d.ts +14 -0
- package/dist/locales/tr.js +330 -0
- package/dist/locales/tr.js.map +1 -0
- package/dist/locales/uk.cjs +794 -0
- package/dist/locales/uk.cjs.map +1 -0
- package/dist/locales/uk.d.cts +14 -0
- package/dist/locales/uk.d.ts +14 -0
- package/dist/locales/uk.js +374 -0
- package/dist/locales/uk.js.map +1 -0
- package/dist/markdown.cjs +620 -0
- package/dist/markdown.cjs.map +1 -0
- package/dist/markdown.d.cts +153 -0
- package/dist/markdown.d.ts +153 -0
- package/dist/markdown.js +573 -0
- package/dist/markdown.js.map +1 -0
- package/dist/mcp-app-entry-BA-Ca39z.d.ts +1480 -0
- package/dist/mcp-app-entry-tybABaHg.d.cts +1480 -0
- package/dist/mcp-app-policy-DXKQ2jjM.d.cts +73 -0
- package/dist/mcp-app-policy-DXKQ2jjM.d.ts +73 -0
- package/dist/mcp-app-sandbox.cjs +323 -0
- package/dist/mcp-app-sandbox.cjs.map +1 -0
- package/dist/mcp-app-sandbox.d.cts +70 -0
- package/dist/mcp-app-sandbox.d.ts +70 -0
- package/dist/mcp-app-sandbox.js +209 -0
- package/dist/mcp-app-sandbox.js.map +1 -0
- package/dist/mcp-app.cjs +980 -0
- package/dist/mcp-app.cjs.map +1 -0
- package/dist/mcp-app.d.cts +3 -0
- package/dist/mcp-app.d.ts +3 -0
- package/dist/mcp-app.js +816 -0
- package/dist/mcp-app.js.map +1 -0
- package/dist/pipeline.cjs +845 -0
- package/dist/pipeline.cjs.map +1 -0
- package/dist/pipeline.css +1407 -0
- package/dist/pipeline.d.cts +348 -0
- package/dist/pipeline.d.ts +348 -0
- package/dist/pipeline.js +778 -0
- package/dist/pipeline.js.map +1 -0
- package/dist/styles.css +4109 -0
- package/dist/types-BmvgYUzF.d.cts +19 -0
- package/dist/types-Cr5gmUts.d.ts +19 -0
- package/package.json +155 -8
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
// src/mcp-app-policy.ts
|
|
2
|
+
var MCP_APP_SANDBOX_PROXY_READY = "ui/notifications/sandbox-proxy-ready";
|
|
3
|
+
var MCP_APP_SANDBOX_RESOURCE_READY = "ui/notifications/sandbox-resource-ready";
|
|
4
|
+
var isMcpAppSandboxMessage = (data) => typeof data === "object" && data !== null && typeof data.method === "string" && data.method.startsWith("ui/notifications/sandbox-");
|
|
5
|
+
var MCP_APP_SCHEME_PARAM = "scheme";
|
|
6
|
+
var mcpAppColorScheme = (value) => value === "light" || value === "dark" ? value : void 0;
|
|
7
|
+
var mcpAppPolicy = ({ connect, resources }) => {
|
|
8
|
+
const from = resources.length > 0 ? ` ${resources.join(" ")}` : "";
|
|
9
|
+
return [
|
|
10
|
+
"default-src 'none'",
|
|
11
|
+
`script-src 'unsafe-inline' 'wasm-unsafe-eval'${from}`,
|
|
12
|
+
`style-src 'unsafe-inline'${from}`,
|
|
13
|
+
`img-src data: blob:${from}`,
|
|
14
|
+
`font-src data:${from}`,
|
|
15
|
+
`media-src data: blob:${from}`,
|
|
16
|
+
connect.length > 0 ? `connect-src ${connect.join(" ")}` : "connect-src 'none'",
|
|
17
|
+
"frame-src 'none'",
|
|
18
|
+
"child-src 'none'",
|
|
19
|
+
"worker-src 'none'",
|
|
20
|
+
"object-src 'none'",
|
|
21
|
+
"form-action 'none'",
|
|
22
|
+
"base-uri 'none'",
|
|
23
|
+
"webrtc 'block'"
|
|
24
|
+
].join("; ");
|
|
25
|
+
};
|
|
26
|
+
var LABEL = "[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?";
|
|
27
|
+
var HOST = `(?:\\*\\.)?${LABEL}(?:\\.${LABEL})*`;
|
|
28
|
+
var PORT = "(?::\\d{1,5})?";
|
|
29
|
+
var SECURE_ORIGIN = new RegExp(`^(?:https|wss)://${HOST}${PORT}$`);
|
|
30
|
+
var LOOPBACK_ORIGIN = new RegExp(`^(?:http|ws)://(?:localhost|127\\.0\\.0\\.1|\\[::1\\])${PORT}$`);
|
|
31
|
+
var mcpAppPolicyOrigin = (entry) => {
|
|
32
|
+
if (typeof entry !== "string" || entry.length > 300) return void 0;
|
|
33
|
+
const value = entry.trim().toLowerCase().replace(/\/$/, "");
|
|
34
|
+
if (SECURE_ORIGIN.test(value)) {
|
|
35
|
+
const host = value.replace(/^[a-z]+:\/\//, "").replace(/:\d+$/, "");
|
|
36
|
+
if (host.startsWith("*.") && !host.slice(2).includes(".")) return void 0;
|
|
37
|
+
return value;
|
|
38
|
+
}
|
|
39
|
+
return LOOPBACK_ORIGIN.test(value) ? value : void 0;
|
|
40
|
+
};
|
|
41
|
+
var MCP_APP_POLICY_MAX_ORIGINS = 32;
|
|
42
|
+
var MCP_APP_POLICY_TOKEN_MAX_CHARS = 4096;
|
|
43
|
+
var B64URL = /^[A-Za-z0-9_-]+$/;
|
|
44
|
+
var mcpAppPolicyToken = ({
|
|
45
|
+
connect,
|
|
46
|
+
resources
|
|
47
|
+
}) => {
|
|
48
|
+
const json = JSON.stringify({ c: connect, r: resources });
|
|
49
|
+
if (/[^\x20-\x7e]/.test(json)) return void 0;
|
|
50
|
+
const token = btoa(json).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
|
|
51
|
+
return token.length <= MCP_APP_POLICY_TOKEN_MAX_CHARS ? token : void 0;
|
|
52
|
+
};
|
|
53
|
+
var isObject = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
|
|
54
|
+
var originList = (value) => {
|
|
55
|
+
if (!Array.isArray(value) || value.length > MCP_APP_POLICY_MAX_ORIGINS) return void 0;
|
|
56
|
+
const out = [];
|
|
57
|
+
for (const entry of value) {
|
|
58
|
+
if (typeof entry !== "string" || mcpAppPolicyOrigin(entry) !== entry || out.includes(entry)) {
|
|
59
|
+
return void 0;
|
|
60
|
+
}
|
|
61
|
+
out.push(entry);
|
|
62
|
+
}
|
|
63
|
+
return out;
|
|
64
|
+
};
|
|
65
|
+
var mcpAppPolicyOfToken = (token) => {
|
|
66
|
+
if (typeof token !== "string" || token.length === 0 || token.length > MCP_APP_POLICY_TOKEN_MAX_CHARS || !B64URL.test(token)) {
|
|
67
|
+
return void 0;
|
|
68
|
+
}
|
|
69
|
+
let parsed;
|
|
70
|
+
try {
|
|
71
|
+
parsed = JSON.parse(atob(token.replace(/-/g, "+").replace(/_/g, "/")));
|
|
72
|
+
} catch {
|
|
73
|
+
return void 0;
|
|
74
|
+
}
|
|
75
|
+
if (!isObject(parsed)) return void 0;
|
|
76
|
+
const keys = Object.keys(parsed);
|
|
77
|
+
if (keys.length !== 2 || !keys.includes("c") || !keys.includes("r")) return void 0;
|
|
78
|
+
const connect = originList(parsed.c);
|
|
79
|
+
const resources = originList(parsed.r);
|
|
80
|
+
if (!connect || !resources) return void 0;
|
|
81
|
+
const policy = { connect, resources };
|
|
82
|
+
return mcpAppPolicyToken(policy) === token ? policy : void 0;
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
export {
|
|
86
|
+
MCP_APP_SANDBOX_PROXY_READY,
|
|
87
|
+
MCP_APP_SANDBOX_RESOURCE_READY,
|
|
88
|
+
isMcpAppSandboxMessage,
|
|
89
|
+
MCP_APP_SCHEME_PARAM,
|
|
90
|
+
mcpAppColorScheme,
|
|
91
|
+
mcpAppPolicy,
|
|
92
|
+
mcpAppPolicyOrigin,
|
|
93
|
+
MCP_APP_POLICY_MAX_ORIGINS,
|
|
94
|
+
MCP_APP_POLICY_TOKEN_MAX_CHARS,
|
|
95
|
+
mcpAppPolicyToken,
|
|
96
|
+
mcpAppPolicyOfToken
|
|
97
|
+
};
|
|
98
|
+
//# sourceMappingURL=chunk-GB7RZJMG.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/mcp-app-policy.ts"],"sourcesContent":["/**\n * MCP Apps: what the host (the page, `mcp-app.ts`) and the sandbox proxy (a page on ANOTHER\n * origin, `mcp-app-sandbox.ts`) must agree on - the app's Content-Security-Policy, the policy as a\n * path segment of the proxy's URL, and the names of the sandbox messages. Pure code with NO\n * imports at all: the proxy's server bundles it without React or the core (a Worker), so the\n * origin rule below is a copy of the core's `mcpAppOrigin`, and `tests/apps-sandbox.test.ts`\n * holds the two to the same answers.\n */\n\n/** The proxy tells the host it can take the app (Sandbox → Host; content-free). */\nexport const MCP_APP_SANDBOX_PROXY_READY = 'ui/notifications/sandbox-proxy-ready'\n/** The host hands the proxy the app's HTML (Host → Sandbox), once. */\nexport const MCP_APP_SANDBOX_RESOURCE_READY = 'ui/notifications/sandbox-resource-ready'\n\n/** The specification reserves these between a host and its proxy: never relayed to or from an app. */\nexport const isMcpAppSandboxMessage = (data: unknown): boolean =>\n typeof data === 'object' &&\n data !== null &&\n typeof (data as { method?: unknown }).method === 'string' &&\n (data as { method: string }).method.startsWith('ui/notifications/sandbox-')\n\n/**\n * The colour scheme of an app's frame: the theme the app is told when its frame is drawn. Every\n * document between the page and the app declares it (the frame element, the shell, the sandbox\n * page and its frame), because a browser paints an OPAQUE canvas - the canvas colour of the\n * embedded document's own scheme - behind a document whose scheme differs from its frame\n * element's: an app that is dark with a transparent body was drawn on white.\n */\nexport type McpAppColorScheme = 'light' | 'dark'\n\n/** The query parameter of the sandbox page that carries the scheme (`?scheme=dark`). */\nexport const MCP_APP_SCHEME_PARAM = 'scheme'\n\n/** `light` or `dark` exactly; anything else is no scheme (nothing is declared). */\nexport const mcpAppColorScheme = (value: unknown): McpAppColorScheme | undefined =>\n value === 'light' || value === 'dark' ? value : undefined\n\n/** The origins an app's policy grants, each already an origin (`mcpAppPolicyOrigin`). */\nexport interface McpAppPolicyOrigins {\n /** `fetch` / XHR / WebSocket (`connect-src`). */\n connect: string[]\n /** Scripts, styles, images, fonts, media. */\n resources: string[]\n}\n\n/**\n * The policy of an app's document: scripts and styles inline, `data:` / `blob:` media, and the\n * network ONLY where the resource declared it. Nested frames, workers, plugins, forms and `<base>`\n * are refused whatever was declared (a frame the app may embed would also be a place it may\n * navigate itself to). The lists must already be checked origins: nothing here re-checks them.\n *\n * `'wasm-unsafe-eval'` lets the app compile WebAssembly (a tracer, a codec, a parser), which the\n * specification's default policy leaves out and a server cannot ask for (it declares origins, not\n * keywords). It adds no reach: a module only calls what the app's own script hands it, and the\n * network stays `connect-src`. `eval`, `new Function` and string timers stay refused - that is\n * `'unsafe-eval'`, which is never granted.\n */\nexport const mcpAppPolicy = ({ connect, resources }: McpAppPolicyOrigins): string => {\n const from = resources.length > 0 ? ` ${resources.join(' ')}` : ''\n return [\n \"default-src 'none'\",\n `script-src 'unsafe-inline' 'wasm-unsafe-eval'${from}`,\n `style-src 'unsafe-inline'${from}`,\n `img-src data: blob:${from}`,\n `font-src data:${from}`,\n `media-src data: blob:${from}`,\n connect.length > 0 ? `connect-src ${connect.join(' ')}` : \"connect-src 'none'\",\n \"frame-src 'none'\",\n \"child-src 'none'\",\n \"worker-src 'none'\",\n \"object-src 'none'\",\n \"form-action 'none'\",\n \"base-uri 'none'\",\n \"webrtc 'block'\",\n ].join('; ')\n}\n\n// ── The origin rule: a COPY of the core's `mcpAppOrigin` (src/mcp/apps.ts) ──────────────────\n\nconst LABEL = '[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?'\nconst HOST = `(?:\\\\*\\\\.)?${LABEL}(?:\\\\.${LABEL})*`\nconst PORT = '(?::\\\\d{1,5})?'\nconst SECURE_ORIGIN = new RegExp(`^(?:https|wss)://${HOST}${PORT}$`)\nconst LOOPBACK_ORIGIN = new RegExp(`^(?:http|ws)://(?:localhost|127\\\\.0\\\\.0\\\\.1|\\\\[::1\\\\])${PORT}$`)\n\n/**\n * One declared CSP entry as a source expression a policy may carry, or `undefined`: only an\n * origin (`https://` / `wss://`, a `*.` wildcard over at least two labels, or `http://` /\n * `ws://` on loopback). The same answers as the core's `mcpAppOrigin`, for the proxy's server.\n */\nexport const mcpAppPolicyOrigin = (entry: unknown): string | undefined => {\n if (typeof entry !== 'string' || entry.length > 300) return undefined\n const value = entry.trim().toLowerCase().replace(/\\/$/, '')\n if (SECURE_ORIGIN.test(value)) {\n const host = value.replace(/^[a-z]+:\\/\\//, '').replace(/:\\d+$/, '')\n if (host.startsWith('*.') && !host.slice(2).includes('.')) return undefined\n return value\n }\n return LOOPBACK_ORIGIN.test(value) ? value : undefined\n}\n\n// ── The policy in the proxy's URL ────────────────────────────────────────────────────────────\n\n/** At most this many origins per list (the core's `MCP_APP_MAX_DOMAINS`). */\nexport const MCP_APP_POLICY_MAX_ORIGINS = 32\n/** A policy token longer than this is not put in a URL: the app runs without its own origin. */\nexport const MCP_APP_POLICY_TOKEN_MAX_CHARS = 4096\n\nconst B64URL = /^[A-Za-z0-9_-]+$/\n\n/**\n * The policy as one path segment (base64url of `{\"c\":[…],\"r\":[…]}`), or `undefined` when it does\n * not fit. It is in the PATH, not the query, because a `frame-src` source expression matches a\n * path exactly and ignores the query: the host pins the proxy's frame to this one URL, so nothing\n * inside the frame can load the proxy page with a policy of its choosing.\n */\nexport const mcpAppPolicyToken = ({\n connect,\n resources,\n}: McpAppPolicyOrigins): string | undefined => {\n const json = JSON.stringify({ c: connect, r: resources })\n // Origins are ASCII; anything else is not a list of checked origins.\n if (/[^\\x20-\\x7e]/.test(json)) return undefined\n const token = btoa(json).replace(/\\+/g, '-').replace(/\\//g, '_').replace(/=+$/, '')\n return token.length <= MCP_APP_POLICY_TOKEN_MAX_CHARS ? token : undefined\n}\n\nconst isObject = (value: unknown): value is Record<string, unknown> =>\n typeof value === 'object' && value !== null && !Array.isArray(value)\n\nconst originList = (value: unknown): string[] | undefined => {\n if (!Array.isArray(value) || value.length > MCP_APP_POLICY_MAX_ORIGINS) return undefined\n const out: string[] = []\n for (const entry of value) {\n // Exactly an origin as the host writes it: checked, canonical, once.\n if (typeof entry !== 'string' || mcpAppPolicyOrigin(entry) !== entry || out.includes(entry)) {\n return undefined\n }\n out.push(entry)\n }\n return out\n}\n\n/**\n * The policy a token stands for, or `undefined` for anything that is not exactly what\n * `mcpAppPolicyToken` writes: base64url of an object with the two lists and nothing else, every\n * entry an origin by the rule above, no more than `MCP_APP_POLICY_MAX_ORIGINS` each, the\n * canonical encoding (one URL per policy).\n */\nexport const mcpAppPolicyOfToken = (token: unknown): McpAppPolicyOrigins | undefined => {\n if (\n typeof token !== 'string' ||\n token.length === 0 ||\n token.length > MCP_APP_POLICY_TOKEN_MAX_CHARS ||\n !B64URL.test(token)\n ) {\n return undefined\n }\n let parsed: unknown\n try {\n parsed = JSON.parse(atob(token.replace(/-/g, '+').replace(/_/g, '/')))\n } catch {\n return undefined\n }\n if (!isObject(parsed)) return undefined\n const keys = Object.keys(parsed)\n if (keys.length !== 2 || !keys.includes('c') || !keys.includes('r')) return undefined\n const connect = originList(parsed.c)\n const resources = originList(parsed.r)\n if (!connect || !resources) return undefined\n const policy = { connect, resources }\n return mcpAppPolicyToken(policy) === token ? policy : undefined\n}\n"],"mappings":";AAUO,IAAM,8BAA8B;AAEpC,IAAM,iCAAiC;AAGvC,IAAM,yBAAyB,CAAC,SACrC,OAAO,SAAS,YAChB,SAAS,QACT,OAAQ,KAA8B,WAAW,YAChD,KAA4B,OAAO,WAAW,2BAA2B;AAYrE,IAAM,uBAAuB;AAG7B,IAAM,oBAAoB,CAAC,UAChC,UAAU,WAAW,UAAU,SAAS,QAAQ;AAsB3C,IAAM,eAAe,CAAC,EAAE,SAAS,UAAU,MAAmC;AACnF,QAAM,OAAO,UAAU,SAAS,IAAI,IAAI,UAAU,KAAK,GAAG,CAAC,KAAK;AAChE,SAAO;AAAA,IACL;AAAA,IACA,gDAAgD,IAAI;AAAA,IACpD,4BAA4B,IAAI;AAAA,IAChC,sBAAsB,IAAI;AAAA,IAC1B,iBAAiB,IAAI;AAAA,IACrB,wBAAwB,IAAI;AAAA,IAC5B,QAAQ,SAAS,IAAI,eAAe,QAAQ,KAAK,GAAG,CAAC,KAAK;AAAA,IAC1D;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF,EAAE,KAAK,IAAI;AACb;AAIA,IAAM,QAAQ;AACd,IAAM,OAAO,cAAc,KAAK,SAAS,KAAK;AAC9C,IAAM,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SAAS,IAAI,SAAS,KAAK,GAAG;AAC3F,aAAO;AAAA,IACT;AACA,QAAI,KAAK,KAAK;AAAA,EAChB;AACA,SAAO;AACT;AAQO,IAAM,sBAAsB,CAAC,UAAoD;AACtF,MACE,OAAO,UAAU,YACjB,MAAM,WAAW,KACjB,MAAM,SAAS,kCACf,CAAC,OAAO,KAAK,KAAK,GAClB;AACA,WAAO;AAAA,EACT;AACA,MAAI;AACJ,MAAI;AACF,aAAS,KAAK,MAAM,KAAK,MAAM,QAAQ,MAAM,GAAG,EAAE,QAAQ,MAAM,GAAG,CAAC,CAAC;AAAA,EACvE,QAAQ;AACN,WAAO;AAAA,EACT;AACA,MAAI,CAAC,SAAS,MAAM,EAAG,QAAO;AAC9B,QAAM,OAAO,OAAO,KAAK,MAAM;AAC/B,MAAI,KAAK,WAAW,KAAK,CAAC,KAAK,SAAS,GAAG,KAAK,CAAC,KAAK,SAAS,GAAG,EAAG,QAAO;AAC5E,QAAM,UAAU,WAAW,OAAO,CAAC;AACnC,QAAM,YAAY,WAAW,OAAO,CAAC;AACrC,MAAI,CAAC,WAAW,CAAC,UAAW,QAAO;AACnC,QAAM,SAAS,EAAE,SAAS,UAAU;AACpC,SAAO,kBAAkB,MAAM,MAAM,QAAQ,SAAS;AACxD;","names":[]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// src/canvas/labels.ts
|
|
2
|
+
var defaultCanvasLabels = {
|
|
3
|
+
canvas: "Canvas",
|
|
4
|
+
help: "Tab moves between nodes and their connections. Arrow keys move the selected node, Enter opens it, Delete removes it, C starts a connection, Escape clears the selection. On the canvas itself the arrow keys pan, plus and minus zoom, 0 fits everything.",
|
|
5
|
+
node: "node",
|
|
6
|
+
edge: (from, to, description) => `Connection from ${from} to ${to}${description ? `: ${description}` : ""}`,
|
|
7
|
+
port: (node, port) => `Connect ${node}${port ? ` (${port})` : ""} to another node`,
|
|
8
|
+
connectsTo: (names) => `Connects to: ${names}.`,
|
|
9
|
+
receivesFrom: (names) => `Receives from: ${names}.`,
|
|
10
|
+
zoomIn: "Zoom in",
|
|
11
|
+
zoomOut: "Zoom out",
|
|
12
|
+
fit: "Fit to view",
|
|
13
|
+
zoomLevel: (percent) => `${percent}%`,
|
|
14
|
+
connectHint: (from) => `Pick the node to connect ${from} to`,
|
|
15
|
+
cancel: "Cancel",
|
|
16
|
+
connected: (from, to) => `Connected ${from} to ${to}`
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export {
|
|
20
|
+
defaultCanvasLabels
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=chunk-KZQB35LS.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/canvas/labels.ts"],"sourcesContent":["// The canvas's strings: what it shows and says to a screen reader. Generic - nothing of agents.\n\n/** Every string the canvas shows or says. */\nexport interface CanvasLabels {\n /** The canvas's own name for a screen reader. */\n canvas: string\n /** How to use it with a keyboard; read once, when the canvas is focused. */\n help: string\n /** `aria-roledescription` of a node. */\n node: string\n edge: (from: string, to: string, description?: string) => string\n port: (node: string, port?: string) => string\n connectsTo: (names: string) => string\n receivesFrom: (names: string) => string\n zoomIn: string\n zoomOut: string\n fit: string\n zoomLevel: (percent: number) => string\n /** Shown (and announced) while a connection is being made without dragging. */\n connectHint: (from: string) => string\n cancel: string\n connected: (from: string, to: string) => string\n}\n\nexport const defaultCanvasLabels: CanvasLabels = {\n canvas: 'Canvas',\n help: 'Tab moves between nodes and their connections. Arrow keys move the selected node, Enter opens it, Delete removes it, C starts a connection, Escape clears the selection. On the canvas itself the arrow keys pan, plus and minus zoom, 0 fits everything.',\n node: 'node',\n edge: (from, to, description) =>\n `Connection from ${from} to ${to}${description ? `: ${description}` : ''}`,\n port: (node, port) => `Connect ${node}${port ? ` (${port})` : ''} to another node`,\n connectsTo: (names) => `Connects to: ${names}.`,\n receivesFrom: (names) => `Receives from: ${names}.`,\n zoomIn: 'Zoom in',\n zoomOut: 'Zoom out',\n fit: 'Fit to view',\n zoomLevel: (percent) => `${percent}%`,\n connectHint: (from) => `Pick the node to connect ${from} to`,\n cancel: 'Cancel',\n connected: (from, to) => `Connected ${from} to ${to}`,\n}\n"],"mappings":";AAwBO,IAAM,sBAAoC;AAAA,EAC/C,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,MAAM;AAAA,EACN,MAAM,CAAC,MAAM,IAAI,gBACf,mBAAmB,IAAI,OAAO,EAAE,GAAG,cAAc,KAAK,WAAW,KAAK,EAAE;AAAA,EAC1E,MAAM,CAAC,MAAM,SAAS,WAAW,IAAI,GAAG,OAAO,KAAK,IAAI,MAAM,EAAE;AAAA,EAChE,YAAY,CAAC,UAAU,gBAAgB,KAAK;AAAA,EAC5C,cAAc,CAAC,UAAU,kBAAkB,KAAK;AAAA,EAChD,QAAQ;AAAA,EACR,SAAS;AAAA,EACT,KAAK;AAAA,EACL,WAAW,CAAC,YAAY,GAAG,OAAO;AAAA,EAClC,aAAa,CAAC,SAAS,4BAA4B,IAAI;AAAA,EACvD,QAAQ;AAAA,EACR,WAAW,CAAC,MAAM,OAAO,aAAa,IAAI,OAAO,EAAE;AACrD;","names":[]}
|
|
@@ -0,0 +1,400 @@
|
|
|
1
|
+
// src/locales/build.ts
|
|
2
|
+
var PLACEHOLDER = /\{(\w+)\}/g;
|
|
3
|
+
var pluralForm = (entry, count, rules) => {
|
|
4
|
+
if (typeof entry === "string") return entry;
|
|
5
|
+
const category = rules.select(count);
|
|
6
|
+
return entry[category] ?? entry.other;
|
|
7
|
+
};
|
|
8
|
+
var translatorOf = (tag, catalog) => {
|
|
9
|
+
const rules = new Intl.PluralRules(tag);
|
|
10
|
+
return (key, params) => {
|
|
11
|
+
const entry = catalog[key];
|
|
12
|
+
if (entry === void 0) throw new Error(`The ${tag} catalog has no "${key}"`);
|
|
13
|
+
const text = pluralForm(entry, Number(params?.count ?? 0), rules);
|
|
14
|
+
if (!params) return text;
|
|
15
|
+
return text.replace(PLACEHOLDER, (whole, name) => {
|
|
16
|
+
const value = params[name];
|
|
17
|
+
if (value === void 0) return whole;
|
|
18
|
+
return typeof value === "number" ? new Intl.NumberFormat(tag).format(value) : value;
|
|
19
|
+
});
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
var formatTokens = (tag, tokens) => new Intl.NumberFormat(tag, { notation: "compact", maximumFractionDigits: 1 }).format(tokens);
|
|
23
|
+
var formatBytes = (tag, bytes) => {
|
|
24
|
+
const [value, unit] = bytes < 1024 ? [bytes, "byte"] : bytes < 1024 * 1024 ? [bytes / 1024, "kilobyte"] : [bytes / 1024 / 1024, "megabyte"];
|
|
25
|
+
return new Intl.NumberFormat(tag, {
|
|
26
|
+
style: "unit",
|
|
27
|
+
unit,
|
|
28
|
+
// Bytes in full: the short form is "25 byte" in English (and "byte" in Japanese) - the long
|
|
29
|
+
// one is "25 bytes", "25 байт", "25 バイト". kB and MB stay short.
|
|
30
|
+
unitDisplay: unit === "byte" ? "long" : "short",
|
|
31
|
+
maximumFractionDigits: unit === "megabyte" ? 1 : 0
|
|
32
|
+
}).format(value);
|
|
33
|
+
};
|
|
34
|
+
var labelsFromCatalog = (tag, catalog) => {
|
|
35
|
+
const t = translatorOf(tag, catalog);
|
|
36
|
+
return {
|
|
37
|
+
status: {
|
|
38
|
+
idle: t("status.idle"),
|
|
39
|
+
initializing: t("status.initializing"),
|
|
40
|
+
ready: t("status.ready"),
|
|
41
|
+
running: t("status.running"),
|
|
42
|
+
error: t("status.error")
|
|
43
|
+
},
|
|
44
|
+
history: t("history"),
|
|
45
|
+
newChat: t("newChat"),
|
|
46
|
+
totalUsage: t("totalUsage"),
|
|
47
|
+
showHistory: t("showHistory"),
|
|
48
|
+
close: t("close"),
|
|
49
|
+
steps: (count) => t("steps", { count }),
|
|
50
|
+
toolCalls: (count) => t("toolCalls", { count }),
|
|
51
|
+
answerThoughts: t("answerThoughts"),
|
|
52
|
+
answerStopped: t("answerStopped"),
|
|
53
|
+
stepThoughts: t("stepThoughts"),
|
|
54
|
+
usageTitle: t("usageTitle"),
|
|
55
|
+
planned: t("planned"),
|
|
56
|
+
replanned: (_mode, reason) => t("replanned", { reason }),
|
|
57
|
+
placeholder: t("placeholder"),
|
|
58
|
+
placeholderBusy: t("placeholderBusy"),
|
|
59
|
+
message: t("message"),
|
|
60
|
+
commands: t("commands"),
|
|
61
|
+
commandsTitle: t("commandsTitle"),
|
|
62
|
+
send: t("send"),
|
|
63
|
+
steer: t("steer"),
|
|
64
|
+
stop: t("stop"),
|
|
65
|
+
dismiss: t("dismiss"),
|
|
66
|
+
// Voice (Settings: Voice): the mic, voice messages, the transcript, read aloud.
|
|
67
|
+
dictate: t("dictate"),
|
|
68
|
+
dictateTitle: t("dictateTitle"),
|
|
69
|
+
stopDictation: t("stopDictation"),
|
|
70
|
+
micListening: t("micListening"),
|
|
71
|
+
listening: t("listening"),
|
|
72
|
+
transcribing: t("transcribing"),
|
|
73
|
+
micDenied: t("micDenied"),
|
|
74
|
+
micMissing: t("micMissing"),
|
|
75
|
+
micBusy: t("micBusy"),
|
|
76
|
+
micUnsupported: t("micUnsupported"),
|
|
77
|
+
dictationFailed: t("dictationFailed"),
|
|
78
|
+
recordVoiceMessage: t("recordVoiceMessage"),
|
|
79
|
+
voiceMessage: t("voiceMessage"),
|
|
80
|
+
recording: (elapsed) => t("recording", { elapsed }),
|
|
81
|
+
recordingDone: t("recordingDone"),
|
|
82
|
+
recordingCancel: t("recordingCancel"),
|
|
83
|
+
recordingLimit: t("recordingLimit"),
|
|
84
|
+
audioAttachment: (name) => t("audioAttachment", { name }),
|
|
85
|
+
transcriptOf: (name) => t("transcriptOf", { name }),
|
|
86
|
+
transcriptNote: t("transcriptNote"),
|
|
87
|
+
readAloud: t("readAloud"),
|
|
88
|
+
readAloudPause: t("readAloudPause"),
|
|
89
|
+
readAloudResume: t("readAloudResume"),
|
|
90
|
+
readAloudStop: t("readAloudStop"),
|
|
91
|
+
readAloudLoading: t("readAloudLoading"),
|
|
92
|
+
readAloudCode: t("readAloudCode"),
|
|
93
|
+
readAloudFailed: t("readAloudFailed"),
|
|
94
|
+
model: t("model"),
|
|
95
|
+
toolConsent: t("toolConsent"),
|
|
96
|
+
modes: {
|
|
97
|
+
autopilot: { label: t("mode.autopilot"), hint: t("mode.autopilotHint") },
|
|
98
|
+
"ask-writes": { label: t("mode.askWrites"), hint: t("mode.askWritesHint") },
|
|
99
|
+
"ask-all": { label: t("mode.askAll"), hint: t("mode.askAllHint") },
|
|
100
|
+
"read-only": { label: t("mode.readOnly"), hint: t("mode.readOnlyHint") }
|
|
101
|
+
},
|
|
102
|
+
timerRunning: t("timerRunning"),
|
|
103
|
+
timerLast: t("timerLast"),
|
|
104
|
+
notices: {
|
|
105
|
+
compacted: (_scope, before, after) => t("compacted", {
|
|
106
|
+
before: formatTokens(tag, before),
|
|
107
|
+
after: formatTokens(tag, after)
|
|
108
|
+
})
|
|
109
|
+
},
|
|
110
|
+
commandGroups: { commands: t("group.commands"), consent: t("group.consent") },
|
|
111
|
+
commandDescriptions: {
|
|
112
|
+
compact: t("cmd.compact"),
|
|
113
|
+
new: t("cmd.new"),
|
|
114
|
+
stop: t("cmd.stop"),
|
|
115
|
+
autopilot: t("cmd.autopilot"),
|
|
116
|
+
ask: t("cmd.ask"),
|
|
117
|
+
askAll: t("cmd.askAll"),
|
|
118
|
+
readOnly: t("cmd.readOnly")
|
|
119
|
+
},
|
|
120
|
+
// ── a fact of the memory saved, changed or forgotten (the card in the answer) ──
|
|
121
|
+
memorySaved: t("memorySaved"),
|
|
122
|
+
memoryUpdated: t("memoryUpdated"),
|
|
123
|
+
memoryForgotten: t("memoryForgotten"),
|
|
124
|
+
memoryUndo: t("memoryUndo"),
|
|
125
|
+
memoryUndone: t("memoryUndone"),
|
|
126
|
+
historyEmpty: t("historyEmpty"),
|
|
127
|
+
deleteChat: t("deleteChat"),
|
|
128
|
+
messagesCount: (count) => t("messagesCount", { count }),
|
|
129
|
+
approvalLead: t("approvalLead"),
|
|
130
|
+
approve: t("approve"),
|
|
131
|
+
alwaysAllow: t("alwaysAllow"),
|
|
132
|
+
deny: t("deny"),
|
|
133
|
+
declinedReason: t("declinedReason"),
|
|
134
|
+
readOnlyTool: t("readOnlyTool"),
|
|
135
|
+
consentWaiting: t("consentWaiting"),
|
|
136
|
+
consentAllowed: t("consentAllowed"),
|
|
137
|
+
consentDenied: (reason) => reason ? t("consentDeniedReason", { reason }) : t("consentDenied"),
|
|
138
|
+
// ── an MCP server's question to the person (elicitation; forms only - URL mode is not
|
|
139
|
+
// declared, so its labels are not mounted). A helper cannot ask (the core's default).
|
|
140
|
+
elicitationTitle: t("elicitTitle"),
|
|
141
|
+
elicitationLead: (server) => t("elicitLead", { server }),
|
|
142
|
+
elicitationLeadHelper: (server) => t("elicitLead", { server }),
|
|
143
|
+
elicitationDuring: t("elicitDuring"),
|
|
144
|
+
elicitationCount: (index, total) => t("imageCount", { index, total }),
|
|
145
|
+
elicitationFrom: (server) => t("elicitFrom", { server }),
|
|
146
|
+
elicitationRequired: t("elicitRequired"),
|
|
147
|
+
elicitationChoose: t("elicitChoose"),
|
|
148
|
+
elicitationSubmit: t("elicitSubmit"),
|
|
149
|
+
elicitationDecline: t("elicitDecline"),
|
|
150
|
+
elicitationCancel: t("cancel"),
|
|
151
|
+
elicitationErrors: {
|
|
152
|
+
required: (field) => t("elicitErr.required", { field }),
|
|
153
|
+
tooShort: (field, limit) => t("elicitErr.tooShort", { field, limit: limit ?? "" }),
|
|
154
|
+
tooLong: (field, limit) => t("elicitErr.tooLong", { field, limit: limit ?? "" }),
|
|
155
|
+
email: (field) => t("elicitErr.email", { field }),
|
|
156
|
+
uri: (field) => t("elicitErr.uri", { field }),
|
|
157
|
+
date: (field) => t("elicitErr.date", { field }),
|
|
158
|
+
dateTime: (field) => t("elicitErr.dateTime", { field }),
|
|
159
|
+
notNumber: (field) => t("elicitErr.notNumber", { field }),
|
|
160
|
+
notInteger: (field) => t("elicitErr.notInteger", { field }),
|
|
161
|
+
belowMinimum: (field, limit) => t("elicitErr.belowMinimum", { field, limit: limit ?? "" }),
|
|
162
|
+
aboveMaximum: (field, limit) => t("elicitErr.aboveMaximum", { field, limit: limit ?? "" }),
|
|
163
|
+
notAnOption: (field) => t("elicitErr.notAnOption", { field }),
|
|
164
|
+
tooFew: (field, limit) => t("elicitErr.tooFew", { field, limit: limit ?? "" }),
|
|
165
|
+
tooMany: (field, limit) => t("elicitErr.tooMany", { field, limit: limit ?? "" })
|
|
166
|
+
},
|
|
167
|
+
elicitationFix: (count) => t("elicitFix", { count }),
|
|
168
|
+
elicitationExpiresIn: (time) => t("elicitExpiresIn", { time }),
|
|
169
|
+
elicitationExpires: t("elicitExpires"),
|
|
170
|
+
elicitationAutomatic: (server, reason) => t("elicitAutomatic", { server, reason }),
|
|
171
|
+
// What the person can act on: no answer in time, the run stopped, too many questions, a helper,
|
|
172
|
+
// an answer that did not fit - and the rest is "could not be shown here".
|
|
173
|
+
elicitationReasons: {
|
|
174
|
+
timeout: t("elicitReason.timeout"),
|
|
175
|
+
"step-timeout": t("elicitReason.timeout"),
|
|
176
|
+
aborted: t("elicitReason.stopped"),
|
|
177
|
+
stopped: t("elicitReason.stopped"),
|
|
178
|
+
"cap-per-call": t("elicitReason.caps"),
|
|
179
|
+
"cap-per-run": t("elicitReason.caps"),
|
|
180
|
+
"unsupported-schema": t("elicitReason.cannotShow"),
|
|
181
|
+
"unsupported-mode": t("elicitReason.cannotShow"),
|
|
182
|
+
"insecure-url": t("elicitReason.cannotShow"),
|
|
183
|
+
"invalid-request": t("elicitReason.cannotShow"),
|
|
184
|
+
subagent: t("elicitReason.subagent"),
|
|
185
|
+
"handler-error": t("elicitReason.cannotShow"),
|
|
186
|
+
"invalid-answer": t("elicitReason.invalidAnswer"),
|
|
187
|
+
"after-failure": t("elicitReason.cannotShow"),
|
|
188
|
+
"no-tool-call": t("elicitReason.cannotShow")
|
|
189
|
+
},
|
|
190
|
+
elicitationDismiss: t("dismiss"),
|
|
191
|
+
// ── an MCP server's skill before its text reaches the model (the consent card). The app sets
|
|
192
|
+
// neither `consent: 'ask'` nor `dynamic`: their sentences are not mounted.
|
|
193
|
+
skillConsentLead: (server, skill) => t("skillLead", { server, skill }),
|
|
194
|
+
skillConsentSize: (bytes, count) => count > 0 ? t("skillSizeFiles", { size: formatBytes(tag, bytes), count }) : t("skillSize", { size: formatBytes(tag, bytes) }),
|
|
195
|
+
skillConsentByUri: t("skillByUri"),
|
|
196
|
+
skillConsentNested: (enclosing) => t("skillNested", { enclosing }),
|
|
197
|
+
skillConsentPreview: t("skillPreview"),
|
|
198
|
+
skillConsentFiles: (paths, count) => count > 0 ? t("skillFilesMore", { paths, count }) : t("skillFiles", { paths }),
|
|
199
|
+
skillConsentNote: (server) => t("skillNote", { server }),
|
|
200
|
+
skillConsentAllow: t("approve"),
|
|
201
|
+
skillConsentAlways: t("skillAlways"),
|
|
202
|
+
skillConsentDeny: t("deny"),
|
|
203
|
+
skillConsentDeclined: t("skillDeclined"),
|
|
204
|
+
// ── MCP Apps: a tool's own interface in its frame, the requests it makes. Full screen,
|
|
205
|
+
// downloads and the model's answers for an app are not offered: their labels are not mounted.
|
|
206
|
+
appFrom: (server) => t("appFrom", { server }),
|
|
207
|
+
appSandboxed: t("appSandboxed"),
|
|
208
|
+
appSandboxedOrigin: t("appSandboxedOrigin"),
|
|
209
|
+
appSandboxOrigin: (origin) => t("appSandboxOrigin", { origin }),
|
|
210
|
+
appSandboxFallback: (reason) => t("appSandboxFallback", { reason }),
|
|
211
|
+
appSandboxReasons: {
|
|
212
|
+
invalid: t("appReason.config"),
|
|
213
|
+
insecure: t("appReason.config"),
|
|
214
|
+
"same-origin": t("appReason.config"),
|
|
215
|
+
"no-page-origin": t("appReason.config"),
|
|
216
|
+
"server-name": t("appReason.config"),
|
|
217
|
+
"too-many-origins": t("appReason.origins"),
|
|
218
|
+
"no-answer": t("appReason.noAnswer")
|
|
219
|
+
},
|
|
220
|
+
appSandboxBroken: t("appSandboxBroken"),
|
|
221
|
+
appWaiting: t("appWaiting"),
|
|
222
|
+
appWaitingFocus: t("appWaitingFocus"),
|
|
223
|
+
appPromptsLabel: (server) => t("appPromptsLabel", { server }),
|
|
224
|
+
appTag: t("appTag"),
|
|
225
|
+
appsCount: (count) => t("appsCount", { count }),
|
|
226
|
+
appLoading: t("appLoading"),
|
|
227
|
+
appFailed: (reason) => t("appFailed", { reason }),
|
|
228
|
+
appUnavailable: (server) => t("appUnavailable", { server }),
|
|
229
|
+
appHidden: t("appHidden"),
|
|
230
|
+
appShow: t("appShow"),
|
|
231
|
+
appMenu: t("appMenu"),
|
|
232
|
+
appReload: t("appReload"),
|
|
233
|
+
appOpenPanel: t("appOpenPanel"),
|
|
234
|
+
appTaller: t("appTaller"),
|
|
235
|
+
appHide: t("appHide"),
|
|
236
|
+
appServedBy: (server, uri) => t("appServedBy", { server, uri }),
|
|
237
|
+
appInPanel: t("appInPanel"),
|
|
238
|
+
appBringBack: t("appBringBack"),
|
|
239
|
+
appClosePanel: t("appClosePanel"),
|
|
240
|
+
appPanelNote: (server) => t("appPanelNote", { server }),
|
|
241
|
+
appFrameName: (server) => t("appFrameName", { server }),
|
|
242
|
+
appRan: (names) => t("appRan", { names }),
|
|
243
|
+
appRefused: t("appRefused"),
|
|
244
|
+
approvalLeadApp: (server) => t("approvalLeadApp", { server }),
|
|
245
|
+
approvalFromApp: (server, readOnly) => readOnly ? t("approvalFromAppRead", { server }) : t("approvalFromAppWrite", { server }),
|
|
246
|
+
appLinkLead: (server) => t("appLinkLead", { server }),
|
|
247
|
+
appLinkNote: t("appLinkNote"),
|
|
248
|
+
appLinkOpen: t("appLinkOpen"),
|
|
249
|
+
appCancel: t("cancel"),
|
|
250
|
+
appMessageLead: (server) => t("appMessageLead", { server }),
|
|
251
|
+
appMessageNote: t("appMessageNote"),
|
|
252
|
+
appMessageAccept: t("appMessageAccept"),
|
|
253
|
+
appMessageDiscard: t("appMessageDiscard"),
|
|
254
|
+
// ── the assistant's questions (ask_user): the card, its outcomes, another tab's ──
|
|
255
|
+
questionLead: t("questionLead"),
|
|
256
|
+
questionCount: (index, total) => t("imageCount", { index, total }),
|
|
257
|
+
questionSeveral: t("questionSeveral"),
|
|
258
|
+
questionSend: t("send"),
|
|
259
|
+
questionOther: t("questionOther"),
|
|
260
|
+
questionOtherLabel: t("questionOtherLabel"),
|
|
261
|
+
questionSkip: t("questionSkip"),
|
|
262
|
+
questionExpiresIn: (time) => t("questionExpiresIn", { time }),
|
|
263
|
+
questionRemote: t("questionRemote"),
|
|
264
|
+
questionAutomatic: (reason) => t("questionAutomatic", { reason }),
|
|
265
|
+
// A stop is never said (the person stopped it); a question cannot wait in a page (cannot-park):
|
|
266
|
+
// both are the failure the app can name.
|
|
267
|
+
questionReasons: {
|
|
268
|
+
timeout: t("questionReasonTimeout"),
|
|
269
|
+
stopped: t("questionReasonFailed"),
|
|
270
|
+
"handler-error": t("questionReasonFailed"),
|
|
271
|
+
"invalid-answer": t("questionReasonFailed"),
|
|
272
|
+
"cannot-park": t("questionReasonFailed")
|
|
273
|
+
},
|
|
274
|
+
questionDismiss: t("dismiss"),
|
|
275
|
+
queuedWaiting: t("queuedWaiting"),
|
|
276
|
+
queuedForSession: (heldBy) => heldBy === "this-tab" ? t("queuedForSessionRun") : t("queuedForSessionTab"),
|
|
277
|
+
queuedForOtherTab: t("queuedForOtherTab"),
|
|
278
|
+
noteAt: { round: t("noteRound"), step: t("noteStep"), final: t("noteFinal") },
|
|
279
|
+
undelivered: (count) => t("undelivered", { count }),
|
|
280
|
+
sendUndelivered: t("sendUndelivered"),
|
|
281
|
+
discardUndelivered: t("discardUndelivered"),
|
|
282
|
+
// ── another tab of the app (an installed window and a browser tab share the chats) ──
|
|
283
|
+
remoteRunning: t("remoteRunning"),
|
|
284
|
+
remoteWaitingConsent: t("remoteWaitingConsent"),
|
|
285
|
+
remoteGone: t("remoteGone"),
|
|
286
|
+
sessionBusy: (heldBy) => heldBy === "this-tab" ? t("sessionBusyRun") : t("sessionBusyTab"),
|
|
287
|
+
fromAnotherTab: t("fromAnotherTab"),
|
|
288
|
+
failed: t("failed"),
|
|
289
|
+
toolCostTitle: t("toolCostTitle"),
|
|
290
|
+
tierNames: {
|
|
291
|
+
light: t("tier.light"),
|
|
292
|
+
standard: t("tier.standard"),
|
|
293
|
+
strong: t("tier.strong")
|
|
294
|
+
},
|
|
295
|
+
tierReasons: {
|
|
296
|
+
planned: t("tierReason.planned"),
|
|
297
|
+
default: t("tierReason.default"),
|
|
298
|
+
fallback: t("tierReason.fallback")
|
|
299
|
+
},
|
|
300
|
+
escalationReasons: {
|
|
301
|
+
blocked: t("escalation.blocked"),
|
|
302
|
+
"empty-result": t("escalation.emptyResult"),
|
|
303
|
+
"tool-arguments": t("escalation.toolArguments"),
|
|
304
|
+
"output-cut": t("escalation.outputCut"),
|
|
305
|
+
error: t("escalation.error")
|
|
306
|
+
},
|
|
307
|
+
escalated: (from, to, reason) => t("escalated", { from, to, reason }),
|
|
308
|
+
escalatedAttemptText: t("escalatedAttemptText"),
|
|
309
|
+
escalations: (count) => t("escalations", { count }),
|
|
310
|
+
attemptTag: (n) => t("attemptTag", { n }),
|
|
311
|
+
replayed: t("replayed"),
|
|
312
|
+
replayedTitle: t("replayedTitle"),
|
|
313
|
+
replanFailed: t("replanFailed"),
|
|
314
|
+
// ── files, attachments, what an answer wrote or made ──
|
|
315
|
+
files: t("files"),
|
|
316
|
+
showFiles: t("showFiles"),
|
|
317
|
+
attachments: t("attachments"),
|
|
318
|
+
dropHint: t("dropHint"),
|
|
319
|
+
attach: t("attach"),
|
|
320
|
+
attachTitle: t("attachTitle"),
|
|
321
|
+
attachmentsOnly: t("attachmentsOnly"),
|
|
322
|
+
remove: (name) => t("remove", { name }),
|
|
323
|
+
tooLarge: (name, mb) => t("tooLarge", { name, mb }),
|
|
324
|
+
tooManyPixels: (name, mp) => t("tooManyPixels", { name, mp }),
|
|
325
|
+
binaryText: (name) => t("binaryText", { name }),
|
|
326
|
+
downscaledFrom: (size) => t("downscaledFrom", { size }),
|
|
327
|
+
convertedFrom: (name) => t("convertedFrom", { name }),
|
|
328
|
+
tooManyImages: (names, max) => t("tooManyImages", { names, max }),
|
|
329
|
+
messageTooLarge: (names, mb) => t("messageTooLarge", { names, mb }),
|
|
330
|
+
pastedText: (count) => t("pastedText", { count }),
|
|
331
|
+
dictatedText: (count) => t("dictatedText", { count }),
|
|
332
|
+
inputCount: (n, max) => t("inputCount", { n, max }),
|
|
333
|
+
inputLimit: (count) => t("inputLimit", { count }),
|
|
334
|
+
inputLimitReached: (count) => t("inputLimitReached", { count }),
|
|
335
|
+
longTextRefused: (count) => t("longTextRefused", { count }),
|
|
336
|
+
inputLimitFull: (count) => t("inputLimitFull", { count }),
|
|
337
|
+
pastedAsFile: (count) => t("pastedAsFile", { count }),
|
|
338
|
+
dictatedAsFile: (count) => t("dictatedAsFile", { count }),
|
|
339
|
+
attachmentSaveFailed: (names) => t("attachmentSaveFailed", { names }),
|
|
340
|
+
noAttachmentsWhileBusy: t("noAttachmentsWhileBusy"),
|
|
341
|
+
filesEmpty: t("filesEmpty"),
|
|
342
|
+
upload: t("upload"),
|
|
343
|
+
download: t("download"),
|
|
344
|
+
delete: t("delete"),
|
|
345
|
+
preview: t("preview"),
|
|
346
|
+
bytes: (n) => formatBytes(tag, n),
|
|
347
|
+
mediaImage: (path) => t("mediaImage", { path }),
|
|
348
|
+
mediaReferences: (names) => t("mediaReferences", { names }),
|
|
349
|
+
mediaReferencesUnused: (names) => t("mediaReferencesUnused", { names }),
|
|
350
|
+
imageOpen: (name) => t("imageOpen", { name }),
|
|
351
|
+
imagePrevious: t("imagePrevious"),
|
|
352
|
+
imageNext: t("imageNext"),
|
|
353
|
+
imageZoom: t("imageZoom"),
|
|
354
|
+
imageCount: (index, total) => t("imageCount", { index, total }),
|
|
355
|
+
mediaFile: (path) => t("mediaImage", { path }),
|
|
356
|
+
// "Pictures made": the pictures, not the calls - a generation that failed made none, and a
|
|
357
|
+
// run whose only call failed says nothing here (the chat says why it failed).
|
|
358
|
+
usageMedia: (_calls, made) => made.imagesGenerated > 0 ? t("usageMedia", { count: made.imagesGenerated }) : "",
|
|
359
|
+
filesWritten: (count) => t("filesWritten", { count }),
|
|
360
|
+
filesNamed: (count) => t("filesNamed", { count }),
|
|
361
|
+
filesCount: (count) => t("filesCount", { count }),
|
|
362
|
+
showInFiles: t("showInFiles"),
|
|
363
|
+
// HTML, Markdown, CSV and JSON are names, the same in every language.
|
|
364
|
+
fileKinds: {
|
|
365
|
+
image: t("kind.image"),
|
|
366
|
+
code: t("kind.text"),
|
|
367
|
+
text: t("kind.text"),
|
|
368
|
+
file: t("kind.file")
|
|
369
|
+
},
|
|
370
|
+
fileOpen: (name) => t("fileOpen", { name }),
|
|
371
|
+
fileLinkOpen: (text, name) => text.trim() === name ? t("fileOpen", { name }) : t("fileLinkOpen", { text, name }),
|
|
372
|
+
fileClose: () => t("closePreview"),
|
|
373
|
+
fileDownload: (name) => t("fileDownload", { name }),
|
|
374
|
+
fileGone: t("fileGone"),
|
|
375
|
+
fileNoPreview: t("fileNoPreview"),
|
|
376
|
+
fileCut: (chars) => t("fileCut", { chars }),
|
|
377
|
+
fileShowRest: t("fileShowRest"),
|
|
378
|
+
fileShowLess: t("fileShowLess"),
|
|
379
|
+
fileRendered: t("fileRendered"),
|
|
380
|
+
fileSource: t("fileSource"),
|
|
381
|
+
closePreview: t("closePreview"),
|
|
382
|
+
fileLines: (count) => t("fileLines", { count }),
|
|
383
|
+
htmlFrameTitle: t("htmlFrameTitle"),
|
|
384
|
+
htmlSourceNote: t("htmlSourceNote"),
|
|
385
|
+
htmlSandboxed: t("htmlSandboxed"),
|
|
386
|
+
htmlNoNetwork: t("htmlNoNetwork"),
|
|
387
|
+
// The app's previews never run a page's scripts (`ui/HtmlFilePreview.tsx`).
|
|
388
|
+
htmlScripts: () => t("htmlScriptsOff"),
|
|
389
|
+
htmlLinkedFiles: (names) => t("htmlLinkedFiles", { names }),
|
|
390
|
+
htmlTooLarge: t("htmlTooLarge"),
|
|
391
|
+
htmlTaller: t("htmlTaller"),
|
|
392
|
+
htmlShorter: t("htmlShorter"),
|
|
393
|
+
htmlFrameName: (path) => t("fileOpen", { name: path })
|
|
394
|
+
};
|
|
395
|
+
};
|
|
396
|
+
|
|
397
|
+
export {
|
|
398
|
+
labelsFromCatalog
|
|
399
|
+
};
|
|
400
|
+
//# sourceMappingURL=chunk-P2F2P3JC.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/locales/build.ts"],"sourcesContent":["import type { AgentLabelsOverride } from '../labels.js'\nimport type { AgentLabelEntry as Entry, AgentLabelCatalog, AgentLabelKey } from './types.js'\n\ntype Params = Record<string, string | number>\ntype Translate = (key: AgentLabelKey, params?: Params) => string\n\nconst PLACEHOLDER = /\\{(\\w+)\\}/g\n\n/** The plural form of `entry` for `count` (`other` when the language's category is missing). */\nconst pluralForm = (entry: Entry, count: number, rules: Intl.PluralRules): string => {\n if (typeof entry === 'string') return entry\n const category = rules.select(count) as keyof typeof entry\n return entry[category] ?? entry.other\n}\n\n/**\n * A translator over a catalog: a plural entry is chosen by `params.count` through\n * `Intl.PluralRules(tag)`, and a number filled into a placeholder is formatted with\n * `Intl.NumberFormat(tag)` (\"1 234\" in Russian, \"1.234\" in German).\n */\nconst translatorOf = (tag: string, catalog: AgentLabelCatalog): Translate => {\n const rules = new Intl.PluralRules(tag)\n return (key, params) => {\n const entry = catalog[key]\n if (entry === undefined) throw new Error(`The ${tag} catalog has no \"${key}\"`)\n const text = pluralForm(entry, Number(params?.count ?? 0), rules)\n if (!params) return text\n return text.replace(PLACEHOLDER, (whole, name: string) => {\n const value = params[name]\n if (value === undefined) return whole\n return typeof value === 'number' ? new Intl.NumberFormat(tag).format(value) : value\n })\n }\n}\n\n/** A token count the way a person reads it: 12 345 → \"12K\" (or the language's own short form). */\nconst formatTokens = (tag: string, tokens: number): string =>\n new Intl.NumberFormat(tag, { notation: 'compact', maximumFractionDigits: 1 }).format(tokens)\n\n/** A file's size the way a person reads it: bytes, kB or MB in the language's own form. */\nconst formatBytes = (tag: string, bytes: number): string => {\n const [value, unit] =\n bytes < 1024\n ? [bytes, 'byte']\n : bytes < 1024 * 1024\n ? [bytes / 1024, 'kilobyte']\n : [bytes / 1024 / 1024, 'megabyte']\n return new Intl.NumberFormat(tag, {\n style: 'unit',\n unit,\n // Bytes in full: the short form is \"25 byte\" in English (and \"byte\" in Japanese) - the long\n // one is \"25 bytes\", \"25 байт\", \"25 バイト\". kB and MB stay short.\n unitDisplay: unit === 'byte' ? 'long' : 'short',\n maximumFractionDigits: unit === 'megabyte' ? 1 : 0,\n }).format(value)\n}\n\n/**\n * The chat's labels (`AgentLabelsOverride`) of one language, from its catalog: the strings, and\n * the counted and filled-in phrases as functions over `Intl.PluralRules` / `Intl.NumberFormat` of\n * `tag`. What is not here (`emptyState`, and the parts a catalog has no keys for yet) stays\n * `defaultLabels`' English once merged. `seeAttachments` is not here on purpose: it is the goal\n * the MODEL gets for a message of attachments only, not a text the person reads.\n */\nexport const labelsFromCatalog = (tag: string, catalog: AgentLabelCatalog): AgentLabelsOverride => {\n const t = translatorOf(tag, catalog)\n return {\n status: {\n idle: t('status.idle'),\n initializing: t('status.initializing'),\n ready: t('status.ready'),\n running: t('status.running'),\n error: t('status.error'),\n },\n history: t('history'),\n newChat: t('newChat'),\n totalUsage: t('totalUsage'),\n showHistory: t('showHistory'),\n close: t('close'),\n steps: (count) => t('steps', { count }),\n toolCalls: (count) => t('toolCalls', { count }),\n answerThoughts: t('answerThoughts'),\n answerStopped: t('answerStopped'),\n stepThoughts: t('stepThoughts'),\n usageTitle: t('usageTitle'),\n planned: t('planned'),\n replanned: (_mode, reason) => t('replanned', { reason }),\n placeholder: t('placeholder'),\n placeholderBusy: t('placeholderBusy'),\n message: t('message'),\n commands: t('commands'),\n commandsTitle: t('commandsTitle'),\n send: t('send'),\n steer: t('steer'),\n stop: t('stop'),\n dismiss: t('dismiss'),\n // Voice (Settings: Voice): the mic, voice messages, the transcript, read aloud.\n dictate: t('dictate'),\n dictateTitle: t('dictateTitle'),\n stopDictation: t('stopDictation'),\n micListening: t('micListening'),\n listening: t('listening'),\n transcribing: t('transcribing'),\n micDenied: t('micDenied'),\n micMissing: t('micMissing'),\n micBusy: t('micBusy'),\n micUnsupported: t('micUnsupported'),\n dictationFailed: t('dictationFailed'),\n recordVoiceMessage: t('recordVoiceMessage'),\n voiceMessage: t('voiceMessage'),\n recording: (elapsed) => t('recording', { elapsed }),\n recordingDone: t('recordingDone'),\n recordingCancel: t('recordingCancel'),\n recordingLimit: t('recordingLimit'),\n audioAttachment: (name) => t('audioAttachment', { name }),\n transcriptOf: (name) => t('transcriptOf', { name }),\n transcriptNote: t('transcriptNote'),\n readAloud: t('readAloud'),\n readAloudPause: t('readAloudPause'),\n readAloudResume: t('readAloudResume'),\n readAloudStop: t('readAloudStop'),\n readAloudLoading: t('readAloudLoading'),\n readAloudCode: t('readAloudCode'),\n readAloudFailed: t('readAloudFailed'),\n model: t('model'),\n toolConsent: t('toolConsent'),\n modes: {\n autopilot: { label: t('mode.autopilot'), hint: t('mode.autopilotHint') },\n 'ask-writes': { label: t('mode.askWrites'), hint: t('mode.askWritesHint') },\n 'ask-all': { label: t('mode.askAll'), hint: t('mode.askAllHint') },\n 'read-only': { label: t('mode.readOnly'), hint: t('mode.readOnlyHint') },\n },\n timerRunning: t('timerRunning'),\n timerLast: t('timerLast'),\n notices: {\n compacted: (_scope, before, after) =>\n t('compacted', {\n before: formatTokens(tag, before),\n after: formatTokens(tag, after),\n }),\n },\n commandGroups: { commands: t('group.commands'), consent: t('group.consent') },\n commandDescriptions: {\n compact: t('cmd.compact'),\n new: t('cmd.new'),\n stop: t('cmd.stop'),\n autopilot: t('cmd.autopilot'),\n ask: t('cmd.ask'),\n askAll: t('cmd.askAll'),\n readOnly: t('cmd.readOnly'),\n },\n // ── a fact of the memory saved, changed or forgotten (the card in the answer) ──\n memorySaved: t('memorySaved'),\n memoryUpdated: t('memoryUpdated'),\n memoryForgotten: t('memoryForgotten'),\n memoryUndo: t('memoryUndo'),\n memoryUndone: t('memoryUndone'),\n historyEmpty: t('historyEmpty'),\n deleteChat: t('deleteChat'),\n messagesCount: (count) => t('messagesCount', { count }),\n approvalLead: t('approvalLead'),\n approve: t('approve'),\n alwaysAllow: t('alwaysAllow'),\n deny: t('deny'),\n declinedReason: t('declinedReason'),\n readOnlyTool: t('readOnlyTool'),\n consentWaiting: t('consentWaiting'),\n consentAllowed: t('consentAllowed'),\n consentDenied: (reason) => (reason ? t('consentDeniedReason', { reason }) : t('consentDenied')),\n // ── an MCP server's question to the person (elicitation; forms only - URL mode is not\n // declared, so its labels are not mounted). A helper cannot ask (the core's default).\n elicitationTitle: t('elicitTitle'),\n elicitationLead: (server) => t('elicitLead', { server }),\n elicitationLeadHelper: (server) => t('elicitLead', { server }),\n elicitationDuring: t('elicitDuring'),\n elicitationCount: (index, total) => t('imageCount', { index, total }),\n elicitationFrom: (server) => t('elicitFrom', { server }),\n elicitationRequired: t('elicitRequired'),\n elicitationChoose: t('elicitChoose'),\n elicitationSubmit: t('elicitSubmit'),\n elicitationDecline: t('elicitDecline'),\n elicitationCancel: t('cancel'),\n elicitationErrors: {\n required: (field) => t('elicitErr.required', { field }),\n tooShort: (field, limit) => t('elicitErr.tooShort', { field, limit: limit ?? '' }),\n tooLong: (field, limit) => t('elicitErr.tooLong', { field, limit: limit ?? '' }),\n email: (field) => t('elicitErr.email', { field }),\n uri: (field) => t('elicitErr.uri', { field }),\n date: (field) => t('elicitErr.date', { field }),\n dateTime: (field) => t('elicitErr.dateTime', { field }),\n notNumber: (field) => t('elicitErr.notNumber', { field }),\n notInteger: (field) => t('elicitErr.notInteger', { field }),\n belowMinimum: (field, limit) => t('elicitErr.belowMinimum', { field, limit: limit ?? '' }),\n aboveMaximum: (field, limit) => t('elicitErr.aboveMaximum', { field, limit: limit ?? '' }),\n notAnOption: (field) => t('elicitErr.notAnOption', { field }),\n tooFew: (field, limit) => t('elicitErr.tooFew', { field, limit: limit ?? '' }),\n tooMany: (field, limit) => t('elicitErr.tooMany', { field, limit: limit ?? '' }),\n },\n elicitationFix: (count) => t('elicitFix', { count }),\n elicitationExpiresIn: (time) => t('elicitExpiresIn', { time }),\n elicitationExpires: t('elicitExpires'),\n elicitationAutomatic: (server, reason) => t('elicitAutomatic', { server, reason }),\n // What the person can act on: no answer in time, the run stopped, too many questions, a helper,\n // an answer that did not fit - and the rest is \"could not be shown here\".\n elicitationReasons: {\n timeout: t('elicitReason.timeout'),\n 'step-timeout': t('elicitReason.timeout'),\n aborted: t('elicitReason.stopped'),\n stopped: t('elicitReason.stopped'),\n 'cap-per-call': t('elicitReason.caps'),\n 'cap-per-run': t('elicitReason.caps'),\n 'unsupported-schema': t('elicitReason.cannotShow'),\n 'unsupported-mode': t('elicitReason.cannotShow'),\n 'insecure-url': t('elicitReason.cannotShow'),\n 'invalid-request': t('elicitReason.cannotShow'),\n subagent: t('elicitReason.subagent'),\n 'handler-error': t('elicitReason.cannotShow'),\n 'invalid-answer': t('elicitReason.invalidAnswer'),\n 'after-failure': t('elicitReason.cannotShow'),\n 'no-tool-call': t('elicitReason.cannotShow'),\n },\n elicitationDismiss: t('dismiss'),\n // ── an MCP server's skill before its text reaches the model (the consent card). The app sets\n // neither `consent: 'ask'` nor `dynamic`: their sentences are not mounted.\n skillConsentLead: (server, skill) => t('skillLead', { server, skill }),\n skillConsentSize: (bytes, count) =>\n count > 0\n ? t('skillSizeFiles', { size: formatBytes(tag, bytes), count })\n : t('skillSize', { size: formatBytes(tag, bytes) }),\n skillConsentByUri: t('skillByUri'),\n skillConsentNested: (enclosing) => t('skillNested', { enclosing }),\n skillConsentPreview: t('skillPreview'),\n skillConsentFiles: (paths, count) =>\n count > 0 ? t('skillFilesMore', { paths, count }) : t('skillFiles', { paths }),\n skillConsentNote: (server) => t('skillNote', { server }),\n skillConsentAllow: t('approve'),\n skillConsentAlways: t('skillAlways'),\n skillConsentDeny: t('deny'),\n skillConsentDeclined: t('skillDeclined'),\n // ── MCP Apps: a tool's own interface in its frame, the requests it makes. Full screen,\n // downloads and the model's answers for an app are not offered: their labels are not mounted.\n appFrom: (server) => t('appFrom', { server }),\n appSandboxed: t('appSandboxed'),\n appSandboxedOrigin: t('appSandboxedOrigin'),\n appSandboxOrigin: (origin) => t('appSandboxOrigin', { origin }),\n appSandboxFallback: (reason) => t('appSandboxFallback', { reason }),\n appSandboxReasons: {\n invalid: t('appReason.config'),\n insecure: t('appReason.config'),\n 'same-origin': t('appReason.config'),\n 'no-page-origin': t('appReason.config'),\n 'server-name': t('appReason.config'),\n 'too-many-origins': t('appReason.origins'),\n 'no-answer': t('appReason.noAnswer'),\n },\n appSandboxBroken: t('appSandboxBroken'),\n appWaiting: t('appWaiting'),\n appWaitingFocus: t('appWaitingFocus'),\n appPromptsLabel: (server) => t('appPromptsLabel', { server }),\n appTag: t('appTag'),\n appsCount: (count) => t('appsCount', { count }),\n appLoading: t('appLoading'),\n appFailed: (reason) => t('appFailed', { reason }),\n appUnavailable: (server) => t('appUnavailable', { server }),\n appHidden: t('appHidden'),\n appShow: t('appShow'),\n appMenu: t('appMenu'),\n appReload: t('appReload'),\n appOpenPanel: t('appOpenPanel'),\n appTaller: t('appTaller'),\n appHide: t('appHide'),\n appServedBy: (server, uri) => t('appServedBy', { server, uri }),\n appInPanel: t('appInPanel'),\n appBringBack: t('appBringBack'),\n appClosePanel: t('appClosePanel'),\n appPanelNote: (server) => t('appPanelNote', { server }),\n appFrameName: (server) => t('appFrameName', { server }),\n appRan: (names) => t('appRan', { names }),\n appRefused: t('appRefused'),\n approvalLeadApp: (server) => t('approvalLeadApp', { server }),\n approvalFromApp: (server, readOnly) =>\n readOnly ? t('approvalFromAppRead', { server }) : t('approvalFromAppWrite', { server }),\n appLinkLead: (server) => t('appLinkLead', { server }),\n appLinkNote: t('appLinkNote'),\n appLinkOpen: t('appLinkOpen'),\n appCancel: t('cancel'),\n appMessageLead: (server) => t('appMessageLead', { server }),\n appMessageNote: t('appMessageNote'),\n appMessageAccept: t('appMessageAccept'),\n appMessageDiscard: t('appMessageDiscard'),\n // ── the assistant's questions (ask_user): the card, its outcomes, another tab's ──\n questionLead: t('questionLead'),\n questionCount: (index, total) => t('imageCount', { index, total }),\n questionSeveral: t('questionSeveral'),\n questionSend: t('send'),\n questionOther: t('questionOther'),\n questionOtherLabel: t('questionOtherLabel'),\n questionSkip: t('questionSkip'),\n questionExpiresIn: (time) => t('questionExpiresIn', { time }),\n questionRemote: t('questionRemote'),\n questionAutomatic: (reason) => t('questionAutomatic', { reason }),\n // A stop is never said (the person stopped it); a question cannot wait in a page (cannot-park):\n // both are the failure the app can name.\n questionReasons: {\n timeout: t('questionReasonTimeout'),\n stopped: t('questionReasonFailed'),\n 'handler-error': t('questionReasonFailed'),\n 'invalid-answer': t('questionReasonFailed'),\n 'cannot-park': t('questionReasonFailed'),\n },\n questionDismiss: t('dismiss'),\n queuedWaiting: t('queuedWaiting'),\n queuedForSession: (heldBy) =>\n heldBy === 'this-tab' ? t('queuedForSessionRun') : t('queuedForSessionTab'),\n queuedForOtherTab: t('queuedForOtherTab'),\n noteAt: { round: t('noteRound'), step: t('noteStep'), final: t('noteFinal') },\n undelivered: (count) => t('undelivered', { count }),\n sendUndelivered: t('sendUndelivered'),\n discardUndelivered: t('discardUndelivered'),\n // ── another tab of the app (an installed window and a browser tab share the chats) ──\n remoteRunning: t('remoteRunning'),\n remoteWaitingConsent: t('remoteWaitingConsent'),\n remoteGone: t('remoteGone'),\n sessionBusy: (heldBy) => (heldBy === 'this-tab' ? t('sessionBusyRun') : t('sessionBusyTab')),\n fromAnotherTab: t('fromAnotherTab'),\n failed: t('failed'),\n toolCostTitle: t('toolCostTitle'),\n tierNames: {\n light: t('tier.light'),\n standard: t('tier.standard'),\n strong: t('tier.strong'),\n },\n tierReasons: {\n planned: t('tierReason.planned'),\n default: t('tierReason.default'),\n fallback: t('tierReason.fallback'),\n },\n escalationReasons: {\n blocked: t('escalation.blocked'),\n 'empty-result': t('escalation.emptyResult'),\n 'tool-arguments': t('escalation.toolArguments'),\n 'output-cut': t('escalation.outputCut'),\n error: t('escalation.error'),\n },\n escalated: (from, to, reason) => t('escalated', { from, to, reason }),\n escalatedAttemptText: t('escalatedAttemptText'),\n escalations: (count) => t('escalations', { count }),\n attemptTag: (n) => t('attemptTag', { n }),\n replayed: t('replayed'),\n replayedTitle: t('replayedTitle'),\n replanFailed: t('replanFailed'),\n // ── files, attachments, what an answer wrote or made ──\n files: t('files'),\n showFiles: t('showFiles'),\n attachments: t('attachments'),\n dropHint: t('dropHint'),\n attach: t('attach'),\n attachTitle: t('attachTitle'),\n attachmentsOnly: t('attachmentsOnly'),\n remove: (name) => t('remove', { name }),\n tooLarge: (name, mb) => t('tooLarge', { name, mb }),\n tooManyPixels: (name, mp) => t('tooManyPixels', { name, mp }),\n binaryText: (name) => t('binaryText', { name }),\n downscaledFrom: (size) => t('downscaledFrom', { size }),\n convertedFrom: (name) => t('convertedFrom', { name }),\n tooManyImages: (names, max) => t('tooManyImages', { names, max }),\n messageTooLarge: (names, mb) => t('messageTooLarge', { names, mb }),\n pastedText: (count) => t('pastedText', { count }),\n dictatedText: (count) => t('dictatedText', { count }),\n inputCount: (n, max) => t('inputCount', { n, max }),\n inputLimit: (count) => t('inputLimit', { count }),\n inputLimitReached: (count) => t('inputLimitReached', { count }),\n longTextRefused: (count) => t('longTextRefused', { count }),\n inputLimitFull: (count) => t('inputLimitFull', { count }),\n pastedAsFile: (count) => t('pastedAsFile', { count }),\n dictatedAsFile: (count) => t('dictatedAsFile', { count }),\n attachmentSaveFailed: (names) => t('attachmentSaveFailed', { names }),\n noAttachmentsWhileBusy: t('noAttachmentsWhileBusy'),\n filesEmpty: t('filesEmpty'),\n upload: t('upload'),\n download: t('download'),\n delete: t('delete'),\n preview: t('preview'),\n bytes: (n) => formatBytes(tag, n),\n mediaImage: (path) => t('mediaImage', { path }),\n mediaReferences: (names) => t('mediaReferences', { names }),\n mediaReferencesUnused: (names) => t('mediaReferencesUnused', { names }),\n imageOpen: (name) => t('imageOpen', { name }),\n imagePrevious: t('imagePrevious'),\n imageNext: t('imageNext'),\n imageZoom: t('imageZoom'),\n imageCount: (index, total) => t('imageCount', { index, total }),\n mediaFile: (path) => t('mediaImage', { path }),\n // \"Pictures made\": the pictures, not the calls - a generation that failed made none, and a\n // run whose only call failed says nothing here (the chat says why it failed).\n usageMedia: (_calls, made) =>\n made.imagesGenerated > 0 ? t('usageMedia', { count: made.imagesGenerated }) : '',\n filesWritten: (count) => t('filesWritten', { count }),\n filesNamed: (count) => t('filesNamed', { count }),\n filesCount: (count) => t('filesCount', { count }),\n showInFiles: t('showInFiles'),\n // HTML, Markdown, CSV and JSON are names, the same in every language.\n fileKinds: {\n image: t('kind.image'),\n code: t('kind.text'),\n text: t('kind.text'),\n file: t('kind.file'),\n },\n fileOpen: (name) => t('fileOpen', { name }),\n fileLinkOpen: (text, name) =>\n text.trim() === name ? t('fileOpen', { name }) : t('fileLinkOpen', { text, name }),\n fileClose: () => t('closePreview'),\n fileDownload: (name) => t('fileDownload', { name }),\n fileGone: t('fileGone'),\n fileNoPreview: t('fileNoPreview'),\n fileCut: (chars) => t('fileCut', { chars }),\n fileShowRest: t('fileShowRest'),\n fileShowLess: t('fileShowLess'),\n fileRendered: t('fileRendered'),\n fileSource: t('fileSource'),\n closePreview: t('closePreview'),\n fileLines: (count) => t('fileLines', { count }),\n htmlFrameTitle: t('htmlFrameTitle'),\n htmlSourceNote: t('htmlSourceNote'),\n htmlSandboxed: t('htmlSandboxed'),\n htmlNoNetwork: t('htmlNoNetwork'),\n // The app's previews never run a page's scripts (`ui/HtmlFilePreview.tsx`).\n htmlScripts: () => t('htmlScriptsOff'),\n htmlLinkedFiles: (names) => t('htmlLinkedFiles', { names }),\n htmlTooLarge: t('htmlTooLarge'),\n htmlTaller: t('htmlTaller'),\n htmlShorter: t('htmlShorter'),\n htmlFrameName: (path) => t('fileOpen', { name: path }),\n }\n}\n"],"mappings":";AAMA,IAA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