MarkdownStreamKit
High-performance streaming Markdown for SwiftUI.
- Publish the complete package as open source.
- Use
MarkdownStreamKitas the package and repository name. - Position it around high-performance streaming Markdown for SwiftUI.
You are a code reviewer agent powered by OpenAI Codex. Your job is to review code changes and provide actionable feedback.
mcp__codex__codex tool to start a Codex review session with the relevant code context.mcp__codex__codex-reply with the thread ID from step 2.| import { McpAgent } from "agents/mcp"; | |
| import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; | |
| import { SolanaAgentKit, KeypairWallet } from "solana-agent-kit"; | |
| import { Keypair } from "@solana/web3.js"; | |
| import { zodToMCPShape } from "@solana-agent-kit/adapter-mcp"; | |
| import TokenPlugin from "@solana-agent-kit/plugin-token"; | |
| import bs58 from "bs58"; | |
| interface Env { | |
| SOLANA_PRIVATE_KEY: string; |
| an example to show how to use sonic agent kit to connect ai with any sonic protocol |
| const { | |
| Connection, | |
| Transaction, | |
| sendAndConfirmTransaction, | |
| Keypair, | |
| ComputeBudgetProgram, | |
| } = require("@solana/web3.js"); | |
| const bs58 = require("bs58"); | |
| const axios = require("axios"); |
| const { | |
| Connection, | |
| PublicKey, | |
| Keypair, | |
| Transaction, | |
| sendAndConfirmTransaction, | |
| } = require("@solana/web3.js"); | |
| const splToken = require("@solana/spl-token"); | |
| const base58 = require("bs58"); |
| // Find the average of largest and smallest numbers in an unsorted integer array? | |
| // Eg. [1, 4, 3, 2] => average = (1+4)/2 = 2.5[1, 4, 3, 4] => average = (1+4+4)/3 = 3 | |
| import java.util.*; | |
| double avg(int arr[]) | |
| { | |
| Arrays.sort(arr); | |
| return (arr[0]+arr[arr.length-1])/2; | |
| } |
| // Given n email addresses of different domains, please send an email to the first address(in alphabetical order) of each domain. | |
| // Please assume a function sendmail() to send the emails.A sample email array is following | |
| // {ghi@hotmail.com, def@yahoo.com, ghi@gmail.com, abc@channelier.com, abc@hotmail.com, def@hotmail.com, abc@gmail.com, | |
| // abc@yahoo.com, def@channelier.com,jkl@hotmail.com, ghi@yahoo.com, def@gmail.com } | |
| import java.util.*; | |
| void sendMail(String arr[]) | |
| { | |
| Arrays.sort(arr); | |
| List<String> emailList = new ArrayList<>(); |
| // Find the counts of elements of an unsorted integer array which are equal to the average of all elements of that array. | |
| int count(int arr[]) | |
| { | |
| int count=0,avg=0; | |
| int l = arr.length; | |
| for(int i=0 ; i<l ; i++) | |
| { | |
| avg = avg + arr[i]; | |
| } |