@sreetej510/pi-shipd-checks 0.3.6 → 0.3.7
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 +10 -4
- package/dist/fargate-worker.mjs +508 -508
- package/dist/index.js +41 -41
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -66,7 +66,8 @@ The two finder flags are additive/combinable; `--config` must be used alone.
|
|
|
66
66
|
count, and artifact-saving setting.
|
|
67
67
|
- **Analyze Tool**: pick the model + thinking level for the agent-callable Gap Finder tool.
|
|
68
68
|
- **Fargate**: choose the shared-task resource profile for the current project: `small` (1 vCPU,
|
|
69
|
-
2 GB), `medium` (2 vCPU, 4 GB), or `large` (4 vCPU, 8 GB).
|
|
69
|
+
2 GB), `medium` (2 vCPU, 4 GB), or `large` (4 vCPU, 8 GB). Adaptive sizing can select the
|
|
70
|
+
next profile from task telemetry after each run.
|
|
70
71
|
|
|
71
72
|
AWS credentials stay local. Configure the AWS CLI profile, then set `AWS_PROFILE`/`AWS_REGION` (or add
|
|
72
73
|
`fargate.awsProfile`/`fargate.region` to `checks-config.json`). The runner discovers the default
|
|
@@ -120,20 +121,24 @@ On-Demand fallback. Spot interruptions are retried according to `fargate.maxRetr
|
|
|
120
121
|
```json
|
|
121
122
|
{
|
|
122
123
|
"fargate": {
|
|
123
|
-
"awsProfile": "shipd-
|
|
124
|
+
"awsProfile": "shipd-static",
|
|
124
125
|
"region": "us-east-1",
|
|
125
126
|
"bucket": "BUCKET_NAME",
|
|
126
127
|
"taskRoleArn": "arn:aws:iam::ACCOUNT_ID:role/pi-shipd-checks-task",
|
|
127
128
|
"executionRoleArn": "arn:aws:iam::ACCOUNT_ID:role/pi-shipd-checks-execution",
|
|
128
129
|
"logGroup": "/aws/ecs/pi-shipd-checks",
|
|
129
130
|
"resourceProfile": "medium",
|
|
131
|
+
"adaptiveResourceProfile": true,
|
|
130
132
|
"maxRetries": 1
|
|
131
133
|
}
|
|
132
134
|
}
|
|
133
135
|
```
|
|
134
136
|
|
|
135
137
|
`cluster`, `subnetIds`, and `securityGroupId` are optional when a default VPC is available.
|
|
136
|
-
|
|
138
|
+
With `adaptiveResourceProfile: true`, the first run uses `resourceProfile`; later runs upgrade
|
|
139
|
+
when normalized CPU is at least 90% for 40% or more of the runtime, downgrade when that is
|
|
140
|
+
below 10%, and otherwise retain the profile. Set
|
|
141
|
+
`projectProfiles` to override resources per repository:
|
|
137
142
|
`{"C:/path/to/repo":"large"}`.
|
|
138
143
|
|
|
139
144
|
5. Restart pi, use `/checks --config` to select the solver model and project resource profile,
|
|
@@ -184,8 +189,9 @@ Or, for local development, point at the entry point directly:
|
|
|
184
189
|
| `src/agents.ts` | Spawns and races the gap-finder/reviewer/solver agent sessions |
|
|
185
190
|
| `src/solvergap.ts` | Local solver result persistence and comparison artifacts |
|
|
186
191
|
| `src/fargate-docker.ts` | Supported Dockerfile parsing for remote solver setup |
|
|
187
|
-
| `src/fargate-runner.ts` | ECS Fargate Spot/S3 orchestration, retries, and
|
|
192
|
+
| `src/fargate-runner.ts` | ECS Fargate Spot/S3 orchestration, retries, cleanup, and task telemetry |
|
|
188
193
|
| `src/fargate-worker.ts` | ESM worker that runs concurrent solver workspaces in the shared task |
|
|
194
|
+
| `src/resource-usage.ts` | Container CPU/memory sampling for adaptive profile selection |
|
|
189
195
|
| `src/prompts.ts` | All prompt text sent to those agents |
|
|
190
196
|
| `src/tools.ts` | Custom tools the agents call to submit their structured results |
|
|
191
197
|
| `src/rubric.ts` | Embedded guidelines/fairness rubric text + per-role section loaders |
|