@bugzy-ai/bugzy 1.5.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.
- package/README.md +10 -7
- package/dist/cli/index.cjs +6168 -5848
- package/dist/cli/index.cjs.map +1 -1
- package/dist/cli/index.js +6168 -5848
- package/dist/cli/index.js.map +1 -1
- package/dist/index.cjs +5563 -5302
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -4
- package/dist/index.d.ts +5 -4
- package/dist/index.js +5560 -5300
- package/dist/index.js.map +1 -1
- package/dist/subagents/index.cjs +368 -51
- package/dist/subagents/index.cjs.map +1 -1
- package/dist/subagents/index.js +368 -51
- package/dist/subagents/index.js.map +1 -1
- package/dist/subagents/metadata.cjs +10 -2
- package/dist/subagents/metadata.cjs.map +1 -1
- package/dist/subagents/metadata.js +10 -2
- package/dist/subagents/metadata.js.map +1 -1
- package/dist/tasks/index.cjs +864 -2391
- package/dist/tasks/index.cjs.map +1 -1
- package/dist/tasks/index.d.cts +48 -5
- package/dist/tasks/index.d.ts +48 -5
- package/dist/tasks/index.js +862 -2389
- package/dist/tasks/index.js.map +1 -1
- package/dist/templates/init/.bugzy/runtime/knowledge-base.md +61 -0
- package/dist/templates/init/.bugzy/runtime/knowledge-maintenance-guide.md +97 -0
- package/dist/templates/init/.bugzy/runtime/subagent-memory-guide.md +87 -0
- package/dist/templates/init/.bugzy/runtime/templates/test-plan-template.md +41 -16
- package/dist/templates/init/.bugzy/runtime/templates/test-result-schema.md +498 -0
- package/dist/templates/init/.bugzy/runtime/test-execution-strategy.md +535 -0
- package/dist/templates/init/.bugzy/runtime/testing-best-practices.md +368 -14
- package/dist/templates/init/.gitignore-template +23 -2
- package/package.json +1 -1
- package/templates/init/.bugzy/runtime/templates/test-plan-template.md +41 -16
- package/templates/init/.env.testdata +18 -0
package/dist/tasks/index.d.cts
CHANGED
|
@@ -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,
|
|
34
|
-
declare function getTaskTemplate(slug: string):
|
|
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
|
|
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 };
|
package/dist/tasks/index.d.ts
CHANGED
|
@@ -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,
|
|
34
|
-
declare function getTaskTemplate(slug: string):
|
|
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
|
|
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 };
|