@mesh-tech/mesh-cli 0.30.0 → 0.31.1
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/dist/bin/mesh.js +11 -7
- package/dist/bin/mesh.js.map +1 -1
- package/dist/build-info.json +2 -2
- package/dist/src/commands/app-check.js +4 -4
- package/dist/src/commands/hub/index.js +4 -0
- package/fragments/agents/AGENTS.md.hbs +8 -4
- package/fragments/base/README.md.hbs +15 -0
- package/fragments/base/index.ts.hbs +14 -10
- package/package.json +2 -2
- package/skills/core/SKILL.md +1 -1
- package/templates/api-auth/api/src/schema.ts.hbs +4 -0
- package/templates/apps-repo/README.md.hbs +8 -0
package/dist/bin/mesh.js
CHANGED
|
@@ -11803,7 +11803,7 @@ function docsSiteFindings(text) {
|
|
|
11803
11803
|
findings.push({
|
|
11804
11804
|
code: "DOCS_SITE_PUBLIC",
|
|
11805
11805
|
line: decl.line,
|
|
11806
|
-
why: `mesh.apps.${decl.ctor} declares a docs site with ${named} \u2014
|
|
11806
|
+
why: `mesh.apps.${decl.ctor} declares a docs site with ${named} \u2014 deprecated: the Hub docs door is the path this site is published on, and it is already built for it (no hostname, no sign-in and no door switch of its own), so the primitive ignores ${retired.length > 1 ? "them" : "it"}`
|
|
11807
11807
|
});
|
|
11808
11808
|
}
|
|
11809
11809
|
const kindStated = decl.ctor === "AppApiSurface" || decl.ctor === "VendorApiSurface" || args.has("kind");
|
|
@@ -11836,7 +11836,7 @@ function docsSiteFindings(text) {
|
|
|
11836
11836
|
findings.push({
|
|
11837
11837
|
code: "DOCS_SITE_PUBLIC",
|
|
11838
11838
|
line: decl.line,
|
|
11839
|
-
why: `mesh.apps.ApiDocs is published on an ingress \u2014
|
|
11839
|
+
why: `mesh.apps.ApiDocs is published on an ingress \u2014 deprecated: the Hub docs door is the path a docs site is published on, and it opens for the API surface that declares the site. The hostname still deploys, with a preview warning, as the compatibility path`
|
|
11840
11840
|
});
|
|
11841
11841
|
}
|
|
11842
11842
|
return findings;
|
|
@@ -12220,12 +12220,12 @@ var init_app_check = __esm({
|
|
|
12220
12220
|
},
|
|
12221
12221
|
DOCS_SITE_PUBLIC: {
|
|
12222
12222
|
gate: "0.3",
|
|
12223
|
-
title: "Docs site
|
|
12224
|
-
// Advisory
|
|
12225
|
-
//
|
|
12226
|
-
//
|
|
12223
|
+
title: "Docs site published through the Hub docs door",
|
|
12224
|
+
// Advisory because the public shape is the compatibility path, not a
|
|
12225
|
+
// fault: a site on it keeps deploying, and its tenant CI should read the
|
|
12226
|
+
// route without going red.
|
|
12227
12227
|
severity: "advisory",
|
|
12228
|
-
remediation: "
|
|
12228
|
+
remediation: "publish the site through the Hub docs door \u2014 declare the API as a mesh.apps.AppApiSurface whose docs block builds this same site (docs: { spec, pages }), declare its readers' role on the ZitadelAppIdentity and grant it from the Hub's Access tab; then drop the hostname (docs.ingress on an API surface, where docs.auth, docs.basePath and docs.hubDoor do nothing either; the ingress with its auth and authentication on a mesh.apps.ApiDocs). The public shape keeps deploying until you do",
|
|
12229
12229
|
scope: "app"
|
|
12230
12230
|
},
|
|
12231
12231
|
DOCS_AUDIENCE_IMPLICIT: {
|
|
@@ -17087,9 +17087,13 @@ function assembleHubEnv(session, sessionEnv, opts) {
|
|
|
17087
17087
|
PORT: String(opts.uiPort),
|
|
17088
17088
|
API_URL: `http://localhost:${opts.apiPort}`,
|
|
17089
17089
|
HUB_TENANT: hubTenant,
|
|
17090
|
+
// The shell reads the scope from HUB_SCOPE_ENV; DEFAULT_ENV is only a default.
|
|
17091
|
+
HUB_SCOPE_ENV: scopeEnv,
|
|
17090
17092
|
// UI namespace parsing + session defaults land on the scoped tenant.
|
|
17091
17093
|
DEFAULT_ORG: scopeTenants[0],
|
|
17092
17094
|
DEFAULT_ENV: scopeEnv,
|
|
17095
|
+
// A dev session has no sibling stacks, so the peer list can only be supplied.
|
|
17096
|
+
...process.env.HUB_PEER_ENVIRONMENTS ? { HUB_PEER_ENVIRONMENTS: process.env.HUB_PEER_ENVIRONMENTS } : {},
|
|
17093
17097
|
...audienceEnv
|
|
17094
17098
|
};
|
|
17095
17099
|
return { apiEnv, uiEnv, scope: { hubTenant, scopeEnv, scopeTenants }, temporalAddress, warnings, notes };
|