@coresource/hz 0.1.3 → 0.1.4

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.
Files changed (2) hide show
  1. package/dist/hz.mjs +4 -4
  2. package/package.json +1 -1
package/dist/hz.mjs CHANGED
@@ -73,7 +73,7 @@ function resolveConfigPath(options = {}) {
73
73
  if (options.configPath) {
74
74
  return options.configPath;
75
75
  }
76
- return path.join(resolveHomeDir(options), ".factory", "config.json");
76
+ return path.join(resolveHomeDir(options), ".hz", "config.json");
77
77
  }
78
78
  async function readConfig(options = {}) {
79
79
  const configPath = resolveConfigPath(options);
@@ -422,7 +422,7 @@ async function resolveOrganizationName(apiKey, endpoint, tenantId) {
422
422
  }
423
423
  function registerAuthCommands(program, context) {
424
424
  const auth = program.command("auth").description("Manage authentication");
425
- auth.command("login").description("Store an API key in ~/.factory/config.json").option("--endpoint <url>", "API endpoint to use").option("--key <apiKey>", "API key to store locally").action(async (options) => {
425
+ auth.command("login").description("Store an API key in ~/.hz/config.json").option("--endpoint <url>", "API endpoint to use").option("--key <apiKey>", "API key to store locally").action(async (options) => {
426
426
  const existing = await readConfig({
427
427
  env: context.env,
428
428
  homeDir: context.homeDir
@@ -811,7 +811,7 @@ function resolveHomeDir2(options = {}) {
811
811
  return options.homeDir ?? process.env.HOME ?? os2.homedir();
812
812
  }
813
813
  function resolveLaunchesDir(options = {}) {
814
- return path2.join(resolveHomeDir2(options), ".factory", "cloud-launches");
814
+ return path2.join(resolveHomeDir2(options), ".hz", "cloud-launches");
815
815
  }
816
816
  function normalizeTask(task) {
817
817
  const normalized = task.trim();
@@ -2698,7 +2698,7 @@ function resolveLifecycleHomeDir(context) {
2698
2698
  });
2699
2699
  }
2700
2700
  async function findMostRecentMissionId(homeDir) {
2701
- const launchesDir = path3.join(homeDir, ".factory", "cloud-launches");
2701
+ const launchesDir = path3.join(homeDir, ".hz", "cloud-launches");
2702
2702
  let entries;
2703
2703
  try {
2704
2704
  entries = await readdir2(launchesDir, { withFileTypes: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coresource/hz",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "hz": "dist/hz.mjs"