jonah-fleet 1.25.2 → 1.27.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.
Files changed (42) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/README.md +29 -10
  3. package/dist/commands/daemon.d.ts.map +1 -1
  4. package/dist/commands/init.d.ts.map +1 -1
  5. package/dist/commands/status.d.ts.map +1 -1
  6. package/dist/commands/sync.d.ts.map +1 -1
  7. package/dist/index.d.ts +1 -0
  8. package/dist/index.d.ts.map +1 -1
  9. package/dist/index.js +2818 -2336
  10. package/dist/lib/brand.d.ts +38 -0
  11. package/dist/lib/brand.d.ts.map +1 -0
  12. package/dist/lib/daemon.d.ts +57 -0
  13. package/dist/lib/daemon.d.ts.map +1 -1
  14. package/dist/lib/loop-guard.d.ts.map +1 -1
  15. package/dist/lib/presets.d.ts +2 -2
  16. package/dist/lib/presets.d.ts.map +1 -1
  17. package/dist/lib/terminal-card.d.ts +28 -0
  18. package/dist/lib/terminal-card.d.ts.map +1 -1
  19. package/dist/lib/worktree.d.ts +4 -1
  20. package/dist/lib/worktree.d.ts.map +1 -1
  21. package/package.json +4 -4
  22. package/templates/docs/AGENTS.template.md +6 -1
  23. package/templates/prompts/_prompt-template.md +1 -1
  24. package/templates/prompts/analytics-review.md +1 -1
  25. package/templates/prompts/autowork.md +2 -2
  26. package/templates/prompts/design-review.md +1 -1
  27. package/templates/prompts/optimizer.md +5 -4
  28. package/templates/prompts/peer-review.md +1 -1
  29. package/templates/prompts/product-planning.md +1 -1
  30. package/templates/scripts/run-with-loop-guard.js +8 -4
  31. package/templates/workflows/analytics-review-cron.yml +15 -2
  32. package/templates/workflows/autowork-cron.yml +15 -2
  33. package/templates/workflows/dependency-check-cron.yml +15 -2
  34. package/templates/workflows/design-review-cron.yml +15 -2
  35. package/templates/workflows/issues-housekeeping-cron.yml +15 -2
  36. package/templates/workflows/prompt-optimizer-cron.yml +15 -2
  37. package/templates/workflows/sync-fleet.yml +16 -2
  38. package/templates/workflows/trigger-autowork-manual.yml +15 -2
  39. package/templates/workflows/trigger-autowork-on-assign.yml +15 -2
  40. package/templates/workflows/trigger-autowork-on-bug.yml +15 -2
  41. package/templates/workflows/trigger-autowork-on-merge.yml +15 -2
  42. package/templates/workflows/trigger-review-routine.yml +15 -2
@@ -30,8 +30,22 @@ jobs:
30
30
  env:
31
31
  GH_TOKEN: ${{ secrets.GH_PAT || github.token }}
32
32
  run: |
33
- git config --global user.name "github-actions[bot]"
34
- git config --global user.email "github-actions[bot]@users.noreply.github.com"
33
+ if USER_JSON=$(gh api user 2>/dev/null); then
34
+ ACTOR_NAME=$(echo "$USER_JSON" | jq -r '.login // empty')
35
+ ACTOR_ID=$(echo "$USER_JSON" | jq -r '.id // empty')
36
+ fi
37
+ ACTOR_NAME="${ACTOR_NAME:-${{ vars.AGENT_BOT_LOGIN || '' }}}"
38
+ if [ -n "$ACTOR_NAME" ] && [ -n "$ACTOR_ID" ]; then
39
+ git config --global user.name "$ACTOR_NAME"
40
+ git config --global user.email "${ACTOR_ID}+${ACTOR_NAME}@users.noreply.github.com"
41
+ elif [ -n "$ACTOR_NAME" ]; then
42
+ git config --global user.name "$ACTOR_NAME"
43
+ git config --global user.email "${ACTOR_NAME}@users.noreply.github.com"
44
+ else
45
+ git config --global user.name "github-actions[bot]"
46
+ git config --global user.email "github-actions[bot]@users.noreply.github.com"
47
+ fi
48
+ git config --global --add safe.directory "$GITHUB_WORKSPACE"
35
49
  gh auth setup-git
36
50
 
37
51
  - name: Run jonah-fleet sync
@@ -53,8 +53,21 @@ jobs:
53
53
  env:
54
54
  GH_TOKEN: ${{ secrets.GH_PAT || github.token }}
55
55
  run: |
56
- git config --global user.name "github-actions[bot]"
57
- git config --global user.email "github-actions[bot]@users.noreply.github.com"
56
+ if USER_JSON=$(gh api user 2>/dev/null); then
57
+ ACTOR_NAME=$(echo "$USER_JSON" | jq -r '.login // empty')
58
+ ACTOR_ID=$(echo "$USER_JSON" | jq -r '.id // empty')
59
+ fi
60
+ ACTOR_NAME="${ACTOR_NAME:-${{ vars.AGENT_BOT_LOGIN || '' }}}"
61
+ if [ -n "$ACTOR_NAME" ] && [ -n "$ACTOR_ID" ]; then
62
+ git config --global user.name "$ACTOR_NAME"
63
+ git config --global user.email "${ACTOR_ID}+${ACTOR_NAME}@users.noreply.github.com"
64
+ elif [ -n "$ACTOR_NAME" ]; then
65
+ git config --global user.name "$ACTOR_NAME"
66
+ git config --global user.email "${ACTOR_NAME}@users.noreply.github.com"
67
+ else
68
+ git config --global user.name "github-actions[bot]"
69
+ git config --global user.email "github-actions[bot]@users.noreply.github.com"
70
+ fi
58
71
  git config --global --add safe.directory "$GITHUB_WORKSPACE"
59
72
  gh auth setup-git
60
73
 
@@ -35,8 +35,21 @@ jobs:
35
35
  env:
36
36
  GH_TOKEN: ${{ secrets.GH_PAT || github.token }}
37
37
  run: |
38
- git config --global user.name "github-actions[bot]"
39
- git config --global user.email "github-actions[bot]@users.noreply.github.com"
38
+ if USER_JSON=$(gh api user 2>/dev/null); then
39
+ ACTOR_NAME=$(echo "$USER_JSON" | jq -r '.login // empty')
40
+ ACTOR_ID=$(echo "$USER_JSON" | jq -r '.id // empty')
41
+ fi
42
+ ACTOR_NAME="${ACTOR_NAME:-${{ vars.AGENT_BOT_LOGIN || '' }}}"
43
+ if [ -n "$ACTOR_NAME" ] && [ -n "$ACTOR_ID" ]; then
44
+ git config --global user.name "$ACTOR_NAME"
45
+ git config --global user.email "${ACTOR_ID}+${ACTOR_NAME}@users.noreply.github.com"
46
+ elif [ -n "$ACTOR_NAME" ]; then
47
+ git config --global user.name "$ACTOR_NAME"
48
+ git config --global user.email "${ACTOR_NAME}@users.noreply.github.com"
49
+ else
50
+ git config --global user.name "github-actions[bot]"
51
+ git config --global user.email "github-actions[bot]@users.noreply.github.com"
52
+ fi
40
53
  git config --global --add safe.directory "$GITHUB_WORKSPACE"
41
54
  gh auth setup-git
42
55
 
@@ -37,8 +37,21 @@ jobs:
37
37
  env:
38
38
  GH_TOKEN: ${{ secrets.GH_PAT || github.token }}
39
39
  run: |
40
- git config --global user.name "github-actions[bot]"
41
- git config --global user.email "github-actions[bot]@users.noreply.github.com"
40
+ if USER_JSON=$(gh api user 2>/dev/null); then
41
+ ACTOR_NAME=$(echo "$USER_JSON" | jq -r '.login // empty')
42
+ ACTOR_ID=$(echo "$USER_JSON" | jq -r '.id // empty')
43
+ fi
44
+ ACTOR_NAME="${ACTOR_NAME:-${{ vars.AGENT_BOT_LOGIN || '' }}}"
45
+ if [ -n "$ACTOR_NAME" ] && [ -n "$ACTOR_ID" ]; then
46
+ git config --global user.name "$ACTOR_NAME"
47
+ git config --global user.email "${ACTOR_ID}+${ACTOR_NAME}@users.noreply.github.com"
48
+ elif [ -n "$ACTOR_NAME" ]; then
49
+ git config --global user.name "$ACTOR_NAME"
50
+ git config --global user.email "${ACTOR_NAME}@users.noreply.github.com"
51
+ else
52
+ git config --global user.name "github-actions[bot]"
53
+ git config --global user.email "github-actions[bot]@users.noreply.github.com"
54
+ fi
42
55
  git config --global --add safe.directory "$GITHUB_WORKSPACE"
43
56
  gh auth setup-git
44
57
 
@@ -62,8 +62,21 @@ jobs:
62
62
  env:
63
63
  GH_TOKEN: ${{ secrets.GH_PAT || github.token }}
64
64
  run: |
65
- git config --global user.name "github-actions[bot]"
66
- git config --global user.email "github-actions[bot]@users.noreply.github.com"
65
+ if USER_JSON=$(gh api user 2>/dev/null); then
66
+ ACTOR_NAME=$(echo "$USER_JSON" | jq -r '.login // empty')
67
+ ACTOR_ID=$(echo "$USER_JSON" | jq -r '.id // empty')
68
+ fi
69
+ ACTOR_NAME="${ACTOR_NAME:-${{ vars.AGENT_BOT_LOGIN || '' }}}"
70
+ if [ -n "$ACTOR_NAME" ] && [ -n "$ACTOR_ID" ]; then
71
+ git config --global user.name "$ACTOR_NAME"
72
+ git config --global user.email "${ACTOR_ID}+${ACTOR_NAME}@users.noreply.github.com"
73
+ elif [ -n "$ACTOR_NAME" ]; then
74
+ git config --global user.name "$ACTOR_NAME"
75
+ git config --global user.email "${ACTOR_NAME}@users.noreply.github.com"
76
+ else
77
+ git config --global user.name "github-actions[bot]"
78
+ git config --global user.email "github-actions[bot]@users.noreply.github.com"
79
+ fi
67
80
  git config --global --add safe.directory "$GITHUB_WORKSPACE"
68
81
  gh auth setup-git
69
82
 
@@ -138,8 +138,21 @@ jobs:
138
138
  env:
139
139
  GH_TOKEN: ${{ secrets.GH_PAT || github.token }}
140
140
  run: |
141
- git config --global user.name "github-actions[bot]"
142
- git config --global user.email "github-actions[bot]@users.noreply.github.com"
141
+ if USER_JSON=$(gh api user 2>/dev/null); then
142
+ ACTOR_NAME=$(echo "$USER_JSON" | jq -r '.login // empty')
143
+ ACTOR_ID=$(echo "$USER_JSON" | jq -r '.id // empty')
144
+ fi
145
+ ACTOR_NAME="${ACTOR_NAME:-${{ vars.AGENT_BOT_LOGIN || '' }}}"
146
+ if [ -n "$ACTOR_NAME" ] && [ -n "$ACTOR_ID" ]; then
147
+ git config --global user.name "$ACTOR_NAME"
148
+ git config --global user.email "${ACTOR_ID}+${ACTOR_NAME}@users.noreply.github.com"
149
+ elif [ -n "$ACTOR_NAME" ]; then
150
+ git config --global user.name "$ACTOR_NAME"
151
+ git config --global user.email "${ACTOR_NAME}@users.noreply.github.com"
152
+ else
153
+ git config --global user.name "github-actions[bot]"
154
+ git config --global user.email "github-actions[bot]@users.noreply.github.com"
155
+ fi
143
156
  git config --global --add safe.directory "$GITHUB_WORKSPACE"
144
157
  gh auth setup-git
145
158