@mercury-fw/cli 0.50.4 → 0.52.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 +22 -0
- package/dist/src/e2e/define.d.ts +5 -1
- package/package.json +6 -6
- package/src/e2e/define.ts +5 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @mercury-fw/cli
|
|
2
2
|
|
|
3
|
+
## 0.52.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 7939ff2: - `@mercury-fw/core` exports `OPERATOR_PRINCIPAL`, the terminal's principal, for a caller that drives `handleTurn` itself as the operator.
|
|
8
|
+
- `@mercury-fw/cli/e2e` exports `turnFromDump` and `createExpect`, so a tool running Mercury turns of its own reads and checks them the way `mfw e2e` does.
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies [678c1cc]
|
|
13
|
+
- Updated dependencies [7939ff2]
|
|
14
|
+
- @mercury-fw/core@0.52.0
|
|
15
|
+
- @mercury-fw/utils@0.52.0
|
|
16
|
+
|
|
17
|
+
## 0.51.0
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- Updated dependencies [b2f8cfb]
|
|
22
|
+
- @mercury-fw/core@0.51.0
|
|
23
|
+
- @mercury-fw/utils@0.51.0
|
|
24
|
+
|
|
3
25
|
## 0.50.4
|
|
4
26
|
|
|
5
27
|
### Patch Changes
|
package/dist/src/e2e/define.d.ts
CHANGED
|
@@ -5,10 +5,14 @@
|
|
|
5
5
|
* checks on the calls it made and the answer it gave. A case talks to the
|
|
6
6
|
* app's REPL, or to its HTTP surface as one of the test's users (each a token
|
|
7
7
|
* the app's auth provider knows), possibly in lanes that run at the same time.
|
|
8
|
-
* `mfw e2e` runs them (`runner.ts`).
|
|
8
|
+
* `mfw e2e` runs them (`runner.ts`). A tool driving Mercury turns of its own
|
|
9
|
+
* (the skill trainer) reads them with `turnFromDump` and checks them with
|
|
10
|
+
* `createExpect`, the same two the runner uses.
|
|
9
11
|
*/
|
|
10
12
|
import type { Call, TurnData } from "./dump.ts";
|
|
11
13
|
export type { Call } from "./dump.ts";
|
|
14
|
+
export { turnFromDump } from "./dump.ts";
|
|
15
|
+
export { createExpect, type Check } from "./expect.ts";
|
|
12
16
|
/** One turn as a check sees it: its calls, its answer, how long it took, and
|
|
13
17
|
* on HTTP the response's status (200, or 401 for a token the app refused).
|
|
14
18
|
* On HTTP a call's `input` is the detail line the surface shows (the command,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mercury-fw/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.52.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -41,17 +41,17 @@
|
|
|
41
41
|
"comment:shape": "The Mercury CLI (`mfw`). `mfw create <dir>` writes a new Mercury app from the template. The framework packages move in lockstep with it, so a new app gets them at the CLI's own version; plugins and channels at the registry's latest. The plugin and channel packages are devDependencies only for the catalog test. `main(argv)` is exported for create-mercury-agent.",
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@clack/prompts": "^1.8.1",
|
|
44
|
-
"@mercury-fw/core": "0.
|
|
45
|
-
"@mercury-fw/utils": "0.
|
|
44
|
+
"@mercury-fw/core": "0.52.0",
|
|
45
|
+
"@mercury-fw/utils": "0.52.0",
|
|
46
46
|
"commander": "^15.0.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@mercury-fw/auth-oidc": "0.2.0",
|
|
50
50
|
"@mercury-fw/auth-static": "0.2.1",
|
|
51
|
-
"@mercury-fw/channel-google-chat": "0.
|
|
52
|
-
"@mercury-fw/channel-http": "0.
|
|
51
|
+
"@mercury-fw/channel-google-chat": "0.8.0",
|
|
52
|
+
"@mercury-fw/channel-http": "0.10.1",
|
|
53
53
|
"@mercury-fw/directory-static": "0.1.1",
|
|
54
|
-
"@mercury-fw/formatter": "0.
|
|
54
|
+
"@mercury-fw/formatter": "0.52.0",
|
|
55
55
|
"@mercury-fw/plugin-atlassian-admin": "0.3.2",
|
|
56
56
|
"@mercury-fw/plugin-bitbucket": "0.4.1",
|
|
57
57
|
"@mercury-fw/plugin-jira": "0.6.5",
|
package/src/e2e/define.ts
CHANGED
|
@@ -5,11 +5,15 @@
|
|
|
5
5
|
* checks on the calls it made and the answer it gave. A case talks to the
|
|
6
6
|
* app's REPL, or to its HTTP surface as one of the test's users (each a token
|
|
7
7
|
* the app's auth provider knows), possibly in lanes that run at the same time.
|
|
8
|
-
* `mfw e2e` runs them (`runner.ts`).
|
|
8
|
+
* `mfw e2e` runs them (`runner.ts`). A tool driving Mercury turns of its own
|
|
9
|
+
* (the skill trainer) reads them with `turnFromDump` and checks them with
|
|
10
|
+
* `createExpect`, the same two the runner uses.
|
|
9
11
|
*/
|
|
10
12
|
import type { Call, TurnData } from "./dump.ts";
|
|
11
13
|
|
|
12
14
|
export type { Call } from "./dump.ts";
|
|
15
|
+
export { turnFromDump } from "./dump.ts";
|
|
16
|
+
export { createExpect, type Check } from "./expect.ts";
|
|
13
17
|
|
|
14
18
|
/** One turn as a check sees it: its calls, its answer, how long it took, and
|
|
15
19
|
* on HTTP the response's status (200, or 401 for a token the app refused).
|