@tinycloud/operations 0.2.1-beta.0 → 0.3.0-beta.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/artifacts.cjs +3 -1
- package/dist/artifacts.cjs.map +1 -1
- package/dist/artifacts.d.cts +1 -1
- package/dist/artifacts.d.ts +1 -1
- package/dist/artifacts.js +4 -2
- package/dist/artifacts.js.map +1 -1
- package/dist/cli-runtime.cjs +27 -3
- package/dist/cli-runtime.cjs.map +1 -1
- package/dist/cli-runtime.d.cts +1 -1
- package/dist/cli-runtime.d.ts +1 -1
- package/dist/cli-runtime.js +28 -4
- package/dist/cli-runtime.js.map +1 -1
- package/dist/{contract-OnWT3OXa.d.cts → contract-xMIIMtpF.d.cts} +6 -0
- package/dist/{contract-OnWT3OXa.d.ts → contract-xMIIMtpF.d.ts} +6 -0
- package/dist/index.cjs +34 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +35 -12
- package/dist/index.js.map +1 -1
- package/dist/profile.cjs +3 -1
- package/dist/profile.cjs.map +1 -1
- package/dist/profile.d.cts +1 -1
- package/dist/profile.d.ts +1 -1
- package/dist/profile.js +4 -2
- package/dist/profile.js.map +1 -1
- package/dist/state.cjs +12 -1
- package/dist/state.cjs.map +1 -1
- package/dist/state.d.cts +3 -1
- package/dist/state.d.ts +3 -1
- package/dist/state.js +12 -2
- package/dist/state.js.map +1 -1
- package/package.json +3 -3
package/dist/artifacts.cjs
CHANGED
|
@@ -6616,6 +6616,7 @@ function canonicalizeCaveats(caveats) {
|
|
|
6616
6616
|
|
|
6617
6617
|
// src/state.ts
|
|
6618
6618
|
var import_node_crypto = require("crypto");
|
|
6619
|
+
var import_node_async_hooks = require("async_hooks");
|
|
6619
6620
|
var import_promises = require("fs/promises");
|
|
6620
6621
|
var import_node_os = require("os");
|
|
6621
6622
|
var import_node_path = require("path");
|
|
@@ -6624,6 +6625,7 @@ var DEFAULT_LOCK_RETRY_MS = 25;
|
|
|
6624
6625
|
var DEFAULT_STALE_LOCK_MS = 3e4;
|
|
6625
6626
|
var TEST_LOCK_CONTENTION_SIGNAL_PATH = "TC_TEST_PROFILE_LOCK_CONTENTION_SIGNAL_PATH";
|
|
6626
6627
|
var TEST_LOCK_RECOVERY_BARRIER_DIR = "TC_TEST_PROFILE_LOCK_RECOVERY_BARRIER_DIR";
|
|
6628
|
+
var invocationStateRoot = new import_node_async_hooks.AsyncLocalStorage();
|
|
6627
6629
|
var ProfileLockTimeoutError = class extends Error {
|
|
6628
6630
|
constructor(profile, timeoutMs) {
|
|
6629
6631
|
super(`Timed out waiting for the profile lock for "${profile}" after ${timeoutMs}ms.`);
|
|
@@ -6632,7 +6634,7 @@ var ProfileLockTimeoutError = class extends Error {
|
|
|
6632
6634
|
}
|
|
6633
6635
|
};
|
|
6634
6636
|
function tinycloudHomePath() {
|
|
6635
|
-
const home = process.env.TC_HOME ?? process.env.HOME ?? process.env.USERPROFILE ?? (0, import_node_os.homedir)();
|
|
6637
|
+
const home = invocationStateRoot.getStore() ?? process.env.TC_HOME ?? process.env.HOME ?? process.env.USERPROFILE ?? (0, import_node_os.homedir)();
|
|
6636
6638
|
return (0, import_node_path.join)(home, ".tinycloud");
|
|
6637
6639
|
}
|
|
6638
6640
|
function profilesPath() {
|