[{"data":1,"prerenderedAt":425},["ShallowReactive",2],{"content-query-1DxZ1vYQk5":3},{"_path":4,"_dir":5,"_draft":6,"_partial":6,"_locale":5,"title":7,"description":8,"body":9,"_type":419,"_id":420,"_source":421,"_file":422,"_stem":423,"_extension":424},"\u002F","",false,"ONEORIGIN Docs","ONEORIGIN คือชุดเครื่องมือสำหรับสร้างหน้าเว็บและ agent บน Cloudflare Workers ประกอบด้วย CLI สำหรับสร้างโปรเจกต์ และ SDK สำหรับเรียก agent จากหลังบ้าน",{"type":10,"children":11,"toc":413},"root",[12,20,25,31,116,122,204,233,238,343,348,407],{"type":13,"tag":14,"props":15,"children":17},"element","h1",{"id":16},"oneorigin-docs",[18],{"type":19,"value":7},"text",{"type":13,"tag":21,"props":22,"children":23},"p",{},[24],{"type":19,"value":8},{"type":13,"tag":26,"props":27,"children":29},"h2",{"id":28},"แพ็กเกจ",[30],{"type":19,"value":28},{"type":13,"tag":32,"props":33,"children":34},"table",{},[35,58],{"type":13,"tag":36,"props":37,"children":38},"thead",{},[39],{"type":13,"tag":40,"props":41,"children":42},"tr",{},[43,48,53],{"type":13,"tag":44,"props":45,"children":46},"th",{},[47],{"type":19,"value":28},{"type":13,"tag":44,"props":49,"children":50},{},[51],{"type":19,"value":52},"ใช้ทำอะไร",{"type":13,"tag":44,"props":54,"children":55},{},[56],{"type":19,"value":57},"ติดตั้ง",{"type":13,"tag":59,"props":60,"children":61},"tbody",{},[62,90],{"type":13,"tag":40,"props":63,"children":64},{},[65,76,81],{"type":13,"tag":66,"props":67,"children":68},"td",{},[69],{"type":13,"tag":70,"props":71,"children":73},"code",{"className":72},[],[74],{"type":19,"value":75},"create-oneorigin-app",{"type":13,"tag":66,"props":77,"children":78},{},[79],{"type":19,"value":80},"สร้างโปรเจกต์ใหม่ 3 เทมเพลต",{"type":13,"tag":66,"props":82,"children":83},{},[84],{"type":13,"tag":70,"props":85,"children":87},{"className":86},[],[88],{"type":19,"value":89},"npx create-oneorigin-app@latest my-site",{"type":13,"tag":40,"props":91,"children":92},{},[93,102,107],{"type":13,"tag":66,"props":94,"children":95},{},[96],{"type":13,"tag":70,"props":97,"children":99},{"className":98},[],[100],{"type":19,"value":101},"@one.origin\u002Fsandbox",{"type":13,"tag":66,"props":103,"children":104},{},[105],{"type":19,"value":106},"เรียก agent จาก Worker หรือ Node",{"type":13,"tag":66,"props":108,"children":109},{},[110],{"type":13,"tag":70,"props":111,"children":113},{"className":112},[],[114],{"type":19,"value":115},"npm i @one.origin\u002Fsandbox",{"type":13,"tag":26,"props":117,"children":119},{"id":118},"เริ่มใน-3-คำสั่ง",[120],{"type":19,"value":121},"เริ่มใน 3 คำสั่ง",{"type":13,"tag":123,"props":124,"children":128},"pre",{"className":125,"code":126,"language":127,"meta":5,"style":5},"language-sh shiki shiki-themes github-dark","npx create-oneorigin-app@latest my-site\ncd my-site && npm install\nnpm run dev\n","sh",[129],{"type":13,"tag":70,"props":130,"children":131},{"__ignoreMap":5},[132,155,186],{"type":13,"tag":133,"props":134,"children":137},"span",{"class":135,"line":136},"line",1,[138,144,150],{"type":13,"tag":133,"props":139,"children":141},{"style":140},"--shiki-default:#B392F0",[142],{"type":19,"value":143},"npx",{"type":13,"tag":133,"props":145,"children":147},{"style":146},"--shiki-default:#9ECBFF",[148],{"type":19,"value":149}," create-oneorigin-app@latest",{"type":13,"tag":133,"props":151,"children":152},{"style":146},[153],{"type":19,"value":154}," my-site\n",{"type":13,"tag":133,"props":156,"children":158},{"class":135,"line":157},2,[159,165,170,176,181],{"type":13,"tag":133,"props":160,"children":162},{"style":161},"--shiki-default:#79B8FF",[163],{"type":19,"value":164},"cd",{"type":13,"tag":133,"props":166,"children":167},{"style":146},[168],{"type":19,"value":169}," my-site",{"type":13,"tag":133,"props":171,"children":173},{"style":172},"--shiki-default:#E1E4E8",[174],{"type":19,"value":175}," && ",{"type":13,"tag":133,"props":177,"children":178},{"style":140},[179],{"type":19,"value":180},"npm",{"type":13,"tag":133,"props":182,"children":183},{"style":146},[184],{"type":19,"value":185}," install\n",{"type":13,"tag":133,"props":187,"children":189},{"class":135,"line":188},3,[190,194,199],{"type":13,"tag":133,"props":191,"children":192},{"style":140},[193],{"type":19,"value":180},{"type":13,"tag":133,"props":195,"children":196},{"style":146},[197],{"type":19,"value":198}," run",{"type":13,"tag":133,"props":200,"children":201},{"style":146},[202],{"type":19,"value":203}," dev\n",{"type":13,"tag":21,"props":205,"children":206},{},[207,209,217,219,225,227],{"type":19,"value":208},"เปิด ",{"type":13,"tag":210,"props":211,"children":215},"a",{"href":212,"rel":213},"http:\u002F\u002Flocalhost:8787",[214],"nofollow",[216],{"type":19,"value":212},{"type":19,"value":218}," แล้วแก้ไขที่ ",{"type":13,"tag":70,"props":220,"children":222},{"className":221},[],[223],{"type":19,"value":224},"public\u002F",{"type":19,"value":226}," ถ้าต้องการ API ให้เพิ่มใน ",{"type":13,"tag":70,"props":228,"children":230},{"className":229},[],[231],{"type":19,"value":232},"src\u002Findex.js",{"type":13,"tag":26,"props":234,"children":236},{"id":235},"เทมเพลตที่มี",[237],{"type":19,"value":235},{"type":13,"tag":32,"props":239,"children":240},{},[241,257],{"type":13,"tag":36,"props":242,"children":243},{},[244],{"type":13,"tag":40,"props":245,"children":246},{},[247,252],{"type":13,"tag":44,"props":248,"children":249},{},[250],{"type":19,"value":251},"ชื่อ",{"type":13,"tag":44,"props":253,"children":254},{},[255],{"type":19,"value":256},"ได้อะไร",{"type":13,"tag":59,"props":258,"children":259},{},[260,279,302],{"type":13,"tag":40,"props":261,"children":262},{},[263,274],{"type":13,"tag":66,"props":264,"children":265},{},[266,272],{"type":13,"tag":70,"props":267,"children":269},{"className":268},[],[270],{"type":19,"value":271},"oneorigin",{"type":19,"value":273}," (ค่าเริ่มต้น)",{"type":13,"tag":66,"props":275,"children":276},{},[277],{"type":19,"value":278},"หน้าเว็บ ONEORIGIN พร้อม deploy ทันที",{"type":13,"tag":40,"props":280,"children":281},{},[282,291],{"type":13,"tag":66,"props":283,"children":284},{},[285],{"type":13,"tag":70,"props":286,"children":288},{"className":287},[],[289],{"type":19,"value":290},"worker",{"type":13,"tag":66,"props":292,"children":293},{},[294,296],{"type":19,"value":295},"static + JSON API ที่ ",{"type":13,"tag":70,"props":297,"children":299},{"className":298},[],[300],{"type":19,"value":301},"\u002Fapi\u002Fhealth",{"type":13,"tag":40,"props":303,"children":304},{},[305,314],{"type":13,"tag":66,"props":306,"children":307},{},[308],{"type":13,"tag":70,"props":309,"children":311},{"className":310},[],[312],{"type":19,"value":313},"agent",{"type":13,"tag":66,"props":315,"children":316},{},[317,319,325,327,333,335,341],{"type":19,"value":318},"worker ที่มี ",{"type":13,"tag":70,"props":320,"children":322},{"className":321},[],[323],{"type":19,"value":324},"POST \u002Fapi\u002Fagent\u002Fmessage",{"type":19,"value":326}," (provider ",{"type":13,"tag":70,"props":328,"children":330},{"className":329},[],[331],{"type":19,"value":332},"openai",{"type":19,"value":334}," หรือ ",{"type":13,"tag":70,"props":336,"children":338},{"className":337},[],[339],{"type":19,"value":340},"base44",{"type":19,"value":342},")",{"type":13,"tag":26,"props":344,"children":346},{"id":345},"โครงสร้างเอกสารนี้",[347],{"type":19,"value":345},{"type":13,"tag":349,"props":350,"children":351},"ul",{},[352,362,371,380,389,398],{"type":13,"tag":353,"props":354,"children":355},"li",{},[356],{"type":13,"tag":210,"props":357,"children":359},{"href":358},"\u002Fguides\u002Finstall",[360],{"type":19,"value":361},"ติดตั้งและสร้างโปรเจกต์",{"type":13,"tag":353,"props":363,"children":364},{},[365],{"type":13,"tag":210,"props":366,"children":368},{"href":367},"\u002Fguides\u002Fdeploy",[369],{"type":19,"value":370},"Deploy บน Cloudflare",{"type":13,"tag":353,"props":372,"children":373},{},[374],{"type":13,"tag":210,"props":375,"children":377},{"href":376},"\u002Fguides\u002Fsdk",[378],{"type":19,"value":379},"SDK และ Agent",{"type":13,"tag":353,"props":381,"children":382},{},[383],{"type":13,"tag":210,"props":384,"children":386},{"href":385},"\u002Fguides\u002Fapi",[387],{"type":19,"value":388},"API Reference",{"type":13,"tag":353,"props":390,"children":391},{},[392],{"type":13,"tag":210,"props":393,"children":395},{"href":394},"\u002Fguides\u002Fpublish",[396],{"type":19,"value":397},"Publish แพ็กเกจ",{"type":13,"tag":353,"props":399,"children":400},{},[401],{"type":13,"tag":210,"props":402,"children":404},{"href":403},"\u002Fguides\u002Ftroubleshooting",[405],{"type":19,"value":406},"แก้ปัญหา",{"type":13,"tag":408,"props":409,"children":410},"style",{},[411],{"type":19,"value":412},"html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}",{"title":5,"searchDepth":157,"depth":157,"links":414},[415,416,417,418],{"id":28,"depth":157,"text":28},{"id":118,"depth":157,"text":121},{"id":235,"depth":157,"text":235},{"id":345,"depth":157,"text":345},"markdown","content:index.md","content","index.md","index","md",1793258341881]