@haystackeditor/cli 0.15.19 → 0.15.20

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 (52) hide show
  1. package/README.md +86 -1
  2. package/dist/assets/skills/map-your-system.md +9 -4
  3. package/dist/commands/ask.js +2 -2
  4. package/dist/commands/config.d.ts +9 -0
  5. package/dist/commands/config.js +46 -14
  6. package/dist/commands/dismiss.d.ts +15 -3
  7. package/dist/commands/dismiss.js +66 -116
  8. package/dist/commands/mcp.js +96 -1
  9. package/dist/commands/policy.js +31 -12
  10. package/dist/commands/pr-status.d.ts +125 -2
  11. package/dist/commands/pr-status.js +88 -73
  12. package/dist/commands/pr.d.ts +1 -7
  13. package/dist/commands/pr.js +10 -21
  14. package/dist/commands/request-review.d.ts +12 -1
  15. package/dist/commands/request-review.js +42 -65
  16. package/dist/commands/review.d.ts +1 -0
  17. package/dist/commands/review.js +58 -60
  18. package/dist/commands/setup.js +4 -1
  19. package/dist/commands/submit.d.ts +3 -0
  20. package/dist/commands/submit.js +178 -38
  21. package/dist/commands/system-map.d.ts +42 -0
  22. package/dist/commands/system-map.js +228 -0
  23. package/dist/commands/tokens.js +3 -2
  24. package/dist/commands/traces.js +2 -2
  25. package/dist/commands/triage.d.ts +1 -6
  26. package/dist/commands/triage.js +51 -55
  27. package/dist/index.js +88 -20
  28. package/dist/schema.d.ts +4 -0
  29. package/dist/schema.js +4 -0
  30. package/dist/states.d.ts +29 -0
  31. package/dist/states.js +46 -0
  32. package/dist/triage/runner.d.ts +7 -0
  33. package/dist/triage/runner.js +2 -2
  34. package/dist/utils/action-output.d.ts +24 -0
  35. package/dist/utils/action-output.js +26 -0
  36. package/dist/utils/analysis-api.d.ts +11 -0
  37. package/dist/utils/analysis-api.js +29 -3
  38. package/dist/utils/auth.js +7 -0
  39. package/dist/utils/git.d.ts +4 -1
  40. package/dist/utils/git.js +17 -7
  41. package/dist/utils/haystack-api.d.ts +15 -0
  42. package/dist/utils/haystack-api.js +58 -7
  43. package/dist/utils/pr-ref.d.ts +27 -0
  44. package/dist/utils/pr-ref.js +56 -0
  45. package/package.json +1 -1
  46. package/schemas/action.v1.json +22 -0
  47. package/schemas/error.v1.json +14 -0
  48. package/schemas/pr-status.v1.json +61 -0
  49. package/schemas/pr.v1.json +80 -17
  50. package/schemas/setup.v1.json +66 -12
  51. package/schemas/submit.v1.json +88 -0
  52. package/schemas/triage.v1.json +71 -18
@@ -2,21 +2,47 @@
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "https://docs.haystackeditor.com/cli/schemas/triage.v1.json",
4
4
  "title": "haystack triage --json",
5
+ "deprecated": true,
6
+ "description": "HISTORICAL: superseded by triage.v2.json. The CLI no longer emits this shape; this file is retained immutably for consumers pinned to the v1 contract.",
5
7
  "type": "object",
6
- "required": ["schema_version", "owner", "repo", "prNumber", "rating", "findings"],
8
+ "required": [
9
+ "schema_version",
10
+ "owner",
11
+ "repo",
12
+ "prNumber",
13
+ "rating",
14
+ "findings"
15
+ ],
7
16
  "properties": {
8
- "schema_version": { "type": "string", "const": "1.0.0" },
9
- "owner": { "type": "string" },
10
- "repo": { "type": "string" },
11
- "prNumber": { "type": "integer" },
12
- "rating": { "type": "integer", "minimum": 1, "maximum": 5 },
17
+ "schema_version": {
18
+ "type": "string",
19
+ "const": "1.0.0"
20
+ },
21
+ "owner": {
22
+ "type": "string"
23
+ },
24
+ "repo": {
25
+ "type": "string"
26
+ },
27
+ "prNumber": {
28
+ "type": "integer"
29
+ },
30
+ "rating": {
31
+ "type": "integer",
32
+ "minimum": 1,
33
+ "maximum": 5
34
+ },
13
35
  "autoFixerHandling": {
14
36
  "type": "array",
15
37
  "items": {
16
38
  "type": "object",
17
39
  "properties": {
18
- "category": { "type": "string" },
19
- "summary": { "type": "string" }
40
+ "category": {
41
+ "type": "string"
42
+ },
43
+ "summary": {
44
+ "type": "string"
45
+ }
20
46
  }
21
47
  }
22
48
  },
@@ -25,9 +51,15 @@
25
51
  "items": {
26
52
  "type": "object",
27
53
  "properties": {
28
- "category": { "type": "string" },
29
- "summary": { "type": "string" },
30
- "reason": { "type": "string" }
54
+ "category": {
55
+ "type": "string"
56
+ },
57
+ "summary": {
58
+ "type": "string"
59
+ },
60
+ "reason": {
61
+ "type": "string"
62
+ }
31
63
  }
32
64
  }
33
65
  },
@@ -35,14 +67,35 @@
35
67
  "type": "array",
36
68
  "items": {
37
69
  "type": "object",
38
- "required": ["category", "summary"],
70
+ "required": [
71
+ "category",
72
+ "summary"
73
+ ],
39
74
  "properties": {
40
- "category": { "type": "string" },
41
- "summary": { "type": "string" },
42
- "detail": { "type": "string" },
43
- "agentFixPrompt": { "type": ["string", "null"] },
44
- "source": { "type": ["string", "null"] },
45
- "autoFixing": { "type": "boolean" }
75
+ "category": {
76
+ "type": "string"
77
+ },
78
+ "summary": {
79
+ "type": "string"
80
+ },
81
+ "detail": {
82
+ "type": "string"
83
+ },
84
+ "agentFixPrompt": {
85
+ "type": [
86
+ "string",
87
+ "null"
88
+ ]
89
+ },
90
+ "source": {
91
+ "type": [
92
+ "string",
93
+ "null"
94
+ ]
95
+ },
96
+ "autoFixing": {
97
+ "type": "boolean"
98
+ }
46
99
  }
47
100
  }
48
101
  }