@signetai/core 0.200.26 → 0.200.27

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 CHANGED
@@ -13971,7 +13971,7 @@ class Signet {
13971
13971
  };
13972
13972
  }
13973
13973
  async init(name) {
13974
- const basePath = this.config.basePath;
13974
+ const basePath = this.getBasePath();
13975
13975
  if (!existsSync2(basePath)) {
13976
13976
  mkdirSync(basePath, { recursive: true });
13977
13977
  }
@@ -14001,7 +14001,7 @@ class Signet {
14001
14001
  return this.agent;
14002
14002
  }
14003
14003
  async load() {
14004
- const basePath = this.config.basePath;
14004
+ const basePath = this.getBasePath();
14005
14005
  if (!existsSync2(join3(basePath, "agent.yaml"))) {
14006
14006
  throw new Error(`No agent found at ${basePath}. Run 'signet init' first.`);
14007
14007
  }
@@ -14023,6 +14023,12 @@ class Signet {
14023
14023
  getDatabase() {
14024
14024
  return this.db;
14025
14025
  }
14026
+ getBasePath() {
14027
+ const { basePath } = this.config;
14028
+ if (!basePath)
14029
+ throw new Error("Signet base path is not configured");
14030
+ return basePath;
14031
+ }
14026
14032
  static detect(basePath) {
14027
14033
  const path = basePath || resolveDefaultBasePath();
14028
14034
  return existsSync2(join3(path, "agent.yaml"));
package/dist/signet.d.ts CHANGED
@@ -24,6 +24,7 @@ export declare class Signet {
24
24
  * Get the database instance
25
25
  */
26
26
  getDatabase(): Database | null;
27
+ private getBasePath;
27
28
  /**
28
29
  * Detect if Signet is installed
29
30
  */
@@ -1 +1 @@
1
- {"version":3,"file":"signet.d.ts","sourceRoot":"","sources":["../src/signet.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,KAAK,EAAE,WAAW,EAAiB,MAAM,SAAS,CAAC;AAQ5D,qBAAa,MAAM;IAClB,OAAO,CAAC,MAAM,CAAc;IAC5B,OAAO,CAAC,EAAE,CAAyB;IACnC,OAA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": "0.200.26",
3
+ "version": "0.200.27",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Core library for Signet - portable AI agent identity",
6
6
  "type": "module",