@haystackeditor/cli 0.17.0 → 0.17.1
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 +2 -2
- package/dist/index.js +1 -1
- package/dist/triage/astra.js +5 -2
- package/dist/triage/runner.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -230,8 +230,8 @@ haystack submit --no-wait # Don't wait for analysis results
|
|
|
230
230
|
```
|
|
231
231
|
|
|
232
232
|
**Pre-PR triage**: two checkers run in parallel, each one structured call to
|
|
233
|
-
`gpt-6-astra` over the OpenAI Responses API at reasoning effort `
|
|
234
|
-
|
|
233
|
+
`gpt-6-astra` over the OpenAI Responses API at reasoning effort `xhigh`.
|
|
234
|
+
The key comes from `OPENAI_API_KEY`
|
|
235
235
|
if set, else from the SSM SecureString `/haystack/secrets/shared/prod/OPENAI_API_KEY`
|
|
236
236
|
(us-west-2) through the default AWS credential chain (e.g. `AWS_PROFILE=prod`).
|
|
237
237
|
With neither, each checker reports `no OpenAI key (...)` and submit continues.
|
package/dist/index.js
CHANGED
|
@@ -646,7 +646,7 @@ This command is designed for AI coding agents to submit PRs.
|
|
|
646
646
|
|
|
647
647
|
Pre-PR Triage:
|
|
648
648
|
Before creating the PR, haystack sends the diff to gpt-6-astra (OpenAI
|
|
649
|
-
Responses API, reasoning effort "
|
|
649
|
+
Responses API, reasoning effort "xhigh", structured output) in parallel for:
|
|
650
650
|
• Code review bugs (logic errors, null crashes, security issues, secrets)
|
|
651
651
|
• Rule violations (from .haystack/pr-rules.yml and CLAUDE.md/AGENTS.md etc.)
|
|
652
652
|
|
package/dist/triage/astra.js
CHANGED
|
@@ -10,8 +10,11 @@
|
|
|
10
10
|
*/
|
|
11
11
|
import { request as httpsRequest } from 'node:https';
|
|
12
12
|
export const TRIAGE_MODEL = 'gpt-6-astra';
|
|
13
|
-
/**
|
|
14
|
-
|
|
13
|
+
/**
|
|
14
|
+
* Reasoning effort for gpt-6-astra (the API accepts none|minimal|low|medium|high|xhigh|max). xhigh, not max:
|
|
15
|
+
* max-effort reviews ran too long to wait on (owner's call, 2026-09-25).
|
|
16
|
+
*/
|
|
17
|
+
export const TRIAGE_REASONING_EFFORT = 'xhigh';
|
|
15
18
|
const RESPONSES_URL = 'https://api.openai.com/v1/responses';
|
|
16
19
|
/** SSM parameter holding the shared OpenAI key, read when OPENAI_API_KEY is unset. */
|
|
17
20
|
export const OPENAI_KEY_PARAMETER = '/haystack/secrets/shared/prod/OPENAI_API_KEY';
|
package/dist/triage/runner.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Triage runner — runs the pre-PR checkers in parallel and aggregates results.
|
|
3
3
|
*
|
|
4
4
|
* Each checker (code-review, rules-validator) is one structured Responses API
|
|
5
|
-
* call to gpt-6-astra at
|
|
5
|
+
* call to gpt-6-astra at reasoning effort xhigh (see astra.ts). A checker
|
|
6
6
|
* that fails is reported as "<checker> failed: <error>" and never blocks
|
|
7
7
|
* submit; there is no second reviewer to fall back to.
|
|
8
8
|
*/
|