@swarmclawai/swarmclaw 0.9.1 → 0.9.2

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": "@swarmclawai/swarmclaw",
3
- "version": "0.9.1",
3
+ "version": "0.9.2",
4
4
  "description": "Self-hosted AI agent orchestration dashboard — manage LLM providers, orchestrate agent swarms, schedule tasks, and bridge agents to chat platforms.",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
@@ -82,11 +82,12 @@ describe('shouldPersistInboundUserMessage', () => {
82
82
  assert.equal(shouldPersistInboundUserMessage(false, 'connector'), true)
83
83
  })
84
84
 
85
- it('returns true for internal eval messages', () => {
85
+ it('returns true for internal eval and subagent messages', () => {
86
86
  assert.equal(shouldPersistInboundUserMessage(true, 'eval'), true)
87
+ assert.equal(shouldPersistInboundUserMessage(true, 'subagent'), true)
87
88
  })
88
89
 
89
- it('returns false for internal non-eval messages', () => {
90
+ it('returns false for other internal messages', () => {
90
91
  assert.equal(shouldPersistInboundUserMessage(true, 'heartbeat'), false)
91
92
  assert.equal(shouldPersistInboundUserMessage(true, 'chat'), false)
92
93
  assert.equal(shouldPersistInboundUserMessage(true, 'daemon'), false)
@@ -40,7 +40,7 @@ export function shouldAutoRouteHeartbeatAlerts(config?: {
40
40
 
41
41
  export function shouldPersistInboundUserMessage(internal: boolean, source: string): boolean {
42
42
  if (!internal) return true
43
- return source === 'eval'
43
+ return source === 'eval' || source === 'subagent'
44
44
  }
45
45
 
46
46
  function escapeRegExp(value: string): string {