@continuous-excellence/ze-great-dashboard-aws 0.1.33 → 0.3.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.
@@ -0,0 +1,32 @@
1
+ import type { BootstrapConfig } from './bootstrap.js';
2
+ import { type BootstrapProvider, bootstrapHandoff, type CommandRunner } from './handoff.js';
3
+ export type BootstrapCheckStatus = 'ready' | 'missing' | 'mismatch' | 'unverified';
4
+ export type BootstrapPreflightCheck = {
5
+ name: string;
6
+ status: BootstrapCheckStatus;
7
+ detail: string;
8
+ };
9
+ export type BootstrapPreflight = {
10
+ ready: boolean;
11
+ checks: BootstrapPreflightCheck[];
12
+ };
13
+ export type BootstrapInitInput = {
14
+ slug: string;
15
+ repository: string;
16
+ environment: string;
17
+ providerArn: string;
18
+ region?: string;
19
+ accountId?: string;
20
+ ownerId?: string;
21
+ repositoryId?: string;
22
+ runner?: CommandRunner;
23
+ };
24
+ /** Creates the non-secret manifest data; callers control where (and whether) it is written. */
25
+ export declare function scaffoldBootstrapManifest(input: BootstrapInitInput): Promise<BootstrapConfig>;
26
+ /** Runs only named read-only discovery checks. Network/auth failures remain usable offline. */
27
+ export declare function bootstrapPreflight(input: {
28
+ config: BootstrapConfig;
29
+ runner?: CommandRunner;
30
+ provider?: BootstrapProvider;
31
+ }): Promise<BootstrapPreflight>;
32
+ export declare function bootstrapGuide(input: Parameters<typeof bootstrapHandoff>[0]): Promise<string>;
@@ -0,0 +1,61 @@
1
+ import { type BootstrapConfig } from './bootstrap.js';
2
+ export type BootstrapPhase = 'core' | 'github-oidc' | 'github-environment' | 'application-gateway';
3
+ export type CommandRunner = {
4
+ execute(command: string, args: string[]): Promise<string>;
5
+ };
6
+ export type BootstrapProvider = {
7
+ readonly name: string;
8
+ prerequisite(config: BootstrapConfig, runner?: CommandRunner): Promise<ProviderPrerequisite>;
9
+ };
10
+ export type ProviderPrerequisite = {
11
+ status: 'ready' | 'immutable-subject-required' | 'unverified';
12
+ blocking: boolean;
13
+ detail: string;
14
+ };
15
+ export type HandoffCommand = {
16
+ name: string;
17
+ args: string[];
18
+ captureFile?: string;
19
+ };
20
+ export type BootstrapHandoff = {
21
+ phase: BootstrapPhase;
22
+ expectedContracts: {
23
+ core: string;
24
+ githubOidc: string;
25
+ };
26
+ templatePath?: string;
27
+ parameterPath?: string;
28
+ expectedOutputs: string[];
29
+ requiredCapturedFiles: string[];
30
+ reviewCheckpoints: string[];
31
+ commands: HandoffCommand[];
32
+ prerequisite?: ProviderPrerequisite;
33
+ };
34
+ export type BootstrapVerification = {
35
+ verified: true;
36
+ immutableSubject: string;
37
+ environmentVariables: {
38
+ AWS_DEPLOY_ROLE_ARN: string;
39
+ AWS_CLOUDFORMATION_EXECUTION_ROLE_ARN: string;
40
+ };
41
+ reviewedArns: {
42
+ githubDeployRoleArn: string;
43
+ cloudFormationExecutionRoleArn: string;
44
+ };
45
+ githubEnvironmentInstructions: string[][];
46
+ };
47
+ export declare const githubOidcProvider: BootstrapProvider;
48
+ export declare function bootstrapHandoff(input: {
49
+ config: BootstrapConfig;
50
+ configPath: string;
51
+ coreStack?: unknown;
52
+ coreStackPath?: string;
53
+ githubOidcStack?: unknown;
54
+ provider?: BootstrapProvider;
55
+ runner?: CommandRunner;
56
+ }): Promise<BootstrapHandoff>;
57
+ export declare function verifyBootstrap(input: {
58
+ config: BootstrapConfig;
59
+ coreStack: unknown;
60
+ githubOidcStack: unknown;
61
+ }): Promise<BootstrapVerification>;
package/dist/index.d.ts CHANGED
@@ -1,4 +1,6 @@
1
1
  export { type BootstrapConfig, type BootstrapKind, bootstrapContractVersion, bootstrapTemplate, bootstrapTemplatePath, type CloudFormationParameterValue, coreBootstrapOutputs, type DeployedBootstrapStack, deployedBootstrapStack, mergeBootstrapParameters, requiredBootstrapParameters, } from './bootstrap.js';
2
+ export { type BootstrapCheckStatus, type BootstrapInitInput, type BootstrapPreflight, type BootstrapPreflightCheck, bootstrapGuide, bootstrapPreflight, scaffoldBootstrapManifest, } from './guided.js';
3
+ export { type BootstrapHandoff, type BootstrapPhase, type BootstrapProvider, type BootstrapVerification, bootstrapHandoff, type CommandRunner, githubOidcProvider, verifyBootstrap, } from './handoff.js';
2
4
  export type ReleaseMetadata = {
3
5
  dashboardVersion: string;
4
6
  clientAssetUrl: string;