autopilot-ai 2.0.0 → 2.2.0

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.
@@ -878,8 +878,6 @@ interface KimiConfig {
878
878
  costAttribution?: boolean;
879
879
  /** Enable @ file mention picker in chat input. Default: false. */
880
880
  filePicker?: boolean;
881
- /** UI theme name. Default: everforest-dark. */
882
- theme?: string;
883
881
  /** URL of the remote orchestrator Worker. */
884
882
  remoteWorkerUrl?: string;
885
883
  /** Shared secret for authenticating with the remote Worker. */
@@ -1215,6 +1213,21 @@ declare function createDefaultPermissionHandler(options: {
1215
1213
 
1216
1214
  declare function startRpcServer(input?: Readable, output?: Writable, createSession?: typeof createAgentSession): Promise<void>;
1217
1215
 
1216
+ /**
1217
+ * The start of a user prompt, the same in every host (TUI, print, emit,
1218
+ * serve, SDK/RPC): SessionStart (once per session), then the veto-able
1219
+ * UserPromptSubmit hook. Observers such as Agent Beacon see the order
1220
+ * SessionStart → UserPromptSubmit → tool events → Stop, always with the
1221
+ * session id, so hosts must have the id before they call this.
1222
+ */
1223
+
1224
+ /** Thrown by non-interactive hosts (SDK, RPC) when a UserPromptSubmit hook blocks the prompt. */
1225
+ declare class PromptBlockedError extends Error {
1226
+ readonly reason: string;
1227
+ readonly code = "prompt_blocked";
1228
+ constructor(reason: string);
1229
+ }
1230
+
1218
1231
  declare function startAsterCellBridge(port?: number): Promise<ReturnType<typeof createServer>>;
1219
1232
  interface AsterCellControlRequest {
1220
1233
  method: "GET" | "POST";
@@ -1470,4 +1483,4 @@ declare class RunWakeScheduler {
1470
1483
 
1471
1484
  declare function resolveSdkConfig(opts: CreateSessionOptions): Promise<KimiConfig>;
1472
1485
 
1473
- export { type AsterCellControlRequest, type ChatMessage, type CreateSessionOptions, DEFAULT_MODEL, DEFAULT_REASONING_EFFORT, type KimiConfig, type KimiFlareSession, type PermissionDecision, type PermissionHandler, type PermissionRequest, type PromptOptions, type RunEvent, type RunEventType, type RunRecord, type RunStatus, RunStore, type RunTimer, type RunWakeEvent, RunWakeScheduler, type RunWakeSchedulerOptions, type SessionEvent, type SessionStatus, type SessionUsage, type Task, type TimerCondition, type TimerStatus, type ToolSpec, createAgentSession, createDefaultPermissionHandler, executeAsterCellControl, loadConfig, resolveSdkConfig, saveConfig, startAsterCellBridge, startRpcServer };
1486
+ export { type AsterCellControlRequest, type ChatMessage, type CreateSessionOptions, DEFAULT_MODEL, DEFAULT_REASONING_EFFORT, type KimiConfig, type KimiFlareSession, type PermissionDecision, type PermissionHandler, type PermissionRequest, PromptBlockedError, type PromptOptions, type RunEvent, type RunEventType, type RunRecord, type RunStatus, RunStore, type RunTimer, type RunWakeEvent, RunWakeScheduler, type RunWakeSchedulerOptions, type SessionEvent, type SessionStatus, type SessionUsage, type Task, type TimerCondition, type TimerStatus, type ToolSpec, createAgentSession, createDefaultPermissionHandler, executeAsterCellControl, loadConfig, resolveSdkConfig, saveConfig, startAsterCellBridge, startRpcServer };