fix(linear): refresh setup UI and preserve channel lifecycle state
This commit is contained in:
1 parent
e9414da243
commit
3c7ebd6cd8
31 files changed
+699
-245
No files matched your search
@@ -0,0 +1,33 @@
|
||||
export function linearManifestUrl(
|
||||
publicBaseUrl: string,
|
||||
webhookPath: string,
|
||||
callbackPath: string,
|
||||
): string {
|
||||
const manifest = {
|
||||
$schema: "https://linear.app/.well-known/oauth-app-manifest.schema.json",
|
||||
schemaVersion: "1.0.0",
|
||||
distribution: "private",
|
||||
display: {
|
||||
description: "Use nanobot as a native issue agent.",
|
||||
},
|
||||
developer: { name: "nanobot" },
|
||||
oauth: {
|
||||
client_name: "nanobot Agent",
|
||||
client_uri: publicBaseUrl,
|
||||
redirect_uris: [`${publicBaseUrl}${callbackPath}`],
|
||||
grant_types: ["authorization_code"],
|
||||
},
|
||||
webhook: {
|
||||
enabled: true,
|
||||
url: `${publicBaseUrl}${webhookPath}`,
|
||||
resourceTypes: [
|
||||
"AgentSessionEvent",
|
||||
"PermissionChange",
|
||||
"OAuthAuthorization",
|
||||
],
|
||||
},
|
||||
};
|
||||
return `https://linear.app/settings/api/applications/new?${new URLSearchParams({
|
||||
manifest: JSON.stringify(manifest),
|
||||
})}`;
|
||||
}
|
||||
Reference in new issue
Block a user