@mirasoth/soothe-client 0.5.7 → 0.5.8

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
@@ -136,17 +136,11 @@ declare const INTENT_HINT_OCR: "ocr";
136
136
  declare const INTENT_HINT_EMBED: "embed";
137
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
- /** Legacy intent_hint values removed from the daemon wire contract. */
140
- declare const REMOVED_INTENT_HINTS: readonly ["direct_llm", "quiz", "direct_model"];
141
- type RemovedIntentHint = (typeof REMOVED_INTENT_HINTS)[number];
142
139
  /**
143
140
  * 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.
141
+ * (e.g. ``resume_clarification``, ``skill:foo``).
146
142
  */
147
143
  type LoopInputIntentHint = IntentHint | (string & {});
148
- /** Returns an error message when ``hint`` is a removed legacy value; otherwise null. */
149
- declare function validateLoopInputIntentHint(hint: string): string | null;
150
144
  /** Phases emitted on ``mode=messages`` for user-visible loop assistant output. */
151
145
  declare const LOOP_ASSISTANT_OUTPUT_PHASES: readonly ["goal_completion", "quiz", "autonomous_goal", "chitchat", "text_completion", "image_to_text", "ocr", "embed", "plan_direct"];
152
146
  type LoopAssistantOutputPhase = (typeof LOOP_ASSISTANT_OUTPUT_PHASES)[number];
@@ -294,11 +288,8 @@ type DecodedMessage = RequestEnvelope | ResponseEnvelope | NotificationEnvelope
294
288
  interface LoopInputParams {
295
289
  loop_id: string;
296
290
  content: string;
297
- autonomous?: boolean;
298
- max_iterations?: number;
299
291
  preferred_subagent?: string;
300
- /** @deprecated Ignored by daemon; loop_input always uses non-interactive autonomous mode. */
301
- interactive?: boolean;
292
+ intake_scope?: "trivial" | "simple" | "complex";
302
293
  model?: string;
303
294
  model_params?: Record<string, unknown>;
304
295
  attachments?: Record<string, unknown>[];
@@ -450,11 +441,9 @@ declare function isSubagentProgressEvent(eventType: string): boolean;
450
441
  interface InputOptions {
451
442
  /** Subscribed StrangeLoop id (required for loop_input). */
452
443
  loopID?: string;
453
- autonomous?: boolean;
454
- maxIterations?: number;
455
444
  subagent?: string;
456
- /** @deprecated Ignored by daemon; loop_input always uses non-interactive autonomous mode. */
457
- interactive?: boolean;
445
+ /** Forced StrangeLoop intake scope (trivial|simple|complex). */
446
+ intakeScope?: "trivial" | "simple" | "complex";
458
447
  model?: string;
459
448
  modelParams?: Record<string, unknown>;
460
449
  attachments?: Record<string, unknown>[];
@@ -1406,6 +1395,7 @@ interface TurnConfig {
1406
1395
  interface InputOpts {
1407
1396
  intentHint?: LoopInputIntentHint;
1408
1397
  preferredSubagent?: string;
1398
+ intakeScope?: "trivial" | "simple" | "complex";
1409
1399
  responseSchema?: Record<string, unknown>;
1410
1400
  responseSchemaName?: string;
1411
1401
  responseSchemaStrict?: boolean;
@@ -1553,8 +1543,6 @@ declare class DaemonSession {
1553
1543
  close(): Promise<void>;
1554
1544
  detach(): Promise<void>;
1555
1545
  sendTurn(text: string, options?: {
1556
- autonomous?: boolean;
1557
- maxIterations?: number;
1558
1546
  preferredSubagent?: string;
1559
1547
  model?: string;
1560
1548
  modelParams?: Record<string, unknown>;
@@ -1626,4 +1614,4 @@ declare class CardProjection {
1626
1614
  apply(data: unknown): boolean;
1627
1615
  }
1628
1616
 
1629
- export { type Attachment, type BaseEnvelope, CLIENT_VERSION, CardProjection, type CardWireDict, 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, EventCardFinalized, EventCardReplayBegin, EventCardReplayEnd, EventCardUpdated, EventClassifier, EventDeepResearchCompleted, EventDeepResearchCrawlSummary, EventDeepResearchGatherSummary, EventDeepResearchProgress, EventDeepResearchStarted, EventDeepResearchStepCompleted, 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 LoopSessionEntry, type LoopSessionStore, type MessageType, type MethodName, type NegotiatedCapabilities, type NextEnvelope, type NotificationEnvelope, type OnComplete, type OnError, PROTO_VERSION, type ParsedCardFrame, 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 SessionMessage, StaleLoopError, type StatusFrame, StreamCloseFail, type StreamClosePolicy, StreamCloseSoftComplete, type StreamEventPayload, type SubscribeEnvelope, TURN_END_IDLE, TURN_END_STOPPED, TURN_END_STREAM_END, TimeoutError, TimeoutPolicy, TurnBoundary, type TurnChunk, type TurnConfig, TurnEventStats, TurnLifecycleGate, TurnRunner, type UnsubscribeEnvelope, type VerbosityLevel, VerbosityTier, authenticate, bootstrapLoopSession, checkDaemonStatus, classifyEventVerbosity, compactAttachments, compactImageAttachment, connectWithRetries, connectedWebsocket, connectionInitEnvelope, decodeMessage, defaultConfig, defaultPoolConfig, disconnectCauseName, disconnectEnvelope, encodeMessage, extractSootheLoopID, extractThinkingStep, fetchConfigSection, fetchLoopHistory, fetchLoopMessages, fetchSkillsCatalog, formatTurnId, frameSeq, frameTurnId, idleTimeoutForTurn, inboundNeedsDeliveryAck, inputMessageForLoop, isCompletionEvent, isDaemonLive, isDaemonTurnEndEvent, isIdleTerminalAllowed, isSubagentProgressEvent, isTurnEndCustomData, isTurnProgressChunk, isTurnTerminalAllowed, isValidVerbosityLevel, loadConfigFromEnv, newLoopInputMessage, newLoopNewMessage, newLoopSubscribeMessage, newRequestID, notificationEnvelope, parseCardCustomPayload, parseNamespace, parseTurnGeneration, pingEnvelope, pongEnvelope, protocol1Rpc, refreshAuthToken, requestDaemonConfigReload, requestDaemonShutdown, requestEnvelope, shouldShow, splitWirePayload, subscribeEnvelope, turnIdsMatch, unsubscribeEnvelope, validateLoopInputIntentHint, waitDaemonReady, waitLoopStatusWithID, waitSubscriptionConfirmed };
1617
+ export { type Attachment, type BaseEnvelope, CLIENT_VERSION, CardProjection, type CardWireDict, 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, EventCardFinalized, EventCardReplayBegin, EventCardReplayEnd, EventCardUpdated, EventClassifier, EventDeepResearchCompleted, EventDeepResearchCrawlSummary, EventDeepResearchGatherSummary, EventDeepResearchProgress, EventDeepResearchStarted, EventDeepResearchStepCompleted, 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 LoopSessionEntry, type LoopSessionStore, type MessageType, type MethodName, type NegotiatedCapabilities, type NextEnvelope, type NotificationEnvelope, type OnComplete, type OnError, PROTO_VERSION, type ParsedCardFrame, type PingEnvelope, type PongEnvelope, type PoolConfig, PooledConn, QueryGate, type ReceiptResponseEnvelope, ReconnectError, type RequestEnvelope, type ResponseEnvelope, SSEBroadcaster, type SSEEvent, STREAM_END, type SessionMessage, StaleLoopError, type StatusFrame, StreamCloseFail, type StreamClosePolicy, StreamCloseSoftComplete, type StreamEventPayload, type SubscribeEnvelope, TURN_END_IDLE, TURN_END_STOPPED, TURN_END_STREAM_END, TimeoutError, TimeoutPolicy, TurnBoundary, type TurnChunk, type TurnConfig, TurnEventStats, TurnLifecycleGate, TurnRunner, type UnsubscribeEnvelope, type VerbosityLevel, VerbosityTier, authenticate, bootstrapLoopSession, checkDaemonStatus, classifyEventVerbosity, compactAttachments, compactImageAttachment, connectWithRetries, connectedWebsocket, connectionInitEnvelope, decodeMessage, defaultConfig, defaultPoolConfig, disconnectCauseName, disconnectEnvelope, encodeMessage, extractSootheLoopID, extractThinkingStep, fetchConfigSection, fetchLoopHistory, fetchLoopMessages, fetchSkillsCatalog, formatTurnId, frameSeq, frameTurnId, idleTimeoutForTurn, inboundNeedsDeliveryAck, inputMessageForLoop, isCompletionEvent, isDaemonLive, isDaemonTurnEndEvent, isIdleTerminalAllowed, isSubagentProgressEvent, isTurnEndCustomData, isTurnProgressChunk, isTurnTerminalAllowed, isValidVerbosityLevel, loadConfigFromEnv, newLoopInputMessage, newLoopNewMessage, newLoopSubscribeMessage, newRequestID, notificationEnvelope, parseCardCustomPayload, parseNamespace, parseTurnGeneration, pingEnvelope, pongEnvelope, protocol1Rpc, refreshAuthToken, requestDaemonConfigReload, requestDaemonShutdown, requestEnvelope, shouldShow, splitWirePayload, subscribeEnvelope, turnIdsMatch, unsubscribeEnvelope, waitDaemonReady, waitLoopStatusWithID, waitSubscriptionConfirmed };
package/dist/index.d.ts CHANGED
@@ -136,17 +136,11 @@ declare const INTENT_HINT_OCR: "ocr";
136
136
  declare const INTENT_HINT_EMBED: "embed";
137
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
- /** Legacy intent_hint values removed from the daemon wire contract. */
140
- declare const REMOVED_INTENT_HINTS: readonly ["direct_llm", "quiz", "direct_model"];
141
- type RemovedIntentHint = (typeof REMOVED_INTENT_HINTS)[number];
142
139
  /**
143
140
  * 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.
141
+ * (e.g. ``resume_clarification``, ``skill:foo``).
146
142
  */
147
143
  type LoopInputIntentHint = IntentHint | (string & {});
148
- /** Returns an error message when ``hint`` is a removed legacy value; otherwise null. */
149
- declare function validateLoopInputIntentHint(hint: string): string | null;
150
144
  /** Phases emitted on ``mode=messages`` for user-visible loop assistant output. */
151
145
  declare const LOOP_ASSISTANT_OUTPUT_PHASES: readonly ["goal_completion", "quiz", "autonomous_goal", "chitchat", "text_completion", "image_to_text", "ocr", "embed", "plan_direct"];
152
146
  type LoopAssistantOutputPhase = (typeof LOOP_ASSISTANT_OUTPUT_PHASES)[number];
@@ -294,11 +288,8 @@ type DecodedMessage = RequestEnvelope | ResponseEnvelope | NotificationEnvelope
294
288
  interface LoopInputParams {
295
289
  loop_id: string;
296
290
  content: string;
297
- autonomous?: boolean;
298
- max_iterations?: number;
299
291
  preferred_subagent?: string;
300
- /** @deprecated Ignored by daemon; loop_input always uses non-interactive autonomous mode. */
301
- interactive?: boolean;
292
+ intake_scope?: "trivial" | "simple" | "complex";
302
293
  model?: string;
303
294
  model_params?: Record<string, unknown>;
304
295
  attachments?: Record<string, unknown>[];
@@ -450,11 +441,9 @@ declare function isSubagentProgressEvent(eventType: string): boolean;
450
441
  interface InputOptions {
451
442
  /** Subscribed StrangeLoop id (required for loop_input). */
452
443
  loopID?: string;
453
- autonomous?: boolean;
454
- maxIterations?: number;
455
444
  subagent?: string;
456
- /** @deprecated Ignored by daemon; loop_input always uses non-interactive autonomous mode. */
457
- interactive?: boolean;
445
+ /** Forced StrangeLoop intake scope (trivial|simple|complex). */
446
+ intakeScope?: "trivial" | "simple" | "complex";
458
447
  model?: string;
459
448
  modelParams?: Record<string, unknown>;
460
449
  attachments?: Record<string, unknown>[];
@@ -1406,6 +1395,7 @@ interface TurnConfig {
1406
1395
  interface InputOpts {
1407
1396
  intentHint?: LoopInputIntentHint;
1408
1397
  preferredSubagent?: string;
1398
+ intakeScope?: "trivial" | "simple" | "complex";
1409
1399
  responseSchema?: Record<string, unknown>;
1410
1400
  responseSchemaName?: string;
1411
1401
  responseSchemaStrict?: boolean;
@@ -1553,8 +1543,6 @@ declare class DaemonSession {
1553
1543
  close(): Promise<void>;
1554
1544
  detach(): Promise<void>;
1555
1545
  sendTurn(text: string, options?: {
1556
- autonomous?: boolean;
1557
- maxIterations?: number;
1558
1546
  preferredSubagent?: string;
1559
1547
  model?: string;
1560
1548
  modelParams?: Record<string, unknown>;
@@ -1626,4 +1614,4 @@ declare class CardProjection {
1626
1614
  apply(data: unknown): boolean;
1627
1615
  }
1628
1616
 
1629
- export { type Attachment, type BaseEnvelope, CLIENT_VERSION, CardProjection, type CardWireDict, 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, EventCardFinalized, EventCardReplayBegin, EventCardReplayEnd, EventCardUpdated, EventClassifier, EventDeepResearchCompleted, EventDeepResearchCrawlSummary, EventDeepResearchGatherSummary, EventDeepResearchProgress, EventDeepResearchStarted, EventDeepResearchStepCompleted, 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 LoopSessionEntry, type LoopSessionStore, type MessageType, type MethodName, type NegotiatedCapabilities, type NextEnvelope, type NotificationEnvelope, type OnComplete, type OnError, PROTO_VERSION, type ParsedCardFrame, 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 SessionMessage, StaleLoopError, type StatusFrame, StreamCloseFail, type StreamClosePolicy, StreamCloseSoftComplete, type StreamEventPayload, type SubscribeEnvelope, TURN_END_IDLE, TURN_END_STOPPED, TURN_END_STREAM_END, TimeoutError, TimeoutPolicy, TurnBoundary, type TurnChunk, type TurnConfig, TurnEventStats, TurnLifecycleGate, TurnRunner, type UnsubscribeEnvelope, type VerbosityLevel, VerbosityTier, authenticate, bootstrapLoopSession, checkDaemonStatus, classifyEventVerbosity, compactAttachments, compactImageAttachment, connectWithRetries, connectedWebsocket, connectionInitEnvelope, decodeMessage, defaultConfig, defaultPoolConfig, disconnectCauseName, disconnectEnvelope, encodeMessage, extractSootheLoopID, extractThinkingStep, fetchConfigSection, fetchLoopHistory, fetchLoopMessages, fetchSkillsCatalog, formatTurnId, frameSeq, frameTurnId, idleTimeoutForTurn, inboundNeedsDeliveryAck, inputMessageForLoop, isCompletionEvent, isDaemonLive, isDaemonTurnEndEvent, isIdleTerminalAllowed, isSubagentProgressEvent, isTurnEndCustomData, isTurnProgressChunk, isTurnTerminalAllowed, isValidVerbosityLevel, loadConfigFromEnv, newLoopInputMessage, newLoopNewMessage, newLoopSubscribeMessage, newRequestID, notificationEnvelope, parseCardCustomPayload, parseNamespace, parseTurnGeneration, pingEnvelope, pongEnvelope, protocol1Rpc, refreshAuthToken, requestDaemonConfigReload, requestDaemonShutdown, requestEnvelope, shouldShow, splitWirePayload, subscribeEnvelope, turnIdsMatch, unsubscribeEnvelope, validateLoopInputIntentHint, waitDaemonReady, waitLoopStatusWithID, waitSubscriptionConfirmed };
1617
+ export { type Attachment, type BaseEnvelope, CLIENT_VERSION, CardProjection, type CardWireDict, 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, EventCardFinalized, EventCardReplayBegin, EventCardReplayEnd, EventCardUpdated, EventClassifier, EventDeepResearchCompleted, EventDeepResearchCrawlSummary, EventDeepResearchGatherSummary, EventDeepResearchProgress, EventDeepResearchStarted, EventDeepResearchStepCompleted, 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 LoopSessionEntry, type LoopSessionStore, type MessageType, type MethodName, type NegotiatedCapabilities, type NextEnvelope, type NotificationEnvelope, type OnComplete, type OnError, PROTO_VERSION, type ParsedCardFrame, type PingEnvelope, type PongEnvelope, type PoolConfig, PooledConn, QueryGate, type ReceiptResponseEnvelope, ReconnectError, type RequestEnvelope, type ResponseEnvelope, SSEBroadcaster, type SSEEvent, STREAM_END, type SessionMessage, StaleLoopError, type StatusFrame, StreamCloseFail, type StreamClosePolicy, StreamCloseSoftComplete, type StreamEventPayload, type SubscribeEnvelope, TURN_END_IDLE, TURN_END_STOPPED, TURN_END_STREAM_END, TimeoutError, TimeoutPolicy, TurnBoundary, type TurnChunk, type TurnConfig, TurnEventStats, TurnLifecycleGate, TurnRunner, type UnsubscribeEnvelope, type VerbosityLevel, VerbosityTier, authenticate, bootstrapLoopSession, checkDaemonStatus, classifyEventVerbosity, compactAttachments, compactImageAttachment, connectWithRetries, connectedWebsocket, connectionInitEnvelope, decodeMessage, defaultConfig, defaultPoolConfig, disconnectCauseName, disconnectEnvelope, encodeMessage, extractSootheLoopID, extractThinkingStep, fetchConfigSection, fetchLoopHistory, fetchLoopMessages, fetchSkillsCatalog, formatTurnId, frameSeq, frameTurnId, idleTimeoutForTurn, inboundNeedsDeliveryAck, inputMessageForLoop, isCompletionEvent, isDaemonLive, isDaemonTurnEndEvent, isIdleTerminalAllowed, isSubagentProgressEvent, isTurnEndCustomData, isTurnProgressChunk, isTurnTerminalAllowed, isValidVerbosityLevel, loadConfigFromEnv, newLoopInputMessage, newLoopNewMessage, newLoopSubscribeMessage, newRequestID, notificationEnvelope, parseCardCustomPayload, parseNamespace, parseTurnGeneration, pingEnvelope, pongEnvelope, protocol1Rpc, refreshAuthToken, requestDaemonConfigReload, requestDaemonShutdown, requestEnvelope, shouldShow, splitWirePayload, subscribeEnvelope, turnIdsMatch, unsubscribeEnvelope, waitDaemonReady, waitLoopStatusWithID, waitSubscriptionConfirmed };
package/dist/index.js CHANGED
@@ -3,7 +3,6 @@ import {
3
3
  Client,
4
4
  ConnectionError,
5
5
  DEFAULT_CLIENT_CAPABILITIES,
6
- DEFAULT_DELIVERABLE_PHASES,
7
6
  DaemonError,
8
7
  DisconnectCause,
9
8
  EventAutopilotGoalCompleted,
@@ -43,13 +42,7 @@ import {
43
42
  EventToolCompleted,
44
43
  EventToolError,
45
44
  EventToolStarted,
46
- INTENT_HINT_EMBED,
47
- INTENT_HINT_IMAGE_TO_TEXT,
48
- INTENT_HINT_OCR,
49
- INTENT_HINT_TEXT_COMPLETION,
50
- LOOP_ASSISTANT_OUTPUT_PHASES,
51
45
  PROTO_VERSION,
52
- REMOVED_INTENT_HINTS,
53
46
  ReconnectError,
54
47
  STREAM_END,
55
48
  StaleLoopError,
@@ -82,9 +75,34 @@ import {
82
75
  shouldShow,
83
76
  splitWirePayload,
84
77
  subscribeEnvelope,
85
- unsubscribeEnvelope,
86
- validateLoopInputIntentHint
87
- } from "./chunk-56Z7SUGW.js";
78
+ unsubscribeEnvelope
79
+ } from "./chunk-CFGENQFE.js";
80
+
81
+ // src/intent_hints.ts
82
+ var INTENT_HINT_TEXT_COMPLETION = "text_completion";
83
+ var INTENT_HINT_IMAGE_TO_TEXT = "image_to_text";
84
+ var INTENT_HINT_OCR = "ocr";
85
+ var INTENT_HINT_EMBED = "embed";
86
+ var LOOP_ASSISTANT_OUTPUT_PHASES = [
87
+ "goal_completion",
88
+ "quiz",
89
+ "autonomous_goal",
90
+ "chitchat",
91
+ "text_completion",
92
+ "image_to_text",
93
+ "ocr",
94
+ "embed",
95
+ "plan_direct"
96
+ ];
97
+ var DEFAULT_DELIVERABLE_PHASES = /* @__PURE__ */ new Set([
98
+ "quiz",
99
+ "goal_completion",
100
+ "chitchat",
101
+ "text_completion",
102
+ "image_to_text",
103
+ "ocr",
104
+ "embed"
105
+ ]);
88
106
 
89
107
  // src/session.ts
90
108
  async function bootstrapLoopSession(client, resumeLoopId, config, loopNew) {
@@ -291,7 +309,7 @@ async function checkDaemonStatus(client, timeout) {
291
309
  return client.requestResponse("daemon_status", {}, "daemon_status", timeout ?? 5e3);
292
310
  }
293
311
  async function isDaemonLive(wsURL, timeout) {
294
- const { Client: Client2 } = await import("./client-CUYIRMFW.js");
312
+ const { Client: Client2 } = await import("./client-57KMIFVI.js");
295
313
  const t = timeout ?? 5e3;
296
314
  const client = new Client2(wsURL, defaultConfig());
297
315
  try {
@@ -375,7 +393,7 @@ async function fetchLoopMessages(client, loopID, opts) {
375
393
  );
376
394
  }
377
395
  async function connectedWebsocket(wsUrl, fn, timeoutMs = 3e4) {
378
- const { Client: Client2 } = await import("./client-CUYIRMFW.js");
396
+ const { Client: Client2 } = await import("./client-57KMIFVI.js");
379
397
  const client = new Client2(wsUrl, defaultConfig());
380
398
  const deadline = Date.now() + timeoutMs;
381
399
  try {
@@ -1596,13 +1614,10 @@ function inputMessageForLoop(text, loopID, attachments, opts) {
1596
1614
  if (attachments && attachments.length > 0) msg.attachments = attachments;
1597
1615
  if (opts) {
1598
1616
  if (opts.intentHint?.trim()) {
1599
- const hintError = validateLoopInputIntentHint(opts.intentHint);
1600
- if (hintError) {
1601
- throw new Error(hintError);
1602
- }
1603
1617
  msg.intent_hint = opts.intentHint.trim();
1604
1618
  }
1605
1619
  if (opts.preferredSubagent?.trim()) msg.preferred_subagent = opts.preferredSubagent.trim();
1620
+ if (opts.intakeScope?.trim()) msg.intake_scope = opts.intakeScope.trim();
1606
1621
  if (opts.responseSchema && Object.keys(opts.responseSchema).length > 0) {
1607
1622
  msg.response_schema = opts.responseSchema;
1608
1623
  }
@@ -2125,8 +2140,6 @@ var DaemonSession = class {
2125
2140
  if (!this.loopId) throw new Error("No active loop session");
2126
2141
  await this.client.sendInput(text, {
2127
2142
  loopID: this.loopId,
2128
- autonomous: options?.autonomous,
2129
- maxIterations: options?.maxIterations,
2130
2143
  subagent: options?.preferredSubagent,
2131
2144
  model: options?.model,
2132
2145
  modelParams: options?.modelParams,
@@ -2529,7 +2542,6 @@ export {
2529
2542
  PROTO_VERSION,
2530
2543
  PooledConn,
2531
2544
  QueryGate,
2532
- REMOVED_INTENT_HINTS,
2533
2545
  ReconnectError,
2534
2546
  SSEBroadcaster,
2535
2547
  STREAM_END,
@@ -2603,7 +2615,6 @@ export {
2603
2615
  subscribeEnvelope,
2604
2616
  turnIdsMatch,
2605
2617
  unsubscribeEnvelope,
2606
- validateLoopInputIntentHint,
2607
2618
  waitDaemonReady,
2608
2619
  waitLoopStatusWithID,
2609
2620
  waitSubscriptionConfirmed