@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
package/README.md
CHANGED
|
@@ -28,18 +28,26 @@ adapters, validation and tests without adopting a heavy runtime.
|
|
|
28
28
|
npm install @fevex/core
|
|
29
29
|
```
|
|
30
30
|
|
|
31
|
-
|
|
31
|
+
The npm release pipeline publishes exactly three official packages:
|
|
32
32
|
|
|
33
33
|
```bash
|
|
34
34
|
npm install @fevex/core @fevex/openai
|
|
35
35
|
npm install @fevex/core @fevex/deepseek
|
|
36
|
-
npm install @fevex/core @fevex/mcp
|
|
37
|
-
npm install @fevex/core @fevex/openapi
|
|
38
|
-
npm install @fevex/core @fevex/sqlite
|
|
39
|
-
npm install @fevex/core @fevex/postgres
|
|
40
|
-
npm install @fevex/core @fevex/opentelemetry @opentelemetry/api
|
|
41
36
|
```
|
|
42
37
|
|
|
38
|
+
CI builds, typechecks, tests and tarball-smokes all nine packages. The
|
|
39
|
+
repository-only integrations below are **not published to npm** by the release
|
|
40
|
+
pipeline; use them from this repository until they are published:
|
|
41
|
+
|
|
42
|
+
| Package | Purpose |
|
|
43
|
+
| --- | --- |
|
|
44
|
+
| `@fevex/mcp` | Model Context Protocol tools and connections |
|
|
45
|
+
| `@fevex/openapi` | Tools generated from an OpenAPI document |
|
|
46
|
+
| `@fevex/sqlite` | SQLite run and session store |
|
|
47
|
+
| `@fevex/postgres` | PostgreSQL run and session store |
|
|
48
|
+
| `@fevex/opentelemetry` | OpenTelemetry trace and metric export |
|
|
49
|
+
| `@fevex/browser` | Browser automation tools |
|
|
50
|
+
|
|
43
51
|
Schemas are optional. The examples use Zod 4, but any Standard
|
|
44
52
|
Schema-compatible validator can be used:
|
|
45
53
|
|
|
@@ -47,6 +55,20 @@ Schema-compatible validator can be used:
|
|
|
47
55
|
npm install zod
|
|
48
56
|
```
|
|
49
57
|
|
|
58
|
+
## Compatibility & releases
|
|
59
|
+
|
|
60
|
+
FEVEX is pre-1.0. Documented imports from official packages are the public API;
|
|
61
|
+
`src/internal`, undocumented paths and checkpoint shapes are not. While in alpha,
|
|
62
|
+
`minor` releases may contain breaking changes with migration notes; `patch`
|
|
63
|
+
releases stay compatible. Store migrations are forward-only, checkpoints are
|
|
64
|
+
versioned and private, and downgrades are not supported.
|
|
65
|
+
|
|
66
|
+
Only the latest alpha is supported; pin exact versions in production. Releases
|
|
67
|
+
come from reviewed changesets, publish only the three official packages, and
|
|
68
|
+
place alpha versions on the npm `latest` tag. Read the full
|
|
69
|
+
[compatibility and release policy](https://fevex.dev/docs/compatibility/) before
|
|
70
|
+
upgrading a durable deployment.
|
|
71
|
+
|
|
50
72
|
## Quickstart
|
|
51
73
|
|
|
52
74
|
This example executes a complete model-tool-model cycle without network access:
|
|
@@ -730,8 +752,50 @@ Traces contain only metadata by default. Output and safe error capture require
|
|
|
730
752
|
an explicit `content.include` policy; sensitive object keys are redacted before
|
|
731
753
|
an optional application redactor runs. Exporters run outside the run path: their
|
|
732
754
|
errors never change the run result, and `flushObservability()` reports pending
|
|
733
|
-
export failures.
|
|
734
|
-
|
|
755
|
+
export failures. Export work is bounded and deduplicated:
|
|
756
|
+
|
|
757
|
+
```ts
|
|
758
|
+
const app = createFevex({
|
|
759
|
+
models,
|
|
760
|
+
agents,
|
|
761
|
+
observability: {
|
|
762
|
+
exporters: [createOpenTelemetryExporter()],
|
|
763
|
+
exportQueue: {
|
|
764
|
+
concurrency: 4,
|
|
765
|
+
maxQueued: 100,
|
|
766
|
+
timeoutMs: 30_000,
|
|
767
|
+
maxFailures: 100,
|
|
768
|
+
},
|
|
769
|
+
},
|
|
770
|
+
});
|
|
771
|
+
|
|
772
|
+
await app.flushObservability({ timeoutMs: 5_000 });
|
|
773
|
+
console.log(app.getObservabilityStats());
|
|
774
|
+
```
|
|
775
|
+
|
|
776
|
+
Workflow and team traces carry `kind` and a span per step. Agent steps expose
|
|
777
|
+
`childRunId`; child agent traces carry `parentRunId` and `rootRunId`, and tool
|
|
778
|
+
spans are nested under the model call that requested them. A dropped trace or a
|
|
779
|
+
failed export is counted in `getObservabilityStats()`, and the next
|
|
780
|
+
`flushObservability()` rejects with the failures accumulated since the previous
|
|
781
|
+
flush. OpenTelemetry SDK setup, OTLP export and shutdown remain application
|
|
782
|
+
responsibilities.
|
|
783
|
+
|
|
784
|
+
## Graceful shutdown
|
|
785
|
+
|
|
786
|
+
`shutdown` stops admission, drains active runs, cancels what remains at the
|
|
787
|
+
deadline and flushes trace exports:
|
|
788
|
+
|
|
789
|
+
```ts
|
|
790
|
+
const result = await app.shutdown({ timeoutMs: 30_000 });
|
|
791
|
+
console.log(result.timedOut, result.cancelledRunIds, result.observability);
|
|
792
|
+
```
|
|
793
|
+
|
|
794
|
+
New starts, resumes and recoveries fail with `RUNTIME_CLOSED` (HTTP `503`) once
|
|
795
|
+
shutdown begins. The host closes its HTTP server, stores and external adapters
|
|
796
|
+
after `shutdown` returns. See
|
|
797
|
+
[Operations & soak tests](https://fevex.dev/docs/operations/) for crash recovery
|
|
798
|
+
and the 1–8 hour load harness.
|
|
735
799
|
|
|
736
800
|
## Evaluations
|
|
737
801
|
|
|
@@ -1049,7 +1113,7 @@ the artifact available.
|
|
|
1049
1113
|
| `@fevex/core/runtime` | Runs, sessions and store contracts |
|
|
1050
1114
|
| `@fevex/core/sandbox` | Sandbox contract and local development sandbox |
|
|
1051
1115
|
| `@fevex/core/policies` | Authorization policy contracts |
|
|
1052
|
-
| `@fevex/core/observability` | Trace, redaction and cost contracts |
|
|
1116
|
+
| `@fevex/core/observability` | Trace, bounded export queue, redaction and cost contracts |
|
|
1053
1117
|
| `@fevex/core/evals` | Datasets, scorers, reporters and regressions |
|
|
1054
1118
|
| `@fevex/core/testing` | Deterministic testing helpers |
|
|
1055
1119
|
|
package/dist/agents/index.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as AgentLimits, r as defineAgent, t as AgentDefinition } from "../index-
|
|
1
|
+
import { n as AgentLimits, r as defineAgent, t as AgentDefinition } from "../index-CzAi2Y_Z.mjs";
|
|
2
2
|
export { AgentDefinition, AgentLimits, defineAgent };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as ArtifactError, C as FileSystemArtifactStore, D as ArtifactCatalog, E as CatalogedArtifactStoreOptions, F as ArtifactStore, I as ArtifactStoreContext, L as ArtifactWrite, M as ArtifactId, N as ArtifactQuery, O as ArtifactContent, P as ArtifactRecord, R as artifactTenantId, S as InMemoryArtifactCatalog, T as CatalogedArtifactStore, _ as S3ArtifactStore, b as InMemoryArtifactStore, j as ArtifactErrorCode, k as ArtifactDescriptor, v as S3ArtifactStoreOptions, w as FileSystemArtifactStoreOptions, x as InMemoryArtifactStoreOptions, y as S3ObjectClient, z as assertArtifactId } from "../types-
|
|
1
|
+
import { A as ArtifactError, C as FileSystemArtifactStore, D as ArtifactCatalog, E as CatalogedArtifactStoreOptions, F as ArtifactStore, I as ArtifactStoreContext, L as ArtifactWrite, M as ArtifactId, N as ArtifactQuery, O as ArtifactContent, P as ArtifactRecord, R as artifactTenantId, S as InMemoryArtifactCatalog, T as CatalogedArtifactStore, _ as S3ArtifactStore, b as InMemoryArtifactStore, j as ArtifactErrorCode, k as ArtifactDescriptor, v as S3ArtifactStoreOptions, w as FileSystemArtifactStoreOptions, x as InMemoryArtifactStoreOptions, y as S3ObjectClient, z as assertArtifactId } from "../types-B8laW1hM.mjs";
|
|
2
2
|
export { ArtifactCatalog, ArtifactContent, ArtifactDescriptor, ArtifactError, ArtifactErrorCode, ArtifactId, ArtifactQuery, ArtifactRecord, ArtifactStore, ArtifactStoreContext, ArtifactWrite, CatalogedArtifactStore, CatalogedArtifactStoreOptions, FileSystemArtifactStore, FileSystemArtifactStoreOptions, InMemoryArtifactCatalog, InMemoryArtifactStore, InMemoryArtifactStoreOptions, S3ArtifactStore, S3ArtifactStoreOptions, S3ObjectClient, artifactTenantId, assertArtifactId };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as ChannelDeliveryOptions, c as ChannelEvent, d as ChannelMessage, f as ChannelOutput, h as ChannelRunResult, i as ChannelContext, l as ChannelEventType, m as ChannelRunOptions, n as handleChannelInput, o as ChannelElicitationContext, p as ChannelRunEvent, r as ChannelAdapter, s as ChannelError, t as deliverChannelRun, u as ChannelFailurePhase } from "../index
|
|
1
|
+
import { a as ChannelDeliveryOptions, c as ChannelEvent, d as ChannelMessage, f as ChannelOutput, h as ChannelRunResult, i as ChannelContext, l as ChannelEventType, m as ChannelRunOptions, n as handleChannelInput, o as ChannelElicitationContext, p as ChannelRunEvent, r as ChannelAdapter, s as ChannelError, t as deliverChannelRun, u as ChannelFailurePhase } from "../index-DVw0zOc_.mjs";
|
|
2
2
|
export { ChannelAdapter, ChannelContext, ChannelDeliveryOptions, ChannelElicitationContext, ChannelError, ChannelEvent, ChannelEventType, ChannelFailurePhase, ChannelMessage, ChannelOutput, ChannelRunEvent, ChannelRunOptions, ChannelRunResult, deliverChannelRun, handleChannelInput };
|
package/dist/evals/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { l as JsonValue, o as ExecutionContext, t as AgentEvent } from "../types-
|
|
2
|
-
import { r as ModelMetadata, s as ModelUsage } from "../index-
|
|
3
|
-
import {
|
|
4
|
-
import { t as Fevex } from "../fevex-
|
|
1
|
+
import { l as JsonValue, o as ExecutionContext, t as AgentEvent } from "../types-B8laW1hM.mjs";
|
|
2
|
+
import { r as ModelMetadata, s as ModelUsage } from "../index-BgKFd9yw.mjs";
|
|
3
|
+
import { t as CostCalculator, u as TraceCost } from "../index-CpLDt6Rw.mjs";
|
|
4
|
+
import { t as Fevex } from "../fevex-B4QY5Z6e.mjs";
|
|
5
5
|
//#region src/evals/canonical-json.d.ts
|
|
6
6
|
/** Serializes JSON-like data with stable object-key ordering. */
|
|
7
7
|
declare function serializeCanonical(value: unknown): string;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { F as ArtifactStore, f as RunId, o as ExecutionContext, t as AgentEvent } from "./types-
|
|
2
|
-
import { t as ModelGateway } from "./index-
|
|
3
|
-
import {
|
|
4
|
-
import { r as ContextProvider, s as MemoryStore } from "./index-
|
|
5
|
-
import { r as ObservabilityOptions } from "./index-
|
|
6
|
-
import { r as Sandbox } from "./index-
|
|
7
|
-
import { g as ToolDefinition, s as ConnectionDefinition } from "./index-
|
|
8
|
-
import { r as PolicyDefinition } from "./index-
|
|
9
|
-
import { n as WorkflowDefinition } from "./index-
|
|
10
|
-
import { t as TeamDefinition } from "./index-
|
|
1
|
+
import { F as ArtifactStore, f as RunId, o as ExecutionContext, t as AgentEvent } from "./types-B8laW1hM.mjs";
|
|
2
|
+
import { t as ModelGateway } from "./index-BgKFd9yw.mjs";
|
|
3
|
+
import { B as TeamRun, C as PurgeRunsResult, F as RunStore, I as Session, J as WorkflowRun, L as SessionId, M as RunRequest, N as RunResult, S as PurgeRunsOptions, a as AgentRun, b as ListEventsOptions, f as CredentialStore, j as RunRecord, t as AgentDefinition, w as ResumeRunResolution } from "./index-CzAi2Y_Z.mjs";
|
|
4
|
+
import { r as ContextProvider, s as MemoryStore } from "./index-BJktlD4E.mjs";
|
|
5
|
+
import { i as ObservabilityStats, r as ObservabilityOptions } from "./index-CpLDt6Rw.mjs";
|
|
6
|
+
import { r as Sandbox } from "./index-Df84VWmN.mjs";
|
|
7
|
+
import { g as ToolDefinition, s as ConnectionDefinition } from "./index-5p3q2yIp.mjs";
|
|
8
|
+
import { r as PolicyDefinition } from "./index-CbACw6xZ.mjs";
|
|
9
|
+
import { n as WorkflowDefinition } from "./index-CseuTR-F.mjs";
|
|
10
|
+
import { t as TeamDefinition } from "./index-1cHr7KB_.mjs";
|
|
11
11
|
//#region src/fevex.d.ts
|
|
12
12
|
interface FevexAdmissionRequest {
|
|
13
13
|
kind: 'agent' | 'workflow' | 'team';
|
|
@@ -27,6 +27,25 @@ interface FevexAdmission {
|
|
|
27
27
|
/** Custom admission check, called after the built-in limits. */
|
|
28
28
|
authorize?: (request: FevexAdmissionRequest) => boolean | Promise<boolean>;
|
|
29
29
|
}
|
|
30
|
+
interface FevexShutdownOptions {
|
|
31
|
+
/**
|
|
32
|
+
* Maximum time to wait for active runs before cancelling them. Defaults to
|
|
33
|
+
* 30 seconds. Use `0` to cancel immediately. If the deadline expires,
|
|
34
|
+
* shutdown allows up to 5 additional seconds for forced cancellation and the
|
|
35
|
+
* final trace flush.
|
|
36
|
+
*/
|
|
37
|
+
timeoutMs?: number;
|
|
38
|
+
}
|
|
39
|
+
interface FevexShutdownResult {
|
|
40
|
+
/** Runs that were still active when the grace period expired. */
|
|
41
|
+
cancelledRunIds: RunId[];
|
|
42
|
+
/** True when the grace deadline expired before all active runs finished. */
|
|
43
|
+
timedOut: boolean;
|
|
44
|
+
/** Error surfaced while flushing pending traces, if any. */
|
|
45
|
+
exportError?: unknown;
|
|
46
|
+
/** Observability counters after the shutdown flush. */
|
|
47
|
+
observability: ObservabilityStats;
|
|
48
|
+
}
|
|
30
49
|
interface FevexLimits {
|
|
31
50
|
/**
|
|
32
51
|
* Maximum non-control events persisted for one run. Control events such as
|
|
@@ -77,7 +96,17 @@ interface Fevex {
|
|
|
77
96
|
}): Promise<RunRecord<TOutput>>;
|
|
78
97
|
purgeRuns(options?: PurgeRunsOptions): Promise<PurgeRunsResult>;
|
|
79
98
|
compactSession(sessionId: SessionId, summary: string): Promise<Session>;
|
|
80
|
-
|
|
99
|
+
/** Waits for queued exports and rejects with failures accumulated since the previous flush. */
|
|
100
|
+
flushObservability(options?: {
|
|
101
|
+
timeoutMs?: number;
|
|
102
|
+
}): Promise<void>;
|
|
103
|
+
/** Cumulative trace export counters for this runtime. */
|
|
104
|
+
getObservabilityStats(): ObservabilityStats;
|
|
105
|
+
/**
|
|
106
|
+
* Stops admitting new work, drains or cancels active runs, and flushes trace
|
|
107
|
+
* exports. The host still owns closing its stores and external adapters.
|
|
108
|
+
*/
|
|
109
|
+
shutdown(options?: FevexShutdownOptions): Promise<FevexShutdownResult>;
|
|
81
110
|
}
|
|
82
111
|
/**
|
|
83
112
|
* Validates a configuration snapshot and creates an isolated runtime.
|
|
@@ -87,4 +116,4 @@ interface Fevex {
|
|
|
87
116
|
*/
|
|
88
117
|
declare function createFevex(config: FevexConfig): Fevex;
|
|
89
118
|
//#endregion
|
|
90
|
-
export { FevexLimits as a, FevexConfig as i, FevexAdmission as n,
|
|
119
|
+
export { FevexLimits as a, createFevex as c, FevexConfig as i, FevexAdmission as n, FevexShutdownOptions as o, FevexAdmissionRequest as r, FevexShutdownResult as s, Fevex as t };
|
package/dist/http/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { D as ArtifactCatalog, F as ArtifactStore, f as RunId, k as ArtifactDescriptor, l as JsonValue, o as ExecutionContext, t as AgentEvent } from "../types-
|
|
2
|
-
import { c as ReasoningEffort } from "../index-
|
|
3
|
-
import {
|
|
4
|
-
import { t as Fevex } from "../fevex-
|
|
1
|
+
import { D as ArtifactCatalog, F as ArtifactStore, f as RunId, k as ArtifactDescriptor, l as JsonValue, o as ExecutionContext, t as AgentEvent } from "../types-B8laW1hM.mjs";
|
|
2
|
+
import { c as ReasoningEffort } from "../index-BgKFd9yw.mjs";
|
|
3
|
+
import { B as TeamRun, J as WorkflowRun, L as SessionId, a as AgentRun, j as RunRecord } from "../index-CzAi2Y_Z.mjs";
|
|
4
|
+
import { t as Fevex } from "../fevex-B4QY5Z6e.mjs";
|
|
5
5
|
//#region src/http/protocol.d.ts
|
|
6
6
|
declare const FEVEX_HTTP_PROTOCOL_VERSION = "3";
|
|
7
7
|
declare const FEVEX_HTTP_PROTOCOL_VERSION_HEADER = "Fevex-Protocol-Version";
|
package/dist/http/index.mjs
CHANGED
|
@@ -24,6 +24,7 @@ const FEVEX_RUN_ERROR_CODES = /* @__PURE__ */ new Set([
|
|
|
24
24
|
"RUN_DEFINITION_CHANGED",
|
|
25
25
|
"POLICY_DENIED",
|
|
26
26
|
"ADMISSION_DENIED",
|
|
27
|
+
"RUNTIME_CLOSED",
|
|
27
28
|
"CREDENTIAL_NOT_FOUND",
|
|
28
29
|
"SANDBOX_REQUIRED",
|
|
29
30
|
"ELICITATION_INVALID",
|
|
@@ -654,6 +655,7 @@ function statusForRunErrorCode(code) {
|
|
|
654
655
|
if (code === "APPROVAL_INVALID" || code === "INVALID_CURSOR") return 400;
|
|
655
656
|
if (code === "POLICY_DENIED") return 403;
|
|
656
657
|
if (code === "ADMISSION_DENIED") return 429;
|
|
658
|
+
if (code === "RUNTIME_CLOSED") return 503;
|
|
657
659
|
return 409;
|
|
658
660
|
}
|
|
659
661
|
function statusForArtifactErrorCode(code) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as ExactDefinition } from "./exact-definition-NHBBFlFR.mjs";
|
|
2
|
-
import { o as ExecutionContext } from "./types-
|
|
3
|
-
import { n as AgentLimits } from "./index-
|
|
4
|
-
import { t as WorkflowAgentResult } from "./index-
|
|
2
|
+
import { o as ExecutionContext } from "./types-B8laW1hM.mjs";
|
|
3
|
+
import { n as AgentLimits } from "./index-CzAi2Y_Z.mjs";
|
|
4
|
+
import { t as WorkflowAgentResult } from "./index-CseuTR-F.mjs";
|
|
5
5
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
6
6
|
//#region src/teams/team.d.ts
|
|
7
7
|
interface TeamMember {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as ExactDefinition } from "./exact-definition-NHBBFlFR.mjs";
|
|
2
|
-
import { F as ArtifactStore, f as RunId, g as ToolSpec, h as ToolEventSource, l as JsonValue, o as ExecutionContext, s as JsonObject } from "./types-
|
|
3
|
-
import { i as SandboxCapabilities, r as Sandbox } from "./index-
|
|
2
|
+
import { F as ArtifactStore, f as RunId, g as ToolSpec, h as ToolEventSource, l as JsonValue, o as ExecutionContext, s as JsonObject } from "./types-B8laW1hM.mjs";
|
|
3
|
+
import { i as SandboxCapabilities, r as Sandbox } from "./index-Df84VWmN.mjs";
|
|
4
4
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
5
5
|
//#region src/tools/tool.d.ts
|
|
6
6
|
interface ToolExecutionContext {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { l as JsonValue, o as ExecutionContext, s as JsonObject } from "./types-
|
|
2
|
-
import {
|
|
1
|
+
import { l as JsonValue, o as ExecutionContext, s as JsonObject } from "./types-B8laW1hM.mjs";
|
|
2
|
+
import { L as SessionId } from "./index-CzAi2Y_Z.mjs";
|
|
3
3
|
//#region src/knowledge/knowledge.d.ts
|
|
4
4
|
/** Runtime context supplied to knowledge providers and memory stores. */
|
|
5
5
|
interface KnowledgeContext {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as ToolSpec, i as AgentMessage, l as JsonValue, m as ToolCall, s as JsonObject } from "./types-
|
|
1
|
+
import { g as ToolSpec, i as AgentMessage, l as JsonValue, m as ToolCall, s as JsonObject } from "./types-B8laW1hM.mjs";
|
|
2
2
|
//#region src/models/model.d.ts
|
|
3
3
|
/** Provider-neutral reasoning levels accepted by model gateways. */
|
|
4
4
|
type ReasoningEffort = 'provider-default' | 'none' | 'minimal' | 'low' | 'medium' | 'high' | 'xhigh' | 'max';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { f as RunId, l as JsonValue, o as ExecutionContext } from "./types-
|
|
2
|
-
import { x as ToolRisk } from "./index-
|
|
1
|
+
import { f as RunId, l as JsonValue, o as ExecutionContext } from "./types-B8laW1hM.mjs";
|
|
2
|
+
import { x as ToolRisk } from "./index-5p3q2yIp.mjs";
|
|
3
3
|
//#region src/policies/policy.d.ts
|
|
4
4
|
/** Authorization outcome returned by a policy. */
|
|
5
5
|
type PolicyDecision = 'allow' | 'deny' | 'require_approval';
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { f as RunId, l as JsonValue, s as JsonObject } from "./types-B8laW1hM.mjs";
|
|
2
|
+
import { r as ModelMetadata, s as ModelUsage } from "./index-BgKFd9yw.mjs";
|
|
3
|
+
import { L as SessionId } from "./index-CzAi2Y_Z.mjs";
|
|
4
|
+
//#region src/observability/trace.d.ts
|
|
5
|
+
/** Final state represented by an exported run trace. */
|
|
6
|
+
type TraceStatus = 'completed' | 'failed' | 'cancelled';
|
|
7
|
+
/** Kind of run that produced a trace. Absent means `agent` for older traces. */
|
|
8
|
+
type TraceRunKind = 'agent' | 'workflow' | 'team';
|
|
9
|
+
/** Model and tool calls are agent spans; steps belong to workflow and team traces. */
|
|
10
|
+
type TraceSpanKind = 'model' | 'tool' | 'step';
|
|
11
|
+
type TraceContentKind = 'run.output' | 'model.output' | 'error.message';
|
|
12
|
+
interface TraceCost {
|
|
13
|
+
amount: number;
|
|
14
|
+
currency: string;
|
|
15
|
+
}
|
|
16
|
+
interface TraceContent {
|
|
17
|
+
kind: TraceContentKind;
|
|
18
|
+
value: JsonValue;
|
|
19
|
+
}
|
|
20
|
+
interface TraceAnnotation {
|
|
21
|
+
name: string;
|
|
22
|
+
timestamp: string;
|
|
23
|
+
attributes?: JsonObject;
|
|
24
|
+
}
|
|
25
|
+
interface TraceSpan {
|
|
26
|
+
id: string;
|
|
27
|
+
/** Run or span that contains this span. */
|
|
28
|
+
parentId: string;
|
|
29
|
+
kind: TraceSpanKind;
|
|
30
|
+
name: string;
|
|
31
|
+
startedAt: string;
|
|
32
|
+
endedAt: string;
|
|
33
|
+
durationMs: number;
|
|
34
|
+
status: TraceStatus;
|
|
35
|
+
attributes: JsonObject;
|
|
36
|
+
annotations: TraceAnnotation[];
|
|
37
|
+
usage?: ModelUsage;
|
|
38
|
+
cost?: TraceCost;
|
|
39
|
+
content?: TraceContent[];
|
|
40
|
+
}
|
|
41
|
+
interface RunTrace {
|
|
42
|
+
schemaVersion: '1';
|
|
43
|
+
/** Absent on traces produced before coordinator traces existed; treat as `agent`. */
|
|
44
|
+
kind?: TraceRunKind;
|
|
45
|
+
traceId: string;
|
|
46
|
+
runId: RunId;
|
|
47
|
+
sessionId: SessionId;
|
|
48
|
+
/** Agent, workflow or team name. */
|
|
49
|
+
agentName: string;
|
|
50
|
+
/** Run that created this one, when it belongs to a workflow or team. */
|
|
51
|
+
parentRunId?: RunId;
|
|
52
|
+
/** Top-level run in the correlation tree. Defaults to `runId`. */
|
|
53
|
+
rootRunId?: RunId;
|
|
54
|
+
/** Only present on agent traces. */
|
|
55
|
+
modelRegistryName?: string;
|
|
56
|
+
model?: ModelMetadata;
|
|
57
|
+
startedAt: string;
|
|
58
|
+
endedAt: string;
|
|
59
|
+
durationMs: number;
|
|
60
|
+
status: TraceStatus;
|
|
61
|
+
attributes: JsonObject;
|
|
62
|
+
annotations: TraceAnnotation[];
|
|
63
|
+
spans: TraceSpan[];
|
|
64
|
+
usage?: ModelUsage;
|
|
65
|
+
cost?: TraceCost;
|
|
66
|
+
content?: TraceContent[];
|
|
67
|
+
}
|
|
68
|
+
interface CostCalculatorInput {
|
|
69
|
+
modelRegistryName: string;
|
|
70
|
+
model?: ModelMetadata;
|
|
71
|
+
usage: ModelUsage;
|
|
72
|
+
}
|
|
73
|
+
type CostCalculator = (input: CostCalculatorInput) => TraceCost | undefined;
|
|
74
|
+
interface TraceRedactorInput {
|
|
75
|
+
kind: TraceContentKind;
|
|
76
|
+
value: JsonValue;
|
|
77
|
+
}
|
|
78
|
+
type TraceRedactor = (input: TraceRedactorInput) => JsonValue | undefined;
|
|
79
|
+
interface TraceContentPolicy {
|
|
80
|
+
include: readonly TraceContentKind[];
|
|
81
|
+
redact?: TraceRedactor;
|
|
82
|
+
}
|
|
83
|
+
interface TraceExporter {
|
|
84
|
+
export(trace: Readonly<RunTrace>): void | Promise<void>;
|
|
85
|
+
}
|
|
86
|
+
interface TraceExportQueueOptions {
|
|
87
|
+
/** Traces exported at once. Defaults to 4. */
|
|
88
|
+
concurrency?: number;
|
|
89
|
+
/** Traces waiting for an export slot before new traces are dropped. Defaults to 100. */
|
|
90
|
+
maxQueued?: number;
|
|
91
|
+
/** Deadline for each exporter call. Defaults to 30 seconds. */
|
|
92
|
+
timeoutMs?: number;
|
|
93
|
+
/** Failures retained for the next `flushObservability` call. Defaults to 100. */
|
|
94
|
+
maxFailures?: number;
|
|
95
|
+
}
|
|
96
|
+
/** Queue and failure counters for the runtime's trace exporters. */
|
|
97
|
+
interface ObservabilityStats {
|
|
98
|
+
/** Traces exported successfully since the runtime started. */
|
|
99
|
+
exported: number;
|
|
100
|
+
/** Failed exports and dropped traces since the runtime started. */
|
|
101
|
+
failed: number;
|
|
102
|
+
/** Traces dropped because the queue was full. */
|
|
103
|
+
dropped: number;
|
|
104
|
+
/** Traces waiting for an export slot. */
|
|
105
|
+
queued: number;
|
|
106
|
+
/** Traces currently being exported. */
|
|
107
|
+
active: number;
|
|
108
|
+
/** Failures retained for the next flush. */
|
|
109
|
+
retainedFailures: number;
|
|
110
|
+
}
|
|
111
|
+
interface ObservabilityOptions {
|
|
112
|
+
exporters: readonly TraceExporter[];
|
|
113
|
+
calculateCost?: CostCalculator;
|
|
114
|
+
content?: TraceContentPolicy;
|
|
115
|
+
exportQueue?: TraceExportQueueOptions;
|
|
116
|
+
}
|
|
117
|
+
//#endregion
|
|
118
|
+
export { TraceSpanKind as _, RunTrace as a, TraceContentKind as c, TraceExportQueueOptions as d, TraceExporter as f, TraceSpan as g, TraceRunKind as h, ObservabilityStats as i, TraceContentPolicy as l, TraceRedactorInput as m, CostCalculatorInput as n, TraceAnnotation as o, TraceRedactor as p, ObservabilityOptions as r, TraceContent as s, CostCalculator as t, TraceCost as u, TraceStatus as v };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as ExactDefinition } from "./exact-definition-NHBBFlFR.mjs";
|
|
2
|
-
import { f as RunId, l as JsonValue, o as ExecutionContext, s as JsonObject } from "./types-
|
|
3
|
-
import {
|
|
2
|
+
import { f as RunId, l as JsonValue, o as ExecutionContext, s as JsonObject } from "./types-B8laW1hM.mjs";
|
|
3
|
+
import { L as SessionId, M as RunRequest, N as RunResult, n as AgentLimits } from "./index-CzAi2Y_Z.mjs";
|
|
4
4
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
5
5
|
//#region src/workflows/workflow.d.ts
|
|
6
6
|
/** Context shared with workflow steps and compensation handlers. */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as ExactDefinition } from "./exact-definition-NHBBFlFR.mjs";
|
|
2
|
-
import { f as RunId, i as AgentMessage, l as JsonValue, o as ExecutionContext, s as JsonObject, t as AgentEvent } from "./types-
|
|
3
|
-
import { c as ReasoningEffort, i as ModelRef, l as ToolChoice, r as ModelMetadata, s as ModelUsage } from "./index-
|
|
2
|
+
import { f as RunId, i as AgentMessage, l as JsonValue, o as ExecutionContext, s as JsonObject, t as AgentEvent } from "./types-B8laW1hM.mjs";
|
|
3
|
+
import { c as ReasoningEffort, i as ModelRef, l as ToolChoice, r as ModelMetadata, s as ModelUsage } from "./index-BgKFd9yw.mjs";
|
|
4
4
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
5
5
|
//#region src/runtime/run-store.d.ts
|
|
6
6
|
/** Stable identifier for conversation history shared across runs. */
|
|
@@ -110,7 +110,14 @@ type EventResolution = {
|
|
|
110
110
|
};
|
|
111
111
|
};
|
|
112
112
|
type ResumeRunResolution = ElicitationResolution | ApprovalResolution | ToolExecutionResolution | TimerResolution | EventResolution;
|
|
113
|
-
|
|
113
|
+
/** Correlation fields for runs created by a workflow or team coordinator. */
|
|
114
|
+
interface RunCorrelation {
|
|
115
|
+
/** Run that created this one. */
|
|
116
|
+
parentRunId?: RunId;
|
|
117
|
+
/** Top-level run in the correlation tree. */
|
|
118
|
+
rootRunId?: RunId;
|
|
119
|
+
}
|
|
120
|
+
interface AgentRun<TOutput = JsonValue> extends RunCorrelation {
|
|
114
121
|
kind?: 'agent';
|
|
115
122
|
id: RunId;
|
|
116
123
|
sessionId: SessionId;
|
|
@@ -129,7 +136,7 @@ interface AgentRun<TOutput = JsonValue> {
|
|
|
129
136
|
error?: string;
|
|
130
137
|
usage?: ModelUsage;
|
|
131
138
|
}
|
|
132
|
-
interface WorkflowRun<TOutput = JsonValue> {
|
|
139
|
+
interface WorkflowRun<TOutput = JsonValue> extends RunCorrelation {
|
|
133
140
|
kind: 'workflow';
|
|
134
141
|
id: RunId;
|
|
135
142
|
sessionId: SessionId;
|
|
@@ -145,7 +152,7 @@ interface WorkflowRun<TOutput = JsonValue> {
|
|
|
145
152
|
error?: string;
|
|
146
153
|
usage?: ModelUsage;
|
|
147
154
|
}
|
|
148
|
-
interface TeamRun<TOutput = JsonValue> {
|
|
155
|
+
interface TeamRun<TOutput = JsonValue> extends RunCorrelation {
|
|
149
156
|
kind: 'team';
|
|
150
157
|
id: RunId;
|
|
151
158
|
sessionId: SessionId;
|
|
@@ -457,4 +464,4 @@ interface AgentDefinition<TInput = unknown, TOutput = unknown> {
|
|
|
457
464
|
}
|
|
458
465
|
declare function defineAgent<T extends AgentDefinition>(agent: ExactDefinition<T, AgentDefinition>): T;
|
|
459
466
|
//#endregion
|
|
460
|
-
export {
|
|
467
|
+
export { validateListEventsOptions as $, RunPause as A, TeamRun as B, PurgeRunsResult as C, RunCheckpoint as D, RetainableRunStore as E, RunStore as F, WorkflowBudgetUsage as G, ToolExecutionRecord as H, Session as I, WorkflowRun as J, WorkflowCheckpoint as K, SessionId as L, RunRequest as M, RunResult as N, RunCorrelation as O, RunStatus as P, isRetainableRunStore as Q, StoredRunCheckpoint as R, PurgeRunsOptions as S, RetainableRunStatus as T, ToolExecutionResolution as U, TimerResolution as V, ToolExecutionStatus as W, WorkflowWaitRecord as X, WorkflowStepRecord as Y, isDurableRunStore as Z, EventResolution as _, AgentRun as a, ListEventsOptions as b, ApprovalRequest as c, CoordinatorRun as d, validatePurgeRunsOptions as et, CredentialStore as f, ElicitationResolution as g, ElicitationRequest as h, InMemoryRunStore as i, RunRecord as j, RunLease as k, ApprovalResolution as l, ElicitationMode as m, AgentLimits as n, AgentRunPause as o, DurableRunStore as p, WorkflowCompensationRecord as q, defineAgent as r, ApprovalMode as s, AgentDefinition as t, CoordinatorCheckpoint as u, ExecutionCommit as v, ResumeRunResolution as w, PendingToolExecution as x, ExecutionCreate as y, TeamCheckpoint as z };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { f as RunId, o as ExecutionContext, s as JsonObject, t as AgentEvent } from "./types-
|
|
2
|
-
import {
|
|
3
|
-
import { t as Fevex } from "./fevex-
|
|
1
|
+
import { f as RunId, o as ExecutionContext, s as JsonObject, t as AgentEvent } from "./types-B8laW1hM.mjs";
|
|
2
|
+
import { L as SessionId, a as AgentRun, h as ElicitationRequest } from "./index-CzAi2Y_Z.mjs";
|
|
3
|
+
import { t as Fevex } from "./fevex-B4QY5Z6e.mjs";
|
|
4
4
|
//#region src/channels/channel.d.ts
|
|
5
5
|
interface ChannelMessage {
|
|
6
6
|
id: string;
|
package/dist/index.d.mts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { A as ArtifactError, C as FileSystemArtifactStore, D as ArtifactCatalog, E as CatalogedArtifactStoreOptions, F as ArtifactStore, I as ArtifactStoreContext, L as ArtifactWrite, M as ArtifactId, N as ArtifactQuery, O as ArtifactContent, P as ArtifactRecord, R as artifactTenantId, S as InMemoryArtifactCatalog, T as CatalogedArtifactStore, _ as S3ArtifactStore, a as AgentMessageRole, b as InMemoryArtifactStore, c as JsonPrimitive, d as PROVIDER_SCHEMA_UNSUPPORTED, f as RunId, g as ToolSpec, h as ToolEventSource, i as AgentMessage, j as ArtifactErrorCode, k as ArtifactDescriptor, l as JsonValue, m as ToolCall, n as AgentEventPayloads, o as ExecutionContext, p as SCHEMA_NOT_TRANSPORTABLE, r as AgentEventType, s as JsonObject, t as AgentEvent, u as PROVIDER_REASONING_UNSUPPORTED, v as S3ArtifactStoreOptions, w as FileSystemArtifactStoreOptions, x as InMemoryArtifactStoreOptions, y as S3ObjectClient, z as assertArtifactId } from "./types-
|
|
2
|
-
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-
|
|
3
|
-
import { $ as
|
|
4
|
-
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-
|
|
5
|
-
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-
|
|
6
|
-
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-
|
|
7
|
-
import { i as definePolicy, n as PolicyDecision, r as PolicyDefinition, t as PolicyAuthorization } from "./index-
|
|
8
|
-
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-
|
|
9
|
-
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-
|
|
10
|
-
import { a as FevexLimits, i as FevexConfig, n as FevexAdmission, o as
|
|
11
|
-
import { a as ChannelDeliveryOptions, c as ChannelEvent, d as ChannelMessage, f as ChannelOutput, h as ChannelRunResult, i as ChannelContext, l as ChannelEventType, m as ChannelRunOptions, n as handleChannelInput, o as ChannelElicitationContext, p as ChannelRunEvent, r as ChannelAdapter, s as ChannelError, t as deliverChannelRun, u as ChannelFailurePhase } from "./index
|
|
1
|
+
import { A as ArtifactError, C as FileSystemArtifactStore, D as ArtifactCatalog, E as CatalogedArtifactStoreOptions, F as ArtifactStore, I as ArtifactStoreContext, L as ArtifactWrite, M as ArtifactId, N as ArtifactQuery, O as ArtifactContent, P as ArtifactRecord, R as artifactTenantId, S as InMemoryArtifactCatalog, T as CatalogedArtifactStore, _ as S3ArtifactStore, a as AgentMessageRole, b as InMemoryArtifactStore, c as JsonPrimitive, d as PROVIDER_SCHEMA_UNSUPPORTED, f as RunId, g as ToolSpec, h as ToolEventSource, i as AgentMessage, j as ArtifactErrorCode, k as ArtifactDescriptor, l as JsonValue, m as ToolCall, n as AgentEventPayloads, o as ExecutionContext, p as SCHEMA_NOT_TRANSPORTABLE, r as AgentEventType, s as JsonObject, t as AgentEvent, u as PROVIDER_REASONING_UNSUPPORTED, v as S3ArtifactStoreOptions, w as FileSystemArtifactStoreOptions, x as InMemoryArtifactStoreOptions, y as S3ObjectClient, z as assertArtifactId } from "./types-B8laW1hM.mjs";
|
|
2
|
+
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";
|
|
3
|
+
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, n as AgentLimits, o as AgentRunPause, p as DurableRunStore, q as WorkflowCompensationRecord, r as defineAgent, s as ApprovalMode, t as AgentDefinition, u as CoordinatorCheckpoint, v as ExecutionCommit, w as ResumeRunResolution, x as PendingToolExecution, y as ExecutionCreate, z as TeamCheckpoint } from "./index-CzAi2Y_Z.mjs";
|
|
4
|
+
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";
|
|
5
|
+
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";
|
|
6
|
+
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";
|
|
7
|
+
import { i as definePolicy, n as PolicyDecision, r as PolicyDefinition, t as PolicyAuthorization } from "./index-CbACw6xZ.mjs";
|
|
8
|
+
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";
|
|
9
|
+
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";
|
|
10
|
+
import { a as FevexLimits, c as createFevex, i as FevexConfig, n as FevexAdmission, o as FevexShutdownOptions, r as FevexAdmissionRequest, s as FevexShutdownResult, t as Fevex } from "./fevex-B4QY5Z6e.mjs";
|
|
11
|
+
import { a as ChannelDeliveryOptions, c as ChannelEvent, d as ChannelMessage, f as ChannelOutput, h as ChannelRunResult, i as ChannelContext, l as ChannelEventType, m as ChannelRunOptions, n as handleChannelInput, o as ChannelElicitationContext, p as ChannelRunEvent, r as ChannelAdapter, s as ChannelError, t as deliverChannelRun, u as ChannelFailurePhase } from "./index-DVw0zOc_.mjs";
|
|
12
12
|
//#region src/configuration-error.d.ts
|
|
13
13
|
/**
|
|
14
14
|
* Composition error codes.
|
|
@@ -25,7 +25,7 @@ declare class FevexConfigurationError extends Error {
|
|
|
25
25
|
}
|
|
26
26
|
//#endregion
|
|
27
27
|
//#region src/run-error.d.ts
|
|
28
|
-
type FevexRunErrorCode = 'INVALID_CURSOR' | 'AGENT_NOT_FOUND' | 'WORKFLOW_NOT_FOUND' | 'TEAM_NOT_FOUND' | 'MODEL_NOT_FOUND' | 'SESSION_NOT_FOUND' | 'DURABLE_STORE_REQUIRED' | 'RUN_CONFLICT' | 'RUN_NOT_RESUMABLE' | 'RUN_NOT_RECOVERABLE' | 'CHECKPOINT_UNSUPPORTED' | 'RUN_DEFINITION_CHANGED' | 'POLICY_DENIED' | 'ADMISSION_DENIED' | 'RETENTION_UNSUPPORTED' | 'EVENT_LIMIT_EXCEEDED' | 'CREDENTIAL_NOT_FOUND' | 'SANDBOX_REQUIRED' | 'ELICITATION_INVALID' | 'APPROVAL_INVALID' | 'RUN_PAUSED' | 'TOOL_EXECUTION_UNKNOWN';
|
|
28
|
+
type FevexRunErrorCode = 'INVALID_CURSOR' | 'AGENT_NOT_FOUND' | 'WORKFLOW_NOT_FOUND' | 'TEAM_NOT_FOUND' | 'MODEL_NOT_FOUND' | 'SESSION_NOT_FOUND' | 'DURABLE_STORE_REQUIRED' | 'RUN_CONFLICT' | 'RUN_NOT_RESUMABLE' | 'RUN_NOT_RECOVERABLE' | 'CHECKPOINT_UNSUPPORTED' | 'RUN_DEFINITION_CHANGED' | 'POLICY_DENIED' | 'ADMISSION_DENIED' | 'RUNTIME_CLOSED' | 'RETENTION_UNSUPPORTED' | 'EVENT_LIMIT_EXCEEDED' | 'CREDENTIAL_NOT_FOUND' | 'SANDBOX_REQUIRED' | 'ELICITATION_INVALID' | 'APPROVAL_INVALID' | 'RUN_PAUSED' | 'TOOL_EXECUTION_UNKNOWN';
|
|
29
29
|
declare class FevexRunError extends Error {
|
|
30
30
|
readonly code: FevexRunErrorCode;
|
|
31
31
|
readonly runId?: RunId | undefined;
|
|
@@ -39,4 +39,4 @@ declare class RunPausedError extends FevexRunError {
|
|
|
39
39
|
constructor(runId: RunId, pause: RunPause);
|
|
40
40
|
}
|
|
41
41
|
//#endregion
|
|
42
|
-
export { AgentDefinition, AgentEvent, AgentEventPayloads, AgentEventType, AgentLimits, AgentMessage, AgentMessageRole, AgentRun, AgentRunPause, ApprovalMode, ApprovalRequest, ApprovalResolution, ArtifactCatalog, ArtifactContent, ArtifactDescriptor, ArtifactError, ArtifactErrorCode, ArtifactId, ArtifactQuery, ArtifactRecord, ArtifactStore, ArtifactStoreContext, ArtifactWrite, CatalogedArtifactStore, CatalogedArtifactStoreOptions, ChannelAdapter, ChannelContext, ChannelDeliveryOptions, ChannelElicitationContext, ChannelError, ChannelEvent, ChannelEventType, ChannelFailurePhase, ChannelMessage, ChannelOutput, ChannelRunEvent, ChannelRunOptions, ChannelRunResult, ConnectionDefinition, ConnectionToolPolicy, ContextBlock, ContextProvider, CoordinatorCheckpoint, CoordinatorRun, CredentialStore, DurableRunStore, ElicitationMode, ElicitationRequest, ElicitationResolution, EventResolution, ExecutionCommit, ExecutionContext, ExecutionCreate, FEVEX_JSON_SCHEMA_PROFILE_VERSION, Fevex, FevexAdmission, FevexAdmissionRequest, FevexConfig, FevexConfigurationError, FevexConfigurationErrorCode, FevexJsonSchemaProfileLimits, FevexJsonSchemaProfileOptions, FevexJsonSchemaValidator, FevexLimits, FevexRunError, FevexRunErrorCode, FileSystemArtifactStore, FileSystemArtifactStoreOptions, InMemoryArtifactCatalog, InMemoryArtifactStore, InMemoryArtifactStoreOptions, InMemoryMemoryStore, InMemoryRunStore, IntegrationError, IntegrationErrorCategory, JsonObject, JsonPrimitive, JsonValue, KnowledgeContext, ListEventsOptions, LocalSandboxOptions, MemoryQuery, MemoryRecord, MemoryStore, MemoryWrite, ModelGateway, ModelInput, ModelMetadata, ModelRef, ModelResult, ModelStreamEvent, ModelUsage, PROVIDER_REASONING_UNSUPPORTED, PROVIDER_SCHEMA_UNSUPPORTED, PendingToolExecution, PolicyAuthorization, PolicyDecision, PolicyDefinition, PurgeRunsOptions, PurgeRunsResult, ReasoningEffort, ResumeRunResolution, RetainableRunStatus, RetainableRunStore, RunCheckpoint, RunId, RunLease, RunPause, RunPausedError, RunRecord, RunRequest, RunResult, RunStatus, RunStore, S3ArtifactStore, S3ArtifactStoreOptions, S3ObjectClient, SCHEMA_NOT_TRANSPORTABLE, Sandbox, SandboxCapabilities, SandboxError, SandboxRunRequest, SandboxRunResult, Session, SessionId, SkillDefinition, StoredRunCheckpoint, TeamCheckpoint, type TeamDefinition, type TeamDelegation, type TeamHandoff, type TeamLimits, type TeamMember, TeamRun, type TeamStep, type TeamTaskResult, TimerResolution, ToolApproval, ToolCall, ToolChoice, ToolDefinition, ToolEventSource, ToolExecutionContext, ToolExecutionRecord, ToolExecutionResolution, ToolExecutionStatus, ToolIdempotency, ToolProvider, ToolProviderContext, ToolProviderTool, ToolResult, ToolRetryPolicy, ToolRisk, ToolSpec, WorkflowAgentResult, WorkflowBudgetUsage, WorkflowCheckpoint, WorkflowCompensationRecord, WorkflowDefinition, WorkflowEventDefinition, WorkflowEventResult, WorkflowRun, WorkflowStep, WorkflowStepContext, WorkflowStepOptions, WorkflowStepRecord, WorkflowWaitRecord, artifactTenantId, assertArtifactId, compileFevexJsonSchema, createFevex, createLocalSandbox, createMemoryContextProvider, defineAgent, defineConnection, defineContextProvider, definePolicy, defineSkill, defineTeam, defineTool, defineWorkflow, deliverChannelRun, handleChannelInput, isDurableRunStore, isRetainableRunStore, sandboxResultToJson, toToolSpec, validateFevexJsonSchemaProfile, validateListEventsOptions, validatePurgeRunsOptions };
|
|
42
|
+
export { AgentDefinition, AgentEvent, AgentEventPayloads, AgentEventType, AgentLimits, AgentMessage, AgentMessageRole, AgentRun, AgentRunPause, ApprovalMode, ApprovalRequest, ApprovalResolution, ArtifactCatalog, ArtifactContent, ArtifactDescriptor, ArtifactError, ArtifactErrorCode, ArtifactId, ArtifactQuery, ArtifactRecord, ArtifactStore, ArtifactStoreContext, ArtifactWrite, CatalogedArtifactStore, CatalogedArtifactStoreOptions, ChannelAdapter, ChannelContext, ChannelDeliveryOptions, ChannelElicitationContext, ChannelError, ChannelEvent, ChannelEventType, ChannelFailurePhase, ChannelMessage, ChannelOutput, ChannelRunEvent, ChannelRunOptions, ChannelRunResult, ConnectionDefinition, ConnectionToolPolicy, ContextBlock, ContextProvider, CoordinatorCheckpoint, CoordinatorRun, CredentialStore, DurableRunStore, ElicitationMode, ElicitationRequest, ElicitationResolution, EventResolution, ExecutionCommit, ExecutionContext, ExecutionCreate, FEVEX_JSON_SCHEMA_PROFILE_VERSION, Fevex, FevexAdmission, FevexAdmissionRequest, FevexConfig, FevexConfigurationError, FevexConfigurationErrorCode, FevexJsonSchemaProfileLimits, FevexJsonSchemaProfileOptions, FevexJsonSchemaValidator, FevexLimits, FevexRunError, FevexRunErrorCode, FevexShutdownOptions, FevexShutdownResult, FileSystemArtifactStore, FileSystemArtifactStoreOptions, InMemoryArtifactCatalog, InMemoryArtifactStore, InMemoryArtifactStoreOptions, InMemoryMemoryStore, InMemoryRunStore, IntegrationError, IntegrationErrorCategory, JsonObject, JsonPrimitive, JsonValue, KnowledgeContext, ListEventsOptions, LocalSandboxOptions, MemoryQuery, MemoryRecord, MemoryStore, MemoryWrite, ModelGateway, ModelInput, ModelMetadata, ModelRef, ModelResult, ModelStreamEvent, ModelUsage, PROVIDER_REASONING_UNSUPPORTED, PROVIDER_SCHEMA_UNSUPPORTED, PendingToolExecution, PolicyAuthorization, PolicyDecision, PolicyDefinition, PurgeRunsOptions, PurgeRunsResult, ReasoningEffort, ResumeRunResolution, RetainableRunStatus, RetainableRunStore, RunCheckpoint, RunCorrelation, RunId, RunLease, RunPause, RunPausedError, RunRecord, RunRequest, RunResult, RunStatus, RunStore, S3ArtifactStore, S3ArtifactStoreOptions, S3ObjectClient, SCHEMA_NOT_TRANSPORTABLE, Sandbox, SandboxCapabilities, SandboxError, SandboxRunRequest, SandboxRunResult, Session, SessionId, SkillDefinition, StoredRunCheckpoint, TeamCheckpoint, type TeamDefinition, type TeamDelegation, type TeamHandoff, type TeamLimits, type TeamMember, TeamRun, type TeamStep, type TeamTaskResult, TimerResolution, ToolApproval, ToolCall, ToolChoice, ToolDefinition, ToolEventSource, ToolExecutionContext, ToolExecutionRecord, ToolExecutionResolution, ToolExecutionStatus, ToolIdempotency, ToolProvider, ToolProviderContext, ToolProviderTool, ToolResult, ToolRetryPolicy, ToolRisk, ToolSpec, WorkflowAgentResult, WorkflowBudgetUsage, WorkflowCheckpoint, WorkflowCompensationRecord, WorkflowDefinition, WorkflowEventDefinition, WorkflowEventResult, WorkflowRun, WorkflowStep, WorkflowStepContext, WorkflowStepOptions, WorkflowStepRecord, WorkflowWaitRecord, artifactTenantId, assertArtifactId, compileFevexJsonSchema, createFevex, createLocalSandbox, createMemoryContextProvider, defineAgent, defineConnection, defineContextProvider, definePolicy, defineSkill, defineTeam, defineTool, defineWorkflow, deliverChannelRun, handleChannelInput, isDurableRunStore, isRetainableRunStore, sandboxResultToJson, toToolSpec, validateFevexJsonSchemaProfile, validateListEventsOptions, validatePurgeRunsOptions };
|