@mercury-fw/kit 0.32.0 → 0.34.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.
Files changed (3) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/README.md +14 -0
  3. package/package.json +3 -3
package/CHANGELOG.md CHANGED
@@ -1,5 +1,29 @@
1
1
  # @mercury-fw/kit
2
2
 
3
+ ## 0.34.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [8bed46b]
8
+ - @mercury-fw/channel-types@0.34.0
9
+ - @mercury-fw/plugin-types@0.34.0
10
+
11
+ ## 0.33.0
12
+
13
+ ### Minor Changes
14
+
15
+ - a493d9b: - A plugin whose CLI keeps its login in a folder declares it in its `package.json` (`mercury.cliCredentials`): `{ folder }` under `~/.config`, the default, or `{ path }` anywhere else under the home. Any plugin's CLI gets the login mechanism, not only the first-party ones.
16
+ - The core unpacks each declared login from its env variable onto the credentials volume (`~/.config`) at startup, only when the folder isn't there yet, for the service and the REPL alike; a folder declared elsewhere in the home lives on the volume under `~/.config/mercury-home`, linked from its usual place. It warns about a declared folder with neither the folder nor the variable.
17
+ - `mfw credentials set|reset <plugin>` names the plugin by its package or its CLI's folder (`@mercury-fw/plugin-jira` or `jira-cli`), read from the app's installed plugins; the short name (`jira`) is no longer accepted, and reset asks for the folder's name.
18
+ - `mfw create` no longer writes `docker-entrypoint.sh` or the credentials variables in the env example, and always mounts the `cli-credentials` volume; an existing app's entrypoint keeps working alongside.
19
+ - The generated README explains how a plugin's CLI gets its login without listing plugins.
20
+ - jira, bitbucket and atlassian-admin declare their CLI's login folder; their READMEs point to `mfw credentials set`.
21
+
22
+ ### Patch Changes
23
+
24
+ - @mercury-fw/plugin-types@0.33.0
25
+ - @mercury-fw/channel-types@0.33.0
26
+
3
27
  ## 0.32.0
4
28
 
5
29
  ### Patch Changes
package/README.md CHANGED
@@ -2,6 +2,20 @@
2
2
 
3
3
  What a [Mercury](https://github.com/lucabro81/mercury-fw) plugin author imports: the contract a tool plugin implements (`Plugin`, `PLUGIN_API_VERSION` and the types around them) and the one a channel implements (`ChannelPlugin`, `CHANNEL_API_VERSION`), in one place. It carries no runtime, so a plugin that depends on it doesn't pull the framework in.
4
4
 
5
+ A plugin whose CLI keeps its login in a folder under the home, reading it from there at runtime, declares that folder in its `package.json`, by default under `~/.config`:
6
+
7
+ ```json
8
+ {
9
+ "mercury": {
10
+ "cliCredentials": { "folder": "my-cli" }
11
+ }
12
+ }
13
+ ```
14
+
15
+ or anywhere else under the home, with `{ "path": ".my-cli" }` instead (relative to the home, inside it).
16
+
17
+ An app then carries the login into its container with `mfw credentials set <plugin>`, and unpacks it at startup onto a volume that keeps what the CLI writes back (a folder outside `~/.config` gets a link from its usual place to the volume). A CLI that authenticates any other way isn't covered by this, and neither is one that deletes its own folder and makes it again.
18
+
5
19
  A proper workflow for writing plugins, with an SDK on top of these contracts, is planned ([#27](https://github.com/lucabro81/mercury-fw/issues/27)).
6
20
 
7
21
  MIT
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mercury-fw/kit",
3
- "version": "0.32.0",
3
+ "version": "0.34.0",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -27,8 +27,8 @@
27
27
  "typecheck": "tsc --noEmit"
28
28
  },
29
29
  "dependencies": {
30
- "@mercury-fw/channel-types": "0.32.0",
31
- "@mercury-fw/plugin-types": "0.32.0"
30
+ "@mercury-fw/channel-types": "0.34.0",
31
+ "@mercury-fw/plugin-types": "0.34.0"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@mercury-fw/typescript-config": "*",