@tatara/cli 0.9.1 → 0.9.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.
Files changed (2) hide show
  1. package/dist/bin.mjs +9 -3
  2. package/package.json +1 -1
package/dist/bin.mjs CHANGED
@@ -3156,11 +3156,16 @@ for (const [name, spec] of ${JSON.stringify(apps)}) {
3156
3156
 
3157
3157
  for (const [path, item] of Object.entries(doc.paths ?? {})) {
3158
3158
  for (const [method, op] of Object.entries(item)) {
3159
+ const tags = op.tags ?? [];
3159
3160
  const security = op.security ?? [];
3160
3161
 
3161
- // Parse access label based on security schemes
3162
+ // Parse access label based on security schemes and tags
3162
3163
  let access = "public";
3163
- if (security.length > 0) {
3164
+
3165
+ // Routes tagged "Auth" are from better-auth's merged document
3166
+ if (tags.includes("Auth")) {
3167
+ access = "better-auth";
3168
+ } else if (security.length > 0) {
3164
3169
  const labels = [];
3165
3170
  for (const requirement of security) {
3166
3171
  const schemes = Object.keys(requirement);
@@ -3185,7 +3190,8 @@ for (const [name, spec] of ${JSON.stringify(apps)}) {
3185
3190
  access = labels.length > 1 ? labels.join(" OR ") : (labels[0] ?? "authenticated");
3186
3191
  }
3187
3192
 
3188
- out.push({ app: name, method: method.toUpperCase(), path, summary: op.summary ?? "", access });
3193
+ const summary = op.summary || op.description || "";
3194
+ out.push({ app: name, method: method.toUpperCase(), path, summary, access });
3189
3195
  }
3190
3196
  }
3191
3197
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tatara/cli",
3
- "version": "0.9.1",
3
+ "version": "0.9.2",
4
4
  "description": "Create and grow opinionated Hono backends",
5
5
  "type": "module",
6
6
  "license": "MIT",