@glrs-dev/cli 0.3.1 → 1.0.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/CHANGELOG.md +16 -0
- package/README.md +23 -12
- package/dist/vendor/harness-opencode/dist/agents/prompts/pilot-builder.md +18 -3
- package/dist/vendor/harness-opencode/dist/agents/prompts/pilot-planner.md +19 -9
- package/dist/vendor/harness-opencode/dist/chunk-57EOY72Y.js +174 -0
- package/dist/vendor/harness-opencode/dist/chunk-5TAMY7P6.js +67 -0
- package/dist/vendor/harness-opencode/dist/chunk-BKTFWXLG.js +204 -0
- package/dist/vendor/harness-opencode/dist/chunk-KB7M7JXU.js +145 -0
- package/dist/vendor/harness-opencode/dist/chunk-RNRCXQ65.js +56 -0
- package/dist/vendor/harness-opencode/dist/cli.js +955 -1453
- package/dist/vendor/harness-opencode/dist/index.js +1 -1
- package/dist/vendor/harness-opencode/dist/paths-LT3QQKCF.js +18 -0
- package/dist/vendor/harness-opencode/dist/pilot/mcp/status-server.d.ts +1 -0
- package/dist/vendor/harness-opencode/dist/pilot/mcp/status-server.js +228 -0
- package/dist/vendor/harness-opencode/dist/pilot-config-7LJZ23YK.js +55 -0
- package/dist/vendor/harness-opencode/dist/runs-QWPL3TKV.js +18 -0
- package/dist/vendor/harness-opencode/dist/safety-gate-WM3EWOCY.js +10 -0
- package/dist/vendor/harness-opencode/dist/setup-hook-FHTXMAQL.js +88 -0
- package/dist/vendor/harness-opencode/dist/skills/adr/SKILL.md +328 -0
- package/dist/vendor/harness-opencode/dist/skills/pilot-planning/SKILL.md +40 -13
- package/dist/vendor/harness-opencode/dist/skills/pilot-planning/rules/decomposition.md +27 -0
- package/dist/vendor/harness-opencode/dist/skills/pilot-planning/rules/self-review.md +1 -1
- package/dist/vendor/harness-opencode/dist/skills/pilot-planning/rules/touches-scope.md +34 -0
- package/dist/vendor/harness-opencode/dist/skills/pilot-planning/rules/verify-design.md +78 -14
- package/dist/vendor/harness-opencode/dist/tasks-KJ3WN2KY.js +32 -0
- package/dist/vendor/harness-opencode/package.json +1 -1
- package/package.json +1 -1
- package/dist/vendor/harness-opencode/dist/skills/pilot-planning/rules/setup-authoring.md +0 -68
package/package.json
CHANGED
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
# Rule 9 — Setup-block authoring
|
|
2
|
-
|
|
3
|
-
**Detect → propose → confirm the top-level `setup:` block.**
|
|
4
|
-
|
|
5
|
-
The `setup:` block runs once per worktree before any task executes. It is the environment bootstrap: package manager install, docker-compose services, migration runs. A good setup block means the builder starts with a working environment; a missing one means tasks fail confusingly on missing dependencies.
|
|
6
|
-
|
|
7
|
-
## Detection signals
|
|
8
|
-
|
|
9
|
-
During codebase research (Section 2), look for these signals:
|
|
10
|
-
|
|
11
|
-
**Lockfiles → package manager install:**
|
|
12
|
-
- `pnpm-lock.yaml` → `pnpm install --frozen-lockfile`
|
|
13
|
-
- `bun.lock` → `bun install --frozen-lockfile`
|
|
14
|
-
- `package-lock.json` → `npm ci`
|
|
15
|
-
- `yarn.lock` → `yarn install --frozen-lockfile`
|
|
16
|
-
- `Cargo.lock` → `cargo fetch`
|
|
17
|
-
|
|
18
|
-
**Docker Compose → service startup:**
|
|
19
|
-
- `docker-compose.yml` or `compose.yaml` with defined services → `docker compose up -d <svc>` for each service the tasks will need (typically postgres, redis, etc.)
|
|
20
|
-
|
|
21
|
-
**Migration tooling → schema setup:**
|
|
22
|
-
- `package.json` deps containing `knex`, `prisma`, `drizzle-kit`, or `flyway` → corresponding migrate/push command (e.g., `prisma migrate dev`, `drizzle-kit push`)
|
|
23
|
-
|
|
24
|
-
## Proposal shape
|
|
25
|
-
|
|
26
|
-
When you detect one or more setup commands, bundle them into a single `question` tool call:
|
|
27
|
-
|
|
28
|
-
- Present each detected command as a pre-selected checkbox
|
|
29
|
-
- Group by category (Package install, Services, Migrations)
|
|
30
|
-
- Allow the user to uncheck commands that aren't needed or edit the command text
|
|
31
|
-
- Include an "Add another command" free-text field for anything you missed
|
|
32
|
-
|
|
33
|
-
Example question structure:
|
|
34
|
-
|
|
35
|
-
```
|
|
36
|
-
Setup commands detected (check all that should run before the first task):
|
|
37
|
-
|
|
38
|
-
[✓] Package install: pnpm install --frozen-lockfile
|
|
39
|
-
[✓] Services: docker compose up -d postgres
|
|
40
|
-
[✓] Migrations: pnpm prisma migrate dev
|
|
41
|
-
|
|
42
|
-
[Add another command: __________]
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
## No-op behavior
|
|
46
|
-
|
|
47
|
-
If NOTHING is detected (no lockfile, no compose, no migration tooling), emit `setup: []` or omit the key entirely. Do NOT ask the user open-ended "do you need setup?" questions. The schema defaults to `[]`; omitting is safe.
|
|
48
|
-
|
|
49
|
-
## Emission
|
|
50
|
-
|
|
51
|
-
Whatever the user confirms becomes the top-level `setup:` block in the written YAML, positioned above `defaults:` (matching schema ordering):
|
|
52
|
-
|
|
53
|
-
```yaml
|
|
54
|
-
name: my-plan
|
|
55
|
-
setup:
|
|
56
|
-
- pnpm install --frozen-lockfile
|
|
57
|
-
- docker compose up -d postgres
|
|
58
|
-
- pnpm prisma migrate dev
|
|
59
|
-
defaults:
|
|
60
|
-
verify_after_each:
|
|
61
|
-
- pnpm run typecheck
|
|
62
|
-
tasks:
|
|
63
|
-
...
|
|
64
|
-
```
|
|
65
|
-
|
|
66
|
-
## Back-compat note
|
|
67
|
-
|
|
68
|
-
The `setup:` key already defaults to `[]` in the schema (line 241 of `src/pilot/plan/schema.ts`). Plans that omit it or set it to `[]` behave identically to before this rule existed.
|