@o-lang/olang 1.2.37 → 1.3.0-alpha
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/package.json +26 -11
- package/src/runtime/RuntimeAPI.js +684 -391
- package/src/runtime/index.js +11 -1
package/src/runtime/index.js
CHANGED
|
@@ -106,4 +106,14 @@ async function execute(workflow, inputs, agentResolver, verbose = false) {
|
|
|
106
106
|
return result;
|
|
107
107
|
}
|
|
108
108
|
|
|
109
|
-
|
|
109
|
+
// ── Standalone PII redaction helper ──────────────────────────────────────────
|
|
110
|
+
// Exposes kernel redaction without running a full workflow.
|
|
111
|
+
// Usage: const { redacted, redactions } = redact(userInput);
|
|
112
|
+
|
|
113
|
+
function redact(text) {
|
|
114
|
+
const rt = new RuntimeAPI({ verbose: false });
|
|
115
|
+
return rt.redact(text);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
module.exports = { execute, parse, redact };
|