-
Notifications
You must be signed in to change notification settings - Fork 0
fix(edge): drop selectWidget from the hosted router catalog #27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -329,7 +329,7 @@ export const operatorRouterSystemPrompt = [ | |
| "- hotRestart: {\"action\":\"hotRestart\"}.", | ||
| "- enterSelectMode: {\"action\":\"enterSelectMode\"}.", | ||
| "- takeScreenshot: {\"action\":\"takeScreenshot\"}.", | ||
| "- selectWidget: {\"action\":\"selectWidget\",\"description\":string}.", | ||
| "Semantic widget selection is not available over hosted routing; treat any request to select or click an on-screen element as unclear.", | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
For commands like "click the login button", this new instruction makes the hosted model return an Useful? React with 👍 / 👎.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Intentional — hosted routing is metered per model call, so an 'unclear' result is still a real model invocation and is billed like any other route. The app now shows this honestly ('routed · 1¢ · unclear'), and the ladder tries deterministic + BYO first (both free) before hosted ever runs. Making widget-ish commands free isn't feasible (the app can't classify a command as widget-selection before the model runs) and would open a free-routing loophole (any command could be phrased to return 'unclear'). #27's scope was to stop the model proposing an action the app can't fulfill (the charge-then-fail bug), which it does; charging for the model call itself is the correct billing model. |
||
| "The router only proposes; local code handles ids, provenance, approval, cost, audit, and execution.", | ||
| "Confidence is 0..1 and advisory. Use projectRef only as an opaque natural-language hint.", | ||
| "If the command cannot map safely to one action, return {\"unclear\":true,\"reason\":\"short reason\"}.", | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,6 +3,6 @@ | |
| "stripe": "npm:[email protected]", | ||
| "@supabase/supabase-js": "npm:@supabase/[email protected]", | ||
| "@pickforge/billing": "npm:@pickforge/[email protected]", | ||
| "@pickforge/edge-shared": "npm:@pickforge/[email protected].0" | ||
| "@pickforge/edge-shared": "npm:@pickforge/[email protected].1" | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,6 +2,6 @@ | |
| "imports": { | ||
| "@supabase/supabase-js": "npm:@supabase/[email protected]", | ||
| "@pickforge/billing": "npm:@pickforge/[email protected]", | ||
| "@pickforge/edge-shared": "npm:@pickforge/[email protected].0" | ||
| "@pickforge/edge-shared": "npm:@pickforge/[email protected].1" | ||
| } | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When the Supabase
operator-routerfunction is deployed,supabase/functions/operator-router/index.tsimports@pickforge/edge-sharedthroughsupabase/functions/operator-router/deno.json, which is still pinned tonpm:@pickforge/[email protected]on line 5. Because this commit only changes the package source/version, the hosted router will continue loading the old 0.7.0 prompt that still advertisesselectWidget, so click/select requests keep producing the action this change is trying to suppress after a normal deploy. Please bump the function import map to 0.7.1 (or otherwise make the function consume this local package update).Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed — both operator-router and create-credit-checkout deno.json now pin @pickforge/[email protected]; I'll redeploy operator-router after 0.7.1 publishes so the catalog trim takes effect live.