@moderniser/plugin 0.1.0 → 0.1.3

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 +5 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -401,12 +401,14 @@ var reported = new Map;
401
401
  var ModerniserPlugin = async () => {
402
402
  return {
403
403
  config: async (config) => {
404
+ const modalities = { input: ["text", "image"], output: ["text"] };
404
405
  const models = {
405
- emm: { name: "Enterprise Modernisation Model", tool_call: true, reasoning: true },
406
+ emm: { name: "Enterprise Modernisation Model", tool_call: true, reasoning: true, modalities },
406
407
  "emm-high": {
407
408
  name: "Enterprise Modernisation Model (deep reasoning)",
408
409
  tool_call: true,
409
- reasoning: true
410
+ reasoning: true,
411
+ modalities
410
412
  }
411
413
  };
412
414
  const key = KEY();
@@ -417,6 +419,7 @@ var ModerniserPlugin = async () => {
417
419
  options: { baseURL: GATEWAY(), ...key ? { apiKey: key } : {} },
418
420
  models
419
421
  };
422
+ config.enabled_providers ??= [PROVIDER_ID];
420
423
  const requested = process.env.MODERNISER_MODEL;
421
424
  if (requested !== "off") {
422
425
  config.model ??= requested || DEFAULT_MODEL;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moderniser/plugin",
3
- "version": "0.1.0",
3
+ "version": "0.1.3",
4
4
  "type": "module",
5
5
  "description": "Moderniser plugin for opencode: points inference at the gateway, carries the board and Context Hub tools, and reports session telemetry",
6
6
  "license": "MIT",