@verbaly/compiler 0.77.0 → 0.78.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -112,13 +112,13 @@ A message keeps its text in exactly one place, and that place is where you edit
112
112
  **Keys first** is the third row: the text lives only in the catalog, and a literal `t('settings.save')` counts as a use, so `--prune` keeps it. When a key comes from data instead of a literal, declare the keys with `defineKeys`, so the compiler sees them and TypeScript checks them where you write them:
113
113
 
114
114
  ```ts
115
- import { defineKeys } from 'virtual:verbaly';
115
+ import { defineKeys } from 'verbaly/app';
116
116
 
117
117
  const titles = defineKeys({ verbaly: 'project.verbaly.title', blog: 'project.blog.title' });
118
118
  t(titles[slug]);
119
119
  ```
120
120
 
121
- `defineKeys` is detected by name, like `t`. It comes from `virtual:verbaly`, the module generated for your project, which is the one the framework provider already loads.
121
+ `defineKeys` is detected by name, like `t`. It comes from `verbaly/app`, the module generated for your project, which is the one the framework provider already loads.
122
122
 
123
123
  **A translation knows which source text it was written for.** For readable keys, the second and third rows, Verbaly keeps a short fingerprint of the source text and of the translation in `verbaly.lock`, next to your config. It is taken the moment the translation is written, by `translate`, `import`, Studio or an agent, so a source that changes right after is still caught; `import` takes it from the source text the translator's file carries, so a file made for an older text reads as outdated at once. When the source text changes and the translation does not, the translation is **outdated**: `status`, `check` and `doctor` say so, `review` lists it with both texts, and `review --approve` keeps it if it still holds. Editing the translation clears it on its own. Hash keys never need this, because a new text is a new key.
124
124
 
@@ -133,7 +133,7 @@ Four details that catch people out:
133
133
 
134
134
  ## 🔑 Typed keys, and where the types live
135
135
 
136
- Every `t` your project holds checks its keys and their params: the one from `virtual:verbaly`, `useT()` in React, Vue and Svelte, `getT()` in Next, and the `t` of an instance from `createInstance` or `createRequestInstance`. A key no catalog has does not compile, a message with a `{name}` asks for it, and Next's `getRequestLocale()` returns one of your locales instead of any string:
136
+ Every `t` your project holds checks its keys and their params: the one from `verbaly/app`, `useT()` in React, Vue and Svelte, `getT()` in Next, and the `t` of an instance from `createInstance` or `createRequestInstance`. A key no catalog has does not compile, a message with a `{name}` asks for it, and Next's `getRequestLocale()` returns one of your locales instead of any string:
137
137
 
138
138
  ```ts
139
139
  const t = useT();
@@ -223,10 +223,10 @@ export default {
223
223
 
224
224
  Pick by surface, not by taste: [Google recommends a different URL per language](https://developers.google.com/search/docs/specialty/international/managing-multi-regional-sites) rather than cookies or browser settings, so anything people reach through search wants the language in the address. An app behind a login loses nothing with `no-prefix`.
225
225
 
226
- `virtual:verbaly` exports `routing`, `localePath`, `localeFromPath` and **`switchLocale`, already bound** to your locales, source and mode. The switcher is one line and it is the same line in every mode:
226
+ `verbaly/app` exports `routing`, `localePath`, `localeFromPath` and **`switchLocale`, already bound** to your locales, source and mode. The switcher is one line and it is the same line in every mode:
227
227
 
228
228
  ```ts
229
- import { switchLocale } from 'virtual:verbaly';
229
+ import { switchLocale } from 'verbaly/app';
230
230
 
231
231
  await switchLocale('es');
232
232
  ```
@@ -325,7 +325,7 @@ export default {
325
325
  **Use it for text `render` covers.** A key that is excluded and then asked for at runtime resolves to itself, like any absent key, and `bindDom` leaves the pre-rendered text alone rather than painting the key over it. The build says so when a prefix matches nothing, and when your code reads an excluded key through `t()`. To use an excluded group at runtime anyway, load it yourself:
326
326
 
327
327
  ```ts
328
- import { verbaly } from 'virtual:verbaly';
328
+ import { verbaly } from 'verbaly/app';
329
329
 
330
330
  const extra = await import(`./i18n/changelog/${locale}.json`);
331
331
  verbaly.addMessages(locale, extra.default);
@@ -357,7 +357,7 @@ The package exports two layers, and **nothing else is public**. Anything you can
357
357
  | Config & catalogs | `loadConfig` `resolveConfig` `targetLocales` `loadCatalogs` `readCatalog` `parseCatalog` `writeCatalog` `clientCatalogs` `needsIcu` `needsRelative` · types `Catalog` `Catalogs` |
358
358
  | Extraction | `syncProject` `extractProject` `collectOrigins` `syncCatalogs` `shippedCatalogs` `pruneCatalogs` `MessageRegistry` `stableKey` `watchTree` · types `SyncProjectResult` `SyncResult` `TreeOptions` |
359
359
  | Codegen | `generateDts` `writeDts` `generateRuntimeModule` `generateLocaleModule` · types `DtsOptions` `RuntimeModuleOptions` |
360
- | Bundler plumbing | `transformSource` `transformCode` `runBuildGate` `createSourceFilter` `reportOutsideInclude` `isTransformTarget` `resolveVirtualId` `loadVirtualModule` `RESOLVED_VIRTUAL_ID` `LOCALE_MODULE_PREFIX` `SOURCE_FILE_RE` · types `PluginOptions` `TransformResult` |
360
+ | Bundler plumbing | `transformSource` `transformCode` `runBuildGate` `createSourceFilter` `reportOutsideInclude` `isTransformTarget` `resolveVirtualId` `loadVirtualModule` `APP_ID` `LOCALE_IMPORT` `RESOLVED_VIRTUAL_ID` `LOCALE_MODULE_PREFIX` `SOURCE_FILE_RE` · types `PluginOptions` `TransformResult` |
361
361
  | The gate | `check` `validateMessage` `validatePair` `formatCheckResult` `formatCheckWarnings` `collisionEntries` `formatCollision` `formatFinding` `createDevReporter` · types `Finding` `DevReporter` `CheckResult` `MissingEntry` `UnknownEntry` `BrokenEntry` `ExtraEntry` `CollisionEntry` `DivergentEntry` `OutdatedEntry` `SourceSite` `StructureIssue` `IssueSeverity` |
362
362
  | Coverage | `status` `formatStatusResult` `counted` · types `StatusResult` `LocaleStatus` |
363
363
  | Review state | `loadDrafts` `saveDrafts` `markDrafts` `clearDrafts` `effectiveDrafts` `loadState` `readState` `updateState` `recordTranslations` `outdatedTranslations` `STATE_FILE` · types `Drafts` `State` `Fingerprints` `TranslationWrite` |
@@ -1,4 +1,4 @@
1
- import { ct as isModuleNotFound, st as counted } from "./run-D9RNsrMs.js";
1
+ import { lt as counted, ut as isModuleNotFound } from "./run-kySCrf3Z.js";
2
2
  // src/providers/claude.ts
3
3
  const DEFAULT_MODEL = "claude-sonnet-5-5";
4
4
  const FALLBACK_MODELS = /* @__PURE__ */ new Set([
package/dist/cli.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { n as runCli, t as formatCliError } from "./run-D9RNsrMs.js";
2
+ import { n as runCli, t as formatCliError } from "./run-kySCrf3Z.js";
3
3
  // src/cli.ts
4
4
  runCli().catch((error) => {
5
5
  console.error(formatCliError(error));
package/dist/index.d.ts CHANGED
@@ -361,6 +361,8 @@ interface DtsWrite {
361
361
  changed: boolean;
362
362
  }
363
363
  export declare function writeDts(cfg: ResolvedConfig, catalog: Catalog, file?: string | false): DtsWrite | undefined;
364
+ export declare const APP_ID = "verbaly/app";
365
+ export declare const LOCALE_IMPORT = "@verbaly/app/locale/";
364
366
  interface TransformResult {
365
367
  code: string;
366
368
  map: ReturnType<MagicString['generateMap']>;
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { $ as collectOrigins, A as formatCheckWarnings, B as recordTranslations, C as loadVirtualModule, D as transformCode, E as transformSource, F as effectiveDrafts, G as formatCollision, H as updateState, I as loadState, J as generateLocaleModule, K as formatFinding, L as markDrafts, M as syncProject, N as STATE_FILE, O as check, P as clearDrafts, Q as validatePair, R as outdatedTranslations, S as isTransformTarget, T as runBuildGate, U as collisionEntries, V as saveState, W as createDevReporter, X as writeDts, Y as generateRuntimeModule, Z as validateMessage, _ as reportOutsideInclude, _t as writeCatalog, a as formatRenderWarnings, at as MessageRegistry, b as SOURCE_FILE_RE, c as mergeTranslations, d as writeDrafts, dt as targetLocales, et as extractProject, f as doctor, ft as loadCatalogs, g as status, gt as readCatalog, h as formatStatusResult, ht as parseCatalog, i as watchTree, it as stableKey, j as init, k as formatCheckResult, l as resolveProvider, lt as loadConfig, m as formatDoctorHealth, mt as needsRelative, nt as shippedCatalogs, o as renderSite, ot as clientCatalogs, p as formatDoctorEntry, pt as needsIcu, q as generateDts, r as wrapProject, rt as syncCatalogs, s as formatTranslateFailures, st as counted, t as formatCliError, tt as pruneCatalogs, u as translateCatalogs, ut as resolveConfig, v as LOCALE_MODULE_PREFIX, w as resolveVirtualId, x as createSourceFilter, y as RESOLVED_VIRTUAL_ID, z as readState } from "./run-D9RNsrMs.js";
1
+ import { $ as collectOrigins, A as formatCheckWarnings, B as recordTranslations, C as loadVirtualModule, D as transformCode, E as transformSource, F as effectiveDrafts, G as formatCollision, H as updateState, I as loadState, J as generateLocaleModule, K as formatFinding, L as markDrafts, M as syncProject, N as STATE_FILE, O as check, P as clearDrafts, Q as validatePair, R as outdatedTranslations, S as isTransformTarget, T as runBuildGate, U as collisionEntries, V as saveState, W as createDevReporter, X as writeDts, Y as generateRuntimeModule, Z as validateMessage, _ as reportOutsideInclude, _t as parseCatalog, a as formatRenderWarnings, at as APP_ID, b as SOURCE_FILE_RE, c as mergeTranslations, ct as clientCatalogs, d as writeDrafts, dt as loadConfig, et as extractProject, f as doctor, ft as resolveConfig, g as status, gt as needsRelative, h as formatStatusResult, ht as needsIcu, i as watchTree, it as stableKey, j as init, k as formatCheckResult, l as resolveProvider, lt as counted, m as formatDoctorHealth, mt as loadCatalogs, nt as shippedCatalogs, o as renderSite, ot as LOCALE_IMPORT, p as formatDoctorEntry, pt as targetLocales, q as generateDts, r as wrapProject, rt as syncCatalogs, s as formatTranslateFailures, st as MessageRegistry, t as formatCliError, tt as pruneCatalogs, u as translateCatalogs, v as LOCALE_MODULE_PREFIX, vt as readCatalog, w as resolveVirtualId, x as createSourceFilter, y as RESOLVED_VIRTUAL_ID, yt as writeCatalog, z as readState } from "./run-kySCrf3Z.js";
2
2
  // src/drafts.ts
3
3
  function loadDrafts(cfg) {
4
4
  return loadState(cfg).drafts;
@@ -10,4 +10,4 @@ function saveDrafts(cfg, drafts) {
10
10
  drafts
11
11
  });
12
12
  }
13
- export { LOCALE_MODULE_PREFIX, MessageRegistry, RESOLVED_VIRTUAL_ID, SOURCE_FILE_RE, STATE_FILE, check, clearDrafts, clientCatalogs, collectOrigins, collisionEntries, counted, createDevReporter, createSourceFilter, doctor, effectiveDrafts, extractProject, formatCheckResult, formatCheckWarnings, formatCliError, formatCollision, formatDoctorEntry, formatDoctorHealth, formatFinding, formatRenderWarnings, formatStatusResult, formatTranslateFailures, generateDts, generateLocaleModule, generateRuntimeModule, init, isTransformTarget, loadCatalogs, loadConfig, loadDrafts, loadState, loadVirtualModule, markDrafts, mergeTranslations, needsIcu, needsRelative, outdatedTranslations, parseCatalog, pruneCatalogs, readCatalog, readState, recordTranslations, renderSite, reportOutsideInclude, resolveConfig, resolveProvider, resolveVirtualId, runBuildGate, saveDrafts, shippedCatalogs, stableKey, status, syncCatalogs, syncProject, targetLocales, transformCode, transformSource, translateCatalogs, updateState, validateMessage, validatePair, watchTree, wrapProject, writeCatalog, writeDrafts, writeDts };
13
+ export { APP_ID, LOCALE_IMPORT, LOCALE_MODULE_PREFIX, MessageRegistry, RESOLVED_VIRTUAL_ID, SOURCE_FILE_RE, STATE_FILE, check, clearDrafts, clientCatalogs, collectOrigins, collisionEntries, counted, createDevReporter, createSourceFilter, doctor, effectiveDrafts, extractProject, formatCheckResult, formatCheckWarnings, formatCliError, formatCollision, formatDoctorEntry, formatDoctorHealth, formatFinding, formatRenderWarnings, formatStatusResult, formatTranslateFailures, generateDts, generateLocaleModule, generateRuntimeModule, init, isTransformTarget, loadCatalogs, loadConfig, loadDrafts, loadState, loadVirtualModule, markDrafts, mergeTranslations, needsIcu, needsRelative, outdatedTranslations, parseCatalog, pruneCatalogs, readCatalog, readState, recordTranslations, renderSite, reportOutsideInclude, resolveConfig, resolveProvider, resolveVirtualId, runBuildGate, saveDrafts, shippedCatalogs, stableKey, status, syncCatalogs, syncProject, targetLocales, transformCode, transformSource, translateCatalogs, updateState, validateMessage, validatePair, watchTree, wrapProject, writeCatalog, writeDrafts, writeDts };
@@ -676,6 +676,13 @@ var MessageRegistry = class {
676
676
  function earlier(a, b) {
677
677
  return a.file === b.file ? a.start < b.start : a.file < b.file;
678
678
  }
679
+ // src/ids.ts
680
+ const VIRTUAL_ID = "virtual:verbaly";
681
+ const APP_ID = "verbaly/app";
682
+ const LOCALE_IMPORT = "@verbaly/app/locale/";
683
+ function isAppModule(source) {
684
+ return source === "verbaly/app" || source === "virtual:verbaly";
685
+ }
679
686
  // src/key.ts
680
687
  function stableKey(message) {
681
688
  return createHash("sha256").update(message).digest("base64url").slice(0, 8);
@@ -800,7 +807,7 @@ function analyzeScript(code, file, options = {}) {
800
807
  function lineOf(node) {
801
808
  return node.loc?.start.line ?? 1;
802
809
  }
803
- const VERBALY_SOURCE = /^(?:verbaly|virtual:verbaly|@verbaly\/[\w-]+(?:\/[\w-]+)*)$/;
810
+ const VERBALY_SOURCE = /^(?:verbaly|@verbaly\/[\w-]+(?:\/[\w-]+)*)$/;
804
811
  const T_FACTORIES = /* @__PURE__ */ new Map([["useT", "call"], ["getT", "await"]]);
805
812
  const INSTANCE_FACTORIES = /* @__PURE__ */ new Set(["useVerbaly", "getVerbaly"]);
806
813
  var Bindings = class {
@@ -823,7 +830,7 @@ var Bindings = class {
823
830
  source,
824
831
  imported
825
832
  });
826
- if (source === "virtual:verbaly" && imported === "t") this.direct.add(local);
833
+ if (isAppModule(source) && imported === "t") this.direct.add(local);
827
834
  }
828
835
  }
829
836
  addDeclarator(node) {
@@ -883,7 +890,7 @@ var Bindings = class {
883
890
  imported: local
884
891
  };
885
892
  return {
886
- verbaly: VERBALY_SOURCE.test(found.source),
893
+ verbaly: VERBALY_SOURCE.test(found.source) || isAppModule(found.source),
887
894
  imported: found.imported
888
895
  };
889
896
  }
@@ -1793,6 +1800,7 @@ function includeTypes(root, file) {
1793
1800
  writeFileSync(read.path, applyEdits(read.text, edits));
1794
1801
  return "added";
1795
1802
  }
1803
+ // src/codegen.ts
1796
1804
  const DTS_HEADER = "// generated by verbaly: do not edit";
1797
1805
  const SLICE_HELPERS = `function readSlice(root, path) {
1798
1806
  const locale = readPath({ supported: locales, path });
@@ -1809,7 +1817,7 @@ export function adoptPage(options) {
1809
1817
 
1810
1818
  `;
1811
1819
  function generateRuntimeModule(cfg, options = {}) {
1812
- const importPath = options.localeImport ?? ((locale) => `virtual:verbaly/locale/${locale}`);
1820
+ const importPath = options.localeImport ?? ((locale) => "@verbaly/app/locale/" + locale);
1813
1821
  const others = cfg.locales.filter((locale) => locale !== cfg.sourceLocale);
1814
1822
  const src = JSON.stringify(cfg.sourceLocale);
1815
1823
  const loaders = others.map((locale) => ` ${JSON.stringify(locale)}: () => import('${importPath(locale)}'),`).join("\n");
@@ -1845,8 +1853,10 @@ export function defineKeys(keys) {
1845
1853
  }
1846
1854
 
1847
1855
  // the whole switch a language control needs, in either mode: catalog or navigation, then persistence
1856
+ // instance: the one the page renders with, where a framework builds one per request
1848
1857
  export function switchLocale(locale, options) {
1849
- return runSwitch(v, locale, { supported: locales, sourceLocale, routing, trailingSlash, ...options });
1858
+ const { instance, ...rest } = options ?? {};
1859
+ return runSwitch(instance ?? v, locale, { supported: locales, sourceLocale, routing, trailingSlash, ...rest });
1850
1860
  }
1851
1861
 
1852
1862
  const localeLoaders = {
@@ -1935,7 +1945,7 @@ function generateDts(catalog, options = {}) {
1935
1945
  // biome-ignore-all lint: generated by verbaly
1936
1946
  // biome-ignore-all format: generated by verbaly
1937
1947
  // prettier-ignore
1938
- declare module 'virtual:verbaly' {
1948
+ declare module '${APP_ID}' {
1939
1949
  export interface VerbalyMessages {
1940
1950
  ${lines.join("\n")}
1941
1951
  }
@@ -1994,7 +2004,10 @@ ${lines.join("\n")}
1994
2004
  options?: Omit<
1995
2005
  import('verbaly').SwitchLocaleOptions,
1996
2006
  'routing' | 'supported' | 'sourceLocale' | 'trailingSlash'
1997
- >,
2007
+ > & {
2008
+ // the instance the page renders with, where the framework builds one per request
2009
+ instance?: Pick<import('verbaly').Verbaly, 'loadLocale' | 'setLocale'>;
2010
+ },
1998
2011
  ): Promise<void>;
1999
2012
  export function getLocale(): string;
2000
2013
  export function subscribe(listener: () => void): () => void;
@@ -2009,7 +2022,12 @@ ${lines.join("\n")}
2009
2022
  }
2010
2023
 
2011
2024
  // prettier-ignore
2012
- declare module 'virtual:verbaly/locale/*' {
2025
+ declare module '${VIRTUAL_ID}' {
2026
+ export * from '${APP_ID}';
2027
+ }
2028
+
2029
+ // prettier-ignore
2030
+ declare module '${LOCALE_IMPORT}*' {
2013
2031
  const messages: Record<string, string>;
2014
2032
  export default messages;
2015
2033
  }
@@ -3184,11 +3202,13 @@ function transformCode(code, file, analysis) {
3184
3202
  };
3185
3203
  }
3186
3204
  // src/plugin.ts
3187
- const RESOLVED_VIRTUAL_ID = "\0virtual:verbaly";
3205
+ const RESOLVED_VIRTUAL_ID = "\0" + VIRTUAL_ID;
3188
3206
  const LOCALE_MODULE_PREFIX = `${RESOLVED_VIRTUAL_ID}/locale/`;
3189
3207
  const SOURCE_FILE_RE = /\.(?:[cm]?[jt]sx?|svelte|vue|astro)$/;
3190
3208
  function resolveVirtualId(id) {
3191
- if (id === "virtual:verbaly" || id.startsWith(`virtual:verbaly/`)) return "\0" + id;
3209
+ if (isAppModule(id)) return RESOLVED_VIRTUAL_ID;
3210
+ if (id.startsWith("@verbaly/app/locale/")) return LOCALE_MODULE_PREFIX + id.slice(20);
3211
+ if (id.startsWith(`virtual:verbaly/`)) return "\0" + id;
3192
3212
  }
3193
3213
  function loadVirtualModule(id, cfg, catalogs) {
3194
3214
  const client = clientCatalogs(cfg, catalogs);
@@ -3531,7 +3551,7 @@ async function doctor(cfg) {
3531
3551
  const stray = registry.strayImports();
3532
3552
  if (stray.length > 0) {
3533
3553
  const files = [...new Set(stray.map((entry) => rel(entry.file)))];
3534
- error("imports", `t is imported from a verbaly package, which never exports it, in ${counted(files.length, "file")} (${preview(files)})`, "t comes from your instance (React: const t = useT()) or from virtual:verbaly");
3554
+ error("imports", `t is imported from a verbaly package, which never exports it, in ${counted(files.length, "file")} (${preview(files)})`, "t comes from your instance (React: const t = useT()) or from verbaly/app");
3535
3555
  }
3536
3556
  const missed = registry.missed();
3537
3557
  if (missed.length > 0) {
@@ -4142,7 +4162,7 @@ function formatTranslateFailures(failed) {
4142
4162
  async function resolveProvider(cfg, model) {
4143
4163
  const configured = cfg.translate.provider;
4144
4164
  if (typeof configured === "function") return configured;
4145
- const { claudeProvider } = await import("./claude-CHpftMVn.js");
4165
+ const { claudeProvider } = await import("./claude-DZkzlC5g.js");
4146
4166
  return claudeProvider({ model: model ?? cfg.translate.model });
4147
4167
  }
4148
4168
  function structureMatches(source, translated) {
@@ -5833,4 +5853,4 @@ function rejectStrayFlags(command, values) {
5833
5853
  process.exitCode = 1;
5834
5854
  return true;
5835
5855
  }
5836
- export { collectOrigins as $, formatCheckWarnings as A, recordTranslations as B, loadVirtualModule as C, transformCode as D, transformSource as E, effectiveDrafts as F, formatCollision as G, updateState as H, loadState as I, generateLocaleModule as J, formatFinding as K, markDrafts as L, syncProject as M, STATE_FILE as N, check as O, clearDrafts as P, validatePair as Q, outdatedTranslations as R, isTransformTarget as S, runBuildGate as T, collisionEntries as U, saveState as V, createDevReporter as W, writeDts as X, generateRuntimeModule as Y, validateMessage as Z, reportOutsideInclude as _, writeCatalog as _t, formatRenderWarnings as a, MessageRegistry as at, SOURCE_FILE_RE as b, mergeTranslations as c, isModuleNotFound as ct, writeDrafts as d, targetLocales as dt, extractProject as et, doctor as f, loadCatalogs as ft, status as g, readCatalog as gt, formatStatusResult as h, parseCatalog as ht, watchTree as i, stableKey as it, init as j, formatCheckResult as k, resolveProvider as l, loadConfig as lt, formatDoctorHealth as m, needsRelative as mt, runCli as n, shippedCatalogs as nt, renderSite as o, clientCatalogs as ot, formatDoctorEntry as p, needsIcu as pt, generateDts as q, wrapProject as r, syncCatalogs as rt, formatTranslateFailures as s, counted as st, formatCliError as t, pruneCatalogs as tt, translateCatalogs as u, resolveConfig as ut, LOCALE_MODULE_PREFIX as v, resolveVirtualId as w, createSourceFilter as x, RESOLVED_VIRTUAL_ID as y, readState as z };
5856
+ export { collectOrigins as $, formatCheckWarnings as A, recordTranslations as B, loadVirtualModule as C, transformCode as D, transformSource as E, effectiveDrafts as F, formatCollision as G, updateState as H, loadState as I, generateLocaleModule as J, formatFinding as K, markDrafts as L, syncProject as M, STATE_FILE as N, check as O, clearDrafts as P, validatePair as Q, outdatedTranslations as R, isTransformTarget as S, runBuildGate as T, collisionEntries as U, saveState as V, createDevReporter as W, writeDts as X, generateRuntimeModule as Y, validateMessage as Z, reportOutsideInclude as _, parseCatalog as _t, formatRenderWarnings as a, APP_ID as at, SOURCE_FILE_RE as b, mergeTranslations as c, clientCatalogs as ct, writeDrafts as d, loadConfig as dt, extractProject as et, doctor as f, resolveConfig as ft, status as g, needsRelative as gt, formatStatusResult as h, needsIcu as ht, watchTree as i, stableKey as it, init as j, formatCheckResult as k, resolveProvider as l, counted as lt, formatDoctorHealth as m, loadCatalogs as mt, runCli as n, shippedCatalogs as nt, renderSite as o, LOCALE_IMPORT as ot, formatDoctorEntry as p, targetLocales as pt, generateDts as q, wrapProject as r, syncCatalogs as rt, formatTranslateFailures as s, MessageRegistry as st, formatCliError as t, pruneCatalogs as tt, translateCatalogs as u, isModuleNotFound as ut, LOCALE_MODULE_PREFIX as v, readCatalog as vt, resolveVirtualId as w, createSourceFilter as x, RESOLVED_VIRTUAL_ID as y, writeCatalog as yt, readState as z };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@verbaly/compiler",
3
- "version": "0.77.0",
3
+ "version": "0.78.0",
4
4
  "description": "Message extraction and type-safe codegen for Verbaly.",
5
5
  "keywords": [
6
6
  "i18n",
@@ -52,7 +52,7 @@
52
52
  "magic-string": "^1.4.5",
53
53
  "picomatch": "^4.0.7",
54
54
  "tinyglobby": "^0.2.17",
55
- "verbaly": "0.77.0"
55
+ "verbaly": "0.78.0"
56
56
  },
57
57
  "peerDependencies": {
58
58
  "@anthropic-ai/sdk": ">=0.110.0"