Skip to content

feat: add provider for patchwork workers - #70

Merged
chee merged 3 commits into
mainfrom
grjte/iso-llm-2
Oct 5, 2026
Merged

chee merged 3 commits into
mainfrom
grjte/iso-llm-2

Conversation

@grjte

@grjte grjte commented Sep 23, 2026

Copy link
Copy Markdown
Collaborator

This adds patchwork-worker-provider, a provider which can be used to get a worker that runs using the patchwork worker library. The workers are provided by "kind", which is a string that matches a worker plugin registered in the plugin registry. For example, a "patchwork:worker" plugin of kind "llm", that has already been registered

@patchcrow

patchcrow commented Sep 23, 2026 •

Copy link
Copy Markdown
Collaborator

🪡 Patchwork preview

Torn down.

@grjte
grjte added this pull request to stack #71 September 23, 2026 16:10
@chee
chee force-pushed the grjte/iso-llm-2 branch from 97337ed to 8525acf Compare October 1, 2026 23:41
chee
chee previously approved these changes Oct 1, 2026
Comment thread providers/src/WorkerProvider.ts Outdated
chee
chee previously approved these changes Oct 1, 2026
@chee
chee force-pushed the grjte/iso-llm-2 branch 2 times, most recently from 7b4e4af to dcf80f2 Compare October 5, 2026 10:56
Base automatically changed from grjte/iso-llm-1 to main October 5, 2026 10:57
@chee
chee force-pushed the grjte/iso-llm-2 branch from dcf80f2 to 1225170 Compare October 5, 2026 10:57
// Decline what we cannot serve, SYNCHRONOUSLY and without claiming, so the
// event keeps bubbling and something else may answer. Must come BEFORE
// `accept()`, which claims via stopPropagation() the moment it is called.
if (!kind || !workers.has(kind)) return;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

might be nice to have a log here

@chee chee left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i'd prefer something more specific over kind, but

@chee
chee merged commit adfffd9 into main Oct 5, 2026
5 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants