@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.
- package/README.md +86 -1
- package/dist/assets/skills/map-your-system.md +9 -4
- package/dist/commands/ask.js +2 -2
- package/dist/commands/config.d.ts +9 -0
- package/dist/commands/config.js +46 -14
- package/dist/commands/dismiss.d.ts +15 -3
- package/dist/commands/dismiss.js +66 -116
- package/dist/commands/mcp.js +96 -1
- package/dist/commands/policy.js +31 -12
- package/dist/commands/pr-status.d.ts +125 -2
- package/dist/commands/pr-status.js +88 -73
- package/dist/commands/pr.d.ts +1 -7
- package/dist/commands/pr.js +10 -21
- package/dist/commands/request-review.d.ts +12 -1
- package/dist/commands/request-review.js +42 -65
- package/dist/commands/review.d.ts +1 -0
- package/dist/commands/review.js +58 -60
- package/dist/commands/setup.js +4 -1
- package/dist/commands/submit.d.ts +3 -0
- package/dist/commands/submit.js +178 -38
- package/dist/commands/system-map.d.ts +42 -0
- package/dist/commands/system-map.js +228 -0
- package/dist/commands/tokens.js +3 -2
- package/dist/commands/traces.js +2 -2
- package/dist/commands/triage.d.ts +1 -6
- package/dist/commands/triage.js +51 -55
- package/dist/index.js +88 -20
- package/dist/schema.d.ts +4 -0
- package/dist/schema.js +4 -0
- package/dist/states.d.ts +29 -0
- package/dist/states.js +46 -0
- package/dist/triage/runner.d.ts +7 -0
- package/dist/triage/runner.js +2 -2
- package/dist/utils/action-output.d.ts +24 -0
- package/dist/utils/action-output.js +26 -0
- package/dist/utils/analysis-api.d.ts +11 -0
- package/dist/utils/analysis-api.js +29 -3
- package/dist/utils/auth.js +7 -0
- package/dist/utils/git.d.ts +4 -1
- package/dist/utils/git.js +17 -7
- package/dist/utils/haystack-api.d.ts +15 -0
- package/dist/utils/haystack-api.js +58 -7
- package/dist/utils/pr-ref.d.ts +27 -0
- package/dist/utils/pr-ref.js +56 -0
- package/package.json +1 -1
- package/schemas/action.v1.json +22 -0
- package/schemas/error.v1.json +14 -0
- package/schemas/pr-status.v1.json +61 -0
- package/schemas/pr.v1.json +80 -17
- package/schemas/setup.v1.json +66 -12
- package/schemas/submit.v1.json +88 -0
- package/schemas/triage.v1.json +71 -18
package/schemas/triage.v1.json
CHANGED
|
@@ -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": [
|
|
8
|
+
"required": [
|
|
9
|
+
"schema_version",
|
|
10
|
+
"owner",
|
|
11
|
+
"repo",
|
|
12
|
+
"prNumber",
|
|
13
|
+
"rating",
|
|
14
|
+
"findings"
|
|
15
|
+
],
|
|
7
16
|
"properties": {
|
|
8
|
-
"schema_version": {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
"
|
|
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": {
|
|
19
|
-
|
|
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": {
|
|
29
|
-
|
|
30
|
-
|
|
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": [
|
|
70
|
+
"required": [
|
|
71
|
+
"category",
|
|
72
|
+
"summary"
|
|
73
|
+
],
|
|
39
74
|
"properties": {
|
|
40
|
-
"category": {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
"
|
|
44
|
-
|
|
45
|
-
|
|
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
|
}
|