@seawork/server 1.0.18 → 1.0.19-rc.1
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/server/client/daemon-client.d.ts +26 -0
- package/dist/server/client/daemon-client.d.ts.map +1 -1
- package/dist/server/client/daemon-client.js +3 -0
- package/dist/server/client/daemon-client.js.map +1 -1
- package/dist/server/server/agent/agent-manager.d.ts +28 -0
- package/dist/server/server/agent/agent-manager.d.ts.map +1 -1
- package/dist/server/server/agent/agent-manager.js +48 -1
- package/dist/server/server/agent/agent-manager.js.map +1 -1
- package/dist/server/server/agent/agent-metadata-generator.d.ts.map +1 -1
- package/dist/server/server/agent/agent-metadata-generator.js +2 -1
- package/dist/server/server/agent/agent-metadata-generator.js.map +1 -1
- package/dist/server/server/agent/agent-sdk-types.d.ts +1 -0
- package/dist/server/server/agent/agent-sdk-types.d.ts.map +1 -1
- package/dist/server/server/agent/providers/claude-agent.d.ts.map +1 -1
- package/dist/server/server/agent/providers/claude-agent.js +3 -0
- package/dist/server/server/agent/providers/claude-agent.js.map +1 -1
- package/dist/server/server/agent/providers/codex-app-server-agent.d.ts +1 -0
- package/dist/server/server/agent/providers/codex-app-server-agent.d.ts.map +1 -1
- package/dist/server/server/agent/providers/codex-app-server-agent.js +14 -2
- package/dist/server/server/agent/providers/codex-app-server-agent.js.map +1 -1
- package/dist/server/server/bug-report-handler.d.ts +4 -0
- package/dist/server/server/bug-report-handler.d.ts.map +1 -1
- package/dist/server/server/bug-report-handler.js +4 -1
- package/dist/server/server/bug-report-handler.js.map +1 -1
- package/dist/server/server/bug-report-redact.d.ts +30 -0
- package/dist/server/server/bug-report-redact.d.ts.map +1 -1
- package/dist/server/server/bug-report-redact.js +52 -1
- package/dist/server/server/bug-report-redact.js.map +1 -1
- package/dist/server/server/session.d.ts +4 -0
- package/dist/server/server/session.d.ts.map +1 -1
- package/dist/server/server/session.js +73 -3
- package/dist/server/server/session.js.map +1 -1
- package/dist/server/shared/messages.d.ts +600 -0
- package/dist/server/shared/messages.d.ts.map +1 -1
- package/dist/server/shared/messages.js +35 -0
- package/dist/server/shared/messages.js.map +1 -1
- package/package.json +3 -3
|
@@ -945,6 +945,78 @@ export declare const SubmitBugReportRequestMessageSchema: z.ZodObject<{
|
|
|
945
945
|
stderrTail: string;
|
|
946
946
|
spawnError?: string | undefined;
|
|
947
947
|
}>, "many">>;
|
|
948
|
+
agentRuntimeStats: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
949
|
+
agentId: z.ZodString;
|
|
950
|
+
provider: z.ZodString;
|
|
951
|
+
lifecycle: z.ZodOptional<z.ZodString>;
|
|
952
|
+
activeForegroundTurnId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
953
|
+
activeForegroundTurnStartedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
954
|
+
lastUserMessageAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
955
|
+
lastNotificationAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
956
|
+
msSinceLastNotification: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
957
|
+
pendingPermissions: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
958
|
+
}, "strip", z.ZodTypeAny, {
|
|
959
|
+
provider: string;
|
|
960
|
+
agentId: string;
|
|
961
|
+
lastUserMessageAt?: number | null | undefined;
|
|
962
|
+
pendingPermissions?: unknown[] | undefined;
|
|
963
|
+
lifecycle?: string | undefined;
|
|
964
|
+
activeForegroundTurnId?: string | null | undefined;
|
|
965
|
+
activeForegroundTurnStartedAt?: number | null | undefined;
|
|
966
|
+
lastNotificationAt?: number | null | undefined;
|
|
967
|
+
msSinceLastNotification?: number | null | undefined;
|
|
968
|
+
}, {
|
|
969
|
+
provider: string;
|
|
970
|
+
agentId: string;
|
|
971
|
+
lastUserMessageAt?: number | null | undefined;
|
|
972
|
+
pendingPermissions?: unknown[] | undefined;
|
|
973
|
+
lifecycle?: string | undefined;
|
|
974
|
+
activeForegroundTurnId?: string | null | undefined;
|
|
975
|
+
activeForegroundTurnStartedAt?: number | null | undefined;
|
|
976
|
+
lastNotificationAt?: number | null | undefined;
|
|
977
|
+
msSinceLastNotification?: number | null | undefined;
|
|
978
|
+
}>, "many">>;
|
|
979
|
+
agentStderrTails: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
980
|
+
agentId: z.ZodString;
|
|
981
|
+
provider: z.ZodString;
|
|
982
|
+
stderrTail: z.ZodString;
|
|
983
|
+
}, "strip", z.ZodTypeAny, {
|
|
984
|
+
provider: string;
|
|
985
|
+
agentId: string;
|
|
986
|
+
stderrTail: string;
|
|
987
|
+
}, {
|
|
988
|
+
provider: string;
|
|
989
|
+
agentId: string;
|
|
990
|
+
stderrTail: string;
|
|
991
|
+
}>, "many">>;
|
|
992
|
+
wsMessageRing: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
993
|
+
ts: z.ZodNumber;
|
|
994
|
+
direction: z.ZodEnum<["in", "out"]>;
|
|
995
|
+
type: z.ZodString;
|
|
996
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
997
|
+
agentId: z.ZodOptional<z.ZodString>;
|
|
998
|
+
messageId: z.ZodOptional<z.ZodString>;
|
|
999
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
1000
|
+
preview: z.ZodOptional<z.ZodUnknown>;
|
|
1001
|
+
}, "strip", z.ZodTypeAny, {
|
|
1002
|
+
type: string;
|
|
1003
|
+
direction: "in" | "out";
|
|
1004
|
+
ts: number;
|
|
1005
|
+
requestId?: string | undefined;
|
|
1006
|
+
agentId?: string | undefined;
|
|
1007
|
+
messageId?: string | undefined;
|
|
1008
|
+
durationMs?: number | undefined;
|
|
1009
|
+
preview?: unknown;
|
|
1010
|
+
}, {
|
|
1011
|
+
type: string;
|
|
1012
|
+
direction: "in" | "out";
|
|
1013
|
+
ts: number;
|
|
1014
|
+
requestId?: string | undefined;
|
|
1015
|
+
agentId?: string | undefined;
|
|
1016
|
+
messageId?: string | undefined;
|
|
1017
|
+
durationMs?: number | undefined;
|
|
1018
|
+
preview?: unknown;
|
|
1019
|
+
}>, "many">>;
|
|
948
1020
|
}, "strip", z.ZodTypeAny, {
|
|
949
1021
|
type: "submit_bug_report_request";
|
|
950
1022
|
requestId: string;
|
|
@@ -973,6 +1045,32 @@ export declare const SubmitBugReportRequestMessageSchema: z.ZodObject<{
|
|
|
973
1045
|
stderrTail: string;
|
|
974
1046
|
spawnError?: string | undefined;
|
|
975
1047
|
}[] | undefined;
|
|
1048
|
+
agentRuntimeStats?: {
|
|
1049
|
+
provider: string;
|
|
1050
|
+
agentId: string;
|
|
1051
|
+
lastUserMessageAt?: number | null | undefined;
|
|
1052
|
+
pendingPermissions?: unknown[] | undefined;
|
|
1053
|
+
lifecycle?: string | undefined;
|
|
1054
|
+
activeForegroundTurnId?: string | null | undefined;
|
|
1055
|
+
activeForegroundTurnStartedAt?: number | null | undefined;
|
|
1056
|
+
lastNotificationAt?: number | null | undefined;
|
|
1057
|
+
msSinceLastNotification?: number | null | undefined;
|
|
1058
|
+
}[] | undefined;
|
|
1059
|
+
agentStderrTails?: {
|
|
1060
|
+
provider: string;
|
|
1061
|
+
agentId: string;
|
|
1062
|
+
stderrTail: string;
|
|
1063
|
+
}[] | undefined;
|
|
1064
|
+
wsMessageRing?: {
|
|
1065
|
+
type: string;
|
|
1066
|
+
direction: "in" | "out";
|
|
1067
|
+
ts: number;
|
|
1068
|
+
requestId?: string | undefined;
|
|
1069
|
+
agentId?: string | undefined;
|
|
1070
|
+
messageId?: string | undefined;
|
|
1071
|
+
durationMs?: number | undefined;
|
|
1072
|
+
preview?: unknown;
|
|
1073
|
+
}[] | undefined;
|
|
976
1074
|
}, {
|
|
977
1075
|
type: "submit_bug_report_request";
|
|
978
1076
|
requestId: string;
|
|
@@ -1001,6 +1099,32 @@ export declare const SubmitBugReportRequestMessageSchema: z.ZodObject<{
|
|
|
1001
1099
|
stderrTail: string;
|
|
1002
1100
|
spawnError?: string | undefined;
|
|
1003
1101
|
}[] | undefined;
|
|
1102
|
+
agentRuntimeStats?: {
|
|
1103
|
+
provider: string;
|
|
1104
|
+
agentId: string;
|
|
1105
|
+
lastUserMessageAt?: number | null | undefined;
|
|
1106
|
+
pendingPermissions?: unknown[] | undefined;
|
|
1107
|
+
lifecycle?: string | undefined;
|
|
1108
|
+
activeForegroundTurnId?: string | null | undefined;
|
|
1109
|
+
activeForegroundTurnStartedAt?: number | null | undefined;
|
|
1110
|
+
lastNotificationAt?: number | null | undefined;
|
|
1111
|
+
msSinceLastNotification?: number | null | undefined;
|
|
1112
|
+
}[] | undefined;
|
|
1113
|
+
agentStderrTails?: {
|
|
1114
|
+
provider: string;
|
|
1115
|
+
agentId: string;
|
|
1116
|
+
stderrTail: string;
|
|
1117
|
+
}[] | undefined;
|
|
1118
|
+
wsMessageRing?: {
|
|
1119
|
+
type: string;
|
|
1120
|
+
direction: "in" | "out";
|
|
1121
|
+
ts: number;
|
|
1122
|
+
requestId?: string | undefined;
|
|
1123
|
+
agentId?: string | undefined;
|
|
1124
|
+
messageId?: string | undefined;
|
|
1125
|
+
durationMs?: number | undefined;
|
|
1126
|
+
preview?: unknown;
|
|
1127
|
+
}[] | undefined;
|
|
1004
1128
|
}>;
|
|
1005
1129
|
export declare const SubmitBugReportResponseMessageSchema: z.ZodObject<{
|
|
1006
1130
|
type: z.ZodLiteral<"submit_bug_report_response">;
|
|
@@ -6945,6 +7069,78 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<"type"
|
|
|
6945
7069
|
stderrTail: string;
|
|
6946
7070
|
spawnError?: string | undefined;
|
|
6947
7071
|
}>, "many">>;
|
|
7072
|
+
agentRuntimeStats: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
7073
|
+
agentId: z.ZodString;
|
|
7074
|
+
provider: z.ZodString;
|
|
7075
|
+
lifecycle: z.ZodOptional<z.ZodString>;
|
|
7076
|
+
activeForegroundTurnId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7077
|
+
activeForegroundTurnStartedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
7078
|
+
lastUserMessageAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
7079
|
+
lastNotificationAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
7080
|
+
msSinceLastNotification: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
7081
|
+
pendingPermissions: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
7082
|
+
}, "strip", z.ZodTypeAny, {
|
|
7083
|
+
provider: string;
|
|
7084
|
+
agentId: string;
|
|
7085
|
+
lastUserMessageAt?: number | null | undefined;
|
|
7086
|
+
pendingPermissions?: unknown[] | undefined;
|
|
7087
|
+
lifecycle?: string | undefined;
|
|
7088
|
+
activeForegroundTurnId?: string | null | undefined;
|
|
7089
|
+
activeForegroundTurnStartedAt?: number | null | undefined;
|
|
7090
|
+
lastNotificationAt?: number | null | undefined;
|
|
7091
|
+
msSinceLastNotification?: number | null | undefined;
|
|
7092
|
+
}, {
|
|
7093
|
+
provider: string;
|
|
7094
|
+
agentId: string;
|
|
7095
|
+
lastUserMessageAt?: number | null | undefined;
|
|
7096
|
+
pendingPermissions?: unknown[] | undefined;
|
|
7097
|
+
lifecycle?: string | undefined;
|
|
7098
|
+
activeForegroundTurnId?: string | null | undefined;
|
|
7099
|
+
activeForegroundTurnStartedAt?: number | null | undefined;
|
|
7100
|
+
lastNotificationAt?: number | null | undefined;
|
|
7101
|
+
msSinceLastNotification?: number | null | undefined;
|
|
7102
|
+
}>, "many">>;
|
|
7103
|
+
agentStderrTails: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
7104
|
+
agentId: z.ZodString;
|
|
7105
|
+
provider: z.ZodString;
|
|
7106
|
+
stderrTail: z.ZodString;
|
|
7107
|
+
}, "strip", z.ZodTypeAny, {
|
|
7108
|
+
provider: string;
|
|
7109
|
+
agentId: string;
|
|
7110
|
+
stderrTail: string;
|
|
7111
|
+
}, {
|
|
7112
|
+
provider: string;
|
|
7113
|
+
agentId: string;
|
|
7114
|
+
stderrTail: string;
|
|
7115
|
+
}>, "many">>;
|
|
7116
|
+
wsMessageRing: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
7117
|
+
ts: z.ZodNumber;
|
|
7118
|
+
direction: z.ZodEnum<["in", "out"]>;
|
|
7119
|
+
type: z.ZodString;
|
|
7120
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
7121
|
+
agentId: z.ZodOptional<z.ZodString>;
|
|
7122
|
+
messageId: z.ZodOptional<z.ZodString>;
|
|
7123
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
7124
|
+
preview: z.ZodOptional<z.ZodUnknown>;
|
|
7125
|
+
}, "strip", z.ZodTypeAny, {
|
|
7126
|
+
type: string;
|
|
7127
|
+
direction: "in" | "out";
|
|
7128
|
+
ts: number;
|
|
7129
|
+
requestId?: string | undefined;
|
|
7130
|
+
agentId?: string | undefined;
|
|
7131
|
+
messageId?: string | undefined;
|
|
7132
|
+
durationMs?: number | undefined;
|
|
7133
|
+
preview?: unknown;
|
|
7134
|
+
}, {
|
|
7135
|
+
type: string;
|
|
7136
|
+
direction: "in" | "out";
|
|
7137
|
+
ts: number;
|
|
7138
|
+
requestId?: string | undefined;
|
|
7139
|
+
agentId?: string | undefined;
|
|
7140
|
+
messageId?: string | undefined;
|
|
7141
|
+
durationMs?: number | undefined;
|
|
7142
|
+
preview?: unknown;
|
|
7143
|
+
}>, "many">>;
|
|
6948
7144
|
}, "strip", z.ZodTypeAny, {
|
|
6949
7145
|
type: "submit_bug_report_request";
|
|
6950
7146
|
requestId: string;
|
|
@@ -6973,6 +7169,32 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<"type"
|
|
|
6973
7169
|
stderrTail: string;
|
|
6974
7170
|
spawnError?: string | undefined;
|
|
6975
7171
|
}[] | undefined;
|
|
7172
|
+
agentRuntimeStats?: {
|
|
7173
|
+
provider: string;
|
|
7174
|
+
agentId: string;
|
|
7175
|
+
lastUserMessageAt?: number | null | undefined;
|
|
7176
|
+
pendingPermissions?: unknown[] | undefined;
|
|
7177
|
+
lifecycle?: string | undefined;
|
|
7178
|
+
activeForegroundTurnId?: string | null | undefined;
|
|
7179
|
+
activeForegroundTurnStartedAt?: number | null | undefined;
|
|
7180
|
+
lastNotificationAt?: number | null | undefined;
|
|
7181
|
+
msSinceLastNotification?: number | null | undefined;
|
|
7182
|
+
}[] | undefined;
|
|
7183
|
+
agentStderrTails?: {
|
|
7184
|
+
provider: string;
|
|
7185
|
+
agentId: string;
|
|
7186
|
+
stderrTail: string;
|
|
7187
|
+
}[] | undefined;
|
|
7188
|
+
wsMessageRing?: {
|
|
7189
|
+
type: string;
|
|
7190
|
+
direction: "in" | "out";
|
|
7191
|
+
ts: number;
|
|
7192
|
+
requestId?: string | undefined;
|
|
7193
|
+
agentId?: string | undefined;
|
|
7194
|
+
messageId?: string | undefined;
|
|
7195
|
+
durationMs?: number | undefined;
|
|
7196
|
+
preview?: unknown;
|
|
7197
|
+
}[] | undefined;
|
|
6976
7198
|
}, {
|
|
6977
7199
|
type: "submit_bug_report_request";
|
|
6978
7200
|
requestId: string;
|
|
@@ -7001,6 +7223,32 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<"type"
|
|
|
7001
7223
|
stderrTail: string;
|
|
7002
7224
|
spawnError?: string | undefined;
|
|
7003
7225
|
}[] | undefined;
|
|
7226
|
+
agentRuntimeStats?: {
|
|
7227
|
+
provider: string;
|
|
7228
|
+
agentId: string;
|
|
7229
|
+
lastUserMessageAt?: number | null | undefined;
|
|
7230
|
+
pendingPermissions?: unknown[] | undefined;
|
|
7231
|
+
lifecycle?: string | undefined;
|
|
7232
|
+
activeForegroundTurnId?: string | null | undefined;
|
|
7233
|
+
activeForegroundTurnStartedAt?: number | null | undefined;
|
|
7234
|
+
lastNotificationAt?: number | null | undefined;
|
|
7235
|
+
msSinceLastNotification?: number | null | undefined;
|
|
7236
|
+
}[] | undefined;
|
|
7237
|
+
agentStderrTails?: {
|
|
7238
|
+
provider: string;
|
|
7239
|
+
agentId: string;
|
|
7240
|
+
stderrTail: string;
|
|
7241
|
+
}[] | undefined;
|
|
7242
|
+
wsMessageRing?: {
|
|
7243
|
+
type: string;
|
|
7244
|
+
direction: "in" | "out";
|
|
7245
|
+
ts: number;
|
|
7246
|
+
requestId?: string | undefined;
|
|
7247
|
+
agentId?: string | undefined;
|
|
7248
|
+
messageId?: string | undefined;
|
|
7249
|
+
durationMs?: number | undefined;
|
|
7250
|
+
preview?: unknown;
|
|
7251
|
+
}[] | undefined;
|
|
7004
7252
|
}>, z.ZodObject<{
|
|
7005
7253
|
type: z.ZodLiteral<"list_my_issues_request">;
|
|
7006
7254
|
requestId: z.ZodString;
|
|
@@ -44373,6 +44621,78 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
|
|
|
44373
44621
|
stderrTail: string;
|
|
44374
44622
|
spawnError?: string | undefined;
|
|
44375
44623
|
}>, "many">>;
|
|
44624
|
+
agentRuntimeStats: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
44625
|
+
agentId: z.ZodString;
|
|
44626
|
+
provider: z.ZodString;
|
|
44627
|
+
lifecycle: z.ZodOptional<z.ZodString>;
|
|
44628
|
+
activeForegroundTurnId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
44629
|
+
activeForegroundTurnStartedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
44630
|
+
lastUserMessageAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
44631
|
+
lastNotificationAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
44632
|
+
msSinceLastNotification: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
44633
|
+
pendingPermissions: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
44634
|
+
}, "strip", z.ZodTypeAny, {
|
|
44635
|
+
provider: string;
|
|
44636
|
+
agentId: string;
|
|
44637
|
+
lastUserMessageAt?: number | null | undefined;
|
|
44638
|
+
pendingPermissions?: unknown[] | undefined;
|
|
44639
|
+
lifecycle?: string | undefined;
|
|
44640
|
+
activeForegroundTurnId?: string | null | undefined;
|
|
44641
|
+
activeForegroundTurnStartedAt?: number | null | undefined;
|
|
44642
|
+
lastNotificationAt?: number | null | undefined;
|
|
44643
|
+
msSinceLastNotification?: number | null | undefined;
|
|
44644
|
+
}, {
|
|
44645
|
+
provider: string;
|
|
44646
|
+
agentId: string;
|
|
44647
|
+
lastUserMessageAt?: number | null | undefined;
|
|
44648
|
+
pendingPermissions?: unknown[] | undefined;
|
|
44649
|
+
lifecycle?: string | undefined;
|
|
44650
|
+
activeForegroundTurnId?: string | null | undefined;
|
|
44651
|
+
activeForegroundTurnStartedAt?: number | null | undefined;
|
|
44652
|
+
lastNotificationAt?: number | null | undefined;
|
|
44653
|
+
msSinceLastNotification?: number | null | undefined;
|
|
44654
|
+
}>, "many">>;
|
|
44655
|
+
agentStderrTails: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
44656
|
+
agentId: z.ZodString;
|
|
44657
|
+
provider: z.ZodString;
|
|
44658
|
+
stderrTail: z.ZodString;
|
|
44659
|
+
}, "strip", z.ZodTypeAny, {
|
|
44660
|
+
provider: string;
|
|
44661
|
+
agentId: string;
|
|
44662
|
+
stderrTail: string;
|
|
44663
|
+
}, {
|
|
44664
|
+
provider: string;
|
|
44665
|
+
agentId: string;
|
|
44666
|
+
stderrTail: string;
|
|
44667
|
+
}>, "many">>;
|
|
44668
|
+
wsMessageRing: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
44669
|
+
ts: z.ZodNumber;
|
|
44670
|
+
direction: z.ZodEnum<["in", "out"]>;
|
|
44671
|
+
type: z.ZodString;
|
|
44672
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
44673
|
+
agentId: z.ZodOptional<z.ZodString>;
|
|
44674
|
+
messageId: z.ZodOptional<z.ZodString>;
|
|
44675
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
44676
|
+
preview: z.ZodOptional<z.ZodUnknown>;
|
|
44677
|
+
}, "strip", z.ZodTypeAny, {
|
|
44678
|
+
type: string;
|
|
44679
|
+
direction: "in" | "out";
|
|
44680
|
+
ts: number;
|
|
44681
|
+
requestId?: string | undefined;
|
|
44682
|
+
agentId?: string | undefined;
|
|
44683
|
+
messageId?: string | undefined;
|
|
44684
|
+
durationMs?: number | undefined;
|
|
44685
|
+
preview?: unknown;
|
|
44686
|
+
}, {
|
|
44687
|
+
type: string;
|
|
44688
|
+
direction: "in" | "out";
|
|
44689
|
+
ts: number;
|
|
44690
|
+
requestId?: string | undefined;
|
|
44691
|
+
agentId?: string | undefined;
|
|
44692
|
+
messageId?: string | undefined;
|
|
44693
|
+
durationMs?: number | undefined;
|
|
44694
|
+
preview?: unknown;
|
|
44695
|
+
}>, "many">>;
|
|
44376
44696
|
}, "strip", z.ZodTypeAny, {
|
|
44377
44697
|
type: "submit_bug_report_request";
|
|
44378
44698
|
requestId: string;
|
|
@@ -44401,6 +44721,32 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
|
|
|
44401
44721
|
stderrTail: string;
|
|
44402
44722
|
spawnError?: string | undefined;
|
|
44403
44723
|
}[] | undefined;
|
|
44724
|
+
agentRuntimeStats?: {
|
|
44725
|
+
provider: string;
|
|
44726
|
+
agentId: string;
|
|
44727
|
+
lastUserMessageAt?: number | null | undefined;
|
|
44728
|
+
pendingPermissions?: unknown[] | undefined;
|
|
44729
|
+
lifecycle?: string | undefined;
|
|
44730
|
+
activeForegroundTurnId?: string | null | undefined;
|
|
44731
|
+
activeForegroundTurnStartedAt?: number | null | undefined;
|
|
44732
|
+
lastNotificationAt?: number | null | undefined;
|
|
44733
|
+
msSinceLastNotification?: number | null | undefined;
|
|
44734
|
+
}[] | undefined;
|
|
44735
|
+
agentStderrTails?: {
|
|
44736
|
+
provider: string;
|
|
44737
|
+
agentId: string;
|
|
44738
|
+
stderrTail: string;
|
|
44739
|
+
}[] | undefined;
|
|
44740
|
+
wsMessageRing?: {
|
|
44741
|
+
type: string;
|
|
44742
|
+
direction: "in" | "out";
|
|
44743
|
+
ts: number;
|
|
44744
|
+
requestId?: string | undefined;
|
|
44745
|
+
agentId?: string | undefined;
|
|
44746
|
+
messageId?: string | undefined;
|
|
44747
|
+
durationMs?: number | undefined;
|
|
44748
|
+
preview?: unknown;
|
|
44749
|
+
}[] | undefined;
|
|
44404
44750
|
}, {
|
|
44405
44751
|
type: "submit_bug_report_request";
|
|
44406
44752
|
requestId: string;
|
|
@@ -44429,6 +44775,32 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
|
|
|
44429
44775
|
stderrTail: string;
|
|
44430
44776
|
spawnError?: string | undefined;
|
|
44431
44777
|
}[] | undefined;
|
|
44778
|
+
agentRuntimeStats?: {
|
|
44779
|
+
provider: string;
|
|
44780
|
+
agentId: string;
|
|
44781
|
+
lastUserMessageAt?: number | null | undefined;
|
|
44782
|
+
pendingPermissions?: unknown[] | undefined;
|
|
44783
|
+
lifecycle?: string | undefined;
|
|
44784
|
+
activeForegroundTurnId?: string | null | undefined;
|
|
44785
|
+
activeForegroundTurnStartedAt?: number | null | undefined;
|
|
44786
|
+
lastNotificationAt?: number | null | undefined;
|
|
44787
|
+
msSinceLastNotification?: number | null | undefined;
|
|
44788
|
+
}[] | undefined;
|
|
44789
|
+
agentStderrTails?: {
|
|
44790
|
+
provider: string;
|
|
44791
|
+
agentId: string;
|
|
44792
|
+
stderrTail: string;
|
|
44793
|
+
}[] | undefined;
|
|
44794
|
+
wsMessageRing?: {
|
|
44795
|
+
type: string;
|
|
44796
|
+
direction: "in" | "out";
|
|
44797
|
+
ts: number;
|
|
44798
|
+
requestId?: string | undefined;
|
|
44799
|
+
agentId?: string | undefined;
|
|
44800
|
+
messageId?: string | undefined;
|
|
44801
|
+
durationMs?: number | undefined;
|
|
44802
|
+
preview?: unknown;
|
|
44803
|
+
}[] | undefined;
|
|
44432
44804
|
}>, z.ZodObject<{
|
|
44433
44805
|
type: z.ZodLiteral<"list_my_issues_request">;
|
|
44434
44806
|
requestId: z.ZodString;
|
|
@@ -45278,6 +45650,32 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
|
|
|
45278
45650
|
stderrTail: string;
|
|
45279
45651
|
spawnError?: string | undefined;
|
|
45280
45652
|
}[] | undefined;
|
|
45653
|
+
agentRuntimeStats?: {
|
|
45654
|
+
provider: string;
|
|
45655
|
+
agentId: string;
|
|
45656
|
+
lastUserMessageAt?: number | null | undefined;
|
|
45657
|
+
pendingPermissions?: unknown[] | undefined;
|
|
45658
|
+
lifecycle?: string | undefined;
|
|
45659
|
+
activeForegroundTurnId?: string | null | undefined;
|
|
45660
|
+
activeForegroundTurnStartedAt?: number | null | undefined;
|
|
45661
|
+
lastNotificationAt?: number | null | undefined;
|
|
45662
|
+
msSinceLastNotification?: number | null | undefined;
|
|
45663
|
+
}[] | undefined;
|
|
45664
|
+
agentStderrTails?: {
|
|
45665
|
+
provider: string;
|
|
45666
|
+
agentId: string;
|
|
45667
|
+
stderrTail: string;
|
|
45668
|
+
}[] | undefined;
|
|
45669
|
+
wsMessageRing?: {
|
|
45670
|
+
type: string;
|
|
45671
|
+
direction: "in" | "out";
|
|
45672
|
+
ts: number;
|
|
45673
|
+
requestId?: string | undefined;
|
|
45674
|
+
agentId?: string | undefined;
|
|
45675
|
+
messageId?: string | undefined;
|
|
45676
|
+
durationMs?: number | undefined;
|
|
45677
|
+
preview?: unknown;
|
|
45678
|
+
}[] | undefined;
|
|
45281
45679
|
} | {
|
|
45282
45680
|
type: "list_my_issues_request";
|
|
45283
45681
|
requestId: string;
|
|
@@ -46050,6 +46448,32 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
|
|
|
46050
46448
|
stderrTail: string;
|
|
46051
46449
|
spawnError?: string | undefined;
|
|
46052
46450
|
}[] | undefined;
|
|
46451
|
+
agentRuntimeStats?: {
|
|
46452
|
+
provider: string;
|
|
46453
|
+
agentId: string;
|
|
46454
|
+
lastUserMessageAt?: number | null | undefined;
|
|
46455
|
+
pendingPermissions?: unknown[] | undefined;
|
|
46456
|
+
lifecycle?: string | undefined;
|
|
46457
|
+
activeForegroundTurnId?: string | null | undefined;
|
|
46458
|
+
activeForegroundTurnStartedAt?: number | null | undefined;
|
|
46459
|
+
lastNotificationAt?: number | null | undefined;
|
|
46460
|
+
msSinceLastNotification?: number | null | undefined;
|
|
46461
|
+
}[] | undefined;
|
|
46462
|
+
agentStderrTails?: {
|
|
46463
|
+
provider: string;
|
|
46464
|
+
agentId: string;
|
|
46465
|
+
stderrTail: string;
|
|
46466
|
+
}[] | undefined;
|
|
46467
|
+
wsMessageRing?: {
|
|
46468
|
+
type: string;
|
|
46469
|
+
direction: "in" | "out";
|
|
46470
|
+
ts: number;
|
|
46471
|
+
requestId?: string | undefined;
|
|
46472
|
+
agentId?: string | undefined;
|
|
46473
|
+
messageId?: string | undefined;
|
|
46474
|
+
durationMs?: number | undefined;
|
|
46475
|
+
preview?: unknown;
|
|
46476
|
+
}[] | undefined;
|
|
46053
46477
|
} | {
|
|
46054
46478
|
type: "list_my_issues_request";
|
|
46055
46479
|
requestId: string;
|
|
@@ -71376,6 +71800,78 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
71376
71800
|
stderrTail: string;
|
|
71377
71801
|
spawnError?: string | undefined;
|
|
71378
71802
|
}>, "many">>;
|
|
71803
|
+
agentRuntimeStats: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
71804
|
+
agentId: z.ZodString;
|
|
71805
|
+
provider: z.ZodString;
|
|
71806
|
+
lifecycle: z.ZodOptional<z.ZodString>;
|
|
71807
|
+
activeForegroundTurnId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
71808
|
+
activeForegroundTurnStartedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
71809
|
+
lastUserMessageAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
71810
|
+
lastNotificationAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
71811
|
+
msSinceLastNotification: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
71812
|
+
pendingPermissions: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
71813
|
+
}, "strip", z.ZodTypeAny, {
|
|
71814
|
+
provider: string;
|
|
71815
|
+
agentId: string;
|
|
71816
|
+
lastUserMessageAt?: number | null | undefined;
|
|
71817
|
+
pendingPermissions?: unknown[] | undefined;
|
|
71818
|
+
lifecycle?: string | undefined;
|
|
71819
|
+
activeForegroundTurnId?: string | null | undefined;
|
|
71820
|
+
activeForegroundTurnStartedAt?: number | null | undefined;
|
|
71821
|
+
lastNotificationAt?: number | null | undefined;
|
|
71822
|
+
msSinceLastNotification?: number | null | undefined;
|
|
71823
|
+
}, {
|
|
71824
|
+
provider: string;
|
|
71825
|
+
agentId: string;
|
|
71826
|
+
lastUserMessageAt?: number | null | undefined;
|
|
71827
|
+
pendingPermissions?: unknown[] | undefined;
|
|
71828
|
+
lifecycle?: string | undefined;
|
|
71829
|
+
activeForegroundTurnId?: string | null | undefined;
|
|
71830
|
+
activeForegroundTurnStartedAt?: number | null | undefined;
|
|
71831
|
+
lastNotificationAt?: number | null | undefined;
|
|
71832
|
+
msSinceLastNotification?: number | null | undefined;
|
|
71833
|
+
}>, "many">>;
|
|
71834
|
+
agentStderrTails: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
71835
|
+
agentId: z.ZodString;
|
|
71836
|
+
provider: z.ZodString;
|
|
71837
|
+
stderrTail: z.ZodString;
|
|
71838
|
+
}, "strip", z.ZodTypeAny, {
|
|
71839
|
+
provider: string;
|
|
71840
|
+
agentId: string;
|
|
71841
|
+
stderrTail: string;
|
|
71842
|
+
}, {
|
|
71843
|
+
provider: string;
|
|
71844
|
+
agentId: string;
|
|
71845
|
+
stderrTail: string;
|
|
71846
|
+
}>, "many">>;
|
|
71847
|
+
wsMessageRing: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
71848
|
+
ts: z.ZodNumber;
|
|
71849
|
+
direction: z.ZodEnum<["in", "out"]>;
|
|
71850
|
+
type: z.ZodString;
|
|
71851
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
71852
|
+
agentId: z.ZodOptional<z.ZodString>;
|
|
71853
|
+
messageId: z.ZodOptional<z.ZodString>;
|
|
71854
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
71855
|
+
preview: z.ZodOptional<z.ZodUnknown>;
|
|
71856
|
+
}, "strip", z.ZodTypeAny, {
|
|
71857
|
+
type: string;
|
|
71858
|
+
direction: "in" | "out";
|
|
71859
|
+
ts: number;
|
|
71860
|
+
requestId?: string | undefined;
|
|
71861
|
+
agentId?: string | undefined;
|
|
71862
|
+
messageId?: string | undefined;
|
|
71863
|
+
durationMs?: number | undefined;
|
|
71864
|
+
preview?: unknown;
|
|
71865
|
+
}, {
|
|
71866
|
+
type: string;
|
|
71867
|
+
direction: "in" | "out";
|
|
71868
|
+
ts: number;
|
|
71869
|
+
requestId?: string | undefined;
|
|
71870
|
+
agentId?: string | undefined;
|
|
71871
|
+
messageId?: string | undefined;
|
|
71872
|
+
durationMs?: number | undefined;
|
|
71873
|
+
preview?: unknown;
|
|
71874
|
+
}>, "many">>;
|
|
71379
71875
|
}, "strip", z.ZodTypeAny, {
|
|
71380
71876
|
type: "submit_bug_report_request";
|
|
71381
71877
|
requestId: string;
|
|
@@ -71404,6 +71900,32 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
71404
71900
|
stderrTail: string;
|
|
71405
71901
|
spawnError?: string | undefined;
|
|
71406
71902
|
}[] | undefined;
|
|
71903
|
+
agentRuntimeStats?: {
|
|
71904
|
+
provider: string;
|
|
71905
|
+
agentId: string;
|
|
71906
|
+
lastUserMessageAt?: number | null | undefined;
|
|
71907
|
+
pendingPermissions?: unknown[] | undefined;
|
|
71908
|
+
lifecycle?: string | undefined;
|
|
71909
|
+
activeForegroundTurnId?: string | null | undefined;
|
|
71910
|
+
activeForegroundTurnStartedAt?: number | null | undefined;
|
|
71911
|
+
lastNotificationAt?: number | null | undefined;
|
|
71912
|
+
msSinceLastNotification?: number | null | undefined;
|
|
71913
|
+
}[] | undefined;
|
|
71914
|
+
agentStderrTails?: {
|
|
71915
|
+
provider: string;
|
|
71916
|
+
agentId: string;
|
|
71917
|
+
stderrTail: string;
|
|
71918
|
+
}[] | undefined;
|
|
71919
|
+
wsMessageRing?: {
|
|
71920
|
+
type: string;
|
|
71921
|
+
direction: "in" | "out";
|
|
71922
|
+
ts: number;
|
|
71923
|
+
requestId?: string | undefined;
|
|
71924
|
+
agentId?: string | undefined;
|
|
71925
|
+
messageId?: string | undefined;
|
|
71926
|
+
durationMs?: number | undefined;
|
|
71927
|
+
preview?: unknown;
|
|
71928
|
+
}[] | undefined;
|
|
71407
71929
|
}, {
|
|
71408
71930
|
type: "submit_bug_report_request";
|
|
71409
71931
|
requestId: string;
|
|
@@ -71432,6 +71954,32 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
71432
71954
|
stderrTail: string;
|
|
71433
71955
|
spawnError?: string | undefined;
|
|
71434
71956
|
}[] | undefined;
|
|
71957
|
+
agentRuntimeStats?: {
|
|
71958
|
+
provider: string;
|
|
71959
|
+
agentId: string;
|
|
71960
|
+
lastUserMessageAt?: number | null | undefined;
|
|
71961
|
+
pendingPermissions?: unknown[] | undefined;
|
|
71962
|
+
lifecycle?: string | undefined;
|
|
71963
|
+
activeForegroundTurnId?: string | null | undefined;
|
|
71964
|
+
activeForegroundTurnStartedAt?: number | null | undefined;
|
|
71965
|
+
lastNotificationAt?: number | null | undefined;
|
|
71966
|
+
msSinceLastNotification?: number | null | undefined;
|
|
71967
|
+
}[] | undefined;
|
|
71968
|
+
agentStderrTails?: {
|
|
71969
|
+
provider: string;
|
|
71970
|
+
agentId: string;
|
|
71971
|
+
stderrTail: string;
|
|
71972
|
+
}[] | undefined;
|
|
71973
|
+
wsMessageRing?: {
|
|
71974
|
+
type: string;
|
|
71975
|
+
direction: "in" | "out";
|
|
71976
|
+
ts: number;
|
|
71977
|
+
requestId?: string | undefined;
|
|
71978
|
+
agentId?: string | undefined;
|
|
71979
|
+
messageId?: string | undefined;
|
|
71980
|
+
durationMs?: number | undefined;
|
|
71981
|
+
preview?: unknown;
|
|
71982
|
+
}[] | undefined;
|
|
71435
71983
|
}>, z.ZodObject<{
|
|
71436
71984
|
type: z.ZodLiteral<"list_my_issues_request">;
|
|
71437
71985
|
requestId: z.ZodString;
|
|
@@ -72281,6 +72829,32 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
72281
72829
|
stderrTail: string;
|
|
72282
72830
|
spawnError?: string | undefined;
|
|
72283
72831
|
}[] | undefined;
|
|
72832
|
+
agentRuntimeStats?: {
|
|
72833
|
+
provider: string;
|
|
72834
|
+
agentId: string;
|
|
72835
|
+
lastUserMessageAt?: number | null | undefined;
|
|
72836
|
+
pendingPermissions?: unknown[] | undefined;
|
|
72837
|
+
lifecycle?: string | undefined;
|
|
72838
|
+
activeForegroundTurnId?: string | null | undefined;
|
|
72839
|
+
activeForegroundTurnStartedAt?: number | null | undefined;
|
|
72840
|
+
lastNotificationAt?: number | null | undefined;
|
|
72841
|
+
msSinceLastNotification?: number | null | undefined;
|
|
72842
|
+
}[] | undefined;
|
|
72843
|
+
agentStderrTails?: {
|
|
72844
|
+
provider: string;
|
|
72845
|
+
agentId: string;
|
|
72846
|
+
stderrTail: string;
|
|
72847
|
+
}[] | undefined;
|
|
72848
|
+
wsMessageRing?: {
|
|
72849
|
+
type: string;
|
|
72850
|
+
direction: "in" | "out";
|
|
72851
|
+
ts: number;
|
|
72852
|
+
requestId?: string | undefined;
|
|
72853
|
+
agentId?: string | undefined;
|
|
72854
|
+
messageId?: string | undefined;
|
|
72855
|
+
durationMs?: number | undefined;
|
|
72856
|
+
preview?: unknown;
|
|
72857
|
+
}[] | undefined;
|
|
72284
72858
|
} | {
|
|
72285
72859
|
type: "list_my_issues_request";
|
|
72286
72860
|
requestId: string;
|
|
@@ -73053,6 +73627,32 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
73053
73627
|
stderrTail: string;
|
|
73054
73628
|
spawnError?: string | undefined;
|
|
73055
73629
|
}[] | undefined;
|
|
73630
|
+
agentRuntimeStats?: {
|
|
73631
|
+
provider: string;
|
|
73632
|
+
agentId: string;
|
|
73633
|
+
lastUserMessageAt?: number | null | undefined;
|
|
73634
|
+
pendingPermissions?: unknown[] | undefined;
|
|
73635
|
+
lifecycle?: string | undefined;
|
|
73636
|
+
activeForegroundTurnId?: string | null | undefined;
|
|
73637
|
+
activeForegroundTurnStartedAt?: number | null | undefined;
|
|
73638
|
+
lastNotificationAt?: number | null | undefined;
|
|
73639
|
+
msSinceLastNotification?: number | null | undefined;
|
|
73640
|
+
}[] | undefined;
|
|
73641
|
+
agentStderrTails?: {
|
|
73642
|
+
provider: string;
|
|
73643
|
+
agentId: string;
|
|
73644
|
+
stderrTail: string;
|
|
73645
|
+
}[] | undefined;
|
|
73646
|
+
wsMessageRing?: {
|
|
73647
|
+
type: string;
|
|
73648
|
+
direction: "in" | "out";
|
|
73649
|
+
ts: number;
|
|
73650
|
+
requestId?: string | undefined;
|
|
73651
|
+
agentId?: string | undefined;
|
|
73652
|
+
messageId?: string | undefined;
|
|
73653
|
+
durationMs?: number | undefined;
|
|
73654
|
+
preview?: unknown;
|
|
73655
|
+
}[] | undefined;
|
|
73056
73656
|
} | {
|
|
73057
73657
|
type: "list_my_issues_request";
|
|
73058
73658
|
requestId: string;
|