@fevex/core 0.1.0-alpha.5 → 0.1.0-alpha.6
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/README.md +73 -9
- package/dist/agents/index.d.mts +1 -1
- package/dist/artifacts/index.d.mts +1 -1
- package/dist/channels/index.d.mts +1 -1
- package/dist/evals/index.d.mts +4 -4
- package/dist/{fevex-B5NxFKcV.d.mts → fevex-B4QY5Z6e.d.mts} +41 -12
- package/dist/http/index.d.mts +4 -4
- package/dist/http/index.mjs +2 -0
- package/dist/{index-Dsulk-n6.d.mts → index-1cHr7KB_.d.mts} +3 -3
- package/dist/{index-CKQCNvJz.d.mts → index-5p3q2yIp.d.mts} +2 -2
- package/dist/{index-aayvtf0J.d.mts → index-BJktlD4E.d.mts} +2 -2
- package/dist/{index-BPwkgdo3.d.mts → index-BgKFd9yw.d.mts} +1 -1
- package/dist/{index-Cb3AB98n.d.mts → index-CbACw6xZ.d.mts} +2 -2
- package/dist/index-CpLDt6Rw.d.mts +118 -0
- package/dist/{index-Br-zPxZH.d.mts → index-CseuTR-F.d.mts} +2 -2
- package/dist/{index-CGmHXV31.d.mts → index-CzAi2Y_Z.d.mts} +13 -6
- package/dist/{index--_LdSEuF.d.mts → index-DVw0zOc_.d.mts} +3 -3
- package/dist/{index-BFnWUu7j.d.mts → index-Df84VWmN.d.mts} +1 -1
- package/dist/index.d.mts +13 -13
- package/dist/index.mjs +466 -64
- package/dist/knowledge/index.d.mts +1 -1
- package/dist/models/index.d.mts +1 -1
- package/dist/observability/index.d.mts +2 -2
- package/dist/policies/index.d.mts +1 -1
- package/dist/runtime/index.d.mts +2 -2
- package/dist/sandbox/index.d.mts +1 -1
- package/dist/teams/index.d.mts +1 -1
- package/dist/testing/index.d.mts +6 -6
- package/dist/tools/index.d.mts +2 -2
- package/dist/{types-BDVUoAU6.d.mts → types-B8laW1hM.d.mts} +2 -0
- package/dist/workflows/index.d.mts +1 -1
- package/package.json +1 -1
- package/dist/index-D6lnI92z.d.mts +0 -80
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as MemoryQuery, c as MemoryWrite, d as defineContextProvider, f as defineSkill, i as KnowledgeContext, l as SkillDefinition, n as ContextBlock, o as MemoryRecord, r as ContextProvider, s as MemoryStore, t as InMemoryMemoryStore, u as createMemoryContextProvider } from "../index-
|
|
1
|
+
import { a as MemoryQuery, c as MemoryWrite, d as defineContextProvider, f as defineSkill, i as KnowledgeContext, l as SkillDefinition, n as ContextBlock, o as MemoryRecord, r as ContextProvider, s as MemoryStore, t as InMemoryMemoryStore, u as createMemoryContextProvider } from "../index-BJktlD4E.mjs";
|
|
2
2
|
export { ContextBlock, ContextProvider, InMemoryMemoryStore, KnowledgeContext, MemoryQuery, MemoryRecord, MemoryStore, MemoryWrite, SkillDefinition, createMemoryContextProvider, defineContextProvider, defineSkill };
|
package/dist/models/index.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as ModelResult, c as ReasoningEffort, i as ModelRef, l as ToolChoice, n as ModelInput, o as ModelStreamEvent, r as ModelMetadata, s as ModelUsage, t as ModelGateway } from "../index-
|
|
1
|
+
import { a as ModelResult, c as ReasoningEffort, i as ModelRef, l as ToolChoice, n as ModelInput, o as ModelStreamEvent, r as ModelMetadata, s as ModelUsage, t as ModelGateway } from "../index-BgKFd9yw.mjs";
|
|
2
2
|
export { ModelGateway, ModelInput, ModelMetadata, ModelRef, ModelResult, ModelStreamEvent, ModelUsage, ReasoningEffort, ToolChoice };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
export { CostCalculator, CostCalculatorInput, ObservabilityOptions, RunTrace, TraceAnnotation, TraceContent, TraceContentKind, TraceContentPolicy, TraceCost, TraceExporter, TraceRedactor, TraceRedactorInput, TraceSpan, TraceSpanKind, TraceStatus };
|
|
1
|
+
import { _ as TraceSpanKind, a as RunTrace, c as TraceContentKind, d as TraceExportQueueOptions, f as TraceExporter, g as TraceSpan, h as TraceRunKind, i as ObservabilityStats, l as TraceContentPolicy, m as TraceRedactorInput, n as CostCalculatorInput, o as TraceAnnotation, p as TraceRedactor, r as ObservabilityOptions, s as TraceContent, t as CostCalculator, u as TraceCost, v as TraceStatus } from "../index-CpLDt6Rw.mjs";
|
|
2
|
+
export { CostCalculator, CostCalculatorInput, ObservabilityOptions, ObservabilityStats, RunTrace, TraceAnnotation, TraceContent, TraceContentKind, TraceContentPolicy, TraceCost, TraceExportQueueOptions, TraceExporter, TraceRedactor, TraceRedactorInput, TraceRunKind, TraceSpan, TraceSpanKind, TraceStatus };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as definePolicy, n as PolicyDecision, r as PolicyDefinition, t as PolicyAuthorization } from "../index-
|
|
1
|
+
import { i as definePolicy, n as PolicyDecision, r as PolicyDefinition, t as PolicyAuthorization } from "../index-CbACw6xZ.mjs";
|
|
2
2
|
export { PolicyAuthorization, PolicyDecision, PolicyDefinition, definePolicy };
|
package/dist/runtime/index.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
export { AgentRun, AgentRunPause, ApprovalMode, ApprovalRequest, ApprovalResolution, CoordinatorCheckpoint, CoordinatorRun, CredentialStore, DurableRunStore, ElicitationMode, ElicitationRequest, ElicitationResolution, EventResolution, ExecutionCommit, ExecutionCreate, InMemoryRunStore, ListEventsOptions, PendingToolExecution, PurgeRunsOptions, PurgeRunsResult, ResumeRunResolution, RetainableRunStatus, RetainableRunStore, RunCheckpoint, RunLease, RunPause, RunRecord, RunRequest, RunResult, RunStatus, RunStore, Session, SessionId, StoredRunCheckpoint, TeamCheckpoint, TeamRun, TimerResolution, ToolExecutionRecord, ToolExecutionResolution, ToolExecutionStatus, WorkflowBudgetUsage, WorkflowCheckpoint, WorkflowCompensationRecord, WorkflowRun, WorkflowStepRecord, WorkflowWaitRecord, isDurableRunStore, isRetainableRunStore, validateListEventsOptions, validatePurgeRunsOptions };
|
|
1
|
+
import { $ as validateListEventsOptions, A as RunPause, B as TeamRun, C as PurgeRunsResult, D as RunCheckpoint, E as RetainableRunStore, F as RunStore, G as WorkflowBudgetUsage, H as ToolExecutionRecord, I as Session, J as WorkflowRun, K as WorkflowCheckpoint, L as SessionId, M as RunRequest, N as RunResult, O as RunCorrelation, P as RunStatus, Q as isRetainableRunStore, R as StoredRunCheckpoint, S as PurgeRunsOptions, T as RetainableRunStatus, U as ToolExecutionResolution, V as TimerResolution, W as ToolExecutionStatus, X as WorkflowWaitRecord, Y as WorkflowStepRecord, Z as isDurableRunStore, _ as EventResolution, a as AgentRun, b as ListEventsOptions, c as ApprovalRequest, d as CoordinatorRun, et as validatePurgeRunsOptions, f as CredentialStore, g as ElicitationResolution, h as ElicitationRequest, i as InMemoryRunStore, j as RunRecord, k as RunLease, l as ApprovalResolution, m as ElicitationMode, o as AgentRunPause, p as DurableRunStore, q as WorkflowCompensationRecord, s as ApprovalMode, u as CoordinatorCheckpoint, v as ExecutionCommit, w as ResumeRunResolution, x as PendingToolExecution, y as ExecutionCreate, z as TeamCheckpoint } from "../index-CzAi2Y_Z.mjs";
|
|
2
|
+
export { AgentRun, AgentRunPause, ApprovalMode, ApprovalRequest, ApprovalResolution, CoordinatorCheckpoint, CoordinatorRun, CredentialStore, DurableRunStore, ElicitationMode, ElicitationRequest, ElicitationResolution, EventResolution, ExecutionCommit, ExecutionCreate, InMemoryRunStore, ListEventsOptions, PendingToolExecution, PurgeRunsOptions, PurgeRunsResult, ResumeRunResolution, RetainableRunStatus, RetainableRunStore, RunCheckpoint, RunCorrelation, RunLease, RunPause, RunRecord, RunRequest, RunResult, RunStatus, RunStore, Session, SessionId, StoredRunCheckpoint, TeamCheckpoint, TeamRun, TimerResolution, ToolExecutionRecord, ToolExecutionResolution, ToolExecutionStatus, WorkflowBudgetUsage, WorkflowCheckpoint, WorkflowCompensationRecord, WorkflowRun, WorkflowStepRecord, WorkflowWaitRecord, isDurableRunStore, isRetainableRunStore, validateListEventsOptions, validatePurgeRunsOptions };
|
package/dist/sandbox/index.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as SandboxError, c as sandboxResultToJson, i as SandboxCapabilities, n as createLocalSandbox, o as SandboxRunRequest, r as Sandbox, s as SandboxRunResult, t as LocalSandboxOptions } from "../index-
|
|
1
|
+
import { a as SandboxError, c as sandboxResultToJson, i as SandboxCapabilities, n as createLocalSandbox, o as SandboxRunRequest, r as Sandbox, s as SandboxRunResult, t as LocalSandboxOptions } from "../index-Df84VWmN.mjs";
|
|
2
2
|
export { LocalSandboxOptions, Sandbox, SandboxCapabilities, SandboxError, SandboxRunRequest, SandboxRunResult, createLocalSandbox, sandboxResultToJson };
|
package/dist/teams/index.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as TeamMember, c as defineTeam, i as TeamLimits, n as TeamDelegation, o as TeamStep, r as TeamHandoff, s as TeamTaskResult, t as TeamDefinition } from "../index-
|
|
1
|
+
import { a as TeamMember, c as defineTeam, i as TeamLimits, n as TeamDelegation, o as TeamStep, r as TeamHandoff, s as TeamTaskResult, t as TeamDefinition } from "../index-1cHr7KB_.mjs";
|
|
2
2
|
export { type TeamDefinition, type TeamDelegation, type TeamHandoff, type TeamLimits, type TeamMember, type TeamStep, type TeamTaskResult, defineTeam };
|
package/dist/testing/index.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { m as ToolCall } from "../types-
|
|
2
|
-
import { a as ModelResult, n as ModelInput, t as ModelGateway } from "../index-
|
|
3
|
-
import { h as ElicitationRequest, p as DurableRunStore } from "../index-
|
|
4
|
-
import { s as MemoryStore } from "../index-
|
|
5
|
-
import { d as ToolProvider } from "../index-
|
|
6
|
-
import { d as ChannelMessage, f as ChannelOutput, o as ChannelElicitationContext, r as ChannelAdapter } from "../index
|
|
1
|
+
import { m as ToolCall } from "../types-B8laW1hM.mjs";
|
|
2
|
+
import { a as ModelResult, n as ModelInput, t as ModelGateway } from "../index-BgKFd9yw.mjs";
|
|
3
|
+
import { h as ElicitationRequest, p as DurableRunStore } from "../index-CzAi2Y_Z.mjs";
|
|
4
|
+
import { s as MemoryStore } from "../index-BJktlD4E.mjs";
|
|
5
|
+
import { d as ToolProvider } from "../index-5p3q2yIp.mjs";
|
|
6
|
+
import { d as ChannelMessage, f as ChannelOutput, o as ChannelElicitationContext, r as ChannelAdapter } from "../index-DVw0zOc_.mjs";
|
|
7
7
|
//#region src/testing/contracts.d.ts
|
|
8
8
|
interface ModelGatewayContract {
|
|
9
9
|
output?: unknown;
|
package/dist/tools/index.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { g as ToolSpec, m as ToolCall } from "../types-
|
|
2
|
-
import { C as toToolSpec, S as defineTool, _ as ToolExecutionContext, a as compileFevexJsonSchema, b as ToolRetryPolicy, c as ConnectionToolPolicy, d as ToolProvider, f as ToolProviderContext, g as ToolDefinition, h as ToolApproval, i as FevexJsonSchemaValidator, l as IntegrationError, m as defineConnection, n as FevexJsonSchemaProfileLimits, o as validateFevexJsonSchemaProfile, p as ToolProviderTool, r as FevexJsonSchemaProfileOptions, s as ConnectionDefinition, t as FEVEX_JSON_SCHEMA_PROFILE_VERSION, u as IntegrationErrorCategory, v as ToolIdempotency, x as ToolRisk, y as ToolResult } from "../index-
|
|
1
|
+
import { g as ToolSpec, m as ToolCall } from "../types-B8laW1hM.mjs";
|
|
2
|
+
import { C as toToolSpec, S as defineTool, _ as ToolExecutionContext, a as compileFevexJsonSchema, b as ToolRetryPolicy, c as ConnectionToolPolicy, d as ToolProvider, f as ToolProviderContext, g as ToolDefinition, h as ToolApproval, i as FevexJsonSchemaValidator, l as IntegrationError, m as defineConnection, n as FevexJsonSchemaProfileLimits, o as validateFevexJsonSchemaProfile, p as ToolProviderTool, r as FevexJsonSchemaProfileOptions, s as ConnectionDefinition, t as FEVEX_JSON_SCHEMA_PROFILE_VERSION, u as IntegrationErrorCategory, v as ToolIdempotency, x as ToolRisk, y as ToolResult } from "../index-5p3q2yIp.mjs";
|
|
3
3
|
export { ConnectionDefinition, ConnectionToolPolicy, FEVEX_JSON_SCHEMA_PROFILE_VERSION, FevexJsonSchemaProfileLimits, FevexJsonSchemaProfileOptions, FevexJsonSchemaValidator, IntegrationError, IntegrationErrorCategory, ToolApproval, type ToolCall, ToolDefinition, ToolExecutionContext, ToolIdempotency, ToolProvider, ToolProviderContext, ToolProviderTool, ToolResult, ToolRetryPolicy, ToolRisk, type ToolSpec, compileFevexJsonSchema, defineConnection, defineTool, toToolSpec, validateFevexJsonSchemaProfile };
|
|
@@ -429,6 +429,7 @@ interface AgentEventPayloads {
|
|
|
429
429
|
stepId: string;
|
|
430
430
|
kind: 'agent' | 'parallel';
|
|
431
431
|
agentName?: string;
|
|
432
|
+
childRunId?: string;
|
|
432
433
|
};
|
|
433
434
|
'workflow.step.completed': {
|
|
434
435
|
stepId: string;
|
|
@@ -494,6 +495,7 @@ interface AgentEventPayloads {
|
|
|
494
495
|
action: 'delegate' | 'handoff';
|
|
495
496
|
expectedOutput?: string;
|
|
496
497
|
constraints?: string[];
|
|
498
|
+
childRunId?: string;
|
|
497
499
|
};
|
|
498
500
|
'team.handoff.created': {
|
|
499
501
|
delegationId: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as WorkflowStep, c as defineWorkflow, i as WorkflowEventResult, n as WorkflowDefinition, o as WorkflowStepContext, r as WorkflowEventDefinition, s as WorkflowStepOptions, t as WorkflowAgentResult } from "../index-
|
|
1
|
+
import { a as WorkflowStep, c as defineWorkflow, i as WorkflowEventResult, n as WorkflowDefinition, o as WorkflowStepContext, r as WorkflowEventDefinition, s as WorkflowStepOptions, t as WorkflowAgentResult } from "../index-CseuTR-F.mjs";
|
|
2
2
|
export { WorkflowAgentResult, WorkflowDefinition, WorkflowEventDefinition, WorkflowEventResult, WorkflowStep, WorkflowStepContext, WorkflowStepOptions, defineWorkflow };
|
package/package.json
CHANGED
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import { f as RunId, l as JsonValue, s as JsonObject } from "./types-BDVUoAU6.mjs";
|
|
2
|
-
import { r as ModelMetadata, s as ModelUsage } from "./index-BPwkgdo3.mjs";
|
|
3
|
-
import { I as SessionId } from "./index-CGmHXV31.mjs";
|
|
4
|
-
//#region src/observability/trace.d.ts
|
|
5
|
-
/** Final state represented by an exported run trace. */
|
|
6
|
-
type TraceStatus = 'completed' | 'failed' | 'cancelled';
|
|
7
|
-
type TraceSpanKind = 'model' | 'tool';
|
|
8
|
-
type TraceContentKind = 'run.output' | 'model.output' | 'error.message';
|
|
9
|
-
interface TraceCost {
|
|
10
|
-
amount: number;
|
|
11
|
-
currency: string;
|
|
12
|
-
}
|
|
13
|
-
interface TraceContent {
|
|
14
|
-
kind: TraceContentKind;
|
|
15
|
-
value: JsonValue;
|
|
16
|
-
}
|
|
17
|
-
interface TraceAnnotation {
|
|
18
|
-
name: string;
|
|
19
|
-
timestamp: string;
|
|
20
|
-
attributes?: JsonObject;
|
|
21
|
-
}
|
|
22
|
-
interface TraceSpan {
|
|
23
|
-
id: string;
|
|
24
|
-
parentId: string;
|
|
25
|
-
kind: TraceSpanKind;
|
|
26
|
-
name: string;
|
|
27
|
-
startedAt: string;
|
|
28
|
-
endedAt: string;
|
|
29
|
-
durationMs: number;
|
|
30
|
-
status: TraceStatus;
|
|
31
|
-
attributes: JsonObject;
|
|
32
|
-
annotations: TraceAnnotation[];
|
|
33
|
-
usage?: ModelUsage;
|
|
34
|
-
cost?: TraceCost;
|
|
35
|
-
content?: TraceContent[];
|
|
36
|
-
}
|
|
37
|
-
interface RunTrace {
|
|
38
|
-
schemaVersion: '1';
|
|
39
|
-
traceId: string;
|
|
40
|
-
runId: RunId;
|
|
41
|
-
sessionId: SessionId;
|
|
42
|
-
agentName: string;
|
|
43
|
-
modelRegistryName: string;
|
|
44
|
-
model?: ModelMetadata;
|
|
45
|
-
startedAt: string;
|
|
46
|
-
endedAt: string;
|
|
47
|
-
durationMs: number;
|
|
48
|
-
status: TraceStatus;
|
|
49
|
-
attributes: JsonObject;
|
|
50
|
-
annotations: TraceAnnotation[];
|
|
51
|
-
spans: TraceSpan[];
|
|
52
|
-
usage?: ModelUsage;
|
|
53
|
-
cost?: TraceCost;
|
|
54
|
-
content?: TraceContent[];
|
|
55
|
-
}
|
|
56
|
-
interface CostCalculatorInput {
|
|
57
|
-
modelRegistryName: string;
|
|
58
|
-
model?: ModelMetadata;
|
|
59
|
-
usage: ModelUsage;
|
|
60
|
-
}
|
|
61
|
-
type CostCalculator = (input: CostCalculatorInput) => TraceCost | undefined;
|
|
62
|
-
interface TraceRedactorInput {
|
|
63
|
-
kind: TraceContentKind;
|
|
64
|
-
value: JsonValue;
|
|
65
|
-
}
|
|
66
|
-
type TraceRedactor = (input: TraceRedactorInput) => JsonValue | undefined;
|
|
67
|
-
interface TraceContentPolicy {
|
|
68
|
-
include: readonly TraceContentKind[];
|
|
69
|
-
redact?: TraceRedactor;
|
|
70
|
-
}
|
|
71
|
-
interface TraceExporter {
|
|
72
|
-
export(trace: Readonly<RunTrace>): void | Promise<void>;
|
|
73
|
-
}
|
|
74
|
-
interface ObservabilityOptions {
|
|
75
|
-
exporters: readonly TraceExporter[];
|
|
76
|
-
calculateCost?: CostCalculator;
|
|
77
|
-
content?: TraceContentPolicy;
|
|
78
|
-
}
|
|
79
|
-
//#endregion
|
|
80
|
-
export { TraceAnnotation as a, TraceContentPolicy as c, TraceRedactor as d, TraceRedactorInput as f, TraceStatus as h, RunTrace as i, TraceCost as l, TraceSpanKind as m, CostCalculatorInput as n, TraceContent as o, TraceSpan as p, ObservabilityOptions as r, TraceContentKind as s, CostCalculator as t, TraceExporter as u };
|