diff --git a/.github/workflows/validate-with-agent-protocol.yml b/.github/workflows/validate-with-agent-protocol.yml new file mode 100644 index 0000000..70eb4ed --- /dev/null +++ b/.github/workflows/validate-with-agent-protocol.yml @@ -0,0 +1,19 @@ +jobs: + validate-with-agent-protocol: + name: Validate agent protocol compliance + runs-on: ubuntu-20.04 + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - uses: oven-sh/setup-bun@v1 + with: + bun-version: latest + + - name: Install agent requirements + run: bun i + + - name: Run agent and validate compliance + run: | + bun run:agent + URL=http://localhost:8000 bash -c "$(curl -fsSL https://agentprotocol.ai/test.sh)" diff --git a/packages/agent/index.ts b/packages/agent/index.ts index 7f4bac5..578ad21 100644 --- a/packages/agent/index.ts +++ b/packages/agent/index.ts @@ -24,4 +24,5 @@ const port = 8000; Agent.handleTask(taskHandler, { port: port, + workspace: import.meta.dir, }).start(); diff --git a/packages/agent/package.json b/packages/agent/package.json index 7a9f24e..5dd018c 100644 --- a/packages/agent/package.json +++ b/packages/agent/package.json @@ -2,6 +2,7 @@ "name": "@micro-agi/agent", "module": "index.ts", "type": "module", + "scripts": {}, "devDependencies": { "bun-types": "latest" }, @@ -11,4 +12,4 @@ "dependencies": { "agent-protocol": "^1.0.2" } -} \ No newline at end of file +}