omnikey-cli 1.0.32 → 1.0.33

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.
@@ -84,7 +84,8 @@ async function runToolLoop(initialResult, session, sessionId, send, log, tools,
84
84
  content: `Generating image: "${prompt.slice(0, 100)}${prompt.length > 100 ? '...' : ''}"`,
85
85
  is_terminal_output: false,
86
86
  is_error: false,
87
- is_web_call: true,
87
+ is_web_call: false,
88
+ is_image_rendering: true,
88
89
  });
89
90
  const toolResult = await (0, imageTool_1.executeImageGenerationTool)(args, log);
90
91
  log.info('Tool call completed', {
@@ -92,6 +93,15 @@ async function runToolLoop(initialResult, session, sessionId, send, log, tools,
92
93
  tool: tc.name,
93
94
  resultLength: toolResult.length,
94
95
  });
96
+ send({
97
+ session_id: sessionId,
98
+ sender: 'agent',
99
+ content: `Image saved to: ${toolResult}`,
100
+ is_terminal_output: false,
101
+ is_error: false,
102
+ is_web_call: false,
103
+ is_image_rendering: true,
104
+ });
95
105
  return { id: tc.id, name: tc.name, result: toolResult };
96
106
  }
97
107
  // Notify the frontend that a web tool call is about to execute.
@@ -811,19 +821,15 @@ function createAgentRouter() {
811
821
  // Drop the @omniAgent mention that triggers the agent.
812
822
  .replace(/@omniagent/gi, '')
813
823
  .trim();
814
- const MAX_CHARS = 5000;
815
824
  const messages = raw
816
825
  .filter((m) => m.role === 'user' || m.role === 'assistant')
817
826
  .map((m, index) => {
818
827
  const rawText = typeof m.content === 'string' ? m.content : JSON.stringify(m.content);
819
828
  const cleaned = stripInternals(rawText);
820
- const truncated = cleaned.length > MAX_CHARS
821
- ? cleaned.slice(0, MAX_CHARS) + '… [message truncated]'
822
- : cleaned;
823
829
  return {
824
830
  id: `${index}-${m.role}`,
825
831
  role: m.role,
826
- text: truncated,
832
+ text: cleaned,
827
833
  };
828
834
  })
829
835
  .filter((m) => m.text.length > 0);
@@ -74,8 +74,8 @@ app.get('/macos/appcast', (req, res) => {
74
74
  const appcastUrl = `${baseUrl}/macos/appcast`;
75
75
  // These should match the values embedded into the macOS app
76
76
  // Info.plist in macOS/build_release_dmg.sh.
77
- const bundleVersion = '23';
78
- const shortVersion = '1.0.22';
77
+ const bundleVersion = '24';
78
+ const shortVersion = '1.0.23';
79
79
  const xml = `<?xml version="1.0" encoding="utf-8"?>
80
80
  <rss version="2.0"
81
81
  xmlns:sparkle="http://www.andymatuschak.org/xml-namespaces/sparkle"
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "access": "public",
5
5
  "registry": "https://registry.npmjs.org/"
6
6
  },
7
- "version": "1.0.32",
7
+ "version": "1.0.33",
8
8
  "description": "CLI for onboarding users to Omnikey AI and configuring OPENAI_API_KEY. Use Yarn for install/build.",
9
9
  "engines": {
10
10
  "node": ">=14.0.0",