@dedesfr/prompter 0.5.0 → 0.5.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,127 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## [0.5.1] - 2026-01-22
4
+
5
+ ### ✨ Added
6
+ - **Upgrade Command**: New command for self-updating Prompter
7
+ - Run `prompter upgrade` to update to the latest version
8
+ - Automatically executes `npm install -g @dedesfr/prompter@latest`
9
+ - Cross-platform support (Windows, macOS, Linux)
10
+ - Clear success/error feedback
11
+ - Fallback instructions if upgrade fails
12
+
13
+ ## [0.5.0] - 2026-01-22
14
+
15
+ ### ✨ Added
16
+ - **Prompt Installation & Management**: New system for installing and managing workflow prompts
17
+ - Install prompts from templates
18
+ - Manage existing prompt workflows
19
+ - Centralized prompt management system
20
+
21
+ ## [0.4.3] - 2026-01-22
22
+
23
+ ### ✨ Added
24
+ - **PRD Agent Generator**: New command and workflow support
25
+ - Generate PRD (Product Requirements Document) agents
26
+ - Automated workflow creation for PRD generation
27
+ - Integration with AI tools for PRD creation
28
+
29
+ ## [0.4.2] - 2026-01-21
30
+
31
+ ### ✨ Added
32
+ - **AI Humanizer**: New command and workflow support
33
+ - Humanize AI-generated content
34
+ - Make AI text more natural and conversational
35
+ - Workflow integration for content improvement
36
+
37
+ ## [0.4.1] - 2026-01-21
38
+
39
+ ### 🔄 Changed
40
+ - **Enhanced Product Brief Template**: Comprehensive structure improvements
41
+ - More detailed product brief sections
42
+ - Better organization and clarity
43
+ - Improved guidance for product documentation
44
+
45
+ ## [0.4.0] - 2026-01-21
46
+
47
+ ### ✨ Added
48
+ - **Product Brief Command**: New workflow support for product documentation
49
+ - Generate product briefs using AI workflows
50
+ - Structured product documentation templates
51
+ - Integration with AI coding tools
52
+
53
+ ## [0.3.9] - 2026-01-21
54
+
55
+ ### ✨ Added
56
+ - **ASCII Art Banner**: Welcome message during initial setup
57
+ - Visual branding during `prompter init`
58
+ - Improved first-run experience
59
+
60
+ ## [0.3.8] - 2026-01-21
61
+
62
+ ### ✨ Added
63
+ - **Guide Command**: New command for documentation and help
64
+ - Interactive guide for using Prompter
65
+ - Documentation assistance
66
+ - Usage examples and tips
67
+
68
+ ## [0.3.7] - 2026-01-21
69
+
70
+ ### ✨ Added
71
+ - **Skill Creator Command**: New workflow for creating skills
72
+ - Generate skill definitions
73
+ - Workflow files for skill creation
74
+ - Integration with AI tools for skill development
75
+
76
+ ## [0.3.6] - 2026-01-20
77
+
78
+ ### 🔧 Technical
79
+ - CLI version synchronization with package version
80
+ - Improved version consistency across the codebase
81
+
82
+ ## [0.3.5] - 2026-01-20
83
+
84
+ ### 🐛 Fixed
85
+ - Updated CLI version display to match package version
86
+
87
+ ## [0.3.4] - 2026-01-20
88
+
89
+ ### 🔄 Changed
90
+ - Improved next steps message for `project.md` clarity
91
+ - Enhanced project template with structured sections
92
+
93
+ ## [0.3.3] - 2026-01-20
94
+
95
+ ### 🐛 Fixed
96
+ - **GitHub Copilot Format**: Corrected workflow file format
97
+ - Use `.prompt.md` extension instead of `.md`
98
+ - Add `$ARGUMENTS` placeholder after frontmatter
99
+ - Fixed `$ARGUMENTS` position in template
100
+
101
+ ## [0.3.2] - 2026-01-19
102
+
103
+ ### 🐛 Fixed
104
+ - **Update Command Enhancement**: Now detects configured tools automatically
105
+ - Adds missing workflow files during update
106
+ - Intelligent tool detection from existing workflows
107
+
108
+ ## [0.3.1] - 2026-01-19
109
+
110
+ ### 🐛 Fixed
111
+ - **Re-init Support**: Ensure missing workflow files are added during re-initialization
112
+ - Automatically detect and create missing workflows
113
+ - Safe re-initialization without data loss
114
+
115
+ ## [0.3.0] - 2026-01-19
116
+
117
+ ### ✨ Added
118
+ - **New Workflows**: Added support for multiple project management workflows
119
+ - PRD (Product Requirements Document) workflow
120
+ - Epic workflow for large features
121
+ - Story workflow for user stories
122
+ - QA test scenario workflow
123
+ - Comprehensive project planning support
124
+
3
125
  ## [0.2.0] - 2026-01-19
4
126
 
5
127
  ### ✨ Added
package/dist/cli/index.js CHANGED
@@ -3,11 +3,12 @@ import { InitCommand } from '../commands/init.js';
3
3
  import { UpdateCommand } from '../commands/update.js';
4
4
  import { ListCommand } from '../commands/list.js';
5
5
  import { GuideCommand } from '../commands/guide.js';
6
+ import { UpgradeCommand } from '../commands/upgrade.js';
6
7
  const program = new Command();
7
8
  program
8
9
  .name('prompter')
9
10
  .description('Enhance prompts directly in your AI coding workflow')
10
- .version('0.5.0');
11
+ .version('0.5.1');
11
12
  program
12
13
  .command('init')
13
14
  .description('Initialize Prompter in your project')
@@ -40,5 +41,12 @@ program
40
41
  const guideCommand = new GuideCommand();
41
42
  await guideCommand.execute();
42
43
  });
44
+ program
45
+ .command('upgrade')
46
+ .description('Upgrade Prompter to the latest version')
47
+ .action(async () => {
48
+ const upgradeCommand = new UpgradeCommand();
49
+ await upgradeCommand.execute();
50
+ });
43
51
  program.parse();
44
52
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/cli/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEpD,MAAM,OAAO,GAAG,IAAI,OAAO,EAAE,CAAC;AAE9B,OAAO;KACF,IAAI,CAAC,UAAU,CAAC;KAChB,WAAW,CAAC,qDAAqD,CAAC;KAClE,OAAO,CAAC,OAAO,CAAC,CAAC;AAEtB,OAAO;KACF,OAAO,CAAC,MAAM,CAAC;KACf,WAAW,CAAC,qCAAqC,CAAC;KAClD,MAAM,CAAC,oBAAoB,EAAE,gGAAgG,CAAC;KAC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vC,CAAC,CAAC,CAAC;AAEP,OAAO;KACF,OAAO,CAAC,OAAO,CAAC;KAChB,WAAW,CAAC,+BAA+B,CAAC;KAC5C,MAAM,CAAC,KAAK,IAAI,EAAE;IACf,MAAM,YAAY,GAAG,IAAI,YAAY,EAAE,CAAC;IACxC,MAAM,YAAY,CAAC,OAAO,EAAE,CAAC;AACjC,CAAC,CAAC,CAAC;AAEP,OAAO;KACF,OAAO,CAAC,SAAS,CAAC;KAClB,WAAW,CAAC,wCAAwC,CAAC;KACrD,MAAM,CAAC,KAAK,IAAI,EAAE;IACf,MAAM,cAAc,GAAG,IAAI,cAAc,EAAE,CAAC;IAC5C,MAAM,cAAc,CAAC,OAAO,EAAE,CAAC;AACnC,CAAC,CAAC,CAAC;AAEP,OAAO,CAAC,KAAK,EAAE,CAAC"}
@@ -0,0 +1,4 @@
1
+ export declare class UpgradeCommand {
2
+ execute(): Promise<void>;
3
+ }
4
+ //# sourceMappingURL=upgrade.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"upgrade.d.ts","sourceRoot":"","sources":["../../src/commands/upgrade.ts"],"names":[],"mappings":"AAGA,qBAAa,cAAc;IACjB,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;CAyBjC"}
@@ -0,0 +1,27 @@
1
+ import { spawn } from 'child_process';
2
+ import chalk from 'chalk';
3
+ export class UpgradeCommand {
4
+ async execute() {
5
+ console.log(chalk.cyan('\n🔄 Upgrading Prompter to the latest version...\n'));
6
+ const npmCommand = process.platform === 'win32' ? 'npm.cmd' : 'npm';
7
+ const upgrade = spawn(npmCommand, ['install', '-g', '@dedesfr/prompter@latest'], {
8
+ stdio: 'inherit',
9
+ shell: true
10
+ });
11
+ upgrade.on('close', (code) => {
12
+ if (code === 0) {
13
+ console.log(chalk.green('\n✓ Prompter has been upgraded successfully!\n'));
14
+ }
15
+ else {
16
+ console.error(chalk.red(`\n✗ Upgrade failed with exit code ${code}\n`));
17
+ process.exit(code || 1);
18
+ }
19
+ });
20
+ upgrade.on('error', (error) => {
21
+ console.error(chalk.red('\n✗ Failed to run upgrade command:'), error.message);
22
+ console.log(chalk.yellow('\nPlease run manually: npm install -g @dedesfr/prompter@latest\n'));
23
+ process.exit(1);
24
+ });
25
+ }
26
+ }
27
+ //# sourceMappingURL=upgrade.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"upgrade.js","sourceRoot":"","sources":["../../src/commands/upgrade.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,OAAO,cAAc;IACvB,KAAK,CAAC,OAAO;QACT,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,oDAAoD,CAAC,CAAC,CAAC;QAE9E,MAAM,UAAU,GAAG,OAAO,CAAC,QAAQ,KAAK,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC;QAEpE,MAAM,OAAO,GAAG,KAAK,CAAC,UAAU,EAAE,CAAC,SAAS,EAAE,IAAI,EAAE,0BAA0B,CAAC,EAAE;YAC7E,KAAK,EAAE,SAAS;YAChB,KAAK,EAAE,IAAI;SACd,CAAC,CAAC;QAEH,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE;YACzB,IAAI,IAAI,KAAK,CAAC,EAAE,CAAC;gBACb,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,gDAAgD,CAAC,CAAC,CAAC;YAC/E,CAAC;iBAAM,CAAC;gBACJ,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,qCAAqC,IAAI,IAAI,CAAC,CAAC,CAAC;gBACxE,OAAO,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC;YAC5B,CAAC;QACL,CAAC,CAAC,CAAC;QAEH,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE;YAC1B,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,oCAAoC,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;YAC9E,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,kEAAkE,CAAC,CAAC,CAAC;YAC9F,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QACpB,CAAC,CAAC,CAAC;IACP,CAAC;CACJ"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dedesfr/prompter",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "Enhance prompts directly in your AI coding workflow",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
package/src/cli/index.ts CHANGED
@@ -3,13 +3,14 @@ import { InitCommand } from '../commands/init.js';
3
3
  import { UpdateCommand } from '../commands/update.js';
4
4
  import { ListCommand } from '../commands/list.js';
5
5
  import { GuideCommand } from '../commands/guide.js';
6
+ import { UpgradeCommand } from '../commands/upgrade.js';
6
7
 
7
8
  const program = new Command();
8
9
 
9
10
  program
10
11
  .name('prompter')
11
12
  .description('Enhance prompts directly in your AI coding workflow')
12
- .version('0.5.0');
13
+ .version('0.5.1');
13
14
 
14
15
  program
15
16
  .command('init')
@@ -47,4 +48,12 @@ program
47
48
  await guideCommand.execute();
48
49
  });
49
50
 
51
+ program
52
+ .command('upgrade')
53
+ .description('Upgrade Prompter to the latest version')
54
+ .action(async () => {
55
+ const upgradeCommand = new UpgradeCommand();
56
+ await upgradeCommand.execute();
57
+ });
58
+
50
59
  program.parse();
@@ -0,0 +1,30 @@
1
+ import { spawn } from 'child_process';
2
+ import chalk from 'chalk';
3
+
4
+ export class UpgradeCommand {
5
+ async execute(): Promise<void> {
6
+ console.log(chalk.cyan('\n🔄 Upgrading Prompter to the latest version...\n'));
7
+
8
+ const npmCommand = process.platform === 'win32' ? 'npm.cmd' : 'npm';
9
+
10
+ const upgrade = spawn(npmCommand, ['install', '-g', '@dedesfr/prompter@latest'], {
11
+ stdio: 'inherit',
12
+ shell: true
13
+ });
14
+
15
+ upgrade.on('close', (code) => {
16
+ if (code === 0) {
17
+ console.log(chalk.green('\n✓ Prompter has been upgraded successfully!\n'));
18
+ } else {
19
+ console.error(chalk.red(`\n✗ Upgrade failed with exit code ${code}\n`));
20
+ process.exit(code || 1);
21
+ }
22
+ });
23
+
24
+ upgrade.on('error', (error) => {
25
+ console.error(chalk.red('\n✗ Failed to run upgrade command:'), error.message);
26
+ console.log(chalk.yellow('\nPlease run manually: npm install -g @dedesfr/prompter@latest\n'));
27
+ process.exit(1);
28
+ });
29
+ }
30
+ }