@phamvuhoang/otto-core 0.2.0 → 0.4.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.
- package/dist/cli-help.d.ts +16 -3
- package/dist/cli-help.d.ts.map +1 -1
- package/dist/cli-help.js +14 -4
- package/dist/cli-help.js.map +1 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/dist/linear-api.d.ts +161 -0
- package/dist/linear-api.d.ts.map +1 -0
- package/dist/linear-api.js +288 -0
- package/dist/linear-api.js.map +1 -0
- package/dist/linear-auth.d.ts +42 -0
- package/dist/linear-auth.d.ts.map +1 -0
- package/dist/linear-auth.js +115 -0
- package/dist/linear-auth.js.map +1 -0
- package/dist/linear-cli.d.ts +37 -0
- package/dist/linear-cli.d.ts.map +1 -0
- package/dist/linear-cli.js +176 -0
- package/dist/linear-cli.js.map +1 -0
- package/dist/linear-main.d.ts +5 -0
- package/dist/linear-main.d.ts.map +1 -0
- package/dist/linear-main.js +27 -0
- package/dist/linear-main.js.map +1 -0
- package/dist/loop.d.ts +2 -0
- package/dist/loop.d.ts.map +1 -1
- package/dist/loop.js +79 -5
- package/dist/loop.js.map +1 -1
- package/dist/preflight.d.ts +3 -0
- package/dist/preflight.d.ts.map +1 -1
- package/dist/preflight.js +13 -1
- package/dist/preflight.js.map +1 -1
- package/dist/run-bin.d.ts +21 -1
- package/dist/run-bin.d.ts.map +1 -1
- package/dist/run-bin.js +12 -6
- package/dist/run-bin.js.map +1 -1
- package/dist/stages.d.ts +10 -0
- package/dist/stages.d.ts.map +1 -1
- package/dist/stages.js +10 -0
- package/dist/stages.js.map +1 -1
- package/dist/watch.d.ts +53 -4
- package/dist/watch.d.ts.map +1 -1
- package/dist/watch.js +76 -11
- package/dist/watch.js.map +1 -1
- package/package.json +1 -1
- package/templates/ghprompt-workflow.md +6 -3
- package/templates/linear-completion.md +17 -0
- package/templates/linearafk-issue.md +31 -0
- package/templates/linearafk.md +29 -0
- package/templates/linearprompt.md +39 -0
- package/templates/prompt.md +4 -0
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# ISSUES
|
|
2
|
+
|
|
3
|
+
Two views of open Linear issues are provided at the start of context:
|
|
4
|
+
|
|
5
|
+
- `<issues-summary>` — the `otto-linear list` command for the lean index
|
|
6
|
+
(identifier, title, state, url). Run it to triage and pick a task.
|
|
7
|
+
- `<issues-full-file>` — path to a spilled JSON file containing full issue
|
|
8
|
+
detail (bodies + comments). `Read` that file (with `offset`/`limit` if it is
|
|
9
|
+
large) once you have picked an issue you want to act on.
|
|
10
|
+
|
|
11
|
+
Issue selection is already filtered to open Linear issues carrying the `otto`
|
|
12
|
+
label (override via `OTTO_LINEAR_LABEL`, narrow to a team via `OTTO_LINEAR_TEAM`).
|
|
13
|
+
|
|
14
|
+
You've also been passed a file containing the last few commits. Review these to
|
|
15
|
+
understand what work has been done.
|
|
16
|
+
|
|
17
|
+
If all AFK tasks are complete, output <promise>NO MORE TASKS</promise>.
|
|
18
|
+
|
|
19
|
+
# TASK SELECTION
|
|
20
|
+
|
|
21
|
+
Pick the next task. Prioritize tasks in this order:
|
|
22
|
+
|
|
23
|
+
1. Critical bugfixes
|
|
24
|
+
2. Development infrastructure
|
|
25
|
+
|
|
26
|
+
Getting development infrastructure like tests and types and dev scripts ready is an important precursor to building features.
|
|
27
|
+
|
|
28
|
+
3. Tracer bullets for new features
|
|
29
|
+
|
|
30
|
+
Tracer bullets are small slices of functionality that go through all layers of the system, allowing you to test and validate your approach early. This helps in identifying potential issues and ensures that the overall architecture is sound before investing significant time in development.
|
|
31
|
+
|
|
32
|
+
TL;DR - build a tiny, end-to-end slice of the feature first, then expand it out.
|
|
33
|
+
|
|
34
|
+
4. Polish and quick wins
|
|
35
|
+
5. Refactors
|
|
36
|
+
|
|
37
|
+
@include:ghprompt-workflow.md
|
|
38
|
+
|
|
39
|
+
@include:linear-completion.md
|
package/templates/prompt.md
CHANGED
|
@@ -92,6 +92,10 @@ If, while doing the task, you discover a NEW durable, reusable learning — a re
|
|
|
92
92
|
|
|
93
93
|
Dedupe against existing entries and prune anything no longer true. This file is committed WITH your task commit (it is git-tracked) — do NOT make a separate commit for it. The bar is durable AND reusable: do NOT record routine or one-off task details.
|
|
94
94
|
|
|
95
|
+
# FINISHING THE RUN
|
|
96
|
+
|
|
97
|
+
Committing the code is NOT necessarily the end of the run. How work "ships" depends on THIS repo's conventions — consult `<learnings>` / `./.otto/LEARNINGS.md`. If the repo ships via pull request, keep all work (including later review-fix rounds) on the SAME feature branch, and when it is complete `git push` the branch and open or refresh a single PR into the default branch — never spin up a second branch per round. Otherwise, committing to the working branch is the end-state.
|
|
98
|
+
|
|
95
99
|
# FINAL RULES
|
|
96
100
|
|
|
97
101
|
ONLY WORK ON A SINGLE TASK.
|