@crewx/sdk 0.8.8-rc.4 → 0.8.8-rc.41

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.
@@ -83,16 +83,22 @@ layouts:
83
83
 
84
84
  {{#if agent.optionsByMode.query}}
85
85
  <cli_options mode="query">
86
- {{#each agent.optionsByMode.query}}
87
- <item>{{#if @key}}provider="{{@key}}" {{/if}}{{{this}}}</item>
86
+ {{#each agent.optionsByMode.query.named}}
87
+ <item>provider="{{@key}}" {{{this}}}</item>
88
+ {{/each}}
89
+ {{#each agent.optionsByMode.query.rawArgs}}
90
+ <item>{{{this}}}</item>
88
91
  {{/each}}
89
92
  </cli_options>
90
93
  {{/if}}
91
94
 
92
95
  {{#if agent.optionsByMode.execute}}
93
96
  <cli_options mode="execute">
94
- {{#each agent.optionsByMode.execute}}
95
- <item>{{#if @key}}provider="{{@key}}" {{/if}}{{{this}}}</item>
97
+ {{#each agent.optionsByMode.execute.named}}
98
+ <item>provider="{{@key}}" {{{this}}}</item>
99
+ {{/each}}
100
+ {{#each agent.optionsByMode.execute.rawArgs}}
101
+ <item>{{{this}}}</item>
96
102
  {{/each}}
97
103
  </cli_options>
98
104
  {{/if}}
@@ -298,8 +304,15 @@ layouts:
298
304
 
299
305
  {{#if props.showConversationHistory}}
300
306
  {{#if messages.length}}
307
+ {{#if thread_id}}
308
+ <conversation_context thread_id="{{thread_id}}" agent_id="{{agent.id}}" now="{{now}}">
309
+ To review your previous work in this conversation:
310
+ crewx dreaming --thread={{thread_id}} --agent={{agent.id}} --continue
311
+ </conversation_context>
312
+
313
+ {{/if}}
301
314
  <conversation_history platform="{{platform}}">
302
- {{#formatConversation messages platform}}
315
+ {{#formatConversation messages platform agent.id thread_id}}
303
316
  {{#if primaryAgentId}}
304
317
  Primary agent: @{{primaryAgentId}}
305
318
  {{/if}}
@@ -313,15 +326,17 @@ layouts:
313
326
  {{/if}}
314
327
  {{#each messages}}
315
328
  {{#if isAssistant}}
316
- **{{#if metadata.slack}}{{#with metadata.slack}}{{#if bot_username}}{{bot_username}}{{else}}Assistant{{/if}}{{#if bot_user_id}} (<@{{bot_user_id}}>){{/if}}{{/with}}{{else}}Assistant{{/if}}{{#if metadata.agent_id}} (@{{metadata.agent_id}}){{/if}}**
329
+ <message role="assistant"{{#if metadata.agent_id}} agent="{{metadata.agent_id}}"{{/if}}{{#if ../currentAgentId}}{{#if (eq metadata.agent_id ../currentAgentId)}}{{#if metadata.task_id}} task_id="{{metadata.task_id}}"{{/if}}{{/if}}{{/if}}{{#if created_at}} created_at="{{created_at}}"{{/if}}{{#if relative_time}} relative_time="{{relative_time}}"{{/if}}{{#if metadata.slack}}{{#with metadata.slack}}{{#if bot_username}} name="{{bot_username}}"{{/if}}{{#if bot_user_id}} slack_user="{{bot_user_id}}"{{/if}}{{/with}}{{/if}}>
317
330
  {{else}}
318
- **{{#if metadata.slack}}{{#with metadata.slack}}{{#if user_profile.display_name}}{{user_profile.display_name}}{{else if username}}{{username}}{{else if user_id}}User{{/if}}{{#if user_id}} (<@{{user_id}}>){{/if}}{{/with}}{{else}}User{{/if}}**
319
- {{/if}}: {{{escapeHandlebars text}}}
331
+ <message role="user"{{#if created_at}} created_at="{{created_at}}"{{/if}}{{#if relative_time}} relative_time="{{relative_time}}"{{/if}}{{#if metadata.slack}}{{#with metadata.slack}}{{#if user_profile.display_name}} name="{{user_profile.display_name}}"{{else if username}} name="{{username}}"{{/if}}{{#if user_id}} slack_user="{{user_id}}"{{/if}}{{/with}}{{/if}}>
332
+ {{/if}}
333
+ {{{escapeHandlebars text}}}
320
334
  {{#if files}}
321
335
  {{#each files}}
322
336
  📎 {{name}}{{#if size}} ({{formatFileSize size}}){{/if}}{{#if localPath}} - Local: {{localPath}}{{/if}}
323
337
  {{/each}}
324
338
  {{/if}}
339
+ </message>
325
340
  {{/each}}
326
341
  {{/formatConversation}}
327
342