mirror of
https://github.com/PR0M3TH3AN/TORCH.git
synced 2026-11-09 06:12:15 +00:00
Merge pull request #58 from PR0M3TH3AN/agents/daily/decompose-agent-v1-14520720754219938139
[decompose] Extract modules from src/lib.mjs
This commit is contained in:
12 files changed
+429
-528
No files matched your search
@@ -1,177 +1,15 @@
|
||||
# Test Logs
|
||||
|
||||
> [email protected] lint
|
||||
> eslint .
|
||||
## Initial State
|
||||
- `src/lib.mjs` size: ~693 lines.
|
||||
- `npm test` passing.
|
||||
|
||||
## Commands Run
|
||||
- `node scripts/check-file-size.mjs --report`
|
||||
|
||||
/app/scripts/agent/debug-frontend.mjs
|
||||
3:8 warning 'path' is defined but never used no-unused-vars
|
||||
|
||||
/app/test/nostr-lock.test.mjs
|
||||
1:10 warning 'test' is defined but never used no-unused-vars
|
||||
|
||||
✖ 2 problems (0 errors, 2 warnings)
|
||||
|
||||
|
||||
> [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: 325.690702
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: should fail when checking without cadence
|
||||
ok 2 - should fail when checking without cadence
|
||||
---
|
||||
duration_ms: 187.135216
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: should include paused agents in check output
|
||||
ok 3 - should include paused agents in check output
|
||||
---
|
||||
duration_ms: 15297.898808
|
||||
type: 'test'
|
||||
...
|
||||
1..3
|
||||
ok 1 - CLI Smoke Test
|
||||
---
|
||||
duration_ms: 15812.845491
|
||||
type: 'suite'
|
||||
...
|
||||
# Initializing torch configuration in /app/test-ops-P1ZLv8/project1/torch...
|
||||
# Created torch/roster.json
|
||||
# Created torch/META_PROMPTS.md
|
||||
# Created torch/scheduler-flow.md
|
||||
# Created torch/daily-scheduler.md
|
||||
# Created torch/weekly-scheduler.md
|
||||
# Created 23 files in torch/prompts/daily/
|
||||
# Created 20 files in torch/prompts/weekly/
|
||||
# Initialization complete.
|
||||
# You can now customize the files in torch/ and torch/prompts/.
|
||||
# Initializing torch configuration in /app/test-ops-P1ZLv8/project2/torch...
|
||||
# Initializing torch configuration in /app/test-ops-P1ZLv8/project3/torch...
|
||||
# Created torch/roster.json
|
||||
# Created torch/META_PROMPTS.md
|
||||
# Created torch/scheduler-flow.md
|
||||
# Created torch/daily-scheduler.md
|
||||
# Created torch/weekly-scheduler.md
|
||||
# Created 23 files in torch/prompts/daily/
|
||||
# Created 20 files in torch/prompts/weekly/
|
||||
# Initialization complete.
|
||||
# You can now customize the files in torch/ and torch/prompts/.
|
||||
# Updating torch configuration in /app/test-ops-P1ZLv8/project3/torch...
|
||||
# Creating backup at torch/_backups/backup_2026-02-14T07-28-56-279Z...
|
||||
# Updating static files...
|
||||
# Updated META_PROMPTS.md
|
||||
# Updated scheduler-flow.md
|
||||
# Updated daily-scheduler.md
|
||||
# Updated weekly-scheduler.md
|
||||
# Skipped roster.json (preserved)
|
||||
# Updating prompts...
|
||||
# daily/: 0 added, 0 updated, 23 preserved
|
||||
# weekly/: 0 added, 0 updated, 20 preserved
|
||||
# Update complete.
|
||||
# Initializing torch configuration in /app/test-ops-P1ZLv8/project4/torch...
|
||||
# Created torch/roster.json
|
||||
# Created torch/META_PROMPTS.md
|
||||
# Created torch/scheduler-flow.md
|
||||
# Created torch/daily-scheduler.md
|
||||
# Created torch/weekly-scheduler.md
|
||||
# Created 23 files in torch/prompts/daily/
|
||||
# Created 20 files in torch/prompts/weekly/
|
||||
# Initialization complete.
|
||||
# You can now customize the files in torch/ and torch/prompts/.
|
||||
# Updating torch configuration in /app/test-ops-P1ZLv8/project4/torch...
|
||||
# Creating backup at torch/_backups/backup_2026-02-14T07-28-56-310Z...
|
||||
# Updating static files...
|
||||
# Updated META_PROMPTS.md
|
||||
# Updated scheduler-flow.md
|
||||
# Updated daily-scheduler.md
|
||||
# Updated weekly-scheduler.md
|
||||
# Overwrote roster.json (forced)
|
||||
# Updating prompts...
|
||||
# daily/: 0 added, 23 updated, 0 preserved
|
||||
# weekly/: 0 added, 20 updated, 0 preserved
|
||||
# Update complete.
|
||||
# Initializing torch configuration in /app/test-ops-P1ZLv8/project5/torch...
|
||||
# Created torch/roster.json
|
||||
# Created torch/META_PROMPTS.md
|
||||
# Created torch/scheduler-flow.md
|
||||
# Created torch/daily-scheduler.md
|
||||
# Created torch/weekly-scheduler.md
|
||||
# Created 23 files in torch/prompts/daily/
|
||||
# Created 20 files in torch/prompts/weekly/
|
||||
# Initialization complete.
|
||||
# You can now customize the files in torch/ and torch/prompts/.
|
||||
# Updating torch configuration in /app/test-ops-P1ZLv8/project5/torch...
|
||||
# Creating backup at torch/_backups/backup_2026-02-14T07-28-56-350Z...
|
||||
# Updating static files...
|
||||
# Updated META_PROMPTS.md
|
||||
# Updated scheduler-flow.md
|
||||
# Updated daily-scheduler.md
|
||||
# Updated weekly-scheduler.md
|
||||
# Skipped roster.json (preserved)
|
||||
# Updating prompts...
|
||||
# daily/: 0 added, 0 updated, 23 preserved
|
||||
# weekly/: 0 added, 0 updated, 20 preserved
|
||||
# Update complete.
|
||||
# Initializing torch configuration in /app/test-ops-P1ZLv8/project_roster/torch...
|
||||
# Created torch/roster.json
|
||||
# Created torch/META_PROMPTS.md
|
||||
# Created torch/scheduler-flow.md
|
||||
# Created torch/daily-scheduler.md
|
||||
# Created torch/weekly-scheduler.md
|
||||
# Created 23 files in torch/prompts/daily/
|
||||
# Created 20 files in torch/prompts/weekly/
|
||||
# Initialization complete.
|
||||
# You can now customize the files in torch/ and torch/prompts/.
|
||||
# Checking locks: namespace=torch, cadence=daily, date=2026-02-14
|
||||
# Relays: wss://relay.damus.io, wss://nos.lol, wss://relay.primal.net
|
||||
# Subtest: cmdInit creates directory structure and files
|
||||
ok 2 - cmdInit creates directory structure and files
|
||||
---
|
||||
duration_ms: 31.478284
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: cmdInit fails if directory exists without force
|
||||
ok 3 - cmdInit fails if directory exists without force
|
||||
---
|
||||
duration_ms: 1.223212
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: cmdUpdate preserves modified prompt
|
||||
ok 4 - cmdUpdate preserves modified prompt
|
||||
---
|
||||
duration_ms: 29.696939
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: cmdUpdate overwrites prompt with force
|
||||
ok 5 - cmdUpdate overwrites prompt with force
|
||||
---
|
||||
duration_ms: 33.378006
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: cmdUpdate creates backup
|
||||
ok 6 - cmdUpdate creates backup
|
||||
---
|
||||
duration_ms: 35.96283
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: torch-lock check respects local roster
|
||||
ok 7 - torch-lock check respects local roster
|
||||
---
|
||||
duration_ms: 15295.37334
|
||||
type: 'test'
|
||||
...
|
||||
1..7
|
||||
# tests 9
|
||||
# suites 1
|
||||
# pass 9
|
||||
# fail 0
|
||||
# cancelled 0
|
||||
# skipped 0
|
||||
# todo 0
|
||||
# duration_ms 15904.442607
|
||||
## Verification
|
||||
- `npm run lint`: Passed (1 warning in test file).
|
||||
- `npm test`: Passed (9/9 tests).
|
||||
- `node scripts/check-file-size.mjs --update`: Updated baseline.
|
||||
- New `src/lib.mjs` size: 381 lines.
|
||||
- Reduction: ~312 lines (Target: >200).
|
||||
Reference in new issue
Block a user