@cendor/guardrails 0.4.0 → 0.5.0
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/.tsbuildinfo +1 -1
- package/dist/embeddings.d.ts +49 -0
- package/dist/embeddings.d.ts.map +1 -0
- package/dist/embeddings.js +32 -0
- package/dist/embeddings.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/intent.d.ts +2 -1
- package/dist/intent.d.ts.map +1 -1
- package/dist/intent.js +37 -19
- package/dist/intent.js.map +1 -1
- package/dist/semantic.d.ts +16 -13
- package/dist/semantic.d.ts.map +1 -1
- package/dist/semantic.js +70 -46
- package/dist/semantic.js.map +1 -1
- package/package.json +9 -1
package/dist/.tsbuildinfo
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"fileNames":["../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.iterable.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.date.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.string.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.array.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.error.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.object.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.string.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../src/decision.ts","../../../node_modules/.pnpm/decimal.js@10.6.0/node_modules/decimal.js/decimal.d.ts","../../core/dist/decimal.d.ts","../../core/dist/types.d.ts","../../core/dist/bus.d.ts","../../core/dist/tokens.d.ts","../../core/dist/json-decimal.d.ts","../../core/dist/prices.d.ts","../../core/dist/protocols.d.ts","../../core/dist/otel.d.ts","../../core/dist/instrument.d.ts","../../core/dist/trace.d.ts","../../core/dist/index.d.ts","../src/semantic.ts","../src/intent.ts","../src/rules.ts","../src/adapters.ts","../src/judge.ts","../src/presets.ts","../src/redteam.ts","../src/policy.ts","../src/index.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/compatibility/disposable.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/compatibility/indexable.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/compatibility/iterators.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/compatibility/index.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/globals.typedarray.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/buffer.buffer.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/globals.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/web-globals/abortcontroller.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/web-globals/domexception.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/web-globals/events.d.ts","../../../node_modules/.pnpm/buffer@5.7.1/node_modules/buffer/index.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/header.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/readable.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/file.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/fetch.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/formdata.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/connector.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/client.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/errors.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/dispatcher.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/global-dispatcher.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/global-origin.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/pool-stats.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/pool.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/handlers.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/balanced-pool.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/agent.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-interceptor.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-agent.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-client.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-pool.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-errors.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/proxy-agent.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/env-http-proxy-agent.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/retry-handler.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/retry-agent.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/api.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/interceptors.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/util.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/cookies.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/patch.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/websocket.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/eventsource.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/filereader.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/diagnostics-channel.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/content-type.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/cache.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/index.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/web-globals/fetch.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/web-globals/navigator.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/web-globals/storage.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/web-globals/streams.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/assert.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/assert/strict.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/async_hooks.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/buffer.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/child_process.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/cluster.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/console.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/constants.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/crypto.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/dgram.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/diagnostics_channel.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/dns.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/dns/promises.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/domain.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/events.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/fs.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/fs/promises.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/http.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/http2.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/https.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/inspector.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/inspector.generated.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/module.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/net.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/os.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/path.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/perf_hooks.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/process.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/punycode.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/querystring.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/readline.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/readline/promises.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/repl.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/sea.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/sqlite.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/stream.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/stream/promises.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/stream/consumers.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/stream/web.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/string_decoder.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/test.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/timers.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/timers/promises.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/tls.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/trace_events.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/tty.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/url.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/util.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/v8.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/vm.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/wasi.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/worker_threads.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/zlib.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/index.d.ts","../../../node_modules/.pnpm/@types+better-sqlite3@7.6.13/node_modules/@types/better-sqlite3/index.d.ts"],"fileIdsList":[[87,137,154,155,187],[87,134,135,137,154,155],[87,136,137,154,155],[137,154,155],[87,137,142,154,155,172],[87,137,138,143,148,154,155,157,169,180],[87,137,138,139,148,154,155,157],[87,137,154,155],[82,83,84,87,137,154,155],[87,137,140,154,155,181],[87,137,141,142,149,154,155,158],[87,137,142,154,155,169,177],[87,137,143,145,148,154,155,157],[87,136,137,144,154,155],[87,137,145,146,154,155],[87,137,147,148,154,155],[87,136,137,148,154,155],[87,137,148,149,150,154,155,169,180],[87,137,148,149,150,154,155,164,169,172],[87,129,137,145,148,151,154,155,157,169,180],[87,137,148,149,151,152,154,155,157,169,177,180],[87,137,151,153,154,155,169,177,180],[85,86,87,88,89,90,91,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186],[87,137,148,154,155],[87,137,154,155,156,180],[87,137,145,148,154,155,157,169],[87,137,154,155,158],[87,137,154,155,159],[87,136,137,154,155,160],[87,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186],[87,137,154,155,162],[87,137,154,155,163],[87,137,148,154,155,164,165],[87,137,154,155,164,166,181,183],[87,137,149,154,155],[87,137,148,154,155,169,170,172],[87,137,154,155,171,172],[87,137,154,155,169,170],[87,137,154,155,172],[87,137,154,155,173],[87,134,137,154,155,169,174,180],[87,137,148,154,155,175,176],[87,137,154,155,175,176],[87,137,142,154,155,157,169,177],[87,137,154,155,178],[87,137,154,155,157,179],[87,137,151,154,155,163,180],[87,137,142,154,155,181],[87,137,154,155,169,182],[87,137,154,155,156,183],[87,137,154,155,184],[87,129,137,154,155],[87,129,137,148,150,154,155,160,169,172,180,182,183,185],[87,137,154,155,169,186],[87,101,105,137,154,155,180],[87,101,137,154,155,169,180],[87,96,137,154,155],[87,98,101,137,154,155,177,180],[87,137,154,155,157,177],[87,96,137,154,155,187],[87,98,101,137,154,155,157,180],[87,93,94,97,100,137,148,154,155,169,180],[87,101,108,137,154,155],[87,93,99,137,154,155],[87,101,122,123,137,154,155],[87,97,101,137,154,155,172,180,187],[87,122,137,154,155,187],[87,95,96,137,154,155,187],[87,101,137,154,155],[87,95,96,97,98,99,100,101,102,103,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,123,124,125,126,127,128,137,154,155],[87,101,116,137,154,155],[87,101,108,109,137,154,155],[87,99,101,109,110,137,154,155],[87,100,137,154,155],[87,93,96,101,137,154,155],[87,101,105,109,110,137,154,155],[87,105,137,154,155],[87,99,101,104,137,154,155,180],[87,93,98,101,108,137,154,155],[87,137,154,155,169],[87,96,101,122,137,154,155,185,187],[61,87,137,154,155],[62,63,64,65,67,68,69,70,71,87,137,154,155],[62,87,137,154,155],[63,87,137,154,155],[62,63,66,87,137,154,155],[60,75,87,137,154,155],[60,72,73,74,75,76,77,78,79,80,87,136,137,154,155],[60,87,137,154,155],[60,81,87,137,154,155],[60,72,73,74,76,87,137,154,155]],"fileInfos":[{"version":"c430d44666289dae81f30fa7b2edebf186ecc91a2d4c71266ea6ae76388792e1","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"ee7bad0c15b58988daa84371e0b89d313b762ab83cb5b31b8a2d1162e8eb41c2","impliedFormat":1},{"version":"080941d9f9ff9307f7e27a83bcd888b7c8270716c39af943532438932ec1d0b9","affectsGlobalScope":true,"impliedFormat":1},{"version":"2e80ee7a49e8ac312cc11b77f1475804bee36b3b2bc896bead8b6e1266befb43","affectsGlobalScope":true,"impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"fb0f136d372979348d59b3f5020b4cdb81b5504192b1cacff5d1fbba29378aa1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"a680117f487a4d2f30ea46f1b4b7f58bef1480456e18ba53ee85c2746eeca012","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6d7ae4d1f1f3772e2a3cde568ed08991a8ae34a080ff1151af28b7f798e22ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"959d36cddf5e7d572a65045b876f2956c973a586da58e5d26cde519184fd9b8a","affectsGlobalScope":true,"impliedFormat":1},{"version":"965f36eae237dd74e6cca203a43e9ca801ce38824ead814728a2807b1910117d","affectsGlobalScope":true,"impliedFormat":1},{"version":"3925a6c820dcb1a06506c90b1577db1fdbf7705d65b62b99dce4be75c637e26b","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a3d63ef2b853447ec4f749d3f368ce642264246e02911fcb1590d8c161b8005","affectsGlobalScope":true,"impliedFormat":1},{"version":"8cdf8847677ac7d20486e54dd3fcf09eda95812ac8ace44b4418da1bbbab6eb8","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"0b81a4418d951c03f8ccbff880737cdced5a56b7151c472c50414568cc71cfd0","signature":"4e63b2ffdd58e8faa67a342b839eb98661845b2710c9bb63f650d0cd55b730c8","impliedFormat":99},{"version":"e6cfcf171b5f7ec0cb620eee4669739ad2711597d0ff7fdb79298dfc1118e66a","impliedFormat":1},{"version":"bb38c100cd2793d31175dbf0f1b575c587b1a0f31f8feb757b558e35d00171fa","impliedFormat":99},{"version":"7cba109d3aa85d428bd56701cf3a05386428f0375cc65838ddf2f8fe0df15de9","impliedFormat":99},{"version":"9905c60ed88f3716c66b5fb18f9bb591b1e9e08acefa191c4100bfedb020d2d4","impliedFormat":99},{"version":"1b2b9583729fbb2ea7fe6304ba8b7d84e0bfd5ec56bc0da455bf8ecb4bda4b88","impliedFormat":99},{"version":"9d47c8f72d4499e412f6ec05cb833c88a2ba953856dacb338fd0b6db56a11a90","impliedFormat":99},{"version":"642effec570bee0a7ee4c662c9b7df0d28c506886ae7de829b771574cdcb890f","impliedFormat":99},{"version":"43e8bce82539de97bc713672ff90da86004b255e675c1ff14b650c353d81f519","impliedFormat":99},{"version":"fcff7bcff17a18711fecddd3e2af452968345ce61fc5c63f4a7ae1404ce5cfe9","impliedFormat":99},{"version":"d281173c31754f1315a8c15c51fc508ed00e747a2fa4816c22d33eed7b0b3d64","impliedFormat":99},{"version":"e5e80e13671bf693eae33cfe6039fd55bd2a5b99df6388c608748b91a81ec7a4","impliedFormat":99},{"version":"07baaa0836b9b6f0a98c90294d2b2d35937d69b35d0d632df62bf0a474430165","impliedFormat":99},{"version":"541bd297646635651f393a70c9daf787bd7002ca5ca1801cfb1d35690490692b","signature":"531e6bd8a0b4db789aeb8b41e192709e01833d9db1d5e69d14ae0093a5b11b25","impliedFormat":99},{"version":"81452c72693bda1a35b4c22abd876dac38a7dbcb16d6e2abd38943175c03bb19","signature":"0d15f8cde5a39297e57d575844ed7b70cecf6624eb7749c3359f9722beddaa51","impliedFormat":99},{"version":"0cee697153fdfad614aa6904b15299101167774d91b3bf07836a92c7c32d83b9","signature":"5a57885ca4d51183b05ed7c5e46d0ea4773a73bdf7f7bd8bfc75ba6b27b58d3a","impliedFormat":99},{"version":"50275621c56719dba5bef0124d1ee58f838145fccf704216583499603d8183af","signature":"868ddbc68c70001176521f22db08bc96795618f16755987c9cb98b34040e9281","impliedFormat":99},{"version":"71a9e83a554cb3ed1d8c10db40d7fa2fd2a701269865326fa4b1d86ec0a6fb5b","signature":"9fb9c89c92cce13bf367559ab7f7d4f7601ad5fde43b627cc297e5770f85f68c","impliedFormat":99},{"version":"9a895c6fb692df6786d3c3397c3cca948c3d892c2a7fc3837965af56572ad6fb","signature":"f7067d858d808b6e7fd146a999c3bb02f698ee3263b4641ff4c28d31c848d27d","impliedFormat":99},{"version":"7626036913c7ada73cd070a376896bdd53aa7ae2ca3ab1390517bbc515162f27","signature":"232b9bf12c1c27efaa56fc92cc64c3c8eee337fbe5a97696585983f9209b6b3f","impliedFormat":99},{"version":"577de4b814668fce4b4f4e6d5f9a1690e1a545232313373a2e5248d2b973a2c2","signature":"a93ba2d2b43b8cbe76a18682ad1b69914836a4a38e37b5d9e368dea0b53bc50f","impliedFormat":99},{"version":"6c4d4f9b577b1428b6deae0f79b2866863c1acc1508508b8fc008fa445aba33e","signature":"e1ad72b6cf75736c9d06ff7cead913aede0b64482dfa870bf29976b10aa6a996","impliedFormat":99},{"version":"6c7176368037af28cb72f2392010fa1cef295d6d6744bca8cfb54985f3a18c3e","affectsGlobalScope":true,"impliedFormat":1},{"version":"ab41ef1f2cdafb8df48be20cd969d875602483859dc194e9c97c8a576892c052","affectsGlobalScope":true,"impliedFormat":1},{"version":"437e20f2ba32abaeb7985e0afe0002de1917bc74e949ba585e49feba65da6ca1","affectsGlobalScope":true,"impliedFormat":1},{"version":"21d819c173c0cf7cc3ce57c3276e77fd9a8a01d35a06ad87158781515c9a438a","impliedFormat":1},{"version":"98cffbf06d6bab333473c70a893770dbe990783904002c4f1a960447b4b53dca","affectsGlobalScope":true,"impliedFormat":1},{"version":"3af97acf03cc97de58a3a4bc91f8f616408099bc4233f6d0852e72a8ffb91ac9","affectsGlobalScope":true,"impliedFormat":1},{"version":"808069bba06b6768b62fd22429b53362e7af342da4a236ed2d2e1c89fcca3b4a","affectsGlobalScope":true,"impliedFormat":1},{"version":"1db0b7dca579049ca4193d034d835f6bfe73096c73663e5ef9a0b5779939f3d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"9798340ffb0d067d69b1ae5b32faa17ab31b82466a3fc00d8f2f2df0c8554aaa","affectsGlobalScope":true,"impliedFormat":1},{"version":"f26b11d8d8e4b8028f1c7d618b22274c892e4b0ef5b3678a8ccbad85419aef43","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e9c23ba78aabc2e0a27033f18737a6df754067731e69dc5f52823957d60a4b6","impliedFormat":1},{"version":"5929864ce17fba74232584d90cb721a89b7ad277220627cc97054ba15a98ea8f","impliedFormat":1},{"version":"763fe0f42b3d79b440a9b6e51e9ba3f3f91352469c1e4b3b67bfa4ff6352f3f4","impliedFormat":1},{"version":"25c8056edf4314820382a5fdb4bb7816999acdcb929c8f75e3f39473b87e85bc","impliedFormat":1},{"version":"c464d66b20788266e5353b48dc4aa6bc0dc4a707276df1e7152ab0c9ae21fad8","impliedFormat":1},{"version":"78d0d27c130d35c60b5e5566c9f1e5be77caf39804636bc1a40133919a949f21","impliedFormat":1},{"version":"c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","impliedFormat":1},{"version":"1d6e127068ea8e104a912e42fc0a110e2aa5a66a356a917a163e8cf9a65e4a75","impliedFormat":1},{"version":"5ded6427296cdf3b9542de4471d2aa8d3983671d4cac0f4bf9c637208d1ced43","impliedFormat":1},{"version":"7f182617db458e98fc18dfb272d40aa2fff3a353c44a89b2c0ccb3937709bfb5","impliedFormat":1},{"version":"cadc8aced301244057c4e7e73fbcae534b0f5b12a37b150d80e5a45aa4bebcbd","impliedFormat":1},{"version":"385aab901643aa54e1c36f5ef3107913b10d1b5bb8cbcd933d4263b80a0d7f20","impliedFormat":1},{"version":"9670d44354bab9d9982eca21945686b5c24a3f893db73c0dae0fd74217a4c219","impliedFormat":1},{"version":"0b8a9268adaf4da35e7fa830c8981cfa22adbbe5b3f6f5ab91f6658899e657a7","impliedFormat":1},{"version":"11396ed8a44c02ab9798b7dca436009f866e8dae3c9c25e8c1fbc396880bf1bb","impliedFormat":1},{"version":"ba7bc87d01492633cb5a0e5da8a4a42a1c86270e7b3d2dea5d156828a84e4882","impliedFormat":1},{"version":"4893a895ea92c85345017a04ed427cbd6a1710453338df26881a6019432febdd","impliedFormat":1},{"version":"c21dc52e277bcfc75fac0436ccb75c204f9e1b3fa5e12729670910639f27343e","impliedFormat":1},{"version":"13f6f39e12b1518c6650bbb220c8985999020fe0f21d818e28f512b7771d00f9","impliedFormat":1},{"version":"9b5369969f6e7175740bf51223112ff209f94ba43ecd3bb09eefff9fd675624a","impliedFormat":1},{"version":"4fe9e626e7164748e8769bbf74b538e09607f07ed17c2f20af8d680ee49fc1da","impliedFormat":1},{"version":"24515859bc0b836719105bb6cc3d68255042a9f02a6022b3187948b204946bd2","impliedFormat":1},{"version":"ea0148f897b45a76544ae179784c95af1bd6721b8610af9ffa467a518a086a43","impliedFormat":1},{"version":"24c6a117721e606c9984335f71711877293a9651e44f59f3d21c1ea0856f9cc9","impliedFormat":1},{"version":"dd3273ead9fbde62a72949c97dbec2247ea08e0c6952e701a483d74ef92d6a17","impliedFormat":1},{"version":"405822be75ad3e4d162e07439bac80c6bcc6dbae1929e179cf467ec0b9ee4e2e","impliedFormat":1},{"version":"0db18c6e78ea846316c012478888f33c11ffadab9efd1cc8bcc12daded7a60b6","impliedFormat":1},{"version":"e61be3f894b41b7baa1fbd6a66893f2579bfad01d208b4ff61daef21493ef0a8","impliedFormat":1},{"version":"bd0532fd6556073727d28da0edfd1736417a3f9f394877b6d5ef6ad88fba1d1a","impliedFormat":1},{"version":"89167d696a849fce5ca508032aabfe901c0868f833a8625d5a9c6e861ef935d2","impliedFormat":1},{"version":"615ba88d0128ed16bf83ef8ccbb6aff05c3ee2db1cc0f89ab50a4939bfc1943f","impliedFormat":1},{"version":"a4d551dbf8746780194d550c88f26cf937caf8d56f102969a110cfaed4b06656","impliedFormat":1},{"version":"8bd86b8e8f6a6aa6c49b71e14c4ffe1211a0e97c80f08d2c8cc98838006e4b88","impliedFormat":1},{"version":"317e63deeb21ac07f3992f5b50cdca8338f10acd4fbb7257ebf56735bf52ab00","impliedFormat":1},{"version":"4732aec92b20fb28c5fe9ad99521fb59974289ed1e45aecb282616202184064f","impliedFormat":1},{"version":"2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","impliedFormat":1},{"version":"c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","impliedFormat":1},{"version":"bf67d53d168abc1298888693338cb82854bdb2e69ef83f8a0092093c2d562107","impliedFormat":1},{"version":"b52476feb4a0cbcb25e5931b930fc73cb6643fb1a5060bf8a3dda0eeae5b4b68","affectsGlobalScope":true,"impliedFormat":1},{"version":"f9501cc13ce624c72b61f12b3963e84fad210fbdf0ffbc4590e08460a3f04eba","affectsGlobalScope":true,"impliedFormat":1},{"version":"e7721c4f69f93c91360c26a0a84ee885997d748237ef78ef665b153e622b36c1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d97fb21da858fb18b8ae72c314e9743fd52f73ebe2764e12af1db32fc03f853f","affectsGlobalScope":true,"impliedFormat":1},{"version":"0fa06ada475b910e2106c98c68b10483dc8811d0c14a8a8dd36efb2672485b29","impliedFormat":1},{"version":"33e5e9aba62c3193d10d1d33ae1fa75c46a1171cf76fef750777377d53b0303f","impliedFormat":1},{"version":"2b06b93fd01bcd49d1a6bd1f9b65ddcae6480b9a86e9061634d6f8e354c1468f","impliedFormat":1},{"version":"6a0cd27e5dc2cfbe039e731cf879d12b0e2dded06d1b1dedad07f7712de0d7f4","affectsGlobalScope":true,"impliedFormat":1},{"version":"13f5c844119c43e51ce777c509267f14d6aaf31eafb2c2b002ca35584cd13b29","impliedFormat":1},{"version":"e60477649d6ad21542bd2dc7e3d9ff6853d0797ba9f689ba2f6653818999c264","impliedFormat":1},{"version":"c2510f124c0293ab80b1777c44d80f812b75612f297b9857406468c0f4dafe29","affectsGlobalScope":true,"impliedFormat":1},{"version":"5524481e56c48ff486f42926778c0a3cce1cc85dc46683b92b1271865bcf015a","impliedFormat":1},{"version":"4c829ab315f57c5442c6667b53769975acbf92003a66aef19bce151987675bd1","affectsGlobalScope":true,"impliedFormat":1},{"version":"b2ade7657e2db96d18315694789eff2ddd3d8aea7215b181f8a0b303277cc579","impliedFormat":1},{"version":"78dbea00e90d2df8ea3dbef0cc379d95b8be9b71cd6bde4c28728f306811803b","impliedFormat":1},{"version":"4d631b81fa2f07a0e63a9a143d6a82c25c5f051298651a9b69176ba28930756d","impliedFormat":1},{"version":"836a356aae992ff3c28a0212e3eabcb76dd4b0cc06bcb9607aeef560661b860d","impliedFormat":1},{"version":"1e0d1f8b0adfa0b0330e028c7941b5a98c08b600efe7f14d2d2a00854fb2f393","impliedFormat":1},{"version":"41670ee38943d9cbb4924e436f56fc19ee94232bc96108562de1a734af20dc2c","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e1e46d0a9837ee058c100501080c920fa98081ea3956af0374308ba6f22a33e","impliedFormat":1},{"version":"22295e8103f1d6d8ea4b5d6211e43421fe4564e34d0dd8e09e520e452d89e659","impliedFormat":1},{"version":"fa7834c715d5357e4540cee40ce96c3250ddb67a7b879a6b7fa0e86d6696f121","impliedFormat":1},{"version":"22dfb07a7ab15b66ac043829056fe70124844636ae719551812ac631ba04985b","impliedFormat":1},{"version":"a10f0e1854f3316d7ee437b79649e5a6ae3ae14ffe6322b02d4987071a95362e","impliedFormat":1},{"version":"e208f73ef6a980104304b0d2ca5f6bf1b85de6009d2c7e404028b875020fa8f2","impliedFormat":1},{"version":"d163b6bc2372b4f07260747cbc6c0a6405ab3fbcea3852305e98ac43ca59f5bc","impliedFormat":1},{"version":"e6fa9ad47c5f71ff733744a029d1dc472c618de53804eae08ffc243b936f87ff","affectsGlobalScope":true,"impliedFormat":1},{"version":"a6f137d651076822d4fe884287e68fd61785a0d3d1fdb250a5059b691fa897db","impliedFormat":1},{"version":"24826ed94a78d5c64bd857570fdbd96229ad41b5cb654c08d75a9845e3ab7dde","impliedFormat":1},{"version":"8b479a130ccb62e98f11f136d3ac80f2984fdc07616516d29881f3061f2dd472","impliedFormat":1},{"version":"928af3d90454bf656a52a48679f199f64c1435247d6189d1caf4c68f2eaf921f","affectsGlobalScope":true,"impliedFormat":1},{"version":"bceb58df66ab8fb00170df20cd813978c5ab84be1d285710c4eb005d8e9d8efb","affectsGlobalScope":true,"impliedFormat":1},{"version":"3f16a7e4deafa527ed9995a772bb380eb7d3c2c0fd4ae178c5263ed18394db2c","impliedFormat":1},{"version":"933921f0bb0ec12ef45d1062a1fc0f27635318f4d294e4d99de9a5493e618ca2","impliedFormat":1},{"version":"71a0f3ad612c123b57239a7749770017ecfe6b66411488000aba83e4546fde25","impliedFormat":1},{"version":"77fbe5eecb6fac4b6242bbf6eebfc43e98ce5ccba8fa44e0ef6a95c945ff4d98","impliedFormat":1},{"version":"4f9d8ca0c417b67b69eeb54c7ca1bedd7b56034bb9bfd27c5d4f3bc4692daca7","impliedFormat":1},{"version":"0cb167c371eaa8c869f8a7656a7296f2e4fae43b4d8b803a680236b24794e5f9","impliedFormat":1},{"version":"0a839dba0287cc0481ad4beedd48a1c64acf1e212ae865d1315f7007ca215161","impliedFormat":1},{"version":"38dc4655376cd1a4bd6bb3763d92949233e33d38d3dd3cbea7bbf218175a38ef","impliedFormat":1},{"version":"37ba7b45141a45ce6e80e66f2a96c8a5ab1bcef0fc2d0f56bb58df96ec67e972","impliedFormat":1},{"version":"45650f47bfb376c8a8ed39d4bcda5902ab899a3150029684ee4c10676d9fbaee","impliedFormat":1},{"version":"d61e0a64cd175208ac0b83670151a9a6b5916f0d1ffcdc5c29c90b1cebfc5045","affectsGlobalScope":true,"impliedFormat":1},{"version":"18fd40412d102c5564136f29735e5d1c3b455b8a37f920da79561f1fde068208","impliedFormat":1},{"version":"48a679952eefe4cb776d5a0e1ccba2d3eb53b57448bbb7abc1fcebcbd5440188","impliedFormat":1},{"version":"f0be1b8078cd549d91f37c30c222c2a187ac1cf981d994fb476a1adc61387b14","affectsGlobalScope":true,"impliedFormat":1},{"version":"0aaed1d72199b01234152f7a60046bc947f1f37d78d182e9ae09c4289e06a592","impliedFormat":1},{"version":"2d14da6ecb49bf828d83948765ec2d3a579d476bbb9645e749610baa6ec880ca","impliedFormat":1},{"version":"66ba1b2c3e3a3644a1011cd530fb444a96b1b2dfe2f5e837a002d41a1a799e60","impliedFormat":1},{"version":"7e514f5b852fdbc166b539fdd1f4e9114f29911592a5eb10a94bb3a13ccac3c4","impliedFormat":1},{"version":"5b7aa3c4c1a5d81b411e8cb302b45507fea9358d3569196b27eb1a27ae3a90ef","affectsGlobalScope":true,"impliedFormat":1},{"version":"5987a903da92c7462e0b35704ce7da94d7fdc4b89a984871c0e2b87a8aae9e69","affectsGlobalScope":true,"impliedFormat":1},{"version":"ea08a0345023ade2b47fbff5a76d0d0ed8bff10bc9d22b83f40858a8e941501c","impliedFormat":1},{"version":"0aef708fb4c7a6b915e8305cbfac40cd207b032dbaabe9a01889a5fff3254681","impliedFormat":1},{"version":"ae062ce7d9510060c5d7e7952ae379224fb3f8f2dd74e88959878af2057c143b","impliedFormat":1},{"version":"ad9bdafb4e7abf14cc53ce7970486a84c87831e62891e5dfe798ddcd55e84701","affectsGlobalScope":true,"impliedFormat":1},{"version":"358765d5ea8afd285d4fd1532e78b88273f18cb3f87403a9b16fef61ac9fdcfe","impliedFormat":1},{"version":"71d3ae6a5e73ca4130762560425e00984ebaff64d5353a3333d1bb7eb86ef336","impliedFormat":1},{"version":"c2a6a737189ced24ffe0634e9239b087e4c26378d0490f95141b9b9b042b746c","impliedFormat":1}],"root":[60,[73,81]],"options":{"composite":true,"declaration":true,"declarationMap":true,"esModuleInterop":true,"exactOptionalPropertyTypes":false,"module":199,"noFallthroughCasesInSwitch":true,"noImplicitOverride":true,"noUncheckedIndexedAccess":true,"outDir":"./","rootDir":"../src","skipLibCheck":true,"sourceMap":true,"strict":true,"target":9,"tsBuildInfoFile":"./.tsbuildinfo","verbatimModuleSyntax":true},"referencedMap":[[188,1],[134,2],[135,2],[136,3],[87,4],[137,5],[138,6],[139,7],[82,8],[85,9],[83,8],[84,8],[140,10],[141,11],[142,12],[143,13],[144,14],[145,15],[146,15],[147,16],[148,17],[149,18],[150,19],[88,8],[86,8],[151,20],[152,21],[153,22],[187,23],[154,24],[155,8],[156,25],[157,26],[158,27],[159,28],[160,29],[161,30],[162,31],[163,32],[164,33],[165,33],[166,34],[167,8],[168,35],[169,36],[171,37],[170,38],[172,39],[173,40],[174,41],[175,42],[176,43],[177,44],[178,45],[179,46],[180,47],[181,48],[182,49],[183,50],[184,51],[89,8],[90,8],[91,8],[130,52],[131,8],[132,8],[133,39],[185,53],[186,54],[92,8],[61,8],[58,8],[59,8],[10,8],[11,8],[13,8],[12,8],[2,8],[14,8],[15,8],[16,8],[17,8],[18,8],[19,8],[20,8],[21,8],[3,8],[22,8],[23,8],[4,8],[24,8],[28,8],[25,8],[26,8],[27,8],[29,8],[30,8],[31,8],[5,8],[32,8],[33,8],[34,8],[35,8],[6,8],[39,8],[36,8],[37,8],[38,8],[40,8],[7,8],[41,8],[46,8],[47,8],[42,8],[43,8],[44,8],[45,8],[8,8],[51,8],[48,8],[49,8],[50,8],[52,8],[9,8],[53,8],[54,8],[55,8],[57,8],[56,8],[1,8],[108,55],[118,56],[107,55],[128,57],[99,58],[98,59],[127,1],[121,60],[126,61],[101,62],[115,63],[100,64],[124,65],[96,66],[95,1],[125,67],[97,68],[102,69],[103,8],[106,69],[93,8],[129,70],[119,71],[110,72],[111,73],[113,74],[109,75],[112,76],[122,1],[104,77],[105,78],[114,79],[94,80],[117,71],[116,69],[120,8],[123,81],[64,8],[62,82],[72,83],[70,8],[66,84],[69,85],[67,86],[68,8],[65,85],[71,8],[63,84],[76,87],[60,8],[81,88],[74,87],[77,89],[80,87],[78,87],[79,90],[75,91],[73,87]],"latestChangedDtsFile":"./index.d.ts","version":"5.9.3"}
|
|
1
|
+
{"fileNames":["../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.iterable.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.date.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.string.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.array.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.error.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.object.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.string.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../src/decision.ts","../../../node_modules/.pnpm/decimal.js@10.6.0/node_modules/decimal.js/decimal.d.ts","../../core/dist/decimal.d.ts","../../core/dist/types.d.ts","../../core/dist/bus.d.ts","../../core/dist/tokens.d.ts","../../core/dist/json-decimal.d.ts","../../core/dist/prices.d.ts","../../core/dist/protocols.d.ts","../../core/dist/otel.d.ts","../../core/dist/instrument.d.ts","../../core/dist/trace.d.ts","../../core/dist/index.d.ts","../src/semantic.ts","../src/intent.ts","../src/rules.ts","../src/adapters.ts","../src/embeddings.ts","../src/judge.ts","../src/presets.ts","../src/redteam.ts","../src/policy.ts","../src/index.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/compatibility/disposable.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/compatibility/indexable.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/compatibility/iterators.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/compatibility/index.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/globals.typedarray.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/buffer.buffer.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/globals.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/web-globals/abortcontroller.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/web-globals/domexception.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/web-globals/events.d.ts","../../../node_modules/.pnpm/buffer@5.7.1/node_modules/buffer/index.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/header.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/readable.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/file.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/fetch.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/formdata.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/connector.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/client.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/errors.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/dispatcher.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/global-dispatcher.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/global-origin.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/pool-stats.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/pool.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/handlers.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/balanced-pool.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/agent.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-interceptor.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-agent.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-client.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-pool.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-errors.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/proxy-agent.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/env-http-proxy-agent.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/retry-handler.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/retry-agent.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/api.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/interceptors.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/util.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/cookies.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/patch.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/websocket.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/eventsource.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/filereader.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/diagnostics-channel.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/content-type.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/cache.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/index.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/web-globals/fetch.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/web-globals/navigator.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/web-globals/storage.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/web-globals/streams.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/assert.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/assert/strict.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/async_hooks.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/buffer.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/child_process.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/cluster.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/console.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/constants.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/crypto.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/dgram.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/diagnostics_channel.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/dns.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/dns/promises.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/domain.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/events.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/fs.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/fs/promises.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/http.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/http2.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/https.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/inspector.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/inspector.generated.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/module.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/net.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/os.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/path.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/perf_hooks.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/process.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/punycode.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/querystring.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/readline.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/readline/promises.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/repl.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/sea.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/sqlite.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/stream.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/stream/promises.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/stream/consumers.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/stream/web.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/string_decoder.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/test.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/timers.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/timers/promises.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/tls.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/trace_events.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/tty.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/url.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/util.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/v8.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/vm.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/wasi.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/worker_threads.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/zlib.d.ts","../../../node_modules/.pnpm/@types+node@22.20.0/node_modules/@types/node/index.d.ts","../../../node_modules/.pnpm/@types+better-sqlite3@7.6.13/node_modules/@types/better-sqlite3/index.d.ts"],"fileIdsList":[[88,138,155,156,188],[88,135,136,138,155,156],[88,137,138,155,156],[138,155,156],[88,138,143,155,156,173],[88,138,139,144,149,155,156,158,170,181],[88,138,139,140,149,155,156,158],[88,138,155,156],[83,84,85,88,138,155,156],[88,138,141,155,156,182],[88,138,142,143,150,155,156,159],[88,138,143,155,156,170,178],[88,138,144,146,149,155,156,158],[88,137,138,145,155,156],[88,138,146,147,155,156],[88,138,148,149,155,156],[88,137,138,149,155,156],[88,138,149,150,151,155,156,170,181],[88,138,149,150,151,155,156,165,170,173],[88,130,138,146,149,152,155,156,158,170,181],[88,138,149,150,152,153,155,156,158,170,178,181],[88,138,152,154,155,156,170,178,181],[86,87,88,89,90,91,92,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187],[88,138,149,155,156],[88,138,155,156,157,181],[88,138,146,149,155,156,158,170],[88,138,155,156,159],[88,138,155,156,160],[88,137,138,155,156,161],[88,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187],[88,138,155,156,163],[88,138,155,156,164],[88,138,149,155,156,165,166],[88,138,155,156,165,167,182,184],[88,138,150,155,156],[88,138,149,155,156,170,171,173],[88,138,155,156,172,173],[88,138,155,156,170,171],[88,138,155,156,173],[88,138,155,156,174],[88,135,138,155,156,170,175,181],[88,138,149,155,156,176,177],[88,138,155,156,176,177],[88,138,143,155,156,158,170,178],[88,138,155,156,179],[88,138,155,156,158,180],[88,138,152,155,156,164,181],[88,138,143,155,156,182],[88,138,155,156,170,183],[88,138,155,156,157,184],[88,138,155,156,185],[88,130,138,155,156],[88,130,138,149,151,155,156,161,170,173,181,183,184,186],[88,138,155,156,170,187],[88,102,106,138,155,156,181],[88,102,138,155,156,170,181],[88,97,138,155,156],[88,99,102,138,155,156,178,181],[88,138,155,156,158,178],[88,97,138,155,156,188],[88,99,102,138,155,156,158,181],[88,94,95,98,101,138,149,155,156,170,181],[88,102,109,138,155,156],[88,94,100,138,155,156],[88,102,123,124,138,155,156],[88,98,102,138,155,156,173,181,188],[88,123,138,155,156,188],[88,96,97,138,155,156,188],[88,102,138,155,156],[88,96,97,98,99,100,101,102,103,104,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,124,125,126,127,128,129,138,155,156],[88,102,117,138,155,156],[88,102,109,110,138,155,156],[88,100,102,110,111,138,155,156],[88,101,138,155,156],[88,94,97,102,138,155,156],[88,102,106,110,111,138,155,156],[88,106,138,155,156],[88,100,102,105,138,155,156,181],[88,94,99,102,109,138,155,156],[88,138,155,156,170],[88,97,102,123,138,155,156,186,188],[61,88,138,155,156],[62,63,64,65,67,68,69,70,71,88,138,155,156],[62,88,138,155,156],[63,88,138,155,156],[62,63,66,88,138,155,156],[60,75,88,138,155,156],[73,88,138,155,156],[60,72,73,74,75,76,77,78,79,80,81,88,137,138,155,156],[60,88,138,155,156],[60,82,88,138,155,156],[60,72,73,74,76,88,138,155,156]],"fileInfos":[{"version":"c430d44666289dae81f30fa7b2edebf186ecc91a2d4c71266ea6ae76388792e1","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"ee7bad0c15b58988daa84371e0b89d313b762ab83cb5b31b8a2d1162e8eb41c2","impliedFormat":1},{"version":"080941d9f9ff9307f7e27a83bcd888b7c8270716c39af943532438932ec1d0b9","affectsGlobalScope":true,"impliedFormat":1},{"version":"2e80ee7a49e8ac312cc11b77f1475804bee36b3b2bc896bead8b6e1266befb43","affectsGlobalScope":true,"impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"fb0f136d372979348d59b3f5020b4cdb81b5504192b1cacff5d1fbba29378aa1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"a680117f487a4d2f30ea46f1b4b7f58bef1480456e18ba53ee85c2746eeca012","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6d7ae4d1f1f3772e2a3cde568ed08991a8ae34a080ff1151af28b7f798e22ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"959d36cddf5e7d572a65045b876f2956c973a586da58e5d26cde519184fd9b8a","affectsGlobalScope":true,"impliedFormat":1},{"version":"965f36eae237dd74e6cca203a43e9ca801ce38824ead814728a2807b1910117d","affectsGlobalScope":true,"impliedFormat":1},{"version":"3925a6c820dcb1a06506c90b1577db1fdbf7705d65b62b99dce4be75c637e26b","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a3d63ef2b853447ec4f749d3f368ce642264246e02911fcb1590d8c161b8005","affectsGlobalScope":true,"impliedFormat":1},{"version":"8cdf8847677ac7d20486e54dd3fcf09eda95812ac8ace44b4418da1bbbab6eb8","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"0b81a4418d951c03f8ccbff880737cdced5a56b7151c472c50414568cc71cfd0","signature":"4e63b2ffdd58e8faa67a342b839eb98661845b2710c9bb63f650d0cd55b730c8","impliedFormat":99},{"version":"e6cfcf171b5f7ec0cb620eee4669739ad2711597d0ff7fdb79298dfc1118e66a","impliedFormat":1},{"version":"bb38c100cd2793d31175dbf0f1b575c587b1a0f31f8feb757b558e35d00171fa","impliedFormat":99},{"version":"7cba109d3aa85d428bd56701cf3a05386428f0375cc65838ddf2f8fe0df15de9","impliedFormat":99},{"version":"9905c60ed88f3716c66b5fb18f9bb591b1e9e08acefa191c4100bfedb020d2d4","impliedFormat":99},{"version":"1b2b9583729fbb2ea7fe6304ba8b7d84e0bfd5ec56bc0da455bf8ecb4bda4b88","impliedFormat":99},{"version":"9d47c8f72d4499e412f6ec05cb833c88a2ba953856dacb338fd0b6db56a11a90","impliedFormat":99},{"version":"642effec570bee0a7ee4c662c9b7df0d28c506886ae7de829b771574cdcb890f","impliedFormat":99},{"version":"43e8bce82539de97bc713672ff90da86004b255e675c1ff14b650c353d81f519","impliedFormat":99},{"version":"fcff7bcff17a18711fecddd3e2af452968345ce61fc5c63f4a7ae1404ce5cfe9","impliedFormat":99},{"version":"d281173c31754f1315a8c15c51fc508ed00e747a2fa4816c22d33eed7b0b3d64","impliedFormat":99},{"version":"e5e80e13671bf693eae33cfe6039fd55bd2a5b99df6388c608748b91a81ec7a4","impliedFormat":99},{"version":"07baaa0836b9b6f0a98c90294d2b2d35937d69b35d0d632df62bf0a474430165","impliedFormat":99},{"version":"c800c30058ce43d567a7452ee147ce817676ab3d74abb6c93def372a7b7a26a2","signature":"745b2a95424aa828a4e045f27e3a9f1755a07f5c7f280858fff293abd797e30b","impliedFormat":99},{"version":"68e2660063a96799676444dcd1cf22d411f717976e5214bfa9a1a54ff3833a02","signature":"bf9902d01c87890ef4604455dc87808dbefd8ebe410a76fa223432e4bbec9ae9","impliedFormat":99},{"version":"0cee697153fdfad614aa6904b15299101167774d91b3bf07836a92c7c32d83b9","signature":"5a57885ca4d51183b05ed7c5e46d0ea4773a73bdf7f7bd8bfc75ba6b27b58d3a","impliedFormat":99},{"version":"50275621c56719dba5bef0124d1ee58f838145fccf704216583499603d8183af","signature":"868ddbc68c70001176521f22db08bc96795618f16755987c9cb98b34040e9281","impliedFormat":99},{"version":"3062ecdd3bff521d95c76b4c46f689ef837c55f2b6c0548f550415ce86f1c4f5","signature":"49eaed16b39bb2fa708ddccec03ebbe5a2301960e672f906de1b02216496a343","impliedFormat":99},{"version":"71a9e83a554cb3ed1d8c10db40d7fa2fd2a701269865326fa4b1d86ec0a6fb5b","signature":"9fb9c89c92cce13bf367559ab7f7d4f7601ad5fde43b627cc297e5770f85f68c","impliedFormat":99},{"version":"9a895c6fb692df6786d3c3397c3cca948c3d892c2a7fc3837965af56572ad6fb","signature":"f7067d858d808b6e7fd146a999c3bb02f698ee3263b4641ff4c28d31c848d27d","impliedFormat":99},{"version":"7626036913c7ada73cd070a376896bdd53aa7ae2ca3ab1390517bbc515162f27","signature":"232b9bf12c1c27efaa56fc92cc64c3c8eee337fbe5a97696585983f9209b6b3f","impliedFormat":99},{"version":"577de4b814668fce4b4f4e6d5f9a1690e1a545232313373a2e5248d2b973a2c2","signature":"a93ba2d2b43b8cbe76a18682ad1b69914836a4a38e37b5d9e368dea0b53bc50f","impliedFormat":99},{"version":"c6037caadc2a50608eaaf466636b2dd23896c5d57ba9fbbabc3809699a464eda","signature":"03d0a3c519e00e7993db3f3f0ac40160e065647b036c211b4c97d013aae939fa","impliedFormat":99},{"version":"6c7176368037af28cb72f2392010fa1cef295d6d6744bca8cfb54985f3a18c3e","affectsGlobalScope":true,"impliedFormat":1},{"version":"ab41ef1f2cdafb8df48be20cd969d875602483859dc194e9c97c8a576892c052","affectsGlobalScope":true,"impliedFormat":1},{"version":"437e20f2ba32abaeb7985e0afe0002de1917bc74e949ba585e49feba65da6ca1","affectsGlobalScope":true,"impliedFormat":1},{"version":"21d819c173c0cf7cc3ce57c3276e77fd9a8a01d35a06ad87158781515c9a438a","impliedFormat":1},{"version":"98cffbf06d6bab333473c70a893770dbe990783904002c4f1a960447b4b53dca","affectsGlobalScope":true,"impliedFormat":1},{"version":"3af97acf03cc97de58a3a4bc91f8f616408099bc4233f6d0852e72a8ffb91ac9","affectsGlobalScope":true,"impliedFormat":1},{"version":"808069bba06b6768b62fd22429b53362e7af342da4a236ed2d2e1c89fcca3b4a","affectsGlobalScope":true,"impliedFormat":1},{"version":"1db0b7dca579049ca4193d034d835f6bfe73096c73663e5ef9a0b5779939f3d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"9798340ffb0d067d69b1ae5b32faa17ab31b82466a3fc00d8f2f2df0c8554aaa","affectsGlobalScope":true,"impliedFormat":1},{"version":"f26b11d8d8e4b8028f1c7d618b22274c892e4b0ef5b3678a8ccbad85419aef43","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e9c23ba78aabc2e0a27033f18737a6df754067731e69dc5f52823957d60a4b6","impliedFormat":1},{"version":"5929864ce17fba74232584d90cb721a89b7ad277220627cc97054ba15a98ea8f","impliedFormat":1},{"version":"763fe0f42b3d79b440a9b6e51e9ba3f3f91352469c1e4b3b67bfa4ff6352f3f4","impliedFormat":1},{"version":"25c8056edf4314820382a5fdb4bb7816999acdcb929c8f75e3f39473b87e85bc","impliedFormat":1},{"version":"c464d66b20788266e5353b48dc4aa6bc0dc4a707276df1e7152ab0c9ae21fad8","impliedFormat":1},{"version":"78d0d27c130d35c60b5e5566c9f1e5be77caf39804636bc1a40133919a949f21","impliedFormat":1},{"version":"c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","impliedFormat":1},{"version":"1d6e127068ea8e104a912e42fc0a110e2aa5a66a356a917a163e8cf9a65e4a75","impliedFormat":1},{"version":"5ded6427296cdf3b9542de4471d2aa8d3983671d4cac0f4bf9c637208d1ced43","impliedFormat":1},{"version":"7f182617db458e98fc18dfb272d40aa2fff3a353c44a89b2c0ccb3937709bfb5","impliedFormat":1},{"version":"cadc8aced301244057c4e7e73fbcae534b0f5b12a37b150d80e5a45aa4bebcbd","impliedFormat":1},{"version":"385aab901643aa54e1c36f5ef3107913b10d1b5bb8cbcd933d4263b80a0d7f20","impliedFormat":1},{"version":"9670d44354bab9d9982eca21945686b5c24a3f893db73c0dae0fd74217a4c219","impliedFormat":1},{"version":"0b8a9268adaf4da35e7fa830c8981cfa22adbbe5b3f6f5ab91f6658899e657a7","impliedFormat":1},{"version":"11396ed8a44c02ab9798b7dca436009f866e8dae3c9c25e8c1fbc396880bf1bb","impliedFormat":1},{"version":"ba7bc87d01492633cb5a0e5da8a4a42a1c86270e7b3d2dea5d156828a84e4882","impliedFormat":1},{"version":"4893a895ea92c85345017a04ed427cbd6a1710453338df26881a6019432febdd","impliedFormat":1},{"version":"c21dc52e277bcfc75fac0436ccb75c204f9e1b3fa5e12729670910639f27343e","impliedFormat":1},{"version":"13f6f39e12b1518c6650bbb220c8985999020fe0f21d818e28f512b7771d00f9","impliedFormat":1},{"version":"9b5369969f6e7175740bf51223112ff209f94ba43ecd3bb09eefff9fd675624a","impliedFormat":1},{"version":"4fe9e626e7164748e8769bbf74b538e09607f07ed17c2f20af8d680ee49fc1da","impliedFormat":1},{"version":"24515859bc0b836719105bb6cc3d68255042a9f02a6022b3187948b204946bd2","impliedFormat":1},{"version":"ea0148f897b45a76544ae179784c95af1bd6721b8610af9ffa467a518a086a43","impliedFormat":1},{"version":"24c6a117721e606c9984335f71711877293a9651e44f59f3d21c1ea0856f9cc9","impliedFormat":1},{"version":"dd3273ead9fbde62a72949c97dbec2247ea08e0c6952e701a483d74ef92d6a17","impliedFormat":1},{"version":"405822be75ad3e4d162e07439bac80c6bcc6dbae1929e179cf467ec0b9ee4e2e","impliedFormat":1},{"version":"0db18c6e78ea846316c012478888f33c11ffadab9efd1cc8bcc12daded7a60b6","impliedFormat":1},{"version":"e61be3f894b41b7baa1fbd6a66893f2579bfad01d208b4ff61daef21493ef0a8","impliedFormat":1},{"version":"bd0532fd6556073727d28da0edfd1736417a3f9f394877b6d5ef6ad88fba1d1a","impliedFormat":1},{"version":"89167d696a849fce5ca508032aabfe901c0868f833a8625d5a9c6e861ef935d2","impliedFormat":1},{"version":"615ba88d0128ed16bf83ef8ccbb6aff05c3ee2db1cc0f89ab50a4939bfc1943f","impliedFormat":1},{"version":"a4d551dbf8746780194d550c88f26cf937caf8d56f102969a110cfaed4b06656","impliedFormat":1},{"version":"8bd86b8e8f6a6aa6c49b71e14c4ffe1211a0e97c80f08d2c8cc98838006e4b88","impliedFormat":1},{"version":"317e63deeb21ac07f3992f5b50cdca8338f10acd4fbb7257ebf56735bf52ab00","impliedFormat":1},{"version":"4732aec92b20fb28c5fe9ad99521fb59974289ed1e45aecb282616202184064f","impliedFormat":1},{"version":"2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","impliedFormat":1},{"version":"c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","impliedFormat":1},{"version":"bf67d53d168abc1298888693338cb82854bdb2e69ef83f8a0092093c2d562107","impliedFormat":1},{"version":"b52476feb4a0cbcb25e5931b930fc73cb6643fb1a5060bf8a3dda0eeae5b4b68","affectsGlobalScope":true,"impliedFormat":1},{"version":"f9501cc13ce624c72b61f12b3963e84fad210fbdf0ffbc4590e08460a3f04eba","affectsGlobalScope":true,"impliedFormat":1},{"version":"e7721c4f69f93c91360c26a0a84ee885997d748237ef78ef665b153e622b36c1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d97fb21da858fb18b8ae72c314e9743fd52f73ebe2764e12af1db32fc03f853f","affectsGlobalScope":true,"impliedFormat":1},{"version":"0fa06ada475b910e2106c98c68b10483dc8811d0c14a8a8dd36efb2672485b29","impliedFormat":1},{"version":"33e5e9aba62c3193d10d1d33ae1fa75c46a1171cf76fef750777377d53b0303f","impliedFormat":1},{"version":"2b06b93fd01bcd49d1a6bd1f9b65ddcae6480b9a86e9061634d6f8e354c1468f","impliedFormat":1},{"version":"6a0cd27e5dc2cfbe039e731cf879d12b0e2dded06d1b1dedad07f7712de0d7f4","affectsGlobalScope":true,"impliedFormat":1},{"version":"13f5c844119c43e51ce777c509267f14d6aaf31eafb2c2b002ca35584cd13b29","impliedFormat":1},{"version":"e60477649d6ad21542bd2dc7e3d9ff6853d0797ba9f689ba2f6653818999c264","impliedFormat":1},{"version":"c2510f124c0293ab80b1777c44d80f812b75612f297b9857406468c0f4dafe29","affectsGlobalScope":true,"impliedFormat":1},{"version":"5524481e56c48ff486f42926778c0a3cce1cc85dc46683b92b1271865bcf015a","impliedFormat":1},{"version":"4c829ab315f57c5442c6667b53769975acbf92003a66aef19bce151987675bd1","affectsGlobalScope":true,"impliedFormat":1},{"version":"b2ade7657e2db96d18315694789eff2ddd3d8aea7215b181f8a0b303277cc579","impliedFormat":1},{"version":"78dbea00e90d2df8ea3dbef0cc379d95b8be9b71cd6bde4c28728f306811803b","impliedFormat":1},{"version":"4d631b81fa2f07a0e63a9a143d6a82c25c5f051298651a9b69176ba28930756d","impliedFormat":1},{"version":"836a356aae992ff3c28a0212e3eabcb76dd4b0cc06bcb9607aeef560661b860d","impliedFormat":1},{"version":"1e0d1f8b0adfa0b0330e028c7941b5a98c08b600efe7f14d2d2a00854fb2f393","impliedFormat":1},{"version":"41670ee38943d9cbb4924e436f56fc19ee94232bc96108562de1a734af20dc2c","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e1e46d0a9837ee058c100501080c920fa98081ea3956af0374308ba6f22a33e","impliedFormat":1},{"version":"22295e8103f1d6d8ea4b5d6211e43421fe4564e34d0dd8e09e520e452d89e659","impliedFormat":1},{"version":"fa7834c715d5357e4540cee40ce96c3250ddb67a7b879a6b7fa0e86d6696f121","impliedFormat":1},{"version":"22dfb07a7ab15b66ac043829056fe70124844636ae719551812ac631ba04985b","impliedFormat":1},{"version":"a10f0e1854f3316d7ee437b79649e5a6ae3ae14ffe6322b02d4987071a95362e","impliedFormat":1},{"version":"e208f73ef6a980104304b0d2ca5f6bf1b85de6009d2c7e404028b875020fa8f2","impliedFormat":1},{"version":"d163b6bc2372b4f07260747cbc6c0a6405ab3fbcea3852305e98ac43ca59f5bc","impliedFormat":1},{"version":"e6fa9ad47c5f71ff733744a029d1dc472c618de53804eae08ffc243b936f87ff","affectsGlobalScope":true,"impliedFormat":1},{"version":"a6f137d651076822d4fe884287e68fd61785a0d3d1fdb250a5059b691fa897db","impliedFormat":1},{"version":"24826ed94a78d5c64bd857570fdbd96229ad41b5cb654c08d75a9845e3ab7dde","impliedFormat":1},{"version":"8b479a130ccb62e98f11f136d3ac80f2984fdc07616516d29881f3061f2dd472","impliedFormat":1},{"version":"928af3d90454bf656a52a48679f199f64c1435247d6189d1caf4c68f2eaf921f","affectsGlobalScope":true,"impliedFormat":1},{"version":"bceb58df66ab8fb00170df20cd813978c5ab84be1d285710c4eb005d8e9d8efb","affectsGlobalScope":true,"impliedFormat":1},{"version":"3f16a7e4deafa527ed9995a772bb380eb7d3c2c0fd4ae178c5263ed18394db2c","impliedFormat":1},{"version":"933921f0bb0ec12ef45d1062a1fc0f27635318f4d294e4d99de9a5493e618ca2","impliedFormat":1},{"version":"71a0f3ad612c123b57239a7749770017ecfe6b66411488000aba83e4546fde25","impliedFormat":1},{"version":"77fbe5eecb6fac4b6242bbf6eebfc43e98ce5ccba8fa44e0ef6a95c945ff4d98","impliedFormat":1},{"version":"4f9d8ca0c417b67b69eeb54c7ca1bedd7b56034bb9bfd27c5d4f3bc4692daca7","impliedFormat":1},{"version":"0cb167c371eaa8c869f8a7656a7296f2e4fae43b4d8b803a680236b24794e5f9","impliedFormat":1},{"version":"0a839dba0287cc0481ad4beedd48a1c64acf1e212ae865d1315f7007ca215161","impliedFormat":1},{"version":"38dc4655376cd1a4bd6bb3763d92949233e33d38d3dd3cbea7bbf218175a38ef","impliedFormat":1},{"version":"37ba7b45141a45ce6e80e66f2a96c8a5ab1bcef0fc2d0f56bb58df96ec67e972","impliedFormat":1},{"version":"45650f47bfb376c8a8ed39d4bcda5902ab899a3150029684ee4c10676d9fbaee","impliedFormat":1},{"version":"d61e0a64cd175208ac0b83670151a9a6b5916f0d1ffcdc5c29c90b1cebfc5045","affectsGlobalScope":true,"impliedFormat":1},{"version":"18fd40412d102c5564136f29735e5d1c3b455b8a37f920da79561f1fde068208","impliedFormat":1},{"version":"48a679952eefe4cb776d5a0e1ccba2d3eb53b57448bbb7abc1fcebcbd5440188","impliedFormat":1},{"version":"f0be1b8078cd549d91f37c30c222c2a187ac1cf981d994fb476a1adc61387b14","affectsGlobalScope":true,"impliedFormat":1},{"version":"0aaed1d72199b01234152f7a60046bc947f1f37d78d182e9ae09c4289e06a592","impliedFormat":1},{"version":"2d14da6ecb49bf828d83948765ec2d3a579d476bbb9645e749610baa6ec880ca","impliedFormat":1},{"version":"66ba1b2c3e3a3644a1011cd530fb444a96b1b2dfe2f5e837a002d41a1a799e60","impliedFormat":1},{"version":"7e514f5b852fdbc166b539fdd1f4e9114f29911592a5eb10a94bb3a13ccac3c4","impliedFormat":1},{"version":"5b7aa3c4c1a5d81b411e8cb302b45507fea9358d3569196b27eb1a27ae3a90ef","affectsGlobalScope":true,"impliedFormat":1},{"version":"5987a903da92c7462e0b35704ce7da94d7fdc4b89a984871c0e2b87a8aae9e69","affectsGlobalScope":true,"impliedFormat":1},{"version":"ea08a0345023ade2b47fbff5a76d0d0ed8bff10bc9d22b83f40858a8e941501c","impliedFormat":1},{"version":"0aef708fb4c7a6b915e8305cbfac40cd207b032dbaabe9a01889a5fff3254681","impliedFormat":1},{"version":"ae062ce7d9510060c5d7e7952ae379224fb3f8f2dd74e88959878af2057c143b","impliedFormat":1},{"version":"ad9bdafb4e7abf14cc53ce7970486a84c87831e62891e5dfe798ddcd55e84701","affectsGlobalScope":true,"impliedFormat":1},{"version":"358765d5ea8afd285d4fd1532e78b88273f18cb3f87403a9b16fef61ac9fdcfe","impliedFormat":1},{"version":"71d3ae6a5e73ca4130762560425e00984ebaff64d5353a3333d1bb7eb86ef336","impliedFormat":1},{"version":"c2a6a737189ced24ffe0634e9239b087e4c26378d0490f95141b9b9b042b746c","impliedFormat":1}],"root":[60,[73,82]],"options":{"composite":true,"declaration":true,"declarationMap":true,"esModuleInterop":true,"exactOptionalPropertyTypes":false,"module":199,"noFallthroughCasesInSwitch":true,"noImplicitOverride":true,"noUncheckedIndexedAccess":true,"outDir":"./","rootDir":"../src","skipLibCheck":true,"sourceMap":true,"strict":true,"target":9,"tsBuildInfoFile":"./.tsbuildinfo","verbatimModuleSyntax":true},"referencedMap":[[189,1],[135,2],[136,2],[137,3],[88,4],[138,5],[139,6],[140,7],[83,8],[86,9],[84,8],[85,8],[141,10],[142,11],[143,12],[144,13],[145,14],[146,15],[147,15],[148,16],[149,17],[150,18],[151,19],[89,8],[87,8],[152,20],[153,21],[154,22],[188,23],[155,24],[156,8],[157,25],[158,26],[159,27],[160,28],[161,29],[162,30],[163,31],[164,32],[165,33],[166,33],[167,34],[168,8],[169,35],[170,36],[172,37],[171,38],[173,39],[174,40],[175,41],[176,42],[177,43],[178,44],[179,45],[180,46],[181,47],[182,48],[183,49],[184,50],[185,51],[90,8],[91,8],[92,8],[131,52],[132,8],[133,8],[134,39],[186,53],[187,54],[93,8],[61,8],[58,8],[59,8],[10,8],[11,8],[13,8],[12,8],[2,8],[14,8],[15,8],[16,8],[17,8],[18,8],[19,8],[20,8],[21,8],[3,8],[22,8],[23,8],[4,8],[24,8],[28,8],[25,8],[26,8],[27,8],[29,8],[30,8],[31,8],[5,8],[32,8],[33,8],[34,8],[35,8],[6,8],[39,8],[36,8],[37,8],[38,8],[40,8],[7,8],[41,8],[46,8],[47,8],[42,8],[43,8],[44,8],[45,8],[8,8],[51,8],[48,8],[49,8],[50,8],[52,8],[9,8],[53,8],[54,8],[55,8],[57,8],[56,8],[1,8],[109,55],[119,56],[108,55],[129,57],[100,58],[99,59],[128,1],[122,60],[127,61],[102,62],[116,63],[101,64],[125,65],[97,66],[96,1],[126,67],[98,68],[103,69],[104,8],[107,69],[94,8],[130,70],[120,71],[111,72],[112,73],[114,74],[110,75],[113,76],[123,1],[105,77],[106,78],[115,79],[95,80],[118,71],[117,69],[121,8],[124,81],[64,8],[62,82],[72,83],[70,8],[66,84],[69,85],[67,86],[68,8],[65,85],[71,8],[63,84],[76,87],[60,8],[77,88],[82,89],[74,87],[78,90],[81,87],[79,87],[80,91],[75,92],[73,87]],"latestChangedDtsFile":"./index.d.ts","version":"5.9.3"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A zero-config **local embedder** for the semantic checks — the TS counterpart to Python's
|
|
3
|
+
* `cendor.guardrails.embeddings.local_embedder`.
|
|
4
|
+
*
|
|
5
|
+
* The similarity checks (`rules.customCategory` / `deniedTopics` / `groundedness` / `intent`) take a
|
|
6
|
+
* **bring-your-own** `embed(text)`. `localEmbedder` closes the "but I have to wire an embedder first"
|
|
7
|
+
* gap with a local, offline default backed by **transformers.js** (`@huggingface/transformers`,
|
|
8
|
+
* WASM/WebGPU — works in Node, the browser, and edge). It is loaded **lazily** and is an **optional**
|
|
9
|
+
* dependency (never bundled, never a hard requirement) — without it installed, the call raises a
|
|
10
|
+
* clear, actionable error, exactly like Python's lazy `model2vec` import.
|
|
11
|
+
*
|
|
12
|
+
* **Cross-language note (parity 🚧 → ✓ with a caveat):** Python uses **model2vec** static embeddings
|
|
13
|
+
* (a synchronous lookup); there is no maintained model2vec port for JS, so TS uses transformers.js
|
|
14
|
+
* feature-extraction, which is **asynchronous**. So `localEmbedder()` returns an **async** `embed`,
|
|
15
|
+
* which makes the semantic checks run on the async path — use them through `applyAsync` or the SDK
|
|
16
|
+
* loop (`Agent`), not the synchronous `apply()` / `install()` seam. The default model is a small
|
|
17
|
+
* sentence-transformer; the model is fetched from Hugging Face on first use and cached, never bundled.
|
|
18
|
+
*
|
|
19
|
+
* ```ts
|
|
20
|
+
* import { rules, embeddings } from '@cendor/guardrails';
|
|
21
|
+
*
|
|
22
|
+
* const embed = await embeddings.localEmbedder(); // npm i @huggingface/transformers
|
|
23
|
+
* const rail = rules.customCategory('code_requests',
|
|
24
|
+
* ['write a program', 'build an app'], embed, { action: 'flag' });
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
import type { Embed } from './semantic.js';
|
|
28
|
+
/** The default transformers.js feature-extraction model — small, fast, mean-pooled sentence vectors. */
|
|
29
|
+
export declare const DEFAULT_MODEL = "Xenova/all-MiniLM-L6-v2";
|
|
30
|
+
export interface LocalEmbedderOptions {
|
|
31
|
+
/** A transformers.js feature-extraction model id (default `Xenova/all-MiniLM-L6-v2`). */
|
|
32
|
+
model?: string;
|
|
33
|
+
/** Passed to the transformers.js `pipeline(...)` (e.g. `{ dtype: 'q8' }`, `{ device: 'webgpu' }`). */
|
|
34
|
+
pipelineOptions?: Record<string, unknown>;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Build a free, offline **async** `embed(text) => Promise<number[]>` backed by transformers.js.
|
|
38
|
+
*
|
|
39
|
+
* Needs the optional peer `@huggingface/transformers` (`npm i @huggingface/transformers`); it is
|
|
40
|
+
* lazy-imported on the first call, so importing `@cendor/guardrails` never pulls it in. The model is
|
|
41
|
+
* loaded once and cached for the life of the returned function (mean-pooled + normalized vectors).
|
|
42
|
+
* Because the embed is async, hand the result to `rules.customCategory` / `deniedTopics` /
|
|
43
|
+
* `groundedness` / `intent` and gate through `applyAsync` or the SDK loop.
|
|
44
|
+
*
|
|
45
|
+
* There is **no catch-rate claim** — the embedding quality is the model's, not a cendor claim;
|
|
46
|
+
* calibrate the similarity threshold on your own inputs.
|
|
47
|
+
*/
|
|
48
|
+
export declare function localEmbedder(opts?: LocalEmbedderOptions): Promise<Embed>;
|
|
49
|
+
//# sourceMappingURL=embeddings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"embeddings.d.ts","sourceRoot":"","sources":["../src/embeddings.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAgB3C,wGAAwG;AACxG,eAAO,MAAM,aAAa,4BAA4B,CAAC;AAEvD,MAAM,WAAW,oBAAoB;IACnC,yFAAyF;IACzF,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,sGAAsG;IACtG,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAC3C;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,aAAa,CAAC,IAAI,GAAE,oBAAyB,GAAG,OAAO,CAAC,KAAK,CAAC,CAiBnF"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/** The default transformers.js feature-extraction model — small, fast, mean-pooled sentence vectors. */
|
|
2
|
+
export const DEFAULT_MODEL = 'Xenova/all-MiniLM-L6-v2';
|
|
3
|
+
/**
|
|
4
|
+
* Build a free, offline **async** `embed(text) => Promise<number[]>` backed by transformers.js.
|
|
5
|
+
*
|
|
6
|
+
* Needs the optional peer `@huggingface/transformers` (`npm i @huggingface/transformers`); it is
|
|
7
|
+
* lazy-imported on the first call, so importing `@cendor/guardrails` never pulls it in. The model is
|
|
8
|
+
* loaded once and cached for the life of the returned function (mean-pooled + normalized vectors).
|
|
9
|
+
* Because the embed is async, hand the result to `rules.customCategory` / `deniedTopics` /
|
|
10
|
+
* `groundedness` / `intent` and gate through `applyAsync` or the SDK loop.
|
|
11
|
+
*
|
|
12
|
+
* There is **no catch-rate claim** — the embedding quality is the model's, not a cendor claim;
|
|
13
|
+
* calibrate the similarity threshold on your own inputs.
|
|
14
|
+
*/
|
|
15
|
+
export async function localEmbedder(opts = {}) {
|
|
16
|
+
const model = opts.model ?? DEFAULT_MODEL;
|
|
17
|
+
// A non-literal specifier so tsc resolves the optional peer only at runtime (no build-time dep).
|
|
18
|
+
const spec = '@huggingface/transformers';
|
|
19
|
+
let transformers;
|
|
20
|
+
try {
|
|
21
|
+
transformers = (await import(spec));
|
|
22
|
+
}
|
|
23
|
+
catch (err) {
|
|
24
|
+
throw new Error(`localEmbedder needs the optional peer '@huggingface/transformers': npm i @huggingface/transformers (WASM/WebGPU — Node, browser, edge). Or pass your own embed(text) to the semantic rules. (import failed: ${err.message})`);
|
|
25
|
+
}
|
|
26
|
+
const extractor = await transformers.pipeline('feature-extraction', model, opts.pipelineOptions);
|
|
27
|
+
return async (text) => {
|
|
28
|
+
const output = await extractor(text, { pooling: 'mean', normalize: true });
|
|
29
|
+
return Array.from(output.data, (x) => Number(x));
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=embeddings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"embeddings.js","sourceRoot":"","sources":["../src/embeddings.ts"],"names":[],"mappings":"AA0CA,wGAAwG;AACxG,MAAM,CAAC,MAAM,aAAa,GAAG,yBAAyB,CAAC;AASvD;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,KAAK,UAAU,aAAa,CAAC,OAA6B,EAAE;IACjE,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,IAAI,aAAa,CAAC;IAC1C,iGAAiG;IACjG,MAAM,IAAI,GAAW,2BAA2B,CAAC;IACjD,IAAI,YAAgC,CAAC;IACrC,IAAI,CAAC;QACH,YAAY,GAAG,CAAC,MAAM,MAAM,CAAC,IAAI,CAAC,CAAuB,CAAC;IAC5D,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,MAAM,IAAI,KAAK,CACb,+MAAgN,GAAa,CAAC,OAAO,GAAG,CACzO,CAAC;IACJ,CAAC;IACD,MAAM,SAAS,GAAG,MAAM,YAAY,CAAC,QAAQ,CAAC,oBAAoB,EAAE,KAAK,EAAE,IAAI,CAAC,eAAe,CAAC,CAAC;IACjG,OAAO,KAAK,EAAE,IAAY,EAAqB,EAAE;QAC/C,MAAM,MAAM,GAAG,MAAM,SAAS,CAAC,IAAI,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;QAC3E,OAAO,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;IACnD,CAAC,CAAC;AACJ,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ export * as adapters from './adapters.js';
|
|
|
20
20
|
export * as semantic from './semantic.js';
|
|
21
21
|
export * as intent from './intent.js';
|
|
22
22
|
export * as presets from './presets.js';
|
|
23
|
+
export * as embeddings from './embeddings.js';
|
|
23
24
|
export * as redteam from './redteam.js';
|
|
24
25
|
export { loadPolicy, POLICY_RULE_NAMES, policySchema } from './policy.js';
|
|
25
26
|
export type { LoadedPolicy, LoadPolicyOptions } from './policy.js';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAA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AChC,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,OAAO,EAChB,GAAG,CAAC,EAAE,OAAO,GACZ,UAAU,CAuBZ;AAED;;;;GAIG;AACH,wBAAsB,aAAa,CACjC,UAAU,EAAE,SAAS,SAAS,EAAE,EAChC,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,OAAO,EAChB,GAAG,CAAC,EAAE,OAAO,GACZ,OAAO,CAAC,UAAU,CAAC,CAiBrB;AAED,+FAA+F;AAC/F,wBAAgB,KAAK,CACnB,UAAU,EAAE,SAAS,SAAS,EAAE,EAChC,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,OAAO,EAChB,GAAG,CAAC,EAAE,OAAO,GACZ,iBAAiB,EAAE,CAErB;AAED,0CAA0C;AAC1C,wBAAsB,UAAU,CAC9B,UAAU,EAAE,SAAS,SAAS,EAAE,EAChC,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,OAAO,EAChB,GAAG,CAAC,EAAE,OAAO,GACZ,OAAO,CAAC,iBAAiB,EAAE,CAAC,CAE9B;AA4CD;;;;;;;;GAQG;AACH,wBAAgB,OAAO,CAAC,UAAU,EAAE,SAAS,SAAS,EAAE,GAAG,IAAI,CAS9D;AAED,6FAA6F;AAC7F,wBAAgB,SAAS,IAAI,IAAI,CAKhC;AA6DD;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,MAAM,CAAC,CAAC,EACtB,UAAU,EAAE,SAAS,SAAS,EAAE,EAChC,EAAE,EAAE,MAAM,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,GACvB,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAsBhB;AAQD,0FAA0F;AAC1F,wBAAgB,YAAY,CAAC,IAAI,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI,CAQzD"}
|
package/dist/index.js
CHANGED
|
@@ -19,6 +19,7 @@ export * as adapters from './adapters.js';
|
|
|
19
19
|
export * as semantic from './semantic.js';
|
|
20
20
|
export * as intent from './intent.js';
|
|
21
21
|
export * as presets from './presets.js';
|
|
22
|
+
export * as embeddings from './embeddings.js';
|
|
22
23
|
export * as redteam from './redteam.js';
|
|
23
24
|
export { loadPolicy, POLICY_RULE_NAMES, policySchema } from './policy.js';
|
|
24
25
|
export { loadCorpus, runRedteam, runRedteamAsync, RedTeamReport } from './redteam.js';
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,EACL,OAAO,EACP,IAAI,EACJ,OAAO,EACP,QAAQ,EACR,cAAc,EACd,GAAG,EACH,cAAc,EACd,iBAAiB,GAClB,MAAM,cAAc,CAAC;AACtB,OAAO,EAGL,iBAAiB,EACjB,gBAAgB,EAChB,OAAO,GACR,MAAM,eAAe,CAAC;AAEvB,OAAO,EACL,MAAM,EACN,OAAO,EACP,QAAQ,EACR,OAAO,EACP,iBAAiB,EACjB,gBAAgB,EAChB,eAAe,EACf,eAAe,EACf,uBAAuB,GACxB,MAAM,eAAe,CAAC;AAUvB,OAAO,KAAK,KAAK,MAAM,YAAY,CAAC;AACpC,OAAO,KAAK,KAAK,MAAM,YAAY,CAAC;AACpC,OAAO,KAAK,QAAQ,MAAM,eAAe,CAAC;AAC1C,OAAO,KAAK,QAAQ,MAAM,eAAe,CAAC;AAC1C,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;AACtC,OAAO,KAAK,OAAO,MAAM,cAAc,CAAC;AACxC,OAAO,KAAK,OAAO,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAG1E,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAStF,SAAS,UAAU,CAAC,UAAgC,EAAE,KAAa;IACjE,OAAO,UAAU,CAAC,MAAM,CAAC,CAAC,CA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AAC,CAAC;IAC1D,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC"}
|
package/dist/intent.d.ts
CHANGED
|
@@ -12,7 +12,8 @@
|
|
|
12
12
|
import { type Guardrail, type OnError } from './decision.js';
|
|
13
13
|
type Stage = string | readonly string[];
|
|
14
14
|
type Action = 'block' | 'redact' | 'flag';
|
|
15
|
-
|
|
15
|
+
/** A bring-your-own embedder — sync (a static model) or async (a hosted endpoint / transformers.js). */
|
|
16
|
+
export type Embed = (text: string) => number[] | readonly number[] | Promise<number[] | readonly number[]>;
|
|
16
17
|
export type Classify = (text: string) => string | Record<string, number>;
|
|
17
18
|
export type IntentMode = 'deny' | 'allow';
|
|
18
19
|
export interface IntentOptions {
|
package/dist/intent.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"intent.d.ts","sourceRoot":"","sources":["../src/intent.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,EAGL,KAAK,SAAS,EACd,KAAK,OAAO,EAGb,MAAM,eAAe,CAAC;AAGvB,KAAK,KAAK,GAAG,MAAM,GAAG,SAAS,MAAM,EAAE,CAAC;AACxC,KAAK,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;AAC1C,MAAM,MAAM,KAAK,GAAG,
|
|
1
|
+
{"version":3,"file":"intent.d.ts","sourceRoot":"","sources":["../src/intent.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,EAGL,KAAK,SAAS,EACd,KAAK,OAAO,EAGb,MAAM,eAAe,CAAC;AAGvB,KAAK,KAAK,GAAG,MAAM,GAAG,SAAS,MAAM,EAAE,CAAC;AACxC,KAAK,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;AAC1C,wGAAwG;AACxG,MAAM,MAAM,KAAK,GAAG,CAClB,IAAI,EAAE,MAAM,KACT,MAAM,EAAE,GAAG,SAAS,MAAM,EAAE,GAAG,OAAO,CAAC,MAAM,EAAE,GAAG,SAAS,MAAM,EAAE,CAAC,CAAC;AAC1E,MAAM,MAAM,QAAQ,GAAG,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AACzE,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,OAAO,CAAC;AAqC1C,MAAM,WAAW,aAAa;IAC5B,0EAA0E;IAC1E,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,yEAAyE;IACzE,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED;;;;;;GAMG;AACH,wBAAgB,MAAM,CACpB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC,GAAG,SAAS,MAAM,EAAE,EAC9D,IAAI,GAAE,aAAkB,GACvB,SAAS,CAyBX"}
|
package/dist/intent.js
CHANGED
|
@@ -16,6 +16,14 @@ function resolveOnError(action, onError) {
|
|
|
16
16
|
return onError;
|
|
17
17
|
return action === 'flag' ? 'fail_open' : 'fail_closed';
|
|
18
18
|
}
|
|
19
|
+
function isThenable(x) {
|
|
20
|
+
return x != null && typeof x.then === 'function';
|
|
21
|
+
}
|
|
22
|
+
/** Apply `fn` to a value that may be a Promise, staying **sync when the value is sync**. `fn` may
|
|
23
|
+
* itself return a Promise; nested levels flatten (Promise.then), so the result is `R | Promise<R>`. */
|
|
24
|
+
function chain(v, fn) {
|
|
25
|
+
return isThenable(v) ? v.then(fn) : fn(v);
|
|
26
|
+
}
|
|
19
27
|
function cosine(a, b) {
|
|
20
28
|
let dot = 0;
|
|
21
29
|
let na = 0;
|
|
@@ -66,33 +74,43 @@ function labelSet(intents) {
|
|
|
66
74
|
return new Set(Object.keys(intents));
|
|
67
75
|
}
|
|
68
76
|
function embeddingCheck(intents, embed, mode, threshold, action) {
|
|
77
|
+
const pairs = [];
|
|
78
|
+
for (const [label, examples] of Object.entries(intents)) {
|
|
79
|
+
for (const ex of examples)
|
|
80
|
+
pairs.push([label, ex]);
|
|
81
|
+
}
|
|
69
82
|
let cache;
|
|
70
83
|
const vectors = () => {
|
|
71
|
-
if (cache
|
|
72
|
-
cache
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
84
|
+
if (cache !== undefined)
|
|
85
|
+
return cache;
|
|
86
|
+
const raw = pairs.map(([label, ex]) => [label, embed(ex)]);
|
|
87
|
+
if (raw.some(([, v]) => isThenable(v))) {
|
|
88
|
+
cache = Promise.all(raw.map(([label, v]) => Promise.resolve(v).then((vec) => [label, [...vec]]))).then((v) => {
|
|
89
|
+
cache = v;
|
|
90
|
+
return v;
|
|
91
|
+
});
|
|
92
|
+
return cache;
|
|
77
93
|
}
|
|
94
|
+
cache = raw.map(([label, v]) => [label, [...v]]);
|
|
78
95
|
return cache;
|
|
79
96
|
};
|
|
80
|
-
return (payload, _ctx) => {
|
|
81
|
-
const vecs = vectors();
|
|
97
|
+
return (payload, _ctx) => chain(vectors(), (vecs) => {
|
|
82
98
|
if (vecs.length === 0)
|
|
83
99
|
return null;
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
const
|
|
89
|
-
|
|
90
|
-
bestScore
|
|
91
|
-
|
|
100
|
+
return chain(embed(payloadText(payload)), (q) => {
|
|
101
|
+
const query = [...q];
|
|
102
|
+
let bestLabel = '';
|
|
103
|
+
let bestScore = Number.NEGATIVE_INFINITY;
|
|
104
|
+
for (const [label, vec] of vecs) {
|
|
105
|
+
const sim = cosine(query, vec);
|
|
106
|
+
if (sim > bestScore) {
|
|
107
|
+
bestScore = sim;
|
|
108
|
+
bestLabel = label;
|
|
109
|
+
}
|
|
92
110
|
}
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
};
|
|
111
|
+
return verdict(mode, action, bestScore >= threshold, bestLabel, bestScore, threshold);
|
|
112
|
+
});
|
|
113
|
+
});
|
|
96
114
|
}
|
|
97
115
|
function classifierCheck(labels, classify, mode, threshold, action) {
|
|
98
116
|
return (payload, _ctx) => {
|
package/dist/intent.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"intent.js","sourceRoot":"","sources":["../src/intent.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,EAKL,OAAO,EACP,eAAe,GAChB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"intent.js","sourceRoot":"","sources":["../src/intent.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,EAKL,OAAO,EACP,eAAe,GAChB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAWzC,SAAS,cAAc,CAAC,MAAc,EAAE,OAAiB;IACvD,IAAI,OAAO,KAAK,SAAS;QAAE,OAAO,OAAO,CAAC;IAC1C,OAAO,MAAM,KAAK,MAAM,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,aAAa,CAAC;AACzD,CAAC;AAED,SAAS,UAAU,CAAI,CAAU;IAC/B,OAAO,CAAC,IAAI,IAAI,IAAI,OAAQ,CAAwB,CAAC,IAAI,KAAK,UAAU,CAAC;AAC3E,CAAC;AAED;uGACuG;AACvG,SAAS,KAAK,CAAO,CAAiB,EAAE,EAA4B;IAClE,OAAO,UAAU,CAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAM,CAAC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
1
|
/**
|
|
2
|
-
* Similarity checks over a **bring-your-own** embedding function — groundedness
|
|
3
|
-
* TS port of `cendor.guardrails.semantic`.
|
|
2
|
+
* Similarity checks over a **bring-your-own** embedding function — groundedness, denied-topics, and
|
|
3
|
+
* custom-category. The TS port of `cendor.guardrails.semantic`.
|
|
4
4
|
*
|
|
5
5
|
* - `groundedness` — trip when a response is **not** close enough to any provided source (a RAG
|
|
6
6
|
* hallucination gate).
|
|
7
7
|
* - `deniedTopics` — trip when the payload is **too** close to any denied-topic exemplar.
|
|
8
|
+
* - `customCategory` — trip when the payload is close to a category you define by example.
|
|
8
9
|
*
|
|
9
|
-
*
|
|
10
|
-
* sentence-transformer, a hosted embeddings endpoint, anything).
|
|
11
|
-
* mirroring `cassette`'s bring-your-own-scorer.
|
|
12
|
-
*
|
|
13
|
-
* (
|
|
10
|
+
* All take an `embed(text) => number[] | Promise<number[]>` callable — **you** supply the model (a
|
|
11
|
+
* local sentence-transformer, a hosted embeddings endpoint, `embeddings.localEmbedder()`, anything).
|
|
12
|
+
* cendor ships **no** embedding model, mirroring `cassette`'s bring-your-own-scorer. `embed` may be
|
|
13
|
+
* **sync or async**: a sync embed keeps the check sync (usable via `apply` / `install`); an async
|
|
14
|
+
* embed (e.g. a hosted endpoint or `embeddings.localEmbedder()` via transformers.js) makes the check
|
|
15
|
+
* async — run it through `applyAsync` or the SDK loop. Cosine similarity is computed in pure TS.
|
|
16
|
+
* These are heuristics: a threshold you tune, not a guarantee. For richer, reasoned judgement, use the
|
|
14
17
|
* `judge` LLM-judge helpers instead.
|
|
15
18
|
*
|
|
16
19
|
* Imports only `./decision` and reuses `payloadText` from `./rules` (a hoisted function), so the
|
|
@@ -19,7 +22,8 @@
|
|
|
19
22
|
import { type Guardrail, type OnError } from './decision.js';
|
|
20
23
|
type Stage = string | readonly string[];
|
|
21
24
|
type Action = 'block' | 'redact' | 'flag';
|
|
22
|
-
|
|
25
|
+
/** A bring-your-own embedder — sync (a static model) or async (a hosted endpoint / transformers.js). */
|
|
26
|
+
export type Embed = (text: string) => number[] | readonly number[] | Promise<number[] | readonly number[]>;
|
|
23
27
|
export interface GroundednessOptions {
|
|
24
28
|
threshold?: number;
|
|
25
29
|
stage?: Stage;
|
|
@@ -44,15 +48,14 @@ export interface CustomCategoryOptions {
|
|
|
44
48
|
}
|
|
45
49
|
/**
|
|
46
50
|
* Trip when the payload is semantically close to a **custom category** you define by example — the
|
|
47
|
-
* local
|
|
48
|
-
*
|
|
51
|
+
* local counterpart to Azure Content Safety's *rapid custom categories* (description + examples →
|
|
52
|
+
* embedding search), with no cloud call and no training step. Trips when the payload's max cosine
|
|
49
53
|
* similarity to any example is **at or above** `threshold`, recording `metadata.category` /
|
|
50
54
|
* `metadata.score`; catches paraphrases `keywordDeny` misses. Defaults to `action:'flag'` (a tuned
|
|
51
55
|
* heuristic — calibrate before you block). No catch-rate claim; empty `examples` never trips.
|
|
52
56
|
*
|
|
53
|
-
* `embed(text)` is **bring-your-own** —
|
|
54
|
-
*
|
|
55
|
-
* Python-only; parity 🚧.)
|
|
57
|
+
* `embed(text)` is **bring-your-own** — sync (keeps the check usable via `apply`) or async (a hosted
|
|
58
|
+
* endpoint / `embeddings.localEmbedder()`, which makes the check async → use `applyAsync` / the SDK).
|
|
56
59
|
*/
|
|
57
60
|
export declare function customCategory(category: string, examples: readonly string[], embed: Embed, opts?: CustomCategoryOptions): Guardrail;
|
|
58
61
|
export interface DeniedTopicsOptions {
|
package/dist/semantic.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"semantic.d.ts","sourceRoot":"","sources":["../src/semantic.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"semantic.d.ts","sourceRoot":"","sources":["../src/semantic.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,OAAO,EAGL,KAAK,SAAS,EACd,KAAK,OAAO,EAGb,MAAM,eAAe,CAAC;AAGvB,KAAK,KAA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ChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAC1B,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,SAAS,MAAM,EAAE,EACzB,IAAI,GAAE,mBAAwB,GAC7B,SAAS,CAiCX"}
|
package/dist/semantic.js
CHANGED
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Similarity checks over a **bring-your-own** embedding function — groundedness
|
|
3
|
-
* TS port of `cendor.guardrails.semantic`.
|
|
2
|
+
* Similarity checks over a **bring-your-own** embedding function — groundedness, denied-topics, and
|
|
3
|
+
* custom-category. The TS port of `cendor.guardrails.semantic`.
|
|
4
4
|
*
|
|
5
5
|
* - `groundedness` — trip when a response is **not** close enough to any provided source (a RAG
|
|
6
6
|
* hallucination gate).
|
|
7
7
|
* - `deniedTopics` — trip when the payload is **too** close to any denied-topic exemplar.
|
|
8
|
+
* - `customCategory` — trip when the payload is close to a category you define by example.
|
|
8
9
|
*
|
|
9
|
-
*
|
|
10
|
-
* sentence-transformer, a hosted embeddings endpoint, anything).
|
|
11
|
-
* mirroring `cassette`'s bring-your-own-scorer.
|
|
12
|
-
*
|
|
13
|
-
* (
|
|
10
|
+
* All take an `embed(text) => number[] | Promise<number[]>` callable — **you** supply the model (a
|
|
11
|
+
* local sentence-transformer, a hosted embeddings endpoint, `embeddings.localEmbedder()`, anything).
|
|
12
|
+
* cendor ships **no** embedding model, mirroring `cassette`'s bring-your-own-scorer. `embed` may be
|
|
13
|
+
* **sync or async**: a sync embed keeps the check sync (usable via `apply` / `install`); an async
|
|
14
|
+
* embed (e.g. a hosted endpoint or `embeddings.localEmbedder()` via transformers.js) makes the check
|
|
15
|
+
* async — run it through `applyAsync` or the SDK loop. Cosine similarity is computed in pure TS.
|
|
16
|
+
* These are heuristics: a threshold you tune, not a guarantee. For richer, reasoned judgement, use the
|
|
14
17
|
* `judge` LLM-judge helpers instead.
|
|
15
18
|
*
|
|
16
19
|
* Imports only `./decision` and reuses `payloadText` from `./rules` (a hoisted function), so the
|
|
@@ -23,6 +26,14 @@ function resolveOnError(action, onError) {
|
|
|
23
26
|
return onError;
|
|
24
27
|
return action === 'flag' ? 'fail_open' : 'fail_closed';
|
|
25
28
|
}
|
|
29
|
+
function isThenable(x) {
|
|
30
|
+
return x != null && typeof x.then === 'function';
|
|
31
|
+
}
|
|
32
|
+
/** Apply `fn` to a value that may be a Promise, staying **sync when the value is sync**. `fn` may
|
|
33
|
+
* itself return a Promise; nested levels flatten (Promise.then), so the result is `R | Promise<R>`. */
|
|
34
|
+
function chain(v, fn) {
|
|
35
|
+
return isThenable(v) ? v.then(fn) : fn(v);
|
|
36
|
+
}
|
|
26
37
|
function cosine(a, b) {
|
|
27
38
|
let dot = 0;
|
|
28
39
|
let na = 0;
|
|
@@ -39,12 +50,24 @@ function cosine(a, b) {
|
|
|
39
50
|
return 0;
|
|
40
51
|
return dot / (Math.sqrt(na) * Math.sqrt(nb));
|
|
41
52
|
}
|
|
42
|
-
/**
|
|
53
|
+
/**
|
|
54
|
+
* Embed `texts` once, on first check (not at construction — so building an agent makes no call).
|
|
55
|
+
* Returns the vectors synchronously for a sync `embed`, or a Promise for an async one; the result is
|
|
56
|
+
* cached either way.
|
|
57
|
+
*/
|
|
43
58
|
function lazyVectors(embed, texts) {
|
|
44
59
|
let cache;
|
|
45
60
|
return () => {
|
|
46
|
-
if (cache
|
|
47
|
-
cache
|
|
61
|
+
if (cache !== undefined)
|
|
62
|
+
return cache;
|
|
63
|
+
const raw = texts.map((t) => embed(t));
|
|
64
|
+
if (raw.some(isThenable)) {
|
|
65
|
+
return Promise.all(raw.map((r) => Promise.resolve(r).then((v) => [...v]))).then((v) => {
|
|
66
|
+
cache = v;
|
|
67
|
+
return v;
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
cache = raw.map((r) => [...r]);
|
|
48
71
|
return cache;
|
|
49
72
|
};
|
|
50
73
|
}
|
|
@@ -56,43 +79,43 @@ function lazyVectors(embed, texts) {
|
|
|
56
79
|
export function groundedness(embed, sources, opts = {}) {
|
|
57
80
|
const { threshold = 0.75, stage = 'output', action = 'flag', name = 'groundedness', timeout, onError, } = opts;
|
|
58
81
|
const sourceVecs = lazyVectors(embed, [...sources]);
|
|
59
|
-
const check = (payload, _ctx) => {
|
|
60
|
-
const vecs = sourceVecs();
|
|
82
|
+
const check = (payload, _ctx) => chain(sourceVecs(), (vecs) => {
|
|
61
83
|
if (vecs.length === 0)
|
|
62
84
|
return null;
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
85
|
+
return chain(embed(payloadText(payload)), (answer) => {
|
|
86
|
+
const best = vecs.reduce((m, v) => Math.max(m, cosine([...answer], v)), 0);
|
|
87
|
+
if (best >= threshold)
|
|
88
|
+
return null;
|
|
89
|
+
return new Verdict(action, `ungrounded: max similarity ${best.toFixed(2)} < ${threshold}`);
|
|
90
|
+
});
|
|
91
|
+
});
|
|
69
92
|
return defineGuardrail(check, { name, stage, timeout, onError: resolveOnError(action, onError) });
|
|
70
93
|
}
|
|
71
94
|
/**
|
|
72
95
|
* Trip when the payload is semantically close to a **custom category** you define by example — the
|
|
73
|
-
* local
|
|
74
|
-
*
|
|
96
|
+
* local counterpart to Azure Content Safety's *rapid custom categories* (description + examples →
|
|
97
|
+
* embedding search), with no cloud call and no training step. Trips when the payload's max cosine
|
|
75
98
|
* similarity to any example is **at or above** `threshold`, recording `metadata.category` /
|
|
76
99
|
* `metadata.score`; catches paraphrases `keywordDeny` misses. Defaults to `action:'flag'` (a tuned
|
|
77
100
|
* heuristic — calibrate before you block). No catch-rate claim; empty `examples` never trips.
|
|
78
101
|
*
|
|
79
|
-
* `embed(text)` is **bring-your-own** —
|
|
80
|
-
*
|
|
81
|
-
* Python-only; parity 🚧.)
|
|
102
|
+
* `embed(text)` is **bring-your-own** — sync (keeps the check usable via `apply`) or async (a hosted
|
|
103
|
+
* endpoint / `embeddings.localEmbedder()`, which makes the check async → use `applyAsync` / the SDK).
|
|
82
104
|
*/
|
|
83
105
|
export function customCategory(category, examples, embed, opts = {}) {
|
|
84
106
|
const { threshold = 0.8, stage = 'input', action = 'flag', name = `custom_category:${category}`, timeout, onError, } = opts;
|
|
85
107
|
const exampleVecs = lazyVectors(embed, [...examples]);
|
|
86
|
-
const check = (payload, _ctx) => {
|
|
87
|
-
const vecs = exampleVecs();
|
|
108
|
+
const check = (payload, _ctx) => chain(exampleVecs(), (vecs) => {
|
|
88
109
|
if (vecs.length === 0)
|
|
89
110
|
return null;
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
111
|
+
return chain(embed(payloadText(payload)), (q) => {
|
|
112
|
+
const query = [...q];
|
|
113
|
+
const best = vecs.reduce((m, v) => Math.max(m, cosine(query, v)), Number.NEGATIVE_INFINITY);
|
|
114
|
+
if (best < threshold)
|
|
115
|
+
return null;
|
|
116
|
+
return new Verdict(action, `custom category ${JSON.stringify(category)}: sim ${best.toFixed(2)} >= ${threshold}`, null, { category, score: Math.round(best * 1e4) / 1e4 });
|
|
117
|
+
});
|
|
118
|
+
});
|
|
96
119
|
return defineGuardrail(check, { name, stage, timeout, onError: resolveOnError(action, onError) });
|
|
97
120
|
}
|
|
98
121
|
/**
|
|
@@ -104,24 +127,25 @@ export function deniedTopics(embed, topics, opts = {}) {
|
|
|
104
127
|
const { threshold = 0.8, stage = 'input', action = 'block', name = 'denied_topics', timeout, onError, } = opts;
|
|
105
128
|
const topicList = [...topics];
|
|
106
129
|
const topicVecs = lazyVectors(embed, topicList);
|
|
107
|
-
const check = (payload, _ctx) => {
|
|
108
|
-
const vecs = topicVecs();
|
|
130
|
+
const check = (payload, _ctx) => chain(topicVecs(), (vecs) => {
|
|
109
131
|
if (vecs.length === 0)
|
|
110
132
|
return null;
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
bestSim
|
|
118
|
-
|
|
119
|
-
|
|
133
|
+
return chain(embed(payloadText(payload)), (q) => {
|
|
134
|
+
const query = [...q];
|
|
135
|
+
let bestI = 0;
|
|
136
|
+
let bestSim = Number.NEGATIVE_INFINITY;
|
|
137
|
+
vecs.forEach((v, i) => {
|
|
138
|
+
const s = cosine(query, v);
|
|
139
|
+
if (s > bestSim) {
|
|
140
|
+
bestSim = s;
|
|
141
|
+
bestI = i;
|
|
142
|
+
}
|
|
143
|
+
});
|
|
144
|
+
if (bestSim < threshold)
|
|
145
|
+
return null;
|
|
146
|
+
return new Verdict(action, `denied topic ${JSON.stringify(topicList[bestI])}: sim ${bestSim.toFixed(2)} >= ${threshold}`);
|
|
120
147
|
});
|
|
121
|
-
|
|
122
|
-
return null;
|
|
123
|
-
return new Verdict(action, `denied topic ${JSON.stringify(topicList[bestI])}: sim ${bestSim.toFixed(2)} >= ${threshold}`);
|
|
124
|
-
};
|
|
148
|
+
});
|
|
125
149
|
return defineGuardrail(check, { name, stage, timeout, onError: resolveOnError(action, onError) });
|
|
126
150
|
}
|
|
127
151
|
//# sourceMappingURL=semantic.js.map
|
package/dist/semantic.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"semantic.js","sourceRoot":"","sources":["../src/semantic.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"semantic.js","sourceRoot":"","sources":["../src/semantic.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,OAAO,EAKL,OAAO,EACP,eAAe,GAChB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAUzC,SAAS,cAAc,CAAC,MAAc,EAAE,OAAiB;IACvD,IAAI,OAAO,KAAK,SAAS;QAAE,OAAO,OAAO,CAAC;I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O,CAAC,EAAE,CAAC,CAAC;AACpG,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cendor/guardrails",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "A local-first gate for LLM apps: define a check — keyword, regex, URL, length, JSON-schema — attach it to a stage (input, tool call, tool output, output). Deterministic, microsecond, $0, and every decision is audit-grade evidence.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -25,6 +25,14 @@
|
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@cendor/core": "^0.4.1"
|
|
27
27
|
},
|
|
28
|
+
"peerDependencies": {
|
|
29
|
+
"@huggingface/transformers": ">=3"
|
|
30
|
+
},
|
|
31
|
+
"peerDependenciesMeta": {
|
|
32
|
+
"@huggingface/transformers": {
|
|
33
|
+
"optional": true
|
|
34
|
+
}
|
|
35
|
+
},
|
|
28
36
|
"keywords": [
|
|
29
37
|
"llm",
|
|
30
38
|
"guardrails",
|