@promptev/context-engine 0.0.0 → 0.0.2
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 +116 -5
- package/dist/cli.js +1896 -552
- package/dist/cli.js.map +1 -1
- package/dist/{config-Bl9U789m.d.cts → config-BODDdXJ7.d.ts} +75 -16
- package/dist/{config-Bt9bUQqU.d.ts → config-C5RZ00W6.d.cts} +75 -16
- package/dist/express.cjs +925 -151
- package/dist/express.cjs.map +1 -1
- package/dist/express.d.cts +11 -4
- package/dist/express.d.ts +11 -4
- package/dist/express.js +926 -152
- package/dist/express.js.map +1 -1
- package/dist/fastify.cjs +923 -151
- package/dist/fastify.cjs.map +1 -1
- package/dist/fastify.d.cts +8 -4
- package/dist/fastify.d.ts +8 -4
- package/dist/fastify.js +924 -152
- package/dist/fastify.js.map +1 -1
- package/dist/{governance-XIScatRO.d.ts → governance-BLPK7NMe.d.ts} +8 -2
- package/dist/{governance-BDkcv4qZ.d.cts → governance-P9pRb4Ol.d.cts} +8 -2
- package/dist/graph/index.cjs +171 -59
- package/dist/graph/index.cjs.map +1 -1
- package/dist/graph/index.d.cts +5 -3
- package/dist/graph/index.d.ts +5 -3
- package/dist/graph/index.js +171 -59
- package/dist/graph/index.js.map +1 -1
- package/dist/hono.cjs +923 -151
- package/dist/hono.cjs.map +1 -1
- package/dist/hono.d.cts +8 -4
- package/dist/hono.d.ts +8 -4
- package/dist/hono.js +924 -152
- package/dist/hono.js.map +1 -1
- package/dist/index.cjs +2413 -1052
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +125 -107
- package/dist/index.d.ts +125 -107
- package/dist/index.js +2412 -1050
- package/dist/index.js.map +1 -1
- package/dist/mcp.cjs +100 -14
- package/dist/mcp.cjs.map +1 -1
- package/dist/mcp.d.cts +5 -0
- package/dist/mcp.d.ts +5 -0
- package/dist/mcp.js +100 -14
- package/dist/mcp.js.map +1 -1
- package/dist/migrations/sql/0003_tools.sql +2 -0
- package/dist/migrations/sql/0004_acl_indexes.sql +23 -2
- package/dist/{redaction-BmDSWJ7h.d.cts → redaction-BqD_DEUQ.d.cts} +22 -1
- package/dist/{redaction-BmDSWJ7h.d.ts → redaction-BqD_DEUQ.d.ts} +22 -1
- package/dist/redaction-presidio.d.cts +1 -1
- package/dist/redaction-presidio.d.ts +1 -1
- package/dist/{router-CrxZ2y_Z.d.ts → router-CiFwC-EN.d.cts} +17 -2
- package/dist/{router-OPgSoYAB.d.cts → router-D8gBzwLd.d.ts} +17 -2
- package/dist/skills/context-engine/SKILL.md +5 -1
- package/dist/storage-CJrKgJeJ.d.ts +167 -0
- package/dist/storage-Dvpq2xAC.d.cts +167 -0
- package/package.json +61 -23
- package/src/migrations/sql/0003_tools.sql +2 -0
- package/src/migrations/sql/0004_acl_indexes.sql +23 -2
- package/src/skills/context-engine/SKILL.md +5 -1
- package/dist/embeddings-B-jZ42mk.d.cts +0 -67
- package/dist/embeddings-DaSdAZN3.d.ts +0 -67
package/dist/express.d.cts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as express from 'express';
|
|
2
2
|
import { IncomingMessage } from 'node:http';
|
|
3
|
-
import { h as handleIngestJson, c as createToolsHandlers } from './router-
|
|
4
|
-
import './governance-
|
|
3
|
+
import { h as handleIngestJson, c as createToolsHandlers } from './router-CiFwC-EN.cjs';
|
|
4
|
+
import './governance-P9pRb4Ol.cjs';
|
|
5
5
|
import 'pg';
|
|
6
|
-
import './config-
|
|
6
|
+
import './config-C5RZ00W6.cjs';
|
|
7
7
|
import 'zod';
|
|
8
|
-
import './redaction-
|
|
8
|
+
import './redaction-BqD_DEUQ.cjs';
|
|
9
9
|
|
|
10
10
|
type Engine = Parameters<typeof handleIngestJson>[0] & Parameters<typeof createToolsHandlers>[0];
|
|
11
11
|
type ExpressRouterOptions = {
|
|
@@ -17,6 +17,13 @@ type ExpressRouterOptions = {
|
|
|
17
17
|
body?: unknown;
|
|
18
18
|
query?: Record<string, unknown>;
|
|
19
19
|
}) => unknown | Promise<unknown>;
|
|
20
|
+
/** Server-side resolver for the approval claim scope on `POST
|
|
21
|
+
* /tools/execute` (a run id is the expected shape). Never read from the
|
|
22
|
+
* body. Omitted = unscoped execution, the deprecated legacy path. */
|
|
23
|
+
approvalScope?: (req: IncomingMessage & {
|
|
24
|
+
body?: unknown;
|
|
25
|
+
query?: Record<string, unknown>;
|
|
26
|
+
}) => unknown | Promise<unknown>;
|
|
20
27
|
redirectBaseUrl?: string;
|
|
21
28
|
};
|
|
22
29
|
declare function createExpressRouter(engine: Engine, opts: ExpressRouterOptions): express.Router;
|
package/dist/express.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as express from 'express';
|
|
2
2
|
import { IncomingMessage } from 'node:http';
|
|
3
|
-
import { h as handleIngestJson, c as createToolsHandlers } from './router-
|
|
4
|
-
import './governance-
|
|
3
|
+
import { h as handleIngestJson, c as createToolsHandlers } from './router-D8gBzwLd.js';
|
|
4
|
+
import './governance-BLPK7NMe.js';
|
|
5
5
|
import 'pg';
|
|
6
|
-
import './config-
|
|
6
|
+
import './config-BODDdXJ7.js';
|
|
7
7
|
import 'zod';
|
|
8
|
-
import './redaction-
|
|
8
|
+
import './redaction-BqD_DEUQ.js';
|
|
9
9
|
|
|
10
10
|
type Engine = Parameters<typeof handleIngestJson>[0] & Parameters<typeof createToolsHandlers>[0];
|
|
11
11
|
type ExpressRouterOptions = {
|
|
@@ -17,6 +17,13 @@ type ExpressRouterOptions = {
|
|
|
17
17
|
body?: unknown;
|
|
18
18
|
query?: Record<string, unknown>;
|
|
19
19
|
}) => unknown | Promise<unknown>;
|
|
20
|
+
/** Server-side resolver for the approval claim scope on `POST
|
|
21
|
+
* /tools/execute` (a run id is the expected shape). Never read from the
|
|
22
|
+
* body. Omitted = unscoped execution, the deprecated legacy path. */
|
|
23
|
+
approvalScope?: (req: IncomingMessage & {
|
|
24
|
+
body?: unknown;
|
|
25
|
+
query?: Record<string, unknown>;
|
|
26
|
+
}) => unknown | Promise<unknown>;
|
|
20
27
|
redirectBaseUrl?: string;
|
|
21
28
|
};
|
|
22
29
|
declare function createExpressRouter(engine: Engine, opts: ExpressRouterOptions): express.Router;
|