@femtomc/mu-server 26.2.73 → 26.2.74

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 (51) hide show
  1. package/README.md +54 -66
  2. package/dist/api/control_plane.js +56 -0
  3. package/dist/api/cron.js +2 -23
  4. package/dist/api/heartbeats.js +1 -66
  5. package/dist/api/identities.js +3 -2
  6. package/dist/api/runs.js +0 -83
  7. package/dist/api/session_flash.d.ts +60 -0
  8. package/dist/api/session_flash.js +326 -0
  9. package/dist/api/session_turn.d.ts +38 -0
  10. package/dist/api/session_turn.js +423 -0
  11. package/dist/config.d.ts +9 -4
  12. package/dist/config.js +24 -24
  13. package/dist/control_plane.d.ts +2 -16
  14. package/dist/control_plane.js +57 -83
  15. package/dist/control_plane_adapter_registry.d.ts +19 -0
  16. package/dist/control_plane_adapter_registry.js +74 -0
  17. package/dist/control_plane_contract.d.ts +1 -7
  18. package/dist/control_plane_run_queue_coordinator.d.ts +1 -7
  19. package/dist/control_plane_run_queue_coordinator.js +1 -62
  20. package/dist/control_plane_telegram_generation.js +1 -0
  21. package/dist/control_plane_wake_delivery.js +1 -0
  22. package/dist/cron_programs.d.ts +21 -35
  23. package/dist/cron_programs.js +32 -113
  24. package/dist/cron_request.d.ts +0 -6
  25. package/dist/cron_request.js +0 -41
  26. package/dist/heartbeat_programs.d.ts +20 -35
  27. package/dist/heartbeat_programs.js +26 -122
  28. package/dist/index.d.ts +2 -2
  29. package/dist/outbound_delivery_router.d.ts +12 -0
  30. package/dist/outbound_delivery_router.js +29 -0
  31. package/dist/run_supervisor.d.ts +1 -16
  32. package/dist/run_supervisor.js +0 -70
  33. package/dist/server.d.ts +0 -5
  34. package/dist/server.js +95 -127
  35. package/dist/server_program_orchestration.d.ts +4 -19
  36. package/dist/server_program_orchestration.js +49 -200
  37. package/dist/server_routing.d.ts +0 -9
  38. package/dist/server_routing.js +19 -654
  39. package/dist/server_runtime.js +0 -1
  40. package/dist/server_types.d.ts +0 -2
  41. package/dist/server_types.js +0 -7
  42. package/package.json +6 -9
  43. package/dist/api/context.d.ts +0 -5
  44. package/dist/api/context.js +0 -1147
  45. package/dist/api/forum.d.ts +0 -2
  46. package/dist/api/forum.js +0 -75
  47. package/dist/api/issues.d.ts +0 -2
  48. package/dist/api/issues.js +0 -173
  49. package/public/assets/index-CxkevQNh.js +0 -100
  50. package/public/assets/index-D_8anM-D.css +0 -1
  51. package/public/index.html +0 -14
@@ -22,7 +22,6 @@ export async function composeServerRuntime(options = {}) {
22
22
  : await bootstrapControlPlane({
23
23
  repoRoot,
24
24
  config: config.control_plane,
25
- heartbeatScheduler,
26
25
  generation: {
27
26
  generation_id: "control-plane-gen-0",
28
27
  generation_seq: 0,
@@ -1,3 +1 @@
1
- export type ProgramWakeMode = "immediate" | "next_heartbeat";
2
- export declare function normalizeWakeMode(value: unknown): ProgramWakeMode;
3
1
  export declare function toNonNegativeInt(value: unknown, fallback: number): number;
@@ -1,10 +1,3 @@
1
- export function normalizeWakeMode(value) {
2
- if (typeof value !== "string") {
3
- return "immediate";
4
- }
5
- const normalized = value.trim().toLowerCase().replaceAll("-", "_");
6
- return normalized === "next_heartbeat" ? "next_heartbeat" : "immediate";
7
- }
8
1
  export function toNonNegativeInt(value, fallback) {
9
2
  if (typeof value === "number" && Number.isFinite(value)) {
10
3
  return Math.max(0, Math.trunc(value));
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@femtomc/mu-server",
3
- "version": "26.2.73",
4
- "description": "HTTP API server for mu status, work items, messaging setup, and web UI.",
3
+ "version": "26.2.74",
4
+ "description": "HTTP API server for mu control-plane transport/session plus run/activity scheduling coordination.",
5
5
  "keywords": [
6
6
  "mu",
7
7
  "server",
@@ -22,8 +22,7 @@
22
22
  }
23
23
  },
24
24
  "files": [
25
- "dist/**",
26
- "public/**"
25
+ "dist/**"
27
26
  ],
28
27
  "scripts": {
29
28
  "build": "tsc -p tsconfig.build.json",
@@ -31,10 +30,8 @@
31
30
  "start": "bun run dist/cli.js"
32
31
  },
33
32
  "dependencies": {
34
- "@femtomc/mu-agent": "26.2.73",
35
- "@femtomc/mu-control-plane": "26.2.73",
36
- "@femtomc/mu-core": "26.2.73",
37
- "@femtomc/mu-forum": "26.2.73",
38
- "@femtomc/mu-issue": "26.2.73"
33
+ "@femtomc/mu-agent": "26.2.74",
34
+ "@femtomc/mu-control-plane": "26.2.74",
35
+ "@femtomc/mu-core": "26.2.74"
39
36
  }
40
37
  }
@@ -1,5 +0,0 @@
1
- import type { ServerContext } from "../server.js";
2
- export declare function contextRoutes(request: Request, url: URL, deps: {
3
- context: ServerContext;
4
- describeError: (error: unknown) => string;
5
- }, headers: Headers): Promise<Response>;