@nones/agentflow-core 0.1.0 → 0.6.1

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/src/ids.ts CHANGED
@@ -4,6 +4,9 @@ const PREFIXES = {
4
4
  agent: "agent",
5
5
  turn: "turn",
6
6
  message: "msg",
7
+ op: "op",
8
+ drain: "drain",
9
+ attempt: "attempt",
7
10
  } as const;
8
11
 
9
12
  export type IdKind = keyof typeof PREFIXES;
package/src/index.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  export { createEngine, EngineImpl } from "./engine";
2
- export { serve } from "./server";
2
+ export { serve, serveWithEngine } from "./server";
3
3
  export { createClient } from "./client";
4
4
  export { AgentFlowError, asAgentFlowError } from "./errors";
5
5
  export { newId } from "./ids";
@@ -10,10 +10,39 @@ export {
10
10
  requiredArtifactFailure,
11
11
  } from "./artifacts";
12
12
  export { quotaGroupName, QuotaManager } from "./quota";
13
- export { Store } from "./store";
14
- export { validateRunPlan } from "./validation";
13
+ export { Store, SCHEMA_VERSION, canonicalProjectId } from "./store";
14
+ export { validateRunPlan, validateHandlers, handlerKey } from "./validation";
15
+ export {
16
+ INSPECTION_DEFAULT_LIMIT,
17
+ INSPECTION_MAX_LIMIT,
18
+ INSPECTION_PAGE_MAX_BYTES,
19
+ INSPECTION_SNAPSHOT_VERSION,
20
+ INSPECTION_VALUE_MAX_BYTES,
21
+ InspectionReader,
22
+ STEP_TERMINAL_STATUSES,
23
+ decodeCursor,
24
+ encodeCursor,
25
+ levelOf,
26
+ redactValue,
27
+ } from "./inspection";
28
+ export type {
29
+ InspectOptions,
30
+ InspectionPage,
31
+ InspectionProject,
32
+ InspectionSummary,
33
+ LogRecord,
34
+ LogsPage,
35
+ PhaseSummary,
36
+ ReadLogsOptions,
37
+ RunHeader,
38
+ RunListItem,
39
+ StatusCounts,
40
+ StepKind,
41
+ StepSummary,
42
+ } from "./inspection";
15
43
 
16
44
  export type {
45
+ AgentDefaults,
17
46
  AgentFlowModule,
18
47
  AgentFlowModuleOperation,
19
48
  AgentFlowModuleOperationContext,
@@ -38,8 +67,17 @@ export type {
38
67
  LimitsSnapshot,
39
68
  MessageSnapshot,
40
69
  MessageState,
70
+ PlanHandler,
71
+ PlanHandlerContext,
72
+ PlanHandlerOutput,
73
+ PlanHandlerStep,
74
+ PlanStepRef,
75
+ PlanStepResult,
76
+ PlanStepStatus,
41
77
  Profile,
42
78
  ProviderAdapter,
79
+ ProviderEvent,
80
+ ProviderModel,
43
81
  QuotaGroupSnapshot,
44
82
  QuotaOptions,
45
83
  RateLimitInfo,
@@ -82,6 +120,11 @@ export type {
82
120
  ModuleToolResult,
83
121
  } from "./modules";
84
122
  export type {
123
+ AmendRunArgs,
124
+ Drainer,
125
+ DrainOptions,
126
+ DrainOutcome,
127
+ DrainReport,
85
128
  RpcAction,
86
129
  RpcActionArgs,
87
130
  RpcErrorPayload,