@crewx/sdk 0.8.9-rc.2 β†’ 0.8.9-rc.21

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.
@@ -37,6 +37,15 @@ layouts:
37
37
  {{#if agent.workingDirectory}}<working_directory>{{{agent.workingDirectory}}}</working_directory>{{/if}}
38
38
  </identity>
39
39
 
40
+ {{#if vars.crewx_caller_workspace_path}}
41
+ <dispatched_from>
42
+ <path>{{{vars.crewx_caller_workspace_path}}}</path>
43
+ {{#if vars.crewx_caller_workspace_id}}<id>{{{vars.crewx_caller_workspace_id}}}</id>{{/if}}
44
+ {{#if vars.crewx_caller_workspace_name}}<name>{{{vars.crewx_caller_workspace_name}}}</name>{{/if}}
45
+ <note>This is the caller's workspace (dispatch origin), NOT your home directory. Your working_directory is where you should run commands. Read dispatcher documents using absolute paths from the path above.</note>
46
+ </dispatched_from>
47
+ {{/if}}
48
+
40
49
  {{#if agentMetadata.specialties.length}}
41
50
  <specialties>
42
51
  {{#each agentMetadata.specialties}}
@@ -304,7 +313,10 @@ layouts:
304
313
 
305
314
  {{#if props.showConversationHistory}}
306
315
  {{#if messages.length}}
307
- {{#if thread_id}}
316
+ {{#if has_activity_log}}
317
+ **Activity log instructions**: If `<activity_log>` contains entries with `reused="ok"`, treat those results as current β€” do **not** re-run the same tool. Only re-run entries marked `reused="stale"` (file changed) or when you need fresher data than what is shown.
318
+
319
+ {{else}}{{#if thread_id}}
308
320
  <crewx_system_message type="hint" thread_id="{{thread_id}}" agent_id="{{agent.id}}" now="{{now}}">
309
321
  This thread may include your prior assistant task activity.
310
322
  If the user is continuing previous work, run:
@@ -312,7 +324,7 @@ layouts:
312
324
  Do not run dreaming for completely new, unrelated questions.
313
325
  </crewx_system_message>
314
326
 
315
- {{/if}}
327
+ {{/if}}{{/if}}
316
328
  <conversation_history platform="{{platform}}">
317
329
  {{#formatConversation messages platform agent.id thread_id}}
318
330
  {{#if primaryAgentId}}
@@ -328,9 +340,9 @@ layouts:
328
340
  {{/if}}
329
341
  {{#each messages}}
330
342
  {{#if isAssistant}}
331
- <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}}>
343
+ <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 metadata.slack}}{{#with metadata.slack}}{{#if bot_username}} name="{{bot_username}}"{{/if}}{{#if bot_user_id}} slack_user="{{bot_user_id}}"{{/if}}{{/with}}{{/if}}>
332
344
  {{else}}
333
- <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}}>
345
+ <message role="user"{{#if metadata.caller_agent_id}} from="@{{metadata.caller_agent_id}}"{{/if}}{{#if created_at}} created_at="{{created_at}}"{{/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}}>
334
346
  {{/if}}
335
347
  {{{escapeHandlebars text}}}
336
348
  {{#if files}}
@@ -338,6 +350,7 @@ layouts:
338
350
  πŸ“Ž {{name}}{{#if size}} ({{formatFileSize size}}){{/if}}{{#if localPath}} - Local: {{localPath}}{{/if}}
339
351
  {{/each}}
340
352
  {{/if}}
353
+ {{#if activity_log}}{{{activity_log}}}{{/if}}
341
354
  </message>
342
355
  {{/each}}
343
356
  {{/formatConversation}}
@@ -376,17 +389,12 @@ documents:
376
389
  path: "../documents/crewx-manual.md"
377
390
  summary: "CrewX User Manual"
378
391
 
379
- # 빌트인 μ—μ΄μ „νŠΈ(@claude, @gemini λ“±)용 κ°€λ²Όμš΄ μ•ˆλ‚΄μ„œ. μžμ„Έν•œ 건 @crewxμ—κ²Œ.
380
- crewx_quick_guide:
381
- path: "../documents/crewx-quick-guide.md"
382
- render: true
383
-
384
392
  agents:
385
393
  - id: "crewx"
386
394
  name: "CrewX Assistant"
387
395
  role: "assistant"
388
396
  team: "CrewX"
389
- provider: ["cli/claude", "cli/gemini", "cli/copilot"] # Fallback order: claude β†’ gemini β†’ copilot
397
+ provider: ["cli/claude", "cli/copilot"] # Fallback order: claude β†’ copilot
390
398
  working_directory: "."
391
399
  # Note: Uses provider array for automatic fallback when no model is specified
392
400
  inline:
@@ -417,123 +425,4 @@ agents:
417
425
  options:
418
426
  execute:
419
427
  cli/claude: ["--add-dir=.", "--permission-mode=acceptEdits"]
420
- cli/gemini: ["--include-directories=."]
421
428
  cli/copilot: ["--add-dir=."]
422
-
423
- - id: "claude"
424
- name: "Claude AI"
425
- role: "general"
426
- team: "Anthropic"
427
- provider: "cli/claude"
428
- working_directory: "."
429
- inline:
430
- prompt: |
431
- You are Claude, an AI assistant by Anthropic, integrated as a built-in agent in the CrewX system.
432
-
433
- ## Your Strengths
434
- - Complex reasoning and analysis
435
- - Code review and architecture design
436
- - Detailed explanations
437
- - Web search capabilities
438
-
439
- {{#if documents.crewx_quick_guide}}
440
- <document title="Built-in Agent Guidelines" drilldown="true">
441
- **Table of Contents:**
442
- {{{documents.crewx_quick_guide.toc}}}
443
-
444
- > Need details? Read the file at: `{{documents.crewx_quick_guide.path}}`
445
- </document>
446
- {{/if}}
447
- options:
448
- query: ["--add-dir=.", "--allowed-tools=WebSearch", "--output-format", "stream-json", "--verbose"]
449
- execute: ["--add-dir=.", "--allowed-tools=WebSearch", "--output-format", "stream-json", "--permission-mode=acceptEdits", "--verbose"]
450
-
451
- - id: "gemini"
452
- name: "Google Gemini"
453
- role: "general"
454
- team: "Google"
455
- provider: "cli/gemini"
456
- working_directory: "."
457
- inline:
458
- prompt: |
459
- You are Gemini, Google's AI model, integrated as a built-in agent in the CrewX system.
460
-
461
- ## Your Strengths
462
- - Performance optimization
463
- - Data analysis and mathematical problems
464
- - Research and information gathering
465
- - Web search capabilities
466
-
467
- {{#if documents.crewx_quick_guide}}
468
- <document title="Built-in Agent Guidelines" drilldown="true">
469
- **Table of Contents:**
470
- {{{documents.crewx_quick_guide.toc}}}
471
-
472
- > Need details? Read the file at: `{{documents.crewx_quick_guide.path}}`
473
- </document>
474
- {{/if}}
475
- options:
476
- query: ["--include-directories=.", "--allowed-tools=web_search"]
477
- execute: ["--include-directories=.", "--allowed-tools=web_search"]
478
-
479
- - id: "copilot"
480
- name: "GitHub Copilot"
481
- role: "general"
482
- team: "GitHub"
483
- provider: "cli/copilot"
484
- working_directory: "."
485
- inline:
486
- prompt: |
487
- You are GitHub Copilot, an AI coding assistant by GitHub, integrated as a built-in agent in the CrewX system.
488
-
489
- ## Your Strengths
490
- - Code implementation and generation
491
- - Best practices and coding standards
492
- - Testing and debugging
493
- - Quick code suggestions
494
-
495
- **IMPORTANT COPILOT-SPECIFIC RULES:**
496
- - Do NOT use bullet points (●) or other formatting before the tags
497
-
498
- ## Note
499
- You do not have web search capabilities. For web research, users should use @claude or @gemini.
500
-
501
- {{#if documents.crewx_quick_guide}}
502
- <document title="Built-in Agent Guidelines" drilldown="true">
503
- **Table of Contents:**
504
- {{{documents.crewx_quick_guide.toc}}}
505
-
506
- > Need details? Read the file at: `{{documents.crewx_quick_guide.path}}`
507
- </document>
508
- {{/if}}
509
- options:
510
- query: ["--add-dir=."]
511
- execute: ["--add-dir=."]
512
-
513
- - id: "codex"
514
- name: "Codex AI"
515
- role: "general"
516
- team: "Codex"
517
- provider: "cli/codex"
518
- working_directory: "."
519
- inline:
520
- prompt: |
521
- You are Codex, an AI assistant integrated as a built-in agent in the CrewX system.
522
-
523
- ## Your Strengths
524
- - Code generation and analysis
525
- - Development assistance
526
- - Problem solving
527
- - Technical documentation
528
-
529
- {{#if documents.crewx_quick_guide}}
530
- <document title="Built-in Agent Guidelines" drilldown="true">
531
- **Table of Contents:**
532
- {{{documents.crewx_quick_guide.toc}}}
533
-
534
- > Need details? Read the file at: `{{documents.crewx_quick_guide.path}}`
535
- </document>
536
- {{/if}}
537
- options:
538
- query: ["exec", "--experimental-json"]
539
- execute: ["exec", "-s", "workspace-write", "--experimental-json"]