@arvoretech/hub 0.7.5 → 0.7.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 +11 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2762,10 +2762,10 @@ import { fileURLToPath } from "url";
|
|
|
2762
2762
|
import chalk16 from "chalk";
|
|
2763
2763
|
var PACKAGE_NAME = "@arvoretech/hub";
|
|
2764
2764
|
function getCurrentVersion() {
|
|
2765
|
-
const
|
|
2766
|
-
const pkgPath = join16(
|
|
2767
|
-
const
|
|
2768
|
-
return
|
|
2765
|
+
const __dirname2 = dirname(fileURLToPath(import.meta.url));
|
|
2766
|
+
const pkgPath = join16(__dirname2, "..", "package.json");
|
|
2767
|
+
const pkg2 = JSON.parse(readFileSync(pkgPath, "utf-8"));
|
|
2768
|
+
return pkg2.version;
|
|
2769
2769
|
}
|
|
2770
2770
|
async function getLatestVersion() {
|
|
2771
2771
|
const res = await fetch(`https://registry.npmjs.org/${PACKAGE_NAME}/latest`);
|
|
@@ -3169,10 +3169,16 @@ Run ${chalk18.bold("hub generate")} to update editor configs.
|
|
|
3169
3169
|
});
|
|
3170
3170
|
|
|
3171
3171
|
// src/index.ts
|
|
3172
|
+
import { readFileSync as readFileSync2 } from "fs";
|
|
3173
|
+
import { fileURLToPath as fileURLToPath2 } from "url";
|
|
3174
|
+
import { dirname as dirname2, join as join18 } from "path";
|
|
3175
|
+
var __filename = fileURLToPath2(import.meta.url);
|
|
3176
|
+
var __dirname = dirname2(__filename);
|
|
3177
|
+
var pkg = JSON.parse(readFileSync2(join18(__dirname, "..", "package.json"), "utf-8"));
|
|
3172
3178
|
var program = new Command19();
|
|
3173
3179
|
program.name("hub").description(
|
|
3174
3180
|
"Give your AI coding assistant the full picture. Multi-repo context, agent orchestration, and end-to-end workflows."
|
|
3175
|
-
).version(
|
|
3181
|
+
).version(pkg.version).enablePositionalOptions();
|
|
3176
3182
|
program.addCommand(initCommand);
|
|
3177
3183
|
program.addCommand(addRepoCommand);
|
|
3178
3184
|
program.addCommand(setupCommand);
|