@bugzy-ai/bugzy 1.4.0 → 1.6.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 (38) hide show
  1. package/README.md +10 -7
  2. package/dist/cli/index.cjs +6208 -5586
  3. package/dist/cli/index.cjs.map +1 -1
  4. package/dist/cli/index.js +6208 -5586
  5. package/dist/cli/index.js.map +1 -1
  6. package/dist/index.cjs +5588 -5040
  7. package/dist/index.cjs.map +1 -1
  8. package/dist/index.d.cts +5 -4
  9. package/dist/index.d.ts +5 -4
  10. package/dist/index.js +5585 -5038
  11. package/dist/index.js.map +1 -1
  12. package/dist/subagents/index.cjs +635 -48
  13. package/dist/subagents/index.cjs.map +1 -1
  14. package/dist/subagents/index.js +635 -48
  15. package/dist/subagents/index.js.map +1 -1
  16. package/dist/subagents/metadata.cjs +21 -1
  17. package/dist/subagents/metadata.cjs.map +1 -1
  18. package/dist/subagents/metadata.d.cts +1 -0
  19. package/dist/subagents/metadata.d.ts +1 -0
  20. package/dist/subagents/metadata.js +21 -1
  21. package/dist/subagents/metadata.js.map +1 -1
  22. package/dist/tasks/index.cjs +864 -2391
  23. package/dist/tasks/index.cjs.map +1 -1
  24. package/dist/tasks/index.d.cts +48 -5
  25. package/dist/tasks/index.d.ts +48 -5
  26. package/dist/tasks/index.js +862 -2389
  27. package/dist/tasks/index.js.map +1 -1
  28. package/dist/templates/init/.bugzy/runtime/knowledge-base.md +61 -0
  29. package/dist/templates/init/.bugzy/runtime/knowledge-maintenance-guide.md +97 -0
  30. package/dist/templates/init/.bugzy/runtime/subagent-memory-guide.md +87 -0
  31. package/dist/templates/init/.bugzy/runtime/templates/test-plan-template.md +41 -16
  32. package/dist/templates/init/.bugzy/runtime/templates/test-result-schema.md +498 -0
  33. package/dist/templates/init/.bugzy/runtime/test-execution-strategy.md +535 -0
  34. package/dist/templates/init/.bugzy/runtime/testing-best-practices.md +368 -14
  35. package/dist/templates/init/.gitignore-template +23 -2
  36. package/package.json +1 -1
  37. package/templates/init/.bugzy/runtime/templates/test-plan-template.md +41 -16
  38. package/templates/init/.env.testdata +18 -0
@@ -1,3 +1,46 @@
1
+ type StepCategory = 'security' | 'setup' | 'exploration' | 'clarification' | 'execution' | 'generation' | 'communication' | 'maintenance';
2
+ interface TaskStep {
3
+ id: string;
4
+ title: string;
5
+ category: StepCategory;
6
+ content: string;
7
+ requiresSubagent?: string;
8
+ invokesSubagents?: string[];
9
+ tags?: string[];
10
+ }
11
+ interface StepReferenceObject {
12
+ stepId: string;
13
+ title?: string;
14
+ appendContent?: string;
15
+ conditionalOnSubagent?: string;
16
+ }
17
+ interface InlineStep {
18
+ inline: true;
19
+ title: string;
20
+ content: string;
21
+ category?: StepCategory;
22
+ conditionalOnSubagent?: string;
23
+ }
24
+ type StepReference = string | StepReferenceObject | InlineStep;
25
+ interface ComposedTaskTemplate {
26
+ slug: string;
27
+ name: string;
28
+ description: string;
29
+ frontmatter: TaskFrontmatter;
30
+ steps: StepReference[];
31
+ requiredSubagents: string[];
32
+ optionalSubagents?: string[];
33
+ dependentTasks?: string[];
34
+ }
35
+ interface NormalizedStepReference {
36
+ stepId: string;
37
+ title?: string;
38
+ appendContent?: string;
39
+ conditionalOnSubagent?: string;
40
+ }
41
+ declare function isInlineStep(ref: StepReference): ref is InlineStep;
42
+ declare function isStepReferenceObject(ref: StepReference): ref is StepReferenceObject;
43
+
1
44
  interface TaskFrontmatter {
2
45
  name?: string;
3
46
  description: string;
@@ -21,24 +64,24 @@ interface TaskTemplate {
21
64
 
22
65
  declare const TASK_SLUGS: {
23
66
  readonly EXPLORE_APPLICATION: "explore-application";
67
+ readonly ONBOARD_TESTING: "onboard-testing";
24
68
  readonly GENERATE_TEST_CASES: "generate-test-cases";
25
69
  readonly GENERATE_TEST_PLAN: "generate-test-plan";
26
70
  readonly HANDLE_MESSAGE: "handle-message";
27
71
  readonly PROCESS_EVENT: "process-event";
28
72
  readonly RUN_TESTS: "run-tests";
29
73
  readonly VERIFY_CHANGES: "verify-changes";
74
+ readonly FULL_TEST_COVERAGE: "onboard-testing";
30
75
  };
31
76
  type TaskSlug = typeof TASK_SLUGS[keyof typeof TASK_SLUGS];
32
77
 
33
- declare const TASK_TEMPLATES: Record<string, TaskTemplate>;
34
- declare function getTaskTemplate(slug: string): TaskTemplate | undefined;
78
+ declare const TASK_TEMPLATES: Record<string, ComposedTaskTemplate>;
79
+ declare function getTaskTemplate(slug: string): ComposedTaskTemplate | undefined;
35
80
  declare function getAllTaskSlugs(): string[];
36
81
  declare function isTaskRegistered(slug: string): boolean;
37
82
  interface SlashCommandConfig {
38
83
  frontmatter: Record<string, any>;
39
84
  content: string;
40
85
  }
41
- declare function buildSlashCommandsConfig(slugs: string[]): Record<string, SlashCommandConfig>;
42
- declare function getRequiredMCPsFromTasks(slugs: string[]): string[];
43
86
 
44
- export { type OptionalSubagentBlock, type SlashCommandConfig, TASK_SLUGS, TASK_TEMPLATES, type TaskFrontmatter, type TaskSlug, type TaskTemplate, buildSlashCommandsConfig, getAllTaskSlugs, getRequiredMCPsFromTasks, getTaskTemplate, isTaskRegistered };
87
+ export { type ComposedTaskTemplate, type InlineStep, type NormalizedStepReference, type OptionalSubagentBlock, type SlashCommandConfig, type StepCategory, type StepReference, type StepReferenceObject, TASK_SLUGS, TASK_TEMPLATES, type TaskFrontmatter, type TaskSlug, type TaskStep, type TaskTemplate, getAllTaskSlugs, getTaskTemplate, isInlineStep, isStepReferenceObject, isTaskRegistered };
@@ -1,3 +1,46 @@
1
+ type StepCategory = 'security' | 'setup' | 'exploration' | 'clarification' | 'execution' | 'generation' | 'communication' | 'maintenance';
2
+ interface TaskStep {
3
+ id: string;
4
+ title: string;
5
+ category: StepCategory;
6
+ content: string;
7
+ requiresSubagent?: string;
8
+ invokesSubagents?: string[];
9
+ tags?: string[];
10
+ }
11
+ interface StepReferenceObject {
12
+ stepId: string;
13
+ title?: string;
14
+ appendContent?: string;
15
+ conditionalOnSubagent?: string;
16
+ }
17
+ interface InlineStep {
18
+ inline: true;
19
+ title: string;
20
+ content: string;
21
+ category?: StepCategory;
22
+ conditionalOnSubagent?: string;
23
+ }
24
+ type StepReference = string | StepReferenceObject | InlineStep;
25
+ interface ComposedTaskTemplate {
26
+ slug: string;
27
+ name: string;
28
+ description: string;
29
+ frontmatter: TaskFrontmatter;
30
+ steps: StepReference[];
31
+ requiredSubagents: string[];
32
+ optionalSubagents?: string[];
33
+ dependentTasks?: string[];
34
+ }
35
+ interface NormalizedStepReference {
36
+ stepId: string;
37
+ title?: string;
38
+ appendContent?: string;
39
+ conditionalOnSubagent?: string;
40
+ }
41
+ declare function isInlineStep(ref: StepReference): ref is InlineStep;
42
+ declare function isStepReferenceObject(ref: StepReference): ref is StepReferenceObject;
43
+
1
44
  interface TaskFrontmatter {
2
45
  name?: string;
3
46
  description: string;
@@ -21,24 +64,24 @@ interface TaskTemplate {
21
64
 
22
65
  declare const TASK_SLUGS: {
23
66
  readonly EXPLORE_APPLICATION: "explore-application";
67
+ readonly ONBOARD_TESTING: "onboard-testing";
24
68
  readonly GENERATE_TEST_CASES: "generate-test-cases";
25
69
  readonly GENERATE_TEST_PLAN: "generate-test-plan";
26
70
  readonly HANDLE_MESSAGE: "handle-message";
27
71
  readonly PROCESS_EVENT: "process-event";
28
72
  readonly RUN_TESTS: "run-tests";
29
73
  readonly VERIFY_CHANGES: "verify-changes";
74
+ readonly FULL_TEST_COVERAGE: "onboard-testing";
30
75
  };
31
76
  type TaskSlug = typeof TASK_SLUGS[keyof typeof TASK_SLUGS];
32
77
 
33
- declare const TASK_TEMPLATES: Record<string, TaskTemplate>;
34
- declare function getTaskTemplate(slug: string): TaskTemplate | undefined;
78
+ declare const TASK_TEMPLATES: Record<string, ComposedTaskTemplate>;
79
+ declare function getTaskTemplate(slug: string): ComposedTaskTemplate | undefined;
35
80
  declare function getAllTaskSlugs(): string[];
36
81
  declare function isTaskRegistered(slug: string): boolean;
37
82
  interface SlashCommandConfig {
38
83
  frontmatter: Record<string, any>;
39
84
  content: string;
40
85
  }
41
- declare function buildSlashCommandsConfig(slugs: string[]): Record<string, SlashCommandConfig>;
42
- declare function getRequiredMCPsFromTasks(slugs: string[]): string[];
43
86
 
44
- export { type OptionalSubagentBlock, type SlashCommandConfig, TASK_SLUGS, TASK_TEMPLATES, type TaskFrontmatter, type TaskSlug, type TaskTemplate, buildSlashCommandsConfig, getAllTaskSlugs, getRequiredMCPsFromTasks, getTaskTemplate, isTaskRegistered };
87
+ export { type ComposedTaskTemplate, type InlineStep, type NormalizedStepReference, type OptionalSubagentBlock, type SlashCommandConfig, type StepCategory, type StepReference, type StepReferenceObject, TASK_SLUGS, TASK_TEMPLATES, type TaskFrontmatter, type TaskSlug, type TaskStep, type TaskTemplate, getAllTaskSlugs, getTaskTemplate, isInlineStep, isStepReferenceObject, isTaskRegistered };