@agentrix/shared 1.0.13 → 2.0.2
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.cjs +207 -9
- package/dist/index.d.cts +2471 -864
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -115,12 +115,8 @@ const OAuthLoginQuerySchema = zod.z.object({
|
|
|
115
115
|
// Base64-encoded Ed25519 public key
|
|
116
116
|
challenge: zod.z.string(),
|
|
117
117
|
// Base64-encoded random challenge
|
|
118
|
-
signatureProof: zod.z.string()
|
|
118
|
+
signatureProof: zod.z.string()
|
|
119
119
|
// Base64-encoded Ed25519 signature
|
|
120
|
-
salt: zod.z.string().optional(),
|
|
121
|
-
// Salt for password encryption (base64) - optional, set after login
|
|
122
|
-
encryptedSecret: zod.z.string().optional()
|
|
123
|
-
// Encrypted secret (base64) - optional, set after login
|
|
124
120
|
});
|
|
125
121
|
const OAuthCallbackQuerySchema = zod.z.object({
|
|
126
122
|
code: zod.z.string(),
|
|
@@ -250,6 +246,7 @@ const StartTaskResponseSchema = zod.z.object({
|
|
|
250
246
|
repositoryId: zod.z.string().nullable(),
|
|
251
247
|
baseBranch: zod.z.string().nullable(),
|
|
252
248
|
title: zod.z.string().nullable(),
|
|
249
|
+
userCwd: zod.z.string().nullable(),
|
|
253
250
|
createdAt: DateSchema,
|
|
254
251
|
updatedAt: DateSchema
|
|
255
252
|
});
|
|
@@ -273,6 +270,8 @@ const TaskItemSchema = zod.z.object({
|
|
|
273
270
|
dataEncryptionKey: zod.z.string().nullable(),
|
|
274
271
|
cwd: zod.z.string().nullable(),
|
|
275
272
|
// Current working directory from CLI worker
|
|
273
|
+
userCwd: zod.z.string().nullable(),
|
|
274
|
+
// User-provided working directory for local mode
|
|
276
275
|
repositorySourceType: zod.z.enum(["temporary", "directory", "git-server"]).nullable(),
|
|
277
276
|
// Repository source type
|
|
278
277
|
pullRequestNumber: zod.z.number().nullable(),
|
|
@@ -534,6 +533,12 @@ const DisplayConfigSchema = zod.z.record(zod.z.string(), DisplayConfigKeysSchema
|
|
|
534
533
|
const AgentCustomConfigSchema = zod.z.object({
|
|
535
534
|
displayConfig: DisplayConfigSchema.optional()
|
|
536
535
|
});
|
|
536
|
+
const AgentPermissionsSchema = zod.z.object({
|
|
537
|
+
role: zod.z.string(),
|
|
538
|
+
// "all" | "low"
|
|
539
|
+
path: zod.z.string()
|
|
540
|
+
// URL/path pattern
|
|
541
|
+
});
|
|
537
542
|
const AgentSchema = zod.z.object({
|
|
538
543
|
id: IdSchema,
|
|
539
544
|
name: zod.z.string(),
|
|
@@ -549,7 +554,8 @@ const AgentSchema = zod.z.object({
|
|
|
549
554
|
gitRepoId: zod.z.string().nullable(),
|
|
550
555
|
supportLocal: zod.z.boolean(),
|
|
551
556
|
enable: zod.z.boolean(),
|
|
552
|
-
config: AgentCustomConfigSchema.nullable()
|
|
557
|
+
config: AgentCustomConfigSchema.nullable(),
|
|
558
|
+
permissions: AgentPermissionsSchema.nullable()
|
|
553
559
|
});
|
|
554
560
|
const ListAgentsResponseSchema = zod.z.object({
|
|
555
561
|
agents: zod.z.array(AgentSchema)
|
|
@@ -565,7 +571,7 @@ const CreateAgentRequestSchema = zod.z.object({
|
|
|
565
571
|
placeholderMsg: zod.z.string().default("Ask me anything..."),
|
|
566
572
|
gitRepoId: zod.z.string().optional(),
|
|
567
573
|
supportLocal: zod.z.boolean().default(false),
|
|
568
|
-
config: AgentCustomConfigSchema.optional()
|
|
574
|
+
config: AgentCustomConfigSchema.nullable().optional()
|
|
569
575
|
});
|
|
570
576
|
const CreateAgentResponseSchema = AgentSchema;
|
|
571
577
|
const UpdateAgentRequestSchema = zod.z.object({
|
|
@@ -585,6 +591,56 @@ const DeleteAgentResponseSchema = zod.z.object({
|
|
|
585
591
|
message: zod.z.string(),
|
|
586
592
|
agentId: IdSchema
|
|
587
593
|
});
|
|
594
|
+
const DeploymentVariableSchema = zod.z.object({
|
|
595
|
+
name: zod.z.string(),
|
|
596
|
+
type: zod.z.enum(["string", "number", "boolean", "secret"]),
|
|
597
|
+
description: zod.z.string().optional(),
|
|
598
|
+
required: zod.z.boolean().default(false),
|
|
599
|
+
defaultValue: zod.z.string().optional()
|
|
600
|
+
});
|
|
601
|
+
const AgentBuilderConfigSchema = zod.z.object({
|
|
602
|
+
// UI messages (moved from top-level Agent fields)
|
|
603
|
+
guildMsg: zod.z.string().default("what can I do for you today?"),
|
|
604
|
+
placeholderMsg: zod.z.string().default("Ask me anything..."),
|
|
605
|
+
// Deployment configuration (from CLI envVars)
|
|
606
|
+
deploymentSchema: zod.z.array(DeploymentVariableSchema).optional(),
|
|
607
|
+
// Display configuration (same as AgentCustomConfig)
|
|
608
|
+
displayConfig: DisplayConfigSchema.optional()
|
|
609
|
+
});
|
|
610
|
+
const CreateAgentBuilderRequestSchema = zod.z.object({
|
|
611
|
+
name: zod.z.string().min(1, "Name is required"),
|
|
612
|
+
agentDir: zod.z.string().min(1, "Agent directory is required"),
|
|
613
|
+
type: AgentTypeSchema.default("claude"),
|
|
614
|
+
avatar: zod.z.string().optional(),
|
|
615
|
+
description: zod.z.string().optional(),
|
|
616
|
+
userId: zod.z.string(),
|
|
617
|
+
taskId: zod.z.string(),
|
|
618
|
+
envVars: zod.z.array(DeploymentVariableSchema).optional()
|
|
619
|
+
// From CLI tool
|
|
620
|
+
});
|
|
621
|
+
const AgentBuilderSchema = zod.z.object({
|
|
622
|
+
id: IdSchema,
|
|
623
|
+
name: zod.z.string(),
|
|
624
|
+
displayName: zod.z.string(),
|
|
625
|
+
agentDir: zod.z.string(),
|
|
626
|
+
type: AgentTypeSchema,
|
|
627
|
+
avatar: zod.z.string().nullable(),
|
|
628
|
+
userId: zod.z.string(),
|
|
629
|
+
description: zod.z.string().nullable(),
|
|
630
|
+
enable: zod.z.boolean(),
|
|
631
|
+
config: AgentBuilderConfigSchema.nullable(),
|
|
632
|
+
permissions: AgentPermissionsSchema.nullable(),
|
|
633
|
+
publishedAgentId: zod.z.string().nullable(),
|
|
634
|
+
sourceTaskId: zod.z.string().nullable(),
|
|
635
|
+
createdAt: zod.z.string(),
|
|
636
|
+
updatedAt: zod.z.string()
|
|
637
|
+
});
|
|
638
|
+
const GetUserAgentsResponseSchema = zod.z.object({
|
|
639
|
+
agents: zod.z.array(AgentSchema),
|
|
640
|
+
// Published agents
|
|
641
|
+
builders: zod.z.array(AgentBuilderSchema)
|
|
642
|
+
// Draft agent-builders
|
|
643
|
+
});
|
|
588
644
|
|
|
589
645
|
const LocalMachineSchema = zod.z.object({
|
|
590
646
|
id: IdSchema,
|
|
@@ -943,6 +999,28 @@ const GitServerSchema = zod.z.object({
|
|
|
943
999
|
const ListGitServersResponseSchema = zod.z.array(GitServerSchema);
|
|
944
1000
|
const GetGitServerResponseSchema = GitServerSchema;
|
|
945
1001
|
|
|
1002
|
+
const RpcCallEventSchema = zod.z.object({
|
|
1003
|
+
eventId: zod.z.string(),
|
|
1004
|
+
taskId: zod.z.string(),
|
|
1005
|
+
method: zod.z.enum(["GET", "POST", "PATCH", "DELETE"]),
|
|
1006
|
+
path: zod.z.string(),
|
|
1007
|
+
// API path, e.g., "/v1/agent-builder"
|
|
1008
|
+
query: zod.z.record(zod.z.any()).optional(),
|
|
1009
|
+
// Query params for GET requests
|
|
1010
|
+
body: zod.z.any().optional()
|
|
1011
|
+
// Request body for POST/PATCH/DELETE
|
|
1012
|
+
});
|
|
1013
|
+
const RpcResponseSchema = zod.z.object({
|
|
1014
|
+
success: zod.z.boolean(),
|
|
1015
|
+
status: zod.z.number().optional(),
|
|
1016
|
+
// HTTP status code
|
|
1017
|
+
data: zod.z.any().optional(),
|
|
1018
|
+
error: zod.z.object({
|
|
1019
|
+
code: zod.z.string(),
|
|
1020
|
+
message: zod.z.string()
|
|
1021
|
+
}).optional()
|
|
1022
|
+
});
|
|
1023
|
+
|
|
946
1024
|
const AskUserOptionSchema = zod.z.object({
|
|
947
1025
|
label: zod.z.string(),
|
|
948
1026
|
// Option label (1-5 words)
|
|
@@ -1011,6 +1089,12 @@ const WorkerInitializingSchema = EventBaseSchema.extend({
|
|
|
1011
1089
|
timestamp: zod.z.string(),
|
|
1012
1090
|
cwd: zod.z.string().optional()
|
|
1013
1091
|
});
|
|
1092
|
+
const WorkerInitializedSchema = EventBaseSchema.extend({
|
|
1093
|
+
taskId: zod.z.string(),
|
|
1094
|
+
machineId: zod.z.string(),
|
|
1095
|
+
timestamp: zod.z.string(),
|
|
1096
|
+
cwd: zod.z.string().optional()
|
|
1097
|
+
});
|
|
1014
1098
|
const WorkerReadySchema = EventBaseSchema.extend({
|
|
1015
1099
|
taskId: zod.z.string(),
|
|
1016
1100
|
machineId: zod.z.string(),
|
|
@@ -1046,10 +1130,14 @@ const baseTaskSchema = EventBaseSchema.extend({
|
|
|
1046
1130
|
chatId: zod.z.string(),
|
|
1047
1131
|
agentId: zod.z.string(),
|
|
1048
1132
|
agentType: zod.z.string().optional().default("claude"),
|
|
1133
|
+
agentDir: zod.z.string().optional(),
|
|
1134
|
+
// Absolute path to agent directory (only for agent-builders)
|
|
1049
1135
|
gitUrl: zod.z.string().optional(),
|
|
1050
1136
|
baseBranch: zod.z.string().optional(),
|
|
1051
1137
|
cwd: zod.z.string().optional(),
|
|
1052
1138
|
// Current working directory for the task, only used under 'local' mode
|
|
1139
|
+
userCwd: zod.z.string().optional(),
|
|
1140
|
+
// User-provided working directory for local mode
|
|
1053
1141
|
dataEncryptionKey: zod.z.string().optional(),
|
|
1054
1142
|
// User's public key for encrypting sensitive data
|
|
1055
1143
|
model: zod.z.string().optional(),
|
|
@@ -1156,6 +1244,39 @@ const TaskStateChangeEventSchema = EventBaseSchema.extend({
|
|
|
1156
1244
|
updatedAt: zod.z.string()
|
|
1157
1245
|
});
|
|
1158
1246
|
const CreditExhaustedEventSchema = EventBaseSchema.extend({});
|
|
1247
|
+
const RtcIceServerSchema = zod.z.object({
|
|
1248
|
+
urls: zod.z.union([zod.z.string(), zod.z.array(zod.z.string())]),
|
|
1249
|
+
username: zod.z.string().optional(),
|
|
1250
|
+
credential: zod.z.string().optional()
|
|
1251
|
+
});
|
|
1252
|
+
const RtcIceServersRequestSchema = EventBaseSchema.extend({});
|
|
1253
|
+
const RtcIceServersResponseSchema = EventBaseSchema.extend({
|
|
1254
|
+
iceServers: zod.z.array(RtcIceServerSchema)
|
|
1255
|
+
});
|
|
1256
|
+
const MachineRtcRequestSchema = EventBaseSchema.extend({
|
|
1257
|
+
machineId: zod.z.string(),
|
|
1258
|
+
sessionId: zod.z.string(),
|
|
1259
|
+
role: zod.z.literal("app"),
|
|
1260
|
+
userId: zod.z.string().optional()
|
|
1261
|
+
});
|
|
1262
|
+
const MachineRtcResponseSchema = EventBaseSchema.extend({
|
|
1263
|
+
machineId: zod.z.string(),
|
|
1264
|
+
sessionId: zod.z.string(),
|
|
1265
|
+
accepted: zod.z.boolean(),
|
|
1266
|
+
reason: zod.z.string().optional(),
|
|
1267
|
+
userId: zod.z.string().optional(),
|
|
1268
|
+
capabilities: zod.z.object({
|
|
1269
|
+
dataChannel: zod.z.boolean().optional(),
|
|
1270
|
+
maxMessageSize: zod.z.number().optional()
|
|
1271
|
+
}).optional()
|
|
1272
|
+
});
|
|
1273
|
+
const RtcSignalSchema = EventBaseSchema.extend({
|
|
1274
|
+
machineId: zod.z.string(),
|
|
1275
|
+
sessionId: zod.z.string(),
|
|
1276
|
+
from: zod.z.enum(["app", "machine"]),
|
|
1277
|
+
signal: zod.z.any(),
|
|
1278
|
+
userId: zod.z.string().optional()
|
|
1279
|
+
});
|
|
1159
1280
|
const WorkspaceFileRequestSchema = EventBaseSchema.extend({
|
|
1160
1281
|
taskId: zod.z.string(),
|
|
1161
1282
|
userId: zod.z.string(),
|
|
@@ -1290,6 +1411,7 @@ const EventSchemaMap = {
|
|
|
1290
1411
|
"machine-alive": MachineAliveEventSchema,
|
|
1291
1412
|
// Worker events
|
|
1292
1413
|
"worker-initializing": WorkerInitializingSchema,
|
|
1414
|
+
"worker-initialized": WorkerInitializedSchema,
|
|
1293
1415
|
"worker-ready": WorkerReadySchema,
|
|
1294
1416
|
"worker-alive": WorkerAliveEventSchema,
|
|
1295
1417
|
"worker-exit": WorkerExitSchema,
|
|
@@ -1316,14 +1438,23 @@ const EventSchemaMap = {
|
|
|
1316
1438
|
"system-message": SystemMessageSchema,
|
|
1317
1439
|
// Billing events
|
|
1318
1440
|
"credit-exhausted": CreditExhaustedEventSchema,
|
|
1441
|
+
// RTC signaling events
|
|
1442
|
+
"rtc-ice-servers-request": RtcIceServersRequestSchema,
|
|
1443
|
+
"rtc-ice-servers-response": RtcIceServersResponseSchema,
|
|
1444
|
+
"machine-rtc-request": MachineRtcRequestSchema,
|
|
1445
|
+
"machine-rtc-response": MachineRtcResponseSchema,
|
|
1446
|
+
"rtc-signal": RtcSignalSchema,
|
|
1319
1447
|
// Workspace file events
|
|
1320
1448
|
"workspace-file-request": WorkspaceFileRequestSchema,
|
|
1321
1449
|
"workspace-file-response": WorkspaceFileResponseSchema,
|
|
1450
|
+
// RPC events
|
|
1451
|
+
"rpc-call": RpcCallEventSchema,
|
|
1322
1452
|
// Ack events
|
|
1323
1453
|
"event-ack": EventAckSchema
|
|
1324
1454
|
};
|
|
1325
1455
|
const workerTaskEvents = [
|
|
1326
1456
|
"worker-initializing",
|
|
1457
|
+
"worker-initialized",
|
|
1327
1458
|
"worker-ready",
|
|
1328
1459
|
"worker-running",
|
|
1329
1460
|
"worker-exit",
|
|
@@ -1512,9 +1643,9 @@ function isValidPluginDirectory(pluginDir) {
|
|
|
1512
1643
|
}
|
|
1513
1644
|
|
|
1514
1645
|
async function loadAgentConfig(options) {
|
|
1515
|
-
const { agentId, framework, validateOnly = false } = options;
|
|
1646
|
+
const { agentId, framework, validateOnly = false, agentDir: providedAgentDir } = options;
|
|
1516
1647
|
const agentContext = getAgentContext();
|
|
1517
|
-
const agentDir = agentContext.resolveAgentDir(agentId);
|
|
1648
|
+
const agentDir = providedAgentDir || agentContext.resolveAgentDir(agentId);
|
|
1518
1649
|
assertAgentExists(agentDir, agentId);
|
|
1519
1650
|
const validation = validateAgentDirectory(agentDir);
|
|
1520
1651
|
if (!validation.valid) {
|
|
@@ -1861,14 +1992,63 @@ function decryptFileContent(encryptedContent, dataKey) {
|
|
|
1861
1992
|
}
|
|
1862
1993
|
}
|
|
1863
1994
|
|
|
1995
|
+
const RTC_CHUNK_HEADER_SIZE = 16;
|
|
1996
|
+
const RtcChunkFlags = {
|
|
1997
|
+
Start: 1,
|
|
1998
|
+
End: 2,
|
|
1999
|
+
Binary: 4,
|
|
2000
|
+
Compressed: 8
|
|
2001
|
+
};
|
|
2002
|
+
function encodeRtcChunkHeader(header) {
|
|
2003
|
+
const buffer = new ArrayBuffer(RTC_CHUNK_HEADER_SIZE);
|
|
2004
|
+
const view = new DataView(buffer);
|
|
2005
|
+
view.setUint32(0, header.streamId);
|
|
2006
|
+
view.setUint32(4, header.seq);
|
|
2007
|
+
view.setUint16(8, header.flags);
|
|
2008
|
+
view.setUint16(10, header.reserved ?? 0);
|
|
2009
|
+
view.setUint32(12, header.payloadLength);
|
|
2010
|
+
return new Uint8Array(buffer);
|
|
2011
|
+
}
|
|
2012
|
+
function decodeRtcChunkHeader(data) {
|
|
2013
|
+
if (data.byteLength < RTC_CHUNK_HEADER_SIZE) {
|
|
2014
|
+
throw new Error(`RTC chunk header requires ${RTC_CHUNK_HEADER_SIZE} bytes`);
|
|
2015
|
+
}
|
|
2016
|
+
const view = new DataView(data.buffer, data.byteOffset, data.byteLength);
|
|
2017
|
+
return {
|
|
2018
|
+
streamId: view.getUint32(0),
|
|
2019
|
+
seq: view.getUint32(4),
|
|
2020
|
+
flags: view.getUint16(8),
|
|
2021
|
+
reserved: view.getUint16(10),
|
|
2022
|
+
payloadLength: view.getUint32(12)
|
|
2023
|
+
};
|
|
2024
|
+
}
|
|
2025
|
+
function buildRtcChunkFrame(header, payload) {
|
|
2026
|
+
const headerBytes = encodeRtcChunkHeader({
|
|
2027
|
+
...header,
|
|
2028
|
+
payloadLength: payload.length
|
|
2029
|
+
});
|
|
2030
|
+
const frame = new Uint8Array(RTC_CHUNK_HEADER_SIZE + payload.length);
|
|
2031
|
+
frame.set(headerBytes, 0);
|
|
2032
|
+
frame.set(payload, RTC_CHUNK_HEADER_SIZE);
|
|
2033
|
+
return frame;
|
|
2034
|
+
}
|
|
2035
|
+
function splitRtcChunkFrame(data) {
|
|
2036
|
+
const header = decodeRtcChunkHeader(data);
|
|
2037
|
+
const payload = data.slice(RTC_CHUNK_HEADER_SIZE, RTC_CHUNK_HEADER_SIZE + header.payloadLength);
|
|
2038
|
+
return { header, payload };
|
|
2039
|
+
}
|
|
2040
|
+
|
|
1864
2041
|
exports.AddChatMemberRequestSchema = AddChatMemberRequestSchema;
|
|
1865
2042
|
exports.AddChatMemberResponseSchema = AddChatMemberResponseSchema;
|
|
2043
|
+
exports.AgentBuilderConfigSchema = AgentBuilderConfigSchema;
|
|
2044
|
+
exports.AgentBuilderSchema = AgentBuilderSchema;
|
|
1866
2045
|
exports.AgentConfigValidationError = AgentConfigValidationError;
|
|
1867
2046
|
exports.AgentCustomConfigSchema = AgentCustomConfigSchema;
|
|
1868
2047
|
exports.AgentError = AgentError;
|
|
1869
2048
|
exports.AgentLoadError = AgentLoadError;
|
|
1870
2049
|
exports.AgentMetadataSchema = AgentMetadataSchema;
|
|
1871
2050
|
exports.AgentNotFoundError = AgentNotFoundError;
|
|
2051
|
+
exports.AgentPermissionsSchema = AgentPermissionsSchema;
|
|
1872
2052
|
exports.AgentSchema = AgentSchema;
|
|
1873
2053
|
exports.AgentTypeSchema = AgentTypeSchema;
|
|
1874
2054
|
exports.ApiErrorSchema = ApiErrorSchema;
|
|
@@ -1905,6 +2085,7 @@ exports.CloudSchema = CloudSchema;
|
|
|
1905
2085
|
exports.ConfirmUploadRequestSchema = ConfirmUploadRequestSchema;
|
|
1906
2086
|
exports.ConfirmUploadResponseSchema = ConfirmUploadResponseSchema;
|
|
1907
2087
|
exports.ConsumeTransactionSchema = ConsumeTransactionSchema;
|
|
2088
|
+
exports.CreateAgentBuilderRequestSchema = CreateAgentBuilderRequestSchema;
|
|
1908
2089
|
exports.CreateAgentRequestSchema = CreateAgentRequestSchema;
|
|
1909
2090
|
exports.CreateAgentResponseSchema = CreateAgentResponseSchema;
|
|
1910
2091
|
exports.CreateChatRequestSchema = CreateChatRequestSchema;
|
|
@@ -1922,6 +2103,7 @@ exports.CreditsPackageSchema = CreditsPackageSchema;
|
|
|
1922
2103
|
exports.DateSchema = DateSchema;
|
|
1923
2104
|
exports.DeleteAgentResponseSchema = DeleteAgentResponseSchema;
|
|
1924
2105
|
exports.DeleteOAuthServerResponseSchema = DeleteOAuthServerResponseSchema;
|
|
2106
|
+
exports.DeploymentVariableSchema = DeploymentVariableSchema;
|
|
1925
2107
|
exports.DisplayConfigKeysSchema = DisplayConfigKeysSchema;
|
|
1926
2108
|
exports.DisplayConfigSchema = DisplayConfigSchema;
|
|
1927
2109
|
exports.EventAckSchema = EventAckSchema;
|
|
@@ -1941,6 +2123,7 @@ exports.GetOAuthServerResponseSchema = GetOAuthServerResponseSchema;
|
|
|
1941
2123
|
exports.GetRepositoryResponseSchema = GetRepositoryResponseSchema;
|
|
1942
2124
|
exports.GetUploadUrlsRequestSchema = GetUploadUrlsRequestSchema;
|
|
1943
2125
|
exports.GetUploadUrlsResponseSchema = GetUploadUrlsResponseSchema;
|
|
2126
|
+
exports.GetUserAgentsResponseSchema = GetUserAgentsResponseSchema;
|
|
1944
2127
|
exports.GitHubIssueListItemSchema = GitHubIssueListItemSchema;
|
|
1945
2128
|
exports.GitHubIssueSchema = GitHubIssueSchema;
|
|
1946
2129
|
exports.GitServerSchema = GitServerSchema;
|
|
@@ -1974,6 +2157,8 @@ exports.MachineApprovalStatusQuerySchema = MachineApprovalStatusQuerySchema;
|
|
|
1974
2157
|
exports.MachineAuthAuthorizedResponseSchema = MachineAuthAuthorizedResponseSchema;
|
|
1975
2158
|
exports.MachineAuthRequestSchema = MachineAuthRequestSchema;
|
|
1976
2159
|
exports.MachineAuthResultQuerySchema = MachineAuthResultQuerySchema;
|
|
2160
|
+
exports.MachineRtcRequestSchema = MachineRtcRequestSchema;
|
|
2161
|
+
exports.MachineRtcResponseSchema = MachineRtcResponseSchema;
|
|
1977
2162
|
exports.MergePullRequestEventSchema = MergePullRequestEventSchema;
|
|
1978
2163
|
exports.MergeRequestEventSchema = MergeRequestEventSchema;
|
|
1979
2164
|
exports.MissingAgentFileError = MissingAgentFileError;
|
|
@@ -1993,6 +2178,7 @@ exports.PermissionResponseResponseSchema = PermissionResponseResponseSchema;
|
|
|
1993
2178
|
exports.ProjectDirectoryResponseSchema = ProjectDirectoryResponseSchema;
|
|
1994
2179
|
exports.ProjectEntrySchema = ProjectEntrySchema;
|
|
1995
2180
|
exports.QueryEventsRequestSchema = QueryEventsRequestSchema;
|
|
2181
|
+
exports.RTC_CHUNK_HEADER_SIZE = RTC_CHUNK_HEADER_SIZE;
|
|
1996
2182
|
exports.RechargeResponseSchema = RechargeResponseSchema;
|
|
1997
2183
|
exports.RemoveChatMemberRequestSchema = RemoveChatMemberRequestSchema;
|
|
1998
2184
|
exports.RepositorySchema = RepositorySchema;
|
|
@@ -2000,6 +2186,13 @@ exports.ResetSecretRequestSchema = ResetSecretRequestSchema;
|
|
|
2000
2186
|
exports.ResetSecretResponseSchema = ResetSecretResponseSchema;
|
|
2001
2187
|
exports.ResumeTaskRequestSchema = ResumeTaskRequestSchema;
|
|
2002
2188
|
exports.ResumeTaskResponseSchema = ResumeTaskResponseSchema;
|
|
2189
|
+
exports.RpcCallEventSchema = RpcCallEventSchema;
|
|
2190
|
+
exports.RpcResponseSchema = RpcResponseSchema;
|
|
2191
|
+
exports.RtcChunkFlags = RtcChunkFlags;
|
|
2192
|
+
exports.RtcIceServerSchema = RtcIceServerSchema;
|
|
2193
|
+
exports.RtcIceServersRequestSchema = RtcIceServersRequestSchema;
|
|
2194
|
+
exports.RtcIceServersResponseSchema = RtcIceServersResponseSchema;
|
|
2195
|
+
exports.RtcSignalSchema = RtcSignalSchema;
|
|
2003
2196
|
exports.ShareAuthQuerySchema = ShareAuthQuerySchema;
|
|
2004
2197
|
exports.ShareAuthResponseSchema = ShareAuthResponseSchema;
|
|
2005
2198
|
exports.ShutdownMachineSchema = ShutdownMachineSchema;
|
|
@@ -2042,6 +2235,7 @@ exports.UserProfileResponseSchema = UserProfileResponseSchema;
|
|
|
2042
2235
|
exports.UserWithOAuthAccountsSchema = UserWithOAuthAccountsSchema;
|
|
2043
2236
|
exports.WorkerAliveEventSchema = WorkerAliveEventSchema;
|
|
2044
2237
|
exports.WorkerExitSchema = WorkerExitSchema;
|
|
2238
|
+
exports.WorkerInitializedSchema = WorkerInitializedSchema;
|
|
2045
2239
|
exports.WorkerInitializingSchema = WorkerInitializingSchema;
|
|
2046
2240
|
exports.WorkerReadySchema = WorkerReadySchema;
|
|
2047
2241
|
exports.WorkerRunningSchema = WorkerRunningSchema;
|
|
@@ -2051,6 +2245,7 @@ exports.WorkspaceFileResponseSchema = WorkspaceFileResponseSchema;
|
|
|
2051
2245
|
exports.assertAgentExists = assertAgentExists;
|
|
2052
2246
|
exports.assertFileExists = assertFileExists;
|
|
2053
2247
|
exports.baseTaskSchema = baseTaskSchema;
|
|
2248
|
+
exports.buildRtcChunkFrame = buildRtcChunkFrame;
|
|
2054
2249
|
exports.cancelTaskRequestSchema = cancelTaskRequestSchema;
|
|
2055
2250
|
exports.cancelTaskSchema = cancelTaskSchema;
|
|
2056
2251
|
exports.createEventId = createEventId;
|
|
@@ -2059,6 +2254,7 @@ exports.createKeyPairWithUit8Array = createKeyPairWithUit8Array;
|
|
|
2059
2254
|
exports.createMergeRequestSchema = createMergeRequestSchema;
|
|
2060
2255
|
exports.createTaskSchema = createTaskSchema;
|
|
2061
2256
|
exports.decodeBase64 = decodeBase64;
|
|
2257
|
+
exports.decodeRtcChunkHeader = decodeRtcChunkHeader;
|
|
2062
2258
|
exports.decryptAES = decryptAES;
|
|
2063
2259
|
exports.decryptFileContent = decryptFileContent;
|
|
2064
2260
|
exports.decryptMachineEncryptionKey = decryptMachineEncryptionKey;
|
|
@@ -2067,6 +2263,7 @@ exports.decryptWithEphemeralKey = decryptWithEphemeralKey;
|
|
|
2067
2263
|
exports.discoverPlugins = discoverPlugins;
|
|
2068
2264
|
exports.encodeBase64 = encodeBase64;
|
|
2069
2265
|
exports.encodeBase64Url = encodeBase64Url;
|
|
2266
|
+
exports.encodeRtcChunkHeader = encodeRtcChunkHeader;
|
|
2070
2267
|
exports.encryptAES = encryptAES;
|
|
2071
2268
|
exports.encryptFileContent = encryptFileContent;
|
|
2072
2269
|
exports.encryptMachineEncryptionKey = encryptMachineEncryptionKey;
|
|
@@ -2086,6 +2283,7 @@ exports.replacePromptPlaceholders = replacePromptPlaceholders;
|
|
|
2086
2283
|
exports.resumeTaskRequestSchema = resumeTaskRequestSchema;
|
|
2087
2284
|
exports.resumeTaskSchema = resumeTaskSchema;
|
|
2088
2285
|
exports.setAgentContext = setAgentContext;
|
|
2286
|
+
exports.splitRtcChunkFrame = splitRtcChunkFrame;
|
|
2089
2287
|
exports.startTaskSchema = startTaskSchema;
|
|
2090
2288
|
exports.stopTaskRequestSchema = stopTaskRequestSchema;
|
|
2091
2289
|
exports.userAuth = userAuth;
|