@opendesignai/harness 0.2.0-alpha.0 → 0.4.0-alpha.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.
Files changed (39) hide show
  1. package/README.md +90 -44
  2. package/dist/THIRD-PARTY-LICENSES.md +63 -0
  3. package/dist/child-env-cPBUueQI.mjs +17 -0
  4. package/dist/cli.mjs +4916 -209
  5. package/dist/config.d.mts +68 -0
  6. package/dist/config.mjs +12 -0
  7. package/dist/eslint-comments.mjs +1679 -4
  8. package/dist/hook.d.mts +19 -0
  9. package/dist/hook.mjs +9843 -0
  10. package/dist/plugin.d.mts +1 -1
  11. package/dist/plugin.mjs +283 -27
  12. package/dist/report.d.mts +40 -0
  13. package/dist/report.mjs +34 -0
  14. package/docs/adopting.md +107 -11
  15. package/docs/agent-setup.md +21 -0
  16. package/docs/agents.md +42 -0
  17. package/docs/comments.md +33 -0
  18. package/docs/decisions/0001-oxlint.md +28 -1
  19. package/docs/decisions/0002-react-compiler-rules.md +39 -0
  20. package/docs/decisions/0004-type-aware-rules.md +43 -0
  21. package/docs/decisions/0005-test-weakening-rules.md +28 -0
  22. package/docs/diagnostics.md +58 -0
  23. package/docs/hooks.md +152 -36
  24. package/docs/ratchet.md +23 -21
  25. package/docs/rules/no-commented-out-code.md +47 -0
  26. package/docs/rules/no-swallowed-catch.md +18 -7
  27. package/docs/size.md +3 -1
  28. package/docs/verify.md +80 -0
  29. package/package.json +30 -6
  30. package/presets/react-compiler.json +2 -1
  31. package/presets/rules/base.json +5 -0
  32. package/presets/strict-types.json +5 -0
  33. package/presets/testing.json +22 -0
  34. package/presets/type-aware.json +69 -0
  35. package/skills/od-feature-intake/SKILL.md +22 -0
  36. package/skills/od-pre-pr-review/SKILL.md +46 -0
  37. package/dist/cli.d.mts +0 -1
  38. package/dist/eslint-comments.d.mts +0 -40
  39. package/dist/paths-DBoYPrGy.mjs +0 -59
@@ -0,0 +1,19 @@
1
+ type AgentKind = "cc" | "codex" | "agy";
2
+ type HookEventKind = "pre-bash" | "pre-edit" | "post-tool" | "stop" | "session-start" | "pre-invocation";
3
+ interface ExecHookCommand {
4
+ readonly type: "command";
5
+ readonly command: "node";
6
+ readonly args: readonly string[];
7
+ readonly timeout: number;
8
+ readonly onFailure?: "block";
9
+ }
10
+ interface ShellHookCommand {
11
+ readonly type: "command";
12
+ readonly command: string;
13
+ readonly timeout: number;
14
+ }
15
+ export declare function hookCommand(agent: "cc", event: HookEventKind): ExecHookCommand;
16
+ export declare function hookCommand(agent: "codex" | "agy", event: HookEventKind): ShellHookCommand;
17
+ export declare function hookCommand(agent: AgentKind, event: HookEventKind): ExecHookCommand | ShellHookCommand;
18
+ export declare function runHook(agent: string, event: string): Promise<void>;
19
+ export {};