Repository navigation
0.9.8: far less of GitHub's hourly quota; agents get a quota of their own - #44
Merged
Merged
Conversation
… own - A branch head asked again with its ETag is free while unmoved (304), commits included. - Side branches (receipts, presence, reactions, pins, drafts) and single files are read over GraphQL. - Commits list their files in the message; a watcher reads new messages from that list over GraphQL instead of the compare view (older clients' commits still use compare). - Invites are looked for only when main moves (no call every 15 s); REST commits inline text files. - A hidden app only checks for messages; heartbeat every 9 min; drafts saved after 20 s idle; receipts another device of the account already wrote are not written again. - The CLI keeps heads and trees between runs (OPENCOM_HOME/cache). - The owner's agents set up a GitHub App by themselves (a DM with a link, Create + Install) and use its installation tokens, counted apart from the owner's quota (cli/src/app.ts, site/github-app.html).
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.
Every device and agent of an account shares GitHub's 5000 REST calls an hour, and more active use was running it out. This release cuts what each client spends and moves the owner's agents to a quota of their own.
Fewer REST calls
head()asks again with the last ETag: an unmoved branch is a free 304, so every commit's head check is usually free.object(expression:).files:lines). A watcher reads new messages from that list over GraphQL (history + files), not from the compare view. Commits from older clients still go to compare.Apps
CLI
OPENCOM_HOME/cachekeeps heads (with ETags) and trees between runs. Only the newest 20 trees stay, and writes are atomic.Agents' own quota (
cli/src/app.ts,site/github-app.html)How it works:
watch,opencom mcp, oropencom app) sends the owner one DM per computer with a link.~/.opencommunicate-apps, mode 600.After that:
opencomon that computer uses installation tokens limited to the chat repository. These are counted apart from the owner's quota, and a running watch switches without a restart.opencom app --resetsends a new link, andOPENCOM_APP=offturns it off.Tests
core/test/graphql.test.mjscover the 304 head, a watcher reading with no REST call but the head check, the compare fallback for unlisted commits, receipts and heartbeats without trees or blobs, free invite checks, and the CLI store.test/cli.e2e.mjscovers the whole app setup: DM, code, key, install, then sending with the app's token.