codexmate 0.1.38 → 0.1.40

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.
Files changed (40) hide show
  1. package/README.md +1 -1
  2. package/README.vi.md +1 -1
  3. package/README.zh.md +1 -1
  4. package/cli/doctor-core.js +1 -1
  5. package/cli.js +93 -79
  6. package/lib/model-test.js +126 -21
  7. package/lib/shared-knowledge.js +86 -0
  8. package/package.json +5 -1
  9. package/plugins/prompt-templates/overview.mjs +1 -7
  10. package/web-ui/app.js +3 -2
  11. package/web-ui/index.html +2 -0
  12. package/web-ui/modules/app.computed.main-tabs.mjs +3 -0
  13. package/web-ui/modules/app.methods.navigation.mjs +2 -1
  14. package/web-ui/modules/i18n/locales/en.mjs +1969 -2018
  15. package/web-ui/modules/i18n/locales/expand.mjs +18 -0
  16. package/web-ui/modules/i18n/locales/ja.mjs +1970 -2019
  17. package/web-ui/modules/i18n/locales/keys.mjs +1969 -0
  18. package/web-ui/modules/i18n/locales/vi.mjs +1969 -1987
  19. package/web-ui/modules/i18n/locales/zh-tw.mjs +1969 -2016
  20. package/web-ui/modules/i18n/locales/zh.mjs +1968 -2016
  21. package/web-ui/modules/model-test.mjs +114 -26
  22. package/web-ui/modules/shared-knowledge.mjs +139 -0
  23. package/web-ui/partials/index/layout-header.html +22 -5
  24. package/web-ui/partials/index/panel-knowledge.html +68 -0
  25. package/web-ui/partials/index/panel-plugins.html +12 -27
  26. package/web-ui/partials/index/plugin-file-sharing.html +1 -1
  27. package/web-ui/partials/index/routing-model-test.html +29 -9
  28. package/web-ui/res/reicon-knowledge.LICENSE.txt +20 -0
  29. package/web-ui/res/reicon-knowledge.svg +18 -0
  30. package/web-ui/res/web-ui-render.precompiled.js +1 -14783
  31. package/web-ui/styles/base-theme.css +2 -2
  32. package/web-ui/styles/navigation-panels.css +11 -18
  33. package/web-ui/styles/plugins-panel.css +16 -91
  34. package/web-ui/styles/responsive.css +8 -16
  35. package/web-ui/styles/routing.css +8 -0
  36. package/web-ui/styles/shared-knowledge.css +227 -0
  37. package/web-ui/styles/sub-tabs.css +13 -0
  38. package/web-ui/styles/theme-violet.css +0 -21
  39. package/web-ui/styles/titles-cards.css +0 -23
  40. package/web-ui/styles.css +1 -0
@@ -0,0 +1,18 @@
1
+ import { localeKeys } from './keys.mjs';
2
+
3
+ // Contiguous key runs keep each locale's original enumeration order. Zero
4
+ // represents an exact match with the base locale, never a missing translation.
5
+ function expandWebLocale(runs, values, base) {
6
+ const entries = [];
7
+ let offset = 0;
8
+ for (const [start, count] of runs) {
9
+ for (let index = start; index < start + count; index++) {
10
+ const key = localeKeys[index];
11
+ const value = values[offset++];
12
+ entries.push([key, value === 0 ? base[key] : value]);
13
+ }
14
+ }
15
+ return Object.freeze(Object.fromEntries(entries));
16
+ }
17
+
18
+ export { expandWebLocale };