@femtomc/mu-server 26.2.70 → 26.2.72

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.
Files changed (42) hide show
  1. package/dist/api/activities.d.ts +2 -0
  2. package/dist/api/activities.js +160 -0
  3. package/dist/api/config.d.ts +2 -0
  4. package/dist/api/config.js +45 -0
  5. package/dist/api/control_plane.d.ts +2 -0
  6. package/dist/api/control_plane.js +28 -0
  7. package/dist/api/cron.d.ts +2 -0
  8. package/dist/api/cron.js +182 -0
  9. package/dist/api/heartbeats.d.ts +2 -0
  10. package/dist/api/heartbeats.js +211 -0
  11. package/dist/api/identities.d.ts +2 -0
  12. package/dist/api/identities.js +103 -0
  13. package/dist/api/runs.d.ts +2 -0
  14. package/dist/api/runs.js +207 -0
  15. package/dist/cli.js +58 -3
  16. package/dist/config.d.ts +4 -21
  17. package/dist/config.js +24 -75
  18. package/dist/control_plane.d.ts +4 -2
  19. package/dist/control_plane.js +226 -25
  20. package/dist/control_plane_bootstrap_helpers.d.ts +2 -1
  21. package/dist/control_plane_bootstrap_helpers.js +11 -1
  22. package/dist/control_plane_contract.d.ts +57 -0
  23. package/dist/control_plane_contract.js +1 -1
  24. package/dist/control_plane_reload.d.ts +63 -0
  25. package/dist/control_plane_reload.js +525 -0
  26. package/dist/control_plane_run_queue_coordinator.d.ts +48 -0
  27. package/dist/control_plane_run_queue_coordinator.js +327 -0
  28. package/dist/control_plane_telegram_generation.js +0 -1
  29. package/dist/control_plane_wake_delivery.d.ts +50 -0
  30. package/dist/control_plane_wake_delivery.js +123 -0
  31. package/dist/index.d.ts +4 -1
  32. package/dist/index.js +2 -0
  33. package/dist/run_queue.d.ts +95 -0
  34. package/dist/run_queue.js +817 -0
  35. package/dist/run_supervisor.d.ts +20 -0
  36. package/dist/run_supervisor.js +25 -1
  37. package/dist/server.d.ts +5 -10
  38. package/dist/server.js +337 -528
  39. package/dist/server_program_orchestration.js +2 -0
  40. package/dist/server_routing.d.ts +3 -2
  41. package/dist/server_routing.js +28 -900
  42. package/package.json +7 -6
@@ -37,6 +37,7 @@ export function createServerProgramOrchestration(opts) {
37
37
  message: event.message,
38
38
  payload: {
39
39
  wake_source: "heartbeat_program",
40
+ source_ts_ms: event.ts_ms,
40
41
  program_id: event.program_id,
41
42
  status: event.status,
42
43
  reason: event.reason,
@@ -97,6 +98,7 @@ export function createServerProgramOrchestration(opts) {
97
98
  message: event.message,
98
99
  payload: {
99
100
  wake_source: "cron_program",
101
+ source_ts_ms: event.ts_ms,
100
102
  program_id: event.program_id,
101
103
  status: event.status,
102
104
  reason: event.reason,
@@ -1,5 +1,5 @@
1
- import { type ControlPlaneActivitySupervisor } from "./activity_supervisor.js";
2
- import { type MuConfig } from "./config.js";
1
+ import type { ControlPlaneActivitySupervisor } from "./activity_supervisor.js";
2
+ import type { MuConfig } from "./config.js";
3
3
  import type { ControlPlaneHandle } from "./control_plane_contract.js";
4
4
  import type { CronProgramRegistry } from "./cron_programs.js";
5
5
  import type { HeartbeatProgramRegistry } from "./heartbeat_programs.js";
@@ -24,6 +24,7 @@ export type ServerRoutingDependencies = {
24
24
  reason: string;
25
25
  }) => Promise<void>;
26
26
  describeError: (error: unknown) => string;
27
+ initiateShutdown?: () => Promise<void>;
27
28
  publicDir?: string;
28
29
  mimeTypes?: Record<string, string>;
29
30
  };