@aws/ml-container-creator 0.2.0 → 0.2.2

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.
Files changed (36) hide show
  1. package/bin/cli.js +88 -86
  2. package/config/bootstrap-stack.json +211 -0
  3. package/config/parameter-schema.json +88 -0
  4. package/infra/ci-harness/bin/ci-harness.ts +26 -0
  5. package/infra/ci-harness/buildspec.yml +352 -0
  6. package/infra/ci-harness/cdk.json +27 -0
  7. package/infra/ci-harness/lambda/scanner/index.ts +199 -0
  8. package/infra/ci-harness/lib/ci-harness-stack.ts +609 -0
  9. package/infra/ci-harness/package-lock.json +3979 -0
  10. package/infra/ci-harness/package.json +32 -0
  11. package/infra/ci-harness/tsconfig.json +38 -0
  12. package/package.json +19 -10
  13. package/src/app.js +318 -318
  14. package/src/copy-tpl.js +19 -19
  15. package/src/lib/asset-manager.js +74 -74
  16. package/src/lib/aws-profile-parser.js +45 -45
  17. package/src/lib/bootstrap-command-handler.js +560 -547
  18. package/src/lib/bootstrap-config.js +45 -45
  19. package/src/lib/ci-register-helpers.js +19 -19
  20. package/src/lib/ci-report-helpers.js +37 -37
  21. package/src/lib/ci-stage-helpers.js +49 -49
  22. package/src/lib/comment-generator.js +4 -4
  23. package/src/lib/config-manager.js +105 -105
  24. package/src/lib/deployment-config-resolver.js +10 -10
  25. package/src/lib/deployment-registry.js +153 -153
  26. package/src/lib/engine-prefix-resolver.js +8 -8
  27. package/src/lib/key-value-parser.js +6 -6
  28. package/src/lib/manifest-cli.js +108 -108
  29. package/src/lib/prompt-runner.js +224 -224
  30. package/src/lib/prompts.js +121 -121
  31. package/src/lib/registry-command-handler.js +174 -174
  32. package/src/lib/registry-loader.js +52 -52
  33. package/src/lib/sensitive-redactor.js +9 -9
  34. package/src/lib/template-engine.js +1 -1
  35. package/src/lib/template-manager.js +62 -62
  36. package/src/prompt-adapter.js +18 -18
@@ -0,0 +1,32 @@
1
+ {
2
+ "name": "mlcc-ci-harness",
3
+ "version": "0.1.0",
4
+ "description": "CDK infrastructure for ML Container Creator CI Integration Harness",
5
+ "private": true,
6
+ "scripts": {
7
+ "build": "tsc",
8
+ "watch": "tsc -w",
9
+ "cdk": "cdk",
10
+ "synth": "cdk synth",
11
+ "test": "mocha --require ts-node/register test/**/*.test.ts --exit --reporter spec"
12
+ },
13
+ "dependencies": {
14
+ "aws-cdk-lib": "^2.175.1",
15
+ "constructs": "^10.4.2",
16
+ "yaml": "^2.7.0"
17
+ },
18
+ "devDependencies": {
19
+ "@aws-sdk/client-dynamodb": "^3.1041.0",
20
+ "@aws-sdk/client-sfn": "^3.1041.0",
21
+ "@aws-sdk/client-sqs": "^3.1041.0",
22
+ "@types/mocha": "^10.0.10",
23
+ "@types/node": "^22.15.0",
24
+ "esbuild": "^0.28.0",
25
+ "mocha": "^11.7.5",
26
+ "ts-node": "^10.9.2",
27
+ "typescript": "^5.8.3"
28
+ },
29
+ "engines": {
30
+ "node": ">=18.0.0"
31
+ }
32
+ }
@@ -0,0 +1,38 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "ES2022",
4
+ "module": "commonjs",
5
+ "lib": ["ES2022"],
6
+ "declaration": true,
7
+ "strict": true,
8
+ "noImplicitAny": true,
9
+ "strictNullChecks": true,
10
+ "noImplicitThis": true,
11
+ "alwaysStrict": true,
12
+ "noUnusedLocals": false,
13
+ "noUnusedParameters": false,
14
+ "noImplicitReturns": true,
15
+ "noFallthroughCasesInSwitch": false,
16
+ "inlineSourceMap": true,
17
+ "inlineSources": true,
18
+ "experimentalDecorators": true,
19
+ "strictPropertyInitialization": false,
20
+ "outDir": "./dist",
21
+ "rootDir": ".",
22
+ "typeRoots": ["./node_modules/@types"],
23
+ "resolveJsonModule": true,
24
+ "esModuleInterop": true,
25
+ "skipLibCheck": true,
26
+ "forceConsistentCasingInFileNames": true
27
+ },
28
+ "include": [
29
+ "bin/**/*.ts",
30
+ "lib/**/*.ts",
31
+ "lambda/**/*.ts",
32
+ "test/**/*.ts"
33
+ ],
34
+ "exclude": [
35
+ "node_modules",
36
+ "dist"
37
+ ]
38
+ }
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@aws/ml-container-creator",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "Generator for SageMaker AI BYOC paradigm for predictive inference use-cases.",
5
5
  "type": "module",
6
6
  "main": "src/app.js",
7
7
  "bin": {
8
- "ml-container-creator": "bin/cli.js"
8
+ "ml-container-creator": "./bin/cli.js"
9
9
  },
10
10
  "publishConfig": {
11
11
  "access": "public"
@@ -45,7 +45,17 @@
45
45
  "servers/lib/package.json",
46
46
  "servers/README.md",
47
47
  "config/defaults.json",
48
+ "config/bootstrap-stack.json",
49
+ "config/parameter-schema.json",
48
50
  "config/presets/",
51
+ "infra/ci-harness/bin/",
52
+ "infra/ci-harness/lambda/",
53
+ "infra/ci-harness/lib/",
54
+ "infra/ci-harness/buildspec.yml",
55
+ "infra/ci-harness/cdk.json",
56
+ "infra/ci-harness/package.json",
57
+ "infra/ci-harness/package-lock.json",
58
+ "infra/ci-harness/tsconfig.json",
49
59
  "README.md",
50
60
  "LICENSE",
51
61
  "LICENSE-THIRD-PARTY",
@@ -75,8 +85,8 @@
75
85
  "test:perf": "VALIDATE_ENV_VARS=false mocha test/**/*.test.js --reporter json > test-results.json && node scripts/analyze-test-performance.js",
76
86
  "security-audit": "npm audit --audit-level=high",
77
87
  "security-fix": "npm audit fix",
78
- "lint": "eslint generators/**/*.js test/**/*.js",
79
- "lint:fix": "eslint generators/**/*.js test/**/*.js --fix",
88
+ "lint": "eslint src/**/*.js bin/**/*.js test/**/*.js",
89
+ "lint:fix": "eslint src/**/*.js bin/**/*.js test/**/*.js --fix",
80
90
  "start": "ml-container-creator",
81
91
  "dev": "npm link && ml-container-creator",
82
92
  "clean": "rm -rf test-output-*",
@@ -92,24 +102,24 @@
92
102
  },
93
103
  "dependencies": {
94
104
  "@inquirer/prompts": "^8.4.2",
95
- "@microsoft/eslint-formatter-sarif": "^3.1.0",
96
105
  "@modelcontextprotocol/sdk": "^1.27.1",
97
106
  "ajv": "^8.12.0",
107
+ "chalk": "^5.6.2",
98
108
  "cli-table3": "^0.6.5",
99
109
  "commander": "13.1.0",
100
110
  "ejs": "^3.1.10",
101
- "license-report": "^6.8.0",
102
- "lodash": "^4.17.21",
103
111
  "minimatch": "^10.2.4",
104
- "sbom": "^0.0.0",
105
112
  "tinyglobby": "^0.2.16"
106
113
  },
107
114
  "devDependencies": {
115
+ "@microsoft/eslint-formatter-sarif": "^3.1.0",
108
116
  "eslint": "^8.57.0",
109
117
  "fast-check": "^4.5.2",
118
+ "license-report": "^6.8.0",
110
119
  "mocha": "^10.2.0",
111
120
  "npm-force-resolutions": "^0.0.10",
112
- "nyc": "^15.1.0"
121
+ "nyc": "^15.1.0",
122
+ "sbom": "^0.0.0"
113
123
  },
114
124
  "engines": {
115
125
  "node": ">=24.11.1",
@@ -118,7 +128,6 @@
118
128
  "overrides": {
119
129
  "cross-spawn": "^7.0.3",
120
130
  "diff": "^5.2.2",
121
- "lodash": "^4.17.21",
122
131
  "semver": "^7.5.4",
123
132
  "got": "^11.8.5",
124
133
  "qs": "^6.14.1",