Deepchat ACP Auth Client (api/AcpAuthClient.ts)

deepchat · src/renderer/api/AcpAuthClient.ts · typescript · Apache-2.0
auth, integration, lang:typescript, tag:bridge

A bridge-based client for managing ACP authentication flows within the Deepchat ecosystem. Use this to initiate, inspect, and cancel authentication challenges.

// Source: https://github.com/ThinkInAIXYZ/deepchat | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
import type { DeepchatBridge } from '@shared/contracts/bridge'
import {
  acpAuthOutputEvent,
  acpAuthStateChangedEvent,
  type DeepchatEventPayload
} from '@shared/contracts/events'
import {
  acpAuthCancelRoute,
  acpAuthInputRoute,
  acpAuthInspectRoute,
  acpAuthStartRoute,
  acpAuthStatusRoute
} from '@shared/contracts/routes'
import { getDeepchatBridge } from './core'

export function createAcpAuthClient(bridge: DeepchatBridge = getDeepchatBridge()) {
  const inspect = (agentId: string, workdir?: string) =>
    bridge.invoke(acpAuthInspectRoute.name, { agentId, workdir })

  

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key