@dcupl/cli 1.3.2 → 1.4.0-beta.1

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