@mercury-fw/cli-engine 0.47.0 → 0.48.0
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/CHANGELOG.md +24 -0
- package/cli-tool.ts +4 -4
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# @mercury-fw/cli-engine
|
|
2
2
|
|
|
3
|
+
## 0.48.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 62bb3a3: - `persona.name` is the assistant's name, Mercury when left out. A name that's blank, longer than 40 characters or on more than one line stops the app at startup.
|
|
8
|
+
- Every text the model reads refers to the name as `{{assistant}}`, and the core puts the persona's name there: the persona's identity and tone, the system prompt, plugin fragments, skills and tool descriptions. The model no longer takes "Mercury" for its own name when the app calls its assistant something else.
|
|
9
|
+
- Where the one acting is the system around the model, the texts say "the system" or "this instance" instead of Mercury: the wiki tools, the cli-engine's errors, the jira skill and its issue lists.
|
|
10
|
+
- Plugins get `assistantName` in their `build()` context, and channels in their runtime context, for texts they build while running. The login messages, the linking reply and the HTTP login page name the assistant that way.
|
|
11
|
+
- The tools a person runs as the assistant itself are `<tool>AsSelf`, previously `<tool>AsMercury`. The `mercury.act-as-self` roles are unchanged.
|
|
12
|
+
- `mfw create` writes the assistant's name as `persona.name`, with `persona/identity.md` and `persona/tone.md` referring to it. An existing app keeps working as it is: to rename its assistant everywhere, add `name` to its persona and write `{{assistant}}` in its persona files.
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Updated dependencies [62bb3a3]
|
|
17
|
+
- @mercury-fw/plugin-types@0.48.0
|
|
18
|
+
- @mercury-fw/utils@0.48.0
|
|
19
|
+
|
|
20
|
+
## 0.47.1
|
|
21
|
+
|
|
22
|
+
### Patch Changes
|
|
23
|
+
|
|
24
|
+
- @mercury-fw/plugin-types@0.47.1
|
|
25
|
+
- @mercury-fw/utils@0.47.1
|
|
26
|
+
|
|
3
27
|
## 0.47.0
|
|
4
28
|
|
|
5
29
|
### Patch Changes
|
package/cli-tool.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* command-string execution model: the model writes an entire CLI
|
|
4
4
|
* invocation as one free-text string (see `src/tools/command-parser.ts`
|
|
5
5
|
* for how that string becomes a binary + argv), and this module validates
|
|
6
|
-
* it — first that the binary is one this
|
|
6
|
+
* it — first that the binary is one this instance actually has a
|
|
7
7
|
* config for, then that the argv shape matches that binary's own
|
|
8
8
|
* allowed-prefix allowlist — before ever executing anything.
|
|
9
9
|
*
|
|
@@ -205,7 +205,7 @@ export function createCliTool(
|
|
|
205
205
|
return {
|
|
206
206
|
ok: false,
|
|
207
207
|
error:
|
|
208
|
-
"--user is not allowed:
|
|
208
|
+
"--user is not allowed: this instance decides whose account a command runs as, never the command itself. Run it again without --user.",
|
|
209
209
|
};
|
|
210
210
|
}
|
|
211
211
|
|
|
@@ -214,7 +214,7 @@ export function createCliTool(
|
|
|
214
214
|
const known = Object.keys(configs).join(", ") || "(none configured)";
|
|
215
215
|
return {
|
|
216
216
|
ok: false,
|
|
217
|
-
error: `unknown or disabled CLI "${parsed.binary}" on this
|
|
217
|
+
error: `unknown or disabled CLI "${parsed.binary}" on this instance. Available: ${known}.`,
|
|
218
218
|
};
|
|
219
219
|
}
|
|
220
220
|
|
|
@@ -225,7 +225,7 @@ export function createCliTool(
|
|
|
225
225
|
);
|
|
226
226
|
return {
|
|
227
227
|
ok: false,
|
|
228
|
-
error: `not permitted on this
|
|
228
|
+
error: `not permitted on this instance. Valid commands: ${validPrefixes}. If "${parsed.args.join(" ")}" doesn't match one of these, it's not a recognized command shape — try again with the right prefix, or run --help to check.`,
|
|
229
229
|
};
|
|
230
230
|
}
|
|
231
231
|
if (match.kind === "confirm-required") {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mercury-fw/cli-engine",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.48.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@mercury-fw/plugin-types": "0.
|
|
27
|
-
"@mercury-fw/utils": "0.
|
|
26
|
+
"@mercury-fw/plugin-types": "0.48.0",
|
|
27
|
+
"@mercury-fw/utils": "0.48.0",
|
|
28
28
|
"ai": "^7.0.126",
|
|
29
29
|
"shell-quote": "^1.11.0",
|
|
30
30
|
"zod": "^4.6.5"
|