@femtomc/mu-agent 26.2.46 → 26.2.48
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messaging-setup.d.ts","sourceRoot":"","sources":["../../src/extensions/messaging-setup.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,KAAK,EAAE,YAAY,EAA6C,MAAM,+BAA+B,CAAC;AA2iC7G,wBAAgB,uBAAuB,CAAC,EAAE,EAAE,YAAY,
|
|
1
|
+
{"version":3,"file":"messaging-setup.d.ts","sourceRoot":"","sources":["../../src/extensions/messaging-setup.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,KAAK,EAAE,YAAY,EAA6C,MAAM,+BAA+B,CAAC;AA2iC7G,wBAAgB,uBAAuB,CAAC,EAAE,EAAE,YAAY,QA+PvD;AAED,eAAe,uBAAuB,CAAC"}
|
|
@@ -761,6 +761,7 @@ function buildAgentSetupPrompt(opts) {
|
|
|
761
761
|
const normalizedBase = normalizePublicBaseUrl(opts.publicBaseUrl);
|
|
762
762
|
const webhookUrl = normalizedBase ? `${normalizedBase}${opts.plan.route}` : opts.plan.webhook_url;
|
|
763
763
|
const verifyFlag = normalizedBase ? ` --public-base-url ${normalizedBase}` : "";
|
|
764
|
+
const notesBlock = opts.check.notes.length > 0 ? `[Notes]\n${opts.check.notes.map((n) => `- ${n}`).join("\n")}` : "";
|
|
764
765
|
return interpolateTemplate(MESSAGING_SETUP_BRIEF_TEMPLATE, {
|
|
765
766
|
adapter_name: adapter.name,
|
|
766
767
|
action: opts.action,
|
|
@@ -769,10 +770,11 @@ function buildAgentSetupPrompt(opts) {
|
|
|
769
770
|
route: opts.plan.route,
|
|
770
771
|
webhook_url: webhookUrl ?? "(need public base URL)",
|
|
771
772
|
missing_fields: opts.check.missing.join(", ") || "(none)",
|
|
773
|
+
next_step: opts.check.next_step,
|
|
772
774
|
provider_steps: adapter.providerSetupSteps.map((step, index) => `${index + 1}. ${step}`).join("\n"),
|
|
773
775
|
field_status: adapterFieldStatusLines(adapter, opts.check).join("\n"),
|
|
776
|
+
notes: notesBlock,
|
|
774
777
|
verify_command: `/mu-setup verify ${adapter.id}${verifyFlag}`,
|
|
775
|
-
guide: opts.guide,
|
|
776
778
|
});
|
|
777
779
|
}
|
|
778
780
|
function dispatchSetupPromptToAgent(pi, ctx, prompt) {
|
|
@@ -794,12 +796,10 @@ async function maybeDispatchAgentSetupBrief(opts) {
|
|
|
794
796
|
if (!check)
|
|
795
797
|
return false;
|
|
796
798
|
const plan = buildPlan(check, opts.parsed.publicBaseUrl);
|
|
797
|
-
const guide = guideForAdapter(check);
|
|
798
799
|
const prompt = buildAgentSetupPrompt({
|
|
799
800
|
action: opts.parsed.action,
|
|
800
801
|
check,
|
|
801
802
|
plan,
|
|
802
|
-
guide,
|
|
803
803
|
publicBaseUrl: opts.parsed.publicBaseUrl,
|
|
804
804
|
});
|
|
805
805
|
dispatchSetupPromptToAgent(opts.pi, opts.ctx, prompt);
|
|
@@ -914,12 +914,10 @@ export function messagingSetupExtension(pi) {
|
|
|
914
914
|
return textResult(`Unknown adapter: ${adapterId}`);
|
|
915
915
|
}
|
|
916
916
|
const plan = buildPlan(check, params.public_base_url);
|
|
917
|
-
const guide = guideForAdapter(check);
|
|
918
917
|
const brief = buildAgentSetupPrompt({
|
|
919
918
|
action: params.action,
|
|
920
919
|
check,
|
|
921
920
|
plan,
|
|
922
|
-
guide,
|
|
923
921
|
publicBaseUrl: params.public_base_url,
|
|
924
922
|
});
|
|
925
923
|
return textResult(brief, { checks, runtime, adapter: adapterId, plan });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session_factory.d.ts","sourceRoot":"","sources":["../src/session_factory.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"session_factory.d.ts","sourceRoot":"","sources":["../src/session_factory.ts"],"names":[],"mappings":"AASA,MAAM,MAAM,mBAAmB,GAAG;IACjC,GAAG,EAAE,MAAM,CAAC;IACZ,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG;IACvB,SAAS,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,KAAK,MAAM,IAAI,CAAC;IAC1D,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE;QAAE,qBAAqB,CAAC,EAAE,OAAO,CAAA;KAAE,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACvF,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,cAAc,EAAE,CAAC,QAAQ,EAAE,GAAG,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACjD,KAAK,EAAE;QAAE,WAAW,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAA;KAAE,CAAC;CAC5C,CAAC;AAEF,wBAAsB,eAAe,CAAC,IAAI,EAAE,mBAAmB,GAAG,OAAO,CAAC,SAAS,CAAC,CA0CnF"}
|
package/dist/session_factory.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { createBashTool, createEditTool, createReadTool, createWriteTool, } from "@mariozechner/pi-coding-agent";
|
|
1
2
|
import { createMuResourceLoader, resolveModel } from "./pi_sdk_backend.js";
|
|
2
3
|
export async function createMuSession(opts) {
|
|
3
4
|
const { AuthStorage, createAgentSession, SessionManager, SettingsManager } = await import("@mariozechner/pi-coding-agent");
|
|
@@ -17,9 +18,16 @@ export async function createMuSession(opts) {
|
|
|
17
18
|
additionalExtensionPaths: opts.extensionPaths,
|
|
18
19
|
});
|
|
19
20
|
await resourceLoader.reload();
|
|
21
|
+
const tools = [
|
|
22
|
+
createBashTool(opts.cwd),
|
|
23
|
+
createReadTool(opts.cwd),
|
|
24
|
+
createWriteTool(opts.cwd),
|
|
25
|
+
createEditTool(opts.cwd),
|
|
26
|
+
];
|
|
20
27
|
const { session } = await createAgentSession({
|
|
21
28
|
cwd: opts.cwd,
|
|
22
29
|
model,
|
|
30
|
+
tools,
|
|
23
31
|
thinkingLevel: (opts.thinking ?? "minimal"),
|
|
24
32
|
sessionManager: SessionManager.inMemory(opts.cwd),
|
|
25
33
|
settingsManager,
|
package/package.json
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
2
|
+
"name": "@femtomc/mu-agent",
|
|
3
|
+
"version": "26.2.48",
|
|
4
|
+
"description": "Shared agent runtime for mu chat, orchestration roles, and serve extensions.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"mu",
|
|
7
|
+
"agent",
|
|
8
|
+
"runtime",
|
|
9
|
+
"chat",
|
|
10
|
+
"extensions"
|
|
11
|
+
],
|
|
12
|
+
"type": "module",
|
|
13
|
+
"main": "./dist/index.js",
|
|
14
|
+
"types": "./dist/index.d.ts",
|
|
15
|
+
"exports": {
|
|
16
|
+
".": {
|
|
17
|
+
"types": "./dist/index.d.ts",
|
|
18
|
+
"default": "./dist/index.js"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"files": [
|
|
22
|
+
"dist/**",
|
|
23
|
+
"prompts/**"
|
|
24
|
+
],
|
|
25
|
+
"dependencies": {
|
|
26
|
+
"@femtomc/mu-core": "26.2.48",
|
|
27
|
+
"@mariozechner/pi-agent-core": "^0.52.12",
|
|
28
|
+
"@mariozechner/pi-ai": "^0.52.12",
|
|
29
|
+
"@mariozechner/pi-coding-agent": "^0.52.12",
|
|
30
|
+
"@sinclair/typebox": "^0.34.0",
|
|
31
|
+
"zod": "^4.1.9"
|
|
32
|
+
}
|
|
33
33
|
}
|
|
@@ -8,6 +8,7 @@ support: {{support}}
|
|
|
8
8
|
route: {{route}}
|
|
9
9
|
expected webhook URL: {{webhook_url}}
|
|
10
10
|
missing required config fields: {{missing_fields}}
|
|
11
|
+
next step: {{next_step}}
|
|
11
12
|
|
|
12
13
|
[Provider setup checklist]
|
|
13
14
|
{{provider_steps}}
|
|
@@ -15,10 +16,9 @@ missing required config fields: {{missing_fields}}
|
|
|
15
16
|
[Current config field status]
|
|
16
17
|
{{field_status}}
|
|
17
18
|
|
|
19
|
+
{{notes}}
|
|
20
|
+
|
|
18
21
|
[How you should respond]
|
|
19
22
|
1) Ask for any missing values (secrets, public base URL, etc).
|
|
20
23
|
2) Give exact provider-console steps and copy/paste commands.
|
|
21
24
|
3) Finish with verification instructions using: {{verify_command}}
|
|
22
|
-
|
|
23
|
-
[Guide snapshot]
|
|
24
|
-
{{guide}}
|