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

chore: stablize develop #3645

Merged
merged 12 commits into from
Feb 23, 2025
4 changes: 2 additions & 2 deletions .github/workflows/integrationTests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ vars.TURBO_TEAM }}
TURBO_REMOTE_ONLY: true
TURBO_CACHE: remote:rw
steps:
- uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -43,4 +43,4 @@ jobs:
fi

- name: Run integration tests
run: pnpm run integrationTests
run: pnpm run integrationTests
2 changes: 1 addition & 1 deletion .github/workflows/smoke-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ vars.TURBO_TEAM }}
TURBO_REMOTE_ONLY: true
TURBO_CACHE: remote:rw
steps:
- uses: actions/checkout@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion client/src/lib/info.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"version": "0.25.7"}
{"version": "0.25.8"}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"husky": "9.1.7",
"jest": "^29.7.0",
"lerna": "8.1.5",
"nodemon": "3.1.7",
"only-allow": "1.2.1",
"turbo": "2.4.2",
"typedoc": "0.26.11",
Expand Down
2 changes: 1 addition & 1 deletion packages/client-direct/src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function validateUUIDParams(
}

export function createApiRouter(
agents: Map<string, AgentRuntime>,
agents: Map<string, IAgentRuntime>,
directClient: DirectClient
):Router {
const router = express.Router();
Expand Down
14 changes: 9 additions & 5 deletions packages/client-direct/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -656,12 +656,16 @@ export class DirectClient {
"/fine-tune/:assetId",
async (req: express.Request, res: express.Response) => {
const assetId = req.params.assetId;
const downloadDir = path.join(
process.cwd(),
"downloads",
assetId
);

const ROOT_DIR = path.join(process.cwd(), "downloads");
const downloadDir = path.resolve(ROOT_DIR, assetId);

if (!downloadDir.startsWith(ROOT_DIR)) {
res.status(403).json({
error: "Invalid assetId. Access denied.",
});
return;
}
elizaLogger.log("Download directory:", downloadDir);

try {
Expand Down
2 changes: 1 addition & 1 deletion packages/client-direct/src/verifiable-log-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import type {
} from "@elizaos/plugin-tee-verifiable-log";

export function createVerifiableLogApiRouter(
agents: Map<string, AgentRuntime>
agents: Map<string, IAgentRuntime>
):Router {
const router = express.Router();
router.use(cors());
Expand Down
3,533 changes: 1,673 additions & 1,860 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

6 changes: 1 addition & 5 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,7 @@
},
"@elizaos/client-direct#build": {
"outputs": ["dist/**"],
"dependsOn": [
"@elizaos/plugin-image-generation#build",
"@elizaos/plugin-tee-log#build",
"@elizaos/plugin-tee-verifiable-log#build"
]
"dependsOn": []
},
"eliza-docs#build": {
"outputs": ["build/**"]
Expand Down
Loading