@ias-ai/zhima-spec 1.3.5 → 1.3.8
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/LICENSE +22 -22
- package/README.md +206 -206
- package/bin/zhima.js +2 -2
- package/dist/commands/feedback.js +6 -6
- package/dist/commands/schema.js +60 -60
- package/dist/core/command-generation/adapters/amazon-q.js +5 -5
- package/dist/core/command-generation/adapters/antigravity.js +5 -5
- package/dist/core/command-generation/adapters/auggie.js +6 -6
- package/dist/core/command-generation/adapters/bob.js +6 -6
- package/dist/core/command-generation/adapters/claude.js +8 -8
- package/dist/core/command-generation/adapters/cline.js +5 -5
- package/dist/core/command-generation/adapters/codebuddy.js +7 -7
- package/dist/core/command-generation/adapters/codex.js +6 -6
- package/dist/core/command-generation/adapters/continue.js +7 -7
- package/dist/core/command-generation/adapters/costrict.js +6 -6
- package/dist/core/command-generation/adapters/crush.js +8 -8
- package/dist/core/command-generation/adapters/cursor.js +8 -8
- package/dist/core/command-generation/adapters/factory.js +6 -6
- package/dist/core/command-generation/adapters/gemini.js +5 -5
- package/dist/core/command-generation/adapters/github-copilot.js +5 -5
- package/dist/core/command-generation/adapters/iflow.js +8 -8
- package/dist/core/command-generation/adapters/junie.js +5 -5
- package/dist/core/command-generation/adapters/kilocode.js +1 -1
- package/dist/core/command-generation/adapters/kiro.js +5 -5
- package/dist/core/command-generation/adapters/lingma.js +8 -8
- package/dist/core/command-generation/adapters/opencode.js +5 -5
- package/dist/core/command-generation/adapters/pi.js +5 -5
- package/dist/core/command-generation/adapters/qoder.js +8 -8
- package/dist/core/command-generation/adapters/qwen.js +5 -5
- package/dist/core/command-generation/adapters/roocode.js +5 -5
- package/dist/core/command-generation/adapters/vjsp.d.ts +1 -1
- package/dist/core/command-generation/adapters/vjsp.js +8 -8
- package/dist/core/command-generation/adapters/windsurf.js +8 -8
- package/dist/core/command-generation/registry.js +2 -0
- package/dist/core/completions/generators/bash-generator.js +41 -41
- package/dist/core/completions/generators/fish-generator.js +7 -7
- package/dist/core/completions/generators/powershell-generator.js +29 -29
- package/dist/core/completions/generators/zsh-generator.js +33 -33
- package/dist/core/completions/templates/bash-templates.js +24 -24
- package/dist/core/completions/templates/fish-templates.js +38 -38
- package/dist/core/completions/templates/powershell-templates.js +28 -28
- package/dist/core/completions/templates/zsh-templates.js +39 -39
- package/dist/core/init.js +2 -2
- package/dist/core/shared/skill-generation.js +12 -12
- package/dist/core/templates/workflows/apply-change.js +294 -294
- package/dist/core/templates/workflows/archive-change.js +257 -257
- package/dist/core/templates/workflows/bulk-archive-change.js +472 -472
- package/dist/core/templates/workflows/continue-change.js +214 -214
- package/dist/core/templates/workflows/explore.js +439 -439
- package/dist/core/templates/workflows/feedback.js +97 -97
- package/dist/core/templates/workflows/ff-change.js +180 -180
- package/dist/core/templates/workflows/new-change.js +123 -123
- package/dist/core/templates/workflows/onboard.js +540 -540
- package/dist/core/templates/workflows/propose.js +198 -198
- package/dist/core/templates/workflows/sync-specs.js +270 -270
- package/dist/core/templates/workflows/verify-change.js +318 -318
- package/dist/core/update.js +1 -1
- package/dist/core/workspace/open-surface.js +11 -11
- package/package.json +18 -20
- package/schemas/spec-driven/schema.yaml +153 -153
- package/schemas/spec-driven/templates/proposal.md +23 -23
|
@@ -35,35 +35,35 @@ export class PowerShellGenerator {
|
|
|
35
35
|
// Dynamic completion helpers from template
|
|
36
36
|
const helpers = POWERSHELL_DYNAMIC_HELPERS;
|
|
37
37
|
// Assemble final script with template literal
|
|
38
|
-
return `# PowerShell completion script for ZhiMa CLI
|
|
39
|
-
# Auto-generated - do not edit manually
|
|
40
|
-
|
|
41
|
-
${helpers}
|
|
42
|
-
$zhimaCompleter = {
|
|
43
|
-
param($wordToComplete, $commandAst, $cursorPosition)
|
|
44
|
-
|
|
45
|
-
$tokens = $commandAst.ToString() -split "\\s+"
|
|
46
|
-
$commandCount = ($tokens | Measure-Object).Count
|
|
47
|
-
|
|
48
|
-
# Top-level commands
|
|
49
|
-
if ($commandCount -eq 1 -or ($commandCount -eq 2 -and $wordToComplete)) {
|
|
50
|
-
$commands = @(
|
|
51
|
-
${topLevelCommands}
|
|
52
|
-
)
|
|
53
|
-
$commands | Where-Object { $_.Name -like "$wordToComplete*" } | ForEach-Object {
|
|
54
|
-
[System.Management.Automation.CompletionResult]::new($_.Name, $_.Name, "ParameterValue", $_.Description)
|
|
55
|
-
}
|
|
56
|
-
return
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
$command = $tokens[1]
|
|
60
|
-
|
|
61
|
-
switch ($command) {
|
|
62
|
-
${commandCases}
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
Register-ArgumentCompleter -CommandName zhima -ScriptBlock $zhimaCompleter
|
|
38
|
+
return `# PowerShell completion script for ZhiMa CLI
|
|
39
|
+
# Auto-generated - do not edit manually
|
|
40
|
+
|
|
41
|
+
${helpers}
|
|
42
|
+
$zhimaCompleter = {
|
|
43
|
+
param($wordToComplete, $commandAst, $cursorPosition)
|
|
44
|
+
|
|
45
|
+
$tokens = $commandAst.ToString() -split "\\s+"
|
|
46
|
+
$commandCount = ($tokens | Measure-Object).Count
|
|
47
|
+
|
|
48
|
+
# Top-level commands
|
|
49
|
+
if ($commandCount -eq 1 -or ($commandCount -eq 2 -and $wordToComplete)) {
|
|
50
|
+
$commands = @(
|
|
51
|
+
${topLevelCommands}
|
|
52
|
+
)
|
|
53
|
+
$commands | Where-Object { $_.Name -like "$wordToComplete*" } | ForEach-Object {
|
|
54
|
+
[System.Management.Automation.CompletionResult]::new($_.Name, $_.Name, "ParameterValue", $_.Description)
|
|
55
|
+
}
|
|
56
|
+
return
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
$command = $tokens[1]
|
|
60
|
+
|
|
61
|
+
switch ($command) {
|
|
62
|
+
${commandCases}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
Register-ArgumentCompleter -CommandName zhima -ScriptBlock $zhimaCompleter
|
|
67
67
|
`;
|
|
68
68
|
}
|
|
69
69
|
/**
|
|
@@ -37,39 +37,39 @@ export class ZshGenerator {
|
|
|
37
37
|
// Dynamic completion helpers from template
|
|
38
38
|
const helpers = ZSH_DYNAMIC_HELPERS;
|
|
39
39
|
// Assemble final script with template literal
|
|
40
|
-
return `#compdef zhima
|
|
41
|
-
|
|
42
|
-
# Zsh completion script for ZhiMa CLI
|
|
43
|
-
# Auto-generated - do not edit manually
|
|
44
|
-
|
|
45
|
-
_zhima() {
|
|
46
|
-
local context state line
|
|
47
|
-
typeset -A opt_args
|
|
48
|
-
|
|
49
|
-
local -a commands
|
|
50
|
-
commands=(
|
|
51
|
-
${commandList}
|
|
52
|
-
)
|
|
53
|
-
|
|
54
|
-
_arguments -C \\
|
|
55
|
-
"1: :->command" \\
|
|
56
|
-
"*::arg:->args"
|
|
57
|
-
|
|
58
|
-
case $state in
|
|
59
|
-
command)
|
|
60
|
-
_describe "zhima command" commands
|
|
61
|
-
;;
|
|
62
|
-
args)
|
|
63
|
-
case $words[1] in
|
|
64
|
-
${commandCases}
|
|
65
|
-
esac
|
|
66
|
-
;;
|
|
67
|
-
esac
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
${commandFunctions}
|
|
71
|
-
${helpers}
|
|
72
|
-
compdef _zhima zhima
|
|
40
|
+
return `#compdef zhima
|
|
41
|
+
|
|
42
|
+
# Zsh completion script for ZhiMa CLI
|
|
43
|
+
# Auto-generated - do not edit manually
|
|
44
|
+
|
|
45
|
+
_zhima() {
|
|
46
|
+
local context state line
|
|
47
|
+
typeset -A opt_args
|
|
48
|
+
|
|
49
|
+
local -a commands
|
|
50
|
+
commands=(
|
|
51
|
+
${commandList}
|
|
52
|
+
)
|
|
53
|
+
|
|
54
|
+
_arguments -C \\
|
|
55
|
+
"1: :->command" \\
|
|
56
|
+
"*::arg:->args"
|
|
57
|
+
|
|
58
|
+
case $state in
|
|
59
|
+
command)
|
|
60
|
+
_describe "zhima command" commands
|
|
61
|
+
;;
|
|
62
|
+
args)
|
|
63
|
+
case $words[1] in
|
|
64
|
+
${commandCases}
|
|
65
|
+
esac
|
|
66
|
+
;;
|
|
67
|
+
esac
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
${commandFunctions}
|
|
71
|
+
${helpers}
|
|
72
|
+
compdef _zhima zhima
|
|
73
73
|
`;
|
|
74
74
|
}
|
|
75
75
|
/**
|
|
@@ -2,29 +2,29 @@
|
|
|
2
2
|
* Static template strings for Bash completion scripts.
|
|
3
3
|
* These are Bash-specific helper functions that never change.
|
|
4
4
|
*/
|
|
5
|
-
export const BASH_DYNAMIC_HELPERS = `# Dynamic completion helpers
|
|
6
|
-
|
|
7
|
-
_zhima_complete_changes() {
|
|
8
|
-
local changes
|
|
9
|
-
changes=$(zhima __complete changes 2>/dev/null | cut -f1)
|
|
10
|
-
COMPREPLY=($(compgen -W "$changes" -- "$cur"))
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
_zhima_complete_specs() {
|
|
14
|
-
local specs
|
|
15
|
-
specs=$(zhima __complete specs 2>/dev/null | cut -f1)
|
|
16
|
-
COMPREPLY=($(compgen -W "$specs" -- "$cur"))
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
_zhima_complete_items() {
|
|
20
|
-
local items
|
|
21
|
-
items=$(zhima __complete changes 2>/dev/null | cut -f1; zhima __complete specs 2>/dev/null | cut -f1)
|
|
22
|
-
COMPREPLY=($(compgen -W "$items" -- "$cur"))
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
_zhima_complete_schemas() {
|
|
26
|
-
local schemas
|
|
27
|
-
schemas=$(zhima __complete schemas 2>/dev/null | cut -f1)
|
|
28
|
-
COMPREPLY=($(compgen -W "$schemas" -- "$cur"))
|
|
5
|
+
export const BASH_DYNAMIC_HELPERS = `# Dynamic completion helpers
|
|
6
|
+
|
|
7
|
+
_zhima_complete_changes() {
|
|
8
|
+
local changes
|
|
9
|
+
changes=$(zhima __complete changes 2>/dev/null | cut -f1)
|
|
10
|
+
COMPREPLY=($(compgen -W "$changes" -- "$cur"))
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
_zhima_complete_specs() {
|
|
14
|
+
local specs
|
|
15
|
+
specs=$(zhima __complete specs 2>/dev/null | cut -f1)
|
|
16
|
+
COMPREPLY=($(compgen -W "$specs" -- "$cur"))
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
_zhima_complete_items() {
|
|
20
|
+
local items
|
|
21
|
+
items=$(zhima __complete changes 2>/dev/null | cut -f1; zhima __complete specs 2>/dev/null | cut -f1)
|
|
22
|
+
COMPREPLY=($(compgen -W "$items" -- "$cur"))
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
_zhima_complete_schemas() {
|
|
26
|
+
local schemas
|
|
27
|
+
schemas=$(zhima __complete schemas 2>/dev/null | cut -f1)
|
|
28
|
+
COMPREPLY=($(compgen -W "$schemas" -- "$cur"))
|
|
29
29
|
}`;
|
|
30
30
|
//# sourceMappingURL=bash-templates.js.map
|
|
@@ -2,44 +2,44 @@
|
|
|
2
2
|
* Static template strings for Fish completion scripts.
|
|
3
3
|
* These are Fish-specific helper functions that never change.
|
|
4
4
|
*/
|
|
5
|
-
export const FISH_STATIC_HELPERS = `# Helper function to check if a subcommand is present
|
|
6
|
-
function __fish_zhima_using_subcommand
|
|
7
|
-
set -l cmd (commandline -opc)
|
|
8
|
-
set -e cmd[1]
|
|
9
|
-
for i in $argv
|
|
10
|
-
if contains -- $i $cmd
|
|
11
|
-
return 0
|
|
12
|
-
end
|
|
13
|
-
end
|
|
14
|
-
return 1
|
|
15
|
-
end
|
|
16
|
-
|
|
17
|
-
function __fish_zhima_no_subcommand
|
|
18
|
-
set -l cmd (commandline -opc)
|
|
19
|
-
test (count $cmd) -eq 1
|
|
5
|
+
export const FISH_STATIC_HELPERS = `# Helper function to check if a subcommand is present
|
|
6
|
+
function __fish_zhima_using_subcommand
|
|
7
|
+
set -l cmd (commandline -opc)
|
|
8
|
+
set -e cmd[1]
|
|
9
|
+
for i in $argv
|
|
10
|
+
if contains -- $i $cmd
|
|
11
|
+
return 0
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
return 1
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
function __fish_zhima_no_subcommand
|
|
18
|
+
set -l cmd (commandline -opc)
|
|
19
|
+
test (count $cmd) -eq 1
|
|
20
20
|
end`;
|
|
21
|
-
export const FISH_DYNAMIC_HELPERS = `# Dynamic completion helpers
|
|
22
|
-
|
|
23
|
-
function __fish_zhima_changes
|
|
24
|
-
zhima __complete changes 2>/dev/null | while read -l id desc
|
|
25
|
-
printf '%s\\t%s\\n' "$id" "$desc"
|
|
26
|
-
end
|
|
27
|
-
end
|
|
28
|
-
|
|
29
|
-
function __fish_zhima_specs
|
|
30
|
-
zhima __complete specs 2>/dev/null | while read -l id desc
|
|
31
|
-
printf '%s\\t%s\\n' "$id" "$desc"
|
|
32
|
-
end
|
|
33
|
-
end
|
|
34
|
-
|
|
35
|
-
function __fish_zhima_items
|
|
36
|
-
__fish_zhima_changes
|
|
37
|
-
__fish_zhima_specs
|
|
38
|
-
end
|
|
39
|
-
|
|
40
|
-
function __fish_zhima_schemas
|
|
41
|
-
zhima __complete schemas 2>/dev/null | while read -l id desc
|
|
42
|
-
printf '%s\\t%s\\n' "$id" "$desc"
|
|
43
|
-
end
|
|
21
|
+
export const FISH_DYNAMIC_HELPERS = `# Dynamic completion helpers
|
|
22
|
+
|
|
23
|
+
function __fish_zhima_changes
|
|
24
|
+
zhima __complete changes 2>/dev/null | while read -l id desc
|
|
25
|
+
printf '%s\\t%s\\n' "$id" "$desc"
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
function __fish_zhima_specs
|
|
30
|
+
zhima __complete specs 2>/dev/null | while read -l id desc
|
|
31
|
+
printf '%s\\t%s\\n' "$id" "$desc"
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
function __fish_zhima_items
|
|
36
|
+
__fish_zhima_changes
|
|
37
|
+
__fish_zhima_specs
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
function __fish_zhima_schemas
|
|
41
|
+
zhima __complete schemas 2>/dev/null | while read -l id desc
|
|
42
|
+
printf '%s\\t%s\\n' "$id" "$desc"
|
|
43
|
+
end
|
|
44
44
|
end`;
|
|
45
45
|
//# sourceMappingURL=fish-templates.js.map
|
|
@@ -2,33 +2,33 @@
|
|
|
2
2
|
* Static template strings for PowerShell completion scripts.
|
|
3
3
|
* These are PowerShell-specific helper functions that never change.
|
|
4
4
|
*/
|
|
5
|
-
export const POWERSHELL_DYNAMIC_HELPERS = `# Dynamic completion helpers
|
|
6
|
-
|
|
7
|
-
function Get-ZhiMaChanges {
|
|
8
|
-
$output = zhima __complete changes 2>$null
|
|
9
|
-
if ($output) {
|
|
10
|
-
$output | ForEach-Object {
|
|
11
|
-
($_ -split "\\t")[0]
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
function Get-ZhiMaSpecs {
|
|
17
|
-
$output = zhima __complete specs 2>$null
|
|
18
|
-
if ($output) {
|
|
19
|
-
$output | ForEach-Object {
|
|
20
|
-
($_ -split "\\t")[0]
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
function Get-ZhiMaSchemas {
|
|
26
|
-
$output = zhima __complete schemas 2>$null
|
|
27
|
-
if ($output) {
|
|
28
|
-
$output | ForEach-Object {
|
|
29
|
-
($_ -split "\\t")[0]
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}
|
|
5
|
+
export const POWERSHELL_DYNAMIC_HELPERS = `# Dynamic completion helpers
|
|
6
|
+
|
|
7
|
+
function Get-ZhiMaChanges {
|
|
8
|
+
$output = zhima __complete changes 2>$null
|
|
9
|
+
if ($output) {
|
|
10
|
+
$output | ForEach-Object {
|
|
11
|
+
($_ -split "\\t")[0]
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
function Get-ZhiMaSpecs {
|
|
17
|
+
$output = zhima __complete specs 2>$null
|
|
18
|
+
if ($output) {
|
|
19
|
+
$output | ForEach-Object {
|
|
20
|
+
($_ -split "\\t")[0]
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
function Get-ZhiMaSchemas {
|
|
26
|
+
$output = zhima __complete schemas 2>$null
|
|
27
|
+
if ($output) {
|
|
28
|
+
$output | ForEach-Object {
|
|
29
|
+
($_ -split "\\t")[0]
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
33
|
`;
|
|
34
34
|
//# sourceMappingURL=powershell-templates.js.map
|
|
@@ -2,44 +2,44 @@
|
|
|
2
2
|
* Static template strings for Zsh completion scripts.
|
|
3
3
|
* These are Zsh-specific helper functions that never change.
|
|
4
4
|
*/
|
|
5
|
-
export const ZSH_DYNAMIC_HELPERS = `# Dynamic completion helpers
|
|
6
|
-
|
|
7
|
-
# Use zhima __complete to get available changes
|
|
8
|
-
_zhima_complete_changes() {
|
|
9
|
-
local -a changes
|
|
10
|
-
while IFS=$'\\t' read -r id desc; do
|
|
11
|
-
changes+=("$id:$desc")
|
|
12
|
-
done < <(zhima __complete changes 2>/dev/null)
|
|
13
|
-
_describe "change" changes
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
# Use zhima __complete to get available specs
|
|
17
|
-
_zhima_complete_specs() {
|
|
18
|
-
local -a specs
|
|
19
|
-
while IFS=$'\\t' read -r id desc; do
|
|
20
|
-
specs+=("$id:$desc")
|
|
21
|
-
done < <(zhima __complete specs 2>/dev/null)
|
|
22
|
-
_describe "spec" specs
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
# Get both changes and specs
|
|
26
|
-
_zhima_complete_items() {
|
|
27
|
-
local -a items
|
|
28
|
-
while IFS=$'\\t' read -r id desc; do
|
|
29
|
-
items+=("$id:$desc")
|
|
30
|
-
done < <(zhima __complete changes 2>/dev/null)
|
|
31
|
-
while IFS=$'\\t' read -r id desc; do
|
|
32
|
-
items+=("$id:$desc")
|
|
33
|
-
done < <(zhima __complete specs 2>/dev/null)
|
|
34
|
-
_describe "item" items
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
# Use zhima __complete to get available schemas
|
|
38
|
-
_zhima_complete_schemas() {
|
|
39
|
-
local -a schemas
|
|
40
|
-
while IFS=$'\\t' read -r id desc; do
|
|
41
|
-
schemas+=("$id:$desc")
|
|
42
|
-
done < <(zhima __complete schemas 2>/dev/null)
|
|
43
|
-
_describe "schema" schemas
|
|
5
|
+
export const ZSH_DYNAMIC_HELPERS = `# Dynamic completion helpers
|
|
6
|
+
|
|
7
|
+
# Use zhima __complete to get available changes
|
|
8
|
+
_zhima_complete_changes() {
|
|
9
|
+
local -a changes
|
|
10
|
+
while IFS=$'\\t' read -r id desc; do
|
|
11
|
+
changes+=("$id:$desc")
|
|
12
|
+
done < <(zhima __complete changes 2>/dev/null)
|
|
13
|
+
_describe "change" changes
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
# Use zhima __complete to get available specs
|
|
17
|
+
_zhima_complete_specs() {
|
|
18
|
+
local -a specs
|
|
19
|
+
while IFS=$'\\t' read -r id desc; do
|
|
20
|
+
specs+=("$id:$desc")
|
|
21
|
+
done < <(zhima __complete specs 2>/dev/null)
|
|
22
|
+
_describe "spec" specs
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
# Get both changes and specs
|
|
26
|
+
_zhima_complete_items() {
|
|
27
|
+
local -a items
|
|
28
|
+
while IFS=$'\\t' read -r id desc; do
|
|
29
|
+
items+=("$id:$desc")
|
|
30
|
+
done < <(zhima __complete changes 2>/dev/null)
|
|
31
|
+
while IFS=$'\\t' read -r id desc; do
|
|
32
|
+
items+=("$id:$desc")
|
|
33
|
+
done < <(zhima __complete specs 2>/dev/null)
|
|
34
|
+
_describe "item" items
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
# Use zhima __complete to get available schemas
|
|
38
|
+
_zhima_complete_schemas() {
|
|
39
|
+
local -a schemas
|
|
40
|
+
while IFS=$'\\t' read -r id desc; do
|
|
41
|
+
schemas+=("$id:$desc")
|
|
42
|
+
done < <(zhima __complete schemas 2>/dev/null)
|
|
43
|
+
_describe "schema" schemas
|
|
44
44
|
}`;
|
|
45
45
|
//# sourceMappingURL=zsh-templates.js.map
|
package/dist/core/init.js
CHANGED
|
@@ -533,8 +533,8 @@ export class InitCommand {
|
|
|
533
533
|
}
|
|
534
534
|
// Links
|
|
535
535
|
console.log();
|
|
536
|
-
console.log(`Learn more: ${chalk.cyan('https://
|
|
537
|
-
console.log(`Feedback: ${chalk.cyan('https://
|
|
536
|
+
console.log(`Learn more: ${chalk.cyan('https://gitlab.oneberry.cc:2083/zhima-agent/ias-workflow')}`);
|
|
537
|
+
console.log(`Feedback: ${chalk.cyan('https://gitlab.oneberry.cc:2083/zhima-agent/ias-workflow/issues')}`);
|
|
538
538
|
// Restart instruction if any tools were configured
|
|
539
539
|
if (results.createdTools.length > 0 || results.refreshedTools.length > 0) {
|
|
540
540
|
console.log();
|
|
@@ -79,18 +79,18 @@ export function generateSkillContent(template, generatedByVersion, transformInst
|
|
|
79
79
|
const instructions = transformInstructions
|
|
80
80
|
? transformInstructions(template.instructions)
|
|
81
81
|
: template.instructions;
|
|
82
|
-
return `---
|
|
83
|
-
name: ${template.name}
|
|
84
|
-
description: ${template.description}
|
|
85
|
-
license: ${template.license || 'MIT'}
|
|
86
|
-
compatibility: ${template.compatibility || 'Requires zhima CLI.'}
|
|
87
|
-
metadata:
|
|
88
|
-
author: ${template.metadata?.author || 'zhima'}
|
|
89
|
-
version: "${template.metadata?.version || '1.0'}"
|
|
90
|
-
generatedBy: "${generatedByVersion}"
|
|
91
|
-
---
|
|
92
|
-
|
|
93
|
-
${instructions}
|
|
82
|
+
return `---
|
|
83
|
+
name: ${template.name}
|
|
84
|
+
description: ${template.description}
|
|
85
|
+
license: ${template.license || 'MIT'}
|
|
86
|
+
compatibility: ${template.compatibility || 'Requires zhima CLI.'}
|
|
87
|
+
metadata:
|
|
88
|
+
author: ${template.metadata?.author || 'zhima'}
|
|
89
|
+
version: "${template.metadata?.version || '1.0'}"
|
|
90
|
+
generatedBy: "${generatedByVersion}"
|
|
91
|
+
---
|
|
92
|
+
|
|
93
|
+
${instructions}
|
|
94
94
|
`;
|
|
95
95
|
}
|
|
96
96
|
//# sourceMappingURL=skill-generation.js.map
|