@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/fastify.d.cts
CHANGED
|
@@ -1,14 +1,18 @@
|
|
|
1
|
-
import { h as handleIngestJson, c as createToolsHandlers } from './router-
|
|
2
|
-
import './governance-
|
|
1
|
+
import { h as handleIngestJson, c as createToolsHandlers } from './router-CiFwC-EN.cjs';
|
|
2
|
+
import './governance-P9pRb4Ol.cjs';
|
|
3
3
|
import 'pg';
|
|
4
|
-
import './config-
|
|
4
|
+
import './config-C5RZ00W6.cjs';
|
|
5
5
|
import 'zod';
|
|
6
|
-
import './redaction-
|
|
6
|
+
import './redaction-BqD_DEUQ.cjs';
|
|
7
7
|
|
|
8
8
|
type Engine = Parameters<typeof handleIngestJson>[0] & Parameters<typeof createToolsHandlers>[0];
|
|
9
9
|
type FastifyPluginOptions = {
|
|
10
10
|
auth: (req: unknown) => unknown | Promise<unknown>;
|
|
11
11
|
principals: (req: unknown) => unknown | Promise<unknown>;
|
|
12
|
+
/** Server-side resolver for the approval claim scope on `POST
|
|
13
|
+
* /tools/execute` (a run id is the expected shape). Never read from the
|
|
14
|
+
* body. Omitted = unscoped execution, the deprecated legacy path. */
|
|
15
|
+
approvalScope?: (req: unknown) => unknown | Promise<unknown>;
|
|
12
16
|
redirectBaseUrl?: string;
|
|
13
17
|
};
|
|
14
18
|
declare function createFastifyPlugin(engine: Engine, opts: FastifyPluginOptions): unknown;
|
package/dist/fastify.d.ts
CHANGED
|
@@ -1,14 +1,18 @@
|
|
|
1
|
-
import { h as handleIngestJson, c as createToolsHandlers } from './router-
|
|
2
|
-
import './governance-
|
|
1
|
+
import { h as handleIngestJson, c as createToolsHandlers } from './router-D8gBzwLd.js';
|
|
2
|
+
import './governance-BLPK7NMe.js';
|
|
3
3
|
import 'pg';
|
|
4
|
-
import './config-
|
|
4
|
+
import './config-BODDdXJ7.js';
|
|
5
5
|
import 'zod';
|
|
6
|
-
import './redaction-
|
|
6
|
+
import './redaction-BqD_DEUQ.js';
|
|
7
7
|
|
|
8
8
|
type Engine = Parameters<typeof handleIngestJson>[0] & Parameters<typeof createToolsHandlers>[0];
|
|
9
9
|
type FastifyPluginOptions = {
|
|
10
10
|
auth: (req: unknown) => unknown | Promise<unknown>;
|
|
11
11
|
principals: (req: unknown) => unknown | Promise<unknown>;
|
|
12
|
+
/** Server-side resolver for the approval claim scope on `POST
|
|
13
|
+
* /tools/execute` (a run id is the expected shape). Never read from the
|
|
14
|
+
* body. Omitted = unscoped execution, the deprecated legacy path. */
|
|
15
|
+
approvalScope?: (req: unknown) => unknown | Promise<unknown>;
|
|
12
16
|
redirectBaseUrl?: string;
|
|
13
17
|
};
|
|
14
18
|
declare function createFastifyPlugin(engine: Engine, opts: FastifyPluginOptions): unknown;
|