@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 +1 -1
- package/src/index.ts +2 -0
- package/src/types.ts +33 -0
package/package.json
CHANGED
package/src/index.ts
CHANGED
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
|
}
|