@alienplatform/testing 3.3.39 → 3.3.40
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/errors.js +1 -2
- package/dist/external-secrets.js +1 -2
- package/dist/index.d.ts +1 -17
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -4
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/errors.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AlienError, defineError } from "@alienplatform/core";
|
|
2
2
|
import * as z$1 from "zod/v4";
|
|
3
|
-
|
|
3
|
+
// src/errors.ts
|
|
4
4
|
const TestingOperationFailedError = defineError({
|
|
5
5
|
code: "TESTING_OPERATION_FAILED",
|
|
6
6
|
context: z$1.object({
|
|
@@ -31,7 +31,6 @@ async function withTestingContext(error, operation, message, details) {
|
|
|
31
31
|
details
|
|
32
32
|
}));
|
|
33
33
|
}
|
|
34
|
-
//#endregion
|
|
35
34
|
export { TestingUnsupportedPlatformError as n, withTestingContext as r, TestingOperationFailedError as t };
|
|
36
35
|
|
|
37
36
|
//# sourceMappingURL=errors.js.map
|
package/dist/external-secrets.js
CHANGED
|
@@ -6,7 +6,7 @@ import { PutParameterCommand, SSMClient } from "@aws-sdk/client-ssm";
|
|
|
6
6
|
import { ClientSecretCredential } from "@azure/identity";
|
|
7
7
|
import { SecretClient } from "@azure/keyvault-secrets";
|
|
8
8
|
import { SecretManagerServiceClient } from "@google-cloud/secret-manager";
|
|
9
|
-
|
|
9
|
+
// src/external-secrets.ts
|
|
10
10
|
/**
|
|
11
11
|
* External secrets - platform-native secret management
|
|
12
12
|
*/
|
|
@@ -135,7 +135,6 @@ async function setLocalSecret(vaultName, secretKey, secretValue, stateDir, deplo
|
|
|
135
135
|
mkdirSync(vaultDir, { recursive: true });
|
|
136
136
|
writeFileSync(secretsFile, JSON.stringify(secrets, null, 2));
|
|
137
137
|
}
|
|
138
|
-
//#endregion
|
|
139
138
|
export { setExternalSecret };
|
|
140
139
|
|
|
141
140
|
//# sourceMappingURL=external-secrets.js.map
|
package/dist/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import * as z$1 from "zod/v4";
|
|
|
3
3
|
import { z } from "zod/v4";
|
|
4
4
|
import * as z$2 from "zod";
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
// src/types.d.ts
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Core types for @alienplatform/testing
|
|
@@ -75,8 +75,6 @@ interface DeploymentInit {
|
|
|
75
75
|
apiUrl?: string;
|
|
76
76
|
apiKey?: string;
|
|
77
77
|
}
|
|
78
|
-
//#endregion
|
|
79
|
-
//#region src/deployment.d.ts
|
|
80
78
|
declare class Deployment {
|
|
81
79
|
readonly id: string;
|
|
82
80
|
readonly name: string;
|
|
@@ -121,8 +119,6 @@ declare class Deployment {
|
|
|
121
119
|
destroy(): Promise<void>;
|
|
122
120
|
private resolveCliPath;
|
|
123
121
|
}
|
|
124
|
-
//#endregion
|
|
125
|
-
//#region src/deploy.d.ts
|
|
126
122
|
/**
|
|
127
123
|
* Deploy an Alien application for testing.
|
|
128
124
|
*
|
|
@@ -130,11 +126,6 @@ declare class Deployment {
|
|
|
130
126
|
* to deploy via the platform API (requires ALIEN_API_KEY env var).
|
|
131
127
|
*/
|
|
132
128
|
declare function deploy(options: DeployOptions): Promise<Deployment>;
|
|
133
|
-
//#endregion
|
|
134
|
-
//#region ../core/dist/index.d.ts
|
|
135
|
-
|
|
136
|
-
//#endregion
|
|
137
|
-
//#region src/generated/zod/alien-error-schema.d.ts
|
|
138
129
|
/**
|
|
139
130
|
* @description Canonical error container that provides a structured way to represent errors\nwith rich metadata including error codes, human-readable messages, context,\nand chaining capabilities for error propagation.\n\nThis struct is designed to be both machine-readable and user-friendly,\nsupporting serialization for API responses and detailed error reporting\nin distributed systems.
|
|
140
131
|
*/
|
|
@@ -149,14 +140,10 @@ declare const AlienErrorSchema: z$2.ZodObject<{
|
|
|
149
140
|
source: z$2.ZodOptional<z$2.ZodAny>;
|
|
150
141
|
}, z$2.core.$strip>;
|
|
151
142
|
type AlienError$1 = z$2.infer<typeof AlienErrorSchema>;
|
|
152
|
-
//#endregion
|
|
153
|
-
//#region src/generated/zod/alien-event-schema.d.ts
|
|
154
143
|
/**
|
|
155
144
|
* @description Represents all possible events in the Alien system
|
|
156
145
|
*/
|
|
157
146
|
|
|
158
|
-
//#endregion
|
|
159
|
-
//#region src/error.d.ts
|
|
160
147
|
/**
|
|
161
148
|
* Base interface that all error type definitions must implement.
|
|
162
149
|
*
|
|
@@ -279,8 +266,6 @@ interface AlienErrorDefinition<TContext extends z.ZodTypeAny> {
|
|
|
279
266
|
* console.log(contextualError.toString()) // Shows full error chain
|
|
280
267
|
* ```
|
|
281
268
|
*/
|
|
282
|
-
//#endregion
|
|
283
|
-
//#region src/errors.d.ts
|
|
284
269
|
declare const TestingOperationFailedError: {
|
|
285
270
|
metadata: AlienErrorMetadata<z$1.ZodObject<{
|
|
286
271
|
operation: z$1.ZodString;
|
|
@@ -319,6 +304,5 @@ declare const TestingUnsupportedPlatformError: {
|
|
|
319
304
|
operation: z$1.ZodString;
|
|
320
305
|
}, z$1.core.$strip>>;
|
|
321
306
|
};
|
|
322
|
-
//#endregion
|
|
323
307
|
export { type DeployOptions, Deployment, type DeploymentInfo, type EnvironmentVariable, type Platform, TestingOperationFailedError, TestingUnsupportedPlatformError, type UpgradeOptions, deploy };
|
|
324
308
|
//# sourceMappingURL=index.d.ts.map
|