@dazitech/cli 3.0.3 → 3.0.4

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
@@ -78,7 +78,7 @@ pnpm run publish:cli
78
78
 
79
79
  ```powershell
80
80
  # 全局
81
- pnpm add -g @dazitech/cli@3.0.3
81
+ pnpm add -g @dazitech/cli@3.0.4
82
82
 
83
83
  # 确认 PATH(pnpm 全局 bin)
84
84
  pnpm bin -g
@@ -16753,7 +16753,7 @@ function registerLegacyCompatCommands(program3) {
16753
16753
  var program2 = new Command();
16754
16754
  program2.name("dazi-app").description(
16755
16755
  "\u642D\u5B50 App CLI \u2014 DRAP \u524D\u7AEF\u5E94\u7528\uFF08manifest / build / upload / preview\uFF09"
16756
- ).version("3.0.3", "-v, --version");
16756
+ ).version("3.0.4", "-v, --version");
16757
16757
  registerAuth(program2);
16758
16758
  registerBuild(program2);
16759
16759
  registerDev(program2);
@@ -5618,9 +5618,9 @@ function makeProjectCommand() {
5618
5618
  handleError(err);
5619
5619
  }
5620
5620
  });
5621
- cmd.command("pull").description("\u4ECE\u5E73\u53F0\u62C9\u53D6\u6D41\u7A0B\u5FEB\u7167\u5E76\u62C6\u5206\u4E3A\u672C\u5730\u6587\u4EF6\uFF08flow.json + \u8282\u70B9/<\u540D>/code.*\uFF09").requiredOption("--flow <flowId>", "Flow ID").option("--dir <dir>", "\u6D41\u7A0B\u76EE\u5F55\uFF08\u987B\u542B flow.json\uFF1B\u63A8\u8350\u7EDD\u5BF9\u8DEF\u5F84\uFF09").option("--json", "\u8F93\u51FA JSON").action(async (opts) => {
5621
+ cmd.command("pull").description("\u4ECE\u5E73\u53F0\u62C9\u53D6\u6D41\u7A0B\u5FEB\u7167\u5E76\u62C6\u5206\u4E3A\u672C\u5730\u6587\u4EF6\uFF08flow.json + \u8282\u70B9/<\u540D>/code.*\uFF09").requiredOption("--flow <flowId>", "Flow ID").option("--dir <dir>", "\u76EE\u6807\u6D41\u7A0B\u76EE\u5F55\uFF08\u53EF\u65E0 flow.json\uFF0Cpull \u4F1A\u521B\u5EFA\uFF1B\u63A8\u8350\u7EDD\u5BF9\u8DEF\u5F84\uFF09").option("--json", "\u8F93\u51FA JSON").action(async (opts) => {
5622
5622
  try {
5623
- const flowDir = (0, import_flowDirResolve.resolveFlowDir)(opts.dir, { json: opts.json });
5623
+ const flowDir = (0, import_flowDirResolve.resolveFlowDir)(opts.dir, { json: opts.json, allowMissingFlowJson: true });
5624
5624
  import_fs8.default.mkdirSync(flowDir, { recursive: true });
5625
5625
  const localCount = readLocalCanvasNodeCount(flowDir);
5626
5626
  const preAudit = localCount > 0 ? (0, import_flowWorkspaceAudit.auditFlowWorkspace)(flowDir) : null;
@@ -7218,7 +7218,7 @@ function makeManagedFilesCommand() {
7218
7218
 
7219
7219
  // cli/dazi-flow/src/index.ts
7220
7220
  var program2 = new Command();
7221
- program2.name("dazi-flow").description("\u642D\u5B50 Flow CLI \u2014 \u5DE5\u4F5C\u6D41\u7BA1\u7406").version("3.0.3", "-v, --version");
7221
+ program2.name("dazi-flow").description("\u642D\u5B50 Flow CLI \u2014 \u5DE5\u4F5C\u6D41\u7BA1\u7406").version("3.0.4", "-v, --version");
7222
7222
  program2.addCommand(makeFlowsCommand());
7223
7223
  program2.addCommand(makeSnapshotCommand());
7224
7224
  program2.addCommand(makeProjectCommand());
@@ -3978,7 +3978,7 @@ function makeMcpCommand() {
3978
3978
  result: {
3979
3979
  protocolVersion: "2024-11-05",
3980
3980
  capabilities: { tools: {} },
3981
- serverInfo: { name: "dazi-onto", version: "3.0.3" }
3981
+ serverInfo: { name: "dazi-onto", version: "3.0.4" }
3982
3982
  }
3983
3983
  };
3984
3984
  process.stdout.write(JSON.stringify(response) + "\n");
@@ -4001,7 +4001,7 @@ function makeMcpCommand() {
4001
4001
 
4002
4002
  // cli/dazi-onto/src/index.ts
4003
4003
  var program2 = new Command();
4004
- program2.name("dazi-onto").description("\u642D\u5B50 Onto CLI \u2014 \u672C\u4F53\uFF08Ontology\uFF09\u7BA1\u7406").version("3.0.3", "-v, --version");
4004
+ program2.name("dazi-onto").description("\u642D\u5B50 Onto CLI \u2014 \u672C\u4F53\uFF08Ontology\uFF09\u7BA1\u7406").version("3.0.4", "-v, --version");
4005
4005
  program2.addCommand(makeSpaceCommand());
4006
4006
  program2.addCommand(makeFunctionCommand());
4007
4007
  program2.addCommand(makeActionCommand());
package/dist/clis/dazi.js CHANGED
@@ -4024,7 +4024,7 @@ function makeEnvCommand() {
4024
4024
  return new Command("env").description("\u663E\u793A\u73AF\u5883\u4FE1\u606F").action(() => {
4025
4025
  const auth = tryLoadAuth();
4026
4026
  const env = {
4027
- version: "3.0.3",
4027
+ version: "3.0.4",
4028
4028
  node: process.version,
4029
4029
  platform: `${import_os5.default.type()} ${import_os5.default.arch()}`,
4030
4030
  serverUrl: getServerUrl(),
@@ -5694,7 +5694,7 @@ function dispatch(msg) {
5694
5694
  result: {
5695
5695
  protocolVersion: "2024-11-05",
5696
5696
  capabilities: { tools: {} },
5697
- serverInfo: { name: "dazi", version: "3.0.3" }
5697
+ serverInfo: { name: "dazi", version: "3.0.4" }
5698
5698
  }
5699
5699
  };
5700
5700
  case "initialized":
@@ -5817,7 +5817,7 @@ function forwardToCli(cliName, extraArgs) {
5817
5817
  process.exit(result.status ?? 1);
5818
5818
  }
5819
5819
  var program2 = new Command();
5820
- program2.name("dazi").description("\u642D\u5B50 v3 \u2014 Onto / Flow / App \u7EDF\u4E00 CLI").version("3.0.3", "-v, --version");
5820
+ program2.name("dazi").description("\u642D\u5B50 v3 \u2014 Onto / Flow / App \u7EDF\u4E00 CLI").version("3.0.4", "-v, --version");
5821
5821
  program2.addCommand(makeAuthCommand());
5822
5822
  program2.addCommand(makeDoctorCommand());
5823
5823
  program2.addCommand(makeEnvCommand());
@@ -1,7 +1,7 @@
1
1
  # 数据流程项目开发指南
2
2
 
3
3
  **文档 ID**: `flow/flow-project-guide`
4
- **适用**: `dazi-vscode` v3.0.3+、`dazi-work` 工作区、业务项目 `项目/<业务名>/`
4
+ **适用**: `dazi-vscode` v3.0.4+、`dazi-work` 工作区、业务项目 `项目/<业务名>/`
5
5
 
6
6
  ---
7
7
 
@@ -84,7 +84,7 @@ dazi doctor --workspace-root D:\path\to\dazi-work
84
84
  检查 `.cursor/mcp.json` 配置。MCP 需能调用 bundled CLI,示例:
85
85
 
86
86
  ```powershell
87
- $env:DAZI_BUNDLED_DIR = "$env:USERPROFILE\.cursor\extensions\dazitech.dazi-vscode-3.0.3\bundled\clis"
87
+ $env:DAZI_BUNDLED_DIR = "$env:USERPROFILE\.cursor\extensions\dazitech.dazi-vscode-3.0.4\bundled\clis"
88
88
  node "$env:DAZI_BUNDLED_DIR\dazi.js" mcp stdio
89
89
  ```
90
90
 
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "3.0.3",
2
+ "version": "3.0.4",
3
3
  "updatedAt": "2026-05-29T00:00:00.000Z",
4
4
  "docs": [
5
5
  {
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "3.0.3",
2
+ "version": "3.0.4",
3
3
  "updatedAt": "2026-05-25T00:00:00.000Z",
4
4
  "examples": [
5
5
  {
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "3.0.3",
2
+ "version": "3.0.4",
3
3
  "updatedAt": "2026-05-26T00:00:00.000Z",
4
4
  "prompts": [
5
5
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dazitech/cli",
3
- "version": "3.0.3",
3
+ "version": "3.0.4",
4
4
  "description": "搭子 v3 命令行工具(Onto / Flow / App),与 dazi-vscode 同版本",
5
5
  "license": "MIT",
6
6
  "engines": {