@plaited/acp-harness 0.2.5 → 0.3.1

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 (57) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +120 -16
  3. package/bin/cli.ts +105 -636
  4. package/bin/tests/cli.spec.ts +218 -51
  5. package/package.json +20 -4
  6. package/src/acp-client.ts +5 -4
  7. package/src/acp-transport.ts +14 -7
  8. package/src/adapter-check.ts +542 -0
  9. package/src/adapter-scaffold.ts +934 -0
  10. package/src/balance.ts +232 -0
  11. package/src/calibrate.ts +300 -0
  12. package/src/capture.ts +457 -0
  13. package/src/constants.ts +94 -0
  14. package/src/grader-loader.ts +174 -0
  15. package/src/harness.ts +35 -0
  16. package/src/schemas-cli.ts +239 -0
  17. package/src/schemas.ts +567 -0
  18. package/src/summarize.ts +245 -0
  19. package/src/tests/adapter-check.spec.ts +70 -0
  20. package/src/tests/adapter-scaffold.spec.ts +112 -0
  21. package/src/tests/fixtures/grader-bad-module.ts +5 -0
  22. package/src/tests/fixtures/grader-exec-fail.py +9 -0
  23. package/src/tests/fixtures/grader-exec-invalid.py +6 -0
  24. package/src/tests/fixtures/grader-exec.py +29 -0
  25. package/src/tests/fixtures/grader-module.ts +14 -0
  26. package/src/tests/grader-loader.spec.ts +153 -0
  27. package/src/trials.ts +395 -0
  28. package/src/validate-refs.ts +188 -0
  29. package/.claude/rules/accuracy.md +0 -43
  30. package/.claude/rules/bun-apis.md +0 -80
  31. package/.claude/rules/code-review.md +0 -254
  32. package/.claude/rules/git-workflow.md +0 -37
  33. package/.claude/rules/github.md +0 -154
  34. package/.claude/rules/testing.md +0 -172
  35. package/.claude/skills/acp-harness/SKILL.md +0 -310
  36. package/.claude/skills/acp-harness/assets/Dockerfile.acp +0 -25
  37. package/.claude/skills/acp-harness/assets/docker-compose.acp.yml +0 -19
  38. package/.claude/skills/acp-harness/references/downstream.md +0 -288
  39. package/.claude/skills/acp-harness/references/output-formats.md +0 -221
  40. package/.claude-plugin/marketplace.json +0 -15
  41. package/.claude-plugin/plugin.json +0 -16
  42. package/.github/CODEOWNERS +0 -6
  43. package/.github/workflows/ci.yml +0 -63
  44. package/.github/workflows/publish.yml +0 -146
  45. package/.mcp.json +0 -20
  46. package/CLAUDE.md +0 -92
  47. package/Dockerfile.test +0 -23
  48. package/biome.json +0 -96
  49. package/bun.lock +0 -513
  50. package/docker-compose.test.yml +0 -21
  51. package/scripts/bun-test-wrapper.sh +0 -46
  52. package/src/acp.constants.ts +0 -56
  53. package/src/acp.schemas.ts +0 -161
  54. package/src/acp.types.ts +0 -28
  55. package/src/tests/fixtures/.claude/settings.local.json +0 -8
  56. package/src/tests/fixtures/.claude/skills/greeting/SKILL.md +0 -17
  57. package/tsconfig.json +0 -32
package/biome.json DELETED
@@ -1,96 +0,0 @@
1
- {
2
- "$schema": "https://biomejs.dev/schemas/2.3.11/schema.json",
3
- "vcs": { "enabled": true, "clientKind": "git", "useIgnoreFile": true },
4
- "files": {
5
- "ignoreUnknown": false,
6
- "includes": ["**"]
7
- },
8
- "formatter": {
9
- "enabled": true,
10
- "formatWithErrors": false,
11
- "indentStyle": "space",
12
- "indentWidth": 2,
13
- "lineEnding": "lf",
14
- "lineWidth": 120,
15
- "attributePosition": "multiline",
16
- "bracketSameLine": false,
17
- "bracketSpacing": true,
18
- "expand": "auto",
19
- "useEditorconfig": true,
20
- "includes": ["**", "!!**/dist/**/*", "!!**/*.json", "!!**/*.md", "!!**/*.d.ts"]
21
- },
22
- "linter": {
23
- "enabled": true,
24
- "rules": {
25
- "recommended": true,
26
- "correctness": {
27
- "noUnusedVariables": "error",
28
- "noUnusedImports": "error",
29
- "useImportExtensions": "error"
30
- },
31
- "performance": {
32
- "noAccumulatingSpread": "off"
33
- },
34
- "style": {
35
- "noNestedTernary": "off",
36
- "noNonNullAssertion": "off",
37
- "useBlockStatements": "off",
38
- "useTemplate": "error",
39
- "useImportType": "error",
40
- "noNegationElse": "warn"
41
- },
42
- "suspicious": {
43
- "noExplicitAny": "error",
44
- "noConsole": {
45
- "level": "warn",
46
- "options": {
47
- "allow": ["error", "warn", "table", "info", "group", "groupEnd"]
48
- }
49
- }
50
- },
51
- "complexity": {
52
- "useLiteralKeys": "warn"
53
- }
54
- },
55
- "includes": ["**", "!!**/*.d.ts"]
56
- },
57
- "javascript": {
58
- "formatter": {
59
- "jsxQuoteStyle": "single",
60
- "quoteProperties": "asNeeded",
61
- "trailingCommas": "all",
62
- "semicolons": "asNeeded",
63
- "arrowParentheses": "always",
64
- "bracketSameLine": false,
65
- "quoteStyle": "single",
66
- "attributePosition": "multiline",
67
- "bracketSpacing": true
68
- }
69
- },
70
- "overrides": [
71
- {
72
- "includes": ["**/*.ts", "**/*.tsx"],
73
- "linter": {
74
- "rules": {
75
- "complexity": { "noArguments": "error" },
76
- "style": { "useConst": "error" }
77
- }
78
- }
79
- },
80
- {
81
- "includes": ["**/tests/**/*", "**/skills/**/*"],
82
- "linter": {
83
- "rules": {
84
- "suspicious": {
85
- "noExplicitAny": "warn",
86
- "noConsole": "off"
87
- }
88
- }
89
- }
90
- }
91
- ],
92
- "assist": {
93
- "enabled": true,
94
- "actions": { "source": { "organizeImports": "on" } }
95
- }
96
- }