@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.
@@ -1,4 +1,4 @@
1
- import { T as ToolEngine, a as ToolConfig } from './governance-D8g6Wyvb.cjs';
1
+ import { T as ToolEngine, a as ToolConfig } from './governance-P9pRb4Ol.cjs';
2
2
 
3
3
  type ContextEngineLike = {
4
4
  ingest: (args: Record<string, unknown>) => Promise<unknown>;
@@ -1,4 +1,4 @@
1
- import { T as ToolEngine, a as ToolConfig } from './governance-XFVgtEdV.js';
1
+ import { T as ToolEngine, a as ToolConfig } from './governance-BLPK7NMe.js';
2
2
 
3
3
  type ContextEngineLike = {
4
4
  ingest: (args: Record<string, unknown>) => Promise<unknown>;
@@ -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
- executes generated code. Turn it on only deliberately.
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-CNnASw5X.cjs';
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-CdlSkKgV.js';
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@promptev/context-engine",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "description": "Promptev Context Engine — language-agnostic ingestion + hybrid retrieval (TypeScript)",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Promptev Inc",
@@ -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
- executes generated code. Turn it on only deliberately.
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