mirror of
https://github.com/PR0M3TH3AN/TORCH.git
synced 2026-11-01 02:11:54 +00:00
Merge branch 'main' of https://github.com/PR0M3TH3AN/TORCH
This commit is contained in:
commit
3536c54d1b
17 files changed
+232
No files matched your search
@@ -0,0 +1,4 @@
|
||||
src/nostr-lock.mjs
|
||||
src/torch-config.mjs
|
||||
build.mjs
|
||||
test/nostr-lock.test.mjs
|
||||
@@ -0,0 +1,4 @@
|
||||
src/nostr-lock.mjs: Entry point (package.json scripts)
|
||||
src/torch-config.mjs: Imported by src/nostr-lock.mjs
|
||||
build.mjs: Build script (package.json build)
|
||||
test/nostr-lock.test.mjs: Test file (package.json test)
|
||||
@@ -0,0 +1 @@
|
||||
src/todo/2026-02-13-dom-migration-todo.md:1:# TODO — Rendering Migration (Example)
|
||||
@@ -5,6 +5,7 @@
|
||||
"type": "module",
|
||||
"description": "TORCH standalone lock CLI and optional dashboard",
|
||||
"scripts": {
|
||||
"test": "node --test test/*.test.mjs",
|
||||
"lock:check:daily": "node src/nostr-lock.mjs check --cadence daily",
|
||||
"lock:check:weekly": "node src/nostr-lock.mjs check --cadence weekly",
|
||||
"lock:list": "node src/nostr-lock.mjs list",
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
# Weekly Release Draft - 2026-02-14
|
||||
|
||||
## Highlights
|
||||
- Automated bug reproduction workflow executed.
|
||||
|
||||
## Changes
|
||||
|
||||
### Merged PRs
|
||||
- #23: Bug reproducer agent execution (Merged)
|
||||
|
||||
### Commits
|
||||
- a4dbb24 Merge pull request #23 from PR0M3TH3AN/agents/weekly/2026-02-14-bug-reproducer-agent-12097066793621210455
|
||||
|
||||
## Notes
|
||||
- Created by changelog-agent.
|
||||
- PR metadata verified via commit message.
|
||||
@@ -0,0 +1 @@
|
||||
# Test Audit Context
|
||||
@@ -0,0 +1 @@
|
||||
# Decisions
|
||||
@@ -0,0 +1,39 @@
|
||||
|
||||
## Run at 2026-02-14T04-55-08Z
|
||||
Command: npm test
|
||||
Output:
|
||||
```
|
||||
|
||||
> [email protected] test
|
||||
> node --test test/*.test.mjs
|
||||
|
||||
TAP version 13
|
||||
# Subtest: CLI Smoke Test
|
||||
# Subtest: should print usage when no args provided
|
||||
ok 1 - should print usage when no args provided
|
||||
---
|
||||
duration_ms: 154.438982
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: should fail when checking without cadence
|
||||
ok 2 - should fail when checking without cadence
|
||||
---
|
||||
duration_ms: 167.381667
|
||||
type: 'test'
|
||||
...
|
||||
1..2
|
||||
ok 1 - CLI Smoke Test
|
||||
---
|
||||
duration_ms: 323.47485
|
||||
type: 'suite'
|
||||
...
|
||||
1..1
|
||||
# tests 2
|
||||
# suites 1
|
||||
# pass 2
|
||||
# fail 0
|
||||
# cancelled 0
|
||||
# skipped 0
|
||||
# todo 0
|
||||
# duration_ms 419.728338
|
||||
```
|
||||
@@ -0,0 +1 @@
|
||||
# Test Log
|
||||
@@ -0,0 +1 @@
|
||||
# Todo
|
||||
@@ -0,0 +1,24 @@
|
||||
---
|
||||
agent: test-audit-agent
|
||||
status: completed
|
||||
date: 2026-02-14
|
||||
---
|
||||
|
||||
# Daily Task: test-audit-agent
|
||||
|
||||
## Summary
|
||||
- Audit Performed: Yes
|
||||
- Outcome: Success (No existing tests found; added initial smoke tests)
|
||||
- Changes:
|
||||
- Added `test` script to `package.json`.
|
||||
- Created `test/nostr-lock.test.mjs`.
|
||||
- Generated `test-audit-report-2026-02-14.md`.
|
||||
|
||||
## Details
|
||||
Executed the daily test audit. Found that the repository lacked a test runner and test suite.
|
||||
Bootstraped the testing infrastructure using Node.js built-in test runner (`node --test`).
|
||||
Verified that the new smoke tests pass and the build still works.
|
||||
|
||||
## Artifacts
|
||||
- `test-audit-report-2026-02-14.md`
|
||||
- `test/nostr-lock.test.mjs`
|
||||
@@ -0,0 +1,10 @@
|
||||
# Daily Run: todo-triage-agent
|
||||
|
||||
## Summary
|
||||
- Scanned repository for TODO/FIXME/XXX markers.
|
||||
- Found no actionable code TODOs.
|
||||
- Created `artifacts/todos.txt` with 1 non-actionable item.
|
||||
- No PRs or issues created.
|
||||
|
||||
## Artifacts
|
||||
- `artifacts/todos.txt`
|
||||
@@ -0,0 +1,16 @@
|
||||
---
|
||||
agent: bug-reproducer-agent
|
||||
status: completed
|
||||
---
|
||||
# Bug Reproducer Agent Report
|
||||
|
||||
## Preflight
|
||||
- Checked `AGENTS.md`.
|
||||
- Checked `KNOWN_ISSUES.md`. No active issues found.
|
||||
|
||||
## Execution
|
||||
- No bugs to reproduce.
|
||||
- GitHub API not available.
|
||||
|
||||
## Result
|
||||
- No reproduction attempts made.
|
||||
@@ -0,0 +1,11 @@
|
||||
---
|
||||
agent: changelog-agent
|
||||
status: completed
|
||||
---
|
||||
|
||||
# Execution Summary
|
||||
|
||||
- Role: changelog-agent
|
||||
- Task: Generate weekly changelog draft
|
||||
- Outcome: Draft created at `releases/draft-20260214.md`
|
||||
- Checks: `npm run build` passed
|
||||
@@ -0,0 +1,22 @@
|
||||
---
|
||||
agent: dead-code-agent
|
||||
status: completed
|
||||
---
|
||||
# Dead Code Agent Report
|
||||
|
||||
## Preflight
|
||||
- Checked `AGENTS.md`.
|
||||
- Checked `KNOWN_ISSUES.md`. No active issues found.
|
||||
|
||||
## Execution
|
||||
- Scanned for dead code (JS/MJS files).
|
||||
- Files checked:
|
||||
- `src/nostr-lock.mjs`
|
||||
- `src/torch-config.mjs`
|
||||
- `build.mjs`
|
||||
- `test/nostr-lock.test.mjs`
|
||||
- All files are confirmed as used.
|
||||
|
||||
## Result
|
||||
- No dead code found to remove.
|
||||
- Artifacts: `artifacts/dead-code-20260214/`.
|
||||
@@ -0,0 +1,63 @@
|
||||
# Test Audit Report 2026-02-14
|
||||
|
||||
## Summary
|
||||
- **Status**: Completed (Initial Setup)
|
||||
- **Runner**: Node.js built-in test runner (`node --test`)
|
||||
- **Tests Added**: 2 smoke tests for CLI.
|
||||
- **Outcome**: All tests passed.
|
||||
|
||||
## Context
|
||||
No existing tests were found in the repository. The `package.json` lacked a `test` script.
|
||||
This audit run focused on establishing a baseline testing infrastructure.
|
||||
|
||||
## Actions Taken
|
||||
1. **Added Test Script**: Updated `package.json` with `"test": "node --test test/*.test.mjs"`.
|
||||
2. **Added Smoke Tests**: Created `test/nostr-lock.test.mjs` checking CLI usage and argument validation.
|
||||
3. **Verification**: Ran `npm test` successfully.
|
||||
|
||||
## Findings
|
||||
- **Coverage**: Not yet measured.
|
||||
- **Flakiness**: None observed in initial runs.
|
||||
- **Suspicious Tests**: N/A (newly created).
|
||||
|
||||
## Remediation / Next Steps
|
||||
- Expand test coverage to `nostr-lock.mjs` core logic (requires refactoring for testability).
|
||||
- Add `c8` for coverage reporting.
|
||||
- Add unit tests for `torch-config.mjs` if possible.
|
||||
|
||||
## Test Log Snippet
|
||||
```
|
||||
|
||||
> [email protected] test
|
||||
> node --test test/*.test.mjs
|
||||
|
||||
TAP version 13
|
||||
# Subtest: CLI Smoke Test
|
||||
# Subtest: should print usage when no args provided
|
||||
ok 1 - should print usage when no args provided
|
||||
---
|
||||
duration_ms: 154.438982
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: should fail when checking without cadence
|
||||
ok 2 - should fail when checking without cadence
|
||||
---
|
||||
duration_ms: 167.381667
|
||||
type: 'test'
|
||||
...
|
||||
1..2
|
||||
ok 1 - CLI Smoke Test
|
||||
---
|
||||
duration_ms: 323.47485
|
||||
type: 'suite'
|
||||
...
|
||||
1..1
|
||||
# tests 2
|
||||
# suites 1
|
||||
# pass 2
|
||||
# fail 0
|
||||
# cancelled 0
|
||||
# skipped 0
|
||||
# todo 0
|
||||
# duration_ms 419.728338
|
||||
```
|
||||
@@ -0,0 +1,17 @@
|
||||
import { test, describe, it } from 'node:test';
|
||||
import assert from 'node:assert';
|
||||
import { spawnSync } from 'node:child_process';
|
||||
|
||||
describe('CLI Smoke Test', () => {
|
||||
it('should print usage when no args provided', () => {
|
||||
const result = spawnSync('node', ['src/nostr-lock.mjs']);
|
||||
assert.strictEqual(result.status, 1);
|
||||
assert.match(result.stderr.toString(), /Usage:/);
|
||||
});
|
||||
|
||||
it('should fail when checking without cadence', () => {
|
||||
const result = spawnSync('node', ['src/nostr-lock.mjs', 'check']);
|
||||
assert.strictEqual(result.status, 1);
|
||||
assert.match(result.stderr.toString(), /--cadence <daily|weekly> is required/);
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user