@xenosystem/agent-sdk 0.9.22 → 0.9.24
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/README.md +12 -5
- package/dist/artifacts/index.cjs +1 -1
- package/dist/artifacts/index.js +1 -1
- package/dist/automation/index.cjs +16 -3
- package/dist/automation/index.d.cts +339 -1
- package/dist/automation/index.d.ts +339 -1
- package/dist/automation/index.js +16 -3
- package/dist/automation/metafile-cjs.json +1 -1
- package/dist/automation/metafile-esm.json +1 -1
- package/dist/control-plane/index.cjs +1 -1
- package/dist/control-plane/index.js +1 -1
- package/dist/control-room/index.d.cts +1 -1
- package/dist/control-room/index.d.ts +1 -1
- package/dist/control-room/metafile-cjs.json +1 -1
- package/dist/control-room/metafile-esm.json +1 -1
- package/dist/coordination/index.cjs +2 -0
- package/dist/coordination/index.d.cts +395 -0
- package/dist/coordination/index.d.ts +395 -0
- package/dist/coordination/index.js +2 -0
- package/dist/coordination/metafile-cjs.json +1 -0
- package/dist/coordination/metafile-esm.json +1 -0
- package/dist/electron/index.cjs +59 -59
- package/dist/electron/index.d.cts +6 -1
- package/dist/electron/index.d.ts +6 -1
- package/dist/electron/index.js +60 -60
- package/dist/electron/metafile-cjs.json +1 -1
- package/dist/electron/metafile-esm.json +1 -1
- package/dist/hosted/metafile-cjs.json +1 -1
- package/dist/hosted/metafile-esm.json +1 -1
- package/dist/index.cjs +356 -354
- package/dist/index.d.cts +1897 -1350
- package/dist/index.d.ts +1897 -1350
- package/dist/index.js +355 -353
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/session/index.cjs +24 -24
- package/dist/session/index.d.cts +7 -1
- package/dist/session/index.d.ts +7 -1
- package/dist/session/index.js +24 -24
- package/dist/session/metafile-cjs.json +1 -1
- package/dist/session/metafile-esm.json +1 -1
- package/package.json +6 -1
|
@@ -441,6 +441,7 @@ interface ContextCompressedData {
|
|
|
441
441
|
messagesRemoved: number;
|
|
442
442
|
tokensSaved: number;
|
|
443
443
|
compaction?: CompactionRecord;
|
|
444
|
+
activeContextMessages?: Message[];
|
|
444
445
|
}
|
|
445
446
|
interface SessionEndData {
|
|
446
447
|
reason: "user_exit" | "error" | "completed";
|
|
@@ -1164,11 +1165,12 @@ interface SessionResumeOptions {
|
|
|
1164
1165
|
}
|
|
1165
1166
|
type SessionRecoverySource = "transcript" | "checkpoint" | "empty";
|
|
1166
1167
|
interface SessionRecoveryIssue {
|
|
1167
|
-
code: "torn_transcript_tail" | "invalid_transcript_event" | "non_monotonic_sequence" | "interrupted_tool_call" | "checkpoint_fallback" | "divergent_checkpoint" | "stale_metadata";
|
|
1168
|
+
code: "torn_transcript_tail" | "invalid_transcript_event" | "non_monotonic_sequence" | "interrupted_tool_call" | "checkpoint_fallback" | "divergent_checkpoint" | "stale_metadata" | "invalid_compaction_snapshot";
|
|
1168
1169
|
detail: string;
|
|
1169
1170
|
}
|
|
1170
1171
|
interface SessionRecoveryResult {
|
|
1171
1172
|
messages: Message[];
|
|
1173
|
+
transcriptMessages: Message[];
|
|
1172
1174
|
source: SessionRecoverySource;
|
|
1173
1175
|
sourceId?: string;
|
|
1174
1176
|
issues: SessionRecoveryIssue[];
|
|
@@ -1183,6 +1185,7 @@ declare class SessionManager {
|
|
|
1183
1185
|
private _checkpoints;
|
|
1184
1186
|
private _lock;
|
|
1185
1187
|
private _recovery;
|
|
1188
|
+
private _detachedForHandoff;
|
|
1186
1189
|
private constructor();
|
|
1187
1190
|
static create(options: SessionCreateOptions): Promise<SessionManager>;
|
|
1188
1191
|
static resume(options: SessionResumeOptions): Promise<SessionManager>;
|
|
@@ -1190,6 +1193,8 @@ declare class SessionManager {
|
|
|
1190
1193
|
get transcript(): TranscriptWriter;
|
|
1191
1194
|
get checkpoints(): CheckpointManager;
|
|
1192
1195
|
get recovery(): SessionRecoveryResult;
|
|
1196
|
+
detachForHandoff(): Promise<void>;
|
|
1197
|
+
get detachedForHandoff(): boolean;
|
|
1193
1198
|
updateMeta(partial: Partial<SessionMeta>): Promise<void>;
|
|
1194
1199
|
end(status?: "completed" | "abandoned"): Promise<void>;
|
|
1195
1200
|
recordUserMessage(content: string): Promise<void>;
|
package/dist/electron/index.d.ts
CHANGED
|
@@ -441,6 +441,7 @@ interface ContextCompressedData {
|
|
|
441
441
|
messagesRemoved: number;
|
|
442
442
|
tokensSaved: number;
|
|
443
443
|
compaction?: CompactionRecord;
|
|
444
|
+
activeContextMessages?: Message[];
|
|
444
445
|
}
|
|
445
446
|
interface SessionEndData {
|
|
446
447
|
reason: "user_exit" | "error" | "completed";
|
|
@@ -1164,11 +1165,12 @@ interface SessionResumeOptions {
|
|
|
1164
1165
|
}
|
|
1165
1166
|
type SessionRecoverySource = "transcript" | "checkpoint" | "empty";
|
|
1166
1167
|
interface SessionRecoveryIssue {
|
|
1167
|
-
code: "torn_transcript_tail" | "invalid_transcript_event" | "non_monotonic_sequence" | "interrupted_tool_call" | "checkpoint_fallback" | "divergent_checkpoint" | "stale_metadata";
|
|
1168
|
+
code: "torn_transcript_tail" | "invalid_transcript_event" | "non_monotonic_sequence" | "interrupted_tool_call" | "checkpoint_fallback" | "divergent_checkpoint" | "stale_metadata" | "invalid_compaction_snapshot";
|
|
1168
1169
|
detail: string;
|
|
1169
1170
|
}
|
|
1170
1171
|
interface SessionRecoveryResult {
|
|
1171
1172
|
messages: Message[];
|
|
1173
|
+
transcriptMessages: Message[];
|
|
1172
1174
|
source: SessionRecoverySource;
|
|
1173
1175
|
sourceId?: string;
|
|
1174
1176
|
issues: SessionRecoveryIssue[];
|
|
@@ -1183,6 +1185,7 @@ declare class SessionManager {
|
|
|
1183
1185
|
private _checkpoints;
|
|
1184
1186
|
private _lock;
|
|
1185
1187
|
private _recovery;
|
|
1188
|
+
private _detachedForHandoff;
|
|
1186
1189
|
private constructor();
|
|
1187
1190
|
static create(options: SessionCreateOptions): Promise<SessionManager>;
|
|
1188
1191
|
static resume(options: SessionResumeOptions): Promise<SessionManager>;
|
|
@@ -1190,6 +1193,8 @@ declare class SessionManager {
|
|
|
1190
1193
|
get transcript(): TranscriptWriter;
|
|
1191
1194
|
get checkpoints(): CheckpointManager;
|
|
1192
1195
|
get recovery(): SessionRecoveryResult;
|
|
1196
|
+
detachForHandoff(): Promise<void>;
|
|
1197
|
+
get detachedForHandoff(): boolean;
|
|
1193
1198
|
updateMeta(partial: Partial<SessionMeta>): Promise<void>;
|
|
1194
1199
|
end(status?: "completed" | "abandoned"): Promise<void>;
|
|
1195
1200
|
recordUserMessage(content: string): Promise<void>;
|