@dynamicworks/br-openspec 1.3.1 → 2.0.0

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.
Files changed (59) hide show
  1. package/LICENSE +22 -22
  2. package/README.md +210 -210
  3. package/README.pt-BR.md +212 -212
  4. package/bin/openspec.js +2 -2
  5. package/dist/commands/feedback.js +4 -4
  6. package/dist/commands/schema.js +60 -60
  7. package/dist/core/command-generation/adapters/amazon-q.js +5 -5
  8. package/dist/core/command-generation/adapters/antigravity.js +5 -5
  9. package/dist/core/command-generation/adapters/auggie.js +6 -6
  10. package/dist/core/command-generation/adapters/bob.js +6 -6
  11. package/dist/core/command-generation/adapters/claude.js +8 -8
  12. package/dist/core/command-generation/adapters/cline.js +5 -5
  13. package/dist/core/command-generation/adapters/codebuddy.js +7 -7
  14. package/dist/core/command-generation/adapters/codex.js +6 -6
  15. package/dist/core/command-generation/adapters/continue.js +7 -7
  16. package/dist/core/command-generation/adapters/costrict.js +6 -6
  17. package/dist/core/command-generation/adapters/crush.js +8 -8
  18. package/dist/core/command-generation/adapters/cursor.js +8 -8
  19. package/dist/core/command-generation/adapters/factory.js +6 -6
  20. package/dist/core/command-generation/adapters/gemini.js +5 -5
  21. package/dist/core/command-generation/adapters/github-copilot.js +5 -5
  22. package/dist/core/command-generation/adapters/iflow.js +8 -8
  23. package/dist/core/command-generation/adapters/junie.js +5 -5
  24. package/dist/core/command-generation/adapters/kilocode.js +1 -1
  25. package/dist/core/command-generation/adapters/kiro.js +5 -5
  26. package/dist/core/command-generation/adapters/lingma.js +8 -8
  27. package/dist/core/command-generation/adapters/opencode.js +5 -5
  28. package/dist/core/command-generation/adapters/pi.js +5 -5
  29. package/dist/core/command-generation/adapters/qoder.js +8 -8
  30. package/dist/core/command-generation/adapters/qwen.js +5 -5
  31. package/dist/core/command-generation/adapters/roocode.js +5 -5
  32. package/dist/core/command-generation/adapters/windsurf.js +8 -8
  33. package/dist/core/completions/generators/bash-generator.js +41 -41
  34. package/dist/core/completions/generators/fish-generator.js +7 -7
  35. package/dist/core/completions/generators/powershell-generator.js +29 -29
  36. package/dist/core/completions/generators/zsh-generator.js +33 -33
  37. package/dist/core/completions/templates/bash-templates.js +18 -18
  38. package/dist/core/completions/templates/fish-templates.js +32 -32
  39. package/dist/core/completions/templates/powershell-templates.js +19 -19
  40. package/dist/core/completions/templates/zsh-templates.js +30 -30
  41. package/dist/core/shared/skill-generation.js +12 -12
  42. package/dist/core/templates/workflows/apply-change.js +288 -288
  43. package/dist/core/templates/workflows/archive-change.js +251 -251
  44. package/dist/core/templates/workflows/bulk-archive-change.js +472 -472
  45. package/dist/core/templates/workflows/continue-change.js +212 -212
  46. package/dist/core/templates/workflows/explore.js +443 -443
  47. package/dist/core/templates/workflows/feedback.js +97 -97
  48. package/dist/core/templates/workflows/ff-change.js +178 -178
  49. package/dist/core/templates/workflows/propose.js +196 -196
  50. package/dist/core/templates/workflows/sync-specs.js +252 -252
  51. package/dist/core/templates/workflows/upstream-sync.js +93 -93
  52. package/dist/messages/index.js +977 -977
  53. package/package.json +82 -84
  54. package/schemas/spec-driven/schema.yaml +153 -153
  55. package/schemas/spec-driven/templates/design.md +19 -19
  56. package/schemas/spec-driven/templates/proposal.md +23 -23
  57. package/schemas/spec-driven/templates/spec.md +8 -8
  58. package/schemas/spec-driven/templates/tasks.md +9 -9
  59. package/scripts/postinstall.js +83 -83
@@ -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 openspec
41
-
42
- # Zsh completion script for BR-OpenSpec CLI
43
- # Auto-generated - do not edit manually
44
-
45
- _openspec() {
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 "openspec 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 _openspec openspec
40
+ return `#compdef openspec
41
+
42
+ # Zsh completion script for BR-OpenSpec CLI
43
+ # Auto-generated - do not edit manually
44
+
45
+ _openspec() {
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 "openspec 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 _openspec openspec
73
73
  `;
74
74
  }
75
75
  /**
@@ -2,23 +2,23 @@
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
- _openspec_complete_changes() {
8
- local changes
9
- changes=$(openspec __complete changes 2>/dev/null | cut -f1)
10
- COMPREPLY=($(compgen -W "$changes" -- "$cur"))
11
- }
12
-
13
- _openspec_complete_specs() {
14
- local specs
15
- specs=$(openspec __complete specs 2>/dev/null | cut -f1)
16
- COMPREPLY=($(compgen -W "$specs" -- "$cur"))
17
- }
18
-
19
- _openspec_complete_items() {
20
- local items
21
- items=$(openspec __complete changes 2>/dev/null | cut -f1; openspec __complete specs 2>/dev/null | cut -f1)
22
- COMPREPLY=($(compgen -W "$items" -- "$cur"))
5
+ export const BASH_DYNAMIC_HELPERS = `# Dynamic completion helpers
6
+
7
+ _openspec_complete_changes() {
8
+ local changes
9
+ changes=$(openspec __complete changes 2>/dev/null | cut -f1)
10
+ COMPREPLY=($(compgen -W "$changes" -- "$cur"))
11
+ }
12
+
13
+ _openspec_complete_specs() {
14
+ local specs
15
+ specs=$(openspec __complete specs 2>/dev/null | cut -f1)
16
+ COMPREPLY=($(compgen -W "$specs" -- "$cur"))
17
+ }
18
+
19
+ _openspec_complete_items() {
20
+ local items
21
+ items=$(openspec __complete changes 2>/dev/null | cut -f1; openspec __complete specs 2>/dev/null | cut -f1)
22
+ COMPREPLY=($(compgen -W "$items" -- "$cur"))
23
23
  }`;
24
24
  //# sourceMappingURL=bash-templates.js.map
@@ -2,38 +2,38 @@
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_openspec_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_openspec_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_openspec_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_openspec_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_openspec_changes
24
- openspec __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_openspec_specs
30
- openspec __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_openspec_items
36
- __fish_openspec_changes
37
- __fish_openspec_specs
21
+ export const FISH_DYNAMIC_HELPERS = `# Dynamic completion helpers
22
+
23
+ function __fish_openspec_changes
24
+ openspec __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_openspec_specs
30
+ openspec __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_openspec_items
36
+ __fish_openspec_changes
37
+ __fish_openspec_specs
38
38
  end`;
39
39
  //# sourceMappingURL=fish-templates.js.map
@@ -2,24 +2,24 @@
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-BROpenSpecChanges {
8
- $output = openspec __complete changes 2>$null
9
- if ($output) {
10
- $output | ForEach-Object {
11
- ($_ -split "\\t")[0]
12
- }
13
- }
14
- }
15
-
16
- function Get-BROpenSpecSpecs {
17
- $output = openspec __complete specs 2>$null
18
- if ($output) {
19
- $output | ForEach-Object {
20
- ($_ -split "\\t")[0]
21
- }
22
- }
23
- }
5
+ export const POWERSHELL_DYNAMIC_HELPERS = `# Dynamic completion helpers
6
+
7
+ function Get-BROpenSpecChanges {
8
+ $output = openspec __complete changes 2>$null
9
+ if ($output) {
10
+ $output | ForEach-Object {
11
+ ($_ -split "\\t")[0]
12
+ }
13
+ }
14
+ }
15
+
16
+ function Get-BROpenSpecSpecs {
17
+ $output = openspec __complete specs 2>$null
18
+ if ($output) {
19
+ $output | ForEach-Object {
20
+ ($_ -split "\\t")[0]
21
+ }
22
+ }
23
+ }
24
24
  `;
25
25
  //# sourceMappingURL=powershell-templates.js.map
@@ -2,35 +2,35 @@
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 openspec __complete to get available changes
8
- _openspec_complete_changes() {
9
- local -a changes
10
- while IFS=$'\\t' read -r id desc; do
11
- changes+=("$id:$desc")
12
- done < <(openspec __complete changes 2>/dev/null)
13
- _describe "change" changes
14
- }
15
-
16
- # Use openspec __complete to get available specs
17
- _openspec_complete_specs() {
18
- local -a specs
19
- while IFS=$'\\t' read -r id desc; do
20
- specs+=("$id:$desc")
21
- done < <(openspec __complete specs 2>/dev/null)
22
- _describe "spec" specs
23
- }
24
-
25
- # Get both changes and specs
26
- _openspec_complete_items() {
27
- local -a items
28
- while IFS=$'\\t' read -r id desc; do
29
- items+=("$id:$desc")
30
- done < <(openspec __complete changes 2>/dev/null)
31
- while IFS=$'\\t' read -r id desc; do
32
- items+=("$id:$desc")
33
- done < <(openspec __complete specs 2>/dev/null)
34
- _describe "item" items
5
+ export const ZSH_DYNAMIC_HELPERS = `# Dynamic completion helpers
6
+
7
+ # Use openspec __complete to get available changes
8
+ _openspec_complete_changes() {
9
+ local -a changes
10
+ while IFS=$'\\t' read -r id desc; do
11
+ changes+=("$id:$desc")
12
+ done < <(openspec __complete changes 2>/dev/null)
13
+ _describe "change" changes
14
+ }
15
+
16
+ # Use openspec __complete to get available specs
17
+ _openspec_complete_specs() {
18
+ local -a specs
19
+ while IFS=$'\\t' read -r id desc; do
20
+ specs+=("$id:$desc")
21
+ done < <(openspec __complete specs 2>/dev/null)
22
+ _describe "spec" specs
23
+ }
24
+
25
+ # Get both changes and specs
26
+ _openspec_complete_items() {
27
+ local -a items
28
+ while IFS=$'\\t' read -r id desc; do
29
+ items+=("$id:$desc")
30
+ done < <(openspec __complete changes 2>/dev/null)
31
+ while IFS=$'\\t' read -r id desc; do
32
+ items+=("$id:$desc")
33
+ done < <(openspec __complete specs 2>/dev/null)
34
+ _describe "item" items
35
35
  }`;
36
36
  //# sourceMappingURL=zsh-templates.js.map
@@ -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 openspec CLI.'}
87
- metadata:
88
- author: ${template.metadata?.author || 'openspec'}
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 openspec CLI.'}
87
+ metadata:
88
+ author: ${template.metadata?.author || 'openspec'}
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