i-repo 2.1.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/dist/bin/irepo.d.ts +0 -1
- package/dist/bin/irepo.js +36 -3
- package/dist/commands/auth.d.ts +0 -1
- package/dist/commands/auth.js +0 -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 +0 -1
- package/dist/commands/definition-batches/index.d.ts +0 -1
- package/dist/commands/definition-batches/index.js +2 -1
- package/dist/commands/definitions/get.d.ts +0 -1
- package/dist/commands/definitions/get.js +0 -1
- 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 +0 -1
- package/dist/commands/definitions/list.d.ts +0 -1
- package/dist/commands/definitions/list.js +0 -1
- package/dist/commands/definitions/lock.d.ts +0 -1
- package/dist/commands/definitions/lock.js +0 -1
- package/dist/commands/definitions/roles.d.ts +0 -1
- package/dist/commands/definitions/roles.js +0 -1
- 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 +0 -1
- package/dist/commands/raw.d.ts +0 -1
- package/dist/commands/raw.js +0 -1
- package/dist/commands/report-batches/index.d.ts +0 -1
- package/dist/commands/report-batches/index.js +5 -1
- package/dist/commands/reports/cluster-value.d.ts +0 -1
- package/dist/commands/reports/cluster-value.js +0 -1
- package/dist/commands/reports/copy.d.ts +0 -1
- package/dist/commands/reports/copy.js +0 -1
- package/dist/commands/reports/create-sorted.d.ts +0 -1
- package/dist/commands/reports/create-sorted.js +0 -1
- package/dist/commands/reports/download.d.ts +0 -1
- package/dist/commands/reports/download.js +0 -1
- package/dist/commands/reports/get.d.ts +0 -1
- package/dist/commands/reports/get.js +0 -1
- 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 +0 -1
- package/dist/commands/reports/list.d.ts +0 -1
- package/dist/commands/reports/list.js +0 -1
- package/dist/commands/reports/lock.d.ts +0 -1
- package/dist/commands/reports/lock.js +0 -1
- package/dist/commands/reports/roles.d.ts +0 -1
- package/dist/commands/reports/roles.js +0 -1
- package/dist/commands/schema.d.ts +0 -1
- package/dist/commands/schema.js +0 -1
- package/dist/commands/shared-options.d.ts +0 -1
- package/dist/commands/shared-options.js +0 -1
- package/dist/commands/systems/index.d.ts +0 -1
- package/dist/commands/systems/index.js +0 -1
- package/dist/config/client.d.ts +0 -1
- package/dist/config/client.js +0 -1
- package/dist/config/command-gate.d.ts +0 -1
- package/dist/config/command-gate.js +0 -1
- 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 +32 -11
- package/dist/config/store.d.ts +0 -1
- package/dist/config/store.js +0 -1
- package/dist/contracts/registry.d.ts +0 -1
- package/dist/contracts/registry.js +0 -1
- package/dist/core/errors.d.ts +1 -1
- package/dist/core/errors.js +4 -1
- package/dist/core/index.d.ts +0 -1
- package/dist/core/index.js +0 -1
- 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 +0 -1
- package/dist/i18n/locales/ja.d.ts +0 -1
- package/dist/i18n/locales/ja.js +0 -1
- package/dist/i18n/types.d.ts +0 -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 +0 -1
- 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 +0 -1
- package/dist/ink/registry/executors.d.ts +0 -1
- package/dist/ink/registry/executors.js +4 -7
- 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 +0 -1
- package/dist/ink/screens/HomeScreen.d.ts +0 -1
- package/dist/ink/screens/HomeScreen.js +0 -1
- package/dist/ink/screens/PluginsScreen.d.ts +0 -1
- package/dist/ink/screens/PluginsScreen.js +0 -1
- 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 +0 -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 +0 -1
- package/dist/plugins/describe.js +0 -1
- package/dist/plugins/dispatch.d.ts +0 -1
- package/dist/plugins/dispatch.js +0 -1
- package/dist/plugins/templates.d.ts +0 -1
- package/dist/plugins/templates.js +0 -1
- package/dist/plugins/verify.d.ts +0 -1
- package/dist/plugins/verify.js +0 -1
- 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 +0 -1
- 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 +0 -1
- package/dist/sdk/resources/shared.js +0 -1
- 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 +0 -1
- 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 +0 -1
- 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 +0 -1
- 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 +21 -6
- package/dist/ui/formatters/envelope.d.ts +0 -1
- package/dist/ui/formatters/envelope.js +0 -1
- package/dist/ui/formatters/index.d.ts +0 -1
- package/dist/ui/formatters/index.js +0 -1
- package/dist/ui/formatters/json.d.ts +0 -7
- package/dist/ui/formatters/json.js +11 -2
- package/dist/ui/formatters/ndjson.d.ts +0 -1
- package/dist/ui/formatters/ndjson.js +0 -1
- package/dist/ui/formatters/quiet.d.ts +0 -1
- package/dist/ui/formatters/quiet.js +0 -1
- 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 +4 -3
- package/dist/ui/formatters/writer.d.ts +0 -1
- package/dist/ui/formatters/writer.js +0 -1
- package/dist/ui/index.d.ts +0 -1
- package/dist/ui/index.js +0 -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 +0 -1
- 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/schema.d.ts.map +0 -1
- package/dist/commands/schema.js.map +0 -1
- package/dist/commands/shared-options.d.ts.map +0 -1
- package/dist/commands/shared-options.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/command-gate.d.ts.map +0 -1
- package/dist/config/command-gate.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/contracts/registry.d.ts.map +0 -1
- package/dist/contracts/registry.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/describe.d.ts.map +0 -1
- package/dist/plugins/describe.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/formatters/writer.d.ts.map +0 -1
- package/dist/ui/formatters/writer.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
package/dist/bin/irepo.d.ts
CHANGED
package/dist/bin/irepo.js
CHANGED
|
@@ -281,6 +281,39 @@ const isMain = (() => {
|
|
|
281
281
|
return false;
|
|
282
282
|
}
|
|
283
283
|
})();
|
|
284
|
-
if (isMain)
|
|
285
|
-
|
|
286
|
-
|
|
284
|
+
if (isMain) {
|
|
285
|
+
// パイプ下流が早く閉じると stdout への書き込みが EPIPE を投げる
|
|
286
|
+
// (`i-repo rep list | head` など)。握りつぶさないと Node が生の
|
|
287
|
+
// スタックトレースを吐く — ndjson パイプを売りにする CLI で最も目立つ
|
|
288
|
+
// 行儀の悪さなので、EPIPE のみ静かに終了する (他のエラーは握りつぶさない)。
|
|
289
|
+
const onStreamError = (err) => {
|
|
290
|
+
if (err.code === "EPIPE")
|
|
291
|
+
process.exit(0);
|
|
292
|
+
throw err;
|
|
293
|
+
};
|
|
294
|
+
process.stdout.on("error", onStreamError);
|
|
295
|
+
process.stderr.on("error", onStreamError);
|
|
296
|
+
// run() 内部は try/catch で整形済みだが、try ブロック外 (引数の事前パース等)
|
|
297
|
+
// や finally の例外、未捕捉の Promise 拒否がここまで漏れると生スタックトレースに
|
|
298
|
+
// なる。最後の安全網として整形し、終了コードを必ず非ゼロにする。
|
|
299
|
+
const printFatal = (error) => {
|
|
300
|
+
const info = extractErrorInfo(error);
|
|
301
|
+
printError(error);
|
|
302
|
+
return info.exitCode || 1;
|
|
303
|
+
};
|
|
304
|
+
// run() 由来の拒否: 仕事は終わっているので exitCode を立ててイベントループを
|
|
305
|
+
// 自然にドレインさせる (process.exit で stdout のバッファ出力を切らない —
|
|
306
|
+
// 本体が一貫して採る方針)。
|
|
307
|
+
run().catch((error) => {
|
|
308
|
+
process.exitCode = printFatal(error);
|
|
309
|
+
});
|
|
310
|
+
// 未捕捉例外 / 未処理 Promise 拒否: 状態が不明なうえ、活きたハンドル
|
|
311
|
+
// (Ink レンダループ・spinner のタイマー・処理中の通信) があるとイベント
|
|
312
|
+
// ループが終わらずハングしうる。ハンドラを登録した時点で Node 既定の
|
|
313
|
+
// 即時終了を奪っているので、整形後に明示的に終了させて非ゼロを保証する。
|
|
314
|
+
const onFatal = (error) => {
|
|
315
|
+
process.exit(printFatal(error));
|
|
316
|
+
};
|
|
317
|
+
process.on("uncaughtException", onFatal);
|
|
318
|
+
process.on("unhandledRejection", onFatal);
|
|
319
|
+
}
|
package/dist/commands/auth.d.ts
CHANGED
package/dist/commands/auth.js
CHANGED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 一括処理の部分失敗を exit code に反映する。
|
|
3
|
+
*
|
|
4
|
+
* AutoGenerate / Update / CreateBinder などはレコード単位の結果配列
|
|
5
|
+
* (BatchCommandResult[]) を返し、各 code が "0" 以外なら**その行**が失敗。
|
|
6
|
+
* サーバ全体のエラーは SDK が ApiError (exit 3) を投げるのでここには来ない。
|
|
7
|
+
*
|
|
8
|
+
* 以前は失敗行があっても exit 0 で終わっていた。cron / CI で一括登録を回すと
|
|
9
|
+
* 失敗行が誰にも気づかれず欠損し続ける (沈黙の失敗)。1件でも失敗があれば
|
|
10
|
+
* ExitCode.PartialFailure (7) を立て、件数と code を stderr に出す。
|
|
11
|
+
*
|
|
12
|
+
* 注: 破壊系 delete のトランザクション応答 (successCount/targetCount) は
|
|
13
|
+
* 形が異なり実サーバ挙動の確認が要るため、ここでは扱わない (別途)。
|
|
14
|
+
*/
|
|
15
|
+
import { ExitCode } from "../core/errors.js";
|
|
16
|
+
export function reportPartialFailures(results) {
|
|
17
|
+
const failed = results.filter((r) => String(r.code) !== "0");
|
|
18
|
+
if (failed.length === 0)
|
|
19
|
+
return;
|
|
20
|
+
process.exitCode = ExitCode.PartialFailure;
|
|
21
|
+
const codes = [...new Set(failed.map((f) => String(f.code)))].join(", ");
|
|
22
|
+
// stderr へ: stdout のデータ (整形済み結果) を汚さない
|
|
23
|
+
console.error(` ${failed.length} of ${results.length} item(s) failed (code ${codes}; 0 = success). exit ${ExitCode.PartialFailure}`);
|
|
24
|
+
}
|
package/dist/commands/config.js
CHANGED
|
@@ -8,6 +8,7 @@ import { readFile } from "node:fs/promises";
|
|
|
8
8
|
import { basename } from "node:path";
|
|
9
9
|
import { createClient } from "../../config/client.js";
|
|
10
10
|
import { handleError } from "../../core/errors.js";
|
|
11
|
+
import { reportPartialFailures } from "../batch-result.js";
|
|
11
12
|
import { choiceOption, fileTypeXmlCsv, parseDateTime, parseLabelId, parseNumeric, } from "../shared-options.js";
|
|
12
13
|
import { formatOutput } from "../../ui/formatters/index.js";
|
|
13
14
|
import { withSpinner, confirmDestructive, printInfo } from "../../ui/index.js";
|
|
@@ -39,6 +40,7 @@ definitionBatchesCommand
|
|
|
39
40
|
columns: ["code", "remarks"],
|
|
40
41
|
quiet: globalOpts.quiet,
|
|
41
42
|
});
|
|
43
|
+
reportPartialFailures(results);
|
|
42
44
|
}
|
|
43
45
|
catch (error) {
|
|
44
46
|
handleError(error, { format: globalOpts.format });
|
|
@@ -109,4 +111,3 @@ const flagMap = { no: "0", yes: "1", "0": "0", "1": "1" };
|
|
|
109
111
|
function resolveMap(v, map) {
|
|
110
112
|
return v ? map[v.toLowerCase()] : undefined;
|
|
111
113
|
}
|
|
112
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -24,4 +24,3 @@ registerDefinitionsGet(definitionsCommand, getClient);
|
|
|
24
24
|
registerDefinitionsLock(definitionsCommand, getClient);
|
|
25
25
|
registerDefinitionsRoles(definitionsCommand, getClient);
|
|
26
26
|
registerDefinitionsLabels(definitionsCommand, getClient);
|
|
27
|
-
//# sourceMappingURL=index.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
package/dist/commands/raw.d.ts
CHANGED
package/dist/commands/raw.js
CHANGED
|
@@ -11,6 +11,7 @@ import { createClient } from "../../config/client.js";
|
|
|
11
11
|
import { assertNumericId, handleError, ValidationError } from "../../core/errors.js";
|
|
12
12
|
import { choiceOption, encodingOption, fileTypeWithZip, parseDate, parseDateList, parseDateTime, parseChoiceList, parseIntInRange, parseLabelId, parseNumeric, parseNumericList, } from "../shared-options.js";
|
|
13
13
|
import { formatOutput } from "../../ui/formatters/index.js";
|
|
14
|
+
import { reportPartialFailures } from "../batch-result.js";
|
|
14
15
|
import { saveBinaryDownload } from "../../utils/file.js";
|
|
15
16
|
import { withSpinner, confirmDestructive, printInfo } from "../../ui/index.js";
|
|
16
17
|
import { t as tr } from "../../i18n/index.js";
|
|
@@ -54,6 +55,7 @@ reportBatchesCommand
|
|
|
54
55
|
quiet: globalOpts.quiet,
|
|
55
56
|
quietField: "topId",
|
|
56
57
|
});
|
|
58
|
+
reportPartialFailures(results);
|
|
57
59
|
}
|
|
58
60
|
catch (error) {
|
|
59
61
|
handleError(error, { format: globalOpts.format });
|
|
@@ -96,6 +98,7 @@ reportBatchesCommand
|
|
|
96
98
|
quiet: globalOpts.quiet,
|
|
97
99
|
quietField: "topId",
|
|
98
100
|
});
|
|
101
|
+
reportPartialFailures(results);
|
|
99
102
|
}
|
|
100
103
|
catch (error) {
|
|
101
104
|
handleError(error, { format: globalOpts.format });
|
|
@@ -144,6 +147,7 @@ reportBatchesCommand
|
|
|
144
147
|
quiet: globalOpts.quiet,
|
|
145
148
|
quietField: "topId",
|
|
146
149
|
});
|
|
150
|
+
reportPartialFailures(results);
|
|
147
151
|
}
|
|
148
152
|
catch (error) {
|
|
149
153
|
handleError(error, { format: globalOpts.format });
|
|
@@ -471,6 +475,7 @@ reportBatchesCommand
|
|
|
471
475
|
columns: ["code", "remarks"],
|
|
472
476
|
quiet: globalOpts.quiet,
|
|
473
477
|
});
|
|
478
|
+
reportPartialFailures(results);
|
|
474
479
|
}
|
|
475
480
|
catch (error) {
|
|
476
481
|
handleError(error, { format: globalOpts.format });
|
|
@@ -484,4 +489,3 @@ const flagMap = { no: "0", yes: "1", "0": "0", "1": "1" };
|
|
|
484
489
|
function resolveMap(v, map) {
|
|
485
490
|
return v ? map[v.toLowerCase()] : undefined;
|
|
486
491
|
}
|
|
487
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -4,4 +4,3 @@
|
|
|
4
4
|
import type { Command } from "commander";
|
|
5
5
|
import type { IReporterClient } from "../../sdk/index.js";
|
|
6
6
|
export declare function registerReportsClusterValue(parent: Command, getClient: (cmd: Command) => Promise<IReporterClient>): void;
|
|
7
|
-
//# sourceMappingURL=cluster-value.d.ts.map
|
|
@@ -4,4 +4,3 @@
|
|
|
4
4
|
import type { Command } from "commander";
|
|
5
5
|
import type { IReporterClient } from "../../sdk/index.js";
|
|
6
6
|
export declare function registerReportsCreateSorted(parent: Command, getClient: (cmd: Command) => Promise<IReporterClient>): void;
|
|
7
|
-
//# sourceMappingURL=create-sorted.d.ts.map
|
package/dist/commands/schema.js
CHANGED
|
@@ -59,4 +59,3 @@ export declare function parseChoiceList(allowed: readonly string[]): (value: str
|
|
|
59
59
|
* 「フィルタなしの全件」が成功の顔で返るため、明示エラーにする。
|
|
60
60
|
*/
|
|
61
61
|
export declare function collectSystemKeys(value: string, previous: Record<string, string>): Record<string, string>;
|
|
62
|
-
//# sourceMappingURL=shared-options.d.ts.map
|
package/dist/config/client.d.ts
CHANGED
package/dist/config/client.js
CHANGED
|
@@ -66,4 +66,3 @@ export declare function isPluginGated(name: string): boolean;
|
|
|
66
66
|
* subcommand aliases ("whoami" for "auth status") the same way.
|
|
67
67
|
*/
|
|
68
68
|
export declare function uiGateReason(group: string, alias: string | undefined, sub?: string, subAliases?: string[]): GateReason | null;
|
|
69
|
-
//# sourceMappingURL=command-gate.d.ts.map
|
package/dist/config/index.d.ts
CHANGED
|
@@ -9,4 +9,3 @@ export { getUserConfigPath, getUserConfigDir, getProjectConfigPath, getLocalConf
|
|
|
9
9
|
export { createClient } from "./client.js";
|
|
10
10
|
export type { CreateClientOptions } from "./client.js";
|
|
11
11
|
export { migrateFromConf } from "./migrate.js";
|
|
12
|
-
//# sourceMappingURL=index.d.ts.map
|
package/dist/config/index.js
CHANGED
|
@@ -7,4 +7,3 @@ export { getConfig, getConfigWithSource, setConfig, deleteConfig, resetConfig, g
|
|
|
7
7
|
export { getUserConfigPath, getUserConfigDir, getProjectConfigPath, getLocalConfigPath, getConfigPath, getAllConfigPaths, findProjectRoot, } from "./scoped-store.js";
|
|
8
8
|
export { createClient } from "./client.js";
|
|
9
9
|
export { migrateFromConf } from "./migrate.js";
|
|
10
|
-
//# sourceMappingURL=index.js.map
|
package/dist/config/migrate.d.ts
CHANGED
package/dist/config/migrate.js
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* 2. Project config .i-repo/i-repo.json (team shared)
|
|
9
9
|
* 3. User config ~/.i-repo/i-repo.json (global)
|
|
10
10
|
*/
|
|
11
|
-
import { readFileSync, writeFileSync, mkdirSync, existsSync, chmodSync } from "node:fs";
|
|
11
|
+
import { readFileSync, writeFileSync, mkdirSync, existsSync, chmodSync, renameSync, unlinkSync } from "node:fs";
|
|
12
12
|
import { join, dirname, resolve } from "node:path";
|
|
13
13
|
import { homedir } from "node:os";
|
|
14
14
|
// ── Paths ────────────────────────────────────────────────────
|
|
@@ -106,19 +106,41 @@ function writeJsonFile(filePath, data) {
|
|
|
106
106
|
if (!existsSync(dir)) {
|
|
107
107
|
mkdirSync(dir, { recursive: true, mode: 0o700 });
|
|
108
108
|
}
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
109
|
+
// 一時ファイルに書いてから rename で原子的に差し替える。直接上書き中に
|
|
110
|
+
// kill/電源断/ディスク満杯で中断されると認証情報入り設定が壊れた JSON で
|
|
111
|
+
// 残るため (rename は OS が原子的に行うので、中断しても旧ファイルが無傷)。
|
|
112
|
+
// 同一ディレクトリ内に作るので rename はクロスデバイスにならない。
|
|
113
|
+
const tmpPath = `${filePath}.${process.pid}.tmp`;
|
|
114
|
+
try {
|
|
115
|
+
writeFileSync(tmpPath, JSON.stringify(data, null, 2) + "\n", {
|
|
116
|
+
encoding: "utf-8",
|
|
117
|
+
mode: 0o600,
|
|
118
|
+
});
|
|
119
|
+
// writeFileSync の mode は新規作成時のみ適用される。tmp は毎回新規なので
|
|
120
|
+
// 0o600 が効くが、umask の影響を排して明示的に締めておく (Windows は no-op)。
|
|
121
|
+
try {
|
|
122
|
+
chmodSync(tmpPath, 0o600);
|
|
123
|
+
}
|
|
124
|
+
catch {
|
|
125
|
+
/* 権限是正の失敗で書込自体を失敗扱いにはしない */
|
|
126
|
+
}
|
|
127
|
+
renameSync(tmpPath, filePath);
|
|
128
|
+
}
|
|
129
|
+
catch (err) {
|
|
130
|
+
// rename 前に失敗したら中途半端な tmp を残さない
|
|
131
|
+
try {
|
|
132
|
+
unlinkSync(tmpPath);
|
|
133
|
+
}
|
|
134
|
+
catch {
|
|
135
|
+
/* tmp が無ければ何もしない */
|
|
136
|
+
}
|
|
137
|
+
throw err;
|
|
138
|
+
}
|
|
116
139
|
try {
|
|
117
|
-
chmodSync(filePath, 0o600);
|
|
118
140
|
chmodSync(dir, 0o700);
|
|
119
141
|
}
|
|
120
142
|
catch {
|
|
121
|
-
|
|
143
|
+
/* ディレクトリ権限是正の失敗は書込自体を失敗扱いにしない */
|
|
122
144
|
}
|
|
123
145
|
}
|
|
124
146
|
/** Read config from a specific scope */
|
|
@@ -218,4 +240,3 @@ function readScopedConfigForWrite(scope) {
|
|
|
218
240
|
export function resetScopedConfig(scope = "user") {
|
|
219
241
|
writeScopedConfig(scope, {});
|
|
220
242
|
}
|
|
221
|
-
//# sourceMappingURL=scoped-store.js.map
|
package/dist/config/store.d.ts
CHANGED
|
@@ -35,4 +35,3 @@ export declare function getAllConfig(): Partial<IRepoConfig>;
|
|
|
35
35
|
export declare const validKeys: (keyof IRepoConfig)[];
|
|
36
36
|
export declare function isValidKey(key: string): key is keyof IRepoConfig;
|
|
37
37
|
export type { ConfigScope, ConfigWithSource };
|
|
38
|
-
//# sourceMappingURL=store.d.ts.map
|
package/dist/config/store.js
CHANGED
package/dist/core/errors.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export declare const ExitCode: {
|
|
|
6
6
|
readonly Http: 4;
|
|
7
7
|
readonly Network: 5;
|
|
8
8
|
readonly Parse: 6;
|
|
9
|
+
readonly PartialFailure: 7;
|
|
9
10
|
readonly Config: 10;
|
|
10
11
|
readonly Validation: 11;
|
|
11
12
|
};
|
|
@@ -57,4 +58,3 @@ export interface HandleErrorOptions {
|
|
|
57
58
|
export declare function handleError(error: unknown, options?: HandleErrorOptions): void;
|
|
58
59
|
/** Get the appropriate exit code for an error without printing */
|
|
59
60
|
export declare function getExitCode(error: unknown): ExitCode;
|
|
60
|
-
//# sourceMappingURL=errors.d.ts.map
|