Skip to content

feat(cli): add runtime bootstrap flow verfix init - #1

Merged
jyotir-aditya merged 2 commits into
mainfrom
feature/verfix-init
May 23, 2026
Merged

jyotir-aditya merged 2 commits into
mainfrom
feature/verfix-init

Conversation

@jyotir-aditya

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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/updates AGENTS.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.* to verfix.* 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 thread cli/package.json
Comment on lines 44 to 46
"dependencies": {
"@inquirer/prompts": "^8.4.3",
"ajv": "^8.17.1",
Comment thread cli/package-lock.json
Comment on lines 7 to +12
"": {
"name": "verfix",
"version": "0.1.0",
"version": "0.1.1",
"license": "MIT",
"dependencies": {
"@inquirer/prompts": "^8.4.3",
Comment thread cli/src/init-wizard.ts Resolved
Comment thread cli/src/init-wizard.ts
}

// ── Step 4: Detect or ask base URL ──
let baseUrl = 'http://localhost:3000';
Comment thread cli/src/init-wizard.ts
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 thread cli/src/init-wizard.ts
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"
}
Comment thread cli/src/docker.ts
// All Docker operations use child_process with stdio: 'pipe' and explicit
// error handling. No silent error swallowing.

import { execSync, spawnSync } from 'child_process';
Comment thread cli/src/index.ts
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();
});
Comment thread README.md
## 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 thread cli/README.md
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]>
@jyotir-aditya
jyotir-aditya merged commit e70dab1 into main May 23, 2026
@jyotir-aditya
jyotir-aditya deleted the feature/verfix-init branch July 7, 2026 14:46
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants