@localheroai/cli 0.0.76-rc.1 → 0.0.76-rc.3

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.
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Files a run was configured to read but could not.
3
+ *
4
+ * A skip used to be a line on stdout and nothing more, so a run that failed to
5
+ * read every one of its files still printed "No changed keys need translation"
6
+ * and exited 0 (#779). Callers read this to tell "nothing to do" apart from
7
+ * "could not look", and fail the run rather than reporting success.
8
+ *
9
+ * Module state because the skips happen deep inside per-file loops whose
10
+ * signatures are shared by several commands; threading a result through all of
11
+ * them would be a larger change than the bug warrants. Reset at the start of
12
+ * each run.
13
+ */
14
+ const unreadableFiles = new Set();
15
+ export function resetUnreadableFiles() {
16
+ unreadableFiles.clear();
17
+ }
18
+ export function recordUnreadableFile(path) {
19
+ unreadableFiles.add(path);
20
+ }
21
+ export function getUnreadableFiles() {
22
+ return [...unreadableFiles];
23
+ }
24
+ //# sourceMappingURL=unreadable-files.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unreadable-files.js","sourceRoot":"","sources":["../../src/utils/unreadable-files.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,MAAM,eAAe,GAAG,IAAI,GAAG,EAAU,CAAC;AAE1C,MAAM,UAAU,oBAAoB;IAClC,eAAe,CAAC,KAAK,EAAE,CAAC;AAC1B,CAAC;AAED,MAAM,UAAU,oBAAoB,CAAC,IAAY;IAC/C,eAAe,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;AAC5B,CAAC;AAED,MAAM,UAAU,kBAAkB;IAChC,OAAO,CAAC,GAAG,eAAe,CAAC,CAAC;AAC9B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@localheroai/cli",
3
- "version": "0.0.76-rc.1",
3
+ "version": "0.0.76-rc.3",
4
4
  "description": "CLI tool for managing translations with LocalHero.ai",
5
5
  "homepage": "https://localhero.ai",
6
6
  "repository": {