mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-30 19:32:27 +00:00
fix(ci): replay compaction and skills api drift
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import fs from "node:fs";
|
||||
import os from "node:os";
|
||||
import path from "node:path";
|
||||
import { createSyntheticSourceInfo } from "@mariozechner/pi-coding-agent";
|
||||
import { afterAll, beforeAll, describe, expect, it } from "vitest";
|
||||
import { buildWorkspaceSkillStatus } from "../agents/skills-status.js";
|
||||
import type { SkillEntry } from "../agents/skills.js";
|
||||
@@ -91,14 +92,12 @@ function createFixtureSkill(params: {
|
||||
baseDir: string;
|
||||
source: string;
|
||||
}): SkillEntry["skill"] {
|
||||
const skill = {
|
||||
return {
|
||||
name: params.name,
|
||||
description: params.description,
|
||||
filePath: params.filePath,
|
||||
baseDir: params.baseDir,
|
||||
source: params.source,
|
||||
sourceInfo: { source: params.source },
|
||||
sourceInfo: createSyntheticSourceInfo(params.filePath, { source: params.source }),
|
||||
disableModelInvocation: false,
|
||||
};
|
||||
return skill as unknown as SkillEntry["skill"];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user