@femtomc/mu-agent 26.2.63 → 26.2.65
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/extensions/index.d.ts +5 -9
- package/dist/extensions/index.d.ts.map +1 -1
- package/dist/extensions/index.js +7 -29
- package/dist/extensions/mu-operator.d.ts +10 -0
- package/dist/extensions/mu-operator.d.ts.map +1 -0
- package/dist/extensions/mu-operator.js +21 -0
- package/dist/extensions/mu-serve.d.ts +10 -0
- package/dist/extensions/mu-serve.d.ts.map +1 -0
- package/dist/extensions/mu-serve.js +25 -0
- package/package.json +2 -2
- package/prompts/roles/operator.md +4 -0
|
@@ -4,24 +4,20 @@ export { cronExtension } from "./cron.js";
|
|
|
4
4
|
export { eventLogExtension } from "./event-log.js";
|
|
5
5
|
export { heartbeatsExtension } from "./heartbeats.js";
|
|
6
6
|
export { messagingSetupExtension } from "./messaging-setup.js";
|
|
7
|
+
export { muOperatorExtension } from "./mu-operator.js";
|
|
8
|
+
export { muServeExtension } from "./mu-serve.js";
|
|
7
9
|
export { operatorCommandExtension } from "./operator-command.js";
|
|
8
10
|
export { orchestrationRunsExtension } from "./orchestration-runs.js";
|
|
9
11
|
export { orchestrationRunsReadOnlyExtension } from "./orchestration-runs-readonly.js";
|
|
10
12
|
export { serverToolsExtension, serverToolsReadOnlyExtension } from "./server-tools.js";
|
|
11
13
|
export { serverToolsReadonlyExtension } from "./server-tools-readonly.js";
|
|
12
14
|
/**
|
|
13
|
-
* Serve-mode extension
|
|
14
|
-
*
|
|
15
|
-
* Prefer this for session creation so extensions are loaded through pi's
|
|
16
|
-
* normal path-based loader (discoverable and visible by file path), not as
|
|
17
|
-
* anonymous inline factories.
|
|
15
|
+
* Serve-mode extension — single facade that bundles all serve extensions.
|
|
18
16
|
*/
|
|
19
17
|
export declare const serveExtensionPaths: string[];
|
|
20
18
|
/**
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
* This set is intentionally read-only for tool-invoked actions so all
|
|
24
|
-
* mutations flow through approved `/mu ...` command proposals and policy.
|
|
19
|
+
* Operator-mode extension — single facade that bundles all operator
|
|
20
|
+
* extensions (read-only tools, approved `/mu` command flow).
|
|
25
21
|
*/
|
|
26
22
|
export declare const operatorExtensionPaths: string[];
|
|
27
23
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/extensions/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,EAAE,0BAA0B,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,EAAE,kCAAkC,EAAE,MAAM,kCAAkC,CAAC;AACtF,OAAO,EAAE,oBAAoB,EAAE,4BAA4B,EAAE,MAAM,mBAAmB,CAAC;AACvF,OAAO,EAAE,4BAA4B,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/extensions/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,EAAE,0BAA0B,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,EAAE,kCAAkC,EAAE,MAAM,kCAAkC,CAAC;AACtF,OAAO,EAAE,oBAAoB,EAAE,4BAA4B,EAAE,MAAM,mBAAmB,CAAC;AACvF,OAAO,EAAE,4BAA4B,EAAE,MAAM,4BAA4B,CAAC;AAQ1E;;GAEG;AACH,eAAO,MAAM,mBAAmB,UAA4C,CAAC;AAE7E;;;GAGG;AACH,eAAO,MAAM,sBAAsB,UAA+C,CAAC"}
|
package/dist/extensions/index.js
CHANGED
|
@@ -4,45 +4,23 @@ export { cronExtension } from "./cron.js";
|
|
|
4
4
|
export { eventLogExtension } from "./event-log.js";
|
|
5
5
|
export { heartbeatsExtension } from "./heartbeats.js";
|
|
6
6
|
export { messagingSetupExtension } from "./messaging-setup.js";
|
|
7
|
+
export { muOperatorExtension } from "./mu-operator.js";
|
|
8
|
+
export { muServeExtension } from "./mu-serve.js";
|
|
7
9
|
export { operatorCommandExtension } from "./operator-command.js";
|
|
8
10
|
export { orchestrationRunsExtension } from "./orchestration-runs.js";
|
|
9
11
|
export { orchestrationRunsReadOnlyExtension } from "./orchestration-runs-readonly.js";
|
|
10
12
|
export { serverToolsExtension, serverToolsReadOnlyExtension } from "./server-tools.js";
|
|
11
13
|
export { serverToolsReadonlyExtension } from "./server-tools-readonly.js";
|
|
12
|
-
const SERVE_EXTENSION_MODULE_BASENAMES = [
|
|
13
|
-
"branding",
|
|
14
|
-
"server-tools",
|
|
15
|
-
"event-log",
|
|
16
|
-
"messaging-setup",
|
|
17
|
-
"orchestration-runs",
|
|
18
|
-
"activities",
|
|
19
|
-
"heartbeats",
|
|
20
|
-
"cron",
|
|
21
|
-
];
|
|
22
|
-
const OPERATOR_EXTENSION_MODULE_BASENAMES = [
|
|
23
|
-
"branding",
|
|
24
|
-
"server-tools-readonly",
|
|
25
|
-
"event-log",
|
|
26
|
-
"messaging-setup",
|
|
27
|
-
"orchestration-runs-readonly",
|
|
28
|
-
"operator-command",
|
|
29
|
-
];
|
|
30
14
|
const RUNTIME_EXTENSION = import.meta.url.endsWith(".ts") ? "ts" : "js";
|
|
31
15
|
function resolveBundledExtensionPath(moduleBasename) {
|
|
32
16
|
return new URL(`./${moduleBasename}.${RUNTIME_EXTENSION}`, import.meta.url).pathname;
|
|
33
17
|
}
|
|
34
18
|
/**
|
|
35
|
-
* Serve-mode extension
|
|
36
|
-
*
|
|
37
|
-
* Prefer this for session creation so extensions are loaded through pi's
|
|
38
|
-
* normal path-based loader (discoverable and visible by file path), not as
|
|
39
|
-
* anonymous inline factories.
|
|
19
|
+
* Serve-mode extension — single facade that bundles all serve extensions.
|
|
40
20
|
*/
|
|
41
|
-
export const serveExtensionPaths =
|
|
21
|
+
export const serveExtensionPaths = [resolveBundledExtensionPath("mu-serve")];
|
|
42
22
|
/**
|
|
43
|
-
*
|
|
44
|
-
*
|
|
45
|
-
* This set is intentionally read-only for tool-invoked actions so all
|
|
46
|
-
* mutations flow through approved `/mu ...` command proposals and policy.
|
|
23
|
+
* Operator-mode extension — single facade that bundles all operator
|
|
24
|
+
* extensions (read-only tools, approved `/mu` command flow).
|
|
47
25
|
*/
|
|
48
|
-
export const operatorExtensionPaths =
|
|
26
|
+
export const operatorExtensionPaths = [resolveBundledExtensionPath("mu-operator")];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* mu-operator — Unified operator-mode extension facade.
|
|
3
|
+
*
|
|
4
|
+
* Bundles all mu operator extensions behind a single extension entry so
|
|
5
|
+
* pi-coding-agent shows one "[Extensions] mu-operator" line instead of many.
|
|
6
|
+
*/
|
|
7
|
+
import type { ExtensionAPI } from "@mariozechner/pi-coding-agent";
|
|
8
|
+
export declare function muOperatorExtension(pi: ExtensionAPI): void;
|
|
9
|
+
export default muOperatorExtension;
|
|
10
|
+
//# sourceMappingURL=mu-operator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mu-operator.d.ts","sourceRoot":"","sources":["../../src/extensions/mu-operator.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAQlE,wBAAgB,mBAAmB,CAAC,EAAE,EAAE,YAAY,QAOnD;AAED,eAAe,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* mu-operator — Unified operator-mode extension facade.
|
|
3
|
+
*
|
|
4
|
+
* Bundles all mu operator extensions behind a single extension entry so
|
|
5
|
+
* pi-coding-agent shows one "[Extensions] mu-operator" line instead of many.
|
|
6
|
+
*/
|
|
7
|
+
import { brandingExtension } from "./branding.js";
|
|
8
|
+
import { serverToolsReadOnlyExtension } from "./server-tools.js";
|
|
9
|
+
import { eventLogExtension } from "./event-log.js";
|
|
10
|
+
import { messagingSetupExtension } from "./messaging-setup.js";
|
|
11
|
+
import { orchestrationRunsReadOnlyExtension } from "./orchestration-runs-readonly.js";
|
|
12
|
+
import { operatorCommandExtension } from "./operator-command.js";
|
|
13
|
+
export function muOperatorExtension(pi) {
|
|
14
|
+
brandingExtension(pi);
|
|
15
|
+
serverToolsReadOnlyExtension(pi);
|
|
16
|
+
eventLogExtension(pi);
|
|
17
|
+
messagingSetupExtension(pi);
|
|
18
|
+
orchestrationRunsReadOnlyExtension(pi);
|
|
19
|
+
operatorCommandExtension(pi);
|
|
20
|
+
}
|
|
21
|
+
export default muOperatorExtension;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* mu-serve — Unified serve-mode extension facade.
|
|
3
|
+
*
|
|
4
|
+
* Bundles all mu serve extensions behind a single extension entry so
|
|
5
|
+
* pi-coding-agent shows one "[Extensions] mu-serve" line instead of many.
|
|
6
|
+
*/
|
|
7
|
+
import type { ExtensionAPI } from "@mariozechner/pi-coding-agent";
|
|
8
|
+
export declare function muServeExtension(pi: ExtensionAPI): void;
|
|
9
|
+
export default muServeExtension;
|
|
10
|
+
//# sourceMappingURL=mu-serve.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mu-serve.d.ts","sourceRoot":"","sources":["../../src/extensions/mu-serve.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAUlE,wBAAgB,gBAAgB,CAAC,EAAE,EAAE,YAAY,QAShD;AAED,eAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* mu-serve — Unified serve-mode extension facade.
|
|
3
|
+
*
|
|
4
|
+
* Bundles all mu serve extensions behind a single extension entry so
|
|
5
|
+
* pi-coding-agent shows one "[Extensions] mu-serve" line instead of many.
|
|
6
|
+
*/
|
|
7
|
+
import { brandingExtension } from "./branding.js";
|
|
8
|
+
import { serverToolsExtension } from "./server-tools.js";
|
|
9
|
+
import { eventLogExtension } from "./event-log.js";
|
|
10
|
+
import { messagingSetupExtension } from "./messaging-setup.js";
|
|
11
|
+
import { orchestrationRunsExtension } from "./orchestration-runs.js";
|
|
12
|
+
import { activitiesExtension } from "./activities.js";
|
|
13
|
+
import { heartbeatsExtension } from "./heartbeats.js";
|
|
14
|
+
import { cronExtension } from "./cron.js";
|
|
15
|
+
export function muServeExtension(pi) {
|
|
16
|
+
brandingExtension(pi);
|
|
17
|
+
serverToolsExtension(pi);
|
|
18
|
+
eventLogExtension(pi);
|
|
19
|
+
messagingSetupExtension(pi);
|
|
20
|
+
orchestrationRunsExtension(pi);
|
|
21
|
+
activitiesExtension(pi);
|
|
22
|
+
heartbeatsExtension(pi);
|
|
23
|
+
cronExtension(pi);
|
|
24
|
+
}
|
|
25
|
+
export default muServeExtension;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@femtomc/mu-agent",
|
|
3
|
-
"version": "26.2.
|
|
3
|
+
"version": "26.2.65",
|
|
4
4
|
"description": "Shared agent runtime for mu chat, orchestration roles, and serve extensions.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"mu",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"prompts/**"
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@femtomc/mu-core": "26.2.
|
|
26
|
+
"@femtomc/mu-core": "26.2.65",
|
|
27
27
|
"@mariozechner/pi-agent-core": "^0.53.0",
|
|
28
28
|
"@mariozechner/pi-ai": "^0.53.0",
|
|
29
29
|
"@mariozechner/pi-coding-agent": "^0.53.0",
|
|
@@ -48,5 +48,9 @@ Allowed command kinds:
|
|
|
48
48
|
- `run_resume`
|
|
49
49
|
- `run_interrupt`
|
|
50
50
|
|
|
51
|
+
Efficiency:
|
|
52
|
+
- Do NOT pre-fetch status, issues, control-plane, events, or runs at the start of a conversation. Only call diagnostic tools when the user's request specifically requires that information.
|
|
53
|
+
- Respond directly to what the user asks. Avoid speculative tool calls.
|
|
54
|
+
|
|
51
55
|
For normal answers:
|
|
52
56
|
- Respond in plain text (no directive prefix).
|