Skip to content

Commit

Permalink
add intel arch
Browse files Browse the repository at this point in the history
  • Loading branch information
leo4life2 committed Jul 22, 2024
1 parent e867aec commit c1ed30f
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 43 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ jobs:
github_token: ${{ secrets.GITHUB_TOKEN }}
release: ${{ startsWith(github.ref, 'refs/tags/v') }}
publish: always
args: --mac --x64 --arm64 # Ensure both architectures are specified
env:
CSC_LINK: file:///Users/runner/private_keys/certs.p12
CSC_KEY_PASSWORD: ${{ secrets.MAC_CERTS_PASSWORD }}
Expand Down
66 changes: 23 additions & 43 deletions src/agent/commands/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,6 @@ function wrapExecution(func, timeout = -1, resume_name = null) {
}

export const actionsList = [
// {
// name: "!newAction",
// description:
// "Perform new and unknown custom behaviors that are not available as a command by writing code.",
// perform: async function (agent) {
// if (!agent.settings.allow_insecure_coding)
// return "newAction Failed! Agent is not allowed to write code. Notify the user.";
// return await agent.coder.generateCode(agent.history);
// },
// },
{
name: "!stop",
description:
Expand All @@ -45,26 +35,6 @@ export const actionsList = [
return "Agent stopped.";
},
},
{
name: "!restart",
description: "Restart the agent process.",
perform: async function (agent) {
await agent.history.save();
console.log("[CLEANKILL] Restart command called.");
agent.cleanKill();
},
},
{
name: "!clearChat",
description: "Clear the chat history.",
perform: async function (agent) {
agent.history.clear();
return (
agent.name +
"'s chat history was cleared, starting new conversation from scratch."
);
},
},
{
name: "!setMode",
description:
Expand Down Expand Up @@ -256,19 +226,6 @@ export const actionsList = [
await skills.stay(agent.bot);
}),
},
// {
// name: "!goal",
// description: "Set a goal to automatically work towards.",
// params: {
// name: "(string) The name of the goal to set. Can be item or building name. If empty will automatically choose a goal.",
// quantity: "(number) The quantity of the goal to set. Default is 1.",
// },
// perform: async function (agent, name = null, quantity = 1) {
// await agent.npc.setGoal(name, quantity);
// agent.bot.emit("idle"); // to trigger the goal
// return "Set goal: " + agent.npc.data.curr_goal.name;
// },
// },
{
name: "!equip",
description: "Equip an item to a specific body part.",
Expand Down Expand Up @@ -366,5 +323,28 @@ export const actionsList = [
// return 'Error occurred while getting control state';
// }
// }),
// },
// {
// name: "!goal",
// description: "Set a goal to automatically work towards.",
// params: {
// name: "(string) The name of the goal to set. Can be item or building name. If empty will automatically choose a goal.",
// quantity: "(number) The quantity of the goal to set. Default is 1.",
// },
// perform: async function (agent, name = null, quantity = 1) {
// await agent.npc.setGoal(name, quantity);
// agent.bot.emit("idle"); // to trigger the goal
// return "Set goal: " + agent.npc.data.curr_goal.name;
// },
// },
// {
// name: "!newAction",
// description:
// "Perform new and unknown custom behaviors that are not available as a command by writing code.",
// perform: async function (agent) {
// if (!agent.settings.allow_insecure_coding)
// return "newAction Failed! Agent is not allowed to write code. Notify the user.";
// return await agent.coder.generateCode(agent.history);
// },
// },
];

0 comments on commit c1ed30f

Please sign in to comment.