Skip to content

Conversation

@AndyTitu
Copy link
Contributor

@AndyTitu AndyTitu commented Sep 9, 2025

Summary

This MR adds logic for handling invoking requests directly though the desktop app, for leveraging the desktop app prompt authentication model for desktop integrations built on top of the SDK.

Thought Process

A new core implementation was added to load a shared lib from the Desktop app bundle used to make IPC calls to the desktop app server. To do that we first attempt for find the path of the desktop app from well known locations.

The client builder api is enriched with an option to specify whether you want a specific client to authenticate via auth prompts.

NOTE: Internal op-codegen will need changes as well since code generated files were modified. But I'm leaving that for after the api is stabilised

How to Test

This can be tested only using an internal desktop app build that spawns an IPC server.

@edif2008 edif2008 force-pushed the andi/desktop-integration branch 3 times, most recently from e1778f4 to a732e9d Compare October 17, 2025 19:27
@edif2008 edif2008 force-pushed the andi/desktop-integration branch from a732e9d to 72b5315 Compare October 17, 2025 19:29
@edif2008 edif2008 force-pushed the andi/desktop-integration branch from 72b5315 to f238d26 Compare October 17, 2025 21:13
@edif2008 edif2008 force-pushed the andi/desktop-integration branch from f238d26 to 3eab07a Compare October 17, 2025 21:15
This is caused by the changes in the 1Password app side in which the return type has been changed.
- async linters are still silenced where applicable
- We silence @typescript-eslint/no-var-requires since it's not applicable for our case.
@edif2008 edif2008 force-pushed the andi/desktop-integration branch from 086320e to 20738e0 Compare October 20, 2025 14:01
The module is now loaded directly as a dylib.
The function we call is now async.
Copy link
Contributor Author

@AndyTitu AndyTitu left a comment

Choose a reason for hiding this comment

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

LGTM!

@edif2008 edif2008 merged commit 6941918 into sdks-for-desktop-integrations Oct 23, 2025
14 checks passed
@edif2008 edif2008 deleted the andi/desktop-integration branch October 23, 2025 11:52
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.

4 participants