this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

updates, logic

alice e01984db 031e0af6

+19 -19
+14 -14
package.json
··· 7 7 "dev": "npx tsx --watch src/main.ts" 8 8 }, 9 9 "devDependencies": { 10 - "@eslint/js": "^9.11.1", 10 + "@eslint/js": "^9.13.0", 11 11 "@trivago/prettier-plugin-sort-imports": "^4.3.0", 12 12 "@types/better-sqlite3": "^7.6.11", 13 13 "@types/eslint__js": "^8.42.3", 14 - "@types/node": "^22.7.4", 14 + "@types/node": "^22.8.1", 15 15 "@types/ws": "^8.5.12", 16 16 "@types/express": "^4.17.21", 17 - "eslint": "^9.11.1", 17 + "eslint": "^9.13.0", 18 18 "prettier": "^3.3.3", 19 - "typescript": "^5.6.2", 20 - "typescript-eslint": "^8.7.0" 19 + "typescript": "^5.6.3", 20 + "typescript-eslint": "^8.11.0" 21 21 }, 22 22 "dependencies": { 23 - "@ai-sdk/anthropic": "^0.0.51", 24 - "@ai-sdk/openai": "^0.0.63", 25 - "@atproto/api": "^0.13.8", 26 - "@skyware/jetstream": "^0.1.6", 27 - "@skyware/labeler": "^0.1.7", 28 - "ai": "^3.4.7", 23 + "@ai-sdk/anthropic": "^0.0.53", 24 + "@ai-sdk/openai": "^0.0.70", 25 + "@atproto/api": "^0.13.12", 26 + "@skyware/jetstream": "^0.2.0", 27 + "@skyware/labeler": "^0.1.11", 28 + "ai": "^3.4.20", 29 29 "canvas": "^2.11.2", 30 30 "dotenv": "^16.4.5", 31 - "express": "^4.21.0", 32 - "pino": "^9.4.0", 33 - "pino-pretty": "^11.2.2", 31 + "express": "^4.21.1", 32 + "pino": "^9.5.0", 33 + "pino-pretty": "^11.3.0", 34 34 "prom-client": "^15.1.3", 35 35 "zod": "^3.23.8" 36 36 }
+5 -5
src/label.ts
··· 135 135 } 136 136 137 137 async function prepareAvatar(subject: AppBskyActorDefs.ProfileView) { 138 - const size = 150; 138 + const size = 256; 139 139 const canvas = createCanvas(size, size); 140 140 const ctx = canvas.getContext('2d'); 141 141 ··· 158 158 return ` 159 159 You're the Sorting Hat from Harry Potter. Which house does the user with the profile data at the end of this message belong to? 160 160 161 - Focus on the available information. If the avatar is not available, a 1x1 pixel white image is provided instead as a placeholder. Disregard the placeholder and focus on the user's data. 162 161 Always return an answer — house name only, all lowercase. 163 - The user's data may be in any language. Focus on the meaning, not just the surface content. 164 - Consider traits for all houses, not just intellect. 165 - You're strongly mischievous and enjoy sorting based on whims, not always strictly following the user's traits; imagine as if you're a person who likes to play tricks on people. 162 + 163 + First, flip an imaginary coin and if it's heads, return a random house name, if it's tails, proceed with the logic described below. 164 + 165 + Focus on the available information. If the avatar is not available, a 1x1 pixel white image is provided instead. Disregard it and focus on the rest of their data. The user's data may be in any language. Focus on the meaning, not just the surface content Consider traits for all houses, not just intellect. 166 166 167 167 The user's data is as follows: 168 168