@ias-ai/zhima-spec 1.3.1 → 1.3.3
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/core/command-generation/adapters/amazon-q.d.ts +1 -1
- package/dist/core/command-generation/adapters/amazon-q.js +2 -2
- package/dist/core/command-generation/adapters/antigravity.d.ts +1 -1
- package/dist/core/command-generation/adapters/antigravity.js +2 -2
- package/dist/core/command-generation/adapters/auggie.d.ts +1 -1
- package/dist/core/command-generation/adapters/auggie.js +2 -2
- package/dist/core/command-generation/adapters/bob.d.ts +1 -1
- package/dist/core/command-generation/adapters/bob.js +2 -2
- package/dist/core/command-generation/adapters/claude.d.ts +1 -1
- package/dist/core/command-generation/adapters/claude.js +2 -2
- package/dist/core/command-generation/adapters/cline.d.ts +1 -1
- package/dist/core/command-generation/adapters/cline.js +2 -2
- package/dist/core/command-generation/adapters/codebuddy.d.ts +1 -1
- package/dist/core/command-generation/adapters/codebuddy.js +2 -2
- package/dist/core/command-generation/adapters/codex.d.ts +1 -1
- package/dist/core/command-generation/adapters/codex.js +2 -2
- package/dist/core/command-generation/adapters/continue.d.ts +1 -1
- package/dist/core/command-generation/adapters/continue.js +3 -3
- package/dist/core/command-generation/adapters/costrict.d.ts +1 -1
- package/dist/core/command-generation/adapters/costrict.js +2 -2
- package/dist/core/command-generation/adapters/crush.d.ts +1 -1
- package/dist/core/command-generation/adapters/crush.js +2 -2
- package/dist/core/command-generation/adapters/cursor.d.ts +2 -2
- package/dist/core/command-generation/adapters/cursor.js +5 -5
- package/dist/core/command-generation/adapters/factory.d.ts +1 -1
- package/dist/core/command-generation/adapters/factory.js +2 -2
- package/dist/core/command-generation/adapters/gemini.d.ts +1 -1
- package/dist/core/command-generation/adapters/gemini.js +2 -2
- package/dist/core/command-generation/adapters/github-copilot.d.ts +1 -1
- package/dist/core/command-generation/adapters/github-copilot.js +2 -2
- package/dist/core/command-generation/adapters/iflow.d.ts +1 -1
- package/dist/core/command-generation/adapters/iflow.js +4 -4
- package/dist/core/command-generation/adapters/junie.d.ts +1 -1
- package/dist/core/command-generation/adapters/junie.js +2 -2
- package/dist/core/command-generation/adapters/kilocode.d.ts +1 -1
- package/dist/core/command-generation/adapters/kilocode.js +2 -2
- package/dist/core/command-generation/adapters/kiro.d.ts +1 -1
- package/dist/core/command-generation/adapters/kiro.js +2 -2
- package/dist/core/command-generation/adapters/lingma.d.ts +1 -1
- package/dist/core/command-generation/adapters/lingma.js +2 -2
- package/dist/core/command-generation/adapters/opencode.d.ts +1 -1
- package/dist/core/command-generation/adapters/opencode.js +2 -2
- package/dist/core/command-generation/adapters/pi.d.ts +3 -3
- package/dist/core/command-generation/adapters/pi.js +5 -5
- package/dist/core/command-generation/adapters/qoder.d.ts +1 -1
- package/dist/core/command-generation/adapters/qoder.js +2 -2
- package/dist/core/command-generation/adapters/qwen.d.ts +1 -1
- package/dist/core/command-generation/adapters/qwen.js +2 -2
- package/dist/core/command-generation/adapters/roocode.d.ts +1 -1
- package/dist/core/command-generation/adapters/roocode.js +2 -2
- package/dist/core/command-generation/adapters/vjsp.d.ts +1 -1
- package/dist/core/command-generation/adapters/vjsp.js +2 -2
- package/dist/core/command-generation/adapters/windsurf.d.ts +1 -1
- package/dist/core/command-generation/adapters/windsurf.js +2 -2
- package/dist/core/command-generation/types.d.ts +1 -1
- package/dist/core/legacy-cleanup.js +2 -2
- package/dist/core/migration.js +1 -1
- package/dist/core/shared/skill-generation.d.ts +2 -2
- package/dist/core/shared/skill-generation.js +13 -13
- package/dist/core/templates/skill-templates.d.ts +11 -11
- package/dist/core/templates/skill-templates.js +11 -11
- package/dist/core/templates/workflows/apply-change.d.ts +1 -1
- package/dist/core/templates/workflows/apply-change.js +2 -2
- package/dist/core/templates/workflows/archive-change.d.ts +1 -1
- package/dist/core/templates/workflows/archive-change.js +2 -2
- package/dist/core/templates/workflows/bulk-archive-change.d.ts +1 -1
- package/dist/core/templates/workflows/bulk-archive-change.js +2 -2
- package/dist/core/templates/workflows/continue-change.d.ts +1 -1
- package/dist/core/templates/workflows/continue-change.js +2 -2
- package/dist/core/templates/workflows/explore.d.ts +1 -1
- package/dist/core/templates/workflows/explore.js +2 -2
- package/dist/core/templates/workflows/ff-change.d.ts +1 -1
- package/dist/core/templates/workflows/ff-change.js +2 -2
- package/dist/core/templates/workflows/new-change.d.ts +1 -1
- package/dist/core/templates/workflows/new-change.js +3 -3
- package/dist/core/templates/workflows/onboard.d.ts +1 -1
- package/dist/core/templates/workflows/onboard.js +2 -2
- package/dist/core/templates/workflows/propose.d.ts +2 -2
- package/dist/core/templates/workflows/propose.js +3 -3
- package/dist/core/templates/workflows/sync-specs.d.ts +1 -1
- package/dist/core/templates/workflows/sync-specs.js +2 -2
- package/dist/core/templates/workflows/verify-change.d.ts +1 -1
- package/dist/core/templates/workflows/verify-change.js +2 -2
- package/dist/core/update.js +1 -1
- package/dist/utils/command-references.d.ts +3 -3
- package/dist/utils/command-references.js +4 -4
- package/package.json +1 -1
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import type { ToolCommandAdapter } from '../types.js';
|
|
7
7
|
/**
|
|
8
8
|
* Amazon Q adapter for command generation.
|
|
9
|
-
* File path: .amazonq/prompts/
|
|
9
|
+
* File path: .amazonq/prompts/zm-<id>.md
|
|
10
10
|
* Frontmatter: description
|
|
11
11
|
*/
|
|
12
12
|
export declare const amazonQAdapter: ToolCommandAdapter;
|
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
import path from 'path';
|
|
7
7
|
/**
|
|
8
8
|
* Amazon Q adapter for command generation.
|
|
9
|
-
* File path: .amazonq/prompts/
|
|
9
|
+
* File path: .amazonq/prompts/zm-<id>.md
|
|
10
10
|
* Frontmatter: description
|
|
11
11
|
*/
|
|
12
12
|
export const amazonQAdapter = {
|
|
13
13
|
toolId: 'amazon-q',
|
|
14
14
|
getFilePath(commandId) {
|
|
15
|
-
return path.join('.amazonq', 'prompts', `
|
|
15
|
+
return path.join('.amazonq', 'prompts', `zm-${commandId}.md`);
|
|
16
16
|
},
|
|
17
17
|
formatFile(content) {
|
|
18
18
|
return `---
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import type { ToolCommandAdapter } from '../types.js';
|
|
7
7
|
/**
|
|
8
8
|
* Antigravity adapter for command generation.
|
|
9
|
-
* File path: .agent/workflows/
|
|
9
|
+
* File path: .agent/workflows/zm-<id>.md
|
|
10
10
|
* Frontmatter: description
|
|
11
11
|
*/
|
|
12
12
|
export declare const antigravityAdapter: ToolCommandAdapter;
|
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
import path from 'path';
|
|
7
7
|
/**
|
|
8
8
|
* Antigravity adapter for command generation.
|
|
9
|
-
* File path: .agent/workflows/
|
|
9
|
+
* File path: .agent/workflows/zm-<id>.md
|
|
10
10
|
* Frontmatter: description
|
|
11
11
|
*/
|
|
12
12
|
export const antigravityAdapter = {
|
|
13
13
|
toolId: 'antigravity',
|
|
14
14
|
getFilePath(commandId) {
|
|
15
|
-
return path.join('.agent', 'workflows', `
|
|
15
|
+
return path.join('.agent', 'workflows', `zm-${commandId}.md`);
|
|
16
16
|
},
|
|
17
17
|
formatFile(content) {
|
|
18
18
|
return `---
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import type { ToolCommandAdapter } from '../types.js';
|
|
7
7
|
/**
|
|
8
8
|
* Auggie adapter for command generation.
|
|
9
|
-
* File path: .augment/commands/
|
|
9
|
+
* File path: .augment/commands/zm-<id>.md
|
|
10
10
|
* Frontmatter: description, argument-hint
|
|
11
11
|
*/
|
|
12
12
|
export declare const auggieAdapter: ToolCommandAdapter;
|
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
import path from 'path';
|
|
7
7
|
/**
|
|
8
8
|
* Auggie adapter for command generation.
|
|
9
|
-
* File path: .augment/commands/
|
|
9
|
+
* File path: .augment/commands/zm-<id>.md
|
|
10
10
|
* Frontmatter: description, argument-hint
|
|
11
11
|
*/
|
|
12
12
|
export const auggieAdapter = {
|
|
13
13
|
toolId: 'auggie',
|
|
14
14
|
getFilePath(commandId) {
|
|
15
|
-
return path.join('.augment', 'commands', `
|
|
15
|
+
return path.join('.augment', 'commands', `zm-${commandId}.md`);
|
|
16
16
|
},
|
|
17
17
|
formatFile(content) {
|
|
18
18
|
return `---
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
import type { ToolCommandAdapter } from '../types.js';
|
|
8
8
|
/**
|
|
9
9
|
* Bob Shell adapter for command generation.
|
|
10
|
-
* File path: .bob/commands/
|
|
10
|
+
* File path: .bob/commands/zm-<id>.md
|
|
11
11
|
* Frontmatter: description, argument-hint
|
|
12
12
|
*/
|
|
13
13
|
export declare const bobAdapter: ToolCommandAdapter;
|
|
@@ -22,13 +22,13 @@ function escapeYamlValue(value) {
|
|
|
22
22
|
}
|
|
23
23
|
/**
|
|
24
24
|
* Bob Shell adapter for command generation.
|
|
25
|
-
* File path: .bob/commands/
|
|
25
|
+
* File path: .bob/commands/zm-<id>.md
|
|
26
26
|
* Frontmatter: description, argument-hint
|
|
27
27
|
*/
|
|
28
28
|
export const bobAdapter = {
|
|
29
29
|
toolId: 'bob',
|
|
30
30
|
getFilePath(commandId) {
|
|
31
|
-
return path.join('.bob', 'commands', `
|
|
31
|
+
return path.join('.bob', 'commands', `zm-${commandId}.md`);
|
|
32
32
|
},
|
|
33
33
|
formatFile(content) {
|
|
34
34
|
// Transform command references from colon to hyphen format for Bob
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import type { ToolCommandAdapter } from '../types.js';
|
|
7
7
|
/**
|
|
8
8
|
* Claude Code adapter for command generation.
|
|
9
|
-
* File path: .claude/commands/
|
|
9
|
+
* File path: .claude/commands/zm/<id>.md
|
|
10
10
|
* Frontmatter: name, description, category, tags
|
|
11
11
|
*/
|
|
12
12
|
export declare const claudeAdapter: ToolCommandAdapter;
|
|
@@ -27,13 +27,13 @@ function formatTagsArray(tags) {
|
|
|
27
27
|
}
|
|
28
28
|
/**
|
|
29
29
|
* Claude Code adapter for command generation.
|
|
30
|
-
* File path: .claude/commands/
|
|
30
|
+
* File path: .claude/commands/zm/<id>.md
|
|
31
31
|
* Frontmatter: name, description, category, tags
|
|
32
32
|
*/
|
|
33
33
|
export const claudeAdapter = {
|
|
34
34
|
toolId: 'claude',
|
|
35
35
|
getFilePath(commandId) {
|
|
36
|
-
return path.join('.claude', 'commands', '
|
|
36
|
+
return path.join('.claude', 'commands', 'zm', `${commandId}.md`);
|
|
37
37
|
},
|
|
38
38
|
formatFile(content) {
|
|
39
39
|
return `---
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
import type { ToolCommandAdapter } from '../types.js';
|
|
8
8
|
/**
|
|
9
9
|
* Cline adapter for command generation.
|
|
10
|
-
* File path: .clinerules/workflows/
|
|
10
|
+
* File path: .clinerules/workflows/zm-<id>.md
|
|
11
11
|
* Format: Markdown header with description
|
|
12
12
|
*/
|
|
13
13
|
export declare const clineAdapter: ToolCommandAdapter;
|
|
@@ -7,13 +7,13 @@
|
|
|
7
7
|
import path from 'path';
|
|
8
8
|
/**
|
|
9
9
|
* Cline adapter for command generation.
|
|
10
|
-
* File path: .clinerules/workflows/
|
|
10
|
+
* File path: .clinerules/workflows/zm-<id>.md
|
|
11
11
|
* Format: Markdown header with description
|
|
12
12
|
*/
|
|
13
13
|
export const clineAdapter = {
|
|
14
14
|
toolId: 'cline',
|
|
15
15
|
getFilePath(commandId) {
|
|
16
|
-
return path.join('.clinerules', 'workflows', `
|
|
16
|
+
return path.join('.clinerules', 'workflows', `zm-${commandId}.md`);
|
|
17
17
|
},
|
|
18
18
|
formatFile(content) {
|
|
19
19
|
return `# ${content.name}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import type { ToolCommandAdapter } from '../types.js';
|
|
7
7
|
/**
|
|
8
8
|
* CodeBuddy adapter for command generation.
|
|
9
|
-
* File path: .codebuddy/commands/
|
|
9
|
+
* File path: .codebuddy/commands/zm/<id>.md
|
|
10
10
|
* Frontmatter: name, description, argument-hint
|
|
11
11
|
*/
|
|
12
12
|
export declare const codebuddyAdapter: ToolCommandAdapter;
|
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
import path from 'path';
|
|
7
7
|
/**
|
|
8
8
|
* CodeBuddy adapter for command generation.
|
|
9
|
-
* File path: .codebuddy/commands/
|
|
9
|
+
* File path: .codebuddy/commands/zm/<id>.md
|
|
10
10
|
* Frontmatter: name, description, argument-hint
|
|
11
11
|
*/
|
|
12
12
|
export const codebuddyAdapter = {
|
|
13
13
|
toolId: 'codebuddy',
|
|
14
14
|
getFilePath(commandId) {
|
|
15
|
-
return path.join('.codebuddy', 'commands', '
|
|
15
|
+
return path.join('.codebuddy', 'commands', 'zm', `${commandId}.md`);
|
|
16
16
|
},
|
|
17
17
|
formatFile(content) {
|
|
18
18
|
return `---
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
import type { ToolCommandAdapter } from '../types.js';
|
|
10
10
|
/**
|
|
11
11
|
* Codex adapter for command generation.
|
|
12
|
-
* File path: <CODEX_HOME>/prompts/
|
|
12
|
+
* File path: <CODEX_HOME>/prompts/zm-<id>.md (absolute, global)
|
|
13
13
|
* Frontmatter: description, argument-hint
|
|
14
14
|
*/
|
|
15
15
|
export declare const codexAdapter: ToolCommandAdapter;
|
|
@@ -18,13 +18,13 @@ function getCodexHome() {
|
|
|
18
18
|
}
|
|
19
19
|
/**
|
|
20
20
|
* Codex adapter for command generation.
|
|
21
|
-
* File path: <CODEX_HOME>/prompts/
|
|
21
|
+
* File path: <CODEX_HOME>/prompts/zm-<id>.md (absolute, global)
|
|
22
22
|
* Frontmatter: description, argument-hint
|
|
23
23
|
*/
|
|
24
24
|
export const codexAdapter = {
|
|
25
25
|
toolId: 'codex',
|
|
26
26
|
getFilePath(commandId) {
|
|
27
|
-
return path.join(getCodexHome(), 'prompts', `
|
|
27
|
+
return path.join(getCodexHome(), 'prompts', `zm-${commandId}.md`);
|
|
28
28
|
},
|
|
29
29
|
formatFile(content) {
|
|
30
30
|
return `---
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import type { ToolCommandAdapter } from '../types.js';
|
|
7
7
|
/**
|
|
8
8
|
* Continue adapter for command generation.
|
|
9
|
-
* File path: .continue/prompts/
|
|
9
|
+
* File path: .continue/prompts/zm-<id>.prompt
|
|
10
10
|
* Frontmatter: name, description, invokable
|
|
11
11
|
*/
|
|
12
12
|
export declare const continueAdapter: ToolCommandAdapter;
|
|
@@ -6,17 +6,17 @@
|
|
|
6
6
|
import path from 'path';
|
|
7
7
|
/**
|
|
8
8
|
* Continue adapter for command generation.
|
|
9
|
-
* File path: .continue/prompts/
|
|
9
|
+
* File path: .continue/prompts/zm-<id>.prompt
|
|
10
10
|
* Frontmatter: name, description, invokable
|
|
11
11
|
*/
|
|
12
12
|
export const continueAdapter = {
|
|
13
13
|
toolId: 'continue',
|
|
14
14
|
getFilePath(commandId) {
|
|
15
|
-
return path.join('.continue', 'prompts', `
|
|
15
|
+
return path.join('.continue', 'prompts', `zm-${commandId}.prompt`);
|
|
16
16
|
},
|
|
17
17
|
formatFile(content) {
|
|
18
18
|
return `---
|
|
19
|
-
name:
|
|
19
|
+
name: zm-${content.id}
|
|
20
20
|
description: ${content.description}
|
|
21
21
|
invokable: true
|
|
22
22
|
---
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import type { ToolCommandAdapter } from '../types.js';
|
|
7
7
|
/**
|
|
8
8
|
* CoStrict adapter for command generation.
|
|
9
|
-
* File path: .cospec/zhima/commands/
|
|
9
|
+
* File path: .cospec/zhima/commands/zm-<id>.md
|
|
10
10
|
* Frontmatter: description, argument-hint
|
|
11
11
|
*/
|
|
12
12
|
export declare const costrictAdapter: ToolCommandAdapter;
|
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
import path from 'path';
|
|
7
7
|
/**
|
|
8
8
|
* CoStrict adapter for command generation.
|
|
9
|
-
* File path: .cospec/zhima/commands/
|
|
9
|
+
* File path: .cospec/zhima/commands/zm-<id>.md
|
|
10
10
|
* Frontmatter: description, argument-hint
|
|
11
11
|
*/
|
|
12
12
|
export const costrictAdapter = {
|
|
13
13
|
toolId: 'costrict',
|
|
14
14
|
getFilePath(commandId) {
|
|
15
|
-
return path.join('.cospec', 'zhima', 'commands', `
|
|
15
|
+
return path.join('.cospec', 'zhima', 'commands', `zm-${commandId}.md`);
|
|
16
16
|
},
|
|
17
17
|
formatFile(content) {
|
|
18
18
|
return `---
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import type { ToolCommandAdapter } from '../types.js';
|
|
7
7
|
/**
|
|
8
8
|
* Crush adapter for command generation.
|
|
9
|
-
* File path: .crush/commands/
|
|
9
|
+
* File path: .crush/commands/zm/<id>.md
|
|
10
10
|
* Frontmatter: name, description, category, tags
|
|
11
11
|
*/
|
|
12
12
|
export declare const crushAdapter: ToolCommandAdapter;
|
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
import path from 'path';
|
|
7
7
|
/**
|
|
8
8
|
* Crush adapter for command generation.
|
|
9
|
-
* File path: .crush/commands/
|
|
9
|
+
* File path: .crush/commands/zm/<id>.md
|
|
10
10
|
* Frontmatter: name, description, category, tags
|
|
11
11
|
*/
|
|
12
12
|
export const crushAdapter = {
|
|
13
13
|
toolId: 'crush',
|
|
14
14
|
getFilePath(commandId) {
|
|
15
|
-
return path.join('.crush', 'commands', '
|
|
15
|
+
return path.join('.crush', 'commands', 'zm', `${commandId}.md`);
|
|
16
16
|
},
|
|
17
17
|
formatFile(content) {
|
|
18
18
|
const tagsStr = content.tags.join(', ');
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
import type { ToolCommandAdapter } from '../types.js';
|
|
8
8
|
/**
|
|
9
9
|
* Cursor adapter for command generation.
|
|
10
|
-
* File path: .cursor/commands/
|
|
11
|
-
* Frontmatter: name (as /
|
|
10
|
+
* File path: .cursor/commands/zm-<id>.md
|
|
11
|
+
* Frontmatter: name (as /zm-<id>), id, category, description
|
|
12
12
|
*/
|
|
13
13
|
export declare const cursorAdapter: ToolCommandAdapter;
|
|
14
14
|
//# sourceMappingURL=cursor.d.ts.map
|
|
@@ -21,18 +21,18 @@ function escapeYamlValue(value) {
|
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
23
|
* Cursor adapter for command generation.
|
|
24
|
-
* File path: .cursor/commands/
|
|
25
|
-
* Frontmatter: name (as /
|
|
24
|
+
* File path: .cursor/commands/zm-<id>.md
|
|
25
|
+
* Frontmatter: name (as /zm-<id>), id, category, description
|
|
26
26
|
*/
|
|
27
27
|
export const cursorAdapter = {
|
|
28
28
|
toolId: 'cursor',
|
|
29
29
|
getFilePath(commandId) {
|
|
30
|
-
return path.join('.cursor', 'commands', `
|
|
30
|
+
return path.join('.cursor', 'commands', `zm-${commandId}.md`);
|
|
31
31
|
},
|
|
32
32
|
formatFile(content) {
|
|
33
33
|
return `---
|
|
34
|
-
name: /
|
|
35
|
-
id:
|
|
34
|
+
name: /zm-${content.id}
|
|
35
|
+
id: zm-${content.id}
|
|
36
36
|
category: ${escapeYamlValue(content.category)}
|
|
37
37
|
description: ${escapeYamlValue(content.description)}
|
|
38
38
|
---
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import type { ToolCommandAdapter } from '../types.js';
|
|
7
7
|
/**
|
|
8
8
|
* Factory adapter for command generation.
|
|
9
|
-
* File path: .factory/commands/
|
|
9
|
+
* File path: .factory/commands/zm-<id>.md
|
|
10
10
|
* Frontmatter: description, argument-hint
|
|
11
11
|
*/
|
|
12
12
|
export declare const factoryAdapter: ToolCommandAdapter;
|
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
import path from 'path';
|
|
7
7
|
/**
|
|
8
8
|
* Factory adapter for command generation.
|
|
9
|
-
* File path: .factory/commands/
|
|
9
|
+
* File path: .factory/commands/zm-<id>.md
|
|
10
10
|
* Frontmatter: description, argument-hint
|
|
11
11
|
*/
|
|
12
12
|
export const factoryAdapter = {
|
|
13
13
|
toolId: 'factory',
|
|
14
14
|
getFilePath(commandId) {
|
|
15
|
-
return path.join('.factory', 'commands', `
|
|
15
|
+
return path.join('.factory', 'commands', `zm-${commandId}.md`);
|
|
16
16
|
},
|
|
17
17
|
formatFile(content) {
|
|
18
18
|
return `---
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import type { ToolCommandAdapter } from '../types.js';
|
|
7
7
|
/**
|
|
8
8
|
* Gemini adapter for command generation.
|
|
9
|
-
* File path: .gemini/commands/
|
|
9
|
+
* File path: .gemini/commands/zm/<id>.toml
|
|
10
10
|
* Format: TOML with description and prompt fields
|
|
11
11
|
*/
|
|
12
12
|
export declare const geminiAdapter: ToolCommandAdapter;
|
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
import path from 'path';
|
|
7
7
|
/**
|
|
8
8
|
* Gemini adapter for command generation.
|
|
9
|
-
* File path: .gemini/commands/
|
|
9
|
+
* File path: .gemini/commands/zm/<id>.toml
|
|
10
10
|
* Format: TOML with description and prompt fields
|
|
11
11
|
*/
|
|
12
12
|
export const geminiAdapter = {
|
|
13
13
|
toolId: 'gemini',
|
|
14
14
|
getFilePath(commandId) {
|
|
15
|
-
return path.join('.gemini', 'commands', '
|
|
15
|
+
return path.join('.gemini', 'commands', 'zm', `${commandId}.toml`);
|
|
16
16
|
},
|
|
17
17
|
formatFile(content) {
|
|
18
18
|
return `description = "${content.description}"
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import type { ToolCommandAdapter } from '../types.js';
|
|
7
7
|
/**
|
|
8
8
|
* GitHub Copilot adapter for command generation.
|
|
9
|
-
* File path: .github/prompts/
|
|
9
|
+
* File path: .github/prompts/zm-<id>.prompt.md
|
|
10
10
|
* Frontmatter: description
|
|
11
11
|
*/
|
|
12
12
|
export declare const githubCopilotAdapter: ToolCommandAdapter;
|
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
import path from 'path';
|
|
7
7
|
/**
|
|
8
8
|
* GitHub Copilot adapter for command generation.
|
|
9
|
-
* File path: .github/prompts/
|
|
9
|
+
* File path: .github/prompts/zm-<id>.prompt.md
|
|
10
10
|
* Frontmatter: description
|
|
11
11
|
*/
|
|
12
12
|
export const githubCopilotAdapter = {
|
|
13
13
|
toolId: 'github-copilot',
|
|
14
14
|
getFilePath(commandId) {
|
|
15
|
-
return path.join('.github', 'prompts', `
|
|
15
|
+
return path.join('.github', 'prompts', `zm-${commandId}.prompt.md`);
|
|
16
16
|
},
|
|
17
17
|
formatFile(content) {
|
|
18
18
|
return `---
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import type { ToolCommandAdapter } from '../types.js';
|
|
7
7
|
/**
|
|
8
8
|
* iFlow adapter for command generation.
|
|
9
|
-
* File path: .iflow/commands/
|
|
9
|
+
* File path: .iflow/commands/zm-<id>.md
|
|
10
10
|
* Frontmatter: name, id, category, description
|
|
11
11
|
*/
|
|
12
12
|
export declare const iflowAdapter: ToolCommandAdapter;
|
|
@@ -6,18 +6,18 @@
|
|
|
6
6
|
import path from 'path';
|
|
7
7
|
/**
|
|
8
8
|
* iFlow adapter for command generation.
|
|
9
|
-
* File path: .iflow/commands/
|
|
9
|
+
* File path: .iflow/commands/zm-<id>.md
|
|
10
10
|
* Frontmatter: name, id, category, description
|
|
11
11
|
*/
|
|
12
12
|
export const iflowAdapter = {
|
|
13
13
|
toolId: 'iflow',
|
|
14
14
|
getFilePath(commandId) {
|
|
15
|
-
return path.join('.iflow', 'commands', `
|
|
15
|
+
return path.join('.iflow', 'commands', `zm-${commandId}.md`);
|
|
16
16
|
},
|
|
17
17
|
formatFile(content) {
|
|
18
18
|
return `---
|
|
19
|
-
name: /
|
|
20
|
-
id:
|
|
19
|
+
name: /zm-${content.id}
|
|
20
|
+
id: zm-${content.id}
|
|
21
21
|
category: ${content.category}
|
|
22
22
|
description: ${content.description}
|
|
23
23
|
---
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import type { ToolCommandAdapter } from '../types.js';
|
|
7
7
|
/**
|
|
8
8
|
* Junie adapter for command generation.
|
|
9
|
-
* File path: .junie/commands/
|
|
9
|
+
* File path: .junie/commands/zm-<id>.md
|
|
10
10
|
* Frontmatter: description
|
|
11
11
|
*/
|
|
12
12
|
export declare const junieAdapter: ToolCommandAdapter;
|
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
import path from 'path';
|
|
7
7
|
/**
|
|
8
8
|
* Junie adapter for command generation.
|
|
9
|
-
* File path: .junie/commands/
|
|
9
|
+
* File path: .junie/commands/zm-<id>.md
|
|
10
10
|
* Frontmatter: description
|
|
11
11
|
*/
|
|
12
12
|
export const junieAdapter = {
|
|
13
13
|
toolId: 'junie',
|
|
14
14
|
getFilePath(commandId) {
|
|
15
|
-
return path.join('.junie', 'commands', `
|
|
15
|
+
return path.join('.junie', 'commands', `zm-${commandId}.md`);
|
|
16
16
|
},
|
|
17
17
|
formatFile(content) {
|
|
18
18
|
return `---
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
import type { ToolCommandAdapter } from '../types.js';
|
|
8
8
|
/**
|
|
9
9
|
* Kilo Code adapter for command generation.
|
|
10
|
-
* File path: .kilocode/workflows/
|
|
10
|
+
* File path: .kilocode/workflows/zm-<id>.md
|
|
11
11
|
* Format: Plain markdown without frontmatter
|
|
12
12
|
*/
|
|
13
13
|
export declare const kilocodeAdapter: ToolCommandAdapter;
|
|
@@ -7,13 +7,13 @@
|
|
|
7
7
|
import path from 'path';
|
|
8
8
|
/**
|
|
9
9
|
* Kilo Code adapter for command generation.
|
|
10
|
-
* File path: .kilocode/workflows/
|
|
10
|
+
* File path: .kilocode/workflows/zm-<id>.md
|
|
11
11
|
* Format: Plain markdown without frontmatter
|
|
12
12
|
*/
|
|
13
13
|
export const kilocodeAdapter = {
|
|
14
14
|
toolId: 'kilocode',
|
|
15
15
|
getFilePath(commandId) {
|
|
16
|
-
return path.join('.kilocode', 'workflows', `
|
|
16
|
+
return path.join('.kilocode', 'workflows', `zm-${commandId}.md`);
|
|
17
17
|
},
|
|
18
18
|
formatFile(content) {
|
|
19
19
|
return `${content.body}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import type { ToolCommandAdapter } from '../types.js';
|
|
7
7
|
/**
|
|
8
8
|
* Kiro adapter for command generation.
|
|
9
|
-
* File path: .kiro/prompts/
|
|
9
|
+
* File path: .kiro/prompts/zm-<id>.prompt.md
|
|
10
10
|
* Frontmatter: description
|
|
11
11
|
*/
|
|
12
12
|
export declare const kiroAdapter: ToolCommandAdapter;
|
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
import path from 'path';
|
|
7
7
|
/**
|
|
8
8
|
* Kiro adapter for command generation.
|
|
9
|
-
* File path: .kiro/prompts/
|
|
9
|
+
* File path: .kiro/prompts/zm-<id>.prompt.md
|
|
10
10
|
* Frontmatter: description
|
|
11
11
|
*/
|
|
12
12
|
export const kiroAdapter = {
|
|
13
13
|
toolId: 'kiro',
|
|
14
14
|
getFilePath(commandId) {
|
|
15
|
-
return path.join('.kiro', 'prompts', `
|
|
15
|
+
return path.join('.kiro', 'prompts', `zm-${commandId}.prompt.md`);
|
|
16
16
|
},
|
|
17
17
|
formatFile(content) {
|
|
18
18
|
return `---
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import type { ToolCommandAdapter } from '../types.js';
|
|
7
7
|
/**
|
|
8
8
|
* Lingma adapter for command generation.
|
|
9
|
-
* File path: .lingma/commands/
|
|
9
|
+
* File path: .lingma/commands/zm/<id>.md
|
|
10
10
|
* Frontmatter: name, description, category, tags
|
|
11
11
|
*/
|
|
12
12
|
export declare const lingmaAdapter: ToolCommandAdapter;
|
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
import path from 'path';
|
|
7
7
|
/**
|
|
8
8
|
* Lingma adapter for command generation.
|
|
9
|
-
* File path: .lingma/commands/
|
|
9
|
+
* File path: .lingma/commands/zm/<id>.md
|
|
10
10
|
* Frontmatter: name, description, category, tags
|
|
11
11
|
*/
|
|
12
12
|
export const lingmaAdapter = {
|
|
13
13
|
toolId: 'lingma',
|
|
14
14
|
getFilePath(commandId) {
|
|
15
|
-
return path.join('.lingma', 'commands', '
|
|
15
|
+
return path.join('.lingma', 'commands', 'zm', `${commandId}.md`);
|
|
16
16
|
},
|
|
17
17
|
formatFile(content) {
|
|
18
18
|
const tagsStr = content.tags.join(', ');
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import type { ToolCommandAdapter } from '../types.js';
|
|
7
7
|
/**
|
|
8
8
|
* OpenCode adapter for command generation.
|
|
9
|
-
* File path: .opencode/commands/
|
|
9
|
+
* File path: .opencode/commands/zm-<id>.md
|
|
10
10
|
* Frontmatter: description
|
|
11
11
|
*/
|
|
12
12
|
export declare const opencodeAdapter: ToolCommandAdapter;
|
|
@@ -7,13 +7,13 @@ import path from 'path';
|
|
|
7
7
|
import { transformToHyphenCommands } from '../../../utils/command-references.js';
|
|
8
8
|
/**
|
|
9
9
|
* OpenCode adapter for command generation.
|
|
10
|
-
* File path: .opencode/commands/
|
|
10
|
+
* File path: .opencode/commands/zm-<id>.md
|
|
11
11
|
* Frontmatter: description
|
|
12
12
|
*/
|
|
13
13
|
export const opencodeAdapter = {
|
|
14
14
|
toolId: 'opencode',
|
|
15
15
|
getFilePath(commandId) {
|
|
16
|
-
return path.join('.opencode', 'commands', `
|
|
16
|
+
return path.join('.opencode', 'commands', `zm-${commandId}.md`);
|
|
17
17
|
},
|
|
18
18
|
formatFile(content) {
|
|
19
19
|
// Transform command references from colon to hyphen format for OpenCode
|
|
@@ -7,12 +7,12 @@
|
|
|
7
7
|
import type { ToolCommandAdapter } from '../types.js';
|
|
8
8
|
/**
|
|
9
9
|
* Pi adapter for prompt template generation.
|
|
10
|
-
* File path: .pi/prompts/
|
|
10
|
+
* File path: .pi/prompts/zm-<id>.md
|
|
11
11
|
* Frontmatter: description
|
|
12
12
|
*
|
|
13
13
|
* Pi uses the filename (minus .md) as the slash command name, so
|
|
14
|
-
*
|
|
15
|
-
* are transformed from /zm: to /
|
|
14
|
+
* zm-propose.md → /zm-propose. Command references in the body
|
|
15
|
+
* are transformed from /zm: to /zm- for consistency.
|
|
16
16
|
*/
|
|
17
17
|
export declare const piAdapter: ToolCommandAdapter;
|
|
18
18
|
//# sourceMappingURL=pi.d.ts.map
|
|
@@ -29,20 +29,20 @@ function escapeYamlValue(value) {
|
|
|
29
29
|
}
|
|
30
30
|
/**
|
|
31
31
|
* Pi adapter for prompt template generation.
|
|
32
|
-
* File path: .pi/prompts/
|
|
32
|
+
* File path: .pi/prompts/zm-<id>.md
|
|
33
33
|
* Frontmatter: description
|
|
34
34
|
*
|
|
35
35
|
* Pi uses the filename (minus .md) as the slash command name, so
|
|
36
|
-
*
|
|
37
|
-
* are transformed from /zm: to /
|
|
36
|
+
* zm-propose.md → /zm-propose. Command references in the body
|
|
37
|
+
* are transformed from /zm: to /zm- for consistency.
|
|
38
38
|
*/
|
|
39
39
|
export const piAdapter = {
|
|
40
40
|
toolId: 'pi',
|
|
41
41
|
getFilePath(commandId) {
|
|
42
|
-
return path.join('.pi', 'prompts', `
|
|
42
|
+
return path.join('.pi', 'prompts', `zm-${commandId}.md`);
|
|
43
43
|
},
|
|
44
44
|
formatFile(content) {
|
|
45
|
-
// Transform /zm: references to /
|
|
45
|
+
// Transform /zm: references to /zm- and inject $@ for template args
|
|
46
46
|
const transformedBody = transformToHyphenCommands(content.body);
|
|
47
47
|
return `---
|
|
48
48
|
description: ${escapeYamlValue(content.description)}
|