metheus-governance-mcp-cli 0.2.287 → 0.2.288
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 +4 -2
- package/cli.mjs +25 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -379,7 +379,7 @@ Behavior:
|
|
|
379
379
|
- `bot room-audit` now suggests executable runner routes for the managed server+local intersection. Room visibility is still reported, but a bot no longer has to appear in the admin list before route automation can prepare it.
|
|
380
380
|
- `bot room-audit` defaults to `monitor` only unless you pass `--role` or `--roles`.
|
|
381
381
|
- `bot room-audit --apply true` writes missing suggested routes into `~/.metheus/bot-runner.json` and disables overlapping enabled routes in the same project/provider/destination/bot scope that are outside the selected role set.
|
|
382
|
-
- `runner project up` is the
|
|
382
|
+
- `runner project up` is the one-command direct CLI path for Telegram project operations: it runs the same room audit, applies the selected role routes, and starts detached polling by default unless you explicitly pass `--start false`.
|
|
383
383
|
- `runner project up` can be narrowed with `--bot-name`, `--bot-id`, `--role`, or `--roles <csv>` when you do not want every suggested role route for that room.
|
|
384
384
|
- `bot remove` without flags starts a guided numbered flow: provider -> bot entry -> confirm removal.
|
|
385
385
|
- Telegram stores one bot file per entry under `~/.metheus/telegram-bots/<ServerBotName>.env` with generic fields:
|
|
@@ -421,6 +421,7 @@ metheus-governance-mcp-cli bot remove --provider telegram --bot-name <server_bot
|
|
|
421
421
|
metheus-governance-mcp-cli bot verify --provider telegram --bot-name <server_bot_name> --json true
|
|
422
422
|
metheus-governance-mcp-cli bot room-audit --provider telegram --project-id <project_uuid> --destination-label <room_label> --json true
|
|
423
423
|
metheus-governance-mcp-cli bot room-audit --provider telegram --project-id <project_uuid> --destination-label <room_label> --apply true --json true
|
|
424
|
+
metheus-governance-mcp-cli runner project up --project-id <project_uuid> --provider telegram --destination-label <room_label>
|
|
424
425
|
metheus-governance-mcp-cli runner project up --project-id <project_uuid> --provider telegram --destination-label <room_label> --start false
|
|
425
426
|
metheus-governance-mcp-cli runner start-detached --project-id <project_uuid> --provider telegram --destination-label <room_label>
|
|
426
427
|
metheus-governance-mcp-cli runner project up --project-id <project_uuid> --provider telegram --destination-label <room_label> --bot-name <server_bot_name> --roles monitor,review --start false
|
|
@@ -555,7 +556,7 @@ metheus-governance-mcp-cli runner start --route-name telegram-monitor --concurre
|
|
|
555
556
|
Route management:
|
|
556
557
|
- `runner route add` creates one executable route by selecting the project, provider, role, server bot, and project chat destination in order.
|
|
557
558
|
- `runner route add` now auto-uses the suggested route name, `5000` ms poll interval, and `enabled=true` unless you pass explicit flags or edit the route later.
|
|
558
|
-
- `runner project up` is the shortest practical route bootstrap path for Telegram: it audits one project destination, writes any missing suggested routes, and
|
|
559
|
+
- `runner project up` is the shortest practical route bootstrap path for Telegram: it audits one project destination, writes any missing suggested routes, and starts detached polling by default unless you explicitly pass `--start false`.
|
|
559
560
|
- if room visibility probe fails but one or more enabled routes already exist for that project destination, `runner project up` now treats the probe failure as a warning and can still start those existing routes.
|
|
560
561
|
- `runner project up --dry-run-delivery true` lets the started runner validate route execution without sending a real provider message.
|
|
561
562
|
- In public Telegram bot conversations, the stored route role is treated as a hint only. Live room context, the current human request, and recent bot replies take priority over the stored route role hint when the local AI client decides how to answer.
|
|
@@ -568,6 +569,7 @@ Route management:
|
|
|
568
569
|
Recommended operational path:
|
|
569
570
|
|
|
570
571
|
```bash
|
|
572
|
+
metheus-governance-mcp-cli runner project up --project-id <project_uuid> --provider telegram --destination-label <room_label>
|
|
571
573
|
metheus-governance-mcp-cli runner project up --project-id <project_uuid> --provider telegram --destination-label <room_label> --start false
|
|
572
574
|
metheus-governance-mcp-cli runner start-detached --project-id <project_uuid> --provider telegram --destination-label <room_label>
|
|
573
575
|
metheus-governance-mcp-cli runner project up --project-id <project_uuid> --provider telegram --destination-label <room_label> --bot-name <server_bot_name> --roles monitor,review --start false
|
package/cli.mjs
CHANGED
|
@@ -12292,12 +12292,17 @@ function resolveRunnerProjectUpExecutionPolicy(flags = {}) {
|
|
|
12292
12292
|
const applyRequested = Object.prototype.hasOwnProperty.call(flags, "apply")
|
|
12293
12293
|
? boolFromRaw(flags.apply, true)
|
|
12294
12294
|
: true;
|
|
12295
|
-
const
|
|
12296
|
-
|
|
12297
|
-
|
|
12295
|
+
const explicitStartDetachedRequested = Object.prototype.hasOwnProperty.call(flags, "start-detached");
|
|
12296
|
+
const explicitDetachedAliasRequested = Object.prototype.hasOwnProperty.call(flags, "detached");
|
|
12297
|
+
const explicitStartRequested = Object.prototype.hasOwnProperty.call(flags, "start");
|
|
12298
12298
|
const startRequested = Object.prototype.hasOwnProperty.call(flags, "start")
|
|
12299
12299
|
? boolFromRaw(flags.start, true)
|
|
12300
12300
|
: false;
|
|
12301
|
+
const startDetachedRequested = explicitStartDetachedRequested
|
|
12302
|
+
? boolFromRaw(flags["start-detached"], true)
|
|
12303
|
+
: (explicitDetachedAliasRequested
|
|
12304
|
+
? boolFromRaw(flags.detached, false)
|
|
12305
|
+
: !explicitStartRequested);
|
|
12301
12306
|
const shouldStartRunner = startRequested || startDetachedRequested;
|
|
12302
12307
|
return {
|
|
12303
12308
|
applyRequested,
|
|
@@ -12345,7 +12350,7 @@ async function buildRunnerProjectUpResult(flags = {}) {
|
|
|
12345
12350
|
const ui = createPrompter();
|
|
12346
12351
|
try {
|
|
12347
12352
|
if (shouldRenderPromptChrome(flags)) {
|
|
12348
|
-
ui.setFlow("RUNNER PROJECT UP", "Audit one project destination, create missing runner routes, and
|
|
12353
|
+
ui.setFlow("RUNNER PROJECT UP", "Audit one project destination, create missing runner routes, and start detached polling by default unless --start false is passed");
|
|
12349
12354
|
}
|
|
12350
12355
|
const provider = String(flags.provider || "").trim()
|
|
12351
12356
|
? normalizeBotProvider(flags.provider)
|
|
@@ -19325,7 +19330,21 @@ TELEGRAM_BOT_REVIEW_TOKEN=review-token
|
|
|
19325
19330
|
try {
|
|
19326
19331
|
const projectUpPolicy = resolveRunnerProjectUpExecutionPolicy({});
|
|
19327
19332
|
push(
|
|
19328
|
-
"
|
|
19333
|
+
"runner_project_up_default_policy_prefers_detached_start",
|
|
19334
|
+
projectUpPolicy.applyRequested === true
|
|
19335
|
+
&& projectUpPolicy.startRequested === false
|
|
19336
|
+
&& projectUpPolicy.startDetachedRequested === true
|
|
19337
|
+
&& projectUpPolicy.shouldStartRunner === true,
|
|
19338
|
+
`apply=${projectUpPolicy.applyRequested} start=${projectUpPolicy.startRequested} detached=${projectUpPolicy.startDetachedRequested} shouldStart=${projectUpPolicy.shouldStartRunner}`,
|
|
19339
|
+
);
|
|
19340
|
+
} catch (err) {
|
|
19341
|
+
push("runner_project_up_default_policy_prefers_detached_start", false, String(err?.message || err));
|
|
19342
|
+
}
|
|
19343
|
+
|
|
19344
|
+
try {
|
|
19345
|
+
const projectUpPolicy = resolveRunnerProjectUpExecutionPolicy({ start: false });
|
|
19346
|
+
push(
|
|
19347
|
+
"runner_project_up_explicit_start_false_keeps_prepare_only",
|
|
19329
19348
|
projectUpPolicy.applyRequested === true
|
|
19330
19349
|
&& projectUpPolicy.startRequested === false
|
|
19331
19350
|
&& projectUpPolicy.startDetachedRequested === false
|
|
@@ -19333,7 +19352,7 @@ TELEGRAM_BOT_REVIEW_TOKEN=review-token
|
|
|
19333
19352
|
`apply=${projectUpPolicy.applyRequested} start=${projectUpPolicy.startRequested} detached=${projectUpPolicy.startDetachedRequested} shouldStart=${projectUpPolicy.shouldStartRunner}`,
|
|
19334
19353
|
);
|
|
19335
19354
|
} catch (err) {
|
|
19336
|
-
push("
|
|
19355
|
+
push("runner_project_up_explicit_start_false_keeps_prepare_only", false, String(err?.message || err));
|
|
19337
19356
|
}
|
|
19338
19357
|
|
|
19339
19358
|
try {
|