@ycodium-ai/plugin-im 0.2.3158 → 0.2.3168

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +7 -4
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -139521,7 +139521,7 @@ var makeModelPlan = (core, deps) => {
139521
139521
  };
139522
139522
  const handleModel = async (binding, arg) => {
139523
139523
  const chatKey = chatKeyOf(binding);
139524
- const instances = await host.providers.listInstances().catch(() => null);
139524
+ const instances = await host.providers.instances.list({}).catch(() => null);
139525
139525
  const choices = instances === null ? [] : modelChoices(instances);
139526
139526
  if (arg === "") {
139527
139527
  await deliver(binding, formatModels(await currentModelOf(binding), choices, t));
@@ -140241,7 +140241,7 @@ var makePanelWiring = (core, deps) => {
140241
140241
  },
140242
140242
  loadModels: async (chatKey) => {
140243
140243
  const binding = bindingForChatKey(chatKey);
140244
- const instances = await host.providers.listInstances().catch(() => null);
140244
+ const instances = await host.providers.instances.list({}).catch(() => null);
140245
140245
  if (binding === void 0 || instances === null) return null;
140246
140246
  return { current: await currentModelOf(binding), choices: modelChoices(instances) };
140247
140247
  },
@@ -142768,7 +142768,10 @@ var registerSettingsCommands = (ctx, adapters, updateSettings) => {
142768
142768
  scope: "read",
142769
142769
  payloadSchema: EMPTY_PAYLOAD,
142770
142770
  handle: async () => {
142771
- const [config2, listed] = await Promise.all([ctx.settings.read(), ctx.proxies.list()]);
142771
+ const [config2, listed] = await Promise.all([
142772
+ ctx.settings.read(),
142773
+ ctx.machineSettings.proxies.list({})
142774
+ ]);
142772
142775
  return {
142773
142776
  view: buildSettingsView(config2, adapters),
142774
142777
  columns: buildBotColumns(adapters),
@@ -144618,7 +144621,7 @@ var makeWecomAppAdapter = (deps) => {
144618
144621
  // src/index.ts
144619
144622
  var imPlugin = definePlugin({
144620
144623
  id: "im",
144621
- apiVersion: 15,
144624
+ apiVersion: 16,
144622
144625
  activate: async (ctx) => {
144623
144626
  const { t, setLanguage } = makeLiveTranslate(
144624
144627
  parseReplyLanguage(ctx.config[REPLY_LANGUAGE_FIELD])
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ycodium-ai/plugin-im",
3
- "version": "0.2.3158",
3
+ "version": "0.2.3168",
4
4
  "description": "Talk to your agents from Telegram, WeCom, Lark, or WeChat (experimental).",
5
5
  "keywords": [
6
6
  "im",
@@ -32,7 +32,7 @@
32
32
  "markdown-it": "^15.0.2",
33
33
  "react": "19.2.6",
34
34
  "vite-plus": "0.2.2",
35
- "@ycodium-ai/plugin-api": "0.2.3158"
35
+ "@ycodium-ai/plugin-api": "0.2.3168"
36
36
  },
37
37
  "ycodium": {
38
38
  "plugin": "./dist/index.js",