kalup 0.1.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/LICENSE +202 -0
- package/NOTICE +4 -0
- package/README.md +68 -0
- package/bin/kalup.mjs +13 -0
- package/dist/commands-C--Xsk1p.mjs +16145 -0
- package/dist/commands.d.mts +191 -0
- package/dist/commands.mjs +2 -0
- package/dist/context-D10Syqfd.d.mts +1265 -0
- package/dist/host-BJWvo3sX.mjs +390 -0
- package/dist/host.d.mts +44 -0
- package/dist/host.mjs +2 -0
- package/dist/index.d.mts +1 -0
- package/dist/index.mjs +14 -0
- package/dist/schemas/blueprint-1.schema.json +151 -0
- package/dist/schemas/blueprints-lock-1.schema.json +76 -0
- package/dist/schemas/ir-1.schema.json +379 -0
- package/dist/schemas/plan-1.schema.json +868 -0
- package/dist/schemas/state-1.schema.json +98 -0
- package/docs/apply.md +64 -0
- package/docs/blueprints.md +86 -0
- package/docs/compare.md +73 -0
- package/docs/config.md +88 -0
- package/docs/dictionary.md +43 -0
- package/docs/errors/E_ACCEPT_UNMATCHED.md +17 -0
- package/docs/errors/E_APPROVAL_REQUIRED.md +17 -0
- package/docs/errors/E_APPROVE_CREDENTIAL.md +17 -0
- package/docs/errors/E_APPROVE_MISMATCH.md +17 -0
- package/docs/errors/E_AUTH.md +17 -0
- package/docs/errors/E_BAD_CHAIN.md +21 -0
- package/docs/errors/E_BINDING_CHANGED.md +17 -0
- package/docs/errors/E_BIOME_CONFIG.md +17 -0
- package/docs/errors/E_BLUEPRINT_ADDED.md +17 -0
- package/docs/errors/E_BLUEPRINT_COLLISION.md +17 -0
- package/docs/errors/E_BLUEPRINT_INTEGRITY.md +17 -0
- package/docs/errors/E_BLUEPRINT_LOCK.md +17 -0
- package/docs/errors/E_BLUEPRINT_ORIGINAL.md +17 -0
- package/docs/errors/E_BLUEPRINT_REF.md +17 -0
- package/docs/errors/E_BLUEPRINT_REQUIRES.md +17 -0
- package/docs/errors/E_BLUEPRINT_SCHEMA.md +17 -0
- package/docs/errors/E_BLUEPRINT_SOURCE.md +17 -0
- package/docs/errors/E_BLUEPRINT_UNKNOWN.md +17 -0
- package/docs/errors/E_BUDGET.md +17 -0
- package/docs/errors/E_CANCELLED.md +21 -0
- package/docs/errors/E_CONFIG_EXISTS.md +17 -0
- package/docs/errors/E_DAILY_LIMIT.md +17 -0
- package/docs/errors/E_DEFAULT_TARGET.md +17 -0
- package/docs/errors/E_DUPLICATE_ADDRESS.md +17 -0
- package/docs/errors/E_DUPLICATE_ALIAS.md +24 -0
- package/docs/errors/E_DUPLICATE_KEY.md +24 -0
- package/docs/errors/E_DUPLICATE_OPTION.md +25 -0
- package/docs/errors/E_DUPLICATE_PORTAL.md +24 -0
- package/docs/errors/E_FIRST_PULL.md +18 -0
- package/docs/errors/E_HS_PREFIX.md +21 -0
- package/docs/errors/E_HTTP.md +17 -0
- package/docs/errors/E_INCOMPLETE.md +23 -0
- package/docs/errors/E_IR_SCHEMA.md +18 -0
- package/docs/errors/E_JOURNAL_WRITE.md +17 -0
- package/docs/errors/E_KEY_COLLISION.md +22 -0
- package/docs/errors/E_KEY_INVALID.md +19 -0
- package/docs/errors/E_LIFECYCLE.md +23 -0
- package/docs/errors/E_LOCKED.md +17 -0
- package/docs/errors/E_LOCK_DIR.md +17 -0
- package/docs/errors/E_MISSING_EXPORT.md +17 -0
- package/docs/errors/E_MISSING_KEY.md +17 -0
- package/docs/errors/E_NOT_DATA.md +21 -0
- package/docs/errors/E_NO_CONFIG.md +17 -0
- package/docs/errors/E_NO_TARGETS.md +17 -0
- package/docs/errors/E_OVERRIDE_AMBIGUOUS.md +21 -0
- package/docs/errors/E_OVERRIDE_DEFINITION.md +26 -0
- package/docs/errors/E_OVERRIDE_NAME.md +23 -0
- package/docs/errors/E_PLAN_DELETE.md +17 -0
- package/docs/errors/E_PLAN_DESTINATION.md +17 -0
- package/docs/errors/E_PLAN_DIGEST.md +17 -0
- package/docs/errors/E_PLAN_INVALID.md +17 -0
- package/docs/errors/E_PLAN_RISK.md +17 -0
- package/docs/errors/E_PLAN_SCHEMA.md +17 -0
- package/docs/errors/E_PLAN_STALE.md +17 -0
- package/docs/errors/E_PLAN_VERSION.md +18 -0
- package/docs/errors/E_POLICY_CHANGED.md +17 -0
- package/docs/errors/E_PORTAL_ID.md +17 -0
- package/docs/errors/E_PREVENT_DESTROY.md +17 -0
- package/docs/errors/E_PROJECT_WRITE.md +17 -0
- package/docs/errors/E_PROTECTED_SAVED_PLAN.md +17 -0
- package/docs/errors/E_PULL_INVALID.md +20 -0
- package/docs/errors/E_RATE_LIMIT.md +17 -0
- package/docs/errors/E_REBIND_STANDARD.md +17 -0
- package/docs/errors/E_REFERENCE_DEFINITION.md +21 -0
- package/docs/errors/E_RM_DEPENDENTS.md +17 -0
- package/docs/errors/E_SCOPE.md +17 -0
- package/docs/errors/E_SETTING_LEVEL.md +21 -0
- package/docs/errors/E_SETTING_VALUE.md +23 -0
- package/docs/errors/E_SNAPSHOT.md +17 -0
- package/docs/errors/E_STANDARD_OBJECT.md +21 -0
- package/docs/errors/E_STATE_CHANGED.md +19 -0
- package/docs/errors/E_STATE_CONFLICT.md +17 -0
- package/docs/errors/E_STATE_INVALID.md +17 -0
- package/docs/errors/E_STATE_SCHEMA.md +17 -0
- package/docs/errors/E_STATE_WRITE.md +19 -0
- package/docs/errors/E_STRICT_WITHOUT_OPTIONS.md +21 -0
- package/docs/errors/E_TAKE_UNMATCHED.md +19 -0
- package/docs/errors/E_TARGET_NAME.md +17 -0
- package/docs/errors/E_TARGET_PORTAL_MISMATCH.md +19 -0
- package/docs/errors/E_TARGET_REQUIRED.md +17 -0
- package/docs/errors/E_TOMBSTONE_ADDRESS.md +23 -0
- package/docs/errors/E_TOMBSTONE_CONFLICT.md +17 -0
- package/docs/errors/E_TYPE_FIELDTYPE.md +21 -0
- package/docs/errors/E_UNCERTAIN_WRITE.md +17 -0
- package/docs/errors/E_UNEXPECTED.md +17 -0
- package/docs/errors/E_UNKNOWN_BUILDER.md +21 -0
- package/docs/errors/E_UNKNOWN_GROUP.md +21 -0
- package/docs/errors/E_UNKNOWN_INCLUDE.md +17 -0
- package/docs/errors/E_UNKNOWN_OBJECT.md +17 -0
- package/docs/errors/E_UNKNOWN_OVERRIDE.md +17 -0
- package/docs/errors/E_UNKNOWN_TARGET.md +17 -0
- package/docs/errors/E_UNREACHABLE.md +17 -0
- package/docs/errors/E_UNSUPPORTED_FILE.md +17 -0
- package/docs/errors/E_USAGE.md +17 -0
- package/docs/errors/E_WRITE_IN_READ_MODE.md +17 -0
- package/docs/errors/E_WRITE_NOT_ALLOWED.md +17 -0
- package/docs/errors/W_BLUEPRINT_DOWNGRADE.md +17 -0
- package/docs/errors/W_CODEC_MISMATCH.md +18 -0
- package/docs/errors/W_INCOMPLETE.md +19 -0
- package/docs/errors/W_JSON_FIELDTYPE.md +17 -0
- package/docs/errors/W_KEY_COLLISION.md +17 -0
- package/docs/errors/W_LARGE_SCOPE.md +23 -0
- package/docs/errors/W_LIMIT_HEADROOM.md +19 -0
- package/docs/errors/W_LIMIT_UNREADABLE.md +17 -0
- package/docs/errors/W_MODE_SHADOWED.md +17 -0
- package/docs/errors/W_OVERRIDE_OPTION.md +17 -0
- package/docs/errors/W_PIN_EXPIRES.md +17 -0
- package/docs/errors/W_PREFIX.md +17 -0
- package/docs/errors/W_RATE_HEADERS.md +21 -0
- package/docs/errors/W_RATE_LIMIT.md +17 -0
- package/docs/errors/W_UNADDRESSABLE_NAME.md +21 -0
- package/docs/errors/W_UNFINISHED_APPLY.md +19 -0
- package/docs/errors/W_UNRESOLVED.md +17 -0
- package/docs/errors/W_UNSUPPORTED_TYPE.md +19 -0
- package/docs/errors/W_UNVERIFIED.md +17 -0
- package/docs/plan.md +85 -0
- package/docs/pull.md +83 -0
- package/docs/rm.md +44 -0
- package/docs/snapshot.md +52 -0
- package/docs/state.md +37 -0
- package/docs/targets.md +58 -0
- package/package.json +86 -0
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
import { n as Prompter, r as Result, t as Handler } from "./context-D10Syqfd.mjs";
|
|
2
|
+
import { Command } from "@oclif/core";
|
|
3
|
+
//#region src/host/commands.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* The base of every Kalup command. The host sets `cwd`, `prompt` when a person is at a terminal, `progress` without
|
|
6
|
+
* --json, and `signal` for an interruptible command, before it calls `run`; nothing reads process.cwd(), stdin or the
|
|
7
|
+
* process's signals.
|
|
8
|
+
*/
|
|
9
|
+
export declare abstract class KalupCommand extends Command {
|
|
10
|
+
static baseFlags: {
|
|
11
|
+
json: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
12
|
+
};
|
|
13
|
+
/** Stops cleanly on SIGINT or SIGTERM through `signal`. Any other command keeps the default: the signal ends it. */
|
|
14
|
+
static interruptible: boolean;
|
|
15
|
+
cwd: string;
|
|
16
|
+
progress: ((line: string) => void) | undefined;
|
|
17
|
+
prompt: Prompter | undefined;
|
|
18
|
+
signal: AbortSignal | undefined;
|
|
19
|
+
abstract run(): Promise<Result>;
|
|
20
|
+
/** Parses this command's argv with oclif and runs the handler with plain arguments and flags. */
|
|
21
|
+
protected handle(handler: Handler): Promise<Result>;
|
|
22
|
+
}
|
|
23
|
+
export declare class InitCommand extends KalupCommand {
|
|
24
|
+
static summary: string;
|
|
25
|
+
static flags: {
|
|
26
|
+
portal: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
27
|
+
objects: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
28
|
+
target: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
29
|
+
};
|
|
30
|
+
static examples: string[];
|
|
31
|
+
run(): Promise<Result>;
|
|
32
|
+
}
|
|
33
|
+
export declare class PullCommand extends KalupCommand {
|
|
34
|
+
static summary: string;
|
|
35
|
+
static flags: {
|
|
36
|
+
target: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
37
|
+
only: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
38
|
+
discover: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
39
|
+
accept: import("@oclif/core/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
40
|
+
check: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
41
|
+
'exit-code': import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
42
|
+
};
|
|
43
|
+
static examples: string[];
|
|
44
|
+
run(): Promise<Result>;
|
|
45
|
+
}
|
|
46
|
+
export declare class ValidateCommand extends KalupCommand {
|
|
47
|
+
static summary: string;
|
|
48
|
+
static flags: {
|
|
49
|
+
target: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
50
|
+
};
|
|
51
|
+
run(): Promise<Result>;
|
|
52
|
+
}
|
|
53
|
+
export declare class IrCommand extends KalupCommand {
|
|
54
|
+
static summary: string;
|
|
55
|
+
static flags: {
|
|
56
|
+
check: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
57
|
+
};
|
|
58
|
+
run(): Promise<Result>;
|
|
59
|
+
}
|
|
60
|
+
export declare class FmtCommand extends KalupCommand {
|
|
61
|
+
static summary: string;
|
|
62
|
+
static flags: {
|
|
63
|
+
check: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
64
|
+
'exit-code': import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
65
|
+
};
|
|
66
|
+
run(): Promise<Result>;
|
|
67
|
+
}
|
|
68
|
+
export declare class StatusCommand extends KalupCommand {
|
|
69
|
+
static summary: string;
|
|
70
|
+
static flags: {
|
|
71
|
+
target: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
72
|
+
};
|
|
73
|
+
run(): Promise<Result>;
|
|
74
|
+
}
|
|
75
|
+
export declare class CompareCommand extends KalupCommand {
|
|
76
|
+
static summary: string;
|
|
77
|
+
static args: {
|
|
78
|
+
a: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
|
|
79
|
+
b: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
|
|
80
|
+
};
|
|
81
|
+
static flags: {
|
|
82
|
+
'exit-code': import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
83
|
+
};
|
|
84
|
+
static examples: string[];
|
|
85
|
+
run(): Promise<Result>;
|
|
86
|
+
}
|
|
87
|
+
export declare class PlanCommand extends KalupCommand {
|
|
88
|
+
static summary: string;
|
|
89
|
+
static flags: {
|
|
90
|
+
target: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
91
|
+
out: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
92
|
+
take: import("@oclif/core/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
93
|
+
'exit-code': import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
94
|
+
};
|
|
95
|
+
static examples: string[];
|
|
96
|
+
run(): Promise<Result>;
|
|
97
|
+
}
|
|
98
|
+
export declare class SnapshotCommand extends KalupCommand {
|
|
99
|
+
static summary: string;
|
|
100
|
+
static flags: {
|
|
101
|
+
target: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
102
|
+
out: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
103
|
+
};
|
|
104
|
+
static examples: string[];
|
|
105
|
+
run(): Promise<Result>;
|
|
106
|
+
}
|
|
107
|
+
export declare class DocsCommand extends KalupCommand {
|
|
108
|
+
static summary: string;
|
|
109
|
+
static args: {
|
|
110
|
+
source: import("@oclif/core/interfaces").Arg<string | undefined, Record<string, unknown>>;
|
|
111
|
+
};
|
|
112
|
+
static flags: {
|
|
113
|
+
out: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
114
|
+
};
|
|
115
|
+
static examples: string[];
|
|
116
|
+
run(): Promise<Result>;
|
|
117
|
+
}
|
|
118
|
+
export declare class ApplyCommand extends KalupCommand {
|
|
119
|
+
static summary: string;
|
|
120
|
+
static args: {
|
|
121
|
+
plan: import("@oclif/core/interfaces").Arg<string | undefined, Record<string, unknown>>;
|
|
122
|
+
};
|
|
123
|
+
static flags: {
|
|
124
|
+
target: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
125
|
+
take: import("@oclif/core/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
126
|
+
yes: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
127
|
+
approve: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
128
|
+
};
|
|
129
|
+
static examples: string[];
|
|
130
|
+
static interruptible: boolean;
|
|
131
|
+
run(): Promise<Result>;
|
|
132
|
+
}
|
|
133
|
+
export declare class RmCommand extends KalupCommand {
|
|
134
|
+
static summary: string;
|
|
135
|
+
static args: {
|
|
136
|
+
address: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
|
|
137
|
+
};
|
|
138
|
+
static flags: {
|
|
139
|
+
release: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
140
|
+
};
|
|
141
|
+
static examples: string[];
|
|
142
|
+
run(): Promise<Result>;
|
|
143
|
+
}
|
|
144
|
+
export declare class StateRebuildCommand extends KalupCommand {
|
|
145
|
+
static summary: string;
|
|
146
|
+
static flags: {
|
|
147
|
+
target: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
148
|
+
write: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
149
|
+
};
|
|
150
|
+
static examples: string[];
|
|
151
|
+
run(): Promise<Result>;
|
|
152
|
+
}
|
|
153
|
+
export declare class TargetRebindCommand extends KalupCommand {
|
|
154
|
+
static summary: string;
|
|
155
|
+
static args: {
|
|
156
|
+
target: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
|
|
157
|
+
};
|
|
158
|
+
static flags: {
|
|
159
|
+
portal: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
160
|
+
};
|
|
161
|
+
static examples: string[];
|
|
162
|
+
run(): Promise<Result>;
|
|
163
|
+
}
|
|
164
|
+
export declare class AddCommand extends KalupCommand {
|
|
165
|
+
static summary: string;
|
|
166
|
+
static args: {
|
|
167
|
+
source: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
|
|
168
|
+
};
|
|
169
|
+
static flags: {
|
|
170
|
+
prefix: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
171
|
+
'dry-run': import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
172
|
+
};
|
|
173
|
+
static examples: string[];
|
|
174
|
+
run(): Promise<Result>;
|
|
175
|
+
}
|
|
176
|
+
export declare class BlueprintUpgradeCommand extends KalupCommand {
|
|
177
|
+
static summary: string;
|
|
178
|
+
static args: {
|
|
179
|
+
name: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
|
|
180
|
+
source: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
|
|
181
|
+
};
|
|
182
|
+
static flags: {
|
|
183
|
+
take: import("@oclif/core/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
184
|
+
'dry-run': import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
185
|
+
'exit-code': import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
186
|
+
};
|
|
187
|
+
static examples: string[];
|
|
188
|
+
run(): Promise<Result>;
|
|
189
|
+
}
|
|
190
|
+
export declare const COMMANDS: Record<string, typeof KalupCommand>;
|
|
191
|
+
//#endregion
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { _ as TargetRebindCommand, a as CompareCommand, c as InitCommand, d as PlanCommand, f as PullCommand, g as StatusCommand, h as StateRebuildCommand, i as COMMANDS, l as IrCommand, m as SnapshotCommand, n as ApplyCommand, o as DocsCommand, p as RmCommand, r as BlueprintUpgradeCommand, s as FmtCommand, t as AddCommand, u as KalupCommand, v as ValidateCommand } from "./commands-C--Xsk1p.mjs";
|
|
2
|
+
export { AddCommand, ApplyCommand, BlueprintUpgradeCommand, COMMANDS, CompareCommand, DocsCommand, FmtCommand, InitCommand, IrCommand, KalupCommand, PlanCommand, PullCommand, RmCommand, SnapshotCommand, StateRebuildCommand, StatusCommand, TargetRebindCommand, ValidateCommand };
|