@promptev/context-engine 0.0.1 → 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 +23 -0
- package/dist/cli.js +142 -58
- package/dist/cli.js.map +1 -1
- package/dist/{config-CdlSkKgV.d.ts → config-BODDdXJ7.d.ts} +33 -11
- package/dist/{config-CNnASw5X.d.cts → config-C5RZ00W6.d.cts} +33 -11
- package/dist/express.d.cts +3 -3
- package/dist/express.d.ts +3 -3
- package/dist/fastify.d.cts +3 -3
- package/dist/fastify.d.ts +3 -3
- package/dist/{governance-XFVgtEdV.d.ts → governance-BLPK7NMe.d.ts} +1 -1
- package/dist/{governance-D8g6Wyvb.d.cts → governance-P9pRb4Ol.d.cts} +1 -1
- package/dist/graph/index.cjs +51 -18
- package/dist/graph/index.cjs.map +1 -1
- package/dist/graph/index.d.cts +2 -2
- package/dist/graph/index.d.ts +2 -2
- package/dist/graph/index.js +51 -18
- package/dist/graph/index.js.map +1 -1
- package/dist/hono.d.cts +3 -3
- package/dist/hono.d.ts +3 -3
- package/dist/index.cjs +142 -57
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +62 -7
- package/dist/index.d.ts +62 -7
- package/dist/index.js +142 -58
- package/dist/index.js.map +1 -1
- package/dist/{router-Dsv3fv0R.d.cts → router-CiFwC-EN.d.cts} +1 -1
- package/dist/{router-B_DTkQgU.d.ts → router-D8gBzwLd.d.ts} +1 -1
- package/dist/skills/context-engine/SKILL.md +5 -1
- package/dist/{storage-DU1JRno5.d.cts → storage-CJrKgJeJ.d.ts} +5 -2
- package/dist/{storage-Dvt2ZxsV.d.ts → storage-Dvpq2xAC.d.cts} +5 -2
- package/package.json +1 -1
- package/src/skills/context-engine/SKILL.md +5 -1
|
@@ -70,7 +70,11 @@ await engine.search(q, { principals: user.groups }); // scoped
|
|
|
70
70
|
silently loses recall — queries return fewer rows than match, or none, with
|
|
71
71
|
no error. The library cannot compensate.
|
|
72
72
|
- **`config.enableCodeExecution` is `false` on purpose.** `engine.compute()`
|
|
73
|
-
|
|
73
|
+
and `computeOverFrames()` execute generated code. Turn it on only
|
|
74
|
+
deliberately. `computeOverFrames({ sheet: rows }, instruction, { config:
|
|
75
|
+
engine.config })` is the same guarded path for tables the host already holds
|
|
76
|
+
(no document to point at); redaction masks every string cell AND every column
|
|
77
|
+
header before the LLM sees a schema, and sweeps the result.
|
|
74
78
|
- Filing a document under an ACL the caller does not hold returns **403**, on
|
|
75
79
|
ingest and on PATCH alike.
|
|
76
80
|
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
import { b as EmbeddingConfig } from './config-
|
|
1
|
+
import { b as EmbeddingConfig } from './config-BODDdXJ7.js';
|
|
2
2
|
import { PoolClient, Pool } from 'pg';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Pluggable embeddings provider.
|
|
6
6
|
*
|
|
7
7
|
* openai / azure_openai / custom → OpenAI SDK (OpenAI-compatible, including TEI/vLLM).
|
|
8
|
-
* gemini → lazy `@google/genai` (optional extra "gemini").
|
|
8
|
+
* gemini / vertex_ai → lazy `@google/genai` (optional extra "gemini"). One
|
|
9
|
+
* code path: same SDK and models, differing only in how the client
|
|
10
|
+
* authenticates (API key vs ADC against a GCP project) — see
|
|
11
|
+
* `providers/google.ts`.
|
|
9
12
|
* voyage / cohere → fetch against their public REST APIs.
|
|
10
13
|
*
|
|
11
14
|
* `kind` is accepted everywhere but only voyage/cohere act on it.
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
import { b as EmbeddingConfig } from './config-
|
|
1
|
+
import { b as EmbeddingConfig } from './config-C5RZ00W6.cjs';
|
|
2
2
|
import { PoolClient, Pool } from 'pg';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Pluggable embeddings provider.
|
|
6
6
|
*
|
|
7
7
|
* openai / azure_openai / custom → OpenAI SDK (OpenAI-compatible, including TEI/vLLM).
|
|
8
|
-
* gemini → lazy `@google/genai` (optional extra "gemini").
|
|
8
|
+
* gemini / vertex_ai → lazy `@google/genai` (optional extra "gemini"). One
|
|
9
|
+
* code path: same SDK and models, differing only in how the client
|
|
10
|
+
* authenticates (API key vs ADC against a GCP project) — see
|
|
11
|
+
* `providers/google.ts`.
|
|
9
12
|
* voyage / cohere → fetch against their public REST APIs.
|
|
10
13
|
*
|
|
11
14
|
* `kind` is accepted everywhere but only voyage/cohere act on it.
|
package/package.json
CHANGED
|
@@ -70,7 +70,11 @@ await engine.search(q, { principals: user.groups }); // scoped
|
|
|
70
70
|
silently loses recall — queries return fewer rows than match, or none, with
|
|
71
71
|
no error. The library cannot compensate.
|
|
72
72
|
- **`config.enableCodeExecution` is `false` on purpose.** `engine.compute()`
|
|
73
|
-
|
|
73
|
+
and `computeOverFrames()` execute generated code. Turn it on only
|
|
74
|
+
deliberately. `computeOverFrames({ sheet: rows }, instruction, { config:
|
|
75
|
+
engine.config })` is the same guarded path for tables the host already holds
|
|
76
|
+
(no document to point at); redaction masks every string cell AND every column
|
|
77
|
+
header before the LLM sees a schema, and sweeps the result.
|
|
74
78
|
- Filing a document under an ACL the caller does not hold returns **403**, on
|
|
75
79
|
ingest and on PATCH alike.
|
|
76
80
|
|