Repository navigation
Let users request a new source type from the New inbox form - #66
Merged
Merged
Conversation
Where SOURCE_REQUEST_URL and SOURCE_REQUEST_TOKEN are set, the Source list ends with "Something else…". Submitting it calls POST /sources/requests, which posts a source.requested message to that loopway inbox. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
mcwhittemore
reviewed
Oct 9, 2026
Collaborator
|
readme conflict needs to be resolved. |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…uest-source # Conflicts: # README.md
Contributor
Author
|
Resolved: I merged main in. #65 split the README, so the source-request docs now live in |
Collaborator
Collaborator
|
finish clean up |
This branch was previously deployed
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.

Closes #53
Adds a way to ask for a source type loopway doesn't have yet. It uses the
loopwaysource from #54: the server posts the request to a craftmill loopway inbox through its webhook, with that inbox's token.What changed
POST /sources/requests{description}(signed-in users). Posts{type: "source.requested", id: <new uuid>, data: {description, user: {id}}}to the inbox set bySOURCE_REQUEST_URLandSOURCE_REQUEST_TOKEN. It answers202,404if the deployment doesn't set them, and502if the inbox refuses the message.GET /sourcesnow also returnscan_request, so the frontend knows whether this deployment takes requests. Only craftmill's deployment sets the env vars, so self-hosted copies never show the option. The server does the posting, so the inbox token never reaches the browser.can_requestis true, the Source list ends with "Something else…". Picking it swaps the form for a "Which webhook do you want?" field and a "Request it" button.docs/api.md,docs/developing.mdand.env.exampledocument the endpoint and env vars.Defaults I picked where the questions on #53 weren't answered:
Deploy steps
source-requests(01a11e88-c5c0-7146-9f9c-cba5a4e488ca). It's aloopwaysource that accepts onlysource.requested, with a schema requiringdata.descriptionanddata.user.id.SOURCE_REQUEST_URL=https://loopway.craftmill.dev/webhooks/01a11e88-c5c0-7146-9f9c-cba5a4e488caSOURCE_REQUEST_TOKEN=<the inbox token>: runloopway inbox show source-requests. I've left it out of this PR on purpose.loopway bots update loopway-dev --inbox craftmill/loopway,source-requests. Today'sgithub-threadskind routes byowner/repo#N, so each request would start a new session withthread.md, which isn't written for this. A dedicated bot kind or prompt would be a follow-up.No migrations.
Testing
npm run typecheck,npm run lintandnpm run format:checkpass. Web tests pass (49).source.requestedCloudEvent; the feature is off without config (can_request: false,404); a refused post gives502.events list,threads --max), and the other three runs passed.🤖 Generated with Claude Code