@m8t-stack/cli 0.2.150 → 0.2.152
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/cli.js +20 -4
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -1464,7 +1464,7 @@ function installFoundryDnsShim() {
|
|
|
1464
1464
|
}
|
|
1465
1465
|
|
|
1466
1466
|
// src/lib/package-version.ts
|
|
1467
|
-
var CLI_VERSION = "0.2.
|
|
1467
|
+
var CLI_VERSION = "0.2.152";
|
|
1468
1468
|
|
|
1469
1469
|
// src/lib/render-error.ts
|
|
1470
1470
|
init_errors();
|
|
@@ -30081,9 +30081,14 @@ async function runPipeline(args) {
|
|
|
30081
30081
|
(consumedRowsByPk[pk] ??= []).push(...grpRows);
|
|
30082
30082
|
const trustedOwner = g.source !== "a2a" && g.user.ref !== "unknown" && !g.user.ref.startsWith("svc:");
|
|
30083
30083
|
const dreamItems = trustedOwner ? teachingFilteredItems : teachingFilteredItems.map((i) => ({ ...i, text: maskContactStrict(i.text) }));
|
|
30084
|
-
const
|
|
30084
|
+
const scrubTraceText = (t) => trustedOwner ? maskSecrets(t) : maskContactStrict(maskSecrets(t));
|
|
30085
|
+
const dreamEnrichment = !enrichment ? enrichment : {
|
|
30085
30086
|
...enrichment,
|
|
30086
|
-
tools: enrichment.tools.map((t) => ({
|
|
30087
|
+
tools: enrichment.tools.map((t) => ({
|
|
30088
|
+
...t,
|
|
30089
|
+
queries: t.queries.map(scrubTraceText),
|
|
30090
|
+
sources: t.sources.map(scrubTraceText)
|
|
30091
|
+
}))
|
|
30087
30092
|
};
|
|
30088
30093
|
const conv = normalize(ng, dreamItems, dreamEnrichment);
|
|
30089
30094
|
conv.provenance = { pk, rows: provRows };
|
|
@@ -31882,12 +31887,23 @@ function isoOrThrow(value, now) {
|
|
|
31882
31887
|
}
|
|
31883
31888
|
return new Date(ms).toISOString();
|
|
31884
31889
|
}
|
|
31890
|
+
var redactionMarker = (text) => `<redacted: ${text.length.toString()} chars>`;
|
|
31885
31891
|
function redactTranscripts(input) {
|
|
31886
31892
|
return {
|
|
31887
31893
|
...input,
|
|
31888
31894
|
conversations: input.conversations.map((c) => ({
|
|
31889
31895
|
...c,
|
|
31890
|
-
items: c.items.map((it) => ({ ...it, text:
|
|
31896
|
+
items: c.items.map((it) => ({ ...it, text: redactionMarker(it.text) })),
|
|
31897
|
+
...c.enrichment ? {
|
|
31898
|
+
enrichment: {
|
|
31899
|
+
...c.enrichment,
|
|
31900
|
+
tools: c.enrichment.tools.map((t) => ({
|
|
31901
|
+
...t,
|
|
31902
|
+
queries: t.queries.map(redactionMarker),
|
|
31903
|
+
sources: t.sources.map(redactionMarker)
|
|
31904
|
+
}))
|
|
31905
|
+
}
|
|
31906
|
+
} : {}
|
|
31891
31907
|
}))
|
|
31892
31908
|
};
|
|
31893
31909
|
}
|