@astralform/js 8.5.0 → 9.1.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
@@ -113,13 +113,6 @@ interface ToolApprovalGrantedPayload {
113
113
  toolName: string;
114
114
  callId: string;
115
115
  }
116
- interface ToolPermissionDeniedPayload {
117
- toolName: string;
118
- callId: string;
119
- reason?: string | null;
120
- /** Known values: "hook" | "rule" | "user" | "timeout" | "circuit_breaker". */
121
- deniedBy?: string | null;
122
- }
123
116
  interface ToolHarnessWarningPayload {
124
117
  toolName: string;
125
118
  callId: string;
@@ -254,7 +247,6 @@ declare const ChatEventType: {
254
247
  readonly AssetCreated: "asset_created";
255
248
  readonly ToolApprovalRequested: "tool_approval_requested";
256
249
  readonly ToolApprovalGranted: "tool_approval_granted";
257
- readonly ToolPermissionDenied: "tool_permission_denied";
258
250
  readonly ToolHarnessWarning: "tool_harness_warning";
259
251
  readonly ToolProgress: "tool_progress";
260
252
  readonly NestedLlmUsage: "nested_llm_usage";
@@ -577,13 +569,6 @@ type ChatEvent = {
577
569
  type: "tool_approval_granted";
578
570
  toolName: string;
579
571
  callId: string;
580
- } | {
581
- type: "tool_permission_denied";
582
- toolName: string;
583
- callId: string;
584
- reason?: string | null;
585
- /** Known values: "hook" | "rule" | "user" | "timeout" | "circuit_breaker". */
586
- deniedBy?: string | null;
587
572
  } | {
588
573
  type: "tool_harness_warning";
589
574
  toolName: string;
@@ -670,17 +655,15 @@ interface Message {
670
655
  id: string;
671
656
  conversationId: string;
672
657
  /**
673
- * `"tool"` is the role every tool-result row carries, and it was missing
674
- * here — which is why those rows could not be typed at all.
658
+ * `"tool"` is the role every tool-result row carries.
675
659
  *
676
- * `"system"` is retained but DEAD: `MessageResponse.role` is
677
- * `Literal["user", "assistant", "tool"]`, and the server skips system rows
678
- * before responding, so it cannot occur. Narrowing the union would be a
679
- * source-breaking change for anyone matching on it, so it is grouped with
680
- * the other breaking cleanups for one deliberate major rather than
681
- * dribbling a major out of an otherwise additive change.
660
+ * `"system"` was here and could not occur: `MessageResponse.role` is
661
+ * `Literal["user", "assistant", "tool"]` and the server skips system rows
662
+ * before responding. Narrowing the union is source-breaking for anyone
663
+ * matching on it, which is why it waited for this major rather than
664
+ * dribbling one out of an otherwise additive change.
682
665
  */
683
- role: "user" | "assistant" | "tool" | "system";
666
+ role: "user" | "assistant" | "tool";
684
667
  content: string;
685
668
  parentId?: string;
686
669
  status: "sending" | "streaming" | "complete" | "error";
@@ -2590,4 +2573,4 @@ declare function isEmbeddedResource(value: unknown): value is {
2590
2573
  */
2591
2574
  declare function parseEmbeddedResource(value: unknown): EmbeddedResource | null;
2592
2575
 
2593
- 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 AvailableRepositories, type AvailableRepository, type BlockDeltaPayload, CONVERSATION_PAGE_SIZE, type ChatEvent, ChatEventType, type ChatEventTypeValue, ChatSession, type ChatStorage, type ChatStreamEvent, type ChatStreamRequest, type CodeProject, ConnectionError, type ContextUpdatePayload, type ContextWarningPayload, type Conversation, type ConversationAsset, type ConversationEvent, type DesktopStreamPayload, type EffortRung, type EmbeddedResource, type FeedbackRequest, type FeedbackResponse, InMemoryStorage, type JobCreateResponse, type JobStatus, type JobSummary, LLMNotConfiguredError, type MemoryProviderErrorPayload, type MemoryRecallPayload, type MemoryRecord, type MemoryUpdatePayload, type Message, type ModelChoiceOptions, type ModelOption, type MyToolGrantsPage, type NestedLlmUsagePayload, type NoteUpdatePayload, type PlanUpdatePayload, type PromptSuggestionPayload, type ProtocolAdapter, ProtocolRegistry, RateLimitError, type RateLimitErrorDetails, type RawSseEvent, type ReasoningEffort, type SendOptions, ServerError, type SkillInfo, type SlashCommand, type SlashCommandSurface, StreamAbortedError, type StreamJobSSEOptions, StreamManager, type StreamManagerEvent, type StreamState, type SubagentStartPayload, type SubagentStopPayload, type TaskStatus, type TeamAgentSummary, type TeamSummary, type ThinkingDescriptor, type ThinkingRungOption, 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 ToolOutputMode, type ToolOutputStub, type ToolPermissionDeniedPayload, type ToolProgressPayload, ToolRegistry, type ToolResult, type ToolResultRequest, type ToolSource, type TurnUsage, type UIComponentsConfig, type UserUnavailablePayload, VOICE_POLISH_MODES, type VoiceConfig, type VoiceLLMMode, type VoicePolishEvent, type VoicePolishMode, type VoicePolishRequest, type VoiceTranscribeOptions, type VoiceTranscript, 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, isToolOutputStub, isVoiceLLMMode, isVoicePolishMode, mapSseToChat, parseEmbeddedResource, parseVoicePolishFrame, replayEvents, streamJobSSE, translateDelta };
2576
+ 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 AvailableRepositories, type AvailableRepository, type BlockDeltaPayload, CONVERSATION_PAGE_SIZE, type ChatEvent, ChatEventType, type ChatEventTypeValue, ChatSession, type ChatStorage, type ChatStreamEvent, type ChatStreamRequest, type CodeProject, ConnectionError, type ContextUpdatePayload, type ContextWarningPayload, type Conversation, type ConversationAsset, type ConversationEvent, type DesktopStreamPayload, type EffortRung, type EmbeddedResource, type FeedbackRequest, type FeedbackResponse, InMemoryStorage, type JobCreateResponse, type JobStatus, type JobSummary, LLMNotConfiguredError, type MemoryProviderErrorPayload, type MemoryRecallPayload, type MemoryRecord, type MemoryUpdatePayload, type Message, type ModelChoiceOptions, type ModelOption, type MyToolGrantsPage, type NestedLlmUsagePayload, type NoteUpdatePayload, type PlanUpdatePayload, type PromptSuggestionPayload, type ProtocolAdapter, ProtocolRegistry, RateLimitError, type RateLimitErrorDetails, type RawSseEvent, type ReasoningEffort, type SendOptions, ServerError, type SendOptions$1 as SessionSendOptions, type SkillInfo, type SlashCommand, type SlashCommandSurface, StreamAbortedError, type StreamJobSSEOptions, StreamManager, type StreamManagerEvent, type StreamState, type SubagentStartPayload, type SubagentStopPayload, type TaskStatus, type TeamAgentSummary, type TeamSummary, type ThinkingDescriptor, type ThinkingRungOption, 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 ToolOutputMode, type ToolOutputStub, type ToolProgressPayload, ToolRegistry, type ToolResult, type ToolResultRequest, type ToolSource, type TurnUsage, type UIComponentsConfig, type UserUnavailablePayload, VOICE_POLISH_MODES, type VoiceConfig, type VoiceLLMMode, type VoicePolishEvent, type VoicePolishMode, type VoicePolishRequest, type VoiceTranscribeOptions, type VoiceTranscript, 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, isToolOutputStub, isVoiceLLMMode, isVoicePolishMode, mapSseToChat, parseEmbeddedResource, parseVoicePolishFrame, replayEvents, streamJobSSE, translateDelta };
package/dist/index.d.ts CHANGED
@@ -113,13 +113,6 @@ interface ToolApprovalGrantedPayload {
113
113
  toolName: string;
114
114
  callId: string;
115
115
  }
116
- interface ToolPermissionDeniedPayload {
117
- toolName: string;
118
- callId: string;
119
- reason?: string | null;
120
- /** Known values: "hook" | "rule" | "user" | "timeout" | "circuit_breaker". */
121
- deniedBy?: string | null;
122
- }
123
116
  interface ToolHarnessWarningPayload {
124
117
  toolName: string;
125
118
  callId: string;
@@ -254,7 +247,6 @@ declare const ChatEventType: {
254
247
  readonly AssetCreated: "asset_created";
255
248
  readonly ToolApprovalRequested: "tool_approval_requested";
256
249
  readonly ToolApprovalGranted: "tool_approval_granted";
257
- readonly ToolPermissionDenied: "tool_permission_denied";
258
250
  readonly ToolHarnessWarning: "tool_harness_warning";
259
251
  readonly ToolProgress: "tool_progress";
260
252
  readonly NestedLlmUsage: "nested_llm_usage";
@@ -577,13 +569,6 @@ type ChatEvent = {
577
569
  type: "tool_approval_granted";
578
570
  toolName: string;
579
571
  callId: string;
580
- } | {
581
- type: "tool_permission_denied";
582
- toolName: string;
583
- callId: string;
584
- reason?: string | null;
585
- /** Known values: "hook" | "rule" | "user" | "timeout" | "circuit_breaker". */
586
- deniedBy?: string | null;
587
572
  } | {
588
573
  type: "tool_harness_warning";
589
574
  toolName: string;
@@ -670,17 +655,15 @@ interface Message {
670
655
  id: string;
671
656
  conversationId: string;
672
657
  /**
673
- * `"tool"` is the role every tool-result row carries, and it was missing
674
- * here — which is why those rows could not be typed at all.
658
+ * `"tool"` is the role every tool-result row carries.
675
659
  *
676
- * `"system"` is retained but DEAD: `MessageResponse.role` is
677
- * `Literal["user", "assistant", "tool"]`, and the server skips system rows
678
- * before responding, so it cannot occur. Narrowing the union would be a
679
- * source-breaking change for anyone matching on it, so it is grouped with
680
- * the other breaking cleanups for one deliberate major rather than
681
- * dribbling a major out of an otherwise additive change.
660
+ * `"system"` was here and could not occur: `MessageResponse.role` is
661
+ * `Literal["user", "assistant", "tool"]` and the server skips system rows
662
+ * before responding. Narrowing the union is source-breaking for anyone
663
+ * matching on it, which is why it waited for this major rather than
664
+ * dribbling one out of an otherwise additive change.
682
665
  */
683
- role: "user" | "assistant" | "tool" | "system";
666
+ role: "user" | "assistant" | "tool";
684
667
  content: string;
685
668
  parentId?: string;
686
669
  status: "sending" | "streaming" | "complete" | "error";
@@ -2590,4 +2573,4 @@ declare function isEmbeddedResource(value: unknown): value is {
2590
2573
  */
2591
2574
  declare function parseEmbeddedResource(value: unknown): EmbeddedResource | null;
2592
2575
 
2593
- 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 AvailableRepositories, type AvailableRepository, type BlockDeltaPayload, CONVERSATION_PAGE_SIZE, type ChatEvent, ChatEventType, type ChatEventTypeValue, ChatSession, type ChatStorage, type ChatStreamEvent, type ChatStreamRequest, type CodeProject, ConnectionError, type ContextUpdatePayload, type ContextWarningPayload, type Conversation, type ConversationAsset, type ConversationEvent, type DesktopStreamPayload, type EffortRung, type EmbeddedResource, type FeedbackRequest, type FeedbackResponse, InMemoryStorage, type JobCreateResponse, type JobStatus, type JobSummary, LLMNotConfiguredError, type MemoryProviderErrorPayload, type MemoryRecallPayload, type MemoryRecord, type MemoryUpdatePayload, type Message, type ModelChoiceOptions, type ModelOption, type MyToolGrantsPage, type NestedLlmUsagePayload, type NoteUpdatePayload, type PlanUpdatePayload, type PromptSuggestionPayload, type ProtocolAdapter, ProtocolRegistry, RateLimitError, type RateLimitErrorDetails, type RawSseEvent, type ReasoningEffort, type SendOptions, ServerError, type SkillInfo, type SlashCommand, type SlashCommandSurface, StreamAbortedError, type StreamJobSSEOptions, StreamManager, type StreamManagerEvent, type StreamState, type SubagentStartPayload, type SubagentStopPayload, type TaskStatus, type TeamAgentSummary, type TeamSummary, type ThinkingDescriptor, type ThinkingRungOption, 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 ToolOutputMode, type ToolOutputStub, type ToolPermissionDeniedPayload, type ToolProgressPayload, ToolRegistry, type ToolResult, type ToolResultRequest, type ToolSource, type TurnUsage, type UIComponentsConfig, type UserUnavailablePayload, VOICE_POLISH_MODES, type VoiceConfig, type VoiceLLMMode, type VoicePolishEvent, type VoicePolishMode, type VoicePolishRequest, type VoiceTranscribeOptions, type VoiceTranscript, 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, isToolOutputStub, isVoiceLLMMode, isVoicePolishMode, mapSseToChat, parseEmbeddedResource, parseVoicePolishFrame, replayEvents, streamJobSSE, translateDelta };
2576
+ 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 AvailableRepositories, type AvailableRepository, type BlockDeltaPayload, CONVERSATION_PAGE_SIZE, type ChatEvent, ChatEventType, type ChatEventTypeValue, ChatSession, type ChatStorage, type ChatStreamEvent, type ChatStreamRequest, type CodeProject, ConnectionError, type ContextUpdatePayload, type ContextWarningPayload, type Conversation, type ConversationAsset, type ConversationEvent, type DesktopStreamPayload, type EffortRung, type EmbeddedResource, type FeedbackRequest, type FeedbackResponse, InMemoryStorage, type JobCreateResponse, type JobStatus, type JobSummary, LLMNotConfiguredError, type MemoryProviderErrorPayload, type MemoryRecallPayload, type MemoryRecord, type MemoryUpdatePayload, type Message, type ModelChoiceOptions, type ModelOption, type MyToolGrantsPage, type NestedLlmUsagePayload, type NoteUpdatePayload, type PlanUpdatePayload, type PromptSuggestionPayload, type ProtocolAdapter, ProtocolRegistry, RateLimitError, type RateLimitErrorDetails, type RawSseEvent, type ReasoningEffort, type SendOptions, ServerError, type SendOptions$1 as SessionSendOptions, type SkillInfo, type SlashCommand, type SlashCommandSurface, StreamAbortedError, type StreamJobSSEOptions, StreamManager, type StreamManagerEvent, type StreamState, type SubagentStartPayload, type SubagentStopPayload, type TaskStatus, type TeamAgentSummary, type TeamSummary, type ThinkingDescriptor, type ThinkingRungOption, 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 ToolOutputMode, type ToolOutputStub, type ToolProgressPayload, ToolRegistry, type ToolResult, type ToolResultRequest, type ToolSource, type TurnUsage, type UIComponentsConfig, type UserUnavailablePayload, VOICE_POLISH_MODES, type VoiceConfig, type VoiceLLMMode, type VoicePolishEvent, type VoicePolishMode, type VoicePolishRequest, type VoiceTranscribeOptions, type VoiceTranscript, 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, isToolOutputStub, isVoiceLLMMode, isVoicePolishMode, mapSseToChat, parseEmbeddedResource, parseVoicePolishFrame, replayEvents, streamJobSSE, translateDelta };
package/dist/index.js CHANGED
@@ -298,7 +298,6 @@ var ChatEventType = {
298
298
  AssetCreated: "asset_created",
299
299
  ToolApprovalRequested: "tool_approval_requested",
300
300
  ToolApprovalGranted: "tool_approval_granted",
301
- ToolPermissionDenied: "tool_permission_denied",
302
301
  ToolHarnessWarning: "tool_harness_warning",
303
302
  ToolProgress: "tool_progress",
304
303
  NestedLlmUsage: "nested_llm_usage",
@@ -1526,14 +1525,6 @@ function translateCustomEvent(name, data) {
1526
1525
  toolName: data.tool_name ?? "",
1527
1526
  callId: data.call_id ?? ""
1528
1527
  };
1529
- case "tool_permission_denied":
1530
- return {
1531
- type: "tool_permission_denied",
1532
- toolName: data.tool_name ?? "",
1533
- callId: data.call_id ?? "",
1534
- reason: data.reason ?? null,
1535
- deniedBy: data.denied_by ?? null
1536
- };
1537
1528
  case "tool_harness_warning":
1538
1529
  return {
1539
1530
  type: "tool_harness_warning",