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.
- package/CHANGELOG.md +33 -1
- package/README.md +60 -116
- package/dist/agent/loop.d.ts +16 -0
- package/dist/agent/loop.js +158 -11
- package/dist/agent/loop.js.map +1 -1
- package/dist/agent/system-prompt.d.ts +1 -0
- package/dist/agent/system-prompt.js +23 -0
- package/dist/agent/system-prompt.js.map +1 -0
- package/dist/agent/turn-recorder.d.ts +4 -0
- package/dist/agent/turn-recorder.js +1 -0
- package/dist/agent/turn-recorder.js.map +1 -1
- package/dist/agent/types.d.ts +33 -0
- package/dist/cli/app.js +337 -55
- package/dist/cli/app.js.map +1 -1
- package/dist/cli/commands.js +180 -0
- package/dist/cli/commands.js.map +1 -1
- package/dist/cli/diff-view.d.ts +18 -0
- package/dist/cli/diff-view.js +66 -0
- package/dist/cli/diff-view.js.map +1 -0
- package/dist/cli/main.js +2 -1
- package/dist/cli/main.js.map +1 -1
- package/dist/cli/panel.js +8 -8
- package/dist/cli/panel.js.map +1 -1
- package/dist/cli/status-line.d.ts +2 -0
- package/dist/cli/status-line.js +9 -1
- package/dist/cli/status-line.js.map +1 -1
- package/dist/cli/tool-box.d.ts +1 -1
- package/dist/cli/tool-box.js +47 -41
- package/dist/cli/tool-box.js.map +1 -1
- package/dist/config/defaults.d.ts +4 -5
- package/dist/config/defaults.js +6 -3
- package/dist/config/defaults.js.map +1 -1
- package/dist/config/load.js +29 -3
- package/dist/config/load.js.map +1 -1
- package/dist/config/schema.d.ts +14 -14
- package/dist/config/schema.js +8 -5
- package/dist/config/schema.js.map +1 -1
- package/dist/context/budget.js +19 -1
- package/dist/context/budget.js.map +1 -1
- package/dist/context/manager.js +1 -1
- package/dist/context/manager.js.map +1 -1
- package/dist/eval/runner.d.ts +51 -0
- package/dist/eval/runner.js +230 -0
- package/dist/eval/runner.js.map +1 -0
- package/dist/mcp/client.js +2 -1
- package/dist/mcp/client.js.map +1 -1
- package/dist/providers/context-window.d.ts +4 -0
- package/dist/providers/context-window.js +54 -0
- package/dist/providers/context-window.js.map +1 -1
- package/dist/providers/factory.js +3 -0
- package/dist/providers/factory.js.map +1 -1
- package/dist/providers/gemini.d.ts +2 -0
- package/dist/providers/gemini.js +18 -11
- package/dist/providers/gemini.js.map +1 -1
- package/dist/providers/ollama.d.ts +3 -0
- package/dist/providers/ollama.js +9 -0
- package/dist/providers/ollama.js.map +1 -1
- package/dist/providers/openai-compatible.d.ts +2 -0
- package/dist/providers/openai-compatible.js +24 -3
- package/dist/providers/openai-compatible.js.map +1 -1
- package/dist/runtime/background-tasks.d.ts +23 -0
- package/dist/runtime/background-tasks.js +141 -0
- package/dist/runtime/background-tasks.js.map +1 -0
- package/dist/runtime/checkpoint-store.d.ts +64 -0
- package/dist/runtime/checkpoint-store.js +419 -0
- package/dist/runtime/checkpoint-store.js.map +1 -0
- package/dist/runtime/modes.d.ts +3 -0
- package/dist/runtime/modes.js +8 -0
- package/dist/runtime/modes.js.map +1 -0
- package/dist/runtime/tool-executor.js +10 -0
- package/dist/runtime/tool-executor.js.map +1 -1
- package/dist/skills/registry.js +8 -1
- package/dist/skills/registry.js.map +1 -1
- package/dist/tools/bash.js +46 -10
- package/dist/tools/bash.js.map +1 -1
- package/dist/tools/edit.js +28 -8
- package/dist/tools/edit.js.map +1 -1
- package/dist/tools/glob.d.ts +2 -0
- package/dist/tools/glob.js +97 -0
- package/dist/tools/glob.js.map +1 -0
- package/dist/tools/grep.d.ts +2 -0
- package/dist/tools/grep.js +290 -0
- package/dist/tools/grep.js.map +1 -0
- package/dist/tools/index.d.ts +3 -0
- package/dist/tools/index.js +3 -0
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/read.js +70 -9
- package/dist/tools/read.js.map +1 -1
- package/dist/tools/task.d.ts +2 -0
- package/dist/tools/task.js +55 -0
- package/dist/tools/task.js.map +1 -0
- package/dist/tools/types.d.ts +10 -1
- package/dist/tools/write.js +29 -8
- package/dist/tools/write.js.map +1 -1
- package/dist/types.d.ts +9 -3
- package/dist/types.js +1 -4
- package/dist/types.js.map +1 -1
- package/dist/version.d.ts +1 -0
- package/dist/version.js +14 -0
- package/dist/version.js.map +1 -0
- package/package.json +5 -3
- package/skills/atom-lite-extensions/SKILL.md +240 -0
- package/skills/caveman/SKILL.md +89 -0
- package/skills/code-review/SKILL.md +46 -0
- 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.
|