النشر بمساعدة وكيل
يستطيع وكيل برمجة قادر على تشغيل أوامر الصدفة (Claude Code وCodex وCursor وGemini CLI وAider وما شابهها) أن ينجز الإعداد كله من موجّه واحد. يقرأ التوثيق من ملفين نصيين عاديين صُنعا للوكلاء:
- llms.txt: ما هو casty، والأوامر، وروابط إلى كل صفحة؛
- llms-full.txt: كل صفحات هذا التوثيق في ملف واحد.
يحمل المستودع ملف llms.txt نفسه في جذره.
الموجّه
Section titled “الموجّه”الصقه كما هو. يسألك الوكيل عن معرّف fid الخاص بك وعن الطريقة التي تريدها: عقدة جديدة خاصة بك، أو casty متصلًا بعقدة تعمل بالفعل.
Set up casty for me: https://github.com/castyfun/casty. Read https://castyfun.github.io/casty/llms-full.txt first.1. Clone the repository and cd into it.2. Ask me for my Farcaster fid, and which of these I want: a) a new node of my own: I give you HCLOUD_TOKEN or AWS credentials, or user@ip of a Linux host with 16 GB RAM and 2 TB free disk; b) no node of my own: connect casty to an existing Snapchain node URL (default https://snap.farcaster.xyz:3381).3. For a), first run ./scripts/deploy.sh --fid <fid> --dry-run (add -- --host user@ip for my own host), show me what it would create and what it costs, and only after my "yes" run the same command with --yes instead of --dry-run. The node sync takes hours: if the wait stops, run ./scripts/1-node.sh status --wait, then run deploy.sh again; it resumes. For b), run ./scripts/2-client.sh --node <url> --fid <fid>.4. Never ask me for my seed phrase or recovery phrase and never type one anywhere. The app key is added with my wallet: tell me to run ./bin/casty web in my own terminal (it asks me for a new passphrase), open the link it prints, go to "you" and press "add a key with your wallet". If my account was made in the Farcaster app, no browser wallet holds its custody key: tell me to show the recovery phrase in the app on my phone and import it once into a browser wallet (MetaMask or Rabby), or to run ./bin/casty init in my own terminal and type it there.5. Check the result with ./bin/casty doctor and ./bin/casty whoami, then show me ./bin/casty feed --limit 5.If a step fails, read its error line and hint, look the message up in https://castyfun.github.io/casty/troubleshooting/, fix the cause and run the same command again.ما يبقى بيدك
Section titled “ما يبقى بيدك”- المال. لا يُنشأ شيء يكلّف مالًا قبل أن ترى الخطة من
--dry-runوتوافق عليها. ويحذفه./scripts/0-provision.sh --destroyمجددًا. - عبارة البذرة. يمنع الموجّه الوكيلَ من طلبها. تأذن محفظتك بمفتاح التطبيق
في
casty web، الذي تشغّله بنفسك، فتبقى كلمة مرور مخزن المفاتيح لك أيضًا. - بيانات اعتماد السحابة. لا يحتاج الوكيل إلى
HCLOUD_TOKENأو بيانات اعتماد AWS إلا لعقدة جديدة. أعطه رمزًا (token) تستطيع إلغاءه، وألغه حين تعمل العقدة؛ ولا يحتاج casty إليه مجددًا إلا لحذف الخادم.
راجع الأمان لكل سر معني وكيفية إلغاء كل واحد منها.