@clarify-labs/cli 0.11.18 → 0.11.19

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/output/index.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_engine = require("./engine-CNnlt59g.cjs");
2
+ const require_engine = require("./engine-0ROqtF4o.cjs");
3
3
  exports.ClarifyEngine = require_engine.ClarifyEngine;
4
4
  exports.createClarifyEngine = require_engine.createClarifyEngine;
5
5
  exports.createViteAdapter = require_engine.createViteAdapter;
package/output/index.js CHANGED
@@ -1,2 +1,2 @@
1
- import { d as createViteAdapter, f as defineConfig, n as createClarifyEngine, t as ClarifyEngine } from "./engine-DeA6EGHW.js";
1
+ import { d as createViteAdapter, f as defineConfig, n as createClarifyEngine, t as ClarifyEngine } from "./engine-DH8Hi6Fr.js";
2
2
  export { ClarifyEngine, createClarifyEngine, createViteAdapter, defineConfig };
@@ -12,5 +12,5 @@ export declare function normalizeOpenAPISpecSectionIds(spec: OpenAPISpec): OpenA
12
12
  /** Filter an OpenAPI spec to only include paths that have at least one operation matching the given tags. */
13
13
  export declare function filterSpecByTags(spec: OpenAPISpec, tags: string[]): OpenAPISpec;
14
14
  /** Extract endpoint operations from an OpenAPI spec as page sections. */
15
- export declare function extractOpenAPISections(spec: OpenAPISpec, filterTags?: string[]): ContentSection[];
15
+ export declare function extractOpenAPISections(spec: OpenAPISpec, filterTags?: string[], operationOrder?: string[]): ContentSection[];
16
16
  export declare function readOpenAPISpec(filePath: string, contentProcessor?: ContentProcessor, projectRoot?: string): Promise<OpenAPIParseResult>;
@@ -8,6 +8,7 @@ export declare function generateOpenAPIServerRegistryModule(openApiSpecs: Record
8
8
  export declare function generateOpenAPISpecModule(spec: OpenAPISpec): string;
9
9
  type OpenAPIPageModuleOptions = {
10
10
  specModuleId: string;
11
+ operationOrder?: string[];
11
12
  };
12
13
  export declare function generateOpenAPIPageModule(opts: OpenAPIPageModuleOptions): string;
13
14
  export {};
package/output/types.d.ts CHANGED
@@ -146,6 +146,8 @@ export type ClarifyPagesItem = string | ClarifyPagesGroup | {
146
146
  openapi: string;
147
147
  /** Explicit route path. Defaults to the path generated from openapi and filter. */
148
148
  path?: string;
149
+ /** Operation IDs to render first, in the configured order. Unlisted operations keep their stable order after these. */
150
+ operationOrder?: string[];
149
151
  /** Icon name from lucide-react, e.g. "Webhook". */
150
152
  icon?: string;
151
153
  /** Override the page title. Defaults to spec.info.title. */
@@ -183,6 +185,7 @@ export type ClarifyOpenAPIRouteIntent = {
183
185
  kind: 'openapi';
184
186
  ref: string;
185
187
  path?: string;
188
+ operationOrder?: string[];
186
189
  tagFilter?: string[];
187
190
  title?: ClarifyLocalizedText;
188
191
  icon?: string;
@@ -319,6 +322,8 @@ export type ContentRouteModule = MarkdownRouteModule | OpenAPIRouteModule;
319
322
  export type OpenAPIContentRouteState = {
320
323
  /** Operation tag filter applied to this route. Undefined means all operations. */
321
324
  tagFilter?: string[];
325
+ /** Operation IDs to render first, in the configured order. */
326
+ operationOrder?: string[];
322
327
  /** Deduplicated id derived from the source OpenAPI spec file path. */
323
328
  sourceSpecId?: string;
324
329
  /** Spec virtual module id fragment used by this route after route-level filtering. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clarify-labs/cli",
3
- "version": "0.11.18",
3
+ "version": "0.11.19",
4
4
  "license": "AGPL-3.0-only",
5
5
  "type": "module",
6
6
  "repository": {
@@ -39,8 +39,8 @@
39
39
  },
40
40
  "dependencies": {
41
41
  "@apidevtools/swagger-parser": "^12.1.0",
42
- "@clarify-labs/renderer": "0.11.18",
43
- "@clarify-labs/templates": "0.11.18",
42
+ "@clarify-labs/renderer": "0.11.19",
43
+ "@clarify-labs/templates": "0.11.19",
44
44
  "@mdx-js/mdx": "^3.1.1",
45
45
  "@mdx-js/rollup": "^3.1.1",
46
46
  "@modelcontextprotocol/sdk": "^1.29.0",