@astralform/js 4.7.0 → 4.8.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.
package/dist/index.d.cts CHANGED
@@ -19,6 +19,16 @@ interface TodoItem {
19
19
  interface TodoUpdatePayload {
20
20
  todos: TodoItem[];
21
21
  }
22
+ /** The conversation's plan, as markdown, after the agent wrote or revised it.
23
+ * Full body rather than a diff — `write_plan` replaces the document wholesale. */
24
+ interface PlanUpdatePayload {
25
+ plan: string;
26
+ }
27
+ /** Names of the conversation's notes, after one was written or deleted.
28
+ * Names only; bodies are unbounded and read on demand. */
29
+ interface NoteUpdatePayload {
30
+ notes: string[];
31
+ }
22
32
  interface TitleGeneratedPayload {
23
33
  title: string;
24
34
  }
@@ -188,6 +198,8 @@ declare const ChatEventType: {
188
198
  readonly UserMessage: "user_message";
189
199
  readonly TitleGenerated: "title_generated";
190
200
  readonly TodoUpdate: "todo_update";
201
+ readonly PlanUpdate: "plan_update";
202
+ readonly NoteUpdate: "note_update";
191
203
  readonly ContextUpdate: "context_update";
192
204
  readonly SubagentStart: "subagent_start";
193
205
  readonly SubagentStop: "subagent_stop";
@@ -432,6 +444,20 @@ type ChatEvent = {
432
444
  } | {
433
445
  type: "todo_update";
434
446
  todos: TodoItem[];
447
+ }
448
+ /** The conversation's plan, as markdown, after the agent wrote or revised it.
449
+ * Carries the FULL body rather than a diff: the backend replaces the plan
450
+ * wholesale (`write_plan` — "Replaces any existing plan"), so a consumer that
451
+ * merged deltas would drift from the stored document. */
452
+ | {
453
+ type: "plan_update";
454
+ plan: string;
455
+ }
456
+ /** Names of the conversation's notes, after one was written or deleted. Names
457
+ * only — bodies are unbounded and read on demand. */
458
+ | {
459
+ type: "note_update";
460
+ notes: string[];
435
461
  } | {
436
462
  type: "context_update";
437
463
  context: Record<string, unknown>;
@@ -1470,4 +1496,4 @@ declare function isEmbeddedResource(value: unknown): value is {
1470
1496
  */
1471
1497
  declare function parseEmbeddedResource(value: unknown): EmbeddedResource | null;
1472
1498
 
1473
- export { type ActiveJob, type AgentCapability, type AgentIdentity, type AgentInfo, type AgentStatus, type AssetCreatedPayload, type AstralformApiKeyConfig, AstralformClient, type AstralformConfig, AstralformError, type AstralformUserTokenConfig, type AttachmentStagedPayload, AuthenticationError, type BlockDeltaPayload, CONVERSATION_PAGE_SIZE, type ChatEvent, ChatEventType, type ChatEventTypeValue, ChatSession, type ChatStorage, type ChatStreamEvent, type ChatStreamRequest, ConnectionError, type ContextUpdatePayload, type ContextWarningPayload, type Conversation, type ConversationAsset, type ConversationEvent, type DesktopStreamPayload, type EmbeddedResource, type FeedbackRequest, type FeedbackResponse, InMemoryStorage, type JobCreateResponse, type JobStatus, type JobSummary, LLMNotConfiguredError, type MemoryRecallPayload, type MemoryRecord, type MemoryUpdatePayload, type Message, type ModelChoiceOptions, type ModelOption, type MyToolGrantsPage, type PromptSuggestionPayload, type ProtocolAdapter, ProtocolRegistry, RateLimitError, type RateLimitErrorDetails, type RawSseEvent, type ReasoningEffort, type SendOptions, ServerError, type SkillInfo, StreamAbortedError, type StreamJobSSEOptions, StreamManager, type StreamManagerEvent, type StreamState, type SubagentStartPayload, type SubagentStopPayload, type TaskStatus, type TeamAgentSummary, type TeamSummary, type TitleGeneratedPayload, type TodoItem, type TodoUpdatePayload, type ToolApprovalDecision, type ToolApprovalGrantedPayload, type ToolApprovalRequest, type ToolApprovalRequestedPayload, type ToolApprovalScope, type ToolCallRequest, type ToolDefinition, type ToolGrant, type ToolHandler, type ToolHarnessWarningPayload, type ToolPermissionDeniedPayload, ToolRegistry, type ToolResult, type ToolResultRequest, type TurnUsage, type UIComponentsConfig, type UserUnavailablePayload, type WireBlockDelta, type WireBlockDeltaPayload, type WireBlockKind, type WireBlockStart, type WireBlockStatus, type WireBlockStop, type WireCustomEvent, type WireErrorEvent, type WireEvent, type WireInputArgDelta, type WireInputDelta, type WireKeepalive, type WireMessageStart, type WireMessageStop, type WireOutputDelta, type WireRetryEvent, type WireSignatureDelta, type WireStallWarning, type WireStatusDelta, type WireStopReason, type WireTextDelta, type WireThinkingDelta, type WorkspaceReadyPayload, generateId, isEmbeddedResource, mapSseToChat, parseEmbeddedResource, replayEvents, streamJobSSE, translateDelta };
1499
+ export { type ActiveJob, type AgentCapability, type AgentIdentity, type AgentInfo, type AgentStatus, type AssetCreatedPayload, type AstralformApiKeyConfig, AstralformClient, type AstralformConfig, AstralformError, type AstralformUserTokenConfig, type AttachmentStagedPayload, AuthenticationError, type BlockDeltaPayload, CONVERSATION_PAGE_SIZE, type ChatEvent, ChatEventType, type ChatEventTypeValue, ChatSession, type ChatStorage, type ChatStreamEvent, type ChatStreamRequest, ConnectionError, type ContextUpdatePayload, type ContextWarningPayload, type Conversation, type ConversationAsset, type ConversationEvent, type DesktopStreamPayload, type EmbeddedResource, type FeedbackRequest, type FeedbackResponse, InMemoryStorage, type JobCreateResponse, type JobStatus, type JobSummary, LLMNotConfiguredError, type MemoryRecallPayload, type MemoryRecord, type MemoryUpdatePayload, type Message, type ModelChoiceOptions, type ModelOption, type MyToolGrantsPage, type NoteUpdatePayload, type PlanUpdatePayload, type PromptSuggestionPayload, type ProtocolAdapter, ProtocolRegistry, RateLimitError, type RateLimitErrorDetails, type RawSseEvent, type ReasoningEffort, type SendOptions, ServerError, type SkillInfo, StreamAbortedError, type StreamJobSSEOptions, StreamManager, type StreamManagerEvent, type StreamState, type SubagentStartPayload, type SubagentStopPayload, type TaskStatus, type TeamAgentSummary, type TeamSummary, type TitleGeneratedPayload, type TodoItem, type TodoUpdatePayload, type ToolApprovalDecision, type ToolApprovalGrantedPayload, type ToolApprovalRequest, type ToolApprovalRequestedPayload, type ToolApprovalScope, type ToolCallRequest, type ToolDefinition, type ToolGrant, type ToolHandler, type ToolHarnessWarningPayload, type ToolPermissionDeniedPayload, ToolRegistry, type ToolResult, type ToolResultRequest, type TurnUsage, type UIComponentsConfig, type UserUnavailablePayload, type WireBlockDelta, type WireBlockDeltaPayload, type WireBlockKind, type WireBlockStart, type WireBlockStatus, type WireBlockStop, type WireCustomEvent, type WireErrorEvent, type WireEvent, type WireInputArgDelta, type WireInputDelta, type WireKeepalive, type WireMessageStart, type WireMessageStop, type WireOutputDelta, type WireRetryEvent, type WireSignatureDelta, type WireStallWarning, type WireStatusDelta, type WireStopReason, type WireTextDelta, type WireThinkingDelta, type WorkspaceReadyPayload, generateId, isEmbeddedResource, mapSseToChat, parseEmbeddedResource, replayEvents, streamJobSSE, translateDelta };
package/dist/index.d.ts CHANGED
@@ -19,6 +19,16 @@ interface TodoItem {
19
19
  interface TodoUpdatePayload {
20
20
  todos: TodoItem[];
21
21
  }
22
+ /** The conversation's plan, as markdown, after the agent wrote or revised it.
23
+ * Full body rather than a diff — `write_plan` replaces the document wholesale. */
24
+ interface PlanUpdatePayload {
25
+ plan: string;
26
+ }
27
+ /** Names of the conversation's notes, after one was written or deleted.
28
+ * Names only; bodies are unbounded and read on demand. */
29
+ interface NoteUpdatePayload {
30
+ notes: string[];
31
+ }
22
32
  interface TitleGeneratedPayload {
23
33
  title: string;
24
34
  }
@@ -188,6 +198,8 @@ declare const ChatEventType: {
188
198
  readonly UserMessage: "user_message";
189
199
  readonly TitleGenerated: "title_generated";
190
200
  readonly TodoUpdate: "todo_update";
201
+ readonly PlanUpdate: "plan_update";
202
+ readonly NoteUpdate: "note_update";
191
203
  readonly ContextUpdate: "context_update";
192
204
  readonly SubagentStart: "subagent_start";
193
205
  readonly SubagentStop: "subagent_stop";
@@ -432,6 +444,20 @@ type ChatEvent = {
432
444
  } | {
433
445
  type: "todo_update";
434
446
  todos: TodoItem[];
447
+ }
448
+ /** The conversation's plan, as markdown, after the agent wrote or revised it.
449
+ * Carries the FULL body rather than a diff: the backend replaces the plan
450
+ * wholesale (`write_plan` — "Replaces any existing plan"), so a consumer that
451
+ * merged deltas would drift from the stored document. */
452
+ | {
453
+ type: "plan_update";
454
+ plan: string;
455
+ }
456
+ /** Names of the conversation's notes, after one was written or deleted. Names
457
+ * only — bodies are unbounded and read on demand. */
458
+ | {
459
+ type: "note_update";
460
+ notes: string[];
435
461
  } | {
436
462
  type: "context_update";
437
463
  context: Record<string, unknown>;
@@ -1470,4 +1496,4 @@ declare function isEmbeddedResource(value: unknown): value is {
1470
1496
  */
1471
1497
  declare function parseEmbeddedResource(value: unknown): EmbeddedResource | null;
1472
1498
 
1473
- export { type ActiveJob, type AgentCapability, type AgentIdentity, type AgentInfo, type AgentStatus, type AssetCreatedPayload, type AstralformApiKeyConfig, AstralformClient, type AstralformConfig, AstralformError, type AstralformUserTokenConfig, type AttachmentStagedPayload, AuthenticationError, type BlockDeltaPayload, CONVERSATION_PAGE_SIZE, type ChatEvent, ChatEventType, type ChatEventTypeValue, ChatSession, type ChatStorage, type ChatStreamEvent, type ChatStreamRequest, ConnectionError, type ContextUpdatePayload, type ContextWarningPayload, type Conversation, type ConversationAsset, type ConversationEvent, type DesktopStreamPayload, type EmbeddedResource, type FeedbackRequest, type FeedbackResponse, InMemoryStorage, type JobCreateResponse, type JobStatus, type JobSummary, LLMNotConfiguredError, type MemoryRecallPayload, type MemoryRecord, type MemoryUpdatePayload, type Message, type ModelChoiceOptions, type ModelOption, type MyToolGrantsPage, type PromptSuggestionPayload, type ProtocolAdapter, ProtocolRegistry, RateLimitError, type RateLimitErrorDetails, type RawSseEvent, type ReasoningEffort, type SendOptions, ServerError, type SkillInfo, StreamAbortedError, type StreamJobSSEOptions, StreamManager, type StreamManagerEvent, type StreamState, type SubagentStartPayload, type SubagentStopPayload, type TaskStatus, type TeamAgentSummary, type TeamSummary, type TitleGeneratedPayload, type TodoItem, type TodoUpdatePayload, type ToolApprovalDecision, type ToolApprovalGrantedPayload, type ToolApprovalRequest, type ToolApprovalRequestedPayload, type ToolApprovalScope, type ToolCallRequest, type ToolDefinition, type ToolGrant, type ToolHandler, type ToolHarnessWarningPayload, type ToolPermissionDeniedPayload, ToolRegistry, type ToolResult, type ToolResultRequest, type TurnUsage, type UIComponentsConfig, type UserUnavailablePayload, type WireBlockDelta, type WireBlockDeltaPayload, type WireBlockKind, type WireBlockStart, type WireBlockStatus, type WireBlockStop, type WireCustomEvent, type WireErrorEvent, type WireEvent, type WireInputArgDelta, type WireInputDelta, type WireKeepalive, type WireMessageStart, type WireMessageStop, type WireOutputDelta, type WireRetryEvent, type WireSignatureDelta, type WireStallWarning, type WireStatusDelta, type WireStopReason, type WireTextDelta, type WireThinkingDelta, type WorkspaceReadyPayload, generateId, isEmbeddedResource, mapSseToChat, parseEmbeddedResource, replayEvents, streamJobSSE, translateDelta };
1499
+ export { type ActiveJob, type AgentCapability, type AgentIdentity, type AgentInfo, type AgentStatus, type AssetCreatedPayload, type AstralformApiKeyConfig, AstralformClient, type AstralformConfig, AstralformError, type AstralformUserTokenConfig, type AttachmentStagedPayload, AuthenticationError, type BlockDeltaPayload, CONVERSATION_PAGE_SIZE, type ChatEvent, ChatEventType, type ChatEventTypeValue, ChatSession, type ChatStorage, type ChatStreamEvent, type ChatStreamRequest, ConnectionError, type ContextUpdatePayload, type ContextWarningPayload, type Conversation, type ConversationAsset, type ConversationEvent, type DesktopStreamPayload, type EmbeddedResource, type FeedbackRequest, type FeedbackResponse, InMemoryStorage, type JobCreateResponse, type JobStatus, type JobSummary, LLMNotConfiguredError, type MemoryRecallPayload, type MemoryRecord, type MemoryUpdatePayload, type Message, type ModelChoiceOptions, type ModelOption, type MyToolGrantsPage, type NoteUpdatePayload, type PlanUpdatePayload, type PromptSuggestionPayload, type ProtocolAdapter, ProtocolRegistry, RateLimitError, type RateLimitErrorDetails, type RawSseEvent, type ReasoningEffort, type SendOptions, ServerError, type SkillInfo, StreamAbortedError, type StreamJobSSEOptions, StreamManager, type StreamManagerEvent, type StreamState, type SubagentStartPayload, type SubagentStopPayload, type TaskStatus, type TeamAgentSummary, type TeamSummary, type TitleGeneratedPayload, type TodoItem, type TodoUpdatePayload, type ToolApprovalDecision, type ToolApprovalGrantedPayload, type ToolApprovalRequest, type ToolApprovalRequestedPayload, type ToolApprovalScope, type ToolCallRequest, type ToolDefinition, type ToolGrant, type ToolHandler, type ToolHarnessWarningPayload, type ToolPermissionDeniedPayload, ToolRegistry, type ToolResult, type ToolResultRequest, type TurnUsage, type UIComponentsConfig, type UserUnavailablePayload, type WireBlockDelta, type WireBlockDeltaPayload, type WireBlockKind, type WireBlockStart, type WireBlockStatus, type WireBlockStop, type WireCustomEvent, type WireErrorEvent, type WireEvent, type WireInputArgDelta, type WireInputDelta, type WireKeepalive, type WireMessageStart, type WireMessageStop, type WireOutputDelta, type WireRetryEvent, type WireSignatureDelta, type WireStallWarning, type WireStatusDelta, type WireStopReason, type WireTextDelta, type WireThinkingDelta, type WorkspaceReadyPayload, generateId, isEmbeddedResource, mapSseToChat, parseEmbeddedResource, replayEvents, streamJobSSE, translateDelta };
package/dist/index.js CHANGED
@@ -1037,6 +1037,16 @@ function translateCustomEvent(name, data) {
1037
1037
  type: "todo_update",
1038
1038
  todos: data.todos ?? []
1039
1039
  };
1040
+ case "plan_update":
1041
+ return {
1042
+ type: "plan_update",
1043
+ plan: data.plan ?? ""
1044
+ };
1045
+ case "note_update":
1046
+ return {
1047
+ type: "note_update",
1048
+ notes: data.notes ?? []
1049
+ };
1040
1050
  case "context_update":
1041
1051
  return {
1042
1052
  type: "context_update",
@@ -2028,6 +2038,8 @@ var ChatEventType = {
2028
2038
  UserMessage: "user_message",
2029
2039
  TitleGenerated: "title_generated",
2030
2040
  TodoUpdate: "todo_update",
2041
+ PlanUpdate: "plan_update",
2042
+ NoteUpdate: "note_update",
2031
2043
  ContextUpdate: "context_update",
2032
2044
  SubagentStart: "subagent_start",
2033
2045
  SubagentStop: "subagent_stop",