@femtomc/mu-agent 26.2.61 → 26.2.62
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/backend.js
CHANGED
|
@@ -69,7 +69,7 @@ export function resolveModel(modelId, authStorage, providerConstraint) {
|
|
|
69
69
|
*/
|
|
70
70
|
export class SdkBackend {
|
|
71
71
|
async run(opts) {
|
|
72
|
-
const authStorage =
|
|
72
|
+
const authStorage = AuthStorage.create();
|
|
73
73
|
const model = resolveModel(opts.model, authStorage, opts.provider);
|
|
74
74
|
if (!model) {
|
|
75
75
|
const scope = opts.provider ? ` in provider "${opts.provider}"` : "";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mu-command-dispatcher.d.ts","sourceRoot":"","sources":["../../src/extensions/mu-command-dispatcher.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AAE3F,MAAM,MAAM,mBAAmB,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,uBAAuB,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;AAEvG,MAAM,MAAM,wBAAwB,GAAG;IACtC,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,OAAO,EAAE,mBAAmB,CAAC;CAC7B,CAAC;
|
|
1
|
+
{"version":3,"file":"mu-command-dispatcher.d.ts","sourceRoot":"","sources":["../../src/extensions/mu-command-dispatcher.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AAE3F,MAAM,MAAM,mBAAmB,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,uBAAuB,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;AAEvG,MAAM,MAAM,wBAAwB,GAAG;IACtC,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,OAAO,EAAE,mBAAmB,CAAC;CAC7B,CAAC;AAgIF,wBAAgB,oBAAoB,CAAC,EAAE,EAAE,YAAY,EAAE,YAAY,EAAE,wBAAwB,GAAG,IAAI,CAsDnG"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
let singletonState = null;
|
|
2
2
|
const RESERVED_SUBCOMMANDS = new Set(["help", "?"]);
|
|
3
3
|
function normalizeSubcommand(value) {
|
|
4
4
|
return value.trim().toLowerCase();
|
|
@@ -51,15 +51,14 @@ function resolveEntry(state, token) {
|
|
|
51
51
|
return state.entries.get(canonical) ?? null;
|
|
52
52
|
}
|
|
53
53
|
function ensureDispatcher(pi) {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
return existing;
|
|
54
|
+
if (singletonState) {
|
|
55
|
+
return singletonState;
|
|
57
56
|
}
|
|
58
57
|
const state = {
|
|
59
58
|
entries: new Map(),
|
|
60
59
|
aliases: new Map(),
|
|
61
60
|
};
|
|
62
|
-
|
|
61
|
+
singletonState = state;
|
|
63
62
|
pi.registerCommand("mu", {
|
|
64
63
|
description: "mu command dispatcher (`/mu <subcommand> ...`)",
|
|
65
64
|
handler: async (args, ctx) => {
|
package/dist/session_factory.js
CHANGED
|
@@ -2,7 +2,7 @@ import { createBashTool, createEditTool, createReadTool, createWriteTool, } from
|
|
|
2
2
|
import { createMuResourceLoader, resolveModel } from "./backend.js";
|
|
3
3
|
export async function createMuSession(opts) {
|
|
4
4
|
const { AuthStorage, createAgentSession, SessionManager, SettingsManager } = await import("@mariozechner/pi-coding-agent");
|
|
5
|
-
const authStorage =
|
|
5
|
+
const authStorage = AuthStorage.create();
|
|
6
6
|
const defaultModel = "gpt-5.3-codex";
|
|
7
7
|
const modelId = opts.model ?? defaultModel;
|
|
8
8
|
const model = resolveModel(modelId, authStorage, opts.provider);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@femtomc/mu-agent",
|
|
3
|
-
"version": "26.2.
|
|
3
|
+
"version": "26.2.62",
|
|
4
4
|
"description": "Shared agent runtime for mu chat, orchestration roles, and serve extensions.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"mu",
|
|
@@ -23,10 +23,10 @@
|
|
|
23
23
|
"prompts/**"
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@femtomc/mu-core": "26.2.
|
|
27
|
-
"@mariozechner/pi-agent-core": "^0.
|
|
28
|
-
"@mariozechner/pi-ai": "^0.
|
|
29
|
-
"@mariozechner/pi-coding-agent": "^0.
|
|
26
|
+
"@femtomc/mu-core": "26.2.62",
|
|
27
|
+
"@mariozechner/pi-agent-core": "^0.53.0",
|
|
28
|
+
"@mariozechner/pi-ai": "^0.53.0",
|
|
29
|
+
"@mariozechner/pi-coding-agent": "^0.53.0",
|
|
30
30
|
"@sinclair/typebox": "^0.34.0",
|
|
31
31
|
"zod": "^4.1.9"
|
|
32
32
|
}
|