@jean-is/render 0.0.0-stage → 0.8.0-r83bf42d1b67e
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 +2 -2
- package/caps/charts/charts.css +12 -0
- package/caps/charts/charts.js +154 -0
- package/caps/charts/option.js +141 -0
- package/caps/interactive/diagram.js +415 -0
- package/caps/interactive/interactive.css +21 -0
- package/caps/interactive/interactive.js +345 -0
- package/caps/interactive/map.js +183 -0
- package/caps/interactive/mode.js +54 -0
- package/caps/layouts/layouts.css +179 -0
- package/caps/layouts/layouts.js +147 -0
- package/caps/layouts/shapes.js +159 -0
- package/caps/math/latex.js +88 -0
- package/caps/math/math.css +24 -0
- package/caps/math/math.js +117 -0
- package/caps/scores/notes.js +30 -0
- package/caps/scores/scores.css +22 -0
- package/caps/scores/scores.js +287 -0
- package/caps/scores/sound-worker.js +12 -0
- package/caps/scores/sound.js +72 -0
- package/caps/share/seal.js +86 -0
- package/caps/share/view.js +153 -0
- package/caps/skills/directory.js +57 -0
- package/caps/skills/sources.js +281 -0
- package/caps/slides/deck.js +69 -0
- package/caps/slides/slides.css +38 -0
- package/caps/slides/slides.js +122 -0
- package/core/anthropic.js +253 -0
- package/core/deferred.js +48 -0
- package/core/events.js +166 -0
- package/core/files.js +277 -0
- package/core/fs.js +186 -0
- package/core/hooks.js +53 -0
- package/core/i18n.js +151 -0
- package/core/llm.js +400 -0
- package/core/loop.js +453 -0
- package/core/rules.js +52 -0
- package/core/search.js +158 -0
- package/core/settings.js +221 -0
- package/core/skills.js +90 -0
- package/core/sse.js +51 -0
- package/core/ulid.js +17 -0
- package/core/zip.js +165 -0
- package/fonts/OFL.txt +94 -0
- package/fonts/display.woff2 +0 -0
- package/locales/am.json +395 -0
- package/locales/ar.json +427 -0
- package/locales/ask/am.json +8 -0
- package/locales/ask/ar.json +8 -0
- package/locales/ask/bn.json +8 -0
- package/locales/ask/de.json +8 -0
- package/locales/ask/en.json +8 -0
- package/locales/ask/es.json +8 -0
- package/locales/ask/fa.json +8 -0
- package/locales/ask/fr.json +8 -0
- package/locales/ask/ha.json +8 -0
- package/locales/ask/he.json +8 -0
- package/locales/ask/hi.json +8 -0
- package/locales/ask/id.json +8 -0
- package/locales/ask/it.json +8 -0
- package/locales/ask/ja.json +8 -0
- package/locales/ask/ko.json +8 -0
- package/locales/ask/mr.json +8 -0
- package/locales/ask/ms.json +8 -0
- package/locales/ask/nl.json +8 -0
- package/locales/ask/pl.json +8 -0
- package/locales/ask/pt.json +8 -0
- package/locales/ask/ru.json +8 -0
- package/locales/ask/sw.json +8 -0
- package/locales/ask/ta.json +8 -0
- package/locales/ask/te.json +8 -0
- package/locales/ask/th.json +8 -0
- package/locales/ask/tl.json +8 -0
- package/locales/ask/tr.json +8 -0
- package/locales/ask/uk.json +8 -0
- package/locales/ask/ur.json +8 -0
- package/locales/ask/vi.json +8 -0
- package/locales/ask/yo.json +8 -0
- package/locales/ask/zh-Hans.json +8 -0
- package/locales/ask/zh-Hant.json +8 -0
- package/locales/backup/am.json +8 -0
- package/locales/backup/ar.json +12 -0
- package/locales/backup/bn.json +8 -0
- package/locales/backup/de.json +8 -0
- package/locales/backup/en.json +8 -0
- package/locales/backup/es.json +9 -0
- package/locales/backup/fa.json +8 -0
- package/locales/backup/fr.json +9 -0
- package/locales/backup/ha.json +8 -0
- package/locales/backup/he.json +10 -0
- package/locales/backup/hi.json +8 -0
- package/locales/backup/id.json +7 -0
- package/locales/backup/it.json +9 -0
- package/locales/backup/ja.json +7 -0
- package/locales/backup/ko.json +7 -0
- package/locales/backup/mr.json +8 -0
- package/locales/backup/ms.json +7 -0
- package/locales/backup/nl.json +8 -0
- package/locales/backup/pl.json +10 -0
- package/locales/backup/pt.json +9 -0
- package/locales/backup/ru.json +10 -0
- package/locales/backup/sw.json +8 -0
- package/locales/backup/ta.json +8 -0
- package/locales/backup/te.json +8 -0
- package/locales/backup/th.json +7 -0
- package/locales/backup/tl.json +8 -0
- package/locales/backup/tr.json +8 -0
- package/locales/backup/uk.json +10 -0
- package/locales/backup/ur.json +8 -0
- package/locales/backup/vi.json +7 -0
- package/locales/backup/yo.json +7 -0
- package/locales/backup/zh-Hans.json +7 -0
- package/locales/backup/zh-Hant.json +7 -0
- package/locales/bn.json +395 -0
- package/locales/brain-local/am.json +13 -0
- package/locales/brain-local/ar.json +13 -0
- package/locales/brain-local/bn.json +13 -0
- package/locales/brain-local/de.json +13 -0
- package/locales/brain-local/en.json +13 -0
- package/locales/brain-local/es.json +13 -0
- package/locales/brain-local/fa.json +13 -0
- package/locales/brain-local/fr.json +13 -0
- package/locales/brain-local/ha.json +13 -0
- package/locales/brain-local/he.json +13 -0
- package/locales/brain-local/hi.json +13 -0
- package/locales/brain-local/id.json +13 -0
- package/locales/brain-local/it.json +13 -0
- package/locales/brain-local/ja.json +13 -0
- package/locales/brain-local/ko.json +13 -0
- package/locales/brain-local/mr.json +13 -0
- package/locales/brain-local/ms.json +13 -0
- package/locales/brain-local/nl.json +13 -0
- package/locales/brain-local/pl.json +13 -0
- package/locales/brain-local/pt.json +13 -0
- package/locales/brain-local/ru.json +13 -0
- package/locales/brain-local/sw.json +13 -0
- package/locales/brain-local/ta.json +13 -0
- package/locales/brain-local/te.json +13 -0
- package/locales/brain-local/th.json +13 -0
- package/locales/brain-local/tl.json +13 -0
- package/locales/brain-local/tr.json +13 -0
- package/locales/brain-local/uk.json +13 -0
- package/locales/brain-local/ur.json +13 -0
- package/locales/brain-local/vi.json +13 -0
- package/locales/brain-local/yo.json +13 -0
- package/locales/brain-local/zh-Hans.json +13 -0
- package/locales/brain-local/zh-Hant.json +13 -0
- package/locales/browser/am.json +29 -0
- package/locales/browser/ar.json +29 -0
- package/locales/browser/bn.json +29 -0
- package/locales/browser/de.json +29 -0
- package/locales/browser/en.json +29 -0
- package/locales/browser/es.json +29 -0
- package/locales/browser/fa.json +29 -0
- package/locales/browser/fr.json +29 -0
- package/locales/browser/ha.json +29 -0
- package/locales/browser/he.json +29 -0
- package/locales/browser/hi.json +29 -0
- package/locales/browser/id.json +29 -0
- package/locales/browser/it.json +29 -0
- package/locales/browser/ja.json +29 -0
- package/locales/browser/ko.json +29 -0
- package/locales/browser/mr.json +29 -0
- package/locales/browser/ms.json +29 -0
- package/locales/browser/nl.json +29 -0
- package/locales/browser/pl.json +29 -0
- package/locales/browser/pt.json +29 -0
- package/locales/browser/ru.json +29 -0
- package/locales/browser/sw.json +29 -0
- package/locales/browser/ta.json +29 -0
- package/locales/browser/te.json +29 -0
- package/locales/browser/th.json +29 -0
- package/locales/browser/tl.json +29 -0
- package/locales/browser/tr.json +29 -0
- package/locales/browser/uk.json +29 -0
- package/locales/browser/ur.json +29 -0
- package/locales/browser/vi.json +29 -0
- package/locales/browser/yo.json +29 -0
- package/locales/browser/zh-Hans.json +29 -0
- package/locales/browser/zh-Hant.json +29 -0
- package/locales/certificates/am.json +58 -0
- package/locales/certificates/ar.json +58 -0
- package/locales/certificates/bn.json +58 -0
- package/locales/certificates/de.json +58 -0
- package/locales/certificates/en.json +58 -0
- package/locales/certificates/es.json +58 -0
- package/locales/certificates/fa.json +58 -0
- package/locales/certificates/fr.json +58 -0
- package/locales/certificates/ha.json +58 -0
- package/locales/certificates/he.json +58 -0
- package/locales/certificates/hi.json +58 -0
- package/locales/certificates/id.json +58 -0
- package/locales/certificates/it.json +58 -0
- package/locales/certificates/ja.json +58 -0
- package/locales/certificates/ko.json +58 -0
- package/locales/certificates/mr.json +58 -0
- package/locales/certificates/ms.json +58 -0
- package/locales/certificates/nl.json +58 -0
- package/locales/certificates/pl.json +58 -0
- package/locales/certificates/pt.json +58 -0
- package/locales/certificates/ru.json +58 -0
- package/locales/certificates/sw.json +58 -0
- package/locales/certificates/ta.json +58 -0
- package/locales/certificates/te.json +58 -0
- package/locales/certificates/th.json +58 -0
- package/locales/certificates/tl.json +58 -0
- package/locales/certificates/tr.json +58 -0
- package/locales/certificates/uk.json +58 -0
- package/locales/certificates/ur.json +58 -0
- package/locales/certificates/vi.json +58 -0
- package/locales/certificates/yo.json +58 -0
- package/locales/certificates/zh-Hans.json +58 -0
- package/locales/certificates/zh-Hant.json +58 -0
- package/locales/charts/am.json +5 -0
- package/locales/charts/ar.json +5 -0
- package/locales/charts/bn.json +5 -0
- package/locales/charts/de.json +5 -0
- package/locales/charts/en.json +5 -0
- package/locales/charts/es.json +5 -0
- package/locales/charts/fa.json +5 -0
- package/locales/charts/fr.json +5 -0
- package/locales/charts/ha.json +5 -0
- package/locales/charts/he.json +5 -0
- package/locales/charts/hi.json +5 -0
- package/locales/charts/id.json +5 -0
- package/locales/charts/it.json +5 -0
- package/locales/charts/ja.json +5 -0
- package/locales/charts/ko.json +5 -0
- package/locales/charts/mr.json +5 -0
- package/locales/charts/ms.json +5 -0
- package/locales/charts/nl.json +5 -0
- package/locales/charts/pl.json +5 -0
- package/locales/charts/pt.json +5 -0
- package/locales/charts/ru.json +5 -0
- package/locales/charts/sw.json +5 -0
- package/locales/charts/ta.json +5 -0
- package/locales/charts/te.json +5 -0
- package/locales/charts/th.json +5 -0
- package/locales/charts/tl.json +5 -0
- package/locales/charts/tr.json +5 -0
- package/locales/charts/uk.json +5 -0
- package/locales/charts/ur.json +5 -0
- package/locales/charts/vi.json +5 -0
- package/locales/charts/yo.json +5 -0
- package/locales/charts/zh-Hans.json +5 -0
- package/locales/charts/zh-Hant.json +5 -0
- package/locales/compact/am.json +7 -0
- package/locales/compact/ar.json +7 -0
- package/locales/compact/bn.json +7 -0
- package/locales/compact/de.json +7 -0
- package/locales/compact/en.json +7 -0
- package/locales/compact/es.json +7 -0
- package/locales/compact/fa.json +7 -0
- package/locales/compact/fr.json +7 -0
- package/locales/compact/ha.json +7 -0
- package/locales/compact/he.json +7 -0
- package/locales/compact/hi.json +7 -0
- package/locales/compact/id.json +7 -0
- package/locales/compact/it.json +7 -0
- package/locales/compact/ja.json +7 -0
- package/locales/compact/ko.json +7 -0
- package/locales/compact/mr.json +7 -0
- package/locales/compact/ms.json +7 -0
- package/locales/compact/nl.json +7 -0
- package/locales/compact/pl.json +7 -0
- package/locales/compact/pt.json +7 -0
- package/locales/compact/ru.json +7 -0
- package/locales/compact/sw.json +7 -0
- package/locales/compact/ta.json +7 -0
- package/locales/compact/te.json +7 -0
- package/locales/compact/th.json +7 -0
- package/locales/compact/tl.json +7 -0
- package/locales/compact/tr.json +7 -0
- package/locales/compact/uk.json +7 -0
- package/locales/compact/ur.json +7 -0
- package/locales/compact/vi.json +7 -0
- package/locales/compact/yo.json +7 -0
- package/locales/compact/zh-Hans.json +7 -0
- package/locales/compact/zh-Hant.json +7 -0
- package/locales/computer/am.json +61 -0
- package/locales/computer/ar.json +69 -0
- package/locales/computer/bn.json +61 -0
- package/locales/computer/de.json +61 -0
- package/locales/computer/en.json +61 -0
- package/locales/computer/es.json +63 -0
- package/locales/computer/fa.json +61 -0
- package/locales/computer/fr.json +63 -0
- package/locales/computer/ha.json +61 -0
- package/locales/computer/he.json +63 -0
- package/locales/computer/hi.json +61 -0
- package/locales/computer/id.json +59 -0
- package/locales/computer/it.json +63 -0
- package/locales/computer/ja.json +59 -0
- package/locales/computer/ko.json +59 -0
- package/locales/computer/mr.json +61 -0
- package/locales/computer/ms.json +59 -0
- package/locales/computer/nl.json +61 -0
- package/locales/computer/pl.json +65 -0
- package/locales/computer/pt.json +63 -0
- package/locales/computer/ru.json +65 -0
- package/locales/computer/sw.json +61 -0
- package/locales/computer/ta.json +61 -0
- package/locales/computer/te.json +61 -0
- package/locales/computer/th.json +59 -0
- package/locales/computer/tl.json +61 -0
- package/locales/computer/tr.json +61 -0
- package/locales/computer/uk.json +65 -0
- package/locales/computer/ur.json +61 -0
- package/locales/computer/vi.json +59 -0
- package/locales/computer/yo.json +59 -0
- package/locales/computer/zh-Hans.json +59 -0
- package/locales/computer/zh-Hant.json +59 -0
- package/locales/connections/am.json +15 -0
- package/locales/connections/ar.json +15 -0
- package/locales/connections/bn.json +15 -0
- package/locales/connections/de.json +15 -0
- package/locales/connections/en.json +15 -0
- package/locales/connections/es.json +15 -0
- package/locales/connections/fa.json +15 -0
- package/locales/connections/fr.json +15 -0
- package/locales/connections/ha.json +15 -0
- package/locales/connections/he.json +15 -0
- package/locales/connections/hi.json +15 -0
- package/locales/connections/id.json +15 -0
- package/locales/connections/it.json +15 -0
- package/locales/connections/ja.json +15 -0
- package/locales/connections/ko.json +15 -0
- package/locales/connections/mr.json +15 -0
- package/locales/connections/ms.json +15 -0
- package/locales/connections/nl.json +15 -0
- package/locales/connections/pl.json +15 -0
- package/locales/connections/pt.json +15 -0
- package/locales/connections/ru.json +15 -0
- package/locales/connections/sw.json +15 -0
- package/locales/connections/ta.json +15 -0
- package/locales/connections/te.json +15 -0
- package/locales/connections/th.json +15 -0
- package/locales/connections/tl.json +15 -0
- package/locales/connections/tr.json +15 -0
- package/locales/connections/uk.json +15 -0
- package/locales/connections/ur.json +15 -0
- package/locales/connections/vi.json +15 -0
- package/locales/connections/yo.json +15 -0
- package/locales/connections/zh-Hans.json +15 -0
- package/locales/connections/zh-Hant.json +15 -0
- package/locales/de.json +395 -0
- package/locales/dialogs/am.json +347 -0
- package/locales/dialogs/ar.json +359 -0
- package/locales/dialogs/bn.json +347 -0
- package/locales/dialogs/de.json +347 -0
- package/locales/dialogs/en.json +347 -0
- package/locales/dialogs/es.json +350 -0
- package/locales/dialogs/fa.json +347 -0
- package/locales/dialogs/fr.json +350 -0
- package/locales/dialogs/ha.json +347 -0
- package/locales/dialogs/he.json +352 -0
- package/locales/dialogs/hi.json +347 -0
- package/locales/dialogs/id.json +344 -0
- package/locales/dialogs/it.json +350 -0
- package/locales/dialogs/ja.json +344 -0
- package/locales/dialogs/ko.json +344 -0
- package/locales/dialogs/mr.json +347 -0
- package/locales/dialogs/ms.json +344 -0
- package/locales/dialogs/nl.json +347 -0
- package/locales/dialogs/pl.json +353 -0
- package/locales/dialogs/pt.json +350 -0
- package/locales/dialogs/ru.json +353 -0
- package/locales/dialogs/sw.json +347 -0
- package/locales/dialogs/ta.json +347 -0
- package/locales/dialogs/te.json +347 -0
- package/locales/dialogs/th.json +344 -0
- package/locales/dialogs/tl.json +347 -0
- package/locales/dialogs/tr.json +347 -0
- package/locales/dialogs/uk.json +353 -0
- package/locales/dialogs/ur.json +347 -0
- package/locales/dialogs/vi.json +344 -0
- package/locales/dialogs/yo.json +344 -0
- package/locales/dialogs/zh-Hans.json +344 -0
- package/locales/dialogs/zh-Hant.json +344 -0
- package/locales/en.json +395 -0
- package/locales/enterprise/am.json +21 -0
- package/locales/enterprise/ar.json +21 -0
- package/locales/enterprise/bn.json +21 -0
- package/locales/enterprise/de.json +21 -0
- package/locales/enterprise/en.json +21 -0
- package/locales/enterprise/es.json +21 -0
- package/locales/enterprise/fa.json +21 -0
- package/locales/enterprise/fr.json +21 -0
- package/locales/enterprise/ha.json +21 -0
- package/locales/enterprise/he.json +21 -0
- package/locales/enterprise/hi.json +21 -0
- package/locales/enterprise/id.json +21 -0
- package/locales/enterprise/it.json +21 -0
- package/locales/enterprise/ja.json +21 -0
- package/locales/enterprise/ko.json +21 -0
- package/locales/enterprise/mr.json +21 -0
- package/locales/enterprise/ms.json +21 -0
- package/locales/enterprise/nl.json +21 -0
- package/locales/enterprise/pl.json +21 -0
- package/locales/enterprise/pt.json +21 -0
- package/locales/enterprise/ru.json +21 -0
- package/locales/enterprise/sw.json +21 -0
- package/locales/enterprise/ta.json +21 -0
- package/locales/enterprise/te.json +21 -0
- package/locales/enterprise/th.json +21 -0
- package/locales/enterprise/tl.json +21 -0
- package/locales/enterprise/tr.json +21 -0
- package/locales/enterprise/uk.json +21 -0
- package/locales/enterprise/ur.json +21 -0
- package/locales/enterprise/vi.json +21 -0
- package/locales/enterprise/yo.json +21 -0
- package/locales/enterprise/zh-Hans.json +21 -0
- package/locales/enterprise/zh-Hant.json +21 -0
- package/locales/es.json +403 -0
- package/locales/fa.json +395 -0
- package/locales/first/am.json +26 -0
- package/locales/first/ar.json +26 -0
- package/locales/first/bn.json +26 -0
- package/locales/first/de.json +26 -0
- package/locales/first/en.json +26 -0
- package/locales/first/es.json +26 -0
- package/locales/first/fa.json +26 -0
- package/locales/first/fr.json +26 -0
- package/locales/first/ha.json +26 -0
- package/locales/first/he.json +26 -0
- package/locales/first/hi.json +26 -0
- package/locales/first/id.json +26 -0
- package/locales/first/it.json +26 -0
- package/locales/first/ja.json +26 -0
- package/locales/first/ko.json +26 -0
- package/locales/first/mr.json +26 -0
- package/locales/first/ms.json +26 -0
- package/locales/first/nl.json +26 -0
- package/locales/first/pl.json +26 -0
- package/locales/first/pt.json +26 -0
- package/locales/first/ru.json +26 -0
- package/locales/first/sw.json +26 -0
- package/locales/first/ta.json +26 -0
- package/locales/first/te.json +26 -0
- package/locales/first/th.json +26 -0
- package/locales/first/tl.json +26 -0
- package/locales/first/tr.json +26 -0
- package/locales/first/uk.json +26 -0
- package/locales/first/ur.json +26 -0
- package/locales/first/vi.json +26 -0
- package/locales/first/yo.json +26 -0
- package/locales/first/zh-Hans.json +26 -0
- package/locales/first/zh-Hant.json +26 -0
- package/locales/flows/am.json +51 -0
- package/locales/flows/ar.json +51 -0
- package/locales/flows/bn.json +51 -0
- package/locales/flows/de.json +51 -0
- package/locales/flows/en.json +51 -0
- package/locales/flows/es.json +51 -0
- package/locales/flows/fa.json +51 -0
- package/locales/flows/fr.json +51 -0
- package/locales/flows/ha.json +51 -0
- package/locales/flows/he.json +51 -0
- package/locales/flows/hi.json +51 -0
- package/locales/flows/id.json +51 -0
- package/locales/flows/it.json +51 -0
- package/locales/flows/ja.json +51 -0
- package/locales/flows/ko.json +51 -0
- package/locales/flows/mr.json +51 -0
- package/locales/flows/ms.json +51 -0
- package/locales/flows/nl.json +51 -0
- package/locales/flows/pl.json +51 -0
- package/locales/flows/pt.json +51 -0
- package/locales/flows/ru.json +51 -0
- package/locales/flows/sw.json +51 -0
- package/locales/flows/ta.json +51 -0
- package/locales/flows/te.json +51 -0
- package/locales/flows/th.json +51 -0
- package/locales/flows/tl.json +51 -0
- package/locales/flows/tr.json +51 -0
- package/locales/flows/uk.json +51 -0
- package/locales/flows/ur.json +51 -0
- package/locales/flows/vi.json +51 -0
- package/locales/flows/yo.json +51 -0
- package/locales/flows/zh-Hans.json +51 -0
- package/locales/flows/zh-Hant.json +51 -0
- package/locales/folders/am.json +40 -0
- package/locales/folders/ar.json +44 -0
- package/locales/folders/bn.json +40 -0
- package/locales/folders/de.json +40 -0
- package/locales/folders/en.json +40 -0
- package/locales/folders/es.json +41 -0
- package/locales/folders/fa.json +40 -0
- package/locales/folders/fr.json +41 -0
- package/locales/folders/ha.json +40 -0
- package/locales/folders/he.json +41 -0
- package/locales/folders/hi.json +40 -0
- package/locales/folders/id.json +39 -0
- package/locales/folders/it.json +41 -0
- package/locales/folders/ja.json +39 -0
- package/locales/folders/ko.json +39 -0
- package/locales/folders/mr.json +40 -0
- package/locales/folders/ms.json +39 -0
- package/locales/folders/nl.json +40 -0
- package/locales/folders/pl.json +42 -0
- package/locales/folders/pt.json +41 -0
- package/locales/folders/ru.json +42 -0
- package/locales/folders/sw.json +40 -0
- package/locales/folders/ta.json +40 -0
- package/locales/folders/te.json +40 -0
- package/locales/folders/th.json +39 -0
- package/locales/folders/tl.json +40 -0
- package/locales/folders/tr.json +40 -0
- package/locales/folders/uk.json +42 -0
- package/locales/folders/ur.json +40 -0
- package/locales/folders/vi.json +39 -0
- package/locales/folders/yo.json +39 -0
- package/locales/folders/zh-Hans.json +39 -0
- package/locales/folders/zh-Hant.json +39 -0
- package/locales/fr.json +403 -0
- package/locales/ha.json +395 -0
- package/locales/he.json +410 -0
- package/locales/hi.json +395 -0
- package/locales/id.json +387 -0
- package/locales/interactive/am.json +7 -0
- package/locales/interactive/ar.json +7 -0
- package/locales/interactive/bn.json +7 -0
- package/locales/interactive/de.json +7 -0
- package/locales/interactive/en.json +7 -0
- package/locales/interactive/es.json +7 -0
- package/locales/interactive/fa.json +7 -0
- package/locales/interactive/fr.json +7 -0
- package/locales/interactive/ha.json +7 -0
- package/locales/interactive/he.json +7 -0
- package/locales/interactive/hi.json +7 -0
- package/locales/interactive/id.json +7 -0
- package/locales/interactive/it.json +7 -0
- package/locales/interactive/ja.json +7 -0
- package/locales/interactive/ko.json +7 -0
- package/locales/interactive/mr.json +7 -0
- package/locales/interactive/ms.json +7 -0
- package/locales/interactive/nl.json +7 -0
- package/locales/interactive/pl.json +7 -0
- package/locales/interactive/pt.json +7 -0
- package/locales/interactive/ru.json +7 -0
- package/locales/interactive/sw.json +7 -0
- package/locales/interactive/ta.json +7 -0
- package/locales/interactive/te.json +7 -0
- package/locales/interactive/th.json +7 -0
- package/locales/interactive/tl.json +7 -0
- package/locales/interactive/tr.json +7 -0
- package/locales/interactive/uk.json +7 -0
- package/locales/interactive/ur.json +7 -0
- package/locales/interactive/vi.json +7 -0
- package/locales/interactive/yo.json +7 -0
- package/locales/interactive/zh-Hans.json +7 -0
- package/locales/interactive/zh-Hant.json +7 -0
- package/locales/it.json +403 -0
- package/locales/ja.json +387 -0
- package/locales/ko.json +387 -0
- package/locales/layouts/am.json +9 -0
- package/locales/layouts/ar.json +9 -0
- package/locales/layouts/bn.json +9 -0
- package/locales/layouts/de.json +9 -0
- package/locales/layouts/en.json +9 -0
- package/locales/layouts/es.json +9 -0
- package/locales/layouts/fa.json +9 -0
- package/locales/layouts/fr.json +9 -0
- package/locales/layouts/ha.json +9 -0
- package/locales/layouts/he.json +9 -0
- package/locales/layouts/hi.json +9 -0
- package/locales/layouts/id.json +9 -0
- package/locales/layouts/it.json +9 -0
- package/locales/layouts/ja.json +9 -0
- package/locales/layouts/ko.json +9 -0
- package/locales/layouts/mr.json +9 -0
- package/locales/layouts/ms.json +9 -0
- package/locales/layouts/nl.json +9 -0
- package/locales/layouts/pl.json +9 -0
- package/locales/layouts/pt.json +9 -0
- package/locales/layouts/ru.json +9 -0
- package/locales/layouts/sw.json +9 -0
- package/locales/layouts/ta.json +9 -0
- package/locales/layouts/te.json +9 -0
- package/locales/layouts/th.json +9 -0
- package/locales/layouts/tl.json +9 -0
- package/locales/layouts/tr.json +9 -0
- package/locales/layouts/uk.json +9 -0
- package/locales/layouts/ur.json +9 -0
- package/locales/layouts/vi.json +9 -0
- package/locales/layouts/yo.json +9 -0
- package/locales/layouts/zh-Hans.json +9 -0
- package/locales/layouts/zh-Hant.json +9 -0
- package/locales/lock/am.json +32 -0
- package/locales/lock/ar.json +32 -0
- package/locales/lock/bn.json +32 -0
- package/locales/lock/de.json +32 -0
- package/locales/lock/en.json +32 -0
- package/locales/lock/es.json +32 -0
- package/locales/lock/fa.json +32 -0
- package/locales/lock/fr.json +32 -0
- package/locales/lock/ha.json +32 -0
- package/locales/lock/he.json +32 -0
- package/locales/lock/hi.json +32 -0
- package/locales/lock/id.json +32 -0
- package/locales/lock/it.json +32 -0
- package/locales/lock/ja.json +32 -0
- package/locales/lock/ko.json +32 -0
- package/locales/lock/mr.json +32 -0
- package/locales/lock/ms.json +32 -0
- package/locales/lock/nl.json +32 -0
- package/locales/lock/pl.json +32 -0
- package/locales/lock/pt.json +32 -0
- package/locales/lock/ru.json +32 -0
- package/locales/lock/sw.json +32 -0
- package/locales/lock/ta.json +32 -0
- package/locales/lock/te.json +32 -0
- package/locales/lock/th.json +32 -0
- package/locales/lock/tl.json +32 -0
- package/locales/lock/tr.json +32 -0
- package/locales/lock/uk.json +32 -0
- package/locales/lock/ur.json +32 -0
- package/locales/lock/vi.json +32 -0
- package/locales/lock/yo.json +32 -0
- package/locales/lock/zh-Hans.json +32 -0
- package/locales/lock/zh-Hant.json +32 -0
- package/locales/machine/am.json +19 -0
- package/locales/machine/ar.json +19 -0
- package/locales/machine/bn.json +19 -0
- package/locales/machine/de.json +19 -0
- package/locales/machine/en.json +19 -0
- package/locales/machine/es.json +19 -0
- package/locales/machine/fa.json +19 -0
- package/locales/machine/fr.json +19 -0
- package/locales/machine/ha.json +19 -0
- package/locales/machine/he.json +19 -0
- package/locales/machine/hi.json +19 -0
- package/locales/machine/id.json +19 -0
- package/locales/machine/it.json +19 -0
- package/locales/machine/ja.json +19 -0
- package/locales/machine/ko.json +19 -0
- package/locales/machine/mr.json +19 -0
- package/locales/machine/ms.json +19 -0
- package/locales/machine/nl.json +19 -0
- package/locales/machine/pl.json +19 -0
- package/locales/machine/pt.json +19 -0
- package/locales/machine/ru.json +19 -0
- package/locales/machine/sw.json +19 -0
- package/locales/machine/ta.json +19 -0
- package/locales/machine/te.json +19 -0
- package/locales/machine/th.json +19 -0
- package/locales/machine/tl.json +19 -0
- package/locales/machine/tr.json +19 -0
- package/locales/machine/uk.json +19 -0
- package/locales/machine/ur.json +19 -0
- package/locales/machine/vi.json +19 -0
- package/locales/machine/yo.json +19 -0
- package/locales/machine/zh-Hans.json +19 -0
- package/locales/machine/zh-Hant.json +19 -0
- package/locales/made/am.json +16 -0
- package/locales/made/ar.json +16 -0
- package/locales/made/bn.json +16 -0
- package/locales/made/de.json +16 -0
- package/locales/made/en.json +16 -0
- package/locales/made/es.json +16 -0
- package/locales/made/fa.json +16 -0
- package/locales/made/fr.json +16 -0
- package/locales/made/ha.json +16 -0
- package/locales/made/he.json +16 -0
- package/locales/made/hi.json +16 -0
- package/locales/made/id.json +16 -0
- package/locales/made/it.json +16 -0
- package/locales/made/ja.json +16 -0
- package/locales/made/ko.json +16 -0
- package/locales/made/mr.json +16 -0
- package/locales/made/ms.json +16 -0
- package/locales/made/nl.json +16 -0
- package/locales/made/pl.json +16 -0
- package/locales/made/pt.json +16 -0
- package/locales/made/ru.json +16 -0
- package/locales/made/sw.json +16 -0
- package/locales/made/ta.json +16 -0
- package/locales/made/te.json +16 -0
- package/locales/made/th.json +16 -0
- package/locales/made/tl.json +16 -0
- package/locales/made/tr.json +16 -0
- package/locales/made/uk.json +16 -0
- package/locales/made/ur.json +16 -0
- package/locales/made/vi.json +16 -0
- package/locales/made/yo.json +16 -0
- package/locales/made/zh-Hans.json +16 -0
- package/locales/made/zh-Hant.json +16 -0
- package/locales/mr.json +395 -0
- package/locales/ms.json +387 -0
- package/locales/nl.json +395 -0
- package/locales/notifications/am.json +6 -0
- package/locales/notifications/ar.json +6 -0
- package/locales/notifications/bn.json +6 -0
- package/locales/notifications/de.json +6 -0
- package/locales/notifications/en.json +6 -0
- package/locales/notifications/es.json +6 -0
- package/locales/notifications/fa.json +6 -0
- package/locales/notifications/fr.json +6 -0
- package/locales/notifications/ha.json +6 -0
- package/locales/notifications/he.json +6 -0
- package/locales/notifications/hi.json +6 -0
- package/locales/notifications/id.json +6 -0
- package/locales/notifications/it.json +6 -0
- package/locales/notifications/ja.json +6 -0
- package/locales/notifications/ko.json +6 -0
- package/locales/notifications/mr.json +6 -0
- package/locales/notifications/ms.json +6 -0
- package/locales/notifications/nl.json +6 -0
- package/locales/notifications/pl.json +6 -0
- package/locales/notifications/pt.json +6 -0
- package/locales/notifications/ru.json +6 -0
- package/locales/notifications/sw.json +6 -0
- package/locales/notifications/ta.json +6 -0
- package/locales/notifications/te.json +6 -0
- package/locales/notifications/th.json +6 -0
- package/locales/notifications/tl.json +6 -0
- package/locales/notifications/tr.json +6 -0
- package/locales/notifications/uk.json +6 -0
- package/locales/notifications/ur.json +6 -0
- package/locales/notifications/vi.json +6 -0
- package/locales/notifications/yo.json +6 -0
- package/locales/notifications/zh-Hans.json +6 -0
- package/locales/notifications/zh-Hant.json +6 -0
- package/locales/pictures/am.json +36 -0
- package/locales/pictures/ar.json +36 -0
- package/locales/pictures/bn.json +36 -0
- package/locales/pictures/de.json +36 -0
- package/locales/pictures/en.json +36 -0
- package/locales/pictures/es.json +36 -0
- package/locales/pictures/fa.json +36 -0
- package/locales/pictures/fr.json +36 -0
- package/locales/pictures/ha.json +36 -0
- package/locales/pictures/he.json +36 -0
- package/locales/pictures/hi.json +36 -0
- package/locales/pictures/id.json +36 -0
- package/locales/pictures/it.json +36 -0
- package/locales/pictures/ja.json +36 -0
- package/locales/pictures/ko.json +36 -0
- package/locales/pictures/mr.json +36 -0
- package/locales/pictures/ms.json +36 -0
- package/locales/pictures/nl.json +36 -0
- package/locales/pictures/pl.json +36 -0
- package/locales/pictures/pt.json +36 -0
- package/locales/pictures/ru.json +36 -0
- package/locales/pictures/sw.json +36 -0
- package/locales/pictures/ta.json +36 -0
- package/locales/pictures/te.json +36 -0
- package/locales/pictures/th.json +36 -0
- package/locales/pictures/tl.json +36 -0
- package/locales/pictures/tr.json +36 -0
- package/locales/pictures/uk.json +36 -0
- package/locales/pictures/ur.json +36 -0
- package/locales/pictures/vi.json +36 -0
- package/locales/pictures/yo.json +36 -0
- package/locales/pictures/zh-Hans.json +36 -0
- package/locales/pictures/zh-Hant.json +36 -0
- package/locales/pl.json +411 -0
- package/locales/plan/am.json +13 -0
- package/locales/plan/ar.json +13 -0
- package/locales/plan/bn.json +13 -0
- package/locales/plan/de.json +13 -0
- package/locales/plan/en.json +13 -0
- package/locales/plan/es.json +13 -0
- package/locales/plan/fa.json +13 -0
- package/locales/plan/fr.json +13 -0
- package/locales/plan/ha.json +13 -0
- package/locales/plan/he.json +13 -0
- package/locales/plan/hi.json +13 -0
- package/locales/plan/id.json +13 -0
- package/locales/plan/it.json +13 -0
- package/locales/plan/ja.json +13 -0
- package/locales/plan/ko.json +13 -0
- package/locales/plan/mr.json +13 -0
- package/locales/plan/ms.json +13 -0
- package/locales/plan/nl.json +13 -0
- package/locales/plan/pl.json +13 -0
- package/locales/plan/pt.json +13 -0
- package/locales/plan/ru.json +13 -0
- package/locales/plan/sw.json +13 -0
- package/locales/plan/ta.json +13 -0
- package/locales/plan/te.json +13 -0
- package/locales/plan/th.json +13 -0
- package/locales/plan/tl.json +13 -0
- package/locales/plan/tr.json +13 -0
- package/locales/plan/uk.json +13 -0
- package/locales/plan/ur.json +13 -0
- package/locales/plan/vi.json +13 -0
- package/locales/plan/yo.json +13 -0
- package/locales/plan/zh-Hans.json +13 -0
- package/locales/plan/zh-Hant.json +13 -0
- package/locales/plugins/am.json +40 -0
- package/locales/plugins/ar.json +40 -0
- package/locales/plugins/bn.json +40 -0
- package/locales/plugins/de.json +40 -0
- package/locales/plugins/en.json +40 -0
- package/locales/plugins/es.json +40 -0
- package/locales/plugins/fa.json +40 -0
- package/locales/plugins/fr.json +40 -0
- package/locales/plugins/ha.json +40 -0
- package/locales/plugins/he.json +40 -0
- package/locales/plugins/hi.json +40 -0
- package/locales/plugins/id.json +40 -0
- package/locales/plugins/it.json +40 -0
- package/locales/plugins/ja.json +40 -0
- package/locales/plugins/ko.json +40 -0
- package/locales/plugins/mr.json +40 -0
- package/locales/plugins/ms.json +40 -0
- package/locales/plugins/nl.json +40 -0
- package/locales/plugins/pl.json +40 -0
- package/locales/plugins/pt.json +40 -0
- package/locales/plugins/ru.json +40 -0
- package/locales/plugins/sw.json +40 -0
- package/locales/plugins/ta.json +40 -0
- package/locales/plugins/te.json +40 -0
- package/locales/plugins/th.json +40 -0
- package/locales/plugins/tl.json +40 -0
- package/locales/plugins/tr.json +40 -0
- package/locales/plugins/uk.json +40 -0
- package/locales/plugins/ur.json +40 -0
- package/locales/plugins/vi.json +40 -0
- package/locales/plugins/yo.json +40 -0
- package/locales/plugins/zh-Hans.json +40 -0
- package/locales/plugins/zh-Hant.json +40 -0
- package/locales/policy/am.json +39 -0
- package/locales/policy/ar.json +39 -0
- package/locales/policy/bn.json +39 -0
- package/locales/policy/de.json +39 -0
- package/locales/policy/en.json +39 -0
- package/locales/policy/es.json +39 -0
- package/locales/policy/fa.json +39 -0
- package/locales/policy/fr.json +39 -0
- package/locales/policy/ha.json +39 -0
- package/locales/policy/he.json +39 -0
- package/locales/policy/hi.json +39 -0
- package/locales/policy/id.json +39 -0
- package/locales/policy/it.json +39 -0
- package/locales/policy/ja.json +39 -0
- package/locales/policy/ko.json +39 -0
- package/locales/policy/mr.json +39 -0
- package/locales/policy/ms.json +39 -0
- package/locales/policy/nl.json +39 -0
- package/locales/policy/pl.json +39 -0
- package/locales/policy/pt.json +39 -0
- package/locales/policy/ru.json +39 -0
- package/locales/policy/sw.json +39 -0
- package/locales/policy/ta.json +39 -0
- package/locales/policy/te.json +39 -0
- package/locales/policy/th.json +39 -0
- package/locales/policy/tl.json +39 -0
- package/locales/policy/tr.json +39 -0
- package/locales/policy/uk.json +39 -0
- package/locales/policy/ur.json +39 -0
- package/locales/policy/vi.json +39 -0
- package/locales/policy/yo.json +39 -0
- package/locales/policy/zh-Hans.json +39 -0
- package/locales/policy/zh-Hant.json +39 -0
- package/locales/profiles/am.json +59 -0
- package/locales/profiles/ar.json +59 -0
- package/locales/profiles/bn.json +59 -0
- package/locales/profiles/de.json +59 -0
- package/locales/profiles/en.json +59 -0
- package/locales/profiles/es.json +59 -0
- package/locales/profiles/fa.json +59 -0
- package/locales/profiles/fr.json +59 -0
- package/locales/profiles/ha.json +59 -0
- package/locales/profiles/he.json +59 -0
- package/locales/profiles/hi.json +59 -0
- package/locales/profiles/id.json +59 -0
- package/locales/profiles/it.json +59 -0
- package/locales/profiles/ja.json +59 -0
- package/locales/profiles/ko.json +59 -0
- package/locales/profiles/mr.json +59 -0
- package/locales/profiles/ms.json +59 -0
- package/locales/profiles/nl.json +59 -0
- package/locales/profiles/pl.json +59 -0
- package/locales/profiles/pt.json +59 -0
- package/locales/profiles/ru.json +59 -0
- package/locales/profiles/sw.json +59 -0
- package/locales/profiles/ta.json +59 -0
- package/locales/profiles/te.json +59 -0
- package/locales/profiles/th.json +59 -0
- package/locales/profiles/tl.json +59 -0
- package/locales/profiles/tr.json +59 -0
- package/locales/profiles/uk.json +59 -0
- package/locales/profiles/ur.json +59 -0
- package/locales/profiles/vi.json +59 -0
- package/locales/profiles/yo.json +59 -0
- package/locales/profiles/zh-Hans.json +59 -0
- package/locales/profiles/zh-Hant.json +59 -0
- package/locales/pt.json +403 -0
- package/locales/receipt/am.json +39 -0
- package/locales/receipt/ar.json +39 -0
- package/locales/receipt/bn.json +39 -0
- package/locales/receipt/de.json +39 -0
- package/locales/receipt/en.json +39 -0
- package/locales/receipt/es.json +39 -0
- package/locales/receipt/fa.json +39 -0
- package/locales/receipt/fr.json +39 -0
- package/locales/receipt/ha.json +39 -0
- package/locales/receipt/he.json +39 -0
- package/locales/receipt/hi.json +39 -0
- package/locales/receipt/id.json +39 -0
- package/locales/receipt/it.json +39 -0
- package/locales/receipt/ja.json +39 -0
- package/locales/receipt/ko.json +39 -0
- package/locales/receipt/mr.json +39 -0
- package/locales/receipt/ms.json +39 -0
- package/locales/receipt/nl.json +39 -0
- package/locales/receipt/pl.json +39 -0
- package/locales/receipt/pt.json +39 -0
- package/locales/receipt/ru.json +39 -0
- package/locales/receipt/sw.json +39 -0
- package/locales/receipt/ta.json +39 -0
- package/locales/receipt/te.json +39 -0
- package/locales/receipt/th.json +39 -0
- package/locales/receipt/tl.json +39 -0
- package/locales/receipt/tr.json +39 -0
- package/locales/receipt/uk.json +39 -0
- package/locales/receipt/ur.json +39 -0
- package/locales/receipt/vi.json +39 -0
- package/locales/receipt/yo.json +39 -0
- package/locales/receipt/zh-Hans.json +39 -0
- package/locales/receipt/zh-Hant.json +39 -0
- package/locales/ru.json +411 -0
- package/locales/scores/am.json +8 -0
- package/locales/scores/ar.json +8 -0
- package/locales/scores/bn.json +8 -0
- package/locales/scores/de.json +8 -0
- package/locales/scores/en.json +8 -0
- package/locales/scores/es.json +8 -0
- package/locales/scores/fa.json +8 -0
- package/locales/scores/fr.json +8 -0
- package/locales/scores/ha.json +8 -0
- package/locales/scores/he.json +8 -0
- package/locales/scores/hi.json +8 -0
- package/locales/scores/id.json +8 -0
- package/locales/scores/it.json +8 -0
- package/locales/scores/ja.json +8 -0
- package/locales/scores/ko.json +8 -0
- package/locales/scores/mr.json +8 -0
- package/locales/scores/ms.json +8 -0
- package/locales/scores/nl.json +8 -0
- package/locales/scores/pl.json +8 -0
- package/locales/scores/pt.json +8 -0
- package/locales/scores/ru.json +8 -0
- package/locales/scores/sw.json +8 -0
- package/locales/scores/ta.json +8 -0
- package/locales/scores/te.json +8 -0
- package/locales/scores/th.json +8 -0
- package/locales/scores/tl.json +8 -0
- package/locales/scores/tr.json +8 -0
- package/locales/scores/uk.json +8 -0
- package/locales/scores/ur.json +8 -0
- package/locales/scores/vi.json +8 -0
- package/locales/scores/yo.json +8 -0
- package/locales/scores/zh-Hans.json +8 -0
- package/locales/scores/zh-Hant.json +8 -0
- package/locales/search/am.json +26 -0
- package/locales/search/ar.json +34 -0
- package/locales/search/bn.json +26 -0
- package/locales/search/de.json +26 -0
- package/locales/search/en.json +26 -0
- package/locales/search/es.json +28 -0
- package/locales/search/fa.json +26 -0
- package/locales/search/fr.json +28 -0
- package/locales/search/ha.json +26 -0
- package/locales/search/he.json +30 -0
- package/locales/search/hi.json +26 -0
- package/locales/search/id.json +24 -0
- package/locales/search/it.json +28 -0
- package/locales/search/ja.json +24 -0
- package/locales/search/ko.json +24 -0
- package/locales/search/mr.json +26 -0
- package/locales/search/ms.json +24 -0
- package/locales/search/nl.json +26 -0
- package/locales/search/pl.json +30 -0
- package/locales/search/pt.json +28 -0
- package/locales/search/ru.json +30 -0
- package/locales/search/sw.json +26 -0
- package/locales/search/ta.json +26 -0
- package/locales/search/te.json +26 -0
- package/locales/search/th.json +24 -0
- package/locales/search/tl.json +26 -0
- package/locales/search/tr.json +26 -0
- package/locales/search/uk.json +30 -0
- package/locales/search/ur.json +26 -0
- package/locales/search/vi.json +24 -0
- package/locales/search/yo.json +24 -0
- package/locales/search/zh-Hans.json +24 -0
- package/locales/search/zh-Hant.json +24 -0
- package/locales/share/am.json +61 -0
- package/locales/share/ar.json +65 -0
- package/locales/share/bn.json +61 -0
- package/locales/share/de.json +61 -0
- package/locales/share/en.json +61 -0
- package/locales/share/es.json +62 -0
- package/locales/share/fa.json +61 -0
- package/locales/share/fr.json +62 -0
- package/locales/share/ha.json +61 -0
- package/locales/share/he.json +62 -0
- package/locales/share/hi.json +61 -0
- package/locales/share/id.json +60 -0
- package/locales/share/it.json +62 -0
- package/locales/share/ja.json +60 -0
- package/locales/share/ko.json +60 -0
- package/locales/share/mr.json +61 -0
- package/locales/share/ms.json +60 -0
- package/locales/share/nl.json +61 -0
- package/locales/share/pl.json +63 -0
- package/locales/share/pt.json +62 -0
- package/locales/share/ru.json +63 -0
- package/locales/share/sw.json +61 -0
- package/locales/share/ta.json +61 -0
- package/locales/share/te.json +61 -0
- package/locales/share/th.json +60 -0
- package/locales/share/tl.json +61 -0
- package/locales/share/tr.json +61 -0
- package/locales/share/uk.json +63 -0
- package/locales/share/ur.json +61 -0
- package/locales/share/vi.json +60 -0
- package/locales/share/yo.json +60 -0
- package/locales/share/zh-Hans.json +60 -0
- package/locales/share/zh-Hant.json +60 -0
- package/locales/signin/am.json +6 -0
- package/locales/signin/ar.json +6 -0
- package/locales/signin/bn.json +6 -0
- package/locales/signin/de.json +6 -0
- package/locales/signin/en.json +6 -0
- package/locales/signin/es.json +6 -0
- package/locales/signin/fa.json +6 -0
- package/locales/signin/fr.json +6 -0
- package/locales/signin/ha.json +6 -0
- package/locales/signin/he.json +6 -0
- package/locales/signin/hi.json +6 -0
- package/locales/signin/id.json +6 -0
- package/locales/signin/it.json +6 -0
- package/locales/signin/ja.json +6 -0
- package/locales/signin/ko.json +6 -0
- package/locales/signin/mr.json +6 -0
- package/locales/signin/ms.json +6 -0
- package/locales/signin/nl.json +6 -0
- package/locales/signin/pl.json +6 -0
- package/locales/signin/pt.json +6 -0
- package/locales/signin/ru.json +6 -0
- package/locales/signin/sw.json +6 -0
- package/locales/signin/ta.json +6 -0
- package/locales/signin/te.json +6 -0
- package/locales/signin/th.json +6 -0
- package/locales/signin/tl.json +6 -0
- package/locales/signin/tr.json +6 -0
- package/locales/signin/uk.json +6 -0
- package/locales/signin/ur.json +6 -0
- package/locales/signin/vi.json +6 -0
- package/locales/signin/yo.json +6 -0
- package/locales/signin/zh-Hans.json +6 -0
- package/locales/signin/zh-Hant.json +6 -0
- package/locales/slides/am.json +10 -0
- package/locales/slides/ar.json +10 -0
- package/locales/slides/bn.json +10 -0
- package/locales/slides/de.json +10 -0
- package/locales/slides/en.json +10 -0
- package/locales/slides/es.json +10 -0
- package/locales/slides/fa.json +10 -0
- package/locales/slides/fr.json +10 -0
- package/locales/slides/ha.json +10 -0
- package/locales/slides/he.json +10 -0
- package/locales/slides/hi.json +10 -0
- package/locales/slides/id.json +10 -0
- package/locales/slides/it.json +10 -0
- package/locales/slides/ja.json +10 -0
- package/locales/slides/ko.json +10 -0
- package/locales/slides/mr.json +10 -0
- package/locales/slides/ms.json +10 -0
- package/locales/slides/nl.json +10 -0
- package/locales/slides/pl.json +10 -0
- package/locales/slides/pt.json +10 -0
- package/locales/slides/ru.json +10 -0
- package/locales/slides/sw.json +10 -0
- package/locales/slides/ta.json +10 -0
- package/locales/slides/te.json +10 -0
- package/locales/slides/th.json +10 -0
- package/locales/slides/tl.json +10 -0
- package/locales/slides/tr.json +10 -0
- package/locales/slides/uk.json +10 -0
- package/locales/slides/ur.json +10 -0
- package/locales/slides/vi.json +10 -0
- package/locales/slides/yo.json +10 -0
- package/locales/slides/zh-Hans.json +10 -0
- package/locales/slides/zh-Hant.json +10 -0
- package/locales/sw.json +395 -0
- package/locales/sync/am.json +13 -0
- package/locales/sync/ar.json +13 -0
- package/locales/sync/bn.json +13 -0
- package/locales/sync/de.json +13 -0
- package/locales/sync/en.json +13 -0
- package/locales/sync/es.json +13 -0
- package/locales/sync/fa.json +13 -0
- package/locales/sync/fr.json +13 -0
- package/locales/sync/ha.json +13 -0
- package/locales/sync/he.json +13 -0
- package/locales/sync/hi.json +13 -0
- package/locales/sync/id.json +13 -0
- package/locales/sync/it.json +13 -0
- package/locales/sync/ja.json +13 -0
- package/locales/sync/ko.json +13 -0
- package/locales/sync/mr.json +13 -0
- package/locales/sync/ms.json +13 -0
- package/locales/sync/nl.json +13 -0
- package/locales/sync/pl.json +13 -0
- package/locales/sync/pt.json +13 -0
- package/locales/sync/ru.json +13 -0
- package/locales/sync/sw.json +13 -0
- package/locales/sync/ta.json +13 -0
- package/locales/sync/te.json +13 -0
- package/locales/sync/th.json +13 -0
- package/locales/sync/tl.json +13 -0
- package/locales/sync/tr.json +13 -0
- package/locales/sync/uk.json +13 -0
- package/locales/sync/ur.json +13 -0
- package/locales/sync/vi.json +13 -0
- package/locales/sync/yo.json +13 -0
- package/locales/sync/zh-Hans.json +13 -0
- package/locales/sync/zh-Hant.json +13 -0
- package/locales/ta.json +395 -0
- package/locales/te.json +395 -0
- package/locales/th.json +387 -0
- package/locales/tl.json +395 -0
- package/locales/tr.json +395 -0
- package/locales/uk.json +411 -0
- package/locales/ur.json +395 -0
- package/locales/vi.json +387 -0
- package/locales/yo.json +387 -0
- package/locales/zh-Hans.json +387 -0
- package/locales/zh-Hant.json +387 -0
- package/package.json +9 -4
- package/preview.html +75 -0
- package/ui/caps.js +148 -0
- package/ui/csp.js +82 -0
- package/ui/export.js +214 -0
- package/ui/icons.js +31 -0
- package/ui/looks/blueprint.css +72 -0
- package/ui/looks/classic.css +105 -0
- package/ui/looks/fjord.css +56 -0
- package/ui/looks/human.css +232 -0
- package/ui/looks/mail.css +61 -0
- package/ui/looks/minimal.css +62 -0
- package/ui/looks/mondrian.css +90 -0
- package/ui/looks/neon.css +100 -0
- package/ui/looks/notebook.css +82 -0
- package/ui/looks/paper.css +51 -0
- package/ui/looks/swiss.css +64 -0
- package/ui/looks/terminal.css +84 -0
- package/ui/looks/tilde.css +61 -0
- package/ui/looks/velvet.css +61 -0
- package/ui/markdown.js +188 -0
- package/ui/menu-icons.js +66 -0
- package/ui/model.js +74 -0
- package/ui/reader-state.js +38 -0
- package/ui/reader.js +68 -0
- package/ui/save.js +53 -0
- package/ui/sheet.js +13 -0
- package/ui/style.css +814 -0
- package/ui/trusted.js +13 -0
- package/ui/weights.js +37 -0
- package/vendor/LICENSES/abcjs.txt +21 -0
- package/vendor/LICENSES/base64-js.txt +21 -0
- package/vendor/LICENSES/buffer.txt +21 -0
- package/vendor/LICENSES/diff.txt +29 -0
- package/vendor/LICENSES/echarts.txt +229 -0
- package/vendor/LICENSES/fflate.txt +21 -0
- package/vendor/LICENSES/huggingface-transformers.txt +202 -0
- package/vendor/LICENSES/ieee754.txt +11 -0
- package/vendor/LICENSES/jean-is-sounds.txt +92 -0
- package/vendor/LICENSES/jitl-quickjs-ffi-types.txt +21 -0
- package/vendor/LICENSES/jitl-quickjs-wasmfile-release-sync.txt +47 -0
- package/vendor/LICENSES/just-bash.txt +201 -0
- package/vendor/LICENSES/lit-html.txt +28 -0
- package/vendor/LICENSES/maplibre-gl.txt +2 -0
- package/vendor/LICENSES/marked.txt +44 -0
- package/vendor/LICENSES/onnxruntime-web.txt +2 -0
- package/vendor/LICENSES/pdfjs-dist.txt +177 -0
- package/vendor/LICENSES/preact-signals-core.txt +21 -0
- package/vendor/LICENSES/pyodide.txt +2 -0
- package/vendor/LICENSES/quickjs-emscripten-core.txt +21 -0
- package/vendor/LICENSES/silurus-ooxml.txt +21 -0
- package/vendor/LICENSES/spessasynth_core.txt +202 -0
- package/vendor/LICENSES/sprintf-js.txt +24 -0
- package/vendor/LICENSES/stb-vorbis.txt +202 -0
- package/vendor/LICENSES/temml.txt +21 -0
- package/vendor/LICENSES/turndown.txt +21 -0
- package/vendor/LICENSES/zrender.txt +29 -0
- package/vendor/abcjs/abcjs.mjs +6 -0
- package/vendor/echarts/echarts.mjs +45 -0
- package/vendor/lit-html/async-directive.js +6 -0
- package/vendor/lit-html/directive-helpers.js +6 -0
- package/vendor/lit-html/directive.js +6 -0
- package/vendor/lit-html/directives/ref.js +6 -0
- package/vendor/lit-html/lit-html.js +6 -0
- package/vendor/maplibre/maplibre-gl-worker.js +9 -0
- package/vendor/maplibre/maplibre-gl.css +1 -0
- package/vendor/maplibre/maplibre-gl.mjs +818 -0
- package/vendor/marked.esm.js +79 -0
- package/vendor/signals-core.mjs +1 -0
- package/vendor/spessasynth/spessasynth.mjs +20764 -0
- package/vendor/spessasynth/stb-vorbis.mjs +1 -0
- package/vendor/temml/Temml.woff2 +0 -0
- package/vendor/temml/temml.css +372 -0
- package/vendor/temml/temml.mjs +2 -0
package/core/loop.js
ADDED
|
@@ -0,0 +1,453 @@
|
|
|
1
|
+
// The agent loop: stream a reply, run tool calls under the rules, feed results
|
|
2
|
+
// back, repeat. Emits live ACP updates and persists settled records.
|
|
3
|
+
import { streamChat as defaultStream, LLMError } from './llm.js'
|
|
4
|
+
import { envelope } from './events.js'
|
|
5
|
+
import { signature } from './deferred.js'
|
|
6
|
+
import { isLocal } from './settings.js'
|
|
7
|
+
import { fire } from './hooks.js'
|
|
8
|
+
import { STRICT } from './rules.js'
|
|
9
|
+
import { estimateTokens } from './files.js'
|
|
10
|
+
|
|
11
|
+
/** @import { BrainConfig, ChatMessage, AcpUpdate, Envelope, ToolCall, ToolCallInfo, ToolSpec, RuleValue, Source, Usage } from './types.js' */
|
|
12
|
+
/** @typedef {'allow_once' | 'allow_always' | 'reject_once' | 'reject_always'} PermissionOption */
|
|
13
|
+
|
|
14
|
+
// A request that fails before anything of the answer came is asked again after these waits (D202),
|
|
15
|
+
// or after what the provider asks for, unless that is longer than LONGEST_WAIT.
|
|
16
|
+
const RETRIES = [1000, 2000, 4000]
|
|
17
|
+
const LONGEST_WAIT = 30_000
|
|
18
|
+
// A brain on this computer that thinks past this much, or a quarter of its window, is told to answer now; it reads again
|
|
19
|
+
// the end of what it thought, this many characters (D414).
|
|
20
|
+
const CEILING = 8000
|
|
21
|
+
const TAIL = 4000
|
|
22
|
+
const HURRY = 'hurry'
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* @typedef {Object} Tool
|
|
26
|
+
* @property {import('./types.js').ToolSpec} spec
|
|
27
|
+
* @property {import('./types.js').ToolKind} kind
|
|
28
|
+
* @property {boolean} [reserved] passwords, payments: never done by Jean
|
|
29
|
+
* @property {boolean} [hidden] never declared to the brain; scripts can call it (codemode, D48)
|
|
30
|
+
* @property {boolean} [deferred] not declared when a conversation starts: found with find_tools (connections, D47)
|
|
31
|
+
* @property {boolean} [off] turned off by the user: declared only where it was, and refused (D304)
|
|
32
|
+
* @property {boolean} [asks] waits for the user's answer when it runs (ask_user), so it is kept as pending meanwhile (D212)
|
|
33
|
+
* @property {boolean} [aside] a step whose calls are all such isn't counted against the turn's steps, one in a row at most (the plan, D364)
|
|
34
|
+
* @property {string} [service] whose it is: a connection's id, for the rules about it (D295)
|
|
35
|
+
* @property {(args: any) => string} title
|
|
36
|
+
* @property {(args: any) => import('./types.js').ToolCallLocation[]} [locations]
|
|
37
|
+
* @property {(args: any, ctx: ToolContext) => Promise<Check | void>} [check]
|
|
38
|
+
* before a call the rules don't refuse: what its card shows, and whether to ask even if they allow it (a change in the user's folder, D141)
|
|
39
|
+
* @property {(args: any, ctx: ToolContext) => Promise<string>} run
|
|
40
|
+
*/
|
|
41
|
+
|
|
42
|
+
/** @typedef {{ ask?: boolean, meta?: Record<string, any>, content?: import('./types.js').ToolCallContent[] }} Check */
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* @typedef {Object} ToolContext
|
|
46
|
+
* @property {AbortSignal} [signal]
|
|
47
|
+
* @property {BrainConfig} brain the brain the call is made for: what it brings in goes to it (D440)
|
|
48
|
+
* @property {string[]} declared tools the brain can call directly
|
|
49
|
+
* @property {(name: string, args: any) => Promise<string>} call a nested call, under the same rules
|
|
50
|
+
* @property {(names: string[]) => void} declare declares tools from the next request on (D47)
|
|
51
|
+
* @property {(sources: Source[]) => number[]} cite numbers what the result brings in, as the brain cites it
|
|
52
|
+
* @property {Record<string, any>} meta kept on the call's record (`_meta`), e.g. a picture it made
|
|
53
|
+
* @property {import('./types.js').ToolCallContent[]} content kept on the call's record before its result, e.g. the diff of a change (D141)
|
|
54
|
+
* @property {(update: Partial<ToolCallInfo>) => void} progress shown as it runs, never kept (D265)
|
|
55
|
+
* @property {(update: AcpUpdate) => void} update an ACP update of its own (a plan), shown at once and kept after the call, the latest of each kind (D364)
|
|
56
|
+
* @property {PermissionOption} [answer] what the user answered, when the call was asked
|
|
57
|
+
* @property {(child: Partial<TurnOptions>) => Promise<{ stopReason: string, text: string }>} turn
|
|
58
|
+
* a helper's turn: the same brain, rules and source numbers, its calls recorded under this one
|
|
59
|
+
*/
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* @typedef {Object} TurnOptions
|
|
63
|
+
* @property {BrainConfig} brain
|
|
64
|
+
* @property {string} [apiKey]
|
|
65
|
+
* @property {string} system
|
|
66
|
+
* @property {ChatMessage[]} history includes the new user message
|
|
67
|
+
* @property {Tool[] | (() => Tool[])} [tools] every tool that can be called, directly or from a script;
|
|
68
|
+
* a function is read again at each step, so a capability turned on mid-turn can be called
|
|
69
|
+
* @property {string[]} [declared] the ones the brain sees (default: all but hidden ones)
|
|
70
|
+
* @property {string} [label] shown on the brain entry
|
|
71
|
+
* @property {Record<string, any>} [meta] recorded on the brain entry (why Auto chose it)
|
|
72
|
+
* @property {number} [firstSource] the number the turn's first new source is cited by (D71)
|
|
73
|
+
* @property {Map<string, number>} [numbers] sources numbered so far: a helper shares its parent's
|
|
74
|
+
* @property {(kind: string, reserved: boolean) => RuleValue} [rule]
|
|
75
|
+
* @property {(request: { toolCall: ToolCallInfo, step: number }) => Promise<PermissionOption>} [askPermission]
|
|
76
|
+
* @property {(update: AcpUpdate, step: number) => void} [onUpdate] live, including deltas
|
|
77
|
+
* @property {(records: Envelope[]) => Promise<void>} [persist] settled records
|
|
78
|
+
* @property {AbortSignal} [signal]
|
|
79
|
+
* @property {{ step: number, calls: ToolCall[] } | null} [resume] calls a closed page left waiting for the user, run again in their step first (D212)
|
|
80
|
+
* @property {number} [maxSteps]
|
|
81
|
+
* @property {number[]} [retries] the waits before asking again, in ms (D202)
|
|
82
|
+
* @property {typeof defaultStream} [stream] injectable for tests
|
|
83
|
+
* @property {import('./hooks.js').Hook[] | (() => import('./hooks.js').Hook[])} [hooks] what the turn's events run through
|
|
84
|
+
* (core/hooks.js): turn.step, each request to the brain, and tool.check, whether a call runs
|
|
85
|
+
* @property {Record<string, unknown>} [about] what each of its events holds besides: its task, the kinds of note it came with, and in
|
|
86
|
+
* a helper's turn the call it works under (`parent`)
|
|
87
|
+
* @property {number} [window] how much the brain reads at most, in tokens: a turn with one may read on from a
|
|
88
|
+
* summary (turn.compact, D359); a helper's has none
|
|
89
|
+
* @property {Usage} [usage] what the brain last read and wrote in the conversation, before this turn
|
|
90
|
+
* @property {() => Envelope[]} [steer] what the user sent while the turn works, as their records, read before each step (D365);
|
|
91
|
+
* a helper's turn reads none
|
|
92
|
+
* @property {import('./types.js').Effort} [effort] how much the brain thinks, in each request (D414)
|
|
93
|
+
* @property {{ now?: () => void }} [hurry] set while the brain thinks: tells it to answer now (D414); a helper's turn has none
|
|
94
|
+
*/
|
|
95
|
+
|
|
96
|
+
/** @param {TurnOptions} options */
|
|
97
|
+
export async function runTurn(options) {
|
|
98
|
+
const {
|
|
99
|
+
brain, apiKey, system, label, meta, signal, maxSteps = 12, retries = RETRIES, stream = defaultStream,
|
|
100
|
+
rule = () => 'ask', askPermission = async () => 'reject_once',
|
|
101
|
+
onUpdate = () => {}, persist = async () => {},
|
|
102
|
+
} = options
|
|
103
|
+
const history = [...options.history]
|
|
104
|
+
const tools = () => (typeof options.tools === 'function' ? options.tools() : options.tools ?? [])
|
|
105
|
+
const declared = new Set(options.declared ?? tools().filter((tool) => !tool.hidden).map((tool) => tool.spec.name))
|
|
106
|
+
// Sources are numbered as they come in (one cited again keeps its number), and recorded in `meta`.
|
|
107
|
+
const numbers = options.numbers ?? new Map()
|
|
108
|
+
/** @param {Source[]} sources @param {Record<string, any>} meta */
|
|
109
|
+
const cite = (sources, meta) => sources.map((source) => {
|
|
110
|
+
const key = source.url ?? source.title
|
|
111
|
+
if (!numbers.has(key)) (meta.sources ??= []).push({ ...source, n: numbers.set(key, numbers.size + (options.firstSource ?? 1)).get(key) })
|
|
112
|
+
return /** @type {number} */ (numbers.get(key))
|
|
113
|
+
})
|
|
114
|
+
/** @type {(name: string, e: Record<string, unknown>, behaviour: (e: any) => any) => Promise<any>} */
|
|
115
|
+
const on = (name, e, behaviour) => fire(typeof options.hooks === 'function' ? options.hooks() : options.hooks ?? [], name, { ...options.about, ...e }, behaviour)
|
|
116
|
+
const ctx = { rule, askPermission, onUpdate, persist, signal, on, byName: new Map(tools().map((tool) => [tool.spec.name, tool])), declared, tools, cite, options, numbers }
|
|
117
|
+
const usage = { inputTokens: 0, outputTokens: 0, cacheReadTokens: 0 }
|
|
118
|
+
// A step's calls, in order. One waiting for the user's answer is kept as pending meanwhile, with those after it, so a
|
|
119
|
+
// page closed before the answer asks again when the conversation opens (D212).
|
|
120
|
+
const runCalls = async (/** @type {ToolCall[]} */ calls, /** @type {number} */ step) => {
|
|
121
|
+
for (const [i, call] of calls.entries()) {
|
|
122
|
+
// A deferred tool called by the name <connections> gives it runs all the same (D104); a hidden one stays for scripts.
|
|
123
|
+
const tool = ctx.byName.get(call.name)
|
|
124
|
+
const waiting = (/** @type {ToolCallInfo} */ info) => persist(calls.slice(i).map((next, j) => envelope('jean', { sessionUpdate: 'tool_call', status: 'pending',
|
|
125
|
+
...(j ? { toolCallId: next.id, name: next.name, title: next.name, rawInput: next.args } : { ...info, _meta: { ...info._meta, waiting: true } }) }, step)))
|
|
126
|
+
const result = await runTool(call, declared.has(call.name) || !tool?.hidden ? tool : undefined, step, ctx, undefined, waiting)
|
|
127
|
+
history.push({ role: 'tool', toolCallId: call.id, name: call.name, content: result.output, ...(result.failed && { isError: true }) })
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
// What the brain last read and wrote: how far into its window the conversation is (D359).
|
|
131
|
+
let last = options.usage
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* One request to the brain, asked again while it may pass (D202), its entry shown and kept with what it thought and
|
|
135
|
+
* wrote. A hook's own (a summary) keeps only its entry, `own` on it; what it wrote goes back to the hook.
|
|
136
|
+
* @param {number} step @param {ChatMessage[]} messages @param {ToolSpec[]} specs @param {Record<string, any>} [own]
|
|
137
|
+
*/
|
|
138
|
+
const request = async (step, messages, specs, own) => {
|
|
139
|
+
const started = Date.now()
|
|
140
|
+
// Whether it runs on this device, as its certificate says (D252).
|
|
141
|
+
/** @type {ToolCallInfo} */
|
|
142
|
+
const entry = { toolCallId: `brain-${step}-${started.toString(36)}${own ? '-own' : ''}`, title: label ?? brain.model, kind: 'think', status: 'in_progress', rawInput: { provider: brain.provider, model: brain.model, local: isLocal(brain), ...meta }, ...(own && { _meta: own }) }
|
|
143
|
+
onUpdate({ sessionUpdate: 'tool_call', ...entry }, step)
|
|
144
|
+
const shown = (/** @type {AcpUpdate} */ update) => own || onUpdate(update, step)
|
|
145
|
+
let text = ''
|
|
146
|
+
let thought = ''
|
|
147
|
+
const cited = /** @type {Record<string, any>} */ ({})
|
|
148
|
+
/** @type {import('./types.js').ToolCall[]} */
|
|
149
|
+
const calls = []
|
|
150
|
+
/** @type {Extract<import('./types.js').StreamEvent, { type: 'done' }> | null} */
|
|
151
|
+
let done = null
|
|
152
|
+
// Thinking at length, the brain may be told to answer now, by the user, or on this computer past its ceiling: it is
|
|
153
|
+
// asked again at once, lightly, from the end of what it thought, and only once (D414).
|
|
154
|
+
let [cut, hurried, thinking] = [new AbortController(), false, 0]
|
|
155
|
+
const ceiling = own || !isLocal(brain) ? Infinity : Math.min(CEILING, (options.window ?? Infinity) / 4)
|
|
156
|
+
const hurry = () => cut.abort(HURRY)
|
|
157
|
+
const stop = () => cut.abort()
|
|
158
|
+
signal?.addEventListener('abort', stop)
|
|
159
|
+
if (!own && options.hurry) options.hurry.now = hurry
|
|
160
|
+
try {
|
|
161
|
+
for (let attempt = 0, heard = false, summed = false; ; attempt++) {
|
|
162
|
+
try {
|
|
163
|
+
const asked = hurried ? { messages: [...messages, { role: /** @type {const} */ ('user'), content: answerNow(thought) }], effort: /** @type {const} */ ('low') } : { messages, effort: options.effort }
|
|
164
|
+
// A hook may send the step elsewhere, or answer it itself (the device's brain); it never sees the key.
|
|
165
|
+
for await (const event of await on('turn.step', { step, brain, system, ...asked, tools: specs, signal: cut.signal }, (e) => stream({ ...e, apiKey }))) {
|
|
166
|
+
if (cut.signal.aborted) throw new LLMError('Request aborted', { code: 'aborted' })
|
|
167
|
+
heard = true
|
|
168
|
+
if (event.type === 'text') {
|
|
169
|
+
text += event.delta
|
|
170
|
+
shown({ sessionUpdate: 'agent_message_chunk', content: { type: 'text', text: event.delta } })
|
|
171
|
+
} else if (event.type === 'thinking') {
|
|
172
|
+
thought += event.delta
|
|
173
|
+
shown({ sessionUpdate: 'agent_thought_chunk', content: { type: 'text', text: event.delta } })
|
|
174
|
+
if (!text && (thinking += estimateTokens(event.delta)) > ceiling) hurry()
|
|
175
|
+
} else if (event.type === 'cite' && !own) {
|
|
176
|
+
// The brain's own search cites pages after what it just wrote.
|
|
177
|
+
const marks = ` [${[...new Set(cite(event.sources, cited))].join(', ')}]`
|
|
178
|
+
text += marks
|
|
179
|
+
shown({ sessionUpdate: 'agent_message_chunk', content: { type: 'text', text: marks } })
|
|
180
|
+
} else if (event.type === 'tool_call') calls.push(event.call)
|
|
181
|
+
else if (event.type === 'done') done = event
|
|
182
|
+
}
|
|
183
|
+
break
|
|
184
|
+
} catch (error) {
|
|
185
|
+
// Told to answer now: asked again at once, which its entry says (D414).
|
|
186
|
+
if (cut.signal.reason === HURRY && !signal?.aborted && !hurried) {
|
|
187
|
+
;[cut, hurried, thinking] = [new AbortController(), true, 0]
|
|
188
|
+
if (options.hurry) options.hurry.now = undefined
|
|
189
|
+
onUpdate({ sessionUpdate: 'tool_call_update', toolCallId: entry.toolCallId, _meta: { hurried } }, step)
|
|
190
|
+
continue
|
|
191
|
+
}
|
|
192
|
+
// Past the brain's window before anything of the answer came: it reads on from a summary, once, and is asked again (D359).
|
|
193
|
+
if (!own && !heard && !summed && error instanceof LLMError && error.code === 'too_long' && (summed = await compact(step, specs, 'too_long'))) continue
|
|
194
|
+
// Nothing of the answer came, and it may pass: asked again after a moment, which its entry says meanwhile.
|
|
195
|
+
const wait = heard || signal?.aborted ? undefined : retryWait(error, retries[attempt])
|
|
196
|
+
if (wait === undefined) throw error
|
|
197
|
+
onUpdate({ sessionUpdate: 'tool_call_update', toolCallId: entry.toolCallId, _meta: { ...own, retrying: true } }, step)
|
|
198
|
+
await pause(wait, signal)
|
|
199
|
+
if (signal?.aborted) throw new LLMError('Request aborted', { code: 'aborted' })
|
|
200
|
+
onUpdate({ sessionUpdate: 'tool_call_update', toolCallId: entry.toolCallId, _meta: { ...own, retrying: false } }, step)
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
} catch (error) {
|
|
204
|
+
const failed = { ...entry, status: /** @type {const} */ ('failed'), rawOutput: errorInfo(error), _meta: { ...own, ...(hurried && { hurried }), ms: Date.now() - started } }
|
|
205
|
+
onUpdate({ sessionUpdate: 'tool_call_update', ...failed }, step)
|
|
206
|
+
await persist(stepRecords(step, failed, own ? '' : thought, own ? '' : text))
|
|
207
|
+
throw error
|
|
208
|
+
} finally {
|
|
209
|
+
signal?.removeEventListener('abort', stop)
|
|
210
|
+
if (options.hurry?.now === hurry) options.hurry.now = undefined
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
const stopReason = done?.stopReason ?? 'other'
|
|
214
|
+
for (const key of /** @type {const} */ (['inputTokens', 'outputTokens', 'cacheReadTokens'])) usage[key] += done?.usage?.[key] ?? 0
|
|
215
|
+
// Thinking blocks and the provider's own search results are replayed unchanged by later turns.
|
|
216
|
+
// How long it took is kept for the activity view.
|
|
217
|
+
const raw = done?.message.raw
|
|
218
|
+
const kept = { ...own, ...cited, ...(hurried && { hurried }), ...(!own && Array.isArray(raw) && raw.some((block) => !/^(text|tool_use)$/.test(block?.type)) && { raw }), ms: Date.now() - started }
|
|
219
|
+
const completed = { ...entry, status: /** @type {const} */ ('completed'), rawOutput: { stopReason, usage: done?.usage }, _meta: kept }
|
|
220
|
+
onUpdate({ sessionUpdate: 'tool_call_update', ...completed }, step)
|
|
221
|
+
await persist(stepRecords(step, completed, own ? '' : thought, own ? '' : text))
|
|
222
|
+
return { stopReason, text, calls, done, entry: completed }
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
/**
|
|
226
|
+
* Before a step, a hook may have the brain sum up what came so far (turn.compact, D359): it answers with the record,
|
|
227
|
+
* kept here, which the brain reads on from. No call is waiting then (D212). Jean's own behaviour does nothing.
|
|
228
|
+
* @param {number} step @param {ToolSpec[]} specs @param {'window' | 'too_long'} reason
|
|
229
|
+
*/
|
|
230
|
+
const compact = async (step, specs, reason) => {
|
|
231
|
+
const record = options.window && await on('turn.compact', { step, brain, system, messages: [...history], tools: specs, usage: last, window: options.window, reason, signal,
|
|
232
|
+
ask: (/** @type {ChatMessage[]} */ messages) => request(step, messages, specs, { compact: true }) }, () => null)
|
|
233
|
+
if (record?.update?.sessionUpdate !== 'compaction_update' || record.update.status !== 'completed') return false
|
|
234
|
+
const kept = { ...record, step }
|
|
235
|
+
onUpdate(kept.update, step)
|
|
236
|
+
await persist([kept])
|
|
237
|
+
history.splice(0, history.length, { role: 'user', content: kept.update._meta.text })
|
|
238
|
+
last = undefined
|
|
239
|
+
return true
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
if (options.resume) await runCalls(options.resume.calls, options.resume.step)
|
|
243
|
+
|
|
244
|
+
// Steps go in blocks: at the end of one, a hook may give the turn another (turn.limit); a step whose calls only
|
|
245
|
+
// update the plan isn't counted, one in a row at most (D364).
|
|
246
|
+
const first = options.resume ? options.resume.step + 1 : 0
|
|
247
|
+
let [limit, from, blocks, free] = [maxSteps, first, 0, false]
|
|
248
|
+
/** @type {{ step: number, entry: ToolCallInfo } | undefined} */
|
|
249
|
+
let asked
|
|
250
|
+
for (let step = first; ; step++) {
|
|
251
|
+
if (step >= limit) {
|
|
252
|
+
if (maxSteps <= first || !(await on('turn.limit', { step, from, blocks, signal }, () => false))) break
|
|
253
|
+
;[limit, from, blocks] = [step + maxSteps - first, step, blocks + 1]
|
|
254
|
+
}
|
|
255
|
+
// What the user sent meanwhile is read now, between steps, as theirs, before anything is summed up (D365).
|
|
256
|
+
const steered = options.steer?.() ?? []
|
|
257
|
+
if (steered.length) await persist(steered)
|
|
258
|
+
for (const { update } of steered) if (update?.sessionUpdate === 'user_message_chunk' && update.content.type === 'text') history.push({ role: 'user', content: update.content.text })
|
|
259
|
+
ctx.byName = new Map(tools().map((tool) => [tool.spec.name, tool]))
|
|
260
|
+
const specs = [...ctx.byName.values()].filter((tool) => declared.has(tool.spec.name)).map((tool) => tool.spec)
|
|
261
|
+
await compact(step, specs, 'window')
|
|
262
|
+
const { stopReason, text, calls, done, entry } = await request(step, history, specs)
|
|
263
|
+
asked = { step, entry }
|
|
264
|
+
last = done?.usage
|
|
265
|
+
history.push(done?.message ?? { role: 'assistant', content: text, toolCalls: calls })
|
|
266
|
+
|
|
267
|
+
if (stopReason === 'pause') continue
|
|
268
|
+
if (stopReason !== 'tool_use' || !calls.length) return { stopReason, usage, text }
|
|
269
|
+
await runCalls(calls, step)
|
|
270
|
+
if ((free = !free && calls.every((call) => ctx.byName.get(call.name)?.aside))) limit++
|
|
271
|
+
}
|
|
272
|
+
// Out of steps: the last brain entry is kept again, stopped as ACP says it, which the room shows as a pause (D364).
|
|
273
|
+
if (asked) {
|
|
274
|
+
const stopped = { ...asked.entry, _meta: { ...asked.entry._meta, stopped: 'max_turn_requests' } }
|
|
275
|
+
onUpdate({ sessionUpdate: 'tool_call_update', ...stopped }, asked.step)
|
|
276
|
+
await persist([envelope('jean', { sessionUpdate: 'tool_call', ...stopped }, asked.step)])
|
|
277
|
+
}
|
|
278
|
+
return { stopReason: 'max_steps', usage, text: '' }
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
/** What a brain told to answer now is asked, as the user's own words, after the rest: the end of what it thought (D414). @param {string} thought */
|
|
282
|
+
const answerNow = (thought) => `Answer now, from what you have thought so far, without thinking it all through again. Your thinking ended with:\n<thinking>\n${thought.slice(-TAIL)}\n</thinking>`
|
|
283
|
+
|
|
284
|
+
/** @param {number} step @param {ToolCallInfo} brainEntry @param {string} thought @param {string} text @returns {Envelope[]} */
|
|
285
|
+
function stepRecords(step, brainEntry, thought, text) {
|
|
286
|
+
/** @type {Envelope[]} */
|
|
287
|
+
const records = [envelope('jean', { sessionUpdate: 'tool_call', ...brainEntry }, step)]
|
|
288
|
+
if (thought) records.push(envelope('jean', { sessionUpdate: 'agent_thought_chunk', content: { type: 'text', text: thought } }, step))
|
|
289
|
+
if (text) records.push(envelope('jean', { sessionUpdate: 'agent_message_chunk', content: { type: 'text', text } }, step))
|
|
290
|
+
return records
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
/**
|
|
294
|
+
* Runs one call under the rules and persists its final record. Scripts' calls are nested:
|
|
295
|
+
* they carry their parent's id, and the brain's context leaves them out.
|
|
296
|
+
* @param {import('./types.js').ToolCall} call
|
|
297
|
+
* @param {Tool | undefined} tool
|
|
298
|
+
* @param {number} step
|
|
299
|
+
* @param {Pick<Required<TurnOptions>, 'rule' | 'askPermission' | 'onUpdate' | 'persist'> & { signal?: AbortSignal, byName: Map<string, Tool>, declared: Set<string>, tools: () => Tool[],
|
|
300
|
+
* on: (name: string, e: Record<string, unknown>, behaviour: (e: any) => any) => Promise<any>,
|
|
301
|
+
* cite: (sources: Source[], meta: Record<string, any>) => number[], options: TurnOptions, numbers: Map<string, number> }} ctx
|
|
302
|
+
* @param {string} [parent]
|
|
303
|
+
* @param {(info: ToolCallInfo) => Promise<void>} [waiting] keeps the call as pending while it waits for the user (D212)
|
|
304
|
+
*/
|
|
305
|
+
async function runTool(call, tool, step, ctx, parent, waiting) {
|
|
306
|
+
const { rule, askPermission, onUpdate, signal } = ctx
|
|
307
|
+
// Stopped: nothing more runs, and nothing more is asked.
|
|
308
|
+
if (signal?.aborted) throw new LLMError('Request aborted', { code: 'aborted' })
|
|
309
|
+
/** @type {ToolCallInfo} */
|
|
310
|
+
const info = {
|
|
311
|
+
toolCallId: call.id,
|
|
312
|
+
name: call.name,
|
|
313
|
+
title: tool ? safe(() => tool.title(call.args), call.name) : call.name,
|
|
314
|
+
kind: tool?.kind ?? 'other',
|
|
315
|
+
rawInput: call.args,
|
|
316
|
+
...(tool?.locations && { locations: safe(() => tool.locations?.(call.args) ?? [], []) }),
|
|
317
|
+
...(parent && { _meta: { parent } }),
|
|
318
|
+
}
|
|
319
|
+
onUpdate({ sessionUpdate: 'tool_call', ...info, status: 'pending' }, step)
|
|
320
|
+
|
|
321
|
+
let output = ''
|
|
322
|
+
let failed = true
|
|
323
|
+
let nested = 0
|
|
324
|
+
/** @type {number | undefined} how long it ran, for the activity view */
|
|
325
|
+
let ms
|
|
326
|
+
/** @type {Map<string, AcpUpdate>} its own updates, the latest of each kind */
|
|
327
|
+
const own = new Map()
|
|
328
|
+
/** @type {ToolContext} */
|
|
329
|
+
const context = {
|
|
330
|
+
signal, brain: ctx.options.brain,
|
|
331
|
+
meta: {},
|
|
332
|
+
content: [],
|
|
333
|
+
progress: (update) => onUpdate({ sessionUpdate: 'tool_call_update', toolCallId: call.id, ...update, _meta: { ...info._meta, ...update._meta } }, step),
|
|
334
|
+
update: (update) => { own.set(update.sessionUpdate, update); onUpdate(update, step) },
|
|
335
|
+
cite: (sources) => ctx.cite(sources, context.meta),
|
|
336
|
+
declared: [...ctx.declared],
|
|
337
|
+
call: async (name, args) => {
|
|
338
|
+
const known = ctx.tools().find((candidate) => candidate.spec.name === name)
|
|
339
|
+
const result = await runTool({ id: `${call.id}.${++nested}`, name, args }, known, step, ctx, call.id)
|
|
340
|
+
if (result.failed) throw new Error(result.output)
|
|
341
|
+
return result.output
|
|
342
|
+
},
|
|
343
|
+
declare: (names) => {
|
|
344
|
+
for (const name of names) ctx.declared.add(name)
|
|
345
|
+
;(context.meta.declare ??= []).push(...names)
|
|
346
|
+
},
|
|
347
|
+
// A helper's text is its result; its calls are kept, under this one, never as pending: a closed page asks its questions no more (D212).
|
|
348
|
+
turn: (child) => runTurn({
|
|
349
|
+
...ctx.options, label: undefined, meta: undefined, resume: null, window: undefined, usage: undefined, steer: undefined, hurry: undefined, about: { ...ctx.options.about, parent: call.id }, ...child, numbers: ctx.numbers,
|
|
350
|
+
askPermission: (request) => ctx.askPermission({ ...request, toolCall: under(request.toolCall, call.id) }),
|
|
351
|
+
onUpdate: (update) => 'toolCallId' in update && onUpdate(under(update, call.id), step),
|
|
352
|
+
persist: (records) => ctx.persist(records.flatMap(({ update, ...record }) => (update && 'toolCallId' in update && update.status !== 'pending' ? [{ ...record, step, update: under(update, call.id) }] : []))),
|
|
353
|
+
}),
|
|
354
|
+
}
|
|
355
|
+
if (!tool) output = `There is no tool named "${call.name}".${ctx.declared.has('find_tools') ? ' Use find_tools to look for one.' : ''}`
|
|
356
|
+
else if (tool.off) output = `The user turned ${call.name} off.`
|
|
357
|
+
else if (call.args && typeof call.args === 'object' && '__invalidJSON' in call.args) output = 'The arguments were not valid JSON. Try again.'
|
|
358
|
+
// The brain hasn't seen a deferred tool's schema: without what it requires, it learns how to call it.
|
|
359
|
+
else if (!parent && !ctx.declared.has(call.name) && lacking(tool, call.args).length) output = `It needs ${lacking(tool, call.args).join(', ')}. Call it like this:\n${signature(tool)}`
|
|
360
|
+
else {
|
|
361
|
+
const ruled = rule(tool.kind, Boolean(tool.reserved))
|
|
362
|
+
/** @type {{ checked?: Check | void }} what the check found */
|
|
363
|
+
const found = {}
|
|
364
|
+
// What the rules say, then the tool's check, which may ask where they allow; one that fails asks nothing: the run says what is wrong.
|
|
365
|
+
const said = await ctx.on('tool.check', { toolCallId: call.id, name: call.name, kind: tool.kind, args: call.args, title: info.title, service: tool.service }, async () => {
|
|
366
|
+
found.checked = ruled === 'never' ? undefined : await tool.check?.(call.args, context).catch(() => undefined)
|
|
367
|
+
return { decision: found.checked?.ask && ruled === 'allow' ? 'ask' : ruled }
|
|
368
|
+
})
|
|
369
|
+
/** @type {RuleValue} */
|
|
370
|
+
let decision = said?.refuse ? 'never' : said?.decision ?? ruled
|
|
371
|
+
if (tool.reserved && STRICT[decision] < STRICT[ruled]) decision = ruled
|
|
372
|
+
const refused = decision === 'never' ? said?.refuse ?? said?.reason : undefined
|
|
373
|
+
const { checked } = found
|
|
374
|
+
// What the card keeps: the check's, and a hook's (the guard that asks, D295), with whose answer it was and what it was (D299).
|
|
375
|
+
const by = decision === (said?.refuse ? 'never' : said?.decision) ? said?.by : undefined
|
|
376
|
+
if (checked?.meta || said?.meta || by) info._meta = { ...info._meta, ...checked?.meta, ...said?.meta, ...(by && { by, decision }) }
|
|
377
|
+
if (decision === 'ask') {
|
|
378
|
+
await waiting?.(info)
|
|
379
|
+
context.answer = await askPermission({ toolCall: { ...info, ...(checked?.content && { content: checked.content }) }, step })
|
|
380
|
+
decision = context.answer.startsWith('allow') ? 'allow' : 'never'
|
|
381
|
+
}
|
|
382
|
+
if (decision === 'never') {
|
|
383
|
+
output = refused ?? 'The user declined this action.'
|
|
384
|
+
context.meta.declined = true
|
|
385
|
+
} else {
|
|
386
|
+
if (tool.asks) await waiting?.(info)
|
|
387
|
+
onUpdate({ sessionUpdate: 'tool_call_update', toolCallId: call.id, status: 'in_progress' }, step)
|
|
388
|
+
// Its start is kept, so a page closed while it runs leaves it cut short, not unsaid; a question is kept as pending instead (D212).
|
|
389
|
+
if (!parent && !tool.asks) await ctx.persist([envelope('jean', { sessionUpdate: 'tool_call', ...info, status: 'in_progress' }, step)])
|
|
390
|
+
const started = Date.now()
|
|
391
|
+
try {
|
|
392
|
+
output = await tool.run(call.args, context)
|
|
393
|
+
failed = false
|
|
394
|
+
} catch (error) {
|
|
395
|
+
output = `Error: ${error instanceof Error ? error.message : String(error)}`
|
|
396
|
+
}
|
|
397
|
+
ms = Date.now() - started
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
const final = {
|
|
401
|
+
...info,
|
|
402
|
+
status: /** @type {'failed' | 'completed'} */ (failed ? 'failed' : 'completed'),
|
|
403
|
+
rawOutput: output,
|
|
404
|
+
content: [...(failed ? [] : context.content), { type: /** @type {const} */ ('content'), content: { type: /** @type {const} */ ('text'), text: output } }],
|
|
405
|
+
...((ms !== undefined || Object.keys(context.meta).length) && { _meta: { ...info._meta, ...context.meta, ms } }),
|
|
406
|
+
}
|
|
407
|
+
onUpdate({ sessionUpdate: 'tool_call_update', ...final }, step)
|
|
408
|
+
await ctx.persist([envelope('jean', { sessionUpdate: 'tool_call', ...final }, step), ...[...own.values()].map((update) => envelope('jean', update, step))])
|
|
409
|
+
return { info: final, output, failed }
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
/**
|
|
413
|
+
* A helper's call under the one that started it: its own id, prefixed so helpers never clash,
|
|
414
|
+
* and without what a brain keeps for replay. @template {{ toolCallId: string, _meta?: Record<string, any> }} T
|
|
415
|
+
* @param {T} update @param {string} parent @returns {T}
|
|
416
|
+
*/
|
|
417
|
+
const under = (update, parent) => ({ ...update, toolCallId: `${parent}/${update.toolCallId}`, _meta: { ...update._meta, raw: undefined, parent: update._meta?.parent ? `${parent}/${update._meta.parent}` : parent } })
|
|
418
|
+
|
|
419
|
+
/** The arguments a tool requires that a call leaves out. @param {Tool} tool @param {any} args @returns {string[]} */
|
|
420
|
+
const lacking = ({ spec }, args) => (/** @type {any} */ (spec.parameters).required ?? []).filter((/** @type {string} */ name) => args?.[name] == null)
|
|
421
|
+
|
|
422
|
+
/** @template T @param {() => T} fn @param {T} fallback */
|
|
423
|
+
function safe(fn, fallback) {
|
|
424
|
+
try {
|
|
425
|
+
return fn()
|
|
426
|
+
} catch {
|
|
427
|
+
return fallback
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
/** How long to wait before asking again, or undefined when it wouldn't help. @param {unknown} error @param {number | undefined} planned */
|
|
432
|
+
function retryWait(error, planned) {
|
|
433
|
+
if (planned === undefined || !(error instanceof LLMError) || !error.retryable) return undefined
|
|
434
|
+
const wait = Math.max(planned, error.retryAfter ?? 0)
|
|
435
|
+
return wait <= LONGEST_WAIT ? wait : undefined
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
/** Waits, unless stopped meanwhile. @param {number} ms @param {AbortSignal} [signal] @returns {Promise<void>} */
|
|
439
|
+
const pause = (ms, signal) => new Promise((resolve) => {
|
|
440
|
+
const end = () => {
|
|
441
|
+
clearTimeout(timer)
|
|
442
|
+
signal?.removeEventListener('abort', end)
|
|
443
|
+
resolve()
|
|
444
|
+
}
|
|
445
|
+
const timer = setTimeout(end, signal?.aborted ? 0 : ms)
|
|
446
|
+
signal?.addEventListener('abort', end)
|
|
447
|
+
})
|
|
448
|
+
|
|
449
|
+
/** @param {unknown} error */
|
|
450
|
+
function errorInfo(error) {
|
|
451
|
+
const err = /** @type {{ message?: string, code?: string, status?: number }} */ (error ?? {})
|
|
452
|
+
return { error: err.message ?? String(error), code: err.code, status: err.status }
|
|
453
|
+
}
|
package/core/rules.js
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
// Do it / Ask me first / Never — per kind of action.
|
|
2
|
+
/** @import { RuleValue, ToolKind } from './types.js' */
|
|
3
|
+
|
|
4
|
+
/** Kinds shown in settings, in display order. */
|
|
5
|
+
export const RULE_KINDS = /** @type {const} */ (['read', 'edit', 'search', 'execute', 'fetch', 'move', 'delete', 'other'])
|
|
6
|
+
|
|
7
|
+
/** @type {Record<string, RuleValue>} */
|
|
8
|
+
export const DEFAULT_RULES = {
|
|
9
|
+
read: 'allow', edit: 'allow', search: 'allow', execute: 'allow', think: 'allow',
|
|
10
|
+
fetch: 'ask', move: 'ask', delete: 'ask', switch_mode: 'ask', other: 'ask',
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Policy (locked) wins, then reserved actions (passwords, payments) are never
|
|
15
|
+
* done by Jean, then project, then user, then defaults.
|
|
16
|
+
* @param {ToolKind | string} kind
|
|
17
|
+
* @param {{ user?: Record<string, RuleValue>, project?: Record<string, RuleValue>, policy?: Record<string, RuleValue>, reserved?: boolean }} [layers]
|
|
18
|
+
* @returns {RuleValue}
|
|
19
|
+
*/
|
|
20
|
+
export function resolveRule(kind, { user = {}, project = {}, policy = {}, reserved = false } = {}) {
|
|
21
|
+
if (policy[kind]) return policy[kind]
|
|
22
|
+
if (reserved) return 'never'
|
|
23
|
+
return project[kind] ?? user[kind] ?? DEFAULT_RULES[kind] ?? 'ask'
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/** The rule an approval answer writes, if any. @param {'allow_once' | 'allow_always' | 'reject_once' | 'reject_always'} option @returns {RuleValue | null} */
|
|
27
|
+
export const ruleFromPermission = (option) => (option === 'allow_always' ? 'allow' : option === 'reject_always' ? 'never' : null)
|
|
28
|
+
|
|
29
|
+
/** How careful each decision is: a hook makes Jean more careful freely, never less for a reserved action (D293). */
|
|
30
|
+
export const STRICT = /** @type {Record<RuleValue, number>} */ ({ allow: 0, ask: 1, never: 2 })
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Guards (D295): the person's or the organisation's rules for one kind of action or one service (a
|
|
34
|
+
* connection's id), made tool.check hooks. Each only ever makes Jean more careful, asking first or
|
|
35
|
+
* never doing it, and, with a question, only when the answer about the call is yes; a question that
|
|
36
|
+
* can't be answered counts as yes. Asked, a guarded call keeps the guard ("Always allow" sets no rule).
|
|
37
|
+
* @typedef {{ id: string, kind?: string, service?: string, if?: string, then: 'ask' | 'never', reason?: string }} Guard
|
|
38
|
+
* @param {Guard[]} guards @param {'policy' | 'user'} tier
|
|
39
|
+
* @param {(question: string, text: string, task?: string) => Promise<boolean>} yes asks a question about a text, in a task: its call's (D440)
|
|
40
|
+
* @returns {import('./hooks.js').Hook[]}
|
|
41
|
+
*/
|
|
42
|
+
export const guardHooks = (guards, tier, yes) => guards.filter((guard) => (guard.kind || guard.service) && STRICT[guard.then] > 0).map((guard) => ({
|
|
43
|
+
on: 'tool.check', tier, by: guard.id,
|
|
44
|
+
match: { ...(guard.kind && { kind: guard.kind }), ...(guard.service && { service: guard.service }) },
|
|
45
|
+
run: async (/** @type {any} */ e, /** @type {(e: any) => Promise<any>} */ next) => {
|
|
46
|
+
const said = await next(e)
|
|
47
|
+
if (said?.refuse || STRICT[/** @type {RuleValue} */ (said?.decision)] >= STRICT[guard.then]) return said
|
|
48
|
+
if (guard.if && !(await yes(guard.if, `${e.title}\n${JSON.stringify(e.args ?? {}).slice(0, 2000)}`, e.task).catch(() => true))) return said
|
|
49
|
+
return guard.then === 'ask' ? { decision: 'ask', meta: { guard: guard.id } }
|
|
50
|
+
: { decision: 'never', reason: guard.reason ?? (tier === 'policy' ? "The organisation's rules refuse this action." : "The user's rules refuse this action.") }
|
|
51
|
+
},
|
|
52
|
+
}))
|