@fevex/core 0.1.0-alpha.6 → 0.1.0-alpha.8
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 +47 -0
- package/dist/agents/index.d.mts +2 -2
- 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-B4QY5Z6e.d.mts → fevex-DB0-k1fb.d.mts} +14 -10
- package/dist/http/index.d.mts +4 -4
- package/dist/{index-CzAi2Y_Z.d.mts → index-B8molngu.d.mts} +92 -3
- package/dist/{index-BgKFd9yw.d.mts → index-BfYzemR8.d.mts} +1 -1
- package/dist/{index-CbACw6xZ.d.mts → index-Bl0hR7EC.d.mts} +2 -2
- package/dist/index-CAyAoOW0.d.mts +116 -0
- package/dist/{index-Df84VWmN.d.mts → index-CL7mu_x9.d.mts} +1 -1
- package/dist/{index-1cHr7KB_.d.mts → index-CODYPevS.d.mts} +3 -3
- package/dist/{index-CpLDt6Rw.d.mts → index-CecXoEbs.d.mts} +3 -3
- package/dist/{index-DVw0zOc_.d.mts → index-CuaetTLQ.d.mts} +3 -3
- package/dist/{index-5p3q2yIp.d.mts → index-DtMxzCqj.d.mts} +2 -2
- package/dist/{index-CseuTR-F.d.mts → index-RKE3-CKs.d.mts} +2 -2
- package/dist/index.d.mts +13 -13
- package/dist/index.mjs +311 -24
- package/dist/knowledge/index.d.mts +2 -2
- package/dist/knowledge/index.mjs +236 -36
- package/dist/models/index.d.mts +1 -1
- package/dist/observability/index.d.mts +1 -1
- package/dist/policies/index.d.mts +1 -1
- package/dist/runtime/index.d.mts +2 -2
- package/dist/runtime/index.mjs +105 -1
- 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-B8laW1hM.d.mts → types-CckDlhYo.d.mts} +15 -1
- package/dist/workflows/index.d.mts +1 -1
- package/package.json +1 -1
- package/dist/index-BJktlD4E.d.mts +0 -70
package/README.md
CHANGED
|
@@ -430,6 +430,7 @@ run.started
|
|
|
430
430
|
model.started
|
|
431
431
|
model.output.delta
|
|
432
432
|
model.completed
|
|
433
|
+
context.compacted
|
|
433
434
|
tool.started
|
|
434
435
|
tool.completed
|
|
435
436
|
tool.failed
|
|
@@ -500,6 +501,25 @@ summary when needed:
|
|
|
500
501
|
await app.compactSession(first.sessionId, 'Account 42 is active.');
|
|
501
502
|
```
|
|
502
503
|
|
|
504
|
+
Automatic compaction is opt-in through a context budget:
|
|
505
|
+
|
|
506
|
+
```ts
|
|
507
|
+
const support = defineAgent({
|
|
508
|
+
name: 'support',
|
|
509
|
+
instructions: 'Answer clearly.',
|
|
510
|
+
contextBudget: { contextWindow: 128_000, reserveOutputTokens: 8_000 },
|
|
511
|
+
});
|
|
512
|
+
```
|
|
513
|
+
|
|
514
|
+
Before each model call, Fevex estimates the prompt. Above 80% of the usable
|
|
515
|
+
window it replaces older completed turns with a summary, keeps system
|
|
516
|
+
instructions, the current request and the latest tool batch intact, and emits
|
|
517
|
+
`context.compacted`. The summary is cached on the session and reused across
|
|
518
|
+
runs; the original history is not rewritten. Use `compaction.compactor` to
|
|
519
|
+
inject a summarizer; the default is a deterministic digest.
|
|
520
|
+
`limits.maxInputTokens` is still the cumulative spend cap, while
|
|
521
|
+
`contextBudget.contextWindow` is the model context window.
|
|
522
|
+
|
|
503
523
|
Use `startAgent` when execution must continue without consuming a stream:
|
|
504
524
|
|
|
505
525
|
```ts
|
|
@@ -978,6 +998,33 @@ const app = createFevex({
|
|
|
978
998
|
});
|
|
979
999
|
```
|
|
980
1000
|
|
|
1001
|
+
For longer instructions, keep them in an explicit `SKILL.md` file. Only the
|
|
1002
|
+
frontmatter metadata enters the prompt; the body loads on demand:
|
|
1003
|
+
|
|
1004
|
+
```ts
|
|
1005
|
+
import { createAgentsMdContextProvider, loadSkillFile } from '@fevex/core';
|
|
1006
|
+
|
|
1007
|
+
const refunds = await loadSkillFile('./skills/refunds/SKILL.md');
|
|
1008
|
+
|
|
1009
|
+
const app = createFevex({
|
|
1010
|
+
models,
|
|
1011
|
+
contextProviders: [refunds, createAgentsMdContextProvider('./AGENTS.md')],
|
|
1012
|
+
agents: [
|
|
1013
|
+
defineAgent({
|
|
1014
|
+
name: 'support',
|
|
1015
|
+
instructions: 'Answer with business context.',
|
|
1016
|
+
skills: ['refunds'],
|
|
1017
|
+
context: ['agents-md'],
|
|
1018
|
+
}),
|
|
1019
|
+
],
|
|
1020
|
+
});
|
|
1021
|
+
```
|
|
1022
|
+
|
|
1023
|
+
`SKILL.md` uses `name` and `description` frontmatter. The reserved
|
|
1024
|
+
`fevex__load_skill` tool loads the body and lists files under `references/`,
|
|
1025
|
+
`scripts/` and `assets/`; scripts are not executed by the runtime. Paths are
|
|
1026
|
+
explicit, with no automatic discovery.
|
|
1027
|
+
|
|
981
1028
|
Context providers are lazy per run. Memory is a replaceable store; the built-in
|
|
982
1029
|
store is in-memory substring search, not embeddings, vector search or durable
|
|
983
1030
|
storage.
|
package/dist/agents/index.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as AgentLimits, r as
|
|
2
|
-
export { AgentDefinition, AgentLimits, defineAgent };
|
|
1
|
+
import { i as defineAgent, n as AgentLimits, r as ContextBudget, t as AgentDefinition } from "../index-B8molngu.mjs";
|
|
2
|
+
export { AgentDefinition, AgentLimits, ContextBudget, 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-CckDlhYo.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-CuaetTLQ.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 { t as CostCalculator, u as TraceCost } from "../index-
|
|
4
|
-
import { t as Fevex } from "../fevex-
|
|
1
|
+
import { l as JsonValue, o as ExecutionContext, t as AgentEvent } from "../types-CckDlhYo.mjs";
|
|
2
|
+
import { r as ModelMetadata, s as ModelUsage } from "../index-BfYzemR8.mjs";
|
|
3
|
+
import { t as CostCalculator, u as TraceCost } from "../index-CecXoEbs.mjs";
|
|
4
|
+
import { t as Fevex } from "../fevex-DB0-k1fb.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 {
|
|
5
|
-
import { i as ObservabilityStats, 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-CckDlhYo.mjs";
|
|
2
|
+
import { t as ModelGateway } from "./index-BfYzemR8.mjs";
|
|
3
|
+
import { A as ListEventsOptions, G as RunStore, H as RunRequest, J as SessionId, K as Session, M as PurgeRunsOptions, N as PurgeRunsResult, P as ResumeRunResolution, S as CredentialStore, U as RunResult, V as RunRecord, Z as TeamRun, at as WorkflowRun, h as AgentRun, r as ContextBudget, s as ContextCompactionOptions, t as AgentDefinition } from "./index-B8molngu.mjs";
|
|
4
|
+
import { c as ContextProvider, f as MemoryStore } from "./index-CAyAoOW0.mjs";
|
|
5
|
+
import { i as ObservabilityStats, r as ObservabilityOptions } from "./index-CecXoEbs.mjs";
|
|
6
|
+
import { r as Sandbox } from "./index-CL7mu_x9.mjs";
|
|
7
|
+
import { g as ToolDefinition, s as ConnectionDefinition } from "./index-DtMxzCqj.mjs";
|
|
8
|
+
import { r as PolicyDefinition } from "./index-Bl0hR7EC.mjs";
|
|
9
|
+
import { n as WorkflowDefinition } from "./index-RKE3-CKs.mjs";
|
|
10
|
+
import { t as TeamDefinition } from "./index-CODYPevS.mjs";
|
|
11
11
|
//#region src/fevex.d.ts
|
|
12
12
|
interface FevexAdmissionRequest {
|
|
13
13
|
kind: 'agent' | 'workflow' | 'team';
|
|
@@ -62,6 +62,10 @@ interface FevexConfig {
|
|
|
62
62
|
tools?: ToolDefinition[];
|
|
63
63
|
connections?: ConnectionDefinition[];
|
|
64
64
|
contextProviders?: ContextProvider[];
|
|
65
|
+
/** Default context budget for agents that do not declare one. */
|
|
66
|
+
contextBudget?: ContextBudget;
|
|
67
|
+
/** Optional context compactor and token estimator. */
|
|
68
|
+
compaction?: ContextCompactionOptions;
|
|
65
69
|
memoryStore?: MemoryStore;
|
|
66
70
|
runStore?: RunStore;
|
|
67
71
|
credentialStore?: CredentialStore;
|
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-CckDlhYo.mjs";
|
|
2
|
+
import { c as ReasoningEffort } from "../index-BfYzemR8.mjs";
|
|
3
|
+
import { J as SessionId, V as RunRecord, Z as TeamRun, at as WorkflowRun, h as AgentRun } from "../index-B8molngu.mjs";
|
|
4
|
+
import { t as Fevex } from "../fevex-DB0-k1fb.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";
|
|
@@ -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, g as ToolSpec, i as AgentMessage, l as JsonValue, o as ExecutionContext, s as JsonObject, t as AgentEvent } from "./types-CckDlhYo.mjs";
|
|
3
|
+
import { c as ReasoningEffort, i as ModelRef, l as ToolChoice, r as ModelMetadata, s as ModelUsage } from "./index-BfYzemR8.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. */
|
|
@@ -170,11 +170,19 @@ interface TeamRun<TOutput = JsonValue> extends RunCorrelation {
|
|
|
170
170
|
}
|
|
171
171
|
type CoordinatorRun<TOutput = JsonValue> = WorkflowRun<TOutput> | TeamRun<TOutput>;
|
|
172
172
|
type RunRecord<TOutput = unknown> = AgentRun<TOutput> | WorkflowRun<TOutput> | TeamRun<TOutput>;
|
|
173
|
+
interface SessionCompaction {
|
|
174
|
+
/** Derived summary for the first `coveredMessages` history entries. */
|
|
175
|
+
summary: string;
|
|
176
|
+
coveredMessages: number;
|
|
177
|
+
updatedAt: string;
|
|
178
|
+
}
|
|
173
179
|
interface Session {
|
|
174
180
|
/** Optimistic history revision. Missing on legacy sessions means zero. Store-managed. */
|
|
175
181
|
revision?: number;
|
|
176
182
|
id: SessionId;
|
|
177
183
|
history: AgentMessage[];
|
|
184
|
+
/** Reusable summary; the original history remains the source of truth. */
|
|
185
|
+
compaction?: SessionCompaction;
|
|
178
186
|
createdAt: string;
|
|
179
187
|
updatedAt: string;
|
|
180
188
|
}
|
|
@@ -246,6 +254,7 @@ interface RunCheckpoint {
|
|
|
246
254
|
reasoning?: ReasoningEffort;
|
|
247
255
|
definitionHash: string;
|
|
248
256
|
limits?: AgentLimits;
|
|
257
|
+
contextBudget?: ContextBudget;
|
|
249
258
|
messages: AgentMessage[];
|
|
250
259
|
inputContent: string;
|
|
251
260
|
context?: ExecutionContext;
|
|
@@ -392,6 +401,7 @@ interface RunRequest<TInput = unknown, TOutput = unknown> {
|
|
|
392
401
|
reasoning?: ReasoningEffort;
|
|
393
402
|
context?: ExecutionContext;
|
|
394
403
|
limits?: AgentLimits;
|
|
404
|
+
contextBudget?: ContextBudget;
|
|
395
405
|
elicitation?: ElicitationMode;
|
|
396
406
|
approvalMode?: ApprovalMode;
|
|
397
407
|
toolChoice?: ToolChoice;
|
|
@@ -408,6 +418,68 @@ interface RunResult<TOutput = unknown> {
|
|
|
408
418
|
usage?: ModelUsage;
|
|
409
419
|
}
|
|
410
420
|
//#endregion
|
|
421
|
+
//#region src/runtime/compaction.d.ts
|
|
422
|
+
/** Estimates the input tokens of messages and tool definitions. */
|
|
423
|
+
type ContextTokenEstimator = (input: {
|
|
424
|
+
messages: AgentMessage[];
|
|
425
|
+
tools?: ToolSpec[];
|
|
426
|
+
}) => number;
|
|
427
|
+
interface ContextCompactionInput {
|
|
428
|
+
agentName: string;
|
|
429
|
+
sessionId: SessionId;
|
|
430
|
+
/** Older turns and earlier tool batches; system prefix, current request and latest batch are preserved. */
|
|
431
|
+
messages: AgentMessage[];
|
|
432
|
+
tools?: ToolSpec[];
|
|
433
|
+
/** Estimated tokens of the whole prompt before compaction. */
|
|
434
|
+
estimatedTokens: number;
|
|
435
|
+
/** Soft budget for the messages returned by the compactor. */
|
|
436
|
+
targetTokens: number;
|
|
437
|
+
/** Hard model context window. */
|
|
438
|
+
contextWindow: number;
|
|
439
|
+
step: number;
|
|
440
|
+
context?: ExecutionContext;
|
|
441
|
+
signal?: AbortSignal;
|
|
442
|
+
/** Estimates messages with the runtime's configured estimator. */
|
|
443
|
+
estimateTokens(messages: AgentMessage[]): number;
|
|
444
|
+
}
|
|
445
|
+
/** Returns the replacement for the older conversation messages. */
|
|
446
|
+
interface ContextCompactor {
|
|
447
|
+
compact(input: ContextCompactionInput): AgentMessage[] | Promise<AgentMessage[]>;
|
|
448
|
+
}
|
|
449
|
+
interface ContextCompactionOptions {
|
|
450
|
+
/** Defaults to a deterministic digest compactor. */
|
|
451
|
+
compactor?: ContextCompactor;
|
|
452
|
+
/** Defaults to a character-based estimate. */
|
|
453
|
+
estimateTokens?: ContextTokenEstimator;
|
|
454
|
+
}
|
|
455
|
+
interface ResolvedContextBudget {
|
|
456
|
+
contextWindow: number;
|
|
457
|
+
reserveOutputTokens: number;
|
|
458
|
+
compactAt: number;
|
|
459
|
+
targetTokens: number;
|
|
460
|
+
safetyFactor: number;
|
|
461
|
+
}
|
|
462
|
+
/** Validates a context budget and fills in defaults. */
|
|
463
|
+
declare function resolveContextBudget(budget: ContextBudget | undefined, label: string): ResolvedContextBudget | undefined;
|
|
464
|
+
/**
|
|
465
|
+
* Rough provider-neutral estimate: about four characters per token plus
|
|
466
|
+
* message and tool framing. Hosts can inject a real tokenizer instead.
|
|
467
|
+
*/
|
|
468
|
+
declare function estimateContextTokens(input: {
|
|
469
|
+
messages: AgentMessage[];
|
|
470
|
+
tools?: ToolSpec[];
|
|
471
|
+
}): number;
|
|
472
|
+
interface DigestContextCompactorOptions {
|
|
473
|
+
/** Maximum characters kept from one message. Defaults to 400. */
|
|
474
|
+
maxCharsPerMessage?: number;
|
|
475
|
+
}
|
|
476
|
+
/**
|
|
477
|
+
* Deterministic compactor used when the host does not inject one. It keeps
|
|
478
|
+
* role-aware excerpts of older messages and drops the oldest excerpts first.
|
|
479
|
+
* It never calls a model.
|
|
480
|
+
*/
|
|
481
|
+
declare function createDigestContextCompactor(options?: DigestContextCompactorOptions): ContextCompactor;
|
|
482
|
+
//#endregion
|
|
411
483
|
//#region src/runtime/in-memory-run-store.d.ts
|
|
412
484
|
/**
|
|
413
485
|
* In-process durable store intended for development and tests.
|
|
@@ -441,6 +513,22 @@ interface AgentLimits {
|
|
|
441
513
|
maxInputTokens?: number | false;
|
|
442
514
|
maxOutputTokens?: number | false;
|
|
443
515
|
}
|
|
516
|
+
/**
|
|
517
|
+
* Per-request model context budget. It is separate from
|
|
518
|
+
* {@link AgentLimits.maxInputTokens}, which caps cumulative spend for a run.
|
|
519
|
+
*/
|
|
520
|
+
interface ContextBudget {
|
|
521
|
+
/** Model context window in tokens. */
|
|
522
|
+
contextWindow: number;
|
|
523
|
+
/** Tokens reserved for the next model output. Defaults to 0. */
|
|
524
|
+
reserveOutputTokens?: number;
|
|
525
|
+
/** Fraction of the usable window that triggers compaction. Defaults to 0.8. */
|
|
526
|
+
compactAt?: number;
|
|
527
|
+
/** Target tokens after compaction. Defaults below the compaction threshold. */
|
|
528
|
+
targetTokens?: number;
|
|
529
|
+
/** Multiplier applied to estimates to leave headroom. Defaults to 1.1. */
|
|
530
|
+
safetyFactor?: number;
|
|
531
|
+
}
|
|
444
532
|
interface AgentDefinition<TInput = unknown, TOutput = unknown> {
|
|
445
533
|
name: string;
|
|
446
534
|
instructions: string;
|
|
@@ -461,7 +549,8 @@ interface AgentDefinition<TInput = unknown, TOutput = unknown> {
|
|
|
461
549
|
inputSchema?: StandardSchemaV1<unknown, TInput>;
|
|
462
550
|
outputSchema?: StandardSchemaV1<unknown, TOutput>;
|
|
463
551
|
limits?: AgentLimits;
|
|
552
|
+
contextBudget?: ContextBudget;
|
|
464
553
|
}
|
|
465
554
|
declare function defineAgent<T extends AgentDefinition>(agent: ExactDefinition<T, AgentDefinition>): T;
|
|
466
555
|
//#endregion
|
|
467
|
-
export {
|
|
556
|
+
export { ToolExecutionRecord as $, ListEventsOptions as A, RunPause as B, DurableRunStore as C, EventResolution as D, ElicitationResolution as E, RetainableRunStatus as F, RunStore as G, RunRequest as H, RetainableRunStore as I, SessionId as J, Session as K, RunCheckpoint as L, PurgeRunsOptions as M, PurgeRunsResult as N, ExecutionCommit as O, ResumeRunResolution as P, TimerResolution as Q, RunCorrelation as R, CredentialStore as S, ElicitationRequest as T, RunResult as U, RunRecord as V, RunStatus as W, TeamCheckpoint as X, StoredRunCheckpoint as Y, TeamRun as Z, ApprovalMode as _, InMemoryRunStore as a, WorkflowRun as at, CoordinatorCheckpoint as b, ContextCompactor as c, isDurableRunStore as ct, ResolvedContextBudget as d, validatePurgeRunsOptions as dt, ToolExecutionResolution as et, createDigestContextCompactor as f, AgentRunPause as g, AgentRun as h, defineAgent as i, WorkflowCompensationRecord as it, PendingToolExecution as j, ExecutionCreate as k, ContextTokenEstimator as l, isRetainableRunStore as lt, resolveContextBudget as m, AgentLimits as n, WorkflowBudgetUsage as nt, ContextCompactionInput as o, WorkflowStepRecord as ot, estimateContextTokens as p, SessionCompaction as q, ContextBudget as r, WorkflowCheckpoint as rt, ContextCompactionOptions as s, WorkflowWaitRecord as st, AgentDefinition as t, ToolExecutionStatus as tt, DigestContextCompactorOptions as u, validateListEventsOptions as ut, ApprovalRequest as v, ElicitationMode as w, CoordinatorRun as x, ApprovalResolution as y, RunLease as z };
|
|
@@ -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-CckDlhYo.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-CckDlhYo.mjs";
|
|
2
|
+
import { x as ToolRisk } from "./index-DtMxzCqj.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,116 @@
|
|
|
1
|
+
import { l as JsonValue, o as ExecutionContext, s as JsonObject } from "./types-CckDlhYo.mjs";
|
|
2
|
+
import { J as SessionId } from "./index-B8molngu.mjs";
|
|
3
|
+
//#region src/knowledge/knowledge.d.ts
|
|
4
|
+
/** Runtime context supplied to knowledge providers and memory stores. */
|
|
5
|
+
interface KnowledgeContext {
|
|
6
|
+
agentName: string;
|
|
7
|
+
input: string;
|
|
8
|
+
sessionId: SessionId;
|
|
9
|
+
context?: ExecutionContext;
|
|
10
|
+
signal?: AbortSignal;
|
|
11
|
+
}
|
|
12
|
+
interface ContextBlock {
|
|
13
|
+
id: string;
|
|
14
|
+
content: string;
|
|
15
|
+
metadata?: JsonObject;
|
|
16
|
+
}
|
|
17
|
+
interface ContextProvider {
|
|
18
|
+
name: string;
|
|
19
|
+
read(context: KnowledgeContext): Promise<ContextBlock[]>;
|
|
20
|
+
}
|
|
21
|
+
interface MemoryQuery {
|
|
22
|
+
query: string;
|
|
23
|
+
limit?: number;
|
|
24
|
+
agentName?: string;
|
|
25
|
+
sessionId?: SessionId;
|
|
26
|
+
namespace?: string;
|
|
27
|
+
actor?: ExecutionContext['actor'];
|
|
28
|
+
}
|
|
29
|
+
interface MemoryWrite {
|
|
30
|
+
content: string;
|
|
31
|
+
agentName?: string;
|
|
32
|
+
sessionId?: SessionId;
|
|
33
|
+
namespace?: string;
|
|
34
|
+
actor?: ExecutionContext['actor'];
|
|
35
|
+
metadata?: JsonObject;
|
|
36
|
+
}
|
|
37
|
+
interface MemoryRecord extends MemoryWrite {
|
|
38
|
+
id: string;
|
|
39
|
+
createdAt: string;
|
|
40
|
+
}
|
|
41
|
+
interface MemoryStore {
|
|
42
|
+
search(query: MemoryQuery, context: KnowledgeContext): Promise<MemoryRecord[]>;
|
|
43
|
+
write(record: MemoryWrite, context: KnowledgeContext): Promise<MemoryRecord>;
|
|
44
|
+
}
|
|
45
|
+
interface SkillDefinition {
|
|
46
|
+
name: string;
|
|
47
|
+
instructions: string;
|
|
48
|
+
resources?: Array<string | JsonValue | {
|
|
49
|
+
id?: string;
|
|
50
|
+
content: string | JsonValue;
|
|
51
|
+
metadata?: JsonObject;
|
|
52
|
+
}>;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Context provider that advertises a skill's metadata and defers its full
|
|
56
|
+
* instructions until the model calls the reserved load-skill tool.
|
|
57
|
+
*
|
|
58
|
+
* The provider name is the skill name referenced from `agent.skills`.
|
|
59
|
+
*/
|
|
60
|
+
interface ProgressiveSkillProvider extends ContextProvider {
|
|
61
|
+
/** Short description shown to the model before the skill is loaded. */
|
|
62
|
+
readonly description: string;
|
|
63
|
+
/** Loads the full instructions, or one resource when `resource` is set. */
|
|
64
|
+
load(context: KnowledgeContext, resource?: string): Promise<ContextBlock[]>;
|
|
65
|
+
}
|
|
66
|
+
declare function isProgressiveSkillProvider(provider: ContextProvider): provider is ProgressiveSkillProvider;
|
|
67
|
+
declare function defineContextProvider<T extends ContextProvider>(provider: T): T;
|
|
68
|
+
declare function defineSkill(skill: SkillDefinition): ContextProvider;
|
|
69
|
+
declare function createMemoryContextProvider(options: {
|
|
70
|
+
name?: string;
|
|
71
|
+
store: MemoryStore;
|
|
72
|
+
limit?: number;
|
|
73
|
+
}): ContextProvider;
|
|
74
|
+
//#endregion
|
|
75
|
+
//#region src/knowledge/agents-md.d.ts
|
|
76
|
+
interface AgentsMdOptions {
|
|
77
|
+
/** Explicit path to an `AGENTS.md` file. */
|
|
78
|
+
path: string;
|
|
79
|
+
/** Context provider name; defaults to `agents-md`. */
|
|
80
|
+
name?: string;
|
|
81
|
+
maxBytes?: number;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Reads one explicit `AGENTS.md` file as context.
|
|
85
|
+
*
|
|
86
|
+
* Fevex never walks the filesystem looking for `AGENTS.md`; register one
|
|
87
|
+
* provider per file and reference its name from `agent.context`.
|
|
88
|
+
*/
|
|
89
|
+
declare function createAgentsMdContextProvider(options: AgentsMdOptions | string): ContextProvider;
|
|
90
|
+
//#endregion
|
|
91
|
+
//#region src/knowledge/in-memory-memory-store.d.ts
|
|
92
|
+
/** Volatile keyword-search memory store for tests and local development. */
|
|
93
|
+
declare class InMemoryMemoryStore implements MemoryStore {
|
|
94
|
+
#private;
|
|
95
|
+
search(query: MemoryQuery, context: KnowledgeContext): Promise<MemoryRecord[]>;
|
|
96
|
+
write(record: MemoryWrite, context: KnowledgeContext): Promise<MemoryRecord>;
|
|
97
|
+
}
|
|
98
|
+
//#endregion
|
|
99
|
+
//#region src/knowledge/skill-file.d.ts
|
|
100
|
+
interface LoadSkillFileOptions {
|
|
101
|
+
/** Maximum size of the `SKILL.md` file. */
|
|
102
|
+
maxBytes?: number;
|
|
103
|
+
/** Maximum size of one resource loaded on demand. */
|
|
104
|
+
maxResourceBytes?: number;
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Loads one explicit `SKILL.md` file.
|
|
108
|
+
*
|
|
109
|
+
* Only `name` and `description` are advertised up front. The body and any
|
|
110
|
+
* files under `references/`, `scripts/` or `assets/` load on demand.
|
|
111
|
+
*/
|
|
112
|
+
declare function loadSkillFile(path: string, options?: LoadSkillFileOptions): Promise<ProgressiveSkillProvider>;
|
|
113
|
+
/** Loads several explicit `SKILL.md` files; it never scans directories. */
|
|
114
|
+
declare function loadSkillFiles(paths: readonly string[], options?: LoadSkillFileOptions): Promise<ProgressiveSkillProvider[]>;
|
|
115
|
+
//#endregion
|
|
116
|
+
export { defineContextProvider as _, AgentsMdOptions as a, ContextProvider as c, MemoryRecord as d, MemoryStore as f, createMemoryContextProvider as g, SkillDefinition as h, InMemoryMemoryStore as i, KnowledgeContext as l, ProgressiveSkillProvider as m, loadSkillFile as n, createAgentsMdContextProvider as o, MemoryWrite as p, loadSkillFiles as r, ContextBlock as s, LoadSkillFileOptions as t, MemoryQuery as u, defineSkill as v, isProgressiveSkillProvider as y };
|
|
@@ -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-CckDlhYo.mjs";
|
|
3
|
+
import { n as AgentLimits } from "./index-B8molngu.mjs";
|
|
4
|
+
import { t as WorkflowAgentResult } from "./index-RKE3-CKs.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
|
-
import { f as RunId, l as JsonValue, s as JsonObject } from "./types-
|
|
2
|
-
import { r as ModelMetadata, s as ModelUsage } from "./index-
|
|
3
|
-
import {
|
|
1
|
+
import { f as RunId, l as JsonValue, s as JsonObject } from "./types-CckDlhYo.mjs";
|
|
2
|
+
import { r as ModelMetadata, s as ModelUsage } from "./index-BfYzemR8.mjs";
|
|
3
|
+
import { J as SessionId } from "./index-B8molngu.mjs";
|
|
4
4
|
//#region src/observability/trace.d.ts
|
|
5
5
|
/** Final state represented by an exported run trace. */
|
|
6
6
|
type TraceStatus = 'completed' | 'failed' | 'cancelled';
|
|
@@ -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-CckDlhYo.mjs";
|
|
2
|
+
import { J as SessionId, T as ElicitationRequest, h as AgentRun } from "./index-B8molngu.mjs";
|
|
3
|
+
import { t as Fevex } from "./fevex-DB0-k1fb.mjs";
|
|
4
4
|
//#region src/channels/channel.d.ts
|
|
5
5
|
interface ChannelMessage {
|
|
6
6
|
id: string;
|
|
@@ -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-CckDlhYo.mjs";
|
|
3
|
+
import { i as SandboxCapabilities, r as Sandbox } from "./index-CL7mu_x9.mjs";
|
|
4
4
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
5
5
|
//#region src/tools/tool.d.ts
|
|
6
6
|
interface ToolExecutionContext {
|
|
@@ -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-CckDlhYo.mjs";
|
|
3
|
+
import { H as RunRequest, J as SessionId, U as RunResult, n as AgentLimits } from "./index-B8molngu.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. */
|
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
|
|
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, c as createFevex, i as FevexConfig, n as FevexAdmission, o as FevexShutdownOptions, r as FevexAdmissionRequest, s as FevexShutdownResult, t as Fevex } from "./fevex-
|
|
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-CckDlhYo.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-BfYzemR8.mjs";
|
|
3
|
+
import { $ as ToolExecutionRecord, A as ListEventsOptions, B as RunPause, C as DurableRunStore, D as EventResolution, E as ElicitationResolution, F as RetainableRunStatus, G as RunStore, H as RunRequest, I as RetainableRunStore, J as SessionId, K as Session, L as RunCheckpoint, M as PurgeRunsOptions, N as PurgeRunsResult, O as ExecutionCommit, P as ResumeRunResolution, Q as TimerResolution, R as RunCorrelation, S as CredentialStore, T as ElicitationRequest, U as RunResult, V as RunRecord, W as RunStatus, X as TeamCheckpoint, Y as StoredRunCheckpoint, Z as TeamRun, _ as ApprovalMode, a as InMemoryRunStore, at as WorkflowRun, b as CoordinatorCheckpoint, c as ContextCompactor, ct as isDurableRunStore, d as ResolvedContextBudget, dt as validatePurgeRunsOptions, et as ToolExecutionResolution, f as createDigestContextCompactor, g as AgentRunPause, h as AgentRun, i as defineAgent, it as WorkflowCompensationRecord, j as PendingToolExecution, k as ExecutionCreate, l as ContextTokenEstimator, lt as isRetainableRunStore, m as resolveContextBudget, n as AgentLimits, nt as WorkflowBudgetUsage, o as ContextCompactionInput, ot as WorkflowStepRecord, p as estimateContextTokens, q as SessionCompaction, r as ContextBudget, rt as WorkflowCheckpoint, s as ContextCompactionOptions, st as WorkflowWaitRecord, t as AgentDefinition, tt as ToolExecutionStatus, u as DigestContextCompactorOptions, ut as validateListEventsOptions, v as ApprovalRequest, w as ElicitationMode, x as CoordinatorRun, y as ApprovalResolution, z as RunLease } from "./index-B8molngu.mjs";
|
|
4
|
+
import { _ as defineContextProvider, a as AgentsMdOptions, c as ContextProvider, d as MemoryRecord, f as MemoryStore, g as createMemoryContextProvider, h as SkillDefinition, i as InMemoryMemoryStore, l as KnowledgeContext, m as ProgressiveSkillProvider, n as loadSkillFile, o as createAgentsMdContextProvider, p as MemoryWrite, r as loadSkillFiles, s as ContextBlock, t as LoadSkillFileOptions, u as MemoryQuery, v as defineSkill, y as isProgressiveSkillProvider } from "./index-CAyAoOW0.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-CL7mu_x9.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-DtMxzCqj.mjs";
|
|
7
|
+
import { i as definePolicy, n as PolicyDecision, r as PolicyDefinition, t as PolicyAuthorization } from "./index-Bl0hR7EC.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-RKE3-CKs.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-CODYPevS.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-DB0-k1fb.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-CuaetTLQ.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' | 'RUNTIME_CLOSED' | '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' | 'CONTEXT_BUDGET_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, 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 };
|
|
42
|
+
export { AgentDefinition, AgentEvent, AgentEventPayloads, AgentEventType, AgentLimits, AgentMessage, AgentMessageRole, AgentRun, AgentRunPause, AgentsMdOptions, 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, ContextBudget, ContextCompactionInput, ContextCompactionOptions, ContextCompactor, ContextProvider, ContextTokenEstimator, CoordinatorCheckpoint, CoordinatorRun, CredentialStore, DigestContextCompactorOptions, 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, LoadSkillFileOptions, LocalSandboxOptions, MemoryQuery, MemoryRecord, MemoryStore, MemoryWrite, ModelGateway, ModelInput, ModelMetadata, ModelRef, ModelResult, ModelStreamEvent, ModelUsage, PROVIDER_REASONING_UNSUPPORTED, PROVIDER_SCHEMA_UNSUPPORTED, PendingToolExecution, PolicyAuthorization, PolicyDecision, PolicyDefinition, ProgressiveSkillProvider, PurgeRunsOptions, PurgeRunsResult, ReasoningEffort, ResolvedContextBudget, 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, SessionCompaction, 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, createAgentsMdContextProvider, createDigestContextCompactor, createFevex, createLocalSandbox, createMemoryContextProvider, defineAgent, defineConnection, defineContextProvider, definePolicy, defineSkill, defineTeam, defineTool, defineWorkflow, deliverChannelRun, estimateContextTokens, handleChannelInput, isDurableRunStore, isProgressiveSkillProvider, isRetainableRunStore, loadSkillFile, loadSkillFiles, resolveContextBudget, sandboxResultToJson, toToolSpec, validateFevexJsonSchemaProfile, validateListEventsOptions, validatePurgeRunsOptions };
|