@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.
- package/README.md +107 -0
- package/dist/cli.d.ts +4 -0
- package/dist/cli.js +1247 -0
- package/dist/cli.js.map +1 -0
- package/dist/functions/app/app-id.d.ts +1 -0
- package/dist/functions/app/app-id.js +13 -0
- package/dist/functions/app/app-id.js.map +1 -0
- package/dist/functions/app/client/daemon-client.d.ts +16 -0
- package/dist/functions/app/client/daemon-client.js +67 -0
- package/dist/functions/app/client/daemon-client.js.map +1 -0
- package/dist/functions/app/commands/build.d.ts +10 -0
- package/dist/functions/app/commands/build.js +23 -0
- package/dist/functions/app/commands/build.js.map +1 -0
- package/dist/functions/app/commands/create.d.ts +35 -0
- package/dist/functions/app/commands/create.js +130 -0
- package/dist/functions/app/commands/create.js.map +1 -0
- package/dist/functions/app/commands/data/_data-helpers.d.ts +23 -0
- package/dist/functions/app/commands/data/_data-helpers.js +32 -0
- package/dist/functions/app/commands/data/_data-helpers.js.map +1 -0
- package/dist/functions/app/commands/data/remove.d.ts +3 -0
- package/dist/functions/app/commands/data/remove.js +9 -0
- package/dist/functions/app/commands/data/remove.js.map +1 -0
- package/dist/functions/app/commands/data/render.d.ts +34 -0
- package/dist/functions/app/commands/data/render.js +36 -0
- package/dist/functions/app/commands/data/render.js.map +1 -0
- package/dist/functions/app/commands/data/reset.d.ts +12 -0
- package/dist/functions/app/commands/data/reset.js +15 -0
- package/dist/functions/app/commands/data/reset.js.map +1 -0
- package/dist/functions/app/commands/data/set.d.ts +3 -0
- package/dist/functions/app/commands/data/set.js +9 -0
- package/dist/functions/app/commands/data/set.js.map +1 -0
- package/dist/functions/app/commands/data/update.d.ts +3 -0
- package/dist/functions/app/commands/data/update.js +9 -0
- package/dist/functions/app/commands/data/update.js.map +1 -0
- package/dist/functions/app/commands/data/upsert.d.ts +3 -0
- package/dist/functions/app/commands/data/upsert.js +9 -0
- package/dist/functions/app/commands/data/upsert.js.map +1 -0
- package/dist/functions/app/commands/destroy.d.ts +18 -0
- package/dist/functions/app/commands/destroy.js +55 -0
- package/dist/functions/app/commands/destroy.js.map +1 -0
- package/dist/functions/app/commands/detect-serve.d.ts +34 -0
- package/dist/functions/app/commands/detect-serve.js +169 -0
- package/dist/functions/app/commands/detect-serve.js.map +1 -0
- package/dist/functions/app/commands/fn/_fn-helpers.d.ts +13 -0
- package/dist/functions/app/commands/fn/_fn-helpers.js +11 -0
- package/dist/functions/app/commands/fn/_fn-helpers.js.map +1 -0
- package/dist/functions/app/commands/fn/aggregate.d.ts +11 -0
- package/dist/functions/app/commands/fn/aggregate.js +34 -0
- package/dist/functions/app/commands/fn/aggregate.js.map +1 -0
- package/dist/functions/app/commands/fn/facets.d.ts +15 -0
- package/dist/functions/app/commands/fn/facets.js +35 -0
- package/dist/functions/app/commands/fn/facets.js.map +1 -0
- package/dist/functions/app/commands/fn/group-by.d.ts +10 -0
- package/dist/functions/app/commands/fn/group-by.js +38 -0
- package/dist/functions/app/commands/fn/group-by.js.map +1 -0
- package/dist/functions/app/commands/fn/metadata.d.ts +8 -0
- package/dist/functions/app/commands/fn/metadata.js +13 -0
- package/dist/functions/app/commands/fn/metadata.js.map +1 -0
- package/dist/functions/app/commands/list.d.ts +7 -0
- package/dist/functions/app/commands/list.js +24 -0
- package/dist/functions/app/commands/list.js.map +1 -0
- package/dist/functions/app/commands/loader-hash.d.ts +2 -0
- package/dist/functions/app/commands/loader-hash.js +39 -0
- package/dist/functions/app/commands/loader-hash.js.map +1 -0
- package/dist/functions/app/commands/loaders/add.d.ts +15 -0
- package/dist/functions/app/commands/loaders/add.js +27 -0
- package/dist/functions/app/commands/loaders/add.js.map +1 -0
- package/dist/functions/app/commands/loaders/get.d.ts +12 -0
- package/dist/functions/app/commands/loaders/get.js +16 -0
- package/dist/functions/app/commands/loaders/get.js.map +1 -0
- package/dist/functions/app/commands/loaders/list.d.ts +11 -0
- package/dist/functions/app/commands/loaders/list.js +14 -0
- package/dist/functions/app/commands/loaders/list.js.map +1 -0
- package/dist/functions/app/commands/loaders/process-flags.d.ts +8 -0
- package/dist/functions/app/commands/loaders/process-flags.js +31 -0
- package/dist/functions/app/commands/loaders/process-flags.js.map +1 -0
- package/dist/functions/app/commands/loaders/process.d.ts +14 -0
- package/dist/functions/app/commands/loaders/process.js +23 -0
- package/dist/functions/app/commands/loaders/process.js.map +1 -0
- package/dist/functions/app/commands/loaders/remove.d.ts +12 -0
- package/dist/functions/app/commands/loaders/remove.js +16 -0
- package/dist/functions/app/commands/loaders/remove.js.map +1 -0
- package/dist/functions/app/commands/loaders/resolve-key.d.ts +6 -0
- package/dist/functions/app/commands/loaders/resolve-key.js +26 -0
- package/dist/functions/app/commands/loaders/resolve-key.js.map +1 -0
- package/dist/functions/app/commands/logs.d.ts +10 -0
- package/dist/functions/app/commands/logs.js +25 -0
- package/dist/functions/app/commands/logs.js.map +1 -0
- package/dist/functions/app/commands/models/get.d.ts +11 -0
- package/dist/functions/app/commands/models/get.js +12 -0
- package/dist/functions/app/commands/models/get.js.map +1 -0
- package/dist/functions/app/commands/models/keys.d.ts +10 -0
- package/dist/functions/app/commands/models/keys.js +12 -0
- package/dist/functions/app/commands/models/keys.js.map +1 -0
- package/dist/functions/app/commands/models/remove.d.ts +11 -0
- package/dist/functions/app/commands/models/remove.js +12 -0
- package/dist/functions/app/commands/models/remove.js.map +1 -0
- package/dist/functions/app/commands/models/set.d.ts +12 -0
- package/dist/functions/app/commands/models/set.js +23 -0
- package/dist/functions/app/commands/models/set.js.map +1 -0
- package/dist/functions/app/commands/query/execute.d.ts +19 -0
- package/dist/functions/app/commands/query/execute.js +88 -0
- package/dist/functions/app/commands/query/execute.js.map +1 -0
- package/dist/functions/app/commands/query/one.d.ts +13 -0
- package/dist/functions/app/commands/query/one.js +14 -0
- package/dist/functions/app/commands/query/one.js.map +1 -0
- package/dist/functions/app/commands/query-input.d.ts +1 -0
- package/dist/functions/app/commands/query-input.js +12 -0
- package/dist/functions/app/commands/query-input.js.map +1 -0
- package/dist/functions/app/commands/render.d.ts +44 -0
- package/dist/functions/app/commands/render.js +139 -0
- package/dist/functions/app/commands/render.js.map +1 -0
- package/dist/functions/app/commands/resolve-app.d.ts +12 -0
- package/dist/functions/app/commands/resolve-app.js +34 -0
- package/dist/functions/app/commands/resolve-app.js.map +1 -0
- package/dist/functions/app/commands/resolve-source.d.ts +31 -0
- package/dist/functions/app/commands/resolve-source.js +82 -0
- package/dist/functions/app/commands/resolve-source.js.map +1 -0
- package/dist/functions/app/commands/status.d.ts +12 -0
- package/dist/functions/app/commands/status.js +30 -0
- package/dist/functions/app/commands/status.js.map +1 -0
- package/dist/functions/app/commands/validate-report.d.ts +89 -0
- package/dist/functions/app/commands/validate-report.js +65 -0
- package/dist/functions/app/commands/validate-report.js.map +1 -0
- package/dist/functions/app/commands/validate.d.ts +32 -0
- package/dist/functions/app/commands/validate.js +91 -0
- package/dist/functions/app/commands/validate.js.map +1 -0
- package/dist/functions/app/commands/warn-if-pending.d.ts +3 -0
- package/dist/functions/app/commands/warn-if-pending.js +9 -0
- package/dist/functions/app/commands/warn-if-pending.js.map +1 -0
- package/dist/functions/app/daemon/app-server.module.d.ts +7 -0
- package/dist/functions/app/daemon/app-server.module.js +41 -0
- package/dist/functions/app/daemon/app-server.module.js.map +1 -0
- package/dist/functions/app/daemon/controllers/data.controller.d.ts +94 -0
- package/dist/functions/app/daemon/controllers/data.controller.js +134 -0
- package/dist/functions/app/daemon/controllers/data.controller.js.map +1 -0
- package/dist/functions/app/daemon/controllers/fn.controller.d.ts +21 -0
- package/dist/functions/app/daemon/controllers/fn.controller.js +59 -0
- package/dist/functions/app/daemon/controllers/fn.controller.js.map +1 -0
- package/dist/functions/app/daemon/controllers/lifecycle.controller.d.ts +29 -0
- package/dist/functions/app/daemon/controllers/lifecycle.controller.js +65 -0
- package/dist/functions/app/daemon/controllers/lifecycle.controller.js.map +1 -0
- package/dist/functions/app/daemon/controllers/loaders.controller.d.ts +31 -0
- package/dist/functions/app/daemon/controllers/loaders.controller.js +72 -0
- package/dist/functions/app/daemon/controllers/loaders.controller.js.map +1 -0
- package/dist/functions/app/daemon/controllers/models.controller.d.ts +30 -0
- package/dist/functions/app/daemon/controllers/models.controller.js +80 -0
- package/dist/functions/app/daemon/controllers/models.controller.js.map +1 -0
- package/dist/functions/app/daemon/controllers/query.controller.d.ts +22 -0
- package/dist/functions/app/daemon/controllers/query.controller.js +43 -0
- package/dist/functions/app/daemon/controllers/query.controller.js.map +1 -0
- package/dist/functions/app/daemon/daemon-args.d.ts +13 -0
- package/dist/functions/app/daemon/daemon-args.js +38 -0
- package/dist/functions/app/daemon/daemon-args.js.map +1 -0
- package/dist/functions/app/daemon/filters/envelope-exception.filter.d.ts +4 -0
- package/dist/functions/app/daemon/filters/envelope-exception.filter.js +58 -0
- package/dist/functions/app/daemon/filters/envelope-exception.filter.js.map +1 -0
- package/dist/functions/app/daemon/guards/api-key.guard.d.ts +7 -0
- package/dist/functions/app/daemon/guards/api-key.guard.js +26 -0
- package/dist/functions/app/daemon/guards/api-key.guard.js.map +1 -0
- package/dist/functions/app/daemon/interceptors/pending-changes.interceptor.d.ts +8 -0
- package/dist/functions/app/daemon/interceptors/pending-changes.interceptor.js +25 -0
- package/dist/functions/app/daemon/interceptors/pending-changes.interceptor.js.map +1 -0
- package/dist/functions/app/daemon/main.d.ts +1 -0
- package/dist/functions/app/daemon/main.js +86 -0
- package/dist/functions/app/daemon/main.js.map +1 -0
- package/dist/functions/app/daemon/services/auto-gen.d.ts +7 -0
- package/dist/functions/app/daemon/services/auto-gen.js +18 -0
- package/dist/functions/app/daemon/services/auto-gen.js.map +1 -0
- package/dist/functions/app/daemon/services/dcupl-host.service.d.ts +69 -0
- package/dist/functions/app/daemon/services/dcupl-host.service.js +267 -0
- package/dist/functions/app/daemon/services/dcupl-host.service.js.map +1 -0
- package/dist/functions/app/daemon/services/idle-watchdog.service.d.ts +12 -0
- package/dist/functions/app/daemon/services/idle-watchdog.service.js +38 -0
- package/dist/functions/app/daemon/services/idle-watchdog.service.js.map +1 -0
- package/dist/functions/app/daemon/services/ingest.service.d.ts +12 -0
- package/dist/functions/app/daemon/services/ingest.service.js +126 -0
- package/dist/functions/app/daemon/services/ingest.service.js.map +1 -0
- package/dist/functions/app/daemon/services/init-options.d.ts +16 -0
- package/dist/functions/app/daemon/services/init-options.js +56 -0
- package/dist/functions/app/daemon/services/init-options.js.map +1 -0
- package/dist/functions/app/daemon/services/loaders.service.d.ts +27 -0
- package/dist/functions/app/daemon/services/loaders.service.js +169 -0
- package/dist/functions/app/daemon/services/loaders.service.js.map +1 -0
- package/dist/functions/app/daemon/services/normalize-query.d.ts +11 -0
- package/dist/functions/app/daemon/services/normalize-query.js +29 -0
- package/dist/functions/app/daemon/services/normalize-query.js.map +1 -0
- package/dist/functions/app/e2e/port-lock.d.ts +2 -0
- package/dist/functions/app/e2e/port-lock.js +53 -0
- package/dist/functions/app/e2e/port-lock.js.map +1 -0
- package/dist/functions/app/registry/daemon-log.d.ts +3 -0
- package/dist/functions/app/registry/daemon-log.js +32 -0
- package/dist/functions/app/registry/daemon-log.js.map +1 -0
- package/dist/functions/app/registry/registry.d.ts +15 -0
- package/dist/functions/app/registry/registry.js +111 -0
- package/dist/functions/app/registry/registry.js.map +1 -0
- package/dist/functions/app/registry/serve-registry.d.ts +16 -0
- package/dist/functions/app/registry/serve-registry.js +93 -0
- package/dist/functions/app/registry/serve-registry.js.map +1 -0
- package/dist/functions/app/types.d.ts +124 -0
- package/dist/functions/app/types.js +3 -0
- package/dist/functions/app/types.js.map +1 -0
- package/dist/functions/config/commands/get.d.ts +14 -0
- package/dist/functions/config/commands/get.js +46 -0
- package/dist/functions/config/commands/get.js.map +1 -0
- package/dist/functions/config/commands/set.d.ts +7 -0
- package/dist/functions/config/commands/set.js +66 -0
- package/dist/functions/config/commands/set.js.map +1 -0
- package/dist/functions/config/io.d.ts +6 -0
- package/dist/functions/config/io.js +35 -0
- package/dist/functions/config/io.js.map +1 -0
- package/dist/functions/config/prompts.d.ts +7 -0
- package/dist/functions/config/prompts.js +51 -0
- package/dist/functions/config/prompts.js.map +1 -0
- package/dist/functions/files/commands/copy.d.ts +22 -0
- package/dist/functions/files/commands/copy.js +21 -0
- package/dist/functions/files/commands/copy.js.map +1 -0
- package/dist/functions/files/commands/create-folder.d.ts +19 -0
- package/dist/functions/files/commands/create-folder.js +19 -0
- package/dist/functions/files/commands/create-folder.js.map +1 -0
- package/dist/functions/files/commands/delete.d.ts +21 -0
- package/dist/functions/files/commands/delete.js +37 -0
- package/dist/functions/files/commands/delete.js.map +1 -0
- package/dist/functions/files/commands/list.d.ts +20 -0
- package/dist/functions/files/commands/list.js +29 -0
- package/dist/functions/files/commands/list.js.map +1 -0
- package/dist/functions/files/commands/move.d.ts +24 -0
- package/dist/functions/files/commands/move.js +37 -0
- package/dist/functions/files/commands/move.js.map +1 -0
- package/dist/functions/files/commands/pull.d.ts +31 -0
- package/dist/functions/files/commands/pull.js +132 -0
- package/dist/functions/files/commands/pull.js.map +1 -0
- package/dist/functions/files/commands/push.d.ts +30 -0
- package/dist/functions/files/commands/push.js +116 -0
- package/dist/functions/files/commands/push.js.map +1 -0
- package/dist/functions/files/commands/read.d.ts +19 -0
- package/dist/functions/files/commands/read.js +25 -0
- package/dist/functions/files/commands/read.js.map +1 -0
- package/dist/functions/files/commands/render.d.ts +89 -0
- package/dist/functions/files/commands/render.js +229 -0
- package/dist/functions/files/commands/render.js.map +1 -0
- package/dist/functions/files/commands/status.d.ts +23 -0
- package/dist/functions/files/commands/status.js +58 -0
- package/dist/functions/files/commands/status.js.map +1 -0
- package/dist/functions/files/commands/versions/copy.d.ts +8 -0
- package/dist/functions/files/commands/versions/copy.js +34 -0
- package/dist/functions/files/commands/versions/copy.js.map +1 -0
- package/dist/functions/files/commands/versions/delete.d.ts +7 -0
- package/dist/functions/files/commands/versions/delete.js +35 -0
- package/dist/functions/files/commands/versions/delete.js.map +1 -0
- package/dist/functions/files/commands/versions/list.d.ts +3 -0
- package/dist/functions/files/commands/versions/list.js +10 -0
- package/dist/functions/files/commands/versions/list.js.map +1 -0
- package/dist/functions/files/commands/write.d.ts +24 -0
- package/dist/functions/files/commands/write.js +36 -0
- package/dist/functions/files/commands/write.js.map +1 -0
- package/dist/functions/files/files-pull.d.ts +26 -2
- package/dist/functions/files/files-pull.js +100 -30
- package/dist/functions/files/files-pull.js.map +1 -1
- package/dist/functions/files/files-push.d.ts +3 -1
- package/dist/functions/files/files-push.js +64 -48
- package/dist/functions/files/files-push.js.map +1 -1
- package/dist/functions/files/helper/confirm.d.ts +5 -0
- package/dist/functions/files/helper/confirm.js +14 -0
- package/dist/functions/files/helper/confirm.js.map +1 -0
- package/dist/functions/files/helper/resolve-version.d.ts +5 -0
- package/dist/functions/files/helper/resolve-version.js +15 -0
- package/dist/functions/files/helper/resolve-version.js.map +1 -0
- package/dist/functions/files/sync/baseline-derive.d.ts +3 -0
- package/dist/functions/files/sync/baseline-derive.js +49 -0
- package/dist/functions/files/sync/baseline-derive.js.map +1 -0
- package/dist/functions/files/sync/diff.d.ts +9 -0
- package/dist/functions/files/sync/diff.js +80 -0
- package/dist/functions/files/sync/diff.js.map +1 -0
- package/dist/functions/files/sync/manifest.d.ts +12 -0
- package/dist/functions/files/sync/manifest.js +74 -0
- package/dist/functions/files/sync/manifest.js.map +1 -0
- package/dist/functions/files/sync/scope.d.ts +4 -0
- package/dist/functions/files/sync/scope.js +44 -0
- package/dist/functions/files/sync/scope.js.map +1 -0
- package/dist/functions/files/sync/state.d.ts +8 -0
- package/dist/functions/files/sync/state.js +74 -0
- package/dist/functions/files/sync/state.js.map +1 -0
- package/dist/functions/files/sync/transfer.d.ts +47 -0
- package/dist/functions/files/sync/transfer.js +132 -0
- package/dist/functions/files/sync/transfer.js.map +1 -0
- package/dist/functions/files/sync/types.d.ts +41 -0
- package/dist/functions/files/sync/types.js +3 -0
- package/dist/functions/files/sync/types.js.map +1 -0
- package/dist/functions/files/test-helpers.d.ts +13 -0
- package/dist/functions/files/test-helpers.js +34 -0
- package/dist/functions/files/test-helpers.js.map +1 -0
- package/dist/functions/generate/files/generate-code.d.ts +3 -1
- package/dist/functions/generate/files/generate-code.js +2 -0
- package/dist/functions/generate/files/generate-code.js.map +1 -1
- package/dist/functions/generate/files/generate-files.d.ts +12 -2
- package/dist/functions/generate/files/generate-files.js +155 -224
- package/dist/functions/generate/files/generate-files.js.map +1 -1
- package/dist/functions/generate/files/generate.helper.d.ts +2 -2
- package/dist/functions/generate/files/generate.helper.js +5 -7
- package/dist/functions/generate/files/generate.helper.js.map +1 -1
- package/dist/functions/generate/model-from-data/generate-model-from-data.d.ts +10 -0
- package/dist/functions/generate/model-from-data/generate-model-from-data.js +184 -0
- package/dist/functions/generate/model-from-data/generate-model-from-data.js.map +1 -0
- package/dist/functions/generate/model-from-data/infer-key.d.ts +19 -0
- package/dist/functions/generate/model-from-data/infer-key.js +54 -0
- package/dist/functions/generate/model-from-data/infer-key.js.map +1 -0
- package/dist/functions/generate/model-from-data/infer-to-model.d.ts +6 -0
- package/dist/functions/generate/model-from-data/infer-to-model.js +59 -0
- package/dist/functions/generate/model-from-data/infer-to-model.js.map +1 -0
- package/dist/functions/generate/projects/generate-project.d.ts +12 -1
- package/dist/functions/generate/projects/generate-project.js +338 -65
- package/dist/functions/generate/projects/generate-project.js.map +1 -1
- package/dist/functions/helper/api-client.d.ts +18 -0
- package/dist/functions/helper/api-client.js +88 -0
- package/dist/functions/helper/api-client.js.map +1 -0
- package/dist/functions/helper/config.helper.d.ts +15 -2
- package/dist/functions/helper/config.helper.js +20 -5
- package/dist/functions/helper/config.helper.js.map +1 -1
- package/dist/functions/helper/output.d.ts +9 -0
- package/dist/functions/helper/output.js +71 -0
- package/dist/functions/helper/output.js.map +1 -0
- package/dist/functions/helper/parse-fail.d.ts +11 -0
- package/dist/functions/helper/parse-fail.js +106 -0
- package/dist/functions/helper/parse-fail.js.map +1 -0
- package/dist/functions/schemas/command.d.ts +21 -0
- package/dist/functions/schemas/command.js +57 -0
- package/dist/functions/schemas/command.js.map +1 -0
- package/dist/functions/schemas/examples/AppLoaderConfiguration.example.json +18 -0
- package/dist/functions/schemas/examples/DataMapperStepConfig.example.json +1 -0
- package/dist/functions/schemas/examples/ModelDefinition.example.json +21 -0
- package/dist/functions/schemas/examples/RequestStepConfig.example.json +1 -0
- package/dist/functions/schemas/examples/ResponseScriptConfig.example.json +1 -0
- package/dist/functions/schemas/examples/ScriptStepConfig.example.json +1 -0
- package/dist/functions/schemas/examples/TemplateV3.example.json +62 -0
- package/dist/functions/schemas/examples/TriggerRequestConfig.example.json +1 -0
- package/dist/functions/schemas/examples/WorkflowConfigV3.example.json +53 -0
- package/dist/functions/schemas/extract.d.ts +2 -0
- package/dist/functions/schemas/extract.js +68 -0
- package/dist/functions/schemas/extract.js.map +1 -0
- package/dist/functions/schemas/format.d.ts +8 -0
- package/dist/functions/schemas/format.js +53 -0
- package/dist/functions/schemas/format.js.map +1 -0
- package/dist/functions/schemas/registry.d.ts +15 -0
- package/dist/functions/schemas/registry.js +179 -0
- package/dist/functions/schemas/registry.js.map +1 -0
- package/dist/functions/schemas/resolve.d.ts +10 -0
- package/dist/functions/schemas/resolve.js +28 -0
- package/dist/functions/schemas/resolve.js.map +1 -0
- package/dist/functions/serve/commands/list.d.ts +9 -0
- package/dist/functions/serve/commands/list.js +44 -0
- package/dist/functions/serve/commands/list.js.map +1 -0
- package/dist/functions/serve/commands/stop.d.ts +11 -0
- package/dist/functions/serve/commands/stop.js +34 -0
- package/dist/functions/serve/commands/stop.js.map +1 -0
- package/dist/functions/serve/dev-server/dev-server.controller.d.ts +11 -8
- package/dist/functions/serve/dev-server/dev-server.controller.js +10 -10
- package/dist/functions/serve/dev-server/dev-server.controller.js.map +1 -1
- package/dist/functions/serve/dev-server/dev-server.module.js +2 -2
- package/dist/functions/serve/dev-server/dev-server.module.js.map +1 -1
- package/dist/functions/serve/dev-server/dev-server.service.d.ts +8 -6
- package/dist/functions/serve/dev-server/dev-server.service.js +25 -19
- package/dist/functions/serve/dev-server/dev-server.service.js.map +1 -1
- package/dist/functions/serve/main.d.ts +1 -0
- package/dist/functions/serve/main.js +19 -2
- package/dist/functions/serve/main.js.map +1 -1
- package/dist/functions/serve/serve-self-register.d.ts +9 -0
- package/dist/functions/serve/serve-self-register.js +30 -0
- package/dist/functions/serve/serve-self-register.js.map +1 -0
- package/dist/functions/testing/testing-helper.d.ts +1 -1
- package/dist/functions/testing/testing-helper.js.map +1 -1
- package/dist/functions/testing/testing.d.ts +2 -1
- package/dist/functions/testing/testing.js +7 -6
- package/dist/functions/testing/testing.js.map +1 -1
- package/dist/functions/version/command.d.ts +17 -0
- package/dist/functions/version/command.js +54 -0
- package/dist/functions/version/command.js.map +1 -0
- package/dist/functions/welcome.js.map +1 -1
- package/dist/functions/workflow/commands/deploy.d.ts +29 -0
- package/dist/functions/workflow/commands/deploy.js +54 -0
- package/dist/functions/workflow/commands/deploy.js.map +1 -0
- package/dist/functions/workflow/commands/get.d.ts +10 -0
- package/dist/functions/workflow/commands/get.js +10 -0
- package/dist/functions/workflow/commands/get.js.map +1 -0
- package/dist/functions/workflow/commands/history.d.ts +10 -0
- package/dist/functions/workflow/commands/history.js +25 -0
- package/dist/functions/workflow/commands/history.js.map +1 -0
- package/dist/functions/workflow/commands/list.d.ts +7 -0
- package/dist/functions/workflow/commands/list.js +11 -0
- package/dist/functions/workflow/commands/list.js.map +1 -0
- package/dist/functions/workflow/commands/runners-get.d.ts +10 -0
- package/dist/functions/workflow/commands/runners-get.js +10 -0
- package/dist/functions/workflow/commands/runners-get.js.map +1 -0
- package/dist/functions/workflow/commands/runners.d.ts +7 -0
- package/dist/functions/workflow/commands/runners.js +11 -0
- package/dist/functions/workflow/commands/runners.js.map +1 -0
- package/dist/functions/workflow/commands/status.d.ts +10 -0
- package/dist/functions/workflow/commands/status.js +10 -0
- package/dist/functions/workflow/commands/status.js.map +1 -0
- package/dist/functions/workflow/commands/template.d.ts +9 -0
- package/dist/functions/workflow/commands/template.js +10 -0
- package/dist/functions/workflow/commands/template.js.map +1 -0
- package/dist/functions/workflow/commands/test.d.ts +36 -0
- package/dist/functions/workflow/commands/test.js +158 -0
- package/dist/functions/workflow/commands/test.js.map +1 -0
- package/dist/functions/workflow/commands/trace.d.ts +11 -0
- package/dist/functions/workflow/commands/trace.js +24 -0
- package/dist/functions/workflow/commands/trace.js.map +1 -0
- package/dist/functions/workflow/commands/undeploy.d.ts +13 -0
- package/dist/functions/workflow/commands/undeploy.js +17 -0
- package/dist/functions/workflow/commands/undeploy.js.map +1 -0
- package/dist/functions/workflow/commands/validate.d.ts +18 -0
- package/dist/functions/workflow/commands/validate.js +35 -0
- package/dist/functions/workflow/commands/validate.js.map +1 -0
- package/dist/functions/workflow/template-io.d.ts +2 -0
- package/dist/functions/workflow/template-io.js +25 -0
- package/dist/functions/workflow/template-io.js.map +1 -0
- package/dist/functions/workflow/trace.d.ts +20 -0
- package/dist/functions/workflow/trace.js +82 -0
- package/dist/functions/workflow/trace.js.map +1 -0
- package/dist/functions/workflow/types.d.ts +27 -0
- package/dist/functions/workflow/types.js +3 -0
- package/dist/functions/workflow/types.js.map +1 -0
- package/dist/functions/workflow/validate.d.ts +2 -0
- package/dist/functions/workflow/validate.js +37 -0
- package/dist/functions/workflow/validate.js.map +1 -0
- package/dist/functions/workflow/wait-for-swap.d.ts +27 -0
- package/dist/functions/workflow/wait-for-swap.js +33 -0
- package/dist/functions/workflow/wait-for-swap.js.map +1 -0
- package/dist/functions/workflow/workflow-api.d.ts +27 -0
- package/dist/functions/workflow/workflow-api.js +68 -0
- package/dist/functions/workflow/workflow-api.js.map +1 -0
- package/dist/index.js +9 -102
- package/dist/index.js.map +1 -1
- package/files/common/dcupl.config.json +3 -2
- package/files/common/readme.md +1 -1
- package/files/dev-server/index.html +6 -6
- package/files/starters/starter_empty/dcupl/api/.gitkeep +0 -0
- package/files/starters/starter_empty/dcupl/data/.gitkeep +0 -0
- package/files/starters/starter_empty/dcupl/dcupl.lc.json +10 -0
- package/files/starters/starter_empty/dcupl/models/.gitkeep +0 -0
- package/files/starters/starter_empty/dcupl/workflows/.gitkeep +0 -0
- package/files/starters/starter_empty/dcupl.config.json +11 -0
- package/files/starters/starter_empty/package.json +14 -0
- package/package.json +60 -36
- package/dist/functions/files/files-copy.d.ts +0 -5
- package/dist/functions/files/files-copy.js +0 -43
- package/dist/functions/files/files-copy.js.map +0 -1
- package/dist/functions/files/files-list-versions.d.ts +0 -2
- package/dist/functions/files/files-list-versions.js +0 -39
- package/dist/functions/files/files-list-versions.js.map +0 -1
- package/dist/functions/start-dcupl/start-dcupl.d.ts +0 -7
- package/dist/functions/start-dcupl/start-dcupl.js +0 -51
- package/dist/functions/start-dcupl/start-dcupl.js.map +0 -1
- package/dist/functions/testing/tests/generated-completeness.spec.d.ts +0 -1
- package/dist/functions/testing/tests/generated-completeness.spec.js +0 -143
- package/dist/functions/testing/tests/generated-completeness.spec.js.map +0 -1
- package/dist/functions/testing/tests/model_tests.spec.d.ts +0 -1
- package/dist/functions/testing/tests/model_tests.spec.js +0 -92
- 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