@promptev/context-engine 0.0.1 → 0.0.3

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 (46) hide show
  1. package/README.md +80 -0
  2. package/dist/cli.js +11990 -10954
  3. package/dist/cli.js.map +1 -1
  4. package/dist/{config-CdlSkKgV.d.ts → config-BODDdXJ7.d.ts} +33 -11
  5. package/dist/{config-CNnASw5X.d.cts → config-C5RZ00W6.d.cts} +33 -11
  6. package/dist/express.cjs.map +1 -1
  7. package/dist/express.d.cts +3 -3
  8. package/dist/express.d.ts +3 -3
  9. package/dist/express.js.map +1 -1
  10. package/dist/fastify.cjs.map +1 -1
  11. package/dist/fastify.d.cts +3 -3
  12. package/dist/fastify.d.ts +3 -3
  13. package/dist/fastify.js.map +1 -1
  14. package/dist/{governance-XFVgtEdV.d.ts → governance-BLPK7NMe.d.ts} +1 -1
  15. package/dist/{governance-D8g6Wyvb.d.cts → governance-P9pRb4Ol.d.cts} +1 -1
  16. package/dist/graph/index.cjs +57 -23
  17. package/dist/graph/index.cjs.map +1 -1
  18. package/dist/graph/index.d.cts +2 -2
  19. package/dist/graph/index.d.ts +2 -2
  20. package/dist/graph/index.js +57 -23
  21. package/dist/graph/index.js.map +1 -1
  22. package/dist/hono.cjs.map +1 -1
  23. package/dist/hono.d.cts +3 -3
  24. package/dist/hono.d.ts +3 -3
  25. package/dist/hono.js.map +1 -1
  26. package/dist/index.cjs +7559 -6464
  27. package/dist/index.cjs.map +1 -1
  28. package/dist/index.d.cts +154 -32
  29. package/dist/index.d.ts +154 -32
  30. package/dist/index.js +7543 -6450
  31. package/dist/index.js.map +1 -1
  32. package/dist/mcp-BKSmxayM.d.cts +204 -0
  33. package/dist/mcp-BKSmxayM.d.ts +204 -0
  34. package/dist/mcp.cjs +896 -70
  35. package/dist/mcp.cjs.map +1 -1
  36. package/dist/mcp.d.cts +2 -31
  37. package/dist/mcp.d.ts +2 -31
  38. package/dist/mcp.js +896 -70
  39. package/dist/mcp.js.map +1 -1
  40. package/dist/{router-Dsv3fv0R.d.cts → router-CiFwC-EN.d.cts} +1 -1
  41. package/dist/{router-B_DTkQgU.d.ts → router-D8gBzwLd.d.ts} +1 -1
  42. package/dist/skills/context-engine/SKILL.md +35 -3
  43. package/dist/{storage-DU1JRno5.d.cts → storage-CJrKgJeJ.d.ts} +5 -2
  44. package/dist/{storage-Dvt2ZxsV.d.ts → storage-Dvpq2xAC.d.cts} +5 -2
  45. package/package.json +1 -1
  46. package/src/skills/context-engine/SKILL.md +35 -3
@@ -2,39 +2,51 @@ import { z } from 'zod';
2
2
  import { R as RedactionPolicy, b as RedactionRuleInit } from './redaction-BqD_DEUQ.js';
3
3
 
4
4
  declare const embeddingSchema: z.ZodObject<{
5
- provider: z.ZodEnum<["openai", "azure_openai", "gemini", "voyage", "cohere", "custom"]>;
5
+ provider: z.ZodEnum<["openai", "azure_openai", "gemini", "vertex_ai", "voyage", "cohere", "custom"]>;
6
6
  model: z.ZodString;
7
7
  dim: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
8
8
  apiKey: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
9
9
  baseUrl: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
10
+ project: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
+ location: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
12
  }, "strip", z.ZodTypeAny, {
11
- provider: "custom" | "openai" | "azure_openai" | "gemini" | "voyage" | "cohere";
13
+ provider: "custom" | "openai" | "azure_openai" | "gemini" | "vertex_ai" | "voyage" | "cohere";
12
14
  model: string;
13
15
  dim: number | null;
14
16
  apiKey: string | null;
15
17
  baseUrl: string | null;
18
+ project?: string | null | undefined;
19
+ location?: string | null | undefined;
16
20
  }, {
17
- provider: "custom" | "openai" | "azure_openai" | "gemini" | "voyage" | "cohere";
21
+ provider: "custom" | "openai" | "azure_openai" | "gemini" | "vertex_ai" | "voyage" | "cohere";
18
22
  model: string;
19
23
  dim?: number | null | undefined;
20
24
  apiKey?: string | null | undefined;
21
25
  baseUrl?: string | null | undefined;
26
+ project?: string | null | undefined;
27
+ location?: string | null | undefined;
22
28
  }>;
23
29
  declare const llmSchema: z.ZodObject<{
24
- provider: z.ZodEnum<["anthropic", "openai", "azure_openai", "gemini", "bedrock", "custom"]>;
30
+ provider: z.ZodEnum<["anthropic", "openai", "azure_openai", "gemini", "vertex_ai", "bedrock", "custom"]>;
25
31
  model: z.ZodString;
26
32
  apiKey: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
27
33
  baseUrl: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
34
+ project: z.ZodOptional<z.ZodNullable<z.ZodString>>;
35
+ location: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
36
  }, "strip", z.ZodTypeAny, {
29
- provider: "custom" | "openai" | "azure_openai" | "gemini" | "anthropic" | "bedrock";
37
+ provider: "custom" | "openai" | "azure_openai" | "gemini" | "vertex_ai" | "anthropic" | "bedrock";
30
38
  model: string;
31
39
  apiKey: string | null;
32
40
  baseUrl: string | null;
41
+ project?: string | null | undefined;
42
+ location?: string | null | undefined;
33
43
  }, {
34
- provider: "custom" | "openai" | "azure_openai" | "gemini" | "anthropic" | "bedrock";
44
+ provider: "custom" | "openai" | "azure_openai" | "gemini" | "vertex_ai" | "anthropic" | "bedrock";
35
45
  model: string;
36
46
  apiKey?: string | null | undefined;
37
47
  baseUrl?: string | null | undefined;
48
+ project?: string | null | undefined;
49
+ location?: string | null | undefined;
38
50
  }>;
39
51
  declare const graphSchema: z.ZodObject<{
40
52
  enabled: z.ZodDefault<z.ZodBoolean>;
@@ -43,20 +55,26 @@ declare const graphSchema: z.ZodObject<{
43
55
  neo4jPassword: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
44
56
  neo4jDatabase: z.ZodDefault<z.ZodString>;
45
57
  extractionLlm: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodObject<{
46
- provider: z.ZodEnum<["anthropic", "openai", "azure_openai", "gemini", "bedrock", "custom"]>;
58
+ provider: z.ZodEnum<["anthropic", "openai", "azure_openai", "gemini", "vertex_ai", "bedrock", "custom"]>;
47
59
  model: z.ZodString;
48
60
  apiKey: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
49
61
  baseUrl: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
62
+ project: z.ZodOptional<z.ZodNullable<z.ZodString>>;
63
+ location: z.ZodOptional<z.ZodNullable<z.ZodString>>;
50
64
  }, "strip", z.ZodTypeAny, {
51
- provider: "custom" | "openai" | "azure_openai" | "gemini" | "anthropic" | "bedrock";
65
+ provider: "custom" | "openai" | "azure_openai" | "gemini" | "vertex_ai" | "anthropic" | "bedrock";
52
66
  model: string;
53
67
  apiKey: string | null;
54
68
  baseUrl: string | null;
69
+ project?: string | null | undefined;
70
+ location?: string | null | undefined;
55
71
  }, {
56
- provider: "custom" | "openai" | "azure_openai" | "gemini" | "anthropic" | "bedrock";
72
+ provider: "custom" | "openai" | "azure_openai" | "gemini" | "vertex_ai" | "anthropic" | "bedrock";
57
73
  model: string;
58
74
  apiKey?: string | null | undefined;
59
75
  baseUrl?: string | null | undefined;
76
+ project?: string | null | undefined;
77
+ location?: string | null | undefined;
60
78
  }>>>>;
61
79
  }, "strip", z.ZodTypeAny, {
62
80
  enabled: boolean;
@@ -65,10 +83,12 @@ declare const graphSchema: z.ZodObject<{
65
83
  neo4jPassword: string | null;
66
84
  neo4jDatabase: string;
67
85
  extractionLlm: {
68
- provider: "custom" | "openai" | "azure_openai" | "gemini" | "anthropic" | "bedrock";
86
+ provider: "custom" | "openai" | "azure_openai" | "gemini" | "vertex_ai" | "anthropic" | "bedrock";
69
87
  model: string;
70
88
  apiKey: string | null;
71
89
  baseUrl: string | null;
90
+ project?: string | null | undefined;
91
+ location?: string | null | undefined;
72
92
  } | null;
73
93
  }, {
74
94
  enabled?: boolean | undefined;
@@ -77,10 +97,12 @@ declare const graphSchema: z.ZodObject<{
77
97
  neo4jPassword?: string | null | undefined;
78
98
  neo4jDatabase?: string | undefined;
79
99
  extractionLlm?: {
80
- provider: "custom" | "openai" | "azure_openai" | "gemini" | "anthropic" | "bedrock";
100
+ provider: "custom" | "openai" | "azure_openai" | "gemini" | "vertex_ai" | "anthropic" | "bedrock";
81
101
  model: string;
82
102
  apiKey?: string | null | undefined;
83
103
  baseUrl?: string | null | undefined;
104
+ project?: string | null | undefined;
105
+ location?: string | null | undefined;
84
106
  } | null | undefined;
85
107
  }>;
86
108
  declare const rerankerSchema: z.ZodObject<{
@@ -2,39 +2,51 @@ import { z } from 'zod';
2
2
  import { R as RedactionPolicy, b as RedactionRuleInit } from './redaction-BqD_DEUQ.cjs';
3
3
 
4
4
  declare const embeddingSchema: z.ZodObject<{
5
- provider: z.ZodEnum<["openai", "azure_openai", "gemini", "voyage", "cohere", "custom"]>;
5
+ provider: z.ZodEnum<["openai", "azure_openai", "gemini", "vertex_ai", "voyage", "cohere", "custom"]>;
6
6
  model: z.ZodString;
7
7
  dim: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
8
8
  apiKey: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
9
9
  baseUrl: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
10
+ project: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
+ location: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
12
  }, "strip", z.ZodTypeAny, {
11
- provider: "custom" | "openai" | "azure_openai" | "gemini" | "voyage" | "cohere";
13
+ provider: "custom" | "openai" | "azure_openai" | "gemini" | "vertex_ai" | "voyage" | "cohere";
12
14
  model: string;
13
15
  dim: number | null;
14
16
  apiKey: string | null;
15
17
  baseUrl: string | null;
18
+ project?: string | null | undefined;
19
+ location?: string | null | undefined;
16
20
  }, {
17
- provider: "custom" | "openai" | "azure_openai" | "gemini" | "voyage" | "cohere";
21
+ provider: "custom" | "openai" | "azure_openai" | "gemini" | "vertex_ai" | "voyage" | "cohere";
18
22
  model: string;
19
23
  dim?: number | null | undefined;
20
24
  apiKey?: string | null | undefined;
21
25
  baseUrl?: string | null | undefined;
26
+ project?: string | null | undefined;
27
+ location?: string | null | undefined;
22
28
  }>;
23
29
  declare const llmSchema: z.ZodObject<{
24
- provider: z.ZodEnum<["anthropic", "openai", "azure_openai", "gemini", "bedrock", "custom"]>;
30
+ provider: z.ZodEnum<["anthropic", "openai", "azure_openai", "gemini", "vertex_ai", "bedrock", "custom"]>;
25
31
  model: z.ZodString;
26
32
  apiKey: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
27
33
  baseUrl: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
34
+ project: z.ZodOptional<z.ZodNullable<z.ZodString>>;
35
+ location: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
36
  }, "strip", z.ZodTypeAny, {
29
- provider: "custom" | "openai" | "azure_openai" | "gemini" | "anthropic" | "bedrock";
37
+ provider: "custom" | "openai" | "azure_openai" | "gemini" | "vertex_ai" | "anthropic" | "bedrock";
30
38
  model: string;
31
39
  apiKey: string | null;
32
40
  baseUrl: string | null;
41
+ project?: string | null | undefined;
42
+ location?: string | null | undefined;
33
43
  }, {
34
- provider: "custom" | "openai" | "azure_openai" | "gemini" | "anthropic" | "bedrock";
44
+ provider: "custom" | "openai" | "azure_openai" | "gemini" | "vertex_ai" | "anthropic" | "bedrock";
35
45
  model: string;
36
46
  apiKey?: string | null | undefined;
37
47
  baseUrl?: string | null | undefined;
48
+ project?: string | null | undefined;
49
+ location?: string | null | undefined;
38
50
  }>;
39
51
  declare const graphSchema: z.ZodObject<{
40
52
  enabled: z.ZodDefault<z.ZodBoolean>;
@@ -43,20 +55,26 @@ declare const graphSchema: z.ZodObject<{
43
55
  neo4jPassword: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
44
56
  neo4jDatabase: z.ZodDefault<z.ZodString>;
45
57
  extractionLlm: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodObject<{
46
- provider: z.ZodEnum<["anthropic", "openai", "azure_openai", "gemini", "bedrock", "custom"]>;
58
+ provider: z.ZodEnum<["anthropic", "openai", "azure_openai", "gemini", "vertex_ai", "bedrock", "custom"]>;
47
59
  model: z.ZodString;
48
60
  apiKey: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
49
61
  baseUrl: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
62
+ project: z.ZodOptional<z.ZodNullable<z.ZodString>>;
63
+ location: z.ZodOptional<z.ZodNullable<z.ZodString>>;
50
64
  }, "strip", z.ZodTypeAny, {
51
- provider: "custom" | "openai" | "azure_openai" | "gemini" | "anthropic" | "bedrock";
65
+ provider: "custom" | "openai" | "azure_openai" | "gemini" | "vertex_ai" | "anthropic" | "bedrock";
52
66
  model: string;
53
67
  apiKey: string | null;
54
68
  baseUrl: string | null;
69
+ project?: string | null | undefined;
70
+ location?: string | null | undefined;
55
71
  }, {
56
- provider: "custom" | "openai" | "azure_openai" | "gemini" | "anthropic" | "bedrock";
72
+ provider: "custom" | "openai" | "azure_openai" | "gemini" | "vertex_ai" | "anthropic" | "bedrock";
57
73
  model: string;
58
74
  apiKey?: string | null | undefined;
59
75
  baseUrl?: string | null | undefined;
76
+ project?: string | null | undefined;
77
+ location?: string | null | undefined;
60
78
  }>>>>;
61
79
  }, "strip", z.ZodTypeAny, {
62
80
  enabled: boolean;
@@ -65,10 +83,12 @@ declare const graphSchema: z.ZodObject<{
65
83
  neo4jPassword: string | null;
66
84
  neo4jDatabase: string;
67
85
  extractionLlm: {
68
- provider: "custom" | "openai" | "azure_openai" | "gemini" | "anthropic" | "bedrock";
86
+ provider: "custom" | "openai" | "azure_openai" | "gemini" | "vertex_ai" | "anthropic" | "bedrock";
69
87
  model: string;
70
88
  apiKey: string | null;
71
89
  baseUrl: string | null;
90
+ project?: string | null | undefined;
91
+ location?: string | null | undefined;
72
92
  } | null;
73
93
  }, {
74
94
  enabled?: boolean | undefined;
@@ -77,10 +97,12 @@ declare const graphSchema: z.ZodObject<{
77
97
  neo4jPassword?: string | null | undefined;
78
98
  neo4jDatabase?: string | undefined;
79
99
  extractionLlm?: {
80
- provider: "custom" | "openai" | "azure_openai" | "gemini" | "anthropic" | "bedrock";
100
+ provider: "custom" | "openai" | "azure_openai" | "gemini" | "vertex_ai" | "anthropic" | "bedrock";
81
101
  model: string;
82
102
  apiKey?: string | null | undefined;
83
103
  baseUrl?: string | null | undefined;
104
+ project?: string | null | undefined;
105
+ location?: string | null | undefined;
84
106
  } | null | undefined;
85
107
  }>;
86
108
  declare const rerankerSchema: z.ZodObject<{