@saturn-universe/core 0.1.2-dev.6 → 0.1.2-dev.7

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.
@@ -39,6 +39,7 @@ export interface Session {
39
39
  readonly title: string;
40
40
  readonly status: 'open' | 'archived';
41
41
  readonly createdAt: ISODateTime;
42
+ readonly modeRef?: string;
42
43
  }
43
44
  export type AgentSessionScope = 'run' | 'session' | 'project';
44
45
  export type AgentSessionOwner = {
@@ -641,7 +642,7 @@ export interface StreamRef {
641
642
  readonly id: string;
642
643
  }
643
644
  export type WorkspaceEventType = 'workspace.created' | 'workspace.archived' | 'agent.created';
644
- export type SessionEventType = 'session.created' | 'session.archived' | 'session.agent.bound';
645
+ export type SessionEventType = 'session.created' | 'session.archived' | 'session.agent.bound' | 'session.mode.selected';
645
646
  export declare const terminalRunEventTypes: readonly ("run.completed" | "run.failed" | "run.cancelled")[];
646
647
  export type TerminalRunEventType = (typeof terminalRunEventTypes)[number];
647
648
  export declare function isTerminalRunEventType(value: unknown): value is TerminalRunEventType;
@@ -699,6 +700,9 @@ export interface EventDataMap {
699
700
  'session.archived': {
700
701
  readonly reason: string;
701
702
  };
703
+ 'session.mode.selected': {
704
+ readonly modeRef: string;
705
+ };
702
706
  'agent_session.created': {
703
707
  readonly agentSession: AgentSession;
704
708
  };
@@ -1171,6 +1175,7 @@ export interface PersistedResponsesHistoryPlan {
1171
1175
  readonly initialSystemPrompt?: string;
1172
1176
  readonly initialBackground?: readonly BackgroundHistoryMessage[];
1173
1177
  readonly prunedToolResults?: boolean;
1178
+ readonly projectedToolHistory?: true;
1174
1179
  readonly fullInputDigest: string;
1175
1180
  readonly configurationDigest: string;
1176
1181
  readonly backgroundDigest?: string;
@@ -1213,6 +1218,8 @@ export interface HistorySelection {
1213
1218
  }
1214
1219
  export interface HistoryBuildInput {
1215
1220
  readonly surface: SessionSurface;
1221
+ readonly modeRef?: string;
1222
+ readonly historicalRunModes?: Readonly<Record<string, string>>;
1216
1223
  readonly model: ModelRef;
1217
1224
  readonly binding: ProviderBinding;
1218
1225
  readonly capabilities: ModelCapabilities;
@@ -1836,6 +1843,7 @@ export interface ContextStateSnapshot {
1836
1843
  readonly surface: SessionSurface;
1837
1844
  readonly runState: RunState;
1838
1845
  readonly activeRequest?: PersistedModelRequest;
1846
+ readonly historicalRunModes?: Readonly<Record<string, string>>;
1839
1847
  readonly teamReports?: readonly {
1840
1848
  readonly from: string;
1841
1849
  readonly text: string;
@@ -2123,6 +2131,10 @@ export type HostSubmitInput = Omit<SubmitTask, 'commandId' | 'config' | 'planner
2123
2131
  export type HostCommand = Exclude<RuntimeCommand, {
2124
2132
  readonly type: 'run.submit' | 'tool.approval.resolve';
2125
2133
  }> | {
2134
+ readonly type: 'session.mode.select';
2135
+ readonly sessionId: SessionId;
2136
+ readonly modeRef: string;
2137
+ } | {
2126
2138
  readonly type: 'run.steer';
2127
2139
  readonly runId: RunId;
2128
2140
  readonly content: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saturn-universe/core",
3
- "version": "0.1.2-dev.6",
3
+ "version": "0.1.2-dev.7",
4
4
  "license": "AGPL-3.0-only",
5
5
  "type": "module",
6
6
  "files": [