Repository navigation
feat(cli): add runtime bootstrap flow verfix init - #1
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR introduces an interactive verfix init bootstrap flow and expands the CLI/runtime lifecycle tooling, while standardizing the config naming to verfix.config.json across the SDK and documentation.
Changes:
- Add an interactive init wizard that starts the Docker runtime, scaffolds
verfix.config.json, and generates/updatesAGENTS.md. - Add/expand CLI commands for runtime lifecycle (
start,stop,status,logs,update,doctor,flows) and supporting Docker/health helpers. - Rename default config/schema filenames from
verify.*toverfix.*and refresh README/docs/contributing guides accordingly.
Reviewed changes
Copilot reviewed 11 out of 12 changed files in this pull request and generated 10 comments.
Show a summary per file
| File | Description |
|---|---|
| sdk/src/index.ts | Renames default config/schema filenames to verfix.*. |
| README.md | Rewrites top-level README with new quick start, CLI overview, and config details. |
| docs/2-getting-started/getting-started.md | Updates getting-started docs to reference verfix.config.json. |
| CONTRIBUTING.md | Major expansion of contributor docs including CLI workflow and architecture overview. |
| cli/src/init-wizard.ts | Adds interactive init wizard + AGENTS.md generator. |
| cli/src/index.ts | Integrates new init wizard and adds runtime/diagnostic/flow-discovery commands. |
| cli/src/health.ts | Adds API/dashboard health-check helpers. |
| cli/src/docker.ts | Adds Docker container lifecycle helpers for the CLI. |
| cli/src/constants.ts | Centralizes ports, image/container name, scaffold flows, and stable failure types. |
| cli/README.md | Major expansion of CLI documentation and usage reference. |
| cli/package.json | Bumps CLI version and adds @inquirer/prompts dependency + metadata. |
| cli/package-lock.json | Updates lockfile for new CLI version and dependencies. |
Files not reviewed (1)
- cli/package-lock.json: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
44
to
46
| "dependencies": { | ||
| "@inquirer/prompts": "^8.4.3", | ||
| "ajv": "^8.17.1", |
Comment on lines
7
to
+12
| "": { | ||
| "name": "verfix", | ||
| "version": "0.1.0", | ||
| "version": "0.1.1", | ||
| "license": "MIT", | ||
| "dependencies": { | ||
| "@inquirer/prompts": "^8.4.3", |
| } | ||
|
|
||
| // ── Step 4: Detect or ask base URL ── | ||
| let baseUrl = 'http://localhost:3000'; |
Comment on lines
+24
to
+27
| socket.on('connect', () => { socket.destroy(); resolve(true); }); | ||
| socket.on('timeout', () => { socket.destroy(); resolve(false); }); | ||
| socket.on('error', () => { resolve(false); }); | ||
| socket.connect(port, '127.0.0.1'); |
Comment on lines
+419
to
+432
| \`\`\`json | ||
| { | ||
| "passed": false, | ||
| "failures": [ | ||
| { | ||
| "type": "selector_not_found", | ||
| "selector": "[data-testid=submit]", | ||
| "fix_hint": "Selector \"[data-testid=submit]\" not found in DOM. Add a stable data-testid or update the selector." | ||
| } | ||
| ], | ||
| "timeline_url": "http://localhost:${DASHBOARD_PORT}/?executionId=exec_abc123", | ||
| "exit_code": 0 | 1, | ||
| "execution_id": "exec_abc123" | ||
| } |
| // All Docker operations use child_process with stdio: 'pipe' and explicit | ||
| // error handling. No silent error swallowing. | ||
|
|
||
| import { execSync, spawnSync } from 'child_process'; |
Comment on lines
312
to
+320
| program | ||
| .command('init') | ||
| .description('Create verify.config.json and AGENTS.md in the current directory') | ||
| .option('-f, --force', 'Overwrite existing files') | ||
| .action(async (opts) => { | ||
| const cwd = process.cwd(); | ||
| const configPath = path.join(cwd, DEFAULT_CONFIG); | ||
| const agentsPath = path.join(cwd, 'AGENTS.md'); | ||
| .description('Interactive setup wizard — configure runtime, flows, and AGENTS.md') | ||
| .option('-f, --force', 'Overwrite existing files without prompting') | ||
| .action(async () => { | ||
| // Dynamic import to keep the main entry lean | ||
| const { runInitWizard } = await import('./init-wizard'); | ||
| await runInitWizard(); | ||
| }); |
| ## Quick Start | ||
|
|
||
| Verfix relies on a deterministic-first engine. The runtime is packaged as a single unified Docker container orchestrating the API, Queue, Playwright Workers, and Dashboard. | ||
| **Requirements:** [Docker Desktop](https://www.docker.com/products/docker-desktop/) (running), Node.js 18+ |
Comment on lines
+44
to
+46
| - **Docker** — [install here](https://docs.docker.com/get-docker/) | ||
| - **Node.js** 18+ | ||
|
|
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
Closed
7 tasks done
jyotir-aditya
added a commit
that referenced
this pull request
Jul 10, 2026
…findings[] (#58) Promote appendStaleStateHint into a registry-based analyzer pipeline: pure functions over already-captured evidence emit typed findings, capped and priority-ordered; the top finding renders into fix_hint. stale_session is analyzer #1 with behavior preserved verbatim. AssertionResult, the CLI failures[] contract, and the SDK gain an additive optional findings field.
jyotir-aditya
added a commit
that referenced
this pull request
Jul 10, 2026
…findings[] (#58) (#75) Promote appendStaleStateHint into a registry-based analyzer pipeline: pure functions over already-captured evidence emit typed findings, capped and priority-ordered; the top finding renders into fix_hint. stale_session is analyzer #1 with behavior preserved verbatim. AssertionResult, the CLI failures[] contract, and the SDK gain an additive optional findings field.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.