Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

🤖 refactor: put the artifacts modules that agent-loop files import behind Effect services

Aperta
#7,238 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Refactoring
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
backend, devtools

Direzione di ricerca

Start with the Phase 5 plan’s claim 3.5 and the referenced Effect services, then inspect the five listed modules under src/node/services/ and their agent-loop import sites. Move each module’s host access behind the named services, with Node and test layers, while preserving behavior and persisted files. Check the Phase 5 end check: reach.mjs --phase2 should list only the specified follow-up modules and log.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Summary

Agent-loop files import these modules, and the modules still reach the host directly (fs, os, child_process, writeFileAtomic, a runtime class or a runtime builder). The local/no-host-imports rule checks only the agent-loop files themselves, so it does not see this host access. Phase 5 of the agent-loop refactor does not move these modules: its plan (claim 3.5, decision "reach") keeps one follow-up issue per group. This issue is the artifacts group: the artifact stores.

Modules

Module Host refs Host imports Imported by agent-loop files at
src/node/services/artifactStore.ts 43 fs/promises:2 fs:3 tools/artifact_list.ts:10
src/node/services/artifactShelf.ts 23 fs/promises:2 utils/writeFileAtomic:17 tools/artifact.ts:8 tools/artifact_read.ts:6 turnRequestBuilder.ts:2
src/node/services/artifactVersionStore.ts 12 fs/promises:2 utils/writeFileAtomic:17 tools/artifact_list.ts:16
src/node/services/artifactInteractions.ts 7 utils/writeFileAtomic:28 fs/promises:29 tools/artifact_list.ts:21
src/node/services/artifactsOperations.ts 2 runtime/runtimeHelpers:17 tools/artifact.ts:7 tools/artifact_list.ts:9

Total: 5 module(s), 87 uses of host bindings. Counts and lines come from reach.mjs --phase2 and reachRefs.mjs of the phase 5 plan, at ba9e451cab (phase 1 changed no file under src/).

Work

Move the host access of each module behind the Effect services that phase 5 adds (HostFiles, HostPaths, HostProcesses, RuntimeFactory, SessionFiles, SessionLocks), with a Node layer and a test layer, and no change in behavior or persisted files.

Trigger

After phase 5 ends (stacks 5a and 5b merged). Phase 5 end check 7 expects reach.mjs --phase2 to list only the 30 follow-up modules of these 8 issues and log.

Refs

  • Phase 5 plan v4 ("Host I/O Services for the Xum Agent Loop", artifact phase5-plan.html), claim 3.5.
  • Refs #7207 (the local/no-host-imports rule and its frozen pairs).

Generated with xum • Model: anthropic:claude-opus-5-5 • Thinking: high • Cost: $31.10

Lingua principale
TypeScript
Stelle
2.1k
Fork
140
Merge medio
3h 23m
PR unite (30g)
953

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di coder/xum

Tutte le issue di coder/xum

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.