@3ngram/config 0.5.1 → 0.5.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.
- package/dist/redaction.d.ts +11 -1
- package/dist/redaction.js +14 -0
- package/dist/redaction.js.map +1 -1
- package/package.json +2 -2
package/dist/redaction.d.ts
CHANGED
|
@@ -2,8 +2,18 @@
|
|
|
2
2
|
* Memory-content field names that must never reach logs, traces, or metrics
|
|
3
3
|
* (docs/concepts/observability.mdx §1 red line; AGENTS.md hard rule 6). Both snake_case
|
|
4
4
|
* (Drizzle rows) and camelCase (DTOs) spellings.
|
|
5
|
+
*
|
|
6
|
+
* The commitment resolution reason (issue #234) is listed under its
|
|
7
|
+
* unambiguous spellings — the stored column / read field and the core
|
|
8
|
+
* parameter. The bare `reason` key is deliberately NOT listed: it is the
|
|
9
|
+
* established key for bounded, content-free diagnostic labels (embed failure
|
|
10
|
+
* class, budget gate, OAuth rejection, breach-check outage), and blanket
|
|
11
|
+
* redaction would hash every one of those. The resolve input's `reason` never
|
|
12
|
+
* reaches a log call (transports log class names only) — pinned by the
|
|
13
|
+
* server parity integration test (apps/server/test/integration/
|
|
14
|
+
* parity.int.test.ts), which captures every line a resolve emits.
|
|
5
15
|
*/
|
|
6
|
-
export declare const REDACTED_FIELDS: readonly ["answer", "body", "chunkContent", "chunk_content", "content", "embedding", "query", "queryText", "query_text", "summary", "text", "topic"];
|
|
16
|
+
export declare const REDACTED_FIELDS: readonly ["answer", "body", "chunkContent", "chunk_content", "content", "embedding", "lastResolutionReason", "last_resolution_reason", "query", "queryText", "query_text", "resolutionReason", "resolution_reason", "summary", "text", "topic"];
|
|
7
17
|
export declare const REDACTED = "[redacted]";
|
|
8
18
|
/**
|
|
9
19
|
* Raw memory content in logs is allowed only in local dev with the explicit
|
package/dist/redaction.js
CHANGED
|
@@ -5,6 +5,16 @@ import { loadEnv } from './env.js';
|
|
|
5
5
|
* Memory-content field names that must never reach logs, traces, or metrics
|
|
6
6
|
* (docs/concepts/observability.mdx §1 red line; AGENTS.md hard rule 6). Both snake_case
|
|
7
7
|
* (Drizzle rows) and camelCase (DTOs) spellings.
|
|
8
|
+
*
|
|
9
|
+
* The commitment resolution reason (issue #234) is listed under its
|
|
10
|
+
* unambiguous spellings — the stored column / read field and the core
|
|
11
|
+
* parameter. The bare `reason` key is deliberately NOT listed: it is the
|
|
12
|
+
* established key for bounded, content-free diagnostic labels (embed failure
|
|
13
|
+
* class, budget gate, OAuth rejection, breach-check outage), and blanket
|
|
14
|
+
* redaction would hash every one of those. The resolve input's `reason` never
|
|
15
|
+
* reaches a log call (transports log class names only) — pinned by the
|
|
16
|
+
* server parity integration test (apps/server/test/integration/
|
|
17
|
+
* parity.int.test.ts), which captures every line a resolve emits.
|
|
8
18
|
*/
|
|
9
19
|
export const REDACTED_FIELDS = [
|
|
10
20
|
'answer',
|
|
@@ -13,9 +23,13 @@ export const REDACTED_FIELDS = [
|
|
|
13
23
|
'chunk_content',
|
|
14
24
|
'content',
|
|
15
25
|
'embedding',
|
|
26
|
+
'lastResolutionReason',
|
|
27
|
+
'last_resolution_reason',
|
|
16
28
|
'query',
|
|
17
29
|
'queryText',
|
|
18
30
|
'query_text',
|
|
31
|
+
'resolutionReason',
|
|
32
|
+
'resolution_reason',
|
|
19
33
|
'summary',
|
|
20
34
|
'text',
|
|
21
35
|
'topic',
|
package/dist/redaction.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"redaction.js","sourceRoot":"","sources":["../src/redaction.ts"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAA;AAElC
|
|
1
|
+
{"version":3,"file":"redaction.js","sourceRoot":"","sources":["../src/redaction.ts"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AACxC,OAAO,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json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@3ngram/config",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.3",
|
|
4
4
|
"description": "Env parsing, structured logger, request context, and observability bootstrap (docs/concepts/observability.mdx).",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "https://github.com/B3dmar/3ngram#readme",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"@opentelemetry/api": "1.9.1",
|
|
63
63
|
"@sentry/node": "10.76.0",
|
|
64
64
|
"pino": "10.4.0",
|
|
65
|
-
"zod": "4.6.
|
|
65
|
+
"zod": "4.6.6"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
68
|
"@types/node": "25.9.1",
|