Repository navigation
Conversation
…t provider A hosted Agents type whose provider is a Node server on 127.0.0.1:8787. It holds each agent's key, takes the owner's NIP-OA attestation, publishes the agent's profile and answers its owner's mentions with "ack", reading and writing the community over HTTP with NIP-98 and the attestation as x-auth-tag. For trying the hosted flow end to end; not for merging. Its replies carry the app's `ms` tag, at least a millisecond after the message they answer, so a reply in the same second sorts after it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Bradley Axen <baxen@squareup.com>
Collaborator
Author
|
this is just a reference |
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.
Stacked on #870. Kept as a draft for reference; not for merging.
examples/plugins/remote-ackbotis a hosted Agents type plus a Node provider on127.0.0.1:8787. The provider holds each agent's key, takes the owner's NIP-OA attestation, publishes the agent's profile and answers its owner's mentions with "ack". It reads and writes the community over HTTP with NIP-98 and the attestation asx-auth-tag, as the app's own agents do.Its replies carry the app's
mstag, set at least a millisecond after the message they answer. Without it, a reply in the same second as the mention could sort above it.Trying it
node examples/plugins/remote-ackbot/server.mjs. AddFAIL_ACTIVATE=1to try Finish setup.bin/just desktop. It has to be a dev build, because release CSP blocks the plugin's localhost fetch.examples/plugins/remote-ackbot, then enable it.The server answers only the app's and local pages' origins, and keeps its state file readable only by you. Keys are stored in plain text, so use it for testing only.
Testing
Origingets 403.ms900 got a reply in the same second withms901.🤖 Generated with Claude Code