@withtruing/companion 0.14.2 → 0.14.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.
- package/dist/whole-read-temp.js +4 -1
- package/package.json +1 -1
package/dist/whole-read-temp.js
CHANGED
|
@@ -174,7 +174,10 @@ export function createCompanionAttemptSourceManager(dependencies = {}) {
|
|
|
174
174
|
const reportCleanup = dependencies.reportCleanup ?? (async () => false);
|
|
175
175
|
const scheduleInterval = dependencies.setInterval ?? setInterval;
|
|
176
176
|
const cancelInterval = dependencies.clearInterval ?? clearInterval;
|
|
177
|
-
|
|
177
|
+
// On by default: Truing's server decides whether build 3 runs (its own WHOLE_READ_BUILDS switch), and a
|
|
178
|
+
// released connector must carry it without the user setting anything (TRUING.md §9). WHOLE_READ_BUILDS=0
|
|
179
|
+
// on the user's computer is an emergency off switch.
|
|
180
|
+
const buildsEnabled = dependencies.buildsEnabled ?? (() => process.env.WHOLE_READ_BUILDS !== '0');
|
|
178
181
|
const readers = new Map();
|
|
179
182
|
const activeLocations = new Set();
|
|
180
183
|
const cleanupJobs = new Map();
|