mirror of
https://github.com/PR0M3TH3AN/TORCH.git
synced 2026-11-08 22:02:12 +00:00
Merge branch 'main' into agents/daily/docs-agent-14144022524815492337
This commit is contained in:
37 files changed
+891
-359
No files matched your search
@@ -0,0 +1,11 @@
|
||||
# Run Context - 2026-02-26
|
||||
|
||||
## Environment
|
||||
- **Date:** 2026-02-26
|
||||
- **Node Version:** v22.22.0
|
||||
- **NPM Version:** 11.7.0
|
||||
- **Package Manager:** npm
|
||||
|
||||
## CI Matrix
|
||||
- **OS:** Linux
|
||||
- **Arch:** x64
|
||||
@@ -0,0 +1,36 @@
|
||||
# Decompose Agent: Context
|
||||
|
||||
## File Selection
|
||||
- **File:** `scripts/agent/run-scheduler-cycle.mjs`
|
||||
- **Reason:** Largest grandfathered JS source file (1160 lines) that is suitable for structural decomposition. Other larger files are HTML or JSON.
|
||||
- **Commit:** `HEAD`
|
||||
|
||||
## Extraction Plan
|
||||
We will extract three cohesive modules from `scripts/agent/run-scheduler-cycle.mjs` to reduce its size and improve maintainability.
|
||||
|
||||
### 1. Scheduler Configuration (`scripts/agent/scheduler-config.mjs`)
|
||||
- **Functions to extract:**
|
||||
- `parseArgs`
|
||||
- `getSchedulerConfig`
|
||||
- `resolveNodeCommand` (internal helper within `getSchedulerConfig` - might need to be a module-level helper or kept inside)
|
||||
- Constants: `VALID_CADENCES`
|
||||
|
||||
### 2. Scheduler Logger (`scripts/agent/scheduler-logger.mjs`)
|
||||
- **Functions to extract:**
|
||||
- `writeLog`
|
||||
- `printRunSummary`
|
||||
- `exitWithSummary`
|
||||
- `categorizeFailureMetadata`
|
||||
- `ts` (timestamp helper)
|
||||
|
||||
### 3. Scheduler State (`scripts/agent/scheduler-state.mjs`)
|
||||
- **Functions to extract:**
|
||||
- `readRunState`
|
||||
- `writeRunState`
|
||||
- `createIdempotencyKey`
|
||||
|
||||
## Refactoring Strategy
|
||||
1. Create new module files with necessary imports (fs, path, utils).
|
||||
2. Export the identified functions.
|
||||
3. Update `scripts/agent/run-scheduler-cycle.mjs` to import these functions.
|
||||
4. Verify behavior with linting and dry-run.
|
||||
@@ -0,0 +1,17 @@
|
||||
# Run Context - 2026-02-27T12-00-00Z
|
||||
|
||||
- **Agent**: deps-security-agent
|
||||
- **Cadence**: daily
|
||||
- **Run Start**: 2026-02-27T12:00:00Z
|
||||
- **Platform**: jules
|
||||
- **Node**: v22.22.0
|
||||
- **NPM**: 11.7.0
|
||||
- **Goal**: Perform daily security and dependency audit.
|
||||
- **Scope**: Production and development dependencies.
|
||||
- **Constraints**:
|
||||
- Do not auto-upgrade major versions.
|
||||
- Do not auto-upgrade crypto/protocol libs without review.
|
||||
- Preserve lockfile.
|
||||
|
||||
## Prompt
|
||||
- Source: src/prompts/daily/deps-security-agent.md
|
||||
Reference in new issue
Block a user