@x12i/memorix-service 3.12.1 → 3.12.4
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 +1 -1
- package/dist/activity-ring.d.ts +22 -1
- package/dist/activity-ring.d.ts.map +1 -1
- package/dist/activity-ring.js +44 -0
- package/dist/activity-ring.js.map +1 -1
- package/dist/activity-routes.d.ts.map +1 -1
- package/dist/activity-routes.js +3 -2
- package/dist/activity-routes.js.map +1 -1
- package/dist/activity-ui.d.ts.map +1 -1
- package/dist/activity-ui.js +200 -11
- package/dist/activity-ui.js.map +1 -1
- package/dist/agent-catalog.d.ts +32 -0
- package/dist/agent-catalog.d.ts.map +1 -0
- package/dist/agent-catalog.js +80 -0
- package/dist/agent-catalog.js.map +1 -0
- package/dist/analytics/engine.d.ts.map +1 -1
- package/dist/analytics/engine.js +2 -1
- package/dist/analytics/engine.js.map +1 -1
- package/dist/analytics/state.d.ts +1 -1
- package/dist/analytics/tracker.d.ts +2 -0
- package/dist/analytics/tracker.d.ts.map +1 -1
- package/dist/analytics/tracker.js +15 -8
- package/dist/analytics/tracker.js.map +1 -1
- package/dist/app.d.ts.map +1 -1
- package/dist/app.js +24 -1
- package/dist/app.js.map +1 -1
- package/dist/arrivals-backfill.d.ts +23 -0
- package/dist/arrivals-backfill.d.ts.map +1 -0
- package/dist/arrivals-backfill.js +132 -0
- package/dist/arrivals-backfill.js.map +1 -0
- package/dist/arrivals-routes.d.ts +8 -0
- package/dist/arrivals-routes.d.ts.map +1 -0
- package/dist/arrivals-routes.js +17 -0
- package/dist/arrivals-routes.js.map +1 -0
- package/dist/arrivals-ui.d.ts +3 -0
- package/dist/arrivals-ui.d.ts.map +1 -0
- package/dist/arrivals-ui.js +277 -0
- package/dist/arrivals-ui.js.map +1 -0
- package/dist/catalog-bridge.d.ts.map +1 -1
- package/dist/catalog-bridge.js +32 -9
- package/dist/catalog-bridge.js.map +1 -1
- package/dist/catalog-live-routes.d.ts +4 -0
- package/dist/catalog-live-routes.d.ts.map +1 -0
- package/dist/catalog-live-routes.js +12 -0
- package/dist/catalog-live-routes.js.map +1 -0
- package/dist/catalog-live-ui.d.ts +3 -0
- package/dist/catalog-live-ui.d.ts.map +1 -0
- package/dist/catalog-live-ui.js +230 -0
- package/dist/catalog-live-ui.js.map +1 -0
- package/dist/catalog-live.d.ts +31 -0
- package/dist/catalog-live.d.ts.map +1 -0
- package/dist/catalog-live.js +67 -0
- package/dist/catalog-live.js.map +1 -0
- package/dist/content-arrivals-countex.d.ts +90 -0
- package/dist/content-arrivals-countex.d.ts.map +1 -0
- package/dist/content-arrivals-countex.js +252 -0
- package/dist/content-arrivals-countex.js.map +1 -0
- package/dist/data-changes-routes.js +1 -1
- package/dist/data-changes-routes.js.map +1 -1
- package/dist/data-changes-ui.js +2 -2
- package/dist/data-changes.d.ts +3 -0
- package/dist/data-changes.d.ts.map +1 -1
- package/dist/data-changes.js +22 -21
- package/dist/data-changes.js.map +1 -1
- package/dist/errors.d.ts +1 -1
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +4 -2
- package/dist/errors.js.map +1 -1
- package/dist/hooks/backfill.d.ts +31 -0
- package/dist/hooks/backfill.d.ts.map +1 -0
- package/dist/hooks/backfill.js +78 -0
- package/dist/hooks/backfill.js.map +1 -0
- package/dist/hooks/enqueue.d.ts +6 -1
- package/dist/hooks/enqueue.d.ts.map +1 -1
- package/dist/hooks/enqueue.js +15 -1
- package/dist/hooks/enqueue.js.map +1 -1
- package/dist/hooks/request-trigger.d.ts +16 -0
- package/dist/hooks/request-trigger.d.ts.map +1 -0
- package/dist/hooks/request-trigger.js +31 -0
- package/dist/hooks/request-trigger.js.map +1 -0
- package/dist/hooks/store.d.ts +1 -0
- package/dist/hooks/store.d.ts.map +1 -1
- package/dist/hooks/store.js +49 -0
- package/dist/hooks/store.js.map +1 -1
- package/dist/hooks/types.d.ts +16 -0
- package/dist/hooks/types.d.ts.map +1 -1
- package/dist/hooks/types.js.map +1 -1
- package/dist/hooks-live-routes.js +1 -1
- package/dist/hooks-live-routes.js.map +1 -1
- package/dist/hooks-live-ui.js +1 -1
- package/dist/land-v2-guards.d.ts +5 -12
- package/dist/land-v2-guards.d.ts.map +1 -1
- package/dist/land-v2-guards.js +10 -33
- package/dist/land-v2-guards.js.map +1 -1
- package/dist/live-ops-nav.d.ts.map +1 -1
- package/dist/live-ops-nav.js +8 -0
- package/dist/live-ops-nav.js.map +1 -1
- package/dist/nexum-analysis/outbox.d.ts +1 -1
- package/dist/nexum-analysis/reconcile.d.ts.map +1 -1
- package/dist/nexum-analysis/reconcile.js +3 -2
- package/dist/nexum-analysis/reconcile.js.map +1 -1
- package/dist/openapi/openapi.json +65 -2
- package/dist/operational-db.d.ts +2 -2
- package/dist/operational-db.d.ts.map +1 -1
- package/dist/operational-db.js +8 -11
- package/dist/operational-db.js.map +1 -1
- package/dist/platform.d.ts +9 -3
- package/dist/platform.d.ts.map +1 -1
- package/dist/platform.js +21 -8
- package/dist/platform.js.map +1 -1
- package/dist/routes/data.d.ts.map +1 -1
- package/dist/routes/data.js +109 -27
- package/dist/routes/data.js.map +1 -1
- package/dist/routes/hooks.d.ts.map +1 -1
- package/dist/routes/hooks.js +18 -0
- package/dist/routes/hooks.js.map +1 -1
- package/dist/routes/memory.d.ts.map +1 -1
- package/dist/routes/memory.js +2 -4
- package/dist/routes/memory.js.map +1 -1
- package/dist/routes/metadata.d.ts.map +1 -1
- package/dist/routes/metadata.js +12 -0
- package/dist/routes/metadata.js.map +1 -1
- package/dist/routes/mgc-landing.d.ts.map +1 -1
- package/dist/routes/mgc-landing.js +64 -94
- package/dist/routes/mgc-landing.js.map +1 -1
- package/dist/routes/workflow.d.ts.map +1 -1
- package/dist/routes/workflow.js +4 -10
- package/dist/routes/workflow.js.map +1 -1
- package/openapi/openapi.json +65 -2
- package/package.json +2 -2
package/dist/catalog-bridge.js
CHANGED
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Bridge UnifiedMetadataClient → data-plane catalogs for ops wiring.
|
|
3
|
-
*
|
|
4
|
-
* Catalog lookups resolve against live installed metadata on every call so
|
|
5
|
-
* OrgPorts cache hits do not freeze a pre-install empty object-type map
|
|
6
|
-
* (e.g. agent alone after pack install must see new objectTypes).
|
|
7
|
-
*/
|
|
8
|
-
import { BUILTIN_CONTENT_PROFILES } from "@x12i/memorix-format/v2";
|
|
9
1
|
function asCategory(v) {
|
|
10
2
|
if (v === "event" || v === "knowledge" || v === "entity")
|
|
11
3
|
return v;
|
|
@@ -126,7 +118,38 @@ export function catalogFromMetadataClient(metadata, agentIds) {
|
|
|
126
118
|
return buildObjectTypes(metadata, agentIds).get(objectType) ?? null;
|
|
127
119
|
},
|
|
128
120
|
getContentProfile(contentType) {
|
|
129
|
-
|
|
121
|
+
const effective = metadata.resolveEffective(agentIds);
|
|
122
|
+
for (const entry of effective.effective ?? []) {
|
|
123
|
+
if (entry.kind !== "object-types")
|
|
124
|
+
continue;
|
|
125
|
+
const raw = entry.definition.contentTypes;
|
|
126
|
+
if (!Array.isArray(raw))
|
|
127
|
+
continue;
|
|
128
|
+
for (const item of raw) {
|
|
129
|
+
if (!item || typeof item !== "object")
|
|
130
|
+
continue;
|
|
131
|
+
const ct = item;
|
|
132
|
+
if (ct.id !== contentType || typeof ct.profile?.allowSnapshotBuckets !== "boolean")
|
|
133
|
+
continue;
|
|
134
|
+
const disc = ct.discriminator;
|
|
135
|
+
return {
|
|
136
|
+
contentType,
|
|
137
|
+
allowSnapshotBuckets: ct.profile.allowSnapshotBuckets,
|
|
138
|
+
...(disc?.path
|
|
139
|
+
? {
|
|
140
|
+
discriminator: {
|
|
141
|
+
path: disc.path,
|
|
142
|
+
required: disc.required === true,
|
|
143
|
+
...(typeof disc.defaultValue === "string" && disc.defaultValue
|
|
144
|
+
? { defaultValue: disc.defaultValue }
|
|
145
|
+
: {}),
|
|
146
|
+
},
|
|
147
|
+
}
|
|
148
|
+
: {}),
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
return undefined;
|
|
130
153
|
},
|
|
131
154
|
getAllowedQueryPaths(_objectType, _contentType) {
|
|
132
155
|
return [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalog-bridge.js","sourceRoot":"","sources":["../src/catalog-bridge.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"catalog-bridge.js","sourceRoot":"","sources":["../src/catalog-bridge.ts"],"names":[],"mappings":"AAwBA,SAAS,UAAU,CAAC,CAAU;IAC5B,IAAI,CAAC,KAAK,OAAO,IAAI,CAAC,KAAK,WAAW,IAAI,CAAC,KAAK,QAAQ;QAAE,OAAO,CAAC,CAAC;IACnE,OAAO,QAAQ,CAAC;AAClB,CAAC;AAED,SAAS,gBAAgB,CACvB,QAA+B,EAC/B,QAAkB;IAElB,MAAM,SAAS,GAAG,QAAQ,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAC;IACtD,MAAM,WAAW,GAAG,IAAI,GAAG,EAA0B,CAAC;IAEtD,KAAK,MAAM,KAAK,IAAI,SAAS,CAAC,SAAS,IAAI,EAAE,EAAE,CAAC;QAC9C,MAAM,GAAG,GAAG,KAAK,CAAC,UAAqC,CAAC;QACxD,IAAI,KAAK,CAAC,IAAI,KAAK,cAAc,EAAE,CAAC;YAClC,MAAM,EAAE,GAAG,MAAM,CAAC,GAAG,CAAC,EAAE,IAAI,KAAK,CAAC,EAAE,CAAC,CAAC;YACtC,MAAM,eAAe,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,CAAC;YAChF,MAAM,YAAY,GAAG,eAAe;iBACjC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CACV,OAAO,EAAE,KAAK,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,CAAE,EAAsB,CAAC,EAAE,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-0,0 +1,4 @@
|
|
|
1
|
+
import type { FastifyInstance } from "fastify";
|
|
2
|
+
import type { UnifiedMetadataClient } from "@x12i/memorix-metadata-runtime";
|
|
3
|
+
export declare function registerCatalogLiveRoutes(app: FastifyInstance, metadata: UnifiedMetadataClient): void;
|
|
4
|
+
//# sourceMappingURL=catalog-live-routes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog-live-routes.d.ts","sourceRoot":"","sources":["../src/catalog-live-routes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAC/C,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAI5E,wBAAgB,yBAAyB,CACvC,GAAG,EAAE,eAAe,EACpB,QAAQ,EAAE,qBAAqB,GAC9B,IAAI,CASN"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { snapshotCatalogLive } from "./catalog-live.js";
|
|
2
|
+
import { catalogLiveHtml } from "./catalog-live-ui.js";
|
|
3
|
+
export function registerCatalogLiveRoutes(app, metadata) {
|
|
4
|
+
app.get("/_live/catalog", async (_req, reply) => {
|
|
5
|
+
return reply.header("cache-control", "no-store").type("text/html; charset=utf-8").send(catalogLiveHtml());
|
|
6
|
+
});
|
|
7
|
+
app.get("/_live/api/catalog", async () => {
|
|
8
|
+
const snap = snapshotCatalogLive(metadata);
|
|
9
|
+
return { ok: true, generatedAt: new Date().toISOString(), ...snap };
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=catalog-live-routes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog-live-routes.js","sourceRoot":"","sources":["../src/catalog-live-routes.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD,MAAM,UAAU,yBAAyB,CACvC,GAAoB,EACpB,QAA+B;IAE/B,GAAG,CAAC,GAAG,CAAC,gBAAgB,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE;QAC9C,OAAO,KAAK,CAAC,MAAM,CAAC,eAAe,EAAE,UAAU,CAAC,CAAC,IAAI,CAAC,0BAA0B,CAAC,CAAC,IAAI,CAAC,eAAe,EAAE,CAAC,CAAC;IAC5G,CAAC,CAAC,CAAC;IAEH,GAAG,CAAC,GAAG,CAAC,oBAAoB,EAAE,KAAK,IAAI,EAAE;QACvC,MAAM,IAAI,GAAG,mBAAmB,CAAC,QAAQ,CAAC,CAAC;QAC3C,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,EAAE,GAAG,IAAI,EAAE,CAAC;IACtE,CAAC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog-live-ui.d.ts","sourceRoot":"","sources":["../src/catalog-live-ui.ts"],"names":[],"mappings":"AAAA,yFAAyF;AACzF,wBAAgB,eAAe,IAAI,MAAM,CAmOxC"}
|
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
/** HTML for GET /_live/catalog — registered object types and content types per agent. */
|
|
2
|
+
export function catalogLiveHtml() {
|
|
3
|
+
return `<!DOCTYPE html>
|
|
4
|
+
<html lang="en">
|
|
5
|
+
<head>
|
|
6
|
+
<meta charset="utf-8" />
|
|
7
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
8
|
+
<title>Memorix · Catalog</title>
|
|
9
|
+
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
|
10
|
+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
|
11
|
+
<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap" rel="stylesheet" />
|
|
12
|
+
<style>
|
|
13
|
+
:root {
|
|
14
|
+
--bg: #0a0c10; --bg-elev: #10141b; --bg-row: #141922; --line: #242b38;
|
|
15
|
+
--text: #e8ebe6; --muted: #8a9288; --dim: #5c645c;
|
|
16
|
+
--ok: #3dba7a; --bad: #e25a5a; --accent: #c8f082; --accent-ink: #0a0c10;
|
|
17
|
+
--sans: "IBM Plex Sans", system-ui, sans-serif;
|
|
18
|
+
--mono: "IBM Plex Mono", ui-monospace, monospace;
|
|
19
|
+
}
|
|
20
|
+
* { box-sizing: border-box; }
|
|
21
|
+
html, body { margin: 0; }
|
|
22
|
+
body {
|
|
23
|
+
font-family: var(--sans);
|
|
24
|
+
background:
|
|
25
|
+
radial-gradient(1200px 600px at 10% -10%, #1a2214 0%, transparent 55%),
|
|
26
|
+
radial-gradient(900px 500px at 100% 0%, #121820 0%, transparent 50%),
|
|
27
|
+
var(--bg);
|
|
28
|
+
color: var(--text); font-size: 14px; line-height: 1.45;
|
|
29
|
+
}
|
|
30
|
+
a { color: var(--accent); }
|
|
31
|
+
.shell { max-width: 1280px; margin: 0 auto; padding: 36px 28px 64px; }
|
|
32
|
+
header {
|
|
33
|
+
display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
|
|
34
|
+
margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--line);
|
|
35
|
+
}
|
|
36
|
+
.brand { font-size: 26px; font-weight: 700; letter-spacing: -0.03em; }
|
|
37
|
+
.brand span { color: var(--accent); }
|
|
38
|
+
.sub { margin-top: 8px; color: var(--muted); font-size: 13px; max-width: 72ch; }
|
|
39
|
+
.meta { text-align: right; font-family: var(--mono); font-size: 11px; color: var(--dim); display: grid; gap: 4px; }
|
|
40
|
+
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
|
|
41
|
+
.btn, input, select {
|
|
42
|
+
appearance: none; border: 1px solid var(--line); background: var(--bg-row); color: var(--text);
|
|
43
|
+
font: 500 12px/1 var(--sans); padding: 10px 14px; border-radius: 2px;
|
|
44
|
+
}
|
|
45
|
+
input { min-width: 240px; font-family: var(--mono); }
|
|
46
|
+
.btn { cursor: pointer; }
|
|
47
|
+
.btn:hover, input:focus, select:focus { border-color: var(--accent); outline: none; }
|
|
48
|
+
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 18px; }
|
|
49
|
+
.card { background: var(--bg-elev); border: 1px solid var(--line); padding: 12px 14px; }
|
|
50
|
+
.card h3 {
|
|
51
|
+
margin: 0 0 6px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em;
|
|
52
|
+
text-transform: uppercase; color: var(--dim); font-weight: 500;
|
|
53
|
+
}
|
|
54
|
+
.card .val { font-family: var(--mono); font-size: 22px; font-weight: 600; }
|
|
55
|
+
h2 {
|
|
56
|
+
margin: 22px 0 10px; font-size: 12px; font-family: var(--mono);
|
|
57
|
+
letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); font-weight: 500;
|
|
58
|
+
}
|
|
59
|
+
table { width: 100%; border-collapse: collapse; background: var(--bg-elev); border: 1px solid var(--line); margin-bottom: 18px; }
|
|
60
|
+
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
|
|
61
|
+
th:first-child, td:first-child, th:last-child, td:last-child { white-space: nowrap; }
|
|
62
|
+
th {
|
|
63
|
+
font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
|
|
64
|
+
color: var(--dim); font-weight: 500; background: #0d1016;
|
|
65
|
+
}
|
|
66
|
+
tr:last-child td { border-bottom: 0; }
|
|
67
|
+
tr.group-head td {
|
|
68
|
+
background: #0d1016; color: var(--accent); font-family: var(--mono); font-size: 12px; font-weight: 600;
|
|
69
|
+
}
|
|
70
|
+
.mono { font-family: var(--mono); font-size: 12px; }
|
|
71
|
+
.muted { color: var(--muted); }
|
|
72
|
+
.chips { display: flex; flex-wrap: wrap; gap: 4px; }
|
|
73
|
+
.chip {
|
|
74
|
+
font-family: var(--mono); font-size: 11px; padding: 2px 6px;
|
|
75
|
+
border: 1px solid var(--line); color: var(--text); background: #0d1016;
|
|
76
|
+
}
|
|
77
|
+
.chip.required { border-color: #3d5a32; color: var(--accent); }
|
|
78
|
+
.err { color: var(--bad); margin: 8px 0; }
|
|
79
|
+
.issue { color: var(--bad); font-family: var(--mono); font-size: 12px; }
|
|
80
|
+
footer { margin-top: 28px; color: var(--dim); font-size: 12px; }
|
|
81
|
+
.empty { color: var(--muted); padding: 16px; border: 1px solid var(--line); background: var(--bg-elev); }
|
|
82
|
+
</style>
|
|
83
|
+
</head>
|
|
84
|
+
<body>
|
|
85
|
+
<div class="shell">
|
|
86
|
+
<header>
|
|
87
|
+
<div>
|
|
88
|
+
<div class="brand">Memorix <span>catalog</span></div>
|
|
89
|
+
<p class="sub">Each app writes through an agent id. The scope is the metadata pack that allowlists object types and content types. <span class="mono">network-synapix</span> is that scope. <span class="mono">neo-network</span> is the agent. The app is a separate id.</p>
|
|
90
|
+
</div>
|
|
91
|
+
<div class="meta">
|
|
92
|
+
<div><strong>UI</strong> /_live/catalog</div>
|
|
93
|
+
<div><strong>API</strong> /_live/api/catalog</div>
|
|
94
|
+
<div><a href="/_live">← live view</a> · <a href="/_live/activity">activity</a> · <a href="/_live/arrivals">arrivals</a> · <a href="/_live/changes">data changes</a></div>
|
|
95
|
+
</div>
|
|
96
|
+
</header>
|
|
97
|
+
<div class="toolbar">
|
|
98
|
+
<input id="q" type="search" placeholder="app, agent, scope, object type, content type" aria-label="Search" />
|
|
99
|
+
<button class="btn" id="refresh" type="button">Refresh</button>
|
|
100
|
+
<span class="mono muted" id="asof"></span>
|
|
101
|
+
</div>
|
|
102
|
+
<div class="cards" id="cards"></div>
|
|
103
|
+
<div id="error" class="err" hidden></div>
|
|
104
|
+
<div id="agents"></div>
|
|
105
|
+
<footer>Refreshes every 20 seconds. A content type with a green border is required on that object type. “Defined by” is the agent that authored the type when it is inherited.</footer>
|
|
106
|
+
</div>
|
|
107
|
+
<script>
|
|
108
|
+
const q = document.getElementById("q");
|
|
109
|
+
const cards = document.getElementById("cards");
|
|
110
|
+
const agentsEl = document.getElementById("agents");
|
|
111
|
+
const errorEl = document.getElementById("error");
|
|
112
|
+
const asof = document.getElementById("asof");
|
|
113
|
+
let snapshot = null;
|
|
114
|
+
|
|
115
|
+
function esc(s) {
|
|
116
|
+
return String(s ?? "").replace(/[&<>"']/g, (c) => ({
|
|
117
|
+
"&": "&", "<": "<", ">": ">", '"': """, "'": "'"
|
|
118
|
+
}[c]));
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
function matches(agent, ot, needle) {
|
|
122
|
+
if (!needle) return true;
|
|
123
|
+
const hay = [
|
|
124
|
+
agent.agentId,
|
|
125
|
+
ot ? ot.id : "",
|
|
126
|
+
ot ? ot.name : "",
|
|
127
|
+
ot ? ot.dataCategory : "",
|
|
128
|
+
ot ? ot.definedByAgentId : "",
|
|
129
|
+
ot ? ot.contentTypes.map((c) => c.id).join(" ") : "",
|
|
130
|
+
].join(" ").toLowerCase();
|
|
131
|
+
return hay.includes(needle);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
function useMatches(row, needle) {
|
|
135
|
+
if (!needle) return true;
|
|
136
|
+
return [row.appId, row.agentId, row.scope].join(" ").toLowerCase().includes(needle);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
function render() {
|
|
140
|
+
const needle = q.value.trim().toLowerCase();
|
|
141
|
+
const agents = (snapshot && snapshot.agents) || [];
|
|
142
|
+
const uses = ((snapshot && snapshot.uses) || []).filter((row) => useMatches(row, needle));
|
|
143
|
+
const agentIds = new Set(uses.map((row) => row.agentId));
|
|
144
|
+
const scopeIds = new Set(uses.map((row) => row.scope));
|
|
145
|
+
let otCount = 0;
|
|
146
|
+
let ctCount = 0;
|
|
147
|
+
let shownAgents = 0;
|
|
148
|
+
let body = "";
|
|
149
|
+
if (uses.length) {
|
|
150
|
+
body += "<h2>Apps</h2>";
|
|
151
|
+
body += "<table><thead><tr><th>appId</th><th>agentId</th><th>scope</th><th>Object types</th><th>Content types</th></tr></thead><tbody>";
|
|
152
|
+
for (const row of uses) {
|
|
153
|
+
body += "<tr><td class='mono'>" + esc(row.appId) + "</td><td class='mono'>" + esc(row.agentId) +
|
|
154
|
+
"</td><td class='mono'>" + esc(row.scope) + "</td><td class='mono'>" + esc(row.objectTypeCount) +
|
|
155
|
+
"</td><td class='mono'>" + esc(row.contentTypeCount) + "</td></tr>";
|
|
156
|
+
}
|
|
157
|
+
body += "</tbody></table>";
|
|
158
|
+
}
|
|
159
|
+
for (const agent of agents) {
|
|
160
|
+
if (agentIds.has(agent.agentId)) continue;
|
|
161
|
+
const rows = (agent.objectTypes || []).filter((ot) => matches(agent, ot, needle));
|
|
162
|
+
const agentHit = matches(agent, null, needle);
|
|
163
|
+
if (needle && !agentHit && rows.length === 0) continue;
|
|
164
|
+
shownAgents += 1;
|
|
165
|
+
const visible = needle && !agentHit ? rows : (needle ? rows : agent.objectTypes || []);
|
|
166
|
+
otCount += visible.length;
|
|
167
|
+
for (const ot of visible) ctCount += ot.contentTypes.length;
|
|
168
|
+
const issue = agent.ok ? "" : '<div class="issue">' + esc((agent.issues || []).join("; ") || "resolve failed") + "</div>";
|
|
169
|
+
const role = scopeIds.has(agent.agentId) ? "scope " : "pack ";
|
|
170
|
+
body += "<h2>" + role + esc(agent.agentId) + "</h2>" + issue;
|
|
171
|
+
if (!visible.length) {
|
|
172
|
+
body += '<div class="empty">No object types' + (needle ? " match this search." : " registered.") + "</div>";
|
|
173
|
+
continue;
|
|
174
|
+
}
|
|
175
|
+
body += '<table><thead><tr><th>Object type</th><th>Content types</th><th>Defined by</th></tr></thead><tbody>';
|
|
176
|
+
body += '<tr class="group-head"><td colspan="3">' + esc(agent.agentId) +
|
|
177
|
+
" · " + visible.length + " object types · " +
|
|
178
|
+
visible.reduce((n, ot) => n + ot.contentTypes.length, 0) + " content types</td></tr>";
|
|
179
|
+
for (const ot of visible) {
|
|
180
|
+
const chips = ot.contentTypes.length
|
|
181
|
+
? '<div class="chips">' + ot.contentTypes.map((c) =>
|
|
182
|
+
'<span class="chip' + (c.required ? " required" : "") + '" title="' + (c.required ? "required" : "optional") + '">' + esc(c.id) + "</span>"
|
|
183
|
+
).join("") + "</div>"
|
|
184
|
+
: '<span class="muted">—</span>';
|
|
185
|
+
const defined = ot.definedByAgentId && ot.definedByAgentId !== agent.agentId
|
|
186
|
+
? esc(ot.definedByAgentId)
|
|
187
|
+
: '<span class="muted">' + esc(agent.agentId) + "</span>";
|
|
188
|
+
const cat = ot.dataCategory ? ' <span class="muted">· ' + esc(ot.dataCategory) + "</span>" : "";
|
|
189
|
+
body += "<tr><td class='mono'>" + esc(ot.id) + cat + "</td><td>" + chips + "</td><td class='mono'>" + defined + "</td></tr>";
|
|
190
|
+
}
|
|
191
|
+
body += "</tbody></table>";
|
|
192
|
+
}
|
|
193
|
+
if (!body) {
|
|
194
|
+
body = '<div class="empty">' + (agents.length ? "No types match this search." : "No agents are installed.") + "</div>";
|
|
195
|
+
}
|
|
196
|
+
agentsEl.innerHTML = body;
|
|
197
|
+
const appCount = uses.length || shownAgents;
|
|
198
|
+
cards.innerHTML =
|
|
199
|
+
card(uses.length ? "Apps" : "Packs", appCount) +
|
|
200
|
+
card("Object types", otCount) +
|
|
201
|
+
card("Content types", ctCount);
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
function card(label, value) {
|
|
205
|
+
return '<div class="card"><h3>' + esc(label) + '</h3><div class="val">' + esc(value) + "</div></div>";
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
async function load() {
|
|
209
|
+
try {
|
|
210
|
+
const res = await fetch("/_live/api/catalog");
|
|
211
|
+
if (!res.ok) throw new Error("catalog " + res.status);
|
|
212
|
+
snapshot = await res.json();
|
|
213
|
+
errorEl.hidden = true;
|
|
214
|
+
asof.textContent = snapshot.generatedAt ? new Date(snapshot.generatedAt).toLocaleString() : "";
|
|
215
|
+
render();
|
|
216
|
+
} catch (err) {
|
|
217
|
+
errorEl.hidden = false;
|
|
218
|
+
errorEl.textContent = err && err.message ? err.message : String(err);
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
q.addEventListener("input", render);
|
|
223
|
+
document.getElementById("refresh").addEventListener("click", load);
|
|
224
|
+
load();
|
|
225
|
+
setInterval(load, 20000);
|
|
226
|
+
</script>
|
|
227
|
+
</body>
|
|
228
|
+
</html>`;
|
|
229
|
+
}
|
|
230
|
+
//# sourceMappingURL=catalog-live-ui.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog-live-ui.js","sourceRoot":"","sources":["../src/catalog-live-ui.ts"],"names":[],"mappings":"AAAA,yFAAyF;AACzF,MAAM,UAAU,eAAe;IAC7B,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAiOD,CAAC;AACT,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { UnifiedMetadataClient } from "@x12i/memorix-metadata-runtime";
|
|
2
|
+
export type CatalogContentType = {
|
|
3
|
+
id: string;
|
|
4
|
+
required: boolean;
|
|
5
|
+
};
|
|
6
|
+
export type CatalogObjectType = {
|
|
7
|
+
id: string;
|
|
8
|
+
name: string;
|
|
9
|
+
dataCategory: string;
|
|
10
|
+
definedByAgentId: string;
|
|
11
|
+
contentTypes: CatalogContentType[];
|
|
12
|
+
};
|
|
13
|
+
export type CatalogAgent = {
|
|
14
|
+
agentId: string;
|
|
15
|
+
ok: boolean;
|
|
16
|
+
issues: string[];
|
|
17
|
+
objectTypes: CatalogObjectType[];
|
|
18
|
+
};
|
|
19
|
+
export type CatalogUse = {
|
|
20
|
+
appId: string;
|
|
21
|
+
agentId: string;
|
|
22
|
+
scope: string;
|
|
23
|
+
objectTypeCount: number;
|
|
24
|
+
contentTypeCount: number;
|
|
25
|
+
};
|
|
26
|
+
/** Installed packs, and which app uses which agent against which data scope. */
|
|
27
|
+
export declare function snapshotCatalogLive(metadata: UnifiedMetadataClient): {
|
|
28
|
+
agents: CatalogAgent[];
|
|
29
|
+
uses: CatalogUse[];
|
|
30
|
+
};
|
|
31
|
+
//# sourceMappingURL=catalog-live.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog-live.d.ts","sourceRoot":"","sources":["../src/catalog-live.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAE5E,MAAM,MAAM,kBAAkB,GAAG;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,gBAAgB,EAAE,MAAM,CAAC;IACzB,YAAY,EAAE,kBAAkB,EAAE,CAAC;CACpC,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB,EAAE,EAAE,OAAO,CAAC;IACZ,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,WAAW,EAAE,iBAAiB,EAAE,CAAC;CAClC,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,eAAe,EAAE,MAAM,CAAC;IACxB,gBAAgB,EAAE,MAAM,CAAC;CAC1B,CAAC;AA8BF,gFAAgF;AAChF,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,qBAAqB,GAAG;IACpE,MAAM,EAAE,YAAY,EAAE,CAAC;IACvB,IAAI,EAAE,UAAU,EAAE,CAAC;CACpB,CAoCA"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Apps that read and write through one agent, against one data-scope pack.
|
|
3
|
+
* The scope pack is the object-type allowlist. The agent id is not a second catalog.
|
|
4
|
+
*/
|
|
5
|
+
const SCOPE_USES = [
|
|
6
|
+
{ appId: "synapix", agentId: "neo-network", scope: "network-synapix" },
|
|
7
|
+
{ appId: "memorix-skills", agentId: "neo-network", scope: "network-synapix" },
|
|
8
|
+
{ appId: "web-app", agentId: "neo-network", scope: "network-synapix" },
|
|
9
|
+
];
|
|
10
|
+
function contentTypesOf(definition) {
|
|
11
|
+
const raw = definition.contentTypes;
|
|
12
|
+
if (!Array.isArray(raw))
|
|
13
|
+
return [];
|
|
14
|
+
const out = [];
|
|
15
|
+
for (const item of raw) {
|
|
16
|
+
if (typeof item === "string" && item.trim()) {
|
|
17
|
+
out.push({ id: item.trim(), required: false });
|
|
18
|
+
continue;
|
|
19
|
+
}
|
|
20
|
+
if (!item || typeof item !== "object")
|
|
21
|
+
continue;
|
|
22
|
+
const id = item.id;
|
|
23
|
+
if (typeof id !== "string" || !id.trim())
|
|
24
|
+
continue;
|
|
25
|
+
out.push({ id: id.trim(), required: item.required === true });
|
|
26
|
+
}
|
|
27
|
+
out.sort((a, b) => a.id.localeCompare(b.id));
|
|
28
|
+
return out;
|
|
29
|
+
}
|
|
30
|
+
/** Installed packs, and which app uses which agent against which data scope. */
|
|
31
|
+
export function snapshotCatalogLive(metadata) {
|
|
32
|
+
const exported = metadata.exportMetadata();
|
|
33
|
+
const agents = exported.agentIds.map((agentId) => {
|
|
34
|
+
const resolved = metadata.resolveEffective([agentId]);
|
|
35
|
+
const issues = resolved.ok ? [] : resolved.issues.map((issue) => issue.message);
|
|
36
|
+
const objectTypes = [];
|
|
37
|
+
if (resolved.ok) {
|
|
38
|
+
for (const entry of resolved.effective) {
|
|
39
|
+
if (entry.kind !== "object-types")
|
|
40
|
+
continue;
|
|
41
|
+
const name = entry.definition.name;
|
|
42
|
+
const dataCategory = entry.definition.dataCategory;
|
|
43
|
+
objectTypes.push({
|
|
44
|
+
id: entry.id,
|
|
45
|
+
name: typeof name === "string" && name.trim() ? name.trim() : entry.id,
|
|
46
|
+
dataCategory: typeof dataCategory === "string" && dataCategory.trim() ? dataCategory.trim() : "",
|
|
47
|
+
definedByAgentId: entry.provenance.definedByAgentId,
|
|
48
|
+
contentTypes: contentTypesOf(entry.definition),
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
objectTypes.sort((a, b) => a.id.localeCompare(b.id));
|
|
53
|
+
return { agentId, ok: resolved.ok, issues, objectTypes };
|
|
54
|
+
});
|
|
55
|
+
const byId = new Map(agents.map((agent) => [agent.agentId, agent]));
|
|
56
|
+
const uses = SCOPE_USES.filter((row) => byId.has(row.scope) && byId.has(row.agentId)).map((row) => {
|
|
57
|
+
const scope = byId.get(row.scope);
|
|
58
|
+
const contentTypeCount = scope.objectTypes.reduce((sum, ot) => sum + ot.contentTypes.length, 0);
|
|
59
|
+
return {
|
|
60
|
+
...row,
|
|
61
|
+
objectTypeCount: scope.objectTypes.length,
|
|
62
|
+
contentTypeCount,
|
|
63
|
+
};
|
|
64
|
+
});
|
|
65
|
+
return { agents, uses };
|
|
66
|
+
}
|
|
67
|
+
//# sourceMappingURL=catalog-live.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog-live.js","sourceRoot":"","sources":["../src/catalog-live.ts"],"names":[],"mappings":"AA8BA;;;GAGG;AACH,MAAM,UAAU,GAA2D;IACzE,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,aAAa,EAAE,KAAK,EAAE,iBAAiB,EAAE;IACtE,EAAE,KAAK,EAAE,gBAAg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The live writer increments it. A one-time backfill fills earlier hours from
|
|
6
|
+
* stored timestamps. Deletes and analytics rollup writes are not counted.
|
|
7
|
+
*/
|
|
8
|
+
import type { MongoClient } from "mongodb";
|
|
9
|
+
import { type WriteEvent } from "./analytics/tracker.js";
|
|
10
|
+
export declare const CONTENT_ARRIVALS_COUNTER_ID = "content_arrivals";
|
|
11
|
+
export declare const CONTENT_ARRIVALS_DB = "memorix_content_arrivals";
|
|
12
|
+
export type ArrivalOp = "created" | "updated";
|
|
13
|
+
export type ArrivalEvent = {
|
|
14
|
+
orgId: string;
|
|
15
|
+
objectType: string;
|
|
16
|
+
contentType: string;
|
|
17
|
+
op: ArrivalOp;
|
|
18
|
+
/** ISO time. The hour bucket is taken from this instant. */
|
|
19
|
+
at: string;
|
|
20
|
+
delta?: number;
|
|
21
|
+
datasourceService?: string;
|
|
22
|
+
};
|
|
23
|
+
export type ArrivalContentType = {
|
|
24
|
+
contentType: string;
|
|
25
|
+
created: number;
|
|
26
|
+
updated: number;
|
|
27
|
+
};
|
|
28
|
+
export type ArrivalObjectType = {
|
|
29
|
+
objectType: string;
|
|
30
|
+
created: number;
|
|
31
|
+
updated: number;
|
|
32
|
+
contentTypes: ArrivalContentType[];
|
|
33
|
+
};
|
|
34
|
+
export type ArrivalOrgHour = {
|
|
35
|
+
orgId: string;
|
|
36
|
+
created: number;
|
|
37
|
+
updated: number;
|
|
38
|
+
objectTypes: ArrivalObjectType[];
|
|
39
|
+
};
|
|
40
|
+
export type ArrivalHour = {
|
|
41
|
+
/** UTC hour key, `YYYY-MM-DDTHH`. */
|
|
42
|
+
hour: string;
|
|
43
|
+
created: number;
|
|
44
|
+
updated: number;
|
|
45
|
+
orgs: ArrivalOrgHour[];
|
|
46
|
+
};
|
|
47
|
+
export type ArrivalsBackfillStatus = {
|
|
48
|
+
status: "idle" | "running" | "done" | "skipped" | "error";
|
|
49
|
+
cutoff: string | null;
|
|
50
|
+
hours: number | null;
|
|
51
|
+
error?: string;
|
|
52
|
+
};
|
|
53
|
+
export type ArrivalsReport = {
|
|
54
|
+
ok: true;
|
|
55
|
+
storage: "memory" | "mongo";
|
|
56
|
+
generatedAt: string;
|
|
57
|
+
hours: number;
|
|
58
|
+
from: string;
|
|
59
|
+
to: string;
|
|
60
|
+
orgId: string | null;
|
|
61
|
+
orgIds: string[];
|
|
62
|
+
truncated: boolean;
|
|
63
|
+
backfill: ArrivalsBackfillStatus;
|
|
64
|
+
series: ArrivalHour[];
|
|
65
|
+
};
|
|
66
|
+
export type ContentArrivals = {
|
|
67
|
+
readonly storage: "memory" | "mongo";
|
|
68
|
+
readonly cutoff: string;
|
|
69
|
+
knownOrgIds(): string[];
|
|
70
|
+
backfillStatus(): ArrivalsBackfillStatus;
|
|
71
|
+
setBackfillStatus(next: ArrivalsBackfillStatus): void;
|
|
72
|
+
/** True after shutdown. Backfill stops between collections. */
|
|
73
|
+
isClosed(): boolean;
|
|
74
|
+
observeWrite(orgId: string, event: WriteEvent): void;
|
|
75
|
+
record(event: ArrivalEvent): void;
|
|
76
|
+
ingestMany(events: ArrivalEvent[]): Promise<void>;
|
|
77
|
+
query(opts?: {
|
|
78
|
+
orgId?: string;
|
|
79
|
+
hours?: number;
|
|
80
|
+
now?: Date;
|
|
81
|
+
orgIds?: string[];
|
|
82
|
+
}): Promise<ArrivalsReport>;
|
|
83
|
+
flush(): Promise<void>;
|
|
84
|
+
shutdown(): Promise<void>;
|
|
85
|
+
};
|
|
86
|
+
export declare function hourKeysEnding(now: Date, hours: number): string[];
|
|
87
|
+
export declare function createContentArrivals(opts?: {
|
|
88
|
+
mongoClient?: MongoClient | null;
|
|
89
|
+
}): Promise<ContentArrivals>;
|
|
90
|
+
//# sourceMappingURL=content-arrivals-countex.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"content-arrivals-countex.d.ts","sourceRoot":"","sources":["../src/content-arrivals-countex.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EAAE,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