@verbaly/compiler 0.74.0 → 0.76.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
@@ -378,7 +378,7 @@ import {
378
378
  transformSource,
379
379
  } from '@verbaly/compiler';
380
380
 
381
- const cfg = await loadConfig(process.cwd());
381
+ const cfg = await loadConfig(process.cwd(), options, { plugin: true });
382
382
  const catalogs = loadCatalogs(cfg);
383
383
  const registry = new MessageRegistry();
384
384
 
@@ -389,6 +389,8 @@ const { messages, result } = transformSource(code, id, registry);
389
389
  runBuildGate(cfg, registry);
390
390
  ```
391
391
 
392
+ Your plugin's options go second and `{ plugin: true }` third: when one the command line also reads (`sourceLocale`, `locales`, `dir`, `include`, `exclude`) differs from `verbaly.config`, the build says once to move it there, since `verbaly check` never reads a bundler config.
393
+
392
394
  A build that scans first, as the Vite plugin does to sync the catalogs, keeps that scan with `extractProject(cfg, { keepSource: true })` and passes it as the fourth argument of `transformSource`: a file it read unchanged is not parsed a second time. Call `reportOutsideInclude(cfg)` once when your build starts: it names every file outside `include` that writes a `` t`…` ``, which no build translates. It reads the project itself, so a cached transform never hides one. `writeDts(cfg, catalog)` writes the types where the config resolves them and returns the file and whether it changed.
393
395
 
394
396
  A dev server that writes the catalogs goes through `syncProject`, the same path `extract`, the MCP server and Studio take: it scans (or takes the registry you hold), syncs, writes the catalogs and the types, and keeps `verbaly.lock` in step, in that order; its `findings` say once when that file first appears. Pass `confirm: true` when your registry is built file by file, so a file that changed on disk unseen is read again before its text is written back. `createDevReporter` then says each of its findings once, says it again if it goes away and comes back, and keeps a long list to a few lines.
@@ -1,4 +1,4 @@
1
- import { n as counted, t as isModuleNotFound } from "./cli.js";
1
+ import { ct as isModuleNotFound, st as counted } from "./run-CfZ-z1Io.js";
2
2
  //#region src/providers/claude.ts
3
3
  const DEFAULT_MODEL = "claude-sonnet-5-5";
4
4
  const FALLBACK_MODELS = /* @__PURE__ */ new Set([
@@ -90,5 +90,3 @@ async function loadSdk(load = () => import("@anthropic-ai/sdk")) {
90
90
  }
91
91
  //#endregion
92
92
  export { claudeProvider };
93
-
94
- //# sourceMappingURL=claude-DmnZ1cvR.js.map
package/dist/cli.d.ts ADDED
@@ -0,0 +1 @@
1
+ export {}