Repository navigation
feat(agents c0mpute): every c0mpute chat command, out of the box (v0.126.0) - #612
Merged
Merged
Conversation
…126.0) `moshcode agents c0mpute` now takes the same lines as c0mpute.com/chat: /image, /video, /music, /album, /promo (and their aliases), /push hosting, /connect hosting, /plugin, plus /login. Parsers are ports of c0mpute's apps/web/src/lib/chat/*.ts with the same regexes; plain text asking for a promo video of a link becomes /promo, as in the chat. Media jobs run as background tasks on the task board and save to ./c0mpute-media/. With no sign-in they go to Infernet /api/chat/* with the ik_live_ key moshcode already has (or the free tier); with a c0mpute.com key (/login device flow, `c0mpute chat login`, or C0MPUTE_CHAT_KEY) they run on the account via /api/v1/*, which /push, /connect and /plugin need. Print mode runs a media line in the foreground and prints the saved paths. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…every timer tick Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ThreatCrush Security Scan0 finding(s) in the 6 file(s) this pull request changes. Nothing in the files this pull request changes. 125 pre-existing finding(s) elsewhere in the repository — **HIGH/CRITICAL**: 8 | **MEDIUM**: 87 | **LOW**: 30Not introduced by this pull request. The full set is in the Security tab.
…and 105 more. Full results in the Security tab. Snippets are redacted; ThreatCrush never prints matched credential material. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
moshcode agents c0mpute(and/agents c0mputein the pit) now takes the same commands as c0mpute.com/chat, with no setup:/image(/img,/draw)/video(/clip,/vid)[--model wan2.2-ti2v-5b]/music(/song)<style> [lyrics: …]/album(/lp)/promo <url> [style] [vertical]/push hosting <name>·ls·rm/connect hosting [node]/plugin add|ls|on|off|rm|connect/loginHow it works
apps/web/src/lib/chat/*.tswith the same regexes (src/c0chat-commands.mjs)./tasksshows progress, and finished files are announced and saved to./c0mpute-media/./api/chat/*with theik_live_key moshcode already has (or the free tier). With a c0mpute.comc0k_key they go to/api/v1/*on that account;/pushonly accepts results made that way. The key comes from/login,c0mpute chat login's~/.c0mpute/chat.json, orC0MPUTE_CHAT_KEY. It is deliberately not read fromC0MPUTE_API_KEY, which already holds moshcode's Infernet key.moshcode agents c0mpute -p "/image a red bicycle"waits for the result and prints the saved paths on stdout.Tested
test/c0chat-commands.test.mjs: parsers, backend choice, key precedence, every media kind against a fake fetch (including deploy 503s and the one-shot image body), push files, device login. With the help and c0agent suites, 91/91 pass./imagesaved a 1.1 MB PNG in 9:50, and/plugin ls,/push hosting lsand/connect hostingreturned real data./musicwas accepted and polled, but no music worker became free within 25 min, so it never rendered (network capacity, not this change).[1 working]prompt, completion announcement,/tasks.🤖 Generated with Claude Code