@femtomc/mu-agent 26.2.46 → 26.2.47

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,QAiQvD;AAED,eAAe,uBAAuB,CAAC"}
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 });
package/package.json CHANGED
@@ -1,33 +1,33 @@
1
1
  {
2
- "name": "@femtomc/mu-agent",
3
- "version": "26.2.46",
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.46",
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
- }
2
+ "name": "@femtomc/mu-agent",
3
+ "version": "26.2.47",
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.47",
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}}