@meetkai/mka1 0.55.5 → 0.55.6
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/bin/mcp-server.js +61 -15
- package/bin/mcp-server.js.map +14 -13
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.js +1 -1
- package/dist/commonjs/models/components/banwordsguardrail.d.ts +6 -0
- package/dist/commonjs/models/components/banwordsguardrail.d.ts.map +1 -1
- package/dist/commonjs/models/components/banwordsguardrail.js +5 -0
- package/dist/commonjs/models/components/banwordsguardrail.js.map +1 -1
- package/dist/commonjs/models/components/classifierguardrail.d.ts +6 -0
- package/dist/commonjs/models/components/classifierguardrail.d.ts.map +1 -1
- package/dist/commonjs/models/components/classifierguardrail.js +5 -0
- package/dist/commonjs/models/components/classifierguardrail.js.map +1 -1
- package/dist/commonjs/models/components/clusterdefaultrulesummary.d.ts +6 -0
- package/dist/commonjs/models/components/clusterdefaultrulesummary.d.ts.map +1 -1
- package/dist/commonjs/models/components/clusterdefaultrulesummary.js +5 -0
- package/dist/commonjs/models/components/clusterdefaultrulesummary.js.map +1 -1
- package/dist/commonjs/models/components/guardrailinputsource.d.ts +23 -0
- package/dist/commonjs/models/components/guardrailinputsource.d.ts.map +1 -0
- package/dist/commonjs/models/components/guardrailinputsource.js +57 -0
- package/dist/commonjs/models/components/guardrailinputsource.js.map +1 -0
- package/dist/commonjs/models/components/index.d.ts +1 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +1 -0
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/leakageguardrail.d.ts +6 -0
- package/dist/commonjs/models/components/leakageguardrail.d.ts.map +1 -1
- package/dist/commonjs/models/components/leakageguardrail.js +5 -0
- package/dist/commonjs/models/components/leakageguardrail.js.map +1 -1
- package/dist/commonjs/models/components/promptinjectionguardrail.d.ts +6 -0
- package/dist/commonjs/models/components/promptinjectionguardrail.d.ts.map +1 -1
- package/dist/commonjs/models/components/promptinjectionguardrail.js +5 -0
- package/dist/commonjs/models/components/promptinjectionguardrail.js.map +1 -1
- package/dist/commonjs/models/components/testguardrailsrequest.d.ts +6 -0
- package/dist/commonjs/models/components/testguardrailsrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/testguardrailsrequest.js +3 -0
- package/dist/commonjs/models/components/testguardrailsrequest.js.map +1 -1
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.js +1 -1
- package/dist/esm/models/components/banwordsguardrail.d.ts +6 -0
- package/dist/esm/models/components/banwordsguardrail.d.ts.map +1 -1
- package/dist/esm/models/components/banwordsguardrail.js +5 -0
- package/dist/esm/models/components/banwordsguardrail.js.map +1 -1
- package/dist/esm/models/components/classifierguardrail.d.ts +6 -0
- package/dist/esm/models/components/classifierguardrail.d.ts.map +1 -1
- package/dist/esm/models/components/classifierguardrail.js +5 -0
- package/dist/esm/models/components/classifierguardrail.js.map +1 -1
- package/dist/esm/models/components/clusterdefaultrulesummary.d.ts +6 -0
- package/dist/esm/models/components/clusterdefaultrulesummary.d.ts.map +1 -1
- package/dist/esm/models/components/clusterdefaultrulesummary.js +5 -0
- package/dist/esm/models/components/clusterdefaultrulesummary.js.map +1 -1
- package/dist/esm/models/components/guardrailinputsource.d.ts +23 -0
- package/dist/esm/models/components/guardrailinputsource.d.ts.map +1 -0
- package/dist/esm/models/components/guardrailinputsource.js +21 -0
- package/dist/esm/models/components/guardrailinputsource.js.map +1 -0
- package/dist/esm/models/components/index.d.ts +1 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +1 -0
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/leakageguardrail.d.ts +6 -0
- package/dist/esm/models/components/leakageguardrail.d.ts.map +1 -1
- package/dist/esm/models/components/leakageguardrail.js +5 -0
- package/dist/esm/models/components/leakageguardrail.js.map +1 -1
- package/dist/esm/models/components/promptinjectionguardrail.d.ts +6 -0
- package/dist/esm/models/components/promptinjectionguardrail.d.ts.map +1 -1
- package/dist/esm/models/components/promptinjectionguardrail.js +5 -0
- package/dist/esm/models/components/promptinjectionguardrail.js.map +1 -1
- package/dist/esm/models/components/testguardrailsrequest.d.ts +6 -0
- package/dist/esm/models/components/testguardrailsrequest.d.ts.map +1 -1
- package/dist/esm/models/components/testguardrailsrequest.js +3 -0
- package/dist/esm/models/components/testguardrailsrequest.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/components/banwordsguardrail.ts +14 -0
- package/src/models/components/classifierguardrail.ts +14 -0
- package/src/models/components/clusterdefaultrulesummary.ts +14 -0
- package/src/models/components/guardrailinputsource.ts +32 -0
- package/src/models/components/index.ts +1 -0
- package/src/models/components/leakageguardrail.ts +14 -0
- package/src/models/components/promptinjectionguardrail.ts +14 -0
- package/src/models/components/testguardrailsrequest.ts +12 -0
package/bin/mcp-server.js
CHANGED
|
@@ -71397,9 +71397,9 @@ var init_config = __esm(() => {
|
|
|
71397
71397
|
SDK_METADATA = {
|
|
71398
71398
|
language: "typescript",
|
|
71399
71399
|
openapiDocVersion: "1.1.0",
|
|
71400
|
-
sdkVersion: "0.55.
|
|
71400
|
+
sdkVersion: "0.55.6",
|
|
71401
71401
|
genVersion: "2.950.2",
|
|
71402
|
-
userAgent: "speakeasy-sdk/typescript 0.55.
|
|
71402
|
+
userAgent: "speakeasy-sdk/typescript 0.55.6 2.950.2 1.1.0 @meetkai/mka1"
|
|
71403
71403
|
};
|
|
71404
71404
|
});
|
|
71405
71405
|
|
|
@@ -82359,6 +82359,23 @@ var init_appendagenttrialsrequest = __esm(() => {
|
|
|
82359
82359
|
});
|
|
82360
82360
|
});
|
|
82361
82361
|
|
|
82362
|
+
// src/models/components/guardrailinputsource.ts
|
|
82363
|
+
var GuardrailInputSource, GuardrailInputSource$inboundSchema, GuardrailInputSource$outboundSchema;
|
|
82364
|
+
var init_guardrailinputsource = __esm(() => {
|
|
82365
|
+
init_v3();
|
|
82366
|
+
GuardrailInputSource = {
|
|
82367
|
+
User: "user",
|
|
82368
|
+
System: "system",
|
|
82369
|
+
Assistant: "assistant",
|
|
82370
|
+
Tool: "tool",
|
|
82371
|
+
Retrieval: "retrieval",
|
|
82372
|
+
Image: "image",
|
|
82373
|
+
Audio: "audio"
|
|
82374
|
+
};
|
|
82375
|
+
GuardrailInputSource$inboundSchema = nativeEnumType(GuardrailInputSource);
|
|
82376
|
+
GuardrailInputSource$outboundSchema = GuardrailInputSource$inboundSchema;
|
|
82377
|
+
});
|
|
82378
|
+
|
|
82362
82379
|
// src/models/components/guardrailmode.ts
|
|
82363
82380
|
var GuardrailMode, GuardrailMode$inboundSchema, GuardrailMode$outboundSchema;
|
|
82364
82381
|
var init_guardrailmode = __esm(() => {
|
|
@@ -82378,15 +82395,18 @@ var ClusterDefaultRuleSummary$inboundSchema, ClusterDefaultRuleSummary$outboundS
|
|
|
82378
82395
|
var init_clusterdefaultrulesummary = __esm(() => {
|
|
82379
82396
|
init_v3();
|
|
82380
82397
|
init_primitives();
|
|
82398
|
+
init_guardrailinputsource();
|
|
82381
82399
|
init_guardrailmode();
|
|
82382
82400
|
ClusterDefaultRuleSummary$inboundSchema = objectType({
|
|
82383
82401
|
mode: GuardrailMode$inboundSchema,
|
|
82384
82402
|
enabled: booleanType(),
|
|
82385
82403
|
check_output: booleanType().optional(),
|
|
82404
|
+
input_sources: arrayType(GuardrailInputSource$inboundSchema),
|
|
82386
82405
|
rejection_message: stringType().optional()
|
|
82387
82406
|
}).transform((v2) => {
|
|
82388
82407
|
return remap(v2, {
|
|
82389
82408
|
check_output: "checkOutput",
|
|
82409
|
+
input_sources: "inputSources",
|
|
82390
82410
|
rejection_message: "rejectionMessage"
|
|
82391
82411
|
});
|
|
82392
82412
|
});
|
|
@@ -82394,10 +82414,12 @@ var init_clusterdefaultrulesummary = __esm(() => {
|
|
|
82394
82414
|
mode: GuardrailMode$outboundSchema,
|
|
82395
82415
|
enabled: booleanType(),
|
|
82396
82416
|
checkOutput: booleanType().optional(),
|
|
82417
|
+
inputSources: arrayType(GuardrailInputSource$outboundSchema),
|
|
82397
82418
|
rejectionMessage: stringType().optional()
|
|
82398
82419
|
}).transform((v2) => {
|
|
82399
82420
|
return remap(v2, {
|
|
82400
82421
|
checkOutput: "check_output",
|
|
82422
|
+
inputSources: "input_sources",
|
|
82401
82423
|
rejectionMessage: "rejection_message"
|
|
82402
82424
|
});
|
|
82403
82425
|
});
|
|
@@ -82571,24 +82593,29 @@ var init_banwordsguardrail = __esm(() => {
|
|
|
82571
82593
|
init_v3();
|
|
82572
82594
|
init_primitives();
|
|
82573
82595
|
init_banwordsconfig();
|
|
82596
|
+
init_guardrailinputsource();
|
|
82574
82597
|
BanWordsGuardrail$inboundSchema = objectType({
|
|
82575
82598
|
mode: literalType("ban_words"),
|
|
82576
82599
|
enabled: booleanType().default(true),
|
|
82577
82600
|
check_output: booleanType().optional(),
|
|
82601
|
+
input_sources: arrayType(GuardrailInputSource$inboundSchema).optional(),
|
|
82578
82602
|
config: BanWordsConfig$inboundSchema.optional()
|
|
82579
82603
|
}).transform((v2) => {
|
|
82580
82604
|
return remap(v2, {
|
|
82581
|
-
check_output: "checkOutput"
|
|
82605
|
+
check_output: "checkOutput",
|
|
82606
|
+
input_sources: "inputSources"
|
|
82582
82607
|
});
|
|
82583
82608
|
});
|
|
82584
82609
|
BanWordsGuardrail$outboundSchema = objectType({
|
|
82585
82610
|
mode: literalType("ban_words"),
|
|
82586
82611
|
enabled: booleanType().default(true),
|
|
82587
82612
|
checkOutput: booleanType().optional(),
|
|
82613
|
+
inputSources: arrayType(GuardrailInputSource$outboundSchema).optional(),
|
|
82588
82614
|
config: BanWordsConfig$outboundSchema.optional()
|
|
82589
82615
|
}).transform((v2) => {
|
|
82590
82616
|
return remap(v2, {
|
|
82591
|
-
checkOutput: "check_output"
|
|
82617
|
+
checkOutput: "check_output",
|
|
82618
|
+
inputSources: "input_sources"
|
|
82592
82619
|
});
|
|
82593
82620
|
});
|
|
82594
82621
|
});
|
|
@@ -83388,24 +83415,29 @@ var init_classifierguardrail = __esm(() => {
|
|
|
83388
83415
|
init_v3();
|
|
83389
83416
|
init_primitives();
|
|
83390
83417
|
init_classifierconfig();
|
|
83418
|
+
init_guardrailinputsource();
|
|
83391
83419
|
ClassifierGuardrail$inboundSchema = objectType({
|
|
83392
83420
|
mode: literalType("classifier"),
|
|
83393
83421
|
enabled: booleanType().default(true),
|
|
83394
83422
|
check_output: booleanType().optional(),
|
|
83423
|
+
input_sources: arrayType(GuardrailInputSource$inboundSchema).optional(),
|
|
83395
83424
|
config: ClassifierConfig$inboundSchema
|
|
83396
83425
|
}).transform((v2) => {
|
|
83397
83426
|
return remap(v2, {
|
|
83398
|
-
check_output: "checkOutput"
|
|
83427
|
+
check_output: "checkOutput",
|
|
83428
|
+
input_sources: "inputSources"
|
|
83399
83429
|
});
|
|
83400
83430
|
});
|
|
83401
83431
|
ClassifierGuardrail$outboundSchema = objectType({
|
|
83402
83432
|
mode: literalType("classifier"),
|
|
83403
83433
|
enabled: booleanType().default(true),
|
|
83404
83434
|
checkOutput: booleanType().optional(),
|
|
83435
|
+
inputSources: arrayType(GuardrailInputSource$outboundSchema).optional(),
|
|
83405
83436
|
config: ClassifierConfig$outboundSchema
|
|
83406
83437
|
}).transform((v2) => {
|
|
83407
83438
|
return remap(v2, {
|
|
83408
|
-
checkOutput: "check_output"
|
|
83439
|
+
checkOutput: "check_output",
|
|
83440
|
+
inputSources: "input_sources"
|
|
83409
83441
|
});
|
|
83410
83442
|
});
|
|
83411
83443
|
});
|
|
@@ -83525,25 +83557,30 @@ var LeakageGuardrail$inboundSchema, LeakageGuardrail$outboundSchema;
|
|
|
83525
83557
|
var init_leakageguardrail = __esm(() => {
|
|
83526
83558
|
init_v3();
|
|
83527
83559
|
init_primitives();
|
|
83560
|
+
init_guardrailinputsource();
|
|
83528
83561
|
init_leakageconfig();
|
|
83529
83562
|
LeakageGuardrail$inboundSchema = objectType({
|
|
83530
83563
|
mode: literalType("leakage"),
|
|
83531
83564
|
enabled: booleanType().default(true),
|
|
83532
83565
|
check_output: booleanType().optional(),
|
|
83566
|
+
input_sources: arrayType(GuardrailInputSource$inboundSchema).optional(),
|
|
83533
83567
|
config: LeakageConfig$inboundSchema.optional()
|
|
83534
83568
|
}).transform((v2) => {
|
|
83535
83569
|
return remap(v2, {
|
|
83536
|
-
check_output: "checkOutput"
|
|
83570
|
+
check_output: "checkOutput",
|
|
83571
|
+
input_sources: "inputSources"
|
|
83537
83572
|
});
|
|
83538
83573
|
});
|
|
83539
83574
|
LeakageGuardrail$outboundSchema = objectType({
|
|
83540
83575
|
mode: literalType("leakage"),
|
|
83541
83576
|
enabled: booleanType().default(true),
|
|
83542
83577
|
checkOutput: booleanType().optional(),
|
|
83578
|
+
inputSources: arrayType(GuardrailInputSource$outboundSchema).optional(),
|
|
83543
83579
|
config: LeakageConfig$outboundSchema.optional()
|
|
83544
83580
|
}).transform((v2) => {
|
|
83545
83581
|
return remap(v2, {
|
|
83546
|
-
checkOutput: "check_output"
|
|
83582
|
+
checkOutput: "check_output",
|
|
83583
|
+
inputSources: "input_sources"
|
|
83547
83584
|
});
|
|
83548
83585
|
});
|
|
83549
83586
|
});
|
|
@@ -83576,25 +83613,30 @@ var PromptInjectionGuardrail$inboundSchema, PromptInjectionGuardrail$outboundSch
|
|
|
83576
83613
|
var init_promptinjectionguardrail = __esm(() => {
|
|
83577
83614
|
init_v3();
|
|
83578
83615
|
init_primitives();
|
|
83616
|
+
init_guardrailinputsource();
|
|
83579
83617
|
init_promptinjectionconfig();
|
|
83580
83618
|
PromptInjectionGuardrail$inboundSchema = objectType({
|
|
83581
83619
|
mode: literalType("prompt_injection"),
|
|
83582
83620
|
enabled: booleanType().default(true),
|
|
83583
83621
|
check_output: booleanType().optional(),
|
|
83622
|
+
input_sources: arrayType(GuardrailInputSource$inboundSchema).optional(),
|
|
83584
83623
|
config: PromptInjectionConfig$inboundSchema.optional()
|
|
83585
83624
|
}).transform((v2) => {
|
|
83586
83625
|
return remap(v2, {
|
|
83587
|
-
check_output: "checkOutput"
|
|
83626
|
+
check_output: "checkOutput",
|
|
83627
|
+
input_sources: "inputSources"
|
|
83588
83628
|
});
|
|
83589
83629
|
});
|
|
83590
83630
|
PromptInjectionGuardrail$outboundSchema = objectType({
|
|
83591
83631
|
mode: literalType("prompt_injection"),
|
|
83592
83632
|
enabled: booleanType().default(true),
|
|
83593
83633
|
checkOutput: booleanType().optional(),
|
|
83634
|
+
inputSources: arrayType(GuardrailInputSource$outboundSchema).optional(),
|
|
83594
83635
|
config: PromptInjectionConfig$outboundSchema.optional()
|
|
83595
83636
|
}).transform((v2) => {
|
|
83596
83637
|
return remap(v2, {
|
|
83597
|
-
checkOutput: "check_output"
|
|
83638
|
+
checkOutput: "check_output",
|
|
83639
|
+
inputSources: "input_sources"
|
|
83598
83640
|
});
|
|
83599
83641
|
});
|
|
83600
83642
|
});
|
|
@@ -107247,11 +107289,14 @@ var init_terminatesessionresponse = __esm(() => {
|
|
|
107247
107289
|
var TestGuardrailsRequest$inboundSchema, TestGuardrailsRequest$outboundSchema;
|
|
107248
107290
|
var init_testguardrailsrequest = __esm(() => {
|
|
107249
107291
|
init_v3();
|
|
107292
|
+
init_guardrailinputsource();
|
|
107250
107293
|
TestGuardrailsRequest$inboundSchema = objectType({
|
|
107251
|
-
content: stringType()
|
|
107294
|
+
content: stringType(),
|
|
107295
|
+
source: GuardrailInputSource$inboundSchema.optional()
|
|
107252
107296
|
});
|
|
107253
107297
|
TestGuardrailsRequest$outboundSchema = objectType({
|
|
107254
|
-
content: stringType()
|
|
107298
|
+
content: stringType(),
|
|
107299
|
+
source: GuardrailInputSource$outboundSchema.optional()
|
|
107255
107300
|
});
|
|
107256
107301
|
});
|
|
107257
107302
|
|
|
@@ -109752,6 +109797,7 @@ var init_components = __esm(() => {
|
|
|
109752
109797
|
init_grantablevectorstorepermissionrole();
|
|
109753
109798
|
init_grantpermissionrequest();
|
|
109754
109799
|
init_guardrailconfig();
|
|
109800
|
+
init_guardrailinputsource();
|
|
109755
109801
|
init_guardrailmode();
|
|
109756
109802
|
init_guardrailspolicy();
|
|
109757
109803
|
init_historytooldefinition();
|
|
@@ -202325,7 +202371,7 @@ Aggregate sandbox usage (session lifecycle, execution, and workspace operations)
|
|
|
202325
202371
|
function createMCPServer(deps) {
|
|
202326
202372
|
const server = new McpServer({
|
|
202327
202373
|
name: "SDK",
|
|
202328
|
-
version: "0.55.
|
|
202374
|
+
version: "0.55.6"
|
|
202329
202375
|
});
|
|
202330
202376
|
const client = new SDKCore({
|
|
202331
202377
|
bearerAuth: deps.bearerAuth,
|
|
@@ -204496,7 +204542,7 @@ var routes = rn({
|
|
|
204496
204542
|
var app = Ve(routes, {
|
|
204497
204543
|
name: "mcp",
|
|
204498
204544
|
versionInfo: {
|
|
204499
|
-
currentVersion: "0.55.
|
|
204545
|
+
currentVersion: "0.55.6"
|
|
204500
204546
|
}
|
|
204501
204547
|
});
|
|
204502
204548
|
_t(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -204504,5 +204550,5 @@ export {
|
|
|
204504
204550
|
app
|
|
204505
204551
|
};
|
|
204506
204552
|
|
|
204507
|
-
//# debugId=
|
|
204553
|
+
//# debugId=099B3417D149DFCE64756E2164756E21
|
|
204508
204554
|
//# sourceMappingURL=mcp-server.js.map
|