Skip to content

Conversation

StrongMonkey
Copy link
Contributor

@StrongMonkey StrongMonkey commented Mar 26, 2025

Add ability to support inline prompt to allow user to select oauth/pat in tools. It drops the existing oauth env variables we use and in oauth tool add ability to prompt user to select auth type.

https://www.loom.com/share/e73f61cd9c884607be592ed7d34d89ba

#2140

need
gptscript-ai/go-gptscript#96
gptscript-ai/gptscript#955
obot-platform/tools#536

}

extraEnv = append(extraEnv, oauthEnv...)
extraEnv = append(extraEnv, fmt.Sprintf("OAUTH_SERVER_URL=%s", oauthServerURL))
Copy link
Contributor Author

Choose a reason for hiding this comment

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

dropping all the existing env url that we are passing down to the oauth tool. It is no longer needed(used to determine whether tool need to do oauth or not) and oauth tool can figure out the url by itself given the server url. obot-platform/tools@156b7bd#diff-9ae2ae74ccd09b47849da90bbe83ab989b5cf7bdc4d074c82046370972269defR78

name={field.name}
bind:value={promptCredentials[field.name]}
/>
{#if field.options}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

new ui components to handle field with options. For now, it is buttons but we can customize it to be dropdowns

<dialog bind:this={dialog} class="h-1/4 min-h-[300px] w-1/3 min-w-[300px] overflow-visible p-5">
<dialog
bind:this={dialog}
class="max-h-[90vh] min-h-[300px] w-1/3 min-w-[300px] overflow-visible p-5"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

fix the dialog not extending :)

@StrongMonkey StrongMonkey force-pushed the oauth-pat branch 2 times, most recently from 30ae6c0 to 88391e8 Compare March 31, 2025 20:17
@StrongMonkey StrongMonkey merged commit 1aa0ad3 into obot-platform:main Mar 31, 2025
3 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