@dcupl/cli 1.4.0-beta.0 → 1.4.0-beta.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 (154) hide show
  1. package/README.md +45 -0
  2. package/dist/cli.js +136 -18
  3. package/dist/cli.js.map +1 -1
  4. package/dist/functions/app/commands/fn/_fn-helpers.d.ts +13 -0
  5. package/dist/functions/app/commands/fn/_fn-helpers.js +56 -0
  6. package/dist/functions/app/commands/fn/_fn-helpers.js.map +1 -1
  7. package/dist/functions/app/commands/fn/aggregate.d.ts +8 -1
  8. package/dist/functions/app/commands/fn/aggregate.js +29 -3
  9. package/dist/functions/app/commands/fn/aggregate.js.map +1 -1
  10. package/dist/functions/app/commands/fn/facets.d.ts +1 -0
  11. package/dist/functions/app/commands/fn/facets.js +2 -0
  12. package/dist/functions/app/commands/fn/facets.js.map +1 -1
  13. package/dist/functions/app/commands/fn/group-by.d.ts +6 -0
  14. package/dist/functions/app/commands/fn/group-by.js +13 -22
  15. package/dist/functions/app/commands/fn/group-by.js.map +1 -1
  16. package/dist/functions/app/commands/fn/pivot.d.ts +14 -0
  17. package/dist/functions/app/commands/fn/pivot.js +72 -0
  18. package/dist/functions/app/commands/fn/pivot.js.map +1 -0
  19. package/dist/functions/app/commands/fn/suggest.d.ts +17 -0
  20. package/dist/functions/app/commands/fn/suggest.js +34 -0
  21. package/dist/functions/app/commands/fn/suggest.js.map +1 -0
  22. package/dist/functions/app/commands/resolve-source.js +13 -5
  23. package/dist/functions/app/commands/resolve-source.js.map +1 -1
  24. package/dist/functions/app/commands/validate.js +1 -4
  25. package/dist/functions/app/commands/validate.js.map +1 -1
  26. package/dist/functions/app/daemon/controllers/fn.controller.d.ts +8 -0
  27. package/dist/functions/app/daemon/controllers/fn.controller.js +20 -0
  28. package/dist/functions/app/daemon/controllers/fn.controller.js.map +1 -1
  29. package/dist/functions/app/daemon/services/attribute-validation.d.ts +21 -0
  30. package/dist/functions/app/daemon/services/attribute-validation.js +161 -0
  31. package/dist/functions/app/daemon/services/attribute-validation.js.map +1 -0
  32. package/dist/functions/app/daemon/services/dcupl-host.service.d.ts +7 -0
  33. package/dist/functions/app/daemon/services/dcupl-host.service.js +87 -6
  34. package/dist/functions/app/daemon/services/dcupl-host.service.js.map +1 -1
  35. package/dist/functions/app/e2e/port-lock.d.ts +8 -0
  36. package/dist/functions/app/e2e/port-lock.js +50 -0
  37. package/dist/functions/app/e2e/port-lock.js.map +1 -1
  38. package/dist/functions/config/commands/get.d.ts +3 -3
  39. package/dist/functions/config/commands/get.js +34 -16
  40. package/dist/functions/config/commands/get.js.map +1 -1
  41. package/dist/functions/config/commands/set.js +7 -2
  42. package/dist/functions/config/commands/set.js.map +1 -1
  43. package/dist/functions/config/io.d.ts +4 -1
  44. package/dist/functions/config/io.js +43 -8
  45. package/dist/functions/config/io.js.map +1 -1
  46. package/dist/functions/files/commands/copy.js +1 -1
  47. package/dist/functions/files/commands/copy.js.map +1 -1
  48. package/dist/functions/files/commands/delete.js +1 -1
  49. package/dist/functions/files/commands/delete.js.map +1 -1
  50. package/dist/functions/files/commands/list.js +6 -3
  51. package/dist/functions/files/commands/list.js.map +1 -1
  52. package/dist/functions/files/commands/move.js +1 -1
  53. package/dist/functions/files/commands/move.js.map +1 -1
  54. package/dist/functions/files/commands/pull.d.ts +14 -1
  55. package/dist/functions/files/commands/pull.js +110 -1
  56. package/dist/functions/files/commands/pull.js.map +1 -1
  57. package/dist/functions/files/commands/push.js +5 -3
  58. package/dist/functions/files/commands/push.js.map +1 -1
  59. package/dist/functions/files/commands/read.js +1 -1
  60. package/dist/functions/files/commands/read.js.map +1 -1
  61. package/dist/functions/files/commands/render.d.ts +29 -0
  62. package/dist/functions/files/commands/render.js +8 -4
  63. package/dist/functions/files/commands/render.js.map +1 -1
  64. package/dist/functions/files/commands/status.js +1 -0
  65. package/dist/functions/files/commands/status.js.map +1 -1
  66. package/dist/functions/files/commands/versions/copy.js +1 -1
  67. package/dist/functions/files/commands/versions/copy.js.map +1 -1
  68. package/dist/functions/files/commands/versions/delete.js +1 -1
  69. package/dist/functions/files/commands/versions/delete.js.map +1 -1
  70. package/dist/functions/files/commands/versions/list.js +4 -0
  71. package/dist/functions/files/commands/versions/list.js.map +1 -1
  72. package/dist/functions/files/commands/write.js +1 -1
  73. package/dist/functions/files/commands/write.js.map +1 -1
  74. package/dist/functions/files/files-pull.js +10 -7
  75. package/dist/functions/files/files-pull.js.map +1 -1
  76. package/dist/functions/files/files-push.js +11 -8
  77. package/dist/functions/files/files-push.js.map +1 -1
  78. package/dist/functions/files/test-helpers.d.ts +11 -0
  79. package/dist/functions/files/test-helpers.js +28 -0
  80. package/dist/functions/files/test-helpers.js.map +1 -1
  81. package/dist/functions/generate/files/generate-code.d.ts +1 -1
  82. package/dist/functions/generate/files/generate-files.d.ts +7 -1
  83. package/dist/functions/generate/files/generate-files.js +63 -15
  84. package/dist/functions/generate/files/generate-files.js.map +1 -1
  85. package/dist/functions/generate/files/workflow-presets.d.ts +6 -0
  86. package/dist/functions/generate/files/workflow-presets.js +158 -0
  87. package/dist/functions/generate/files/workflow-presets.js.map +1 -0
  88. package/dist/functions/generate/model-from-data/generate-model-from-data.js +4 -3
  89. package/dist/functions/generate/model-from-data/generate-model-from-data.js.map +1 -1
  90. package/dist/functions/generate/model-from-data/infer-to-model.js +5 -1
  91. package/dist/functions/generate/model-from-data/infer-to-model.js.map +1 -1
  92. package/dist/functions/generate/projects/generate-project.d.ts +5 -0
  93. package/dist/functions/generate/projects/generate-project.js +20 -6
  94. package/dist/functions/generate/projects/generate-project.js.map +1 -1
  95. package/dist/functions/helper/api-client.js +9 -14
  96. package/dist/functions/helper/api-client.js.map +1 -1
  97. package/dist/functions/helper/credentials.helper.d.ts +21 -0
  98. package/dist/functions/helper/credentials.helper.js +39 -0
  99. package/dist/functions/helper/credentials.helper.js.map +1 -0
  100. package/dist/functions/helper/load-env.d.ts +1 -0
  101. package/dist/functions/helper/load-env.js +10 -0
  102. package/dist/functions/helper/load-env.js.map +1 -0
  103. package/dist/functions/helper/output.d.ts +1 -1
  104. package/dist/functions/helper/output.js +7 -11
  105. package/dist/functions/helper/output.js.map +1 -1
  106. package/dist/functions/schemas/examples/AttributeQualityConfig.example.json +10 -0
  107. package/dist/functions/schemas/examples/ModelDefinition.example.json +21 -2
  108. package/dist/functions/schemas/examples/ScriptStepConfig.example.json +1 -1
  109. package/dist/functions/schemas/registry.d.ts +14 -0
  110. package/dist/functions/schemas/registry.js +40 -0
  111. package/dist/functions/schemas/registry.js.map +1 -1
  112. package/dist/functions/schemas/validate.d.ts +22 -0
  113. package/dist/functions/schemas/validate.js +67 -0
  114. package/dist/functions/schemas/validate.js.map +1 -0
  115. package/dist/functions/serve/main.js +6 -5
  116. package/dist/functions/serve/main.js.map +1 -1
  117. package/dist/functions/version/command.d.ts +12 -1
  118. package/dist/functions/version/command.js +54 -1
  119. package/dist/functions/version/command.js.map +1 -1
  120. package/dist/functions/workflow/commands/deploy.d.ts +8 -1
  121. package/dist/functions/workflow/commands/deploy.js +24 -0
  122. package/dist/functions/workflow/commands/deploy.js.map +1 -1
  123. package/dist/functions/workflow/commands/run.d.ts +26 -0
  124. package/dist/functions/workflow/commands/run.js +85 -0
  125. package/dist/functions/workflow/commands/run.js.map +1 -0
  126. package/dist/functions/workflow/commands/runners.d.ts +2 -0
  127. package/dist/functions/workflow/commands/runners.js +10 -1
  128. package/dist/functions/workflow/commands/runners.js.map +1 -1
  129. package/dist/functions/workflow/commands/test.d.ts +3 -0
  130. package/dist/functions/workflow/commands/test.js +8 -64
  131. package/dist/functions/workflow/commands/test.js.map +1 -1
  132. package/dist/functions/workflow/commands/trace.d.ts +4 -2
  133. package/dist/functions/workflow/commands/trace.js +22 -1
  134. package/dist/functions/workflow/commands/trace.js.map +1 -1
  135. package/dist/functions/workflow/commands/validate.js +8 -1
  136. package/dist/functions/workflow/commands/validate.js.map +1 -1
  137. package/dist/functions/workflow/run-failure.d.ts +11 -0
  138. package/dist/functions/workflow/run-failure.js +74 -0
  139. package/dist/functions/workflow/run-failure.js.map +1 -0
  140. package/dist/functions/workflow/runner-health.d.ts +16 -0
  141. package/dist/functions/workflow/runner-health.js +36 -0
  142. package/dist/functions/workflow/runner-health.js.map +1 -0
  143. package/dist/functions/workflow/script-lint.d.ts +10 -0
  144. package/dist/functions/workflow/script-lint.js +488 -0
  145. package/dist/functions/workflow/script-lint.js.map +1 -0
  146. package/dist/functions/workflow/template-io.js +1 -1
  147. package/dist/functions/workflow/template-io.js.map +1 -1
  148. package/dist/functions/workflow/validate.js +4 -1
  149. package/dist/functions/workflow/validate.js.map +1 -1
  150. package/dist/index.js +6 -3
  151. package/dist/index.js.map +1 -1
  152. package/files/common/.env.example +4 -0
  153. package/files/common/_gitignore +3 -1
  154. package/package.json +35 -37
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcupl/cli",
3
- "version": "1.4.0-beta.0",
3
+ "version": "1.4.0-beta.2",
4
4
  "description": "The official dcupl CLI",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
@@ -8,7 +8,7 @@
8
8
  },
9
9
  "scripts": {
10
10
  "build": "npm run clean && tsc && npm run build:copy-examples",
11
- "build:copy-examples": "node -e \"const fs=require('fs'),p=require('path');const src=p.join('src','functions','schemas','examples');const dst=p.join('dist','functions','schemas','examples');fs.mkdirSync(dst,{recursive:true});for(const f of fs.readdirSync(src)){if(f.endsWith('.json')){fs.copyFileSync(p.join(src,f),p.join(dst,f));}}\"",
11
+ "build:copy-examples": "node scripts/copy-examples.js",
12
12
  "build:watch": "npm run clean && tsc -w",
13
13
  "clean": "rm -rf dist",
14
14
  "global": "npm i -g && dcupl",
@@ -35,63 +35,61 @@
35
35
  "license": "ISC",
36
36
  "devDependencies": {
37
37
  "@changesets/cli": "^2.31.0",
38
- "@eslint/js": "^9.39.4",
39
- "@nestjs/cli": "^11.0.7",
40
- "@types/adm-zip": "^0.5.7",
38
+ "@eslint/js": "^10.0.1",
41
39
  "@types/chai": "^5.2.1",
42
40
  "@types/compression": "^1.7.5",
43
41
  "@types/fs-extra": "^11.0.4",
44
- "@types/glob": "^8.1.0",
45
- "@types/inquirer": "^9.0.7",
46
42
  "@types/lodash": "^4.17.16",
47
43
  "@types/mocha": "^10.0.10",
48
- "@types/prettier": "^3.0.0",
44
+ "@types/semver": "^7.7.1",
49
45
  "@types/serve-favicon": "^2.5.7",
50
46
  "@types/yargs": "^17.0.33",
51
- "@typescript-eslint/eslint-plugin": "^8.59.4",
52
- "@typescript-eslint/parser": "^8.59.4",
53
- "@vitest/coverage-v8": "^4.1.1",
54
- "eslint": "^9.39.4",
47
+ "@typescript-eslint/eslint-plugin": "^8.61.1",
48
+ "@typescript-eslint/parser": "^8.61.1",
49
+ "@vitest/coverage-v8": "^4.1.9",
50
+ "eslint": "^10.5.0",
55
51
  "eslint-config-prettier": "^10.1.8",
56
52
  "globals": "^17.6.0",
57
53
  "tsx": "^4.21.0",
58
- "typescript": "^5.8.3",
59
- "vitest": "^4.1.1"
54
+ "typescript": "^6.0.3",
55
+ "vitest": "^4.1.9"
60
56
  },
61
57
  "dependencies": {
62
- "@dcupl/common": "2.0.0-beta.6",
63
- "@dcupl/common-internal": "2.0.0-beta.6",
64
- "@dcupl/core": "2.0.0-beta.6",
65
- "@dcupl/loader": "2.0.0-beta.6",
66
- "@nestjs/common": "^11.0.21",
67
- "@nestjs/core": "^11.0.21",
68
- "@nestjs/platform-express": "^11.0.21",
58
+ "@dcupl/common": "2.0.0-beta.7",
59
+ "@dcupl/common-internal": "2.0.0-beta.7",
60
+ "@dcupl/core": "2.0.0-beta.7",
61
+ "@dcupl/loader": "2.0.0-beta.7",
62
+ "@nestjs/common": "^11.1.27",
63
+ "@nestjs/core": "^11.1.27",
64
+ "@nestjs/platform-express": "^11.1.27",
69
65
  "@nestjs/serve-static": "^5.0.3",
70
- "adm-zip": "^0.5.16",
71
- "ajv": "^8.17.1",
72
- "axios": "^1.8.4",
73
- "chai": "^5.2.0",
74
- "comment-json": "^4.2.5",
66
+ "adm-zip": "^0.6.0",
67
+ "axios": "^1.18.0",
68
+ "chai": "^6.2.2",
69
+ "comment-json": "^5.0.0",
75
70
  "compression": "^1.8.0",
76
- "form-data": "^4.0.2",
71
+ "dotenv": "^17.4.2",
72
+ "express": "^5.2.1",
73
+ "form-data": "^4.0.6",
77
74
  "fs-extra": "^11.3.0",
78
- "glob": "^11.0.1",
79
- "inquirer": "^12.5.2",
75
+ "glob": "^13.0.6",
76
+ "inquirer": "^14.0.2",
80
77
  "json-schema": "^0.4.0",
81
78
  "kleur": "^4.1.5",
82
79
  "lodash": "^4.17.21",
83
- "minimatch": "^9.0.9",
80
+ "minimatch": "^10.2.5",
84
81
  "mocha": "^11.1.0",
85
- "open": "^10.1.1",
86
- "prettier": "^3.5.3",
87
- "protobufjs": "^7.5.0",
88
- "quicktype": "^23.0.171",
89
- "quicktype-core": "^23.0.171",
82
+ "open": "^11.0.0",
83
+ "quicktype-core": "^26.0.0",
90
84
  "reflect-metadata": "^0.2.2",
91
85
  "rxjs": "^7.8.2",
86
+ "semver": "^7.8.5",
92
87
  "serve-favicon": "^2.5.0",
93
- "serve-index": "^1.9.1",
94
88
  "ts-morph": "^28.0.0",
95
- "yargs": "^17.7.2"
89
+ "yargs": "^18.0.0"
90
+ },
91
+ "overrides": {
92
+ "diff": "^8.0.3",
93
+ "serialize-javascript": "^7.0.5"
96
94
  }
97
95
  }