@x18n/cli 0.0.6 → 0.0.7

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/dist/cli.mjs CHANGED
@@ -12,7 +12,7 @@ import { existsSync } from "node:fs";
12
12
  import { namespaceFromPath } from "@x18n/builtins/finders";
13
13
  import { parse, stringify } from "yaml";
14
14
  //#region package.json
15
- var version = "0.0.6";
15
+ var version = "0.0.7";
16
16
  //#endregion
17
17
  //#region src/commands/change.ts
18
18
  async function project(options) {
@@ -634,7 +634,7 @@ async function eject(file, options) {
634
634
  }
635
635
  //#endregion
636
636
  //#region src/cli.ts
637
- const uiCommands = () => import("./ui-Bp3xyqr_.mjs");
637
+ const uiCommands = () => import("./ui-BA-GYV1i.mjs");
638
638
  /** Runs a command and turns errors into the JSON envelope or a printed hint, with the matching exit code. */
639
639
  function run(command, action) {
640
640
  return async (...args) => {
@@ -13,8 +13,8 @@ import { launchEditor } from "devframe/utils/launch-editor";
13
13
  async function ui(options) {
14
14
  const workspace = await openWorkspace(options);
15
15
  workspace.projects.forEach((p) => p.project.watch());
16
- const editor = process.env.LAUNCH_EDITOR || process.env.VISUAL || process.env.EDITOR;
17
- const definition = createX18nDevframe(workspace.projects, { openInEditor: editor ? async ({ project, path, line, column }) => launchEditor(`${join(project.root, path)}:${line}:${column}`, editor) : void 0 });
16
+ const editor = process.env.LAUNCH_EDITOR || process.env.VISUAL || process.env.EDITOR || void 0;
17
+ const definition = createX18nDevframe(workspace.projects, { openInEditor: async ({ project, path, line, column }) => launchEditor(`${join(project.root, path)}:${line}:${column}`, editor) });
18
18
  const mcpToken = randomToken();
19
19
  const auth = options.auth !== false;
20
20
  if (!auth) process.stderr.write("warning: --no-auth lets anything that reaches the port edit your files. Use it only in CI and e2e tests.\n");
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@x18n/cli",
3
3
  "type": "module",
4
- "version": "0.0.6",
4
+ "version": "0.0.7",
5
5
  "description": "Manage and view i18n files of any project, for humans and agents",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
@@ -38,10 +38,10 @@
38
38
  "node": ">=22"
39
39
  },
40
40
  "dependencies": {
41
- "@x18n/builtins": "0.0.6",
42
- "@x18n/core": "0.0.6",
43
- "@x18n/node": "0.0.6",
44
- "@x18n/ui": "0.0.6",
41
+ "@x18n/builtins": "0.0.7",
42
+ "@x18n/core": "0.0.7",
43
+ "@x18n/node": "0.0.7",
44
+ "@x18n/ui": "0.0.7",
45
45
  "cac": "^7.1.0",
46
46
  "devframe": "^1.2.6",
47
47
  "yaml": "^2.9.1"