@nones/agentflow-core 0.6.0 → 0.7.0

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": "@nones/agentflow-core",
3
- "version": "0.6.0",
3
+ "version": "0.7.0",
4
4
  "description": "AgentFlow contracts, durable store, scheduler, quotas and local JSON RPC",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
package/src/index.ts CHANGED
@@ -74,6 +74,8 @@ export type {
74
74
  PlanStepRef,
75
75
  PlanStepResult,
76
76
  PlanStepStatus,
77
+ PresentationConfiguration,
78
+ PresentationSection,
77
79
  Profile,
78
80
  ProviderAdapter,
79
81
  ProviderEvent,
package/src/types.ts CHANGED
@@ -364,9 +364,42 @@ export interface TurnDecision {
364
364
  artifacts?: Record<string, unknown>;
365
365
  }
366
366
 
367
+ /**
368
+ * One configuration-driven section in a strategy's presentation. This is
369
+ * data only: it never affects compilation, scheduling, persistence or the
370
+ * daemon protocol.
371
+ */
372
+ export interface PresentationSection {
373
+ id: string;
374
+ title: string;
375
+ kind:
376
+ | "overview"
377
+ | "timeline"
378
+ | "agents"
379
+ | "goals"
380
+ | "tasks"
381
+ | "activity"
382
+ | "diagnostics"
383
+ | "artifacts"
384
+ | "module";
385
+ module?: string;
386
+ }
387
+
388
+ /**
389
+ * Optional presentation metadata a strategy may declare. UI consumers resolve
390
+ * it with configuration; Core only stores and exposes the data.
391
+ */
392
+ export interface PresentationConfiguration {
393
+ title?: string;
394
+ layout?: "workflow" | "agents" | "goals";
395
+ sections?: readonly PresentationSection[];
396
+ }
397
+
367
398
  export interface Strategy {
368
399
  id: string;
369
400
  singleAdapter?: boolean;
401
+ /** Optional UI metadata; has no effect on compilation or execution. */
402
+ presentationConfiguration?: PresentationConfiguration;
370
403
  compile(input: unknown): RunPlan;
371
404
  decide?(context: TurnContext): Promise<TurnDecision> | TurnDecision;
372
405
  }