claude-flow 3.38.21 → 3.38.23

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.
@@ -288,7 +288,7 @@ class SQLiteBackend {
288
288
  }
289
289
 
290
290
  /**
291
- * Store embedding blob for an entry (768-dim Float32Array → Buffer).
291
+ * Store embedding blob for an entry (Float32Array → Buffer; 384-dim ONNX today, 768-dim legacy hash blobs still readable).
292
292
  */
293
293
  storeEmbedding(id, embedding) {
294
294
  const buf = Buffer.from(embedding.buffer, embedding.byteOffset, embedding.byteLength);
@@ -587,9 +587,20 @@ const handlers = {
587
587
 
588
588
  // Hooks must ALWAYS exit 0 — Claude Code treats non-zero as "hook error"
589
589
  // and skips all subsequent hooks for the event.
590
- process.exitCode = 0;
591
- main().catch((e) => {
592
- try { console.log(`[WARN] Hook handler error: ${e.message}`); } catch (_) {}
593
- }).finally(() => {
594
- process.exit(0);
595
- });
590
+ //
591
+ // Only dispatch when run directly (node hook-handler.cjs <cmd>). When
592
+ // require()'d by a test, expose the internals instead of reading stdin and
593
+ // calling process.exit — the 2026-06-15 fix (cb1e93e8d) added this guard and
594
+ // the exports for tests/hook-handler-runwithtimeout.test.cjs; the 2026-07-04
595
+ // helper sync (a5f86ad0a) dropped both, so the test died with
596
+ // "runWithTimeout is not a function" once the Test Suite job ran again.
597
+ if (require.main === module) {
598
+ process.exitCode = 0;
599
+ main().catch((e) => {
600
+ try { console.log(`[WARN] Hook handler error: ${e.message}`); } catch (_) {}
601
+ }).finally(() => {
602
+ process.exit(0);
603
+ });
604
+ }
605
+
606
+ module.exports = { runWithTimeout, INTELLIGENCE_TIMEOUT_MS };
File without changes
package/package.json CHANGED
@@ -1,8 +1,9 @@
1
1
  {
2
2
  "name": "claude-flow",
3
- "version": "3.38.21",
3
+ "version": "3.38.23",
4
4
  "workspaces": [
5
5
  "v3/@claude-flow/codex",
6
+ "v3/@claude-flow/mcp",
6
7
  "v3/@claude-flow/plugin-agent-federation",
7
8
  "v3/@claude-flow/security"
8
9
  ],
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
3
  "generation": 6,
4
- "generatedAt": "2026-09-02T13:38:52.286Z",
5
- "gitSha": "b3db0180",
4
+ "generatedAt": "2026-09-07T17:34:20.768Z",
5
+ "gitSha": "6acc6891",
6
6
  "catalog": {
7
7
  "agents": 167,
8
8
  "tools": 397,
@@ -583,6 +583,10 @@ const searchCommand = {
583
583
  score: e.score,
584
584
  namespace: e.namespace,
585
585
  provenanceType: e.provenanceType,
586
+ // Dream Cycle 2026-09-03: thread the already-computed
587
+ // embedding through so SmartRetrieval's MMR step can use
588
+ // cosine similarity instead of a text-overlap proxy.
589
+ embedding: e.embedding,
586
590
  })),
587
591
  };
588
592
  };
@@ -40,7 +40,7 @@ declare const STDERR_REDIRECT_PREFIXES: string[];
40
40
  declare const AGENTDB_MOCK_FALLBACK_DROP_PREFIXES: string[];
41
41
  declare const shouldRedirectToStderr: (msg: unknown) => boolean;
42
42
  declare const isAgentdbMockFallbackNoise: (msg: unknown) => boolean;
43
- declare const origWarn: (...data: any[]) => void;
44
- declare const origLog: (...data: any[]) => void;
45
- declare const origError: (...data: any[]) => void;
43
+ declare const origWarn: (message?: any, ...optionalParams: any[]) => void;
44
+ declare const origLog: (message?: any, ...optionalParams: any[]) => void;
45
+ declare const origError: (message?: any, ...optionalParams: any[]) => void;
46
46
  //# sourceMappingURL=log-filters.d.ts.map
@@ -485,6 +485,10 @@ export const memoryTools = [
485
485
  score: e.score,
486
486
  namespace: e.namespace,
487
487
  provenanceType: e.provenanceType,
488
+ // Dream Cycle 2026-09-03: thread the already-computed
489
+ // embedding through so SmartRetrieval's MMR step can use
490
+ // cosine similarity instead of a text-overlap proxy.
491
+ embedding: e.embedding,
488
492
  })),
489
493
  };
490
494
  };
@@ -476,6 +476,11 @@ export declare function searchEntries(options: {
476
476
  score: number;
477
477
  namespace: string;
478
478
  provenanceType?: string;
479
+ /** Dream Cycle 2026-09-03: the query-time cosine score above already
480
+ * consumes this vector — surfaced so SmartRetrieval's MMR step can
481
+ * reuse it instead of falling back to a text-overlap proxy. Internal
482
+ * plumbing only; CLI/MCP response mappers do not forward this field. */
483
+ embedding?: number[];
479
484
  }[];
480
485
  searchTime: number;
481
486
  error?: string;
@@ -2693,10 +2693,11 @@ export async function searchEntries(options) {
2693
2693
  continue;
2694
2694
  }
2695
2695
  let score = 0;
2696
+ let parsedEmbedding;
2696
2697
  if (embeddingJson) {
2697
2698
  try {
2698
- const embedding = JSON.parse(embeddingJson);
2699
- score = cosineSim(queryEmbedding, embedding);
2699
+ parsedEmbedding = JSON.parse(embeddingJson);
2700
+ score = cosineSim(queryEmbedding, parsedEmbedding);
2700
2701
  }
2701
2702
  catch { /* skip */ }
2702
2703
  }
@@ -2708,6 +2709,7 @@ export async function searchEntries(options) {
2708
2709
  score,
2709
2710
  namespace: candidate.namespace,
2710
2711
  provenanceType: provenanceTypeVal || 'unknown',
2712
+ embedding: parsedEmbedding,
2711
2713
  });
2712
2714
  }
2713
2715
  }
@@ -2809,13 +2811,15 @@ export async function searchEntries(options) {
2809
2811
  for (const row of entries[0].values) {
2810
2812
  const [id, key, ns, content, embeddingJson, provenanceTypeVal] = row;
2811
2813
  let score = 0;
2814
+ let parsedEmbedding;
2812
2815
  if (embeddingJson) {
2813
2816
  try {
2814
- const embedding = JSON.parse(embeddingJson);
2815
- score = cosineSim(queryEmbedding, embedding);
2817
+ parsedEmbedding = JSON.parse(embeddingJson);
2818
+ score = cosineSim(queryEmbedding, parsedEmbedding);
2816
2819
  }
2817
2820
  catch {
2818
2821
  // Invalid embedding, use keyword score
2822
+ parsedEmbedding = undefined;
2819
2823
  }
2820
2824
  }
2821
2825
  // Fallback to keyword matching
@@ -2835,6 +2839,7 @@ export async function searchEntries(options) {
2835
2839
  score,
2836
2840
  namespace: ns || 'default',
2837
2841
  provenanceType: provenanceTypeVal || 'unknown',
2842
+ embedding: parsedEmbedding,
2838
2843
  });
2839
2844
  }
2840
2845
  }
@@ -376,17 +376,28 @@ export class EnhancedModelRouter {
376
376
  }
377
377
  // Step 6: Determine tier based on complexity
378
378
  const { haiku, sonnet } = this.config.complexityThresholds;
379
- // ADR-149 — forward the per-model fields from baseResult onto every
380
- // tier-2/3 return. This keeps the cost-optimal pick alive end-to-end:
381
- // if the neural backend picked Ling for a cheap task, the enhanced
382
- // router surfaces `modelId: 'inclusionai/ling-2.6-flash'` alongside
383
- // `model: 'haiku'` so downstream consumers can dispatch via OpenRouter.
384
- const neuralFields = {
385
- ...(baseResult.modelId ? { modelId: baseResult.modelId } : {}),
386
- ...(baseResult.routedBy ? { routedBy: baseResult.routedBy } : {}),
387
- ...(baseResult.provider ? { provider: baseResult.provider } : {}),
388
- ...(baseResult.openrouterModel ? { openrouterModel: baseResult.openrouterModel } : {}),
389
- };
379
+ // ADR-149 — forward the per-model fields from baseResult onto the
380
+ // tier-2/3 return, but ONLY when the tier being returned here still
381
+ // matches the tier baseResult.model was chosen for. `finalComplexity`
382
+ // (AST-adjusted / tier3-keyword-boosted, Step 5-6 above) can escalate
383
+ // the returned tier past what the base bandit router saw when it picked
384
+ // `modelId` — forwarding it unconditionally would attach a cheaper
385
+ // tier's concrete model (e.g. `inclusionai/ling-2.6-flash`, chosen for
386
+ // 'haiku') to an escalated 'opus' decision. `agent-execute-core.ts`
387
+ // treats a present `modelId` as an override that skips tier-based
388
+ // dispatch entirely, so a stale, wrong-tier `modelId` silently defeats
389
+ // the escalation this function just computed. Dropping the mismatched
390
+ // fields (rather than trying to re-resolve modelId for the new tier)
391
+ // keeps this fix small and fail-safe: an escalated decision falls back
392
+ // to the plain `model` field, never to a cheaper model's identity.
393
+ const neuralFieldsFor = (model) => baseResult.model === model
394
+ ? {
395
+ ...(baseResult.modelId ? { modelId: baseResult.modelId } : {}),
396
+ ...(baseResult.routedBy ? { routedBy: baseResult.routedBy } : {}),
397
+ ...(baseResult.provider ? { provider: baseResult.provider } : {}),
398
+ ...(baseResult.openrouterModel ? { openrouterModel: baseResult.openrouterModel } : {}),
399
+ }
400
+ : {};
390
401
  if (finalComplexity < haiku) {
391
402
  return {
392
403
  tier: 2,
@@ -398,7 +409,7 @@ export class EnhancedModelRouter {
398
409
  canSkipLLM: false,
399
410
  estimatedLatencyMs: 500,
400
411
  estimatedCost: 0.0002,
401
- ...neuralFields,
412
+ ...neuralFieldsFor('haiku'),
402
413
  };
403
414
  }
404
415
  if (finalComplexity < sonnet) {
@@ -412,7 +423,7 @@ export class EnhancedModelRouter {
412
423
  canSkipLLM: false,
413
424
  estimatedLatencyMs: 2000,
414
425
  estimatedCost: 0.003,
415
- ...neuralFields,
426
+ ...neuralFieldsFor('sonnet'),
416
427
  };
417
428
  }
418
429
  return {
@@ -425,7 +436,7 @@ export class EnhancedModelRouter {
425
436
  canSkipLLM: false,
426
437
  estimatedLatencyMs: 5000,
427
438
  estimatedCost: 0.015,
428
- ...neuralFields,
439
+ ...neuralFieldsFor('opus'),
429
440
  };
430
441
  }
431
442
  /**
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@claude-flow/cli",
3
- "version": "3.38.21",
3
+ "version": "3.38.23",
4
4
  "type": "module",
5
5
  "description": "Ruflo CLI - Enterprise AI agent orchestration with 60+ specialized agents, swarm coordination, MCP server, self-learning hooks, and vector memory for Claude Code",
6
6
  "main": "dist/src/index.js",
@@ -39,41 +39,41 @@ export declare const AgentConfigSchema: z.ZodObject<{
39
39
  }>>;
40
40
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
41
41
  }, "strip", z.ZodTypeAny, {
42
- id: string;
42
+ capabilities: string[];
43
+ priority: number;
43
44
  name: string;
44
45
  type: string;
45
- capabilities: string[];
46
+ id: string;
46
47
  maxConcurrentTasks: number;
47
- priority: number;
48
+ metadata?: Record<string, unknown> | undefined;
49
+ resources?: {
50
+ maxMemoryMb?: number | undefined;
51
+ maxCpuPercent?: number | undefined;
52
+ } | undefined;
48
53
  timeout?: number | undefined;
49
54
  retryPolicy?: {
50
55
  maxRetries: number;
51
56
  backoffMs: number;
52
57
  backoffMultiplier: number;
53
58
  } | undefined;
54
- resources?: {
55
- maxMemoryMb?: number | undefined;
56
- maxCpuPercent?: number | undefined;
57
- } | undefined;
58
- metadata?: Record<string, unknown> | undefined;
59
59
  }, {
60
- id: string;
61
60
  name: string;
62
61
  type: string;
62
+ id: string;
63
63
  capabilities?: string[] | undefined;
64
- maxConcurrentTasks?: number | undefined;
65
64
  priority?: number | undefined;
65
+ metadata?: Record<string, unknown> | undefined;
66
+ resources?: {
67
+ maxMemoryMb?: number | undefined;
68
+ maxCpuPercent?: number | undefined;
69
+ } | undefined;
66
70
  timeout?: number | undefined;
71
+ maxConcurrentTasks?: number | undefined;
67
72
  retryPolicy?: {
68
73
  maxRetries?: number | undefined;
69
74
  backoffMs?: number | undefined;
70
75
  backoffMultiplier?: number | undefined;
71
76
  } | undefined;
72
- resources?: {
73
- maxMemoryMb?: number | undefined;
74
- maxCpuPercent?: number | undefined;
75
- } | undefined;
76
- metadata?: Record<string, unknown> | undefined;
77
77
  }>;
78
78
  /**
79
79
  * Task configuration schema
@@ -94,53 +94,53 @@ export declare const TaskConfigSchema: z.ZodObject<{
94
94
  childTaskIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
95
95
  tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
96
96
  }, "strip", z.ZodTypeAny, {
97
- maxRetries?: number | undefined;
98
- requiredCapabilities?: string[] | undefined;
99
- retryCount?: number | undefined;
100
97
  critical?: boolean | undefined;
98
+ retryCount?: number | undefined;
99
+ requiredCapabilities?: string[] | undefined;
100
+ maxRetries?: number | undefined;
101
101
  parentTaskId?: string | undefined;
102
102
  childTaskIds?: string[] | undefined;
103
103
  tags?: string[] | undefined;
104
104
  }, {
105
- maxRetries?: number | undefined;
106
- requiredCapabilities?: string[] | undefined;
107
- retryCount?: number | undefined;
108
105
  critical?: boolean | undefined;
106
+ retryCount?: number | undefined;
107
+ requiredCapabilities?: string[] | undefined;
108
+ maxRetries?: number | undefined;
109
109
  parentTaskId?: string | undefined;
110
110
  childTaskIds?: string[] | undefined;
111
111
  tags?: string[] | undefined;
112
112
  }>>;
113
113
  }, "strip", z.ZodTypeAny, {
114
- type: string;
115
- priority: number;
116
114
  description: string;
117
- timeout?: number | undefined;
115
+ priority: number;
116
+ type: string;
118
117
  metadata?: {
119
- maxRetries?: number | undefined;
120
- requiredCapabilities?: string[] | undefined;
121
- retryCount?: number | undefined;
122
118
  critical?: boolean | undefined;
119
+ retryCount?: number | undefined;
120
+ requiredCapabilities?: string[] | undefined;
121
+ maxRetries?: number | undefined;
123
122
  parentTaskId?: string | undefined;
124
123
  childTaskIds?: string[] | undefined;
125
124
  tags?: string[] | undefined;
126
125
  } | undefined;
127
126
  assignedAgent?: string | undefined;
127
+ timeout?: number | undefined;
128
128
  input?: Record<string, unknown> | undefined;
129
129
  }, {
130
- type: string;
131
130
  description: string;
131
+ type: string;
132
132
  priority?: number | undefined;
133
- timeout?: number | undefined;
134
133
  metadata?: {
135
- maxRetries?: number | undefined;
136
- requiredCapabilities?: string[] | undefined;
137
- retryCount?: number | undefined;
138
134
  critical?: boolean | undefined;
135
+ retryCount?: number | undefined;
136
+ requiredCapabilities?: string[] | undefined;
137
+ maxRetries?: number | undefined;
139
138
  parentTaskId?: string | undefined;
140
139
  childTaskIds?: string[] | undefined;
141
140
  tags?: string[] | undefined;
142
141
  } | undefined;
143
142
  assignedAgent?: string | undefined;
143
+ timeout?: number | undefined;
144
144
  input?: Record<string, unknown> | undefined;
145
145
  }>;
146
146
  /**
@@ -211,7 +211,7 @@ export declare const SwarmConfigSchema: z.ZodObject<{
211
211
  }>>;
212
212
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
213
213
  }, "strip", z.ZodTypeAny, {
214
- topology: "hierarchical" | "mesh" | "ring" | "star" | "adaptive" | "pheromone-adaptive" | "hierarchical-mesh";
214
+ topology: "hierarchical-mesh" | "mesh" | "hierarchical" | "ring" | "star" | "adaptive" | "pheromone-adaptive";
215
215
  maxAgents: number;
216
216
  metadata?: Record<string, unknown> | undefined;
217
217
  autoScale?: {
@@ -235,9 +235,9 @@ export declare const SwarmConfigSchema: z.ZodObject<{
235
235
  flushIntervalMs: number;
236
236
  } | undefined;
237
237
  }, {
238
- topology: "hierarchical" | "mesh" | "ring" | "star" | "adaptive" | "pheromone-adaptive" | "hierarchical-mesh";
239
- metadata?: Record<string, unknown> | undefined;
238
+ topology: "hierarchical-mesh" | "mesh" | "hierarchical" | "ring" | "star" | "adaptive" | "pheromone-adaptive";
240
239
  maxAgents?: number | undefined;
240
+ metadata?: Record<string, unknown> | undefined;
241
241
  autoScale?: {
242
242
  maxAgents?: number | undefined;
243
243
  enabled?: boolean | undefined;
@@ -326,7 +326,7 @@ export declare const MemoryConfigSchema: z.ZodObject<{
326
326
  vectorThreshold?: number | undefined;
327
327
  }>>;
328
328
  }, "strip", z.ZodTypeAny, {
329
- type: "sqlite" | "agentdb" | "hybrid" | "redis" | "memory";
329
+ type: "memory" | "sqlite" | "agentdb" | "hybrid" | "redis";
330
330
  path?: string | undefined;
331
331
  sqlite?: {
332
332
  inMemory: boolean;
@@ -353,7 +353,7 @@ export declare const MemoryConfigSchema: z.ZodObject<{
353
353
  maxSize?: number | undefined;
354
354
  ttlMs?: number | undefined;
355
355
  }, {
356
- type?: "sqlite" | "agentdb" | "hybrid" | "redis" | "memory" | undefined;
356
+ type?: "memory" | "sqlite" | "agentdb" | "hybrid" | "redis" | undefined;
357
357
  path?: string | undefined;
358
358
  sqlite?: {
359
359
  filename?: string | undefined;
@@ -444,7 +444,6 @@ export declare const MCPServerConfigSchema: z.ZodObject<{
444
444
  host?: string | undefined;
445
445
  port?: number | undefined;
446
446
  };
447
- name?: string | undefined;
448
447
  capabilities?: {
449
448
  resources?: boolean | undefined;
450
449
  tools?: boolean | undefined;
@@ -452,6 +451,7 @@ export declare const MCPServerConfigSchema: z.ZodObject<{
452
451
  logging?: boolean | undefined;
453
452
  experimental?: Record<string, boolean> | undefined;
454
453
  } | undefined;
454
+ name?: string | undefined;
455
455
  version?: string | undefined;
456
456
  }>;
457
457
  /**
@@ -504,17 +504,17 @@ export declare const OrchestratorConfigSchema: z.ZodObject<{
504
504
  maxSpawnRetries?: number | undefined;
505
505
  }>;
506
506
  }, "strip", z.ZodTypeAny, {
507
- session: {
508
- persistSessions: boolean;
509
- dataDir: string;
510
- sessionRetentionMs: number;
511
- };
512
507
  health: {
513
508
  checkInterval: number;
514
509
  historyLimit: number;
515
510
  degradedThreshold: number;
516
511
  unhealthyThreshold: number;
517
512
  };
513
+ session: {
514
+ persistSessions: boolean;
515
+ dataDir: string;
516
+ sessionRetentionMs: number;
517
+ };
518
518
  lifecycle: {
519
519
  maxConcurrentAgents: number;
520
520
  spawnTimeout: number;
@@ -522,17 +522,17 @@ export declare const OrchestratorConfigSchema: z.ZodObject<{
522
522
  maxSpawnRetries: number;
523
523
  };
524
524
  }, {
525
- session: {
526
- persistSessions?: boolean | undefined;
527
- dataDir?: string | undefined;
528
- sessionRetentionMs?: number | undefined;
529
- };
530
525
  health: {
531
526
  checkInterval?: number | undefined;
532
527
  historyLimit?: number | undefined;
533
528
  degradedThreshold?: number | undefined;
534
529
  unhealthyThreshold?: number | undefined;
535
530
  };
531
+ session: {
532
+ persistSessions?: boolean | undefined;
533
+ dataDir?: string | undefined;
534
+ sessionRetentionMs?: number | undefined;
535
+ };
536
536
  lifecycle: {
537
537
  maxConcurrentAgents?: number | undefined;
538
538
  spawnTimeout?: number | undefined;
@@ -593,17 +593,17 @@ export declare const SystemConfigSchema: z.ZodObject<{
593
593
  maxSpawnRetries?: number | undefined;
594
594
  }>;
595
595
  }, "strip", z.ZodTypeAny, {
596
- session: {
597
- persistSessions: boolean;
598
- dataDir: string;
599
- sessionRetentionMs: number;
600
- };
601
596
  health: {
602
597
  checkInterval: number;
603
598
  historyLimit: number;
604
599
  degradedThreshold: number;
605
600
  unhealthyThreshold: number;
606
601
  };
602
+ session: {
603
+ persistSessions: boolean;
604
+ dataDir: string;
605
+ sessionRetentionMs: number;
606
+ };
607
607
  lifecycle: {
608
608
  maxConcurrentAgents: number;
609
609
  spawnTimeout: number;
@@ -611,17 +611,17 @@ export declare const SystemConfigSchema: z.ZodObject<{
611
611
  maxSpawnRetries: number;
612
612
  };
613
613
  }, {
614
- session: {
615
- persistSessions?: boolean | undefined;
616
- dataDir?: string | undefined;
617
- sessionRetentionMs?: number | undefined;
618
- };
619
614
  health: {
620
615
  checkInterval?: number | undefined;
621
616
  historyLimit?: number | undefined;
622
617
  degradedThreshold?: number | undefined;
623
618
  unhealthyThreshold?: number | undefined;
624
619
  };
620
+ session: {
621
+ persistSessions?: boolean | undefined;
622
+ dataDir?: string | undefined;
623
+ sessionRetentionMs?: number | undefined;
624
+ };
625
625
  lifecycle: {
626
626
  maxConcurrentAgents?: number | undefined;
627
627
  spawnTimeout?: number | undefined;
@@ -693,7 +693,7 @@ export declare const SystemConfigSchema: z.ZodObject<{
693
693
  vectorThreshold?: number | undefined;
694
694
  }>>;
695
695
  }, "strip", z.ZodTypeAny, {
696
- type: "sqlite" | "agentdb" | "hybrid" | "redis" | "memory";
696
+ type: "memory" | "sqlite" | "agentdb" | "hybrid" | "redis";
697
697
  path?: string | undefined;
698
698
  sqlite?: {
699
699
  inMemory: boolean;
@@ -720,7 +720,7 @@ export declare const SystemConfigSchema: z.ZodObject<{
720
720
  maxSize?: number | undefined;
721
721
  ttlMs?: number | undefined;
722
722
  }, {
723
- type?: "sqlite" | "agentdb" | "hybrid" | "redis" | "memory" | undefined;
723
+ type?: "memory" | "sqlite" | "agentdb" | "hybrid" | "redis" | undefined;
724
724
  path?: string | undefined;
725
725
  sqlite?: {
726
726
  filename?: string | undefined;
@@ -808,7 +808,6 @@ export declare const SystemConfigSchema: z.ZodObject<{
808
808
  host?: string | undefined;
809
809
  port?: number | undefined;
810
810
  };
811
- name?: string | undefined;
812
811
  capabilities?: {
813
812
  resources?: boolean | undefined;
814
813
  tools?: boolean | undefined;
@@ -816,6 +815,7 @@ export declare const SystemConfigSchema: z.ZodObject<{
816
815
  logging?: boolean | undefined;
817
816
  experimental?: Record<string, boolean> | undefined;
818
817
  } | undefined;
818
+ name?: string | undefined;
819
819
  version?: string | undefined;
820
820
  }>>;
821
821
  swarm: z.ZodOptional<z.ZodObject<{
@@ -883,7 +883,7 @@ export declare const SystemConfigSchema: z.ZodObject<{
883
883
  }>>;
884
884
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
885
885
  }, "strip", z.ZodTypeAny, {
886
- topology: "hierarchical" | "mesh" | "ring" | "star" | "adaptive" | "pheromone-adaptive" | "hierarchical-mesh";
886
+ topology: "hierarchical-mesh" | "mesh" | "hierarchical" | "ring" | "star" | "adaptive" | "pheromone-adaptive";
887
887
  maxAgents: number;
888
888
  metadata?: Record<string, unknown> | undefined;
889
889
  autoScale?: {
@@ -907,9 +907,9 @@ export declare const SystemConfigSchema: z.ZodObject<{
907
907
  flushIntervalMs: number;
908
908
  } | undefined;
909
909
  }, {
910
- topology: "hierarchical" | "mesh" | "ring" | "star" | "adaptive" | "pheromone-adaptive" | "hierarchical-mesh";
911
- metadata?: Record<string, unknown> | undefined;
910
+ topology: "hierarchical-mesh" | "mesh" | "hierarchical" | "ring" | "star" | "adaptive" | "pheromone-adaptive";
912
911
  maxAgents?: number | undefined;
912
+ metadata?: Record<string, unknown> | undefined;
913
913
  autoScale?: {
914
914
  maxAgents?: number | undefined;
915
915
  enabled?: boolean | undefined;
@@ -979,17 +979,17 @@ export declare const SystemConfigSchema: z.ZodObject<{
979
979
  maxSpawnRetries?: number | undefined;
980
980
  }>;
981
981
  }, "strip", z.ZodTypeAny, {
982
- session: {
983
- persistSessions: boolean;
984
- dataDir: string;
985
- sessionRetentionMs: number;
986
- };
987
982
  health: {
988
983
  checkInterval: number;
989
984
  historyLimit: number;
990
985
  degradedThreshold: number;
991
986
  unhealthyThreshold: number;
992
987
  };
988
+ session: {
989
+ persistSessions: boolean;
990
+ dataDir: string;
991
+ sessionRetentionMs: number;
992
+ };
993
993
  lifecycle: {
994
994
  maxConcurrentAgents: number;
995
995
  spawnTimeout: number;
@@ -997,17 +997,17 @@ export declare const SystemConfigSchema: z.ZodObject<{
997
997
  maxSpawnRetries: number;
998
998
  };
999
999
  }, {
1000
- session: {
1001
- persistSessions?: boolean | undefined;
1002
- dataDir?: string | undefined;
1003
- sessionRetentionMs?: number | undefined;
1004
- };
1005
1000
  health: {
1006
1001
  checkInterval?: number | undefined;
1007
1002
  historyLimit?: number | undefined;
1008
1003
  degradedThreshold?: number | undefined;
1009
1004
  unhealthyThreshold?: number | undefined;
1010
1005
  };
1006
+ session: {
1007
+ persistSessions?: boolean | undefined;
1008
+ dataDir?: string | undefined;
1009
+ sessionRetentionMs?: number | undefined;
1010
+ };
1011
1011
  lifecycle: {
1012
1012
  maxConcurrentAgents?: number | undefined;
1013
1013
  spawnTimeout?: number | undefined;
@@ -1079,7 +1079,7 @@ export declare const SystemConfigSchema: z.ZodObject<{
1079
1079
  vectorThreshold?: number | undefined;
1080
1080
  }>>;
1081
1081
  }, "strip", z.ZodTypeAny, {
1082
- type: "sqlite" | "agentdb" | "hybrid" | "redis" | "memory";
1082
+ type: "memory" | "sqlite" | "agentdb" | "hybrid" | "redis";
1083
1083
  path?: string | undefined;
1084
1084
  sqlite?: {
1085
1085
  inMemory: boolean;
@@ -1106,7 +1106,7 @@ export declare const SystemConfigSchema: z.ZodObject<{
1106
1106
  maxSize?: number | undefined;
1107
1107
  ttlMs?: number | undefined;
1108
1108
  }, {
1109
- type?: "sqlite" | "agentdb" | "hybrid" | "redis" | "memory" | undefined;
1109
+ type?: "memory" | "sqlite" | "agentdb" | "hybrid" | "redis" | undefined;
1110
1110
  path?: string | undefined;
1111
1111
  sqlite?: {
1112
1112
  filename?: string | undefined;
@@ -1194,7 +1194,6 @@ export declare const SystemConfigSchema: z.ZodObject<{
1194
1194
  host?: string | undefined;
1195
1195
  port?: number | undefined;
1196
1196
  };
1197
- name?: string | undefined;
1198
1197
  capabilities?: {
1199
1198
  resources?: boolean | undefined;
1200
1199
  tools?: boolean | undefined;
@@ -1202,6 +1201,7 @@ export declare const SystemConfigSchema: z.ZodObject<{
1202
1201
  logging?: boolean | undefined;
1203
1202
  experimental?: Record<string, boolean> | undefined;
1204
1203
  } | undefined;
1204
+ name?: string | undefined;
1205
1205
  version?: string | undefined;
1206
1206
  }>>;
1207
1207
  swarm: z.ZodOptional<z.ZodObject<{
@@ -1269,7 +1269,7 @@ export declare const SystemConfigSchema: z.ZodObject<{
1269
1269
  }>>;
1270
1270
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1271
1271
  }, "strip", z.ZodTypeAny, {
1272
- topology: "hierarchical" | "mesh" | "ring" | "star" | "adaptive" | "pheromone-adaptive" | "hierarchical-mesh";
1272
+ topology: "hierarchical-mesh" | "mesh" | "hierarchical" | "ring" | "star" | "adaptive" | "pheromone-adaptive";
1273
1273
  maxAgents: number;
1274
1274
  metadata?: Record<string, unknown> | undefined;
1275
1275
  autoScale?: {
@@ -1293,9 +1293,9 @@ export declare const SystemConfigSchema: z.ZodObject<{
1293
1293
  flushIntervalMs: number;
1294
1294
  } | undefined;
1295
1295
  }, {
1296
- topology: "hierarchical" | "mesh" | "ring" | "star" | "adaptive" | "pheromone-adaptive" | "hierarchical-mesh";
1297
- metadata?: Record<string, unknown> | undefined;
1296
+ topology: "hierarchical-mesh" | "mesh" | "hierarchical" | "ring" | "star" | "adaptive" | "pheromone-adaptive";
1298
1297
  maxAgents?: number | undefined;
1298
+ metadata?: Record<string, unknown> | undefined;
1299
1299
  autoScale?: {
1300
1300
  maxAgents?: number | undefined;
1301
1301
  enabled?: boolean | undefined;
@@ -1365,17 +1365,17 @@ export declare const SystemConfigSchema: z.ZodObject<{
1365
1365
  maxSpawnRetries?: number | undefined;
1366
1366
  }>;
1367
1367
  }, "strip", z.ZodTypeAny, {
1368
- session: {
1369
- persistSessions: boolean;
1370
- dataDir: string;
1371
- sessionRetentionMs: number;
1372
- };
1373
1368
  health: {
1374
1369
  checkInterval: number;
1375
1370
  historyLimit: number;
1376
1371
  degradedThreshold: number;
1377
1372
  unhealthyThreshold: number;
1378
1373
  };
1374
+ session: {
1375
+ persistSessions: boolean;
1376
+ dataDir: string;
1377
+ sessionRetentionMs: number;
1378
+ };
1379
1379
  lifecycle: {
1380
1380
  maxConcurrentAgents: number;
1381
1381
  spawnTimeout: number;
@@ -1383,17 +1383,17 @@ export declare const SystemConfigSchema: z.ZodObject<{
1383
1383
  maxSpawnRetries: number;
1384
1384
  };
1385
1385
  }, {
1386
- session: {
1387
- persistSessions?: boolean | undefined;
1388
- dataDir?: string | undefined;
1389
- sessionRetentionMs?: number | undefined;
1390
- };
1391
1386
  health: {
1392
1387
  checkInterval?: number | undefined;
1393
1388
  historyLimit?: number | undefined;
1394
1389
  degradedThreshold?: number | undefined;
1395
1390
  unhealthyThreshold?: number | undefined;
1396
1391
  };
1392
+ session: {
1393
+ persistSessions?: boolean | undefined;
1394
+ dataDir?: string | undefined;
1395
+ sessionRetentionMs?: number | undefined;
1396
+ };
1397
1397
  lifecycle: {
1398
1398
  maxConcurrentAgents?: number | undefined;
1399
1399
  spawnTimeout?: number | undefined;
@@ -1465,7 +1465,7 @@ export declare const SystemConfigSchema: z.ZodObject<{
1465
1465
  vectorThreshold?: number | undefined;
1466
1466
  }>>;
1467
1467
  }, "strip", z.ZodTypeAny, {
1468
- type: "sqlite" | "agentdb" | "hybrid" | "redis" | "memory";
1468
+ type: "memory" | "sqlite" | "agentdb" | "hybrid" | "redis";
1469
1469
  path?: string | undefined;
1470
1470
  sqlite?: {
1471
1471
  inMemory: boolean;
@@ -1492,7 +1492,7 @@ export declare const SystemConfigSchema: z.ZodObject<{
1492
1492
  maxSize?: number | undefined;
1493
1493
  ttlMs?: number | undefined;
1494
1494
  }, {
1495
- type?: "sqlite" | "agentdb" | "hybrid" | "redis" | "memory" | undefined;
1495
+ type?: "memory" | "sqlite" | "agentdb" | "hybrid" | "redis" | undefined;
1496
1496
  path?: string | undefined;
1497
1497
  sqlite?: {
1498
1498
  filename?: string | undefined;
@@ -1580,7 +1580,6 @@ export declare const SystemConfigSchema: z.ZodObject<{
1580
1580
  host?: string | undefined;
1581
1581
  port?: number | undefined;
1582
1582
  };
1583
- name?: string | undefined;
1584
1583
  capabilities?: {
1585
1584
  resources?: boolean | undefined;
1586
1585
  tools?: boolean | undefined;
@@ -1588,6 +1587,7 @@ export declare const SystemConfigSchema: z.ZodObject<{
1588
1587
  logging?: boolean | undefined;
1589
1588
  experimental?: Record<string, boolean> | undefined;
1590
1589
  } | undefined;
1590
+ name?: string | undefined;
1591
1591
  version?: string | undefined;
1592
1592
  }>>;
1593
1593
  swarm: z.ZodOptional<z.ZodObject<{
@@ -1655,7 +1655,7 @@ export declare const SystemConfigSchema: z.ZodObject<{
1655
1655
  }>>;
1656
1656
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1657
1657
  }, "strip", z.ZodTypeAny, {
1658
- topology: "hierarchical" | "mesh" | "ring" | "star" | "adaptive" | "pheromone-adaptive" | "hierarchical-mesh";
1658
+ topology: "hierarchical-mesh" | "mesh" | "hierarchical" | "ring" | "star" | "adaptive" | "pheromone-adaptive";
1659
1659
  maxAgents: number;
1660
1660
  metadata?: Record<string, unknown> | undefined;
1661
1661
  autoScale?: {
@@ -1679,9 +1679,9 @@ export declare const SystemConfigSchema: z.ZodObject<{
1679
1679
  flushIntervalMs: number;
1680
1680
  } | undefined;
1681
1681
  }, {
1682
- topology: "hierarchical" | "mesh" | "ring" | "star" | "adaptive" | "pheromone-adaptive" | "hierarchical-mesh";
1683
- metadata?: Record<string, unknown> | undefined;
1682
+ topology: "hierarchical-mesh" | "mesh" | "hierarchical" | "ring" | "star" | "adaptive" | "pheromone-adaptive";
1684
1683
  maxAgents?: number | undefined;
1684
+ metadata?: Record<string, unknown> | undefined;
1685
1685
  autoScale?: {
1686
1686
  maxAgents?: number | undefined;
1687
1687
  enabled?: boolean | undefined;
@@ -1 +0,0 @@
1
- sha256:6141a8ea990c5063b77e090ae8f37f9c539d8aa8f58dcceb30f3a82f97e57319
@@ -1 +0,0 @@
1
- 3.32.24
@@ -1,13 +0,0 @@
1
- {
2
- "manifest": {
3
- "version": "3.32.24",
4
- "files": {
5
- "auto-memory-hook.mjs": "68be7e9a9eba7bf9c4e8a230db7bf61a243b965639f8504842799d6c6ca28762",
6
- "hook-handler.cjs": "50ea92a72651bdc95634f7588d56a5870963168eef5226f66ed14af3b47c8d9a",
7
- "intelligence.cjs": "bd1f8e4b034944aee1df0391dc47ac2e8cc4b3aa542c65407a59d49620bbf76b",
8
- "statusline.cjs": "d2a0eac56d1267d8dbed2d70b09feb592299469196ec4b215909f2b052144882"
9
- }
10
- },
11
- "signature": "Vi6dza9CfZgo25+eTMJ81fUjsNtQQfUZUZS61MxpBTlilSBTo88cNCCy4ZNC7OfH2r2JOYS7HqqYotf0/AJ9DA==",
12
- "algorithm": "ed25519"
13
- }
@@ -1,42 +0,0 @@
1
- {
2
- "adoptedAt": 1783689629580,
3
- "championId": "sha256:6141a8ea990c5063b77e090ae8f37f9c539d8aa8f58dcceb30f3a82f97e57319",
4
- "manifest": {
5
- "schema": "ruflo.proven-config/v1",
6
- "policy": {
7
- "ref": "sha256:6141a8ea990c5063b77e090ae8f37f9c539d8aa8f58dcceb30f3a82f97e57319",
8
- "value": {
9
- "alpha": 0.3,
10
- "subjectWeight": 1,
11
- "mmrLambda": 0.5,
12
- "bodyWeight": 1.5,
13
- "typePenaltyFactor": 0.5
14
- }
15
- },
16
- "layer": "framework/node-cli",
17
- "compatibility": {
18
- "ruflo": ">=3.24.0"
19
- },
20
- "benchmark": {
21
- "corpus": "ADR-081-labelled-v1",
22
- "corpusHash": "sha256:2f700b5c363e20a3bd88ce2bc9b87bbbbaa61732c6177894c6ec37890f888982"
23
- },
24
- "receipt": {
25
- "heldOutDelta": 0.07381404928570845,
26
- "redblue": "PASS",
27
- "drift": 0,
28
- "canary": {
29
- "rollbackRate": 0,
30
- "latencyP95": 244.612458000076,
31
- "costPerTask": 0
32
- },
33
- "receiptCoverage": 1
34
- },
35
- "platform": [
36
- "linux",
37
- "macOS",
38
- "windows"
39
- ]
40
- },
41
- "previous": ""
42
- }