@rizom/ops 0.2.0-alpha.139 → 0.2.0-alpha.140
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/brains-ops.js +71 -157
- package/dist/index.js +71 -157
- package/dist/push-secrets.d.ts +2 -9
- package/dist/push-target.d.ts +1 -2
- package/dist/run-subprocess.d.ts +1 -6
- package/dist/schema.d.ts +1 -1
- package/dist/secrets-encrypt.d.ts +1 -1
- package/dist/ssh-key-bootstrap.d.ts +1 -26
- package/package.json +3 -3
package/dist/push-secrets.d.ts
CHANGED
|
@@ -1,9 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export type SecretPair = readonly [name: string, value: string];
|
|
4
|
-
export interface PushSecretsOptions {
|
|
5
|
-
runCommand?: RunCommand | undefined;
|
|
6
|
-
logger?: ((message: string) => void) | undefined;
|
|
7
|
-
}
|
|
8
|
-
export declare function pushSecretsToBackend(_target: PushTarget, secrets: readonly SecretPair[], options?: PushSecretsOptions): Promise<void>;
|
|
9
|
-
export { normalizePushTarget };
|
|
1
|
+
export { pushSecretsToBackend, type PushSecretsOptions, type SecretPair, } from "@brains/deploy-support/push-secrets";
|
|
2
|
+
export { normalizePushTarget } from "@brains/deploy-support/push-target";
|
package/dist/push-target.d.ts
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export type PushTarget
|
|
2
|
-
export declare function normalizePushTarget(value?: string): PushTarget | undefined;
|
|
1
|
+
export { normalizePushTarget, type PushTarget, } from "@brains/deploy-support/push-target";
|
package/dist/run-subprocess.d.ts
CHANGED
|
@@ -1,6 +1 @@
|
|
|
1
|
-
export type RunCommand
|
|
2
|
-
stdin?: string;
|
|
3
|
-
env?: NodeJS.ProcessEnv;
|
|
4
|
-
cwd?: string;
|
|
5
|
-
}) => Promise<void>;
|
|
6
|
-
export declare const runSubprocess: RunCommand;
|
|
1
|
+
export { runSubprocess, type RunCommand, } from "@brains/deploy-support/run-subprocess";
|
package/dist/schema.d.ts
CHANGED
|
@@ -1,26 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { type RunCommand } from "./run-subprocess";
|
|
3
|
-
export interface SshKeyBootstrapOptions {
|
|
4
|
-
env?: NodeJS.ProcessEnv | undefined;
|
|
5
|
-
fetchImpl?: FetchLike | undefined;
|
|
6
|
-
logger?: (message: string) => void;
|
|
7
|
-
pushTo?: string | undefined;
|
|
8
|
-
runCommand?: RunCommand | undefined;
|
|
9
|
-
sshKeygen?: SshKeygen | undefined;
|
|
10
|
-
}
|
|
11
|
-
export interface SshKeyBootstrapResult {
|
|
12
|
-
createdHetznerKey: boolean;
|
|
13
|
-
createdLocalKey: boolean;
|
|
14
|
-
privateKeyPath: string;
|
|
15
|
-
publicKeyPath: string;
|
|
16
|
-
sshKeyName: string;
|
|
17
|
-
}
|
|
18
|
-
export interface SshKeygen {
|
|
19
|
-
createEd25519KeyPair: (privateKeyPath: string, comment: string) => void;
|
|
20
|
-
derivePublicKey: (privateKeyPath: string) => string;
|
|
21
|
-
}
|
|
22
|
-
export declare function runPilotSshKeyBootstrap(rootDir: string, options?: SshKeyBootstrapOptions): Promise<{
|
|
23
|
-
success: boolean;
|
|
24
|
-
message?: string;
|
|
25
|
-
}>;
|
|
26
|
-
export declare function bootstrapPilotSshKey(rootDir: string, options?: SshKeyBootstrapOptions): Promise<SshKeyBootstrapResult>;
|
|
1
|
+
export { bootstrapSshKey as bootstrapPilotSshKey, runSshKeyBootstrap as runPilotSshKeyBootstrap, type SshKeyBootstrapOptions, type SshKeyBootstrapResult, type SshKeygen, } from "@brains/deploy-support/ssh-key-bootstrap";
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"version": "0.2.0-alpha.
|
|
7
|
+
"version": "0.2.0-alpha.140",
|
|
8
8
|
"type": "module",
|
|
9
9
|
"exports": {
|
|
10
10
|
".": {
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
"build": "bun scripts/build.ts",
|
|
31
31
|
"prepublishOnly": "bun scripts/build.ts",
|
|
32
32
|
"typecheck": "tsc --noEmit",
|
|
33
|
-
"lint": "eslint . --ext .ts",
|
|
34
|
-
"lint:fix": "eslint . --ext .ts --fix",
|
|
33
|
+
"lint": "eslint . --ext .ts,.tsx --max-warnings 0",
|
|
34
|
+
"lint:fix": "eslint . --ext .ts,.tsx --max-warnings 0 --fix",
|
|
35
35
|
"test": "bun run build && bun test --timeout 20000",
|
|
36
36
|
"test:smoke": "bun run build && RUN_SMOKE_TESTS=1 bun test --timeout 60000"
|
|
37
37
|
},
|