@mercury-fw/cli 0.44.0 → 0.45.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 CHANGED
@@ -1,5 +1,35 @@
1
1
  # @mercury-fw/cli
2
2
 
3
+ ## 0.45.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 812c9c5: - A conversation reopened on the HTTP surface after Mercury freed its history comes back to the model: the summaries of its older part plus its newest messages from the archive, within a budget.
8
+ - What a resumed conversation brings back isn't captured to long-term memory again, only the new messages are.
9
+ - `SESSION_RESUME_MAX_CHARS` sets how much comes back (default 30000, `0` turns it off); `HTTP_SURFACE_RESUME_MAX_CHARS` sets it for the HTTP surface only.
10
+ - `InboundTurn.resume` lets a channel mark a conversation its client reopens.
11
+ - The episodic collection gets a `sessionKey` index.
12
+ - `mfw create` lists `HTTP_SURFACE_RESUME_MAX_CHARS` for the HTTP channel.
13
+ - Core's README explains how Mercury remembers a conversation.
14
+
15
+ ### Patch Changes
16
+
17
+ - Updated dependencies [812c9c5]
18
+ - @mercury-fw/core@0.45.0
19
+ - @mercury-fw/utils@0.45.0
20
+
21
+ ## 0.44.1
22
+
23
+ ### Patch Changes
24
+
25
+ - c24de78: A Google Chat sender is recognised as their ZITADEL user.
26
+
27
+ - `channel-google-chat` passes the sender's email on as a claim (`claims.email`), on messages and on card clicks, when Google vouches for it: a person's (`HUMAN`) only.
28
+ - `zitadelDirectory` resolves a Google Chat sender to the one active ZITADEL user with that email, verified, whose links to the Google identity provider (`ZITADEL_GOOGLE_IDP_ID`, new and optional) include the sender's own Google account. Without that variable nobody is recognised from Chat. Anyone else on Chat stays unknown and can link their account with a code.
29
+ - `mfw create` lists `ZITADEL_GOOGLE_IDP_ID` in the env example of an app with the ZITADEL directory.
30
+ - @mercury-fw/core@0.44.1
31
+ - @mercury-fw/utils@0.44.1
32
+
3
33
  ## 0.44.0
4
34
 
5
35
  ### Minor Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mercury-fw/cli",
3
- "version": "0.44.0",
3
+ "version": "0.45.0",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -41,21 +41,21 @@
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.44.0",
45
- "@mercury-fw/utils": "0.44.0",
44
+ "@mercury-fw/core": "0.45.0",
45
+ "@mercury-fw/utils": "0.45.0",
46
46
  "commander": "^15.0.0"
47
47
  },
48
48
  "devDependencies": {
49
49
  "@mercury-fw/auth-oidc": "0.1.0",
50
50
  "@mercury-fw/auth-static": "0.2.0",
51
- "@mercury-fw/channel-google-chat": "0.5.0",
52
- "@mercury-fw/channel-http": "0.7.0",
51
+ "@mercury-fw/channel-google-chat": "0.6.0",
52
+ "@mercury-fw/channel-http": "0.8.0",
53
53
  "@mercury-fw/directory-static": "0.1.0",
54
- "@mercury-fw/formatter": "0.44.0",
54
+ "@mercury-fw/formatter": "0.45.0",
55
55
  "@mercury-fw/plugin-atlassian-admin": "0.3.1",
56
56
  "@mercury-fw/plugin-bitbucket": "0.3.1",
57
57
  "@mercury-fw/plugin-jira": "0.6.1",
58
- "@mercury-fw/plugin-zitadel": "0.2.0",
58
+ "@mercury-fw/plugin-zitadel": "0.3.0",
59
59
  "@mercury-fw/typescript-config": "*",
60
60
  "@types/bun": "^1.4.2",
61
61
  "typescript": "^6.0.3"
package/src/catalog.ts CHANGED
@@ -60,6 +60,7 @@ export const CATALOG: CatalogEntry[] = [
60
60
  { name: "HTTP_SURFACE_PORT", comment: "Port of the HTTP surface", value: "4100" },
61
61
  { name: "HTTP_SURFACE_CORS_ORIGIN", comment: "Origin allowed to call the HTTP surface from a browser, if any" },
62
62
  { name: "HTTP_SURFACE_PUBLIC_URL", comment: "Address people's browsers reach the HTTP surface at, for logging in to the services plugins act on as them" },
63
+ { name: "HTTP_SURFACE_RESUME_MAX_CHARS", comment: "Characters of a reopened conversation that come back to the model (empty: the core's SESSION_RESUME_MAX_CHARS, 0: off)" },
63
64
  ],
64
65
  },
65
66
  {
@@ -141,7 +142,10 @@ export const CATALOG: CatalogEntry[] = [
141
142
  kind: "directory",
142
143
  package: "@mercury-fw/plugin-zitadel",
143
144
  exportName: "zitadelDirectory",
144
- env: [{ name: "ZITADEL_PROJECT_ID", comment: "Required: the ZITADEL project whose roles count" }],
145
+ env: [
146
+ { name: "ZITADEL_PROJECT_ID", comment: "Required: the ZITADEL project whose roles count" },
147
+ { name: "ZITADEL_GOOGLE_IDP_ID", comment: "Optional: the Google identity provider's id in ZITADEL, to recognise Google Chat senders" },
148
+ ],
145
149
  // It calls the zitadel CLI, which the package downloads as it installs.
146
150
  trusts: ["@mercury-fw/plugin-zitadel"],
147
151
  },