lingo.dev 0.77.0 → 0.77.1

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/build/cli.mjs CHANGED
@@ -780,7 +780,7 @@ var show_default = new Command5().command("show").description("Prints out the cu
780
780
 
781
781
  // src/cli/cmd/i18n.ts
782
782
  import { bucketTypeSchema, localeCodeSchema, resolveOverridenLocale as resolveOverridenLocale3 } from "@lingo.dev/_spec";
783
- import { ReplexicaEngine } from "@lingo.dev/_sdk";
783
+ import { LingoDotDevEngine } from "@lingo.dev/_sdk";
784
784
  import { Command as Command6 } from "interactive-commander";
785
785
  import Z4 from "zod";
786
786
  import _19 from "lodash";
@@ -3223,7 +3223,7 @@ async function retryWithExponentialBackoff(operation, maxAttempts, baseDelay = 1
3223
3223
  throw new Error("Unreachable code");
3224
3224
  }
3225
3225
  function createLocalizationEngineConnection(params) {
3226
- const replexicaEngine = new ReplexicaEngine({
3226
+ const replexicaEngine = new LingoDotDevEngine({
3227
3227
  apiKey: params.apiKey,
3228
3228
  apiUrl: params.apiUrl
3229
3229
  });
@@ -3234,7 +3234,11 @@ function createLocalizationEngineConnection(params) {
3234
3234
  args.processableData,
3235
3235
  {
3236
3236
  sourceLocale: args.sourceLocale,
3237
- targetLocale: args.targetLocale
3237
+ targetLocale: args.targetLocale,
3238
+ reference: {
3239
+ [args.sourceLocale]: args.sourceData,
3240
+ [args.targetLocale]: args.targetData
3241
+ }
3238
3242
  },
3239
3243
  onProgress
3240
3244
  ),
@@ -3522,7 +3526,7 @@ import { Command as Command9 } from "interactive-commander";
3522
3526
  import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
3523
3527
  import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
3524
3528
  import Z6 from "zod";
3525
- import { ReplexicaEngine as ReplexicaEngine2 } from "@lingo.dev/_sdk";
3529
+ import { ReplexicaEngine } from "@lingo.dev/_sdk";
3526
3530
  var mcp_default = new Command9().command("mcp").description("Use Lingo.dev model context provider with your AI agent").helpOption("-h, --help", "Show help").action(async (_21, program) => {
3527
3531
  const apiKey = program.args[0];
3528
3532
  const settings = getSettings(apiKey);
@@ -3541,7 +3545,7 @@ var mcp_default = new Command9().command("mcp").description("Use Lingo.dev model
3541
3545
  } else {
3542
3546
  console.log(`Authenticated as ${auth.email}`);
3543
3547
  }
3544
- const replexicaEngine = new ReplexicaEngine2({
3548
+ const replexicaEngine = new ReplexicaEngine({
3545
3549
  apiKey: settings.auth.apiKey,
3546
3550
  apiUrl: settings.auth.apiUrl
3547
3551
  });
@@ -3573,7 +3577,7 @@ var mcp_default = new Command9().command("mcp").description("Use Lingo.dev model
3573
3577
  // package.json
3574
3578
  var package_default = {
3575
3579
  name: "lingo.dev",
3576
- version: "0.77.0",
3580
+ version: "0.77.1",
3577
3581
  description: "Lingo.dev CLI",
3578
3582
  private: false,
3579
3583
  publishConfig: {