@dcupl/cli 1.3.2 → 1.4.0-beta.0

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 (460) hide show
  1. package/README.md +107 -0
  2. package/dist/cli.d.ts +4 -0
  3. package/dist/cli.js +1247 -0
  4. package/dist/cli.js.map +1 -0
  5. package/dist/functions/app/app-id.d.ts +1 -0
  6. package/dist/functions/app/app-id.js +13 -0
  7. package/dist/functions/app/app-id.js.map +1 -0
  8. package/dist/functions/app/client/daemon-client.d.ts +16 -0
  9. package/dist/functions/app/client/daemon-client.js +67 -0
  10. package/dist/functions/app/client/daemon-client.js.map +1 -0
  11. package/dist/functions/app/commands/build.d.ts +10 -0
  12. package/dist/functions/app/commands/build.js +23 -0
  13. package/dist/functions/app/commands/build.js.map +1 -0
  14. package/dist/functions/app/commands/create.d.ts +35 -0
  15. package/dist/functions/app/commands/create.js +130 -0
  16. package/dist/functions/app/commands/create.js.map +1 -0
  17. package/dist/functions/app/commands/data/_data-helpers.d.ts +23 -0
  18. package/dist/functions/app/commands/data/_data-helpers.js +32 -0
  19. package/dist/functions/app/commands/data/_data-helpers.js.map +1 -0
  20. package/dist/functions/app/commands/data/remove.d.ts +3 -0
  21. package/dist/functions/app/commands/data/remove.js +9 -0
  22. package/dist/functions/app/commands/data/remove.js.map +1 -0
  23. package/dist/functions/app/commands/data/render.d.ts +34 -0
  24. package/dist/functions/app/commands/data/render.js +36 -0
  25. package/dist/functions/app/commands/data/render.js.map +1 -0
  26. package/dist/functions/app/commands/data/reset.d.ts +12 -0
  27. package/dist/functions/app/commands/data/reset.js +15 -0
  28. package/dist/functions/app/commands/data/reset.js.map +1 -0
  29. package/dist/functions/app/commands/data/set.d.ts +3 -0
  30. package/dist/functions/app/commands/data/set.js +9 -0
  31. package/dist/functions/app/commands/data/set.js.map +1 -0
  32. package/dist/functions/app/commands/data/update.d.ts +3 -0
  33. package/dist/functions/app/commands/data/update.js +9 -0
  34. package/dist/functions/app/commands/data/update.js.map +1 -0
  35. package/dist/functions/app/commands/data/upsert.d.ts +3 -0
  36. package/dist/functions/app/commands/data/upsert.js +9 -0
  37. package/dist/functions/app/commands/data/upsert.js.map +1 -0
  38. package/dist/functions/app/commands/destroy.d.ts +18 -0
  39. package/dist/functions/app/commands/destroy.js +55 -0
  40. package/dist/functions/app/commands/destroy.js.map +1 -0
  41. package/dist/functions/app/commands/detect-serve.d.ts +34 -0
  42. package/dist/functions/app/commands/detect-serve.js +169 -0
  43. package/dist/functions/app/commands/detect-serve.js.map +1 -0
  44. package/dist/functions/app/commands/fn/_fn-helpers.d.ts +13 -0
  45. package/dist/functions/app/commands/fn/_fn-helpers.js +11 -0
  46. package/dist/functions/app/commands/fn/_fn-helpers.js.map +1 -0
  47. package/dist/functions/app/commands/fn/aggregate.d.ts +11 -0
  48. package/dist/functions/app/commands/fn/aggregate.js +34 -0
  49. package/dist/functions/app/commands/fn/aggregate.js.map +1 -0
  50. package/dist/functions/app/commands/fn/facets.d.ts +15 -0
  51. package/dist/functions/app/commands/fn/facets.js +35 -0
  52. package/dist/functions/app/commands/fn/facets.js.map +1 -0
  53. package/dist/functions/app/commands/fn/group-by.d.ts +10 -0
  54. package/dist/functions/app/commands/fn/group-by.js +38 -0
  55. package/dist/functions/app/commands/fn/group-by.js.map +1 -0
  56. package/dist/functions/app/commands/fn/metadata.d.ts +8 -0
  57. package/dist/functions/app/commands/fn/metadata.js +13 -0
  58. package/dist/functions/app/commands/fn/metadata.js.map +1 -0
  59. package/dist/functions/app/commands/list.d.ts +7 -0
  60. package/dist/functions/app/commands/list.js +24 -0
  61. package/dist/functions/app/commands/list.js.map +1 -0
  62. package/dist/functions/app/commands/loader-hash.d.ts +2 -0
  63. package/dist/functions/app/commands/loader-hash.js +39 -0
  64. package/dist/functions/app/commands/loader-hash.js.map +1 -0
  65. package/dist/functions/app/commands/loaders/add.d.ts +15 -0
  66. package/dist/functions/app/commands/loaders/add.js +27 -0
  67. package/dist/functions/app/commands/loaders/add.js.map +1 -0
  68. package/dist/functions/app/commands/loaders/get.d.ts +12 -0
  69. package/dist/functions/app/commands/loaders/get.js +16 -0
  70. package/dist/functions/app/commands/loaders/get.js.map +1 -0
  71. package/dist/functions/app/commands/loaders/list.d.ts +11 -0
  72. package/dist/functions/app/commands/loaders/list.js +14 -0
  73. package/dist/functions/app/commands/loaders/list.js.map +1 -0
  74. package/dist/functions/app/commands/loaders/process-flags.d.ts +8 -0
  75. package/dist/functions/app/commands/loaders/process-flags.js +31 -0
  76. package/dist/functions/app/commands/loaders/process-flags.js.map +1 -0
  77. package/dist/functions/app/commands/loaders/process.d.ts +14 -0
  78. package/dist/functions/app/commands/loaders/process.js +23 -0
  79. package/dist/functions/app/commands/loaders/process.js.map +1 -0
  80. package/dist/functions/app/commands/loaders/remove.d.ts +12 -0
  81. package/dist/functions/app/commands/loaders/remove.js +16 -0
  82. package/dist/functions/app/commands/loaders/remove.js.map +1 -0
  83. package/dist/functions/app/commands/loaders/resolve-key.d.ts +6 -0
  84. package/dist/functions/app/commands/loaders/resolve-key.js +26 -0
  85. package/dist/functions/app/commands/loaders/resolve-key.js.map +1 -0
  86. package/dist/functions/app/commands/logs.d.ts +10 -0
  87. package/dist/functions/app/commands/logs.js +25 -0
  88. package/dist/functions/app/commands/logs.js.map +1 -0
  89. package/dist/functions/app/commands/models/get.d.ts +11 -0
  90. package/dist/functions/app/commands/models/get.js +12 -0
  91. package/dist/functions/app/commands/models/get.js.map +1 -0
  92. package/dist/functions/app/commands/models/keys.d.ts +10 -0
  93. package/dist/functions/app/commands/models/keys.js +12 -0
  94. package/dist/functions/app/commands/models/keys.js.map +1 -0
  95. package/dist/functions/app/commands/models/remove.d.ts +11 -0
  96. package/dist/functions/app/commands/models/remove.js +12 -0
  97. package/dist/functions/app/commands/models/remove.js.map +1 -0
  98. package/dist/functions/app/commands/models/set.d.ts +12 -0
  99. package/dist/functions/app/commands/models/set.js +23 -0
  100. package/dist/functions/app/commands/models/set.js.map +1 -0
  101. package/dist/functions/app/commands/query/execute.d.ts +19 -0
  102. package/dist/functions/app/commands/query/execute.js +88 -0
  103. package/dist/functions/app/commands/query/execute.js.map +1 -0
  104. package/dist/functions/app/commands/query/one.d.ts +13 -0
  105. package/dist/functions/app/commands/query/one.js +14 -0
  106. package/dist/functions/app/commands/query/one.js.map +1 -0
  107. package/dist/functions/app/commands/query-input.d.ts +1 -0
  108. package/dist/functions/app/commands/query-input.js +12 -0
  109. package/dist/functions/app/commands/query-input.js.map +1 -0
  110. package/dist/functions/app/commands/render.d.ts +44 -0
  111. package/dist/functions/app/commands/render.js +139 -0
  112. package/dist/functions/app/commands/render.js.map +1 -0
  113. package/dist/functions/app/commands/resolve-app.d.ts +12 -0
  114. package/dist/functions/app/commands/resolve-app.js +34 -0
  115. package/dist/functions/app/commands/resolve-app.js.map +1 -0
  116. package/dist/functions/app/commands/resolve-source.d.ts +31 -0
  117. package/dist/functions/app/commands/resolve-source.js +82 -0
  118. package/dist/functions/app/commands/resolve-source.js.map +1 -0
  119. package/dist/functions/app/commands/status.d.ts +12 -0
  120. package/dist/functions/app/commands/status.js +30 -0
  121. package/dist/functions/app/commands/status.js.map +1 -0
  122. package/dist/functions/app/commands/validate-report.d.ts +89 -0
  123. package/dist/functions/app/commands/validate-report.js +65 -0
  124. package/dist/functions/app/commands/validate-report.js.map +1 -0
  125. package/dist/functions/app/commands/validate.d.ts +32 -0
  126. package/dist/functions/app/commands/validate.js +91 -0
  127. package/dist/functions/app/commands/validate.js.map +1 -0
  128. package/dist/functions/app/commands/warn-if-pending.d.ts +3 -0
  129. package/dist/functions/app/commands/warn-if-pending.js +9 -0
  130. package/dist/functions/app/commands/warn-if-pending.js.map +1 -0
  131. package/dist/functions/app/daemon/app-server.module.d.ts +7 -0
  132. package/dist/functions/app/daemon/app-server.module.js +41 -0
  133. package/dist/functions/app/daemon/app-server.module.js.map +1 -0
  134. package/dist/functions/app/daemon/controllers/data.controller.d.ts +94 -0
  135. package/dist/functions/app/daemon/controllers/data.controller.js +134 -0
  136. package/dist/functions/app/daemon/controllers/data.controller.js.map +1 -0
  137. package/dist/functions/app/daemon/controllers/fn.controller.d.ts +21 -0
  138. package/dist/functions/app/daemon/controllers/fn.controller.js +59 -0
  139. package/dist/functions/app/daemon/controllers/fn.controller.js.map +1 -0
  140. package/dist/functions/app/daemon/controllers/lifecycle.controller.d.ts +29 -0
  141. package/dist/functions/app/daemon/controllers/lifecycle.controller.js +65 -0
  142. package/dist/functions/app/daemon/controllers/lifecycle.controller.js.map +1 -0
  143. package/dist/functions/app/daemon/controllers/loaders.controller.d.ts +31 -0
  144. package/dist/functions/app/daemon/controllers/loaders.controller.js +72 -0
  145. package/dist/functions/app/daemon/controllers/loaders.controller.js.map +1 -0
  146. package/dist/functions/app/daemon/controllers/models.controller.d.ts +30 -0
  147. package/dist/functions/app/daemon/controllers/models.controller.js +80 -0
  148. package/dist/functions/app/daemon/controllers/models.controller.js.map +1 -0
  149. package/dist/functions/app/daemon/controllers/query.controller.d.ts +22 -0
  150. package/dist/functions/app/daemon/controllers/query.controller.js +43 -0
  151. package/dist/functions/app/daemon/controllers/query.controller.js.map +1 -0
  152. package/dist/functions/app/daemon/daemon-args.d.ts +13 -0
  153. package/dist/functions/app/daemon/daemon-args.js +38 -0
  154. package/dist/functions/app/daemon/daemon-args.js.map +1 -0
  155. package/dist/functions/app/daemon/filters/envelope-exception.filter.d.ts +4 -0
  156. package/dist/functions/app/daemon/filters/envelope-exception.filter.js +58 -0
  157. package/dist/functions/app/daemon/filters/envelope-exception.filter.js.map +1 -0
  158. package/dist/functions/app/daemon/guards/api-key.guard.d.ts +7 -0
  159. package/dist/functions/app/daemon/guards/api-key.guard.js +26 -0
  160. package/dist/functions/app/daemon/guards/api-key.guard.js.map +1 -0
  161. package/dist/functions/app/daemon/interceptors/pending-changes.interceptor.d.ts +8 -0
  162. package/dist/functions/app/daemon/interceptors/pending-changes.interceptor.js +25 -0
  163. package/dist/functions/app/daemon/interceptors/pending-changes.interceptor.js.map +1 -0
  164. package/dist/functions/app/daemon/main.d.ts +1 -0
  165. package/dist/functions/app/daemon/main.js +86 -0
  166. package/dist/functions/app/daemon/main.js.map +1 -0
  167. package/dist/functions/app/daemon/services/auto-gen.d.ts +7 -0
  168. package/dist/functions/app/daemon/services/auto-gen.js +18 -0
  169. package/dist/functions/app/daemon/services/auto-gen.js.map +1 -0
  170. package/dist/functions/app/daemon/services/dcupl-host.service.d.ts +69 -0
  171. package/dist/functions/app/daemon/services/dcupl-host.service.js +267 -0
  172. package/dist/functions/app/daemon/services/dcupl-host.service.js.map +1 -0
  173. package/dist/functions/app/daemon/services/idle-watchdog.service.d.ts +12 -0
  174. package/dist/functions/app/daemon/services/idle-watchdog.service.js +38 -0
  175. package/dist/functions/app/daemon/services/idle-watchdog.service.js.map +1 -0
  176. package/dist/functions/app/daemon/services/ingest.service.d.ts +12 -0
  177. package/dist/functions/app/daemon/services/ingest.service.js +126 -0
  178. package/dist/functions/app/daemon/services/ingest.service.js.map +1 -0
  179. package/dist/functions/app/daemon/services/init-options.d.ts +16 -0
  180. package/dist/functions/app/daemon/services/init-options.js +56 -0
  181. package/dist/functions/app/daemon/services/init-options.js.map +1 -0
  182. package/dist/functions/app/daemon/services/loaders.service.d.ts +27 -0
  183. package/dist/functions/app/daemon/services/loaders.service.js +169 -0
  184. package/dist/functions/app/daemon/services/loaders.service.js.map +1 -0
  185. package/dist/functions/app/daemon/services/normalize-query.d.ts +11 -0
  186. package/dist/functions/app/daemon/services/normalize-query.js +29 -0
  187. package/dist/functions/app/daemon/services/normalize-query.js.map +1 -0
  188. package/dist/functions/app/e2e/port-lock.d.ts +2 -0
  189. package/dist/functions/app/e2e/port-lock.js +53 -0
  190. package/dist/functions/app/e2e/port-lock.js.map +1 -0
  191. package/dist/functions/app/registry/daemon-log.d.ts +3 -0
  192. package/dist/functions/app/registry/daemon-log.js +32 -0
  193. package/dist/functions/app/registry/daemon-log.js.map +1 -0
  194. package/dist/functions/app/registry/registry.d.ts +15 -0
  195. package/dist/functions/app/registry/registry.js +111 -0
  196. package/dist/functions/app/registry/registry.js.map +1 -0
  197. package/dist/functions/app/registry/serve-registry.d.ts +16 -0
  198. package/dist/functions/app/registry/serve-registry.js +93 -0
  199. package/dist/functions/app/registry/serve-registry.js.map +1 -0
  200. package/dist/functions/app/types.d.ts +124 -0
  201. package/dist/functions/app/types.js +3 -0
  202. package/dist/functions/app/types.js.map +1 -0
  203. package/dist/functions/config/commands/get.d.ts +14 -0
  204. package/dist/functions/config/commands/get.js +46 -0
  205. package/dist/functions/config/commands/get.js.map +1 -0
  206. package/dist/functions/config/commands/set.d.ts +7 -0
  207. package/dist/functions/config/commands/set.js +66 -0
  208. package/dist/functions/config/commands/set.js.map +1 -0
  209. package/dist/functions/config/io.d.ts +6 -0
  210. package/dist/functions/config/io.js +35 -0
  211. package/dist/functions/config/io.js.map +1 -0
  212. package/dist/functions/config/prompts.d.ts +7 -0
  213. package/dist/functions/config/prompts.js +51 -0
  214. package/dist/functions/config/prompts.js.map +1 -0
  215. package/dist/functions/files/commands/copy.d.ts +22 -0
  216. package/dist/functions/files/commands/copy.js +21 -0
  217. package/dist/functions/files/commands/copy.js.map +1 -0
  218. package/dist/functions/files/commands/create-folder.d.ts +19 -0
  219. package/dist/functions/files/commands/create-folder.js +19 -0
  220. package/dist/functions/files/commands/create-folder.js.map +1 -0
  221. package/dist/functions/files/commands/delete.d.ts +21 -0
  222. package/dist/functions/files/commands/delete.js +37 -0
  223. package/dist/functions/files/commands/delete.js.map +1 -0
  224. package/dist/functions/files/commands/list.d.ts +20 -0
  225. package/dist/functions/files/commands/list.js +29 -0
  226. package/dist/functions/files/commands/list.js.map +1 -0
  227. package/dist/functions/files/commands/move.d.ts +24 -0
  228. package/dist/functions/files/commands/move.js +37 -0
  229. package/dist/functions/files/commands/move.js.map +1 -0
  230. package/dist/functions/files/commands/pull.d.ts +31 -0
  231. package/dist/functions/files/commands/pull.js +132 -0
  232. package/dist/functions/files/commands/pull.js.map +1 -0
  233. package/dist/functions/files/commands/push.d.ts +30 -0
  234. package/dist/functions/files/commands/push.js +116 -0
  235. package/dist/functions/files/commands/push.js.map +1 -0
  236. package/dist/functions/files/commands/read.d.ts +19 -0
  237. package/dist/functions/files/commands/read.js +25 -0
  238. package/dist/functions/files/commands/read.js.map +1 -0
  239. package/dist/functions/files/commands/render.d.ts +89 -0
  240. package/dist/functions/files/commands/render.js +229 -0
  241. package/dist/functions/files/commands/render.js.map +1 -0
  242. package/dist/functions/files/commands/status.d.ts +23 -0
  243. package/dist/functions/files/commands/status.js +58 -0
  244. package/dist/functions/files/commands/status.js.map +1 -0
  245. package/dist/functions/files/commands/versions/copy.d.ts +8 -0
  246. package/dist/functions/files/commands/versions/copy.js +34 -0
  247. package/dist/functions/files/commands/versions/copy.js.map +1 -0
  248. package/dist/functions/files/commands/versions/delete.d.ts +7 -0
  249. package/dist/functions/files/commands/versions/delete.js +35 -0
  250. package/dist/functions/files/commands/versions/delete.js.map +1 -0
  251. package/dist/functions/files/commands/versions/list.d.ts +3 -0
  252. package/dist/functions/files/commands/versions/list.js +10 -0
  253. package/dist/functions/files/commands/versions/list.js.map +1 -0
  254. package/dist/functions/files/commands/write.d.ts +24 -0
  255. package/dist/functions/files/commands/write.js +36 -0
  256. package/dist/functions/files/commands/write.js.map +1 -0
  257. package/dist/functions/files/files-pull.d.ts +26 -2
  258. package/dist/functions/files/files-pull.js +100 -30
  259. package/dist/functions/files/files-pull.js.map +1 -1
  260. package/dist/functions/files/files-push.d.ts +3 -1
  261. package/dist/functions/files/files-push.js +64 -48
  262. package/dist/functions/files/files-push.js.map +1 -1
  263. package/dist/functions/files/helper/confirm.d.ts +5 -0
  264. package/dist/functions/files/helper/confirm.js +14 -0
  265. package/dist/functions/files/helper/confirm.js.map +1 -0
  266. package/dist/functions/files/helper/resolve-version.d.ts +5 -0
  267. package/dist/functions/files/helper/resolve-version.js +15 -0
  268. package/dist/functions/files/helper/resolve-version.js.map +1 -0
  269. package/dist/functions/files/sync/baseline-derive.d.ts +3 -0
  270. package/dist/functions/files/sync/baseline-derive.js +49 -0
  271. package/dist/functions/files/sync/baseline-derive.js.map +1 -0
  272. package/dist/functions/files/sync/diff.d.ts +9 -0
  273. package/dist/functions/files/sync/diff.js +80 -0
  274. package/dist/functions/files/sync/diff.js.map +1 -0
  275. package/dist/functions/files/sync/manifest.d.ts +12 -0
  276. package/dist/functions/files/sync/manifest.js +74 -0
  277. package/dist/functions/files/sync/manifest.js.map +1 -0
  278. package/dist/functions/files/sync/scope.d.ts +4 -0
  279. package/dist/functions/files/sync/scope.js +44 -0
  280. package/dist/functions/files/sync/scope.js.map +1 -0
  281. package/dist/functions/files/sync/state.d.ts +8 -0
  282. package/dist/functions/files/sync/state.js +74 -0
  283. package/dist/functions/files/sync/state.js.map +1 -0
  284. package/dist/functions/files/sync/transfer.d.ts +47 -0
  285. package/dist/functions/files/sync/transfer.js +132 -0
  286. package/dist/functions/files/sync/transfer.js.map +1 -0
  287. package/dist/functions/files/sync/types.d.ts +41 -0
  288. package/dist/functions/files/sync/types.js +3 -0
  289. package/dist/functions/files/sync/types.js.map +1 -0
  290. package/dist/functions/files/test-helpers.d.ts +13 -0
  291. package/dist/functions/files/test-helpers.js +34 -0
  292. package/dist/functions/files/test-helpers.js.map +1 -0
  293. package/dist/functions/generate/files/generate-code.d.ts +3 -1
  294. package/dist/functions/generate/files/generate-code.js +2 -0
  295. package/dist/functions/generate/files/generate-code.js.map +1 -1
  296. package/dist/functions/generate/files/generate-files.d.ts +12 -2
  297. package/dist/functions/generate/files/generate-files.js +155 -224
  298. package/dist/functions/generate/files/generate-files.js.map +1 -1
  299. package/dist/functions/generate/files/generate.helper.d.ts +2 -2
  300. package/dist/functions/generate/files/generate.helper.js +5 -7
  301. package/dist/functions/generate/files/generate.helper.js.map +1 -1
  302. package/dist/functions/generate/model-from-data/generate-model-from-data.d.ts +10 -0
  303. package/dist/functions/generate/model-from-data/generate-model-from-data.js +184 -0
  304. package/dist/functions/generate/model-from-data/generate-model-from-data.js.map +1 -0
  305. package/dist/functions/generate/model-from-data/infer-key.d.ts +19 -0
  306. package/dist/functions/generate/model-from-data/infer-key.js +54 -0
  307. package/dist/functions/generate/model-from-data/infer-key.js.map +1 -0
  308. package/dist/functions/generate/model-from-data/infer-to-model.d.ts +6 -0
  309. package/dist/functions/generate/model-from-data/infer-to-model.js +59 -0
  310. package/dist/functions/generate/model-from-data/infer-to-model.js.map +1 -0
  311. package/dist/functions/generate/projects/generate-project.d.ts +12 -1
  312. package/dist/functions/generate/projects/generate-project.js +338 -65
  313. package/dist/functions/generate/projects/generate-project.js.map +1 -1
  314. package/dist/functions/helper/api-client.d.ts +18 -0
  315. package/dist/functions/helper/api-client.js +88 -0
  316. package/dist/functions/helper/api-client.js.map +1 -0
  317. package/dist/functions/helper/config.helper.d.ts +15 -2
  318. package/dist/functions/helper/config.helper.js +20 -5
  319. package/dist/functions/helper/config.helper.js.map +1 -1
  320. package/dist/functions/helper/output.d.ts +9 -0
  321. package/dist/functions/helper/output.js +71 -0
  322. package/dist/functions/helper/output.js.map +1 -0
  323. package/dist/functions/helper/parse-fail.d.ts +11 -0
  324. package/dist/functions/helper/parse-fail.js +106 -0
  325. package/dist/functions/helper/parse-fail.js.map +1 -0
  326. package/dist/functions/schemas/command.d.ts +21 -0
  327. package/dist/functions/schemas/command.js +57 -0
  328. package/dist/functions/schemas/command.js.map +1 -0
  329. package/dist/functions/schemas/examples/AppLoaderConfiguration.example.json +18 -0
  330. package/dist/functions/schemas/examples/DataMapperStepConfig.example.json +1 -0
  331. package/dist/functions/schemas/examples/ModelDefinition.example.json +21 -0
  332. package/dist/functions/schemas/examples/RequestStepConfig.example.json +1 -0
  333. package/dist/functions/schemas/examples/ResponseScriptConfig.example.json +1 -0
  334. package/dist/functions/schemas/examples/ScriptStepConfig.example.json +1 -0
  335. package/dist/functions/schemas/examples/TemplateV3.example.json +62 -0
  336. package/dist/functions/schemas/examples/TriggerRequestConfig.example.json +1 -0
  337. package/dist/functions/schemas/examples/WorkflowConfigV3.example.json +53 -0
  338. package/dist/functions/schemas/extract.d.ts +2 -0
  339. package/dist/functions/schemas/extract.js +68 -0
  340. package/dist/functions/schemas/extract.js.map +1 -0
  341. package/dist/functions/schemas/format.d.ts +8 -0
  342. package/dist/functions/schemas/format.js +53 -0
  343. package/dist/functions/schemas/format.js.map +1 -0
  344. package/dist/functions/schemas/registry.d.ts +15 -0
  345. package/dist/functions/schemas/registry.js +179 -0
  346. package/dist/functions/schemas/registry.js.map +1 -0
  347. package/dist/functions/schemas/resolve.d.ts +10 -0
  348. package/dist/functions/schemas/resolve.js +28 -0
  349. package/dist/functions/schemas/resolve.js.map +1 -0
  350. package/dist/functions/serve/commands/list.d.ts +9 -0
  351. package/dist/functions/serve/commands/list.js +44 -0
  352. package/dist/functions/serve/commands/list.js.map +1 -0
  353. package/dist/functions/serve/commands/stop.d.ts +11 -0
  354. package/dist/functions/serve/commands/stop.js +34 -0
  355. package/dist/functions/serve/commands/stop.js.map +1 -0
  356. package/dist/functions/serve/dev-server/dev-server.controller.d.ts +11 -8
  357. package/dist/functions/serve/dev-server/dev-server.controller.js +10 -10
  358. package/dist/functions/serve/dev-server/dev-server.controller.js.map +1 -1
  359. package/dist/functions/serve/dev-server/dev-server.module.js +2 -2
  360. package/dist/functions/serve/dev-server/dev-server.module.js.map +1 -1
  361. package/dist/functions/serve/dev-server/dev-server.service.d.ts +8 -6
  362. package/dist/functions/serve/dev-server/dev-server.service.js +25 -19
  363. package/dist/functions/serve/dev-server/dev-server.service.js.map +1 -1
  364. package/dist/functions/serve/main.d.ts +1 -0
  365. package/dist/functions/serve/main.js +19 -2
  366. package/dist/functions/serve/main.js.map +1 -1
  367. package/dist/functions/serve/serve-self-register.d.ts +9 -0
  368. package/dist/functions/serve/serve-self-register.js +30 -0
  369. package/dist/functions/serve/serve-self-register.js.map +1 -0
  370. package/dist/functions/testing/testing-helper.d.ts +1 -1
  371. package/dist/functions/testing/testing-helper.js.map +1 -1
  372. package/dist/functions/testing/testing.d.ts +2 -1
  373. package/dist/functions/testing/testing.js +7 -6
  374. package/dist/functions/testing/testing.js.map +1 -1
  375. package/dist/functions/version/command.d.ts +17 -0
  376. package/dist/functions/version/command.js +54 -0
  377. package/dist/functions/version/command.js.map +1 -0
  378. package/dist/functions/welcome.js.map +1 -1
  379. package/dist/functions/workflow/commands/deploy.d.ts +29 -0
  380. package/dist/functions/workflow/commands/deploy.js +54 -0
  381. package/dist/functions/workflow/commands/deploy.js.map +1 -0
  382. package/dist/functions/workflow/commands/get.d.ts +10 -0
  383. package/dist/functions/workflow/commands/get.js +10 -0
  384. package/dist/functions/workflow/commands/get.js.map +1 -0
  385. package/dist/functions/workflow/commands/history.d.ts +10 -0
  386. package/dist/functions/workflow/commands/history.js +25 -0
  387. package/dist/functions/workflow/commands/history.js.map +1 -0
  388. package/dist/functions/workflow/commands/list.d.ts +7 -0
  389. package/dist/functions/workflow/commands/list.js +11 -0
  390. package/dist/functions/workflow/commands/list.js.map +1 -0
  391. package/dist/functions/workflow/commands/runners-get.d.ts +10 -0
  392. package/dist/functions/workflow/commands/runners-get.js +10 -0
  393. package/dist/functions/workflow/commands/runners-get.js.map +1 -0
  394. package/dist/functions/workflow/commands/runners.d.ts +7 -0
  395. package/dist/functions/workflow/commands/runners.js +11 -0
  396. package/dist/functions/workflow/commands/runners.js.map +1 -0
  397. package/dist/functions/workflow/commands/status.d.ts +10 -0
  398. package/dist/functions/workflow/commands/status.js +10 -0
  399. package/dist/functions/workflow/commands/status.js.map +1 -0
  400. package/dist/functions/workflow/commands/template.d.ts +9 -0
  401. package/dist/functions/workflow/commands/template.js +10 -0
  402. package/dist/functions/workflow/commands/template.js.map +1 -0
  403. package/dist/functions/workflow/commands/test.d.ts +36 -0
  404. package/dist/functions/workflow/commands/test.js +158 -0
  405. package/dist/functions/workflow/commands/test.js.map +1 -0
  406. package/dist/functions/workflow/commands/trace.d.ts +11 -0
  407. package/dist/functions/workflow/commands/trace.js +24 -0
  408. package/dist/functions/workflow/commands/trace.js.map +1 -0
  409. package/dist/functions/workflow/commands/undeploy.d.ts +13 -0
  410. package/dist/functions/workflow/commands/undeploy.js +17 -0
  411. package/dist/functions/workflow/commands/undeploy.js.map +1 -0
  412. package/dist/functions/workflow/commands/validate.d.ts +18 -0
  413. package/dist/functions/workflow/commands/validate.js +35 -0
  414. package/dist/functions/workflow/commands/validate.js.map +1 -0
  415. package/dist/functions/workflow/template-io.d.ts +2 -0
  416. package/dist/functions/workflow/template-io.js +25 -0
  417. package/dist/functions/workflow/template-io.js.map +1 -0
  418. package/dist/functions/workflow/trace.d.ts +20 -0
  419. package/dist/functions/workflow/trace.js +82 -0
  420. package/dist/functions/workflow/trace.js.map +1 -0
  421. package/dist/functions/workflow/types.d.ts +27 -0
  422. package/dist/functions/workflow/types.js +3 -0
  423. package/dist/functions/workflow/types.js.map +1 -0
  424. package/dist/functions/workflow/validate.d.ts +2 -0
  425. package/dist/functions/workflow/validate.js +37 -0
  426. package/dist/functions/workflow/validate.js.map +1 -0
  427. package/dist/functions/workflow/wait-for-swap.d.ts +27 -0
  428. package/dist/functions/workflow/wait-for-swap.js +33 -0
  429. package/dist/functions/workflow/wait-for-swap.js.map +1 -0
  430. package/dist/functions/workflow/workflow-api.d.ts +27 -0
  431. package/dist/functions/workflow/workflow-api.js +68 -0
  432. package/dist/functions/workflow/workflow-api.js.map +1 -0
  433. package/dist/index.js +9 -102
  434. package/dist/index.js.map +1 -1
  435. package/files/common/dcupl.config.json +3 -2
  436. package/files/common/readme.md +1 -1
  437. package/files/dev-server/index.html +6 -6
  438. package/files/starters/starter_empty/dcupl/api/.gitkeep +0 -0
  439. package/files/starters/starter_empty/dcupl/data/.gitkeep +0 -0
  440. package/files/starters/starter_empty/dcupl/dcupl.lc.json +10 -0
  441. package/files/starters/starter_empty/dcupl/models/.gitkeep +0 -0
  442. package/files/starters/starter_empty/dcupl/workflows/.gitkeep +0 -0
  443. package/files/starters/starter_empty/dcupl.config.json +11 -0
  444. package/files/starters/starter_empty/package.json +14 -0
  445. package/package.json +60 -36
  446. package/dist/functions/files/files-copy.d.ts +0 -5
  447. package/dist/functions/files/files-copy.js +0 -43
  448. package/dist/functions/files/files-copy.js.map +0 -1
  449. package/dist/functions/files/files-list-versions.d.ts +0 -2
  450. package/dist/functions/files/files-list-versions.js +0 -39
  451. package/dist/functions/files/files-list-versions.js.map +0 -1
  452. package/dist/functions/start-dcupl/start-dcupl.d.ts +0 -7
  453. package/dist/functions/start-dcupl/start-dcupl.js +0 -51
  454. package/dist/functions/start-dcupl/start-dcupl.js.map +0 -1
  455. package/dist/functions/testing/tests/generated-completeness.spec.d.ts +0 -1
  456. package/dist/functions/testing/tests/generated-completeness.spec.js +0 -143
  457. package/dist/functions/testing/tests/generated-completeness.spec.js.map +0 -1
  458. package/dist/functions/testing/tests/model_tests.spec.d.ts +0 -1
  459. package/dist/functions/testing/tests/model_tests.spec.js +0 -92
  460. package/dist/functions/testing/tests/model_tests.spec.js.map +0 -1
package/README.md CHANGED
@@ -0,0 +1,107 @@
1
+ # dcupl CLI
2
+
3
+ The official command-line interface for the dcupl platform.
4
+
5
+ ## File sync (`dcupl files <subcommand>`)
6
+
7
+ Incremental, conflict-aware sync of project files between your local workspace
8
+ and the dcupl cloud. Transfers only files whose content changed since the last
9
+ sync.
10
+
11
+ ### Commands
12
+
13
+ - `dcupl files status [--name <versionId>]` — show local vs server differences. Read-only.
14
+ - `dcupl files push [--name <versionId>] [--mode additive|strict] [--yes] [--force]` — upload changed files.
15
+ - `dcupl files pull [--name <versionId>] [--mode additive|strict] [--yes] [--force]` — download changed files. Switches versions when `--name` differs from the current HEAD.
16
+
17
+ ### Flag convention
18
+
19
+ Single-target subcommands (`read`, `write`, `delete`) take `--path`. Source-and-target subcommands (`copy`, `move`, `versions copy`) take `--from` and `--to`. `push` takes a repeatable `--path` flag that scopes the push to specific files/folders/globs. Destructive remote subcommands (`delete`, `move`, `versions copy`, `versions delete`) accept `--yes` (skip the confirmation prompt) and `--dry-run` (preview without executing). `files list` accepts `--tree` for a nested directory view; the default output is a flat sorted path list, one per line.
20
+
21
+ ### Modes
22
+
23
+ - `additive` (default) — never deletes. Push only uploads new + changed files; pull only downloads new + changed files.
24
+ - `strict` — also mirrors deletions. `push --mode strict` removes server files no longer present locally; `pull --mode strict` removes local files no longer on the server. Always prompts before deleting; pass `--yes` to skip the prompt in CI.
25
+
26
+ ### Conflicts
27
+
28
+ When both sides changed the same file since the last sync, the operation aborts and reports the conflict paths. Resolve by:
29
+
30
+ - `push --force` — keep your local copy (overwrites server)
31
+ - `pull --force` — take the server copy (overwrites local)
32
+
33
+ ### Local state
34
+
35
+ The CLI tracks per-version sync state in `.dcupl/sync-state/`:
36
+
37
+ - `HEAD` — the version this workspace is currently bound to
38
+ - `<versionId>.json` — baseline ledger for each version that has been synced
39
+
40
+ Add this to your project's `.gitignore`:
41
+
42
+ ```
43
+ .dcupl/sync-state/
44
+ ```
45
+
46
+ ### Production version
47
+
48
+ Pushing directly to `production` is rejected. Push to a named version, then promote with the existing copy-version flow.
49
+
50
+ ### Legacy commands
51
+
52
+ `dcupl files:push` and `dcupl files:pull` (with the colon syntax) are the original zip-based commands. They keep their existing behavior unchanged. Prefer the new `dcupl files <subcommand>` commands for new workflows.
53
+
54
+ ## CLI Lifecycle Contract
55
+
56
+ The dcupl CLI mirrors the dcupl SDK's declarative model: the SDK separates
57
+ `init()` from `update()`, and so does the CLI. Mutations **stage** changes;
58
+ processing them into queryable indexes is an explicit step.
59
+
60
+ ### Manual mode (default)
61
+
62
+ `dcupl app create` starts an app in manual mode. `data`, `models`, and
63
+ `loaders process` commands stage changes but do **not** rebuild. Run
64
+ `dcupl app build` (the CLI's `dcupl.update()`) to apply them.
65
+
66
+ ```
67
+ dcupl app create
68
+ dcupl app data upsert --file products.csv --model Product --key-property id
69
+ dcupl app build # processes the staged data
70
+ dcupl app query execute --model Product
71
+ ```
72
+
73
+ When an app holds staged-but-unbuilt changes, mutation and query commands print
74
+ `⚠ pending changes — run dcupl app build`, and `dcupl app status` reports
75
+ `pendingChanges: true`.
76
+
77
+ ### Auto-update mode (opt-in)
78
+
79
+ `dcupl app create --auto-update` starts an app that runs `update()`
80
+ automatically after every mutation — convenient for interactive exploration:
81
+
82
+ ```
83
+ dcupl app create --auto-update
84
+ dcupl app data upsert --file products.csv --model Product --key-property id
85
+ dcupl app query execute --model Product # data already built
86
+ ```
87
+
88
+ The mode is fixed at creation time; there is no command to change it on a
89
+ running app.
90
+
91
+ ### Lifecycle calls that remain automatic — by design
92
+
93
+ Two SDK lifecycle interactions are intentionally **not** gated by app mode:
94
+
95
+ - **Daemon `init()` on startup** — equivalent to `new Dcupl()`. It initializes
96
+ an empty SDK that processes nothing; the daemon must be a live SDK instance to
97
+ accept any command.
98
+ - **Auto-gen `upsert`→`set` switch** — when `--auto-generate-properties` is used,
99
+ the first data call for a new model is applied as a `set` so the SDK infers
100
+ its schema. This is internal to the opt-in auto-gen feature, not lifecycle the
101
+ user controls.
102
+
103
+ Note that `dcupl app create --load` is a convenience that chains loader
104
+ add → process — it does **not** force a build. The loader's `process` step
105
+ respects app mode like any other mutation: in manual mode the app is left with
106
+ pending changes, so run `dcupl app build` (or pass `--auto-update`) to make the
107
+ loaded data queryable.
package/dist/cli.d.ts ADDED
@@ -0,0 +1,4 @@
1
+ import yargs from 'yargs';
2
+ export declare function buildCli(rawArgs: string[]): yargs.Argv<{
3
+ json: boolean;
4
+ }>;