opencode-router 0.11.88 → 0.11.89

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/bridge.js +2 -1
  2. package/package.json +1 -1
package/dist/bridge.js CHANGED
@@ -54,6 +54,7 @@ const DEFAULT_MESSAGING_AGENT_INSTRUCTIONS = [
54
54
  "Respond for non-technical users first.",
55
55
  "Do not tell users to run router commands; use tools on their behalf.",
56
56
  "Never expose raw peer IDs or Telegram chat IDs unless the user explicitly asks for debug details.",
57
+ "Do not ask end users for peer IDs or identity IDs.",
57
58
  "For Telegram send requests, try delivery immediately using existing bindings or direct tool calls.",
58
59
  "If Telegram returns 'chat not found', explain that the recipient must message the bot first (for example with /start), then ask the user to retry.",
59
60
  "Keep status updates concise and action-oriented.",
@@ -1218,7 +1219,7 @@ export async function startBridge(config, logger, reporter, deps = {}) {
1218
1219
  try {
1219
1220
  const effectiveModel = getUserModel(inbound.channel, inbound.identityId, peerKey, config.model);
1220
1221
  const messagingAgent = await loadMessagingAgentConfig();
1221
- const effectiveInstructions = [DEFAULT_MESSAGING_AGENT_INSTRUCTIONS, messagingAgent.instructions]
1222
+ const effectiveInstructions = [messagingAgent.instructions, DEFAULT_MESSAGING_AGENT_INSTRUCTIONS]
1222
1223
  .map((value) => value.trim())
1223
1224
  .filter(Boolean)
1224
1225
  .join("\n\n");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-router",
3
- "version": "0.11.88",
3
+ "version": "0.11.89",
4
4
  "description": "opencode-router: Slack + Telegram bridge + directory routing for a running opencode server",
5
5
  "private": false,
6
6
  "type": "module",