@slock-ai/computer 0.0.5 → 0.0.6
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/index.js +6 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -298,6 +298,12 @@ function adoptionLogPath(slockHome) {
|
|
|
298
298
|
function channelPath(slockHome) {
|
|
299
299
|
return path.join(computerDir(slockHome), "channel");
|
|
300
300
|
}
|
|
301
|
+
function upgradeStagingDir(slockHome, version) {
|
|
302
|
+
return path.join(computerDir(slockHome), "upgrade-staging", version);
|
|
303
|
+
}
|
|
304
|
+
function upgradeSnapshotPath(slockHome) {
|
|
305
|
+
return path.join(computerDir(slockHome), "upgrade-snapshot.json");
|
|
306
|
+
}
|
|
301
307
|
|
|
302
308
|
// src/output.ts
|
|
303
309
|
var CliExit = class extends Error {
|
|
@@ -2642,9 +2648,6 @@ function satisfiesTilde(ver, base) {
|
|
|
2642
2648
|
}
|
|
2643
2649
|
|
|
2644
2650
|
// src/upgrade.ts
|
|
2645
|
-
function upgradeStagingDir(slockHome, version) {
|
|
2646
|
-
return join6(computerDir(slockHome), "upgrade-staging", version);
|
|
2647
|
-
}
|
|
2648
2651
|
async function stagePhase(slockHome, version, deps = {}) {
|
|
2649
2652
|
const npmPack = deps.npmPack ?? defaultNpmPack;
|
|
2650
2653
|
const fsReadFile = deps.fsReadFile ?? readFile11;
|
|
@@ -2754,9 +2757,6 @@ async function cleanupStaged(slockHome, version) {
|
|
|
2754
2757
|
} catch {
|
|
2755
2758
|
}
|
|
2756
2759
|
}
|
|
2757
|
-
function upgradeSnapshotPath(slockHome) {
|
|
2758
|
-
return join6(computerDir(slockHome), "upgrade-snapshot.json");
|
|
2759
|
-
}
|
|
2760
2760
|
async function snapshotPhase(slockHome, snap) {
|
|
2761
2761
|
const path2 = upgradeSnapshotPath(slockHome);
|
|
2762
2762
|
const tmp = `${path2}.tmp`;
|
package/package.json
CHANGED