@openagents-org/agent-launcher 0.2.11 → 0.2.12

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openagents-org/agent-launcher",
3
- "version": "0.2.11",
3
+ "version": "0.2.12",
4
4
  "description": "OpenAgents Launcher — install, configure, and run AI coding agents from your terminal",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -281,13 +281,23 @@ class OpenClawAdapter extends BaseAdapter {
281
281
  const url = new URL(this._directBaseUrl + '/chat/completions');
282
282
  const transport = url.protocol === 'https:' ? https : http;
283
283
 
284
- // Build system prompt from workspace skill
285
- const { buildOpenclawSystemPrompt } = require('./workspace-prompt');
286
- const systemPrompt = buildOpenclawSystemPrompt({
287
- workspaceId: this.workspaceId,
288
- agentName: this.agentName,
289
- channelName: channel,
290
- });
284
+ // Build system prompt
285
+ let systemPrompt;
286
+ try {
287
+ const { buildOpenclawSystemPrompt } = require('./workspace-prompt');
288
+ systemPrompt = buildOpenclawSystemPrompt({
289
+ agentName: this.agentName,
290
+ workspaceId: this.workspaceId,
291
+ channelName: channel,
292
+ endpoint: this.client?.endpoint || '',
293
+ token: this.token || '',
294
+ });
295
+ } catch (e) {
296
+ this._log(`System prompt build failed (using fallback): ${e.message}`);
297
+ }
298
+ if (!systemPrompt) {
299
+ systemPrompt = `You are a helpful AI assistant named ${this.agentName}. You are connected to an OpenAgents workspace. Answer questions concisely and helpfully.`;
300
+ }
291
301
 
292
302
  // Simple conversation (no history for now)
293
303
  const messages = [