@klitchevo/code-council 0.0.1 → 0.0.2

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 (56) hide show
  1. package/README.md +48 -16
  2. package/dist/index.d.ts +0 -6
  3. package/dist/index.js +627 -57
  4. package/package.json +4 -3
  5. package/dist/config.d.ts +0 -48
  6. package/dist/config.d.ts.map +0 -1
  7. package/dist/config.js +0 -61
  8. package/dist/constants.d.ts +0 -33
  9. package/dist/constants.d.ts.map +0 -1
  10. package/dist/constants.js +0 -36
  11. package/dist/errors.d.ts +0 -53
  12. package/dist/errors.d.ts.map +0 -1
  13. package/dist/errors.js +0 -92
  14. package/dist/index.d.ts.map +0 -1
  15. package/dist/logger.d.ts +0 -22
  16. package/dist/logger.d.ts.map +0 -1
  17. package/dist/logger.js +0 -62
  18. package/dist/prompts/backend-review.d.ts +0 -6
  19. package/dist/prompts/backend-review.d.ts.map +0 -1
  20. package/dist/prompts/backend-review.js +0 -28
  21. package/dist/prompts/code-review.d.ts +0 -6
  22. package/dist/prompts/code-review.d.ts.map +0 -1
  23. package/dist/prompts/code-review.js +0 -18
  24. package/dist/prompts/frontend-review.d.ts +0 -6
  25. package/dist/prompts/frontend-review.d.ts.map +0 -1
  26. package/dist/prompts/frontend-review.js +0 -28
  27. package/dist/prompts/plan-review.d.ts +0 -6
  28. package/dist/prompts/plan-review.d.ts.map +0 -1
  29. package/dist/prompts/plan-review.js +0 -29
  30. package/dist/review-client.d.ts +0 -75
  31. package/dist/review-client.d.ts.map +0 -1
  32. package/dist/review-client.js +0 -116
  33. package/dist/schemas.d.ts +0 -60
  34. package/dist/schemas.d.ts.map +0 -1
  35. package/dist/schemas.js +0 -46
  36. package/dist/tools/factory.d.ts +0 -20
  37. package/dist/tools/factory.d.ts.map +0 -1
  38. package/dist/tools/factory.js +0 -55
  39. package/dist/tools/list-config.d.ts +0 -9
  40. package/dist/tools/list-config.d.ts.map +0 -1
  41. package/dist/tools/list-config.js +0 -31
  42. package/dist/tools/review-backend.d.ts +0 -22
  43. package/dist/tools/review-backend.d.ts.map +0 -1
  44. package/dist/tools/review-backend.js +0 -38
  45. package/dist/tools/review-code.d.ts +0 -15
  46. package/dist/tools/review-code.d.ts.map +0 -1
  47. package/dist/tools/review-code.js +0 -29
  48. package/dist/tools/review-frontend.d.ts +0 -22
  49. package/dist/tools/review-frontend.d.ts.map +0 -1
  50. package/dist/tools/review-frontend.js +0 -38
  51. package/dist/tools/review-plan.d.ts +0 -22
  52. package/dist/tools/review-plan.d.ts.map +0 -1
  53. package/dist/tools/review-plan.js +0 -35
  54. package/dist/utils/parallel-executor.d.ts +0 -10
  55. package/dist/utils/parallel-executor.d.ts.map +0 -1
  56. package/dist/utils/parallel-executor.js +0 -21
@@ -1,35 +0,0 @@
1
- /**
2
- * Plan review tool - reviews implementation plans before coding
3
- */
4
- import { z } from "zod";
5
- import { PLAN_REVIEW_MODELS } from "../config";
6
- import { logger } from "../logger";
7
- export const planReviewSchema = {
8
- plan: z.string().describe("The implementation plan to review"),
9
- review_type: z
10
- .enum(["feasibility", "completeness", "risks", "timeline", "full"])
11
- .optional()
12
- .describe("Type of review to perform (default: full)"),
13
- context: z
14
- .string()
15
- .optional()
16
- .describe("Additional context about the project or constraints"),
17
- };
18
- export async function handlePlanReview(client, input) {
19
- const { plan, review_type, context } = input;
20
- logger.info("Running plan review", {
21
- modelCount: PLAN_REVIEW_MODELS.length,
22
- models: PLAN_REVIEW_MODELS,
23
- reviewType: review_type || "full",
24
- });
25
- const results = await client.reviewPlan(plan, PLAN_REVIEW_MODELS, {
26
- reviewType: review_type,
27
- context,
28
- });
29
- return {
30
- results,
31
- models: PLAN_REVIEW_MODELS,
32
- reviewType: review_type || "full",
33
- };
34
- }
35
- //# sourceMappingURL=review-plan.js.map
@@ -1,10 +0,0 @@
1
- /**
2
- * Utility for executing operations in parallel with error handling
3
- */
4
- import type { ModelReviewResult } from "../review-client";
5
- /**
6
- * Execute a review function across multiple models in parallel
7
- * Each model runs independently, failures are captured in the result
8
- */
9
- export declare function executeInParallel(models: string[], reviewFn: (model: string) => Promise<string>): Promise<ModelReviewResult[]>;
10
- //# sourceMappingURL=parallel-executor.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"parallel-executor.d.ts","sourceRoot":"","sources":["../../src/utils/parallel-executor.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAE1D;;;GAGG;AACH,wBAAsB,iBAAiB,CACtC,MAAM,EAAE,MAAM,EAAE,EAChB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,GAC1C,OAAO,CAAC,iBAAiB,EAAE,CAAC,CAa9B"}
@@ -1,21 +0,0 @@
1
- /**
2
- * Utility for executing operations in parallel with error handling
3
- */
4
- /**
5
- * Execute a review function across multiple models in parallel
6
- * Each model runs independently, failures are captured in the result
7
- */
8
- export async function executeInParallel(models, reviewFn) {
9
- const promises = models.map(async (model) => {
10
- try {
11
- const review = await reviewFn(model);
12
- return { model, review };
13
- }
14
- catch (error) {
15
- const errorMessage = error instanceof Error ? error.message : "Unknown error";
16
- return { model, review: "", error: errorMessage };
17
- }
18
- });
19
- return Promise.all(promises);
20
- }
21
- //# sourceMappingURL=parallel-executor.js.map