@mesh-tech/mesh-cli 0.33.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.
package/dist/build-info.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mesh-tech/mesh-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.34.0",
|
|
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.2.0",
|
|
45
|
-
"@mesh-tech/tsconfig": "2.
|
|
45
|
+
"@mesh-tech/tsconfig": "2.28.0",
|
|
46
46
|
"@mesh-tech/workflow-viz": "0.3.0",
|
|
47
47
|
"@tanstack/intent": "^0.3.6",
|
|
48
48
|
"@types/node": "^20.0.0",
|
|
@@ -61,7 +61,12 @@ host gets its own callback, and registers a redirect URI per host at the IdP.
|
|
|
61
61
|
`index.ts` owns the whole access surface, so there is nothing to create by
|
|
62
62
|
hand: `ZitadelAppIdentity` makes the app's Zitadel project + roles,
|
|
63
63
|
`SpiceDBSchema` compiles `api/src/schema.ts` into the app's own SpiceDB and
|
|
64
|
-
publishes the ops-hub metadata
|
|
64
|
+
publishes the ops-hub metadata — `mesh deploy up` blocks on that Job and fails
|
|
65
|
+
when it fails, so a green deploy means the schema is live. On a cold first
|
|
66
|
+
deploy the Job can lose the race to SpiceDB's own startup and gives up on
|
|
67
|
+
`backoffLimit`, well inside `timeoutMinutes`; `awaitCompletion: false` is the
|
|
68
|
+
lever for that, not a larger `timeoutMinutes`, which does not extend the
|
|
69
|
+
retries. `AppAuthzPointer` tells the Hub where to
|
|
65
70
|
look. People, roles, API keys and sign-in activity are then administered from
|
|
66
71
|
the Hub's **App → Access** tab — never by a runbook step. The contract behind
|
|
67
72
|
that: `@mesh-tech/app-kit#apps` → `references/app-contract.md`; `mesh app
|
|
@@ -72,6 +72,13 @@ const spicedb = new mesh.auth.SpiceDB("spicedb", { env, httpEnabled: true });
|
|
|
72
72
|
// --- 5. Schema — compile, apply, and publish the ops-hub metadata. ---
|
|
73
73
|
// `opsHubMetadataRef` is the SSM path the pointer below hands to the Hub; without
|
|
74
74
|
// it the Hub's create-key and role catalog answer 409 METADATA_UNPUBLISHED.
|
|
75
|
+
// `mesh deploy up` blocks on the schema-write Job and fails when it fails —
|
|
76
|
+
// every permission check this API makes reads what that Job wrote, so a write
|
|
77
|
+
// that never landed is not a deploy that succeeded. On a cold first deploy the
|
|
78
|
+
// Job can lose the race to SpiceDB's own startup: it retries on backoffLimit
|
|
79
|
+
// and gives up well inside timeoutMinutes, never running for the full budget.
|
|
80
|
+
// If that is your estate, set `awaitCompletion: false` here rather than
|
|
81
|
+
// raising `timeoutMinutes`, which does not extend the retries.
|
|
75
82
|
const schema = new mesh.auth.SpiceDBSchema("schema", {
|
|
76
83
|
env,
|
|
77
84
|
spicedb,
|