feat: desktop app + Ollama discovery + voice/keychain fixes#51
Closed
UmarFarooq75 wants to merge 1 commit into
Closed
feat: desktop app + Ollama discovery + voice/keychain fixes#51UmarFarooq75 wants to merge 1 commit into
UmarFarooq75 wants to merge 1 commit into
Conversation
|
|
||
| @app.post("/desktop/click", dependencies=[Depends(verify_token)]) | ||
| def http_click(req: ClickReq) -> dict: | ||
| return handle(desktop.mouse_click, req.x, req.y, req.button, req.clicks) |
|
|
||
| @app.post("/desktop/move", dependencies=[Depends(verify_token)]) | ||
| def http_move(req: MoveReq) -> dict: | ||
| return handle(desktop.mouse_move, req.x, req.y, req.duration) |
|
|
||
| @app.post("/desktop/type", dependencies=[Depends(verify_token)]) | ||
| def http_type(req: TypeReq) -> dict: | ||
| return handle(desktop.type_text, req.text, req.interval) |
|
|
||
| @app.post("/desktop/keypress", dependencies=[Depends(verify_token)]) | ||
| def http_key(req: KeyReq) -> dict: | ||
| return handle(desktop.press_key, req.key) |
|
|
||
| @app.post("/desktop/combo", dependencies=[Depends(verify_token)]) | ||
| def http_combo(req: ComboReq) -> dict: | ||
| return handle(desktop.key_combo, req.keys) |
|
|
||
| @app.post("/desktop/scroll", dependencies=[Depends(verify_token)]) | ||
| def http_scroll(req: ScrollReq) -> dict: | ||
| return handle(desktop.scroll, req.dx, req.dy) |
|
|
||
| @app.post("/desktop/screenshot", dependencies=[Depends(verify_token)]) | ||
| def http_screenshot(req: ScreenshotReq) -> dict: | ||
| return handle(desktop.screenshot, req.region) |
|
|
||
| @app.get("/desktop/windows", dependencies=[Depends(verify_token)]) | ||
| def http_list_windows() -> dict: | ||
| return handle(desktop.list_windows) |
|
|
||
| @app.post("/desktop/focus", dependencies=[Depends(verify_token)]) | ||
| def http_focus(req: FocusReq) -> dict: | ||
| return handle(desktop.focus_window, req.name) |
Comment on lines
+146
to
+149
| return { | ||
| "running": running, | ||
| "error": _voice_error, | ||
| } |
| canUpdateOwnMetadata: true, | ||
| }, | ||
| }; | ||
| const b64url = (buf) => Buffer.from(buf).toString("base64").replace(/=+$/, "").replace(/\+/g, "-").replace(/\//g, "_"); |
| const headerB = b64url(JSON.stringify(header)); | ||
| const payloadB = b64url(JSON.stringify(payload)); | ||
| const toSign = `${headerB}.${payloadB}`; | ||
| const sig = createHmac("sha256", apiSecret).update(toSign).digest(); |
Includes session fixes: - Vertex SA auth via env vars (no hardcoded user paths) - Channels boot after vault unlock (fix silent secrets-missing skip) - Token refresh: 30 min sweep + per-account early-refresh timers - Vault stays unlocked until process restart - .env loaded via Node loadEnvFile at first import - README: removed stale daemora channels CLI references - .gitignore: credentials/secrets/scratch patterns
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.
Summary
Test plan