@kmmao/happy-wire 0.8.0 → 0.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +118 -14
- package/dist/index.d.cts +338 -2
- package/dist/index.d.mts +338 -2
- package/dist/index.mjs +109 -15
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -379,25 +379,15 @@ const TailscaleInfoSchema = z__namespace.object({
|
|
|
379
379
|
serves: z__namespace.array(TailscaleServeEntrySchema).optional()
|
|
380
380
|
});
|
|
381
381
|
const TunnelEntrySchema = z__namespace.object({
|
|
382
|
-
/** Provider identifier: "tailscale" | "upnp" | "cloudflare" | "frp" */
|
|
383
382
|
provider: z__namespace.string(),
|
|
384
|
-
/** Local port the service is running on */
|
|
385
383
|
localPort: z__namespace.number(),
|
|
386
|
-
/** Remote/public port (e.g. UPnP external port, Tailscale HTTPS port) */
|
|
387
384
|
remotePort: z__namespace.number().optional(),
|
|
388
|
-
/** Protocol: "HTTPS" | "HTTP" | "TCP" | "UDP" */
|
|
389
385
|
protocol: z__namespace.string(),
|
|
390
|
-
/** Mount path (Tailscale serve path, e.g. "/api") */
|
|
391
386
|
path: z__namespace.string().optional(),
|
|
392
|
-
/** Proxy target URL "http://127.0.0.1:3000" */
|
|
393
387
|
target: z__namespace.string(),
|
|
394
|
-
/** Full public access URL if available */
|
|
395
388
|
publicUrl: z__namespace.string().optional(),
|
|
396
|
-
/** Access scope */
|
|
397
389
|
accessScope: z__namespace.enum(["public", "private", "tailnet"]),
|
|
398
|
-
/** Hostname (Tailscale MagicDNS, Cloudflare domain, etc.) */
|
|
399
390
|
hostname: z__namespace.string().optional(),
|
|
400
|
-
/** Provider-specific extra info */
|
|
401
391
|
metadata: z__namespace.record(z__namespace.string(), z__namespace.string()).optional()
|
|
402
392
|
});
|
|
403
393
|
const TunnelProviderInfoSchema = z__namespace.object({
|
|
@@ -405,29 +395,133 @@ const TunnelProviderInfoSchema = z__namespace.object({
|
|
|
405
395
|
status: z__namespace.enum(["available", "unavailable", "not-installed"]),
|
|
406
396
|
version: z__namespace.string().optional(),
|
|
407
397
|
entries: z__namespace.array(TunnelEntrySchema),
|
|
408
|
-
/** Provider-level info (e.g. Tailscale ipv4/hostname, UPnP external IP) */
|
|
409
398
|
metadata: z__namespace.record(z__namespace.string(), z__namespace.string()).optional()
|
|
410
399
|
});
|
|
411
400
|
const TunnelStateSchema = z__namespace.object({
|
|
412
401
|
providers: z__namespace.array(TunnelProviderInfoSchema)
|
|
413
402
|
});
|
|
403
|
+
const AutomationPrioritySchema = z__namespace.enum(["urgent", "user", "background"]);
|
|
404
|
+
const AutomationJobKindSchema = z__namespace.enum(["supervisor", "webhook", "agent_loop"]);
|
|
405
|
+
const AutomationJobStatusSchema = z__namespace.enum([
|
|
406
|
+
"queued",
|
|
407
|
+
"dispatching",
|
|
408
|
+
"running",
|
|
409
|
+
"completed",
|
|
410
|
+
"failed",
|
|
411
|
+
"cancelled"
|
|
412
|
+
]);
|
|
413
|
+
const AutomationJobSummarySchema = z__namespace.object({
|
|
414
|
+
id: z__namespace.string(),
|
|
415
|
+
kind: AutomationJobKindSchema,
|
|
416
|
+
status: AutomationJobStatusSchema,
|
|
417
|
+
priority: AutomationPrioritySchema,
|
|
418
|
+
dedupeKey: z__namespace.string(),
|
|
419
|
+
attempt: z__namespace.number(),
|
|
420
|
+
maxAttempts: z__namespace.number(),
|
|
421
|
+
createdAt: z__namespace.number(),
|
|
422
|
+
updatedAt: z__namespace.number(),
|
|
423
|
+
dispatchedAt: z__namespace.number().optional(),
|
|
424
|
+
completedAt: z__namespace.number().optional(),
|
|
425
|
+
nextRunAt: z__namespace.number().optional(),
|
|
426
|
+
sessionId: z__namespace.string().optional(),
|
|
427
|
+
label: z__namespace.string().optional(),
|
|
428
|
+
projectId: z__namespace.string().optional(),
|
|
429
|
+
runId: z__namespace.string().optional(),
|
|
430
|
+
loopId: z__namespace.string().optional(),
|
|
431
|
+
loopIteration: z__namespace.number().optional(),
|
|
432
|
+
continuityKey: z__namespace.string().optional(),
|
|
433
|
+
errorMessage: z__namespace.string().optional(),
|
|
434
|
+
recovered: z__namespace.boolean().optional()
|
|
435
|
+
});
|
|
436
|
+
const AutomationGuardianSummarySchema = z__namespace.object({
|
|
437
|
+
key: z__namespace.string(),
|
|
438
|
+
projectId: z__namespace.string(),
|
|
439
|
+
loopId: z__namespace.string().optional(),
|
|
440
|
+
sessionId: z__namespace.string(),
|
|
441
|
+
updatedAt: z__namespace.number(),
|
|
442
|
+
lastRunId: z__namespace.string().optional(),
|
|
443
|
+
attached: z__namespace.boolean().optional(),
|
|
444
|
+
recovered: z__namespace.boolean().optional()
|
|
445
|
+
});
|
|
446
|
+
const AutomationGuardianUsageSummarySchema = z__namespace.object({
|
|
447
|
+
key: z__namespace.string(),
|
|
448
|
+
projectId: z__namespace.string().optional(),
|
|
449
|
+
loopId: z__namespace.string().optional(),
|
|
450
|
+
reuseCount: z__namespace.number(),
|
|
451
|
+
rememberCount: z__namespace.number(),
|
|
452
|
+
resetCount: z__namespace.number(),
|
|
453
|
+
lastUsedAt: z__namespace.number(),
|
|
454
|
+
currentSessionId: z__namespace.string().optional()
|
|
455
|
+
});
|
|
456
|
+
const AutomationAuditEventSummarySchema = z__namespace.object({
|
|
457
|
+
id: z__namespace.string(),
|
|
458
|
+
occurredAt: z__namespace.number(),
|
|
459
|
+
kind: z__namespace.string(),
|
|
460
|
+
jobId: z__namespace.string().optional(),
|
|
461
|
+
dedupeKey: z__namespace.string().optional(),
|
|
462
|
+
sessionId: z__namespace.string().optional(),
|
|
463
|
+
projectId: z__namespace.string().optional(),
|
|
464
|
+
runId: z__namespace.string().optional(),
|
|
465
|
+
loopId: z__namespace.string().optional(),
|
|
466
|
+
trigger: z__namespace.string().optional(),
|
|
467
|
+
status: z__namespace.string().optional(),
|
|
468
|
+
guardianKey: z__namespace.string().optional(),
|
|
469
|
+
guardianSessionId: z__namespace.string().optional(),
|
|
470
|
+
message: z__namespace.string().optional()
|
|
471
|
+
});
|
|
472
|
+
const AutomationAuditStatsSchema = z__namespace.object({
|
|
473
|
+
totalEvents: z__namespace.number(),
|
|
474
|
+
lastEventAt: z__namespace.number().optional(),
|
|
475
|
+
queuedCount: z__namespace.number(),
|
|
476
|
+
sessionStartedCount: z__namespace.number(),
|
|
477
|
+
terminalCompletedCount: z__namespace.number(),
|
|
478
|
+
terminalFailedCount: z__namespace.number(),
|
|
479
|
+
terminalCancelledCount: z__namespace.number(),
|
|
480
|
+
guardianReuseCount: z__namespace.number(),
|
|
481
|
+
guardianRememberCount: z__namespace.number(),
|
|
482
|
+
guardianResetCount: z__namespace.number(),
|
|
483
|
+
sessionReattachedCount: z__namespace.number(),
|
|
484
|
+
watchdogStopCount: z__namespace.number(),
|
|
485
|
+
stopRequestCount: z__namespace.number(),
|
|
486
|
+
guardianEligibleRunCount: z__namespace.number(),
|
|
487
|
+
guardianReuseRate: z__namespace.number(),
|
|
488
|
+
activeGuardianCount: z__namespace.number()
|
|
489
|
+
});
|
|
490
|
+
const AutomationCountsSchema = z__namespace.object({
|
|
491
|
+
queued: z__namespace.number(),
|
|
492
|
+
dispatching: z__namespace.number(),
|
|
493
|
+
running: z__namespace.number(),
|
|
494
|
+
completed: z__namespace.number(),
|
|
495
|
+
failed: z__namespace.number(),
|
|
496
|
+
cancelled: z__namespace.number()
|
|
497
|
+
});
|
|
498
|
+
const AutomationStateSchema = z__namespace.object({
|
|
499
|
+
updatedAt: z__namespace.number(),
|
|
500
|
+
counts: AutomationCountsSchema,
|
|
501
|
+
recentJobs: z__namespace.array(AutomationJobSummarySchema),
|
|
502
|
+
guardians: z__namespace.array(AutomationGuardianSummarySchema).optional(),
|
|
503
|
+
guardianUsage: z__namespace.array(AutomationGuardianUsageSummarySchema).optional(),
|
|
504
|
+
auditStats: AutomationAuditStatsSchema.optional(),
|
|
505
|
+
recentAuditEvents: z__namespace.array(AutomationAuditEventSummarySchema).optional()
|
|
506
|
+
});
|
|
414
507
|
const DaemonStateSchema = z__namespace.object({
|
|
415
508
|
status: z__namespace.union([
|
|
416
509
|
z__namespace.enum(["running", "shutting-down"]),
|
|
417
510
|
z__namespace.string()
|
|
418
|
-
// Forward compatibility
|
|
419
511
|
]),
|
|
420
512
|
pid: z__namespace.number().optional(),
|
|
421
513
|
httpPort: z__namespace.number().optional(),
|
|
514
|
+
startTime: z__namespace.union([z__namespace.number(), z__namespace.string()]).optional(),
|
|
422
515
|
startedAt: z__namespace.number().optional(),
|
|
516
|
+
startedWithCliVersion: z__namespace.string().optional(),
|
|
423
517
|
shutdownRequestedAt: z__namespace.number().optional(),
|
|
424
518
|
shutdownSource: z__namespace.union([
|
|
425
519
|
z__namespace.enum(["mobile-app", "cli", "os-signal", "unknown"]),
|
|
426
520
|
z__namespace.string()
|
|
427
|
-
// Forward compatibility
|
|
428
521
|
]).optional(),
|
|
429
522
|
tailscale: TailscaleInfoSchema.optional(),
|
|
430
|
-
tunnels: TunnelStateSchema.optional()
|
|
523
|
+
tunnels: TunnelStateSchema.optional(),
|
|
524
|
+
automation: AutomationStateSchema.optional()
|
|
431
525
|
});
|
|
432
526
|
|
|
433
527
|
const KnowledgeEntryTypeSchema = z__namespace.enum([
|
|
@@ -616,6 +710,16 @@ exports.ApiMessageSchema = ApiMessageSchema;
|
|
|
616
710
|
exports.ApiUpdateMachineStateSchema = ApiUpdateMachineStateSchema;
|
|
617
711
|
exports.ApiUpdateNewMessageSchema = ApiUpdateNewMessageSchema;
|
|
618
712
|
exports.ApiUpdateSessionStateSchema = ApiUpdateSessionStateSchema;
|
|
713
|
+
exports.AutomationAuditEventSummarySchema = AutomationAuditEventSummarySchema;
|
|
714
|
+
exports.AutomationAuditStatsSchema = AutomationAuditStatsSchema;
|
|
715
|
+
exports.AutomationCountsSchema = AutomationCountsSchema;
|
|
716
|
+
exports.AutomationGuardianSummarySchema = AutomationGuardianSummarySchema;
|
|
717
|
+
exports.AutomationGuardianUsageSummarySchema = AutomationGuardianUsageSummarySchema;
|
|
718
|
+
exports.AutomationJobKindSchema = AutomationJobKindSchema;
|
|
719
|
+
exports.AutomationJobStatusSchema = AutomationJobStatusSchema;
|
|
720
|
+
exports.AutomationJobSummarySchema = AutomationJobSummarySchema;
|
|
721
|
+
exports.AutomationPrioritySchema = AutomationPrioritySchema;
|
|
722
|
+
exports.AutomationStateSchema = AutomationStateSchema;
|
|
619
723
|
exports.CoreUpdateBodySchema = CoreUpdateBodySchema;
|
|
620
724
|
exports.CoreUpdateContainerSchema = CoreUpdateContainerSchema;
|
|
621
725
|
exports.CreateKnowledgeEntryBodySchema = CreateKnowledgeEntryBodySchema;
|
package/dist/index.d.cts
CHANGED
|
@@ -1473,6 +1473,237 @@ declare const TunnelStateSchema: z.ZodObject<{
|
|
|
1473
1473
|
}, z.core.$strip>>;
|
|
1474
1474
|
}, z.core.$strip>;
|
|
1475
1475
|
type TunnelState = z.infer<typeof TunnelStateSchema>;
|
|
1476
|
+
declare const AutomationPrioritySchema: z.ZodEnum<{
|
|
1477
|
+
user: "user";
|
|
1478
|
+
urgent: "urgent";
|
|
1479
|
+
background: "background";
|
|
1480
|
+
}>;
|
|
1481
|
+
type AutomationPriority = z.infer<typeof AutomationPrioritySchema>;
|
|
1482
|
+
declare const AutomationJobKindSchema: z.ZodEnum<{
|
|
1483
|
+
supervisor: "supervisor";
|
|
1484
|
+
webhook: "webhook";
|
|
1485
|
+
agent_loop: "agent_loop";
|
|
1486
|
+
}>;
|
|
1487
|
+
type AutomationJobKind = z.infer<typeof AutomationJobKindSchema>;
|
|
1488
|
+
declare const AutomationJobStatusSchema: z.ZodEnum<{
|
|
1489
|
+
completed: "completed";
|
|
1490
|
+
failed: "failed";
|
|
1491
|
+
cancelled: "cancelled";
|
|
1492
|
+
running: "running";
|
|
1493
|
+
queued: "queued";
|
|
1494
|
+
dispatching: "dispatching";
|
|
1495
|
+
}>;
|
|
1496
|
+
type AutomationJobStatus = z.infer<typeof AutomationJobStatusSchema>;
|
|
1497
|
+
declare const AutomationJobSummarySchema: z.ZodObject<{
|
|
1498
|
+
id: z.ZodString;
|
|
1499
|
+
kind: z.ZodEnum<{
|
|
1500
|
+
supervisor: "supervisor";
|
|
1501
|
+
webhook: "webhook";
|
|
1502
|
+
agent_loop: "agent_loop";
|
|
1503
|
+
}>;
|
|
1504
|
+
status: z.ZodEnum<{
|
|
1505
|
+
completed: "completed";
|
|
1506
|
+
failed: "failed";
|
|
1507
|
+
cancelled: "cancelled";
|
|
1508
|
+
running: "running";
|
|
1509
|
+
queued: "queued";
|
|
1510
|
+
dispatching: "dispatching";
|
|
1511
|
+
}>;
|
|
1512
|
+
priority: z.ZodEnum<{
|
|
1513
|
+
user: "user";
|
|
1514
|
+
urgent: "urgent";
|
|
1515
|
+
background: "background";
|
|
1516
|
+
}>;
|
|
1517
|
+
dedupeKey: z.ZodString;
|
|
1518
|
+
attempt: z.ZodNumber;
|
|
1519
|
+
maxAttempts: z.ZodNumber;
|
|
1520
|
+
createdAt: z.ZodNumber;
|
|
1521
|
+
updatedAt: z.ZodNumber;
|
|
1522
|
+
dispatchedAt: z.ZodOptional<z.ZodNumber>;
|
|
1523
|
+
completedAt: z.ZodOptional<z.ZodNumber>;
|
|
1524
|
+
nextRunAt: z.ZodOptional<z.ZodNumber>;
|
|
1525
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
1526
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1527
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
1528
|
+
runId: z.ZodOptional<z.ZodString>;
|
|
1529
|
+
loopId: z.ZodOptional<z.ZodString>;
|
|
1530
|
+
loopIteration: z.ZodOptional<z.ZodNumber>;
|
|
1531
|
+
continuityKey: z.ZodOptional<z.ZodString>;
|
|
1532
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1533
|
+
recovered: z.ZodOptional<z.ZodBoolean>;
|
|
1534
|
+
}, z.core.$strip>;
|
|
1535
|
+
type AutomationJobSummary = z.infer<typeof AutomationJobSummarySchema>;
|
|
1536
|
+
declare const AutomationGuardianSummarySchema: z.ZodObject<{
|
|
1537
|
+
key: z.ZodString;
|
|
1538
|
+
projectId: z.ZodString;
|
|
1539
|
+
loopId: z.ZodOptional<z.ZodString>;
|
|
1540
|
+
sessionId: z.ZodString;
|
|
1541
|
+
updatedAt: z.ZodNumber;
|
|
1542
|
+
lastRunId: z.ZodOptional<z.ZodString>;
|
|
1543
|
+
attached: z.ZodOptional<z.ZodBoolean>;
|
|
1544
|
+
recovered: z.ZodOptional<z.ZodBoolean>;
|
|
1545
|
+
}, z.core.$strip>;
|
|
1546
|
+
type AutomationGuardianSummary = z.infer<typeof AutomationGuardianSummarySchema>;
|
|
1547
|
+
declare const AutomationGuardianUsageSummarySchema: z.ZodObject<{
|
|
1548
|
+
key: z.ZodString;
|
|
1549
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
1550
|
+
loopId: z.ZodOptional<z.ZodString>;
|
|
1551
|
+
reuseCount: z.ZodNumber;
|
|
1552
|
+
rememberCount: z.ZodNumber;
|
|
1553
|
+
resetCount: z.ZodNumber;
|
|
1554
|
+
lastUsedAt: z.ZodNumber;
|
|
1555
|
+
currentSessionId: z.ZodOptional<z.ZodString>;
|
|
1556
|
+
}, z.core.$strip>;
|
|
1557
|
+
type AutomationGuardianUsageSummary = z.infer<typeof AutomationGuardianUsageSummarySchema>;
|
|
1558
|
+
declare const AutomationAuditEventSummarySchema: z.ZodObject<{
|
|
1559
|
+
id: z.ZodString;
|
|
1560
|
+
occurredAt: z.ZodNumber;
|
|
1561
|
+
kind: z.ZodString;
|
|
1562
|
+
jobId: z.ZodOptional<z.ZodString>;
|
|
1563
|
+
dedupeKey: z.ZodOptional<z.ZodString>;
|
|
1564
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
1565
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
1566
|
+
runId: z.ZodOptional<z.ZodString>;
|
|
1567
|
+
loopId: z.ZodOptional<z.ZodString>;
|
|
1568
|
+
trigger: z.ZodOptional<z.ZodString>;
|
|
1569
|
+
status: z.ZodOptional<z.ZodString>;
|
|
1570
|
+
guardianKey: z.ZodOptional<z.ZodString>;
|
|
1571
|
+
guardianSessionId: z.ZodOptional<z.ZodString>;
|
|
1572
|
+
message: z.ZodOptional<z.ZodString>;
|
|
1573
|
+
}, z.core.$strip>;
|
|
1574
|
+
type AutomationAuditEventSummary = z.infer<typeof AutomationAuditEventSummarySchema>;
|
|
1575
|
+
declare const AutomationAuditStatsSchema: z.ZodObject<{
|
|
1576
|
+
totalEvents: z.ZodNumber;
|
|
1577
|
+
lastEventAt: z.ZodOptional<z.ZodNumber>;
|
|
1578
|
+
queuedCount: z.ZodNumber;
|
|
1579
|
+
sessionStartedCount: z.ZodNumber;
|
|
1580
|
+
terminalCompletedCount: z.ZodNumber;
|
|
1581
|
+
terminalFailedCount: z.ZodNumber;
|
|
1582
|
+
terminalCancelledCount: z.ZodNumber;
|
|
1583
|
+
guardianReuseCount: z.ZodNumber;
|
|
1584
|
+
guardianRememberCount: z.ZodNumber;
|
|
1585
|
+
guardianResetCount: z.ZodNumber;
|
|
1586
|
+
sessionReattachedCount: z.ZodNumber;
|
|
1587
|
+
watchdogStopCount: z.ZodNumber;
|
|
1588
|
+
stopRequestCount: z.ZodNumber;
|
|
1589
|
+
guardianEligibleRunCount: z.ZodNumber;
|
|
1590
|
+
guardianReuseRate: z.ZodNumber;
|
|
1591
|
+
activeGuardianCount: z.ZodNumber;
|
|
1592
|
+
}, z.core.$strip>;
|
|
1593
|
+
type AutomationAuditStats = z.infer<typeof AutomationAuditStatsSchema>;
|
|
1594
|
+
declare const AutomationCountsSchema: z.ZodObject<{
|
|
1595
|
+
queued: z.ZodNumber;
|
|
1596
|
+
dispatching: z.ZodNumber;
|
|
1597
|
+
running: z.ZodNumber;
|
|
1598
|
+
completed: z.ZodNumber;
|
|
1599
|
+
failed: z.ZodNumber;
|
|
1600
|
+
cancelled: z.ZodNumber;
|
|
1601
|
+
}, z.core.$strip>;
|
|
1602
|
+
type AutomationCounts = z.infer<typeof AutomationCountsSchema>;
|
|
1603
|
+
declare const AutomationStateSchema: z.ZodObject<{
|
|
1604
|
+
updatedAt: z.ZodNumber;
|
|
1605
|
+
counts: z.ZodObject<{
|
|
1606
|
+
queued: z.ZodNumber;
|
|
1607
|
+
dispatching: z.ZodNumber;
|
|
1608
|
+
running: z.ZodNumber;
|
|
1609
|
+
completed: z.ZodNumber;
|
|
1610
|
+
failed: z.ZodNumber;
|
|
1611
|
+
cancelled: z.ZodNumber;
|
|
1612
|
+
}, z.core.$strip>;
|
|
1613
|
+
recentJobs: z.ZodArray<z.ZodObject<{
|
|
1614
|
+
id: z.ZodString;
|
|
1615
|
+
kind: z.ZodEnum<{
|
|
1616
|
+
supervisor: "supervisor";
|
|
1617
|
+
webhook: "webhook";
|
|
1618
|
+
agent_loop: "agent_loop";
|
|
1619
|
+
}>;
|
|
1620
|
+
status: z.ZodEnum<{
|
|
1621
|
+
completed: "completed";
|
|
1622
|
+
failed: "failed";
|
|
1623
|
+
cancelled: "cancelled";
|
|
1624
|
+
running: "running";
|
|
1625
|
+
queued: "queued";
|
|
1626
|
+
dispatching: "dispatching";
|
|
1627
|
+
}>;
|
|
1628
|
+
priority: z.ZodEnum<{
|
|
1629
|
+
user: "user";
|
|
1630
|
+
urgent: "urgent";
|
|
1631
|
+
background: "background";
|
|
1632
|
+
}>;
|
|
1633
|
+
dedupeKey: z.ZodString;
|
|
1634
|
+
attempt: z.ZodNumber;
|
|
1635
|
+
maxAttempts: z.ZodNumber;
|
|
1636
|
+
createdAt: z.ZodNumber;
|
|
1637
|
+
updatedAt: z.ZodNumber;
|
|
1638
|
+
dispatchedAt: z.ZodOptional<z.ZodNumber>;
|
|
1639
|
+
completedAt: z.ZodOptional<z.ZodNumber>;
|
|
1640
|
+
nextRunAt: z.ZodOptional<z.ZodNumber>;
|
|
1641
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
1642
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1643
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
1644
|
+
runId: z.ZodOptional<z.ZodString>;
|
|
1645
|
+
loopId: z.ZodOptional<z.ZodString>;
|
|
1646
|
+
loopIteration: z.ZodOptional<z.ZodNumber>;
|
|
1647
|
+
continuityKey: z.ZodOptional<z.ZodString>;
|
|
1648
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1649
|
+
recovered: z.ZodOptional<z.ZodBoolean>;
|
|
1650
|
+
}, z.core.$strip>>;
|
|
1651
|
+
guardians: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1652
|
+
key: z.ZodString;
|
|
1653
|
+
projectId: z.ZodString;
|
|
1654
|
+
loopId: z.ZodOptional<z.ZodString>;
|
|
1655
|
+
sessionId: z.ZodString;
|
|
1656
|
+
updatedAt: z.ZodNumber;
|
|
1657
|
+
lastRunId: z.ZodOptional<z.ZodString>;
|
|
1658
|
+
attached: z.ZodOptional<z.ZodBoolean>;
|
|
1659
|
+
recovered: z.ZodOptional<z.ZodBoolean>;
|
|
1660
|
+
}, z.core.$strip>>>;
|
|
1661
|
+
guardianUsage: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1662
|
+
key: z.ZodString;
|
|
1663
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
1664
|
+
loopId: z.ZodOptional<z.ZodString>;
|
|
1665
|
+
reuseCount: z.ZodNumber;
|
|
1666
|
+
rememberCount: z.ZodNumber;
|
|
1667
|
+
resetCount: z.ZodNumber;
|
|
1668
|
+
lastUsedAt: z.ZodNumber;
|
|
1669
|
+
currentSessionId: z.ZodOptional<z.ZodString>;
|
|
1670
|
+
}, z.core.$strip>>>;
|
|
1671
|
+
auditStats: z.ZodOptional<z.ZodObject<{
|
|
1672
|
+
totalEvents: z.ZodNumber;
|
|
1673
|
+
lastEventAt: z.ZodOptional<z.ZodNumber>;
|
|
1674
|
+
queuedCount: z.ZodNumber;
|
|
1675
|
+
sessionStartedCount: z.ZodNumber;
|
|
1676
|
+
terminalCompletedCount: z.ZodNumber;
|
|
1677
|
+
terminalFailedCount: z.ZodNumber;
|
|
1678
|
+
terminalCancelledCount: z.ZodNumber;
|
|
1679
|
+
guardianReuseCount: z.ZodNumber;
|
|
1680
|
+
guardianRememberCount: z.ZodNumber;
|
|
1681
|
+
guardianResetCount: z.ZodNumber;
|
|
1682
|
+
sessionReattachedCount: z.ZodNumber;
|
|
1683
|
+
watchdogStopCount: z.ZodNumber;
|
|
1684
|
+
stopRequestCount: z.ZodNumber;
|
|
1685
|
+
guardianEligibleRunCount: z.ZodNumber;
|
|
1686
|
+
guardianReuseRate: z.ZodNumber;
|
|
1687
|
+
activeGuardianCount: z.ZodNumber;
|
|
1688
|
+
}, z.core.$strip>>;
|
|
1689
|
+
recentAuditEvents: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1690
|
+
id: z.ZodString;
|
|
1691
|
+
occurredAt: z.ZodNumber;
|
|
1692
|
+
kind: z.ZodString;
|
|
1693
|
+
jobId: z.ZodOptional<z.ZodString>;
|
|
1694
|
+
dedupeKey: z.ZodOptional<z.ZodString>;
|
|
1695
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
1696
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
1697
|
+
runId: z.ZodOptional<z.ZodString>;
|
|
1698
|
+
loopId: z.ZodOptional<z.ZodString>;
|
|
1699
|
+
trigger: z.ZodOptional<z.ZodString>;
|
|
1700
|
+
status: z.ZodOptional<z.ZodString>;
|
|
1701
|
+
guardianKey: z.ZodOptional<z.ZodString>;
|
|
1702
|
+
guardianSessionId: z.ZodOptional<z.ZodString>;
|
|
1703
|
+
message: z.ZodOptional<z.ZodString>;
|
|
1704
|
+
}, z.core.$strip>>>;
|
|
1705
|
+
}, z.core.$strip>;
|
|
1706
|
+
type AutomationState = z.infer<typeof AutomationStateSchema>;
|
|
1476
1707
|
declare const DaemonStateSchema: z.ZodObject<{
|
|
1477
1708
|
status: z.ZodUnion<readonly [z.ZodEnum<{
|
|
1478
1709
|
running: "running";
|
|
@@ -1480,7 +1711,9 @@ declare const DaemonStateSchema: z.ZodObject<{
|
|
|
1480
1711
|
}>, z.ZodString]>;
|
|
1481
1712
|
pid: z.ZodOptional<z.ZodNumber>;
|
|
1482
1713
|
httpPort: z.ZodOptional<z.ZodNumber>;
|
|
1714
|
+
startTime: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
1483
1715
|
startedAt: z.ZodOptional<z.ZodNumber>;
|
|
1716
|
+
startedWithCliVersion: z.ZodOptional<z.ZodString>;
|
|
1484
1717
|
shutdownRequestedAt: z.ZodOptional<z.ZodNumber>;
|
|
1485
1718
|
shutdownSource: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1486
1719
|
unknown: "unknown";
|
|
@@ -1536,6 +1769,109 @@ declare const DaemonStateSchema: z.ZodObject<{
|
|
|
1536
1769
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1537
1770
|
}, z.core.$strip>>;
|
|
1538
1771
|
}, z.core.$strip>>;
|
|
1772
|
+
automation: z.ZodOptional<z.ZodObject<{
|
|
1773
|
+
updatedAt: z.ZodNumber;
|
|
1774
|
+
counts: z.ZodObject<{
|
|
1775
|
+
queued: z.ZodNumber;
|
|
1776
|
+
dispatching: z.ZodNumber;
|
|
1777
|
+
running: z.ZodNumber;
|
|
1778
|
+
completed: z.ZodNumber;
|
|
1779
|
+
failed: z.ZodNumber;
|
|
1780
|
+
cancelled: z.ZodNumber;
|
|
1781
|
+
}, z.core.$strip>;
|
|
1782
|
+
recentJobs: z.ZodArray<z.ZodObject<{
|
|
1783
|
+
id: z.ZodString;
|
|
1784
|
+
kind: z.ZodEnum<{
|
|
1785
|
+
supervisor: "supervisor";
|
|
1786
|
+
webhook: "webhook";
|
|
1787
|
+
agent_loop: "agent_loop";
|
|
1788
|
+
}>;
|
|
1789
|
+
status: z.ZodEnum<{
|
|
1790
|
+
completed: "completed";
|
|
1791
|
+
failed: "failed";
|
|
1792
|
+
cancelled: "cancelled";
|
|
1793
|
+
running: "running";
|
|
1794
|
+
queued: "queued";
|
|
1795
|
+
dispatching: "dispatching";
|
|
1796
|
+
}>;
|
|
1797
|
+
priority: z.ZodEnum<{
|
|
1798
|
+
user: "user";
|
|
1799
|
+
urgent: "urgent";
|
|
1800
|
+
background: "background";
|
|
1801
|
+
}>;
|
|
1802
|
+
dedupeKey: z.ZodString;
|
|
1803
|
+
attempt: z.ZodNumber;
|
|
1804
|
+
maxAttempts: z.ZodNumber;
|
|
1805
|
+
createdAt: z.ZodNumber;
|
|
1806
|
+
updatedAt: z.ZodNumber;
|
|
1807
|
+
dispatchedAt: z.ZodOptional<z.ZodNumber>;
|
|
1808
|
+
completedAt: z.ZodOptional<z.ZodNumber>;
|
|
1809
|
+
nextRunAt: z.ZodOptional<z.ZodNumber>;
|
|
1810
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
1811
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1812
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
1813
|
+
runId: z.ZodOptional<z.ZodString>;
|
|
1814
|
+
loopId: z.ZodOptional<z.ZodString>;
|
|
1815
|
+
loopIteration: z.ZodOptional<z.ZodNumber>;
|
|
1816
|
+
continuityKey: z.ZodOptional<z.ZodString>;
|
|
1817
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1818
|
+
recovered: z.ZodOptional<z.ZodBoolean>;
|
|
1819
|
+
}, z.core.$strip>>;
|
|
1820
|
+
guardians: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1821
|
+
key: z.ZodString;
|
|
1822
|
+
projectId: z.ZodString;
|
|
1823
|
+
loopId: z.ZodOptional<z.ZodString>;
|
|
1824
|
+
sessionId: z.ZodString;
|
|
1825
|
+
updatedAt: z.ZodNumber;
|
|
1826
|
+
lastRunId: z.ZodOptional<z.ZodString>;
|
|
1827
|
+
attached: z.ZodOptional<z.ZodBoolean>;
|
|
1828
|
+
recovered: z.ZodOptional<z.ZodBoolean>;
|
|
1829
|
+
}, z.core.$strip>>>;
|
|
1830
|
+
guardianUsage: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1831
|
+
key: z.ZodString;
|
|
1832
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
1833
|
+
loopId: z.ZodOptional<z.ZodString>;
|
|
1834
|
+
reuseCount: z.ZodNumber;
|
|
1835
|
+
rememberCount: z.ZodNumber;
|
|
1836
|
+
resetCount: z.ZodNumber;
|
|
1837
|
+
lastUsedAt: z.ZodNumber;
|
|
1838
|
+
currentSessionId: z.ZodOptional<z.ZodString>;
|
|
1839
|
+
}, z.core.$strip>>>;
|
|
1840
|
+
auditStats: z.ZodOptional<z.ZodObject<{
|
|
1841
|
+
totalEvents: z.ZodNumber;
|
|
1842
|
+
lastEventAt: z.ZodOptional<z.ZodNumber>;
|
|
1843
|
+
queuedCount: z.ZodNumber;
|
|
1844
|
+
sessionStartedCount: z.ZodNumber;
|
|
1845
|
+
terminalCompletedCount: z.ZodNumber;
|
|
1846
|
+
terminalFailedCount: z.ZodNumber;
|
|
1847
|
+
terminalCancelledCount: z.ZodNumber;
|
|
1848
|
+
guardianReuseCount: z.ZodNumber;
|
|
1849
|
+
guardianRememberCount: z.ZodNumber;
|
|
1850
|
+
guardianResetCount: z.ZodNumber;
|
|
1851
|
+
sessionReattachedCount: z.ZodNumber;
|
|
1852
|
+
watchdogStopCount: z.ZodNumber;
|
|
1853
|
+
stopRequestCount: z.ZodNumber;
|
|
1854
|
+
guardianEligibleRunCount: z.ZodNumber;
|
|
1855
|
+
guardianReuseRate: z.ZodNumber;
|
|
1856
|
+
activeGuardianCount: z.ZodNumber;
|
|
1857
|
+
}, z.core.$strip>>;
|
|
1858
|
+
recentAuditEvents: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1859
|
+
id: z.ZodString;
|
|
1860
|
+
occurredAt: z.ZodNumber;
|
|
1861
|
+
kind: z.ZodString;
|
|
1862
|
+
jobId: z.ZodOptional<z.ZodString>;
|
|
1863
|
+
dedupeKey: z.ZodOptional<z.ZodString>;
|
|
1864
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
1865
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
1866
|
+
runId: z.ZodOptional<z.ZodString>;
|
|
1867
|
+
loopId: z.ZodOptional<z.ZodString>;
|
|
1868
|
+
trigger: z.ZodOptional<z.ZodString>;
|
|
1869
|
+
status: z.ZodOptional<z.ZodString>;
|
|
1870
|
+
guardianKey: z.ZodOptional<z.ZodString>;
|
|
1871
|
+
guardianSessionId: z.ZodOptional<z.ZodString>;
|
|
1872
|
+
message: z.ZodOptional<z.ZodString>;
|
|
1873
|
+
}, z.core.$strip>>>;
|
|
1874
|
+
}, z.core.$strip>>;
|
|
1539
1875
|
}, z.core.$strip>;
|
|
1540
1876
|
type DaemonState = z.infer<typeof DaemonStateSchema>;
|
|
1541
1877
|
|
|
@@ -1891,5 +2227,5 @@ declare const VoiceTokenResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1891
2227
|
}, z.core.$strip>], "allowed">;
|
|
1892
2228
|
type VoiceTokenResponse = z.infer<typeof VoiceTokenResponseSchema>;
|
|
1893
2229
|
|
|
1894
|
-
export { AgentMessageSchema, ApiMessageSchema, ApiUpdateMachineStateSchema, ApiUpdateNewMessageSchema, ApiUpdateSessionStateSchema, CoreUpdateBodySchema, CoreUpdateContainerSchema, CreateKnowledgeEntryBodySchema, CrossProjectSearchResponseSchema, CrossProjectSearchResultSchema, DaemonStateSchema, KnowledgeActionSchema, KnowledgeChainEntrySchema, KnowledgeChainRelationSchema, KnowledgeChainResponseSchema, KnowledgeConfidenceSchema, KnowledgeContributorTypeSchema, KnowledgeEntryTypeSchema, KnowledgeInjectionModeSchema, KnowledgeInjectionRequestSchema, KnowledgeInjectionResponseSchema, KnowledgeStatusSchema, LegacyMessageContentSchema, MachineMetadataSchema, MessageContentSchema, MessageMetaSchema, ProjectProfileSchema, QueryKnowledgeParamsSchema, SessionMessageContentSchema, SessionMessageSchema, SessionProtocolMessageSchema, TailscaleInfoSchema, TailscaleServeEntrySchema, TunnelEntrySchema, TunnelProviderInfoSchema, TunnelStateSchema, TurnKnowledgeExtractionSchema, UpdateBodySchema, UpdateKnowledgeEntryBodySchema, UpdateMachineBodySchema, UpdateNewMessageBodySchema, UpdateSchema, UpdateSessionBodySchema, UserMessageSchema, VersionedEncryptedValueSchema, VersionedMachineEncryptedValueSchema, VersionedNullableEncryptedValueSchema, VoiceTokenAllowedSchema, VoiceTokenDeniedSchema, VoiceTokenResponseSchema, createEnvelope, sessionContextUsageCategorySchema, sessionContextUsageEventSchema, sessionEnvelopeSchema, sessionEventSchema, sessionFileEventSchema, sessionModelUsageSchema, sessionNeedsContinueEventSchema, sessionPromptSuggestionEventSchema, sessionRoleSchema, sessionServiceMessageEventSchema, sessionStartEventSchema, sessionStateChangedEventSchema, sessionStopEventSchema, sessionTaskEndEventSchema, sessionTaskLogEventSchema, sessionTaskProgressEventSchema, sessionTaskStartEventSchema, sessionTextEventSchema, sessionToolCallEndEventSchema, sessionToolCallStartEventSchema, sessionToolProgressEventSchema, sessionTurnEndEventSchema, sessionTurnEndStatusSchema, sessionTurnStartEventSchema, sessionUsageUpdateEventSchema };
|
|
1895
|
-
export type { AgentMessage, ApiMessage, ApiUpdateMachineState, ApiUpdateNewMessage, ApiUpdateSessionState, CoreUpdateBody, CoreUpdateContainer, CreateEnvelopeOptions, CreateKnowledgeEntryBody, CrossProjectSearchResponse, CrossProjectSearchResult, DaemonState, KnowledgeAction, KnowledgeChainEntry, KnowledgeChainRelation, KnowledgeChainResponse, KnowledgeConfidence, KnowledgeContributorType, KnowledgeEntryType, KnowledgeInjectionMode, KnowledgeInjectionRequest, KnowledgeInjectionResponse, KnowledgeStatus, LegacyMessageContent, MachineMetadata, MessageContent, MessageMeta, ProjectProfile, QueryKnowledgeParams, SessionContextUsageEvent, SessionEnvelope, SessionEvent, SessionMessage, SessionMessageContent, SessionModelUsage, SessionProtocolMessage, SessionRole, SessionTurnEndStatus, TailscaleInfo, TailscaleServeEntry, TunnelEntry, TunnelProviderInfo, TunnelState, TurnKnowledgeExtraction, Update, UpdateBody, UpdateKnowledgeEntryBody, UpdateMachineBody, UpdateNewMessageBody, UpdateSessionBody, UserMessage, VersionedEncryptedValue, VersionedMachineEncryptedValue, VersionedNullableEncryptedValue, VoiceTokenResponse };
|
|
2230
|
+
export { AgentMessageSchema, ApiMessageSchema, ApiUpdateMachineStateSchema, ApiUpdateNewMessageSchema, ApiUpdateSessionStateSchema, AutomationAuditEventSummarySchema, AutomationAuditStatsSchema, AutomationCountsSchema, AutomationGuardianSummarySchema, AutomationGuardianUsageSummarySchema, AutomationJobKindSchema, AutomationJobStatusSchema, AutomationJobSummarySchema, AutomationPrioritySchema, AutomationStateSchema, CoreUpdateBodySchema, CoreUpdateContainerSchema, CreateKnowledgeEntryBodySchema, CrossProjectSearchResponseSchema, CrossProjectSearchResultSchema, DaemonStateSchema, KnowledgeActionSchema, KnowledgeChainEntrySchema, KnowledgeChainRelationSchema, KnowledgeChainResponseSchema, KnowledgeConfidenceSchema, KnowledgeContributorTypeSchema, KnowledgeEntryTypeSchema, KnowledgeInjectionModeSchema, KnowledgeInjectionRequestSchema, KnowledgeInjectionResponseSchema, KnowledgeStatusSchema, LegacyMessageContentSchema, MachineMetadataSchema, MessageContentSchema, MessageMetaSchema, ProjectProfileSchema, QueryKnowledgeParamsSchema, SessionMessageContentSchema, SessionMessageSchema, SessionProtocolMessageSchema, TailscaleInfoSchema, TailscaleServeEntrySchema, TunnelEntrySchema, TunnelProviderInfoSchema, TunnelStateSchema, TurnKnowledgeExtractionSchema, UpdateBodySchema, UpdateKnowledgeEntryBodySchema, UpdateMachineBodySchema, UpdateNewMessageBodySchema, UpdateSchema, UpdateSessionBodySchema, UserMessageSchema, VersionedEncryptedValueSchema, VersionedMachineEncryptedValueSchema, VersionedNullableEncryptedValueSchema, VoiceTokenAllowedSchema, VoiceTokenDeniedSchema, VoiceTokenResponseSchema, createEnvelope, sessionContextUsageCategorySchema, sessionContextUsageEventSchema, sessionEnvelopeSchema, sessionEventSchema, sessionFileEventSchema, sessionModelUsageSchema, sessionNeedsContinueEventSchema, sessionPromptSuggestionEventSchema, sessionRoleSchema, sessionServiceMessageEventSchema, sessionStartEventSchema, sessionStateChangedEventSchema, sessionStopEventSchema, sessionTaskEndEventSchema, sessionTaskLogEventSchema, sessionTaskProgressEventSchema, sessionTaskStartEventSchema, sessionTextEventSchema, sessionToolCallEndEventSchema, sessionToolCallStartEventSchema, sessionToolProgressEventSchema, sessionTurnEndEventSchema, sessionTurnEndStatusSchema, sessionTurnStartEventSchema, sessionUsageUpdateEventSchema };
|
|
2231
|
+
export type { AgentMessage, ApiMessage, ApiUpdateMachineState, ApiUpdateNewMessage, ApiUpdateSessionState, AutomationAuditEventSummary, AutomationAuditStats, AutomationCounts, AutomationGuardianSummary, AutomationGuardianUsageSummary, AutomationJobKind, AutomationJobStatus, AutomationJobSummary, AutomationPriority, AutomationState, CoreUpdateBody, CoreUpdateContainer, CreateEnvelopeOptions, CreateKnowledgeEntryBody, CrossProjectSearchResponse, CrossProjectSearchResult, DaemonState, KnowledgeAction, KnowledgeChainEntry, KnowledgeChainRelation, KnowledgeChainResponse, KnowledgeConfidence, KnowledgeContributorType, KnowledgeEntryType, KnowledgeInjectionMode, KnowledgeInjectionRequest, KnowledgeInjectionResponse, KnowledgeStatus, LegacyMessageContent, MachineMetadata, MessageContent, MessageMeta, ProjectProfile, QueryKnowledgeParams, SessionContextUsageEvent, SessionEnvelope, SessionEvent, SessionMessage, SessionMessageContent, SessionModelUsage, SessionProtocolMessage, SessionRole, SessionTurnEndStatus, TailscaleInfo, TailscaleServeEntry, TunnelEntry, TunnelProviderInfo, TunnelState, TurnKnowledgeExtraction, Update, UpdateBody, UpdateKnowledgeEntryBody, UpdateMachineBody, UpdateNewMessageBody, UpdateSessionBody, UserMessage, VersionedEncryptedValue, VersionedMachineEncryptedValue, VersionedNullableEncryptedValue, VoiceTokenResponse };
|
package/dist/index.d.mts
CHANGED
|
@@ -1473,6 +1473,237 @@ declare const TunnelStateSchema: z.ZodObject<{
|
|
|
1473
1473
|
}, z.core.$strip>>;
|
|
1474
1474
|
}, z.core.$strip>;
|
|
1475
1475
|
type TunnelState = z.infer<typeof TunnelStateSchema>;
|
|
1476
|
+
declare const AutomationPrioritySchema: z.ZodEnum<{
|
|
1477
|
+
user: "user";
|
|
1478
|
+
urgent: "urgent";
|
|
1479
|
+
background: "background";
|
|
1480
|
+
}>;
|
|
1481
|
+
type AutomationPriority = z.infer<typeof AutomationPrioritySchema>;
|
|
1482
|
+
declare const AutomationJobKindSchema: z.ZodEnum<{
|
|
1483
|
+
supervisor: "supervisor";
|
|
1484
|
+
webhook: "webhook";
|
|
1485
|
+
agent_loop: "agent_loop";
|
|
1486
|
+
}>;
|
|
1487
|
+
type AutomationJobKind = z.infer<typeof AutomationJobKindSchema>;
|
|
1488
|
+
declare const AutomationJobStatusSchema: z.ZodEnum<{
|
|
1489
|
+
completed: "completed";
|
|
1490
|
+
failed: "failed";
|
|
1491
|
+
cancelled: "cancelled";
|
|
1492
|
+
running: "running";
|
|
1493
|
+
queued: "queued";
|
|
1494
|
+
dispatching: "dispatching";
|
|
1495
|
+
}>;
|
|
1496
|
+
type AutomationJobStatus = z.infer<typeof AutomationJobStatusSchema>;
|
|
1497
|
+
declare const AutomationJobSummarySchema: z.ZodObject<{
|
|
1498
|
+
id: z.ZodString;
|
|
1499
|
+
kind: z.ZodEnum<{
|
|
1500
|
+
supervisor: "supervisor";
|
|
1501
|
+
webhook: "webhook";
|
|
1502
|
+
agent_loop: "agent_loop";
|
|
1503
|
+
}>;
|
|
1504
|
+
status: z.ZodEnum<{
|
|
1505
|
+
completed: "completed";
|
|
1506
|
+
failed: "failed";
|
|
1507
|
+
cancelled: "cancelled";
|
|
1508
|
+
running: "running";
|
|
1509
|
+
queued: "queued";
|
|
1510
|
+
dispatching: "dispatching";
|
|
1511
|
+
}>;
|
|
1512
|
+
priority: z.ZodEnum<{
|
|
1513
|
+
user: "user";
|
|
1514
|
+
urgent: "urgent";
|
|
1515
|
+
background: "background";
|
|
1516
|
+
}>;
|
|
1517
|
+
dedupeKey: z.ZodString;
|
|
1518
|
+
attempt: z.ZodNumber;
|
|
1519
|
+
maxAttempts: z.ZodNumber;
|
|
1520
|
+
createdAt: z.ZodNumber;
|
|
1521
|
+
updatedAt: z.ZodNumber;
|
|
1522
|
+
dispatchedAt: z.ZodOptional<z.ZodNumber>;
|
|
1523
|
+
completedAt: z.ZodOptional<z.ZodNumber>;
|
|
1524
|
+
nextRunAt: z.ZodOptional<z.ZodNumber>;
|
|
1525
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
1526
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1527
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
1528
|
+
runId: z.ZodOptional<z.ZodString>;
|
|
1529
|
+
loopId: z.ZodOptional<z.ZodString>;
|
|
1530
|
+
loopIteration: z.ZodOptional<z.ZodNumber>;
|
|
1531
|
+
continuityKey: z.ZodOptional<z.ZodString>;
|
|
1532
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1533
|
+
recovered: z.ZodOptional<z.ZodBoolean>;
|
|
1534
|
+
}, z.core.$strip>;
|
|
1535
|
+
type AutomationJobSummary = z.infer<typeof AutomationJobSummarySchema>;
|
|
1536
|
+
declare const AutomationGuardianSummarySchema: z.ZodObject<{
|
|
1537
|
+
key: z.ZodString;
|
|
1538
|
+
projectId: z.ZodString;
|
|
1539
|
+
loopId: z.ZodOptional<z.ZodString>;
|
|
1540
|
+
sessionId: z.ZodString;
|
|
1541
|
+
updatedAt: z.ZodNumber;
|
|
1542
|
+
lastRunId: z.ZodOptional<z.ZodString>;
|
|
1543
|
+
attached: z.ZodOptional<z.ZodBoolean>;
|
|
1544
|
+
recovered: z.ZodOptional<z.ZodBoolean>;
|
|
1545
|
+
}, z.core.$strip>;
|
|
1546
|
+
type AutomationGuardianSummary = z.infer<typeof AutomationGuardianSummarySchema>;
|
|
1547
|
+
declare const AutomationGuardianUsageSummarySchema: z.ZodObject<{
|
|
1548
|
+
key: z.ZodString;
|
|
1549
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
1550
|
+
loopId: z.ZodOptional<z.ZodString>;
|
|
1551
|
+
reuseCount: z.ZodNumber;
|
|
1552
|
+
rememberCount: z.ZodNumber;
|
|
1553
|
+
resetCount: z.ZodNumber;
|
|
1554
|
+
lastUsedAt: z.ZodNumber;
|
|
1555
|
+
currentSessionId: z.ZodOptional<z.ZodString>;
|
|
1556
|
+
}, z.core.$strip>;
|
|
1557
|
+
type AutomationGuardianUsageSummary = z.infer<typeof AutomationGuardianUsageSummarySchema>;
|
|
1558
|
+
declare const AutomationAuditEventSummarySchema: z.ZodObject<{
|
|
1559
|
+
id: z.ZodString;
|
|
1560
|
+
occurredAt: z.ZodNumber;
|
|
1561
|
+
kind: z.ZodString;
|
|
1562
|
+
jobId: z.ZodOptional<z.ZodString>;
|
|
1563
|
+
dedupeKey: z.ZodOptional<z.ZodString>;
|
|
1564
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
1565
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
1566
|
+
runId: z.ZodOptional<z.ZodString>;
|
|
1567
|
+
loopId: z.ZodOptional<z.ZodString>;
|
|
1568
|
+
trigger: z.ZodOptional<z.ZodString>;
|
|
1569
|
+
status: z.ZodOptional<z.ZodString>;
|
|
1570
|
+
guardianKey: z.ZodOptional<z.ZodString>;
|
|
1571
|
+
guardianSessionId: z.ZodOptional<z.ZodString>;
|
|
1572
|
+
message: z.ZodOptional<z.ZodString>;
|
|
1573
|
+
}, z.core.$strip>;
|
|
1574
|
+
type AutomationAuditEventSummary = z.infer<typeof AutomationAuditEventSummarySchema>;
|
|
1575
|
+
declare const AutomationAuditStatsSchema: z.ZodObject<{
|
|
1576
|
+
totalEvents: z.ZodNumber;
|
|
1577
|
+
lastEventAt: z.ZodOptional<z.ZodNumber>;
|
|
1578
|
+
queuedCount: z.ZodNumber;
|
|
1579
|
+
sessionStartedCount: z.ZodNumber;
|
|
1580
|
+
terminalCompletedCount: z.ZodNumber;
|
|
1581
|
+
terminalFailedCount: z.ZodNumber;
|
|
1582
|
+
terminalCancelledCount: z.ZodNumber;
|
|
1583
|
+
guardianReuseCount: z.ZodNumber;
|
|
1584
|
+
guardianRememberCount: z.ZodNumber;
|
|
1585
|
+
guardianResetCount: z.ZodNumber;
|
|
1586
|
+
sessionReattachedCount: z.ZodNumber;
|
|
1587
|
+
watchdogStopCount: z.ZodNumber;
|
|
1588
|
+
stopRequestCount: z.ZodNumber;
|
|
1589
|
+
guardianEligibleRunCount: z.ZodNumber;
|
|
1590
|
+
guardianReuseRate: z.ZodNumber;
|
|
1591
|
+
activeGuardianCount: z.ZodNumber;
|
|
1592
|
+
}, z.core.$strip>;
|
|
1593
|
+
type AutomationAuditStats = z.infer<typeof AutomationAuditStatsSchema>;
|
|
1594
|
+
declare const AutomationCountsSchema: z.ZodObject<{
|
|
1595
|
+
queued: z.ZodNumber;
|
|
1596
|
+
dispatching: z.ZodNumber;
|
|
1597
|
+
running: z.ZodNumber;
|
|
1598
|
+
completed: z.ZodNumber;
|
|
1599
|
+
failed: z.ZodNumber;
|
|
1600
|
+
cancelled: z.ZodNumber;
|
|
1601
|
+
}, z.core.$strip>;
|
|
1602
|
+
type AutomationCounts = z.infer<typeof AutomationCountsSchema>;
|
|
1603
|
+
declare const AutomationStateSchema: z.ZodObject<{
|
|
1604
|
+
updatedAt: z.ZodNumber;
|
|
1605
|
+
counts: z.ZodObject<{
|
|
1606
|
+
queued: z.ZodNumber;
|
|
1607
|
+
dispatching: z.ZodNumber;
|
|
1608
|
+
running: z.ZodNumber;
|
|
1609
|
+
completed: z.ZodNumber;
|
|
1610
|
+
failed: z.ZodNumber;
|
|
1611
|
+
cancelled: z.ZodNumber;
|
|
1612
|
+
}, z.core.$strip>;
|
|
1613
|
+
recentJobs: z.ZodArray<z.ZodObject<{
|
|
1614
|
+
id: z.ZodString;
|
|
1615
|
+
kind: z.ZodEnum<{
|
|
1616
|
+
supervisor: "supervisor";
|
|
1617
|
+
webhook: "webhook";
|
|
1618
|
+
agent_loop: "agent_loop";
|
|
1619
|
+
}>;
|
|
1620
|
+
status: z.ZodEnum<{
|
|
1621
|
+
completed: "completed";
|
|
1622
|
+
failed: "failed";
|
|
1623
|
+
cancelled: "cancelled";
|
|
1624
|
+
running: "running";
|
|
1625
|
+
queued: "queued";
|
|
1626
|
+
dispatching: "dispatching";
|
|
1627
|
+
}>;
|
|
1628
|
+
priority: z.ZodEnum<{
|
|
1629
|
+
user: "user";
|
|
1630
|
+
urgent: "urgent";
|
|
1631
|
+
background: "background";
|
|
1632
|
+
}>;
|
|
1633
|
+
dedupeKey: z.ZodString;
|
|
1634
|
+
attempt: z.ZodNumber;
|
|
1635
|
+
maxAttempts: z.ZodNumber;
|
|
1636
|
+
createdAt: z.ZodNumber;
|
|
1637
|
+
updatedAt: z.ZodNumber;
|
|
1638
|
+
dispatchedAt: z.ZodOptional<z.ZodNumber>;
|
|
1639
|
+
completedAt: z.ZodOptional<z.ZodNumber>;
|
|
1640
|
+
nextRunAt: z.ZodOptional<z.ZodNumber>;
|
|
1641
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
1642
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1643
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
1644
|
+
runId: z.ZodOptional<z.ZodString>;
|
|
1645
|
+
loopId: z.ZodOptional<z.ZodString>;
|
|
1646
|
+
loopIteration: z.ZodOptional<z.ZodNumber>;
|
|
1647
|
+
continuityKey: z.ZodOptional<z.ZodString>;
|
|
1648
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1649
|
+
recovered: z.ZodOptional<z.ZodBoolean>;
|
|
1650
|
+
}, z.core.$strip>>;
|
|
1651
|
+
guardians: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1652
|
+
key: z.ZodString;
|
|
1653
|
+
projectId: z.ZodString;
|
|
1654
|
+
loopId: z.ZodOptional<z.ZodString>;
|
|
1655
|
+
sessionId: z.ZodString;
|
|
1656
|
+
updatedAt: z.ZodNumber;
|
|
1657
|
+
lastRunId: z.ZodOptional<z.ZodString>;
|
|
1658
|
+
attached: z.ZodOptional<z.ZodBoolean>;
|
|
1659
|
+
recovered: z.ZodOptional<z.ZodBoolean>;
|
|
1660
|
+
}, z.core.$strip>>>;
|
|
1661
|
+
guardianUsage: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1662
|
+
key: z.ZodString;
|
|
1663
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
1664
|
+
loopId: z.ZodOptional<z.ZodString>;
|
|
1665
|
+
reuseCount: z.ZodNumber;
|
|
1666
|
+
rememberCount: z.ZodNumber;
|
|
1667
|
+
resetCount: z.ZodNumber;
|
|
1668
|
+
lastUsedAt: z.ZodNumber;
|
|
1669
|
+
currentSessionId: z.ZodOptional<z.ZodString>;
|
|
1670
|
+
}, z.core.$strip>>>;
|
|
1671
|
+
auditStats: z.ZodOptional<z.ZodObject<{
|
|
1672
|
+
totalEvents: z.ZodNumber;
|
|
1673
|
+
lastEventAt: z.ZodOptional<z.ZodNumber>;
|
|
1674
|
+
queuedCount: z.ZodNumber;
|
|
1675
|
+
sessionStartedCount: z.ZodNumber;
|
|
1676
|
+
terminalCompletedCount: z.ZodNumber;
|
|
1677
|
+
terminalFailedCount: z.ZodNumber;
|
|
1678
|
+
terminalCancelledCount: z.ZodNumber;
|
|
1679
|
+
guardianReuseCount: z.ZodNumber;
|
|
1680
|
+
guardianRememberCount: z.ZodNumber;
|
|
1681
|
+
guardianResetCount: z.ZodNumber;
|
|
1682
|
+
sessionReattachedCount: z.ZodNumber;
|
|
1683
|
+
watchdogStopCount: z.ZodNumber;
|
|
1684
|
+
stopRequestCount: z.ZodNumber;
|
|
1685
|
+
guardianEligibleRunCount: z.ZodNumber;
|
|
1686
|
+
guardianReuseRate: z.ZodNumber;
|
|
1687
|
+
activeGuardianCount: z.ZodNumber;
|
|
1688
|
+
}, z.core.$strip>>;
|
|
1689
|
+
recentAuditEvents: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1690
|
+
id: z.ZodString;
|
|
1691
|
+
occurredAt: z.ZodNumber;
|
|
1692
|
+
kind: z.ZodString;
|
|
1693
|
+
jobId: z.ZodOptional<z.ZodString>;
|
|
1694
|
+
dedupeKey: z.ZodOptional<z.ZodString>;
|
|
1695
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
1696
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
1697
|
+
runId: z.ZodOptional<z.ZodString>;
|
|
1698
|
+
loopId: z.ZodOptional<z.ZodString>;
|
|
1699
|
+
trigger: z.ZodOptional<z.ZodString>;
|
|
1700
|
+
status: z.ZodOptional<z.ZodString>;
|
|
1701
|
+
guardianKey: z.ZodOptional<z.ZodString>;
|
|
1702
|
+
guardianSessionId: z.ZodOptional<z.ZodString>;
|
|
1703
|
+
message: z.ZodOptional<z.ZodString>;
|
|
1704
|
+
}, z.core.$strip>>>;
|
|
1705
|
+
}, z.core.$strip>;
|
|
1706
|
+
type AutomationState = z.infer<typeof AutomationStateSchema>;
|
|
1476
1707
|
declare const DaemonStateSchema: z.ZodObject<{
|
|
1477
1708
|
status: z.ZodUnion<readonly [z.ZodEnum<{
|
|
1478
1709
|
running: "running";
|
|
@@ -1480,7 +1711,9 @@ declare const DaemonStateSchema: z.ZodObject<{
|
|
|
1480
1711
|
}>, z.ZodString]>;
|
|
1481
1712
|
pid: z.ZodOptional<z.ZodNumber>;
|
|
1482
1713
|
httpPort: z.ZodOptional<z.ZodNumber>;
|
|
1714
|
+
startTime: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
1483
1715
|
startedAt: z.ZodOptional<z.ZodNumber>;
|
|
1716
|
+
startedWithCliVersion: z.ZodOptional<z.ZodString>;
|
|
1484
1717
|
shutdownRequestedAt: z.ZodOptional<z.ZodNumber>;
|
|
1485
1718
|
shutdownSource: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1486
1719
|
unknown: "unknown";
|
|
@@ -1536,6 +1769,109 @@ declare const DaemonStateSchema: z.ZodObject<{
|
|
|
1536
1769
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1537
1770
|
}, z.core.$strip>>;
|
|
1538
1771
|
}, z.core.$strip>>;
|
|
1772
|
+
automation: z.ZodOptional<z.ZodObject<{
|
|
1773
|
+
updatedAt: z.ZodNumber;
|
|
1774
|
+
counts: z.ZodObject<{
|
|
1775
|
+
queued: z.ZodNumber;
|
|
1776
|
+
dispatching: z.ZodNumber;
|
|
1777
|
+
running: z.ZodNumber;
|
|
1778
|
+
completed: z.ZodNumber;
|
|
1779
|
+
failed: z.ZodNumber;
|
|
1780
|
+
cancelled: z.ZodNumber;
|
|
1781
|
+
}, z.core.$strip>;
|
|
1782
|
+
recentJobs: z.ZodArray<z.ZodObject<{
|
|
1783
|
+
id: z.ZodString;
|
|
1784
|
+
kind: z.ZodEnum<{
|
|
1785
|
+
supervisor: "supervisor";
|
|
1786
|
+
webhook: "webhook";
|
|
1787
|
+
agent_loop: "agent_loop";
|
|
1788
|
+
}>;
|
|
1789
|
+
status: z.ZodEnum<{
|
|
1790
|
+
completed: "completed";
|
|
1791
|
+
failed: "failed";
|
|
1792
|
+
cancelled: "cancelled";
|
|
1793
|
+
running: "running";
|
|
1794
|
+
queued: "queued";
|
|
1795
|
+
dispatching: "dispatching";
|
|
1796
|
+
}>;
|
|
1797
|
+
priority: z.ZodEnum<{
|
|
1798
|
+
user: "user";
|
|
1799
|
+
urgent: "urgent";
|
|
1800
|
+
background: "background";
|
|
1801
|
+
}>;
|
|
1802
|
+
dedupeKey: z.ZodString;
|
|
1803
|
+
attempt: z.ZodNumber;
|
|
1804
|
+
maxAttempts: z.ZodNumber;
|
|
1805
|
+
createdAt: z.ZodNumber;
|
|
1806
|
+
updatedAt: z.ZodNumber;
|
|
1807
|
+
dispatchedAt: z.ZodOptional<z.ZodNumber>;
|
|
1808
|
+
completedAt: z.ZodOptional<z.ZodNumber>;
|
|
1809
|
+
nextRunAt: z.ZodOptional<z.ZodNumber>;
|
|
1810
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
1811
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1812
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
1813
|
+
runId: z.ZodOptional<z.ZodString>;
|
|
1814
|
+
loopId: z.ZodOptional<z.ZodString>;
|
|
1815
|
+
loopIteration: z.ZodOptional<z.ZodNumber>;
|
|
1816
|
+
continuityKey: z.ZodOptional<z.ZodString>;
|
|
1817
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1818
|
+
recovered: z.ZodOptional<z.ZodBoolean>;
|
|
1819
|
+
}, z.core.$strip>>;
|
|
1820
|
+
guardians: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1821
|
+
key: z.ZodString;
|
|
1822
|
+
projectId: z.ZodString;
|
|
1823
|
+
loopId: z.ZodOptional<z.ZodString>;
|
|
1824
|
+
sessionId: z.ZodString;
|
|
1825
|
+
updatedAt: z.ZodNumber;
|
|
1826
|
+
lastRunId: z.ZodOptional<z.ZodString>;
|
|
1827
|
+
attached: z.ZodOptional<z.ZodBoolean>;
|
|
1828
|
+
recovered: z.ZodOptional<z.ZodBoolean>;
|
|
1829
|
+
}, z.core.$strip>>>;
|
|
1830
|
+
guardianUsage: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1831
|
+
key: z.ZodString;
|
|
1832
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
1833
|
+
loopId: z.ZodOptional<z.ZodString>;
|
|
1834
|
+
reuseCount: z.ZodNumber;
|
|
1835
|
+
rememberCount: z.ZodNumber;
|
|
1836
|
+
resetCount: z.ZodNumber;
|
|
1837
|
+
lastUsedAt: z.ZodNumber;
|
|
1838
|
+
currentSessionId: z.ZodOptional<z.ZodString>;
|
|
1839
|
+
}, z.core.$strip>>>;
|
|
1840
|
+
auditStats: z.ZodOptional<z.ZodObject<{
|
|
1841
|
+
totalEvents: z.ZodNumber;
|
|
1842
|
+
lastEventAt: z.ZodOptional<z.ZodNumber>;
|
|
1843
|
+
queuedCount: z.ZodNumber;
|
|
1844
|
+
sessionStartedCount: z.ZodNumber;
|
|
1845
|
+
terminalCompletedCount: z.ZodNumber;
|
|
1846
|
+
terminalFailedCount: z.ZodNumber;
|
|
1847
|
+
terminalCancelledCount: z.ZodNumber;
|
|
1848
|
+
guardianReuseCount: z.ZodNumber;
|
|
1849
|
+
guardianRememberCount: z.ZodNumber;
|
|
1850
|
+
guardianResetCount: z.ZodNumber;
|
|
1851
|
+
sessionReattachedCount: z.ZodNumber;
|
|
1852
|
+
watchdogStopCount: z.ZodNumber;
|
|
1853
|
+
stopRequestCount: z.ZodNumber;
|
|
1854
|
+
guardianEligibleRunCount: z.ZodNumber;
|
|
1855
|
+
guardianReuseRate: z.ZodNumber;
|
|
1856
|
+
activeGuardianCount: z.ZodNumber;
|
|
1857
|
+
}, z.core.$strip>>;
|
|
1858
|
+
recentAuditEvents: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1859
|
+
id: z.ZodString;
|
|
1860
|
+
occurredAt: z.ZodNumber;
|
|
1861
|
+
kind: z.ZodString;
|
|
1862
|
+
jobId: z.ZodOptional<z.ZodString>;
|
|
1863
|
+
dedupeKey: z.ZodOptional<z.ZodString>;
|
|
1864
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
1865
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
1866
|
+
runId: z.ZodOptional<z.ZodString>;
|
|
1867
|
+
loopId: z.ZodOptional<z.ZodString>;
|
|
1868
|
+
trigger: z.ZodOptional<z.ZodString>;
|
|
1869
|
+
status: z.ZodOptional<z.ZodString>;
|
|
1870
|
+
guardianKey: z.ZodOptional<z.ZodString>;
|
|
1871
|
+
guardianSessionId: z.ZodOptional<z.ZodString>;
|
|
1872
|
+
message: z.ZodOptional<z.ZodString>;
|
|
1873
|
+
}, z.core.$strip>>>;
|
|
1874
|
+
}, z.core.$strip>>;
|
|
1539
1875
|
}, z.core.$strip>;
|
|
1540
1876
|
type DaemonState = z.infer<typeof DaemonStateSchema>;
|
|
1541
1877
|
|
|
@@ -1891,5 +2227,5 @@ declare const VoiceTokenResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1891
2227
|
}, z.core.$strip>], "allowed">;
|
|
1892
2228
|
type VoiceTokenResponse = z.infer<typeof VoiceTokenResponseSchema>;
|
|
1893
2229
|
|
|
1894
|
-
export { AgentMessageSchema, ApiMessageSchema, ApiUpdateMachineStateSchema, ApiUpdateNewMessageSchema, ApiUpdateSessionStateSchema, CoreUpdateBodySchema, CoreUpdateContainerSchema, CreateKnowledgeEntryBodySchema, CrossProjectSearchResponseSchema, CrossProjectSearchResultSchema, DaemonStateSchema, KnowledgeActionSchema, KnowledgeChainEntrySchema, KnowledgeChainRelationSchema, KnowledgeChainResponseSchema, KnowledgeConfidenceSchema, KnowledgeContributorTypeSchema, KnowledgeEntryTypeSchema, KnowledgeInjectionModeSchema, KnowledgeInjectionRequestSchema, KnowledgeInjectionResponseSchema, KnowledgeStatusSchema, LegacyMessageContentSchema, MachineMetadataSchema, MessageContentSchema, MessageMetaSchema, ProjectProfileSchema, QueryKnowledgeParamsSchema, SessionMessageContentSchema, SessionMessageSchema, SessionProtocolMessageSchema, TailscaleInfoSchema, TailscaleServeEntrySchema, TunnelEntrySchema, TunnelProviderInfoSchema, TunnelStateSchema, TurnKnowledgeExtractionSchema, UpdateBodySchema, UpdateKnowledgeEntryBodySchema, UpdateMachineBodySchema, UpdateNewMessageBodySchema, UpdateSchema, UpdateSessionBodySchema, UserMessageSchema, VersionedEncryptedValueSchema, VersionedMachineEncryptedValueSchema, VersionedNullableEncryptedValueSchema, VoiceTokenAllowedSchema, VoiceTokenDeniedSchema, VoiceTokenResponseSchema, createEnvelope, sessionContextUsageCategorySchema, sessionContextUsageEventSchema, sessionEnvelopeSchema, sessionEventSchema, sessionFileEventSchema, sessionModelUsageSchema, sessionNeedsContinueEventSchema, sessionPromptSuggestionEventSchema, sessionRoleSchema, sessionServiceMessageEventSchema, sessionStartEventSchema, sessionStateChangedEventSchema, sessionStopEventSchema, sessionTaskEndEventSchema, sessionTaskLogEventSchema, sessionTaskProgressEventSchema, sessionTaskStartEventSchema, sessionTextEventSchema, sessionToolCallEndEventSchema, sessionToolCallStartEventSchema, sessionToolProgressEventSchema, sessionTurnEndEventSchema, sessionTurnEndStatusSchema, sessionTurnStartEventSchema, sessionUsageUpdateEventSchema };
|
|
1895
|
-
export type { AgentMessage, ApiMessage, ApiUpdateMachineState, ApiUpdateNewMessage, ApiUpdateSessionState, CoreUpdateBody, CoreUpdateContainer, CreateEnvelopeOptions, CreateKnowledgeEntryBody, CrossProjectSearchResponse, CrossProjectSearchResult, DaemonState, KnowledgeAction, KnowledgeChainEntry, KnowledgeChainRelation, KnowledgeChainResponse, KnowledgeConfidence, KnowledgeContributorType, KnowledgeEntryType, KnowledgeInjectionMode, KnowledgeInjectionRequest, KnowledgeInjectionResponse, KnowledgeStatus, LegacyMessageContent, MachineMetadata, MessageContent, MessageMeta, ProjectProfile, QueryKnowledgeParams, SessionContextUsageEvent, SessionEnvelope, SessionEvent, SessionMessage, SessionMessageContent, SessionModelUsage, SessionProtocolMessage, SessionRole, SessionTurnEndStatus, TailscaleInfo, TailscaleServeEntry, TunnelEntry, TunnelProviderInfo, TunnelState, TurnKnowledgeExtraction, Update, UpdateBody, UpdateKnowledgeEntryBody, UpdateMachineBody, UpdateNewMessageBody, UpdateSessionBody, UserMessage, VersionedEncryptedValue, VersionedMachineEncryptedValue, VersionedNullableEncryptedValue, VoiceTokenResponse };
|
|
2230
|
+
export { AgentMessageSchema, ApiMessageSchema, ApiUpdateMachineStateSchema, ApiUpdateNewMessageSchema, ApiUpdateSessionStateSchema, AutomationAuditEventSummarySchema, AutomationAuditStatsSchema, AutomationCountsSchema, AutomationGuardianSummarySchema, AutomationGuardianUsageSummarySchema, AutomationJobKindSchema, AutomationJobStatusSchema, AutomationJobSummarySchema, AutomationPrioritySchema, AutomationStateSchema, CoreUpdateBodySchema, CoreUpdateContainerSchema, CreateKnowledgeEntryBodySchema, CrossProjectSearchResponseSchema, CrossProjectSearchResultSchema, DaemonStateSchema, KnowledgeActionSchema, KnowledgeChainEntrySchema, KnowledgeChainRelationSchema, KnowledgeChainResponseSchema, KnowledgeConfidenceSchema, KnowledgeContributorTypeSchema, KnowledgeEntryTypeSchema, KnowledgeInjectionModeSchema, KnowledgeInjectionRequestSchema, KnowledgeInjectionResponseSchema, KnowledgeStatusSchema, LegacyMessageContentSchema, MachineMetadataSchema, MessageContentSchema, MessageMetaSchema, ProjectProfileSchema, QueryKnowledgeParamsSchema, SessionMessageContentSchema, SessionMessageSchema, SessionProtocolMessageSchema, TailscaleInfoSchema, TailscaleServeEntrySchema, TunnelEntrySchema, TunnelProviderInfoSchema, TunnelStateSchema, TurnKnowledgeExtractionSchema, UpdateBodySchema, UpdateKnowledgeEntryBodySchema, UpdateMachineBodySchema, UpdateNewMessageBodySchema, UpdateSchema, UpdateSessionBodySchema, UserMessageSchema, VersionedEncryptedValueSchema, VersionedMachineEncryptedValueSchema, VersionedNullableEncryptedValueSchema, VoiceTokenAllowedSchema, VoiceTokenDeniedSchema, VoiceTokenResponseSchema, createEnvelope, sessionContextUsageCategorySchema, sessionContextUsageEventSchema, sessionEnvelopeSchema, sessionEventSchema, sessionFileEventSchema, sessionModelUsageSchema, sessionNeedsContinueEventSchema, sessionPromptSuggestionEventSchema, sessionRoleSchema, sessionServiceMessageEventSchema, sessionStartEventSchema, sessionStateChangedEventSchema, sessionStopEventSchema, sessionTaskEndEventSchema, sessionTaskLogEventSchema, sessionTaskProgressEventSchema, sessionTaskStartEventSchema, sessionTextEventSchema, sessionToolCallEndEventSchema, sessionToolCallStartEventSchema, sessionToolProgressEventSchema, sessionTurnEndEventSchema, sessionTurnEndStatusSchema, sessionTurnStartEventSchema, sessionUsageUpdateEventSchema };
|
|
2231
|
+
export type { AgentMessage, ApiMessage, ApiUpdateMachineState, ApiUpdateNewMessage, ApiUpdateSessionState, AutomationAuditEventSummary, AutomationAuditStats, AutomationCounts, AutomationGuardianSummary, AutomationGuardianUsageSummary, AutomationJobKind, AutomationJobStatus, AutomationJobSummary, AutomationPriority, AutomationState, CoreUpdateBody, CoreUpdateContainer, CreateEnvelopeOptions, CreateKnowledgeEntryBody, CrossProjectSearchResponse, CrossProjectSearchResult, DaemonState, KnowledgeAction, KnowledgeChainEntry, KnowledgeChainRelation, KnowledgeChainResponse, KnowledgeConfidence, KnowledgeContributorType, KnowledgeEntryType, KnowledgeInjectionMode, KnowledgeInjectionRequest, KnowledgeInjectionResponse, KnowledgeStatus, LegacyMessageContent, MachineMetadata, MessageContent, MessageMeta, ProjectProfile, QueryKnowledgeParams, SessionContextUsageEvent, SessionEnvelope, SessionEvent, SessionMessage, SessionMessageContent, SessionModelUsage, SessionProtocolMessage, SessionRole, SessionTurnEndStatus, TailscaleInfo, TailscaleServeEntry, TunnelEntry, TunnelProviderInfo, TunnelState, TurnKnowledgeExtraction, Update, UpdateBody, UpdateKnowledgeEntryBody, UpdateMachineBody, UpdateNewMessageBody, UpdateSessionBody, UserMessage, VersionedEncryptedValue, VersionedMachineEncryptedValue, VersionedNullableEncryptedValue, VoiceTokenResponse };
|
package/dist/index.mjs
CHANGED
|
@@ -358,25 +358,15 @@ const TailscaleInfoSchema = z.object({
|
|
|
358
358
|
serves: z.array(TailscaleServeEntrySchema).optional()
|
|
359
359
|
});
|
|
360
360
|
const TunnelEntrySchema = z.object({
|
|
361
|
-
/** Provider identifier: "tailscale" | "upnp" | "cloudflare" | "frp" */
|
|
362
361
|
provider: z.string(),
|
|
363
|
-
/** Local port the service is running on */
|
|
364
362
|
localPort: z.number(),
|
|
365
|
-
/** Remote/public port (e.g. UPnP external port, Tailscale HTTPS port) */
|
|
366
363
|
remotePort: z.number().optional(),
|
|
367
|
-
/** Protocol: "HTTPS" | "HTTP" | "TCP" | "UDP" */
|
|
368
364
|
protocol: z.string(),
|
|
369
|
-
/** Mount path (Tailscale serve path, e.g. "/api") */
|
|
370
365
|
path: z.string().optional(),
|
|
371
|
-
/** Proxy target URL "http://127.0.0.1:3000" */
|
|
372
366
|
target: z.string(),
|
|
373
|
-
/** Full public access URL if available */
|
|
374
367
|
publicUrl: z.string().optional(),
|
|
375
|
-
/** Access scope */
|
|
376
368
|
accessScope: z.enum(["public", "private", "tailnet"]),
|
|
377
|
-
/** Hostname (Tailscale MagicDNS, Cloudflare domain, etc.) */
|
|
378
369
|
hostname: z.string().optional(),
|
|
379
|
-
/** Provider-specific extra info */
|
|
380
370
|
metadata: z.record(z.string(), z.string()).optional()
|
|
381
371
|
});
|
|
382
372
|
const TunnelProviderInfoSchema = z.object({
|
|
@@ -384,29 +374,133 @@ const TunnelProviderInfoSchema = z.object({
|
|
|
384
374
|
status: z.enum(["available", "unavailable", "not-installed"]),
|
|
385
375
|
version: z.string().optional(),
|
|
386
376
|
entries: z.array(TunnelEntrySchema),
|
|
387
|
-
/** Provider-level info (e.g. Tailscale ipv4/hostname, UPnP external IP) */
|
|
388
377
|
metadata: z.record(z.string(), z.string()).optional()
|
|
389
378
|
});
|
|
390
379
|
const TunnelStateSchema = z.object({
|
|
391
380
|
providers: z.array(TunnelProviderInfoSchema)
|
|
392
381
|
});
|
|
382
|
+
const AutomationPrioritySchema = z.enum(["urgent", "user", "background"]);
|
|
383
|
+
const AutomationJobKindSchema = z.enum(["supervisor", "webhook", "agent_loop"]);
|
|
384
|
+
const AutomationJobStatusSchema = z.enum([
|
|
385
|
+
"queued",
|
|
386
|
+
"dispatching",
|
|
387
|
+
"running",
|
|
388
|
+
"completed",
|
|
389
|
+
"failed",
|
|
390
|
+
"cancelled"
|
|
391
|
+
]);
|
|
392
|
+
const AutomationJobSummarySchema = z.object({
|
|
393
|
+
id: z.string(),
|
|
394
|
+
kind: AutomationJobKindSchema,
|
|
395
|
+
status: AutomationJobStatusSchema,
|
|
396
|
+
priority: AutomationPrioritySchema,
|
|
397
|
+
dedupeKey: z.string(),
|
|
398
|
+
attempt: z.number(),
|
|
399
|
+
maxAttempts: z.number(),
|
|
400
|
+
createdAt: z.number(),
|
|
401
|
+
updatedAt: z.number(),
|
|
402
|
+
dispatchedAt: z.number().optional(),
|
|
403
|
+
completedAt: z.number().optional(),
|
|
404
|
+
nextRunAt: z.number().optional(),
|
|
405
|
+
sessionId: z.string().optional(),
|
|
406
|
+
label: z.string().optional(),
|
|
407
|
+
projectId: z.string().optional(),
|
|
408
|
+
runId: z.string().optional(),
|
|
409
|
+
loopId: z.string().optional(),
|
|
410
|
+
loopIteration: z.number().optional(),
|
|
411
|
+
continuityKey: z.string().optional(),
|
|
412
|
+
errorMessage: z.string().optional(),
|
|
413
|
+
recovered: z.boolean().optional()
|
|
414
|
+
});
|
|
415
|
+
const AutomationGuardianSummarySchema = z.object({
|
|
416
|
+
key: z.string(),
|
|
417
|
+
projectId: z.string(),
|
|
418
|
+
loopId: z.string().optional(),
|
|
419
|
+
sessionId: z.string(),
|
|
420
|
+
updatedAt: z.number(),
|
|
421
|
+
lastRunId: z.string().optional(),
|
|
422
|
+
attached: z.boolean().optional(),
|
|
423
|
+
recovered: z.boolean().optional()
|
|
424
|
+
});
|
|
425
|
+
const AutomationGuardianUsageSummarySchema = z.object({
|
|
426
|
+
key: z.string(),
|
|
427
|
+
projectId: z.string().optional(),
|
|
428
|
+
loopId: z.string().optional(),
|
|
429
|
+
reuseCount: z.number(),
|
|
430
|
+
rememberCount: z.number(),
|
|
431
|
+
resetCount: z.number(),
|
|
432
|
+
lastUsedAt: z.number(),
|
|
433
|
+
currentSessionId: z.string().optional()
|
|
434
|
+
});
|
|
435
|
+
const AutomationAuditEventSummarySchema = z.object({
|
|
436
|
+
id: z.string(),
|
|
437
|
+
occurredAt: z.number(),
|
|
438
|
+
kind: z.string(),
|
|
439
|
+
jobId: z.string().optional(),
|
|
440
|
+
dedupeKey: z.string().optional(),
|
|
441
|
+
sessionId: z.string().optional(),
|
|
442
|
+
projectId: z.string().optional(),
|
|
443
|
+
runId: z.string().optional(),
|
|
444
|
+
loopId: z.string().optional(),
|
|
445
|
+
trigger: z.string().optional(),
|
|
446
|
+
status: z.string().optional(),
|
|
447
|
+
guardianKey: z.string().optional(),
|
|
448
|
+
guardianSessionId: z.string().optional(),
|
|
449
|
+
message: z.string().optional()
|
|
450
|
+
});
|
|
451
|
+
const AutomationAuditStatsSchema = z.object({
|
|
452
|
+
totalEvents: z.number(),
|
|
453
|
+
lastEventAt: z.number().optional(),
|
|
454
|
+
queuedCount: z.number(),
|
|
455
|
+
sessionStartedCount: z.number(),
|
|
456
|
+
terminalCompletedCount: z.number(),
|
|
457
|
+
terminalFailedCount: z.number(),
|
|
458
|
+
terminalCancelledCount: z.number(),
|
|
459
|
+
guardianReuseCount: z.number(),
|
|
460
|
+
guardianRememberCount: z.number(),
|
|
461
|
+
guardianResetCount: z.number(),
|
|
462
|
+
sessionReattachedCount: z.number(),
|
|
463
|
+
watchdogStopCount: z.number(),
|
|
464
|
+
stopRequestCount: z.number(),
|
|
465
|
+
guardianEligibleRunCount: z.number(),
|
|
466
|
+
guardianReuseRate: z.number(),
|
|
467
|
+
activeGuardianCount: z.number()
|
|
468
|
+
});
|
|
469
|
+
const AutomationCountsSchema = z.object({
|
|
470
|
+
queued: z.number(),
|
|
471
|
+
dispatching: z.number(),
|
|
472
|
+
running: z.number(),
|
|
473
|
+
completed: z.number(),
|
|
474
|
+
failed: z.number(),
|
|
475
|
+
cancelled: z.number()
|
|
476
|
+
});
|
|
477
|
+
const AutomationStateSchema = z.object({
|
|
478
|
+
updatedAt: z.number(),
|
|
479
|
+
counts: AutomationCountsSchema,
|
|
480
|
+
recentJobs: z.array(AutomationJobSummarySchema),
|
|
481
|
+
guardians: z.array(AutomationGuardianSummarySchema).optional(),
|
|
482
|
+
guardianUsage: z.array(AutomationGuardianUsageSummarySchema).optional(),
|
|
483
|
+
auditStats: AutomationAuditStatsSchema.optional(),
|
|
484
|
+
recentAuditEvents: z.array(AutomationAuditEventSummarySchema).optional()
|
|
485
|
+
});
|
|
393
486
|
const DaemonStateSchema = z.object({
|
|
394
487
|
status: z.union([
|
|
395
488
|
z.enum(["running", "shutting-down"]),
|
|
396
489
|
z.string()
|
|
397
|
-
// Forward compatibility
|
|
398
490
|
]),
|
|
399
491
|
pid: z.number().optional(),
|
|
400
492
|
httpPort: z.number().optional(),
|
|
493
|
+
startTime: z.union([z.number(), z.string()]).optional(),
|
|
401
494
|
startedAt: z.number().optional(),
|
|
495
|
+
startedWithCliVersion: z.string().optional(),
|
|
402
496
|
shutdownRequestedAt: z.number().optional(),
|
|
403
497
|
shutdownSource: z.union([
|
|
404
498
|
z.enum(["mobile-app", "cli", "os-signal", "unknown"]),
|
|
405
499
|
z.string()
|
|
406
|
-
// Forward compatibility
|
|
407
500
|
]).optional(),
|
|
408
501
|
tailscale: TailscaleInfoSchema.optional(),
|
|
409
|
-
tunnels: TunnelStateSchema.optional()
|
|
502
|
+
tunnels: TunnelStateSchema.optional(),
|
|
503
|
+
automation: AutomationStateSchema.optional()
|
|
410
504
|
});
|
|
411
505
|
|
|
412
506
|
const KnowledgeEntryTypeSchema = z.enum([
|
|
@@ -590,4 +684,4 @@ const VoiceTokenResponseSchema = z.discriminatedUnion("allowed", [
|
|
|
590
684
|
VoiceTokenDeniedSchema
|
|
591
685
|
]);
|
|
592
686
|
|
|
593
|
-
export { AgentMessageSchema, ApiMessageSchema, ApiUpdateMachineStateSchema, ApiUpdateNewMessageSchema, ApiUpdateSessionStateSchema, CoreUpdateBodySchema, CoreUpdateContainerSchema, CreateKnowledgeEntryBodySchema, CrossProjectSearchResponseSchema, CrossProjectSearchResultSchema, DaemonStateSchema, KnowledgeActionSchema, KnowledgeChainEntrySchema, KnowledgeChainRelationSchema, KnowledgeChainResponseSchema, KnowledgeConfidenceSchema, KnowledgeContributorTypeSchema, KnowledgeEntryTypeSchema, KnowledgeInjectionModeSchema, KnowledgeInjectionRequestSchema, KnowledgeInjectionResponseSchema, KnowledgeStatusSchema, LegacyMessageContentSchema, MachineMetadataSchema, MessageContentSchema, MessageMetaSchema, ProjectProfileSchema, QueryKnowledgeParamsSchema, SessionMessageContentSchema, SessionMessageSchema, SessionProtocolMessageSchema, TailscaleInfoSchema, TailscaleServeEntrySchema, TunnelEntrySchema, TunnelProviderInfoSchema, TunnelStateSchema, TurnKnowledgeExtractionSchema, UpdateBodySchema, UpdateKnowledgeEntryBodySchema, UpdateMachineBodySchema, UpdateNewMessageBodySchema, UpdateSchema, UpdateSessionBodySchema, UserMessageSchema, VersionedEncryptedValueSchema, VersionedMachineEncryptedValueSchema, VersionedNullableEncryptedValueSchema, VoiceTokenAllowedSchema, VoiceTokenDeniedSchema, VoiceTokenResponseSchema, createEnvelope, sessionContextUsageCategorySchema, sessionContextUsageEventSchema, sessionEnvelopeSchema, sessionEventSchema, sessionFileEventSchema, sessionModelUsageSchema, sessionNeedsContinueEventSchema, sessionPromptSuggestionEventSchema, sessionRoleSchema, sessionServiceMessageEventSchema, sessionStartEventSchema, sessionStateChangedEventSchema, sessionStopEventSchema, sessionTaskEndEventSchema, sessionTaskLogEventSchema, sessionTaskProgressEventSchema, sessionTaskStartEventSchema, sessionTextEventSchema, sessionToolCallEndEventSchema, sessionToolCallStartEventSchema, sessionToolProgressEventSchema, sessionTurnEndEventSchema, sessionTurnEndStatusSchema, sessionTurnStartEventSchema, sessionUsageUpdateEventSchema };
|
|
687
|
+
export { AgentMessageSchema, ApiMessageSchema, ApiUpdateMachineStateSchema, ApiUpdateNewMessageSchema, ApiUpdateSessionStateSchema, AutomationAuditEventSummarySchema, AutomationAuditStatsSchema, AutomationCountsSchema, AutomationGuardianSummarySchema, AutomationGuardianUsageSummarySchema, AutomationJobKindSchema, AutomationJobStatusSchema, AutomationJobSummarySchema, AutomationPrioritySchema, AutomationStateSchema, CoreUpdateBodySchema, CoreUpdateContainerSchema, CreateKnowledgeEntryBodySchema, CrossProjectSearchResponseSchema, CrossProjectSearchResultSchema, DaemonStateSchema, KnowledgeActionSchema, KnowledgeChainEntrySchema, KnowledgeChainRelationSchema, KnowledgeChainResponseSchema, KnowledgeConfidenceSchema, KnowledgeContributorTypeSchema, KnowledgeEntryTypeSchema, KnowledgeInjectionModeSchema, KnowledgeInjectionRequestSchema, KnowledgeInjectionResponseSchema, KnowledgeStatusSchema, LegacyMessageContentSchema, MachineMetadataSchema, MessageContentSchema, MessageMetaSchema, ProjectProfileSchema, QueryKnowledgeParamsSchema, SessionMessageContentSchema, SessionMessageSchema, SessionProtocolMessageSchema, TailscaleInfoSchema, TailscaleServeEntrySchema, TunnelEntrySchema, TunnelProviderInfoSchema, TunnelStateSchema, TurnKnowledgeExtractionSchema, UpdateBodySchema, UpdateKnowledgeEntryBodySchema, UpdateMachineBodySchema, UpdateNewMessageBodySchema, UpdateSchema, UpdateSessionBodySchema, UserMessageSchema, VersionedEncryptedValueSchema, VersionedMachineEncryptedValueSchema, VersionedNullableEncryptedValueSchema, VoiceTokenAllowedSchema, VoiceTokenDeniedSchema, VoiceTokenResponseSchema, createEnvelope, sessionContextUsageCategorySchema, sessionContextUsageEventSchema, sessionEnvelopeSchema, sessionEventSchema, sessionFileEventSchema, sessionModelUsageSchema, sessionNeedsContinueEventSchema, sessionPromptSuggestionEventSchema, sessionRoleSchema, sessionServiceMessageEventSchema, sessionStartEventSchema, sessionStateChangedEventSchema, sessionStopEventSchema, sessionTaskEndEventSchema, sessionTaskLogEventSchema, sessionTaskProgressEventSchema, sessionTaskStartEventSchema, sessionTextEventSchema, sessionToolCallEndEventSchema, sessionToolCallStartEventSchema, sessionToolProgressEventSchema, sessionTurnEndEventSchema, sessionTurnEndStatusSchema, sessionTurnStartEventSchema, sessionUsageUpdateEventSchema };
|