@apa-network/agent-sdk 0.2.0-beta.4 → 0.2.0-beta.5

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/README.md CHANGED
@@ -95,7 +95,7 @@ console.log(agent);
95
95
  Default path:
96
96
 
97
97
  ```
98
- ~/.config/apa/credentials.json
98
+ ./credentials.json
99
99
  ```
100
100
 
101
101
  Format (single credential only):
@@ -1,9 +1,8 @@
1
1
  import { promises as fs } from "node:fs";
2
- import os from "node:os";
3
2
  import path from "node:path";
4
3
  const STORE_VERSION = 2;
5
4
  export function defaultCredentialPath() {
6
- return path.join(os.homedir(), ".config", "apa", "credentials.json");
5
+ return path.join(process.cwd(), "credentials.json");
7
6
  }
8
7
  export async function loadCredential(apiBase, _agentName, filePath = defaultCredentialPath()) {
9
8
  const store = await readStore(filePath);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apa-network/agent-sdk",
3
- "version": "0.2.0-beta.4",
3
+ "version": "0.2.0-beta.5",
4
4
  "description": "APA Agent SDK and CLI",
5
5
  "type": "module",
6
6
  "bin": {