@elisym/mcp 0.16.0 → 0.16.2
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 +1 -14
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { LIMITS, DEFAULT_KIND_OFFSET, SolanaPaymentStrategy, makeCensor, DEFAULT_REDACT_PATHS, validateAgentName, RELAYS, toDTag, JobWaitTimeoutError, attachmentsOf, decodeJobPayload, utf8ByteLength, formatAssetAmount, estimateNetworkBaseline, formatSol as formatSol$1, USDC_SOLANA_DEVNET, estimateSolFeeLamports, formatFeeBreakdown, resolveAssetFromPaymentRequest as resolveAssetFromPaymentRequest$1, parseAssetAmount, ElisymIdentity, ElisymClient, NATIVE_SOL, resolveKnownAsset, getProtocolProgramId, getProtocolConfig, assetKey, assetByKey, formatNetworkBaseline, KNOWN_ASSETS } from '@elisym/sdk';
|
|
2
|
+
import { LIMITS, DEFAULT_KIND_OFFSET, SolanaPaymentStrategy, makeCensor, DEFAULT_REDACT_PATHS, validateAgentName, exportKeyPairBytes, RELAYS, toDTag, JobWaitTimeoutError, attachmentsOf, decodeJobPayload, utf8ByteLength, formatAssetAmount, estimateNetworkBaseline, formatSol as formatSol$1, USDC_SOLANA_DEVNET, estimateSolFeeLamports, formatFeeBreakdown, resolveAssetFromPaymentRequest as resolveAssetFromPaymentRequest$1, parseAssetAmount, ElisymIdentity, ElisymClient, NATIVE_SOL, resolveKnownAsset, getProtocolProgramId, getProtocolConfig, assetKey, assetByKey, formatNetworkBaseline, KNOWN_ASSETS } from '@elisym/sdk';
|
|
3
3
|
import { listAgents, createAgentDir, writeYamlInitial, writeExampleSkillTemplate, writeSecrets, resolveAgent, loadAgent, globalConfigPath, writeYaml, writeFileAtomic as writeFileAtomic$1 } from '@elisym/sdk/agent-store';
|
|
4
4
|
import { createIrohTransport, loadGlobalConfig, writeGlobalConfig } from '@elisym/sdk/node';
|
|
5
5
|
import { getBase58Encoder, getBase58Decoder, generateKeyPairSigner, createSolanaRpc, address, createSolanaRpcSubscriptions, sendAndConfirmTransactionFactory, getSignatureFromTransaction, pipe, createTransactionMessage, setTransactionMessageFeePayerSigner, setTransactionMessageLifetimeUsingBlockhash, appendTransactionMessageInstructions, signTransactionMessageWithSigners, createKeyPairSignerFromBytes, isAddress } from '@solana/kit';
|
|
@@ -1201,19 +1201,6 @@ function errorResult(text) {
|
|
|
1201
1201
|
// src/tools/agent.ts
|
|
1202
1202
|
var BASE58_ENCODER = getBase58Encoder();
|
|
1203
1203
|
var BASE58_DECODER = getBase58Decoder();
|
|
1204
|
-
async function exportKeyPairBytes(signer) {
|
|
1205
|
-
const { privateKey, publicKey } = signer.keyPair;
|
|
1206
|
-
const [pkcs8, rawPub] = await Promise.all([
|
|
1207
|
-
crypto.subtle.exportKey("pkcs8", privateKey),
|
|
1208
|
-
crypto.subtle.exportKey("raw", publicKey)
|
|
1209
|
-
]);
|
|
1210
|
-
const privateBytes = new Uint8Array(pkcs8).slice(16);
|
|
1211
|
-
const publicBytes = new Uint8Array(rawPub);
|
|
1212
|
-
const bytes = new Uint8Array(64);
|
|
1213
|
-
bytes.set(privateBytes, 0);
|
|
1214
|
-
bytes.set(publicBytes, 32);
|
|
1215
|
-
return bytes;
|
|
1216
|
-
}
|
|
1217
1204
|
var CreateAgentSchema = z.object({
|
|
1218
1205
|
name: z.string().min(1).max(64),
|
|
1219
1206
|
description: z.string().default("Elisym MCP agent"),
|