@kmmao/happy-wire 0.11.12 → 0.11.13
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 +224 -0
- package/dist/index.d.cts +42 -36
- package/dist/index.d.mts +42 -36
- package/dist/index.mjs +224 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1328,6 +1328,229 @@ const ResolvedRuntimeProfileSchema = z.z.object({
|
|
|
1328
1328
|
defaultPermissionMode: DefaultPermissionModeSchema.optional(),
|
|
1329
1329
|
defaultModelMode: z.z.string().optional()
|
|
1330
1330
|
});
|
|
1331
|
+
function getBuiltInAIBackendProfile(id) {
|
|
1332
|
+
switch (id) {
|
|
1333
|
+
case "anthropic":
|
|
1334
|
+
return {
|
|
1335
|
+
id: "anthropic",
|
|
1336
|
+
name: "Anthropic (Default)",
|
|
1337
|
+
anthropicConfig: {},
|
|
1338
|
+
environmentVariables: [],
|
|
1339
|
+
defaultPermissionMode: "default",
|
|
1340
|
+
compatibility: { claude: true, codex: false, gemini: false },
|
|
1341
|
+
isBuiltIn: true,
|
|
1342
|
+
createdAt: Date.now(),
|
|
1343
|
+
updatedAt: Date.now(),
|
|
1344
|
+
version: "1.0.0"
|
|
1345
|
+
};
|
|
1346
|
+
case "deepseek":
|
|
1347
|
+
return {
|
|
1348
|
+
id: "deepseek",
|
|
1349
|
+
name: "DeepSeek (Reasoner)",
|
|
1350
|
+
anthropicConfig: {},
|
|
1351
|
+
environmentVariables: [
|
|
1352
|
+
{
|
|
1353
|
+
name: "ANTHROPIC_BASE_URL",
|
|
1354
|
+
value: "${DEEPSEEK_BASE_URL:-https://api.deepseek.com/anthropic}"
|
|
1355
|
+
},
|
|
1356
|
+
{ name: "ANTHROPIC_AUTH_TOKEN", value: "${DEEPSEEK_AUTH_TOKEN}" },
|
|
1357
|
+
{
|
|
1358
|
+
name: "API_TIMEOUT_MS",
|
|
1359
|
+
value: "${DEEPSEEK_API_TIMEOUT_MS:-600000}"
|
|
1360
|
+
},
|
|
1361
|
+
{
|
|
1362
|
+
name: "ANTHROPIC_MODEL",
|
|
1363
|
+
value: "${DEEPSEEK_MODEL:-deepseek-reasoner}"
|
|
1364
|
+
},
|
|
1365
|
+
{
|
|
1366
|
+
name: "ANTHROPIC_SMALL_FAST_MODEL",
|
|
1367
|
+
value: "${DEEPSEEK_SMALL_FAST_MODEL:-deepseek-chat}"
|
|
1368
|
+
},
|
|
1369
|
+
{
|
|
1370
|
+
name: "CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC",
|
|
1371
|
+
value: "${DEEPSEEK_CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC:-1}"
|
|
1372
|
+
}
|
|
1373
|
+
],
|
|
1374
|
+
defaultPermissionMode: "default",
|
|
1375
|
+
compatibility: { claude: true, codex: false, gemini: false },
|
|
1376
|
+
isBuiltIn: true,
|
|
1377
|
+
createdAt: Date.now(),
|
|
1378
|
+
updatedAt: Date.now(),
|
|
1379
|
+
version: "1.0.0"
|
|
1380
|
+
};
|
|
1381
|
+
case "zai":
|
|
1382
|
+
return {
|
|
1383
|
+
id: "zai",
|
|
1384
|
+
name: "Z.AI (GLM-4.6)",
|
|
1385
|
+
anthropicConfig: {},
|
|
1386
|
+
environmentVariables: [
|
|
1387
|
+
{
|
|
1388
|
+
name: "ANTHROPIC_BASE_URL",
|
|
1389
|
+
value: "${Z_AI_BASE_URL:-https://api.z.ai/api/anthropic}"
|
|
1390
|
+
},
|
|
1391
|
+
{ name: "ANTHROPIC_AUTH_TOKEN", value: "${Z_AI_AUTH_TOKEN}" },
|
|
1392
|
+
{ name: "API_TIMEOUT_MS", value: "${Z_AI_API_TIMEOUT_MS:-3000000}" },
|
|
1393
|
+
{ name: "ANTHROPIC_MODEL", value: "${Z_AI_MODEL:-GLM-4.6}" },
|
|
1394
|
+
{
|
|
1395
|
+
name: "ANTHROPIC_DEFAULT_OPUS_MODEL",
|
|
1396
|
+
value: "${Z_AI_OPUS_MODEL:-GLM-4.6}"
|
|
1397
|
+
},
|
|
1398
|
+
{
|
|
1399
|
+
name: "ANTHROPIC_DEFAULT_SONNET_MODEL",
|
|
1400
|
+
value: "${Z_AI_SONNET_MODEL:-GLM-4.6}"
|
|
1401
|
+
},
|
|
1402
|
+
{
|
|
1403
|
+
name: "ANTHROPIC_DEFAULT_HAIKU_MODEL",
|
|
1404
|
+
value: "${Z_AI_HAIKU_MODEL:-GLM-4.5-Air}"
|
|
1405
|
+
}
|
|
1406
|
+
],
|
|
1407
|
+
defaultPermissionMode: "default",
|
|
1408
|
+
compatibility: { claude: true, codex: false, gemini: false },
|
|
1409
|
+
isBuiltIn: true,
|
|
1410
|
+
createdAt: Date.now(),
|
|
1411
|
+
updatedAt: Date.now(),
|
|
1412
|
+
version: "1.0.0"
|
|
1413
|
+
};
|
|
1414
|
+
case "openai":
|
|
1415
|
+
return {
|
|
1416
|
+
id: "openai",
|
|
1417
|
+
name: "OpenAI (GPT-5.4)",
|
|
1418
|
+
openaiConfig: {},
|
|
1419
|
+
environmentVariables: [
|
|
1420
|
+
{ name: "OPENAI_BASE_URL", value: "https://api.openai.com/v1" },
|
|
1421
|
+
{ name: "OPENAI_MODEL", value: "gpt-5.4" },
|
|
1422
|
+
{ name: "OPENAI_API_TIMEOUT_MS", value: "600000" },
|
|
1423
|
+
{ name: "OPENAI_SMALL_FAST_MODEL", value: "gpt-5.4" },
|
|
1424
|
+
{ name: "API_TIMEOUT_MS", value: "600000" },
|
|
1425
|
+
{ name: "CODEX_SMALL_FAST_MODEL", value: "gpt-5.4" }
|
|
1426
|
+
],
|
|
1427
|
+
compatibility: { claude: false, codex: true, gemini: false },
|
|
1428
|
+
isBuiltIn: true,
|
|
1429
|
+
createdAt: Date.now(),
|
|
1430
|
+
updatedAt: Date.now(),
|
|
1431
|
+
version: "1.0.0"
|
|
1432
|
+
};
|
|
1433
|
+
case "azure-openai":
|
|
1434
|
+
return {
|
|
1435
|
+
id: "azure-openai",
|
|
1436
|
+
name: "Azure OpenAI",
|
|
1437
|
+
azureOpenAIConfig: {},
|
|
1438
|
+
environmentVariables: [
|
|
1439
|
+
{ name: "AZURE_OPENAI_API_VERSION", value: "2024-02-15-preview" },
|
|
1440
|
+
{ name: "AZURE_OPENAI_DEPLOYMENT_NAME", value: "gpt-5.4" },
|
|
1441
|
+
{ name: "OPENAI_API_TIMEOUT_MS", value: "600000" },
|
|
1442
|
+
{ name: "API_TIMEOUT_MS", value: "600000" }
|
|
1443
|
+
],
|
|
1444
|
+
compatibility: { claude: false, codex: true, gemini: false },
|
|
1445
|
+
isBuiltIn: true,
|
|
1446
|
+
createdAt: Date.now(),
|
|
1447
|
+
updatedAt: Date.now(),
|
|
1448
|
+
version: "1.0.0"
|
|
1449
|
+
};
|
|
1450
|
+
case "minimax":
|
|
1451
|
+
return {
|
|
1452
|
+
id: "minimax",
|
|
1453
|
+
name: "MiniMax (M2.7)",
|
|
1454
|
+
anthropicConfig: {},
|
|
1455
|
+
environmentVariables: [
|
|
1456
|
+
{
|
|
1457
|
+
name: "ANTHROPIC_BASE_URL",
|
|
1458
|
+
value: "${MINIMAX_BASE_URL:-https://api.minimaxi.com/anthropic}"
|
|
1459
|
+
},
|
|
1460
|
+
{
|
|
1461
|
+
name: "ANTHROPIC_AUTH_TOKEN",
|
|
1462
|
+
value: "${MINIMAX_AUTH_TOKEN}"
|
|
1463
|
+
},
|
|
1464
|
+
{
|
|
1465
|
+
name: "API_TIMEOUT_MS",
|
|
1466
|
+
value: "${MINIMAX_API_TIMEOUT_MS:-3000000}"
|
|
1467
|
+
},
|
|
1468
|
+
{
|
|
1469
|
+
name: "ANTHROPIC_MODEL",
|
|
1470
|
+
value: "${MINIMAX_MODEL:-MiniMax-M2.7}"
|
|
1471
|
+
},
|
|
1472
|
+
{
|
|
1473
|
+
name: "ANTHROPIC_SMALL_FAST_MODEL",
|
|
1474
|
+
value: "${MINIMAX_SMALL_FAST_MODEL:-MiniMax-M2.7-highspeed}"
|
|
1475
|
+
},
|
|
1476
|
+
{
|
|
1477
|
+
name: "ANTHROPIC_DEFAULT_OPUS_MODEL",
|
|
1478
|
+
value: "${MINIMAX_OPUS_MODEL:-MiniMax-M2.7}"
|
|
1479
|
+
},
|
|
1480
|
+
{
|
|
1481
|
+
name: "ANTHROPIC_DEFAULT_SONNET_MODEL",
|
|
1482
|
+
value: "${MINIMAX_SONNET_MODEL:-MiniMax-M2.7}"
|
|
1483
|
+
},
|
|
1484
|
+
{
|
|
1485
|
+
name: "ANTHROPIC_DEFAULT_HAIKU_MODEL",
|
|
1486
|
+
value: "${MINIMAX_HAIKU_MODEL:-MiniMax-M2.7-highspeed}"
|
|
1487
|
+
},
|
|
1488
|
+
{
|
|
1489
|
+
name: "CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC",
|
|
1490
|
+
value: "1"
|
|
1491
|
+
}
|
|
1492
|
+
],
|
|
1493
|
+
defaultPermissionMode: "default",
|
|
1494
|
+
compatibility: { claude: true, codex: false, gemini: false },
|
|
1495
|
+
isBuiltIn: true,
|
|
1496
|
+
createdAt: Date.now(),
|
|
1497
|
+
updatedAt: Date.now(),
|
|
1498
|
+
version: "1.0.0"
|
|
1499
|
+
};
|
|
1500
|
+
case "kimi":
|
|
1501
|
+
return {
|
|
1502
|
+
id: "kimi",
|
|
1503
|
+
name: "Kimi (K2.5)",
|
|
1504
|
+
anthropicConfig: {},
|
|
1505
|
+
environmentVariables: [
|
|
1506
|
+
{
|
|
1507
|
+
name: "ANTHROPIC_BASE_URL",
|
|
1508
|
+
value: "${KIMI_BASE_URL:-https://api.moonshot.ai/anthropic}"
|
|
1509
|
+
},
|
|
1510
|
+
{
|
|
1511
|
+
name: "ANTHROPIC_AUTH_TOKEN",
|
|
1512
|
+
value: "${KIMI_AUTH_TOKEN}"
|
|
1513
|
+
},
|
|
1514
|
+
{
|
|
1515
|
+
name: "API_TIMEOUT_MS",
|
|
1516
|
+
value: "${KIMI_API_TIMEOUT_MS:-3000000}"
|
|
1517
|
+
},
|
|
1518
|
+
{
|
|
1519
|
+
name: "ANTHROPIC_MODEL",
|
|
1520
|
+
value: "${KIMI_MODEL:-kimi-k2.5}"
|
|
1521
|
+
},
|
|
1522
|
+
{
|
|
1523
|
+
name: "ANTHROPIC_SMALL_FAST_MODEL",
|
|
1524
|
+
value: "${KIMI_SMALL_FAST_MODEL:-kimi-k2.5}"
|
|
1525
|
+
},
|
|
1526
|
+
{
|
|
1527
|
+
name: "ANTHROPIC_DEFAULT_OPUS_MODEL",
|
|
1528
|
+
value: "${KIMI_OPUS_MODEL:-kimi-k2.5}"
|
|
1529
|
+
},
|
|
1530
|
+
{
|
|
1531
|
+
name: "ANTHROPIC_DEFAULT_SONNET_MODEL",
|
|
1532
|
+
value: "${KIMI_SONNET_MODEL:-kimi-k2.5}"
|
|
1533
|
+
},
|
|
1534
|
+
{
|
|
1535
|
+
name: "ANTHROPIC_DEFAULT_HAIKU_MODEL",
|
|
1536
|
+
value: "${KIMI_HAIKU_MODEL:-kimi-k2.5}"
|
|
1537
|
+
},
|
|
1538
|
+
{
|
|
1539
|
+
name: "ENABLE_TOOL_SEARCH",
|
|
1540
|
+
value: "${KIMI_ENABLE_TOOL_SEARCH:-false}"
|
|
1541
|
+
}
|
|
1542
|
+
],
|
|
1543
|
+
defaultPermissionMode: "default",
|
|
1544
|
+
compatibility: { claude: true, codex: false, gemini: false },
|
|
1545
|
+
isBuiltIn: true,
|
|
1546
|
+
createdAt: Date.now(),
|
|
1547
|
+
updatedAt: Date.now(),
|
|
1548
|
+
version: "1.0.0"
|
|
1549
|
+
};
|
|
1550
|
+
default:
|
|
1551
|
+
return null;
|
|
1552
|
+
}
|
|
1553
|
+
}
|
|
1331
1554
|
function validateProfileForAgent(profile, agent) {
|
|
1332
1555
|
return profile.compatibility[agent];
|
|
1333
1556
|
}
|
|
@@ -1866,6 +2089,7 @@ exports.WorldAutonomyPolicySchema = WorldAutonomyPolicySchema;
|
|
|
1866
2089
|
exports.WorldSuggestionUpdatedSchema = WorldSuggestionUpdatedSchema;
|
|
1867
2090
|
exports.createEnvelope = createEnvelope;
|
|
1868
2091
|
exports.createResolvedRuntimeProfile = createResolvedRuntimeProfile;
|
|
2092
|
+
exports.getBuiltInAIBackendProfile = getBuiltInAIBackendProfile;
|
|
1869
2093
|
exports.getHappyMcpToolAction = getHappyMcpToolAction;
|
|
1870
2094
|
exports.getHappyMcpToolAliases = getHappyMcpToolAliases;
|
|
1871
2095
|
exports.getHappyMcpToolTitle = getHappyMcpToolTitle;
|
package/dist/index.d.cts
CHANGED
|
@@ -177,8 +177,8 @@ declare const SessionProtocolMessageSchema: z.ZodObject<{
|
|
|
177
177
|
}, z.core.$strip>, z.ZodObject<{
|
|
178
178
|
t: z.ZodLiteral<"session-state-changed">;
|
|
179
179
|
state: z.ZodEnum<{
|
|
180
|
-
running: "running";
|
|
181
180
|
idle: "idle";
|
|
181
|
+
running: "running";
|
|
182
182
|
requires_action: "requires_action";
|
|
183
183
|
}>;
|
|
184
184
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -423,8 +423,8 @@ declare const MessageContentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
423
423
|
}, z.core.$strip>, z.ZodObject<{
|
|
424
424
|
t: z.ZodLiteral<"session-state-changed">;
|
|
425
425
|
state: z.ZodEnum<{
|
|
426
|
-
running: "running";
|
|
427
426
|
idle: "idle";
|
|
427
|
+
running: "running";
|
|
428
428
|
requires_action: "requires_action";
|
|
429
429
|
}>;
|
|
430
430
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -1041,8 +1041,8 @@ declare const sessionNeedsContinueEventSchema: z.ZodObject<{
|
|
|
1041
1041
|
declare const sessionStateChangedEventSchema: z.ZodObject<{
|
|
1042
1042
|
t: z.ZodLiteral<"session-state-changed">;
|
|
1043
1043
|
state: z.ZodEnum<{
|
|
1044
|
-
running: "running";
|
|
1045
1044
|
idle: "idle";
|
|
1045
|
+
running: "running";
|
|
1046
1046
|
requires_action: "requires_action";
|
|
1047
1047
|
}>;
|
|
1048
1048
|
}, z.core.$strip>;
|
|
@@ -1203,8 +1203,8 @@ declare const sessionEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1203
1203
|
}, z.core.$strip>, z.ZodObject<{
|
|
1204
1204
|
t: z.ZodLiteral<"session-state-changed">;
|
|
1205
1205
|
state: z.ZodEnum<{
|
|
1206
|
-
running: "running";
|
|
1207
1206
|
idle: "idle";
|
|
1207
|
+
running: "running";
|
|
1208
1208
|
requires_action: "requires_action";
|
|
1209
1209
|
}>;
|
|
1210
1210
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -1367,8 +1367,8 @@ declare const sessionEnvelopeSchema: z.ZodObject<{
|
|
|
1367
1367
|
}, z.core.$strip>, z.ZodObject<{
|
|
1368
1368
|
t: z.ZodLiteral<"session-state-changed">;
|
|
1369
1369
|
state: z.ZodEnum<{
|
|
1370
|
-
running: "running";
|
|
1371
1370
|
idle: "idle";
|
|
1371
|
+
running: "running";
|
|
1372
1372
|
requires_action: "requires_action";
|
|
1373
1373
|
}>;
|
|
1374
1374
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -1541,12 +1541,12 @@ declare const AutomationJobKindSchema: z.ZodEnum<{
|
|
|
1541
1541
|
}>;
|
|
1542
1542
|
type AutomationJobKind = z.infer<typeof AutomationJobKindSchema>;
|
|
1543
1543
|
declare const AutomationJobStatusSchema: z.ZodEnum<{
|
|
1544
|
-
queued: "queued";
|
|
1545
|
-
dispatching: "dispatching";
|
|
1546
|
-
running: "running";
|
|
1547
1544
|
completed: "completed";
|
|
1548
1545
|
failed: "failed";
|
|
1549
1546
|
cancelled: "cancelled";
|
|
1547
|
+
running: "running";
|
|
1548
|
+
queued: "queued";
|
|
1549
|
+
dispatching: "dispatching";
|
|
1550
1550
|
}>;
|
|
1551
1551
|
type AutomationJobStatus = z.infer<typeof AutomationJobStatusSchema>;
|
|
1552
1552
|
declare const AutomationJobSummarySchema: z.ZodObject<{
|
|
@@ -1558,12 +1558,12 @@ declare const AutomationJobSummarySchema: z.ZodObject<{
|
|
|
1558
1558
|
task: "task";
|
|
1559
1559
|
}>;
|
|
1560
1560
|
status: z.ZodEnum<{
|
|
1561
|
-
queued: "queued";
|
|
1562
|
-
dispatching: "dispatching";
|
|
1563
|
-
running: "running";
|
|
1564
1561
|
completed: "completed";
|
|
1565
1562
|
failed: "failed";
|
|
1566
1563
|
cancelled: "cancelled";
|
|
1564
|
+
running: "running";
|
|
1565
|
+
queued: "queued";
|
|
1566
|
+
dispatching: "dispatching";
|
|
1567
1567
|
}>;
|
|
1568
1568
|
priority: z.ZodEnum<{
|
|
1569
1569
|
user: "user";
|
|
@@ -1721,12 +1721,12 @@ declare const AutomationStateSchema: z.ZodObject<{
|
|
|
1721
1721
|
task: "task";
|
|
1722
1722
|
}>;
|
|
1723
1723
|
status: z.ZodEnum<{
|
|
1724
|
-
queued: "queued";
|
|
1725
|
-
dispatching: "dispatching";
|
|
1726
|
-
running: "running";
|
|
1727
1724
|
completed: "completed";
|
|
1728
1725
|
failed: "failed";
|
|
1729
1726
|
cancelled: "cancelled";
|
|
1727
|
+
running: "running";
|
|
1728
|
+
queued: "queued";
|
|
1729
|
+
dispatching: "dispatching";
|
|
1730
1730
|
}>;
|
|
1731
1731
|
priority: z.ZodEnum<{
|
|
1732
1732
|
user: "user";
|
|
@@ -1963,12 +1963,12 @@ declare const DaemonStateSchema: z.ZodObject<{
|
|
|
1963
1963
|
task: "task";
|
|
1964
1964
|
}>;
|
|
1965
1965
|
status: z.ZodEnum<{
|
|
1966
|
-
queued: "queued";
|
|
1967
|
-
dispatching: "dispatching";
|
|
1968
|
-
running: "running";
|
|
1969
1966
|
completed: "completed";
|
|
1970
1967
|
failed: "failed";
|
|
1971
1968
|
cancelled: "cancelled";
|
|
1969
|
+
running: "running";
|
|
1970
|
+
queued: "queued";
|
|
1971
|
+
dispatching: "dispatching";
|
|
1972
1972
|
}>;
|
|
1973
1973
|
priority: z.ZodEnum<{
|
|
1974
1974
|
user: "user";
|
|
@@ -2125,9 +2125,9 @@ declare const KnowledgeEntryTypeSchema: z.ZodEnum<{
|
|
|
2125
2125
|
}>;
|
|
2126
2126
|
type KnowledgeEntryType = z.infer<typeof KnowledgeEntryTypeSchema>;
|
|
2127
2127
|
declare const KnowledgeContributorTypeSchema: z.ZodEnum<{
|
|
2128
|
+
session: "session";
|
|
2128
2129
|
user: "user";
|
|
2129
2130
|
supervisor: "supervisor";
|
|
2130
|
-
session: "session";
|
|
2131
2131
|
}>;
|
|
2132
2132
|
type KnowledgeContributorType = z.infer<typeof KnowledgeContributorTypeSchema>;
|
|
2133
2133
|
declare const KnowledgeActionSchema: z.ZodEnum<{
|
|
@@ -2158,9 +2158,9 @@ declare const CreateKnowledgeEntryBodySchema: z.ZodObject<{
|
|
|
2158
2158
|
warning: "warning";
|
|
2159
2159
|
}>;
|
|
2160
2160
|
contributorType: z.ZodEnum<{
|
|
2161
|
+
session: "session";
|
|
2161
2162
|
user: "user";
|
|
2162
2163
|
supervisor: "supervisor";
|
|
2163
|
-
session: "session";
|
|
2164
2164
|
}>;
|
|
2165
2165
|
action: z.ZodEnum<{
|
|
2166
2166
|
create: "create";
|
|
@@ -2475,12 +2475,12 @@ declare const TaskPrioritySchema: z.ZodEnum<{
|
|
|
2475
2475
|
}>;
|
|
2476
2476
|
type TaskPriority = z.infer<typeof TaskPrioritySchema>;
|
|
2477
2477
|
declare const TaskStatusSchema: z.ZodEnum<{
|
|
2478
|
-
queued: "queued";
|
|
2479
|
-
dispatching: "dispatching";
|
|
2480
|
-
running: "running";
|
|
2481
2478
|
completed: "completed";
|
|
2482
2479
|
failed: "failed";
|
|
2483
2480
|
cancelled: "cancelled";
|
|
2481
|
+
running: "running";
|
|
2482
|
+
queued: "queued";
|
|
2483
|
+
dispatching: "dispatching";
|
|
2484
2484
|
}>;
|
|
2485
2485
|
type TaskStatus = z.infer<typeof TaskStatusSchema>;
|
|
2486
2486
|
declare const TaskTriggerTypeSchema: z.ZodEnum<{
|
|
@@ -2499,12 +2499,12 @@ declare const TaskSummarySchema: z.ZodObject<{
|
|
|
2499
2499
|
background: "background";
|
|
2500
2500
|
}>;
|
|
2501
2501
|
status: z.ZodEnum<{
|
|
2502
|
-
queued: "queued";
|
|
2503
|
-
dispatching: "dispatching";
|
|
2504
|
-
running: "running";
|
|
2505
2502
|
completed: "completed";
|
|
2506
2503
|
failed: "failed";
|
|
2507
2504
|
cancelled: "cancelled";
|
|
2505
|
+
running: "running";
|
|
2506
|
+
queued: "queued";
|
|
2507
|
+
dispatching: "dispatching";
|
|
2508
2508
|
}>;
|
|
2509
2509
|
triggerType: z.ZodEnum<{
|
|
2510
2510
|
webhook: "webhook";
|
|
@@ -2566,12 +2566,12 @@ type TaskOutcome = z.infer<typeof TaskOutcomeSchema>;
|
|
|
2566
2566
|
declare const TaskStatusReportSchema: z.ZodObject<{
|
|
2567
2567
|
taskId: z.ZodString;
|
|
2568
2568
|
status: z.ZodEnum<{
|
|
2569
|
-
queued: "queued";
|
|
2570
|
-
dispatching: "dispatching";
|
|
2571
|
-
running: "running";
|
|
2572
2569
|
completed: "completed";
|
|
2573
2570
|
failed: "failed";
|
|
2574
2571
|
cancelled: "cancelled";
|
|
2572
|
+
running: "running";
|
|
2573
|
+
queued: "queued";
|
|
2574
|
+
dispatching: "dispatching";
|
|
2575
2575
|
}>;
|
|
2576
2576
|
outcome: z.ZodOptional<z.ZodEnum<{
|
|
2577
2577
|
completed: "completed";
|
|
@@ -2587,12 +2587,12 @@ declare const TaskStatusChangedSchema: z.ZodObject<{
|
|
|
2587
2587
|
taskId: z.ZodString;
|
|
2588
2588
|
machineId: z.ZodOptional<z.ZodString>;
|
|
2589
2589
|
status: z.ZodEnum<{
|
|
2590
|
-
queued: "queued";
|
|
2591
|
-
dispatching: "dispatching";
|
|
2592
|
-
running: "running";
|
|
2593
2590
|
completed: "completed";
|
|
2594
2591
|
failed: "failed";
|
|
2595
2592
|
cancelled: "cancelled";
|
|
2593
|
+
running: "running";
|
|
2594
|
+
queued: "queued";
|
|
2595
|
+
dispatching: "dispatching";
|
|
2596
2596
|
}>;
|
|
2597
2597
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
2598
2598
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
@@ -2637,10 +2637,10 @@ declare const SkillContentSchema: z.ZodObject<{
|
|
|
2637
2637
|
type SkillContent = z.infer<typeof SkillContentSchema>;
|
|
2638
2638
|
|
|
2639
2639
|
declare const InboxCategorySchema: z.ZodEnum<{
|
|
2640
|
+
session: "session";
|
|
2640
2641
|
supervisor: "supervisor";
|
|
2641
2642
|
task: "task";
|
|
2642
2643
|
trigger: "trigger";
|
|
2643
|
-
session: "session";
|
|
2644
2644
|
knowledge: "knowledge";
|
|
2645
2645
|
system: "system";
|
|
2646
2646
|
}>;
|
|
@@ -2654,10 +2654,10 @@ type InboxSeverity = z.infer<typeof InboxSeveritySchema>;
|
|
|
2654
2654
|
declare const InboxItemSummarySchema: z.ZodObject<{
|
|
2655
2655
|
id: z.ZodString;
|
|
2656
2656
|
category: z.ZodEnum<{
|
|
2657
|
+
session: "session";
|
|
2657
2658
|
supervisor: "supervisor";
|
|
2658
2659
|
task: "task";
|
|
2659
2660
|
trigger: "trigger";
|
|
2660
|
-
session: "session";
|
|
2661
2661
|
knowledge: "knowledge";
|
|
2662
2662
|
system: "system";
|
|
2663
2663
|
}>;
|
|
@@ -2682,10 +2682,10 @@ declare const InboxNewItemSchema: z.ZodObject<{
|
|
|
2682
2682
|
item: z.ZodObject<{
|
|
2683
2683
|
id: z.ZodString;
|
|
2684
2684
|
category: z.ZodEnum<{
|
|
2685
|
+
session: "session";
|
|
2685
2686
|
supervisor: "supervisor";
|
|
2686
2687
|
task: "task";
|
|
2687
2688
|
trigger: "trigger";
|
|
2688
|
-
session: "session";
|
|
2689
2689
|
knowledge: "knowledge";
|
|
2690
2690
|
system: "system";
|
|
2691
2691
|
}>;
|
|
@@ -2872,8 +2872,8 @@ type SuggestionAutoAcceptFailureDetail = typeof SUGGESTION_AUTO_ACCEPT_FAILURE_D
|
|
|
2872
2872
|
declare const EVIDENCE_KINDS: readonly ["goal", "task", "decision", "message", "narrative"];
|
|
2873
2873
|
declare const SuggestionEvidenceSchema: z$1.ZodObject<{
|
|
2874
2874
|
kind: z$1.ZodEnum<{
|
|
2875
|
-
task: "task";
|
|
2876
2875
|
message: "message";
|
|
2876
|
+
task: "task";
|
|
2877
2877
|
decision: "decision";
|
|
2878
2878
|
goal: "goal";
|
|
2879
2879
|
narrative: "narrative";
|
|
@@ -3434,6 +3434,12 @@ declare const ResolvedRuntimeProfileSchema: z$1.ZodObject<{
|
|
|
3434
3434
|
defaultModelMode: z$1.ZodOptional<z$1.ZodString>;
|
|
3435
3435
|
}, z$1.core.$strip>;
|
|
3436
3436
|
type ResolvedRuntimeProfile = z$1.infer<typeof ResolvedRuntimeProfileSchema>;
|
|
3437
|
+
/**
|
|
3438
|
+
* Shared built-in profile defaults used across App / Server / CLI.
|
|
3439
|
+
* Keep this as the single source of truth so non-App flows (scheduler/webhook)
|
|
3440
|
+
* can still resolve the full runtime semantics for built-in profiles.
|
|
3441
|
+
*/
|
|
3442
|
+
declare function getBuiltInAIBackendProfile(id: string): AIBackendProfile | null;
|
|
3437
3443
|
declare function validateProfileForAgent(profile: AIBackendProfile, agent: "claude" | "codex" | "gemini"): boolean;
|
|
3438
3444
|
declare function getProfileEnvironmentVariables(profile: AIBackendProfile): Record<string, string>;
|
|
3439
3445
|
interface CreateResolvedRuntimeProfileOptions {
|
|
@@ -3605,5 +3611,5 @@ declare function shouldHideSuccessfulHappyMcpTool(toolName: string | null | unde
|
|
|
3605
3611
|
declare function shouldAutoApproveHappyMcpToolName(toolName: string | null | undefined): boolean;
|
|
3606
3612
|
declare function shouldAutoApproveHappyMcpReason(reason: string | null | undefined): boolean;
|
|
3607
3613
|
|
|
3608
|
-
export { AGENT_MSG_PRIORITIES, AGENT_MSG_STATUSES, AGENT_MSG_TYPES, AIBackendProfileSchema, AcceptBodySchema, AgentLoopSummarySchema, AgentMessageSchema, AgentMessageSummarySchema, AgentMsgTypeSchema, AnthropicConfigSchema, ApiMessageSchema, ApiUpdateMachineStateSchema, ApiUpdateNewMessageSchema, ApiUpdateSessionStateSchema, AutoDreamProfileSummarySchema, AutomationAuditEventSummarySchema, AutomationAuditStatsSchema, AutomationCountsSchema, AutomationGuardianSummarySchema, AutomationGuardianUsageSummarySchema, AutomationJobKindSchema, AutomationJobStatusSchema, AutomationJobSummarySchema, AutomationPrioritySchema, AutomationStateSchema, AutonomyStatsRecentActionSchema, AutonomyStatsSchema, AzureOpenAIConfigSchema, BUILT_IN_AI_BACKEND_PROFILE_IDS, BootstrapProfileSummarySchema, BriefMessageSchema, BuiltInAIBackendProfileIdSchema, CliInstallInfoSchema, CliInstallSourceSchema, CodexConfigSchema, CoreUpdateBodySchema, CoreUpdateContainerSchema, CreateKnowledgeEntryBodySchema, CreateSkillBodySchema, CreateTaskBodySchema, CrossProjectSearchResponseSchema, CrossProjectSearchResultSchema, CustomModelSchema, DaemonStateSchema, DefaultPermissionModeSchema, EVIDENCE_KINDS, EnvironmentVariableSchema, HAPPY_MCP_AUTO_APPROVE_TOOL_NAMES, HAPPY_MCP_SILENT_SUCCESS_TOOL_NAMES, HAPPY_MCP_TOOL_NAMES, HAPPY_MCP_TOOL_SPECS, InboxCategorySchema, InboxItemSummarySchema, InboxNewItemSchema, InboxSeveritySchema, InboxUnreadCountSchema, KnowledgeActionSchema, KnowledgeChainEntrySchema, KnowledgeChainRelationSchema, KnowledgeChainResponseSchema, KnowledgeConfidenceSchema, KnowledgeContributorTypeSchema, KnowledgeEntryTypeSchema, KnowledgeInjectionModeSchema, KnowledgeInjectionRequestSchema, KnowledgeInjectionResponseSchema, KnowledgeStatusSchema, LegacyMessageContentSchema, MachineMetadataSchema, MessageContentSchema, MessageMetaSchema, OpenAIConfigSchema, ProfileCompatibilitySchema, ProjectProfileSchema, QueryKnowledgeParamsSchema, RESOLVED_RUNTIME_PROFILE_SCHEMA_VERSION, ResolvedRuntimeProfileSchema, RuntimeProfileSourceSchema, RuntimeProfileTrustSchema, SUGGESTION_ACCEPT_AUDIT_RULES, SUGGESTION_ACCEPT_SOURCES, SUGGESTION_AUTO_ACCEPT_FAILURE_DETAILS, SUGGESTION_AUTO_ACCEPT_REASON_CODES, SUGGESTION_AUTO_ACCEPT_STATUSES, SUGGESTION_BUCKETS, SUGGESTION_STATUSES, SUGGESTION_TYPES, SUPERVISOR_MODES, SessionEventCreatedSchema, SessionEventReportSchema, SessionEventSummarySchema, SessionEventTypeSchema, SessionMessageContentSchema, SessionMessageSchema, SessionProtocolMessageSchema, SkillContentSchema, SkillSummarySchema, SuggestionAcceptAuditSchema, SuggestionDecisionPayloadSchema, SuggestionEvidenceSchema, SuggestionGoalPayloadSchema, SuggestionPayloadSchema, SuggestionSkillPayloadSchema, SuggestionTaskPayloadSchema, TailscaleInfoSchema, TailscaleServeEntrySchema, TaskOutcomeSchema, TaskPrioritySchema, TaskStatusChangedSchema, TaskStatusReportSchema, TaskStatusSchema, TaskSummarySchema, TaskTriggerDataSchema, TaskTriggerTypeSchema, TmuxConfigSchema, TogetherAIConfigSchema, TunnelEntrySchema, TunnelProviderInfoSchema, TunnelStateSchema, TurnKnowledgeExtractionSchema, UpdateBodySchema, UpdateKnowledgeEntryBodySchema, UpdateMachineBodySchema, UpdateNewMessageBodySchema, UpdateSchema, UpdateSessionBodySchema, UpdateSkillBodySchema, UserMessageSchema, VersionedEncryptedValueSchema, VersionedMachineEncryptedValueSchema, VersionedNullableEncryptedValueSchema, VoiceTokenAllowedSchema, VoiceTokenDeniedSchema, VoiceTokenResponseSchema, WorldAutonomyPolicySchema, WorldSuggestionUpdatedSchema, createEnvelope, createResolvedRuntimeProfile, getHappyMcpToolAction, getHappyMcpToolAliases, getHappyMcpToolTitle, getProfileEnvironmentVariables, getSuggestionPayloadSchema, isHappyMcpToolAlias, isHappyMcpToolName, isTrustedRuntimeProfile, normalizeHappyMcpToolName, normalizeResolvedRuntimeProfile, sessionContextUsageCategorySchema, sessionContextUsageEventSchema, sessionEnvelopeSchema, sessionEventSchema, sessionFileEventSchema, sessionModelUsageSchema, sessionNeedsContinueEventSchema, sessionProgressListSchema, sessionProgressStateSchema, sessionProgressTodoSchema, sessionProgressTodoStatusSchema, sessionPromptSuggestionEventSchema, sessionRoleSchema, sessionServiceMessageEventSchema, sessionStartEventSchema, sessionStateChangedEventSchema, sessionStopEventSchema, sessionSummaryStateSchema, sessionTaskEndEventSchema, sessionTaskLogEventSchema, sessionTaskProgressEventSchema, sessionTaskStartEventSchema, sessionTextDeltaEventSchema, sessionTextEventSchema, sessionToolCallEndEventSchema, sessionToolCallStartEventSchema, sessionToolProgressEventSchema, sessionTurnEndEventSchema, sessionTurnEndStatusSchema, sessionTurnStartEventSchema, sessionUsageUpdateEventSchema, shouldAutoApproveHappyMcpReason, shouldAutoApproveHappyMcpToolName, shouldHideSuccessfulHappyMcpTool, terminalCloseRequestSchema, terminalExitPayloadSchema, terminalInputPayloadSchema, terminalOutputPayloadSchema, terminalResizeRequestSchema, terminalSpawnRequestSchema, terminalSpawnResponseSchema, validateProfileForAgent };
|
|
3614
|
+
export { AGENT_MSG_PRIORITIES, AGENT_MSG_STATUSES, AGENT_MSG_TYPES, AIBackendProfileSchema, AcceptBodySchema, AgentLoopSummarySchema, AgentMessageSchema, AgentMessageSummarySchema, AgentMsgTypeSchema, AnthropicConfigSchema, ApiMessageSchema, ApiUpdateMachineStateSchema, ApiUpdateNewMessageSchema, ApiUpdateSessionStateSchema, AutoDreamProfileSummarySchema, AutomationAuditEventSummarySchema, AutomationAuditStatsSchema, AutomationCountsSchema, AutomationGuardianSummarySchema, AutomationGuardianUsageSummarySchema, AutomationJobKindSchema, AutomationJobStatusSchema, AutomationJobSummarySchema, AutomationPrioritySchema, AutomationStateSchema, AutonomyStatsRecentActionSchema, AutonomyStatsSchema, AzureOpenAIConfigSchema, BUILT_IN_AI_BACKEND_PROFILE_IDS, BootstrapProfileSummarySchema, BriefMessageSchema, BuiltInAIBackendProfileIdSchema, CliInstallInfoSchema, CliInstallSourceSchema, CodexConfigSchema, CoreUpdateBodySchema, CoreUpdateContainerSchema, CreateKnowledgeEntryBodySchema, CreateSkillBodySchema, CreateTaskBodySchema, CrossProjectSearchResponseSchema, CrossProjectSearchResultSchema, CustomModelSchema, DaemonStateSchema, DefaultPermissionModeSchema, EVIDENCE_KINDS, EnvironmentVariableSchema, HAPPY_MCP_AUTO_APPROVE_TOOL_NAMES, HAPPY_MCP_SILENT_SUCCESS_TOOL_NAMES, HAPPY_MCP_TOOL_NAMES, HAPPY_MCP_TOOL_SPECS, InboxCategorySchema, InboxItemSummarySchema, InboxNewItemSchema, InboxSeveritySchema, InboxUnreadCountSchema, KnowledgeActionSchema, KnowledgeChainEntrySchema, KnowledgeChainRelationSchema, KnowledgeChainResponseSchema, KnowledgeConfidenceSchema, KnowledgeContributorTypeSchema, KnowledgeEntryTypeSchema, KnowledgeInjectionModeSchema, KnowledgeInjectionRequestSchema, KnowledgeInjectionResponseSchema, KnowledgeStatusSchema, LegacyMessageContentSchema, MachineMetadataSchema, MessageContentSchema, MessageMetaSchema, OpenAIConfigSchema, ProfileCompatibilitySchema, ProjectProfileSchema, QueryKnowledgeParamsSchema, RESOLVED_RUNTIME_PROFILE_SCHEMA_VERSION, ResolvedRuntimeProfileSchema, RuntimeProfileSourceSchema, RuntimeProfileTrustSchema, SUGGESTION_ACCEPT_AUDIT_RULES, SUGGESTION_ACCEPT_SOURCES, SUGGESTION_AUTO_ACCEPT_FAILURE_DETAILS, SUGGESTION_AUTO_ACCEPT_REASON_CODES, SUGGESTION_AUTO_ACCEPT_STATUSES, SUGGESTION_BUCKETS, SUGGESTION_STATUSES, SUGGESTION_TYPES, SUPERVISOR_MODES, SessionEventCreatedSchema, SessionEventReportSchema, SessionEventSummarySchema, SessionEventTypeSchema, SessionMessageContentSchema, SessionMessageSchema, SessionProtocolMessageSchema, SkillContentSchema, SkillSummarySchema, SuggestionAcceptAuditSchema, SuggestionDecisionPayloadSchema, SuggestionEvidenceSchema, SuggestionGoalPayloadSchema, SuggestionPayloadSchema, SuggestionSkillPayloadSchema, SuggestionTaskPayloadSchema, TailscaleInfoSchema, TailscaleServeEntrySchema, TaskOutcomeSchema, TaskPrioritySchema, TaskStatusChangedSchema, TaskStatusReportSchema, TaskStatusSchema, TaskSummarySchema, TaskTriggerDataSchema, TaskTriggerTypeSchema, TmuxConfigSchema, TogetherAIConfigSchema, TunnelEntrySchema, TunnelProviderInfoSchema, TunnelStateSchema, TurnKnowledgeExtractionSchema, UpdateBodySchema, UpdateKnowledgeEntryBodySchema, UpdateMachineBodySchema, UpdateNewMessageBodySchema, UpdateSchema, UpdateSessionBodySchema, UpdateSkillBodySchema, UserMessageSchema, VersionedEncryptedValueSchema, VersionedMachineEncryptedValueSchema, VersionedNullableEncryptedValueSchema, VoiceTokenAllowedSchema, VoiceTokenDeniedSchema, VoiceTokenResponseSchema, WorldAutonomyPolicySchema, WorldSuggestionUpdatedSchema, createEnvelope, createResolvedRuntimeProfile, getBuiltInAIBackendProfile, getHappyMcpToolAction, getHappyMcpToolAliases, getHappyMcpToolTitle, getProfileEnvironmentVariables, getSuggestionPayloadSchema, isHappyMcpToolAlias, isHappyMcpToolName, isTrustedRuntimeProfile, normalizeHappyMcpToolName, normalizeResolvedRuntimeProfile, sessionContextUsageCategorySchema, sessionContextUsageEventSchema, sessionEnvelopeSchema, sessionEventSchema, sessionFileEventSchema, sessionModelUsageSchema, sessionNeedsContinueEventSchema, sessionProgressListSchema, sessionProgressStateSchema, sessionProgressTodoSchema, sessionProgressTodoStatusSchema, sessionPromptSuggestionEventSchema, sessionRoleSchema, sessionServiceMessageEventSchema, sessionStartEventSchema, sessionStateChangedEventSchema, sessionStopEventSchema, sessionSummaryStateSchema, sessionTaskEndEventSchema, sessionTaskLogEventSchema, sessionTaskProgressEventSchema, sessionTaskStartEventSchema, sessionTextDeltaEventSchema, sessionTextEventSchema, sessionToolCallEndEventSchema, sessionToolCallStartEventSchema, sessionToolProgressEventSchema, sessionTurnEndEventSchema, sessionTurnEndStatusSchema, sessionTurnStartEventSchema, sessionUsageUpdateEventSchema, shouldAutoApproveHappyMcpReason, shouldAutoApproveHappyMcpToolName, shouldHideSuccessfulHappyMcpTool, terminalCloseRequestSchema, terminalExitPayloadSchema, terminalInputPayloadSchema, terminalOutputPayloadSchema, terminalResizeRequestSchema, terminalSpawnRequestSchema, terminalSpawnResponseSchema, validateProfileForAgent };
|
|
3609
3615
|
export type { AIBackendProfile, AcceptBody, AgentLoopSummary, AgentMessage, AgentMessageSummary, AgentMsgPriority, AgentMsgStatus, AgentMsgType, ApiMessage, ApiUpdateMachineState, ApiUpdateNewMessage, ApiUpdateSessionState, AutoDreamProfileSummary, AutomationAuditEventSummary, AutomationAuditStats, AutomationCounts, AutomationGuardianSummary, AutomationGuardianUsageSummary, AutomationJobKind, AutomationJobStatus, AutomationJobSummary, AutomationPriority, AutomationState, AutonomyStats, BootstrapProfileSummary, BriefMessage, BuiltInAIBackendProfileId, CliInstallInfo, CliInstallSource, CoreUpdateBody, CoreUpdateContainer, CreateEnvelopeOptions, CreateKnowledgeEntryBody, CreateSkillBody, CreateTaskBody, CrossProjectSearchResponse, CrossProjectSearchResult, DaemonState, HappyMcpCanonicalToolName, HappyMcpToolActionMode, InboxCategory, InboxItemSummary, InboxNewItem, InboxSeverity, InboxUnreadCount, KnowledgeAction, KnowledgeChainEntry, KnowledgeChainRelation, KnowledgeChainResponse, KnowledgeConfidence, KnowledgeContributorType, KnowledgeEntryType, KnowledgeInjectionMode, KnowledgeInjectionRequest, KnowledgeInjectionResponse, KnowledgeStatus, LegacyMessageContent, MachineMetadata, MessageContent, MessageMeta, ProjectProfile, QueryKnowledgeParams, ResolvedRuntimeProfile, RuntimeProfileSource, RuntimeProfileTrust, SessionContextUsageEvent, SessionEnvelope, SessionEvent, SessionEventCreated, SessionEventReport, SessionEventSummary, SessionEventType, SessionMessage, SessionMessageContent, SessionModelUsage, SessionProgressList, SessionProgressState, SessionProgressTodo, SessionProgressTodoStatus, SessionProtocolMessage, SessionRole, SessionSummaryState, SessionTurnEndStatus, SkillContent, SkillSummary, SuggestionAcceptAudit, SuggestionAcceptAuditRule, SuggestionAcceptSource, SuggestionAutoAcceptFailureDetail, SuggestionAutoAcceptReasonCode, SuggestionAutoAcceptStatus, SuggestionBucket, SuggestionDecisionPayload, SuggestionEvidence, SuggestionGoalPayload, SuggestionPayload, SuggestionSerialized, SuggestionSkillPayload, SuggestionStatus, SuggestionSummary, SuggestionTaskPayload, SuggestionType, SupervisorMode, TailscaleInfo, TailscaleServeEntry, TaskOutcome, TaskPriority, TaskStatus, TaskStatusChanged, TaskStatusReport, TaskSummary, TaskTriggerData, TaskTriggerType, TerminalCloseRequest, TerminalExitPayload, TerminalInputPayload, TerminalOutputPayload, TerminalResizeRequest, TerminalSpawnRequest, TerminalSpawnResponse, TunnelEntry, TunnelProviderInfo, TunnelState, TurnKnowledgeExtraction, Update, UpdateBody, UpdateKnowledgeEntryBody, UpdateMachineBody, UpdateNewMessageBody, UpdateSessionBody, UpdateSkillBody, UserMessage, VersionedEncryptedValue, VersionedMachineEncryptedValue, VersionedNullableEncryptedValue, VoiceTokenResponse, WorldAutonomyPolicy, WorldSuggestionUpdated };
|
package/dist/index.d.mts
CHANGED
|
@@ -177,8 +177,8 @@ declare const SessionProtocolMessageSchema: z.ZodObject<{
|
|
|
177
177
|
}, z.core.$strip>, z.ZodObject<{
|
|
178
178
|
t: z.ZodLiteral<"session-state-changed">;
|
|
179
179
|
state: z.ZodEnum<{
|
|
180
|
-
running: "running";
|
|
181
180
|
idle: "idle";
|
|
181
|
+
running: "running";
|
|
182
182
|
requires_action: "requires_action";
|
|
183
183
|
}>;
|
|
184
184
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -423,8 +423,8 @@ declare const MessageContentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
423
423
|
}, z.core.$strip>, z.ZodObject<{
|
|
424
424
|
t: z.ZodLiteral<"session-state-changed">;
|
|
425
425
|
state: z.ZodEnum<{
|
|
426
|
-
running: "running";
|
|
427
426
|
idle: "idle";
|
|
427
|
+
running: "running";
|
|
428
428
|
requires_action: "requires_action";
|
|
429
429
|
}>;
|
|
430
430
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -1041,8 +1041,8 @@ declare const sessionNeedsContinueEventSchema: z.ZodObject<{
|
|
|
1041
1041
|
declare const sessionStateChangedEventSchema: z.ZodObject<{
|
|
1042
1042
|
t: z.ZodLiteral<"session-state-changed">;
|
|
1043
1043
|
state: z.ZodEnum<{
|
|
1044
|
-
running: "running";
|
|
1045
1044
|
idle: "idle";
|
|
1045
|
+
running: "running";
|
|
1046
1046
|
requires_action: "requires_action";
|
|
1047
1047
|
}>;
|
|
1048
1048
|
}, z.core.$strip>;
|
|
@@ -1203,8 +1203,8 @@ declare const sessionEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1203
1203
|
}, z.core.$strip>, z.ZodObject<{
|
|
1204
1204
|
t: z.ZodLiteral<"session-state-changed">;
|
|
1205
1205
|
state: z.ZodEnum<{
|
|
1206
|
-
running: "running";
|
|
1207
1206
|
idle: "idle";
|
|
1207
|
+
running: "running";
|
|
1208
1208
|
requires_action: "requires_action";
|
|
1209
1209
|
}>;
|
|
1210
1210
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -1367,8 +1367,8 @@ declare const sessionEnvelopeSchema: z.ZodObject<{
|
|
|
1367
1367
|
}, z.core.$strip>, z.ZodObject<{
|
|
1368
1368
|
t: z.ZodLiteral<"session-state-changed">;
|
|
1369
1369
|
state: z.ZodEnum<{
|
|
1370
|
-
running: "running";
|
|
1371
1370
|
idle: "idle";
|
|
1371
|
+
running: "running";
|
|
1372
1372
|
requires_action: "requires_action";
|
|
1373
1373
|
}>;
|
|
1374
1374
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -1541,12 +1541,12 @@ declare const AutomationJobKindSchema: z.ZodEnum<{
|
|
|
1541
1541
|
}>;
|
|
1542
1542
|
type AutomationJobKind = z.infer<typeof AutomationJobKindSchema>;
|
|
1543
1543
|
declare const AutomationJobStatusSchema: z.ZodEnum<{
|
|
1544
|
-
queued: "queued";
|
|
1545
|
-
dispatching: "dispatching";
|
|
1546
|
-
running: "running";
|
|
1547
1544
|
completed: "completed";
|
|
1548
1545
|
failed: "failed";
|
|
1549
1546
|
cancelled: "cancelled";
|
|
1547
|
+
running: "running";
|
|
1548
|
+
queued: "queued";
|
|
1549
|
+
dispatching: "dispatching";
|
|
1550
1550
|
}>;
|
|
1551
1551
|
type AutomationJobStatus = z.infer<typeof AutomationJobStatusSchema>;
|
|
1552
1552
|
declare const AutomationJobSummarySchema: z.ZodObject<{
|
|
@@ -1558,12 +1558,12 @@ declare const AutomationJobSummarySchema: z.ZodObject<{
|
|
|
1558
1558
|
task: "task";
|
|
1559
1559
|
}>;
|
|
1560
1560
|
status: z.ZodEnum<{
|
|
1561
|
-
queued: "queued";
|
|
1562
|
-
dispatching: "dispatching";
|
|
1563
|
-
running: "running";
|
|
1564
1561
|
completed: "completed";
|
|
1565
1562
|
failed: "failed";
|
|
1566
1563
|
cancelled: "cancelled";
|
|
1564
|
+
running: "running";
|
|
1565
|
+
queued: "queued";
|
|
1566
|
+
dispatching: "dispatching";
|
|
1567
1567
|
}>;
|
|
1568
1568
|
priority: z.ZodEnum<{
|
|
1569
1569
|
user: "user";
|
|
@@ -1721,12 +1721,12 @@ declare const AutomationStateSchema: z.ZodObject<{
|
|
|
1721
1721
|
task: "task";
|
|
1722
1722
|
}>;
|
|
1723
1723
|
status: z.ZodEnum<{
|
|
1724
|
-
queued: "queued";
|
|
1725
|
-
dispatching: "dispatching";
|
|
1726
|
-
running: "running";
|
|
1727
1724
|
completed: "completed";
|
|
1728
1725
|
failed: "failed";
|
|
1729
1726
|
cancelled: "cancelled";
|
|
1727
|
+
running: "running";
|
|
1728
|
+
queued: "queued";
|
|
1729
|
+
dispatching: "dispatching";
|
|
1730
1730
|
}>;
|
|
1731
1731
|
priority: z.ZodEnum<{
|
|
1732
1732
|
user: "user";
|
|
@@ -1963,12 +1963,12 @@ declare const DaemonStateSchema: z.ZodObject<{
|
|
|
1963
1963
|
task: "task";
|
|
1964
1964
|
}>;
|
|
1965
1965
|
status: z.ZodEnum<{
|
|
1966
|
-
queued: "queued";
|
|
1967
|
-
dispatching: "dispatching";
|
|
1968
|
-
running: "running";
|
|
1969
1966
|
completed: "completed";
|
|
1970
1967
|
failed: "failed";
|
|
1971
1968
|
cancelled: "cancelled";
|
|
1969
|
+
running: "running";
|
|
1970
|
+
queued: "queued";
|
|
1971
|
+
dispatching: "dispatching";
|
|
1972
1972
|
}>;
|
|
1973
1973
|
priority: z.ZodEnum<{
|
|
1974
1974
|
user: "user";
|
|
@@ -2125,9 +2125,9 @@ declare const KnowledgeEntryTypeSchema: z.ZodEnum<{
|
|
|
2125
2125
|
}>;
|
|
2126
2126
|
type KnowledgeEntryType = z.infer<typeof KnowledgeEntryTypeSchema>;
|
|
2127
2127
|
declare const KnowledgeContributorTypeSchema: z.ZodEnum<{
|
|
2128
|
+
session: "session";
|
|
2128
2129
|
user: "user";
|
|
2129
2130
|
supervisor: "supervisor";
|
|
2130
|
-
session: "session";
|
|
2131
2131
|
}>;
|
|
2132
2132
|
type KnowledgeContributorType = z.infer<typeof KnowledgeContributorTypeSchema>;
|
|
2133
2133
|
declare const KnowledgeActionSchema: z.ZodEnum<{
|
|
@@ -2158,9 +2158,9 @@ declare const CreateKnowledgeEntryBodySchema: z.ZodObject<{
|
|
|
2158
2158
|
warning: "warning";
|
|
2159
2159
|
}>;
|
|
2160
2160
|
contributorType: z.ZodEnum<{
|
|
2161
|
+
session: "session";
|
|
2161
2162
|
user: "user";
|
|
2162
2163
|
supervisor: "supervisor";
|
|
2163
|
-
session: "session";
|
|
2164
2164
|
}>;
|
|
2165
2165
|
action: z.ZodEnum<{
|
|
2166
2166
|
create: "create";
|
|
@@ -2475,12 +2475,12 @@ declare const TaskPrioritySchema: z.ZodEnum<{
|
|
|
2475
2475
|
}>;
|
|
2476
2476
|
type TaskPriority = z.infer<typeof TaskPrioritySchema>;
|
|
2477
2477
|
declare const TaskStatusSchema: z.ZodEnum<{
|
|
2478
|
-
queued: "queued";
|
|
2479
|
-
dispatching: "dispatching";
|
|
2480
|
-
running: "running";
|
|
2481
2478
|
completed: "completed";
|
|
2482
2479
|
failed: "failed";
|
|
2483
2480
|
cancelled: "cancelled";
|
|
2481
|
+
running: "running";
|
|
2482
|
+
queued: "queued";
|
|
2483
|
+
dispatching: "dispatching";
|
|
2484
2484
|
}>;
|
|
2485
2485
|
type TaskStatus = z.infer<typeof TaskStatusSchema>;
|
|
2486
2486
|
declare const TaskTriggerTypeSchema: z.ZodEnum<{
|
|
@@ -2499,12 +2499,12 @@ declare const TaskSummarySchema: z.ZodObject<{
|
|
|
2499
2499
|
background: "background";
|
|
2500
2500
|
}>;
|
|
2501
2501
|
status: z.ZodEnum<{
|
|
2502
|
-
queued: "queued";
|
|
2503
|
-
dispatching: "dispatching";
|
|
2504
|
-
running: "running";
|
|
2505
2502
|
completed: "completed";
|
|
2506
2503
|
failed: "failed";
|
|
2507
2504
|
cancelled: "cancelled";
|
|
2505
|
+
running: "running";
|
|
2506
|
+
queued: "queued";
|
|
2507
|
+
dispatching: "dispatching";
|
|
2508
2508
|
}>;
|
|
2509
2509
|
triggerType: z.ZodEnum<{
|
|
2510
2510
|
webhook: "webhook";
|
|
@@ -2566,12 +2566,12 @@ type TaskOutcome = z.infer<typeof TaskOutcomeSchema>;
|
|
|
2566
2566
|
declare const TaskStatusReportSchema: z.ZodObject<{
|
|
2567
2567
|
taskId: z.ZodString;
|
|
2568
2568
|
status: z.ZodEnum<{
|
|
2569
|
-
queued: "queued";
|
|
2570
|
-
dispatching: "dispatching";
|
|
2571
|
-
running: "running";
|
|
2572
2569
|
completed: "completed";
|
|
2573
2570
|
failed: "failed";
|
|
2574
2571
|
cancelled: "cancelled";
|
|
2572
|
+
running: "running";
|
|
2573
|
+
queued: "queued";
|
|
2574
|
+
dispatching: "dispatching";
|
|
2575
2575
|
}>;
|
|
2576
2576
|
outcome: z.ZodOptional<z.ZodEnum<{
|
|
2577
2577
|
completed: "completed";
|
|
@@ -2587,12 +2587,12 @@ declare const TaskStatusChangedSchema: z.ZodObject<{
|
|
|
2587
2587
|
taskId: z.ZodString;
|
|
2588
2588
|
machineId: z.ZodOptional<z.ZodString>;
|
|
2589
2589
|
status: z.ZodEnum<{
|
|
2590
|
-
queued: "queued";
|
|
2591
|
-
dispatching: "dispatching";
|
|
2592
|
-
running: "running";
|
|
2593
2590
|
completed: "completed";
|
|
2594
2591
|
failed: "failed";
|
|
2595
2592
|
cancelled: "cancelled";
|
|
2593
|
+
running: "running";
|
|
2594
|
+
queued: "queued";
|
|
2595
|
+
dispatching: "dispatching";
|
|
2596
2596
|
}>;
|
|
2597
2597
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
2598
2598
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
@@ -2637,10 +2637,10 @@ declare const SkillContentSchema: z.ZodObject<{
|
|
|
2637
2637
|
type SkillContent = z.infer<typeof SkillContentSchema>;
|
|
2638
2638
|
|
|
2639
2639
|
declare const InboxCategorySchema: z.ZodEnum<{
|
|
2640
|
+
session: "session";
|
|
2640
2641
|
supervisor: "supervisor";
|
|
2641
2642
|
task: "task";
|
|
2642
2643
|
trigger: "trigger";
|
|
2643
|
-
session: "session";
|
|
2644
2644
|
knowledge: "knowledge";
|
|
2645
2645
|
system: "system";
|
|
2646
2646
|
}>;
|
|
@@ -2654,10 +2654,10 @@ type InboxSeverity = z.infer<typeof InboxSeveritySchema>;
|
|
|
2654
2654
|
declare const InboxItemSummarySchema: z.ZodObject<{
|
|
2655
2655
|
id: z.ZodString;
|
|
2656
2656
|
category: z.ZodEnum<{
|
|
2657
|
+
session: "session";
|
|
2657
2658
|
supervisor: "supervisor";
|
|
2658
2659
|
task: "task";
|
|
2659
2660
|
trigger: "trigger";
|
|
2660
|
-
session: "session";
|
|
2661
2661
|
knowledge: "knowledge";
|
|
2662
2662
|
system: "system";
|
|
2663
2663
|
}>;
|
|
@@ -2682,10 +2682,10 @@ declare const InboxNewItemSchema: z.ZodObject<{
|
|
|
2682
2682
|
item: z.ZodObject<{
|
|
2683
2683
|
id: z.ZodString;
|
|
2684
2684
|
category: z.ZodEnum<{
|
|
2685
|
+
session: "session";
|
|
2685
2686
|
supervisor: "supervisor";
|
|
2686
2687
|
task: "task";
|
|
2687
2688
|
trigger: "trigger";
|
|
2688
|
-
session: "session";
|
|
2689
2689
|
knowledge: "knowledge";
|
|
2690
2690
|
system: "system";
|
|
2691
2691
|
}>;
|
|
@@ -2872,8 +2872,8 @@ type SuggestionAutoAcceptFailureDetail = typeof SUGGESTION_AUTO_ACCEPT_FAILURE_D
|
|
|
2872
2872
|
declare const EVIDENCE_KINDS: readonly ["goal", "task", "decision", "message", "narrative"];
|
|
2873
2873
|
declare const SuggestionEvidenceSchema: z$1.ZodObject<{
|
|
2874
2874
|
kind: z$1.ZodEnum<{
|
|
2875
|
-
task: "task";
|
|
2876
2875
|
message: "message";
|
|
2876
|
+
task: "task";
|
|
2877
2877
|
decision: "decision";
|
|
2878
2878
|
goal: "goal";
|
|
2879
2879
|
narrative: "narrative";
|
|
@@ -3434,6 +3434,12 @@ declare const ResolvedRuntimeProfileSchema: z$1.ZodObject<{
|
|
|
3434
3434
|
defaultModelMode: z$1.ZodOptional<z$1.ZodString>;
|
|
3435
3435
|
}, z$1.core.$strip>;
|
|
3436
3436
|
type ResolvedRuntimeProfile = z$1.infer<typeof ResolvedRuntimeProfileSchema>;
|
|
3437
|
+
/**
|
|
3438
|
+
* Shared built-in profile defaults used across App / Server / CLI.
|
|
3439
|
+
* Keep this as the single source of truth so non-App flows (scheduler/webhook)
|
|
3440
|
+
* can still resolve the full runtime semantics for built-in profiles.
|
|
3441
|
+
*/
|
|
3442
|
+
declare function getBuiltInAIBackendProfile(id: string): AIBackendProfile | null;
|
|
3437
3443
|
declare function validateProfileForAgent(profile: AIBackendProfile, agent: "claude" | "codex" | "gemini"): boolean;
|
|
3438
3444
|
declare function getProfileEnvironmentVariables(profile: AIBackendProfile): Record<string, string>;
|
|
3439
3445
|
interface CreateResolvedRuntimeProfileOptions {
|
|
@@ -3605,5 +3611,5 @@ declare function shouldHideSuccessfulHappyMcpTool(toolName: string | null | unde
|
|
|
3605
3611
|
declare function shouldAutoApproveHappyMcpToolName(toolName: string | null | undefined): boolean;
|
|
3606
3612
|
declare function shouldAutoApproveHappyMcpReason(reason: string | null | undefined): boolean;
|
|
3607
3613
|
|
|
3608
|
-
export { AGENT_MSG_PRIORITIES, AGENT_MSG_STATUSES, AGENT_MSG_TYPES, AIBackendProfileSchema, AcceptBodySchema, AgentLoopSummarySchema, AgentMessageSchema, AgentMessageSummarySchema, AgentMsgTypeSchema, AnthropicConfigSchema, ApiMessageSchema, ApiUpdateMachineStateSchema, ApiUpdateNewMessageSchema, ApiUpdateSessionStateSchema, AutoDreamProfileSummarySchema, AutomationAuditEventSummarySchema, AutomationAuditStatsSchema, AutomationCountsSchema, AutomationGuardianSummarySchema, AutomationGuardianUsageSummarySchema, AutomationJobKindSchema, AutomationJobStatusSchema, AutomationJobSummarySchema, AutomationPrioritySchema, AutomationStateSchema, AutonomyStatsRecentActionSchema, AutonomyStatsSchema, AzureOpenAIConfigSchema, BUILT_IN_AI_BACKEND_PROFILE_IDS, BootstrapProfileSummarySchema, BriefMessageSchema, BuiltInAIBackendProfileIdSchema, CliInstallInfoSchema, CliInstallSourceSchema, CodexConfigSchema, CoreUpdateBodySchema, CoreUpdateContainerSchema, CreateKnowledgeEntryBodySchema, CreateSkillBodySchema, CreateTaskBodySchema, CrossProjectSearchResponseSchema, CrossProjectSearchResultSchema, CustomModelSchema, DaemonStateSchema, DefaultPermissionModeSchema, EVIDENCE_KINDS, EnvironmentVariableSchema, HAPPY_MCP_AUTO_APPROVE_TOOL_NAMES, HAPPY_MCP_SILENT_SUCCESS_TOOL_NAMES, HAPPY_MCP_TOOL_NAMES, HAPPY_MCP_TOOL_SPECS, InboxCategorySchema, InboxItemSummarySchema, InboxNewItemSchema, InboxSeveritySchema, InboxUnreadCountSchema, KnowledgeActionSchema, KnowledgeChainEntrySchema, KnowledgeChainRelationSchema, KnowledgeChainResponseSchema, KnowledgeConfidenceSchema, KnowledgeContributorTypeSchema, KnowledgeEntryTypeSchema, KnowledgeInjectionModeSchema, KnowledgeInjectionRequestSchema, KnowledgeInjectionResponseSchema, KnowledgeStatusSchema, LegacyMessageContentSchema, MachineMetadataSchema, MessageContentSchema, MessageMetaSchema, OpenAIConfigSchema, ProfileCompatibilitySchema, ProjectProfileSchema, QueryKnowledgeParamsSchema, RESOLVED_RUNTIME_PROFILE_SCHEMA_VERSION, ResolvedRuntimeProfileSchema, RuntimeProfileSourceSchema, RuntimeProfileTrustSchema, SUGGESTION_ACCEPT_AUDIT_RULES, SUGGESTION_ACCEPT_SOURCES, SUGGESTION_AUTO_ACCEPT_FAILURE_DETAILS, SUGGESTION_AUTO_ACCEPT_REASON_CODES, SUGGESTION_AUTO_ACCEPT_STATUSES, SUGGESTION_BUCKETS, SUGGESTION_STATUSES, SUGGESTION_TYPES, SUPERVISOR_MODES, SessionEventCreatedSchema, SessionEventReportSchema, SessionEventSummarySchema, SessionEventTypeSchema, SessionMessageContentSchema, SessionMessageSchema, SessionProtocolMessageSchema, SkillContentSchema, SkillSummarySchema, SuggestionAcceptAuditSchema, SuggestionDecisionPayloadSchema, SuggestionEvidenceSchema, SuggestionGoalPayloadSchema, SuggestionPayloadSchema, SuggestionSkillPayloadSchema, SuggestionTaskPayloadSchema, TailscaleInfoSchema, TailscaleServeEntrySchema, TaskOutcomeSchema, TaskPrioritySchema, TaskStatusChangedSchema, TaskStatusReportSchema, TaskStatusSchema, TaskSummarySchema, TaskTriggerDataSchema, TaskTriggerTypeSchema, TmuxConfigSchema, TogetherAIConfigSchema, TunnelEntrySchema, TunnelProviderInfoSchema, TunnelStateSchema, TurnKnowledgeExtractionSchema, UpdateBodySchema, UpdateKnowledgeEntryBodySchema, UpdateMachineBodySchema, UpdateNewMessageBodySchema, UpdateSchema, UpdateSessionBodySchema, UpdateSkillBodySchema, UserMessageSchema, VersionedEncryptedValueSchema, VersionedMachineEncryptedValueSchema, VersionedNullableEncryptedValueSchema, VoiceTokenAllowedSchema, VoiceTokenDeniedSchema, VoiceTokenResponseSchema, WorldAutonomyPolicySchema, WorldSuggestionUpdatedSchema, createEnvelope, createResolvedRuntimeProfile, getHappyMcpToolAction, getHappyMcpToolAliases, getHappyMcpToolTitle, getProfileEnvironmentVariables, getSuggestionPayloadSchema, isHappyMcpToolAlias, isHappyMcpToolName, isTrustedRuntimeProfile, normalizeHappyMcpToolName, normalizeResolvedRuntimeProfile, sessionContextUsageCategorySchema, sessionContextUsageEventSchema, sessionEnvelopeSchema, sessionEventSchema, sessionFileEventSchema, sessionModelUsageSchema, sessionNeedsContinueEventSchema, sessionProgressListSchema, sessionProgressStateSchema, sessionProgressTodoSchema, sessionProgressTodoStatusSchema, sessionPromptSuggestionEventSchema, sessionRoleSchema, sessionServiceMessageEventSchema, sessionStartEventSchema, sessionStateChangedEventSchema, sessionStopEventSchema, sessionSummaryStateSchema, sessionTaskEndEventSchema, sessionTaskLogEventSchema, sessionTaskProgressEventSchema, sessionTaskStartEventSchema, sessionTextDeltaEventSchema, sessionTextEventSchema, sessionToolCallEndEventSchema, sessionToolCallStartEventSchema, sessionToolProgressEventSchema, sessionTurnEndEventSchema, sessionTurnEndStatusSchema, sessionTurnStartEventSchema, sessionUsageUpdateEventSchema, shouldAutoApproveHappyMcpReason, shouldAutoApproveHappyMcpToolName, shouldHideSuccessfulHappyMcpTool, terminalCloseRequestSchema, terminalExitPayloadSchema, terminalInputPayloadSchema, terminalOutputPayloadSchema, terminalResizeRequestSchema, terminalSpawnRequestSchema, terminalSpawnResponseSchema, validateProfileForAgent };
|
|
3614
|
+
export { AGENT_MSG_PRIORITIES, AGENT_MSG_STATUSES, AGENT_MSG_TYPES, AIBackendProfileSchema, AcceptBodySchema, AgentLoopSummarySchema, AgentMessageSchema, AgentMessageSummarySchema, AgentMsgTypeSchema, AnthropicConfigSchema, ApiMessageSchema, ApiUpdateMachineStateSchema, ApiUpdateNewMessageSchema, ApiUpdateSessionStateSchema, AutoDreamProfileSummarySchema, AutomationAuditEventSummarySchema, AutomationAuditStatsSchema, AutomationCountsSchema, AutomationGuardianSummarySchema, AutomationGuardianUsageSummarySchema, AutomationJobKindSchema, AutomationJobStatusSchema, AutomationJobSummarySchema, AutomationPrioritySchema, AutomationStateSchema, AutonomyStatsRecentActionSchema, AutonomyStatsSchema, AzureOpenAIConfigSchema, BUILT_IN_AI_BACKEND_PROFILE_IDS, BootstrapProfileSummarySchema, BriefMessageSchema, BuiltInAIBackendProfileIdSchema, CliInstallInfoSchema, CliInstallSourceSchema, CodexConfigSchema, CoreUpdateBodySchema, CoreUpdateContainerSchema, CreateKnowledgeEntryBodySchema, CreateSkillBodySchema, CreateTaskBodySchema, CrossProjectSearchResponseSchema, CrossProjectSearchResultSchema, CustomModelSchema, DaemonStateSchema, DefaultPermissionModeSchema, EVIDENCE_KINDS, EnvironmentVariableSchema, HAPPY_MCP_AUTO_APPROVE_TOOL_NAMES, HAPPY_MCP_SILENT_SUCCESS_TOOL_NAMES, HAPPY_MCP_TOOL_NAMES, HAPPY_MCP_TOOL_SPECS, InboxCategorySchema, InboxItemSummarySchema, InboxNewItemSchema, InboxSeveritySchema, InboxUnreadCountSchema, KnowledgeActionSchema, KnowledgeChainEntrySchema, KnowledgeChainRelationSchema, KnowledgeChainResponseSchema, KnowledgeConfidenceSchema, KnowledgeContributorTypeSchema, KnowledgeEntryTypeSchema, KnowledgeInjectionModeSchema, KnowledgeInjectionRequestSchema, KnowledgeInjectionResponseSchema, KnowledgeStatusSchema, LegacyMessageContentSchema, MachineMetadataSchema, MessageContentSchema, MessageMetaSchema, OpenAIConfigSchema, ProfileCompatibilitySchema, ProjectProfileSchema, QueryKnowledgeParamsSchema, RESOLVED_RUNTIME_PROFILE_SCHEMA_VERSION, ResolvedRuntimeProfileSchema, RuntimeProfileSourceSchema, RuntimeProfileTrustSchema, SUGGESTION_ACCEPT_AUDIT_RULES, SUGGESTION_ACCEPT_SOURCES, SUGGESTION_AUTO_ACCEPT_FAILURE_DETAILS, SUGGESTION_AUTO_ACCEPT_REASON_CODES, SUGGESTION_AUTO_ACCEPT_STATUSES, SUGGESTION_BUCKETS, SUGGESTION_STATUSES, SUGGESTION_TYPES, SUPERVISOR_MODES, SessionEventCreatedSchema, SessionEventReportSchema, SessionEventSummarySchema, SessionEventTypeSchema, SessionMessageContentSchema, SessionMessageSchema, SessionProtocolMessageSchema, SkillContentSchema, SkillSummarySchema, SuggestionAcceptAuditSchema, SuggestionDecisionPayloadSchema, SuggestionEvidenceSchema, SuggestionGoalPayloadSchema, SuggestionPayloadSchema, SuggestionSkillPayloadSchema, SuggestionTaskPayloadSchema, TailscaleInfoSchema, TailscaleServeEntrySchema, TaskOutcomeSchema, TaskPrioritySchema, TaskStatusChangedSchema, TaskStatusReportSchema, TaskStatusSchema, TaskSummarySchema, TaskTriggerDataSchema, TaskTriggerTypeSchema, TmuxConfigSchema, TogetherAIConfigSchema, TunnelEntrySchema, TunnelProviderInfoSchema, TunnelStateSchema, TurnKnowledgeExtractionSchema, UpdateBodySchema, UpdateKnowledgeEntryBodySchema, UpdateMachineBodySchema, UpdateNewMessageBodySchema, UpdateSchema, UpdateSessionBodySchema, UpdateSkillBodySchema, UserMessageSchema, VersionedEncryptedValueSchema, VersionedMachineEncryptedValueSchema, VersionedNullableEncryptedValueSchema, VoiceTokenAllowedSchema, VoiceTokenDeniedSchema, VoiceTokenResponseSchema, WorldAutonomyPolicySchema, WorldSuggestionUpdatedSchema, createEnvelope, createResolvedRuntimeProfile, getBuiltInAIBackendProfile, getHappyMcpToolAction, getHappyMcpToolAliases, getHappyMcpToolTitle, getProfileEnvironmentVariables, getSuggestionPayloadSchema, isHappyMcpToolAlias, isHappyMcpToolName, isTrustedRuntimeProfile, normalizeHappyMcpToolName, normalizeResolvedRuntimeProfile, sessionContextUsageCategorySchema, sessionContextUsageEventSchema, sessionEnvelopeSchema, sessionEventSchema, sessionFileEventSchema, sessionModelUsageSchema, sessionNeedsContinueEventSchema, sessionProgressListSchema, sessionProgressStateSchema, sessionProgressTodoSchema, sessionProgressTodoStatusSchema, sessionPromptSuggestionEventSchema, sessionRoleSchema, sessionServiceMessageEventSchema, sessionStartEventSchema, sessionStateChangedEventSchema, sessionStopEventSchema, sessionSummaryStateSchema, sessionTaskEndEventSchema, sessionTaskLogEventSchema, sessionTaskProgressEventSchema, sessionTaskStartEventSchema, sessionTextDeltaEventSchema, sessionTextEventSchema, sessionToolCallEndEventSchema, sessionToolCallStartEventSchema, sessionToolProgressEventSchema, sessionTurnEndEventSchema, sessionTurnEndStatusSchema, sessionTurnStartEventSchema, sessionUsageUpdateEventSchema, shouldAutoApproveHappyMcpReason, shouldAutoApproveHappyMcpToolName, shouldHideSuccessfulHappyMcpTool, terminalCloseRequestSchema, terminalExitPayloadSchema, terminalInputPayloadSchema, terminalOutputPayloadSchema, terminalResizeRequestSchema, terminalSpawnRequestSchema, terminalSpawnResponseSchema, validateProfileForAgent };
|
|
3609
3615
|
export type { AIBackendProfile, AcceptBody, AgentLoopSummary, AgentMessage, AgentMessageSummary, AgentMsgPriority, AgentMsgStatus, AgentMsgType, ApiMessage, ApiUpdateMachineState, ApiUpdateNewMessage, ApiUpdateSessionState, AutoDreamProfileSummary, AutomationAuditEventSummary, AutomationAuditStats, AutomationCounts, AutomationGuardianSummary, AutomationGuardianUsageSummary, AutomationJobKind, AutomationJobStatus, AutomationJobSummary, AutomationPriority, AutomationState, AutonomyStats, BootstrapProfileSummary, BriefMessage, BuiltInAIBackendProfileId, CliInstallInfo, CliInstallSource, CoreUpdateBody, CoreUpdateContainer, CreateEnvelopeOptions, CreateKnowledgeEntryBody, CreateSkillBody, CreateTaskBody, CrossProjectSearchResponse, CrossProjectSearchResult, DaemonState, HappyMcpCanonicalToolName, HappyMcpToolActionMode, InboxCategory, InboxItemSummary, InboxNewItem, InboxSeverity, InboxUnreadCount, KnowledgeAction, KnowledgeChainEntry, KnowledgeChainRelation, KnowledgeChainResponse, KnowledgeConfidence, KnowledgeContributorType, KnowledgeEntryType, KnowledgeInjectionMode, KnowledgeInjectionRequest, KnowledgeInjectionResponse, KnowledgeStatus, LegacyMessageContent, MachineMetadata, MessageContent, MessageMeta, ProjectProfile, QueryKnowledgeParams, ResolvedRuntimeProfile, RuntimeProfileSource, RuntimeProfileTrust, SessionContextUsageEvent, SessionEnvelope, SessionEvent, SessionEventCreated, SessionEventReport, SessionEventSummary, SessionEventType, SessionMessage, SessionMessageContent, SessionModelUsage, SessionProgressList, SessionProgressState, SessionProgressTodo, SessionProgressTodoStatus, SessionProtocolMessage, SessionRole, SessionSummaryState, SessionTurnEndStatus, SkillContent, SkillSummary, SuggestionAcceptAudit, SuggestionAcceptAuditRule, SuggestionAcceptSource, SuggestionAutoAcceptFailureDetail, SuggestionAutoAcceptReasonCode, SuggestionAutoAcceptStatus, SuggestionBucket, SuggestionDecisionPayload, SuggestionEvidence, SuggestionGoalPayload, SuggestionPayload, SuggestionSerialized, SuggestionSkillPayload, SuggestionStatus, SuggestionSummary, SuggestionTaskPayload, SuggestionType, SupervisorMode, TailscaleInfo, TailscaleServeEntry, TaskOutcome, TaskPriority, TaskStatus, TaskStatusChanged, TaskStatusReport, TaskSummary, TaskTriggerData, TaskTriggerType, TerminalCloseRequest, TerminalExitPayload, TerminalInputPayload, TerminalOutputPayload, TerminalResizeRequest, TerminalSpawnRequest, TerminalSpawnResponse, TunnelEntry, TunnelProviderInfo, TunnelState, TurnKnowledgeExtraction, Update, UpdateBody, UpdateKnowledgeEntryBody, UpdateMachineBody, UpdateNewMessageBody, UpdateSessionBody, UpdateSkillBody, UserMessage, VersionedEncryptedValue, VersionedMachineEncryptedValue, VersionedNullableEncryptedValue, VoiceTokenResponse, WorldAutonomyPolicy, WorldSuggestionUpdated };
|
package/dist/index.mjs
CHANGED
|
@@ -1308,6 +1308,229 @@ const ResolvedRuntimeProfileSchema = z$1.object({
|
|
|
1308
1308
|
defaultPermissionMode: DefaultPermissionModeSchema.optional(),
|
|
1309
1309
|
defaultModelMode: z$1.string().optional()
|
|
1310
1310
|
});
|
|
1311
|
+
function getBuiltInAIBackendProfile(id) {
|
|
1312
|
+
switch (id) {
|
|
1313
|
+
case "anthropic":
|
|
1314
|
+
return {
|
|
1315
|
+
id: "anthropic",
|
|
1316
|
+
name: "Anthropic (Default)",
|
|
1317
|
+
anthropicConfig: {},
|
|
1318
|
+
environmentVariables: [],
|
|
1319
|
+
defaultPermissionMode: "default",
|
|
1320
|
+
compatibility: { claude: true, codex: false, gemini: false },
|
|
1321
|
+
isBuiltIn: true,
|
|
1322
|
+
createdAt: Date.now(),
|
|
1323
|
+
updatedAt: Date.now(),
|
|
1324
|
+
version: "1.0.0"
|
|
1325
|
+
};
|
|
1326
|
+
case "deepseek":
|
|
1327
|
+
return {
|
|
1328
|
+
id: "deepseek",
|
|
1329
|
+
name: "DeepSeek (Reasoner)",
|
|
1330
|
+
anthropicConfig: {},
|
|
1331
|
+
environmentVariables: [
|
|
1332
|
+
{
|
|
1333
|
+
name: "ANTHROPIC_BASE_URL",
|
|
1334
|
+
value: "${DEEPSEEK_BASE_URL:-https://api.deepseek.com/anthropic}"
|
|
1335
|
+
},
|
|
1336
|
+
{ name: "ANTHROPIC_AUTH_TOKEN", value: "${DEEPSEEK_AUTH_TOKEN}" },
|
|
1337
|
+
{
|
|
1338
|
+
name: "API_TIMEOUT_MS",
|
|
1339
|
+
value: "${DEEPSEEK_API_TIMEOUT_MS:-600000}"
|
|
1340
|
+
},
|
|
1341
|
+
{
|
|
1342
|
+
name: "ANTHROPIC_MODEL",
|
|
1343
|
+
value: "${DEEPSEEK_MODEL:-deepseek-reasoner}"
|
|
1344
|
+
},
|
|
1345
|
+
{
|
|
1346
|
+
name: "ANTHROPIC_SMALL_FAST_MODEL",
|
|
1347
|
+
value: "${DEEPSEEK_SMALL_FAST_MODEL:-deepseek-chat}"
|
|
1348
|
+
},
|
|
1349
|
+
{
|
|
1350
|
+
name: "CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC",
|
|
1351
|
+
value: "${DEEPSEEK_CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC:-1}"
|
|
1352
|
+
}
|
|
1353
|
+
],
|
|
1354
|
+
defaultPermissionMode: "default",
|
|
1355
|
+
compatibility: { claude: true, codex: false, gemini: false },
|
|
1356
|
+
isBuiltIn: true,
|
|
1357
|
+
createdAt: Date.now(),
|
|
1358
|
+
updatedAt: Date.now(),
|
|
1359
|
+
version: "1.0.0"
|
|
1360
|
+
};
|
|
1361
|
+
case "zai":
|
|
1362
|
+
return {
|
|
1363
|
+
id: "zai",
|
|
1364
|
+
name: "Z.AI (GLM-4.6)",
|
|
1365
|
+
anthropicConfig: {},
|
|
1366
|
+
environmentVariables: [
|
|
1367
|
+
{
|
|
1368
|
+
name: "ANTHROPIC_BASE_URL",
|
|
1369
|
+
value: "${Z_AI_BASE_URL:-https://api.z.ai/api/anthropic}"
|
|
1370
|
+
},
|
|
1371
|
+
{ name: "ANTHROPIC_AUTH_TOKEN", value: "${Z_AI_AUTH_TOKEN}" },
|
|
1372
|
+
{ name: "API_TIMEOUT_MS", value: "${Z_AI_API_TIMEOUT_MS:-3000000}" },
|
|
1373
|
+
{ name: "ANTHROPIC_MODEL", value: "${Z_AI_MODEL:-GLM-4.6}" },
|
|
1374
|
+
{
|
|
1375
|
+
name: "ANTHROPIC_DEFAULT_OPUS_MODEL",
|
|
1376
|
+
value: "${Z_AI_OPUS_MODEL:-GLM-4.6}"
|
|
1377
|
+
},
|
|
1378
|
+
{
|
|
1379
|
+
name: "ANTHROPIC_DEFAULT_SONNET_MODEL",
|
|
1380
|
+
value: "${Z_AI_SONNET_MODEL:-GLM-4.6}"
|
|
1381
|
+
},
|
|
1382
|
+
{
|
|
1383
|
+
name: "ANTHROPIC_DEFAULT_HAIKU_MODEL",
|
|
1384
|
+
value: "${Z_AI_HAIKU_MODEL:-GLM-4.5-Air}"
|
|
1385
|
+
}
|
|
1386
|
+
],
|
|
1387
|
+
defaultPermissionMode: "default",
|
|
1388
|
+
compatibility: { claude: true, codex: false, gemini: false },
|
|
1389
|
+
isBuiltIn: true,
|
|
1390
|
+
createdAt: Date.now(),
|
|
1391
|
+
updatedAt: Date.now(),
|
|
1392
|
+
version: "1.0.0"
|
|
1393
|
+
};
|
|
1394
|
+
case "openai":
|
|
1395
|
+
return {
|
|
1396
|
+
id: "openai",
|
|
1397
|
+
name: "OpenAI (GPT-5.4)",
|
|
1398
|
+
openaiConfig: {},
|
|
1399
|
+
environmentVariables: [
|
|
1400
|
+
{ name: "OPENAI_BASE_URL", value: "https://api.openai.com/v1" },
|
|
1401
|
+
{ name: "OPENAI_MODEL", value: "gpt-5.4" },
|
|
1402
|
+
{ name: "OPENAI_API_TIMEOUT_MS", value: "600000" },
|
|
1403
|
+
{ name: "OPENAI_SMALL_FAST_MODEL", value: "gpt-5.4" },
|
|
1404
|
+
{ name: "API_TIMEOUT_MS", value: "600000" },
|
|
1405
|
+
{ name: "CODEX_SMALL_FAST_MODEL", value: "gpt-5.4" }
|
|
1406
|
+
],
|
|
1407
|
+
compatibility: { claude: false, codex: true, gemini: false },
|
|
1408
|
+
isBuiltIn: true,
|
|
1409
|
+
createdAt: Date.now(),
|
|
1410
|
+
updatedAt: Date.now(),
|
|
1411
|
+
version: "1.0.0"
|
|
1412
|
+
};
|
|
1413
|
+
case "azure-openai":
|
|
1414
|
+
return {
|
|
1415
|
+
id: "azure-openai",
|
|
1416
|
+
name: "Azure OpenAI",
|
|
1417
|
+
azureOpenAIConfig: {},
|
|
1418
|
+
environmentVariables: [
|
|
1419
|
+
{ name: "AZURE_OPENAI_API_VERSION", value: "2024-02-15-preview" },
|
|
1420
|
+
{ name: "AZURE_OPENAI_DEPLOYMENT_NAME", value: "gpt-5.4" },
|
|
1421
|
+
{ name: "OPENAI_API_TIMEOUT_MS", value: "600000" },
|
|
1422
|
+
{ name: "API_TIMEOUT_MS", value: "600000" }
|
|
1423
|
+
],
|
|
1424
|
+
compatibility: { claude: false, codex: true, gemini: false },
|
|
1425
|
+
isBuiltIn: true,
|
|
1426
|
+
createdAt: Date.now(),
|
|
1427
|
+
updatedAt: Date.now(),
|
|
1428
|
+
version: "1.0.0"
|
|
1429
|
+
};
|
|
1430
|
+
case "minimax":
|
|
1431
|
+
return {
|
|
1432
|
+
id: "minimax",
|
|
1433
|
+
name: "MiniMax (M2.7)",
|
|
1434
|
+
anthropicConfig: {},
|
|
1435
|
+
environmentVariables: [
|
|
1436
|
+
{
|
|
1437
|
+
name: "ANTHROPIC_BASE_URL",
|
|
1438
|
+
value: "${MINIMAX_BASE_URL:-https://api.minimaxi.com/anthropic}"
|
|
1439
|
+
},
|
|
1440
|
+
{
|
|
1441
|
+
name: "ANTHROPIC_AUTH_TOKEN",
|
|
1442
|
+
value: "${MINIMAX_AUTH_TOKEN}"
|
|
1443
|
+
},
|
|
1444
|
+
{
|
|
1445
|
+
name: "API_TIMEOUT_MS",
|
|
1446
|
+
value: "${MINIMAX_API_TIMEOUT_MS:-3000000}"
|
|
1447
|
+
},
|
|
1448
|
+
{
|
|
1449
|
+
name: "ANTHROPIC_MODEL",
|
|
1450
|
+
value: "${MINIMAX_MODEL:-MiniMax-M2.7}"
|
|
1451
|
+
},
|
|
1452
|
+
{
|
|
1453
|
+
name: "ANTHROPIC_SMALL_FAST_MODEL",
|
|
1454
|
+
value: "${MINIMAX_SMALL_FAST_MODEL:-MiniMax-M2.7-highspeed}"
|
|
1455
|
+
},
|
|
1456
|
+
{
|
|
1457
|
+
name: "ANTHROPIC_DEFAULT_OPUS_MODEL",
|
|
1458
|
+
value: "${MINIMAX_OPUS_MODEL:-MiniMax-M2.7}"
|
|
1459
|
+
},
|
|
1460
|
+
{
|
|
1461
|
+
name: "ANTHROPIC_DEFAULT_SONNET_MODEL",
|
|
1462
|
+
value: "${MINIMAX_SONNET_MODEL:-MiniMax-M2.7}"
|
|
1463
|
+
},
|
|
1464
|
+
{
|
|
1465
|
+
name: "ANTHROPIC_DEFAULT_HAIKU_MODEL",
|
|
1466
|
+
value: "${MINIMAX_HAIKU_MODEL:-MiniMax-M2.7-highspeed}"
|
|
1467
|
+
},
|
|
1468
|
+
{
|
|
1469
|
+
name: "CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC",
|
|
1470
|
+
value: "1"
|
|
1471
|
+
}
|
|
1472
|
+
],
|
|
1473
|
+
defaultPermissionMode: "default",
|
|
1474
|
+
compatibility: { claude: true, codex: false, gemini: false },
|
|
1475
|
+
isBuiltIn: true,
|
|
1476
|
+
createdAt: Date.now(),
|
|
1477
|
+
updatedAt: Date.now(),
|
|
1478
|
+
version: "1.0.0"
|
|
1479
|
+
};
|
|
1480
|
+
case "kimi":
|
|
1481
|
+
return {
|
|
1482
|
+
id: "kimi",
|
|
1483
|
+
name: "Kimi (K2.5)",
|
|
1484
|
+
anthropicConfig: {},
|
|
1485
|
+
environmentVariables: [
|
|
1486
|
+
{
|
|
1487
|
+
name: "ANTHROPIC_BASE_URL",
|
|
1488
|
+
value: "${KIMI_BASE_URL:-https://api.moonshot.ai/anthropic}"
|
|
1489
|
+
},
|
|
1490
|
+
{
|
|
1491
|
+
name: "ANTHROPIC_AUTH_TOKEN",
|
|
1492
|
+
value: "${KIMI_AUTH_TOKEN}"
|
|
1493
|
+
},
|
|
1494
|
+
{
|
|
1495
|
+
name: "API_TIMEOUT_MS",
|
|
1496
|
+
value: "${KIMI_API_TIMEOUT_MS:-3000000}"
|
|
1497
|
+
},
|
|
1498
|
+
{
|
|
1499
|
+
name: "ANTHROPIC_MODEL",
|
|
1500
|
+
value: "${KIMI_MODEL:-kimi-k2.5}"
|
|
1501
|
+
},
|
|
1502
|
+
{
|
|
1503
|
+
name: "ANTHROPIC_SMALL_FAST_MODEL",
|
|
1504
|
+
value: "${KIMI_SMALL_FAST_MODEL:-kimi-k2.5}"
|
|
1505
|
+
},
|
|
1506
|
+
{
|
|
1507
|
+
name: "ANTHROPIC_DEFAULT_OPUS_MODEL",
|
|
1508
|
+
value: "${KIMI_OPUS_MODEL:-kimi-k2.5}"
|
|
1509
|
+
},
|
|
1510
|
+
{
|
|
1511
|
+
name: "ANTHROPIC_DEFAULT_SONNET_MODEL",
|
|
1512
|
+
value: "${KIMI_SONNET_MODEL:-kimi-k2.5}"
|
|
1513
|
+
},
|
|
1514
|
+
{
|
|
1515
|
+
name: "ANTHROPIC_DEFAULT_HAIKU_MODEL",
|
|
1516
|
+
value: "${KIMI_HAIKU_MODEL:-kimi-k2.5}"
|
|
1517
|
+
},
|
|
1518
|
+
{
|
|
1519
|
+
name: "ENABLE_TOOL_SEARCH",
|
|
1520
|
+
value: "${KIMI_ENABLE_TOOL_SEARCH:-false}"
|
|
1521
|
+
}
|
|
1522
|
+
],
|
|
1523
|
+
defaultPermissionMode: "default",
|
|
1524
|
+
compatibility: { claude: true, codex: false, gemini: false },
|
|
1525
|
+
isBuiltIn: true,
|
|
1526
|
+
createdAt: Date.now(),
|
|
1527
|
+
updatedAt: Date.now(),
|
|
1528
|
+
version: "1.0.0"
|
|
1529
|
+
};
|
|
1530
|
+
default:
|
|
1531
|
+
return null;
|
|
1532
|
+
}
|
|
1533
|
+
}
|
|
1311
1534
|
function validateProfileForAgent(profile, agent) {
|
|
1312
1535
|
return profile.compatibility[agent];
|
|
1313
1536
|
}
|
|
@@ -1708,4 +1931,4 @@ function shouldAutoApproveHappyMcpReason(reason) {
|
|
|
1708
1931
|
);
|
|
1709
1932
|
}
|
|
1710
1933
|
|
|
1711
|
-
export { AGENT_MSG_PRIORITIES, AGENT_MSG_STATUSES, AGENT_MSG_TYPES, AIBackendProfileSchema, AcceptBodySchema, AgentLoopSummarySchema, AgentMessageSchema, AgentMessageSummarySchema, AgentMsgTypeSchema, AnthropicConfigSchema, ApiMessageSchema, ApiUpdateMachineStateSchema, ApiUpdateNewMessageSchema, ApiUpdateSessionStateSchema, AutoDreamProfileSummarySchema, AutomationAuditEventSummarySchema, AutomationAuditStatsSchema, AutomationCountsSchema, AutomationGuardianSummarySchema, AutomationGuardianUsageSummarySchema, AutomationJobKindSchema, AutomationJobStatusSchema, AutomationJobSummarySchema, AutomationPrioritySchema, AutomationStateSchema, AutonomyStatsRecentActionSchema, AutonomyStatsSchema, AzureOpenAIConfigSchema, BUILT_IN_AI_BACKEND_PROFILE_IDS, BootstrapProfileSummarySchema, BriefMessageSchema, BuiltInAIBackendProfileIdSchema, CliInstallInfoSchema, CliInstallSourceSchema, CodexConfigSchema, CoreUpdateBodySchema, CoreUpdateContainerSchema, CreateKnowledgeEntryBodySchema, CreateSkillBodySchema, CreateTaskBodySchema, CrossProjectSearchResponseSchema, CrossProjectSearchResultSchema, CustomModelSchema, DaemonStateSchema, DefaultPermissionModeSchema, EVIDENCE_KINDS, EnvironmentVariableSchema, HAPPY_MCP_AUTO_APPROVE_TOOL_NAMES, HAPPY_MCP_SILENT_SUCCESS_TOOL_NAMES, HAPPY_MCP_TOOL_NAMES, HAPPY_MCP_TOOL_SPECS, InboxCategorySchema, InboxItemSummarySchema, InboxNewItemSchema, InboxSeveritySchema, InboxUnreadCountSchema, KnowledgeActionSchema, KnowledgeChainEntrySchema, KnowledgeChainRelationSchema, KnowledgeChainResponseSchema, KnowledgeConfidenceSchema, KnowledgeContributorTypeSchema, KnowledgeEntryTypeSchema, KnowledgeInjectionModeSchema, KnowledgeInjectionRequestSchema, KnowledgeInjectionResponseSchema, KnowledgeStatusSchema, LegacyMessageContentSchema, MachineMetadataSchema, MessageContentSchema, MessageMetaSchema, OpenAIConfigSchema, ProfileCompatibilitySchema, ProjectProfileSchema, QueryKnowledgeParamsSchema, RESOLVED_RUNTIME_PROFILE_SCHEMA_VERSION, ResolvedRuntimeProfileSchema, RuntimeProfileSourceSchema, RuntimeProfileTrustSchema, SUGGESTION_ACCEPT_AUDIT_RULES, SUGGESTION_ACCEPT_SOURCES, SUGGESTION_AUTO_ACCEPT_FAILURE_DETAILS, SUGGESTION_AUTO_ACCEPT_REASON_CODES, SUGGESTION_AUTO_ACCEPT_STATUSES, SUGGESTION_BUCKETS, SUGGESTION_STATUSES, SUGGESTION_TYPES, SUPERVISOR_MODES, SessionEventCreatedSchema, SessionEventReportSchema, SessionEventSummarySchema, SessionEventTypeSchema, SessionMessageContentSchema, SessionMessageSchema, SessionProtocolMessageSchema, SkillContentSchema, SkillSummarySchema, SuggestionAcceptAuditSchema, SuggestionDecisionPayloadSchema, SuggestionEvidenceSchema, SuggestionGoalPayloadSchema, SuggestionPayloadSchema, SuggestionSkillPayloadSchema, SuggestionTaskPayloadSchema, TailscaleInfoSchema, TailscaleServeEntrySchema, TaskOutcomeSchema, TaskPrioritySchema, TaskStatusChangedSchema, TaskStatusReportSchema, TaskStatusSchema, TaskSummarySchema, TaskTriggerDataSchema, TaskTriggerTypeSchema, TmuxConfigSchema, TogetherAIConfigSchema, TunnelEntrySchema, TunnelProviderInfoSchema, TunnelStateSchema, TurnKnowledgeExtractionSchema, UpdateBodySchema, UpdateKnowledgeEntryBodySchema, UpdateMachineBodySchema, UpdateNewMessageBodySchema, UpdateSchema, UpdateSessionBodySchema, UpdateSkillBodySchema, UserMessageSchema, VersionedEncryptedValueSchema, VersionedMachineEncryptedValueSchema, VersionedNullableEncryptedValueSchema, VoiceTokenAllowedSchema, VoiceTokenDeniedSchema, VoiceTokenResponseSchema, WorldAutonomyPolicySchema, WorldSuggestionUpdatedSchema, createEnvelope, createResolvedRuntimeProfile, getHappyMcpToolAction, getHappyMcpToolAliases, getHappyMcpToolTitle, getProfileEnvironmentVariables, getSuggestionPayloadSchema, isHappyMcpToolAlias, isHappyMcpToolName, isTrustedRuntimeProfile, normalizeHappyMcpToolName, normalizeResolvedRuntimeProfile, sessionContextUsageCategorySchema, sessionContextUsageEventSchema, sessionEnvelopeSchema, sessionEventSchema, sessionFileEventSchema, sessionModelUsageSchema, sessionNeedsContinueEventSchema, sessionProgressListSchema, sessionProgressStateSchema, sessionProgressTodoSchema, sessionProgressTodoStatusSchema, sessionPromptSuggestionEventSchema, sessionRoleSchema, sessionServiceMessageEventSchema, sessionStartEventSchema, sessionStateChangedEventSchema, sessionStopEventSchema, sessionSummaryStateSchema, sessionTaskEndEventSchema, sessionTaskLogEventSchema, sessionTaskProgressEventSchema, sessionTaskStartEventSchema, sessionTextDeltaEventSchema, sessionTextEventSchema, sessionToolCallEndEventSchema, sessionToolCallStartEventSchema, sessionToolProgressEventSchema, sessionTurnEndEventSchema, sessionTurnEndStatusSchema, sessionTurnStartEventSchema, sessionUsageUpdateEventSchema, shouldAutoApproveHappyMcpReason, shouldAutoApproveHappyMcpToolName, shouldHideSuccessfulHappyMcpTool, terminalCloseRequestSchema, terminalExitPayloadSchema, terminalInputPayloadSchema, terminalOutputPayloadSchema, terminalResizeRequestSchema, terminalSpawnRequestSchema, terminalSpawnResponseSchema, validateProfileForAgent };
|
|
1934
|
+
export { AGENT_MSG_PRIORITIES, AGENT_MSG_STATUSES, AGENT_MSG_TYPES, AIBackendProfileSchema, AcceptBodySchema, AgentLoopSummarySchema, AgentMessageSchema, AgentMessageSummarySchema, AgentMsgTypeSchema, AnthropicConfigSchema, ApiMessageSchema, ApiUpdateMachineStateSchema, ApiUpdateNewMessageSchema, ApiUpdateSessionStateSchema, AutoDreamProfileSummarySchema, AutomationAuditEventSummarySchema, AutomationAuditStatsSchema, AutomationCountsSchema, AutomationGuardianSummarySchema, AutomationGuardianUsageSummarySchema, AutomationJobKindSchema, AutomationJobStatusSchema, AutomationJobSummarySchema, AutomationPrioritySchema, AutomationStateSchema, AutonomyStatsRecentActionSchema, AutonomyStatsSchema, AzureOpenAIConfigSchema, BUILT_IN_AI_BACKEND_PROFILE_IDS, BootstrapProfileSummarySchema, BriefMessageSchema, BuiltInAIBackendProfileIdSchema, CliInstallInfoSchema, CliInstallSourceSchema, CodexConfigSchema, CoreUpdateBodySchema, CoreUpdateContainerSchema, CreateKnowledgeEntryBodySchema, CreateSkillBodySchema, CreateTaskBodySchema, CrossProjectSearchResponseSchema, CrossProjectSearchResultSchema, CustomModelSchema, DaemonStateSchema, DefaultPermissionModeSchema, EVIDENCE_KINDS, EnvironmentVariableSchema, HAPPY_MCP_AUTO_APPROVE_TOOL_NAMES, HAPPY_MCP_SILENT_SUCCESS_TOOL_NAMES, HAPPY_MCP_TOOL_NAMES, HAPPY_MCP_TOOL_SPECS, InboxCategorySchema, InboxItemSummarySchema, InboxNewItemSchema, InboxSeveritySchema, InboxUnreadCountSchema, KnowledgeActionSchema, KnowledgeChainEntrySchema, KnowledgeChainRelationSchema, KnowledgeChainResponseSchema, KnowledgeConfidenceSchema, KnowledgeContributorTypeSchema, KnowledgeEntryTypeSchema, KnowledgeInjectionModeSchema, KnowledgeInjectionRequestSchema, KnowledgeInjectionResponseSchema, KnowledgeStatusSchema, LegacyMessageContentSchema, MachineMetadataSchema, MessageContentSchema, MessageMetaSchema, OpenAIConfigSchema, ProfileCompatibilitySchema, ProjectProfileSchema, QueryKnowledgeParamsSchema, RESOLVED_RUNTIME_PROFILE_SCHEMA_VERSION, ResolvedRuntimeProfileSchema, RuntimeProfileSourceSchema, RuntimeProfileTrustSchema, SUGGESTION_ACCEPT_AUDIT_RULES, SUGGESTION_ACCEPT_SOURCES, SUGGESTION_AUTO_ACCEPT_FAILURE_DETAILS, SUGGESTION_AUTO_ACCEPT_REASON_CODES, SUGGESTION_AUTO_ACCEPT_STATUSES, SUGGESTION_BUCKETS, SUGGESTION_STATUSES, SUGGESTION_TYPES, SUPERVISOR_MODES, SessionEventCreatedSchema, SessionEventReportSchema, SessionEventSummarySchema, SessionEventTypeSchema, SessionMessageContentSchema, SessionMessageSchema, SessionProtocolMessageSchema, SkillContentSchema, SkillSummarySchema, SuggestionAcceptAuditSchema, SuggestionDecisionPayloadSchema, SuggestionEvidenceSchema, SuggestionGoalPayloadSchema, SuggestionPayloadSchema, SuggestionSkillPayloadSchema, SuggestionTaskPayloadSchema, TailscaleInfoSchema, TailscaleServeEntrySchema, TaskOutcomeSchema, TaskPrioritySchema, TaskStatusChangedSchema, TaskStatusReportSchema, TaskStatusSchema, TaskSummarySchema, TaskTriggerDataSchema, TaskTriggerTypeSchema, TmuxConfigSchema, TogetherAIConfigSchema, TunnelEntrySchema, TunnelProviderInfoSchema, TunnelStateSchema, TurnKnowledgeExtractionSchema, UpdateBodySchema, UpdateKnowledgeEntryBodySchema, UpdateMachineBodySchema, UpdateNewMessageBodySchema, UpdateSchema, UpdateSessionBodySchema, UpdateSkillBodySchema, UserMessageSchema, VersionedEncryptedValueSchema, VersionedMachineEncryptedValueSchema, VersionedNullableEncryptedValueSchema, VoiceTokenAllowedSchema, VoiceTokenDeniedSchema, VoiceTokenResponseSchema, WorldAutonomyPolicySchema, WorldSuggestionUpdatedSchema, createEnvelope, createResolvedRuntimeProfile, getBuiltInAIBackendProfile, getHappyMcpToolAction, getHappyMcpToolAliases, getHappyMcpToolTitle, getProfileEnvironmentVariables, getSuggestionPayloadSchema, isHappyMcpToolAlias, isHappyMcpToolName, isTrustedRuntimeProfile, normalizeHappyMcpToolName, normalizeResolvedRuntimeProfile, sessionContextUsageCategorySchema, sessionContextUsageEventSchema, sessionEnvelopeSchema, sessionEventSchema, sessionFileEventSchema, sessionModelUsageSchema, sessionNeedsContinueEventSchema, sessionProgressListSchema, sessionProgressStateSchema, sessionProgressTodoSchema, sessionProgressTodoStatusSchema, sessionPromptSuggestionEventSchema, sessionRoleSchema, sessionServiceMessageEventSchema, sessionStartEventSchema, sessionStateChangedEventSchema, sessionStopEventSchema, sessionSummaryStateSchema, sessionTaskEndEventSchema, sessionTaskLogEventSchema, sessionTaskProgressEventSchema, sessionTaskStartEventSchema, sessionTextDeltaEventSchema, sessionTextEventSchema, sessionToolCallEndEventSchema, sessionToolCallStartEventSchema, sessionToolProgressEventSchema, sessionTurnEndEventSchema, sessionTurnEndStatusSchema, sessionTurnStartEventSchema, sessionUsageUpdateEventSchema, shouldAutoApproveHappyMcpReason, shouldAutoApproveHappyMcpToolName, shouldHideSuccessfulHappyMcpTool, terminalCloseRequestSchema, terminalExitPayloadSchema, terminalInputPayloadSchema, terminalOutputPayloadSchema, terminalResizeRequestSchema, terminalSpawnRequestSchema, terminalSpawnResponseSchema, validateProfileForAgent };
|