@sreetej510/pi-shipd-checks 0.9.3 → 0.9.4
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 +21 -9
- package/dist/fargate-worker.mjs +806 -797
- package/dist/index.js +56 -55
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -142,24 +142,36 @@ On-Demand fallback. Spot interruptions are retried according to `fargate.maxRetr
|
|
|
142
142
|
```
|
|
143
143
|
|
|
144
144
|
`cluster`, `subnetIds`, and `securityGroupId` are optional when a default VPC is available.
|
|
145
|
-
With `adaptiveResourceProfile: true`, the first
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
145
|
+
With `adaptiveResourceProfile: true`, the first solver-gap or quality patch-precheck run for
|
|
146
|
+
a repository uses `resourceProfile` (unless `projectProfiles` already overrides it); later runs
|
|
147
|
+
upgrade when normalized CPU is at least 95% for more than seven
|
|
148
|
+
minutes, downgrade when CPU is at least 95% for under two minutes, and otherwise retain the
|
|
149
|
+
profile. Only the selected next profile is written to `projectProfiles`; CPU telemetry is
|
|
150
|
+
included in `shipd_report.json` for solver-gap runs, but no telemetry history is retained. Set
|
|
151
|
+
`projectProfiles` to override resources per repository:
|
|
150
152
|
`{"C:/path/to/repo":"large"}`.
|
|
151
153
|
|
|
152
154
|
5. Restart pi, use `/checks --config` to select the solver and reviewer models, then run
|
|
153
155
|
`/checks --solver-gap-finder`. Projects need `Dockerfile`, `agent_prompt.md`,
|
|
154
156
|
`solution.patch`, `test.patch`, and `test.sh`.
|
|
155
157
|
|
|
158
|
+
For a Command Code subscription model, install the provider in the local pi if needed
|
|
159
|
+
(`pi install npm:pi-commandcode-provider`), then authenticate it with `/login` (**Use a
|
|
160
|
+
subscription** → **Command Code**) and make sure the plan includes Provider API access. Select a
|
|
161
|
+
`commandcode/...` solver model. The standalone Fargate worker bundles the pinned
|
|
162
|
+
`pi-commandcode-provider` package and registers it before starting solver sessions; installing a
|
|
163
|
+
separate Command Code CLI or npm package in the task image is not required. The task needs
|
|
164
|
+
outbound HTTPS access to the Command Code API. The runner uploads only the selected provider
|
|
165
|
+
credential from the local pi auth state for the task; never put the credential in project files.
|
|
166
|
+
|
|
156
167
|
Use `/analyze:on` and `/analyze:off` to control the gap-finder and solution-precheck tools per project, like HPC. The
|
|
157
168
|
enabled project list is stored alongside the other settings in `~/.pi/agent/checks-config.json`.
|
|
158
169
|
|
|
159
|
-
The patch precheck applies `test.patch`,
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
and
|
|
170
|
+
The patch precheck applies `test.patch`, creates isolated workspaces with and without `solution.patch`, and runs the
|
|
171
|
+
base suites concurrently in both workspaces followed by the new suites concurrently in both workspaces. It requires
|
|
172
|
+
`./test.sh base` to pass, requires every `./test.sh new` testcase to fail or error individually (with no suite-level error)
|
|
173
|
+
before `solution.patch`, then requires both base and new suites to pass after the solution patch. A failed precheck aborts
|
|
174
|
+
before Shipd is opened and includes the Linux platform, a human-readable phase, and failed/errored test names in the tool error.
|
|
163
175
|
|
|
164
176
|
The `gap-finder` and `solution-precheck` tools are read-only and return repair recommendations; the caller changes the
|
|
165
177
|
tests, prompt, or solution. Invoke them only when the user asks, never in parallel, and run repeated requests
|