@jean-is/render 0.8.0-r2ac5fe39c4a3 → 0.8.0-r4608ec28d7e1
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/caps/made/paper.js +1 -1
- package/caps/scores/scores.js +22 -2
- package/caps/scores/sound.js +9 -8
- package/caps/slides/edit.js +0 -2
- package/caps/slides/save.js +1 -1
- package/caps/slides/slides.css +3 -0
- package/caps/slides/slides.js +5 -4
- package/core/events.js +5 -4
- package/core/files.js +26 -2
- package/core/fs.js +21 -75
- package/core/i18n.js +19 -16
- package/core/loop.js +8 -0
- package/core/settings.js +2 -0
- package/locales/am.json +9 -1
- package/locales/approvals/fr-CA.json +3 -3
- package/locales/approvals/fr.json +3 -3
- package/locales/ar.json +9 -1
- package/locales/bg.json +9 -1
- package/locales/bn.json +9 -1
- package/locales/br.json +9 -1
- package/locales/case/co.json +8 -8
- package/locales/case/es.json +5 -5
- package/locales/case/fr-CA.json +9 -9
- package/locales/case/fr.json +9 -9
- package/locales/case/it.json +8 -8
- package/locales/case/pt.json +5 -5
- package/locales/co.json +9 -1
- package/locales/computer/fr-CA.json +14 -14
- package/locales/computer/fr.json +14 -14
- package/locales/cs.json +9 -1
- package/locales/da.json +9 -1
- package/locales/data/am.json +7 -0
- package/locales/data/ar.json +7 -0
- package/locales/data/bg.json +7 -0
- package/locales/data/bn.json +7 -0
- package/locales/data/br.json +7 -0
- package/locales/data/co.json +7 -0
- package/locales/data/cs.json +7 -0
- package/locales/data/da.json +7 -0
- package/locales/data/de.json +7 -0
- package/locales/data/el.json +7 -0
- package/locales/data/en.json +7 -0
- package/locales/data/es.json +7 -0
- package/locales/data/fa.json +7 -0
- package/locales/data/fi.json +7 -0
- package/locales/data/fr-CA.json +7 -0
- package/locales/data/fr.json +7 -0
- package/locales/data/ha.json +7 -0
- package/locales/data/he.json +7 -0
- package/locales/data/hi.json +7 -0
- package/locales/data/hr.json +7 -0
- package/locales/data/hu.json +7 -0
- package/locales/data/id.json +7 -0
- package/locales/data/it.json +7 -0
- package/locales/data/ja.json +7 -0
- package/locales/data/ko.json +7 -0
- package/locales/data/mr.json +7 -0
- package/locales/data/ms.json +7 -0
- package/locales/data/nl.json +7 -0
- package/locales/data/pl.json +7 -0
- package/locales/data/pt.json +7 -0
- package/locales/data/ro.json +7 -0
- package/locales/data/ru.json +7 -0
- package/locales/data/sk.json +7 -0
- package/locales/data/sv.json +7 -0
- package/locales/data/sw.json +7 -0
- package/locales/data/ta.json +7 -0
- package/locales/data/te.json +7 -0
- package/locales/data/th.json +7 -0
- package/locales/data/tl.json +7 -0
- package/locales/data/tr.json +7 -0
- package/locales/data/uk.json +7 -0
- package/locales/data/ur.json +7 -0
- package/locales/data/vi.json +7 -0
- package/locales/data/yo.json +7 -0
- package/locales/data/zh-Hans.json +7 -0
- package/locales/data/zh-Hant.json +7 -0
- package/locales/de.json +9 -1
- package/locales/devices/am.json +43 -9
- package/locales/devices/ar.json +51 -13
- package/locales/devices/bg.json +43 -9
- package/locales/devices/bn.json +43 -9
- package/locales/devices/br.json +49 -12
- package/locales/devices/co.json +45 -10
- package/locales/devices/cs.json +47 -11
- package/locales/devices/da.json +43 -9
- package/locales/devices/de.json +43 -9
- package/locales/devices/el.json +43 -9
- package/locales/devices/en.json +43 -9
- package/locales/devices/es.json +45 -10
- package/locales/devices/fa.json +43 -9
- package/locales/devices/fi.json +43 -9
- package/locales/devices/fr-CA.json +45 -10
- package/locales/devices/fr.json +45 -10
- package/locales/devices/ha.json +43 -9
- package/locales/devices/he.json +45 -10
- package/locales/devices/hi.json +43 -9
- package/locales/devices/hr.json +45 -10
- package/locales/devices/hu.json +43 -9
- package/locales/devices/id.json +41 -8
- package/locales/devices/it.json +45 -10
- package/locales/devices/ja.json +41 -8
- package/locales/devices/ko.json +41 -8
- package/locales/devices/mr.json +43 -9
- package/locales/devices/ms.json +41 -8
- package/locales/devices/nl.json +43 -9
- package/locales/devices/pl.json +47 -11
- package/locales/devices/pt.json +45 -10
- package/locales/devices/ro.json +45 -10
- package/locales/devices/ru.json +47 -11
- package/locales/devices/sk.json +47 -11
- package/locales/devices/sv.json +43 -9
- package/locales/devices/sw.json +43 -9
- package/locales/devices/ta.json +43 -9
- package/locales/devices/te.json +43 -9
- package/locales/devices/th.json +41 -8
- package/locales/devices/tl.json +43 -9
- package/locales/devices/tr.json +43 -9
- package/locales/devices/uk.json +47 -11
- package/locales/devices/ur.json +43 -9
- package/locales/devices/vi.json +41 -8
- package/locales/devices/yo.json +41 -8
- package/locales/devices/zh-Hans.json +41 -8
- package/locales/devices/zh-Hant.json +41 -8
- package/locales/dialogs/am.json +9 -0
- package/locales/dialogs/ar.json +9 -0
- package/locales/dialogs/bg.json +9 -0
- package/locales/dialogs/bn.json +9 -0
- package/locales/dialogs/br.json +9 -0
- package/locales/dialogs/co.json +13 -4
- package/locales/dialogs/cs.json +9 -0
- package/locales/dialogs/da.json +9 -0
- package/locales/dialogs/de.json +9 -0
- package/locales/dialogs/el.json +9 -0
- package/locales/dialogs/en.json +9 -0
- package/locales/dialogs/es.json +13 -4
- package/locales/dialogs/fa.json +9 -0
- package/locales/dialogs/fi.json +9 -0
- package/locales/dialogs/fr-CA.json +15 -6
- package/locales/dialogs/fr.json +15 -6
- package/locales/dialogs/ha.json +9 -0
- package/locales/dialogs/he.json +9 -0
- package/locales/dialogs/hi.json +9 -0
- package/locales/dialogs/hr.json +9 -0
- package/locales/dialogs/hu.json +9 -0
- package/locales/dialogs/id.json +9 -0
- package/locales/dialogs/it.json +13 -4
- package/locales/dialogs/ja.json +9 -0
- package/locales/dialogs/ko.json +9 -0
- package/locales/dialogs/mr.json +9 -0
- package/locales/dialogs/ms.json +9 -0
- package/locales/dialogs/nl.json +9 -0
- package/locales/dialogs/pl.json +9 -0
- package/locales/dialogs/pt.json +12 -3
- package/locales/dialogs/ro.json +9 -0
- package/locales/dialogs/ru.json +9 -0
- package/locales/dialogs/sk.json +9 -0
- package/locales/dialogs/sv.json +9 -0
- package/locales/dialogs/sw.json +9 -0
- package/locales/dialogs/ta.json +9 -0
- package/locales/dialogs/te.json +9 -0
- package/locales/dialogs/th.json +9 -0
- package/locales/dialogs/tl.json +9 -0
- package/locales/dialogs/tr.json +9 -0
- package/locales/dialogs/uk.json +9 -0
- package/locales/dialogs/ur.json +9 -0
- package/locales/dialogs/vi.json +9 -0
- package/locales/dialogs/yo.json +9 -0
- package/locales/dialogs/zh-Hans.json +9 -0
- package/locales/dialogs/zh-Hant.json +9 -0
- package/locales/el.json +9 -1
- package/locales/en.json +9 -1
- package/locales/es.json +9 -1
- package/locales/fa.json +9 -1
- package/locales/fi.json +9 -1
- package/locales/fr-CA.json +9 -1
- package/locales/fr.json +9 -1
- package/locales/ha.json +9 -1
- package/locales/he.json +9 -1
- package/locales/hi.json +9 -1
- package/locales/hr.json +9 -1
- package/locales/hu.json +9 -1
- package/locales/id.json +9 -1
- package/locales/it.json +9 -1
- package/locales/ja.json +9 -1
- package/locales/ko.json +9 -1
- package/locales/machine/fr-CA.json +1 -1
- package/locales/machine/fr.json +1 -1
- package/locales/made/am.json +2 -4
- package/locales/made/ar.json +2 -4
- package/locales/made/bg.json +2 -4
- package/locales/made/bn.json +2 -4
- package/locales/made/br.json +2 -4
- package/locales/made/co.json +2 -4
- package/locales/made/cs.json +2 -4
- package/locales/made/da.json +2 -4
- package/locales/made/de.json +2 -4
- package/locales/made/el.json +2 -4
- package/locales/made/en.json +2 -4
- package/locales/made/es.json +2 -4
- package/locales/made/fa.json +2 -4
- package/locales/made/fi.json +2 -4
- package/locales/made/fr-CA.json +2 -4
- package/locales/made/fr.json +2 -4
- package/locales/made/ha.json +2 -4
- package/locales/made/he.json +2 -4
- package/locales/made/hi.json +2 -4
- package/locales/made/hr.json +2 -4
- package/locales/made/hu.json +2 -4
- package/locales/made/id.json +2 -4
- package/locales/made/it.json +2 -4
- package/locales/made/ja.json +2 -4
- package/locales/made/ko.json +2 -4
- package/locales/made/mr.json +2 -4
- package/locales/made/ms.json +2 -4
- package/locales/made/nl.json +2 -4
- package/locales/made/pl.json +2 -4
- package/locales/made/pt.json +2 -4
- package/locales/made/ro.json +2 -4
- package/locales/made/ru.json +2 -4
- package/locales/made/sk.json +2 -4
- package/locales/made/sv.json +2 -4
- package/locales/made/sw.json +2 -4
- package/locales/made/ta.json +2 -4
- package/locales/made/te.json +2 -4
- package/locales/made/th.json +2 -4
- package/locales/made/tl.json +2 -4
- package/locales/made/tr.json +2 -4
- package/locales/made/uk.json +2 -4
- package/locales/made/ur.json +2 -4
- package/locales/made/vi.json +2 -4
- package/locales/made/yo.json +2 -4
- package/locales/made/zh-Hans.json +2 -4
- package/locales/made/zh-Hant.json +2 -4
- package/locales/mr.json +9 -1
- package/locales/ms.json +9 -1
- package/locales/nl.json +9 -1
- package/locales/out/am.json +1 -1
- package/locales/out/ar.json +1 -1
- package/locales/out/bg.json +1 -1
- package/locales/out/bn.json +1 -1
- package/locales/out/br.json +1 -1
- package/locales/out/co.json +1 -1
- package/locales/out/cs.json +1 -1
- package/locales/out/da.json +1 -1
- package/locales/out/de.json +1 -1
- package/locales/out/el.json +1 -1
- package/locales/out/en.json +1 -1
- package/locales/out/es.json +1 -1
- package/locales/out/fa.json +1 -1
- package/locales/out/fi.json +1 -1
- package/locales/out/fr-CA.json +1 -1
- package/locales/out/fr.json +1 -1
- package/locales/out/ha.json +1 -1
- package/locales/out/he.json +1 -1
- package/locales/out/hi.json +1 -1
- package/locales/out/hr.json +1 -1
- package/locales/out/hu.json +1 -1
- package/locales/out/id.json +1 -1
- package/locales/out/it.json +1 -1
- package/locales/out/ja.json +1 -1
- package/locales/out/ko.json +1 -1
- package/locales/out/mr.json +1 -1
- package/locales/out/ms.json +1 -1
- package/locales/out/nl.json +1 -1
- package/locales/out/pl.json +1 -1
- package/locales/out/pt.json +1 -1
- package/locales/out/ro.json +1 -1
- package/locales/out/ru.json +1 -1
- package/locales/out/sk.json +1 -1
- package/locales/out/sv.json +1 -1
- package/locales/out/sw.json +1 -1
- package/locales/out/ta.json +1 -1
- package/locales/out/te.json +1 -1
- package/locales/out/th.json +1 -1
- package/locales/out/tl.json +1 -1
- package/locales/out/tr.json +1 -1
- package/locales/out/uk.json +1 -1
- package/locales/out/ur.json +1 -1
- package/locales/out/vi.json +1 -1
- package/locales/out/yo.json +1 -1
- package/locales/out/zh-Hans.json +1 -1
- package/locales/out/zh-Hant.json +1 -1
- package/locales/people/am.json +89 -0
- package/locales/people/ar.json +97 -0
- package/locales/people/bg.json +89 -0
- package/locales/people/bn.json +89 -0
- package/locales/people/br.json +95 -0
- package/locales/people/co.json +91 -0
- package/locales/people/cs.json +93 -0
- package/locales/people/da.json +89 -0
- package/locales/people/de.json +89 -0
- package/locales/people/el.json +89 -0
- package/locales/people/en.json +89 -0
- package/locales/people/es.json +91 -0
- package/locales/people/fa.json +89 -0
- package/locales/people/fi.json +89 -0
- package/locales/people/fr-CA.json +91 -0
- package/locales/people/fr.json +91 -0
- package/locales/people/ha.json +89 -0
- package/locales/people/he.json +91 -0
- package/locales/people/hi.json +89 -0
- package/locales/people/hr.json +91 -0
- package/locales/people/hu.json +89 -0
- package/locales/people/id.json +87 -0
- package/locales/people/it.json +91 -0
- package/locales/people/ja.json +87 -0
- package/locales/people/ko.json +87 -0
- package/locales/people/mr.json +89 -0
- package/locales/people/ms.json +87 -0
- package/locales/people/nl.json +89 -0
- package/locales/people/pl.json +93 -0
- package/locales/people/pt.json +91 -0
- package/locales/people/ro.json +91 -0
- package/locales/people/ru.json +93 -0
- package/locales/people/sk.json +93 -0
- package/locales/people/sv.json +89 -0
- package/locales/people/sw.json +89 -0
- package/locales/people/ta.json +89 -0
- package/locales/people/te.json +89 -0
- package/locales/people/th.json +87 -0
- package/locales/people/tl.json +89 -0
- package/locales/people/tr.json +89 -0
- package/locales/people/uk.json +93 -0
- package/locales/people/ur.json +89 -0
- package/locales/people/vi.json +87 -0
- package/locales/people/yo.json +87 -0
- package/locales/people/zh-Hans.json +87 -0
- package/locales/people/zh-Hant.json +87 -0
- package/locales/pl.json +9 -1
- package/locales/profiles/am.json +4 -0
- package/locales/profiles/ar.json +8 -0
- package/locales/profiles/bg.json +4 -0
- package/locales/profiles/bn.json +4 -0
- package/locales/profiles/br.json +7 -0
- package/locales/profiles/co.json +5 -0
- package/locales/profiles/cs.json +6 -0
- package/locales/profiles/da.json +4 -0
- package/locales/profiles/de.json +4 -0
- package/locales/profiles/el.json +4 -0
- package/locales/profiles/en.json +4 -0
- package/locales/profiles/es.json +5 -0
- package/locales/profiles/fa.json +4 -0
- package/locales/profiles/fi.json +4 -0
- package/locales/profiles/fr-CA.json +5 -0
- package/locales/profiles/fr.json +5 -0
- package/locales/profiles/ha.json +4 -0
- package/locales/profiles/he.json +5 -0
- package/locales/profiles/hi.json +4 -0
- package/locales/profiles/hr.json +5 -0
- package/locales/profiles/hu.json +4 -0
- package/locales/profiles/id.json +3 -0
- package/locales/profiles/it.json +5 -0
- package/locales/profiles/ja.json +3 -0
- package/locales/profiles/ko.json +3 -0
- package/locales/profiles/mr.json +4 -0
- package/locales/profiles/ms.json +3 -0
- package/locales/profiles/nl.json +4 -0
- package/locales/profiles/pl.json +6 -0
- package/locales/profiles/pt.json +5 -0
- package/locales/profiles/ro.json +5 -0
- package/locales/profiles/ru.json +6 -0
- package/locales/profiles/sk.json +6 -0
- package/locales/profiles/sv.json +4 -0
- package/locales/profiles/sw.json +4 -0
- package/locales/profiles/ta.json +4 -0
- package/locales/profiles/te.json +4 -0
- package/locales/profiles/th.json +3 -0
- package/locales/profiles/tl.json +4 -0
- package/locales/profiles/tr.json +4 -0
- package/locales/profiles/uk.json +6 -0
- package/locales/profiles/ur.json +4 -0
- package/locales/profiles/vi.json +3 -0
- package/locales/profiles/yo.json +3 -0
- package/locales/profiles/zh-Hans.json +3 -0
- package/locales/profiles/zh-Hant.json +3 -0
- package/locales/pt.json +9 -1
- package/locales/receipt/am.json +0 -1
- package/locales/receipt/ar.json +0 -1
- package/locales/receipt/bg.json +0 -1
- package/locales/receipt/bn.json +0 -1
- package/locales/receipt/br.json +0 -1
- package/locales/receipt/co.json +0 -1
- package/locales/receipt/cs.json +0 -1
- package/locales/receipt/da.json +0 -1
- package/locales/receipt/de.json +0 -1
- package/locales/receipt/el.json +0 -1
- package/locales/receipt/en.json +0 -1
- package/locales/receipt/es.json +0 -1
- package/locales/receipt/fa.json +0 -1
- package/locales/receipt/fi.json +0 -1
- package/locales/receipt/fr-CA.json +0 -1
- package/locales/receipt/fr.json +0 -1
- package/locales/receipt/ha.json +0 -1
- package/locales/receipt/he.json +0 -1
- package/locales/receipt/hi.json +0 -1
- package/locales/receipt/hr.json +0 -1
- package/locales/receipt/hu.json +0 -1
- package/locales/receipt/id.json +0 -1
- package/locales/receipt/it.json +0 -1
- package/locales/receipt/ja.json +0 -1
- package/locales/receipt/ko.json +0 -1
- package/locales/receipt/mr.json +0 -1
- package/locales/receipt/ms.json +0 -1
- package/locales/receipt/nl.json +0 -1
- package/locales/receipt/pl.json +0 -1
- package/locales/receipt/pt.json +0 -1
- package/locales/receipt/ro.json +0 -1
- package/locales/receipt/ru.json +0 -1
- package/locales/receipt/sk.json +0 -1
- package/locales/receipt/sv.json +0 -1
- package/locales/receipt/sw.json +0 -1
- package/locales/receipt/ta.json +0 -1
- package/locales/receipt/te.json +0 -1
- package/locales/receipt/th.json +0 -1
- package/locales/receipt/tl.json +0 -1
- package/locales/receipt/tr.json +0 -1
- package/locales/receipt/uk.json +0 -1
- package/locales/receipt/ur.json +0 -1
- package/locales/receipt/vi.json +0 -1
- package/locales/receipt/yo.json +0 -1
- package/locales/receipt/zh-Hans.json +0 -1
- package/locales/receipt/zh-Hant.json +0 -1
- package/locales/ro.json +9 -1
- package/locales/routines/am.json +1 -0
- package/locales/routines/ar.json +1 -0
- package/locales/routines/bg.json +1 -0
- package/locales/routines/bn.json +1 -0
- package/locales/routines/br.json +1 -0
- package/locales/routines/co.json +1 -0
- package/locales/routines/cs.json +1 -0
- package/locales/routines/da.json +1 -0
- package/locales/routines/de.json +1 -0
- package/locales/routines/el.json +1 -0
- package/locales/routines/en.json +1 -0
- package/locales/routines/es.json +1 -0
- package/locales/routines/fa.json +1 -0
- package/locales/routines/fi.json +1 -0
- package/locales/routines/fr-CA.json +1 -0
- package/locales/routines/fr.json +1 -0
- package/locales/routines/ha.json +1 -0
- package/locales/routines/he.json +1 -0
- package/locales/routines/hi.json +1 -0
- package/locales/routines/hr.json +1 -0
- package/locales/routines/hu.json +1 -0
- package/locales/routines/id.json +1 -0
- package/locales/routines/it.json +1 -0
- package/locales/routines/ja.json +1 -0
- package/locales/routines/ko.json +1 -0
- package/locales/routines/mr.json +1 -0
- package/locales/routines/ms.json +1 -0
- package/locales/routines/nl.json +1 -0
- package/locales/routines/pl.json +1 -0
- package/locales/routines/pt.json +1 -0
- package/locales/routines/ro.json +1 -0
- package/locales/routines/ru.json +1 -0
- package/locales/routines/sk.json +1 -0
- package/locales/routines/sv.json +1 -0
- package/locales/routines/sw.json +1 -0
- package/locales/routines/ta.json +1 -0
- package/locales/routines/te.json +1 -0
- package/locales/routines/th.json +1 -0
- package/locales/routines/tl.json +1 -0
- package/locales/routines/tr.json +1 -0
- package/locales/routines/uk.json +1 -0
- package/locales/routines/ur.json +1 -0
- package/locales/routines/vi.json +1 -0
- package/locales/routines/yo.json +1 -0
- package/locales/routines/zh-Hans.json +1 -0
- package/locales/routines/zh-Hant.json +1 -0
- package/locales/ru.json +9 -1
- package/locales/share/am.json +17 -9
- package/locales/share/ar.json +17 -9
- package/locales/share/bg.json +17 -9
- package/locales/share/bn.json +17 -9
- package/locales/share/br.json +17 -9
- package/locales/share/co.json +17 -9
- package/locales/share/cs.json +17 -9
- package/locales/share/da.json +17 -9
- package/locales/share/de.json +17 -9
- package/locales/share/el.json +17 -9
- package/locales/share/en.json +17 -9
- package/locales/share/es.json +17 -9
- package/locales/share/fa.json +17 -9
- package/locales/share/fi.json +17 -9
- package/locales/share/fr-CA.json +17 -9
- package/locales/share/fr.json +17 -9
- package/locales/share/ha.json +17 -9
- package/locales/share/he.json +17 -9
- package/locales/share/hi.json +17 -9
- package/locales/share/hr.json +17 -9
- package/locales/share/hu.json +17 -9
- package/locales/share/id.json +17 -9
- package/locales/share/it.json +17 -9
- package/locales/share/ja.json +17 -9
- package/locales/share/ko.json +17 -9
- package/locales/share/mr.json +17 -9
- package/locales/share/ms.json +17 -9
- package/locales/share/nl.json +17 -9
- package/locales/share/pl.json +17 -9
- package/locales/share/pt.json +17 -9
- package/locales/share/ro.json +17 -9
- package/locales/share/ru.json +17 -9
- package/locales/share/sk.json +17 -9
- package/locales/share/sv.json +17 -9
- package/locales/share/sw.json +17 -9
- package/locales/share/ta.json +17 -9
- package/locales/share/te.json +17 -9
- package/locales/share/th.json +17 -9
- package/locales/share/tl.json +17 -9
- package/locales/share/tr.json +17 -9
- package/locales/share/uk.json +17 -9
- package/locales/share/ur.json +17 -9
- package/locales/share/vi.json +17 -9
- package/locales/share/yo.json +17 -9
- package/locales/share/zh-Hans.json +17 -9
- package/locales/share/zh-Hant.json +17 -9
- package/locales/sk.json +9 -1
- package/locales/sv.json +9 -1
- package/locales/sw.json +9 -1
- package/locales/ta.json +9 -1
- package/locales/te.json +9 -1
- package/locales/th.json +9 -1
- package/locales/tl.json +9 -1
- package/locales/together/am.json +56 -0
- package/locales/together/ar.json +56 -0
- package/locales/together/bg.json +56 -0
- package/locales/together/bn.json +56 -0
- package/locales/together/br.json +56 -0
- package/locales/together/co.json +56 -0
- package/locales/together/cs.json +56 -0
- package/locales/together/da.json +56 -0
- package/locales/together/de.json +56 -0
- package/locales/together/el.json +56 -0
- package/locales/together/en.json +56 -0
- package/locales/together/es.json +56 -0
- package/locales/together/fa.json +56 -0
- package/locales/together/fi.json +56 -0
- package/locales/together/fr-CA.json +56 -0
- package/locales/together/fr.json +56 -0
- package/locales/together/ha.json +56 -0
- package/locales/together/he.json +56 -0
- package/locales/together/hi.json +56 -0
- package/locales/together/hr.json +56 -0
- package/locales/together/hu.json +56 -0
- package/locales/together/id.json +56 -0
- package/locales/together/it.json +56 -0
- package/locales/together/ja.json +56 -0
- package/locales/together/ko.json +56 -0
- package/locales/together/mr.json +56 -0
- package/locales/together/ms.json +56 -0
- package/locales/together/nl.json +56 -0
- package/locales/together/pl.json +56 -0
- package/locales/together/pt.json +56 -0
- package/locales/together/ro.json +56 -0
- package/locales/together/ru.json +56 -0
- package/locales/together/sk.json +56 -0
- package/locales/together/sv.json +56 -0
- package/locales/together/sw.json +56 -0
- package/locales/together/ta.json +56 -0
- package/locales/together/te.json +56 -0
- package/locales/together/th.json +56 -0
- package/locales/together/tl.json +56 -0
- package/locales/together/tr.json +56 -0
- package/locales/together/uk.json +56 -0
- package/locales/together/ur.json +56 -0
- package/locales/together/vi.json +56 -0
- package/locales/together/yo.json +56 -0
- package/locales/together/zh-Hans.json +56 -0
- package/locales/together/zh-Hant.json +56 -0
- package/locales/tr.json +9 -1
- package/locales/uk.json +9 -1
- package/locales/ur.json +9 -1
- package/locales/vi.json +9 -1
- package/locales/yo.json +9 -1
- package/locales/zh-Hans.json +9 -1
- package/locales/zh-Hant.json +9 -1
- package/package.json +1 -1
- package/ui/caps.js +2 -0
- package/ui/export.js +3 -3
- package/ui/icons.js +1 -1
- package/ui/looks/human.css +4 -2
- package/ui/markdown.js +2 -2
- package/ui/menu-icons.js +4 -0
- package/ui/seal.js +19 -24
- package/ui/style.css +7 -5
package/caps/made/paper.js
CHANGED
|
@@ -81,7 +81,7 @@ export async function wordLook() {
|
|
|
81
81
|
/** A picture of the project's, as a document names one. */
|
|
82
82
|
const KEPT = /!\[[^\]]*\]\((\.\.\/files\/sha256-[\da-f]{64}\.(\w+))\)/g
|
|
83
83
|
/** What a Word file holds as pictures, by what its Markdown says of each: the project's it names, and what's drawn on the page, by its code. @param {string} source @param {Element} [page] */
|
|
84
|
-
const picturesIn = async (source, page) => new Map(/** @type {[string, import('./formats.js').Picture][]} */ ((await Promise.all(/** @type {Promise<any[]>[]} */ ([
|
|
84
|
+
export const picturesIn = async (source, page) => new Map(/** @type {[string, import('./formats.js').Picture][]} */ ((await Promise.all(/** @type {Promise<any[]>[]} */ ([
|
|
85
85
|
...[...source.matchAll(KEPT)].map(async ([, at, kind]) => [at, await forWord(new Blob([/** @type {BlobPart} */ (await app.fs.readBytes(`${app.projectDir}/${at.slice(3)}`))], { type: `image/${kind.replace('jpg', 'jpeg')}` }))]),
|
|
86
86
|
// Drawn twice as fine as they show.
|
|
87
87
|
...[...page?.querySelectorAll('.drawn-form :is(app-chart, app-score, app-slides, app-latex, app-diagram)') ?? []].map(async (one) => [one.getAttribute('source'), await forWord(await /** @type {{ picture(): Promise<Blob | string> }} */ (/** @type {unknown} */ (one)).picture(), (width, height) => [width / 2, height / 2])]),
|
package/caps/scores/scores.js
CHANGED
|
@@ -15,6 +15,7 @@ import { icon, icons } from '../../ui/menu-icons.js'
|
|
|
15
15
|
import { styleSheet, still } from '../../ui/sheet.js'
|
|
16
16
|
import { modelWorker } from '../../ui/model.js'
|
|
17
17
|
import { t, dir, locale, useStrings, intlLocales } from '../../core/i18n.js'
|
|
18
|
+
import { serviceURL } from '../../core/settings.js'
|
|
18
19
|
import { notesOf, wholeNote } from './notes.js'
|
|
19
20
|
|
|
20
21
|
/** @typedef {import('./notes.js').Note} Note */
|
|
@@ -37,6 +38,23 @@ let playing = /** @type {AppScore | null} */ (null)
|
|
|
37
38
|
/** Where the music is made: a worker of this Jean's own, or none in a saved copy, whose files come from an address that starts none. */
|
|
38
39
|
const WORKER = new URL('./sound-worker.js', import.meta.url)
|
|
39
40
|
const sounds = WORKER.origin === location.origin ? modelWorker(WORKER, 'The score’s sound stopped') : null
|
|
41
|
+
/** Jean's own list of the instruments (D338): the sounds package's version, and each file's SHA-256, which the files that come from elsewhere are checked against. */
|
|
42
|
+
const OWN = new URL('../../vendor/sounds/', import.meta.url)
|
|
43
|
+
let version = /** @type {Promise<string> | null} */ (null)
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Where the instruments come from, as Settings or policy name it, at this Jean's version of them, an address of Jean's own
|
|
47
|
+
* when relative (an organisation's copy beside it), with Jean's own list of them; in a saved copy, the address it was saved
|
|
48
|
+
* with, and the list there. None when the address is ''.
|
|
49
|
+
* @returns {Promise<{ base: string, index?: string }>}
|
|
50
|
+
*/
|
|
51
|
+
async function instruments() {
|
|
52
|
+
const where = String(serviceURL('sounds', app.settings.peek(), app.policy) ?? '')
|
|
53
|
+
if (!where || !sounds && where.includes('{version}')) throw new Error('No address for the instruments')
|
|
54
|
+
if (!sounds) return { base: where }
|
|
55
|
+
const at = await (version ??= fetch(new URL('package.json', OWN)).then((response) => response.json()).then((found) => String(found.version)))
|
|
56
|
+
return { base: new URL(where.replace('{version}', at), document.baseURI).href, index: new URL('sounds.json', OWN).href }
|
|
57
|
+
}
|
|
40
58
|
|
|
41
59
|
/**
|
|
42
60
|
* One note: a triangle wave and, softer, its octave, struck and fading as a plucked string does,
|
|
@@ -179,7 +197,6 @@ class AppScore extends HTMLElement {
|
|
|
179
197
|
this.loading = null
|
|
180
198
|
this.start(sound)
|
|
181
199
|
}
|
|
182
|
-
const request = { notes: this.notes, rate: sound.sampleRate, base: (/** @type {Record<string, string>} */ (app.settings.peek().urls ?? {})).sounds }
|
|
183
200
|
const made = (/** @type {Record<string, any>} */ message) => {
|
|
184
201
|
if (this.parts !== parts) return
|
|
185
202
|
if (message.type === 'progress') return this.loading !== null && ((this.loading = message.loaded / message.total), this.paint())
|
|
@@ -190,7 +207,10 @@ class AppScore extends HTMLElement {
|
|
|
190
207
|
if (this.started !== null) this.schedule(parts[parts.length - 1])
|
|
191
208
|
ready()
|
|
192
209
|
}
|
|
193
|
-
const making =
|
|
210
|
+
const making = instruments().then((where) => {
|
|
211
|
+
const request = { notes: this.notes, rate: sound.sampleRate, ...where }
|
|
212
|
+
return sounds ? sounds.call(request, { onMessage: made }) : import('./sound.js').then(({ render }) => render(request, made, () => this.parts !== parts))
|
|
213
|
+
})
|
|
194
214
|
making.catch((error) => {
|
|
195
215
|
console.warn('Score', error)
|
|
196
216
|
if (this.parts !== parts || parts.length) return
|
package/caps/scores/sound.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
// A score's sound (D338): the instruments its notes ask for,
|
|
2
|
-
//
|
|
1
|
+
// A score's sound (D338): the instruments its notes ask for, MS Basic's files from where Settings or policy
|
|
2
|
+
// name them (jsDelivr's copy of the sounds package unless they name another), or where a saved copy names
|
|
3
|
+
// them, each downloaded once, checked against its SHA-256 in Jean's own list of them and kept apart
|
|
3
4
|
// from app versions where the browser keeps caches, then played by spessasynth_core a second at a
|
|
4
5
|
// time, each second handed on as it is made, so that the music starts with the first. In a worker
|
|
5
6
|
// (./sound-worker.js), or on the page of a saved copy, whose files come from an address that starts none.
|
|
@@ -20,15 +21,15 @@ const banks = new Map()
|
|
|
20
21
|
const channelOf = (note) => (note.instrument === 128 ? 9 : (note.track + (note.track >= 9 ? 1 : 0)) % 16)
|
|
21
22
|
|
|
22
23
|
/**
|
|
23
|
-
* The music of `notes` at `rate`, from the instruments at `base`
|
|
24
|
-
* them has come, then each second, handed to `post`, until it is done or `stopped()`.
|
|
25
|
-
* @param {{ notes: Note[], rate: number, base?: string }} request
|
|
24
|
+
* The music of `notes` at `rate`, from the instruments at `base` as `index` lists them (the list there when
|
|
25
|
+
* none): what of them has come, then each second, handed to `post`, until it is done or `stopped()`.
|
|
26
|
+
* @param {{ notes: Note[], rate: number, base: string, index?: string }} request
|
|
26
27
|
* @param {(message: Record<string, any>, transfer?: Transferable[]) => void} post @param {() => boolean} stopped
|
|
27
28
|
*/
|
|
28
|
-
export async function render({ notes, rate, base }, post, stopped) {
|
|
29
|
+
export async function render({ notes, rate, base, index }, post, stopped) {
|
|
29
30
|
const { SoundBankLoader, SpessaSynthProcessor } = await (library ??= import(new URL('../../vendor/spessasynth/spessasynth.mjs', import.meta.url).href))
|
|
30
|
-
const sounds = new URL(base
|
|
31
|
-
const { files, programs, drums } = /** @type {Index} */ (await (await fetch(new URL('sounds.json', sounds))).json())
|
|
31
|
+
const sounds = new URL(base, import.meta.url)
|
|
32
|
+
const { files, programs, drums } = /** @type {Index} */ (await (await fetch(index ?? new URL('sounds.json', sounds))).json())
|
|
32
33
|
const wanted = [...new Set(notes.map((note) => files[note.instrument === 128 ? drums : (programs[note.instrument] ?? programs[0])]))]
|
|
33
34
|
const got = wanted.map((file) => (banks.has(file.path) ? file.bytes : 0))
|
|
34
35
|
const total = wanted.reduce((sum, file) => sum + file.bytes, 0)
|
package/caps/slides/edit.js
CHANGED
|
@@ -38,8 +38,6 @@ export const withTitle = (source, title) => withSetting(source, 'title', JSON.st
|
|
|
38
38
|
const PICTURE = /(!\[[^\]\n]*\]\(<?)([^<>)\n]+?)(>?(?:\s+(?:"[^"\n]*"|'[^'\n]*'))?\))|^([ \t]*(?:image|background|backgroundImage)[ \t]*:[ \t]*)(.+?)([ \t]*)$/gm
|
|
39
39
|
/** The deck with each picture at the place `to` gives it, else where it was. @param {string} source @param {(place: string) => string | undefined | void} to */
|
|
40
40
|
export const withPictures = (source, to) => source.replace(PICTURE, (all, open, place, close, key, set, rest) => ((there) => (there ? `${open ?? key}${there}${close ?? rest}` : all))(to(place?.trim() ?? set.replace(/^(['"])(.*)\1$/, '$2'))))
|
|
41
|
-
/** The latest of the task's pictures that goes by the name a deck gives it, as the brain writes one: its case, %20 and its extension aside. @template {{ name: string }} T @param {T[]} pictures @param {string} place */
|
|
42
|
-
export const namedIn = (pictures, place) => ((bare) => pictures.findLast((one) => bare(one.name) === bare(place)))((/** @type {string} */ name) => name.trim().toLowerCase().replace(/%20/g, ' ').replace(/\.\w+$/, ''))
|
|
43
41
|
/** A place from the deck's folder, in the project, unless it is the web's, held inside or the page's own. @param {string} place */
|
|
44
42
|
export const placeIn = (place) => (/^([a-z][\w+.-]*:|\/)/i.test(place) ? undefined : new URL(place, 'file:///decks/').pathname.slice(1))
|
|
45
43
|
|
package/caps/slides/save.js
CHANGED
|
@@ -28,7 +28,7 @@ async function print(view, resolve) {
|
|
|
28
28
|
/** What a deck can do (ui/out.js): the one in this pane, as it is on show when pressed. @param {{ uri: string, name: string }} file @param {Element} pane @returns {import('../../ui/out.js').Ways | null} */
|
|
29
29
|
export function ways(file, pane) {
|
|
30
30
|
const shown = () => /** @type {NonNullable<ReturnType<typeof here>>} */ (here(pane)), page = async () => /** @type {BlobPart} */ (await (await import('../skills/decks.js')).bytesOf(file.uri, shown().view.source)), named = `${file.name}.deck.html`
|
|
31
|
-
return { share: () => ({ text: `\`\`\`\`deck\n${shown().view.source}\n\`\`\`\`` }),
|
|
31
|
+
return { share: () => ({ text: `\`\`\`\`deck\n${shown().view.source}\n\`\`\`\`` }), thing: { kind: /** @type {const} */ ('deck'), uri: file.uri },
|
|
32
32
|
send: { file: named, type: 'text/html', make: async () => ({ title: file.name, files: [new File([await page()], named, { type: 'text/html' })] }) },
|
|
33
33
|
copy: { id: 'copy', label: t('slides.out.copy'), run: () => copyDrawing(shown().view.source, shown().picture()).then(() => notify(t('toast.copied'))) },
|
|
34
34
|
files: [{ id: 'pptx', glyph: icons.slides, label: t('slides.out.pptx'), run: async () => {
|
package/caps/slides/slides.css
CHANGED
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
the room's, Jean's version of a slide ringed in the flame, the words pointed at outlined; beside the conversation, the
|
|
3
3
|
deck's Markdown under its slides, as the pane is narrow; on a card, its first slide alone. */
|
|
4
4
|
app-slides { display: block; }
|
|
5
|
+
/* deck names its stage for its slides' transitions: named only while one pages, so that through Jean's own (the drawer's, a
|
|
6
|
+
first answer's) it stays in the page rather than over its top bar, and two decks on screen don't share a name, which ends them. */
|
|
7
|
+
:root:not([data-deck-transition]) .deck-stage { view-transition-name: none; }
|
|
5
8
|
app-slides .deck { gap: 0.4rem; }
|
|
6
9
|
app-slides .deck-bar { flex-wrap: wrap; gap: 0.15rem; color: var(--ink-soft); font: inherit; font-size: 0.85rem; }
|
|
7
10
|
app-slides .deck-bar button { min-inline-size: 2.1rem; min-block-size: 2.1rem; border-radius: 50%; color: var(--ink-soft); }
|
package/caps/slides/slides.js
CHANGED
|
@@ -20,14 +20,15 @@ import { icon } from '../../ui/icons.js'
|
|
|
20
20
|
import { icons } from '../../ui/menu-icons.js'
|
|
21
21
|
import { styleSheet } from '../../ui/sheet.js'
|
|
22
22
|
import { reviewBar } from '../../ui/review.js'
|
|
23
|
-
import { noteRecord
|
|
23
|
+
import { noteRecord } from '../../core/events.js'
|
|
24
|
+
import { taskFiles, fileNamed } from '../../core/files.js'
|
|
24
25
|
import { t, useStrings, locale, intlLocales } from '../../core/i18n.js'
|
|
25
26
|
import { languageOf } from '../../ui/language.js'
|
|
26
27
|
import { kitHere, withNames, words } from './kit.js'
|
|
27
28
|
import { kitSlot } from './kit-slot.js'
|
|
28
29
|
import { cjk } from '../layouts/shapes.js'
|
|
29
30
|
import { drawing, coloured, told, wordsBelow } from '../interactive/diagram.js'
|
|
30
|
-
import { withLayout, withoutKit, changesOf, swapped, withPictures,
|
|
31
|
+
import { withLayout, withoutKit, changesOf, swapped, withPictures, placeIn } from './edit.js'
|
|
31
32
|
|
|
32
33
|
await Promise.all([useStrings('slides'), useStrings('interactive'), styleSheet(new URL('../../vendor/deck/deck.css', import.meta.url)), styleSheet(new URL('slides.css', import.meta.url))])
|
|
33
34
|
|
|
@@ -137,9 +138,9 @@ class AppSlides extends HTMLElement {
|
|
|
137
138
|
|
|
138
139
|
/** The pictures the deck names that aren't read yet: one of the task's by the name the brain gave it, else at its place from the deck's folder; none in a task saved as a page, whose room has no files. */
|
|
139
140
|
async held() {
|
|
140
|
-
const records = app.current.peek()?.records ?? [], pictures =
|
|
141
|
+
const records = app.current.peek()?.records ?? [], pictures = taskFiles(records, app.live.peek()?.turn?.steps).filter((one) => /^image\//.test(one.mimeType ?? '')), places = /** @type {string[]} */ ([])
|
|
141
142
|
withPictures(this.source, (place) => void (!app.fs || /^[a-z][\w+.-]*:/i.test(place) || this.urls.has(place) || (places.push(place), this.urls.set(place, ''))))
|
|
142
|
-
await Promise.all(places.map((place) => ((uri) => uri && app.fs.readBytes(`${app.projectDir}/${uri}`).then((bytes) => bytes && this.urls.set(place, URL.createObjectURL(new Blob([/** @type {BlobPart} */ (bytes)], { type: /\.svg$/i.test(uri) ? 'image/svg+xml' : '' })))))(
|
|
143
|
+
await Promise.all(places.map((place) => ((uri) => uri && app.fs.readBytes(`${app.projectDir}/${uri}`).then((bytes) => bytes && this.urls.set(place, URL.createObjectURL(new Blob([/** @type {BlobPart} */ (bytes)], { type: /\.svg$/i.test(uri) ? 'image/svg+xml' : '' })))))(fileNamed(pictures, place)?.uri ?? placeIn(place))))
|
|
143
144
|
return this.isConnected
|
|
144
145
|
}
|
|
145
146
|
|
package/core/events.js
CHANGED
|
@@ -26,7 +26,7 @@ export const metaRecord = (by, meta) => ({ at: new Date().toISOString(), by, met
|
|
|
26
26
|
/**
|
|
27
27
|
* @typedef {{ index: number, text: string, thought: string, tools: ToolCallInfo[], compaction?: CompactionUpdate }} Step compaction: a summary read on from (D359)
|
|
28
28
|
* @typedef {{ text: string, data: SystemNoteData }} Note
|
|
29
|
-
* @typedef {{ text: string, files: ResourceLink[], at: string, upTo: number, steer?: boolean }} UserTurn upTo: how many records lead up to its end; steer: D365
|
|
29
|
+
* @typedef {{ text: string, files: ResourceLink[], at: string, upTo: number, steer?: boolean, theirs?: true }} UserTurn upTo: how many records lead up to its end; steer: D365; theirs: someone else's
|
|
30
30
|
* @typedef {{ user: UserTurn | null, notes: Note[], steps: Step[], plan?: PlanEntry[], at: string, end?: string }} Turn
|
|
31
31
|
* notes are the system notes recorded just before this turn's user message; end is when its answer was last written.
|
|
32
32
|
*/
|
|
@@ -55,6 +55,7 @@ export function foldTurns(records) {
|
|
|
55
55
|
const user = /** @type {UserTurn} */ (turn.user)
|
|
56
56
|
user.upTo = index + 1
|
|
57
57
|
if (update._meta?.steer) user.steer = true
|
|
58
|
+
if (update._meta?.theirs) user.theirs = true
|
|
58
59
|
if (update.content.type === 'resource_link') user.files.push(update.content)
|
|
59
60
|
else user.text += update.content.text
|
|
60
61
|
} else {
|
|
@@ -70,7 +71,7 @@ export function foldTurns(records) {
|
|
|
70
71
|
/** Every file linked from the conversation, in order. @param {Envelope[]} records @returns {ResourceLink[]} */
|
|
71
72
|
export const linkedFiles = (records) => records.flatMap(({ update }) => (update?.sessionUpdate === 'user_message_chunk' && update.content.type === 'resource_link' ? [update.content] : []))
|
|
72
73
|
|
|
73
|
-
/** A picture brains that can see take as it is: PNG, JPEG, WebP or GIF. @param {
|
|
74
|
+
/** A picture brains that can see take as it is: PNG, JPEG, WebP or GIF. @param {{ mimeType?: string }} link */
|
|
74
75
|
export const isPicture = (link) => /^image\/(png|jpeg|webp|gif)$/.test(link.mimeType ?? '')
|
|
75
76
|
|
|
76
77
|
/** @param {Turn} turn @param {AcpUpdate} update @param {number} index */
|
|
@@ -116,8 +117,8 @@ export function splitSuggestions(text) {
|
|
|
116
117
|
/** Latest title from meta records. @param {Envelope[]} records @returns {string} */
|
|
117
118
|
export const titleOf = (records) => records.findLast((record) => record.meta?.title)?.meta?.title ?? ''
|
|
118
119
|
|
|
119
|
-
/** The words of each request, in order. @param {Envelope[]} records @returns {string[]} */
|
|
120
|
-
export const requestsOf = (records) => records.flatMap(({ update }) => (update?.sessionUpdate === 'user_message_chunk' && update.content.type === 'text' && update.content.text ? [update.content.text] : []))
|
|
120
|
+
/** The words of each request, in order, but someone else's. @param {Envelope[]} records @returns {string[]} */
|
|
121
|
+
export const requestsOf = (records) => records.flatMap(({ update }) => (update?.sessionUpdate === 'user_message_chunk' && update.content.type === 'text' && update.content.text && !update._meta?.theirs ? [update.content.text] : []))
|
|
121
122
|
|
|
122
123
|
/** The words of the request that opened the conversation. @param {Envelope[]} records */
|
|
123
124
|
export const openingOf = (records) => requestsOf(records)[0] ?? ''
|
package/core/files.js
CHANGED
|
@@ -2,14 +2,38 @@
|
|
|
2
2
|
// with a [[page N]] line before each page) and .meta.json. Named by content, so the
|
|
3
3
|
// same file dropped twice is stored once. Conversations link to files, never copy them.
|
|
4
4
|
import { encoder, join, readJSON, walk, writeJSON } from './fs.js'
|
|
5
|
-
import { isPicture } from './events.js'
|
|
5
|
+
import { isPicture, filesMade } from './events.js'
|
|
6
6
|
import { lexicon, lookup } from './search.js'
|
|
7
7
|
|
|
8
|
-
/** @import { FS, Envelope, ResourceLink, DocumentPart } from './types.js' */
|
|
8
|
+
/** @import { FS, Envelope, ResourceLink, DocumentPart, ToolCallInfo } from './types.js' */
|
|
9
9
|
/** @typedef {{ format: 1, kind: 'file', name: string, mimeType: string, size: number, hash: string, pages: number, createdAt: string, author: string, pinned?: boolean }} FileMeta */
|
|
10
10
|
|
|
11
11
|
const MARKER = /^\[\[page (\d+)\]\]$/m
|
|
12
12
|
|
|
13
|
+
/**
|
|
14
|
+
* Every file of a conversation as it came, each the user shared and each its calls made, then those of the answer being written:
|
|
15
|
+
* what a brain can put in what it makes. @param {Envelope[]} records @param {{ tools: ToolCallInfo[] }[]} [steps]
|
|
16
|
+
* @returns {{ uri: string, name: string, mimeType?: string }[]}
|
|
17
|
+
*/
|
|
18
|
+
export const taskFiles = (records, steps = []) => [...records.flatMap(({ update }) => /** @type {{ uri: string, name: string, mimeType?: string }[]} */ (update?.sessionUpdate === 'user_message_chunk'
|
|
19
|
+
&& update.content.type === 'resource_link' && update.content.uri ? [update.content] : update?.sessionUpdate === 'tool_call' ? filesMade([update]) : [])), ...filesMade(steps.flatMap((step) => step.tools))]
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* The file of a conversation a brain names: by its place, else the latest of that name as a brain writes one, its case, %20, a
|
|
23
|
+
* folder before it and its extension aside. @template {{ uri: string, name: string }} T @param {T[]} files @param {string} said
|
|
24
|
+
* @returns {T | undefined}
|
|
25
|
+
*/
|
|
26
|
+
export const fileNamed = (files, said) => ((bare, place = String(said ?? '').trim().replace(/^(\.\.?\/)+/, '')) => files.findLast((one) => one.uri === place)
|
|
27
|
+
?? files.findLast((one) => bare(one.name) === bare(place)))((/** @type {string} */ name) => name.normalize().toLowerCase().replace(/%20/g, ' ').replace(/^.*\//, '').replace(/\.\w+$/, ''))
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Markdown with each picture that names a file of the task as a brain writes one, ``, at that file's place from a
|
|
31
|
+
* folder of the project, `../files/sha256-…`, where documents and Word files take it. @param {string} markdown
|
|
32
|
+
* @param {{ uri: string, name: string }[]} files
|
|
33
|
+
*/
|
|
34
|
+
export const picturesPlaced = (markdown, files) => markdown.replace(/(!\[[^\]\n]*\]\()(<[^>\n]+>|[^\s)]+)/g, (all, open, said) => ((one) => (one ? `${open}../${one.uri}` : all))(
|
|
35
|
+
/^<?([a-z][\w+.-]*:|\.\.\/files\/)/i.test(said) ? undefined : fileNamed(files, said.replace(/^<|>$/g, ''))))
|
|
36
|
+
|
|
13
37
|
/** @param {Uint8Array} bytes */
|
|
14
38
|
export async function sha256Hex(bytes) {
|
|
15
39
|
const digest = await crypto.subtle.digest('SHA-256', /** @type {BufferSource} */ (bytes))
|
package/core/fs.js
CHANGED
|
@@ -8,44 +8,30 @@ export function normalizeDir(path) {
|
|
|
8
8
|
if (typeof path !== 'string') throw new TypeError(`Path must be a string, got ${typeof path}`)
|
|
9
9
|
if (path.startsWith('/') || path.includes('\\')) throw new TypeError(`Invalid path: ${path}`)
|
|
10
10
|
const trimmed = path.endsWith('/') ? path.slice(0, -1) : path
|
|
11
|
-
if (trimmed
|
|
12
|
-
for (const segment of trimmed.split('/')) {
|
|
13
|
-
if (segment === '' || segment === '.' || segment === '..') throw new TypeError(`Invalid path: ${path}`)
|
|
14
|
-
}
|
|
11
|
+
if (trimmed && trimmed.split('/').some((segment) => segment === '' || segment === '.' || segment === '..')) throw new TypeError(`Invalid path: ${path}`)
|
|
15
12
|
return trimmed
|
|
16
13
|
}
|
|
17
14
|
|
|
18
15
|
/** @param {string} path relative POSIX path, e.g. "projects/x/project.md" @returns {string} */
|
|
19
|
-
export
|
|
20
|
-
const normalized = normalizeDir(path)
|
|
21
|
-
if (normalized === '') throw new TypeError('Empty path')
|
|
22
|
-
return normalized
|
|
23
|
-
}
|
|
16
|
+
export const normalizePath = (path) => normalizeDir(path) || (() => { throw new TypeError('Empty path') })()
|
|
24
17
|
|
|
25
18
|
/** Empty parts are ignored; joining nothing gives '' (the root). @param {...string} parts */
|
|
26
19
|
export const join = (...parts) => parts.map(normalizeDir).filter(Boolean).join('/')
|
|
27
20
|
|
|
28
21
|
/** @param {string} path @returns {string} '' for top-level entries */
|
|
29
|
-
export
|
|
30
|
-
const normalized = normalizePath(path)
|
|
31
|
-
const slash = normalized.lastIndexOf('/')
|
|
32
|
-
return slash < 0 ? '' : normalized.slice(0, slash)
|
|
33
|
-
}
|
|
22
|
+
export const dirname = (path) => ((normalized) => normalized.slice(0, Math.max(normalized.lastIndexOf('/'), 0)))(normalizePath(path))
|
|
34
23
|
|
|
35
|
-
/** @param {string} path */
|
|
36
|
-
export
|
|
37
|
-
const normalized = normalizePath(path)
|
|
38
|
-
return normalized.slice(normalized.lastIndexOf('/') + 1)
|
|
39
|
-
}
|
|
24
|
+
/** @param {string} path @returns {string} */
|
|
25
|
+
export const basename = (path) => ((normalized) => normalized.slice(normalized.lastIndexOf('/') + 1))(normalizePath(path))
|
|
40
26
|
|
|
41
27
|
/** Entries in the order of their names' code units, as every FS lists them. @param {DirEntry} a @param {DirEntry} b */
|
|
42
28
|
export const byName = (a, b) => (a.name < b.name ? -1 : a.name > b.name ? 1 : 0)
|
|
43
29
|
|
|
44
|
-
/** @param {unknown} text */
|
|
45
|
-
function assertText(text) { if (typeof text !== 'string') throw new TypeError(`File content must be a string, got ${typeof text}`) }
|
|
30
|
+
/** File content as text, or a TypeError. @param {unknown} text @returns {string} */
|
|
31
|
+
export function assertText(text) { if (typeof text !== 'string') throw new TypeError(`File content must be a string, got ${typeof text}`); return text }
|
|
46
32
|
|
|
47
|
-
/** @param {unknown} bytes */
|
|
48
|
-
function assertBytes(bytes) { if (!(bytes instanceof Uint8Array)) throw new TypeError('File content must be a Uint8Array') }
|
|
33
|
+
/** File content as bytes, or a TypeError. @param {unknown} bytes @returns {Uint8Array} */
|
|
34
|
+
export function assertBytes(bytes) { if (!(bytes instanceof Uint8Array)) throw new TypeError('File content must be a Uint8Array'); return bytes }
|
|
49
35
|
|
|
50
36
|
export const encoder = new TextEncoder()
|
|
51
37
|
const decoder = new TextDecoder()
|
|
@@ -64,22 +50,13 @@ export function memoryFS(initial = {}) {
|
|
|
64
50
|
const changed = new Map()
|
|
65
51
|
let clock = 0
|
|
66
52
|
/** @param {string} key @param {string | Uint8Array} value */
|
|
67
|
-
const put = (key, value) => {
|
|
68
|
-
files.set(key, value)
|
|
69
|
-
changed.set(key, (clock = Math.max(clock + 1, Date.now())))
|
|
70
|
-
}
|
|
53
|
+
const put = (key, value) => { files.set(key, value); changed.set(key, (clock = Math.max(clock + 1, Date.now()))) }
|
|
71
54
|
/** @param {string} key */
|
|
72
|
-
const text = (key) =>
|
|
73
|
-
const value = files.get(key)
|
|
74
|
-
return value === undefined ? null : typeof value === 'string' ? value : decoder.decode(value)
|
|
75
|
-
}
|
|
55
|
+
const text = (key) => ((value) => (value === undefined ? null : typeof value === 'string' ? value : decoder.decode(value)))(files.get(key))
|
|
76
56
|
for (const [path, value] of Object.entries(initial)) put(normalizePath(path), value)
|
|
77
57
|
|
|
78
58
|
/** @param {string} path */
|
|
79
|
-
const isDir = (path) =>
|
|
80
|
-
for (const key of files.keys()) if (key.startsWith(path + '/')) return true
|
|
81
|
-
return false
|
|
82
|
-
}
|
|
59
|
+
const isDir = (path) => [...files.keys()].some((key) => key.startsWith(path + '/'))
|
|
83
60
|
|
|
84
61
|
/** A path a file can be written at, normalized: not a directory, and under none of the files. @param {string} path */
|
|
85
62
|
const writable = (path) => {
|
|
@@ -90,26 +67,11 @@ export function memoryFS(initial = {}) {
|
|
|
90
67
|
}
|
|
91
68
|
|
|
92
69
|
return {
|
|
93
|
-
async
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
async
|
|
97
|
-
|
|
98
|
-
return value === undefined ? null : typeof value === 'string' ? encoder.encode(value) : value.slice()
|
|
99
|
-
},
|
|
100
|
-
async write(path, value) {
|
|
101
|
-
assertText(value)
|
|
102
|
-
put(writable(path), value)
|
|
103
|
-
},
|
|
104
|
-
async writeBytes(path, bytes) {
|
|
105
|
-
assertBytes(bytes)
|
|
106
|
-
put(writable(path), bytes.slice())
|
|
107
|
-
},
|
|
108
|
-
async append(path, value) {
|
|
109
|
-
assertText(value)
|
|
110
|
-
const key = writable(path)
|
|
111
|
-
put(key, (text(key) ?? '') + value)
|
|
112
|
-
},
|
|
70
|
+
read: async (path) => text(normalizePath(path)),
|
|
71
|
+
readBytes: async (path) => ((value) => (value === undefined ? null : typeof value === 'string' ? encoder.encode(value) : value.slice()))(files.get(normalizePath(path))),
|
|
72
|
+
write: async (path, value) => put(writable(path), assertText(value)),
|
|
73
|
+
writeBytes: async (path, bytes) => put(writable(path), assertBytes(bytes).slice()),
|
|
74
|
+
append: async (path, value) => ((key) => put(key, (text(key) ?? '') + assertText(value)))(writable(path)),
|
|
113
75
|
async list(dir) {
|
|
114
76
|
const normalized = normalizeDir(dir)
|
|
115
77
|
const prefix = normalized ? normalized + '/' : ''
|
|
@@ -122,27 +84,11 @@ export function memoryFS(initial = {}) {
|
|
|
122
84
|
}
|
|
123
85
|
return [...children].map(([name, kind]) => ({ name, kind })).sort(byName)
|
|
124
86
|
},
|
|
125
|
-
async
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
if (file === key || file.startsWith(key + '/')) files.delete(file)
|
|
129
|
-
}
|
|
130
|
-
},
|
|
131
|
-
async exists(path) {
|
|
132
|
-
const key = normalizePath(path)
|
|
133
|
-
return files.has(key) || isDir(key)
|
|
134
|
-
},
|
|
135
|
-
async stat(path) {
|
|
136
|
-
const key = normalizePath(path)
|
|
137
|
-
const value = files.get(key)
|
|
138
|
-
return value === undefined ? null : { size: typeof value === 'string' ? encoder.encode(value).length : value.length, lastModified: changed.get(key) ?? 0 }
|
|
139
|
-
},
|
|
87
|
+
remove: async (path) => { const key = normalizePath(path); for (const file of [...files.keys()]) if (file === key || file.startsWith(key + '/')) files.delete(file) },
|
|
88
|
+
exists: async (path) => ((key) => files.has(key) || isDir(key))(normalizePath(path)),
|
|
89
|
+
stat: async (path) => ((key, value) => (value === undefined ? null : { size: typeof value === 'string' ? encoder.encode(value).length : value.length, lastModified: changed.get(key) ?? 0 }))(normalizePath(path), files.get(normalizePath(path))),
|
|
140
90
|
watch: () => () => {},
|
|
141
|
-
async
|
|
142
|
-
let usage = 0
|
|
143
|
-
for (const value of files.values()) usage += value.length
|
|
144
|
-
return { usage }
|
|
145
|
-
},
|
|
91
|
+
estimate: async () => ({ usage: [...files.values()].reduce((usage, value) => usage + value.length, 0) }),
|
|
146
92
|
}
|
|
147
93
|
}
|
|
148
94
|
|
package/core/i18n.js
CHANGED
|
@@ -78,18 +78,35 @@ const format = (value, lang) => (typeof value === 'number' ? new Intl.NumberForm
|
|
|
78
78
|
/** @param {string} [lang] @returns {'rtl' | 'ltr'} */
|
|
79
79
|
export const dir = (lang = locale.value) => (RTL.has(lang.split('-')[0].toLowerCase()) ? 'rtl' : 'ltr')
|
|
80
80
|
|
|
81
|
+
/** Each language's names of languages, made once: a menu of them names each language in each. @type {Map<string, Intl.DisplayNames>} */
|
|
82
|
+
const names = new Map()
|
|
83
|
+
const namesIn = (/** @type {string} */ lang) => names.get(lang) ?? names.set(lang, new Intl.DisplayNames(intlLocales(lang), { type: 'language' })).get(lang)
|
|
84
|
+
|
|
81
85
|
/** Name of a language, written in `inLang` (defaults to itself). */
|
|
82
86
|
export function languageName(/** @type {string} */ code, inLang = code) {
|
|
83
87
|
try {
|
|
84
|
-
const name = (code === inLang && SPARSE[code]?.name) || (
|
|
88
|
+
const name = (code === inLang && SPARSE[code]?.name) || (namesIn(inLang)?.of(code) ?? code)
|
|
85
89
|
return name.charAt(0).toLocaleUpperCase(inLang) + name.slice(1)
|
|
86
90
|
} catch {
|
|
87
91
|
return code
|
|
88
92
|
}
|
|
89
93
|
}
|
|
90
94
|
|
|
91
|
-
/**
|
|
95
|
+
/**
|
|
96
|
+
* Available locales that match the user's preferences, in their order, without repeats: the same tag, else the same language
|
|
97
|
+
* and likely script, so zh-TW meets zh-Hant and pt-BR meets pt, and the "fil" browsers say meets the "tl" Filipino is written
|
|
98
|
+
* in. Nothing outside it, since the site's pages run it as written (site/site.js).
|
|
99
|
+
* @param {string[]} available @param {readonly string[]} preferred e.g. navigator.languages
|
|
100
|
+
*/
|
|
92
101
|
export function preferredLocales(available, preferred) {
|
|
102
|
+
const languageAndScript = (/** @type {string} */ code) => {
|
|
103
|
+
try {
|
|
104
|
+
const { language, script } = new Intl.Locale(code).maximize()
|
|
105
|
+
return `${language === 'fil' ? 'tl' : language}-${script}`
|
|
106
|
+
} catch {
|
|
107
|
+
return null
|
|
108
|
+
}
|
|
109
|
+
}
|
|
93
110
|
/** @type {string[]} */
|
|
94
111
|
const found = []
|
|
95
112
|
for (const wanted of preferred) {
|
|
@@ -103,20 +120,6 @@ export function preferredLocales(available, preferred) {
|
|
|
103
120
|
/** Best available locale for the user's preferences. @param {string[]} available @param {readonly string[]} preferred e.g. navigator.languages */
|
|
104
121
|
export const pickLocale = (available, preferred) => preferredLocales(available, preferred)[0] ?? (available.includes('en') ? 'en' : available[0])
|
|
105
122
|
|
|
106
|
-
// Browsers say "fil" for the Filipino that the "tl" catalogue is written in.
|
|
107
|
-
/** @type {Record<string, string>} */
|
|
108
|
-
const SAME_LANGUAGE = { fil: 'tl' }
|
|
109
|
-
|
|
110
|
-
/** Language and likely script, so zh-TW meets zh-Hant and pt-BR meets pt. @param {string} code */
|
|
111
|
-
function languageAndScript(code) {
|
|
112
|
-
try {
|
|
113
|
-
const { language, script } = new Intl.Locale(code).maximize()
|
|
114
|
-
return `${SAME_LANGUAGE[language] ?? language}-${script}`
|
|
115
|
-
} catch {
|
|
116
|
-
return null
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
|
|
120
123
|
/** "14 MB", or "30 bytes" in words, in the current locale. @param {number} bytes */
|
|
121
124
|
export function formatBytes(bytes) {
|
|
122
125
|
const [unit, size] = bytes >= 1e9 ? ['gigabyte', bytes / 1e9] : bytes >= 1e6 ? ['megabyte', bytes / 1e6] : bytes >= 1e3 ? ['kilobyte', bytes / 1e3] : ['byte', bytes]
|
package/core/loop.js
CHANGED
|
@@ -311,6 +311,7 @@ function stepRecords(step, brainEntry, thought, text) {
|
|
|
311
311
|
*/
|
|
312
312
|
async function runTool(call, tool, step, ctx, parent, waiting) {
|
|
313
313
|
const { rule, askPermission, onUpdate, signal } = ctx
|
|
314
|
+
if (tool) call = { ...call, args: typed(tool, call.args) }
|
|
314
315
|
// Stopped: nothing more runs, and nothing more is asked.
|
|
315
316
|
if (signal?.aborted) throw new LLMError('Request aborted', { code: 'aborted' })
|
|
316
317
|
/** @type {ToolCallInfo} */
|
|
@@ -426,6 +427,13 @@ const under = (update, parent) => ({ ...update, toolCallId: `${parent}/${update.
|
|
|
426
427
|
/** The arguments a tool requires that a call leaves out. @param {Tool} tool @param {any} args @returns {string[]} */
|
|
427
428
|
const lacking = ({ spec }, args) => (/** @type {{ required?: string[] }} */ (spec.parameters).required ?? []).filter((/** @type {string} */ name) => args?.[name] == null)
|
|
428
429
|
|
|
430
|
+
/**
|
|
431
|
+
* A call's arguments with each list or object its tool asks for that a brain sent as JSON text read as such, as some send a
|
|
432
|
+
* tool of another's (Claude Code's own tools): never a list left out unseen. @param {Tool} tool @param {any} args
|
|
433
|
+
*/
|
|
434
|
+
const typed = ({ spec }, args) => (args && typeof args === 'object' && !Array.isArray(args) ? Object.fromEntries(Object.entries(args).map(([name, value]) => [name,
|
|
435
|
+
typeof value === 'string' && /^(array|object)$/.test(/** @type {any} */ (spec.parameters).properties?.[name]?.type) ? safe(() => ((read) => (typeof read === 'object' && read ? read : value))(JSON.parse(value)), value) : value])) : args)
|
|
436
|
+
|
|
429
437
|
/** @template T @param {() => T} fn @param {T} fallback */
|
|
430
438
|
function safe(fn, fallback) {
|
|
431
439
|
try { return fn() } catch { return fallback }
|
package/core/settings.js
CHANGED
|
@@ -29,6 +29,8 @@ export const DEFAULT_URLS = Object.freeze({
|
|
|
29
29
|
timestamp: 'https://timestamp.sigstore.dev/api/v1/timestamp', transparencyLog: 'https://rekor.sigstore.dev',
|
|
30
30
|
// The renderer a deck file links to (D595): deck's own, at its version, on jsDelivr's npm mirror.
|
|
31
31
|
deck: 'https://cdn.jsdelivr.net/npm/@codename/deck@{version}/dist/deck.js',
|
|
32
|
+
// The instruments a score plays (D338): the sounds package on jsDelivr, at this Jean's version of it, none when ''.
|
|
33
|
+
sounds: 'https://cdn.jsdelivr.net/npm/@jean-is/sounds@{version}/',
|
|
32
34
|
})
|
|
33
35
|
|
|
34
36
|
/** @param {keyof typeof DEFAULT_URLS} name @param {Settings} settings @param {{ urls?: Record<string, string> }} [policy] */
|
package/locales/am.json
CHANGED
|
@@ -9,6 +9,8 @@
|
|
|
9
9
|
"welcome.install": "የሚጫን ነገር የለም",
|
|
10
10
|
"welcome.device": "በዚህ መሣሪያ ላይ ይቀመጣል",
|
|
11
11
|
"welcome.open": "ነፃ እና ክፍት ምንጭ",
|
|
12
|
+
"welcome.join": "{name}ን በሌላ መሣሪያ ላይ ቀድሞውኑ ይጠቀማሉ? {link}",
|
|
13
|
+
"welcome.bring": "እዚህ ያምጡት",
|
|
12
14
|
"starter.sample": "የተመን ሉህ ይሞክሩ",
|
|
13
15
|
"starter.sample.prompt": "በዓመቱ ውስጥ በጣም ያደገው የትኛው ምርት ነው? በሠንጠረዥ ያሳዩኝ።",
|
|
14
16
|
"starter.music": "ዜማ መድረስ",
|
|
@@ -135,6 +137,7 @@
|
|
|
135
137
|
"provider.fireworks": "Fireworks AI",
|
|
136
138
|
"provider.xai": "xAI",
|
|
137
139
|
"settings.title": "ቅንብሮች",
|
|
140
|
+
"settings.computer": "ኮምፒውተር",
|
|
138
141
|
"settings.language": "ቋንቋ",
|
|
139
142
|
"collection.title": "{name}፦ ችሎታዎች",
|
|
140
143
|
"learn.home": "መነሻ ገጽ",
|
|
@@ -294,11 +297,14 @@
|
|
|
294
297
|
"cap.backup.offer": "ተግባራትዎ የሚገኙት በዚህ አሳሽ ውስጥ ብቻ ነው። የሁሉም ነገር ቅጂ ይቀመጥ?",
|
|
295
298
|
"cap.backup.yes": "ምትኬ ያውርዱ",
|
|
296
299
|
"cap.share.name": "ማጋራት",
|
|
297
|
-
"cap.sync.name": "
|
|
300
|
+
"cap.sync.name": "የተመሳሰለ አቃፊ",
|
|
298
301
|
"cap.sync.offer": "ተግባራትዎ፣ ፋይሎችዎና ትውስታ በሌሎች ኮምፒውተሮችዎም ላይ አንድ ዓይነት ይሁኑ? የደመና ማከማቻዎ የሚያመሳስለውን አቃፊ ይመርጣሉ።",
|
|
299
302
|
"cap.sync.yes": "አቃፊ ይምረጡ",
|
|
300
303
|
"cap.devices.name": "መሣሪያዎችዎ",
|
|
301
304
|
"cap.devices.offer": "አንጎሎችዎ፣ ቅንብሮችዎና ፕሮጀክቶችዎ በስልክዎ ወይም በሌላ ኮምፒውተርም ላይ እንዲኖሩ ይፈልጋሉ? በQR ኮድና በስድስት አሃዞች ያክሉታል።",
|
|
305
|
+
"cap.people.name": "ሰዎች",
|
|
306
|
+
"cap.people.offer": "ይህን {name}ንም ለሚጠቀም ሰው መላክና መልሱን ማግኘት ይፈልጋሉ?",
|
|
307
|
+
"cap.together.name": "አብሮ መሥራት",
|
|
302
308
|
"cap.lock.name": "መቆለፊያ",
|
|
303
309
|
"cap.lock.offer": "በዚህ መሣሪያ ላይ እርስዎ ብቻ እንዲከፍቷቸው ተግባራትዎን፣ ፋይሎችዎን እና ቁልፎችዎን ይቆልፉ?",
|
|
304
310
|
"cap.lock.yes": "መቆለፊያ ያዘጋጁ",
|
|
@@ -430,6 +436,8 @@
|
|
|
430
436
|
"check.fix.prompt": "ምንጮቹ እነዚህን ነጥቦች አይደግፉም። እንደገና ተረጋግጠው መልሱ ይስተካከል፦",
|
|
431
437
|
"since.prompt": "ካለፈው ጊዜ ወዲህ ምን አዲስ ነገር አለ?",
|
|
432
438
|
"since.closed": "ይህ ትር ሲዘጋ ሥራ ይቆማል፤ ስለዚህ ይህ አሁን ገና ተነበበ።",
|
|
439
|
+
"shared.came": "ከእርስዎ ጋር የተጋራ",
|
|
440
|
+
"shared.from": "ከ{name}",
|
|
433
441
|
"cap.machine.name": "ይህ ኮምፒውተር",
|
|
434
442
|
"cap.machine.offer": "የአንድ ድር ጣቢያ የልማት ሰርቨርን ወይም የራስዎን ፕሮግራሞች በዚህ ኮምፒውተር ላይ ያስኪዱ?",
|
|
435
443
|
"cap.machine.yes": "ይህን ኮምፒውተር ይጠቀሙ",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"approvals.covers.edit": "Écrire un nouveau fichier, ou en modifier un que {name} a créé ou que vous avez donné",
|
|
23
23
|
"approvals.covers.search": "Chercher quelque chose, sur le web ou dans vos fichiers",
|
|
24
24
|
"approvals.covers.execute": "Calculer quelque chose exactement, avec quelques lignes de code",
|
|
25
|
-
"approvals.covers.fetch": "Ouvrir une page web
|
|
25
|
+
"approvals.covers.fetch": "Ouvrir une page web ou accéder à un site",
|
|
26
26
|
"approvals.covers.move": "Mettre un fichier ailleurs, ou lui donner un autre nom",
|
|
27
27
|
"approvals.covers.delete": "Supprimer un fichier",
|
|
28
28
|
"approvals.covers.other": "Envoyer un message, partager quelque chose, et tout ce qui passe par vos services",
|
|
@@ -43,14 +43,14 @@
|
|
|
43
43
|
"approvals.ifText": "{name} se pose la question avant chaque action. Dans le doute, la réponse compte comme oui.",
|
|
44
44
|
"approvals.films": "Vidéos",
|
|
45
45
|
"approvals.what.folder": "{name} y modifie les fichiers sans demander",
|
|
46
|
-
"approvals.what.site": "L’ordinateur peut
|
|
46
|
+
"approvals.what.site": "L’ordinateur peut y accéder",
|
|
47
47
|
"approvals.what.films": "Faites sans demander, bien qu’elles coûtent plus que des images",
|
|
48
48
|
"approvals.what.meeting": "Les assistants de ces projets peuvent se réunir sans demander",
|
|
49
49
|
"approvals.what.extension": "Peut laisser des actions se faire sans vous demander",
|
|
50
50
|
"approvals.stop": "Arrêter",
|
|
51
51
|
"approvals.kept": "C’est noté. Vous pourrez revenir dessus dans Autorisations.",
|
|
52
52
|
"approvals.pagesIn": "Rien depuis internet",
|
|
53
|
-
"approvals.pagesOut": "Elles peuvent
|
|
53
|
+
"approvals.pagesOut": "Elles peuvent accéder à internet",
|
|
54
54
|
"approvals.inPage": "Dans la page",
|
|
55
55
|
"approvals.fromInternet": "Depuis internet",
|
|
56
56
|
"approvals.what.reads": "{name} y lit sans demander",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"approvals.covers.edit": "Écrire un nouveau fichier, ou en modifier un que {name} a créé ou que vous avez donné",
|
|
23
23
|
"approvals.covers.search": "Chercher quelque chose, sur le web ou dans vos fichiers",
|
|
24
24
|
"approvals.covers.execute": "Calculer quelque chose exactement, avec quelques lignes de code",
|
|
25
|
-
"approvals.covers.fetch": "Ouvrir une page web
|
|
25
|
+
"approvals.covers.fetch": "Ouvrir une page web ou accéder à un site",
|
|
26
26
|
"approvals.covers.move": "Mettre un fichier ailleurs, ou lui donner un autre nom",
|
|
27
27
|
"approvals.covers.delete": "Supprimer un fichier",
|
|
28
28
|
"approvals.covers.other": "Envoyer un message, partager quelque chose, et tout ce qui passe par vos services",
|
|
@@ -43,14 +43,14 @@
|
|
|
43
43
|
"approvals.ifText": "{name} se pose la question avant chaque action. Dans le doute, la réponse compte comme oui.",
|
|
44
44
|
"approvals.films": "Vidéos",
|
|
45
45
|
"approvals.what.folder": "{name} y modifie les fichiers sans demander",
|
|
46
|
-
"approvals.what.site": "L’ordinateur peut
|
|
46
|
+
"approvals.what.site": "L’ordinateur peut y accéder",
|
|
47
47
|
"approvals.what.films": "Faites sans demander, bien qu’elles coûtent plus que des images",
|
|
48
48
|
"approvals.what.meeting": "Les assistants de ces projets peuvent se réunir sans demander",
|
|
49
49
|
"approvals.what.extension": "Peut laisser des actions se faire sans vous demander",
|
|
50
50
|
"approvals.stop": "Arrêter",
|
|
51
51
|
"approvals.kept": "C’est noté. Vous pourrez revenir dessus dans Autorisations.",
|
|
52
52
|
"approvals.pagesIn": "Rien depuis internet",
|
|
53
|
-
"approvals.pagesOut": "Elles peuvent
|
|
53
|
+
"approvals.pagesOut": "Elles peuvent accéder à internet",
|
|
54
54
|
"approvals.inPage": "Dans la page",
|
|
55
55
|
"approvals.fromInternet": "Depuis internet",
|
|
56
56
|
"approvals.what.reads": "{name} y lit sans demander",
|
package/locales/ar.json
CHANGED
|
@@ -9,6 +9,8 @@
|
|
|
9
9
|
"welcome.install": "لا شيء لتثبيته",
|
|
10
10
|
"welcome.device": "محفوظ على هذا الجهاز",
|
|
11
11
|
"welcome.open": "مجاني ومفتوح المصدر",
|
|
12
|
+
"welcome.join": "هل تستخدم {name} على جهاز آخر بالفعل؟ {link}",
|
|
13
|
+
"welcome.bring": "نقل ما لديك إلى هنا",
|
|
12
14
|
"starter.sample": "جرّب جدول بيانات",
|
|
13
15
|
"starter.sample.prompt": "أي منتج نما أكثر خلال السنة؟ اعرض ذلك لي في رسم بياني.",
|
|
14
16
|
"starter.music": "تلحين مقطوعة",
|
|
@@ -139,6 +141,7 @@
|
|
|
139
141
|
"provider.fireworks": "Fireworks AI",
|
|
140
142
|
"provider.xai": "xAI",
|
|
141
143
|
"settings.title": "الإعدادات",
|
|
144
|
+
"settings.computer": "الحاسوب",
|
|
142
145
|
"settings.language": "اللغة",
|
|
143
146
|
"collection.title": "ما يستطيع {name} فعله",
|
|
144
147
|
"learn.home": "الصفحة الرئيسية",
|
|
@@ -314,11 +317,14 @@
|
|
|
314
317
|
"cap.backup.offer": "مهامك موجودة في هذا المتصفح فقط. هل تريد الاحتفاظ بنسخة من كل شيء؟",
|
|
315
318
|
"cap.backup.yes": "تنزيل نسخة احتياطية",
|
|
316
319
|
"cap.share.name": "المشاركة",
|
|
317
|
-
"cap.sync.name": "
|
|
320
|
+
"cap.sync.name": "المجلد المتزامن",
|
|
318
321
|
"cap.sync.offer": "هل تريد إبقاء مهامك وملفاتك والذاكرة متطابقة على أجهزة الكمبيوتر الأخرى لديك؟ يكفي اختيار مجلد تزامنه خدمة التخزين السحابي لديك.",
|
|
319
322
|
"cap.sync.yes": "اختيار مجلد",
|
|
320
323
|
"cap.devices.name": "أجهزتك",
|
|
321
324
|
"cap.devices.offer": "هل تريد أن تكون عقولك وإعداداتك ومشاريعك على هاتفك أو على كمبيوتر آخر أيضًا؟ تُضيفه برمز QR وستة أرقام.",
|
|
325
|
+
"cap.people.name": "الأشخاص",
|
|
326
|
+
"cap.people.offer": "هل تريد إرسال هذا إلى شخص يستخدم {name} أيضًا، وتلقّي ردّه؟",
|
|
327
|
+
"cap.together.name": "العمل معًا",
|
|
322
328
|
"cap.lock.name": "القفل",
|
|
323
329
|
"cap.lock.offer": "هل تريد قفل مهامك وملفاتك ومفاتيحك، بحيث لا يفتحها غيرك على هذا الجهاز؟",
|
|
324
330
|
"cap.lock.yes": "ضبط قفل",
|
|
@@ -466,6 +472,8 @@
|
|
|
466
472
|
"check.fix.prompt": "مصادرك لا تدعم هذه النقاط. راجعها من جديد وصحّح إجابتك:",
|
|
467
473
|
"since.prompt": "ما الجديد منذ المرة الماضية؟",
|
|
468
474
|
"since.closed": "يتوقف العمل ما دامت هذه الصفحة مغلقة، لذا قُرئ هذا للتو.",
|
|
475
|
+
"shared.came": "تمت مشاركته معك",
|
|
476
|
+
"shared.from": "من {name}",
|
|
469
477
|
"cap.machine.name": "هذا الحاسوب",
|
|
470
478
|
"cap.machine.offer": "تشغيل خادم تطوير لموقع، أو برامجك الخاصة، على هذا الحاسوب؟",
|
|
471
479
|
"cap.machine.yes": "استخدام هذا الحاسوب",
|