vibecode-anything 0.0.0-stage → 0.3.0
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/LICENSE +21 -0
- package/README.md +235 -2
- package/dist/cli.d.ts +2 -0
- package/dist/cli.js +452 -0
- package/dist/core/adapters.d.ts +8 -0
- package/dist/core/adapters.js +92 -0
- package/dist/core/diff.d.ts +10 -0
- package/dist/core/diff.js +207 -0
- package/dist/core/doctor.d.ts +50 -0
- package/dist/core/doctor.js +312 -0
- package/dist/core/errors.d.ts +32 -0
- package/dist/core/errors.js +81 -0
- package/dist/core/exec.d.ts +14 -0
- package/dist/core/exec.js +109 -0
- package/dist/core/parity.d.ts +9 -0
- package/dist/core/parity.js +138 -0
- package/dist/core/png.d.ts +7 -0
- package/dist/core/png.js +303 -0
- package/dist/core/schema.d.ts +17 -0
- package/dist/core/schema.js +614 -0
- package/dist/core/slices.d.ts +24 -0
- package/dist/core/slices.js +294 -0
- package/dist/core/store.d.ts +17 -0
- package/dist/core/store.js +97 -0
- package/dist/core/types.d.ts +751 -0
- package/dist/core/types.js +4 -0
- package/dist/core/visual.d.ts +34 -0
- package/dist/core/visual.js +459 -0
- package/dist/core/watch.d.ts +53 -0
- package/dist/core/watch.js +285 -0
- package/dist/ingestors/api-repo.d.ts +5 -0
- package/dist/ingestors/api-repo.js +722 -0
- package/dist/ingestors/bridges.d.ts +3 -0
- package/dist/ingestors/bridges.js +562 -0
- package/dist/ingestors/cli.d.ts +9 -0
- package/dist/ingestors/cli.js +266 -0
- package/dist/ingestors/image.d.ts +2 -0
- package/dist/ingestors/image.js +147 -0
- package/dist/ingestors/index.d.ts +5 -0
- package/dist/ingestors/index.js +97 -0
- package/dist/ingestors/video.d.ts +47 -0
- package/dist/ingestors/video.js +605 -0
- package/dist/ingestors/web.d.ts +25 -0
- package/dist/ingestors/web.js +397 -0
- package/dist/mcp/server.d.ts +2 -0
- package/dist/mcp/server.js +504 -0
- package/dist/oracles/api-repo.d.ts +2 -0
- package/dist/oracles/api-repo.js +214 -0
- package/dist/oracles/cli.d.ts +2 -0
- package/dist/oracles/cli.js +157 -0
- package/dist/oracles/image.d.ts +2 -0
- package/dist/oracles/image.js +279 -0
- package/dist/oracles/index.d.ts +4 -0
- package/dist/oracles/index.js +91 -0
- package/dist/oracles/video.d.ts +21 -0
- package/dist/oracles/video.js +411 -0
- package/dist/oracles/web.d.ts +2 -0
- package/dist/oracles/web.js +480 -0
- package/dist/setup/index.d.ts +7 -0
- package/dist/setup/index.js +186 -0
- package/package.json +47 -6
- package/skills/vibecode-anything/SKILL.md +52 -0
package/package.json
CHANGED
|
@@ -1,6 +1,47 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "vibecode-anything",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "vibecode-anything",
|
|
3
|
+
"version": "0.3.0",
|
|
4
|
+
"description": "Vibecode any app from any reference — piece by piece, differentially verified against an automated oracle at every step.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/cli.js",
|
|
7
|
+
"bin": {
|
|
8
|
+
"vibecode-anything": "dist/cli.js"
|
|
9
|
+
},
|
|
10
|
+
"files": [
|
|
11
|
+
"dist",
|
|
12
|
+
"skills",
|
|
13
|
+
"README.md",
|
|
14
|
+
"LICENSE"
|
|
15
|
+
],
|
|
16
|
+
"repository": {
|
|
17
|
+
"type": "git",
|
|
18
|
+
"url": "git+https://github.com/nguyenthanhthe/vibecode-anything.git"
|
|
19
|
+
},
|
|
20
|
+
"homepage": "https://github.com/nguyenthanhthe/vibecode-anything#readme",
|
|
21
|
+
"scripts": {
|
|
22
|
+
"build": "tsc",
|
|
23
|
+
"typecheck": "tsc --noEmit",
|
|
24
|
+
"typecheck:all": "npm run build && tsc -p tsconfig.check.json --noEmit",
|
|
25
|
+
"prepare": "npm run build",
|
|
26
|
+
"start": "node ./dist/cli.js",
|
|
27
|
+
"test": "npm run build && tsc -p tsconfig.check.json --noEmit && node --test ./test/*.test.ts",
|
|
28
|
+
"bench": "npm run build && node benchmarks/run.ts"
|
|
29
|
+
},
|
|
30
|
+
"keywords": [
|
|
31
|
+
"vibecode",
|
|
32
|
+
"ai-agents",
|
|
33
|
+
"mcp",
|
|
34
|
+
"differential-testing",
|
|
35
|
+
"claude-code",
|
|
36
|
+
"agent-skills"
|
|
37
|
+
],
|
|
38
|
+
"license": "MIT",
|
|
39
|
+
"engines": {
|
|
40
|
+
"node": ">=20.0.0"
|
|
41
|
+
},
|
|
42
|
+
"dependencies": {},
|
|
43
|
+
"devDependencies": {
|
|
44
|
+
"@types/node": "^26.6.11",
|
|
45
|
+
"typescript": "^7.0.2"
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: vibecode-anything
|
|
3
|
+
description: Differential vibecoding workflow — ingest any reference into .vibecode/contract.json, build incrementally, and verify hard/soft parity with an automated oracle at every step. Use when cloning, rebuilding, or porting CLI, web, API, repo, image, or video behavior.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# vibecode-anything
|
|
7
|
+
|
|
8
|
+
Use this skill to rebuild, clone, port, or verify software against a reference (`cli`, `script`, `web`, `url`, `api`, `repo`, `image`, `video`, `rea`, `cli-anything`) using **automated differential verification**.
|
|
9
|
+
|
|
10
|
+
## Core loop
|
|
11
|
+
|
|
12
|
+
1. **Initialize or Ingest Contract**
|
|
13
|
+
- Starter stub: `vibecode-anything init --domain <cli|web|api> --source "<ref>" [--name <id>] [--force]`
|
|
14
|
+
- Auto-probed v0.2 contract: `vibecode-anything ingest --source "<ref>" [--domain <domain>] [--name <id>] [--force]`
|
|
15
|
+
- Domain options: CLI `--probe "<args>"` / `--probes probes.json`; Web `--route /path` / `--flow flow.json`; API `--endpoints endpoints.json` / `--base-url <url>`; Video `--scene-threshold <n>` / `--max-frames <n>` (supports video file or ordered keyframe dir + `.srt/.vtt`).
|
|
16
|
+
|
|
17
|
+
2. **Build Piece by Piece**
|
|
18
|
+
- Implement one invariant or flow at a time; let the oracle verify rather than guessing "done".
|
|
19
|
+
|
|
20
|
+
3. **Verify Against the Oracle**
|
|
21
|
+
- `vibecode-anything verify --target "<cmd-or-url>" [--strict] [--invariant <id>] [--slice <id>]`
|
|
22
|
+
- `--strict` turns soft perceptual/layout mismatches into gate failures (exit `1`).
|
|
23
|
+
- `--invariant <id>` (repeatable) filters specific invariant IDs; `--slice <id>` filters incremental contract slices.
|
|
24
|
+
|
|
25
|
+
4. **Watch & Diagnose**
|
|
26
|
+
- `vibecode-anything watch --target "<cmd-or-url>" [--slice <id>] [--watch-path <dir>] [--debounce <ms>] [--strict]` re-verifies on changes.
|
|
27
|
+
- `vibecode-anything doctor [--scope project|global] [--strict] [--antigravity-dir <dir>]` checks Node, adapters, optional CLIs, and MCP registration with install/fallback hints.
|
|
28
|
+
|
|
29
|
+
5. **Inspect Status & Diffs**
|
|
30
|
+
- `vibecode-anything status` prints contract metadata, adapter probes, slice summary, and the last report summary.
|
|
31
|
+
- `vibecode-anything diff [--invariant <id> | --id <id>]` prints the full last report or one invariant result.
|
|
32
|
+
- `vibecode-anything help` (or `--help` / `-h` after any subcommand) prints CLI usage without running side effects.
|
|
33
|
+
|
|
34
|
+
## MCP & Setup
|
|
35
|
+
|
|
36
|
+
- Start stdio JSON-RPC 2.0 server: `vibecode-anything mcp` (no stdout log noise).
|
|
37
|
+
- Tools: `vibecode_ingest`, `vibecode_verify`, `vibecode_status`, `vibecode_diff`, `vibecode_doctor`.
|
|
38
|
+
- `vibecode_verify` accepts `sliceIds`; `vibecode_status` includes a slice summary.
|
|
39
|
+
- Resources: `vibecode://contract`, `vibecode://last-report`.
|
|
40
|
+
- Register MCP + `SKILL.md`: `vibecode-anything setup [--clients auto|claude-code,cursor,antigravity] [--scope project|global] [--local] [--dry-run] [--antigravity-dir <dir>]`.
|
|
41
|
+
|
|
42
|
+
## Exit Codes & Gate Semantics
|
|
43
|
+
|
|
44
|
+
- **Exit `0` (`pass` / `pass_with_warnings`):** All evaluated hard invariants pass; soft warnings only fail if `--strict` or `softGateMode: "fail"`.
|
|
45
|
+
- **Exit `1` (`fail`):** Hard parity fails, `--strict` fails a soft check, `doctor` finds failures (or warnings with `--strict`), or setup/init hits a file/config conflict.
|
|
46
|
+
- **Exit `2` (`incomplete` / input error):** All invariants skipped (`ADAPTER_MISSING`), missing `--target`/`--source`/contract, invalid contract, missing `diff` ID, or unknown command.
|
|
47
|
+
|
|
48
|
+
## Rules
|
|
49
|
+
|
|
50
|
+
- Never weaken or delete invariants in `.vibecode/contract.json` to make a failing build pass.
|
|
51
|
+
- Never run CLI reference probes in the user's workspace; CLI ingest probes run in a temp sandbox.
|
|
52
|
+
- Keep `.vibecode/contract.json` and `.vibecode/last-report.json` as the source of truth for progress.
|