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.
Files changed (499) hide show
  1. package/dist/bin/irepo.d.ts +0 -1
  2. package/dist/bin/irepo.js +36 -3
  3. package/dist/commands/auth.d.ts +0 -1
  4. package/dist/commands/auth.js +0 -1
  5. package/dist/commands/batch-result.d.ts +2 -0
  6. package/dist/commands/batch-result.js +24 -0
  7. package/dist/commands/config.d.ts +0 -1
  8. package/dist/commands/config.js +0 -1
  9. package/dist/commands/definition-batches/index.d.ts +0 -1
  10. package/dist/commands/definition-batches/index.js +2 -1
  11. package/dist/commands/definitions/get.d.ts +0 -1
  12. package/dist/commands/definitions/get.js +0 -1
  13. package/dist/commands/definitions/index.d.ts +0 -1
  14. package/dist/commands/definitions/index.js +0 -1
  15. package/dist/commands/definitions/labels.d.ts +0 -1
  16. package/dist/commands/definitions/labels.js +0 -1
  17. package/dist/commands/definitions/list.d.ts +0 -1
  18. package/dist/commands/definitions/list.js +0 -1
  19. package/dist/commands/definitions/lock.d.ts +0 -1
  20. package/dist/commands/definitions/lock.js +0 -1
  21. package/dist/commands/definitions/roles.d.ts +0 -1
  22. package/dist/commands/definitions/roles.js +0 -1
  23. package/dist/commands/index.d.ts +0 -1
  24. package/dist/commands/index.js +0 -1
  25. package/dist/commands/plugin.d.ts +0 -1
  26. package/dist/commands/plugin.js +0 -1
  27. package/dist/commands/raw.d.ts +0 -1
  28. package/dist/commands/raw.js +0 -1
  29. package/dist/commands/report-batches/index.d.ts +0 -1
  30. package/dist/commands/report-batches/index.js +5 -1
  31. package/dist/commands/reports/cluster-value.d.ts +0 -1
  32. package/dist/commands/reports/cluster-value.js +0 -1
  33. package/dist/commands/reports/copy.d.ts +0 -1
  34. package/dist/commands/reports/copy.js +0 -1
  35. package/dist/commands/reports/create-sorted.d.ts +0 -1
  36. package/dist/commands/reports/create-sorted.js +0 -1
  37. package/dist/commands/reports/download.d.ts +0 -1
  38. package/dist/commands/reports/download.js +0 -1
  39. package/dist/commands/reports/get.d.ts +0 -1
  40. package/dist/commands/reports/get.js +0 -1
  41. package/dist/commands/reports/index.d.ts +0 -1
  42. package/dist/commands/reports/index.js +0 -1
  43. package/dist/commands/reports/labels.d.ts +0 -1
  44. package/dist/commands/reports/labels.js +0 -1
  45. package/dist/commands/reports/list.d.ts +0 -1
  46. package/dist/commands/reports/list.js +0 -1
  47. package/dist/commands/reports/lock.d.ts +0 -1
  48. package/dist/commands/reports/lock.js +0 -1
  49. package/dist/commands/reports/roles.d.ts +0 -1
  50. package/dist/commands/reports/roles.js +0 -1
  51. package/dist/commands/schema.d.ts +0 -1
  52. package/dist/commands/schema.js +0 -1
  53. package/dist/commands/shared-options.d.ts +0 -1
  54. package/dist/commands/shared-options.js +0 -1
  55. package/dist/commands/systems/index.d.ts +0 -1
  56. package/dist/commands/systems/index.js +0 -1
  57. package/dist/config/client.d.ts +0 -1
  58. package/dist/config/client.js +0 -1
  59. package/dist/config/command-gate.d.ts +0 -1
  60. package/dist/config/command-gate.js +0 -1
  61. package/dist/config/index.d.ts +0 -1
  62. package/dist/config/index.js +0 -1
  63. package/dist/config/migrate.d.ts +0 -1
  64. package/dist/config/migrate.js +0 -1
  65. package/dist/config/scoped-store.d.ts +0 -1
  66. package/dist/config/scoped-store.js +32 -11
  67. package/dist/config/store.d.ts +0 -1
  68. package/dist/config/store.js +0 -1
  69. package/dist/contracts/registry.d.ts +0 -1
  70. package/dist/contracts/registry.js +0 -1
  71. package/dist/core/errors.d.ts +1 -1
  72. package/dist/core/errors.js +4 -1
  73. package/dist/core/index.d.ts +0 -1
  74. package/dist/core/index.js +0 -1
  75. package/dist/core/logger.d.ts +0 -1
  76. package/dist/core/logger.js +0 -1
  77. package/dist/i18n/command-labels.d.ts +0 -1
  78. package/dist/i18n/command-labels.js +0 -1
  79. package/dist/i18n/index.d.ts +0 -1
  80. package/dist/i18n/index.js +0 -1
  81. package/dist/i18n/locales/en.d.ts +0 -1
  82. package/dist/i18n/locales/en.js +0 -1
  83. package/dist/i18n/locales/ja.d.ts +0 -1
  84. package/dist/i18n/locales/ja.js +0 -1
  85. package/dist/i18n/types.d.ts +0 -1
  86. package/dist/i18n/types.js +0 -1
  87. package/dist/index.d.ts +0 -1
  88. package/dist/index.js +0 -1
  89. package/dist/ink/App.d.ts +0 -1
  90. package/dist/ink/App.js +0 -1
  91. package/dist/ink/components/Banner.d.ts +0 -1
  92. package/dist/ink/components/Banner.js +0 -1
  93. package/dist/ink/components/DetailView.d.ts +0 -1
  94. package/dist/ink/components/DetailView.js +0 -1
  95. package/dist/ink/components/ErrorView.d.ts +0 -1
  96. package/dist/ink/components/ErrorView.js +0 -1
  97. package/dist/ink/components/FilterSelect.d.ts +0 -1
  98. package/dist/ink/components/FilterSelect.js +0 -1
  99. package/dist/ink/components/Layout.d.ts +0 -1
  100. package/dist/ink/components/Layout.js +0 -1
  101. package/dist/ink/components/OptionForm.d.ts +0 -1
  102. package/dist/ink/components/OptionForm.js +0 -1
  103. package/dist/ink/components/ResultView.d.ts +0 -1
  104. package/dist/ink/components/ResultView.js +0 -1
  105. package/dist/ink/components/SpinnerView.d.ts +0 -1
  106. package/dist/ink/components/SpinnerView.js +0 -1
  107. package/dist/ink/components/TableView.d.ts +0 -1
  108. package/dist/ink/components/TableView.js +0 -1
  109. package/dist/ink/escape-sequences.d.ts +0 -1
  110. package/dist/ink/escape-sequences.js +0 -1
  111. package/dist/ink/index.d.ts +0 -1
  112. package/dist/ink/index.js +0 -1
  113. package/dist/ink/keymap.d.ts +0 -1
  114. package/dist/ink/keymap.js +0 -1
  115. package/dist/ink/registry/commands.d.ts +0 -1
  116. package/dist/ink/registry/commands.js +0 -1
  117. package/dist/ink/registry/executors.d.ts +0 -1
  118. package/dist/ink/registry/executors.js +4 -7
  119. package/dist/ink/screens/AuthLoginScreen.d.ts +0 -1
  120. package/dist/ink/screens/AuthLoginScreen.js +0 -1
  121. package/dist/ink/screens/CommandScreen.d.ts +0 -1
  122. package/dist/ink/screens/CommandScreen.js +0 -1
  123. package/dist/ink/screens/HomeScreen.d.ts +0 -1
  124. package/dist/ink/screens/HomeScreen.js +0 -1
  125. package/dist/ink/screens/PluginsScreen.d.ts +0 -1
  126. package/dist/ink/screens/PluginsScreen.js +0 -1
  127. package/dist/ink/screens/UpdateCheckScreen.d.ts +0 -1
  128. package/dist/ink/screens/UpdateCheckScreen.js +0 -1
  129. package/dist/ink/theme.d.ts +0 -1
  130. package/dist/ink/theme.js +0 -1
  131. package/dist/ink/types.d.ts +0 -1
  132. package/dist/ink/types.js +0 -1
  133. package/dist/ink/ui-theme.d.ts +0 -1
  134. package/dist/ink/ui-theme.js +0 -1
  135. package/dist/ink/use-stdin-recovery.d.ts +0 -1
  136. package/dist/ink/use-stdin-recovery.js +0 -1
  137. package/dist/plugins/describe.d.ts +0 -1
  138. package/dist/plugins/describe.js +0 -1
  139. package/dist/plugins/dispatch.d.ts +0 -1
  140. package/dist/plugins/dispatch.js +0 -1
  141. package/dist/plugins/templates.d.ts +0 -1
  142. package/dist/plugins/templates.js +0 -1
  143. package/dist/plugins/verify.d.ts +0 -1
  144. package/dist/plugins/verify.js +0 -1
  145. package/dist/sdk/api/auth.d.ts +0 -1
  146. package/dist/sdk/api/auth.js +0 -1
  147. package/dist/sdk/api/definition-batch.d.ts +0 -1
  148. package/dist/sdk/api/definition-batch.js +0 -1
  149. package/dist/sdk/api/definition.d.ts +0 -1
  150. package/dist/sdk/api/definition.js +0 -1
  151. package/dist/sdk/api/report-batch.d.ts +0 -1
  152. package/dist/sdk/api/report-batch.js +0 -1
  153. package/dist/sdk/api/report.d.ts +0 -1
  154. package/dist/sdk/api/report.js +0 -1
  155. package/dist/sdk/api/system.d.ts +0 -1
  156. package/dist/sdk/api/system.js +0 -1
  157. package/dist/sdk/client.d.ts +0 -1
  158. package/dist/sdk/client.js +0 -1
  159. package/dist/sdk/core/base-api.d.ts +7 -1
  160. package/dist/sdk/core/base-api.js +39 -1
  161. package/dist/sdk/core/errors.d.ts +0 -1
  162. package/dist/sdk/core/errors.js +0 -1
  163. package/dist/sdk/core/http-client.d.ts +0 -1
  164. package/dist/sdk/core/http-client.js +0 -1
  165. package/dist/sdk/core/index.d.ts +0 -1
  166. package/dist/sdk/core/index.js +0 -1
  167. package/dist/sdk/core/params.d.ts +0 -1
  168. package/dist/sdk/core/params.js +0 -1
  169. package/dist/sdk/core/xml-parser.d.ts +0 -1
  170. package/dist/sdk/core/xml-parser.js +0 -1
  171. package/dist/sdk/generated/types.d.ts +0 -1
  172. package/dist/sdk/generated/types.js +0 -1
  173. package/dist/sdk/index.d.ts +0 -1
  174. package/dist/sdk/index.js +0 -1
  175. package/dist/sdk/resources/definition-batches.d.ts +0 -1
  176. package/dist/sdk/resources/definition-batches.js +0 -1
  177. package/dist/sdk/resources/definitions.d.ts +0 -1
  178. package/dist/sdk/resources/definitions.js +0 -1
  179. package/dist/sdk/resources/index.d.ts +0 -1
  180. package/dist/sdk/resources/index.js +0 -1
  181. package/dist/sdk/resources/report-batches.d.ts +0 -1
  182. package/dist/sdk/resources/report-batches.js +0 -1
  183. package/dist/sdk/resources/reports.d.ts +0 -1
  184. package/dist/sdk/resources/reports.js +0 -1
  185. package/dist/sdk/resources/shared.d.ts +0 -1
  186. package/dist/sdk/resources/shared.js +0 -1
  187. package/dist/sdk/resources/systems.d.ts +0 -1
  188. package/dist/sdk/resources/systems.js +0 -1
  189. package/dist/sdk/types/common.d.ts +0 -1
  190. package/dist/sdk/types/common.js +0 -1
  191. package/dist/sdk/types/definition-batch.d.ts +0 -1
  192. package/dist/sdk/types/definition-batch.js +0 -1
  193. package/dist/sdk/types/definition.d.ts +0 -1
  194. package/dist/sdk/types/definition.js +0 -1
  195. package/dist/sdk/types/index.d.ts +0 -1
  196. package/dist/sdk/types/index.js +0 -1
  197. package/dist/sdk/types/public.d.ts +0 -1
  198. package/dist/sdk/types/public.js +0 -1
  199. package/dist/sdk/types/report-batch.d.ts +0 -1
  200. package/dist/sdk/types/report-batch.js +0 -1
  201. package/dist/sdk/types/report.d.ts +0 -1
  202. package/dist/sdk/types/report.js +0 -1
  203. package/dist/sdk/types/system.d.ts +0 -1
  204. package/dist/sdk/types/system.js +0 -1
  205. package/dist/ui/banner.d.ts +0 -1
  206. package/dist/ui/banner.js +0 -1
  207. package/dist/ui/error.d.ts +5 -2
  208. package/dist/ui/error.js +12 -6
  209. package/dist/ui/formatters/csv.d.ts +12 -1
  210. package/dist/ui/formatters/csv.js +21 -6
  211. package/dist/ui/formatters/envelope.d.ts +0 -1
  212. package/dist/ui/formatters/envelope.js +0 -1
  213. package/dist/ui/formatters/index.d.ts +0 -1
  214. package/dist/ui/formatters/index.js +0 -1
  215. package/dist/ui/formatters/json.d.ts +0 -7
  216. package/dist/ui/formatters/json.js +11 -2
  217. package/dist/ui/formatters/ndjson.d.ts +0 -1
  218. package/dist/ui/formatters/ndjson.js +0 -1
  219. package/dist/ui/formatters/quiet.d.ts +0 -1
  220. package/dist/ui/formatters/quiet.js +0 -1
  221. package/dist/ui/formatters/renderers.d.ts +0 -1
  222. package/dist/ui/formatters/renderers.js +0 -1
  223. package/dist/ui/formatters/table.d.ts +0 -1
  224. package/dist/ui/formatters/table.js +4 -3
  225. package/dist/ui/formatters/writer.d.ts +0 -1
  226. package/dist/ui/formatters/writer.js +0 -1
  227. package/dist/ui/index.d.ts +0 -1
  228. package/dist/ui/index.js +0 -1
  229. package/dist/ui/progress.d.ts +0 -1
  230. package/dist/ui/progress.js +0 -1
  231. package/dist/ui/prompt.d.ts +0 -1
  232. package/dist/ui/prompt.js +0 -1
  233. package/dist/ui/spinner.d.ts +0 -1
  234. package/dist/ui/spinner.js +0 -1
  235. package/dist/ui/table.d.ts +0 -1
  236. package/dist/ui/table.js +0 -1
  237. package/dist/ui/theme.d.ts +0 -1
  238. package/dist/ui/theme.js +0 -1
  239. package/dist/ui/width.d.ts +12 -1
  240. package/dist/ui/width.js +17 -1
  241. package/dist/utils/constants.d.ts +0 -1
  242. package/dist/utils/constants.js +0 -1
  243. package/dist/utils/file.d.ts +0 -1
  244. package/dist/utils/file.js +13 -3
  245. package/dist/utils/index.d.ts +0 -1
  246. package/dist/utils/index.js +0 -1
  247. package/dist/utils/output.d.ts +0 -1
  248. package/dist/utils/output.js +0 -1
  249. package/dist/utils/version.d.ts +0 -1
  250. package/dist/utils/version.js +0 -1
  251. package/package.json +2 -2
  252. package/dist/bin/irepo.d.ts.map +0 -1
  253. package/dist/bin/irepo.js.map +0 -1
  254. package/dist/commands/auth.d.ts.map +0 -1
  255. package/dist/commands/auth.js.map +0 -1
  256. package/dist/commands/config.d.ts.map +0 -1
  257. package/dist/commands/config.js.map +0 -1
  258. package/dist/commands/definition-batches/index.d.ts.map +0 -1
  259. package/dist/commands/definition-batches/index.js.map +0 -1
  260. package/dist/commands/definitions/get.d.ts.map +0 -1
  261. package/dist/commands/definitions/get.js.map +0 -1
  262. package/dist/commands/definitions/index.d.ts.map +0 -1
  263. package/dist/commands/definitions/index.js.map +0 -1
  264. package/dist/commands/definitions/labels.d.ts.map +0 -1
  265. package/dist/commands/definitions/labels.js.map +0 -1
  266. package/dist/commands/definitions/list.d.ts.map +0 -1
  267. package/dist/commands/definitions/list.js.map +0 -1
  268. package/dist/commands/definitions/lock.d.ts.map +0 -1
  269. package/dist/commands/definitions/lock.js.map +0 -1
  270. package/dist/commands/definitions/roles.d.ts.map +0 -1
  271. package/dist/commands/definitions/roles.js.map +0 -1
  272. package/dist/commands/index.d.ts.map +0 -1
  273. package/dist/commands/index.js.map +0 -1
  274. package/dist/commands/plugin.d.ts.map +0 -1
  275. package/dist/commands/plugin.js.map +0 -1
  276. package/dist/commands/raw.d.ts.map +0 -1
  277. package/dist/commands/raw.js.map +0 -1
  278. package/dist/commands/report-batches/index.d.ts.map +0 -1
  279. package/dist/commands/report-batches/index.js.map +0 -1
  280. package/dist/commands/reports/cluster-value.d.ts.map +0 -1
  281. package/dist/commands/reports/cluster-value.js.map +0 -1
  282. package/dist/commands/reports/copy.d.ts.map +0 -1
  283. package/dist/commands/reports/copy.js.map +0 -1
  284. package/dist/commands/reports/create-sorted.d.ts.map +0 -1
  285. package/dist/commands/reports/create-sorted.js.map +0 -1
  286. package/dist/commands/reports/download.d.ts.map +0 -1
  287. package/dist/commands/reports/download.js.map +0 -1
  288. package/dist/commands/reports/get.d.ts.map +0 -1
  289. package/dist/commands/reports/get.js.map +0 -1
  290. package/dist/commands/reports/index.d.ts.map +0 -1
  291. package/dist/commands/reports/index.js.map +0 -1
  292. package/dist/commands/reports/labels.d.ts.map +0 -1
  293. package/dist/commands/reports/labels.js.map +0 -1
  294. package/dist/commands/reports/list.d.ts.map +0 -1
  295. package/dist/commands/reports/list.js.map +0 -1
  296. package/dist/commands/reports/lock.d.ts.map +0 -1
  297. package/dist/commands/reports/lock.js.map +0 -1
  298. package/dist/commands/reports/roles.d.ts.map +0 -1
  299. package/dist/commands/reports/roles.js.map +0 -1
  300. package/dist/commands/schema.d.ts.map +0 -1
  301. package/dist/commands/schema.js.map +0 -1
  302. package/dist/commands/shared-options.d.ts.map +0 -1
  303. package/dist/commands/shared-options.js.map +0 -1
  304. package/dist/commands/systems/index.d.ts.map +0 -1
  305. package/dist/commands/systems/index.js.map +0 -1
  306. package/dist/config/client.d.ts.map +0 -1
  307. package/dist/config/client.js.map +0 -1
  308. package/dist/config/command-gate.d.ts.map +0 -1
  309. package/dist/config/command-gate.js.map +0 -1
  310. package/dist/config/index.d.ts.map +0 -1
  311. package/dist/config/index.js.map +0 -1
  312. package/dist/config/migrate.d.ts.map +0 -1
  313. package/dist/config/migrate.js.map +0 -1
  314. package/dist/config/scoped-store.d.ts.map +0 -1
  315. package/dist/config/scoped-store.js.map +0 -1
  316. package/dist/config/store.d.ts.map +0 -1
  317. package/dist/config/store.js.map +0 -1
  318. package/dist/contracts/registry.d.ts.map +0 -1
  319. package/dist/contracts/registry.js.map +0 -1
  320. package/dist/core/errors.d.ts.map +0 -1
  321. package/dist/core/errors.js.map +0 -1
  322. package/dist/core/index.d.ts.map +0 -1
  323. package/dist/core/index.js.map +0 -1
  324. package/dist/core/logger.d.ts.map +0 -1
  325. package/dist/core/logger.js.map +0 -1
  326. package/dist/i18n/command-labels.d.ts.map +0 -1
  327. package/dist/i18n/command-labels.js.map +0 -1
  328. package/dist/i18n/index.d.ts.map +0 -1
  329. package/dist/i18n/index.js.map +0 -1
  330. package/dist/i18n/locales/en.d.ts.map +0 -1
  331. package/dist/i18n/locales/en.js.map +0 -1
  332. package/dist/i18n/locales/ja.d.ts.map +0 -1
  333. package/dist/i18n/locales/ja.js.map +0 -1
  334. package/dist/i18n/types.d.ts.map +0 -1
  335. package/dist/i18n/types.js.map +0 -1
  336. package/dist/index.d.ts.map +0 -1
  337. package/dist/index.js.map +0 -1
  338. package/dist/ink/App.d.ts.map +0 -1
  339. package/dist/ink/App.js.map +0 -1
  340. package/dist/ink/components/Banner.d.ts.map +0 -1
  341. package/dist/ink/components/Banner.js.map +0 -1
  342. package/dist/ink/components/DetailView.d.ts.map +0 -1
  343. package/dist/ink/components/DetailView.js.map +0 -1
  344. package/dist/ink/components/ErrorView.d.ts.map +0 -1
  345. package/dist/ink/components/ErrorView.js.map +0 -1
  346. package/dist/ink/components/FilterSelect.d.ts.map +0 -1
  347. package/dist/ink/components/FilterSelect.js.map +0 -1
  348. package/dist/ink/components/Layout.d.ts.map +0 -1
  349. package/dist/ink/components/Layout.js.map +0 -1
  350. package/dist/ink/components/OptionForm.d.ts.map +0 -1
  351. package/dist/ink/components/OptionForm.js.map +0 -1
  352. package/dist/ink/components/ResultView.d.ts.map +0 -1
  353. package/dist/ink/components/ResultView.js.map +0 -1
  354. package/dist/ink/components/SpinnerView.d.ts.map +0 -1
  355. package/dist/ink/components/SpinnerView.js.map +0 -1
  356. package/dist/ink/components/TableView.d.ts.map +0 -1
  357. package/dist/ink/components/TableView.js.map +0 -1
  358. package/dist/ink/escape-sequences.d.ts.map +0 -1
  359. package/dist/ink/escape-sequences.js.map +0 -1
  360. package/dist/ink/index.d.ts.map +0 -1
  361. package/dist/ink/index.js.map +0 -1
  362. package/dist/ink/keymap.d.ts.map +0 -1
  363. package/dist/ink/keymap.js.map +0 -1
  364. package/dist/ink/registry/commands.d.ts.map +0 -1
  365. package/dist/ink/registry/commands.js.map +0 -1
  366. package/dist/ink/registry/executors.d.ts.map +0 -1
  367. package/dist/ink/registry/executors.js.map +0 -1
  368. package/dist/ink/screens/AuthLoginScreen.d.ts.map +0 -1
  369. package/dist/ink/screens/AuthLoginScreen.js.map +0 -1
  370. package/dist/ink/screens/CommandScreen.d.ts.map +0 -1
  371. package/dist/ink/screens/CommandScreen.js.map +0 -1
  372. package/dist/ink/screens/HomeScreen.d.ts.map +0 -1
  373. package/dist/ink/screens/HomeScreen.js.map +0 -1
  374. package/dist/ink/screens/PluginsScreen.d.ts.map +0 -1
  375. package/dist/ink/screens/PluginsScreen.js.map +0 -1
  376. package/dist/ink/screens/UpdateCheckScreen.d.ts.map +0 -1
  377. package/dist/ink/screens/UpdateCheckScreen.js.map +0 -1
  378. package/dist/ink/theme.d.ts.map +0 -1
  379. package/dist/ink/theme.js.map +0 -1
  380. package/dist/ink/types.d.ts.map +0 -1
  381. package/dist/ink/types.js.map +0 -1
  382. package/dist/ink/ui-theme.d.ts.map +0 -1
  383. package/dist/ink/ui-theme.js.map +0 -1
  384. package/dist/ink/use-stdin-recovery.d.ts.map +0 -1
  385. package/dist/ink/use-stdin-recovery.js.map +0 -1
  386. package/dist/plugins/describe.d.ts.map +0 -1
  387. package/dist/plugins/describe.js.map +0 -1
  388. package/dist/plugins/dispatch.d.ts.map +0 -1
  389. package/dist/plugins/dispatch.js.map +0 -1
  390. package/dist/plugins/templates.d.ts.map +0 -1
  391. package/dist/plugins/templates.js.map +0 -1
  392. package/dist/plugins/verify.d.ts.map +0 -1
  393. package/dist/plugins/verify.js.map +0 -1
  394. package/dist/sdk/api/auth.d.ts.map +0 -1
  395. package/dist/sdk/api/auth.js.map +0 -1
  396. package/dist/sdk/api/definition-batch.d.ts.map +0 -1
  397. package/dist/sdk/api/definition-batch.js.map +0 -1
  398. package/dist/sdk/api/definition.d.ts.map +0 -1
  399. package/dist/sdk/api/definition.js.map +0 -1
  400. package/dist/sdk/api/report-batch.d.ts.map +0 -1
  401. package/dist/sdk/api/report-batch.js.map +0 -1
  402. package/dist/sdk/api/report.d.ts.map +0 -1
  403. package/dist/sdk/api/report.js.map +0 -1
  404. package/dist/sdk/api/system.d.ts.map +0 -1
  405. package/dist/sdk/api/system.js.map +0 -1
  406. package/dist/sdk/client.d.ts.map +0 -1
  407. package/dist/sdk/client.js.map +0 -1
  408. package/dist/sdk/core/base-api.d.ts.map +0 -1
  409. package/dist/sdk/core/base-api.js.map +0 -1
  410. package/dist/sdk/core/errors.d.ts.map +0 -1
  411. package/dist/sdk/core/errors.js.map +0 -1
  412. package/dist/sdk/core/http-client.d.ts.map +0 -1
  413. package/dist/sdk/core/http-client.js.map +0 -1
  414. package/dist/sdk/core/index.d.ts.map +0 -1
  415. package/dist/sdk/core/index.js.map +0 -1
  416. package/dist/sdk/core/params.d.ts.map +0 -1
  417. package/dist/sdk/core/params.js.map +0 -1
  418. package/dist/sdk/core/xml-parser.d.ts.map +0 -1
  419. package/dist/sdk/core/xml-parser.js.map +0 -1
  420. package/dist/sdk/generated/types.d.ts.map +0 -1
  421. package/dist/sdk/generated/types.js.map +0 -1
  422. package/dist/sdk/index.d.ts.map +0 -1
  423. package/dist/sdk/index.js.map +0 -1
  424. package/dist/sdk/resources/definition-batches.d.ts.map +0 -1
  425. package/dist/sdk/resources/definition-batches.js.map +0 -1
  426. package/dist/sdk/resources/definitions.d.ts.map +0 -1
  427. package/dist/sdk/resources/definitions.js.map +0 -1
  428. package/dist/sdk/resources/index.d.ts.map +0 -1
  429. package/dist/sdk/resources/index.js.map +0 -1
  430. package/dist/sdk/resources/report-batches.d.ts.map +0 -1
  431. package/dist/sdk/resources/report-batches.js.map +0 -1
  432. package/dist/sdk/resources/reports.d.ts.map +0 -1
  433. package/dist/sdk/resources/reports.js.map +0 -1
  434. package/dist/sdk/resources/shared.d.ts.map +0 -1
  435. package/dist/sdk/resources/shared.js.map +0 -1
  436. package/dist/sdk/resources/systems.d.ts.map +0 -1
  437. package/dist/sdk/resources/systems.js.map +0 -1
  438. package/dist/sdk/types/common.d.ts.map +0 -1
  439. package/dist/sdk/types/common.js.map +0 -1
  440. package/dist/sdk/types/definition-batch.d.ts.map +0 -1
  441. package/dist/sdk/types/definition-batch.js.map +0 -1
  442. package/dist/sdk/types/definition.d.ts.map +0 -1
  443. package/dist/sdk/types/definition.js.map +0 -1
  444. package/dist/sdk/types/index.d.ts.map +0 -1
  445. package/dist/sdk/types/index.js.map +0 -1
  446. package/dist/sdk/types/public.d.ts.map +0 -1
  447. package/dist/sdk/types/public.js.map +0 -1
  448. package/dist/sdk/types/report-batch.d.ts.map +0 -1
  449. package/dist/sdk/types/report-batch.js.map +0 -1
  450. package/dist/sdk/types/report.d.ts.map +0 -1
  451. package/dist/sdk/types/report.js.map +0 -1
  452. package/dist/sdk/types/system.d.ts.map +0 -1
  453. package/dist/sdk/types/system.js.map +0 -1
  454. package/dist/ui/banner.d.ts.map +0 -1
  455. package/dist/ui/banner.js.map +0 -1
  456. package/dist/ui/error.d.ts.map +0 -1
  457. package/dist/ui/error.js.map +0 -1
  458. package/dist/ui/formatters/csv.d.ts.map +0 -1
  459. package/dist/ui/formatters/csv.js.map +0 -1
  460. package/dist/ui/formatters/envelope.d.ts.map +0 -1
  461. package/dist/ui/formatters/envelope.js.map +0 -1
  462. package/dist/ui/formatters/index.d.ts.map +0 -1
  463. package/dist/ui/formatters/index.js.map +0 -1
  464. package/dist/ui/formatters/json.d.ts.map +0 -1
  465. package/dist/ui/formatters/json.js.map +0 -1
  466. package/dist/ui/formatters/ndjson.d.ts.map +0 -1
  467. package/dist/ui/formatters/ndjson.js.map +0 -1
  468. package/dist/ui/formatters/quiet.d.ts.map +0 -1
  469. package/dist/ui/formatters/quiet.js.map +0 -1
  470. package/dist/ui/formatters/renderers.d.ts.map +0 -1
  471. package/dist/ui/formatters/renderers.js.map +0 -1
  472. package/dist/ui/formatters/table.d.ts.map +0 -1
  473. package/dist/ui/formatters/table.js.map +0 -1
  474. package/dist/ui/formatters/writer.d.ts.map +0 -1
  475. package/dist/ui/formatters/writer.js.map +0 -1
  476. package/dist/ui/index.d.ts.map +0 -1
  477. package/dist/ui/index.js.map +0 -1
  478. package/dist/ui/progress.d.ts.map +0 -1
  479. package/dist/ui/progress.js.map +0 -1
  480. package/dist/ui/prompt.d.ts.map +0 -1
  481. package/dist/ui/prompt.js.map +0 -1
  482. package/dist/ui/spinner.d.ts.map +0 -1
  483. package/dist/ui/spinner.js.map +0 -1
  484. package/dist/ui/table.d.ts.map +0 -1
  485. package/dist/ui/table.js.map +0 -1
  486. package/dist/ui/theme.d.ts.map +0 -1
  487. package/dist/ui/theme.js.map +0 -1
  488. package/dist/ui/width.d.ts.map +0 -1
  489. package/dist/ui/width.js.map +0 -1
  490. package/dist/utils/constants.d.ts.map +0 -1
  491. package/dist/utils/constants.js.map +0 -1
  492. package/dist/utils/file.d.ts.map +0 -1
  493. package/dist/utils/file.js.map +0 -1
  494. package/dist/utils/index.d.ts.map +0 -1
  495. package/dist/utils/index.js.map +0 -1
  496. package/dist/utils/output.d.ts.map +0 -1
  497. package/dist/utils/output.js.map +0 -1
  498. package/dist/utils/version.d.ts.map +0 -1
  499. package/dist/utils/version.js.map +0 -1
@@ -3,4 +3,3 @@
3
3
  * Run the CLI program.
4
4
  */
5
5
  export declare function run(argv?: string[]): Promise<void>;
6
- //# sourceMappingURL=irepo.d.ts.map
package/dist/bin/irepo.js CHANGED
@@ -281,6 +281,39 @@ const isMain = (() => {
281
281
  return false;
282
282
  }
283
283
  })();
284
- if (isMain)
285
- run();
286
- //# sourceMappingURL=irepo.js.map
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
+ }
@@ -5,4 +5,3 @@
5
5
  */
6
6
  import { Command } from "commander";
7
7
  export declare const authCommand: Command;
8
- //# sourceMappingURL=auth.d.ts.map
@@ -220,4 +220,3 @@ authCommand
220
220
  process.exitCode = 1;
221
221
  }
222
222
  });
223
- //# sourceMappingURL=auth.js.map
@@ -0,0 +1,2 @@
1
+ import type { BatchCommandResult } from "../sdk/index.js";
2
+ export declare function reportPartialFailures(results: BatchCommandResult[]): void;
@@ -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
+ }
@@ -5,4 +5,3 @@
5
5
  */
6
6
  import { Command } from "commander";
7
7
  export declare const configCommand: Command;
8
- //# sourceMappingURL=config.d.ts.map
@@ -187,4 +187,3 @@ configCommand
187
187
  process.exitCode = 1;
188
188
  }
189
189
  });
190
- //# sourceMappingURL=config.js.map
@@ -5,4 +5,3 @@
5
5
  */
6
6
  import { Command } from "commander";
7
7
  export declare const definitionBatchesCommand: Command;
8
- //# sourceMappingURL=index.d.ts.map
@@ -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
@@ -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 registerDefinitionsGet(parent: Command, getClient: (cmd: Command) => Promise<IReporterClient>): void;
7
- //# sourceMappingURL=get.d.ts.map
@@ -30,4 +30,3 @@ export function registerDefinitionsGet(parent, getClient) {
30
30
  }
31
31
  });
32
32
  }
33
- //# sourceMappingURL=get.js.map
@@ -3,4 +3,3 @@
3
3
  */
4
4
  import { Command } from "commander";
5
5
  export declare const definitionsCommand: Command;
6
- //# sourceMappingURL=index.d.ts.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
@@ -1,4 +1,3 @@
1
1
  import type { Command } from "commander";
2
2
  import type { IReporterClient } from "../../sdk/index.js";
3
3
  export declare function registerDefinitionsLabels(parent: Command, getClient: (cmd: Command) => Promise<IReporterClient>): void;
4
- //# sourceMappingURL=labels.d.ts.map
@@ -116,4 +116,3 @@ export function registerDefinitionsLabels(parent, getClient) {
116
116
  }
117
117
  });
118
118
  }
119
- //# sourceMappingURL=labels.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 registerDefinitionsList(parent: Command, getClient: (cmd: Command) => Promise<IReporterClient>): void;
7
- //# sourceMappingURL=list.d.ts.map
@@ -77,4 +77,3 @@ function buildListParams(options) {
77
77
  }
78
78
  return params;
79
79
  }
80
- //# sourceMappingURL=list.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 registerDefinitionsLock(parent: Command, getClient: (cmd: Command) => Promise<IReporterClient>): void;
7
- //# sourceMappingURL=lock.d.ts.map
@@ -37,4 +37,3 @@ export function registerDefinitionsLock(parent, getClient) {
37
37
  }
38
38
  });
39
39
  }
40
- //# sourceMappingURL=lock.js.map
@@ -1,4 +1,3 @@
1
1
  import type { Command } from "commander";
2
2
  import type { IReporterClient } from "../../sdk/index.js";
3
3
  export declare function registerDefinitionsRoles(parent: Command, getClient: (cmd: Command) => Promise<IReporterClient>): void;
4
- //# sourceMappingURL=roles.d.ts.map
@@ -66,4 +66,3 @@ export function registerDefinitionsRoles(parent, getClient) {
66
66
  }
67
67
  });
68
68
  }
69
- //# sourceMappingURL=roles.js.map
@@ -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
@@ -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
@@ -8,4 +8,3 @@
8
8
  */
9
9
  import { Command } from "commander";
10
10
  export declare const pluginCommand: Command;
11
- //# sourceMappingURL=plugin.d.ts.map
@@ -193,4 +193,3 @@ pluginCommand
193
193
  handleError(error, { format: globalOpts.format });
194
194
  }
195
195
  });
196
- //# sourceMappingURL=plugin.js.map
@@ -6,4 +6,3 @@
6
6
  */
7
7
  import { Command } from "commander";
8
8
  export declare const rawCommand: Command;
9
- //# sourceMappingURL=raw.d.ts.map
@@ -62,4 +62,3 @@ export const rawCommand = new Command("raw")
62
62
  handleError(error, { format: globalOpts.format });
63
63
  }
64
64
  });
65
- //# sourceMappingURL=raw.js.map
@@ -6,4 +6,3 @@
6
6
  */
7
7
  import { Command } from "commander";
8
8
  export declare const reportBatchesCommand: Command;
9
- //# sourceMappingURL=index.d.ts.map
@@ -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
@@ -42,4 +42,3 @@ export function registerReportsClusterValue(parent, getClient) {
42
42
  }
43
43
  });
44
44
  }
45
- //# sourceMappingURL=cluster-value.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 registerReportsCopy(parent: Command, getClient: (cmd: Command) => Promise<IReporterClient>): void;
7
- //# sourceMappingURL=copy.d.ts.map
@@ -31,4 +31,3 @@ export function registerReportsCopy(parent, getClient) {
31
31
  }
32
32
  });
33
33
  }
34
- //# sourceMappingURL=copy.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 registerReportsCreateSorted(parent: Command, getClient: (cmd: Command) => Promise<IReporterClient>): void;
7
- //# sourceMappingURL=create-sorted.d.ts.map
@@ -31,4 +31,3 @@ export function registerReportsCreateSorted(parent, getClient) {
31
31
  }
32
32
  });
33
33
  }
34
- //# sourceMappingURL=create-sorted.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 registerReportsDownload(parent: Command, getClient: (cmd: Command) => Promise<IReporterClient>): void;
7
- //# sourceMappingURL=download.d.ts.map
@@ -34,4 +34,3 @@ export function registerReportsDownload(parent, getClient) {
34
34
  }
35
35
  });
36
36
  }
37
- //# sourceMappingURL=download.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 registerReportsGet(parent: Command, getClient: (cmd: Command) => Promise<IReporterClient>): void;
7
- //# sourceMappingURL=get.d.ts.map
@@ -36,4 +36,3 @@ export function registerReportsGet(parent, getClient) {
36
36
  }
37
37
  });
38
38
  }
39
- //# sourceMappingURL=get.js.map
@@ -3,4 +3,3 @@
3
3
  */
4
4
  import { Command } from "commander";
5
5
  export declare const reportsCommand: Command;
6
- //# sourceMappingURL=index.d.ts.map
@@ -32,4 +32,3 @@ registerReportsClusterValue(reportsCommand, getClient);
32
32
  registerReportsCreateSorted(reportsCommand, getClient);
33
33
  registerReportsRoles(reportsCommand, getClient);
34
34
  registerReportsLabels(reportsCommand, getClient);
35
- //# sourceMappingURL=index.js.map
@@ -1,4 +1,3 @@
1
1
  import type { Command } from "commander";
2
2
  import type { IReporterClient } from "../../sdk/index.js";
3
3
  export declare function registerReportsLabels(parent: Command, getClient: (cmd: Command) => Promise<IReporterClient>): void;
4
- //# sourceMappingURL=labels.d.ts.map
@@ -62,4 +62,3 @@ export function registerReportsLabels(parent, getClient) {
62
62
  }
63
63
  });
64
64
  }
65
- //# sourceMappingURL=labels.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 registerReportsList(parent: Command, getClient: (cmd: Command) => Promise<IReporterClient>): void;
7
- //# sourceMappingURL=list.d.ts.map
@@ -111,4 +111,3 @@ function buildListParams(options) {
111
111
  }
112
112
  return params;
113
113
  }
114
- //# sourceMappingURL=list.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 registerReportsLock(parent: Command, getClient: (cmd: Command) => Promise<IReporterClient>): void;
7
- //# sourceMappingURL=lock.d.ts.map
@@ -37,4 +37,3 @@ export function registerReportsLock(parent, getClient) {
37
37
  }
38
38
  });
39
39
  }
40
- //# sourceMappingURL=lock.js.map
@@ -1,4 +1,3 @@
1
1
  import type { Command } from "commander";
2
2
  import type { IReporterClient } from "../../sdk/index.js";
3
3
  export declare function registerReportsRoles(parent: Command, getClient: (cmd: Command) => Promise<IReporterClient>): void;
4
- //# sourceMappingURL=roles.d.ts.map
@@ -62,4 +62,3 @@ export function registerReportsRoles(parent, getClient) {
62
62
  }
63
63
  });
64
64
  }
65
- //# sourceMappingURL=roles.js.map
@@ -31,4 +31,3 @@ export interface SchemaRow {
31
31
  /** query(recordType / コマンドパス / コマンド語)で契約を絞り込んで行を組む */
32
32
  export declare function buildSchemaRows(query?: string): SchemaRow[];
33
33
  export declare const schemaCommand: Command;
34
- //# sourceMappingURL=schema.d.ts.map
@@ -70,4 +70,3 @@ export const schemaCommand = new Command("schema")
70
70
  quietField: "command",
71
71
  });
72
72
  });
73
- //# sourceMappingURL=schema.js.map
@@ -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
@@ -141,4 +141,3 @@ export function collectSystemKeys(value, previous) {
141
141
  previous[n] = v;
142
142
  return previous;
143
143
  }
144
- //# sourceMappingURL=shared-options.js.map
@@ -5,4 +5,3 @@
5
5
  */
6
6
  import { Command } from "commander";
7
7
  export declare const systemsCommand: Command;
8
- //# sourceMappingURL=index.d.ts.map
@@ -430,4 +430,3 @@ function inferExtension(fileType) {
430
430
  };
431
431
  return map[fileType] ?? "dat";
432
432
  }
433
- //# sourceMappingURL=index.js.map
@@ -23,4 +23,3 @@ export interface CreateClientOptions {
23
23
  * CLI flags -> environment variables -> config store (scoped) -> interactive prompt.
24
24
  */
25
25
  export declare function createClient(opts?: CreateClientOptions): Promise<IReporterClient>;
26
- //# sourceMappingURL=client.d.ts.map
@@ -61,4 +61,3 @@ export async function createClient(opts = {}) {
61
61
  onHttp: logHttp,
62
62
  });
63
63
  }
64
- //# sourceMappingURL=client.js.map
@@ -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
@@ -131,4 +131,3 @@ export function uiGateReason(group, alias, sub, subAliases) {
131
131
  }
132
132
  return null;
133
133
  }
134
- //# sourceMappingURL=command-gate.js.map
@@ -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
@@ -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
@@ -7,4 +7,3 @@
7
7
  * - Returns true if migration occurred, false otherwise.
8
8
  */
9
9
  export declare function migrateFromConf(): boolean;
10
- //# sourceMappingURL=migrate.d.ts.map
@@ -72,4 +72,3 @@ export function migrateFromConf() {
72
72
  return false;
73
73
  }
74
74
  }
75
- //# sourceMappingURL=migrate.js.map
@@ -52,4 +52,3 @@ export declare function deleteScopedConfig<K extends keyof IRepoConfig>(key: K,
52
52
  * Reset all config in the specified scope.
53
53
  */
54
54
  export declare function resetScopedConfig(scope?: ConfigScope): void;
55
- //# sourceMappingURL=scoped-store.d.ts.map
@@ -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
- writeFileSync(filePath, JSON.stringify(data, null, 2) + "\n", {
110
- encoding: "utf-8",
111
- mode: 0o600,
112
- });
113
- // writeFileSync mode は新規作成時のみ適用され、既存ファイル上書き時は無視される。
114
- // 過去版や手動作成で緩い権限(0o644等)のファイルに認証情報を書いても平文が露出しないよう、
115
- // 書込後に必ず 0o600 / 0o700 を再適用する(Windows では実質 no-op)。
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
@@ -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
@@ -40,4 +40,3 @@ export const validKeys = [
40
40
  export function isValidKey(key) {
41
41
  return validKeys.includes(key);
42
42
  }
43
- //# sourceMappingURL=store.js.map
@@ -34,4 +34,3 @@ export interface CommandContract {
34
34
  export declare const contracts: readonly CommandContract[];
35
35
  /** コマンドパスで契約を引く。未登録は実装バグなので明示エラー */
36
36
  export declare function getContract(command: string): CommandContract;
37
- //# sourceMappingURL=registry.d.ts.map
@@ -38,4 +38,3 @@ export function getContract(command) {
38
38
  }
39
39
  return found;
40
40
  }
41
- //# sourceMappingURL=registry.js.map
@@ -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