Multi-Agent Collaboration for Team and Friends
TypeScript agent-automationagent-orchestrationagent-workflowai-agentsai-collaborationai-memoryai-workforceautonomous-agentsclaude-codeclaude-code-skillscodexcoding-agentmulti-agentmultiple-agentone-person-businessone-person-companyone-person-teamopencodesolopreneur
fix(web): correct @alook/daemon pairing commands
Generabbef79d437e
diff --git a/src/web/src/components/community/machines/machine-list.tsx b/src/web/src/components/community/machines/machine-list.tsxindex df8174367..760bb9a66 100644--- a/src/web/src/components/community/machines/machine-list.tsx+++ b/src/web/src/components/community/machines/machine-list.tsx@@ -29,6 +29,7 @@ import { useMachines, type MachinesResponse } from "@/hooks/community/use-machinimport { useBots } from "@/hooks/community/use-bots"import { useCommunityStore, usePendingMachineTokenId } from "@/stores/community"import { communityKeys } from "@/lib/query-keys"+import { tid } from "@/lib/community/testids"import {advanceCommunityOnboarding,readCommunityOnboardingState,@@ -230,7 +231,11 @@ export function MachineList({ onBack }: { onBack?: () => void } = {}) {</p></div><div className="flex items-center gap-2">- <Button data-onboarding-target="connect-machine" onClick={openPair}>+ <Button+ data-onboarding-target="connect-machine"+ data-testid={tid.machinePairOpen}+ onClick={openPair}+ >Connect a machine</Button><span className="community-guide-me">@@ -278,7 +283,9 @@ export function MachineList({ onBack }: { onBack?: () => void } = {}) {</p></div><div data-onboarding-target="connect-machine" className="w-fit">- <Button onClick={openPair}>Connect a machine</Button>+ <Button data-testid={tid.machinePairOpen} onClick={openPair}>+ Connect a machine+ </Button></div></header><div className="flex flex-col gap-3">diff --git a/src/web/src/components/community/machines/pair-machine-sheet.tsx b/src/web/src/components/community/machines/pair-machine-sheet.tsxindex f28e07117..dcd0c9238 100644--- a/src/web/src/components/community/machines/pair-machine-sheet.tsx+++ b/src/web/src/components/community/machines/pair-machine-sheet.tsx@@ -15,6 +15,7 @@ import {} from "@/components/ui/sheet"import { Button } from "@/components/ui/button"import { apiFetch, toastApiError } from "@/lib/api/client"+import { tid } from "@/lib/community/testids"import { isLocalMode, WS_DO_PORT_DEFAULT } from "@/lib/utils"// Community daemon HTTP/WS endpoints live on the same worker + ws-do as the@@ -31,7 +32,7 @@ function buildPairCommand(machineKey: string): string {const wsUrl = isLocal? `ws://localhost:${WS_DO_PORT_DEFAULT}`: `${location.origin.replace("http", "ws")}/api/ws/community-daemon`- const bin = isLocal ? "pnpm daemon" : "npx @alook/daemon"+ const bin = isLocal ? "pnpm daemon" : "npx @alook/daemon daemon"return `${bin} start --machine-key ${machineKey} --server-url ${location.origin} --ws-url ${wsUrl}`}@@ -197,8 +198,11 @@ function Step1({</div>) : (<div className="flex items-start gap-2 rounded-lg border bg-muted/30 p-3 font-mono text-xs">- <code className="flex-1 break-all">{command}</code>+ <code data-testid={tid.machinePairCommand} className="flex-1 break-all">+ {command}+ </code><button+ data-testid={tid.machinePairCopy}onClick={onCopy}className="grid size-6 shrink-0 place-items-center rounded text-muted-foreground hover:bg-accent hover:text-foreground"aria-label="Copy command"diff --git a/src/web/src/components/home/landing-shell-motion.tsx b/src/web/src/components/home/landing-shell-motion.tsxindex c2df7fb15..3ef08d2e0 100644--- a/src/web/src/components/home/landing-shell-motion.tsx+++ b/src/web/src/components/home/landing-shell-motion.tsx@@ -488,7 +488,7 @@ const BOT_AVATAR_DRAFT: AvatarDraft = {}const PAIR_COMMAND =- "pnpm daemon start --machine-key cmk_demo --server-url https://alook.ai --ws-url wss://alook.ai/api/ws/community-daemon"+ "npx @alook/daemon daemon start --machine-key cmk_demo --server-url https://alook.ai --ws-url wss://alook.ai/api/ws/community-daemon"function useReducedMotion() {const [reduced, setReduced] = useState(false)diff --git a/src/web/src/lib/community/testids.ts b/src/web/src/lib/community/testids.tsindex b02b8bd26..5041feeee 100644--- a/src/web/src/lib/community/testids.ts+++ b/src/web/src/lib/community/testids.ts@@ -15,6 +15,9 @@ export const tid = {statusPill: "community-status-pill",inviteToken: "community-invite-token",inviteCopy: "community-invite-copy",+ machinePairOpen: "community-machine-pair-open",+ machinePairCommand: "community-machine-pair-command",+ machinePairCopy: "community-machine-pair-copy",forumTagDialog: "community-forum-tag-dialog",forumTagDialogSave: "community-forum-tag-dialog-save",