jonah-fleet 1.5.0 → 1.6.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/CHANGELOG.md +51 -0
- package/dist/index.js +431 -108
- package/dist/lib/daemon.d.ts +33 -0
- package/dist/lib/daemon.d.ts.map +1 -1
- package/dist/lib/evals.d.ts +56 -1
- package/dist/lib/evals.d.ts.map +1 -1
- package/dist/lib/presets.d.ts +1 -1
- package/dist/lib/telemetry.d.ts +13 -0
- package/dist/lib/telemetry.d.ts.map +1 -1
- package/dist/lib/terminal-card.d.ts +14 -0
- package/dist/lib/terminal-card.d.ts.map +1 -1
- package/package.json +4 -4
- package/templates/evals/ambiguity-benchmark.json +92 -0
- package/templates/prompts/ORCHESTRATION.md +25 -9
- package/templates/prompts/_prompt-template.md +13 -1
- package/templates/prompts/autowork.md +33 -7
- package/templates/prompts/optimizer.md +3 -0
- package/templates/workflows/autowork-cron.yml +33 -0
- package/templates/workflows/trigger-autowork-manual.yml +2 -0
- package/templates/workflows/trigger-autowork-on-bug.yml +2 -0
- package/templates/workflows/trigger-autowork-on-merge.yml +2 -0
|
@@ -36,6 +36,8 @@ jobs:
|
|
|
36
36
|
uses: actions/checkout@v4
|
|
37
37
|
with:
|
|
38
38
|
fetch-depth: 0
|
|
39
|
+
token: ${{ secrets.GH_PAT || github.token }}
|
|
40
|
+
|
|
39
41
|
|
|
40
42
|
- name: Setup Node.js
|
|
41
43
|
uses: actions/setup-node@v4
|
|
@@ -170,3 +172,34 @@ jobs:
|
|
|
170
172
|
fi
|
|
171
173
|
fi
|
|
172
174
|
fi
|
|
175
|
+
|
|
176
|
+
- name: Commit and push run log directly to main
|
|
177
|
+
if: always()
|
|
178
|
+
env:
|
|
179
|
+
GH_TOKEN: ${{ secrets.GH_PAT || github.token }}
|
|
180
|
+
run: |
|
|
181
|
+
LATEST_LOG=$(ls -t .github/prompts/logs/autowork/*.md 2>/dev/null | head -n 1)
|
|
182
|
+
if [ -n "$LATEST_LOG" ] && [ -f "$LATEST_LOG" ]; then
|
|
183
|
+
TMP_LOG_FILE=$(mktemp)
|
|
184
|
+
cp "$LATEST_LOG" "$TMP_LOG_FILE"
|
|
185
|
+
LOG_REL_PATH="$LATEST_LOG"
|
|
186
|
+
LOG_NAME=$(basename "$LATEST_LOG" .md)
|
|
187
|
+
|
|
188
|
+
git fetch origin main:main || git fetch origin main || true
|
|
189
|
+
git checkout main || git checkout -B main origin/main || true
|
|
190
|
+
|
|
191
|
+
mkdir -p "$(dirname "$LOG_REL_PATH")"
|
|
192
|
+
cp "$TMP_LOG_FILE" "$LOG_REL_PATH"
|
|
193
|
+
rm -f "$TMP_LOG_FILE"
|
|
194
|
+
|
|
195
|
+
git add "$LOG_REL_PATH"
|
|
196
|
+
if ! git diff --cached --quiet; then
|
|
197
|
+
git commit -m "docs(log): record autowork run ${LOG_NAME} [skip ci]" || true
|
|
198
|
+
if [ -n "$GH_TOKEN" ]; then
|
|
199
|
+
git push "https://x-access-token:${GH_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" main || git push origin main || true
|
|
200
|
+
else
|
|
201
|
+
git push origin main || true
|
|
202
|
+
fi
|
|
203
|
+
fi
|
|
204
|
+
fi
|
|
205
|
+
|