@newtype-ai/nit 0.4.15 → 0.4.17

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.
@@ -3365,6 +3365,8 @@ async function init(options) {
3365
3365
  if (!card.url) {
3366
3366
  card.url = `https://agent-${agentId}.newtype-ai.org`;
3367
3367
  }
3368
+ const walletAddresses = await getWalletAddresses(nitDir);
3369
+ card.wallet = { solana: walletAddresses.solana, evm: walletAddresses.ethereum };
3368
3370
  await writeWorkingCard(nitDir, card);
3369
3371
  const cardJson = JSON.stringify(card, null, 2);
3370
3372
  const cardHash = await writeObject(nitDir, "card", cardJson);
@@ -3385,7 +3387,6 @@ async function init(options) {
3385
3387
  skillsDir
3386
3388
  });
3387
3389
  const nitSkillPath = await createNitSkill(skillsDir);
3388
- const walletAddresses = await getWalletAddresses(nitDir);
3389
3390
  return {
3390
3391
  agentId,
3391
3392
  publicKey: publicKeyField,
@@ -3502,6 +3503,8 @@ async function commit(message, options) {
3502
3503
  card = await resolveSkillPointers(card, projDir);
3503
3504
  const pubBase64 = await loadPublicKey(nitDir);
3504
3505
  card.publicKey = formatPublicKeyField(pubBase64);
3506
+ const walletAddrs = await getWalletAddresses(nitDir);
3507
+ card.wallet = { solana: walletAddrs.solana, evm: walletAddrs.ethereum };
3505
3508
  await writeWorkingCard(nitDir, card);
3506
3509
  const cardJson = JSON.stringify(card, null, 2);
3507
3510
  const cardHash = await writeObject(nitDir, "card", cardJson);
package/dist/cli.js CHANGED
@@ -25,7 +25,7 @@ import {
25
25
  sign,
26
26
  signTx,
27
27
  status
28
- } from "./chunk-VFH4LLX2.js";
28
+ } from "./chunk-3XE36C3X.js";
29
29
  import "./chunk-M6SR6QMR.js";
30
30
  import "./chunk-4HRQSCNQ.js";
31
31
 
@@ -40,7 +40,7 @@ var FETCH_TIMEOUT_MS = 3e3;
40
40
  var REGISTRY_URL = "https://registry.npmjs.org/@newtype-ai/nit/latest";
41
41
  function getCurrentVersion() {
42
42
  try {
43
- return "0.4.15";
43
+ return "0.4.17";
44
44
  } catch {
45
45
  return "0.0.0";
46
46
  }
@@ -98,7 +98,7 @@ async function autoUpdate() {
98
98
  const update = await checkForUpdate().catch(() => null);
99
99
  if (!update) return;
100
100
  const { current, latest } = update;
101
- process.stderr.write(`nit: updating ${current} \u2192 ${latest}...
101
+ process.stderr.write(`nit: updating ${current} \u2192 ${latest} \u2014 https://github.com/newtype-ai/nit/releases/tag/v${latest}
102
102
  `);
103
103
  try {
104
104
  execSync("npm install -g @newtype-ai/nit@latest", {
package/dist/index.d.ts CHANGED
@@ -55,6 +55,11 @@ interface AgentCard {
55
55
  url: string;
56
56
  /** Format: "ed25519:<base64>" — present only on main branch */
57
57
  publicKey?: string;
58
+ /** Chain wallet addresses derived from the agent's Ed25519 keypair. */
59
+ wallet?: {
60
+ solana: string;
61
+ evm: string;
62
+ };
58
63
  defaultInputModes: string[];
59
64
  defaultOutputModes: string[];
60
65
  skills: AgentCardSkill[];
package/dist/index.js CHANGED
@@ -32,7 +32,7 @@ import {
32
32
  signSolanaBytes,
33
33
  signTx,
34
34
  status
35
- } from "./chunk-VFH4LLX2.js";
35
+ } from "./chunk-3XE36C3X.js";
36
36
  import {
37
37
  NIT_NAMESPACE,
38
38
  deriveAgentId,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@newtype-ai/nit",
3
- "version": "0.4.15",
3
+ "version": "0.4.17",
4
4
  "description": "Version control for agent cards",
5
5
  "type": "module",
6
6
  "bin": {