jira-ai 0.3.16 → 0.3.17

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/cli.js CHANGED
@@ -31,7 +31,7 @@ const program = new Command();
31
31
  program
32
32
  .name('jira-ai')
33
33
  .description('CLI tool for interacting with Atlassian Jira')
34
- .version('0.3.16')
34
+ .version('0.3.17')
35
35
  .option('-o, --organization <alias>', 'Override the active Jira organization');
36
36
  // Hook to handle the global option before any command runs
37
37
  program.on('option:organization', (alias) => {
@@ -199,7 +199,7 @@ program
199
199
  // About command (always allowed)
200
200
  program
201
201
  .command('about')
202
- .description('Show information about available commands')
202
+ .description('Show information about the tool')
203
203
  .action(aboutCommand);
204
204
  // Parse command line arguments
205
205
  async function main() {
@@ -1,92 +1,6 @@
1
1
  import chalk from 'chalk';
2
- import { getAllowedCommands, getAllowedProjects, isCommandAllowed, getSettingsPath } from '../lib/settings.js';
3
- const ALL_COMMANDS = [
4
- {
5
- name: 'auth',
6
- description: 'Set up Jira authentication credentials',
7
- usage: 'jira-ai auth'
8
- },
9
- {
10
- name: 'me',
11
- description: 'Show details of current user',
12
- usage: 'jira-ai me'
13
- },
14
- {
15
- name: 'projects',
16
- description: 'List available projects',
17
- usage: 'jira-ai projects'
18
- },
19
- {
20
- name: 'task-with-details',
21
- description: 'Show task title, body, and comments',
22
- usage: 'jira-ai task-with-details <task-id>'
23
- },
24
- {
25
- name: 'project-statuses',
26
- description: 'Show all possible statuses for a project',
27
- usage: 'jira-ai project-statuses <project-id>'
28
- },
29
- {
30
- name: 'list-issue-types',
31
- description: 'Show all issue types for a project (e.g., Epic, Task, Subtask)',
32
- usage: 'jira-ai list-issue-types <project-key>'
33
- },
34
- {
35
- name: 'run-jql',
36
- description: 'Execute JQL query and display results',
37
- usage: 'jira-ai run-jql "<jql-query>" [-l <limit>]'
38
- },
39
- {
40
- name: 'update-description',
41
- description: 'Update task description from a Markdown file',
42
- usage: 'jira-ai update-description <task-id> --from-file <path>'
43
- },
44
- {
45
- name: 'add-comment',
46
- description: 'Add a comment to a Jira issue from a Markdown file',
47
- usage: 'jira-ai add-comment --file-path <path> --issue-key <key>'
48
- },
49
- {
50
- name: 'create-task',
51
- description: 'Create a new Jira issue',
52
- usage: 'jira-ai create-task --title <title> --project <project> --issue-type <type> [--parent <key>]'
53
- },
54
- {
55
- name: 'about',
56
- description: 'Show information about available commands and current configuration',
57
- usage: 'jira-ai about'
58
- }
59
- ];
60
2
  export async function aboutCommand() {
61
- console.log(chalk.bold.cyan('\nšŸ“‹ Jira AI - Available Commands\n'));
62
- console.log(chalk.bold('Usage:'));
63
- console.log(' jira-ai <command> [options]\n');
64
- const allowedCommandsList = getAllowedCommands();
65
- const isAllAllowed = allowedCommandsList.includes('all');
66
- // Filter commands based on settings (about is always shown)
67
- const commandsToShow = ALL_COMMANDS.filter(cmd => cmd.name === 'about' || isAllAllowed || isCommandAllowed(cmd.name));
68
- console.log(chalk.bold('Available Commands:\n'));
69
- for (const cmd of commandsToShow) {
70
- console.log(chalk.yellow(` ${cmd.name}`));
71
- console.log(` ${cmd.description}`);
72
- console.log(` Usage: ${cmd.usage}\n`);
73
- }
74
- // Show disabled commands if not all are allowed
75
- if (!isAllAllowed) {
76
- const disabledCommands = ALL_COMMANDS.filter(cmd => cmd.name !== 'about' && !isCommandAllowed(cmd.name));
77
- if (disabledCommands.length > 0) {
78
- console.log(chalk.bold('Disabled Commands:\n'));
79
- for (const cmd of disabledCommands) {
80
- console.log(chalk.gray(` ${cmd.name} - ${cmd.description}`));
81
- }
82
- console.log();
83
- }
84
- }
85
- console.log(chalk.bold('For detailed help on any command, run:'));
86
- console.log(chalk.green(' jira-ai <command> --help\n'));
87
- console.log(chalk.bold('Configuration:'));
88
- console.log(` Settings file: ${chalk.cyan(getSettingsPath())}`);
89
- const allowedProjects = getAllowedProjects();
90
- console.log(` - Projects: ${allowedProjects.includes('all') ? 'All allowed' : allowedProjects.join(', ')}`);
91
- console.log(` - Commands: ${isAllAllowed ? 'All allowed' : allowedCommandsList.join(', ')}\n`);
3
+ console.log(chalk.bold.cyan('\nšŸ“‹ Jira AI\n'));
4
+ console.log(`${chalk.bold('Version:')} 0.3.17`);
5
+ console.log(`${chalk.bold('GitHub:')} https://github.com/festoinc/jira-ai\n`);
92
6
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jira-ai",
3
- "version": "0.3.16",
3
+ "version": "0.3.17",
4
4
  "description": "AI friendly Jira CLI to save context",
5
5
  "type": "module",
6
6
  "main": "dist/cli.js",