i-repo 2.0.0 → 2.2.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 +37 -10
- package/dist/bin/irepo.d.ts +0 -1
- package/dist/bin/irepo.js +154 -16
- package/dist/commands/auth.d.ts +0 -1
- package/dist/commands/auth.js +6 -1
- package/dist/commands/batch-result.d.ts +2 -0
- package/dist/commands/batch-result.js +24 -0
- package/dist/commands/config.d.ts +0 -1
- package/dist/commands/config.js +15 -4
- package/dist/commands/definition-batches/index.d.ts +0 -1
- package/dist/commands/definition-batches/index.js +22 -22
- package/dist/commands/definitions/get.d.ts +0 -1
- package/dist/commands/definitions/get.js +6 -3
- package/dist/commands/definitions/index.d.ts +0 -1
- package/dist/commands/definitions/index.js +0 -1
- package/dist/commands/definitions/labels.d.ts +0 -1
- package/dist/commands/definitions/labels.js +9 -9
- package/dist/commands/definitions/list.d.ts +0 -1
- package/dist/commands/definitions/list.js +11 -17
- package/dist/commands/definitions/lock.d.ts +0 -1
- package/dist/commands/definitions/lock.js +7 -4
- package/dist/commands/definitions/roles.d.ts +0 -1
- package/dist/commands/definitions/roles.js +7 -7
- package/dist/commands/index.d.ts +0 -1
- package/dist/commands/index.js +0 -1
- package/dist/commands/plugin.d.ts +0 -1
- package/dist/commands/plugin.js +69 -7
- package/dist/commands/raw.d.ts +0 -1
- package/dist/commands/raw.js +5 -5
- package/dist/commands/report-batches/index.d.ts +0 -1
- package/dist/commands/report-batches/index.js +99 -95
- package/dist/commands/reports/cluster-value.d.ts +0 -1
- package/dist/commands/reports/cluster-value.js +11 -8
- package/dist/commands/reports/copy.d.ts +0 -1
- package/dist/commands/reports/copy.js +7 -5
- package/dist/commands/reports/create-sorted.d.ts +0 -1
- package/dist/commands/reports/create-sorted.js +6 -4
- package/dist/commands/reports/download.d.ts +0 -1
- package/dist/commands/reports/download.js +7 -5
- package/dist/commands/reports/get.d.ts +0 -1
- package/dist/commands/reports/get.js +13 -8
- package/dist/commands/reports/index.d.ts +0 -1
- package/dist/commands/reports/index.js +0 -1
- package/dist/commands/reports/labels.d.ts +0 -1
- package/dist/commands/reports/labels.js +5 -5
- package/dist/commands/reports/list.d.ts +0 -1
- package/dist/commands/reports/list.js +38 -46
- package/dist/commands/reports/lock.d.ts +0 -1
- package/dist/commands/reports/lock.js +7 -4
- package/dist/commands/reports/roles.d.ts +0 -1
- package/dist/commands/reports/roles.js +5 -5
- package/dist/commands/schema.d.ts +33 -0
- package/dist/commands/schema.js +72 -0
- package/dist/commands/shared-options.d.ts +61 -0
- package/dist/commands/shared-options.js +143 -0
- package/dist/commands/systems/index.d.ts +0 -1
- package/dist/commands/systems/index.js +52 -46
- package/dist/config/client.d.ts +0 -1
- package/dist/config/client.js +6 -4
- package/dist/config/command-gate.d.ts +68 -0
- package/dist/config/command-gate.js +133 -0
- package/dist/config/index.d.ts +0 -1
- package/dist/config/index.js +0 -1
- package/dist/config/migrate.d.ts +0 -1
- package/dist/config/migrate.js +0 -1
- package/dist/config/scoped-store.d.ts +0 -1
- package/dist/config/scoped-store.js +72 -20
- package/dist/config/store.d.ts +12 -1
- package/dist/config/store.js +2 -1
- package/dist/contracts/registry.d.ts +36 -0
- package/dist/contracts/registry.js +40 -0
- package/dist/core/errors.d.ts +13 -1
- package/dist/core/errors.js +22 -1
- package/dist/core/index.d.ts +1 -2
- package/dist/core/index.js +1 -2
- package/dist/core/logger.d.ts +0 -1
- package/dist/core/logger.js +0 -1
- package/dist/i18n/command-labels.d.ts +0 -1
- package/dist/i18n/command-labels.js +0 -1
- package/dist/i18n/index.d.ts +0 -1
- package/dist/i18n/index.js +0 -1
- package/dist/i18n/locales/en.d.ts +0 -1
- package/dist/i18n/locales/en.js +11 -1
- package/dist/i18n/locales/ja.d.ts +0 -1
- package/dist/i18n/locales/ja.js +11 -1
- package/dist/i18n/types.d.ts +9 -1
- package/dist/i18n/types.js +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/ink/App.d.ts +0 -1
- package/dist/ink/App.js +0 -1
- package/dist/ink/components/Banner.d.ts +0 -1
- package/dist/ink/components/Banner.js +0 -1
- package/dist/ink/components/DetailView.d.ts +0 -1
- package/dist/ink/components/DetailView.js +0 -1
- package/dist/ink/components/ErrorView.d.ts +0 -1
- package/dist/ink/components/ErrorView.js +0 -1
- package/dist/ink/components/FilterSelect.d.ts +0 -1
- package/dist/ink/components/FilterSelect.js +0 -1
- package/dist/ink/components/Layout.d.ts +0 -1
- package/dist/ink/components/Layout.js +0 -1
- package/dist/ink/components/OptionForm.d.ts +0 -1
- package/dist/ink/components/OptionForm.js +15 -4
- package/dist/ink/components/ResultView.d.ts +0 -1
- package/dist/ink/components/ResultView.js +0 -1
- package/dist/ink/components/SpinnerView.d.ts +0 -1
- package/dist/ink/components/SpinnerView.js +0 -1
- package/dist/ink/components/TableView.d.ts +0 -1
- package/dist/ink/components/TableView.js +0 -1
- package/dist/ink/escape-sequences.d.ts +0 -1
- package/dist/ink/escape-sequences.js +0 -1
- package/dist/ink/index.d.ts +0 -1
- package/dist/ink/index.js +0 -1
- package/dist/ink/keymap.d.ts +0 -1
- package/dist/ink/keymap.js +0 -1
- package/dist/ink/registry/commands.d.ts +0 -1
- package/dist/ink/registry/commands.js +66 -3
- package/dist/ink/registry/executors.d.ts +0 -1
- package/dist/ink/registry/executors.js +31 -19
- package/dist/ink/screens/AuthLoginScreen.d.ts +0 -1
- package/dist/ink/screens/AuthLoginScreen.js +0 -1
- package/dist/ink/screens/CommandScreen.d.ts +0 -1
- package/dist/ink/screens/CommandScreen.js +12 -5
- package/dist/ink/screens/HomeScreen.d.ts +0 -1
- package/dist/ink/screens/HomeScreen.js +16 -4
- package/dist/ink/screens/PluginsScreen.d.ts +0 -1
- package/dist/ink/screens/PluginsScreen.js +27 -3
- package/dist/ink/screens/UpdateCheckScreen.d.ts +0 -1
- package/dist/ink/screens/UpdateCheckScreen.js +0 -1
- package/dist/ink/theme.d.ts +0 -1
- package/dist/ink/theme.js +0 -1
- package/dist/ink/types.d.ts +12 -1
- package/dist/ink/types.js +0 -1
- package/dist/ink/ui-theme.d.ts +0 -1
- package/dist/ink/ui-theme.js +0 -1
- package/dist/ink/use-stdin-recovery.d.ts +0 -1
- package/dist/ink/use-stdin-recovery.js +0 -1
- package/dist/plugins/describe.d.ts +59 -0
- package/dist/plugins/describe.js +144 -0
- package/dist/plugins/dispatch.d.ts +14 -2
- package/dist/plugins/dispatch.js +15 -5
- package/dist/plugins/templates.d.ts +0 -1
- package/dist/plugins/templates.js +12 -3
- package/dist/plugins/verify.d.ts +17 -1
- package/dist/plugins/verify.js +23 -7
- package/dist/sdk/api/auth.d.ts +0 -1
- package/dist/sdk/api/auth.js +0 -1
- package/dist/sdk/api/definition-batch.d.ts +0 -1
- package/dist/sdk/api/definition-batch.js +0 -1
- package/dist/sdk/api/definition.d.ts +0 -1
- package/dist/sdk/api/definition.js +0 -1
- package/dist/sdk/api/report-batch.d.ts +0 -1
- package/dist/sdk/api/report-batch.js +0 -1
- package/dist/sdk/api/report.d.ts +0 -1
- package/dist/sdk/api/report.js +0 -1
- package/dist/sdk/api/system.d.ts +0 -1
- package/dist/sdk/api/system.js +0 -1
- package/dist/sdk/client.d.ts +0 -1
- package/dist/sdk/client.js +0 -1
- package/dist/sdk/core/base-api.d.ts +7 -1
- package/dist/sdk/core/base-api.js +39 -1
- package/dist/sdk/core/errors.d.ts +0 -1
- package/dist/sdk/core/errors.js +0 -1
- package/dist/sdk/core/http-client.d.ts +0 -1
- package/dist/sdk/core/http-client.js +4 -2
- package/dist/sdk/core/index.d.ts +0 -1
- package/dist/sdk/core/index.js +0 -1
- package/dist/sdk/core/params.d.ts +0 -1
- package/dist/sdk/core/params.js +0 -1
- package/dist/sdk/core/xml-parser.d.ts +0 -1
- package/dist/sdk/core/xml-parser.js +0 -1
- package/dist/sdk/generated/types.d.ts +0 -1
- package/dist/sdk/generated/types.js +0 -1
- package/dist/sdk/index.d.ts +0 -1
- package/dist/sdk/index.js +0 -1
- package/dist/sdk/resources/definition-batches.d.ts +0 -1
- package/dist/sdk/resources/definition-batches.js +0 -1
- package/dist/sdk/resources/definitions.d.ts +0 -1
- package/dist/sdk/resources/definitions.js +0 -1
- package/dist/sdk/resources/index.d.ts +0 -1
- package/dist/sdk/resources/index.js +0 -1
- package/dist/sdk/resources/report-batches.d.ts +0 -1
- package/dist/sdk/resources/report-batches.js +0 -1
- package/dist/sdk/resources/reports.d.ts +0 -1
- package/dist/sdk/resources/reports.js +0 -1
- package/dist/sdk/resources/shared.d.ts +5 -1
- package/dist/sdk/resources/shared.js +7 -5
- package/dist/sdk/resources/systems.d.ts +0 -1
- package/dist/sdk/resources/systems.js +0 -1
- package/dist/sdk/types/common.d.ts +0 -1
- package/dist/sdk/types/common.js +0 -1
- package/dist/sdk/types/definition-batch.d.ts +0 -1
- package/dist/sdk/types/definition-batch.js +0 -1
- package/dist/sdk/types/definition.d.ts +2 -3
- package/dist/sdk/types/definition.js +0 -1
- package/dist/sdk/types/index.d.ts +0 -1
- package/dist/sdk/types/index.js +0 -1
- package/dist/sdk/types/public.d.ts +16 -5
- package/dist/sdk/types/public.js +0 -1
- package/dist/sdk/types/report-batch.d.ts +0 -1
- package/dist/sdk/types/report-batch.js +0 -1
- package/dist/sdk/types/report.d.ts +2 -3
- package/dist/sdk/types/report.js +0 -1
- package/dist/sdk/types/system.d.ts +0 -1
- package/dist/sdk/types/system.js +0 -1
- package/dist/ui/banner.d.ts +0 -1
- package/dist/ui/banner.js +0 -1
- package/dist/ui/error.d.ts +5 -2
- package/dist/ui/error.js +12 -6
- package/dist/ui/formatters/csv.d.ts +12 -1
- package/dist/ui/formatters/csv.js +24 -8
- package/dist/ui/formatters/envelope.d.ts +1 -1
- package/dist/ui/formatters/envelope.js +1 -2
- package/dist/ui/formatters/index.d.ts +4 -2
- package/dist/ui/formatters/index.js +9 -1
- package/dist/ui/formatters/json.d.ts +0 -7
- package/dist/ui/formatters/json.js +12 -2
- package/dist/ui/formatters/ndjson.d.ts +0 -19
- package/dist/ui/formatters/ndjson.js +2 -2
- package/dist/ui/formatters/quiet.d.ts +0 -1
- package/dist/ui/formatters/quiet.js +3 -3
- package/dist/ui/formatters/renderers.d.ts +0 -1
- package/dist/ui/formatters/renderers.js +0 -1
- package/dist/ui/formatters/table.d.ts +0 -1
- package/dist/ui/formatters/table.js +12 -10
- package/dist/ui/formatters/writer.d.ts +37 -0
- package/dist/ui/formatters/writer.js +82 -0
- package/dist/ui/index.d.ts +1 -1
- package/dist/ui/index.js +1 -1
- package/dist/ui/progress.d.ts +0 -1
- package/dist/ui/progress.js +0 -1
- package/dist/ui/prompt.d.ts +0 -1
- package/dist/ui/prompt.js +0 -1
- package/dist/ui/spinner.d.ts +0 -1
- package/dist/ui/spinner.js +0 -1
- package/dist/ui/table.d.ts +0 -1
- package/dist/ui/table.js +11 -11
- package/dist/ui/theme.d.ts +0 -1
- package/dist/ui/theme.js +0 -1
- package/dist/ui/width.d.ts +12 -1
- package/dist/ui/width.js +17 -1
- package/dist/utils/constants.d.ts +0 -1
- package/dist/utils/constants.js +0 -1
- package/dist/utils/file.d.ts +0 -1
- package/dist/utils/file.js +13 -3
- package/dist/utils/index.d.ts +0 -1
- package/dist/utils/index.js +0 -1
- package/dist/utils/output.d.ts +0 -1
- package/dist/utils/output.js +0 -1
- package/dist/utils/version.d.ts +0 -1
- package/dist/utils/version.js +0 -1
- package/package.json +2 -2
- package/dist/bin/irepo.d.ts.map +0 -1
- package/dist/bin/irepo.js.map +0 -1
- package/dist/commands/auth.d.ts.map +0 -1
- package/dist/commands/auth.js.map +0 -1
- package/dist/commands/config.d.ts.map +0 -1
- package/dist/commands/config.js.map +0 -1
- package/dist/commands/definition-batches/index.d.ts.map +0 -1
- package/dist/commands/definition-batches/index.js.map +0 -1
- package/dist/commands/definitions/get.d.ts.map +0 -1
- package/dist/commands/definitions/get.js.map +0 -1
- package/dist/commands/definitions/index.d.ts.map +0 -1
- package/dist/commands/definitions/index.js.map +0 -1
- package/dist/commands/definitions/labels.d.ts.map +0 -1
- package/dist/commands/definitions/labels.js.map +0 -1
- package/dist/commands/definitions/list.d.ts.map +0 -1
- package/dist/commands/definitions/list.js.map +0 -1
- package/dist/commands/definitions/lock.d.ts.map +0 -1
- package/dist/commands/definitions/lock.js.map +0 -1
- package/dist/commands/definitions/roles.d.ts.map +0 -1
- package/dist/commands/definitions/roles.js.map +0 -1
- package/dist/commands/index.d.ts.map +0 -1
- package/dist/commands/index.js.map +0 -1
- package/dist/commands/plugin.d.ts.map +0 -1
- package/dist/commands/plugin.js.map +0 -1
- package/dist/commands/raw.d.ts.map +0 -1
- package/dist/commands/raw.js.map +0 -1
- package/dist/commands/report-batches/index.d.ts.map +0 -1
- package/dist/commands/report-batches/index.js.map +0 -1
- package/dist/commands/reports/cluster-value.d.ts.map +0 -1
- package/dist/commands/reports/cluster-value.js.map +0 -1
- package/dist/commands/reports/copy.d.ts.map +0 -1
- package/dist/commands/reports/copy.js.map +0 -1
- package/dist/commands/reports/create-sorted.d.ts.map +0 -1
- package/dist/commands/reports/create-sorted.js.map +0 -1
- package/dist/commands/reports/download.d.ts.map +0 -1
- package/dist/commands/reports/download.js.map +0 -1
- package/dist/commands/reports/get.d.ts.map +0 -1
- package/dist/commands/reports/get.js.map +0 -1
- package/dist/commands/reports/index.d.ts.map +0 -1
- package/dist/commands/reports/index.js.map +0 -1
- package/dist/commands/reports/labels.d.ts.map +0 -1
- package/dist/commands/reports/labels.js.map +0 -1
- package/dist/commands/reports/list.d.ts.map +0 -1
- package/dist/commands/reports/list.js.map +0 -1
- package/dist/commands/reports/lock.d.ts.map +0 -1
- package/dist/commands/reports/lock.js.map +0 -1
- package/dist/commands/reports/roles.d.ts.map +0 -1
- package/dist/commands/reports/roles.js.map +0 -1
- package/dist/commands/systems/index.d.ts.map +0 -1
- package/dist/commands/systems/index.js.map +0 -1
- package/dist/config/client.d.ts.map +0 -1
- package/dist/config/client.js.map +0 -1
- package/dist/config/index.d.ts.map +0 -1
- package/dist/config/index.js.map +0 -1
- package/dist/config/migrate.d.ts.map +0 -1
- package/dist/config/migrate.js.map +0 -1
- package/dist/config/scoped-store.d.ts.map +0 -1
- package/dist/config/scoped-store.js.map +0 -1
- package/dist/config/store.d.ts.map +0 -1
- package/dist/config/store.js.map +0 -1
- package/dist/core/errors.d.ts.map +0 -1
- package/dist/core/errors.js.map +0 -1
- package/dist/core/index.d.ts.map +0 -1
- package/dist/core/index.js.map +0 -1
- package/dist/core/logger.d.ts.map +0 -1
- package/dist/core/logger.js.map +0 -1
- package/dist/i18n/command-labels.d.ts.map +0 -1
- package/dist/i18n/command-labels.js.map +0 -1
- package/dist/i18n/index.d.ts.map +0 -1
- package/dist/i18n/index.js.map +0 -1
- package/dist/i18n/locales/en.d.ts.map +0 -1
- package/dist/i18n/locales/en.js.map +0 -1
- package/dist/i18n/locales/ja.d.ts.map +0 -1
- package/dist/i18n/locales/ja.js.map +0 -1
- package/dist/i18n/types.d.ts.map +0 -1
- package/dist/i18n/types.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/ink/App.d.ts.map +0 -1
- package/dist/ink/App.js.map +0 -1
- package/dist/ink/components/Banner.d.ts.map +0 -1
- package/dist/ink/components/Banner.js.map +0 -1
- package/dist/ink/components/DetailView.d.ts.map +0 -1
- package/dist/ink/components/DetailView.js.map +0 -1
- package/dist/ink/components/ErrorView.d.ts.map +0 -1
- package/dist/ink/components/ErrorView.js.map +0 -1
- package/dist/ink/components/FilterSelect.d.ts.map +0 -1
- package/dist/ink/components/FilterSelect.js.map +0 -1
- package/dist/ink/components/Layout.d.ts.map +0 -1
- package/dist/ink/components/Layout.js.map +0 -1
- package/dist/ink/components/OptionForm.d.ts.map +0 -1
- package/dist/ink/components/OptionForm.js.map +0 -1
- package/dist/ink/components/ResultView.d.ts.map +0 -1
- package/dist/ink/components/ResultView.js.map +0 -1
- package/dist/ink/components/SpinnerView.d.ts.map +0 -1
- package/dist/ink/components/SpinnerView.js.map +0 -1
- package/dist/ink/components/TableView.d.ts.map +0 -1
- package/dist/ink/components/TableView.js.map +0 -1
- package/dist/ink/escape-sequences.d.ts.map +0 -1
- package/dist/ink/escape-sequences.js.map +0 -1
- package/dist/ink/index.d.ts.map +0 -1
- package/dist/ink/index.js.map +0 -1
- package/dist/ink/keymap.d.ts.map +0 -1
- package/dist/ink/keymap.js.map +0 -1
- package/dist/ink/registry/commands.d.ts.map +0 -1
- package/dist/ink/registry/commands.js.map +0 -1
- package/dist/ink/registry/executors.d.ts.map +0 -1
- package/dist/ink/registry/executors.js.map +0 -1
- package/dist/ink/screens/AuthLoginScreen.d.ts.map +0 -1
- package/dist/ink/screens/AuthLoginScreen.js.map +0 -1
- package/dist/ink/screens/CommandScreen.d.ts.map +0 -1
- package/dist/ink/screens/CommandScreen.js.map +0 -1
- package/dist/ink/screens/HomeScreen.d.ts.map +0 -1
- package/dist/ink/screens/HomeScreen.js.map +0 -1
- package/dist/ink/screens/PluginsScreen.d.ts.map +0 -1
- package/dist/ink/screens/PluginsScreen.js.map +0 -1
- package/dist/ink/screens/UpdateCheckScreen.d.ts.map +0 -1
- package/dist/ink/screens/UpdateCheckScreen.js.map +0 -1
- package/dist/ink/theme.d.ts.map +0 -1
- package/dist/ink/theme.js.map +0 -1
- package/dist/ink/types.d.ts.map +0 -1
- package/dist/ink/types.js.map +0 -1
- package/dist/ink/ui-theme.d.ts.map +0 -1
- package/dist/ink/ui-theme.js.map +0 -1
- package/dist/ink/use-stdin-recovery.d.ts.map +0 -1
- package/dist/ink/use-stdin-recovery.js.map +0 -1
- package/dist/plugins/dispatch.d.ts.map +0 -1
- package/dist/plugins/dispatch.js.map +0 -1
- package/dist/plugins/templates.d.ts.map +0 -1
- package/dist/plugins/templates.js.map +0 -1
- package/dist/plugins/verify.d.ts.map +0 -1
- package/dist/plugins/verify.js.map +0 -1
- package/dist/sdk/api/auth.d.ts.map +0 -1
- package/dist/sdk/api/auth.js.map +0 -1
- package/dist/sdk/api/definition-batch.d.ts.map +0 -1
- package/dist/sdk/api/definition-batch.js.map +0 -1
- package/dist/sdk/api/definition.d.ts.map +0 -1
- package/dist/sdk/api/definition.js.map +0 -1
- package/dist/sdk/api/report-batch.d.ts.map +0 -1
- package/dist/sdk/api/report-batch.js.map +0 -1
- package/dist/sdk/api/report.d.ts.map +0 -1
- package/dist/sdk/api/report.js.map +0 -1
- package/dist/sdk/api/system.d.ts.map +0 -1
- package/dist/sdk/api/system.js.map +0 -1
- package/dist/sdk/client.d.ts.map +0 -1
- package/dist/sdk/client.js.map +0 -1
- package/dist/sdk/core/base-api.d.ts.map +0 -1
- package/dist/sdk/core/base-api.js.map +0 -1
- package/dist/sdk/core/errors.d.ts.map +0 -1
- package/dist/sdk/core/errors.js.map +0 -1
- package/dist/sdk/core/http-client.d.ts.map +0 -1
- package/dist/sdk/core/http-client.js.map +0 -1
- package/dist/sdk/core/index.d.ts.map +0 -1
- package/dist/sdk/core/index.js.map +0 -1
- package/dist/sdk/core/params.d.ts.map +0 -1
- package/dist/sdk/core/params.js.map +0 -1
- package/dist/sdk/core/xml-parser.d.ts.map +0 -1
- package/dist/sdk/core/xml-parser.js.map +0 -1
- package/dist/sdk/generated/types.d.ts.map +0 -1
- package/dist/sdk/generated/types.js.map +0 -1
- package/dist/sdk/index.d.ts.map +0 -1
- package/dist/sdk/index.js.map +0 -1
- package/dist/sdk/resources/definition-batches.d.ts.map +0 -1
- package/dist/sdk/resources/definition-batches.js.map +0 -1
- package/dist/sdk/resources/definitions.d.ts.map +0 -1
- package/dist/sdk/resources/definitions.js.map +0 -1
- package/dist/sdk/resources/index.d.ts.map +0 -1
- package/dist/sdk/resources/index.js.map +0 -1
- package/dist/sdk/resources/report-batches.d.ts.map +0 -1
- package/dist/sdk/resources/report-batches.js.map +0 -1
- package/dist/sdk/resources/reports.d.ts.map +0 -1
- package/dist/sdk/resources/reports.js.map +0 -1
- package/dist/sdk/resources/shared.d.ts.map +0 -1
- package/dist/sdk/resources/shared.js.map +0 -1
- package/dist/sdk/resources/systems.d.ts.map +0 -1
- package/dist/sdk/resources/systems.js.map +0 -1
- package/dist/sdk/types/common.d.ts.map +0 -1
- package/dist/sdk/types/common.js.map +0 -1
- package/dist/sdk/types/definition-batch.d.ts.map +0 -1
- package/dist/sdk/types/definition-batch.js.map +0 -1
- package/dist/sdk/types/definition.d.ts.map +0 -1
- package/dist/sdk/types/definition.js.map +0 -1
- package/dist/sdk/types/index.d.ts.map +0 -1
- package/dist/sdk/types/index.js.map +0 -1
- package/dist/sdk/types/public.d.ts.map +0 -1
- package/dist/sdk/types/public.js.map +0 -1
- package/dist/sdk/types/report-batch.d.ts.map +0 -1
- package/dist/sdk/types/report-batch.js.map +0 -1
- package/dist/sdk/types/report.d.ts.map +0 -1
- package/dist/sdk/types/report.js.map +0 -1
- package/dist/sdk/types/system.d.ts.map +0 -1
- package/dist/sdk/types/system.js.map +0 -1
- package/dist/ui/banner.d.ts.map +0 -1
- package/dist/ui/banner.js.map +0 -1
- package/dist/ui/error.d.ts.map +0 -1
- package/dist/ui/error.js.map +0 -1
- package/dist/ui/formatters/csv.d.ts.map +0 -1
- package/dist/ui/formatters/csv.js.map +0 -1
- package/dist/ui/formatters/envelope.d.ts.map +0 -1
- package/dist/ui/formatters/envelope.js.map +0 -1
- package/dist/ui/formatters/index.d.ts.map +0 -1
- package/dist/ui/formatters/index.js.map +0 -1
- package/dist/ui/formatters/json.d.ts.map +0 -1
- package/dist/ui/formatters/json.js.map +0 -1
- package/dist/ui/formatters/ndjson.d.ts.map +0 -1
- package/dist/ui/formatters/ndjson.js.map +0 -1
- package/dist/ui/formatters/quiet.d.ts.map +0 -1
- package/dist/ui/formatters/quiet.js.map +0 -1
- package/dist/ui/formatters/renderers.d.ts.map +0 -1
- package/dist/ui/formatters/renderers.js.map +0 -1
- package/dist/ui/formatters/table.d.ts.map +0 -1
- package/dist/ui/formatters/table.js.map +0 -1
- package/dist/ui/index.d.ts.map +0 -1
- package/dist/ui/index.js.map +0 -1
- package/dist/ui/progress.d.ts.map +0 -1
- package/dist/ui/progress.js.map +0 -1
- package/dist/ui/prompt.d.ts.map +0 -1
- package/dist/ui/prompt.js.map +0 -1
- package/dist/ui/spinner.d.ts.map +0 -1
- package/dist/ui/spinner.js.map +0 -1
- package/dist/ui/table.d.ts.map +0 -1
- package/dist/ui/table.js.map +0 -1
- package/dist/ui/theme.d.ts.map +0 -1
- package/dist/ui/theme.js.map +0 -1
- package/dist/ui/width.d.ts.map +0 -1
- package/dist/ui/width.js.map +0 -1
- package/dist/utils/constants.d.ts.map +0 -1
- package/dist/utils/constants.js.map +0 -1
- package/dist/utils/file.d.ts.map +0 -1
- package/dist/utils/file.js.map +0 -1
- package/dist/utils/index.d.ts.map +0 -1
- package/dist/utils/index.js.map +0 -1
- package/dist/utils/output.d.ts.map +0 -1
- package/dist/utils/output.js.map +0 -1
- package/dist/utils/version.d.ts.map +0 -1
- package/dist/utils/version.js.map +0 -1
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
import { readFile } from "node:fs/promises";
|
|
5
5
|
import { basename } from "node:path";
|
|
6
6
|
import { handleError } from "../../core/errors.js";
|
|
7
|
+
import { encodingOption, fileTypeXmlCsv } from "../shared-options.js";
|
|
7
8
|
import { saveBinaryDownload, inferFilename } from "../../utils/file.js";
|
|
8
9
|
import { formatOutput } from "../../ui/formatters/index.js";
|
|
9
10
|
import { withSpinner } from "../../ui/spinner.js";
|
|
@@ -15,8 +16,8 @@ export function registerDefinitionsLabels(parent, getClient) {
|
|
|
15
16
|
labels
|
|
16
17
|
.command("download")
|
|
17
18
|
.description("Download definition labels")
|
|
18
|
-
.
|
|
19
|
-
.
|
|
19
|
+
.addOption(fileTypeXmlCsv("--type <type>"))
|
|
20
|
+
.addOption(encodingOption())
|
|
20
21
|
.option("-o, --output <path>", "Output file path")
|
|
21
22
|
.action(async (options, cmd) => {
|
|
22
23
|
try {
|
|
@@ -38,8 +39,8 @@ export function registerDefinitionsLabels(parent, getClient) {
|
|
|
38
39
|
labels
|
|
39
40
|
.command("upload <file>")
|
|
40
41
|
.description("Upload definition labels")
|
|
41
|
-
.
|
|
42
|
-
.
|
|
42
|
+
.addOption(fileTypeXmlCsv("--type <type>"))
|
|
43
|
+
.addOption(encodingOption())
|
|
43
44
|
.action(async (file, options, cmd) => {
|
|
44
45
|
try {
|
|
45
46
|
const globalOpts = cmd.optsWithGlobals();
|
|
@@ -68,8 +69,8 @@ export function registerDefinitionsLabels(parent, getClient) {
|
|
|
68
69
|
reportLabels
|
|
69
70
|
.command("download")
|
|
70
71
|
.description("Download report label definitions")
|
|
71
|
-
.
|
|
72
|
-
.
|
|
72
|
+
.addOption(fileTypeXmlCsv("--type <type>"))
|
|
73
|
+
.addOption(encodingOption())
|
|
73
74
|
.option("-o, --output <path>", "Output file path")
|
|
74
75
|
.action(async (options, cmd) => {
|
|
75
76
|
try {
|
|
@@ -91,8 +92,8 @@ export function registerDefinitionsLabels(parent, getClient) {
|
|
|
91
92
|
reportLabels
|
|
92
93
|
.command("upload <file>")
|
|
93
94
|
.description("Upload report label definitions")
|
|
94
|
-
.
|
|
95
|
-
.
|
|
95
|
+
.addOption(fileTypeXmlCsv("--type <type>"))
|
|
96
|
+
.addOption(encodingOption())
|
|
96
97
|
.action(async (file, options, cmd) => {
|
|
97
98
|
try {
|
|
98
99
|
const globalOpts = cmd.optsWithGlobals();
|
|
@@ -115,4 +116,3 @@ export function registerDefinitionsLabels(parent, getClient) {
|
|
|
115
116
|
}
|
|
116
117
|
});
|
|
117
118
|
}
|
|
118
|
-
//# sourceMappingURL=labels.js.map
|
|
@@ -2,15 +2,18 @@ import { PublicStatus } from "../../sdk/index.js";
|
|
|
2
2
|
import { formatOutput } from "../../ui/formatters/index.js";
|
|
3
3
|
import { typeLabels, currentLabels } from "../../ui/formatters/renderers.js";
|
|
4
4
|
import { handleError } from "../../core/errors.js";
|
|
5
|
+
import { choiceOption, collectSystemKeys, parseChoiceList, parseLabelId, } from "../shared-options.js";
|
|
5
6
|
export function registerDefinitionsList(parent, getClient) {
|
|
6
7
|
parent
|
|
7
8
|
.command("list")
|
|
8
9
|
.description("List definitions")
|
|
9
|
-
|
|
10
|
+
// タイポしたフィルタ値を黙って捨てると「フィルタなしの全件」が
|
|
11
|
+
// 成功の顔で返る — choices()/parser でパース時に弾く (help にも許容値が出る)
|
|
12
|
+
.option("-l, --label-id <id>", "Label ID (-9 for all levels)", parseLabelId)
|
|
10
13
|
.option("-w, --word <keyword>", "Search keyword")
|
|
11
|
-
.
|
|
12
|
-
.option("-t, --type <types>", "Item types to include (label,sheet,set,book)")
|
|
13
|
-
.option("--word-target <targets>", "Search targets (name,remarks)", "name")
|
|
14
|
+
.addOption(choiceOption("--public-status <status>", "Public status", ["test", "published"]))
|
|
15
|
+
.option("-t, --type <types>", "Item types to include (comma-separated: label,sheet,set,book)", parseChoiceList(["label", "sheet", "set", "book"]))
|
|
16
|
+
.option("--word-target <targets>", "Search targets (comma-separated: name,remarks)", parseChoiceList(["name", "remarks"]), "name")
|
|
14
17
|
.option("--history", "Include history definitions")
|
|
15
18
|
.option("-k, --system-key <n>=<v>", "System key (1-5)", collectSystemKeys, {})
|
|
16
19
|
.action(async (options, cmd) => {
|
|
@@ -46,12 +49,12 @@ function buildListParams(options) {
|
|
|
46
49
|
params.word = options.word;
|
|
47
50
|
if (options.history)
|
|
48
51
|
params.history = true;
|
|
49
|
-
// Public status
|
|
52
|
+
// Public status (choices() 検証済み)
|
|
50
53
|
if (options.publicStatus === "test")
|
|
51
54
|
params.publicStatus = PublicStatus.Test;
|
|
52
55
|
else if (options.publicStatus === "published")
|
|
53
56
|
params.publicStatus = PublicStatus.Published;
|
|
54
|
-
// Item type targets
|
|
57
|
+
// Item type targets (parseChoiceList 検証済み)
|
|
55
58
|
if (options.type) {
|
|
56
59
|
const types = options.type.split(",");
|
|
57
60
|
params.itemTargetLabel = types.includes("label");
|
|
@@ -59,13 +62,13 @@ function buildListParams(options) {
|
|
|
59
62
|
params.itemTargetSet = types.includes("set");
|
|
60
63
|
params.itemTargetBook = types.includes("book");
|
|
61
64
|
}
|
|
62
|
-
// Word targets
|
|
65
|
+
// Word targets (parseChoiceList 検証済み)
|
|
63
66
|
if (options.wordTarget) {
|
|
64
67
|
const targets = options.wordTarget.split(",");
|
|
65
68
|
params.wordTargetName = targets.includes("name");
|
|
66
69
|
params.wordTargetRemarks = targets.includes("remarks");
|
|
67
70
|
}
|
|
68
|
-
// System keys
|
|
71
|
+
// System keys (collectSystemKeys 検証済み)
|
|
69
72
|
const systemKeys = options.systemKey;
|
|
70
73
|
if (systemKeys) {
|
|
71
74
|
for (const [n, v] of Object.entries(systemKeys)) {
|
|
@@ -74,12 +77,3 @@ function buildListParams(options) {
|
|
|
74
77
|
}
|
|
75
78
|
return params;
|
|
76
79
|
}
|
|
77
|
-
// ── Helpers ────────────────────────────────────────────────────
|
|
78
|
-
function collectSystemKeys(value, previous) {
|
|
79
|
-
const [n, v] = value.split("=", 2);
|
|
80
|
-
if (n && v && Number(n) >= 1 && Number(n) <= 5) {
|
|
81
|
-
previous[n] = v;
|
|
82
|
-
}
|
|
83
|
-
return previous;
|
|
84
|
-
}
|
|
85
|
-
//# sourceMappingURL=list.js.map
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
import { handleError } from "../../core/errors.js";
|
|
1
|
+
import { assertNumericId, handleError } from "../../core/errors.js";
|
|
2
2
|
import { printSuccess } from "../../ui/index.js";
|
|
3
3
|
import { withSpinner } from "../../ui/spinner.js";
|
|
4
4
|
export function registerDefinitionsLock(parent, getClient) {
|
|
5
5
|
parent
|
|
6
|
-
.command("lock
|
|
6
|
+
.command("lock")
|
|
7
7
|
.description("Acquire exclusive lock on a definition")
|
|
8
|
+
.argument("<topId>", "Definition TOPID (numeric)")
|
|
8
9
|
.action(async (topId, _options, cmd) => {
|
|
9
10
|
try {
|
|
11
|
+
assertNumericId(topId, "topId");
|
|
10
12
|
const client = await getClient(cmd);
|
|
11
13
|
await withSpinner("processing", async () => {
|
|
12
14
|
await client.definitions.lock({ topId });
|
|
@@ -18,10 +20,12 @@ export function registerDefinitionsLock(parent, getClient) {
|
|
|
18
20
|
}
|
|
19
21
|
});
|
|
20
22
|
parent
|
|
21
|
-
.command("unlock
|
|
23
|
+
.command("unlock")
|
|
22
24
|
.description("Release exclusive lock on a definition")
|
|
25
|
+
.argument("<topId>", "Definition TOPID (numeric)")
|
|
23
26
|
.action(async (topId, _options, cmd) => {
|
|
24
27
|
try {
|
|
28
|
+
assertNumericId(topId, "topId");
|
|
25
29
|
const client = await getClient(cmd);
|
|
26
30
|
await withSpinner("processing", async () => {
|
|
27
31
|
await client.definitions.unlock({ topId });
|
|
@@ -33,4 +37,3 @@ export function registerDefinitionsLock(parent, getClient) {
|
|
|
33
37
|
}
|
|
34
38
|
});
|
|
35
39
|
}
|
|
36
|
-
//# sourceMappingURL=lock.js.map
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
import { readFile } from "node:fs/promises";
|
|
5
5
|
import { basename } from "node:path";
|
|
6
6
|
import { handleError } from "../../core/errors.js";
|
|
7
|
+
import { choiceOption, encodingOption, fileTypeXmlCsv } from "../shared-options.js";
|
|
7
8
|
import { saveBinaryDownload, inferFilename } from "../../utils/file.js";
|
|
8
9
|
import { formatOutput } from "../../ui/formatters/index.js";
|
|
9
10
|
import { withSpinner } from "../../ui/spinner.js";
|
|
@@ -14,8 +15,8 @@ export function registerDefinitionsRoles(parent, getClient) {
|
|
|
14
15
|
roles
|
|
15
16
|
.command("download")
|
|
16
17
|
.description("Download definition roles")
|
|
17
|
-
.
|
|
18
|
-
.
|
|
18
|
+
.addOption(fileTypeXmlCsv("--type <type>"))
|
|
19
|
+
.addOption(encodingOption())
|
|
19
20
|
.option("-o, --output <path>", "Output file path")
|
|
20
21
|
.action(async (options, cmd) => {
|
|
21
22
|
try {
|
|
@@ -37,10 +38,10 @@ export function registerDefinitionsRoles(parent, getClient) {
|
|
|
37
38
|
roles
|
|
38
39
|
.command("upload <file>")
|
|
39
40
|
.description("Upload definition roles")
|
|
40
|
-
.
|
|
41
|
-
.
|
|
42
|
-
.
|
|
43
|
-
.
|
|
41
|
+
.addOption(fileTypeXmlCsv("--type <type>"))
|
|
42
|
+
.addOption(encodingOption())
|
|
43
|
+
.addOption(choiceOption("--def-role-mode <mode>", "Apply to revision definitions", ["0", "1"]))
|
|
44
|
+
.addOption(choiceOption("--rep-role-mode <mode>", "Apply to input reports", ["0", "1"]))
|
|
44
45
|
.action(async (file, options, cmd) => {
|
|
45
46
|
try {
|
|
46
47
|
const globalOpts = cmd.optsWithGlobals();
|
|
@@ -65,4 +66,3 @@ export function registerDefinitionsRoles(parent, getClient) {
|
|
|
65
66
|
}
|
|
66
67
|
});
|
|
67
68
|
}
|
|
68
|
-
//# sourceMappingURL=roles.js.map
|
package/dist/commands/index.d.ts
CHANGED
|
@@ -8,4 +8,3 @@ export { reportsCommand } from "./reports/index.js";
|
|
|
8
8
|
export { reportBatchesCommand } from "./report-batches/index.js";
|
|
9
9
|
export { definitionBatchesCommand } from "./definition-batches/index.js";
|
|
10
10
|
export { systemsCommand } from "./systems/index.js";
|
|
11
|
-
//# sourceMappingURL=index.d.ts.map
|
package/dist/commands/index.js
CHANGED
|
@@ -8,4 +8,3 @@ export { reportsCommand } from "./reports/index.js";
|
|
|
8
8
|
export { reportBatchesCommand } from "./report-batches/index.js";
|
|
9
9
|
export { definitionBatchesCommand } from "./definition-batches/index.js";
|
|
10
10
|
export { systemsCommand } from "./systems/index.js";
|
|
11
|
-
//# sourceMappingURL=index.js.map
|
package/dist/commands/plugin.js
CHANGED
|
@@ -7,13 +7,15 @@
|
|
|
7
7
|
* (verify).
|
|
8
8
|
*/
|
|
9
9
|
import { Command } from "commander";
|
|
10
|
-
import { chmodSync, existsSync, mkdirSync, writeFileSync } from "node:fs";
|
|
10
|
+
import { chmodSync, existsSync, mkdirSync, mkdtempSync, rmSync, writeFileSync } from "node:fs";
|
|
11
|
+
import { tmpdir } from "node:os";
|
|
11
12
|
import { join } from "node:path";
|
|
12
13
|
import { findPlugin, listPlugins, pluginHomeDir, isValidPluginName, PLUGIN_PREFIX, } from "../plugins/dispatch.js";
|
|
13
14
|
import { shTemplate, nodeTemplate } from "../plugins/templates.js";
|
|
14
|
-
import { verifyPlugin } from "../plugins/verify.js";
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
15
|
+
import { verifyPlugin, runPlugin, parseLines } from "../plugins/verify.js";
|
|
16
|
+
import { validateDescribe, buildDescribeRow } from "../plugins/describe.js";
|
|
17
|
+
import { formatOutput, out } from "../ui/index.js";
|
|
18
|
+
import { handleError, ValidationError } from "../core/errors.js";
|
|
17
19
|
export const pluginCommand = new Command("plugin").description("Manage i-repo plugins (PATH-based i-repo-* executables)");
|
|
18
20
|
pluginCommand
|
|
19
21
|
.command("list")
|
|
@@ -39,13 +41,74 @@ pluginCommand
|
|
|
39
41
|
.action((name) => {
|
|
40
42
|
const p = findPlugin(name);
|
|
41
43
|
if (p) {
|
|
42
|
-
|
|
44
|
+
out(p);
|
|
43
45
|
}
|
|
44
46
|
else {
|
|
45
47
|
console.error(`Plugin "i-repo-${name}" not found on PATH.`);
|
|
46
48
|
process.exitCode = 1;
|
|
47
49
|
}
|
|
48
50
|
});
|
|
51
|
+
pluginCommand
|
|
52
|
+
.command("describe")
|
|
53
|
+
.description("Show a plugin's self-description (--plugin-schema): contract versions, recordTypes, params")
|
|
54
|
+
.argument("<name>", "Plugin name (without the i-repo- prefix)")
|
|
55
|
+
.action((name, _options, cmd) => {
|
|
56
|
+
const globalOpts = cmd.optsWithGlobals();
|
|
57
|
+
try {
|
|
58
|
+
const bin = findPlugin(name);
|
|
59
|
+
if (!bin) {
|
|
60
|
+
handleError(new ValidationError(`Plugin "i-repo-${name}" not found on PATH.`), { format: globalOpts.format });
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
63
|
+
// verify と同じ信頼境界で1回だけ問い合わせる (allow-list env / 一時cwd /
|
|
64
|
+
// timeout)。メタデータ照会に pluginPassEnv の秘密は不要 (passEnv:false)
|
|
65
|
+
const cwd = mkdtempSync(join(tmpdir(), "irepo-describe-"));
|
|
66
|
+
let probe;
|
|
67
|
+
try {
|
|
68
|
+
probe = runPlugin(bin, ["--plugin-schema"], { cwd, passEnv: false });
|
|
69
|
+
}
|
|
70
|
+
finally {
|
|
71
|
+
rmSync(cwd, { recursive: true, force: true });
|
|
72
|
+
}
|
|
73
|
+
if (probe.failed || probe.status !== 0) {
|
|
74
|
+
handleError(new ValidationError(`Plugin "i-repo-${name}" does not answer --plugin-schema (exit ${probe.status}). ` +
|
|
75
|
+
`Self-description is optional — see docs/PLUGINS.md §3.`), { format: globalOpts.format });
|
|
76
|
+
return;
|
|
77
|
+
}
|
|
78
|
+
const { rows, invalid } = parseLines(probe.stdout);
|
|
79
|
+
const declared = rows[0];
|
|
80
|
+
if (invalid.length > 0 || rows.length !== 1 || !Array.isArray(declared?.pluginApi)) {
|
|
81
|
+
handleError(new ValidationError(`Plugin "i-repo-${name}" answered --plugin-schema but not with a single JSON line containing pluginApi[].`), { format: globalOpts.format });
|
|
82
|
+
return;
|
|
83
|
+
}
|
|
84
|
+
// 壊れた宣言を黙って表示しない — これを信じるフォーム生成側を守る
|
|
85
|
+
const problems = validateDescribe(declared);
|
|
86
|
+
if (problems.length > 0) {
|
|
87
|
+
handleError(new ValidationError(`Plugin "i-repo-${name}" has a malformed self-description: ${problems[0]}`), { format: globalOpts.format });
|
|
88
|
+
return;
|
|
89
|
+
}
|
|
90
|
+
const format = (globalOpts.format ?? "table");
|
|
91
|
+
const row = buildDescribeRow(PLUGIN_PREFIX + name, bin, declared);
|
|
92
|
+
// 人間面 (table/csv) では params を読める1行に整形 (ndjson/json は宣言そのまま —
|
|
93
|
+
// render と同じ「ラベル化は人間面のみ」の流儀)
|
|
94
|
+
if ((format === "table" || format === "csv") && Array.isArray(row.params)) {
|
|
95
|
+
row.params = row.params
|
|
96
|
+
.map((p) => {
|
|
97
|
+
const choices = Array.isArray(p.choices) ? `:${p.choices.join("|")}` : "";
|
|
98
|
+
return `${String(p.name)} <${String(p.type)}${choices}>${p.required ? " (required)" : ""}`;
|
|
99
|
+
})
|
|
100
|
+
.join(", ");
|
|
101
|
+
}
|
|
102
|
+
formatOutput(row, {
|
|
103
|
+
format,
|
|
104
|
+
quiet: globalOpts.quiet,
|
|
105
|
+
quietField: "plugin",
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
catch (error) {
|
|
109
|
+
handleError(error, { format: globalOpts.format });
|
|
110
|
+
}
|
|
111
|
+
});
|
|
49
112
|
pluginCommand
|
|
50
113
|
.command("init")
|
|
51
114
|
.description("Scaffold a contract-conformant plugin in ~/.i-repo/plugins")
|
|
@@ -93,7 +156,7 @@ pluginCommand
|
|
|
93
156
|
}
|
|
94
157
|
for (const f of created)
|
|
95
158
|
console.error(`✅ created ${f}`);
|
|
96
|
-
console.error(` Try it: i-repo ${name}
|
|
159
|
+
console.error(` Try it: i-repo plugin describe ${name}`);
|
|
97
160
|
console.error(` Test it: cat examples/fixtures/reports-list.ndjson | ${target}`);
|
|
98
161
|
console.error(` Check it: i-repo plugin verify ${name}`);
|
|
99
162
|
});
|
|
@@ -130,4 +193,3 @@ pluginCommand
|
|
|
130
193
|
handleError(error, { format: globalOpts.format });
|
|
131
194
|
}
|
|
132
195
|
});
|
|
133
|
-
//# sourceMappingURL=plugin.js.map
|
package/dist/commands/raw.d.ts
CHANGED
package/dist/commands/raw.js
CHANGED
|
@@ -8,8 +8,8 @@ import { Command } from "commander";
|
|
|
8
8
|
import { readFile, writeFile } from "node:fs/promises";
|
|
9
9
|
import { basename } from "node:path";
|
|
10
10
|
import { createClient } from "../config/client.js";
|
|
11
|
-
import { handleError } from "../core/errors.js";
|
|
12
|
-
import { withSpinner } from "../ui/index.js";
|
|
11
|
+
import { handleError, ValidationError } from "../core/errors.js";
|
|
12
|
+
import { withSpinner, out } from "../ui/index.js";
|
|
13
13
|
export const rawCommand = new Command("raw")
|
|
14
14
|
.description("Execute raw API command (returns XML)")
|
|
15
15
|
.argument("<params...>", "API parameters as key=value pairs (e.g. command=GetReportList labelId=-9)")
|
|
@@ -24,7 +24,8 @@ export const rawCommand = new Command("raw")
|
|
|
24
24
|
for (const param of params) {
|
|
25
25
|
const eqIdx = param.indexOf("=");
|
|
26
26
|
if (eqIdx < 1) {
|
|
27
|
-
|
|
27
|
+
// 引数形式の誤りは検証エラー (exit 11) — 素の Error だと exit 1 になる
|
|
28
|
+
throw new ValidationError(`Invalid parameter "${param}". Use key=value format (e.g. command=GetReportList)`);
|
|
28
29
|
}
|
|
29
30
|
parsedParams[param.substring(0, eqIdx)] = param.substring(eqIdx + 1);
|
|
30
31
|
}
|
|
@@ -54,11 +55,10 @@ export const rawCommand = new Command("raw")
|
|
|
54
55
|
}
|
|
55
56
|
}
|
|
56
57
|
else {
|
|
57
|
-
|
|
58
|
+
out(xml);
|
|
58
59
|
}
|
|
59
60
|
}
|
|
60
61
|
catch (error) {
|
|
61
62
|
handleError(error, { format: globalOpts.format });
|
|
62
63
|
}
|
|
63
64
|
});
|
|
64
|
-
//# sourceMappingURL=raw.js.map
|