@agentrix/shared 1.0.12 → 2.0.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/index.cjs +215 -5
- package/dist/index.d.cts +2649 -1012
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -250,6 +250,7 @@ const StartTaskResponseSchema = zod.z.object({
|
|
|
250
250
|
repositoryId: zod.z.string().nullable(),
|
|
251
251
|
baseBranch: zod.z.string().nullable(),
|
|
252
252
|
title: zod.z.string().nullable(),
|
|
253
|
+
userCwd: zod.z.string().nullable(),
|
|
253
254
|
createdAt: DateSchema,
|
|
254
255
|
updatedAt: DateSchema
|
|
255
256
|
});
|
|
@@ -273,6 +274,8 @@ const TaskItemSchema = zod.z.object({
|
|
|
273
274
|
dataEncryptionKey: zod.z.string().nullable(),
|
|
274
275
|
cwd: zod.z.string().nullable(),
|
|
275
276
|
// Current working directory from CLI worker
|
|
277
|
+
userCwd: zod.z.string().nullable(),
|
|
278
|
+
// User-provided working directory for local mode
|
|
276
279
|
repositorySourceType: zod.z.enum(["temporary", "directory", "git-server"]).nullable(),
|
|
277
280
|
// Repository source type
|
|
278
281
|
pullRequestNumber: zod.z.number().nullable(),
|
|
@@ -534,6 +537,12 @@ const DisplayConfigSchema = zod.z.record(zod.z.string(), DisplayConfigKeysSchema
|
|
|
534
537
|
const AgentCustomConfigSchema = zod.z.object({
|
|
535
538
|
displayConfig: DisplayConfigSchema.optional()
|
|
536
539
|
});
|
|
540
|
+
const AgentPermissionsSchema = zod.z.object({
|
|
541
|
+
role: zod.z.string(),
|
|
542
|
+
// "all" | "low"
|
|
543
|
+
path: zod.z.string()
|
|
544
|
+
// URL/path pattern
|
|
545
|
+
});
|
|
537
546
|
const AgentSchema = zod.z.object({
|
|
538
547
|
id: IdSchema,
|
|
539
548
|
name: zod.z.string(),
|
|
@@ -549,7 +558,8 @@ const AgentSchema = zod.z.object({
|
|
|
549
558
|
gitRepoId: zod.z.string().nullable(),
|
|
550
559
|
supportLocal: zod.z.boolean(),
|
|
551
560
|
enable: zod.z.boolean(),
|
|
552
|
-
config: AgentCustomConfigSchema.nullable()
|
|
561
|
+
config: AgentCustomConfigSchema.nullable(),
|
|
562
|
+
permissions: AgentPermissionsSchema.nullable()
|
|
553
563
|
});
|
|
554
564
|
const ListAgentsResponseSchema = zod.z.object({
|
|
555
565
|
agents: zod.z.array(AgentSchema)
|
|
@@ -585,6 +595,56 @@ const DeleteAgentResponseSchema = zod.z.object({
|
|
|
585
595
|
message: zod.z.string(),
|
|
586
596
|
agentId: IdSchema
|
|
587
597
|
});
|
|
598
|
+
const DeploymentVariableSchema = zod.z.object({
|
|
599
|
+
name: zod.z.string(),
|
|
600
|
+
type: zod.z.enum(["string", "number", "boolean", "secret"]),
|
|
601
|
+
description: zod.z.string().optional(),
|
|
602
|
+
required: zod.z.boolean().default(false),
|
|
603
|
+
defaultValue: zod.z.string().optional()
|
|
604
|
+
});
|
|
605
|
+
const AgentBuilderConfigSchema = zod.z.object({
|
|
606
|
+
// UI messages (moved from top-level Agent fields)
|
|
607
|
+
guildMsg: zod.z.string().default("what can I do for you today?"),
|
|
608
|
+
placeholderMsg: zod.z.string().default("Ask me anything..."),
|
|
609
|
+
// Deployment configuration (from CLI envVars)
|
|
610
|
+
deploymentSchema: zod.z.array(DeploymentVariableSchema).optional(),
|
|
611
|
+
// Display configuration (same as AgentCustomConfig)
|
|
612
|
+
displayConfig: DisplayConfigSchema.optional()
|
|
613
|
+
});
|
|
614
|
+
const CreateAgentBuilderRequestSchema = zod.z.object({
|
|
615
|
+
name: zod.z.string().min(1, "Name is required"),
|
|
616
|
+
agentDir: zod.z.string().min(1, "Agent directory is required"),
|
|
617
|
+
type: AgentTypeSchema.default("claude"),
|
|
618
|
+
avatar: zod.z.string().optional(),
|
|
619
|
+
description: zod.z.string().optional(),
|
|
620
|
+
userId: zod.z.string(),
|
|
621
|
+
taskId: zod.z.string(),
|
|
622
|
+
envVars: zod.z.array(DeploymentVariableSchema).optional()
|
|
623
|
+
// From CLI tool
|
|
624
|
+
});
|
|
625
|
+
const AgentBuilderSchema = zod.z.object({
|
|
626
|
+
id: IdSchema,
|
|
627
|
+
name: zod.z.string(),
|
|
628
|
+
displayName: zod.z.string(),
|
|
629
|
+
agentDir: zod.z.string(),
|
|
630
|
+
type: AgentTypeSchema,
|
|
631
|
+
avatar: zod.z.string().nullable(),
|
|
632
|
+
userId: zod.z.string(),
|
|
633
|
+
description: zod.z.string().nullable(),
|
|
634
|
+
enable: zod.z.boolean(),
|
|
635
|
+
config: AgentBuilderConfigSchema.nullable(),
|
|
636
|
+
permissions: AgentPermissionsSchema.nullable(),
|
|
637
|
+
publishedAgentId: zod.z.string().nullable(),
|
|
638
|
+
sourceTaskId: zod.z.string().nullable(),
|
|
639
|
+
createdAt: zod.z.string(),
|
|
640
|
+
updatedAt: zod.z.string()
|
|
641
|
+
});
|
|
642
|
+
const GetUserAgentsResponseSchema = zod.z.object({
|
|
643
|
+
agents: zod.z.array(AgentSchema),
|
|
644
|
+
// Published agents
|
|
645
|
+
builders: zod.z.array(AgentBuilderSchema)
|
|
646
|
+
// Draft agent-builders
|
|
647
|
+
});
|
|
588
648
|
|
|
589
649
|
const LocalMachineSchema = zod.z.object({
|
|
590
650
|
id: IdSchema,
|
|
@@ -943,6 +1003,28 @@ const GitServerSchema = zod.z.object({
|
|
|
943
1003
|
const ListGitServersResponseSchema = zod.z.array(GitServerSchema);
|
|
944
1004
|
const GetGitServerResponseSchema = GitServerSchema;
|
|
945
1005
|
|
|
1006
|
+
const RpcCallEventSchema = zod.z.object({
|
|
1007
|
+
eventId: zod.z.string(),
|
|
1008
|
+
taskId: zod.z.string(),
|
|
1009
|
+
method: zod.z.enum(["GET", "POST", "PATCH", "DELETE"]),
|
|
1010
|
+
path: zod.z.string(),
|
|
1011
|
+
// API path, e.g., "/v1/agent-builder"
|
|
1012
|
+
query: zod.z.record(zod.z.any()).optional(),
|
|
1013
|
+
// Query params for GET requests
|
|
1014
|
+
body: zod.z.any().optional()
|
|
1015
|
+
// Request body for POST/PATCH/DELETE
|
|
1016
|
+
});
|
|
1017
|
+
const RpcResponseSchema = zod.z.object({
|
|
1018
|
+
success: zod.z.boolean(),
|
|
1019
|
+
status: zod.z.number().optional(),
|
|
1020
|
+
// HTTP status code
|
|
1021
|
+
data: zod.z.any().optional(),
|
|
1022
|
+
error: zod.z.object({
|
|
1023
|
+
code: zod.z.string(),
|
|
1024
|
+
message: zod.z.string()
|
|
1025
|
+
}).optional()
|
|
1026
|
+
});
|
|
1027
|
+
|
|
946
1028
|
const AskUserOptionSchema = zod.z.object({
|
|
947
1029
|
label: zod.z.string(),
|
|
948
1030
|
// Option label (1-5 words)
|
|
@@ -1011,6 +1093,12 @@ const WorkerInitializingSchema = EventBaseSchema.extend({
|
|
|
1011
1093
|
timestamp: zod.z.string(),
|
|
1012
1094
|
cwd: zod.z.string().optional()
|
|
1013
1095
|
});
|
|
1096
|
+
const WorkerInitializedSchema = EventBaseSchema.extend({
|
|
1097
|
+
taskId: zod.z.string(),
|
|
1098
|
+
machineId: zod.z.string(),
|
|
1099
|
+
timestamp: zod.z.string(),
|
|
1100
|
+
cwd: zod.z.string().optional()
|
|
1101
|
+
});
|
|
1014
1102
|
const WorkerReadySchema = EventBaseSchema.extend({
|
|
1015
1103
|
taskId: zod.z.string(),
|
|
1016
1104
|
machineId: zod.z.string(),
|
|
@@ -1036,16 +1124,24 @@ const WorkerRunningSchema = EventBaseSchema.extend({
|
|
|
1036
1124
|
machineId: zod.z.string(),
|
|
1037
1125
|
timestamp: zod.z.string()
|
|
1038
1126
|
});
|
|
1127
|
+
const WorkerStatusRequestSchema = EventBaseSchema.extend({
|
|
1128
|
+
taskId: zod.z.string(),
|
|
1129
|
+
timestamp: zod.z.string()
|
|
1130
|
+
});
|
|
1039
1131
|
const baseTaskSchema = EventBaseSchema.extend({
|
|
1040
1132
|
taskId: zod.z.string(),
|
|
1041
1133
|
userId: zod.z.string(),
|
|
1042
1134
|
chatId: zod.z.string(),
|
|
1043
1135
|
agentId: zod.z.string(),
|
|
1044
1136
|
agentType: zod.z.string().optional().default("claude"),
|
|
1137
|
+
agentDir: zod.z.string().optional(),
|
|
1138
|
+
// Absolute path to agent directory (only for agent-builders)
|
|
1045
1139
|
gitUrl: zod.z.string().optional(),
|
|
1046
1140
|
baseBranch: zod.z.string().optional(),
|
|
1047
1141
|
cwd: zod.z.string().optional(),
|
|
1048
1142
|
// Current working directory for the task, only used under 'local' mode
|
|
1143
|
+
userCwd: zod.z.string().optional(),
|
|
1144
|
+
// User-provided working directory for local mode
|
|
1049
1145
|
dataEncryptionKey: zod.z.string().optional(),
|
|
1050
1146
|
// User's public key for encrypting sensitive data
|
|
1051
1147
|
model: zod.z.string().optional(),
|
|
@@ -1152,6 +1248,39 @@ const TaskStateChangeEventSchema = EventBaseSchema.extend({
|
|
|
1152
1248
|
updatedAt: zod.z.string()
|
|
1153
1249
|
});
|
|
1154
1250
|
const CreditExhaustedEventSchema = EventBaseSchema.extend({});
|
|
1251
|
+
const RtcIceServerSchema = zod.z.object({
|
|
1252
|
+
urls: zod.z.union([zod.z.string(), zod.z.array(zod.z.string())]),
|
|
1253
|
+
username: zod.z.string().optional(),
|
|
1254
|
+
credential: zod.z.string().optional()
|
|
1255
|
+
});
|
|
1256
|
+
const RtcIceServersRequestSchema = EventBaseSchema.extend({});
|
|
1257
|
+
const RtcIceServersResponseSchema = EventBaseSchema.extend({
|
|
1258
|
+
iceServers: zod.z.array(RtcIceServerSchema)
|
|
1259
|
+
});
|
|
1260
|
+
const MachineRtcRequestSchema = EventBaseSchema.extend({
|
|
1261
|
+
machineId: zod.z.string(),
|
|
1262
|
+
sessionId: zod.z.string(),
|
|
1263
|
+
role: zod.z.literal("app"),
|
|
1264
|
+
userId: zod.z.string().optional()
|
|
1265
|
+
});
|
|
1266
|
+
const MachineRtcResponseSchema = EventBaseSchema.extend({
|
|
1267
|
+
machineId: zod.z.string(),
|
|
1268
|
+
sessionId: zod.z.string(),
|
|
1269
|
+
accepted: zod.z.boolean(),
|
|
1270
|
+
reason: zod.z.string().optional(),
|
|
1271
|
+
userId: zod.z.string().optional(),
|
|
1272
|
+
capabilities: zod.z.object({
|
|
1273
|
+
dataChannel: zod.z.boolean().optional(),
|
|
1274
|
+
maxMessageSize: zod.z.number().optional()
|
|
1275
|
+
}).optional()
|
|
1276
|
+
});
|
|
1277
|
+
const RtcSignalSchema = EventBaseSchema.extend({
|
|
1278
|
+
machineId: zod.z.string(),
|
|
1279
|
+
sessionId: zod.z.string(),
|
|
1280
|
+
from: zod.z.enum(["app", "machine"]),
|
|
1281
|
+
signal: zod.z.any(),
|
|
1282
|
+
userId: zod.z.string().optional()
|
|
1283
|
+
});
|
|
1155
1284
|
const WorkspaceFileRequestSchema = EventBaseSchema.extend({
|
|
1156
1285
|
taskId: zod.z.string(),
|
|
1157
1286
|
userId: zod.z.string(),
|
|
@@ -1213,7 +1342,7 @@ const UpdateTaskAgentSessionIdEventSchema = EventBaseSchema.extend({
|
|
|
1213
1342
|
const TaskInfoUpdateEventDataSchema = EventBaseSchema.extend({
|
|
1214
1343
|
taskId: zod.z.string(),
|
|
1215
1344
|
chatId: zod.z.string(),
|
|
1216
|
-
updates: zod.z.record(zod.z.any()),
|
|
1345
|
+
updates: zod.z.record(zod.z.any()).optional(),
|
|
1217
1346
|
// Flexible updates object for any task fields
|
|
1218
1347
|
updatedAt: zod.z.string()
|
|
1219
1348
|
// ISO 8601 timestamp
|
|
@@ -1286,10 +1415,12 @@ const EventSchemaMap = {
|
|
|
1286
1415
|
"machine-alive": MachineAliveEventSchema,
|
|
1287
1416
|
// Worker events
|
|
1288
1417
|
"worker-initializing": WorkerInitializingSchema,
|
|
1418
|
+
"worker-initialized": WorkerInitializedSchema,
|
|
1289
1419
|
"worker-ready": WorkerReadySchema,
|
|
1290
1420
|
"worker-alive": WorkerAliveEventSchema,
|
|
1291
1421
|
"worker-exit": WorkerExitSchema,
|
|
1292
1422
|
"worker-running": WorkerRunningSchema,
|
|
1423
|
+
"worker-status-request": WorkerStatusRequestSchema,
|
|
1293
1424
|
// Task events
|
|
1294
1425
|
"create-task": createTaskSchema,
|
|
1295
1426
|
"resume-task": resumeTaskSchema,
|
|
@@ -1311,14 +1442,23 @@ const EventSchemaMap = {
|
|
|
1311
1442
|
"system-message": SystemMessageSchema,
|
|
1312
1443
|
// Billing events
|
|
1313
1444
|
"credit-exhausted": CreditExhaustedEventSchema,
|
|
1445
|
+
// RTC signaling events
|
|
1446
|
+
"rtc-ice-servers-request": RtcIceServersRequestSchema,
|
|
1447
|
+
"rtc-ice-servers-response": RtcIceServersResponseSchema,
|
|
1448
|
+
"machine-rtc-request": MachineRtcRequestSchema,
|
|
1449
|
+
"machine-rtc-response": MachineRtcResponseSchema,
|
|
1450
|
+
"rtc-signal": RtcSignalSchema,
|
|
1314
1451
|
// Workspace file events
|
|
1315
1452
|
"workspace-file-request": WorkspaceFileRequestSchema,
|
|
1316
1453
|
"workspace-file-response": WorkspaceFileResponseSchema,
|
|
1454
|
+
// RPC events
|
|
1455
|
+
"rpc-call": RpcCallEventSchema,
|
|
1317
1456
|
// Ack events
|
|
1318
1457
|
"event-ack": EventAckSchema
|
|
1319
1458
|
};
|
|
1320
1459
|
const workerTaskEvents = [
|
|
1321
1460
|
"worker-initializing",
|
|
1461
|
+
"worker-initialized",
|
|
1322
1462
|
"worker-ready",
|
|
1323
1463
|
"worker-running",
|
|
1324
1464
|
"worker-exit",
|
|
@@ -1388,7 +1528,9 @@ const ClaudeConfigSchema = zod.z.object({
|
|
|
1388
1528
|
pullRequestPrompt: zod.z.object({
|
|
1389
1529
|
path: zod.z.string(),
|
|
1390
1530
|
mode: zod.z.enum(["append", "replace"]).optional().default("append")
|
|
1391
|
-
}).optional()
|
|
1531
|
+
}).optional(),
|
|
1532
|
+
// SDK MCP Tools - scripts that export createSdkMcpServer()
|
|
1533
|
+
sdkMcpTools: zod.z.array(zod.z.string()).optional()
|
|
1392
1534
|
});
|
|
1393
1535
|
|
|
1394
1536
|
class AgentError extends Error {
|
|
@@ -1505,9 +1647,9 @@ function isValidPluginDirectory(pluginDir) {
|
|
|
1505
1647
|
}
|
|
1506
1648
|
|
|
1507
1649
|
async function loadAgentConfig(options) {
|
|
1508
|
-
const { agentId, framework, validateOnly = false } = options;
|
|
1650
|
+
const { agentId, framework, validateOnly = false, agentDir: providedAgentDir } = options;
|
|
1509
1651
|
const agentContext = getAgentContext();
|
|
1510
|
-
const agentDir = agentContext.resolveAgentDir(agentId);
|
|
1652
|
+
const agentDir = providedAgentDir || agentContext.resolveAgentDir(agentId);
|
|
1511
1653
|
assertAgentExists(agentDir, agentId);
|
|
1512
1654
|
const validation = validateAgentDirectory(agentDir);
|
|
1513
1655
|
if (!validation.valid) {
|
|
@@ -1854,14 +1996,63 @@ function decryptFileContent(encryptedContent, dataKey) {
|
|
|
1854
1996
|
}
|
|
1855
1997
|
}
|
|
1856
1998
|
|
|
1999
|
+
const RTC_CHUNK_HEADER_SIZE = 16;
|
|
2000
|
+
const RtcChunkFlags = {
|
|
2001
|
+
Start: 1,
|
|
2002
|
+
End: 2,
|
|
2003
|
+
Binary: 4,
|
|
2004
|
+
Compressed: 8
|
|
2005
|
+
};
|
|
2006
|
+
function encodeRtcChunkHeader(header) {
|
|
2007
|
+
const buffer = new ArrayBuffer(RTC_CHUNK_HEADER_SIZE);
|
|
2008
|
+
const view = new DataView(buffer);
|
|
2009
|
+
view.setUint32(0, header.streamId);
|
|
2010
|
+
view.setUint32(4, header.seq);
|
|
2011
|
+
view.setUint16(8, header.flags);
|
|
2012
|
+
view.setUint16(10, header.reserved ?? 0);
|
|
2013
|
+
view.setUint32(12, header.payloadLength);
|
|
2014
|
+
return new Uint8Array(buffer);
|
|
2015
|
+
}
|
|
2016
|
+
function decodeRtcChunkHeader(data) {
|
|
2017
|
+
if (data.byteLength < RTC_CHUNK_HEADER_SIZE) {
|
|
2018
|
+
throw new Error(`RTC chunk header requires ${RTC_CHUNK_HEADER_SIZE} bytes`);
|
|
2019
|
+
}
|
|
2020
|
+
const view = new DataView(data.buffer, data.byteOffset, data.byteLength);
|
|
2021
|
+
return {
|
|
2022
|
+
streamId: view.getUint32(0),
|
|
2023
|
+
seq: view.getUint32(4),
|
|
2024
|
+
flags: view.getUint16(8),
|
|
2025
|
+
reserved: view.getUint16(10),
|
|
2026
|
+
payloadLength: view.getUint32(12)
|
|
2027
|
+
};
|
|
2028
|
+
}
|
|
2029
|
+
function buildRtcChunkFrame(header, payload) {
|
|
2030
|
+
const headerBytes = encodeRtcChunkHeader({
|
|
2031
|
+
...header,
|
|
2032
|
+
payloadLength: payload.length
|
|
2033
|
+
});
|
|
2034
|
+
const frame = new Uint8Array(RTC_CHUNK_HEADER_SIZE + payload.length);
|
|
2035
|
+
frame.set(headerBytes, 0);
|
|
2036
|
+
frame.set(payload, RTC_CHUNK_HEADER_SIZE);
|
|
2037
|
+
return frame;
|
|
2038
|
+
}
|
|
2039
|
+
function splitRtcChunkFrame(data) {
|
|
2040
|
+
const header = decodeRtcChunkHeader(data);
|
|
2041
|
+
const payload = data.slice(RTC_CHUNK_HEADER_SIZE, RTC_CHUNK_HEADER_SIZE + header.payloadLength);
|
|
2042
|
+
return { header, payload };
|
|
2043
|
+
}
|
|
2044
|
+
|
|
1857
2045
|
exports.AddChatMemberRequestSchema = AddChatMemberRequestSchema;
|
|
1858
2046
|
exports.AddChatMemberResponseSchema = AddChatMemberResponseSchema;
|
|
2047
|
+
exports.AgentBuilderConfigSchema = AgentBuilderConfigSchema;
|
|
2048
|
+
exports.AgentBuilderSchema = AgentBuilderSchema;
|
|
1859
2049
|
exports.AgentConfigValidationError = AgentConfigValidationError;
|
|
1860
2050
|
exports.AgentCustomConfigSchema = AgentCustomConfigSchema;
|
|
1861
2051
|
exports.AgentError = AgentError;
|
|
1862
2052
|
exports.AgentLoadError = AgentLoadError;
|
|
1863
2053
|
exports.AgentMetadataSchema = AgentMetadataSchema;
|
|
1864
2054
|
exports.AgentNotFoundError = AgentNotFoundError;
|
|
2055
|
+
exports.AgentPermissionsSchema = AgentPermissionsSchema;
|
|
1865
2056
|
exports.AgentSchema = AgentSchema;
|
|
1866
2057
|
exports.AgentTypeSchema = AgentTypeSchema;
|
|
1867
2058
|
exports.ApiErrorSchema = ApiErrorSchema;
|
|
@@ -1898,6 +2089,7 @@ exports.CloudSchema = CloudSchema;
|
|
|
1898
2089
|
exports.ConfirmUploadRequestSchema = ConfirmUploadRequestSchema;
|
|
1899
2090
|
exports.ConfirmUploadResponseSchema = ConfirmUploadResponseSchema;
|
|
1900
2091
|
exports.ConsumeTransactionSchema = ConsumeTransactionSchema;
|
|
2092
|
+
exports.CreateAgentBuilderRequestSchema = CreateAgentBuilderRequestSchema;
|
|
1901
2093
|
exports.CreateAgentRequestSchema = CreateAgentRequestSchema;
|
|
1902
2094
|
exports.CreateAgentResponseSchema = CreateAgentResponseSchema;
|
|
1903
2095
|
exports.CreateChatRequestSchema = CreateChatRequestSchema;
|
|
@@ -1915,6 +2107,7 @@ exports.CreditsPackageSchema = CreditsPackageSchema;
|
|
|
1915
2107
|
exports.DateSchema = DateSchema;
|
|
1916
2108
|
exports.DeleteAgentResponseSchema = DeleteAgentResponseSchema;
|
|
1917
2109
|
exports.DeleteOAuthServerResponseSchema = DeleteOAuthServerResponseSchema;
|
|
2110
|
+
exports.DeploymentVariableSchema = DeploymentVariableSchema;
|
|
1918
2111
|
exports.DisplayConfigKeysSchema = DisplayConfigKeysSchema;
|
|
1919
2112
|
exports.DisplayConfigSchema = DisplayConfigSchema;
|
|
1920
2113
|
exports.EventAckSchema = EventAckSchema;
|
|
@@ -1934,6 +2127,7 @@ exports.GetOAuthServerResponseSchema = GetOAuthServerResponseSchema;
|
|
|
1934
2127
|
exports.GetRepositoryResponseSchema = GetRepositoryResponseSchema;
|
|
1935
2128
|
exports.GetUploadUrlsRequestSchema = GetUploadUrlsRequestSchema;
|
|
1936
2129
|
exports.GetUploadUrlsResponseSchema = GetUploadUrlsResponseSchema;
|
|
2130
|
+
exports.GetUserAgentsResponseSchema = GetUserAgentsResponseSchema;
|
|
1937
2131
|
exports.GitHubIssueListItemSchema = GitHubIssueListItemSchema;
|
|
1938
2132
|
exports.GitHubIssueSchema = GitHubIssueSchema;
|
|
1939
2133
|
exports.GitServerSchema = GitServerSchema;
|
|
@@ -1967,6 +2161,8 @@ exports.MachineApprovalStatusQuerySchema = MachineApprovalStatusQuerySchema;
|
|
|
1967
2161
|
exports.MachineAuthAuthorizedResponseSchema = MachineAuthAuthorizedResponseSchema;
|
|
1968
2162
|
exports.MachineAuthRequestSchema = MachineAuthRequestSchema;
|
|
1969
2163
|
exports.MachineAuthResultQuerySchema = MachineAuthResultQuerySchema;
|
|
2164
|
+
exports.MachineRtcRequestSchema = MachineRtcRequestSchema;
|
|
2165
|
+
exports.MachineRtcResponseSchema = MachineRtcResponseSchema;
|
|
1970
2166
|
exports.MergePullRequestEventSchema = MergePullRequestEventSchema;
|
|
1971
2167
|
exports.MergeRequestEventSchema = MergeRequestEventSchema;
|
|
1972
2168
|
exports.MissingAgentFileError = MissingAgentFileError;
|
|
@@ -1986,6 +2182,7 @@ exports.PermissionResponseResponseSchema = PermissionResponseResponseSchema;
|
|
|
1986
2182
|
exports.ProjectDirectoryResponseSchema = ProjectDirectoryResponseSchema;
|
|
1987
2183
|
exports.ProjectEntrySchema = ProjectEntrySchema;
|
|
1988
2184
|
exports.QueryEventsRequestSchema = QueryEventsRequestSchema;
|
|
2185
|
+
exports.RTC_CHUNK_HEADER_SIZE = RTC_CHUNK_HEADER_SIZE;
|
|
1989
2186
|
exports.RechargeResponseSchema = RechargeResponseSchema;
|
|
1990
2187
|
exports.RemoveChatMemberRequestSchema = RemoveChatMemberRequestSchema;
|
|
1991
2188
|
exports.RepositorySchema = RepositorySchema;
|
|
@@ -1993,6 +2190,13 @@ exports.ResetSecretRequestSchema = ResetSecretRequestSchema;
|
|
|
1993
2190
|
exports.ResetSecretResponseSchema = ResetSecretResponseSchema;
|
|
1994
2191
|
exports.ResumeTaskRequestSchema = ResumeTaskRequestSchema;
|
|
1995
2192
|
exports.ResumeTaskResponseSchema = ResumeTaskResponseSchema;
|
|
2193
|
+
exports.RpcCallEventSchema = RpcCallEventSchema;
|
|
2194
|
+
exports.RpcResponseSchema = RpcResponseSchema;
|
|
2195
|
+
exports.RtcChunkFlags = RtcChunkFlags;
|
|
2196
|
+
exports.RtcIceServerSchema = RtcIceServerSchema;
|
|
2197
|
+
exports.RtcIceServersRequestSchema = RtcIceServersRequestSchema;
|
|
2198
|
+
exports.RtcIceServersResponseSchema = RtcIceServersResponseSchema;
|
|
2199
|
+
exports.RtcSignalSchema = RtcSignalSchema;
|
|
1996
2200
|
exports.ShareAuthQuerySchema = ShareAuthQuerySchema;
|
|
1997
2201
|
exports.ShareAuthResponseSchema = ShareAuthResponseSchema;
|
|
1998
2202
|
exports.ShutdownMachineSchema = ShutdownMachineSchema;
|
|
@@ -2035,14 +2239,17 @@ exports.UserProfileResponseSchema = UserProfileResponseSchema;
|
|
|
2035
2239
|
exports.UserWithOAuthAccountsSchema = UserWithOAuthAccountsSchema;
|
|
2036
2240
|
exports.WorkerAliveEventSchema = WorkerAliveEventSchema;
|
|
2037
2241
|
exports.WorkerExitSchema = WorkerExitSchema;
|
|
2242
|
+
exports.WorkerInitializedSchema = WorkerInitializedSchema;
|
|
2038
2243
|
exports.WorkerInitializingSchema = WorkerInitializingSchema;
|
|
2039
2244
|
exports.WorkerReadySchema = WorkerReadySchema;
|
|
2040
2245
|
exports.WorkerRunningSchema = WorkerRunningSchema;
|
|
2246
|
+
exports.WorkerStatusRequestSchema = WorkerStatusRequestSchema;
|
|
2041
2247
|
exports.WorkspaceFileRequestSchema = WorkspaceFileRequestSchema;
|
|
2042
2248
|
exports.WorkspaceFileResponseSchema = WorkspaceFileResponseSchema;
|
|
2043
2249
|
exports.assertAgentExists = assertAgentExists;
|
|
2044
2250
|
exports.assertFileExists = assertFileExists;
|
|
2045
2251
|
exports.baseTaskSchema = baseTaskSchema;
|
|
2252
|
+
exports.buildRtcChunkFrame = buildRtcChunkFrame;
|
|
2046
2253
|
exports.cancelTaskRequestSchema = cancelTaskRequestSchema;
|
|
2047
2254
|
exports.cancelTaskSchema = cancelTaskSchema;
|
|
2048
2255
|
exports.createEventId = createEventId;
|
|
@@ -2051,6 +2258,7 @@ exports.createKeyPairWithUit8Array = createKeyPairWithUit8Array;
|
|
|
2051
2258
|
exports.createMergeRequestSchema = createMergeRequestSchema;
|
|
2052
2259
|
exports.createTaskSchema = createTaskSchema;
|
|
2053
2260
|
exports.decodeBase64 = decodeBase64;
|
|
2261
|
+
exports.decodeRtcChunkHeader = decodeRtcChunkHeader;
|
|
2054
2262
|
exports.decryptAES = decryptAES;
|
|
2055
2263
|
exports.decryptFileContent = decryptFileContent;
|
|
2056
2264
|
exports.decryptMachineEncryptionKey = decryptMachineEncryptionKey;
|
|
@@ -2059,6 +2267,7 @@ exports.decryptWithEphemeralKey = decryptWithEphemeralKey;
|
|
|
2059
2267
|
exports.discoverPlugins = discoverPlugins;
|
|
2060
2268
|
exports.encodeBase64 = encodeBase64;
|
|
2061
2269
|
exports.encodeBase64Url = encodeBase64Url;
|
|
2270
|
+
exports.encodeRtcChunkHeader = encodeRtcChunkHeader;
|
|
2062
2271
|
exports.encryptAES = encryptAES;
|
|
2063
2272
|
exports.encryptFileContent = encryptFileContent;
|
|
2064
2273
|
exports.encryptMachineEncryptionKey = encryptMachineEncryptionKey;
|
|
@@ -2078,6 +2287,7 @@ exports.replacePromptPlaceholders = replacePromptPlaceholders;
|
|
|
2078
2287
|
exports.resumeTaskRequestSchema = resumeTaskRequestSchema;
|
|
2079
2288
|
exports.resumeTaskSchema = resumeTaskSchema;
|
|
2080
2289
|
exports.setAgentContext = setAgentContext;
|
|
2290
|
+
exports.splitRtcChunkFrame = splitRtcChunkFrame;
|
|
2081
2291
|
exports.startTaskSchema = startTaskSchema;
|
|
2082
2292
|
exports.stopTaskRequestSchema = stopTaskRequestSchema;
|
|
2083
2293
|
exports.userAuth = userAuth;
|