@aws/ml-container-creator 0.2.1 → 0.2.3

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 +13 -3
  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,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws/ml-container-creator",
3
- "version": "0.2.1",
3
+ "version": "0.2.3",
4
4
  "description": "Generator for SageMaker AI BYOC paradigm for predictive inference use-cases.",
5
5
  "type": "module",
6
6
  "main": "src/app.js",
@@ -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-*",