@quiltdata/benchling-webhook 0.7.4 → 0.7.5
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/bin/cli.js +34 -9
- package/dist/bin/cli.js.map +1 -1
- package/dist/bin/commands/deploy.d.ts.map +1 -1
- package/dist/bin/commands/deploy.js +35 -18
- package/dist/bin/commands/deploy.js.map +1 -1
- package/dist/bin/commands/install.d.ts +57 -0
- package/dist/bin/commands/install.d.ts.map +1 -0
- package/dist/bin/commands/install.js +166 -0
- package/dist/bin/commands/install.js.map +1 -0
- package/dist/bin/commands/setup-wizard.d.ts +12 -2
- package/dist/bin/commands/setup-wizard.d.ts.map +1 -1
- package/dist/bin/commands/setup-wizard.js +21 -24
- package/dist/bin/commands/setup-wizard.js.map +1 -1
- package/dist/lib/context-detector.d.ts +33 -0
- package/dist/lib/context-detector.d.ts.map +1 -0
- package/dist/lib/context-detector.js +224 -0
- package/dist/lib/context-detector.js.map +1 -0
- package/dist/lib/next-steps-generator.d.ts +53 -0
- package/dist/lib/next-steps-generator.d.ts.map +1 -0
- package/dist/lib/next-steps-generator.js +180 -0
- package/dist/lib/next-steps-generator.js.map +1 -0
- package/dist/lib/types/next-steps.d.ts +93 -0
- package/dist/lib/types/next-steps.d.ts.map +1 -0
- package/dist/lib/types/next-steps.js +8 -0
- package/dist/lib/types/next-steps.js.map +1 -0
- package/dist/package.json +2 -3
- package/package.json +2 -3
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Type definitions for next steps generation
|
|
3
|
+
*
|
|
4
|
+
* @module types/next-steps
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Execution context for command suggestions
|
|
8
|
+
*
|
|
9
|
+
* Determines whether to show npm script commands (repository context)
|
|
10
|
+
* or npx commands (package user context).
|
|
11
|
+
*/
|
|
12
|
+
export interface ExecutionContext {
|
|
13
|
+
/**
|
|
14
|
+
* True if running in repository (has matching package.json with source files)
|
|
15
|
+
*/
|
|
16
|
+
isRepository: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* True if running via npx (installed as package)
|
|
19
|
+
*/
|
|
20
|
+
isNpx: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Package name for npx commands
|
|
23
|
+
* @example "@quiltdata/benchling-webhook"
|
|
24
|
+
*/
|
|
25
|
+
packageName: string;
|
|
26
|
+
/**
|
|
27
|
+
* Available npm scripts (if repository context)
|
|
28
|
+
* @example ["deploy", "deploy:dev", "deploy:prod", "test", "test:dev"]
|
|
29
|
+
*/
|
|
30
|
+
availableScripts: string[];
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Deployment result information
|
|
34
|
+
*
|
|
35
|
+
* Contains outputs from a deployment operation for display in next steps.
|
|
36
|
+
*/
|
|
37
|
+
export interface DeploymentResult {
|
|
38
|
+
/**
|
|
39
|
+
* Whether deployment succeeded
|
|
40
|
+
*/
|
|
41
|
+
success: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Webhook URL (if deployment succeeded)
|
|
44
|
+
* @example "https://abc123.execute-api.us-east-1.amazonaws.com/prod/webhook"
|
|
45
|
+
*/
|
|
46
|
+
webhookUrl?: string;
|
|
47
|
+
/**
|
|
48
|
+
* CloudFormation stack ARN
|
|
49
|
+
* @example "arn:aws:cloudformation:us-east-1:123456789012:stack/BenchlingWebhook/abc123"
|
|
50
|
+
*/
|
|
51
|
+
stackArn?: string;
|
|
52
|
+
/**
|
|
53
|
+
* AWS region where deployed
|
|
54
|
+
* @example "us-east-1"
|
|
55
|
+
*/
|
|
56
|
+
region?: string;
|
|
57
|
+
/**
|
|
58
|
+
* Error message (if deployment failed)
|
|
59
|
+
*/
|
|
60
|
+
error?: string;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Options for generating next steps message
|
|
64
|
+
*/
|
|
65
|
+
export interface NextStepsOptions {
|
|
66
|
+
/**
|
|
67
|
+
* Profile name (default, dev, prod, or custom)
|
|
68
|
+
*/
|
|
69
|
+
profile: string;
|
|
70
|
+
/**
|
|
71
|
+
* Deployment stage (dev or prod)
|
|
72
|
+
* @default Inferred from profile
|
|
73
|
+
*/
|
|
74
|
+
stage?: string;
|
|
75
|
+
/**
|
|
76
|
+
* Execution context (optional in Phase 1, required in Phase 2)
|
|
77
|
+
*
|
|
78
|
+
* If not provided, defaults to repository context for backward compatibility.
|
|
79
|
+
*/
|
|
80
|
+
context?: ExecutionContext;
|
|
81
|
+
/**
|
|
82
|
+
* Deployment result (optional, for Phase 3)
|
|
83
|
+
*
|
|
84
|
+
* If provided, next steps will include deployment-specific information.
|
|
85
|
+
*/
|
|
86
|
+
deployment?: DeploymentResult;
|
|
87
|
+
/**
|
|
88
|
+
* Whether deployment was skipped
|
|
89
|
+
* @default false
|
|
90
|
+
*/
|
|
91
|
+
skipDeployment?: boolean;
|
|
92
|
+
}
|
|
93
|
+
//# sourceMappingURL=next-steps.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"next-steps.d.ts","sourceRoot":"","sources":["../../../lib/types/next-steps.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;;GAKG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,YAAY,EAAE,OAAO,CAAC;IAEtB;;OAEG;IACH,KAAK,EAAE,OAAO,CAAC;IAEf;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;;OAGG;IACH,gBAAgB,EAAE,MAAM,EAAE,CAAC;CAC5B;AAED;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IAEjB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;;OAIG;IACH,OAAO,CAAC,EAAE,gBAAgB,CAAC;IAE3B;;;;OAIG;IACH,UAAU,CAAC,EAAE,gBAAgB,CAAC;IAE9B;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"next-steps.js","sourceRoot":"","sources":["../../../lib/types/next-steps.ts"],"names":[],"mappings":";AAAA;;;;GAIG"}
|
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quiltdata/benchling-webhook",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.5",
|
|
4
4
|
"description": "AWS CDK deployment for Benchling webhook processing using Fargate - Deploy directly with npx",
|
|
5
5
|
"main": "dist/lib/index.js",
|
|
6
6
|
"types": "dist/lib/index.d.ts",
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"aws-sdk-client-mock": "^4.1.0",
|
|
76
76
|
"cross-env": "^10.1.0",
|
|
77
77
|
"dotenv": "^17.2.3",
|
|
78
|
-
"esbuild": "0.
|
|
78
|
+
"esbuild": "0.27.0",
|
|
79
79
|
"eslint": "^9.22.0",
|
|
80
80
|
"globals": "^16.0.0",
|
|
81
81
|
"jest": "^30.0.0",
|
|
@@ -95,7 +95,6 @@
|
|
|
95
95
|
"ajv": "^8.17.1",
|
|
96
96
|
"ajv-formats": "^3.0.1",
|
|
97
97
|
"aws-cdk-lib": "2.222.0",
|
|
98
|
-
"aws-sdk": "^2.1574.0",
|
|
99
98
|
"boxen": "^8.0.0",
|
|
100
99
|
"chalk": "^5.0.0",
|
|
101
100
|
"commander": "^14.0.2",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quiltdata/benchling-webhook",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.5",
|
|
4
4
|
"description": "AWS CDK deployment for Benchling webhook processing using Fargate - Deploy directly with npx",
|
|
5
5
|
"main": "dist/lib/index.js",
|
|
6
6
|
"types": "dist/lib/index.d.ts",
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"aws-sdk-client-mock": "^4.1.0",
|
|
76
76
|
"cross-env": "^10.1.0",
|
|
77
77
|
"dotenv": "^17.2.3",
|
|
78
|
-
"esbuild": "0.
|
|
78
|
+
"esbuild": "0.27.0",
|
|
79
79
|
"eslint": "^9.22.0",
|
|
80
80
|
"globals": "^16.0.0",
|
|
81
81
|
"jest": "^30.0.0",
|
|
@@ -95,7 +95,6 @@
|
|
|
95
95
|
"ajv": "^8.17.1",
|
|
96
96
|
"ajv-formats": "^3.0.1",
|
|
97
97
|
"aws-cdk-lib": "2.222.0",
|
|
98
|
-
"aws-sdk": "^2.1574.0",
|
|
99
98
|
"boxen": "^8.0.0",
|
|
100
99
|
"chalk": "^5.0.0",
|
|
101
100
|
"commander": "^14.0.2",
|