@ias-ai/zhima-spec 1.3.8 → 1.3.9

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/bin/zhima.js CHANGED
@@ -1,3 +1,3 @@
1
- #!/usr/bin/env node
1
+ #!/usr/bin/env node
2
2
 
3
3
  import '../dist/cli/index.js';
@@ -30,4 +30,5 @@ export { qwenAdapter } from './qwen.js';
30
30
  export { roocodeAdapter } from './roocode.js';
31
31
  export { windsurfAdapter } from './windsurf.js';
32
32
  export { vjspAdapter } from './vjsp.js';
33
+ export { zcodeAdapter } from './zcode.js';
33
34
  //# sourceMappingURL=index.d.ts.map
@@ -30,4 +30,5 @@ export { qwenAdapter } from './qwen.js';
30
30
  export { roocodeAdapter } from './roocode.js';
31
31
  export { windsurfAdapter } from './windsurf.js';
32
32
  export { vjspAdapter } from './vjsp.js';
33
+ export { zcodeAdapter } from './zcode.js';
33
34
  //# sourceMappingURL=index.js.map
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Z-Code Command Adapter
3
+ *
4
+ * Formats commands for Z-Code following its specification.
5
+ */
6
+ import type { ToolCommandAdapter } from '../types.js';
7
+ /**
8
+ * Z-Code adapter for command generation.
9
+ * File path: .zcode/workflows/zm-<id>.md
10
+ * Format: Markdown with frontmatter (name, description)
11
+ */
12
+ export declare const zcodeAdapter: ToolCommandAdapter;
13
+ //# sourceMappingURL=zcode.d.ts.map
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Z-Code Command Adapter
3
+ *
4
+ * Formats commands for Z-Code following its specification.
5
+ */
6
+ import path from 'path';
7
+ /**
8
+ * Z-Code adapter for command generation.
9
+ * File path: .zcode/workflows/zm-<id>.md
10
+ * Format: Markdown with frontmatter (name, description)
11
+ */
12
+ export const zcodeAdapter = {
13
+ toolId: 'zcode',
14
+ getFilePath(commandId) {
15
+ return path.join('.zcode', 'workflows', `zm-${commandId}.md`);
16
+ },
17
+ formatFile(content) {
18
+ return `---
19
+ name: ${content.name}
20
+ description: "${content.description}"
21
+ ---
22
+
23
+ ${content.body}
24
+ `;
25
+ },
26
+ };
27
+ //# sourceMappingURL=zcode.js.map
@@ -31,6 +31,7 @@ import { qwenAdapter } from './adapters/qwen.js';
31
31
  import { roocodeAdapter } from './adapters/roocode.js';
32
32
  import { windsurfAdapter } from './adapters/windsurf.js';
33
33
  import { vjspAdapter } from './adapters/vjsp.js';
34
+ import { zcodeAdapter } from './adapters/zcode.js';
34
35
  /**
35
36
  * Registry for looking up tool command adapters.
36
37
  */
@@ -65,6 +66,7 @@ export class CommandAdapterRegistry {
65
66
  CommandAdapterRegistry.register(roocodeAdapter);
66
67
  CommandAdapterRegistry.register(windsurfAdapter);
67
68
  CommandAdapterRegistry.register(vjspAdapter);
69
+ CommandAdapterRegistry.register(zcodeAdapter);
68
70
  }
69
71
  /**
70
72
  * Register a tool command adapter.
@@ -35,6 +35,7 @@ export const AI_TOOLS = [
35
35
  { name: 'Trae', value: 'trae', available: true, successLabel: 'Trae', skillsDir: '.trae' },
36
36
  { name: 'Windsurf', value: 'windsurf', available: true, successLabel: 'Windsurf', skillsDir: '.windsurf' },
37
37
  { name: 'VJSP', value: 'vjsp', available: true, successLabel: 'VJSP', skillsDir: '.vjsp' },
38
+ { name: 'Z-Code', value: 'zcode', available: true, successLabel: 'Z-Code', skillsDir: '.zcode' },
38
39
  { name: 'AGENTS.md (works with Amp, VS Code, …)', value: 'agents', available: false, successLabel: 'your AGENTS.md-compatible assistant' }
39
40
  ];
40
41
  //# sourceMappingURL=config.js.map
package/package.json CHANGED
@@ -1,80 +1,82 @@
1
- {
2
- "name": "@ias-ai/zhima-spec",
3
- "version": "1.3.8",
4
- "description": "AI-native system development flow",
5
- "keywords": [
6
- "zhima",
7
- "specs",
8
- "cli",
9
- "ai",
10
- "development"
11
- ],
12
- "homepage": "https://gitlab.oneberry.cc:2083/zhima-agent/ias-workflow",
13
- "repository": {
14
- "type": "git",
15
- "url": "https://gitlab.oneberry.cc:2083/zhima-agent/ias-workflow"
16
- },
17
- "license": "MIT",
18
- "type": "module",
19
- "publishConfig": {
20
- "access": "public"
21
- },
22
- "exports": {
23
- ".": {
24
- "types": "./dist/index.d.ts",
25
- "default": "./dist/index.js"
26
- }
27
- },
28
- "bin": {
29
- "zhima": "./bin/zhima.js"
30
- },
31
- "files": [
32
- "dist",
33
- "bin",
34
- "schemas",
35
- "scripts/postinstall.js",
36
- "!dist/**/*.test.js",
37
- "!dist/**/__tests__",
38
- "!dist/**/*.map"
39
- ],
40
- "engines": {
41
- "node": ">=20.19.0"
42
- },
43
- "devDependencies": {
44
- "@changesets/changelog-github": "^0.5.2",
45
- "@changesets/cli": "^2.27.7",
46
- "@types/node": "^24.2.0",
47
- "@vitest/ui": "^3.2.4",
48
- "eslint": "^9.39.2",
49
- "typescript": "^5.9.3",
50
- "typescript-eslint": "^8.50.1",
51
- "vitest": "^3.2.4"
52
- },
53
- "dependencies": {
54
- "@inquirer/core": "^10.2.2",
55
- "@inquirer/prompts": "^7.8.0",
56
- "chalk": "^5.5.0",
57
- "commander": "^14.0.0",
58
- "cross-spawn": "7.0.6",
59
- "fast-glob": "^3.3.3",
60
- "ora": "^8.2.0",
61
- "yaml": "^2.8.2",
62
- "zod": "^4.0.17"
63
- },
64
- "scripts": {
65
- "lint": "eslint src/",
66
- "build": "node build.js",
67
- "dev": "tsc --watch",
68
- "dev:cli": "pnpm build && node bin/zhima.js",
69
- "test": "vitest run",
70
- "test:watch": "vitest",
71
- "test:ui": "vitest --ui",
72
- "test:coverage": "vitest --coverage",
73
- "test:postinstall": "node scripts/postinstall.js",
74
- "postinstall": "node scripts/postinstall.js",
75
- "check:pack-version": "node scripts/pack-version-check.mjs",
76
- "release": "pnpm run release:ci",
77
- "release:ci": "pnpm run check:pack-version && pnpm exec changeset publish",
78
- "changeset": "changeset"
79
- }
80
- }
1
+ {
2
+ "name": "@ias-ai/zhima-spec",
3
+ "version": "1.3.9",
4
+ "description": "AI-native system development flow",
5
+ "keywords": [
6
+ "zhima",
7
+ "specs",
8
+ "cli",
9
+ "ai",
10
+ "development"
11
+ ],
12
+ "homepage": "https://gitlab.oneberry.cc:2083/zhima-agent/ias-workflow",
13
+ "repository": {
14
+ "type": "git",
15
+ "url": "https://gitlab.oneberry.cc:2083/zhima-agent/ias-workflow"
16
+ },
17
+ "license": "MIT",
18
+ "type": "module",
19
+ "publishConfig": {
20
+ "access": "public"
21
+ },
22
+ "exports": {
23
+ ".": {
24
+ "types": "./dist/index.d.ts",
25
+ "default": "./dist/index.js"
26
+ }
27
+ },
28
+ "bin": {
29
+ "zhima": "./bin/zhima.js"
30
+ },
31
+ "files": [
32
+ "dist",
33
+ "bin",
34
+ "schemas",
35
+ "scripts/postinstall.js",
36
+ "!dist/**/*.test.js",
37
+ "!dist/**/__tests__",
38
+ "!dist/**/*.map"
39
+ ],
40
+ "scripts": {
41
+ "lint": "eslint src/",
42
+ "build": "node build.js",
43
+ "dev": "tsc --watch",
44
+ "dev:cli": "pnpm build && node bin/zhima.js",
45
+ "test": "vitest run",
46
+ "test:watch": "vitest",
47
+ "test:ui": "vitest --ui",
48
+ "test:coverage": "vitest --coverage",
49
+ "test:postinstall": "node scripts/postinstall.js",
50
+ "prepare": "pnpm run build",
51
+ "prepublishOnly": "pnpm run build",
52
+ "postinstall": "node scripts/postinstall.js",
53
+ "check:pack-version": "node scripts/pack-version-check.mjs",
54
+ "release": "pnpm run release:ci",
55
+ "release:ci": "pnpm run check:pack-version && pnpm exec changeset publish",
56
+ "changeset": "changeset"
57
+ },
58
+ "engines": {
59
+ "node": ">=20.19.0"
60
+ },
61
+ "devDependencies": {
62
+ "@changesets/changelog-github": "^0.5.2",
63
+ "@changesets/cli": "^2.27.7",
64
+ "@types/node": "^24.2.0",
65
+ "@vitest/ui": "^3.2.4",
66
+ "eslint": "^9.39.2",
67
+ "typescript": "^5.9.3",
68
+ "typescript-eslint": "^8.50.1",
69
+ "vitest": "^3.2.4"
70
+ },
71
+ "dependencies": {
72
+ "@inquirer/core": "^10.2.2",
73
+ "@inquirer/prompts": "^7.8.0",
74
+ "chalk": "^5.5.0",
75
+ "commander": "^14.0.0",
76
+ "cross-spawn": "7.0.6",
77
+ "fast-glob": "^3.3.3",
78
+ "ora": "^8.2.0",
79
+ "yaml": "^2.8.2",
80
+ "zod": "^4.0.17"
81
+ }
82
+ }