@supacloud/compiler 0.27.4 → 0.28.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/application-development.d.ts +124 -0
- package/dist/cli.js +18345 -18993
- package/dist/delivery-bundle-worker.js +4938 -6868
- package/dist/delivery-context.d.ts +16 -0
- package/dist/delivery-render.d.ts +1 -0
- package/dist/environment-bindings-file.d.ts +3 -0
- package/dist/environment-bindings.d.ts +78 -0
- package/dist/execution-context.d.ts +39 -0
- package/dist/fixtures/runtime-source.d.ts +1 -1
- package/dist/index.d.ts +9 -1
- package/dist/index.js +18552 -19271
- package/dist/release-evidence-cli.d.ts +2 -0
- package/dist/release-evidence.d.ts +54 -0
- package/dist/types.d.ts +41 -0
- package/package.json +2 -2
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import type { ApplicationGraph } from "./types";
|
|
2
|
+
import { type ExecutionPlan } from "./inspect";
|
|
3
|
+
/**
|
|
4
|
+
* A stable, read-only projection of the current application graph for developer
|
|
5
|
+
* tooling. Never exports expressions, diagnostic messages, repair replacement
|
|
6
|
+
* values, credentials or business payloads. Readers share the delivery contract.
|
|
7
|
+
*/
|
|
8
|
+
export declare const APPLICATION_DEVELOPMENT_LIMITS: {
|
|
9
|
+
readonly outputBytes: number;
|
|
10
|
+
readonly modules: number;
|
|
11
|
+
readonly providers: number;
|
|
12
|
+
readonly routes: number;
|
|
13
|
+
readonly commands: number;
|
|
14
|
+
readonly jobs: number;
|
|
15
|
+
readonly resources: number;
|
|
16
|
+
readonly resourceUses: number;
|
|
17
|
+
readonly plans: number;
|
|
18
|
+
readonly diagnostics: number;
|
|
19
|
+
};
|
|
20
|
+
/** Shared formatted UTF-8 byte budget for archive writers and readers (including the final newline). */
|
|
21
|
+
export declare const APPLICATION_DEVELOPMENT_ARCHIVE_MAX_BYTES = 524288;
|
|
22
|
+
export declare const APPLICATION_DEVELOPMENT_SCHEMA = "supacloud.application-development.v1";
|
|
23
|
+
export type DevelopmentSchemaKind = "opaque" | "declared";
|
|
24
|
+
export interface ApplicationDevelopmentModule {
|
|
25
|
+
name: string;
|
|
26
|
+
className: string;
|
|
27
|
+
file?: string;
|
|
28
|
+
tags?: string[];
|
|
29
|
+
providers: string[];
|
|
30
|
+
controllers: string[];
|
|
31
|
+
commands: string[];
|
|
32
|
+
jobs: string[];
|
|
33
|
+
queries: string[];
|
|
34
|
+
resources: string[];
|
|
35
|
+
}
|
|
36
|
+
export interface ApplicationDevelopmentRoute {
|
|
37
|
+
module: string;
|
|
38
|
+
method: string;
|
|
39
|
+
path: string;
|
|
40
|
+
controller: string;
|
|
41
|
+
handler: string;
|
|
42
|
+
command?: string;
|
|
43
|
+
aspects: string[];
|
|
44
|
+
schemaKinds?: Record<string, DevelopmentSchemaKind>;
|
|
45
|
+
}
|
|
46
|
+
export interface ApplicationDevelopmentResourceUse {
|
|
47
|
+
resource: string;
|
|
48
|
+
operations: string[];
|
|
49
|
+
}
|
|
50
|
+
export interface ApplicationDevelopmentCommand {
|
|
51
|
+
module: string;
|
|
52
|
+
name: string;
|
|
53
|
+
permission?: string;
|
|
54
|
+
transaction: "required" | "none";
|
|
55
|
+
idempotency: "required" | "none";
|
|
56
|
+
audit?: string;
|
|
57
|
+
resources: ApplicationDevelopmentResourceUse[];
|
|
58
|
+
}
|
|
59
|
+
export interface ApplicationDevelopmentJob {
|
|
60
|
+
module: string;
|
|
61
|
+
name: string;
|
|
62
|
+
mode?: string;
|
|
63
|
+
resources: ApplicationDevelopmentResourceUse[];
|
|
64
|
+
}
|
|
65
|
+
export interface ApplicationDevelopmentResource {
|
|
66
|
+
name: string;
|
|
67
|
+
kind: string;
|
|
68
|
+
}
|
|
69
|
+
export interface ApplicationDevelopmentResourceUseEntry {
|
|
70
|
+
module: string;
|
|
71
|
+
owner: string;
|
|
72
|
+
ownerKind: "command" | "job";
|
|
73
|
+
resource: string;
|
|
74
|
+
operations: string[];
|
|
75
|
+
}
|
|
76
|
+
export interface ApplicationDevelopmentDiagnostic {
|
|
77
|
+
code: string;
|
|
78
|
+
severity: "error" | "warn";
|
|
79
|
+
file?: string;
|
|
80
|
+
line?: number;
|
|
81
|
+
repair?: {
|
|
82
|
+
type: string;
|
|
83
|
+
readiness: "preview" | "input-required" | "manual";
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
export interface ApplicationDevelopmentContext {
|
|
87
|
+
schema: typeof APPLICATION_DEVELOPMENT_SCHEMA;
|
|
88
|
+
source: "current-graph";
|
|
89
|
+
deploymentVerified: false;
|
|
90
|
+
modules: ApplicationDevelopmentModule[];
|
|
91
|
+
routes: ApplicationDevelopmentRoute[];
|
|
92
|
+
commands: ApplicationDevelopmentCommand[];
|
|
93
|
+
jobs: ApplicationDevelopmentJob[];
|
|
94
|
+
resources: ApplicationDevelopmentResource[];
|
|
95
|
+
resourceUses: ApplicationDevelopmentResourceUseEntry[];
|
|
96
|
+
executionPlans: ExecutionPlan[];
|
|
97
|
+
diagnostics: ApplicationDevelopmentDiagnostic[];
|
|
98
|
+
omitted: {
|
|
99
|
+
modules: number;
|
|
100
|
+
providers: number;
|
|
101
|
+
routes: number;
|
|
102
|
+
commands: number;
|
|
103
|
+
jobs: number;
|
|
104
|
+
resources: number;
|
|
105
|
+
resourceUses: number;
|
|
106
|
+
plans: number;
|
|
107
|
+
diagnostics: number;
|
|
108
|
+
};
|
|
109
|
+
limits: typeof APPLICATION_DEVELOPMENT_LIMITS;
|
|
110
|
+
}
|
|
111
|
+
export declare class ApplicationDevelopmentError extends Error {
|
|
112
|
+
readonly code: "APPLICATION_DEVELOPMENT_TOO_LARGE" | "APPLICATION_DEVELOPMENT_INVALID";
|
|
113
|
+
constructor(code: "APPLICATION_DEVELOPMENT_TOO_LARGE" | "APPLICATION_DEVELOPMENT_INVALID");
|
|
114
|
+
}
|
|
115
|
+
/** Keep the compiler API and error identity stable while sharing the wire parser. */
|
|
116
|
+
export declare function parseApplicationDevelopmentContext(input: unknown): ApplicationDevelopmentContext;
|
|
117
|
+
/** Deterministic projection of the current graph into the versioned contract. */
|
|
118
|
+
export interface ApplicationDevelopmentOptions {
|
|
119
|
+
/** Interactive output defaults to 64 KiB; delivery archives allow 512 KiB. Neither mode is unbounded. */
|
|
120
|
+
byteBudget?: "interactive" | "archive";
|
|
121
|
+
}
|
|
122
|
+
export declare function createApplicationDevelopmentContext(graph: ApplicationGraph, options?: ApplicationDevelopmentOptions): ApplicationDevelopmentContext;
|
|
123
|
+
/** Compact human-readable rendering, used by the `dev-context` CLI command. */
|
|
124
|
+
export declare function formatApplicationDevelopmentContext(context: ApplicationDevelopmentContext): string;
|