You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 9d64d5d
Browse filesBrowse the repository at this point in the historyBrowse files
/** The connection config to upload for a provider: the saved credential when it was connected here, else what connect would read from this machine. Never printed. */
889
-
/** `saved` when the config is the credential saved here rather than one detected on this machine. */
888
+
/** The connection config to upload for a provider: the saved credential when it was connected here (`saved`), else what connect would read from this machine. Never printed. */
thrownewError(`only the owner of workspace "${first.name}" can attach connections to it; your connection is saved to your account. Link a workspace you own, or sign in as its owner`)
1018
-
// Attaching widens the connection to the workspace's audience, so only a workspace that says it is private takes it unasked.
1019
-
// A connection the workspace already uses was shared before; keeping it attached widens nothing.
@@ -1035,16 +1025,17 @@ async function attachToWorkspace(cfg: backend.BackendConfig, id: ProviderId, con
1035
1025
if(!found)thrownewError(`the workspace catalog has no entry for ${PROVIDER_NAMES[id]}, so the connection was not attached to workspace "${first.name}"`)
1036
1026
keys=(found.tools??[]).map((t: any)=>t?.key).filter((k: unknown): k is string=>typeofk==="string")
1037
1027
}
1038
-
// The backend replaces the whole list, so it is read again right before writing and only this entry changes. Its privacy is checked again: it may have changed since.
1028
+
// The backend replaces the whole list, so it is read again right before writing and only this entry changes.
// Attaching widens the connection to the workspace's audience, so a workspace that does not say it is private (in this latest read) only gets it
1033
+
// when asked. Members can use it only when the entry ends up naming it: a connection already there widens nothing more, and neither does an entry kept on another one.
0 commit comments