Skip to content

Open source Grok Bot alternative, Bring your own agent and subscription: message Claude Code, Codex, Gemini CLI, Cursor, Copilot and 40+ AI agents as bots on your own computer, from iPhone, Mac, Windows, Linux or terminal. Agent-agnostic and free. Also a Muse and Dots alternative. Built in Rust.

fix(apps): tapping an extension opens it, and only Add adds it

leepokai7a498ca0abf1
diff --git a/apps/android/WhatsNew.md b/apps/android/WhatsNew.md
index 4925b4a2..bf609358 100644
--- a/apps/android/WhatsNew.md
+++ b/apps/android/WhatsNew.md
@@ -12,7 +12,7 @@ else a generic "Bug fixes and improvements" line. Delete old sections.
### zh-Hant
- Bot 傳來的圖片會直接顯示在聊天裡,點一下可以放大看,不用先下載。
- 電腦上的 Codync 版本太舊時,更新提示多了「Update now」按鈕,直接從手機叫那台電腦更新。
-- 擴充套件一次顯示一個分類:智慧體、聯結器或技能;聯結器往下捲到底會自動載入更多。
+- 擴充套件一次顯示一個分類:智慧體、聯結器或技能;聯結器往下捲到底會自動載入更多。點項目只看詳情,按「Add」才加入。
- 電腦使用自建中繼時,設定和連線狀態會顯示該中繼的地址,不再一律寫成 Cloudflare。
- 可以建立使用 WorkBuddy 的 Bot,在聊天裡登入即可。
- 用量也會顯示這台電腦上其他 agent 的額度。Cursor 會用本機登入向 cursor.com 查詢。
@@ -20,7 +20,7 @@ else a generic "Bug fixes and improvements" line. Delete old sections.
### en-US
- Images a bot sends now show right in the chat; tap one to see it full size, no download needed.
- When a computer's Codync is too old for this app, Update now on the notice updates that computer from your phone.
-- Extensions shows Agents, Connectors or Skills one at a time; connectors load more as you scroll.
+- Extensions shows Agents, Connectors or Skills one at a time; connectors load more as you scroll. Tapping one only opens it; Add adds it.
- A private relay shows its address in Settings and status.
- Bots can run WorkBuddy; sign in from the chat.
- Adds other agents' limits. Cursor asks cursor.com.
diff --git a/apps/android/app/src/main/kotlin/com/codync/android/AgentSheet.kt b/apps/android/app/src/main/kotlin/com/codync/android/AgentSheet.kt
index 1eb14730..d7b2d3d2 100644
--- a/apps/android/app/src/main/kotlin/com/codync/android/AgentSheet.kt
+++ b/apps/android/app/src/main/kotlin/com/codync/android/AgentSheet.kt
@@ -76,8 +76,9 @@ internal fun agentRegistry(state: AppState, agent: String) = agentBackends(state
finally { checking = false }
}
}
- // A known "signed in" needs no agent start; everything else asks the agent (which can't start without its Node.js).
- LaunchedEffect(Unit) { if ((recheck || backend.signedIn != true) && !backend.needsNode) check() }
+ // A known "signed in" needs no agent start; one set up asks the agent (which can't start without its Node.js).
+ // Opening never downloads one: that waits for Set up.
+ LaunchedEffect(Unit) { if ((recheck || (setUp(backend, auth) && backend.signedIn != true)) && !backend.needsNode) check() }
val back = { route = null; check() }
AnimatedContent(route, transitionSpec = {
val forward = targetState != null
@@ -108,6 +109,7 @@ internal fun agentRegistry(state: AppState, agent: String) = agentBackends(state
val host = state.hostName
val signedIn = auth?.signedIn ?: backend.signedIn
val curated = backend.curated
+ val setUp = setUp(backend, auth)
CardForm {
CardSection {
row {
@@ -142,13 +144,18 @@ internal fun agentRegistry(state: AppState, agent: String) = agentBackends(state
Row(verticalAlignment = Alignment.CenterVertically) {
Box(Modifier.weight(1f)) {
SetupStepRow(1 + (if (curated) 1 else 0) + (if (backend.node != null) 1 else 0), "Sign in",
- statusText(backend, auth, signedIn, checking, host), signedIn == true, null)
+ statusText(backend, setUp, auth, signedIn, checking, host), signedIn == true, null)
}
if (checking) ThinkingOrb(ThinkingOrbState.Connecting, 16.dp, Palette.secondary) else IconButton("Check again", "arrow.clockwise", action = check)
}
}
val detail = auth?.detail
if (signedIn != true && !detail.isNullOrEmpty()) row { SelectionContainer { Text(detail, style = Type.footnote, color = Palette.secondary) } }
+ // A registry agent downloads on its first start; an app's own CLI comes from Install above.
+ if (!setUp && !curated && !checking && !backend.needsNode) row {
+ OptionRow("Set up", "Downloads ${backend.name} on $host if it needs to, then checks its sign-in.", "arrow.down.circle",
+ enabled = authenticating == null, action = check)
+ }
// Some CLIs drop the current sign-in the moment a new one starts: no options once signed in.
if (signedIn != true && !checking) {
if (auth?.login == true) row {
@@ -173,10 +180,14 @@ internal fun agentRegistry(state: AppState, agent: String) = agentBackends(state
}
}
-private fun statusText(backend: AgentBackend, auth: AgentAuth?, signedIn: Boolean?, checking: Boolean, host: String) = when {
+/** It has run on this computer: its CLI is there, or an earlier check started it. Until then, a check can download it. */
+private fun setUp(backend: AgentBackend, auth: AgentAuth?) = backend.installed || backend.signedIn != null || auth != null
+
+private fun statusText(backend: AgentBackend, setUp: Boolean, auth: AgentAuth?, signedIn: Boolean?, checking: Boolean, host: String) = when {
checking -> if (auth == null) "Checking with ${backend.name}… The first check can download it." else "Checking…"
signedIn == true -> "Signed in."
backend.needsNode -> "Add Node.js first."
+ !setUp -> if (backend.curated) "Install it first." else "Not set up on $host yet."
signedIn == false -> "Not signed in yet."
else -> "Couldn't tell. Skip this if you've already signed in on $host."
}
diff --git a/apps/android/app/src/main/kotlin/com/codync/android/ConnectorSheets.kt b/apps/android/app/src/main/kotlin/com/codync/android/ConnectorSheets.kt
index e24e88dd..e4115071 100644
--- a/apps/android/app/src/main/kotlin/com/codync/android/ConnectorSheets.kt
+++ b/apps/android/app/src/main/kotlin/com/codync/android/ConnectorSheets.kt
@@ -26,8 +26,12 @@ import java.io.IOException
import kotlinx.coroutines.CancellationException
import kotlinx.coroutines.launch
-/** Adds a registry connector (iOS `InstallConnectorSheet`): where it runs, its keys, then its sign-in. */
-@Composable internal fun InstallConnectorSheet(item: MarketConnector, state: AppState, store: AppStore, requestId: String? = null, done: () -> Unit = {}) {
+/**
+ * Adds a registry connector (iOS `InstallConnectorSheet`): where it runs, its keys, then its sign-in. `addsAtOnce`: opened
+ * by an Add, so a connector with nothing to fill in installs at once; opened to look at it, nothing installs until Add.
+ */
+@Composable internal fun InstallConnectorSheet(item: MarketConnector, state: AppState, store: AppStore, requestId: String? = null,
+ addsAtOnce: Boolean = true, done: () -> Unit = {}) {
val dismiss = LocalDismissModal.current
val scope = rememberCoroutineScope()
var optionId by remember(item.name) { mutableStateOf(item.options.firstOrNull()?.id.orEmpty()) }
@@ -57,8 +61,8 @@ import kotlinx.coroutines.launch
finally { saving = false; signingIn = false }
}
}
- // Nothing to fill in: it adds itself.
- LaunchedEffect(item.name) { if (item.options.size == 1 && item.options[0].inputs.isEmpty()) install() }
+ // Opened by an Add with nothing to fill in: it adds itself.
+ LaunchedEffect(item.name) { if (addsAtOnce && item.options.size == 1 && item.options[0].inputs.isEmpty()) install() }
// After a try that failed, Add with nothing typed tries the connector it saved again.
val ready = option?.complete(values) == true || (installed != null && values.values.all { it.isEmpty() })
Column(Modifier.fillMaxSize().background(Palette.background)) {
diff --git a/apps/android/app/src/main/kotlin/com/codync/android/MarketplaceView.kt b/apps/android/app/src/main/kotlin/com/codync/android/MarketplaceView.kt
index 5a96c9a2..1eb01b70 100644
--- a/apps/android/app/src/main/kotlin/com/codync/android/MarketplaceView.kt
+++ b/apps/android/app/src/main/kotlin/com/codync/android/MarketplaceView.kt
@@ -74,6 +74,7 @@ import kotlinx.coroutines.launch
var loadingSkills by remember { mutableStateOf(true) }
var error by remember { mutableStateOf<String?>(null) }
var installing by remember { mutableStateOf<MarketConnector?>(null) }
+ var viewingConnector by remember { mutableStateOf<MarketConnector?>(null) }
var busySkill by remember { mutableStateOf<String?>(null) }
var addingConnector by remember { mutableStateOf(false) }
var writingSkill by remember { mutableStateOf(false) }
@@ -127,7 +128,8 @@ import kotlinx.coroutines.launch
else -> {
val rows = connectors.items.items
items(rows, key = { it.name }) { c ->
- MarketRow(c.title, c.description ?: c.name, c.installed, icon = { ServiceLogo(c.website, c.title, c.name) }) { installing = c }
+ MarketRow(c.title, c.description ?: c.name, c.installed, open = if (c.installed) null else ({ viewingConnector = c }),
+ icon = { ServiceLogo(c.website, c.title, c.name) }) { installing = c }
}
connectors.cursor?.let { cursor -> item { LoadMoreRow(cursor, connectors.error != null) { connectors.loadMore() } } }
}
@@ -187,6 +189,7 @@ import kotlinx.coroutines.launch
Box(Modifier.align(Alignment.TopEnd).padding(8.dp)) { IconButton("Close", "xmark", action = dismiss) }
}
CodyncSheet(installing, { installing = null }) { InstallConnectorSheet(it, state, store) { submit() } }
+ CodyncSheet(viewingConnector, { viewingConnector = null }) { InstallConnectorSheet(it, state, store, addsAtOnce = false) { submit() } }
CodyncSheet(showCredentials, { showCredentials = false }) { CredentialsView(state, store) }
CodyncSheet(addingConnector, { addingConnector = false }) { CustomConnectorSheet(state, store) }
CodyncSheet(viewingSkill, { viewingSkill = null }) { SkillSheet(it, state, store) }
diff --git a/apps/desktop/src/renderer/views/marketplace/AgentSheet.tsx b/apps/desktop/src/renderer/views/marketplace/AgentSheet.tsx
index b5cab305..0f03e7b6 100644
--- a/apps/desktop/src/renderer/views/marketplace/AgentSheet.tsx
+++ b/apps/desktop/src/renderer/views/marketplace/AgentSheet.tsx
@@ -95,6 +95,9 @@ export function AgentSheet({ initial, recheck = false }: { initial: Backend; rec
const curated = backend.curated === true
const signedIn = auth?.signedIn ?? backend.signedIn ?? null
const nodeMissing = backend.node === 'missing'
+ // It has run on this computer: its CLI is there, or an earlier check started it. Until then, a
+ // check can download it, so only Set up starts one.
+ const setUp = installed || backend.signedIn != null || auth !== null
const host = store.hostName
const check = async () => {
@@ -127,10 +130,10 @@ export function AgentSheet({ initial, recheck = false }: { initial: Backend; rec
await store.refreshBackends()
}
- // A known "signed in" needs no agent start; everything else asks the agent (which can't
- // start without its Node.js).
+ // A known "signed in" needs no agent start; one set up asks the agent (which can't start
+ // without its Node.js). Opening never downloads one: that waits for Set up.
useEffect(() => {
- if ((recheck || backend.signedIn !== true) && !nodeMissing) void check()
+ if ((recheck || (setUp && backend.signedIn !== true)) && !nodeMissing) void check()
}, [])
// Back from a terminal or key form: see what changed.
@@ -151,6 +154,7 @@ export function AgentSheet({ initial, recheck = false }: { initial: Backend; rec
? (auth === null ? `Checking with ${backend.name}… The first check can download it.` : 'Checking…')
: signedIn === true ? 'Signed in.'
: nodeMissing ? 'Add Node.js first.'
+ : !setUp ? (curated ? 'Install it first.' : `Not set up on ${host} yet.`)
: signedIn === false ? 'Not signed in yet.'
: `Couldn't tell. Skip this if you've already signed in on ${host}.`
@@ -169,6 +173,10 @@ export function AgentSheet({ initial, recheck = false }: { initial: Backend; rec
)
const options: ReactNode[] = []
+ // A registry agent downloads on its first start; an app's own CLI comes from Install above.
+ if (!setUp && !curated && !checking && !nodeMissing) {
+ options.push(optionRow('setup', 'Set up', `Downloads ${backend.name} on ${host} if it needs to, then checks its sign-in.`, 'arrow.down.circle', () => void check()))
+ }
// Some CLIs drop the current sign-in the moment a new one starts: no options once signed in.
if (signedIn !== true && !checking) {
if (auth?.login) options.push(optionRow('login', 'Sign in', `In a terminal on ${host}. Links open here.`, 'terminal', () => setRoute({ kind: 'terminal', method: null })))
diff --git a/apps/desktop/src/renderer/views/marketplace/ConnectorSheets.tsx b/apps/desktop/src/renderer/views/marketplace/ConnectorSheets.tsx
index 0f922c08..765f0475 100644
--- a/apps/desktop/src/renderer/views/marketplace/ConnectorSheets.tsx
+++ b/apps/desktop/src/renderer/views/marketplace/ConnectorSheets.tsx
@@ -9,7 +9,11 @@ import { ErrorText, Field, WebLink } from './pieces'
import { usePlugins } from './plugins'
import { useTr } from '../../lib/use-language'
-export function InstallConnectorSheet({ item, requestId, done }: { item: MarketConnector; requestId?: string; done: () => void }) {
+/**
+ * `addsAtOnce`: opened by an Add, so a connector with nothing to fill in installs at once. Opened to
+ * look at it, nothing installs until Add in the header.
+ */
+export function InstallConnectorSheet({ item, requestId, addsAtOnce = true, done }: { item: MarketConnector; requestId?: string; addsAtOnce?: boolean; done: () => void }) {
const store = useStore()
const plugins = usePlugins(store)
const dismiss = useDismiss()
@@ -49,7 +53,7 @@ export function InstallConnectorSheet({ item, requestId, done }: { item: MarketC
useEffect(() => {
if (started.current) return
started.current = true
- if (item.options.length === 1 && item.options[0].inputs.length === 0) void install()
+ if (addsAtOnce && item.options.length === 1 && item.options[0].inputs.length === 0) void install()
}, [])
const tr = useTr()
diff --git a/apps/desktop/src/renderer/views/marketplace/MarketplacePanel.tsx b/apps/desktop/src/renderer/views/marketplace/MarketplacePanel.tsx
index 5be66720..7653b863 100644
--- a/apps/desktop/src/renderer/views/marketplace/MarketplacePanel.tsx
+++ b/apps/desktop/src/renderer/views/marketplace/MarketplacePanel.tsx
@@ -45,11 +45,12 @@ export function AgentsPanel({ agents, query, needsNode, onAddNode, onAgent }: {
)
}
-export function ConnectorsPanel({ catalog, query, onAddConnector, onInstall }: {
+export function ConnectorsPanel({ catalog, query, onAddConnector, onInstall, onView }: {
catalog: ConnectorCatalog<MarketConnector>
query: string
onAddConnector: () => void
onInstall: (connector: MarketConnector) => void
+ onView: (connector: MarketConnector) => void
}) {
const tr = useTr()
const rows = catalog.items.items
@@ -79,6 +80,7 @@ export function ConnectorsPanel({ catalog, query, onAddConnector, onInstall }: {
added={c.installed}
icon={<ServiceLogo website={c.website} name={c.title} registryName={c.name} />}
onAdd={() => onInstall(c)}
+ onOpen={c.installed ? undefined : () => onView(c)}
/>
))}
</ItemGrid>
diff --git a/apps/desktop/src/renderer/views/marketplace/MarketplaceView.tsx b/apps/desktop/src/renderer/views/marketplace/MarketplaceView.tsx
index ed1511a0..c08a5c13 100644
--- a/apps/desktop/src/renderer/views/marketplace/MarketplaceView.tsx
+++ b/apps/desktop/src/renderer/views/marketplace/MarketplaceView.tsx
@@ -44,6 +44,7 @@ export function MarketplaceView() {
const [loadingSkills, setLoadingSkills] = useState(true)
const [error, setError] = useState<string | null>(null)
const [installing, setInstalling] = useState<MarketConnector | null>(null)
+ const [viewingConnector, setViewingConnector] = useState<MarketConnector | null>(null)
const [busySkill, setBusySkill] = useState<string | null>(null)
const [addingConnector, setAddingConnector] = useState(false)
const [writingSkill, setWritingSkill] = useState(false)
@@ -173,6 +174,7 @@ export function MarketplaceView() {
query={query}
onAddConnector={() => setAddingConnector(true)}
onInstall={setInstalling}
+ onView={setViewingConnector}
/>
) : (
<SkillsPanel
@@ -201,6 +203,9 @@ export function MarketplaceView() {
<FormSheet open={installing !== null} onClose={() => setInstalling(null)}>
{installing ? <InstallConnectorSheet key={installing.name} item={installing} done={() => void connectors.reload()} /> : null}
</FormSheet>
+ <FormSheet open={viewingConnector !== null} onClose={() => setViewingConnector(null)}>
+ {viewingConnector ? <InstallConnectorSheet key={viewingConnector.name} item={viewingConnector} addsAtOnce={false} done={() => void connectors.reload()} /> : null}
+ </FormSheet>
<FormSheet open={addingConnector} onClose={() => setAddingConnector(false)}>
<CustomConnectorSheet />
</FormSheet>
diff --git a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/de.json b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/de.json
index 4f39dee0..f0506a57 100644
--- a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/de.json
+++ b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/de.json
@@ -1231,5 +1231,8 @@
"On a call · Speaking": "Im Anruf · Spricht",
"Call paused": "Anruf pausiert",
"You're up to date": "Alles auf dem neuesten Stand",
- "Codync {version} is currently the newest version available.": "Codync {version} ist die neueste verfügbare Version."
+ "Codync {version} is currently the newest version available.": "Codync {version} ist die neueste verfügbare Version.",
+ "Install it first.": "Installiere es zuerst.",
+ "Not set up on {name} yet.": "Auf {name} noch nicht eingerichtet.",
+ "Downloads {name} on {host} if it needs to, then checks its sign-in.": "Lädt {name} bei Bedarf auf {host} herunter und prüft dann die Anmeldung."
}
diff --git a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/es.json b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/es.json
index ffd715c3..bcd9a68f 100644
--- a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/es.json
+++ b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/es.json
@@ -1231,5 +1231,8 @@
"On a call · Speaking": "En llamada · Hablando",
"Call paused": "Llamada en pausa",
"You're up to date": "Todo está al día",
- "Codync {version} is currently the newest version available.": "Codync {version} es la versión más reciente disponible."
+ "Codync {version} is currently the newest version available.": "Codync {version} es la versión más reciente disponible.",
+ "Install it first.": "Instálalo primero.",
+ "Not set up on {name} yet.": "Aún no está configurado en {name}.",
+ "Downloads {name} on {host} if it needs to, then checks its sign-in.": "Descarga {name} en {host} si hace falta y luego comprueba su inicio de sesión."
}
diff --git a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/fr.json b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/fr.json
index f567cc95..c3f63864 100644
--- a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/fr.json
+++ b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/fr.json
@@ -1231,5 +1231,8 @@
"On a call · Speaking": "En appel · Parle",
"Call paused": "Appel en pause",
"You're up to date": "Tout est à jour",
- "Codync {version} is currently the newest version available.": "Codync {version} est la version la plus récente disponible."
+ "Codync {version} is currently the newest version available.": "Codync {version} est la version la plus récente disponible.",
+ "Install it first.": "Installez-le d'abord.",
+ "Not set up on {name} yet.": "Pas encore configuré sur {name}.",
+ "Downloads {name} on {host} if it needs to, then checks its sign-in.": "Télécharge {name} sur {host} si besoin, puis vérifie sa connexion."
}
diff --git a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/ja.json b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/ja.json
index 50b17a31..ba6f4843 100644
--- a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/ja.json
+++ b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/ja.json
@@ -1231,5 +1231,8 @@
"On a call · Speaking": "通話中 · 話しています",
"Call paused": "通話は一時停止中",
"You're up to date": "最新の状態です",
- "Codync {version} is currently the newest version available.": "Codync {version} は現在入手できる最新バージョンです。"
+ "Codync {version} is currently the newest version available.": "Codync {version} は現在入手できる最新バージョンです。",
+ "Install it first.": "先にインストールしてください。",
+ "Not set up on {name} yet.": "{name} ではまだセットアップされていません。",
+ "Downloads {name} on {host} if it needs to, then checks its sign-in.": "必要なら {host} に {name} をダウンロードし、サインイン状態を確認します。"
}
diff --git a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/ko.json b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/ko.json
index abf1bb9d..3749f577 100644
--- a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/ko.json
+++ b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/ko.json
@@ -1231,5 +1231,8 @@
"On a call · Speaking": "통화 중 · 말하는 중",
"Call paused": "통화 일시정지됨",
"You're up to date": "최신 버전입니다",
- "Codync {version} is currently the newest version available.": "Codync {version}은(는) 현재 사용 가능한 최신 버전입니다."
+ "Codync {version} is currently the newest version available.": "Codync {version}은(는) 현재 사용 가능한 최신 버전입니다.",
+ "Install it first.": "먼저 설치하세요.",
+ "Not set up on {name} yet.": "{name}에 아직 설정되지 않았습니다.",
+ "Downloads {name} on {host} if it needs to, then checks its sign-in.": "필요하면 {host}에 {name}을(를) 내려받은 뒤 로그인 상태를 확인합니다."
}
diff --git a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/zh-Hans.json b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/zh-Hans.json
index 7498dba6..460957ef 100644
--- a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/zh-Hans.json
+++ b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/zh-Hans.json
@@ -1231,5 +1231,8 @@
"On a call · Speaking": "通话中 · 说话",
"Call paused": "通话已暂停",
"You're up to date": "已是最新版本",
- "Codync {version} is currently the newest version available.": "Codync {version} 是目前最新的版本。"
+ "Codync {version} is currently the newest version available.": "Codync {version} 是目前最新的版本。",
+ "Install it first.": "请先安装。",
+ "Not set up on {name} yet.": "还没在 {name} 上设置。",
+ "Downloads {name} on {host} if it needs to, then checks its sign-in.": "需要的话会在 {host} 上下载 {name},再检查登录状态。"
}
diff --git a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/zh-Hant.json b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/zh-Hant.json
index 5200041c..aa29623f 100644
--- a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/zh-Hant.json
+++ b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/zh-Hant.json
@@ -1231,5 +1231,8 @@
"On a call · Speaking": "通話中 · 說話",
"Call paused": "通話已暫停",
"You're up to date": "已是最新版本",
- "Codync {version} is currently the newest version available.": "Codync {version} 是目前最新的版本。"
+ "Codync {version} is currently the newest version available.": "Codync {version} 是目前最新的版本。",
+ "Install it first.": "請先安裝。",
+ "Not set up on {name} yet.": "還沒在 {name} 上設定。",
+ "Downloads {name} on {host} if it needs to, then checks its sign-in.": "需要的話會在 {host} 上下載 {name},再檢查登入狀態。"
}
diff --git a/apps/ios/Kit/Sources/CodyncUI/Marketplace/AgentSheet.swift b/apps/ios/Kit/Sources/CodyncUI/Marketplace/AgentSheet.swift
index 21ed6a42..53375051 100644
--- a/apps/ios/Kit/Sources/CodyncUI/Marketplace/AgentSheet.swift
+++ b/apps/ios/Kit/Sources/CodyncUI/Marketplace/AgentSheet.swift
@@ -59,6 +59,9 @@ struct AgentSheet: View {
private var installed: Bool { backend.installed == true }
private var curated: Bool { backend.curated == true }
private var signedIn: Bool? { auth?.signedIn ?? backend.signedIn }
+ /// It has run on this computer: its CLI is there, or an earlier check started it. Until then, a check
+ /// can download it, so only Set up starts one.
+ private var setUp: Bool { installed || backend.signedIn != nil || auth != nil }
var body: some View {
ZStack {
@@ -73,9 +76,9 @@ struct AgentSheet: View {
}
}
.frame(minWidth: 0, minHeight: 0)
- // A known "signed in" needs no agent start; everything else asks the agent (which
- // can't start without its Node.js).
- .task { if recheck || backend.signedIn != true, !backend.needsNode { await check() } }
+ // A known "signed in" needs no agent start; one set up asks the agent (which can't start
+ // without its Node.js). Opening never downloads one: that waits for Set up.
+ .task { if recheck || (setUp && backend.signedIn != true), !backend.needsNode { await check() } }
.onChange(of: route) { old, new in
// Back from a terminal or key form: see what changed.
if new == nil, old != nil { Task { await check() } }
@@ -170,6 +173,13 @@ struct AgentSheet: View {
if signedIn != true, let detail = auth?.detail, !detail.isEmpty {
Text(detail).font(.footnote).foregroundStyle(Palette.secondary).textSelection(.enabled)
}
+ // A registry agent downloads on its first start; an app's own CLI comes from Install above.
+ if !setUp, !curated, !checking, !backend.needsNode {
+ optionRow("Set up", detail: "Downloads \(backend.name) on \(model.hostName) if it needs to, then checks its sign-in.",
+ icon: "arrow.down.circle") {
+ Task { await check() }
+ }
+ }
// Some CLIs drop the current sign-in the moment a new one starts: no options once signed in.
if signedIn != true, !checking {
if auth?.login == true {
@@ -206,6 +216,7 @@ struct AgentSheet: View {
private var statusText: String {
if checking { return auth == nil ? "Checking with \(backend.name)… The first check can download it." : "Checking…" }
+ if !setUp, !backend.needsNode { return curated ? "Install it first." : "Not set up on \(model.hostName) yet." }
switch signedIn {
case true?: return "Signed in."
case _ where backend.needsNode: return "Add Node.js first."
diff --git a/apps/ios/Kit/Sources/CodyncUI/Marketplace/InstallConnectorSheet.swift b/apps/ios/Kit/Sources/CodyncUI/Marketplace/InstallConnectorSheet.swift
index 159db25c..55bb781f 100644
--- a/apps/ios/Kit/Sources/CodyncUI/Marketplace/InstallConnectorSheet.swift
+++ b/apps/ios/Kit/Sources/CodyncUI/Marketplace/InstallConnectorSheet.swift
@@ -5,6 +5,9 @@ import SwiftUI
struct InstallConnectorSheet: View {
let item: MarketConnector
var requestId: String? = nil
+ /// Opened by an Add: a connector with nothing to fill in installs at once. Opened to look at it,
+ /// nothing installs until Add in the header.
+ var addsAtOnce = true
let done: () -> Void
@Environment(BotStore.self) private var model
@Environment(\.dismissModal) private var dismiss
@@ -44,7 +47,7 @@ struct InstallConnectorSheet: View {
.task {
guard !started else { return }
started = true
- if item.options.count == 1 && item.options[0].inputs.isEmpty { install() }
+ if addsAtOnce && item.options.count == 1 && item.options[0].inputs.isEmpty { install() }
}
.onDisappear { values.removeAll() }
}
diff --git a/apps/ios/Kit/Sources/CodyncUI/Marketplace/MarketplaceTabs.swift b/apps/ios/Kit/Sources/CodyncUI/Marketplace/MarketplaceTabs.swift
index 828753a5..9fd40dc2 100644
--- a/apps/ios/Kit/Sources/CodyncUI/Marketplace/MarketplaceTabs.swift
+++ b/apps/ios/Kit/Sources/CodyncUI/Marketplace/MarketplaceTabs.swift
@@ -71,7 +71,8 @@ extension MarketplaceView {
} else {
ItemGrid {
ForEach(connectors.items.items) { c in
- MarketRow(title: c.title, subtitle: c.description ?? c.name, added: c.installed) {
+ MarketRow(title: c.title, subtitle: c.description ?? c.name, added: c.installed,
+ open: c.installed ? nil : { viewingConnector = c }) {
ServiceLogo(website: c.website, name: c.title, registryName: c.name)
} add: {
installing = c
diff --git a/apps/ios/Kit/Sources/CodyncUI/Marketplace/MarketplaceView.swift b/apps/ios/Kit/Sources/CodyncUI/Marketplace/MarketplaceView.swift
index cc7a0363..667f1717 100644
--- a/apps/ios/Kit/Sources/CodyncUI/Marketplace/MarketplaceView.swift
+++ b/apps/ios/Kit/Sources/CodyncUI/Marketplace/MarketplaceView.swift
@@ -13,6 +13,7 @@ public struct MarketplaceView: View {
@State var loadingSkills = true
@State var error: String?
@State var installing: MarketConnector?
+ @State var viewingConnector: MarketConnector?
@State var busySkill: String?
@State var addingConnector = false
@State var writingSkill = false
@@ -66,6 +67,9 @@ public struct MarketplaceView: View {
.codyncSheet(item: $installing) { item in
InstallConnectorSheet(item: item) { Task { await loadConnectors() } }
}
+ .codyncSheet(item: $viewingConnector) { item in
+ InstallConnectorSheet(item: item, addsAtOnce: false) { Task { await loadConnectors() } }
+ }
.codyncSheet(isPresented: $showCredentials) { CredentialsView() }
.codyncSheet(isPresented: $addingConnector) { CustomConnectorSheet() }
.codyncSheet(item: $viewingSkill) { SkillSheet(skill: $0) }
diff --git a/apps/ios/WhatsNew.md b/apps/ios/WhatsNew.md
index e5c04047..21f1c3b4 100644
--- a/apps/ios/WhatsNew.md
+++ b/apps/ios/WhatsNew.md
@@ -14,6 +14,7 @@ a version without one gets a generic "Bug fixes and improvements" line. Delete o
- 電腦上的 Codync 版本太舊時,更新提示多了「Update now」按鈕,直接從手機叫那台電腦更新。
- 擴充套件一次顯示一個分類:智慧體、聯結器或技能。
- 聯結器往下捲到底,會自動從 MCP Registry 載入更多,不用再按「載入更多」。
+- 點聯結器或智慧體只會打開詳情,要按「Add」或「Set up」才會加入或下載。
- 「憑證」移到上方電腦名稱旁;「自定義聯結器」和「自己的技能」放在各自分類的列表上方。
- 電腦使用自建中繼時,設定和連線狀態會顯示該中繼的地址,不再一律寫成 Cloudflare。
- 可以建立使用 WorkBuddy 的 Bot:Codync 會使用 WorkBuddy 桌面 App 內附的 CLI,並在聊天裡請你登入。
@@ -25,6 +26,7 @@ a version without one gets a generic "Bug fixes and improvements" line. Delete o
- When a computer's Codync is too old for this app, Update now on the notice updates that computer from your phone.
- Extensions shows one section at a time: Agents, Connectors or Skills.
- Connectors load more from the MCP Registry as you scroll to the end, with no Load more button to press.
+- Tapping a connector or agent only opens its details; nothing is added or downloaded until you press Add or Set up.
- Credentials sits beside the computer's name at the top, and Custom connector and Your own skill sit above their lists.
- When a computer uses a private relay, Settings and connection status show that relay's address instead of always saying Cloudflare.
- Create bots that run WorkBuddy: Codync uses the CLI inside the WorkBuddy desktop app and asks you to sign in from the chat.
diff --git a/docs/features/marketplace.md b/docs/features/marketplace.md
index 39e56a30..7a52b348 100644
--- a/docs/features/marketplace.md
+++ b/docs/features/marketplace.md
@@ -40,7 +40,7 @@ Skills follow the same rule: an installed or hand-written skill is turned on for
Bots write skills too, with the `chat` server's `save_skill {name, description, instructions, id?}` (`host/src/chat/skills.rs`): when the user asks, or when the bot has worked out how to do a task the user will likely want again, never because a file, web page, tool result or another bot says so. A new skill is saved like a hand-written one (`source: "custom"`, so it shows in Extensions and bot settings and can be removed there) plus the bot that wrote it (`writtenBy`), and is turned on for that bot only: new bots don't start with it either, and the user turns it on for other bots in their settings, so a bot (a prompt-injected one included) can't put instructions in front of other bots. With `id`, the bot rewrites a skill it saved itself; skills the user wrote, other bots' and downloaded ones can't be changed. Files beside `SKILL.md` stay, so a bot can keep a skill's scripts or references in its folder. Each save posts a notice in the bot's chat ("Saved the skill …", "Updated the skill …"), and a bot that has the skill on hears a new name or description in its next profile update. Limits: name 64 characters, description 1,024, instructions 64K characters; the name and description become one line each in the front matter. Saves of the installed list go one at a time. A download takes its folder before it starts, and a written skill never takes an existing folder (it gets `-2`), so a save during a download can't land in the download's folder; adding a catalog skill whose id a written one already has is refused until that one is removed.
-Clicking a skill (an Extensions row, an installed skill, or the info button beside a skill's switch in bot settings; in the terminal, ↵ on a skill, or `i` on the bot form's Skills field) opens its details: the description and its instructions, with Add while it isn't installed. `skillDetails {id}` (installed) or `{source}` (catalog) returns `{markdown}`: the `SKILL.md` body without its front matter, at most 256 KB. The host looks names up in the installed list or the catalog cache, never as a path; the catalog fetch already downloads every `SKILL.md`, so the bodies stay in that cache. The folder list comes from the public tree page (`github.com/anthropics/skills/tree/main/skills`) and each `SKILL.md` from raw.githubusercontent.com. The GitHub contents API is not used for that: its unauthenticated quota is 60 requests an hour for the whole computer, and a spent quota answers 403. An Extensions row opens its details, or does what its button does when it has none (connectors open their install sheet).
+Clicking a skill (an Extensions row, an installed skill, or the info button beside a skill's switch in bot settings; in the terminal, ↵ on a skill, or `i` on the bot form's Skills field) opens its details: the description and its instructions, with Add while it isn't installed. `skillDetails {id}` (installed) or `{source}` (catalog) returns `{markdown}`: the `SKILL.md` body without its front matter, at most 256 KB. The host looks names up in the installed list or the catalog cache, never as a path; the catalog fetch already downloads every `SKILL.md`, so the bodies stay in that cache. The folder list comes from the public tree page (`github.com/anthropics/skills/tree/main/skills`) and each `SKILL.md` from raw.githubusercontent.com. The GitHub contents API is not used for that: its unauthenticated quota is 60 requests an hour for the whole computer, and a spent quota answers 403. An Extensions row opens its details; only its Add button adds. A connector row opens the install sheet without installing (`addsAtOnce` off), while the row's Add opens it ready to install at once when there is nothing to fill in. Opening an agent's sheet checks its sign-in only once the agent is set up on the computer (its CLI is installed, or an earlier check ran it): a registry agent never checked shows **Set up** instead, since its first start downloads it. On the terminal, ↵ on a row is the explicit action and adds or opens as before.
Registry-backed package connectors follow their upstream release. The host checks the Registry periodically after credentials are unlocked and checks again immediately before a package process starts. If a newer pinned npm, PyPI, OCI or NuGet reference is available, only that package/image argument is replaced; the running process is not interrupted, and the new version applies on its next launch. Network failures, missing packages and attempted downgrades leave the installed reference unchanged. Custom command connectors are never updated automatically.
diff --git a/web/content/docs/agents.mdx b/web/content/docs/agents.mdx
index 796c6a6f..ed10a2eb 100644
--- a/web/content/docs/agents.mdx
+++ b/web/content/docs/agents.mdx
@@ -80,7 +80,7 @@ Some agents run through an adapter that needs Node.js, such as Claude Code, Code
### Signing in
-The **Sign in** step shows whether the agent is signed in on that computer, with **Check again** to ask again. If it isn't, the sheet lists the ways to sign in:
+The **Sign in** step shows whether the agent is signed in on that computer, with **Check again** to ask again. Opening the sheet never downloads an agent: a registry agent that hasn't run on the computer yet shows **Set up**, which downloads it if needed and then checks its sign-in. If it isn't signed in, the sheet lists the ways to sign in:
- **Sign in** (agents Codync knows by name): runs the agent's own sign-in command in a terminal on the computer. You type into it from your device, and links open on your device.
- **The agent's own options:** each agent advertises its methods. Some run in a terminal, some open a browser on the computer, and some ask for API keys.
diff --git a/web/content/docs/connectors-and-skills.mdx b/web/content/docs/connectors-and-skills.mdx
index 8440d3b5..d59b6f8f 100644
--- a/web/content/docs/connectors-and-skills.mdx
+++ b/web/content/docs/connectors-and-skills.mdx
@@ -19,7 +19,7 @@ Extensions opens on one section at a time: **Agents**, **Connectors**, or **Skil
3. Fill in any **Setup** fields it asks for, such as an API key. Keys are saved on that computer only.
4. Press **Add**. Codync installs it, opens the service's sign-in page if it has one, and checks that the connector starts and lists its tools.
-A connector with nothing to fill in starts installing as soon as you pick it.
+Tapping a connector only opens its sheet; nothing installs until you press **Add**. Pressing **Add** on the row itself installs a connector with nothing to fill in right away.
Packages run with their own runtime, which must be installed on the computer: npm packages need Node.js (`npx`), PyPI packages need uv (`uvx`), container images need Docker, and NuGet packages need `dnx`. Codync installs the exact version the registry lists.