mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-03 11:22:25 +00:00
Merge pull request #2528 from PR0M3TH3AN/agents/daily/prompt-curator-agent-2026-02-15-8657830305285639705
Daily Agent: prompt-curator-agent (2026-02-15)
This commit is contained in:
6 files changed
+23
-28
No files matched your search
@@ -14,9 +14,10 @@ Run type: Daily
|
||||
|
||||
| File | Issue | Status |
|
||||
|------|-------|--------|
|
||||
| `daily/bitvid-prompt-curator-agent.md` | Broken paths to `RESEARCH_LOG.md`, `STYLE_GUIDE.md`, `PROMPT_LIBRARY_STATUS.md` | Fixed (updated to `docs/agents/` paths) |
|
||||
| `daily/bitvid-content-audit-agent.md` | Broken paths to `js/ui/uploadModal.js`, `next.config.js`, `upload.md` | Fixed (updated to `js/ui/initUploadModal.js`, removed `next.config.js`, updated `content/docs/guides/`) |
|
||||
| `daily/bitvid-deps-security-agent.md` | Broken path to optional `scripts/deps-audit.sh` | Fixed (updated to use existing `scripts/agent/analyze_deps.py`) |
|
||||
| `daily/bitvid-content-audit-agent.md` | Broken file paths | Fixed `upload-content.md`, `s3UploadService.js`, `UploadModal.js` paths |
|
||||
| `daily/bitvid-audit-agent.md` | Incorrect script extension | Fixed `.js` -> `.py` for audit parsers |
|
||||
| `daily/bitvid-const-refactor-agent.md` | Non-existent example path | Fixed `relayClient.js` -> `client.js` |
|
||||
| `weekly/bitvid-test-coverage-agent.md` | Non-existent example paths | Fixed `parseEvent.js` -> `eventsMap.js`, `kvStore.js` -> `cache.js` |
|
||||
|
||||
## Known Remaining Issues
|
||||
|
||||
|
||||
@@ -125,9 +125,7 @@ SEARCH / PARSING HELPER SCRIPTS (examples)
|
||||
- Parse file-size raw log into JSON:
|
||||
- `python3 scripts/agent/audit-parsers/parse_file_size.py artifacts/audit/YYYY-MM-DD/raw-check-file-size.log > artifacts/audit/YYYY-MM-DD/file-size-report.json`
|
||||
- Parse innerHTML log similarly:
|
||||
- `python3 scripts/agent/audit-parsers/parse_innerhtml.py artifacts/audit/YYYY-MM-DD/raw-check-innerhtml.log > artifacts/audit/YYYY-MM-DD/innerhtml-report.json`
|
||||
- Parse lint log similarly:
|
||||
- `python3 scripts/agent/audit-parsers/parse_lint.py artifacts/audit/YYYY-MM-DD/raw-lint.log > artifacts/audit/YYYY-MM-DD/lint-report.json`
|
||||
- `python3 scripts/agent/audit-parsers/parse_innerhtml.py ...`
|
||||
- If the repo’s scripts support `--json` or `--output`, prefer those flags.
|
||||
|
||||
Use the existing Python parsers in `scripts/agent/audit-parsers/`. Do not implement new Node.js parsers unless necessary.
|
||||
|
||||
@@ -80,7 +80,7 @@ DETAILED WORKFLOW (step-by-step)
|
||||
"value": 5000,
|
||||
"semantic": "fast relay timeout",
|
||||
"occurrences": [
|
||||
{"file": "js/relayManager.js", "line": 24, "context":"FAST_RELAY_TIMEOUT_MS"},
|
||||
{"file": "js/nostr/client.js", "line": 24, "context":"FAST_RELAY_TIMEOUT_MS"},
|
||||
{"file": "js/nostr/watchHistory.js", "line": 10, "context":"FAST_PROFILE_TIMEOUT_MS"},
|
||||
...
|
||||
]
|
||||
@@ -210,7 +210,7 @@ PR / REVIEW CHECKLIST (what maintainers expect)
|
||||
|
||||
===============================================================================
|
||||
EXAMPLE: end-to-end flow for 5000ms duplicates
|
||||
- Discover `5000` appears in `js/relayManager.js`, `js/nostr/watchHistory.js`, `js/nostr/relayClient.js`.
|
||||
- Discover `5000` appears in `js/nostr/client.js`, `js/nostr/watchHistory.js`.
|
||||
- Determine these uses are all "fast relay timeout" semantics.
|
||||
- Check `js/nostr/relayConstants.js` — no `FAST_RELAY_TIMEOUT_MS`. Decide to add:
|
||||
```js
|
||||
|
||||
@@ -67,7 +67,7 @@ rg --hidden --files --glob 'content/**' | rg '/content/' -n
|
||||
- Licensing & attribution templates and policies
|
||||
- How to edit/delete content and check status
|
||||
- For each claim, find the authoritative code location(s) — the file(s) and function(s) implementing it:
|
||||
- Upload UI: look under `js/` for upload modal/upload service controllers (e.g., `js/services/s3UploadService.js`, `js/ui/initUploadModal.js`).
|
||||
- Upload UI: look under `js/` for upload modal/upload service controllers (e.g., `js/services/s3UploadService.js`, `js/ui/components/UploadModal.js`).
|
||||
- API endpoints: search backend server for upload handlers (e.g., `server/` or `api/`).
|
||||
- Storage/processing: check any `torrent/`, `storage/`, or `cloud` integration code.
|
||||
- Moderation code: e.g., `js/userBlocks.js`, moderation service.
|
||||
|
||||
@@ -146,8 +146,8 @@ PR & COMMIT CONVENTIONS
|
||||
|
||||
- Branch: `ai/tests-<module>-YYYYMMDD`
|
||||
- Commit message examples:
|
||||
- `test(ai): add unit tests for js/nostr/parseEvent.js (agent)`
|
||||
- `test(ai): add fake-indexeddb tests for js/state/kvStore.js (agent)`
|
||||
- `test(ai): add unit tests for js/nostr/eventsMap.js (agent)`
|
||||
- `test(ai): add fake-indexeddb tests for js/state/cache.js (agent)`
|
||||
- PR title: `test(ai): add unit tests for <module>`
|
||||
- PR body must include:
|
||||
- Baseline test/coverage run summary
|
||||
|
||||
@@ -1,22 +1,18 @@
|
||||
# Deps Security Agent (Daily) - Completed
|
||||
# Daily Agent Run: prompt-curator-agent
|
||||
|
||||
**Date:** 2026-02-18
|
||||
**Agent:** deps-security-agent
|
||||
**Status:** Success
|
||||
**Date**: 2026-02-15
|
||||
**Agent**: prompt-curator-agent
|
||||
**Status**: Completed
|
||||
|
||||
## Summary
|
||||
Performed daily security and dependency audit.
|
||||
- **Vulnerabilities:** 1 Moderate (`ajv` via `serve` devDependency).
|
||||
- **Outdated:** 7 packages (mostly major, skipped).
|
||||
- **Upgrades:** Upgraded `stylelint` to `16.26.1` (safe minor bump).
|
||||
- **Verification:** All tests passed.
|
||||
|
||||
## Findings
|
||||
1. **Vulnerability**: `ajv` <8.18.0 via `serve`. Low risk (dev tool).
|
||||
2. **Upgraded**: `stylelint` (16.12.0 -> 16.26.1).
|
||||
Executed `prompt-curator-agent` to audit the prompt library.
|
||||
- Verified file path references in all prompts.
|
||||
- Found and fixed broken paths in 4 prompts:
|
||||
- `daily/bitvid-content-audit-agent.md`: Fixed paths to upload guide, upload service, and modal component.
|
||||
- `daily/bitvid-audit-agent.md`: Fixed script extensions (.js -> .py).
|
||||
- `daily/bitvid-const-refactor-agent.md`: Fixed example path (relayClient.js -> client.js).
|
||||
- `weekly/bitvid-test-coverage-agent.md`: Fixed example paths (parseEvent.js -> eventsMap.js).
|
||||
- Updated `docs/agents/PROMPT_LIBRARY_STATUS.md` with verified fixes.
|
||||
|
||||
## Artifacts
|
||||
- `artifacts/npm-audit.json`
|
||||
- `artifacts/npm-outdated.json`
|
||||
- `artifacts/deps-report.md`
|
||||
- `test_logs/TEST_LOG_1771418959.md`
|
||||
- `docs/agents/PROMPT_LIBRARY_STATUS.md` (Updated)
|
||||
Reference in new issue
Block a user