@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.
Files changed (60) hide show
  1. package/README.md +116 -5
  2. package/dist/cli.js +1896 -552
  3. package/dist/cli.js.map +1 -1
  4. package/dist/{config-Bl9U789m.d.cts → config-BODDdXJ7.d.ts} +75 -16
  5. package/dist/{config-Bt9bUQqU.d.ts → config-C5RZ00W6.d.cts} +75 -16
  6. package/dist/express.cjs +925 -151
  7. package/dist/express.cjs.map +1 -1
  8. package/dist/express.d.cts +11 -4
  9. package/dist/express.d.ts +11 -4
  10. package/dist/express.js +926 -152
  11. package/dist/express.js.map +1 -1
  12. package/dist/fastify.cjs +923 -151
  13. package/dist/fastify.cjs.map +1 -1
  14. package/dist/fastify.d.cts +8 -4
  15. package/dist/fastify.d.ts +8 -4
  16. package/dist/fastify.js +924 -152
  17. package/dist/fastify.js.map +1 -1
  18. package/dist/{governance-XIScatRO.d.ts → governance-BLPK7NMe.d.ts} +8 -2
  19. package/dist/{governance-BDkcv4qZ.d.cts → governance-P9pRb4Ol.d.cts} +8 -2
  20. package/dist/graph/index.cjs +171 -59
  21. package/dist/graph/index.cjs.map +1 -1
  22. package/dist/graph/index.d.cts +5 -3
  23. package/dist/graph/index.d.ts +5 -3
  24. package/dist/graph/index.js +171 -59
  25. package/dist/graph/index.js.map +1 -1
  26. package/dist/hono.cjs +923 -151
  27. package/dist/hono.cjs.map +1 -1
  28. package/dist/hono.d.cts +8 -4
  29. package/dist/hono.d.ts +8 -4
  30. package/dist/hono.js +924 -152
  31. package/dist/hono.js.map +1 -1
  32. package/dist/index.cjs +2413 -1052
  33. package/dist/index.cjs.map +1 -1
  34. package/dist/index.d.cts +125 -107
  35. package/dist/index.d.ts +125 -107
  36. package/dist/index.js +2412 -1050
  37. package/dist/index.js.map +1 -1
  38. package/dist/mcp.cjs +100 -14
  39. package/dist/mcp.cjs.map +1 -1
  40. package/dist/mcp.d.cts +5 -0
  41. package/dist/mcp.d.ts +5 -0
  42. package/dist/mcp.js +100 -14
  43. package/dist/mcp.js.map +1 -1
  44. package/dist/migrations/sql/0003_tools.sql +2 -0
  45. package/dist/migrations/sql/0004_acl_indexes.sql +23 -2
  46. package/dist/{redaction-BmDSWJ7h.d.cts → redaction-BqD_DEUQ.d.cts} +22 -1
  47. package/dist/{redaction-BmDSWJ7h.d.ts → redaction-BqD_DEUQ.d.ts} +22 -1
  48. package/dist/redaction-presidio.d.cts +1 -1
  49. package/dist/redaction-presidio.d.ts +1 -1
  50. package/dist/{router-CrxZ2y_Z.d.ts → router-CiFwC-EN.d.cts} +17 -2
  51. package/dist/{router-OPgSoYAB.d.cts → router-D8gBzwLd.d.ts} +17 -2
  52. package/dist/skills/context-engine/SKILL.md +5 -1
  53. package/dist/storage-CJrKgJeJ.d.ts +167 -0
  54. package/dist/storage-Dvpq2xAC.d.cts +167 -0
  55. package/package.json +61 -23
  56. package/src/migrations/sql/0003_tools.sql +2 -0
  57. package/src/migrations/sql/0004_acl_indexes.sql +23 -2
  58. package/src/skills/context-engine/SKILL.md +5 -1
  59. package/dist/embeddings-B-jZ42mk.d.cts +0 -67
  60. package/dist/embeddings-DaSdAZN3.d.ts +0 -67
@@ -1,14 +1,18 @@
1
- import { h as handleIngestJson, c as createToolsHandlers } from './router-OPgSoYAB.cjs';
2
- import './governance-BDkcv4qZ.cjs';
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-Bl9U789m.cjs';
4
+ import './config-C5RZ00W6.cjs';
5
5
  import 'zod';
6
- import './redaction-BmDSWJ7h.cjs';
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-CrxZ2y_Z.js';
2
- import './governance-XIScatRO.js';
1
+ import { h as handleIngestJson, c as createToolsHandlers } from './router-D8gBzwLd.js';
2
+ import './governance-BLPK7NMe.js';
3
3
  import 'pg';
4
- import './config-Bt9bUQqU.js';
4
+ import './config-BODDdXJ7.js';
5
5
  import 'zod';
6
- import './redaction-BmDSWJ7h.js';
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;