Follow-up of #224 (M3b), which made lousho build ./my-agent --target=cloudflare-worker build an agent directory's config, instructions.md, tools/ and skills/.
The Worker target still rejects, at scaffold, with LOUSHO_DEPLOY_FAILED naming the folder or key:
subagents/ (each sub-agent would need its own embedded WorkerAgentDir and a delegate tool, built the same way as the parent);
schedules/ (would map to wrangler.toml [triggers] crons and a scheduled() export, with the UTC / five-field / day-name rules workerCrons() already enforces for specs);
channels/ (would need mounting under /channels in the Fetch router of src/server/fetchRoutes.ts);
memory/ (memory slots need a store; on a Worker that would be the KV namespace);
projectInstructions: true (reads AGENTS.md / CLAUDE.md from disk; could be embedded at build time).
Code: src/deploy/adapters/cloudflare-dir.ts (UNSUPPORTED_FOLDERS), src/deploy/workerAgentDir.ts (resolveWorkerAgentDir), src/deploy/runtime.worker.ts (handleWorkerAgentDirRequest). Docs: the LIMITS TABLE in docs/cloudflare-workers.md.
Do this only if users ask for it; until then --target=node-server / --target=docker deploy all of these.
Follow-up of #224 (M3b), which made
lousho build ./my-agent --target=cloudflare-workerbuild an agent directory's config,instructions.md,tools/andskills/.The Worker target still rejects, at scaffold, with
LOUSHO_DEPLOY_FAILEDnaming the folder or key:subagents/(each sub-agent would need its own embeddedWorkerAgentDirand a delegate tool, built the same way as the parent);schedules/(would map towrangler.toml[triggers] cronsand ascheduled()export, with the UTC / five-field / day-name rulesworkerCrons()already enforces for specs);channels/(would need mounting under/channelsin the Fetch router ofsrc/server/fetchRoutes.ts);memory/(memory slots need a store; on a Worker that would be the KV namespace);projectInstructions: true(reads AGENTS.md / CLAUDE.md from disk; could be embedded at build time).Code:
src/deploy/adapters/cloudflare-dir.ts(UNSUPPORTED_FOLDERS),src/deploy/workerAgentDir.ts(resolveWorkerAgentDir),src/deploy/runtime.worker.ts(handleWorkerAgentDirRequest). Docs: the LIMITS TABLE indocs/cloudflare-workers.md.Do this only if users ask for it; until then
--target=node-server/--target=dockerdeploy all of these.