@ob1-sg/horizon 0.1.12 → 0.2.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.
- package/README.md +95 -174
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +84 -11
- package/dist/index.js.map +1 -1
- package/dist/lib/__tests__/update-checker.test.js +4 -5
- package/dist/lib/__tests__/update-checker.test.js.map +1 -1
- package/dist/lib/claude.d.ts.map +1 -1
- package/dist/lib/claude.js +2 -1
- package/dist/lib/claude.js.map +1 -1
- package/dist/lib/codex.js +1 -1
- package/dist/lib/codex.js.map +1 -1
- package/dist/lib/git.d.ts +10 -0
- package/dist/lib/git.d.ts.map +1 -1
- package/dist/lib/git.js +67 -1
- package/dist/lib/git.js.map +1 -1
- package/dist/lib/provider.d.ts +1 -0
- package/dist/lib/provider.d.ts.map +1 -1
- package/dist/lib/provider.js.map +1 -1
- package/dist/lib/setup.d.ts.map +1 -1
- package/dist/lib/setup.js +3 -7
- package/dist/lib/setup.js.map +1 -1
- package/dist/lib/update-checker.d.ts.map +1 -1
- package/dist/lib/update-checker.js +7 -5
- package/dist/lib/update-checker.js.map +1 -1
- package/dist/types.d.ts +1 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/prompts/agent2-worker-implement.md +10 -19
- package/prompts/agent2-worker-oneshot.md +10 -26
- package/prompts/agent2-worker-plan.md +10 -19
- package/prompts/agent2-worker-research.md +10 -26
- package/prompts/agent2-worker-specification.md +10 -19
- package/prompts/agent2-worker-validate.md +10 -19
- package/prompts/agent2-worker.md +3 -3
|
@@ -109,11 +109,13 @@ export async function checkForUpdates() {
|
|
|
109
109
|
}
|
|
110
110
|
// Fetch from npm registry (non-blocking, with timeout)
|
|
111
111
|
const latestVersion = await fetchLatestVersion();
|
|
112
|
-
//
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
112
|
+
// Only cache successful fetches — failed fetches (null) should retry next run
|
|
113
|
+
if (latestVersion !== null) {
|
|
114
|
+
writeCache({
|
|
115
|
+
lastCheck: now,
|
|
116
|
+
latestVersion,
|
|
117
|
+
});
|
|
118
|
+
}
|
|
117
119
|
return {
|
|
118
120
|
currentVersion,
|
|
119
121
|
latestVersion,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-checker.js","sourceRoot":"","sources":["../../src/lib/update-checker.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,IAAI,CAAC;AACxE,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,EAAE,OAAO,EAAE,MAAM,IAAI,CAAC;AAC7B,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAO1D,MAAM,SAAS,GAAG,IAAI,CAAC,OAAO,EAAE,EAAE,UAAU,CAAC,CAAC;AAC9C,MAAM,UAAU,GAAG,IAAI,CAAC,SAAS,EAAE,mBAAmB,CAAC,CAAC;AACxD,MAAM,iBAAiB,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC,CAAC,WAAW;AAE1D;;GAEG;AACH,SAAS,SAAS;IAChB,IAAI,CAAC;QACH,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC,EAAE,CAAC;YAC5B,OAAO,IAAI,CAAC;QACd,CAAC;QACD,MAAM,IAAI,GAAG,YAAY,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;QAC/C,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAC1B,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,IAAI,CAAC;IACd,CAAC;AACH,CAAC;AAED;;GAEG;AACH,SAAS,UAAU,CAAC,KAAkB;IACpC,IAAI,CAAC;QACH,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,EAAE,CAAC;YAC3B,SAAS,CAAC,SAAS,EAAE,EAAE,SAAS,EA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G5B,WAAW,EAAE,OAAO,CAAC;IAGrB,yBAAyB,EAAE,MAAM,CAAC;IAClC,wBAAwB,EAAE,MAAM,CAAC;IAGjC,SAAS,EAAE,SAAS,CAAC;CACtB;AAGD,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,OAAO,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAGD,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,gBAAiB,SAAQ,gBAAgB;IACxD,YAAY,EAAE,oBAAoB,CAAC;CACpC"}
|
package/package.json
CHANGED
|
@@ -2,34 +2,25 @@
|
|
|
2
2
|
|
|
3
3
|
You are the Implement Worker agent in the Horizon system. Your job is to execute an implementation plan, writing code and verifying each phase.
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Working Directory Verification (FIRST STEP - DO THIS BEFORE ANYTHING ELSE)
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
Your working directory is already set up on the correct branch by the orchestrator (via git worktree). Verify and pull latest:
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
|
-
#
|
|
11
|
-
git fetch origin
|
|
12
|
-
|
|
13
|
-
# List available horizon branches to find the one for this issue
|
|
14
|
-
git branch -a | grep "horizon/"
|
|
15
|
-
|
|
16
|
-
# Find and checkout the branch matching this issue identifier
|
|
17
|
-
# Look for: horizon/{issue_identifier} (e.g., horizon/RSK-123)
|
|
18
|
-
git checkout horizon/{issue_identifier}
|
|
19
|
-
|
|
20
|
-
# Pull latest changes from remote
|
|
21
|
-
git pull origin horizon/{issue_identifier} --rebase
|
|
22
|
-
|
|
23
|
-
# Verify you're on the correct branch
|
|
10
|
+
# Confirm you're on the correct branch
|
|
24
11
|
git branch --show-current
|
|
12
|
+
|
|
13
|
+
# Pull latest changes
|
|
14
|
+
git fetch origin
|
|
15
|
+
git pull --rebase
|
|
25
16
|
```
|
|
26
17
|
|
|
27
|
-
Replace `{issue_identifier}` with the actual identifier from the issue context (e.g., `RSK-123`).
|
|
18
|
+
The branch should be `horizon/{issue_identifier}`. Replace `{issue_identifier}` with the actual identifier from the issue context (e.g., `RSK-123`).
|
|
28
19
|
|
|
29
20
|
**Important**:
|
|
30
|
-
-
|
|
31
|
-
- If `git pull --rebase` fails with conflicts, stop and output an error. Do not proceed with stale code.
|
|
21
|
+
- Verify `git branch --show-current` shows `horizon/{issue_identifier}`. If not, stop and output an error.
|
|
32
22
|
- All commits and pushes must go to this branch, never to main.
|
|
23
|
+
- Do NOT run `git checkout main` in this working directory.
|
|
33
24
|
|
|
34
25
|
## Input Validation
|
|
35
26
|
|
|
@@ -2,41 +2,25 @@
|
|
|
2
2
|
|
|
3
3
|
You are the Oneshot Worker agent in the Horizon system. Your job is to quickly complete small, well-defined tasks in a single session without the full research/plan/implement/validate cycle.
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Working Directory Verification (FIRST STEP - DO THIS BEFORE ANYTHING ELSE)
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
Your working directory is already set up on the correct branch by the orchestrator (via git worktree). Verify and pull latest:
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
|
-
#
|
|
11
|
-
git fetch origin
|
|
12
|
-
|
|
13
|
-
# List existing horizon branches to see what's available
|
|
14
|
-
git branch -a | grep "horizon/"
|
|
15
|
-
|
|
16
|
-
# Check if branch for this issue already exists
|
|
17
|
-
# Look for: horizon/{issue_identifier} (e.g., horizon/RSK-123)
|
|
18
|
-
if git show-ref --verify --quiet refs/heads/horizon/{issue_identifier} || \
|
|
19
|
-
git show-ref --verify --quiet refs/remotes/origin/horizon/{issue_identifier}; then
|
|
20
|
-
# Branch exists - check it out and pull latest
|
|
21
|
-
git checkout horizon/{issue_identifier}
|
|
22
|
-
git pull origin horizon/{issue_identifier} --rebase
|
|
23
|
-
else
|
|
24
|
-
# Branch doesn't exist - create from main
|
|
25
|
-
git checkout main
|
|
26
|
-
git pull origin main --rebase
|
|
27
|
-
git checkout -b horizon/{issue_identifier}
|
|
28
|
-
fi
|
|
29
|
-
|
|
30
|
-
# Verify you're on the correct branch
|
|
10
|
+
# Confirm you're on the correct branch
|
|
31
11
|
git branch --show-current
|
|
12
|
+
|
|
13
|
+
# Pull latest changes
|
|
14
|
+
git fetch origin
|
|
15
|
+
git pull --rebase
|
|
32
16
|
```
|
|
33
17
|
|
|
34
|
-
Replace `{issue_identifier}` with the actual identifier from the issue context (e.g., `RSK-123`).
|
|
18
|
+
The branch should be `horizon/{issue_identifier}`. Replace `{issue_identifier}` with the actual identifier from the issue context (e.g., `RSK-123`).
|
|
35
19
|
|
|
36
20
|
**Important**:
|
|
37
|
-
-
|
|
38
|
-
- If `git pull --rebase` fails with conflicts, stop and output an error. Do not proceed with stale code.
|
|
21
|
+
- Verify `git branch --show-current` shows `horizon/{issue_identifier}`. If not, stop and output an error.
|
|
39
22
|
- All commits and pushes must go to this branch, never to main.
|
|
23
|
+
- Do NOT run `git checkout main` in this working directory.
|
|
40
24
|
|
|
41
25
|
## Input Validation
|
|
42
26
|
|
|
@@ -2,34 +2,25 @@
|
|
|
2
2
|
|
|
3
3
|
You are the Plan Worker agent in the Horizon system. Your job is to create a detailed implementation plan based on prior research.
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Working Directory Verification (FIRST STEP - DO THIS BEFORE ANYTHING ELSE)
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
Your working directory is already set up on the correct branch by the orchestrator (via git worktree). Verify and pull latest:
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
|
-
#
|
|
11
|
-
git fetch origin
|
|
12
|
-
|
|
13
|
-
# List available horizon branches to find the one for this issue
|
|
14
|
-
git branch -a | grep "horizon/"
|
|
15
|
-
|
|
16
|
-
# Find and checkout the branch matching this issue identifier
|
|
17
|
-
# Look for: horizon/{issue_identifier} (e.g., horizon/RSK-123)
|
|
18
|
-
git checkout horizon/{issue_identifier}
|
|
19
|
-
|
|
20
|
-
# Pull latest changes from remote
|
|
21
|
-
git pull origin horizon/{issue_identifier} --rebase
|
|
22
|
-
|
|
23
|
-
# Verify you're on the correct branch
|
|
10
|
+
# Confirm you're on the correct branch
|
|
24
11
|
git branch --show-current
|
|
12
|
+
|
|
13
|
+
# Pull latest changes
|
|
14
|
+
git fetch origin
|
|
15
|
+
git pull --rebase
|
|
25
16
|
```
|
|
26
17
|
|
|
27
|
-
Replace `{issue_identifier}` with the actual identifier from the issue context (e.g., `RSK-123`).
|
|
18
|
+
The branch should be `horizon/{issue_identifier}`. Replace `{issue_identifier}` with the actual identifier from the issue context (e.g., `RSK-123`).
|
|
28
19
|
|
|
29
20
|
**Important**:
|
|
30
|
-
-
|
|
31
|
-
- If `git pull --rebase` fails with conflicts, stop and output an error. Do not proceed with stale code.
|
|
21
|
+
- Verify `git branch --show-current` shows `horizon/{issue_identifier}`. If not, stop and output an error.
|
|
32
22
|
- All commits and pushes must go to this branch, never to main.
|
|
23
|
+
- Do NOT run `git checkout main` in this working directory.
|
|
33
24
|
|
|
34
25
|
## Input Validation
|
|
35
26
|
|
|
@@ -2,41 +2,25 @@
|
|
|
2
2
|
|
|
3
3
|
You are the Research Worker agent in the Horizon system. Your job is to deeply understand the codebase and requirements for an issue, then document your findings.
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Working Directory Verification (FIRST STEP - DO THIS BEFORE ANYTHING ELSE)
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
Your working directory is already set up on the correct branch by the orchestrator (via git worktree). Verify and pull latest:
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
|
-
#
|
|
11
|
-
git fetch origin
|
|
12
|
-
|
|
13
|
-
# List existing horizon branches to see what's available
|
|
14
|
-
git branch -a | grep "horizon/"
|
|
15
|
-
|
|
16
|
-
# Check if branch for this issue already exists
|
|
17
|
-
# Look for: horizon/{issue_identifier} (e.g., horizon/RSK-123)
|
|
18
|
-
if git show-ref --verify --quiet refs/heads/horizon/{issue_identifier} || \
|
|
19
|
-
git show-ref --verify --quiet refs/remotes/origin/horizon/{issue_identifier}; then
|
|
20
|
-
# Branch exists - check it out and pull latest
|
|
21
|
-
git checkout horizon/{issue_identifier}
|
|
22
|
-
git pull origin horizon/{issue_identifier} --rebase
|
|
23
|
-
else
|
|
24
|
-
# Branch doesn't exist - create from main
|
|
25
|
-
git checkout main
|
|
26
|
-
git pull origin main --rebase
|
|
27
|
-
git checkout -b horizon/{issue_identifier}
|
|
28
|
-
fi
|
|
29
|
-
|
|
30
|
-
# Verify you're on the correct branch
|
|
10
|
+
# Confirm you're on the correct branch
|
|
31
11
|
git branch --show-current
|
|
12
|
+
|
|
13
|
+
# Pull latest changes
|
|
14
|
+
git fetch origin
|
|
15
|
+
git pull --rebase
|
|
32
16
|
```
|
|
33
17
|
|
|
34
|
-
Replace `{issue_identifier}` with the actual identifier from the issue context (e.g., `RSK-123`).
|
|
18
|
+
The branch should be `horizon/{issue_identifier}`. Replace `{issue_identifier}` with the actual identifier from the issue context (e.g., `RSK-123`).
|
|
35
19
|
|
|
36
20
|
**Important**:
|
|
37
|
-
-
|
|
38
|
-
- If `git pull --rebase` fails with conflicts, stop and output an error. Do not proceed with stale code.
|
|
21
|
+
- Verify `git branch --show-current` shows `horizon/{issue_identifier}`. If not, stop and output an error.
|
|
39
22
|
- All commits and pushes must go to this branch, never to main.
|
|
23
|
+
- Do NOT run `git checkout main` in this working directory.
|
|
40
24
|
|
|
41
25
|
## Input Validation
|
|
42
26
|
|
|
@@ -2,34 +2,25 @@
|
|
|
2
2
|
|
|
3
3
|
You are the Specification Worker agent in the Horizon system. Your job is to take research findings and craft a user experience specification that is delightful, simple, and polished.
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Working Directory Verification (FIRST STEP - DO THIS BEFORE ANYTHING ELSE)
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
Your working directory is already set up on the correct branch by the orchestrator (via git worktree). Verify and pull latest:
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
|
-
#
|
|
11
|
-
git fetch origin
|
|
12
|
-
|
|
13
|
-
# List available horizon branches to find the one for this issue
|
|
14
|
-
git branch -a | grep "horizon/"
|
|
15
|
-
|
|
16
|
-
# Find and checkout the branch matching this issue identifier
|
|
17
|
-
# Look for: horizon/{issue_identifier} (e.g., horizon/RSK-123)
|
|
18
|
-
git checkout horizon/{issue_identifier}
|
|
19
|
-
|
|
20
|
-
# Pull latest changes from remote
|
|
21
|
-
git pull origin horizon/{issue_identifier} --rebase
|
|
22
|
-
|
|
23
|
-
# Verify you're on the correct branch
|
|
10
|
+
# Confirm you're on the correct branch
|
|
24
11
|
git branch --show-current
|
|
12
|
+
|
|
13
|
+
# Pull latest changes
|
|
14
|
+
git fetch origin
|
|
15
|
+
git pull --rebase
|
|
25
16
|
```
|
|
26
17
|
|
|
27
|
-
Replace `{issue_identifier}` with the actual identifier from the issue context (e.g., `RSK-123`).
|
|
18
|
+
The branch should be `horizon/{issue_identifier}`. Replace `{issue_identifier}` with the actual identifier from the issue context (e.g., `RSK-123`).
|
|
28
19
|
|
|
29
20
|
**Important**:
|
|
30
|
-
-
|
|
31
|
-
- If `git pull --rebase` fails with conflicts, stop and output an error. Do not proceed with stale code.
|
|
21
|
+
- Verify `git branch --show-current` shows `horizon/{issue_identifier}`. If not, stop and output an error.
|
|
32
22
|
- All commits and pushes must go to this branch, never to main.
|
|
23
|
+
- Do NOT run `git checkout main` in this working directory.
|
|
33
24
|
|
|
34
25
|
## Your Role
|
|
35
26
|
|
|
@@ -2,34 +2,25 @@
|
|
|
2
2
|
|
|
3
3
|
You are the Validate Worker agent in the Horizon system. Your job is to verify that an implementation meets all success criteria and is ready for production.
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Working Directory Verification (FIRST STEP - DO THIS BEFORE ANYTHING ELSE)
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
Your working directory is already set up on the correct branch by the orchestrator (via git worktree). Verify and pull latest:
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
|
-
#
|
|
11
|
-
git fetch origin
|
|
12
|
-
|
|
13
|
-
# List available horizon branches to find the one for this issue
|
|
14
|
-
git branch -a | grep "horizon/"
|
|
15
|
-
|
|
16
|
-
# Find and checkout the branch matching this issue identifier
|
|
17
|
-
# Look for: horizon/{issue_identifier} (e.g., horizon/RSK-123)
|
|
18
|
-
git checkout horizon/{issue_identifier}
|
|
19
|
-
|
|
20
|
-
# Pull latest changes from remote
|
|
21
|
-
git pull origin horizon/{issue_identifier} --rebase
|
|
22
|
-
|
|
23
|
-
# Verify you're on the correct branch
|
|
10
|
+
# Confirm you're on the correct branch
|
|
24
11
|
git branch --show-current
|
|
12
|
+
|
|
13
|
+
# Pull latest changes
|
|
14
|
+
git fetch origin
|
|
15
|
+
git pull --rebase
|
|
25
16
|
```
|
|
26
17
|
|
|
27
|
-
Replace `{issue_identifier}` with the actual identifier from the issue context (e.g., `RSK-123`).
|
|
18
|
+
The branch should be `horizon/{issue_identifier}`. Replace `{issue_identifier}` with the actual identifier from the issue context (e.g., `RSK-123`).
|
|
28
19
|
|
|
29
20
|
**Important**:
|
|
30
|
-
-
|
|
31
|
-
- If `git pull --rebase` fails with conflicts, stop and output an error. Do not proceed with stale code.
|
|
21
|
+
- Verify `git branch --show-current` shows `horizon/{issue_identifier}`. If not, stop and output an error.
|
|
32
22
|
- All commits and pushes must go to this branch, never to main.
|
|
23
|
+
- Do NOT run `git checkout main` in this working directory.
|
|
33
24
|
|
|
34
25
|
## Input Validation
|
|
35
26
|
|
package/prompts/agent2-worker.md
CHANGED
|
@@ -20,9 +20,9 @@ Agent 1 has specified which stage to execute. **Read the detailed instructions f
|
|
|
20
20
|
## Quick Reference (details in stage-specific file)
|
|
21
21
|
|
|
22
22
|
### Branch Workflow
|
|
23
|
-
-
|
|
24
|
-
- Never push directly to main
|
|
25
|
-
-
|
|
23
|
+
- You run in an isolated git worktree already on branch `horizon/{issue-identifier}`
|
|
24
|
+
- Never push directly to main; do NOT run `git checkout main`
|
|
25
|
+
- All merges happen via PR creation
|
|
26
26
|
|
|
27
27
|
### Output Format
|
|
28
28
|
All stages output a `WORK_RESULT` block. See your stage-specific file for the exact format.
|