@saturn-universe/core 0.1.2-dev.4 → 0.1.2-dev.6
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/contracts.d.ts +17 -3
- package/dist/team.d.ts +4 -0
- package/package.json +1 -1
package/dist/contracts.d.ts
CHANGED
|
@@ -427,13 +427,18 @@ export interface TeamMemberState {
|
|
|
427
427
|
readonly parent: string | null;
|
|
428
428
|
readonly agentSessionId: AgentSessionId;
|
|
429
429
|
readonly turnId?: TurnId;
|
|
430
|
-
readonly status:
|
|
430
|
+
readonly status: TeamMemberStatus;
|
|
431
|
+
readonly stopRequest?: {
|
|
432
|
+
readonly requestedBy: 'main';
|
|
433
|
+
readonly reason: string;
|
|
434
|
+
};
|
|
431
435
|
}
|
|
436
|
+
export type TeamMemberStatus = 'waiting' | 'stopped' | TurnStatus;
|
|
432
437
|
export interface TeamTaskState {
|
|
433
438
|
readonly memberId: string;
|
|
434
439
|
readonly task: string;
|
|
435
440
|
readonly turnId?: TurnId;
|
|
436
|
-
readonly status:
|
|
441
|
+
readonly status: TeamMemberStatus;
|
|
437
442
|
readonly resultMessageId?: MessageId;
|
|
438
443
|
}
|
|
439
444
|
export interface TeamInboxMessage {
|
|
@@ -641,7 +646,7 @@ export declare const terminalRunEventTypes: readonly ("run.completed" | "run.fai
|
|
|
641
646
|
export type TerminalRunEventType = (typeof terminalRunEventTypes)[number];
|
|
642
647
|
export declare function isTerminalRunEventType(value: unknown): value is TerminalRunEventType;
|
|
643
648
|
export type RunTransition = 'run.started' | 'run.paused' | 'run.resumed' | 'run.cancel_requested' | TerminalRunEventType;
|
|
644
|
-
export type RunEventType = 'run.created' | 'run.agent.attached' | 'run.team.planned' | 'run.team.message.sent' | 'run.team.message.read' | 'run.search.started' | 'run.search.branch.created' | 'run.search.branch.evaluated' | 'run.search.converged' | 'run.plugin.availability' | RunTransition;
|
|
649
|
+
export type RunEventType = 'run.created' | 'run.agent.attached' | 'run.team.planned' | 'run.team.member.stop_requested' | 'run.team.message.sent' | 'run.team.message.read' | 'run.search.started' | 'run.search.branch.created' | 'run.search.branch.evaluated' | 'run.search.converged' | 'run.plugin.availability' | RunTransition;
|
|
645
650
|
export type ScopeFor<K> = K extends WorkspaceEventType ? WorkspaceScope : K extends SessionEventType ? SessionScope : K extends RunEventType ? RunScope : K extends 'agent_session.created' | 'agent_session.archived' | 'surface.compacted' ? AgentSessionEventScope : AgentExecutionScope;
|
|
646
651
|
export interface EventMetadata {
|
|
647
652
|
readonly actor: {
|
|
@@ -720,6 +725,13 @@ export interface EventDataMap {
|
|
|
720
725
|
readonly verificationCriteria?: readonly string[];
|
|
721
726
|
readonly team?: TeamConfig;
|
|
722
727
|
};
|
|
728
|
+
'run.team.member.stop_requested': {
|
|
729
|
+
readonly memberId: string;
|
|
730
|
+
readonly turnId: TurnId;
|
|
731
|
+
readonly requesterAgentSessionId: AgentSessionId;
|
|
732
|
+
readonly requestedBy: 'main';
|
|
733
|
+
readonly reason: string;
|
|
734
|
+
};
|
|
723
735
|
'run.team.message.sent': {
|
|
724
736
|
readonly messageId: string;
|
|
725
737
|
readonly from: string;
|
|
@@ -829,6 +841,7 @@ export interface EventDataMap {
|
|
|
829
841
|
};
|
|
830
842
|
'turn.interrupted': {
|
|
831
843
|
readonly turnId: TurnId;
|
|
844
|
+
readonly stoppedByMain?: true;
|
|
832
845
|
readonly reason: 'cancelled' | 'timeout' | 'limit';
|
|
833
846
|
readonly usage: Usage;
|
|
834
847
|
readonly unresolvedCallIds: readonly ToolCallId[];
|
|
@@ -851,6 +864,7 @@ export interface EventDataMap {
|
|
|
851
864
|
'message.user.added': {
|
|
852
865
|
readonly message: UserMessage;
|
|
853
866
|
readonly steering?: true;
|
|
867
|
+
readonly steeringSource?: 'main';
|
|
854
868
|
};
|
|
855
869
|
'message.assistant.added': {
|
|
856
870
|
readonly message: AssistantMessage;
|
package/dist/team.d.ts
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import type { PlannerConfig, RunConfig, TeamConfig, TeamHintConfig } from './contracts.js';
|
|
2
|
+
export interface TeamMemberActionResult {
|
|
3
|
+
readonly status: 'accepted' | 'ended' | 'inactive' | 'invalid_target' | 'forbidden';
|
|
4
|
+
readonly message: string;
|
|
5
|
+
}
|
|
2
6
|
export declare const teamRootId = "main";
|
|
3
7
|
export declare const plannerMemberId = "planner";
|
|
4
8
|
export declare const defaultTeamConcurrency = 4;
|