@secretkeylabs/xverse-agent-wallet 0.1.8 → 0.1.10

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.
Files changed (2) hide show
  1. package/dist/cli.js +46 -3
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -161442,7 +161442,7 @@ var runeTokenToFungibleToken = (runeBalance) => ({
161442
161442
  ticker: token.ticker,
161443
161443
  name: token.ticker,
161444
161444
  assetName: token.ticker,
161445
- principal: token.ticker,
161445
+ principal: token.identifier,
161446
161446
  balance: "0",
161447
161447
  total_received: "0",
161448
161448
  total_sent: "0"
@@ -371929,6 +371929,33 @@ ${candidates.join(`
371929
371929
  console.error(dim(` - ${target.name.padEnd(12)} not detected`));
371930
371930
  }
371931
371931
  }
371932
+ console.error(dim(`
371933
+ Tip: For GitHub Copilot, add .github/copilot-instructions.md to your repo.`));
371934
+ const AGENT_BINARIES = {
371935
+ "Claude Code": undefined,
371936
+ Cursor: "cursor",
371937
+ Windsurf: "windsurf",
371938
+ Cline: "cline",
371939
+ "Codex CLI": "codex",
371940
+ OpenClaw: "openclaw",
371941
+ Hermes: "hermes"
371942
+ };
371943
+ const startCommands = [];
371944
+ for (const name of installed) {
371945
+ const bin = AGENT_BINARIES[name];
371946
+ if (bin === undefined && name === "Claude Code") {
371947
+ startCommands.push({ name, command: "xverse-wallet agent" });
371948
+ } else if (bin !== undefined) {
371949
+ startCommands.push({ name, command: `xverse-wallet agent --agent ${bin}` });
371950
+ }
371951
+ }
371952
+ if (startCommands.length > 0) {
371953
+ console.error(`
371954
+ Start your agent with wallet access:`);
371955
+ for (const { name, command } of startCommands) {
371956
+ console.error(` ${name.padEnd(12)} ${green(command)}`);
371957
+ }
371958
+ }
371932
371959
  }, uninstallSkill = async () => {
371933
371960
  const removed = [];
371934
371961
  for (const target of AGENT_TARGETS) {
@@ -372082,6 +372109,22 @@ import { mkdir, readFile, writeFile } from "fs/promises";
372082
372109
  import { dirname, join as join3 } from "path";
372083
372110
  import * as v26 from "valibot";
372084
372111
  var storageSchema = v26.record(v26.string(), v26.string());
372112
+ function createInMemoryStorageAdapter() {
372113
+ const cache = {};
372114
+ return {
372115
+ get: async (key) => cache[key] ?? null,
372116
+ getMany: async (...keys) => {
372117
+ return Object.fromEntries(keys.map((key) => [key, key in cache ? cache[key] : undefined]));
372118
+ },
372119
+ set: async (key, value) => {
372120
+ cache[key] = value;
372121
+ },
372122
+ remove: async (key) => {
372123
+ delete cache[key];
372124
+ },
372125
+ getAllKeys: async () => Object.keys(cache)
372126
+ };
372127
+ }
372085
372128
  function createFileStorageAdapter(namespace2) {
372086
372129
  const filePath = join3(getVaultsPath(), `${namespace2}.json`);
372087
372130
  let cache = {};
@@ -372137,7 +372180,7 @@ function createFileStorageAdapter(namespace2) {
372137
372180
  var createVault = () => {
372138
372181
  return new MasterVault({
372139
372182
  cryptoUtilsAdapter: cryptoAdapter,
372140
- sessionStorageAdapter: createFileStorageAdapter("session"),
372183
+ sessionStorageAdapter: createInMemoryStorageAdapter(),
372141
372184
  encryptedDataStorageAdapter: createFileStorageAdapter("encrypted"),
372142
372185
  commonStorageAdapter: createFileStorageAdapter("common")
372143
372186
  });
@@ -380465,7 +380508,7 @@ Run with --yes to confirm.`,
380465
380508
  };
380466
380509
 
380467
380510
  // index.ts
380468
- var cliVersion = "0.1.8";
380511
+ var cliVersion = "0.1.10";
380469
380512
  setXClientVersion(`xverse-agent-wallet/${cliVersion}`);
380470
380513
  var program = new Command;
380471
380514
  program.name("xverse-wallet").version(cliVersion).description("Xverse wallet CLI");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@secretkeylabs/xverse-agent-wallet",
3
- "version": "0.1.8",
3
+ "version": "0.1.10",
4
4
  "description": "Headless Xverse wallet CLI",
5
5
  "type": "module",
6
6
  "bin": {