@sweny-ai/core 0.1.162 → 0.1.164

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/dist/types.d.ts CHANGED
@@ -4,6 +4,7 @@ export { WORKFLOW_INPUT_TYPES } from "./inputs.js";
4
4
  import type { Source as _Source, ResolvedSource as _ResolvedSource } from "./sources.js";
5
5
  import type { ToolClass } from "./harness/types.js";
6
6
  import type { Budget, BudgetOverrun } from "./budget.js";
7
+ import type { DeciderConfig, DeciderRecord } from "./decider.js";
7
8
  export type JSONSchema = Record<string, unknown>;
8
9
  /** Context passed to tool handlers at execution time */
9
10
  export interface ToolContext {
@@ -551,6 +552,11 @@ export interface Workflow {
551
552
  * `budget` may only narrow it. The CLI's `--max-tokens` / `--max-cost` tighten it.
552
553
  */
553
554
  budget?: Budget;
555
+ /**
556
+ * Decision model for route choices (#357). `shadow` asks it alongside the
557
+ * agent and logs agreement; the route is always the agent's. Default: off.
558
+ */
559
+ decider?: DeciderConfig;
554
560
  /**
555
561
  * What prior results a node's prompt receives (#337). `bounded` (default):
556
562
  * only nodes it can depend on (graph ancestors, nodes named by `requires`
@@ -765,6 +771,8 @@ export interface ExecutionTrace {
765
771
  edges: TraceEdge[];
766
772
  /** Resolved sources keyed by field path (e.g. "nodes.gather.instruction") */
767
773
  sources: Record<string, _ResolvedSource>;
774
+ /** Shadow-mode decider records, one per route decision (#357). Metadata only. Absent when the decider is off. */
775
+ decisions?: DeciderRecord[];
768
776
  }
769
777
  /** Result of execute() — final node results + full execution trace */
770
778
  export interface ExecutionResult {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sweny-ai/core",
3
- "version": "0.1.162",
3
+ "version": "0.1.164",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "sweny": "./dist/cli/main.js"