refactor(host): explicit host for configuration reads and one entered runtime store
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 25/100
- Tipo de issue
- Refactorización
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- node.js, typescript
Línea de trabajo
Start with the root platform-runtime-* files, platform packages, and defineRuntimeSlots modules; trace the remaining commandHostEnvironment() calls and runtime slot handles. Read the follow-ups #3763 and #3772 and the holistic review on #3747 for decisions already made. Done means configuration reads use the runtime's explicit host, one runtime-owned store is entered and disposed, and the daemon host test plus two-runtime isolation tests pass.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Part of #3747. Follow-up to #3763 and #3772, which leave two pieces deferred in their PR bodies.
1. Narrow commandHostEnvironment() to command execution
About 60 call sites remain in the root platform-runtime-* files and the platform packages. They read configuration (toolchain and SDK paths, caches, path resolution) through the ambient, AsyncLocalStorage-bound commandHostEnvironment(). The holistic review on the stack decided:
- Configuration reads take the host explicitly. Pass it as a parameter, through the runtime deps, or through a port bound at construction.
- The ambient lookup is only for host-kit command execution and diagnostics.
Done when:
- Every non-test call of
commandHostEnvironment()outside host-kit's command execution and diagnostics is replaced by an explicit host. - A test on the daemon route proves configuration is read from the runtime's host and not from the process, when the two differ.
2. One entered runtime store
#3772 moved per-runtime state onto defineRuntimeSlots. Each module still exposes its own handle, collected into runtimeStates.
Required:
- Collapse them into one store, entered once per runtime.
- Modules declare slots; the runtime owns entry and disposal.
Done when:
- No module-level handle or
runtimeStatesaggregation remains. - The two-runtime isolation tests (Apple runner, Android helper, PNG worker, daemon modules) still pass.
Ordering
- #3757 (
agent-device/host) does not depend on this issue. - #3753 (lint gate) should land after part 1, so the gate can also forbid
commandHostEnvironment()outside the command-execution boundary.
- Lenguaje dominante
- TypeScript
- Estrellas
- 5k
- Forks
- 334
- Merge medio
- 12 h 14 min
- PR fusionados (30 d)
- 713
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de callstack/agent-device
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 87/100
callstack/agent-device#3819 ·
Los mantenedores suelen responder en 1 día
-
macOS helper audio-probe always reports -90 dBFS: AVAudioPCMBuffer frameLength set after the copyPosiblemente ocupada @jipeng6036-del la tomó hoy. Abiertobug ready-for-agent
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
callstack/agent-device#3771 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
callstack/agent-device#1869 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
callstack/agent-device#3832 ·
Los mantenedores suelen responder en 1 día
-
Android smoke: first fixture capture stalls before any readable snapshotPosiblemente ocupada @thymikee la tomó hoy. Abiertobug needs-triage
callstack/agent-device#3831 · 1 comentario · 1 asignado ·
Los mantenedores suelen responder en 1 día
Todos los issues de callstack/agent-device
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
jessepollak/home#2223 ·
Los mantenedores suelen responder en 1 día
-
grep fixture corpus test follows the corpus's loop symlink under the receipt runner (fails on main)Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
code-yeongyu/senpi#3756 ·
Los mantenedores suelen responder en 1 día
-
org:external package:deepagents priority:triage topic:memory topic:middleware type:bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
langchain-ai/deepagents#7059 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 92/100
osmlab/name-suggestion-index#12992 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
hemilabs/ui-monorepo#2506 ·
Los mantenedores suelen responder en 1 día