@supacloud/compiler 0.24.0 → 0.26.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/README.md +84 -4
- package/dist/benchmark.d.ts +6 -0
- package/dist/cli.js +522 -85
- package/dist/contract-manifest.d.ts +4 -0
- package/dist/generate.d.ts +2 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +1213 -771
- package/dist/migration-assess.d.ts +62 -0
- package/dist/repair-plan.d.ts +17 -0
- package/dist/types.d.ts +8 -0
- package/package.json +1 -1
|
@@ -26,7 +26,11 @@ export interface ContractManifest {
|
|
|
26
26
|
permission?: string;
|
|
27
27
|
requestSchemas: Partial<Record<"body" | "params" | "query" | "headers" | "cookie", string>>;
|
|
28
28
|
responseSchema?: string;
|
|
29
|
+
/** Status-aware response schemas; legacy responseSchema remains for compatibility. */
|
|
30
|
+
responseSchemas?: Record<string, string>;
|
|
29
31
|
evidence?: string;
|
|
32
|
+
parse?: "none";
|
|
33
|
+
allowDeleteBody?: true;
|
|
30
34
|
}>;
|
|
31
35
|
permissions: string[];
|
|
32
36
|
rpc: Array<{
|
package/dist/generate.d.ts
CHANGED
|
@@ -26,6 +26,8 @@ export declare function renderApplication(graph: ApplicationGraph, options: Gene
|
|
|
26
26
|
* Generated code imports only application classes and schemas, with no runtime reflection or container lookup.
|
|
27
27
|
*/
|
|
28
28
|
export declare function generateApplication(graph: ApplicationGraph, options: GenerateOptions): Promise<string[]>;
|
|
29
|
+
/** Shares the exact validated render with the emitter without regenerating artifacts. */
|
|
30
|
+
export declare function writeRenderedApplication(rendered: RenderedArtifacts, options: GenerateOptions): Promise<string[]>;
|
|
29
31
|
export declare function writeFileIfChanged(path: string, content: string, hashes?: Map<string, string>): Promise<boolean>;
|
|
30
32
|
/**
|
|
31
33
|
* Generates typed API client in client.ts from discovered Controllers and Routes.
|
package/dist/index.d.ts
CHANGED
|
@@ -8,9 +8,13 @@ export type { DeliveryOptions, DeliveryPlan, DeliveryPlanResult, DeliveryTarget,
|
|
|
8
8
|
export { generateFeatureSource, validateFeatureSpec } from "./feature";
|
|
9
9
|
export { applyDiagnosticFix } from "./fixes";
|
|
10
10
|
export type { AppliedDiagnosticFix, ApplyDiagnosticFixOptions } from "./fixes";
|
|
11
|
+
export { createDiagnosticRepairPlan } from "./repair-plan";
|
|
12
|
+
export type { DiagnosticRepair } from "./repair-plan";
|
|
11
13
|
export { checkProject, compileProject } from "./compile";
|
|
12
14
|
export { watchProject } from "./watch";
|
|
13
15
|
export { migrateProject, SUPACLOUD_MIGRATIONS, migrateRouteResponse } from "./migrations";
|
|
16
|
+
export { assessMigration, formatMigrationAssessment } from "./migration-assess";
|
|
17
|
+
export type { MigrationAssessmentFinding, MigrationAssessmentOptions, MigrationAssessmentResult, MigrationAssessmentStatus, MigrationRenderMode, } from "./migration-assess";
|
|
14
18
|
export { createContextPack, createExecutionPlans, doctorProject, explainGraph, formatGraph, exportGraphDot, exportGraphMermaid, } from "./inspect";
|
|
15
19
|
export { createIncrementalCompiler } from "./incremental";
|
|
16
20
|
export { createDependencyGraphCache } from "./incremental";
|