@femtomc/mu-server 26.2.102 → 26.2.103

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/README.md CHANGED
@@ -126,6 +126,9 @@ Use `mu store paths --pretty` to resolve `<store>` for the active repo/workspace
126
126
  "source": "neovim"
127
127
  }
128
128
  ```
129
+ - `session_kind` is optional. When omitted, the server auto-resolves `session_id` across
130
+ `<store>/operator/sessions` and `<store>/control-plane/operator-sessions`.
131
+ If the same id exists in both stores, pass `session_kind` (or `session_dir`) to disambiguate.
129
132
  - Optional overrides: `session_file`, `session_dir`, `provider`, `model`, `thinking`, `extension_profile`
130
133
  - Response includes: `turn.reply`, `turn.context_entry_id`, `turn.session_file`
131
134
 
package/dist/config.d.ts CHANGED
@@ -12,7 +12,6 @@ export type MuConfig = {
12
12
  telegram: {
13
13
  webhook_secret: string | null;
14
14
  bot_token: string | null;
15
- bot_username: string | null;
16
15
  };
17
16
  neovim: {
18
17
  shared_secret: string | null;
@@ -44,7 +43,6 @@ export type MuConfigPatch = {
44
43
  telegram?: {
45
44
  webhook_secret?: string | null;
46
45
  bot_token?: string | null;
47
- bot_username?: string | null;
48
46
  };
49
47
  neovim?: {
50
48
  shared_secret?: string | null;
@@ -76,7 +74,6 @@ export type MuConfigPresence = {
76
74
  telegram: {
77
75
  webhook_secret: boolean;
78
76
  bot_token: boolean;
79
- bot_username: boolean;
80
77
  };
81
78
  neovim: {
82
79
  shared_secret: boolean;
package/dist/config.js CHANGED
@@ -15,7 +15,6 @@ export const DEFAULT_MU_CONFIG = {
15
15
  telegram: {
16
16
  webhook_secret: null,
17
17
  bot_token: null,
18
- bot_username: null,
19
18
  },
20
19
  neovim: {
21
20
  shared_secret: null,
@@ -107,9 +106,6 @@ export function normalizeMuConfig(input) {
107
106
  if ("bot_token" in telegram) {
108
107
  next.control_plane.adapters.telegram.bot_token = normalizeNullableString(telegram.bot_token);
109
108
  }
110
- if ("bot_username" in telegram) {
111
- next.control_plane.adapters.telegram.bot_username = normalizeNullableString(telegram.bot_username);
112
- }
113
109
  }
114
110
  const neovim = asRecord(adapters.neovim);
115
111
  if (neovim && "shared_secret" in neovim) {
@@ -185,9 +181,6 @@ function normalizeMuConfigPatch(input) {
185
181
  if ("bot_token" in telegram) {
186
182
  telegramPatch.bot_token = normalizeNullableString(telegram.bot_token);
187
183
  }
188
- if ("bot_username" in telegram) {
189
- telegramPatch.bot_username = normalizeNullableString(telegram.bot_username);
190
- }
191
184
  if (Object.keys(telegramPatch).length > 0) {
192
185
  patch.control_plane.adapters.telegram = telegramPatch;
193
186
  }
@@ -273,9 +266,6 @@ export function applyMuConfigPatch(base, patchInput) {
273
266
  if ("bot_token" in adapters.telegram) {
274
267
  next.control_plane.adapters.telegram.bot_token = adapters.telegram.bot_token ?? null;
275
268
  }
276
- if ("bot_username" in adapters.telegram) {
277
- next.control_plane.adapters.telegram.bot_username = adapters.telegram.bot_username ?? null;
278
- }
279
269
  }
280
270
  if (adapters.neovim && "shared_secret" in adapters.neovim) {
281
271
  next.control_plane.adapters.neovim.shared_secret = adapters.neovim.shared_secret ?? null;
@@ -372,7 +362,6 @@ export function muConfigPresence(config) {
372
362
  telegram: {
373
363
  webhook_secret: isPresent(config.control_plane.adapters.telegram.webhook_secret),
374
364
  bot_token: isPresent(config.control_plane.adapters.telegram.bot_token),
375
- bot_username: isPresent(config.control_plane.adapters.telegram.bot_username),
376
365
  },
377
366
  neovim: {
378
367
  shared_secret: isPresent(config.control_plane.adapters.neovim.shared_secret),
@@ -8,7 +8,6 @@ export type DetectedTelegramAdapter = {
8
8
  name: "telegram";
9
9
  webhookSecret: string;
10
10
  botToken: string | null;
11
- botUsername: string | null;
12
11
  };
13
12
  export type DetectedAdapter = DetectedStaticAdapter | DetectedTelegramAdapter;
14
13
  export declare function detectAdapters(config: ControlPlaneConfig): DetectedAdapter[];
@@ -50,7 +50,6 @@ export function detectAdapters(config) {
50
50
  name: "telegram",
51
51
  webhookSecret: telegramSecret,
52
52
  botToken: config.adapters.telegram.bot_token,
53
- botUsername: config.adapters.telegram.bot_username,
54
53
  });
55
54
  }
56
55
  return detected;
@@ -23,21 +23,18 @@ function telegramAdapterConfigFromControlPlane(config) {
23
23
  return {
24
24
  webhookSecret,
25
25
  botToken: config.adapters.telegram.bot_token,
26
- botUsername: config.adapters.telegram.bot_username,
27
26
  };
28
27
  }
29
28
  function applyTelegramAdapterConfig(base, telegram) {
30
29
  const next = cloneControlPlaneConfig(base);
31
30
  next.adapters.telegram.webhook_secret = telegram?.webhookSecret ?? null;
32
31
  next.adapters.telegram.bot_token = telegram?.botToken ?? null;
33
- next.adapters.telegram.bot_username = telegram?.botUsername ?? null;
34
32
  return next;
35
33
  }
36
34
  function cloneTelegramAdapterConfig(config) {
37
35
  return {
38
36
  webhookSecret: config.webhookSecret,
39
37
  botToken: config.botToken,
40
- botUsername: config.botUsername,
41
38
  };
42
39
  }
43
40
  function describeError(err) {
@@ -112,7 +109,6 @@ export class TelegramAdapterGenerationManager {
112
109
  outbox: this.#outbox,
113
110
  webhookSecret: config.webhookSecret,
114
111
  botToken: config.botToken,
115
- botUsername: config.botUsername,
116
112
  deferredIngress: true,
117
113
  onOutboxEnqueued: this.#onOutboxEnqueued ?? undefined,
118
114
  signalObserver: this.#signalObserver ?? undefined,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@femtomc/mu-server",
3
- "version": "26.2.102",
3
+ "version": "26.2.103",
4
4
  "description": "HTTP API server for mu control-plane transport/session plus run/activity scheduling coordination.",
5
5
  "keywords": [
6
6
  "mu",
@@ -30,8 +30,8 @@
30
30
  "start": "bun run dist/cli.js"
31
31
  },
32
32
  "dependencies": {
33
- "@femtomc/mu-agent": "26.2.102",
34
- "@femtomc/mu-control-plane": "26.2.102",
35
- "@femtomc/mu-core": "26.2.102"
33
+ "@femtomc/mu-agent": "26.2.103",
34
+ "@femtomc/mu-control-plane": "26.2.103",
35
+ "@femtomc/mu-core": "26.2.103"
36
36
  }
37
37
  }