fix: declare Telegram extension for OMP
This commit is contained in:
1 parent
bd083efbe3
commit
572967c17b
2 files changed
+16
-8
No files matched your search
+3
-6
@@ -59,16 +59,13 @@
|
||||
"./voice": "./api/voice.ts",
|
||||
"./keyboard": "./api/keyboard.ts"
|
||||
},
|
||||
"pi": {
|
||||
"extensions": [
|
||||
"./index.ts"
|
||||
],
|
||||
"image": "https://github.com/evandrodevbr/oh-my-pi-telegram/raw/main/screenshot.png"
|
||||
},
|
||||
"omp": {
|
||||
"name": "oh-my-pi-telegram",
|
||||
"displayName": "Telegram bridge for Oh My Pi (omp)",
|
||||
"homepage": "https://github.com/evandrodevbr/oh-my-pi-telegram",
|
||||
"extensions": [
|
||||
"./index.ts"
|
||||
],
|
||||
"compatibleWith": {
|
||||
"@oh-my-pi/pi-coding-agent": ">=16.5.2"
|
||||
}
|
||||
|
||||
@@ -87,10 +87,21 @@ test("Public package subpaths expose the stable extension API", async () => {
|
||||
assert.deepEqual(Object.keys(keyboard), []);
|
||||
});
|
||||
|
||||
test("Activity API declares the Pi lifecycle compatibility floor", async () => {
|
||||
test("Package declares the OMP extension entry point and Pi lifecycle compatibility floor", async () => {
|
||||
const packageJson = JSON.parse(
|
||||
await readFile(new URL("../package.json", import.meta.url), "utf8"),
|
||||
) as { peerDependencies?: Record<string, string> };
|
||||
) as {
|
||||
omp?: {
|
||||
compatibleWith?: Record<string, string>;
|
||||
extensions?: string[];
|
||||
};
|
||||
peerDependencies?: Record<string, string>;
|
||||
};
|
||||
assert.deepEqual(packageJson.omp?.extensions, ["./index.ts"]);
|
||||
assert.equal(
|
||||
packageJson.omp?.compatibleWith?.["@oh-my-pi/pi-coding-agent"],
|
||||
">=16.5.2",
|
||||
);
|
||||
assert.equal(
|
||||
packageJson.peerDependencies?.["@earendil-works/pi-coding-agent"],
|
||||
">=0.80.6",
|
||||
|
||||
Reference in new issue
Block a user