@promptev/context-engine 0.0.0
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/LICENSE.md +202 -0
- package/NOTICE +17 -0
- package/README.md +112 -0
- package/dist/cli.js +11998 -0
- package/dist/cli.js.map +1 -0
- package/dist/config-Bl9U789m.d.cts +174 -0
- package/dist/config-Bt9bUQqU.d.ts +174 -0
- package/dist/embeddings-B-jZ42mk.d.cts +67 -0
- package/dist/embeddings-DaSdAZN3.d.ts +67 -0
- package/dist/express.cjs +3173 -0
- package/dist/express.cjs.map +1 -0
- package/dist/express.d.cts +24 -0
- package/dist/express.d.ts +24 -0
- package/dist/express.js +3170 -0
- package/dist/express.js.map +1 -0
- package/dist/fastify.cjs +3184 -0
- package/dist/fastify.cjs.map +1 -0
- package/dist/fastify.d.cts +16 -0
- package/dist/fastify.d.ts +16 -0
- package/dist/fastify.js +3181 -0
- package/dist/fastify.js.map +1 -0
- package/dist/governance-BDkcv4qZ.d.cts +79 -0
- package/dist/governance-XIScatRO.d.ts +79 -0
- package/dist/graph/index.cjs +1428 -0
- package/dist/graph/index.cjs.map +1 -0
- package/dist/graph/index.d.cts +104 -0
- package/dist/graph/index.d.ts +104 -0
- package/dist/graph/index.js +1413 -0
- package/dist/graph/index.js.map +1 -0
- package/dist/hono.cjs +3183 -0
- package/dist/hono.cjs.map +1 -0
- package/dist/hono.d.cts +39 -0
- package/dist/hono.d.ts +39 -0
- package/dist/hono.js +3179 -0
- package/dist/hono.js.map +1 -0
- package/dist/index.cjs +11731 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +851 -0
- package/dist/index.d.ts +851 -0
- package/dist/index.js +11676 -0
- package/dist/index.js.map +1 -0
- package/dist/mcp.cjs +181 -0
- package/dist/mcp.cjs.map +1 -0
- package/dist/mcp.d.cts +26 -0
- package/dist/mcp.d.ts +26 -0
- package/dist/mcp.js +179 -0
- package/dist/mcp.js.map +1 -0
- package/dist/migrations/sql/0001.sql +119 -0
- package/dist/migrations/sql/0002_graph.sql +48 -0
- package/dist/migrations/sql/0003_tools.sql +61 -0
- package/dist/migrations/sql/0004_acl_indexes.sql +4 -0
- package/dist/redaction-BmDSWJ7h.d.cts +98 -0
- package/dist/redaction-BmDSWJ7h.d.ts +98 -0
- package/dist/redaction-presidio.cjs +79 -0
- package/dist/redaction-presidio.cjs.map +1 -0
- package/dist/redaction-presidio.d.cts +22 -0
- package/dist/redaction-presidio.d.ts +22 -0
- package/dist/redaction-presidio.js +73 -0
- package/dist/redaction-presidio.js.map +1 -0
- package/dist/router-CrxZ2y_Z.d.ts +82 -0
- package/dist/router-OPgSoYAB.d.cts +82 -0
- package/dist/skills/context-engine/SKILL.md +160 -0
- package/package.json +184 -0
- package/src/migrations/sql/0001.sql +119 -0
- package/src/migrations/sql/0002_graph.sql +48 -0
- package/src/migrations/sql/0003_tools.sql +61 -0
- package/src/migrations/sql/0004_acl_indexes.sql +4 -0
- package/src/skills/context-engine/SKILL.md +160 -0
package/dist/hono.d.cts
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { h as handleIngestJson, c as createToolsHandlers } from './router-OPgSoYAB.cjs';
|
|
2
|
+
import './governance-BDkcv4qZ.cjs';
|
|
3
|
+
import 'pg';
|
|
4
|
+
import './config-Bl9U789m.cjs';
|
|
5
|
+
import 'zod';
|
|
6
|
+
import './redaction-BmDSWJ7h.cjs';
|
|
7
|
+
|
|
8
|
+
type Engine = Parameters<typeof handleIngestJson>[0] & Parameters<typeof createToolsHandlers>[0];
|
|
9
|
+
type HonoRouterOptions = {
|
|
10
|
+
auth: (c: unknown) => unknown | Promise<unknown>;
|
|
11
|
+
principals: (c: unknown) => unknown | Promise<unknown>;
|
|
12
|
+
redirectBaseUrl?: string;
|
|
13
|
+
};
|
|
14
|
+
type HonoContext = {
|
|
15
|
+
req: {
|
|
16
|
+
path: string;
|
|
17
|
+
header: (name: string) => string | undefined;
|
|
18
|
+
query: {
|
|
19
|
+
(): Record<string, string>;
|
|
20
|
+
(name: string): string | undefined;
|
|
21
|
+
};
|
|
22
|
+
param: (name: string) => string;
|
|
23
|
+
json: () => Promise<unknown>;
|
|
24
|
+
parseBody: (opts?: Record<string, unknown>) => Promise<Record<string, unknown>>;
|
|
25
|
+
};
|
|
26
|
+
json: (body: unknown, status?: number) => unknown;
|
|
27
|
+
html: (html: string) => unknown;
|
|
28
|
+
};
|
|
29
|
+
type HonoApp = {
|
|
30
|
+
use: (path: string, handler: (c: HonoContext, next: () => Promise<void>) => Promise<unknown>) => unknown;
|
|
31
|
+
post: (path: string, handler: (c: HonoContext) => Promise<unknown>) => unknown;
|
|
32
|
+
get: (path: string, handler: (c: HonoContext) => Promise<unknown>) => unknown;
|
|
33
|
+
delete: (path: string, handler: (c: HonoContext) => Promise<unknown>) => unknown;
|
|
34
|
+
patch: (path: string, handler: (c: HonoContext) => Promise<unknown>) => unknown;
|
|
35
|
+
};
|
|
36
|
+
declare function createHonoRouter(engine: Engine, opts: HonoRouterOptions): HonoApp;
|
|
37
|
+
declare const createHonoApp: typeof createHonoRouter;
|
|
38
|
+
|
|
39
|
+
export { type HonoRouterOptions, createHonoApp, createHonoRouter };
|
package/dist/hono.d.ts
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { h as handleIngestJson, c as createToolsHandlers } from './router-CrxZ2y_Z.js';
|
|
2
|
+
import './governance-XIScatRO.js';
|
|
3
|
+
import 'pg';
|
|
4
|
+
import './config-Bt9bUQqU.js';
|
|
5
|
+
import 'zod';
|
|
6
|
+
import './redaction-BmDSWJ7h.js';
|
|
7
|
+
|
|
8
|
+
type Engine = Parameters<typeof handleIngestJson>[0] & Parameters<typeof createToolsHandlers>[0];
|
|
9
|
+
type HonoRouterOptions = {
|
|
10
|
+
auth: (c: unknown) => unknown | Promise<unknown>;
|
|
11
|
+
principals: (c: unknown) => unknown | Promise<unknown>;
|
|
12
|
+
redirectBaseUrl?: string;
|
|
13
|
+
};
|
|
14
|
+
type HonoContext = {
|
|
15
|
+
req: {
|
|
16
|
+
path: string;
|
|
17
|
+
header: (name: string) => string | undefined;
|
|
18
|
+
query: {
|
|
19
|
+
(): Record<string, string>;
|
|
20
|
+
(name: string): string | undefined;
|
|
21
|
+
};
|
|
22
|
+
param: (name: string) => string;
|
|
23
|
+
json: () => Promise<unknown>;
|
|
24
|
+
parseBody: (opts?: Record<string, unknown>) => Promise<Record<string, unknown>>;
|
|
25
|
+
};
|
|
26
|
+
json: (body: unknown, status?: number) => unknown;
|
|
27
|
+
html: (html: string) => unknown;
|
|
28
|
+
};
|
|
29
|
+
type HonoApp = {
|
|
30
|
+
use: (path: string, handler: (c: HonoContext, next: () => Promise<void>) => Promise<unknown>) => unknown;
|
|
31
|
+
post: (path: string, handler: (c: HonoContext) => Promise<unknown>) => unknown;
|
|
32
|
+
get: (path: string, handler: (c: HonoContext) => Promise<unknown>) => unknown;
|
|
33
|
+
delete: (path: string, handler: (c: HonoContext) => Promise<unknown>) => unknown;
|
|
34
|
+
patch: (path: string, handler: (c: HonoContext) => Promise<unknown>) => unknown;
|
|
35
|
+
};
|
|
36
|
+
declare function createHonoRouter(engine: Engine, opts: HonoRouterOptions): HonoApp;
|
|
37
|
+
declare const createHonoApp: typeof createHonoRouter;
|
|
38
|
+
|
|
39
|
+
export { type HonoRouterOptions, createHonoApp, createHonoRouter };
|