@ddd-tool/domain-designer-cli 0.1.0-beta.0 → 0.1.0-beta.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ddd-tool/domain-designer-cli",
3
- "version": "0.1.0-beta.0",
3
+ "version": "0.1.0-beta.2",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "type": "module",
@@ -27,32 +27,32 @@
27
27
  "repository": "https://github.com/ddd-tool/domain-designer-cli-node",
28
28
  "license": "Apache-2.0",
29
29
  "devDependencies": {
30
- "@ddd-tool/domain-designer-core": "0.1.0-beta.1",
31
- "@ddd-tool/domain-designer-ui-component": "0.1.0-beta.0",
30
+ "@ddd-tool/domain-designer-core": "0.1.0-beta.2",
31
+ "@ddd-tool/domain-designer-ui-component": "0.1.0-beta.3",
32
32
  "@primeuix/themes": "^1.0.0",
33
33
  "@types/node": "^22.13.10",
34
- "@vitejs/plugin-vue": "^5.2.1",
34
+ "@vitejs/plugin-vue": "^5.2.3",
35
35
  "@vue/tsconfig": "^0.7.0",
36
36
  "esbuild": "^0.24.2",
37
37
  "npm-run-all2": "^7.0.2",
38
38
  "primeicons": "^7.0.0",
39
- "primevue": "^4.3.1",
39
+ "primevue": "^4.3.2",
40
40
  "typescript": "^5.8.2",
41
- "vite": "^6.2.1",
41
+ "vite": "^6.2.2",
42
42
  "vite-plugin-top-level-await": "^1.5.0",
43
43
  "vue": "^3.5.13",
44
44
  "vue-tsc": "^2.2.8",
45
- "zx": "^8.4.0"
45
+ "zx": "^8.4.1"
46
46
  },
47
47
  "scripts": {
48
48
  "dev": "vite",
49
49
  "test": "run-p build:cli && run-p test:fun",
50
50
  "test:fun": "vitest",
51
51
  "verify": "tsc -p ./tsconfig.json",
52
- "demo:init": "node ./bin/domain-designer-cli.cjs init --source=./demo",
53
- "demo:runWeb": "node ./bin/domain-designer-cli.cjs runWeb --source=./demo",
54
- "demo:update": "node ./bin/domain-designer-cli.cjs update --source=./demo",
55
- "demo:info": "node ./bin/domain-designer-cli.cjs info",
56
- "demo:genCode": "node ./bin/domain-designer-cli.cjs genCode --source=./demo"
52
+ "demo:init": "node ./bin/domain-designer-cli.cjs init --source=./demo --debug",
53
+ "demo:runWeb": "node ./bin/domain-designer-cli.cjs runWeb --source=./demo --debug",
54
+ "demo:update": "node ./bin/domain-designer-cli.cjs update --source=./demo --debug",
55
+ "demo:info": "node ./bin/domain-designer-cli.cjs info --debug",
56
+ "demo:genCode": "node ./bin/domain-designer-cli.cjs genCode --source=./demo --debug"
57
57
  }
58
58
  }
@@ -1,7 +1,7 @@
1
1
  import { type DomainDesigner, isDomainDesigner } from '@ddd-tool/domain-designer-core'
2
2
 
3
- const __d1 = (await import('D:/vscode-projects/@ddd-tool/domain-designer-cli-node/demo/example-agg')).default
4
- const __d2 = (await import('D:/vscode-projects/@ddd-tool/domain-designer-cli-node/demo/example')).default
3
+ const __d1 = (await import('F:/vscode_projects/@ddd-tool/domain-designer-cli-node/demo/example-agg')).default
4
+ const __d2 = (await import('F:/vscode_projects/@ddd-tool/domain-designer-cli-node/demo/example')).default
5
5
 
6
6
  const data: Record<string, DomainDesigner> = {}
7
7
 
@@ -4,7 +4,7 @@ type Rule = 'Info' | 'Actor' | 'Command' | 'FacadeCommand' | 'Agg' | 'Event' | '
4
4
  export declare function genId(): string;
5
5
  type ContextInitializer = () => {
6
6
  id: string;
7
- options?: DomainDesignOptions;
7
+ options: DomainDesignOptions;
8
8
  createNote: DomainDesignNoteProvider;
9
9
  createInfo: DomainDesignInfoProvider;
10
10
  createActor: DomainDesignActorProvider;
@@ -17,13 +17,14 @@ type ContextInitializer = () => {
17
17
  createSystem: DomainDesignSystemProvider;
18
18
  createReadModel: DomainDesignReadModelProvider;
19
19
  };
20
+ export declare function defaultOptions(): Required<DomainDesignOptions>;
20
21
  export type DomainDesignInternalContext = ReturnType<typeof createInternalContext>;
21
22
  declare function createInternalContext(initFn: ContextInitializer): {
22
23
  startWorkflow(name: string): string;
23
24
  defineUserStory(name: string, workflowNames: NonEmptyArray<string>): void;
24
25
  linkTo(srcRule: Rule, srcId: string, targetRule: Rule, targetId: string, linkType?: LinkType): void;
25
26
  getDesignerId(): string;
26
- getModuleName(): string;
27
+ getDesignerOptions(): Required<DomainDesignOptions>;
27
28
  getWorkflows(): Record<string, string[]>;
28
29
  getUserStories(): Record<string, string[]>;
29
30
  getLinks(): Record<string, LinkType>;
@@ -206,7 +206,8 @@ export interface DomainDesignReadModel<INFOS extends DomainDesignInfoRecord> ext
206
206
  toFormat(): string;
207
207
  }
208
208
  export type DomainDesignOptions = {
209
- moduleName: string;
209
+ moduleName?: string;
210
+ ignoreValueObjects?: string[];
210
211
  __toFormatType?: 'BngleBrackets' | 'JSON' | 'JSONPretty';
211
212
  };
212
213
  export type NonEmptyArray<T> = [T, ...T[]];
@@ -251,7 +252,7 @@ export type DomainDesigner = {
251
252
  defineUserStory(name: string, workflowNames: NonEmptyArray<string>): void;
252
253
  linkTo(srcRule: 'Info' | 'Actor' | 'Command' | 'FacadeCommand' | 'Agg' | 'Event' | 'Policy' | 'Service' | 'System' | 'ReadModel', srcId: string, targetRule: 'Info' | 'Actor' | 'Command' | 'FacadeCommand' | 'Agg' | 'Event' | 'Policy' | 'Service' | 'System' | 'ReadModel', targetId: string, linkType?: import('./common').LinkType): void;
253
254
  getDesignerId(): string;
254
- getModuleName(): string;
255
+ getDesignerOptions(): Required<DomainDesignOptions>;
255
256
  getWorkflows(): Record<string, string[]>;
256
257
  getUserStories(): Record<string, string[]>;
257
258
  getLinks(): Record<string, import('./common').LinkType>;
@@ -1 +1 @@
1
- 0.1.0-beta.0
1
+ 0.1.0-beta.2