atom-lite 0.5.1 → 0.6.3

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 (105) hide show
  1. package/CHANGELOG.md +33 -1
  2. package/README.md +60 -116
  3. package/dist/agent/loop.d.ts +16 -0
  4. package/dist/agent/loop.js +158 -11
  5. package/dist/agent/loop.js.map +1 -1
  6. package/dist/agent/system-prompt.d.ts +1 -0
  7. package/dist/agent/system-prompt.js +23 -0
  8. package/dist/agent/system-prompt.js.map +1 -0
  9. package/dist/agent/turn-recorder.d.ts +4 -0
  10. package/dist/agent/turn-recorder.js +1 -0
  11. package/dist/agent/turn-recorder.js.map +1 -1
  12. package/dist/agent/types.d.ts +33 -0
  13. package/dist/cli/app.js +337 -55
  14. package/dist/cli/app.js.map +1 -1
  15. package/dist/cli/commands.js +180 -0
  16. package/dist/cli/commands.js.map +1 -1
  17. package/dist/cli/diff-view.d.ts +18 -0
  18. package/dist/cli/diff-view.js +66 -0
  19. package/dist/cli/diff-view.js.map +1 -0
  20. package/dist/cli/main.js +2 -1
  21. package/dist/cli/main.js.map +1 -1
  22. package/dist/cli/panel.js +8 -8
  23. package/dist/cli/panel.js.map +1 -1
  24. package/dist/cli/status-line.d.ts +2 -0
  25. package/dist/cli/status-line.js +9 -1
  26. package/dist/cli/status-line.js.map +1 -1
  27. package/dist/cli/tool-box.d.ts +1 -1
  28. package/dist/cli/tool-box.js +47 -41
  29. package/dist/cli/tool-box.js.map +1 -1
  30. package/dist/config/defaults.d.ts +4 -5
  31. package/dist/config/defaults.js +6 -3
  32. package/dist/config/defaults.js.map +1 -1
  33. package/dist/config/load.js +29 -3
  34. package/dist/config/load.js.map +1 -1
  35. package/dist/config/schema.d.ts +14 -14
  36. package/dist/config/schema.js +8 -5
  37. package/dist/config/schema.js.map +1 -1
  38. package/dist/context/budget.js +19 -1
  39. package/dist/context/budget.js.map +1 -1
  40. package/dist/context/manager.js +1 -1
  41. package/dist/context/manager.js.map +1 -1
  42. package/dist/eval/runner.d.ts +51 -0
  43. package/dist/eval/runner.js +230 -0
  44. package/dist/eval/runner.js.map +1 -0
  45. package/dist/mcp/client.js +2 -1
  46. package/dist/mcp/client.js.map +1 -1
  47. package/dist/providers/context-window.d.ts +4 -0
  48. package/dist/providers/context-window.js +54 -0
  49. package/dist/providers/context-window.js.map +1 -1
  50. package/dist/providers/factory.js +3 -0
  51. package/dist/providers/factory.js.map +1 -1
  52. package/dist/providers/gemini.d.ts +2 -0
  53. package/dist/providers/gemini.js +18 -11
  54. package/dist/providers/gemini.js.map +1 -1
  55. package/dist/providers/ollama.d.ts +3 -0
  56. package/dist/providers/ollama.js +9 -0
  57. package/dist/providers/ollama.js.map +1 -1
  58. package/dist/providers/openai-compatible.d.ts +2 -0
  59. package/dist/providers/openai-compatible.js +24 -3
  60. package/dist/providers/openai-compatible.js.map +1 -1
  61. package/dist/runtime/background-tasks.d.ts +23 -0
  62. package/dist/runtime/background-tasks.js +141 -0
  63. package/dist/runtime/background-tasks.js.map +1 -0
  64. package/dist/runtime/checkpoint-store.d.ts +64 -0
  65. package/dist/runtime/checkpoint-store.js +419 -0
  66. package/dist/runtime/checkpoint-store.js.map +1 -0
  67. package/dist/runtime/modes.d.ts +3 -0
  68. package/dist/runtime/modes.js +8 -0
  69. package/dist/runtime/modes.js.map +1 -0
  70. package/dist/runtime/tool-executor.js +10 -0
  71. package/dist/runtime/tool-executor.js.map +1 -1
  72. package/dist/skills/registry.js +8 -1
  73. package/dist/skills/registry.js.map +1 -1
  74. package/dist/tools/bash.js +46 -10
  75. package/dist/tools/bash.js.map +1 -1
  76. package/dist/tools/edit.js +28 -8
  77. package/dist/tools/edit.js.map +1 -1
  78. package/dist/tools/glob.d.ts +2 -0
  79. package/dist/tools/glob.js +97 -0
  80. package/dist/tools/glob.js.map +1 -0
  81. package/dist/tools/grep.d.ts +2 -0
  82. package/dist/tools/grep.js +290 -0
  83. package/dist/tools/grep.js.map +1 -0
  84. package/dist/tools/index.d.ts +3 -0
  85. package/dist/tools/index.js +3 -0
  86. package/dist/tools/index.js.map +1 -1
  87. package/dist/tools/read.js +70 -9
  88. package/dist/tools/read.js.map +1 -1
  89. package/dist/tools/task.d.ts +2 -0
  90. package/dist/tools/task.js +55 -0
  91. package/dist/tools/task.js.map +1 -0
  92. package/dist/tools/types.d.ts +10 -1
  93. package/dist/tools/write.js +29 -8
  94. package/dist/tools/write.js.map +1 -1
  95. package/dist/types.d.ts +9 -3
  96. package/dist/types.js +1 -4
  97. package/dist/types.js.map +1 -1
  98. package/dist/version.d.ts +1 -0
  99. package/dist/version.js +14 -0
  100. package/dist/version.js.map +1 -0
  101. package/package.json +5 -3
  102. package/skills/atom-lite-extensions/SKILL.md +240 -0
  103. package/skills/caveman/SKILL.md +89 -0
  104. package/skills/code-review/SKILL.md +46 -0
  105. package/skills/optimization/SKILL.md +51 -0
@@ -0,0 +1,46 @@
1
+ ---
2
+ name: code-review
3
+ description: >
4
+ Review code changes against repository standards and the originating spec.
5
+ Use for "review this PR", "review the diff", "code review", or before merging.
6
+ ---
7
+
8
+ # Code Review
9
+
10
+ Two-axis review of a change. Run both axes and report them separately.
11
+
12
+ ## Axes
13
+
14
+ 1. **Standards** — does the code follow this repo's documented conventions?
15
+ Sources: `AGENTS.md`, `CONTRIBUTING.md`, `docs/adr/*`, TypeScript strict mode,
16
+ NodeNext ESM, named exports, no new runtime deps without discussion.
17
+ Also apply the smell baseline: mysterious name, duplicated code, feature envy,
18
+ data clumps, primitive obsession, repeated switches, shotgun surgery,
19
+ divergent change, speculative generality, message chains, middle man,
20
+ refused bequest. A documented repo standard always overrides a smell.
21
+
22
+ 2. **Spec** — does the code implement what the issue/spec asked for?
23
+ Find the spec under `.scratch/<feature>/spec.md` or the referenced issue.
24
+
25
+ ## Process
26
+
27
+ 1. Pin the fixed point: `git diff <base>...HEAD` (three-dot). List commits.
28
+ 2. Identify standards sources and the spec source.
29
+ 3. For each file/hunk, report:
30
+ - Standards: hard violations (cite file + rule) and judgement-call smells.
31
+ - Spec: missing/partial requirements, scope creep, wrong-looking implementations.
32
+ Quote the spec line for each spec finding.
33
+ 4. Aggregate under `## Standards` and `## Spec` headings. Do not merge axes.
34
+
35
+ ## Output format
36
+
37
+ - `## Standards` — findings per file/hunk, hard vs judgement.
38
+ - `## Spec` — findings keyed to spec lines.
39
+ - One-line summary per axis: count + worst issue.
40
+
41
+ ## Rules
42
+
43
+ - Skip anything tooling enforces (tsc, tests, lint).
44
+ - Smells are judgement calls, never hard violations.
45
+ - Report facts, not opinions; cite paths and lines.
46
+ - Small, reviewable findings are preferred over exhaustive nitpicks.
@@ -0,0 +1,51 @@
1
+ ---
2
+ name: optimization
3
+ description: >
4
+ Optimize code for performance and efficiency while preserving behavior.
5
+ Use for "optimize", "make faster", "reduce memory", "performance".
6
+ ---
7
+
8
+ # Optimization
9
+
10
+ Expert performance engineer. Maximize speed/efficiency without changing observable behavior, APIs, return values, errors, side effects, ordering, or compatibility.
11
+
12
+ ## Strategy
13
+
14
+ 1. Understand implementation and hot paths.
15
+ 2. Find real bottlenecks (profile/analyze), not guesses.
16
+ 3. Fix algorithmic complexity before micro-optimizations.
17
+ 4. Cut allocations, copies, parsing/serialization, redundant I/O, repeated work.
18
+ 5. Improve data structures, caching, batching, concurrency where safe.
19
+ 6. Prefer small, safe, high-impact changes over risky rewrites.
20
+
21
+ ## Constraints
22
+
23
+ - Never change behavior, validation, error handling, or edge cases.
24
+ - Never weaken type safety or security.
25
+ - Never introduce races or observable reordering.
26
+ - Never edit tests to fit a change.
27
+ - No speculative complexity without measurable gain.
28
+ - Behavior preservation always beats performance.
29
+
30
+ ## Verification
31
+
32
+ Before: understand behavior, find tests/benchmarks, establish baseline.
33
+ After: run tests/typecheck/build; compare baseline; check edge cases and diff.
34
+
35
+ No tests/benchmarks? State what is unverified.
36
+
37
+ ## Execution
38
+
39
+ Work autonomously. Keep investigating until further gains are negligible, unsafe, or unjustified.
40
+
41
+ ## Report
42
+
43
+ Provide concise, evidence-based summary:
44
+
45
+ - Changes made
46
+ - Bottlenecks eliminated
47
+ - Before/after metrics (only measured)
48
+ - Verification status
49
+ - Limitations
50
+
51
+ Use actual numbers only. If unmeasured, say "Not benchmarked" or "Expected benefit". If no improvement, say so.