mirror of
https://github.com/moltbot/moltbot.git
synced 2026-04-23 06:41:44 +00:00
fix(plugin-sdk): export line runtime subpath
This commit is contained in:
@@ -377,6 +377,10 @@
|
||||
"types": "./dist/plugin-sdk/line-core.d.ts",
|
||||
"default": "./dist/plugin-sdk/line-core.js"
|
||||
},
|
||||
"./plugin-sdk/line-runtime": {
|
||||
"types": "./dist/plugin-sdk/line-runtime.d.ts",
|
||||
"default": "./dist/plugin-sdk/line-runtime.js"
|
||||
},
|
||||
"./plugin-sdk/llm-task": {
|
||||
"types": "./dist/plugin-sdk/llm-task.d.ts",
|
||||
"default": "./dist/plugin-sdk/llm-task.js"
|
||||
|
||||
@@ -84,6 +84,7 @@
|
||||
"keyed-async-queue",
|
||||
"line",
|
||||
"line-core",
|
||||
"line-runtime",
|
||||
"llm-task",
|
||||
"matrix",
|
||||
"mattermost",
|
||||
|
||||
@@ -35,23 +35,6 @@ function createCatalogContext(
|
||||
};
|
||||
}
|
||||
|
||||
function createTestModel(id: string, name: string): ModelDefinitionConfig {
|
||||
return {
|
||||
id,
|
||||
name,
|
||||
reasoning: false,
|
||||
input: ["text"],
|
||||
cost: {
|
||||
input: 0,
|
||||
output: 0,
|
||||
cacheRead: 0,
|
||||
cacheWrite: 0,
|
||||
},
|
||||
contextWindow: 128_000,
|
||||
maxTokens: 4_096,
|
||||
};
|
||||
}
|
||||
|
||||
describe("defineSingleProviderPluginEntry", () => {
|
||||
it("registers a single provider with default wizard metadata", async () => {
|
||||
const entry = defineSingleProviderPluginEntry({
|
||||
|
||||
Reference in New Issue
Block a user