@vapi-network/core 0.9.5 → 0.9.7
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 +17 -1
- package/dist/index.js.map +1 -1
- package/dist/router-client.js +1 -1
- package/dist/router-client.js.map +1 -1
- package/dist/support-report.d.ts +1 -1
- package/dist/wallet-store.d.ts +7 -0
- package/dist/wallet-store.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -71578,6 +71578,22 @@ var WalletStore = class _WalletStore {
|
|
|
71578
71578
|
this.registry = await this.readRegistry();
|
|
71579
71579
|
return this.snapshot();
|
|
71580
71580
|
}
|
|
71581
|
+
/**
|
|
71582
|
+
* Re-reads `wallets.json` for a long-running process such as the MCP server.
|
|
71583
|
+
* Unlike `reload`, it never zeroes the cached vault key, because a payment in
|
|
71584
|
+
* flight may still be signing with it. When accounts were added elsewhere the
|
|
71585
|
+
* cached vault is forgotten, so the next unlock reads the vault file again.
|
|
71586
|
+
*/
|
|
71587
|
+
async refreshRegistry() {
|
|
71588
|
+
const registry2 = await this.readRegistry();
|
|
71589
|
+
const known = new Set(this.names());
|
|
71590
|
+
if (Object.keys(registry2.wallets).some((name) => !known.has(name))) {
|
|
71591
|
+
this.cachedVault = void 0;
|
|
71592
|
+
this.vaultKey = void 0;
|
|
71593
|
+
}
|
|
71594
|
+
this.registry = registry2;
|
|
71595
|
+
return this.snapshot();
|
|
71596
|
+
}
|
|
71581
71597
|
/**
|
|
71582
71598
|
* Picks the wallet a command acts on: an explicit name first, then
|
|
71583
71599
|
* `VAPI_WALLET`, then the registry default.
|
|
@@ -77005,7 +77021,7 @@ function createRunBudget(args) {
|
|
|
77005
77021
|
import { mkdir as mkdir15, writeFile as writeFile8 } from "node:fs/promises";
|
|
77006
77022
|
import { arch, platform, release } from "node:os";
|
|
77007
77023
|
import { join as join13 } from "node:path";
|
|
77008
|
-
var VAPI_CLIENT_VERSION = "0.9.
|
|
77024
|
+
var VAPI_CLIENT_VERSION = "0.9.7";
|
|
77009
77025
|
async function createSupportReport(options) {
|
|
77010
77026
|
const message = options.message.trim();
|
|
77011
77027
|
if (!message) throw new Error("Support report message must not be empty.");
|