@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.js +6 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -158,7 +158,7 @@ var os = __toESM(require("os"));
|
|
|
158
158
|
var FilesystemKeyStorage = class {
|
|
159
159
|
keyStorePath;
|
|
160
160
|
constructor(config) {
|
|
161
|
-
this.keyStorePath = config?.options?.path || path.join(os.homedir(), ".vess", "keys");
|
|
161
|
+
this.keyStorePath = config?.options?.path || path.join(os.homedir(), ".vess-aidentity", "keys");
|
|
162
162
|
}
|
|
163
163
|
async store(id, encryptedKey) {
|
|
164
164
|
await this.ensureKeyStoreExists();
|
|
@@ -967,7 +967,7 @@ var AgentDIDManager = class {
|
|
|
967
967
|
const fs3 = await import("fs/promises");
|
|
968
968
|
const path3 = await import("path");
|
|
969
969
|
const os2 = await import("os");
|
|
970
|
-
const mappingDir = path3.join(os2.homedir(), ".vess", "agent-dids");
|
|
970
|
+
const mappingDir = path3.join(os2.homedir(), ".vess-aidentity", "agent-dids");
|
|
971
971
|
try {
|
|
972
972
|
const files = await fs3.readdir(mappingDir);
|
|
973
973
|
const results = [];
|
|
@@ -993,7 +993,7 @@ var AgentDIDManager = class {
|
|
|
993
993
|
const fs3 = await import("fs/promises");
|
|
994
994
|
const path3 = await import("path");
|
|
995
995
|
const os2 = await import("os");
|
|
996
|
-
const mappingDir = path3.join(os2.homedir(), ".vess", "agent-dids");
|
|
996
|
+
const mappingDir = path3.join(os2.homedir(), ".vess-aidentity", "agent-dids");
|
|
997
997
|
await fs3.mkdir(mappingDir, { recursive: true });
|
|
998
998
|
const mappingFile = path3.join(mappingDir, `${agentId}.did`);
|
|
999
999
|
await fs3.writeFile(mappingFile, did, "utf-8");
|
|
@@ -1296,7 +1296,7 @@ var UserIdentityManager = class {
|
|
|
1296
1296
|
const fs3 = await import("fs/promises");
|
|
1297
1297
|
const path3 = await import("path");
|
|
1298
1298
|
const os2 = await import("os");
|
|
1299
|
-
const configDir = path3.join(os2.homedir(), ".vess");
|
|
1299
|
+
const configDir = path3.join(os2.homedir(), ".vess-aidentity");
|
|
1300
1300
|
await fs3.mkdir(configDir, { recursive: true });
|
|
1301
1301
|
const userDIDFile = path3.join(configDir, "user-did.txt");
|
|
1302
1302
|
await fs3.writeFile(userDIDFile, did, "utf-8");
|
|
@@ -1308,7 +1308,7 @@ var UserIdentityManager = class {
|
|
|
1308
1308
|
const fs3 = await import("fs/promises");
|
|
1309
1309
|
const path3 = await import("path");
|
|
1310
1310
|
const os2 = await import("os");
|
|
1311
|
-
const userDIDFile = path3.join(os2.homedir(), ".vess", "user-did.txt");
|
|
1311
|
+
const userDIDFile = path3.join(os2.homedir(), ".vess-aidentity", "user-did.txt");
|
|
1312
1312
|
try {
|
|
1313
1313
|
return await fs3.readFile(userDIDFile, "utf-8");
|
|
1314
1314
|
} catch {
|
|
@@ -1322,7 +1322,7 @@ var UserIdentityManager = class {
|
|
|
1322
1322
|
const fs3 = await import("fs/promises");
|
|
1323
1323
|
const path3 = await import("path");
|
|
1324
1324
|
const os2 = await import("os");
|
|
1325
|
-
const userDIDFile = path3.join(os2.homedir(), ".vess", "user-did.txt");
|
|
1325
|
+
const userDIDFile = path3.join(os2.homedir(), ".vess-aidentity", "user-did.txt");
|
|
1326
1326
|
try {
|
|
1327
1327
|
await fs3.unlink(userDIDFile);
|
|
1328
1328
|
} catch {
|