alink-cli 0.12.0 → 0.12.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/bin.mjs CHANGED
@@ -52811,7 +52811,7 @@ const makeWsRpcLayer = (currentSession) => WsRpcGroup.toLayer(gen(function* () {
52811
52811
  const resolveVoiceInput = (threadId) => providerSessionDirectory.getBinding(threadId).pipe(mapError((cause) => voiceInputUnavailable(cause.message)), flatMap$1((binding) => match$1(binding, {
52812
52812
  onNone: () => fail(voiceInputUnavailable("Start a Codex conversation before using voice input.")),
52813
52813
  onSome: (value) => value.provider !== "codex" ? fail(voiceInputUnavailable("Voice input is currently available for Codex only.")) : providerAdapterRegistry.getByInstance(value.providerInstanceId).pipe(mapError((cause) => voiceInputUnavailable(cause.message)))
52814
- })), flatMap$1((adapter) => adapter.capabilities.realtimeVoiceInput === true && adapter.realtimeVoiceInput ? succeed$1(adapter.realtimeVoiceInput) : fail(voiceInputUnavailable("Update this AgentLink daemon to use Codex voice input."))));
52814
+ })), flatMap$1((adapter) => adapter.capabilities.realtimeVoiceInput === true && adapter.realtimeVoiceInput ? succeed$1(adapter.realtimeVoiceInput) : fail(voiceInputUnavailable("Update this AgentLink daemon to use Codex voice input."))), tap(() => providerService.ensureSession(threadId).pipe(mapError((cause) => voiceInputUnavailable(cause.message)))));
52815
52815
  const authorizeEffect = (requiredScope, effect) => currentSession.scopes.includes(requiredScope) ? effect : fail(authorizationError(requiredScope));
52816
52816
  const authorizeStream = (requiredScope, stream) => currentSession.scopes.includes(requiredScope) ? stream : fail$5(authorizationError(requiredScope));
52817
52817
  const observeRpcEffect$1 = (method, effect, traceAttributes) => observeRpcEffect(method, authorizeEffect(requiredScopeForRpcMethod(method), effect), traceAttributes);