@fevex/core 0.1.0-alpha.0 → 0.1.0-alpha.10

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.
Files changed (52) hide show
  1. package/README.md +1110 -52
  2. package/dist/agents/index.d.mts +2 -23
  3. package/dist/agents/index.mjs +1 -1
  4. package/dist/artifacts/index.d.mts +2 -0
  5. package/dist/artifacts/index.mjs +2 -0
  6. package/dist/artifacts-gUzemET7.mjs +440 -0
  7. package/dist/channels/index.d.mts +2 -0
  8. package/dist/channels/index.mjs +192 -0
  9. package/dist/evals/index.d.mts +153 -0
  10. package/dist/evals/index.mjs +422 -0
  11. package/dist/fevex-_KOsOsB8.d.mts +129 -0
  12. package/dist/http/index.d.mts +150 -0
  13. package/dist/http/index.mjs +692 -0
  14. package/dist/index-26ilbzAs.d.mts +50 -0
  15. package/dist/index-B8EcvWeN.d.mts +103 -0
  16. package/dist/index-BEqYWean.d.mts +118 -0
  17. package/dist/index-Btth7rdL.d.mts +58 -0
  18. package/dist/index-CFzrvDQ0.d.mts +21 -0
  19. package/dist/index-CIHWc5V1.d.mts +116 -0
  20. package/dist/index-D7r0puBi.d.mts +64 -0
  21. package/dist/index-DHcfIfh-.d.mts +224 -0
  22. package/dist/index-DUhNa7IR.d.mts +73 -0
  23. package/dist/index-lCCFokc6.d.mts +617 -0
  24. package/dist/index.d.mts +39 -15
  25. package/dist/index.mjs +4962 -208
  26. package/dist/knowledge/index.d.mts +2 -0
  27. package/dist/knowledge/index.mjs +289 -0
  28. package/dist/model-stream-JQdHDDcj.mjs +131 -0
  29. package/dist/models/index.d.mts +2 -27
  30. package/dist/observability/index.d.mts +2 -0
  31. package/dist/observability/index.mjs +1 -0
  32. package/dist/policies/index.d.mts +2 -0
  33. package/dist/policies/index.mjs +6 -0
  34. package/dist/run-error-Cr17wPGH.mjs +23 -0
  35. package/dist/run-support-CmZ6Xo6H.mjs +162 -0
  36. package/dist/runtime/index.d.mts +2 -17
  37. package/dist/runtime/index.mjs +354 -1
  38. package/dist/sandbox/index.d.mts +2 -0
  39. package/dist/sandbox/index.mjs +147 -0
  40. package/dist/teams/index.d.mts +2 -0
  41. package/dist/teams/index.mjs +2 -0
  42. package/dist/teams-Ctz676G4.mjs +82 -0
  43. package/dist/testing/index.d.mts +40 -8
  44. package/dist/testing/index.mjs +668 -23
  45. package/dist/tools/index.d.mts +3 -31
  46. package/dist/tools/index.mjs +442 -2
  47. package/dist/types-CckDlhYo.d.mts +575 -0
  48. package/dist/workflows/index.d.mts +2 -0
  49. package/dist/workflows/index.mjs +6 -0
  50. package/package.json +43 -3
  51. package/dist/exact-definition-NHBBFlFR.d.mts +0 -4
  52. package/dist/index-D_RBJmVt.d.mts +0 -44
@@ -1,16 +1,48 @@
1
- import { d as ToolCall } from "../index-D_RBJmVt.mjs";
2
- import { ModelGateway, ModelGenerateInput, ModelGenerateResult } from "../models/index.mjs";
3
- //#region src/testing/index.d.ts
4
- interface FakeModel extends ModelGateway {
5
- readonly calls: readonly ModelGenerateInput[];
6
- }
7
- declare function fakeModel(...responses: ModelGenerateResult[]): FakeModel;
1
+ import { E as ToolProvider } from "../index-DHcfIfh-.mjs";
2
+ import { a as ModelResult, n as ModelInput, t as ModelGateway } from "../index-D7r0puBi.mjs";
3
+ import { m as ToolCall } from "../types-CckDlhYo.mjs";
4
+ import { j as ElicitationRequest, k as DurableRunStore } from "../index-lCCFokc6.mjs";
5
+ import { f as MemoryStore } from "../index-CIHWc5V1.mjs";
6
+ import { d as ChannelMessage, f as ChannelOutput, o as ChannelElicitationContext, r as ChannelAdapter } from "../index-B8EcvWeN.mjs";
7
+ //#region src/testing/contracts.d.ts
8
8
  interface ModelGatewayContract {
9
9
  output?: unknown;
10
10
  toolCall?: ToolCall;
11
11
  usage?: boolean;
12
12
  error?: Error;
13
13
  }
14
+ interface ChannelAdapterContract<TInput, TOutput> {
15
+ input: TInput;
16
+ message: ChannelMessage;
17
+ output: ChannelOutput;
18
+ delivered: TOutput;
19
+ ignoredInput?: TInput;
20
+ elicitation?: {
21
+ request: ElicitationRequest;
22
+ context: ChannelElicitationContext;
23
+ delivered: TOutput;
24
+ };
25
+ }
26
+ interface ToolProviderContract {
27
+ allowedTool: string;
28
+ input?: unknown;
29
+ output?: unknown;
30
+ disallowedTool?: string;
31
+ safeError?: boolean;
32
+ timeout?: boolean;
33
+ }
34
+ declare function testMemoryStore(store: MemoryStore): Promise<void>;
35
+ declare function testToolProvider(provider: ToolProvider, contract: ToolProviderContract): Promise<void>;
36
+ declare function testChannelAdapter<TInput, TOutput>(adapter: ChannelAdapter<TInput, TOutput>, contract: ChannelAdapterContract<TInput, TOutput>): Promise<void>;
14
37
  declare function testModelGateway(model: ModelGateway, contract?: ModelGatewayContract): Promise<void>;
38
+ declare function testRunStore(store: DurableRunStore): Promise<void>;
39
+ declare function testRetentionStore(store: DurableRunStore): Promise<void>;
40
+ //#endregion
41
+ //#region src/testing/fake-model.d.ts
42
+ interface FakeModel extends ModelGateway {
43
+ readonly calls: readonly ModelInput[];
44
+ }
45
+ /** Creates a deterministic model gateway for unit tests. */
46
+ declare function fakeModel(...responses: ModelResult[]): FakeModel;
15
47
  //#endregion
16
- export { FakeModel, ModelGatewayContract, fakeModel, testModelGateway };
48
+ export { ChannelAdapterContract, FakeModel, ModelGatewayContract, ToolProviderContract, fakeModel, testChannelAdapter, testMemoryStore, testModelGateway, testRetentionStore, testRunStore, testToolProvider };