Skip to content
This repository was archived by the owner on Jul 14, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ This way even entityIds like environmentIds or testCaseIds will be autocompleted

# octomind

Octomind cli tool. Version: 4.3.0. Additional documentation see https://octomind.dev/docs/api-reference/
Octomind cli tool. Version: 4.3.1. Additional documentation see https://octomind.dev/docs/api-reference/

**Usage:** `octomind [options] [command]`

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@octomind/octomind",
"version": "4.3.0",
"version": "4.3.1",
"description": "a command line client for octomind apis",
"main": "./dist/index.js",
"packageManager": "pnpm@10.28.0+sha512.05df71d1421f21399e053fde567cea34d446fa02c76571441bfc1c7956e98e363088982d940465fd34480d4d90a0668bc12362f8aa88000a64e83d0b0e47be48",
Expand Down
27 changes: 17 additions & 10 deletions src/tools/update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import which from "which";

export const update = async (): Promise<void> => {
const pathToRoot = path.posix.normalize(
path.join(homedir(), "/.local/packages"),
path.join(homedir(), ".local", "packages"),
);
const pathToPackageJson = path.join(pathToRoot, "package.json");

Expand All @@ -25,15 +25,22 @@ export const update = async (): Promise<void> => {
process.exit(1);
}

console.log(`updating package.json at ${pathToPackageJson}`);
const oldVersion = child_process.execSync("npm list @octomind/octomind", {
cwd: pathToRoot,
stdio: ["ignore", "pipe", "ignore"],
});

const result = child_process.execSync(
"npm install @octomind/octomind@latest",
{
cwd: path.dirname(pathToRoot),
},
);
console.log(`version before update: ${oldVersion}`);
Comment thread
Germandrummer92 marked this conversation as resolved.

child_process.execSync("npm install @octomind/octomind@latest", {
cwd: pathToRoot,
Comment thread
Germandrummer92 marked this conversation as resolved.
stdio: "ignore",
});

const newVersion = child_process.execSync("npm list @octomind/octomind", {
cwd: pathToRoot,
stdio: ["ignore", "pipe", "ignore"],
});

console.log(`${result}`);
console.log("\n✔ update complete");
console.log(`✔ update complete: ${newVersion}`);
};
2 changes: 1 addition & 1 deletion tests/tools/update.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ describe("update", () => {

expect(child_process.execSync).toHaveBeenCalledWith(
"npm install @octomind/octomind@latest",
{ cwd: path.dirname(mockPathToRoot) },
{ cwd: mockPathToRoot, stdio: "ignore" },
);
});

Expand Down