@x12i/countex 1.8.2 → 1.8.5

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 CHANGED
@@ -5,6 +5,8 @@
5
5
 
6
6
  `@x12i/countex` is a **generic mapped-event counter**: a source-agnostic counting engine. You give it any JSON event, a declarative mapping config, and storage adapters; it projects events into sparse counter cells, batches deltas locally, and persists them atomically to a durable store (MongoDB) and a hot cache (Redis).
7
7
 
8
+ **Package policy:** Countex is generic. It never references a specific host product, client name, schema, or storage layout. Host-specific behavior belongs in the host application, not in this package.
9
+
8
10
  It does **not** know about users, organizations, documents, labels, or events. It only knows generic primitives: **scope, subject, metric, dimensions, timeframe, delta**. Whatever your domain calls those things — Countex doesn't care.
9
11
 
10
12
  **Terminology:** `metric` is the generic Countex name for the thing being counted or categorized. In your domain that may be a label, status, event name, operation, outcome, class, model result, or business category — the `metrics` array in a map simply lists JSON paths that resolve to those categories. Storage and APIs refer to dictionary **`sourceKey`** (the string extracted from the event); avoid confusing that with application-level UUIDs unless your map uses UUIDs as keys.
@@ -203,7 +205,7 @@ user/account × activity metric × feature/plan × timeframe
203
205
  "createdAt": "2026-05-08T14:33:00Z",
204
206
  "status": "success"
205
207
  },
206
- "app": { "id": "graphs-studio" },
208
+ "app": { "id": "app-1" },
207
209
  "model": {
208
210
  "provider": "openai",
209
211
  "name": "gpt-4.1"
@@ -40,7 +40,7 @@ Query layers read **unscaled** values depending on adapter read path — Memory/
40
40
  "createdAt": "2026-05-08T15:02:00.000Z",
41
41
  "status": "success"
42
42
  },
43
- "app": { "id": "graphs-studio" },
43
+ "app": { "id": "app-1" },
44
44
  "model": {
45
45
  "provider": "openai",
46
46
  "name": "gpt-4.1"
package/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "@x12i/countex",
3
- "version": "1.8.2",
3
+ "version": "1.8.5",
4
4
  "description": "Generic sparse counter matrices for JSON events. Dynamic counting, aggregation, and retrieval from mapped JSON inputs.",
5
5
  "repository": {
6
6
  "type": "git",
7
- "url": "git+https://github.com/x12i/countex.git"
7
+ "url": "git+https://github.com/x12i/countex-mono-repo.git",
8
+ "directory": "packages/countex"
8
9
  },
9
10
  "bugs": {
10
11
  "url": "https://github.com/x12i/countex/issues"