feat(host): startAgentDevice() for embedder-owned daemons
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 15/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- nodejs, typescript
Direzione di ricerca
This is design work blocked by #3753, #3754 and #3755, so start by reading those and ADR 0027 and 0030 rather than writing code. The relevant entry points are the agent-device/host subpath boundary in scripts/layering/daemon-client-entry.ts, registration tokens in packages/daemon-contracts/src/daemon-registration-owner.ts, and PID matching in packages/daemon-contracts/src/daemon-process.ts. Done means the integration tests and packaged-export smoke test listed in the issue pass.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Part of #3747. Blocked by #3753, #3754, #3755.
Required behavior
import { startAgentDevice } from 'agent-device/host';
import testmu from '@agent-device/testmu';
await using host = await startAgentDevice({
stateDir,
host?: HostEnvironment, // defaults to a captured copy of the calling process
plugins: [testmu({ credentials })],
log?: (entry: LogEntry) => void, // silent by default
});
host.client // AgentDeviceClient
host.clientConfig // serializable; daemonLifecycle: 'attach'; pinned to this daemon's token and instance
await host.close() // ShutdownReport (#3752); also Symbol.asyncDispose
- Subpath. It's exported from a new
agent-device/hostsubpath, not the root, to respect the eager-closure budgets (ADR 0027) and R78 (scripts/layering/daemon-client-entry.ts:16). - Listener. The daemon runs in the calling process with a listener, so other processes can attach using
clientConfig. Several hosts may share one process. - Plugins.
pluginsis the complete embedder set: store plugins are not merged. Built-ins still load. - Registration. It uses the ADR 0030 acquisition tokens (
packages/daemon-contracts/src/daemon-registration-owner.ts:71). A state dir with a live registered daemon is refused (details.reason: 'state-dir-in-use'). - Embedded ownership is recorded, so managed recovery and
ensureDaemonnever signal the host's PID. Pinned clients refuse a replaced daemon. - Stopping.
agent-device daemon stop --state-dirstops an embedded daemon through an authenticated shutdown request. It awaits the removed registration and the report, not a process exit. This replaces PID command matching (packages/daemon-contracts/src/daemon-process.ts:11) for embedded daemons.
Done when
- An integration test covers:
- an embedder fixture plugin;
- attach clients from a second process;
- two hosts in one process;
- the
close()report; daemon stopagainst an embedded daemon.
- A packaged-export smoke test for
agent-device/hostpasses. - The client API and website docs are updated, and the skill's routing notes cover hosting if startup guidance changes.
- There's a changeset.
- Lingua principale
- TypeScript
- Stelle
- 5k
- Fork
- 334
- Merge medio
- 12h 2m
- PR unite (30g)
- 678
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di callstack/agent-device
-
`devices` reports a phantom Android emulator named after the emulator's crashdata INFO bannerForse già presa @airowe l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
callstack/agent-device#3716 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
callstack/agent-device#1869 ·
I maintainer di solito rispondono entro 1 giorno
-
backlog refactor
Difficoltà 5/5 Più di una settimana Idoneità per principianti 8/100
callstack/agent-device#3759 ·
I maintainer di solito rispondono entro 1 giorno
-
backlog enhancement needs-triage
Difficoltà 5/5 Più di una settimana Idoneità per principianti 8/100
callstack/agent-device#3758 ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement ready-for-agent
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
callstack/agent-device#3756 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di callstack/agent-device
Issue simili
-
Endpoint links in the tag operations list are below the 24px target sizeForse già presa @AdzerKI l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
ai-driven-qa bug Minor
Difficoltà 2/5 1-3 ore Idoneità per principianti 80/100
linagora/twake-tasks#435 ·
I maintainer di solito rispondono entro 1 giorno
-
bug domain: database priority: p1 Stellar Wave
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
StellarState/SS-backend#632 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
A2A audit timestamps end in +00:00Z (invalid ISO 8601)Forse già presa @O1sumitkumar l’ha presa oggi. Apertabug good first issue help wanted python
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
`cf complete zsh >> .zshrc` fails on vanilla zshForse di nuovo libera Una pull request per questa issue è stata chiusa senza essere unita. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
cloudflare/cf#340 ·
I maintainer di solito rispondono entro 1 giorno