index.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.main = main;
const config_1 = require("./config");
const promptPreprocessor_1 = require("./promptPreprocessor");
/**
* Plugin entry point.
*
* Registers:
* - Configuration schema (per-chat settings for model, confirmation, fallback)
* - Prompt preprocessor (PII detection + redaction)
*/
async function main(context) {
context.withConfigSchematics(config_1.configSchematics);
context.withPromptPreprocessor(promptPreprocessor_1.preprocess);
}