@promptev/context-engine 0.0.2 → 0.0.4

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/dist/mcp.d.cts CHANGED
@@ -1,31 +1,2 @@
1
- import * as node_http from 'node:http';
2
-
3
- type PrincipalsFn = () => unknown | Promise<unknown>;
4
- /** Zero-argument, sync or async, resolved fresh per execution — the same
5
- * contract as `PrincipalsFn`. Returns the opaque approval scope (a run id is
6
- * the expected shape) or `null` for the unscoped legacy path. */
7
- type ApprovalScopeFn = () => unknown | Promise<unknown>;
8
-
9
- type Engine = {
10
- config: {
11
- llm?: unknown;
12
- enableCodeExecution?: boolean;
13
- };
14
- search: (query: string, opts?: Record<string, unknown>) => Promise<{
15
- hits: unknown[];
16
- usage?: unknown;
17
- }>;
18
- getDocument: (id: string, opts?: Record<string, unknown>) => Promise<unknown>;
19
- queryStructured?: (question: string, opts?: Record<string, unknown>) => Promise<unknown>;
20
- compute?: (instruction: string, opts?: Record<string, unknown>) => Promise<unknown>;
21
- searchTools: (query: string, opts?: Record<string, unknown>) => Promise<unknown[]>;
22
- executeTool: (name: string, args: Record<string, unknown> | null, opts?: Record<string, unknown>) => Promise<Record<string, unknown>>;
23
- };
24
- declare function createMcpApp(engine: Engine, opts: {
25
- principals: PrincipalsFn;
26
- approvalScope?: ApprovalScopeFn | null;
27
- }): Promise<((req: node_http.IncomingMessage, res: node_http.ServerResponse) => Promise<void>) & {
28
- mcp: unknown;
29
- }>;
30
-
31
- export { createMcpApp };
1
+ import 'node:http';
2
+ export { i as createMcpApp } from './mcp-uirRbluA.cjs';
package/dist/mcp.d.ts CHANGED
@@ -1,31 +1,2 @@
1
- import * as node_http from 'node:http';
2
-
3
- type PrincipalsFn = () => unknown | Promise<unknown>;
4
- /** Zero-argument, sync or async, resolved fresh per execution — the same
5
- * contract as `PrincipalsFn`. Returns the opaque approval scope (a run id is
6
- * the expected shape) or `null` for the unscoped legacy path. */
7
- type ApprovalScopeFn = () => unknown | Promise<unknown>;
8
-
9
- type Engine = {
10
- config: {
11
- llm?: unknown;
12
- enableCodeExecution?: boolean;
13
- };
14
- search: (query: string, opts?: Record<string, unknown>) => Promise<{
15
- hits: unknown[];
16
- usage?: unknown;
17
- }>;
18
- getDocument: (id: string, opts?: Record<string, unknown>) => Promise<unknown>;
19
- queryStructured?: (question: string, opts?: Record<string, unknown>) => Promise<unknown>;
20
- compute?: (instruction: string, opts?: Record<string, unknown>) => Promise<unknown>;
21
- searchTools: (query: string, opts?: Record<string, unknown>) => Promise<unknown[]>;
22
- executeTool: (name: string, args: Record<string, unknown> | null, opts?: Record<string, unknown>) => Promise<Record<string, unknown>>;
23
- };
24
- declare function createMcpApp(engine: Engine, opts: {
25
- principals: PrincipalsFn;
26
- approvalScope?: ApprovalScopeFn | null;
27
- }): Promise<((req: node_http.IncomingMessage, res: node_http.ServerResponse) => Promise<void>) & {
28
- mcp: unknown;
29
- }>;
30
-
31
- export { createMcpApp };
1
+ import 'node:http';
2
+ export { i as createMcpApp } from './mcp-uirRbluA.js';