@newtype-ai/nit 0.4.16 → 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.
- package/dist/{chunk-VFH4LLX2.js → chunk-3XE36C3X.js} +4 -1
- package/dist/cli.js +2 -2
- package/dist/index.d.ts +5 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -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-
|
|
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.
|
|
43
|
+
return "0.4.17";
|
|
44
44
|
} catch {
|
|
45
45
|
return "0.0.0";
|
|
46
46
|
}
|
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