@vess-id/ai-identity 0.0.3 → 0.1.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/index.mjs CHANGED
@@ -92,7 +92,7 @@ import * as os from "os";
92
92
  var FilesystemKeyStorage = class {
93
93
  keyStorePath;
94
94
  constructor(config) {
95
- this.keyStorePath = config?.options?.path || path.join(os.homedir(), ".vess", "keys");
95
+ this.keyStorePath = config?.options?.path || path.join(os.homedir(), ".vess-aidentity", "keys");
96
96
  }
97
97
  async store(id, encryptedKey) {
98
98
  await this.ensureKeyStoreExists();
@@ -901,7 +901,7 @@ var AgentDIDManager = class {
901
901
  const fs3 = await import("fs/promises");
902
902
  const path3 = await import("path");
903
903
  const os2 = await import("os");
904
- const mappingDir = path3.join(os2.homedir(), ".vess", "agent-dids");
904
+ const mappingDir = path3.join(os2.homedir(), ".vess-aidentity", "agent-dids");
905
905
  try {
906
906
  const files = await fs3.readdir(mappingDir);
907
907
  const results = [];
@@ -927,7 +927,7 @@ var AgentDIDManager = class {
927
927
  const fs3 = await import("fs/promises");
928
928
  const path3 = await import("path");
929
929
  const os2 = await import("os");
930
- const mappingDir = path3.join(os2.homedir(), ".vess", "agent-dids");
930
+ const mappingDir = path3.join(os2.homedir(), ".vess-aidentity", "agent-dids");
931
931
  await fs3.mkdir(mappingDir, { recursive: true });
932
932
  const mappingFile = path3.join(mappingDir, `${agentId}.did`);
933
933
  await fs3.writeFile(mappingFile, did, "utf-8");
@@ -1230,7 +1230,7 @@ var UserIdentityManager = class {
1230
1230
  const fs3 = await import("fs/promises");
1231
1231
  const path3 = await import("path");
1232
1232
  const os2 = await import("os");
1233
- const configDir = path3.join(os2.homedir(), ".vess");
1233
+ const configDir = path3.join(os2.homedir(), ".vess-aidentity");
1234
1234
  await fs3.mkdir(configDir, { recursive: true });
1235
1235
  const userDIDFile = path3.join(configDir, "user-did.txt");
1236
1236
  await fs3.writeFile(userDIDFile, did, "utf-8");
@@ -1242,7 +1242,7 @@ var UserIdentityManager = class {
1242
1242
  const fs3 = await import("fs/promises");
1243
1243
  const path3 = await import("path");
1244
1244
  const os2 = await import("os");
1245
- const userDIDFile = path3.join(os2.homedir(), ".vess", "user-did.txt");
1245
+ const userDIDFile = path3.join(os2.homedir(), ".vess-aidentity", "user-did.txt");
1246
1246
  try {
1247
1247
  return await fs3.readFile(userDIDFile, "utf-8");
1248
1248
  } catch {
@@ -1256,7 +1256,7 @@ var UserIdentityManager = class {
1256
1256
  const fs3 = await import("fs/promises");
1257
1257
  const path3 = await import("path");
1258
1258
  const os2 = await import("os");
1259
- const userDIDFile = path3.join(os2.homedir(), ".vess", "user-did.txt");
1259
+ const userDIDFile = path3.join(os2.homedir(), ".vess-aidentity", "user-did.txt");
1260
1260
  try {
1261
1261
  await fs3.unlink(userDIDFile);
1262
1262
  } catch {