agentic-dev 0.2.2 → 0.2.4
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/.claude/CLAUDE.md +1 -1
- package/.claude/skills/sdd/SKILL.md +178 -7
- package/.claude/skills/sdd/agents/openai.yaml +4 -0
- package/.claude/skills/sdd/references/section-map.md +67 -0
- package/.env.example +2 -2
- package/README.md +5 -5
- package/client/{platform → web}/Dockerfile +3 -3
- package/client/web/Dockerfile.dev +18 -0
- package/client/{platform → web}/README.md +3 -3
- package/client/{platform → web}/index.html +1 -1
- package/client/{platform → web}/package.json +7 -7
- package/client/{platform/scripts/ui-parity-platform-adapter.mjs → web/scripts/ui-parity-web-adapter.mjs} +7 -7
- package/client/{platform → web}/src/auth/AuthProvider.tsx +1 -1
- package/compose.yml +6 -6
- package/infra/compose/.env.dev.example +3 -3
- package/infra/compose/.env.prod.example +3 -3
- package/infra/compose/README.md +1 -1
- package/infra/compose/dev.yml +5 -5
- package/infra/compose/prod.yml +6 -6
- package/infra/terraform/openstack/dev/terraform.tfvars.example +3 -3
- package/infra/terraform/openstack/prod/terraform.tfvars.example +3 -3
- package/lib/scaffold.mjs +7 -7
- package/package.json +2 -2
- package/scripts/dev/audit_sdd_build_ast.py +9 -9
- package/sdd/01_planning/01_feature/auth_feature_spec.md +2 -2
- package/sdd/01_planning/01_feature/catalog_feature_spec.md +3 -3
- package/sdd/01_planning/01_feature/order_feature_spec.md +11 -11
- package/sdd/01_planning/02_screen/INDEX.md +2 -2
- package/sdd/01_planning/02_screen/README.md +2 -2
- package/sdd/01_planning/03_architecture/templates_system_architecture.md +3 -3
- package/sdd/01_planning/05_api/templates_api_contract.md +3 -3
- package/sdd/01_planning/06_iac/templates_runtime_and_cicd_baseline.md +1 -1
- package/sdd/01_planning/07_integration/templates_frontend_api_integration.md +3 -3
- package/sdd/01_planning/10_test/templates_test_strategy.md +2 -2
- package/sdd/01_planning/INDEX.md +1 -1
- package/sdd/02_plan/02_screen/INDEX.md +1 -1
- package/sdd/02_plan/02_screen/README.md +1 -1
- package/sdd/02_plan/03_architecture/build_ast_runtime_tree_governance.md +1 -1
- package/sdd/02_plan/03_architecture/repository_governance.md +1 -1
- package/sdd/02_plan/07_integration/frontend_live_integration.md +3 -3
- package/sdd/02_plan/10_test/templates/{ui_parity_platform_contract.template.yaml → ui_parity_web_contract.template.yaml} +1 -1
- package/sdd/03_build/01_feature/domain/account_and_access.md +1 -1
- package/sdd/03_build/01_feature/domain/catalog_and_inventory.md +1 -1
- package/sdd/03_build/01_feature/domain/ordering_and_fulfillment.md +1 -1
- package/sdd/03_build/01_feature/service/README.md +1 -1
- package/sdd/03_build/01_feature/service/{platform_surface.md → web_surface.md} +3 -3
- package/sdd/03_build/02_screen/README.md +1 -1
- package/sdd/03_build/02_screen/web/README.md +5 -0
- package/sdd/03_build/06_iac/template_runtime_delivery.md +1 -1
- package/sdd/03_build/07_integration/frontend_live_integration.md +1 -1
- package/sdd/04_verify/01_feature/service_verification.md +2 -2
- package/sdd/04_verify/02_screen/web/README.md +4 -0
- package/sdd/04_verify/06_iac/template_runtime_delivery.md +3 -3
- package/sdd/99_toolchain/01_automation/agentic-dev/assets/repo-contract.template.json +11 -11
- package/sdd/99_toolchain/01_automation/agentic-dev/repo-contract.json +13 -13
- package/sdd/99_toolchain/01_automation/agentic-parity-harness-design.md +5 -5
- package/sdd/99_toolchain/01_automation/capture_screen_assets.mjs +4 -4
- package/sdd/99_toolchain/01_automation/harness-layout.md +2 -2
- package/sdd/99_toolchain/01_automation/parity-execution-tooling-design.md +5 -5
- package/sdd/99_toolchain/01_automation/screen_spec_manifest.py +17 -17
- package/sdd/99_toolchain/01_automation/ui-parity/README.md +10 -10
- package/sdd/99_toolchain/01_automation/ui-parity/interfaces/ui-parity-artifact-layout.md +1 -1
- package/sdd/99_toolchain/01_automation/ui-parity/interfaces/ui-parity-route-gap-interface.md +2 -2
- package/sdd/99_toolchain/03_templates/playwright_exactness_manifest.example.py +1 -1
- package/server/data/README.md +1 -1
- package/.claude/skills/commit/SKILL.md +0 -37
- package/.claude/skills/dev-browser/SKILL.md +0 -30
- package/.claude/skills/otro/SKILL.md +0 -43
- package/.claude/skills/planning-with-files/SKILL.md +0 -37
- package/.claude/skills/prd/SKILL.md +0 -27
- package/.claude/skills/ralph-loop/SKILL.md +0 -42
- package/.claude/skills/sdd-dev/SKILL.md +0 -71
- package/.claude/skills/sdd-development/SKILL.md +0 -13
- package/.codex/skills/agents/openai.yaml +0 -4
- package/.codex/skills/commit/SKILL.md +0 -219
- package/.codex/skills/commit/references/commit_examples.md +0 -292
- package/.codex/skills/dev-browser/SKILL.md +0 -211
- package/.codex/skills/dev-browser/bun.lock +0 -443
- package/.codex/skills/dev-browser/package-lock.json +0 -2988
- package/.codex/skills/dev-browser/package.json +0 -31
- package/.codex/skills/dev-browser/references/scraping.md +0 -155
- package/.codex/skills/dev-browser/scripts/start-relay.ts +0 -32
- package/.codex/skills/dev-browser/scripts/start-server.ts +0 -117
- package/.codex/skills/dev-browser/server.sh +0 -24
- package/.codex/skills/dev-browser/src/client.ts +0 -474
- package/.codex/skills/dev-browser/src/index.ts +0 -287
- package/.codex/skills/dev-browser/src/relay.ts +0 -731
- package/.codex/skills/dev-browser/src/snapshot/__tests__/snapshot.test.ts +0 -223
- package/.codex/skills/dev-browser/src/snapshot/browser-script.ts +0 -877
- package/.codex/skills/dev-browser/src/snapshot/index.ts +0 -14
- package/.codex/skills/dev-browser/src/snapshot/inject.ts +0 -13
- package/.codex/skills/dev-browser/src/types.ts +0 -34
- package/.codex/skills/dev-browser/tsconfig.json +0 -36
- package/.codex/skills/dev-browser/vitest.config.ts +0 -12
- package/.codex/skills/otro/SKILL.md +0 -74
- package/.codex/skills/otro/agents/openai.yaml +0 -4
- package/.codex/skills/otro/references/agent-prompts.md +0 -61
- package/.codex/skills/otro/references/contracts.md +0 -146
- package/.codex/skills/otro/references/orchestration-loop.md +0 -51
- package/.codex/skills/otro/references/runtime.md +0 -79
- package/.codex/skills/otro/runs/README.md +0 -11
- package/.codex/skills/otro/schemas/step_plan.schema.json +0 -289
- package/.codex/skills/otro/schemas/task_result.schema.json +0 -142
- package/.codex/skills/otro/schemas/wave_plan.schema.json +0 -4
- package/.codex/skills/otro/scripts/README.md +0 -38
- package/.codex/skills/otro/scripts/bump_validation_header.py +0 -179
- package/.codex/skills/otro/scripts/check_validation_header.py +0 -84
- package/.codex/skills/otro/scripts/common.py +0 -303
- package/.codex/skills/otro/scripts/init_run.sh +0 -68
- package/.codex/skills/otro/scripts/plan_loop.py +0 -8
- package/.codex/skills/otro/scripts/plan_step.py +0 -367
- package/.codex/skills/otro/scripts/plan_wave.py +0 -8
- package/.codex/skills/otro/scripts/reconcile_loop.py +0 -8
- package/.codex/skills/otro/scripts/reconcile_step.py +0 -37
- package/.codex/skills/otro/scripts/reconcile_wave.py +0 -8
- package/.codex/skills/otro/scripts/run_loop.py +0 -300
- package/.codex/skills/otro/scripts/run_loop_step.py +0 -8
- package/.codex/skills/otro/scripts/run_step.py +0 -246
- package/.codex/skills/otro/scripts/run_wave.py +0 -8
- package/.codex/skills/otro/validation/validation.md +0 -15
- package/.codex/skills/planning-with-files/SKILL.md +0 -42
- package/.codex/skills/planning-with-files/agents/openai.yaml +0 -4
- package/.codex/skills/planning-with-files/assets/plan-template.md +0 -37
- package/.codex/skills/planning-with-files/references/plan-rules.md +0 -35
- package/.codex/skills/planning-with-files/scripts/new_plan.sh +0 -65
- package/.codex/skills/prd/SKILL.md +0 -235
- package/.codex/skills/ralph-loop/SKILL.md +0 -46
- package/.codex/skills/ralph-loop/agents/openai.yaml +0 -4
- package/.codex/skills/ralph-loop/references/failure-triage.md +0 -32
- package/.codex/skills/ralph-loop/scripts/loop_until_success.sh +0 -97
- package/client/platform/Dockerfile.dev +0 -18
- package/sdd/03_build/02_screen/platform/README.md +0 -5
- package/sdd/04_verify/02_screen/platform/README.md +0 -4
- package/sdd/99_toolchain/02_policies/otro-orchestration-policy.md +0 -30
- /package/client/{platform → web}/.dockerignore +0 -0
- /package/client/{platform → web}/.env.example +0 -0
- /package/client/{platform → web}/postcss.config.js +0 -0
- /package/client/{platform → web}/src/api/client.ts +0 -0
- /package/client/{platform → web}/src/api/orders.ts +0 -0
- /package/client/{platform → web}/src/app/App.tsx +0 -0
- /package/client/{platform → web}/src/auth/ProtectedRoute.tsx +0 -0
- /package/client/{platform → web}/src/auth/auth-client.ts +0 -0
- /package/client/{platform → web}/src/auth/types.ts +0 -0
- /package/client/{platform → web}/src/components/AppShell.tsx +0 -0
- /package/client/{platform → web}/src/components/ui/button.tsx +0 -0
- /package/client/{platform → web}/src/components/ui/card.tsx +0 -0
- /package/client/{platform → web}/src/components/ui/input.tsx +0 -0
- /package/client/{platform → web}/src/lib/cn.ts +0 -0
- /package/client/{platform → web}/src/lib/specRouteCatalog.json +0 -0
- /package/client/{platform → web}/src/lib/specScreens.json +0 -0
- /package/client/{platform → web}/src/main.tsx +0 -0
- /package/client/{platform → web}/src/pages/DashboardPage.tsx +0 -0
- /package/client/{platform → web}/src/pages/LoginPage.tsx +0 -0
- /package/client/{platform → web}/src/pages/OrdersPage.tsx +0 -0
- /package/client/{platform → web}/src/styles/globals.css +0 -0
- /package/client/{platform → web}/src/theme-vars.ts +0 -0
- /package/client/{platform → web}/src/theme.ts +0 -0
- /package/client/{platform → web}/src/vite-env.d.ts +0 -0
- /package/client/{platform → web}/tailwind.config.js +0 -0
- /package/client/{platform → web}/tsconfig.json +0 -0
- /package/client/{platform → web}/vite.config.ts +0 -0
- /package/sdd/01_planning/02_screen/{platform_screen_spec.pdf → web_screen_spec.pdf} +0 -0
- /package/sdd/99_toolchain/01_automation/assets/{platform_screen_capture → web_screen_capture}/dashboard.png +0 -0
- /package/sdd/99_toolchain/01_automation/assets/{platform_screen_capture → web_screen_capture}/login.png +0 -0
- /package/sdd/99_toolchain/01_automation/assets/{platform_screen_capture → web_screen_capture}/orders.png +0 -0
|
@@ -1,223 +0,0 @@
|
|
|
1
|
-
import { chromium } from "playwright";
|
|
2
|
-
import type { Browser, BrowserContext, Page } from "playwright";
|
|
3
|
-
import { beforeAll, afterAll, beforeEach, afterEach, describe, test, expect } from "vitest";
|
|
4
|
-
import { getSnapshotScript, clearSnapshotScriptCache } from "../browser-script";
|
|
5
|
-
|
|
6
|
-
let browser: Browser;
|
|
7
|
-
let context: BrowserContext;
|
|
8
|
-
let page: Page;
|
|
9
|
-
|
|
10
|
-
beforeAll(async () => {
|
|
11
|
-
browser = await chromium.launch();
|
|
12
|
-
});
|
|
13
|
-
|
|
14
|
-
afterAll(async () => {
|
|
15
|
-
await browser.close();
|
|
16
|
-
});
|
|
17
|
-
|
|
18
|
-
beforeEach(async () => {
|
|
19
|
-
context = await browser.newContext();
|
|
20
|
-
page = await context.newPage();
|
|
21
|
-
clearSnapshotScriptCache(); // Start fresh for each test
|
|
22
|
-
});
|
|
23
|
-
|
|
24
|
-
afterEach(async () => {
|
|
25
|
-
await context.close();
|
|
26
|
-
});
|
|
27
|
-
|
|
28
|
-
async function setContent(html: string): Promise<void> {
|
|
29
|
-
await page.setContent(html, { waitUntil: "domcontentloaded" });
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
async function getSnapshot(): Promise<string> {
|
|
33
|
-
const script = getSnapshotScript();
|
|
34
|
-
return await page.evaluate((s: string) => {
|
|
35
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
36
|
-
const w = globalThis as any;
|
|
37
|
-
if (!w.__devBrowser_getAISnapshot) {
|
|
38
|
-
// eslint-disable-next-line no-eval
|
|
39
|
-
eval(s);
|
|
40
|
-
}
|
|
41
|
-
return w.__devBrowser_getAISnapshot();
|
|
42
|
-
}, script);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
async function selectRef(ref: string): Promise<unknown> {
|
|
46
|
-
return await page.evaluate((refId: string) => {
|
|
47
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
48
|
-
const w = globalThis as any;
|
|
49
|
-
const element = w.__devBrowser_selectSnapshotRef(refId);
|
|
50
|
-
return {
|
|
51
|
-
tagName: element.tagName,
|
|
52
|
-
textContent: element.textContent?.trim(),
|
|
53
|
-
};
|
|
54
|
-
}, ref);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
describe("ARIA Snapshot", () => {
|
|
58
|
-
test("generates snapshot for simple page", async () => {
|
|
59
|
-
await setContent(`
|
|
60
|
-
<html>
|
|
61
|
-
<body>
|
|
62
|
-
<h1>Hello World</h1>
|
|
63
|
-
<button>Click me</button>
|
|
64
|
-
</body>
|
|
65
|
-
</html>
|
|
66
|
-
`);
|
|
67
|
-
|
|
68
|
-
const snapshot = await getSnapshot();
|
|
69
|
-
|
|
70
|
-
expect(snapshot).toContain("heading");
|
|
71
|
-
expect(snapshot).toContain("Hello World");
|
|
72
|
-
expect(snapshot).toContain("button");
|
|
73
|
-
expect(snapshot).toContain("Click me");
|
|
74
|
-
});
|
|
75
|
-
|
|
76
|
-
test("assigns refs to interactive elements", async () => {
|
|
77
|
-
await setContent(`
|
|
78
|
-
<html>
|
|
79
|
-
<body>
|
|
80
|
-
<button id="btn1">Button 1</button>
|
|
81
|
-
<button id="btn2">Button 2</button>
|
|
82
|
-
</body>
|
|
83
|
-
</html>
|
|
84
|
-
`);
|
|
85
|
-
|
|
86
|
-
const snapshot = await getSnapshot();
|
|
87
|
-
|
|
88
|
-
// Should have refs
|
|
89
|
-
expect(snapshot).toMatch(/\[ref=e\d+\]/);
|
|
90
|
-
});
|
|
91
|
-
|
|
92
|
-
test("refs persist on window.__devBrowserRefs", async () => {
|
|
93
|
-
await setContent(`
|
|
94
|
-
<html>
|
|
95
|
-
<body>
|
|
96
|
-
<button>Test Button</button>
|
|
97
|
-
</body>
|
|
98
|
-
</html>
|
|
99
|
-
`);
|
|
100
|
-
|
|
101
|
-
await getSnapshot();
|
|
102
|
-
|
|
103
|
-
// Check that refs are stored
|
|
104
|
-
const hasRefs = await page.evaluate(() => {
|
|
105
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
106
|
-
const w = globalThis as any;
|
|
107
|
-
return typeof w.__devBrowserRefs === "object" && Object.keys(w.__devBrowserRefs).length > 0;
|
|
108
|
-
});
|
|
109
|
-
|
|
110
|
-
expect(hasRefs).toBe(true);
|
|
111
|
-
});
|
|
112
|
-
|
|
113
|
-
test("selectSnapshotRef returns element for valid ref", async () => {
|
|
114
|
-
await setContent(`
|
|
115
|
-
<html>
|
|
116
|
-
<body>
|
|
117
|
-
<button>My Button</button>
|
|
118
|
-
</body>
|
|
119
|
-
</html>
|
|
120
|
-
`);
|
|
121
|
-
|
|
122
|
-
const snapshot = await getSnapshot();
|
|
123
|
-
|
|
124
|
-
// Extract a ref from the snapshot
|
|
125
|
-
const refMatch = snapshot.match(/\[ref=(e\d+)\]/);
|
|
126
|
-
expect(refMatch).toBeTruthy();
|
|
127
|
-
expect(refMatch![1]).toBeDefined();
|
|
128
|
-
const ref = refMatch![1] as string;
|
|
129
|
-
|
|
130
|
-
// Select the element by ref
|
|
131
|
-
const result = (await selectRef(ref)) as { tagName: string; textContent: string };
|
|
132
|
-
expect(result.tagName).toBe("BUTTON");
|
|
133
|
-
expect(result.textContent).toBe("My Button");
|
|
134
|
-
});
|
|
135
|
-
|
|
136
|
-
test("includes links with URLs", async () => {
|
|
137
|
-
await setContent(`
|
|
138
|
-
<html>
|
|
139
|
-
<body>
|
|
140
|
-
<a href="https://example.com">Example Link</a>
|
|
141
|
-
</body>
|
|
142
|
-
</html>
|
|
143
|
-
`);
|
|
144
|
-
|
|
145
|
-
const snapshot = await getSnapshot();
|
|
146
|
-
|
|
147
|
-
expect(snapshot).toContain("link");
|
|
148
|
-
expect(snapshot).toContain("Example Link");
|
|
149
|
-
// URL should be included as a prop
|
|
150
|
-
expect(snapshot).toContain("/url:");
|
|
151
|
-
});
|
|
152
|
-
|
|
153
|
-
test("includes form elements", async () => {
|
|
154
|
-
await setContent(`
|
|
155
|
-
<html>
|
|
156
|
-
<body>
|
|
157
|
-
<input type="text" placeholder="Enter name" />
|
|
158
|
-
<input type="checkbox" />
|
|
159
|
-
<select>
|
|
160
|
-
<option>Option 1</option>
|
|
161
|
-
<option>Option 2</option>
|
|
162
|
-
</select>
|
|
163
|
-
</body>
|
|
164
|
-
</html>
|
|
165
|
-
`);
|
|
166
|
-
|
|
167
|
-
const snapshot = await getSnapshot();
|
|
168
|
-
|
|
169
|
-
expect(snapshot).toContain("textbox");
|
|
170
|
-
expect(snapshot).toContain("checkbox");
|
|
171
|
-
expect(snapshot).toContain("combobox");
|
|
172
|
-
});
|
|
173
|
-
|
|
174
|
-
test("renders nested structure correctly", async () => {
|
|
175
|
-
await setContent(`
|
|
176
|
-
<html>
|
|
177
|
-
<body>
|
|
178
|
-
<nav>
|
|
179
|
-
<ul>
|
|
180
|
-
<li><a href="/home">Home</a></li>
|
|
181
|
-
<li><a href="/about">About</a></li>
|
|
182
|
-
</ul>
|
|
183
|
-
</nav>
|
|
184
|
-
</body>
|
|
185
|
-
</html>
|
|
186
|
-
`);
|
|
187
|
-
|
|
188
|
-
const snapshot = await getSnapshot();
|
|
189
|
-
|
|
190
|
-
expect(snapshot).toContain("navigation");
|
|
191
|
-
expect(snapshot).toContain("list");
|
|
192
|
-
expect(snapshot).toContain("listitem");
|
|
193
|
-
expect(snapshot).toContain("link");
|
|
194
|
-
});
|
|
195
|
-
|
|
196
|
-
test("handles disabled elements", async () => {
|
|
197
|
-
await setContent(`
|
|
198
|
-
<html>
|
|
199
|
-
<body>
|
|
200
|
-
<button disabled>Disabled Button</button>
|
|
201
|
-
</body>
|
|
202
|
-
</html>
|
|
203
|
-
`);
|
|
204
|
-
|
|
205
|
-
const snapshot = await getSnapshot();
|
|
206
|
-
|
|
207
|
-
expect(snapshot).toContain("[disabled]");
|
|
208
|
-
});
|
|
209
|
-
|
|
210
|
-
test("handles checked checkboxes", async () => {
|
|
211
|
-
await setContent(`
|
|
212
|
-
<html>
|
|
213
|
-
<body>
|
|
214
|
-
<input type="checkbox" checked />
|
|
215
|
-
</body>
|
|
216
|
-
</html>
|
|
217
|
-
`);
|
|
218
|
-
|
|
219
|
-
const snapshot = await getSnapshot();
|
|
220
|
-
|
|
221
|
-
expect(snapshot).toContain("[checked]");
|
|
222
|
-
});
|
|
223
|
-
});
|