@mesh-tech/mesh-cli 0.22.0 → 0.22.2
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 +4 -3
- package/dist/bin/mesh.js.map +1 -1
- package/dist/build-info.json +2 -2
- package/dist/src/commands/app-check.js +2 -2
- package/dist/src/commands/temporal.js +2 -1
- package/dist/src/commands/temporal.js.map +1 -1
- package/fragments/service/docs/pages/getting-started.md.hbs +3 -1
- package/package.json +2 -2
- package/templates/api-role-gating/AGENTS.md.hbs +4 -3
- package/templates/api-role-gating/README.md.hbs +6 -5
- package/templates/api-role-gating/index.ts.hbs +23 -19
- package/templates/api-role-gating/skills/develop/SKILL.md.hbs +13 -8
package/dist/bin/mesh.js
CHANGED
|
@@ -6303,7 +6303,8 @@ var init_src = __esm({
|
|
|
6303
6303
|
docs: z.object({
|
|
6304
6304
|
url: z.string().min(1),
|
|
6305
6305
|
contentHash: z.string().min(1),
|
|
6306
|
-
siteUrl: z.string().min(1).optional()
|
|
6306
|
+
siteUrl: z.string().min(1).optional(),
|
|
6307
|
+
siteInternalUrl: z.string().min(1).optional()
|
|
6307
6308
|
}),
|
|
6308
6309
|
enabledOps: z.array(z.string()),
|
|
6309
6310
|
// The consumer schema strips unknown keys, so a producer-side field that is
|
|
@@ -11083,7 +11084,7 @@ function scanApp(root, appRel) {
|
|
|
11083
11084
|
hit(
|
|
11084
11085
|
"METADATA_UNPUBLISHED",
|
|
11085
11086
|
rel(root, pointer.file),
|
|
11086
|
-
"AppAuthzPointer present but no compiled ops-hub metadata (compileOpsHubMetadata
|
|
11087
|
+
"AppAuthzPointer present but no compiled ops-hub metadata (opsHubMetadata: compileOpsHubMetadata(schemaDef) on the pointer, or a SpiceDBSchema) \u2014 the Hub's create-key and role catalog 409 METADATA_UNPUBLISHED"
|
|
11087
11088
|
);
|
|
11088
11089
|
}
|
|
11089
11090
|
const anti = (code, re, why) => {
|
|
@@ -11260,7 +11261,7 @@ var init_app_check = __esm({
|
|
|
11260
11261
|
gate: "H",
|
|
11261
11262
|
title: "Access surfaced through the Hub",
|
|
11262
11263
|
severity: "block",
|
|
11263
|
-
remediation: '
|
|
11264
|
+
remediation: 'end index.ts with new mesh.auth.AppAuthzPointer("authz", { env, mode, opsHubMetadata: compileOpsHubMetadata(schemaDef) }) (role-gating) or { env, mode, opsHubMetadataRef: schema.opsHubMetadataRef } (policy-engine)',
|
|
11264
11265
|
scope: "app"
|
|
11265
11266
|
},
|
|
11266
11267
|
METADATA_UNPUBLISHED: {
|