Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: follow-up improvements for ICP token creation (PR #357) #757

Merged
merged 3 commits into from
Dec 1, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Merge remote-tracking branch 'upstream/main'
asDNSk committed Dec 1, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit c1190a3f6c0dfdeb8731cde9ce435ff83ac68387
9 changes: 7 additions & 2 deletions agent/package.json
Original file line number Diff line number Diff line change
@@ -31,9 +31,14 @@
"@ai16z/plugin-image-generation": "workspace:*",
"@ai16z/plugin-node": "workspace:*",
"@ai16z/plugin-solana": "workspace:*",
"@ai16z/plugin-0g": "workspace:*",
"@ai16z/plugin-starknet": "workspace:*",
"@ai16z/plugin-icp": "workspace:*",
"readline": "^1.3.0",
"ws": "^8.18.0",
"@ai16z/plugin-tee": "workspace:*",
"@ai16z/plugin-coinbase": "workspace:*",
"readline": "1.3.0",
"ws": "8.18.0",
"@ai16z/plugin-evm": "workspace:*",
"yargs": "17.7.2"
},
"devDependencies": {
26 changes: 13 additions & 13 deletions packages/plugin-icp/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"compilerOptions": {
"target": "ES2020",
"module": "ESNext",
"moduleResolution": "node",
"esModuleInterop": true,
"strict": true,
"skipLibCheck": true,
"declaration": true,
"outDir": "./dist",
"rootDir": "./src"
},
"include": ["src/**/*"],
"exclude": ["node_modules", "dist"]
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "dist",
"rootDir": "./src",
"typeRoots": [
"./node_modules/@types",
"./src/types"
],
"declaration": true
},
"include": [
"src"
]
}
12 changes: 9 additions & 3 deletions packages/plugin-icp/tsup.config.ts
Original file line number Diff line number Diff line change
@@ -5,9 +5,15 @@ export default defineConfig({
outDir: "dist",
sourcemap: true,
clean: true,
format: ["esm"],
dts: true,
format: ["esm"], // Ensure you're targeting CommonJS
external: [
// Add other modules you want to externalize
"dotenv", // Externalize dotenv to prevent bundling
"fs", // Externalize fs to use Node.js built-in module
"path", // Externalize other built-ins if necessary
"@reflink/reflink",
"@node-llama-cpp",
"https",
"http",
"agentkeepalive",
],
});
5 changes: 1 addition & 4 deletions scripts/build.sh
Original file line number Diff line number Diff line change
@@ -21,10 +21,6 @@ fi
# Define packages to build in order
PACKAGES=(
"core"
"plugin-trustdb"
"plugin-solana"
"plugin-icp"
"plugin-starknet"
"adapter-postgres"
"adapter-sqlite"
"adapter-sqljs"
@@ -34,6 +30,7 @@ PACKAGES=(
"plugin-trustdb"
"plugin-solana"
"plugin-starknet"
"plugin-icp"
"plugin-conflux"
"plugin-0g"
"plugin-bootstrap"

Unchanged files with check annotations Beta

const rest = new REST({ version: "10" }).setToken(API_TOKEN);
try {
const guilds = (await rest.get(Routes.userGuilds())) as Array<any>;

Check warning on line 56 in packages/client-direct/src/api.ts

GitHub Actions / check

Unexpected any. Specify a different type
res.json({
id: runtime.agentId,
apiKey: string;
faceID: string;
handleSilence: boolean;
videoRef: any;

Check warning on line 58 in packages/client-direct/src/index.ts

GitHub Actions / check

Unexpected any. Specify a different type
audioRef: any;

Check warning on line 59 in packages/client-direct/src/index.ts

GitHub Actions / check

Unexpected any. Specify a different type
}
export class DirectClient {
public app: express.Application;
private agents: Map<string, AgentRuntime>;
private server: any; // Store server instance

Check warning on line 64 in packages/client-direct/src/index.ts

GitHub Actions / check

Unexpected any. Specify a different type
constructor() {
elizaLogger.log("DirectClient constructor");
client.start(serverPort);
return client;
},
stop: async (_runtime: IAgentRuntime, client?: any) => {

Check warning on line 433 in packages/client-direct/src/index.ts

GitHub Actions / check

Unexpected any. Specify a different type
if (client instanceof DirectClient) {
client.stop();
}
runtime: IAgentRuntime,
message: Memory,
state: State,
options: any,

Check warning on line 100 in packages/plugin-image-generation/src/index.ts

GitHub Actions / check

Unexpected any. Specify a different type
callback: HandlerCallback
) => {
elizaLogger.log("Composing state for message:", message);
console.log(" pnpm install");
console.log(" pnpm start");
}
} catch (error: any) {

Check warning on line 55 in packages/create-eliza-app/src/index.ts

GitHub Actions / check

Unexpected any. Specify a different type
console.error(
"Error:",
"message" in error ? error.message : "unknown error"
runtime: IAgentRuntime,
message: Memory,
state: State,
options: any,

Check warning on line 136 in packages/client-discord/src/actions/chat_with_attachments.ts

GitHub Actions / check

Unexpected any. Specify a different type
callback: HandlerCallback
) => {
state = (await runtime.composeState(message)) as State;
runtime: IAgentRuntime,
message: Memory,
state: State,
options: any,

Check warning on line 88 in packages/client-discord/src/actions/download_media.ts

GitHub Actions / check

Unexpected any. Specify a different type
callback: HandlerCallback
) => {
const videoService = runtime
runtime: IAgentRuntime,
message: Memory,
state: State,
options: any,

Check warning on line 196 in packages/client-discord/src/actions/summarize_conversation.ts

GitHub Actions / check

Unexpected any. Specify a different type
callback: HandlerCallback
) => {
state = (await runtime.composeState(message)) as State;
You are viewing a condensed version of this merge commit. You can view the full changes here.