@dcupl/cli 1.4.0-beta.2 → 1.4.0-beta.21

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 (281) hide show
  1. package/README.md +30 -23
  2. package/dist/cli.d.ts +2 -0
  3. package/dist/cli.js +748 -213
  4. package/dist/cli.js.map +1 -1
  5. package/dist/functions/app/app-id.js +34 -2
  6. package/dist/functions/app/app-id.js.map +1 -1
  7. package/dist/functions/app/client/daemon-client.js.map +1 -1
  8. package/dist/functions/app/commands/cdn-host.d.ts +16 -0
  9. package/dist/functions/app/commands/cdn-host.js +47 -0
  10. package/dist/functions/app/commands/cdn-host.js.map +1 -0
  11. package/dist/functions/app/commands/create.js +50 -34
  12. package/dist/functions/app/commands/create.js.map +1 -1
  13. package/dist/functions/app/commands/data/render.d.ts +3 -1
  14. package/dist/functions/app/commands/data/render.js +9 -1
  15. package/dist/functions/app/commands/data/render.js.map +1 -1
  16. package/dist/functions/app/commands/destroy.js +10 -4
  17. package/dist/functions/app/commands/destroy.js.map +1 -1
  18. package/dist/functions/app/commands/detect-serve.js +17 -6
  19. package/dist/functions/app/commands/detect-serve.js.map +1 -1
  20. package/dist/functions/app/commands/fn/_fn-helpers.js +11 -3
  21. package/dist/functions/app/commands/fn/_fn-helpers.js.map +1 -1
  22. package/dist/functions/app/commands/fn/aggregate.js +4 -1
  23. package/dist/functions/app/commands/fn/aggregate.js.map +1 -1
  24. package/dist/functions/app/commands/fn/group-by.js +4 -2
  25. package/dist/functions/app/commands/fn/group-by.js.map +1 -1
  26. package/dist/functions/app/commands/fn/pivot.js.map +1 -1
  27. package/dist/functions/app/commands/list.js +6 -2
  28. package/dist/functions/app/commands/list.js.map +1 -1
  29. package/dist/functions/app/commands/loader-hash.js.map +1 -1
  30. package/dist/functions/app/commands/loaders/add.js +6 -0
  31. package/dist/functions/app/commands/loaders/add.js.map +1 -1
  32. package/dist/functions/app/commands/loaders/process-flags.js +4 -1
  33. package/dist/functions/app/commands/loaders/process-flags.js.map +1 -1
  34. package/dist/functions/app/commands/loaders/process.js +3 -1
  35. package/dist/functions/app/commands/loaders/process.js.map +1 -1
  36. package/dist/functions/app/commands/loaders/remove.js +2 -0
  37. package/dist/functions/app/commands/loaders/remove.js.map +1 -1
  38. package/dist/functions/app/commands/models/get.js.map +1 -1
  39. package/dist/functions/app/commands/models/keys.js.map +1 -1
  40. package/dist/functions/app/commands/models/remove.js.map +1 -1
  41. package/dist/functions/app/commands/models/set.js +3 -1
  42. package/dist/functions/app/commands/models/set.js.map +1 -1
  43. package/dist/functions/app/commands/query/execute.js +7 -15
  44. package/dist/functions/app/commands/query/execute.js.map +1 -1
  45. package/dist/functions/app/commands/query/one.js +3 -1
  46. package/dist/functions/app/commands/query/one.js.map +1 -1
  47. package/dist/functions/app/commands/query-input.d.ts +1 -0
  48. package/dist/functions/app/commands/query-input.js +15 -2
  49. package/dist/functions/app/commands/query-input.js.map +1 -1
  50. package/dist/functions/app/commands/render.js +10 -4
  51. package/dist/functions/app/commands/render.js.map +1 -1
  52. package/dist/functions/app/commands/resolve-app.js.map +1 -1
  53. package/dist/functions/app/commands/resolve-source.d.ts +1 -0
  54. package/dist/functions/app/commands/resolve-source.js +20 -5
  55. package/dist/functions/app/commands/resolve-source.js.map +1 -1
  56. package/dist/functions/app/commands/sort-input.d.ts +5 -0
  57. package/dist/functions/app/commands/sort-input.js +34 -0
  58. package/dist/functions/app/commands/sort-input.js.map +1 -0
  59. package/dist/functions/app/commands/validate-report.d.ts +31 -0
  60. package/dist/functions/app/commands/validate-report.js +20 -1
  61. package/dist/functions/app/commands/validate-report.js.map +1 -1
  62. package/dist/functions/app/commands/validate.d.ts +1 -0
  63. package/dist/functions/app/commands/validate.js +31 -10
  64. package/dist/functions/app/commands/validate.js.map +1 -1
  65. package/dist/functions/app/daemon/app-server.module.js +6 -1
  66. package/dist/functions/app/daemon/app-server.module.js.map +1 -1
  67. package/dist/functions/app/daemon/controllers/data.controller.d.ts +3 -4
  68. package/dist/functions/app/daemon/controllers/data.controller.js +18 -7
  69. package/dist/functions/app/daemon/controllers/data.controller.js.map +1 -1
  70. package/dist/functions/app/daemon/controllers/lifecycle.controller.js.map +1 -1
  71. package/dist/functions/app/daemon/controllers/loaders.controller.js +1 -1
  72. package/dist/functions/app/daemon/controllers/loaders.controller.js.map +1 -1
  73. package/dist/functions/app/daemon/controllers/query.controller.js +4 -1
  74. package/dist/functions/app/daemon/controllers/query.controller.js.map +1 -1
  75. package/dist/functions/app/daemon/daemon-args.js +2 -2
  76. package/dist/functions/app/daemon/daemon-args.js.map +1 -1
  77. package/dist/functions/app/daemon/filters/envelope-exception.filter.js +6 -1
  78. package/dist/functions/app/daemon/filters/envelope-exception.filter.js.map +1 -1
  79. package/dist/functions/app/daemon/main.js +14 -7
  80. package/dist/functions/app/daemon/main.js.map +1 -1
  81. package/dist/functions/app/daemon/services/attribute-validation.js +6 -3
  82. package/dist/functions/app/daemon/services/attribute-validation.js.map +1 -1
  83. package/dist/functions/app/daemon/services/csv-delimiter.d.ts +15 -0
  84. package/dist/functions/app/daemon/services/csv-delimiter.js +99 -0
  85. package/dist/functions/app/daemon/services/csv-delimiter.js.map +1 -0
  86. package/dist/functions/app/daemon/services/dcupl-host.service.d.ts +15 -2
  87. package/dist/functions/app/daemon/services/dcupl-host.service.js +137 -27
  88. package/dist/functions/app/daemon/services/dcupl-host.service.js.map +1 -1
  89. package/dist/functions/app/daemon/services/group-sort.d.ts +25 -0
  90. package/dist/functions/app/daemon/services/group-sort.js +128 -0
  91. package/dist/functions/app/daemon/services/group-sort.js.map +1 -0
  92. package/dist/functions/app/daemon/services/idle-watchdog.service.js.map +1 -1
  93. package/dist/functions/app/daemon/services/ingest.service.d.ts +1 -0
  94. package/dist/functions/app/daemon/services/ingest.service.js +17 -11
  95. package/dist/functions/app/daemon/services/ingest.service.js.map +1 -1
  96. package/dist/functions/app/daemon/services/init-options.js.map +1 -1
  97. package/dist/functions/app/daemon/services/loaders.service.d.ts +4 -2
  98. package/dist/functions/app/daemon/services/loaders.service.js +29 -7
  99. package/dist/functions/app/daemon/services/loaders.service.js.map +1 -1
  100. package/dist/functions/app/daemon/services/normalize-query.d.ts +11 -2
  101. package/dist/functions/app/daemon/services/normalize-query.js +55 -4
  102. package/dist/functions/app/daemon/services/normalize-query.js.map +1 -1
  103. package/dist/functions/app/daemon/services/staged-keys.d.ts +12 -0
  104. package/dist/functions/app/daemon/services/staged-keys.js +72 -0
  105. package/dist/functions/app/daemon/services/staged-keys.js.map +1 -0
  106. package/dist/functions/app/e2e/port-lock.js +23 -9
  107. package/dist/functions/app/e2e/port-lock.js.map +1 -1
  108. package/dist/functions/app/registry/registry.js +11 -10
  109. package/dist/functions/app/registry/registry.js.map +1 -1
  110. package/dist/functions/app/registry/serve-registry.js +13 -9
  111. package/dist/functions/app/registry/serve-registry.js.map +1 -1
  112. package/dist/functions/app/types.d.ts +2 -0
  113. package/dist/functions/config/commands/set.js +4 -4
  114. package/dist/functions/config/commands/set.js.map +1 -1
  115. package/dist/functions/config/io.js +1 -3
  116. package/dist/functions/config/io.js.map +1 -1
  117. package/dist/functions/config/prompts.d.ts +2 -1
  118. package/dist/functions/config/prompts.js +1 -3
  119. package/dist/functions/config/prompts.js.map +1 -1
  120. package/dist/functions/files/commands/pull.d.ts +2 -0
  121. package/dist/functions/files/commands/pull.js +40 -16
  122. package/dist/functions/files/commands/pull.js.map +1 -1
  123. package/dist/functions/files/commands/push.d.ts +1 -0
  124. package/dist/functions/files/commands/push.js +20 -0
  125. package/dist/functions/files/commands/push.js.map +1 -1
  126. package/dist/functions/files/commands/read.js +2 -1
  127. package/dist/functions/files/commands/read.js.map +1 -1
  128. package/dist/functions/files/commands/write.js +12 -2
  129. package/dist/functions/files/commands/write.js.map +1 -1
  130. package/dist/functions/files/files-push.js +1 -1
  131. package/dist/functions/files/files-push.js.map +1 -1
  132. package/dist/functions/files/helper/confirm.js +2 -3
  133. package/dist/functions/files/helper/confirm.js.map +1 -1
  134. package/dist/functions/files/helper/text-policy.d.ts +5 -0
  135. package/dist/functions/files/helper/text-policy.js +31 -0
  136. package/dist/functions/files/helper/text-policy.js.map +1 -0
  137. package/dist/functions/files/sync/large-upload.d.ts +20 -0
  138. package/dist/functions/files/sync/large-upload.js +140 -0
  139. package/dist/functions/files/sync/large-upload.js.map +1 -0
  140. package/dist/functions/files/sync/manifest.js +2 -1
  141. package/dist/functions/files/sync/manifest.js.map +1 -1
  142. package/dist/functions/files/sync/transfer.d.ts +5 -0
  143. package/dist/functions/files/sync/transfer.js +47 -10
  144. package/dist/functions/files/sync/transfer.js.map +1 -1
  145. package/dist/functions/generate/files/generate-code.js +0 -1
  146. package/dist/functions/generate/files/generate-code.js.map +1 -1
  147. package/dist/functions/generate/files/generate-files.d.ts +10 -1
  148. package/dist/functions/generate/files/generate-files.js +154 -43
  149. package/dist/functions/generate/files/generate-files.js.map +1 -1
  150. package/dist/functions/generate/files/generate-schema.js +1 -1
  151. package/dist/functions/generate/files/generate-schema.js.map +1 -1
  152. package/dist/functions/generate/files/generate.helper.d.ts +9 -3
  153. package/dist/functions/generate/files/generate.helper.js +11 -8
  154. package/dist/functions/generate/files/generate.helper.js.map +1 -1
  155. package/dist/functions/generate/files/rest-api-template.d.ts +16 -0
  156. package/dist/functions/generate/files/rest-api-template.js +63 -0
  157. package/dist/functions/generate/files/rest-api-template.js.map +1 -0
  158. package/dist/functions/generate/files/script-starters.d.ts +7 -0
  159. package/dist/functions/generate/files/script-starters.js +75 -0
  160. package/dist/functions/generate/files/script-starters.js.map +1 -0
  161. package/dist/functions/generate/files/workflow-presets.js +2 -1
  162. package/dist/functions/generate/files/workflow-presets.js.map +1 -1
  163. package/dist/functions/generate/model-from-data/generate-model-from-data.d.ts +1 -0
  164. package/dist/functions/generate/model-from-data/generate-model-from-data.js +74 -6
  165. package/dist/functions/generate/model-from-data/generate-model-from-data.js.map +1 -1
  166. package/dist/functions/generate/model-from-data/infer-key.js +1 -4
  167. package/dist/functions/generate/model-from-data/infer-key.js.map +1 -1
  168. package/dist/functions/generate/model-from-data/infer-to-model.js +1 -2
  169. package/dist/functions/generate/model-from-data/infer-to-model.js.map +1 -1
  170. package/dist/functions/generate/projects/generate-project.js +18 -13
  171. package/dist/functions/generate/projects/generate-project.js.map +1 -1
  172. package/dist/functions/helper/api-client.d.ts +4 -0
  173. package/dist/functions/helper/api-client.js +18 -5
  174. package/dist/functions/helper/api-client.js.map +1 -1
  175. package/dist/functions/helper/config.helper.d.ts +1 -0
  176. package/dist/functions/helper/config.helper.js +1 -1
  177. package/dist/functions/helper/config.helper.js.map +1 -1
  178. package/dist/functions/helper/output.js +3 -1
  179. package/dist/functions/helper/output.js.map +1 -1
  180. package/dist/functions/helper/parse-fail.js +4 -1
  181. package/dist/functions/helper/parse-fail.js.map +1 -1
  182. package/dist/functions/helper/prompt.d.ts +2 -0
  183. package/dist/functions/helper/prompt.js +8 -0
  184. package/dist/functions/helper/prompt.js.map +1 -0
  185. package/dist/functions/schemas/command.js.map +1 -1
  186. package/dist/functions/schemas/examples/AppLoaderConfiguration.example.json +1 -3
  187. package/dist/functions/schemas/examples/DataMapperStepConfig.example.json +6 -1
  188. package/dist/functions/schemas/examples/ModelDefinition.example.json +8 -1
  189. package/dist/functions/schemas/examples/ResponseScriptConfig.example.json +1 -1
  190. package/dist/functions/schemas/examples/RestApiTemplate.example.json +30 -0
  191. package/dist/functions/schemas/examples/ScriptStepConfig.example.json +3 -1
  192. package/dist/functions/schemas/examples/TemplateV3.example.json +5 -1
  193. package/dist/functions/schemas/extract.js +1 -1
  194. package/dist/functions/schemas/extract.js.map +1 -1
  195. package/dist/functions/schemas/format.js +7 -5
  196. package/dist/functions/schemas/format.js.map +1 -1
  197. package/dist/functions/schemas/registry.d.ts +2 -1
  198. package/dist/functions/schemas/registry.js +95 -31
  199. package/dist/functions/schemas/registry.js.map +1 -1
  200. package/dist/functions/schemas/resolve.d.ts +1 -0
  201. package/dist/functions/schemas/resolve.js +31 -1
  202. package/dist/functions/schemas/resolve.js.map +1 -1
  203. package/dist/functions/schemas/validate.js.map +1 -1
  204. package/dist/functions/serve/commands/list.js +2 -1
  205. package/dist/functions/serve/commands/list.js.map +1 -1
  206. package/dist/functions/serve/commands/stop.js +10 -5
  207. package/dist/functions/serve/commands/stop.js.map +1 -1
  208. package/dist/functions/serve/dev-server/dev-server-access.guard.d.ts +11 -0
  209. package/dist/functions/serve/dev-server/dev-server-access.guard.js +41 -0
  210. package/dist/functions/serve/dev-server/dev-server-access.guard.js.map +1 -0
  211. package/dist/functions/serve/dev-server/dev-server.controller.d.ts +3 -0
  212. package/dist/functions/serve/dev-server/dev-server.controller.js +20 -0
  213. package/dist/functions/serve/dev-server/dev-server.controller.js.map +1 -1
  214. package/dist/functions/serve/dev-server/dev-server.module.d.ts +3 -0
  215. package/dist/functions/serve/dev-server/dev-server.module.js +34 -23
  216. package/dist/functions/serve/dev-server/dev-server.module.js.map +1 -1
  217. package/dist/functions/serve/dev-server/dev-server.options.d.ts +8 -0
  218. package/dist/functions/serve/dev-server/dev-server.options.js +5 -0
  219. package/dist/functions/serve/dev-server/dev-server.options.js.map +1 -0
  220. package/dist/functions/serve/dev-server/dev-server.service.d.ts +11 -3
  221. package/dist/functions/serve/dev-server/dev-server.service.js +72 -65
  222. package/dist/functions/serve/dev-server/dev-server.service.js.map +1 -1
  223. package/dist/functions/serve/dev-server/path-scope.d.ts +5 -0
  224. package/dist/functions/serve/dev-server/path-scope.js +88 -0
  225. package/dist/functions/serve/dev-server/path-scope.js.map +1 -0
  226. package/dist/functions/serve/dev-server/request-security.d.ts +34 -0
  227. package/dist/functions/serve/dev-server/request-security.js +146 -0
  228. package/dist/functions/serve/dev-server/request-security.js.map +1 -0
  229. package/dist/functions/serve/main.d.ts +13 -0
  230. package/dist/functions/serve/main.js +84 -12
  231. package/dist/functions/serve/main.js.map +1 -1
  232. package/dist/functions/serve/serve-self-register.js +2 -1
  233. package/dist/functions/serve/serve-self-register.js.map +1 -1
  234. package/dist/functions/version/command.js +1 -6
  235. package/dist/functions/version/command.js.map +1 -1
  236. package/dist/functions/workflow/commands/deploy.d.ts +1 -0
  237. package/dist/functions/workflow/commands/deploy.js +18 -13
  238. package/dist/functions/workflow/commands/deploy.js.map +1 -1
  239. package/dist/functions/workflow/commands/get.js.map +1 -1
  240. package/dist/functions/workflow/commands/history.js.map +1 -1
  241. package/dist/functions/workflow/commands/run.d.ts +2 -8
  242. package/dist/functions/workflow/commands/run.js +29 -22
  243. package/dist/functions/workflow/commands/run.js.map +1 -1
  244. package/dist/functions/workflow/commands/runners-get.js.map +1 -1
  245. package/dist/functions/workflow/commands/status.d.ts +1 -1
  246. package/dist/functions/workflow/commands/status.js +7 -1
  247. package/dist/functions/workflow/commands/status.js.map +1 -1
  248. package/dist/functions/workflow/commands/template.js.map +1 -1
  249. package/dist/functions/workflow/commands/test.d.ts +2 -8
  250. package/dist/functions/workflow/commands/test.js +19 -21
  251. package/dist/functions/workflow/commands/test.js.map +1 -1
  252. package/dist/functions/workflow/commands/trace.js.map +1 -1
  253. package/dist/functions/workflow/commands/undeploy.js +3 -1
  254. package/dist/functions/workflow/commands/undeploy.js.map +1 -1
  255. package/dist/functions/workflow/commands/validate.d.ts +2 -0
  256. package/dist/functions/workflow/commands/validate.js +8 -1
  257. package/dist/functions/workflow/commands/validate.js.map +1 -1
  258. package/dist/functions/workflow/resolve-runner.d.ts +17 -0
  259. package/dist/functions/workflow/resolve-runner.js +41 -0
  260. package/dist/functions/workflow/resolve-runner.js.map +1 -0
  261. package/dist/functions/workflow/run-failure.js +1 -1
  262. package/dist/functions/workflow/run-failure.js.map +1 -1
  263. package/dist/functions/workflow/runner-health.js.map +1 -1
  264. package/dist/functions/workflow/script-lint.js +32 -7
  265. package/dist/functions/workflow/script-lint.js.map +1 -1
  266. package/dist/functions/workflow/trace.js.map +1 -1
  267. package/dist/functions/workflow/types.d.ts +11 -2
  268. package/dist/functions/workflow/types.js +4 -0
  269. package/dist/functions/workflow/types.js.map +1 -1
  270. package/dist/functions/workflow/wait-for-swap.d.ts +24 -1
  271. package/dist/functions/workflow/wait-for-swap.js +58 -0
  272. package/dist/functions/workflow/wait-for-swap.js.map +1 -1
  273. package/dist/functions/workflow/workflow-api.d.ts +7 -7
  274. package/dist/functions/workflow/workflow-api.js +31 -16
  275. package/dist/functions/workflow/workflow-api.js.map +1 -1
  276. package/files/common/_gitignore +2 -1
  277. package/files/dev-server/index.html +2 -1
  278. package/package.json +24 -15
  279. package/dist/functions/serve/guards/apiKey.guard.d.ts +0 -4
  280. package/dist/functions/serve/guards/apiKey.guard.js +0 -23
  281. package/dist/functions/serve/guards/apiKey.guard.js.map +0 -1
package/README.md CHANGED
@@ -10,9 +10,9 @@ sync.
10
10
 
11
11
  ### Commands
12
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.
13
+ - `dcupl files status [--version <versionId>]` — show local vs server differences. Read-only.
14
+ - `dcupl files push [--version <versionId>] [--strict] [--yes] [--force]` — upload changed files to an existing version. Named versions are created in the console; `files push` does not create them and rejects `--name`.
15
+ - `dcupl files pull [--version <versionId>] [--strict] [--yes] [--force]` — download changed files. Switches versions when `--version` differs from the current HEAD.
16
16
 
17
17
  ### Flag convention
18
18
 
@@ -51,31 +51,31 @@ Pushing directly to `production` is rejected. Push to a named version, then prom
51
51
 
52
52
  Every `files` subcommand run with `--json` emits exactly one JSON object on stdout, and every result carries a `success` boolean, so a scripted caller can branch on `.success` across all verbs. `.success` and the exit code always agree:
53
53
 
54
- | Outcome | `success` | Exit code | Shape |
55
- |---------|-----------|-----------|-------|
56
- | Full success | `true` | 0 | the verb's payload (see table below) |
57
- | Partial failure (`push`/`pull` only: a transfer failed or could not be verified) | `false` | 2 | the verb's payload — inspect `failed` / `unverified`; no `error`/`code` keys |
58
- | Hard error (any verb) | `false` | 1 | `{ "success": false, "error": "<message>", "code": "<CODE>", ... }` |
54
+ | Outcome | `success` | Exit code | Shape |
55
+ | -------------------------------------------------------------------------------- | --------- | --------- | ---------------------------------------------------------------------------- |
56
+ | Full success | `true` | 0 | the verb's payload (see table below) |
57
+ | Partial failure (`push`/`pull` only: a transfer failed or could not be verified) | `false` | 2 | the verb's payload — inspect `failed` / `unverified`; no `error`/`code` keys |
58
+ | Hard error (any verb) | `false` | 1 | `{ "success": false, "error": "<message>", "code": "<CODE>", ... }` |
59
59
 
60
60
  Warnings and progress notices go to stderr, so stdout always stays a single parseable object.
61
61
 
62
62
  Guaranteed keys per verb (additional keys may appear):
63
63
 
64
- | Verb | Keys |
65
- |------|------|
66
- | `status` | `success` (always `true` — status is a report), `versionId`, `hasBaseline`, `uploads`, `downloads`, `conflicts`, `wouldDeleteOnServerInStrictMode`, `wouldDeleteLocallyInStrictMode`, `unchanged` |
67
- | `push` | `success` (`false` on partial failure, exit 2), `versionId`, `uploaded`, `deleted`, `failed`, `conflicts`, `resolvedConflicts`, `unchanged`, `unverified` |
68
- | `pull` | `success` (`false` on partial failure, exit 2), `versionId`, `downloaded`, `deletedLocally`, `failed`, `switched`, `unchanged`, `unverified` |
69
- | `list` | `success`, `paths` |
70
- | `read` | `success`, `path`, `content` |
71
- | `write` | `success`, `path`, `bytes`, `version` |
72
- | `copy` | `success`, `from`, `to`, `version` |
73
- | `move` | `success`, `from`, `to`, `version` |
74
- | `delete` | `success`, `path`, `version` |
75
- | `create-folder` | `success`, `path` |
76
- | `versions list` | `success`, `versions` |
77
- | `versions copy` | `success`, `from`, `to` |
78
- | `versions delete` | `success`, `id` |
64
+ | Verb | Keys |
65
+ | ----------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
66
+ | `status` | `success` (always `true` — status is a report), `versionId`, `hasBaseline`, `uploads`, `downloads`, `conflicts`, `wouldDeleteOnServerInStrictMode`, `wouldDeleteLocallyInStrictMode`, `unchanged` |
67
+ | `push` | `success` (`false` on partial failure, exit 2), `versionId`, `uploaded`, `deleted`, `failed`, `conflicts`, `resolvedConflicts`, `unchanged`, `unverified` |
68
+ | `pull` | `success` (`false` on partial failure, exit 2), `versionId`, `downloaded`, `deletedLocally`, `failed`, `switched`, `unchanged`, `unverified` |
69
+ | `list` | `success`, `paths` |
70
+ | `read` | `success`, `path`, `content` |
71
+ | `write` | `success`, `path`, `bytes`, `version` |
72
+ | `copy` | `success`, `from`, `to`, `version` |
73
+ | `move` | `success`, `from`, `to`, `version` |
74
+ | `delete` | `success`, `path`, `version` |
75
+ | `create-folder` | `success`, `path` |
76
+ | `versions list` | `success`, `versions` |
77
+ | `versions copy` | `success`, `from`, `to` |
78
+ | `versions delete` | `success`, `id` |
79
79
 
80
80
  `--dry-run` results use the same shape as the real operation.
81
81
 
@@ -96,6 +96,13 @@ Provide `apiKey` / `projectId` via (highest priority first):
96
96
 
97
97
  `dcupl config set` writes to `dcupl.secrets.json` if present, else to `.env`.
98
98
 
99
+ ## Project scripts run in your own process
100
+
101
+ Project scripts (custom operators, sort scripts and `endpoint` scripts) run with
102
+ `new Function` in your own process when `dcupl app` loads a project, with the same
103
+ access to your files, network and environment as any npm script: only run projects
104
+ you trust. The hosted dcupl runners sandbox the same scripts; the CLI does not.
105
+
99
106
  ## CLI Lifecycle Contract
100
107
 
101
108
  The dcupl CLI mirrors the dcupl SDK's declarative model: the SDK separates
package/dist/cli.d.ts CHANGED
@@ -1,4 +1,6 @@
1
1
  import yargs from 'yargs';
2
+ export declare const APP_SCRIPTS_TRUST_NOTE: string;
3
+ export declare const FILES_PUSH_NAME_UNSUPPORTED = "Named versions are created in the console; `--name` is not supported by `files push`";
2
4
  export declare function buildCli(rawArgs: string[]): yargs.Argv<{
3
5
  json: boolean;
4
6
  }>;