elsium-ai 0.4.2 → 0.4.3
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/index.js +12 -11
- package/package.json +12 -12
package/dist/index.js
CHANGED
|
@@ -974,7 +974,8 @@ function createShutdownManager(config) {
|
|
|
974
974
|
// ../gateway/src/provider.ts
|
|
975
975
|
var providerRegistry = new Map;
|
|
976
976
|
var metadataRegistry = new Map;
|
|
977
|
-
function registerProvider(name,
|
|
977
|
+
function registerProvider(name, factoryOrProvider) {
|
|
978
|
+
const factory = typeof factoryOrProvider === "function" ? factoryOrProvider : () => factoryOrProvider;
|
|
978
979
|
providerRegistry.set(name, factory);
|
|
979
980
|
}
|
|
980
981
|
function getProviderFactory(name) {
|
|
@@ -2623,27 +2624,27 @@ var JAILBREAK_PATTERNS = [
|
|
|
2623
2624
|
];
|
|
2624
2625
|
var SECRET_PATTERNS = [
|
|
2625
2626
|
{
|
|
2626
|
-
pattern: /\bsk-[a-zA-Z0-9_-]{
|
|
2627
|
+
pattern: /\bsk-[a-zA-Z0-9_-]{8,}\b/g,
|
|
2627
2628
|
detail: "API secret key detected",
|
|
2628
2629
|
replacement: "[REDACTED_API_KEY]"
|
|
2629
2630
|
},
|
|
2630
2631
|
{
|
|
2631
|
-
pattern: /\bpk-[a-zA-Z0-9_-]{
|
|
2632
|
+
pattern: /\bpk-[a-zA-Z0-9_-]{8,}\b/g,
|
|
2632
2633
|
detail: "API public key detected",
|
|
2633
2634
|
replacement: "[REDACTED_API_KEY]"
|
|
2634
2635
|
},
|
|
2635
2636
|
{
|
|
2636
|
-
pattern: /\bghp_[a-zA-Z0-9]{
|
|
2637
|
+
pattern: /\bghp_[a-zA-Z0-9]{8,}\b/g,
|
|
2637
2638
|
detail: "GitHub personal access token detected",
|
|
2638
2639
|
replacement: "[REDACTED_GITHUB_TOKEN]"
|
|
2639
2640
|
},
|
|
2640
2641
|
{
|
|
2641
|
-
pattern: /\bgho_[a-zA-Z0-9]{
|
|
2642
|
+
pattern: /\bgho_[a-zA-Z0-9]{8,}\b/g,
|
|
2642
2643
|
detail: "GitHub OAuth token detected",
|
|
2643
2644
|
replacement: "[REDACTED_GITHUB_TOKEN]"
|
|
2644
2645
|
},
|
|
2645
2646
|
{
|
|
2646
|
-
pattern: /\bgithub_pat_[a-zA-Z0-9_]{
|
|
2647
|
+
pattern: /\bgithub_pat_[a-zA-Z0-9_]{8,}\b/g,
|
|
2647
2648
|
detail: "GitHub fine-grained token detected",
|
|
2648
2649
|
replacement: "[REDACTED_GITHUB_TOKEN]"
|
|
2649
2650
|
},
|
|
@@ -8123,27 +8124,27 @@ var JAILBREAK_PATTERNS2 = [
|
|
|
8123
8124
|
];
|
|
8124
8125
|
var SECRET_PATTERNS3 = [
|
|
8125
8126
|
{
|
|
8126
|
-
pattern: /\bsk-[a-zA-Z0-9_-]{
|
|
8127
|
+
pattern: /\bsk-[a-zA-Z0-9_-]{8,}\b/g,
|
|
8127
8128
|
detail: "API secret key detected",
|
|
8128
8129
|
replacement: "[REDACTED_API_KEY]"
|
|
8129
8130
|
},
|
|
8130
8131
|
{
|
|
8131
|
-
pattern: /\bpk-[a-zA-Z0-9_-]{
|
|
8132
|
+
pattern: /\bpk-[a-zA-Z0-9_-]{8,}\b/g,
|
|
8132
8133
|
detail: "API public key detected",
|
|
8133
8134
|
replacement: "[REDACTED_API_KEY]"
|
|
8134
8135
|
},
|
|
8135
8136
|
{
|
|
8136
|
-
pattern: /\bghp_[a-zA-Z0-9]{
|
|
8137
|
+
pattern: /\bghp_[a-zA-Z0-9]{8,}\b/g,
|
|
8137
8138
|
detail: "GitHub personal access token detected",
|
|
8138
8139
|
replacement: "[REDACTED_GITHUB_TOKEN]"
|
|
8139
8140
|
},
|
|
8140
8141
|
{
|
|
8141
|
-
pattern: /\bgho_[a-zA-Z0-9]{
|
|
8142
|
+
pattern: /\bgho_[a-zA-Z0-9]{8,}\b/g,
|
|
8142
8143
|
detail: "GitHub OAuth token detected",
|
|
8143
8144
|
replacement: "[REDACTED_GITHUB_TOKEN]"
|
|
8144
8145
|
},
|
|
8145
8146
|
{
|
|
8146
|
-
pattern: /\bgithub_pat_[a-zA-Z0-9_]{
|
|
8147
|
+
pattern: /\bgithub_pat_[a-zA-Z0-9_]{8,}\b/g,
|
|
8147
8148
|
detail: "GitHub fine-grained token detected",
|
|
8148
8149
|
replacement: "[REDACTED_GITHUB_TOKEN]"
|
|
8149
8150
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "elsium-ai",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.3",
|
|
4
4
|
"description": "ElsiumAI — A high-performance, TypeScript-first AI framework",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Eric Utrera <ebutrera9103@gmail.com>",
|
|
@@ -25,17 +25,17 @@
|
|
|
25
25
|
"build": "bun build ./src/index.ts --outdir ./dist --target node && bun x tsc -p tsconfig.build.json --emitDeclarationOnly"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@elsium-ai/core": "^0.4.
|
|
29
|
-
"@elsium-ai/gateway": "^0.4.
|
|
30
|
-
"@elsium-ai/agents": "^0.4.
|
|
31
|
-
"@elsium-ai/tools": "^0.4.
|
|
32
|
-
"@elsium-ai/rag": "^0.4.
|
|
33
|
-
"@elsium-ai/workflows": "^0.4.
|
|
34
|
-
"@elsium-ai/observe": "^0.4.
|
|
35
|
-
"@elsium-ai/app": "^0.4.
|
|
36
|
-
"@elsium-ai/testing": "^0.4.
|
|
37
|
-
"@elsium-ai/mcp": "^0.4.
|
|
38
|
-
"@elsium-ai/client": "^0.4.
|
|
28
|
+
"@elsium-ai/core": "^0.4.3",
|
|
29
|
+
"@elsium-ai/gateway": "^0.4.3",
|
|
30
|
+
"@elsium-ai/agents": "^0.4.3",
|
|
31
|
+
"@elsium-ai/tools": "^0.4.3",
|
|
32
|
+
"@elsium-ai/rag": "^0.4.3",
|
|
33
|
+
"@elsium-ai/workflows": "^0.4.3",
|
|
34
|
+
"@elsium-ai/observe": "^0.4.3",
|
|
35
|
+
"@elsium-ai/app": "^0.4.3",
|
|
36
|
+
"@elsium-ai/testing": "^0.4.3",
|
|
37
|
+
"@elsium-ai/mcp": "^0.4.3",
|
|
38
|
+
"@elsium-ai/client": "^0.4.3"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"typescript": "^5.7.0"
|