@mesh-tech/mesh-cli 0.40.3 → 0.40.5

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.
@@ -1,4 +1,4 @@
1
1
  {
2
- "commit": "da9049b18",
3
- "builtAt": "2026-10-19T17:09:34.921Z"
2
+ "commit": "50b326b85",
3
+ "builtAt": "2026-10-19T21:38:19.079Z"
4
4
  }
@@ -33,6 +33,12 @@ const TASK_QUEUE = "{{name}}";
33
33
  // itself reads, and a hand-copied spelling that drifts is a partner refused
34
34
  // with no explanation. The primitive cannot add them for you — this identity
35
35
  // builds its roles now, before the events service exists.
36
+ //
37
+ // Declaring roles turns project role assertion ON, so granted roles ride in the
38
+ // token.
39
+ // A sign-in (`oidc`) client added later that must carry ANOTHER project's roles
40
+ // (e.g. forwarding the user's token to Temporal) turns project assertion off and
41
+ // sets `accessTokenRoleAssertion: true` + requests `projects:roles` — see authz.md.
36
42
 
37
43
  const connector = new mesh.auth.ZitadelConnector("idp", { tenant, env: platform.env });
38
44
 
@@ -123,6 +129,9 @@ const config = new mesh.apps.AppConfig("config", {
123
129
  // migration Job and fails when it fails, and the service's pods are held until
124
130
  // the schema has applied.
125
131
  //
132
+ // Its log lines carry `service: "{{name}}-events"`, which the Hub's log search
133
+ // filters by, with nothing to set here.
134
+ //
126
135
  // A knob written HERE is pinned in code: Kubernetes keeps an explicit `env`
127
136
  // entry over the `envFrom` the app values arrive through, so a value in this
128
137
  // block wins over whatever an operator saves in the Hub. Leave one out to hand
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mesh-tech/mesh-cli",
3
- "version": "0.40.3",
3
+ "version": "0.40.5",
4
4
  "description": "CLI for Mesh platform development utilities",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",
@@ -42,7 +42,7 @@
42
42
  },
43
43
  "devDependencies": {
44
44
  "@mesh-tech/agent-contracts": "0.6.0",
45
- "@mesh-tech/tsconfig": "2.45.0",
45
+ "@mesh-tech/tsconfig": "2.47.0",
46
46
  "@mesh-tech/workflow-viz": "0.3.2",
47
47
  "@tanstack/intent": "^0.3.6",
48
48
  "@types/node": "^20.0.0",
@@ -42,6 +42,11 @@ const connector = new mesh.auth.ZitadelConnector("idp", { tenant, env: platform.
42
42
  // The schema's coarse roles become Zitadel PROJECT ROLES: the vocabulary the
43
43
  // Hub grants people and API keys against. An `api`-type application is the
44
44
  // resource server tokens are minted for (its clientId is the JWT audience).
45
+ // Declaring roles turns project role assertion ON, so granted roles ride in the
46
+ // token.
47
+ // A sign-in (`oidc`) client added later that must carry ANOTHER project's roles
48
+ // (e.g. forwarding the user's token to Temporal) turns project assertion off and
49
+ // sets `accessTokenRoleAssertion: true` + requests `projects:roles` — see authz.md.
45
50
  const identity = new mesh.auth.ZitadelAppIdentity("identity", {
46
51
  connector,
47
52
  tenant,
@@ -45,6 +45,9 @@ const connector = new mesh.auth.ZitadelConnector("idp", { tenant, env: platform.
45
45
  // roleAssertion defaults ON (roles are declared) so granted roles ride in the
46
46
  // token — without it a minted API key authenticates but carries no roles, which
47
47
  // is fatal for role-gating (no SpiceDB fallback).
48
+ // A sign-in (`oidc`) client added later that must carry ANOTHER project's roles
49
+ // (e.g. forwarding the user's token to Temporal) turns project assertion off and
50
+ // sets `accessTokenRoleAssertion: true` + requests `projects:roles` — see authz.md.
48
51
  const identity = new mesh.auth.ZitadelAppIdentity("identity", {
49
52
  connector,
50
53
  tenant,