Skip to content

armgit / cindy

Public Imported from GitHub
0

Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

2.2 KB
Raw Blame
/**
 * @cindy/maker-cc-manager
 *
 * NDJSON RPC daemon spawned on remote SSH machine. Wraps the Claude Agent SDK
 * Query, exposes session/control RPC to local desktop client.
 *
 * Two consumer entry points:
 *   - Local desktop client (RemoteSdkTransport): `import { RpcClient } from
 *     '@cindy/maker-cc-manager/client'`
 *   - Remote daemon binary (bundled via esbuild from src/bin/cc-mgr.ts):
 *     `import { ManagerServer } from '@cindy/maker-cc-manager'`
 *
 * Phase 1 ships protocol + server skeleton + client. Phase 2+ wires SDK
 * Query dispatch on top.
 */

export {
  CC_MGR_BUNDLE_VERSION,
  PROTOCOL_VERSION,
  METHODS,
  NOTIFICATIONS,
  SERVER_METHODS,
  isRpcMessage,
  isRpcRequest,
  isRpcResponse,
  isRpcNotification,
  makeRpcError,
} from './protocol.js';

export type {
  RpcId,
  RpcError,
  RpcErrorCode,
  RpcRequest,
  RpcResponse,
  RpcNotification,
  RpcMessage,
  MethodName,
  NotificationName,
  ServerMethodName,
  HelloParams,
  HelloResult,
  QueryStartParams,
  QueryToolGuard,
  QueryStartResult,
  QuerySendParams,
  QuerySetModelParams,
  QuerySetPermissionModeParams,
  QueryApplyFlagSettingsParams,
  QueryGetContextUsageParams,
  QueryInterruptParams,
  QueryStopTaskParams,
  QueryCloseParams,
  SessionAttachParams,
  SessionAttachResult,
  SessionListParams,
  SessionListEntry,
  SessionListResult,
  SessionKillParams,
  ApprovalRequestParams,
  ApprovalRequestResult,
  OAuthRefreshParams,
  OAuthRefreshResult,
  SubagentModelAccessParams,
  SubagentModelAccessResult,
  QueryEventNotification,
  SessionClosedNotification,
  ClientReplacedNotification,
  McpServerStdioConfig,
  McpServerSseConfig,
  McpServerHttpConfig,
} from './protocol.js';

export { NDJSONDecoder, encodeMessage } from './codec.js';
export type { NDJSONDecoderOptions } from './codec.js';

export { RpcClient, RpcClientError } from './client.js';
export type { RpcClientOptions, RpcRequestOptions, NotificationSubscriber, ServerRequestHandler } from './client.js';

export { createRemoteQuery } from './remote-query.js';
export type {
  RemoteQuery,
  RemoteQueryOptions,
  CreateRemoteQueryOptions,
} from './remote-query.js';

export { ManagerServer } from './server.js';
export type { ManagerServerOptions, ManagerLogger, MethodHandler, ClientCtx } from './server.js';