@mirasoth/soothe-client 0.4.1 → 0.5.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/index.d.cts CHANGED
@@ -124,7 +124,7 @@ declare function defaultConfig(): Config;
124
124
  declare function loadConfigFromEnv(): Config;
125
125
 
126
126
  /**
127
- * Daemon ``loop_input`` intent_hint values (direct model turns, no agent graph).
127
+ * Daemon ``loop_input`` intent_hint values (non-agent turns).
128
128
  */
129
129
  /** Text-only chat completion via the configured ``default`` role. */
130
130
  declare const INTENT_HINT_TEXT_COMPLETION: "text_completion";
@@ -134,23 +134,23 @@ declare const INTENT_HINT_IMAGE_TO_TEXT: "image_to_text";
134
134
  declare const INTENT_HINT_OCR: "ocr";
135
135
  /** Embedding via the configured ``embedding`` role (text-only; JSON vector response). */
136
136
  declare const INTENT_HINT_EMBED: "embed";
137
- /** Supported daemon direct-model intent hints. */
137
+ /** Supported daemon intent_hint values for non-agent turns. */
138
138
  type IntentHint = typeof INTENT_HINT_TEXT_COMPLETION | typeof INTENT_HINT_IMAGE_TO_TEXT | typeof INTENT_HINT_OCR | typeof INTENT_HINT_EMBED;
139
139
  /** Legacy intent_hint values removed from the daemon wire contract. */
140
- declare const REMOVED_INTENT_HINTS: readonly ["direct_llm", "quiz"];
140
+ declare const REMOVED_INTENT_HINTS: readonly ["direct_llm", "quiz", "direct_model"];
141
141
  type RemovedIntentHint = (typeof REMOVED_INTENT_HINTS)[number];
142
142
  /**
143
- * Wire ``loop_input.intent_hint``: direct model hints or agent-path pass-through
144
- * (e.g. ``resume_clarification``, ``skill:foo``). Legacy ``direct_llm`` and
145
- * ``quiz`` are rejected before send.
143
+ * Wire ``loop_input.intent_hint``: intent-hint values or agent-path pass-through
144
+ * (e.g. ``resume_clarification``, ``skill:foo``). Legacy ``direct_llm``, ``quiz``,
145
+ * and ``direct_model`` are rejected before send.
146
146
  */
147
147
  type LoopInputIntentHint = IntentHint | (string & {});
148
148
  /** Returns an error message when ``hint`` is a removed legacy value; otherwise null. */
149
149
  declare function validateLoopInputIntentHint(hint: string): string | null;
150
150
  /** Phases emitted on ``mode=messages`` for user-visible loop assistant output. */
151
- declare const LOOP_ASSISTANT_OUTPUT_PHASES: readonly ["goal_completion", "quiz", "autonomous_goal", "direct_model", "text_completion", "image_to_text", "ocr", "embed", "plan_direct"];
151
+ declare const LOOP_ASSISTANT_OUTPUT_PHASES: readonly ["goal_completion", "quiz", "autonomous_goal", "chitchat", "text_completion", "image_to_text", "ocr", "embed", "plan_direct"];
152
152
  type LoopAssistantOutputPhase = (typeof LOOP_ASSISTANT_OUTPUT_PHASES)[number];
153
- /** Default deliverable phases for triarch-style apps (direct hints + agent outputs). */
153
+ /** Default deliverable phases for triarch-style apps (intent hints + agent outputs). */
154
154
  declare const DEFAULT_DELIVERABLE_PHASES: ReadonlySet<string>;
155
155
 
156
156
  /**
@@ -167,7 +167,7 @@ declare const PROTO_VERSION = "1";
167
167
  /** Default client capabilities declared in the connection_init handshake. */
168
168
  declare const DEFAULT_CLIENT_CAPABILITIES: string[];
169
169
  /** Client version reported in the connection_init handshake. */
170
- declare const CLIENT_VERSION = "0.4.1";
170
+ declare const CLIENT_VERSION = "0.5.1";
171
171
  type MessageType = "connection_init" | "connection_ack" | "request" | "response" | "notification" | "subscribe" | "next" | "error" | "complete" | "unsubscribe" | "ping" | "pong" | "receipt_response" | "disconnect" | "status";
172
172
  /** Method names carried in the envelope `method` field. */
173
173
  type MethodName = "loop_list" | "loop_get" | "loop_tree" | "loop_prune" | "loop_delete" | "loop_new" | "loop_reattach" | "loop_detach" | "loop_input" | "loop_messages" | "loop_state_get" | "loop_state_update" | "loop_cards_fetch" | "loop_history_fetch" | "loop_events" | "autopilot_events" | "job_create" | "job_status" | "job_pause" | "job_resume" | "job_cancel" | "job_dag" | "job_guidance" | "autopilot_status" | "autopilot_submit" | "autopilot_list_goals" | "autopilot_get_goal" | "autopilot_cancel_goal" | "autopilot_cancel_all" | "autopilot_wake" | "autopilot_dream" | "autopilot_resume" | "autopilot_list_jobs" | "autopilot_get_job" | "daemon_status" | "daemon_shutdown" | "config_get" | "config_reload" | "skills_list" | "invoke_skill" | "models_list" | "mcp_status" | "auth" | "auth_refresh" | "slash_command" | "rpc_command" | "delivery_ack" | "cron_add" | "cron_list" | "cron_show" | "cron_cancel" | "disconnect";
@@ -389,13 +389,16 @@ declare function newLoopSubscribeMessage(loopID: string, verbosity: string, stre
389
389
  */
390
390
 
391
391
  declare const EventPlanCreated = "soothe.cognition.plan.created";
392
- declare const EventExploreStarted = "soothe.subagent.explore.started";
393
- declare const EventExploreMilestone = "soothe.subagent.explore.milestone";
394
- declare const EventExploreStepCompleted = "soothe.subagent.explore.step.completed";
395
- declare const EventExploreCompleted = "soothe.subagent.explore.completed";
396
- declare const EventTacitusStarted = "soothe.subagent.tacitus.started";
397
- declare const EventTacitusGatherSummary = "soothe.subagent.tacitus.gather.summary";
398
- declare const EventTacitusCompleted = "soothe.subagent.tacitus.completed";
392
+ declare const EventExplorerStarted = "soothe.subagent.explorer.started";
393
+ declare const EventExplorerMilestone = "soothe.subagent.explorer.milestone";
394
+ declare const EventExplorerStepCompleted = "soothe.subagent.explorer.step.completed";
395
+ declare const EventExplorerCompleted = "soothe.subagent.explorer.completed";
396
+ declare const EventDeepResearchStarted = "soothe.subagent.deep_research.started";
397
+ declare const EventDeepResearchProgress = "soothe.subagent.deep_research.progress";
398
+ declare const EventDeepResearchStepCompleted = "soothe.subagent.deep_research.step.completed";
399
+ declare const EventDeepResearchGatherSummary = "soothe.subagent.deep_research.gather.summary";
400
+ declare const EventDeepResearchCrawlSummary = "soothe.subagent.deep_research.crawl.summary";
401
+ declare const EventDeepResearchCompleted = "soothe.subagent.deep_research.completed";
399
402
  declare const EventReplayComplete = "replay_complete";
400
403
  declare const EventLoopReattachedWire = "loop_reattached";
401
404
  declare const EventCardReplayBegin = "card.replay_begin";
@@ -457,7 +460,7 @@ interface InputOptions {
457
460
  model?: string;
458
461
  modelParams?: Record<string, unknown>;
459
462
  attachments?: Record<string, unknown>[];
460
- /** Daemon direct-model hint or agent-path pass-through (resume_clarification, skill:foo). */
463
+ /** Daemon intent_hint or agent-path pass-through (resume_clarification, skill:foo). */
461
464
  intentHint?: LoopInputIntentHint;
462
465
  /** JSON Schema for structured output (text_completion or image_to_text). */
463
466
  responseSchema?: Record<string, unknown>;
@@ -1047,7 +1050,7 @@ interface ChatEventResult {
1047
1050
  /**
1048
1051
  * Product-specific decisions an EventClassifier needs. The DeliverablePhases
1049
1052
  * set is the key product knob: which message `phase` values count as
1050
- * user-facing deliverables (triarch uses quiz, goal_completion, direct_model, and
1053
+ * user-facing deliverables (triarch uses quiz, goal_completion, chitchat, and
1051
1054
  * direct intent_hint phases text_completion, image_to_text, ocr, embed;
1052
1055
  * other apps pass their own).
1053
1056
  */
@@ -1062,7 +1065,7 @@ interface ClassifierConfig {
1062
1065
  thinkingStepEvents?: ReadonlySet<string>;
1063
1066
  /**
1064
1067
  * When true, a status frame with state=idle and non-empty accumulated
1065
- * assistant text is DeliverableComplete (typical for direct-model turns).
1068
+ * assistant text is DeliverableComplete (typical for intent-hint turns).
1066
1069
  * Default false keeps Continue-on-status behaviour.
1067
1070
  */
1068
1071
  treatStatusIdleAsComplete?: boolean;
@@ -1110,8 +1113,8 @@ declare class EventClassifier {
1110
1113
  private classifyMessagesMode;
1111
1114
  /**
1112
1115
  * Extracts plain assistant text from mode="messages" events that carry a
1113
- * terminal AIMessage without loop-tagged phase metadata (legacy direct_llm turns
1114
- * before phase tagging; prefer deliverablePhases including text_completion).
1116
+ * terminal AIMessage without loop-tagged phase metadata (prefer named
1117
+ * deliverablePhases such as text_completion).
1115
1118
  */
1116
1119
  private messagesModeAssistantContent;
1117
1120
  /** soothe output/responded events that carry user-facing final text. */
@@ -1543,4 +1546,4 @@ declare class DaemonSession {
1543
1546
  }): AsyncGenerator<TurnChunk>;
1544
1547
  }
1545
1548
 
1546
- export { type Attachment, type BaseEnvelope, CLIENT_VERSION, type ChatEventResult, ChatEventTerminal, type ClassifierConfig, Client, CommandClient, type CompactImageOptions, type CompleteEnvelope, type Config, type ConnectionAckEnvelope, ConnectionError, type ConnectionInitEnvelope, ConnectionPool, DEFAULT_CLIENT_CAPABILITIES, DEFAULT_DELIVERABLE_PHASES, DEFAULT_POST_IDLE_DRAIN_MS, DEFAULT_THINKING_STEP_EVENTS, DaemonError, DaemonSession, type DaemonSessionOptions, type DecodedMessage, DisconnectCause, type DisconnectEnvelope, ErrIdleTimeout, ErrPoolExhausted, ErrQueryBusy, ErrQueryTimeout, type ErrorEnvelope, EventAutopilotGoalCompleted, EventAutopilotGoalCreated, EventAutopilotGoalProgress, EventAutopilotGoalStatus, EventAutopilotWorkerAssigned, EventAutopilotWorkerUnassigned, EventCardCreated, EventCardReplayBegin, EventCardReplayEnd, EventClassifier, EventExploreCompleted, EventExploreMilestone, EventExploreStarted, EventExploreStepCompleted, EventFinalReport, EventGeneralFailed, EventLoopReattachedWire, EventMessageReceived, EventMessageSent, EventPlanCreated, EventReplayComplete, EventStrangeLoopCompleted, EventStrangeLoopContextCompacted, EventStrangeLoopPlanDecision, EventStrangeLoopReasoned, EventStrangeLoopStarted, EventStrangeLoopStepCompleted, EventStrangeLoopStepQueued, EventStrangeLoopStepStarted, EventStreamToolCallUpdate, EventTacitusCompleted, EventTacitusGatherSummary, EventTacitusStarted, EventToolCallUpdatesBatch, EventToolCompleted, EventToolError, EventToolStarted, INTENT_HINT_EMBED, INTENT_HINT_IMAGE_TO_TEXT, INTENT_HINT_OCR, INTENT_HINT_TEXT_COMPLETION, type InputOptions, type InputOpts, type IntentHint, LOOP_ASSISTANT_OUTPUT_PHASES, type LoopAssistantOutputPhase, type LoopInputIntentHint, type LoopInputParams, type LoopNewOptions, type MessageType, type MethodName, type NegotiatedCapabilities, type NextEnvelope, type NotificationEnvelope, type OnComplete, type OnError, PROTO_VERSION, type PingEnvelope, type PongEnvelope, type PoolConfig, PooledConn, QueryGate, REMOVED_INTENT_HINTS, type ReceiptResponseEnvelope, ReconnectError, type RemovedIntentHint, type RequestEnvelope, type ResponseEnvelope, SSEBroadcaster, type SSEEvent, STREAM_END, type SessionEntry, type SessionMessage, type SessionStore, StaleLoopError, type StatusFrame, StreamCloseFail, type StreamClosePolicy, StreamCloseSoftComplete, type StreamEventPayload, type SubscribeEnvelope, TimeoutError, TimeoutPolicy, type TurnChunk, type TurnConfig, TurnEventStats, TurnRunner, type UnsubscribeEnvelope, type VerbosityLevel, VerbosityTier, authenticate, bootstrapLoopSession, checkDaemonStatus, classifyEventVerbosity, compactAttachments, compactImageAttachment, connectWithRetries, connectedWebsocket, connectionInitEnvelope, decodeMessage, defaultConfig, defaultPoolConfig, disconnectCauseName, disconnectEnvelope, encodeMessage, extractSootheLoopID, extractThinkingStep, fetchConfigSection, fetchLoopCards, fetchLoopHistory, fetchLoopMessages, fetchSkillsCatalog, idleTimeoutForTurn, inboundNeedsDeliveryAck, inputMessageForLoop, isCompletionEvent, isDaemonLive, isSubagentProgressEvent, isTurnEndCustomData, isTurnProgressChunk, isValidVerbosityLevel, loadConfigFromEnv, newLoopInputMessage, newLoopNewMessage, newLoopSubscribeMessage, newRequestID, notificationEnvelope, parseNamespace, pingEnvelope, pongEnvelope, protocol1Rpc, refreshAuthToken, requestDaemonConfigReload, requestDaemonShutdown, requestEnvelope, shouldShow, splitWirePayload, subscribeEnvelope, unsubscribeEnvelope, validateLoopInputIntentHint, waitDaemonReady, waitLoopStatusWithID, waitSubscriptionConfirmed };
1549
+ export { type Attachment, type BaseEnvelope, CLIENT_VERSION, type ChatEventResult, ChatEventTerminal, type ClassifierConfig, Client, CommandClient, type CompactImageOptions, type CompleteEnvelope, type Config, type ConnectionAckEnvelope, ConnectionError, type ConnectionInitEnvelope, ConnectionPool, DEFAULT_CLIENT_CAPABILITIES, DEFAULT_DELIVERABLE_PHASES, DEFAULT_POST_IDLE_DRAIN_MS, DEFAULT_THINKING_STEP_EVENTS, DaemonError, DaemonSession, type DaemonSessionOptions, type DecodedMessage, DisconnectCause, type DisconnectEnvelope, ErrIdleTimeout, ErrPoolExhausted, ErrQueryBusy, ErrQueryTimeout, type ErrorEnvelope, EventAutopilotGoalCompleted, EventAutopilotGoalCreated, EventAutopilotGoalProgress, EventAutopilotGoalStatus, EventAutopilotWorkerAssigned, EventAutopilotWorkerUnassigned, EventCardCreated, EventCardReplayBegin, EventCardReplayEnd, EventClassifier, EventDeepResearchCompleted, EventDeepResearchCrawlSummary, EventDeepResearchGatherSummary, EventDeepResearchProgress, EventDeepResearchStarted, EventDeepResearchStepCompleted, EventExplorerCompleted, EventExplorerMilestone, EventExplorerStarted, EventExplorerStepCompleted, EventFinalReport, EventGeneralFailed, EventLoopReattachedWire, EventMessageReceived, EventMessageSent, EventPlanCreated, EventReplayComplete, EventStrangeLoopCompleted, EventStrangeLoopContextCompacted, EventStrangeLoopPlanDecision, EventStrangeLoopReasoned, EventStrangeLoopStarted, EventStrangeLoopStepCompleted, EventStrangeLoopStepQueued, EventStrangeLoopStepStarted, EventStreamToolCallUpdate, EventToolCallUpdatesBatch, EventToolCompleted, EventToolError, EventToolStarted, INTENT_HINT_EMBED, INTENT_HINT_IMAGE_TO_TEXT, INTENT_HINT_OCR, INTENT_HINT_TEXT_COMPLETION, type InputOptions, type InputOpts, type IntentHint, LOOP_ASSISTANT_OUTPUT_PHASES, type LoopAssistantOutputPhase, type LoopInputIntentHint, type LoopInputParams, type LoopNewOptions, type MessageType, type MethodName, type NegotiatedCapabilities, type NextEnvelope, type NotificationEnvelope, type OnComplete, type OnError, PROTO_VERSION, type PingEnvelope, type PongEnvelope, type PoolConfig, PooledConn, QueryGate, REMOVED_INTENT_HINTS, type ReceiptResponseEnvelope, ReconnectError, type RemovedIntentHint, type RequestEnvelope, type ResponseEnvelope, SSEBroadcaster, type SSEEvent, STREAM_END, type SessionEntry, type SessionMessage, type SessionStore, StaleLoopError, type StatusFrame, StreamCloseFail, type StreamClosePolicy, StreamCloseSoftComplete, type StreamEventPayload, type SubscribeEnvelope, TimeoutError, TimeoutPolicy, type TurnChunk, type TurnConfig, TurnEventStats, TurnRunner, type UnsubscribeEnvelope, type VerbosityLevel, VerbosityTier, authenticate, bootstrapLoopSession, checkDaemonStatus, classifyEventVerbosity, compactAttachments, compactImageAttachment, connectWithRetries, connectedWebsocket, connectionInitEnvelope, decodeMessage, defaultConfig, defaultPoolConfig, disconnectCauseName, disconnectEnvelope, encodeMessage, extractSootheLoopID, extractThinkingStep, fetchConfigSection, fetchLoopCards, fetchLoopHistory, fetchLoopMessages, fetchSkillsCatalog, idleTimeoutForTurn, inboundNeedsDeliveryAck, inputMessageForLoop, isCompletionEvent, isDaemonLive, isSubagentProgressEvent, isTurnEndCustomData, isTurnProgressChunk, isValidVerbosityLevel, loadConfigFromEnv, newLoopInputMessage, newLoopNewMessage, newLoopSubscribeMessage, newRequestID, notificationEnvelope, parseNamespace, pingEnvelope, pongEnvelope, protocol1Rpc, refreshAuthToken, requestDaemonConfigReload, requestDaemonShutdown, requestEnvelope, shouldShow, splitWirePayload, subscribeEnvelope, unsubscribeEnvelope, validateLoopInputIntentHint, waitDaemonReady, waitLoopStatusWithID, waitSubscriptionConfirmed };
package/dist/index.d.ts CHANGED
@@ -124,7 +124,7 @@ declare function defaultConfig(): Config;
124
124
  declare function loadConfigFromEnv(): Config;
125
125
 
126
126
  /**
127
- * Daemon ``loop_input`` intent_hint values (direct model turns, no agent graph).
127
+ * Daemon ``loop_input`` intent_hint values (non-agent turns).
128
128
  */
129
129
  /** Text-only chat completion via the configured ``default`` role. */
130
130
  declare const INTENT_HINT_TEXT_COMPLETION: "text_completion";
@@ -134,23 +134,23 @@ declare const INTENT_HINT_IMAGE_TO_TEXT: "image_to_text";
134
134
  declare const INTENT_HINT_OCR: "ocr";
135
135
  /** Embedding via the configured ``embedding`` role (text-only; JSON vector response). */
136
136
  declare const INTENT_HINT_EMBED: "embed";
137
- /** Supported daemon direct-model intent hints. */
137
+ /** Supported daemon intent_hint values for non-agent turns. */
138
138
  type IntentHint = typeof INTENT_HINT_TEXT_COMPLETION | typeof INTENT_HINT_IMAGE_TO_TEXT | typeof INTENT_HINT_OCR | typeof INTENT_HINT_EMBED;
139
139
  /** Legacy intent_hint values removed from the daemon wire contract. */
140
- declare const REMOVED_INTENT_HINTS: readonly ["direct_llm", "quiz"];
140
+ declare const REMOVED_INTENT_HINTS: readonly ["direct_llm", "quiz", "direct_model"];
141
141
  type RemovedIntentHint = (typeof REMOVED_INTENT_HINTS)[number];
142
142
  /**
143
- * Wire ``loop_input.intent_hint``: direct model hints or agent-path pass-through
144
- * (e.g. ``resume_clarification``, ``skill:foo``). Legacy ``direct_llm`` and
145
- * ``quiz`` are rejected before send.
143
+ * Wire ``loop_input.intent_hint``: intent-hint values or agent-path pass-through
144
+ * (e.g. ``resume_clarification``, ``skill:foo``). Legacy ``direct_llm``, ``quiz``,
145
+ * and ``direct_model`` are rejected before send.
146
146
  */
147
147
  type LoopInputIntentHint = IntentHint | (string & {});
148
148
  /** Returns an error message when ``hint`` is a removed legacy value; otherwise null. */
149
149
  declare function validateLoopInputIntentHint(hint: string): string | null;
150
150
  /** Phases emitted on ``mode=messages`` for user-visible loop assistant output. */
151
- declare const LOOP_ASSISTANT_OUTPUT_PHASES: readonly ["goal_completion", "quiz", "autonomous_goal", "direct_model", "text_completion", "image_to_text", "ocr", "embed", "plan_direct"];
151
+ declare const LOOP_ASSISTANT_OUTPUT_PHASES: readonly ["goal_completion", "quiz", "autonomous_goal", "chitchat", "text_completion", "image_to_text", "ocr", "embed", "plan_direct"];
152
152
  type LoopAssistantOutputPhase = (typeof LOOP_ASSISTANT_OUTPUT_PHASES)[number];
153
- /** Default deliverable phases for triarch-style apps (direct hints + agent outputs). */
153
+ /** Default deliverable phases for triarch-style apps (intent hints + agent outputs). */
154
154
  declare const DEFAULT_DELIVERABLE_PHASES: ReadonlySet<string>;
155
155
 
156
156
  /**
@@ -167,7 +167,7 @@ declare const PROTO_VERSION = "1";
167
167
  /** Default client capabilities declared in the connection_init handshake. */
168
168
  declare const DEFAULT_CLIENT_CAPABILITIES: string[];
169
169
  /** Client version reported in the connection_init handshake. */
170
- declare const CLIENT_VERSION = "0.4.1";
170
+ declare const CLIENT_VERSION = "0.5.1";
171
171
  type MessageType = "connection_init" | "connection_ack" | "request" | "response" | "notification" | "subscribe" | "next" | "error" | "complete" | "unsubscribe" | "ping" | "pong" | "receipt_response" | "disconnect" | "status";
172
172
  /** Method names carried in the envelope `method` field. */
173
173
  type MethodName = "loop_list" | "loop_get" | "loop_tree" | "loop_prune" | "loop_delete" | "loop_new" | "loop_reattach" | "loop_detach" | "loop_input" | "loop_messages" | "loop_state_get" | "loop_state_update" | "loop_cards_fetch" | "loop_history_fetch" | "loop_events" | "autopilot_events" | "job_create" | "job_status" | "job_pause" | "job_resume" | "job_cancel" | "job_dag" | "job_guidance" | "autopilot_status" | "autopilot_submit" | "autopilot_list_goals" | "autopilot_get_goal" | "autopilot_cancel_goal" | "autopilot_cancel_all" | "autopilot_wake" | "autopilot_dream" | "autopilot_resume" | "autopilot_list_jobs" | "autopilot_get_job" | "daemon_status" | "daemon_shutdown" | "config_get" | "config_reload" | "skills_list" | "invoke_skill" | "models_list" | "mcp_status" | "auth" | "auth_refresh" | "slash_command" | "rpc_command" | "delivery_ack" | "cron_add" | "cron_list" | "cron_show" | "cron_cancel" | "disconnect";
@@ -389,13 +389,16 @@ declare function newLoopSubscribeMessage(loopID: string, verbosity: string, stre
389
389
  */
390
390
 
391
391
  declare const EventPlanCreated = "soothe.cognition.plan.created";
392
- declare const EventExploreStarted = "soothe.subagent.explore.started";
393
- declare const EventExploreMilestone = "soothe.subagent.explore.milestone";
394
- declare const EventExploreStepCompleted = "soothe.subagent.explore.step.completed";
395
- declare const EventExploreCompleted = "soothe.subagent.explore.completed";
396
- declare const EventTacitusStarted = "soothe.subagent.tacitus.started";
397
- declare const EventTacitusGatherSummary = "soothe.subagent.tacitus.gather.summary";
398
- declare const EventTacitusCompleted = "soothe.subagent.tacitus.completed";
392
+ declare const EventExplorerStarted = "soothe.subagent.explorer.started";
393
+ declare const EventExplorerMilestone = "soothe.subagent.explorer.milestone";
394
+ declare const EventExplorerStepCompleted = "soothe.subagent.explorer.step.completed";
395
+ declare const EventExplorerCompleted = "soothe.subagent.explorer.completed";
396
+ declare const EventDeepResearchStarted = "soothe.subagent.deep_research.started";
397
+ declare const EventDeepResearchProgress = "soothe.subagent.deep_research.progress";
398
+ declare const EventDeepResearchStepCompleted = "soothe.subagent.deep_research.step.completed";
399
+ declare const EventDeepResearchGatherSummary = "soothe.subagent.deep_research.gather.summary";
400
+ declare const EventDeepResearchCrawlSummary = "soothe.subagent.deep_research.crawl.summary";
401
+ declare const EventDeepResearchCompleted = "soothe.subagent.deep_research.completed";
399
402
  declare const EventReplayComplete = "replay_complete";
400
403
  declare const EventLoopReattachedWire = "loop_reattached";
401
404
  declare const EventCardReplayBegin = "card.replay_begin";
@@ -457,7 +460,7 @@ interface InputOptions {
457
460
  model?: string;
458
461
  modelParams?: Record<string, unknown>;
459
462
  attachments?: Record<string, unknown>[];
460
- /** Daemon direct-model hint or agent-path pass-through (resume_clarification, skill:foo). */
463
+ /** Daemon intent_hint or agent-path pass-through (resume_clarification, skill:foo). */
461
464
  intentHint?: LoopInputIntentHint;
462
465
  /** JSON Schema for structured output (text_completion or image_to_text). */
463
466
  responseSchema?: Record<string, unknown>;
@@ -1047,7 +1050,7 @@ interface ChatEventResult {
1047
1050
  /**
1048
1051
  * Product-specific decisions an EventClassifier needs. The DeliverablePhases
1049
1052
  * set is the key product knob: which message `phase` values count as
1050
- * user-facing deliverables (triarch uses quiz, goal_completion, direct_model, and
1053
+ * user-facing deliverables (triarch uses quiz, goal_completion, chitchat, and
1051
1054
  * direct intent_hint phases text_completion, image_to_text, ocr, embed;
1052
1055
  * other apps pass their own).
1053
1056
  */
@@ -1062,7 +1065,7 @@ interface ClassifierConfig {
1062
1065
  thinkingStepEvents?: ReadonlySet<string>;
1063
1066
  /**
1064
1067
  * When true, a status frame with state=idle and non-empty accumulated
1065
- * assistant text is DeliverableComplete (typical for direct-model turns).
1068
+ * assistant text is DeliverableComplete (typical for intent-hint turns).
1066
1069
  * Default false keeps Continue-on-status behaviour.
1067
1070
  */
1068
1071
  treatStatusIdleAsComplete?: boolean;
@@ -1110,8 +1113,8 @@ declare class EventClassifier {
1110
1113
  private classifyMessagesMode;
1111
1114
  /**
1112
1115
  * Extracts plain assistant text from mode="messages" events that carry a
1113
- * terminal AIMessage without loop-tagged phase metadata (legacy direct_llm turns
1114
- * before phase tagging; prefer deliverablePhases including text_completion).
1116
+ * terminal AIMessage without loop-tagged phase metadata (prefer named
1117
+ * deliverablePhases such as text_completion).
1115
1118
  */
1116
1119
  private messagesModeAssistantContent;
1117
1120
  /** soothe output/responded events that carry user-facing final text. */
@@ -1543,4 +1546,4 @@ declare class DaemonSession {
1543
1546
  }): AsyncGenerator<TurnChunk>;
1544
1547
  }
1545
1548
 
1546
- export { type Attachment, type BaseEnvelope, CLIENT_VERSION, type ChatEventResult, ChatEventTerminal, type ClassifierConfig, Client, CommandClient, type CompactImageOptions, type CompleteEnvelope, type Config, type ConnectionAckEnvelope, ConnectionError, type ConnectionInitEnvelope, ConnectionPool, DEFAULT_CLIENT_CAPABILITIES, DEFAULT_DELIVERABLE_PHASES, DEFAULT_POST_IDLE_DRAIN_MS, DEFAULT_THINKING_STEP_EVENTS, DaemonError, DaemonSession, type DaemonSessionOptions, type DecodedMessage, DisconnectCause, type DisconnectEnvelope, ErrIdleTimeout, ErrPoolExhausted, ErrQueryBusy, ErrQueryTimeout, type ErrorEnvelope, EventAutopilotGoalCompleted, EventAutopilotGoalCreated, EventAutopilotGoalProgress, EventAutopilotGoalStatus, EventAutopilotWorkerAssigned, EventAutopilotWorkerUnassigned, EventCardCreated, EventCardReplayBegin, EventCardReplayEnd, EventClassifier, EventExploreCompleted, EventExploreMilestone, EventExploreStarted, EventExploreStepCompleted, EventFinalReport, EventGeneralFailed, EventLoopReattachedWire, EventMessageReceived, EventMessageSent, EventPlanCreated, EventReplayComplete, EventStrangeLoopCompleted, EventStrangeLoopContextCompacted, EventStrangeLoopPlanDecision, EventStrangeLoopReasoned, EventStrangeLoopStarted, EventStrangeLoopStepCompleted, EventStrangeLoopStepQueued, EventStrangeLoopStepStarted, EventStreamToolCallUpdate, EventTacitusCompleted, EventTacitusGatherSummary, EventTacitusStarted, EventToolCallUpdatesBatch, EventToolCompleted, EventToolError, EventToolStarted, INTENT_HINT_EMBED, INTENT_HINT_IMAGE_TO_TEXT, INTENT_HINT_OCR, INTENT_HINT_TEXT_COMPLETION, type InputOptions, type InputOpts, type IntentHint, LOOP_ASSISTANT_OUTPUT_PHASES, type LoopAssistantOutputPhase, type LoopInputIntentHint, type LoopInputParams, type LoopNewOptions, type MessageType, type MethodName, type NegotiatedCapabilities, type NextEnvelope, type NotificationEnvelope, type OnComplete, type OnError, PROTO_VERSION, type PingEnvelope, type PongEnvelope, type PoolConfig, PooledConn, QueryGate, REMOVED_INTENT_HINTS, type ReceiptResponseEnvelope, ReconnectError, type RemovedIntentHint, type RequestEnvelope, type ResponseEnvelope, SSEBroadcaster, type SSEEvent, STREAM_END, type SessionEntry, type SessionMessage, type SessionStore, StaleLoopError, type StatusFrame, StreamCloseFail, type StreamClosePolicy, StreamCloseSoftComplete, type StreamEventPayload, type SubscribeEnvelope, TimeoutError, TimeoutPolicy, type TurnChunk, type TurnConfig, TurnEventStats, TurnRunner, type UnsubscribeEnvelope, type VerbosityLevel, VerbosityTier, authenticate, bootstrapLoopSession, checkDaemonStatus, classifyEventVerbosity, compactAttachments, compactImageAttachment, connectWithRetries, connectedWebsocket, connectionInitEnvelope, decodeMessage, defaultConfig, defaultPoolConfig, disconnectCauseName, disconnectEnvelope, encodeMessage, extractSootheLoopID, extractThinkingStep, fetchConfigSection, fetchLoopCards, fetchLoopHistory, fetchLoopMessages, fetchSkillsCatalog, idleTimeoutForTurn, inboundNeedsDeliveryAck, inputMessageForLoop, isCompletionEvent, isDaemonLive, isSubagentProgressEvent, isTurnEndCustomData, isTurnProgressChunk, isValidVerbosityLevel, loadConfigFromEnv, newLoopInputMessage, newLoopNewMessage, newLoopSubscribeMessage, newRequestID, notificationEnvelope, parseNamespace, pingEnvelope, pongEnvelope, protocol1Rpc, refreshAuthToken, requestDaemonConfigReload, requestDaemonShutdown, requestEnvelope, shouldShow, splitWirePayload, subscribeEnvelope, unsubscribeEnvelope, validateLoopInputIntentHint, waitDaemonReady, waitLoopStatusWithID, waitSubscriptionConfirmed };
1549
+ export { type Attachment, type BaseEnvelope, CLIENT_VERSION, type ChatEventResult, ChatEventTerminal, type ClassifierConfig, Client, CommandClient, type CompactImageOptions, type CompleteEnvelope, type Config, type ConnectionAckEnvelope, ConnectionError, type ConnectionInitEnvelope, ConnectionPool, DEFAULT_CLIENT_CAPABILITIES, DEFAULT_DELIVERABLE_PHASES, DEFAULT_POST_IDLE_DRAIN_MS, DEFAULT_THINKING_STEP_EVENTS, DaemonError, DaemonSession, type DaemonSessionOptions, type DecodedMessage, DisconnectCause, type DisconnectEnvelope, ErrIdleTimeout, ErrPoolExhausted, ErrQueryBusy, ErrQueryTimeout, type ErrorEnvelope, EventAutopilotGoalCompleted, EventAutopilotGoalCreated, EventAutopilotGoalProgress, EventAutopilotGoalStatus, EventAutopilotWorkerAssigned, EventAutopilotWorkerUnassigned, EventCardCreated, EventCardReplayBegin, EventCardReplayEnd, EventClassifier, EventDeepResearchCompleted, EventDeepResearchCrawlSummary, EventDeepResearchGatherSummary, EventDeepResearchProgress, EventDeepResearchStarted, EventDeepResearchStepCompleted, EventExplorerCompleted, EventExplorerMilestone, EventExplorerStarted, EventExplorerStepCompleted, EventFinalReport, EventGeneralFailed, EventLoopReattachedWire, EventMessageReceived, EventMessageSent, EventPlanCreated, EventReplayComplete, EventStrangeLoopCompleted, EventStrangeLoopContextCompacted, EventStrangeLoopPlanDecision, EventStrangeLoopReasoned, EventStrangeLoopStarted, EventStrangeLoopStepCompleted, EventStrangeLoopStepQueued, EventStrangeLoopStepStarted, EventStreamToolCallUpdate, EventToolCallUpdatesBatch, EventToolCompleted, EventToolError, EventToolStarted, INTENT_HINT_EMBED, INTENT_HINT_IMAGE_TO_TEXT, INTENT_HINT_OCR, INTENT_HINT_TEXT_COMPLETION, type InputOptions, type InputOpts, type IntentHint, LOOP_ASSISTANT_OUTPUT_PHASES, type LoopAssistantOutputPhase, type LoopInputIntentHint, type LoopInputParams, type LoopNewOptions, type MessageType, type MethodName, type NegotiatedCapabilities, type NextEnvelope, type NotificationEnvelope, type OnComplete, type OnError, PROTO_VERSION, type PingEnvelope, type PongEnvelope, type PoolConfig, PooledConn, QueryGate, REMOVED_INTENT_HINTS, type ReceiptResponseEnvelope, ReconnectError, type RemovedIntentHint, type RequestEnvelope, type ResponseEnvelope, SSEBroadcaster, type SSEEvent, STREAM_END, type SessionEntry, type SessionMessage, type SessionStore, StaleLoopError, type StatusFrame, StreamCloseFail, type StreamClosePolicy, StreamCloseSoftComplete, type StreamEventPayload, type SubscribeEnvelope, TimeoutError, TimeoutPolicy, type TurnChunk, type TurnConfig, TurnEventStats, TurnRunner, type UnsubscribeEnvelope, type VerbosityLevel, VerbosityTier, authenticate, bootstrapLoopSession, checkDaemonStatus, classifyEventVerbosity, compactAttachments, compactImageAttachment, connectWithRetries, connectedWebsocket, connectionInitEnvelope, decodeMessage, defaultConfig, defaultPoolConfig, disconnectCauseName, disconnectEnvelope, encodeMessage, extractSootheLoopID, extractThinkingStep, fetchConfigSection, fetchLoopCards, fetchLoopHistory, fetchLoopMessages, fetchSkillsCatalog, idleTimeoutForTurn, inboundNeedsDeliveryAck, inputMessageForLoop, isCompletionEvent, isDaemonLive, isSubagentProgressEvent, isTurnEndCustomData, isTurnProgressChunk, isValidVerbosityLevel, loadConfigFromEnv, newLoopInputMessage, newLoopNewMessage, newLoopSubscribeMessage, newRequestID, notificationEnvelope, parseNamespace, pingEnvelope, pongEnvelope, protocol1Rpc, refreshAuthToken, requestDaemonConfigReload, requestDaemonShutdown, requestEnvelope, shouldShow, splitWirePayload, subscribeEnvelope, unsubscribeEnvelope, validateLoopInputIntentHint, waitDaemonReady, waitLoopStatusWithID, waitSubscriptionConfirmed };
package/dist/index.js CHANGED
@@ -15,10 +15,16 @@ import {
15
15
  EventCardCreated,
16
16
  EventCardReplayBegin,
17
17
  EventCardReplayEnd,
18
- EventExploreCompleted,
19
- EventExploreMilestone,
20
- EventExploreStarted,
21
- EventExploreStepCompleted,
18
+ EventDeepResearchCompleted,
19
+ EventDeepResearchCrawlSummary,
20
+ EventDeepResearchGatherSummary,
21
+ EventDeepResearchProgress,
22
+ EventDeepResearchStarted,
23
+ EventDeepResearchStepCompleted,
24
+ EventExplorerCompleted,
25
+ EventExplorerMilestone,
26
+ EventExplorerStarted,
27
+ EventExplorerStepCompleted,
22
28
  EventFinalReport,
23
29
  EventGeneralFailed,
24
30
  EventLoopReattachedWire,
@@ -35,9 +41,6 @@ import {
35
41
  EventStrangeLoopStepQueued,
36
42
  EventStrangeLoopStepStarted,
37
43
  EventStreamToolCallUpdate,
38
- EventTacitusCompleted,
39
- EventTacitusGatherSummary,
40
- EventTacitusStarted,
41
44
  EventToolCallUpdatesBatch,
42
45
  EventToolCompleted,
43
46
  EventToolError,
@@ -83,7 +86,7 @@ import {
83
86
  subscribeEnvelope,
84
87
  unsubscribeEnvelope,
85
88
  validateLoopInputIntentHint
86
- } from "./chunk-YYUVHZ3W.js";
89
+ } from "./chunk-R43B23MJ.js";
87
90
 
88
91
  // src/session.ts
89
92
  async function bootstrapLoopSession(client, resumeLoopId, config, loopNew) {
@@ -286,7 +289,7 @@ async function checkDaemonStatus(client, timeout) {
286
289
  return client.requestResponse("daemon_status", {}, "daemon_status", timeout ?? 5e3);
287
290
  }
288
291
  async function isDaemonLive(wsURL, timeout) {
289
- const { Client: Client2 } = await import("./client-SOJZSF7C.js");
292
+ const { Client: Client2 } = await import("./client-SCSBM3EL.js");
290
293
  const t = timeout ?? 5e3;
291
294
  const client = new Client2(wsURL, defaultConfig());
292
295
  try {
@@ -373,7 +376,7 @@ async function fetchLoopMessages(client, loopID, opts) {
373
376
  );
374
377
  }
375
378
  async function connectedWebsocket(wsUrl, fn, timeoutMs = 3e4) {
376
- const { Client: Client2 } = await import("./client-SOJZSF7C.js");
379
+ const { Client: Client2 } = await import("./client-SCSBM3EL.js");
377
380
  const client = new Client2(wsUrl, defaultConfig());
378
381
  const deadline = Date.now() + timeoutMs;
379
382
  try {
@@ -869,9 +872,9 @@ var EventClassifier = class {
869
872
  return this.continueResult(content);
870
873
  }
871
874
  }
872
- const [directContent, directOk] = this.messagesModeAssistantContent(data);
873
- if (directOk && this.isSubstantiveAssistantReply(directContent)) {
874
- return this.deliverableResult(directContent, "soothe.protocol.message.direct_model");
875
+ const [unphasedContent, unphasedOk] = this.messagesModeAssistantContent(data);
876
+ if (unphasedOk) {
877
+ return this.continueResult(unphasedContent);
875
878
  }
876
879
  if (hasPayload && rawContent) {
877
880
  if (isTerminalMessageType(msgType) || msgType === "") {
@@ -886,8 +889,8 @@ var EventClassifier = class {
886
889
  }
887
890
  /**
888
891
  * Extracts plain assistant text from mode="messages" events that carry a
889
- * terminal AIMessage without loop-tagged phase metadata (legacy direct_llm turns
890
- * before phase tagging; prefer deliverablePhases including text_completion).
892
+ * terminal AIMessage without loop-tagged phase metadata (prefer named
893
+ * deliverablePhases such as text_completion).
891
894
  */
892
895
  messagesModeAssistantContent(data) {
893
896
  if (!Array.isArray(data) || data.length === 0) return ["", false];
@@ -2183,10 +2186,16 @@ export {
2183
2186
  EventCardReplayBegin,
2184
2187
  EventCardReplayEnd,
2185
2188
  EventClassifier,
2186
- EventExploreCompleted,
2187
- EventExploreMilestone,
2188
- EventExploreStarted,
2189
- EventExploreStepCompleted,
2189
+ EventDeepResearchCompleted,
2190
+ EventDeepResearchCrawlSummary,
2191
+ EventDeepResearchGatherSummary,
2192
+ EventDeepResearchProgress,
2193
+ EventDeepResearchStarted,
2194
+ EventDeepResearchStepCompleted,
2195
+ EventExplorerCompleted,
2196
+ EventExplorerMilestone,
2197
+ EventExplorerStarted,
2198
+ EventExplorerStepCompleted,
2190
2199
  EventFinalReport,
2191
2200
  EventGeneralFailed,
2192
2201
  EventLoopReattachedWire,
@@ -2203,9 +2212,6 @@ export {
2203
2212
  EventStrangeLoopStepQueued,
2204
2213
  EventStrangeLoopStepStarted,
2205
2214
  EventStreamToolCallUpdate,
2206
- EventTacitusCompleted,
2207
- EventTacitusGatherSummary,
2208
- EventTacitusStarted,
2209
2215
  EventToolCallUpdatesBatch,
2210
2216
  EventToolCompleted,
2211
2217
  EventToolError,