@workflow-code/cli 0.2.4-20260917001 → 0.2.4-20260921001

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.
@@ -3856,7 +3856,6 @@ var desktop = {
3856
3856
  hideConversationList: "Hide conversation list",
3857
3857
  hideDiagnostic: "Hide {{label}}",
3858
3858
  hideFileList: "Hide file list",
3859
- hideTaskList: "Hide task list",
3860
3859
  hideWorkflow: "Hide workflow",
3861
3860
  historyRunResult: "History run result",
3862
3861
  keyColumn: "Key",
@@ -8825,7 +8824,6 @@ var desktop2 = {
8825
8824
  hideConversationList: "\u9690\u85CF\u4F1A\u8BDD\u5217\u8868",
8826
8825
  hideDiagnostic: "\u6536\u8D77{{label}}",
8827
8826
  hideFileList: "\u9690\u85CF\u6587\u4EF6\u5217\u8868",
8828
- hideTaskList: "\u9690\u85CF\u4EFB\u52A1\u5217\u8868",
8829
8827
  hideWorkflow: "\u9690\u85CF workflow",
8830
8828
  historyRunResult: "\u5386\u53F2\u6267\u884C\u7ED3\u679C",
8831
8829
  keyColumn: "\u952E",
@@ -4,7 +4,7 @@ import {
4
4
  initI18n,
5
5
  isSupportedLocale,
6
6
  normalizeLocale
7
- } from "./chunk-2KI5OU7T.js";
7
+ } from "./chunk-5YS542FD.js";
8
8
 
9
9
  // src/locale.ts
10
10
  import { WORKFLOW_RUNTIME_LOCALE_ENV } from "workflow-code";
package/dist/index.js CHANGED
@@ -1,14 +1,15 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  prepareCliInvocation
4
- } from "./chunk-KDLZJHJG.js";
4
+ } from "./chunk-FHLFK2CH.js";
5
5
  import {
6
6
  i18n,
7
7
  translateWorkflowCodeError
8
- } from "./chunk-2KI5OU7T.js";
8
+ } from "./chunk-5YS542FD.js";
9
9
  import "./chunk-NSPRIPOP.js";
10
10
 
11
11
  // src/index.ts
12
+ import { realpathSync } from "fs";
12
13
  import path from "path";
13
14
  import { pathToFileURL } from "url";
14
15
  async function main(argv = process.argv.slice(2)) {
@@ -23,12 +24,12 @@ async function main(argv = process.argv.slice(2)) {
23
24
  const prepared = prepareCliInvocation(argv);
24
25
  argv = prepared.argv;
25
26
  if (argv[0] === "workspace") {
26
- const workspaceCli = await import("./workspace-27NUCQTO.js");
27
+ const workspaceCli = await import("./workspace-H5OFXHP3.js");
27
28
  await workspaceCli.main(argv.slice(1), { localeInitialized: true });
28
29
  return typeof process.exitCode === "number" ? process.exitCode : 0;
29
30
  }
30
31
  if (argv[0] === "mcp") {
31
- const mcpCli = await import("./mcp-FPF56FBT.js");
32
+ const mcpCli = await import("./mcp-K3U7RICE.js");
32
33
  return mcpCli.main(argv.slice(1));
33
34
  }
34
35
  if (argv.length === 0 || argv[0] === "help" || argv[0] === "--help" || argv[0] === "-h") {
@@ -38,13 +39,24 @@ async function main(argv = process.argv.slice(2)) {
38
39
  }
39
40
  const { register } = await import("tsx/esm/api");
40
41
  register();
41
- const localCli = await import("./local-F2QXHFIP.js");
42
+ const localCli = await import("./local-ZP3D5C2Q.js");
42
43
  return localCli.main(argv, { localeInitialized: true });
43
44
  }
44
45
  function formatHelp() {
45
46
  return i18n.t("rootHelp", { ns: "cli" });
46
47
  }
47
- if (process.argv[1] !== void 0 && import.meta.url === pathToFileURL(path.resolve(process.argv[1])).href) {
48
+ function isCliEntryPoint() {
49
+ const entry = process.argv[1];
50
+ if (entry === void 0) return false;
51
+ const absolute = path.resolve(entry);
52
+ const candidates = /* @__PURE__ */ new Set([absolute]);
53
+ try {
54
+ candidates.add(realpathSync(absolute));
55
+ } catch {
56
+ }
57
+ return [...candidates].some((candidate) => import.meta.url === pathToFileURL(candidate).href);
58
+ }
59
+ if (isCliEntryPoint()) {
48
60
  main().then((exitCode) => {
49
61
  process.exitCode = exitCode;
50
62
  }).catch((error) => {
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  prepareCliInvocation
4
- } from "./chunk-KDLZJHJG.js";
4
+ } from "./chunk-FHLFK2CH.js";
5
5
  import {
6
6
  createCliRelatedProjectRuntime,
7
7
  parseCliRelatedProjectSpec
@@ -12,7 +12,7 @@ import {
12
12
  import {
13
13
  i18n,
14
14
  translateWorkflowCodeError
15
- } from "./chunk-2KI5OU7T.js";
15
+ } from "./chunk-5YS542FD.js";
16
16
  import {
17
17
  __commonJS,
18
18
  __toESM
@@ -13,7 +13,7 @@ import {
13
13
  } from "./chunk-27OW6OJ3.js";
14
14
  import {
15
15
  i18n
16
- } from "./chunk-2KI5OU7T.js";
16
+ } from "./chunk-5YS542FD.js";
17
17
  import {
18
18
  __commonJS,
19
19
  __export,
@@ -8,7 +8,7 @@ import {
8
8
  } from "./chunk-PGM3IPWA.js";
9
9
  import {
10
10
  prepareCliInvocation
11
- } from "./chunk-KDLZJHJG.js";
11
+ } from "./chunk-FHLFK2CH.js";
12
12
  import {
13
13
  isWorkflowUuid,
14
14
  readWorkflowProjectInfo,
@@ -18,7 +18,7 @@ import {
18
18
  getCurrentLocale,
19
19
  i18n,
20
20
  translateWorkflowCodeError
21
- } from "./chunk-2KI5OU7T.js";
21
+ } from "./chunk-5YS542FD.js";
22
22
  import {
23
23
  __commonJS,
24
24
  __toESM
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workflow-code/cli",
3
- "version": "0.2.4-20260917001",
3
+ "version": "0.2.4-20260921001",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "workflow-code": "./dist/index.js"
@@ -20,7 +20,7 @@
20
20
  "zod": "4.4.3"
21
21
  },
22
22
  "peerDependencies": {
23
- "workflow-code": "0.2.4-20260917001"
23
+ "workflow-code": "0.2.4-20260909003"
24
24
  },
25
25
  "devDependencies": {
26
26
  "@types/node": "^25.6.0",
@@ -29,12 +29,12 @@
29
29
  "tsup": "^8.5.1",
30
30
  "typescript": "^6.0.3",
31
31
  "vitest": "^4.1.7",
32
- "workflow-code": "0.2.4-20260917001",
32
+ "workflow-code": "0.2.4-20260909003",
33
33
  "@workflow-code/auth-config": "0.1.0",
34
34
  "@workflow-code/execution-targets": "0.1.0",
35
35
  "@workflow-code/i18n": "0.1.0",
36
- "@workflow-code/openai-responses": "0.1.0",
37
36
  "@workflow-code/project-dependencies": "0.1.0",
37
+ "@workflow-code/openai-responses": "0.1.0",
38
38
  "@workflow-code/project-info": "0.1.0",
39
39
  "@workflow-code/project-upload": "0.1.0",
40
40
  "@workflow-code/runtime-compatibility": "0.1.0",
@@ -51,6 +51,7 @@
51
51
  "test": "pnpm build && vitest run",
52
52
  "coverage": "pnpm build && vitest run --coverage",
53
53
  "test:scripts": "node --test --test-reporter=spec scripts/__tests__/*.test.mjs",
54
- "release:prepare": "node scripts/prepare-release.mjs"
54
+ "release:prepare": "node scripts/prepare-release.mjs",
55
+ "release:feature": "node scripts/feature-release.mjs tag"
55
56
  }
56
57
  }