Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
내 코드에서 Archetype 호스트에 연결합니다.
npm i @pairful/archetype-sdk
import { ClientConnectionService, ConnectorAdapter, } from "@pairful/archetype-sdk"; const client = await ClientConnectionService.connect( ConnectorAdapter.webSocketConnector(url), { client: "my-app" }, ); const turn = await client.startTurn("main", "run the tests"); for await (const { event } of client.events(turn)) { if (event.type === "approval.requested") await client.respond(turn, event.requestId, { action: "allow" }); }
turn.started
turn.finished
events(turnId, after)
ConnectorAdapter.webSocketConnector(url)
archetype --serve --listen
ConnectorAdapter.inProcess(server)
ConnectorAdapter.lineConnector({ lines, write })
const { answers } = await client.decide(ticket, { urgent: { type: "yes_no", instructions: "Does this need attention now?" }, }); if (answers.urgent.probability > 0.8) notify(ticket);