@inkeep/agents-manage-mcp 0.47.0 → 0.47.2
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 +128 -28
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/env.ts +1 -1
package/dist/index.js
CHANGED
|
@@ -643,7 +643,7 @@ const string$1 = (params) => {
|
|
|
643
643
|
};
|
|
644
644
|
const integer = /^-?\d+$/;
|
|
645
645
|
const number$1 = /^-?\d+(?:\.\d+)?$/;
|
|
646
|
-
const boolean$
|
|
646
|
+
const boolean$1 = /^(?:true|false)$/i;
|
|
647
647
|
const lowercase = /^[^A-Z]*$/;
|
|
648
648
|
const uppercase = /^[^a-z]*$/;
|
|
649
649
|
|
|
@@ -1424,7 +1424,7 @@ const $ZodNumberFormat = /* @__PURE__ */ $constructor("$ZodNumberFormat", (inst,
|
|
|
1424
1424
|
});
|
|
1425
1425
|
const $ZodBoolean = /* @__PURE__ */ $constructor("$ZodBoolean", (inst, def) => {
|
|
1426
1426
|
$ZodType.init(inst, def);
|
|
1427
|
-
inst._zod.pattern = boolean$
|
|
1427
|
+
inst._zod.pattern = boolean$1;
|
|
1428
1428
|
inst._zod.parse = (payload, _ctx) => {
|
|
1429
1429
|
if (def.coerce) try {
|
|
1430
1430
|
payload.value = Boolean(payload.value);
|
|
@@ -2135,6 +2135,49 @@ function handlePipeResult(left, next, ctx) {
|
|
|
2135
2135
|
issues: left.issues
|
|
2136
2136
|
}, ctx);
|
|
2137
2137
|
}
|
|
2138
|
+
const $ZodCodec = /* @__PURE__ */ $constructor("$ZodCodec", (inst, def) => {
|
|
2139
|
+
$ZodType.init(inst, def);
|
|
2140
|
+
defineLazy(inst._zod, "values", () => def.in._zod.values);
|
|
2141
|
+
defineLazy(inst._zod, "optin", () => def.in._zod.optin);
|
|
2142
|
+
defineLazy(inst._zod, "optout", () => def.out._zod.optout);
|
|
2143
|
+
defineLazy(inst._zod, "propValues", () => def.in._zod.propValues);
|
|
2144
|
+
inst._zod.parse = (payload, ctx) => {
|
|
2145
|
+
if ((ctx.direction || "forward") === "forward") {
|
|
2146
|
+
const left = def.in._zod.run(payload, ctx);
|
|
2147
|
+
if (left instanceof Promise) return left.then((left$1) => handleCodecAResult(left$1, def, ctx));
|
|
2148
|
+
return handleCodecAResult(left, def, ctx);
|
|
2149
|
+
} else {
|
|
2150
|
+
const right = def.out._zod.run(payload, ctx);
|
|
2151
|
+
if (right instanceof Promise) return right.then((right$1) => handleCodecAResult(right$1, def, ctx));
|
|
2152
|
+
return handleCodecAResult(right, def, ctx);
|
|
2153
|
+
}
|
|
2154
|
+
};
|
|
2155
|
+
});
|
|
2156
|
+
function handleCodecAResult(result, def, ctx) {
|
|
2157
|
+
if (result.issues.length) {
|
|
2158
|
+
result.aborted = true;
|
|
2159
|
+
return result;
|
|
2160
|
+
}
|
|
2161
|
+
if ((ctx.direction || "forward") === "forward") {
|
|
2162
|
+
const transformed = def.transform(result.value, result);
|
|
2163
|
+
if (transformed instanceof Promise) return transformed.then((value) => handleCodecTxResult(result, value, def.out, ctx));
|
|
2164
|
+
return handleCodecTxResult(result, transformed, def.out, ctx);
|
|
2165
|
+
} else {
|
|
2166
|
+
const transformed = def.reverseTransform(result.value, result);
|
|
2167
|
+
if (transformed instanceof Promise) return transformed.then((value) => handleCodecTxResult(result, value, def.in, ctx));
|
|
2168
|
+
return handleCodecTxResult(result, transformed, def.in, ctx);
|
|
2169
|
+
}
|
|
2170
|
+
}
|
|
2171
|
+
function handleCodecTxResult(left, value, nextSchema, ctx) {
|
|
2172
|
+
if (left.issues.length) {
|
|
2173
|
+
left.aborted = true;
|
|
2174
|
+
return left;
|
|
2175
|
+
}
|
|
2176
|
+
return nextSchema._zod.run({
|
|
2177
|
+
value,
|
|
2178
|
+
issues: left.issues
|
|
2179
|
+
}, ctx);
|
|
2180
|
+
}
|
|
2138
2181
|
const $ZodReadonly = /* @__PURE__ */ $constructor("$ZodReadonly", (inst, def) => {
|
|
2139
2182
|
$ZodType.init(inst, def);
|
|
2140
2183
|
defineLazy(inst._zod, "propValues", () => def.innerType._zod.propValues);
|
|
@@ -2536,14 +2579,6 @@ function _boolean(Class, params) {
|
|
|
2536
2579
|
});
|
|
2537
2580
|
}
|
|
2538
2581
|
/* @__NO_SIDE_EFFECTS__ */
|
|
2539
|
-
function _coercedBoolean(Class, params) {
|
|
2540
|
-
return new Class({
|
|
2541
|
-
type: "boolean",
|
|
2542
|
-
coerce: true,
|
|
2543
|
-
...normalizeParams(params)
|
|
2544
|
-
});
|
|
2545
|
-
}
|
|
2546
|
-
/* @__NO_SIDE_EFFECTS__ */
|
|
2547
2582
|
function _any(Class) {
|
|
2548
2583
|
return new Class({ type: "any" });
|
|
2549
2584
|
}
|
|
@@ -2787,6 +2822,68 @@ function meta$1(metadata) {
|
|
|
2787
2822
|
ch._zod.check = () => {};
|
|
2788
2823
|
return ch;
|
|
2789
2824
|
}
|
|
2825
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
2826
|
+
function _stringbool(Classes, _params) {
|
|
2827
|
+
const params = normalizeParams(_params);
|
|
2828
|
+
let truthyArray = params.truthy ?? [
|
|
2829
|
+
"true",
|
|
2830
|
+
"1",
|
|
2831
|
+
"yes",
|
|
2832
|
+
"on",
|
|
2833
|
+
"y",
|
|
2834
|
+
"enabled"
|
|
2835
|
+
];
|
|
2836
|
+
let falsyArray = params.falsy ?? [
|
|
2837
|
+
"false",
|
|
2838
|
+
"0",
|
|
2839
|
+
"no",
|
|
2840
|
+
"off",
|
|
2841
|
+
"n",
|
|
2842
|
+
"disabled"
|
|
2843
|
+
];
|
|
2844
|
+
if (params.case !== "sensitive") {
|
|
2845
|
+
truthyArray = truthyArray.map((v) => typeof v === "string" ? v.toLowerCase() : v);
|
|
2846
|
+
falsyArray = falsyArray.map((v) => typeof v === "string" ? v.toLowerCase() : v);
|
|
2847
|
+
}
|
|
2848
|
+
const truthySet = new Set(truthyArray);
|
|
2849
|
+
const falsySet = new Set(falsyArray);
|
|
2850
|
+
const _Codec = Classes.Codec ?? $ZodCodec;
|
|
2851
|
+
const _Boolean = Classes.Boolean ?? $ZodBoolean;
|
|
2852
|
+
const codec = new _Codec({
|
|
2853
|
+
type: "pipe",
|
|
2854
|
+
in: new (Classes.String ?? $ZodString)({
|
|
2855
|
+
type: "string",
|
|
2856
|
+
error: params.error
|
|
2857
|
+
}),
|
|
2858
|
+
out: new _Boolean({
|
|
2859
|
+
type: "boolean",
|
|
2860
|
+
error: params.error
|
|
2861
|
+
}),
|
|
2862
|
+
transform: ((input, payload) => {
|
|
2863
|
+
let data = input;
|
|
2864
|
+
if (params.case !== "sensitive") data = data.toLowerCase();
|
|
2865
|
+
if (truthySet.has(data)) return true;
|
|
2866
|
+
else if (falsySet.has(data)) return false;
|
|
2867
|
+
else {
|
|
2868
|
+
payload.issues.push({
|
|
2869
|
+
code: "invalid_value",
|
|
2870
|
+
expected: "stringbool",
|
|
2871
|
+
values: [...truthySet, ...falsySet],
|
|
2872
|
+
input: payload.value,
|
|
2873
|
+
inst: codec,
|
|
2874
|
+
continue: false
|
|
2875
|
+
});
|
|
2876
|
+
return {};
|
|
2877
|
+
}
|
|
2878
|
+
}),
|
|
2879
|
+
reverseTransform: ((input, _payload) => {
|
|
2880
|
+
if (input === true) return truthyArray[0] || "true";
|
|
2881
|
+
else return falsyArray[0] || "false";
|
|
2882
|
+
}),
|
|
2883
|
+
error: params.error
|
|
2884
|
+
});
|
|
2885
|
+
return codec;
|
|
2886
|
+
}
|
|
2790
2887
|
|
|
2791
2888
|
//#endregion
|
|
2792
2889
|
//#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/to-json-schema.js
|
|
@@ -3656,7 +3753,7 @@ const ZodBoolean = /* @__PURE__ */ $constructor("ZodBoolean", (inst, def) => {
|
|
|
3656
3753
|
ZodType.init(inst, def);
|
|
3657
3754
|
inst._zod.processJSONSchema = (ctx, json$1, params) => booleanProcessor(inst, ctx, json$1, params);
|
|
3658
3755
|
});
|
|
3659
|
-
function boolean
|
|
3756
|
+
function boolean(params) {
|
|
3660
3757
|
return _boolean(ZodBoolean, params);
|
|
3661
3758
|
}
|
|
3662
3759
|
const ZodAny = /* @__PURE__ */ $constructor("ZodAny", (inst, def) => {
|
|
@@ -3961,6 +4058,10 @@ function pipe(in_, out) {
|
|
|
3961
4058
|
out
|
|
3962
4059
|
});
|
|
3963
4060
|
}
|
|
4061
|
+
const ZodCodec = /* @__PURE__ */ $constructor("ZodCodec", (inst, def) => {
|
|
4062
|
+
ZodPipe.init(inst, def);
|
|
4063
|
+
$ZodCodec.init(inst, def);
|
|
4064
|
+
});
|
|
3964
4065
|
const ZodReadonly = /* @__PURE__ */ $constructor("ZodReadonly", (inst, def) => {
|
|
3965
4066
|
$ZodReadonly.init(inst, def);
|
|
3966
4067
|
ZodType.init(inst, def);
|
|
@@ -4001,12 +4102,11 @@ function superRefine(fn) {
|
|
|
4001
4102
|
}
|
|
4002
4103
|
const describe = describe$1;
|
|
4003
4104
|
const meta = meta$1;
|
|
4004
|
-
|
|
4005
|
-
|
|
4006
|
-
|
|
4007
|
-
|
|
4008
|
-
|
|
4009
|
-
}
|
|
4105
|
+
const stringbool = (...args$113) => _stringbool({
|
|
4106
|
+
Codec: ZodCodec,
|
|
4107
|
+
Boolean: ZodBoolean,
|
|
4108
|
+
String: ZodString
|
|
4109
|
+
}, ...args$113);
|
|
4010
4110
|
|
|
4011
4111
|
//#endregion
|
|
4012
4112
|
//#region src/hooks/registration.ts
|
|
@@ -4377,7 +4477,7 @@ function dlv(obj, key, def, p, undef) {
|
|
|
4377
4477
|
const envSchema = object({
|
|
4378
4478
|
INKEEPAGENTSMANAGE_COOKIE_AUTH: string().optional(),
|
|
4379
4479
|
INKEEPAGENTSMANAGE_BEARER_AUTH: string().optional(),
|
|
4380
|
-
INKEEPAGENTSMANAGE_DEBUG:
|
|
4480
|
+
INKEEPAGENTSMANAGE_DEBUG: stringbool().optional()
|
|
4381
4481
|
});
|
|
4382
4482
|
let envMemo = void 0;
|
|
4383
4483
|
/**
|
|
@@ -5685,7 +5785,7 @@ const tool$agentArtifactComponentRelationsAssociateArtifactComponentWithAgent =
|
|
|
5685
5785
|
|
|
5686
5786
|
//#endregion
|
|
5687
5787
|
//#region src/models/existsresponse.ts
|
|
5688
|
-
const ExistsResponse$zodSchema = object({ exists: boolean
|
|
5788
|
+
const ExistsResponse$zodSchema = object({ exists: boolean() });
|
|
5689
5789
|
|
|
5690
5790
|
//#endregion
|
|
5691
5791
|
//#region src/models/checkartifactcomponentagentassociationop.ts
|
|
@@ -6178,7 +6278,7 @@ const tool$agentArtifactComponentRelationsGetArtifactComponentsForAgent = {
|
|
|
6178
6278
|
//#region src/models/removedresponse.ts
|
|
6179
6279
|
const RemovedResponse$zodSchema = object({
|
|
6180
6280
|
message: string(),
|
|
6181
|
-
removed: boolean
|
|
6281
|
+
removed: boolean()
|
|
6182
6282
|
});
|
|
6183
6283
|
|
|
6184
6284
|
//#endregion
|
|
@@ -7183,7 +7283,7 @@ const CanDelegateToTeamAgent$zodSchema = object({
|
|
|
7183
7283
|
|
|
7184
7284
|
//#endregion
|
|
7185
7285
|
//#region src/models/canuseitem.ts
|
|
7186
|
-
const CanUseItemToolPolicies$zodSchema = object({ needsApproval: boolean
|
|
7286
|
+
const CanUseItemToolPolicies$zodSchema = object({ needsApproval: boolean().optional() });
|
|
7187
7287
|
const CanUseItem$zodSchema = object({
|
|
7188
7288
|
agentToolRelationId: string().optional(),
|
|
7189
7289
|
headers: record(string(), string()).nullable().optional(),
|
|
@@ -7276,7 +7376,7 @@ const StatusComponent$zodSchema = object({
|
|
|
7276
7376
|
//#endregion
|
|
7277
7377
|
//#region src/models/statusupdate.ts
|
|
7278
7378
|
const StatusUpdate$zodSchema = object({
|
|
7279
|
-
enabled: boolean
|
|
7379
|
+
enabled: boolean().optional(),
|
|
7280
7380
|
numEvents: number().optional(),
|
|
7281
7381
|
prompt: string().optional(),
|
|
7282
7382
|
statusComponents: array(StatusComponent$zodSchema).optional(),
|
|
@@ -10919,7 +11019,7 @@ const ConversationWithFormattedMessagesResponse$zodSchema = object({ data: lazy(
|
|
|
10919
11019
|
//#region src/models/getconversationop.ts
|
|
10920
11020
|
const GetConversationRequest$zodSchema = object({
|
|
10921
11021
|
id: string().describe("Resource identifier"),
|
|
10922
|
-
includeInternal: boolean
|
|
11022
|
+
includeInternal: boolean().default(false).nullable(),
|
|
10923
11023
|
limit: number().default(20),
|
|
10924
11024
|
projectId: string().describe("Project identifier"),
|
|
10925
11025
|
tenantId: string().describe("Tenant identifier")
|
|
@@ -11890,7 +11990,7 @@ const CredentialStoreType$zodSchema = _enum([
|
|
|
11890
11990
|
"nango"
|
|
11891
11991
|
]);
|
|
11892
11992
|
const CredentialStore$zodSchema = object({
|
|
11893
|
-
available: boolean
|
|
11993
|
+
available: boolean(),
|
|
11894
11994
|
id: string(),
|
|
11895
11995
|
reason: string().nullable(),
|
|
11896
11996
|
type: CredentialStoreType$zodSchema
|
|
@@ -16757,7 +16857,7 @@ const MCPCatalogListResponseData$zodSchema = object({
|
|
|
16757
16857
|
description: string().optional(),
|
|
16758
16858
|
id: string(),
|
|
16759
16859
|
imageUrl: string().optional(),
|
|
16760
|
-
isOpen: boolean
|
|
16860
|
+
isOpen: boolean().optional(),
|
|
16761
16861
|
name: string(),
|
|
16762
16862
|
thirdPartyConnectAccountUrl: string().optional(),
|
|
16763
16863
|
transport: MCPCatalogListResponseTransport$zodSchema,
|
|
@@ -20992,7 +21092,7 @@ const tool$subAgentTeamAgentRelationsUpdateSubAgentTeamAgentRelation = {
|
|
|
20992
21092
|
|
|
20993
21093
|
//#endregion
|
|
20994
21094
|
//#region src/models/subagenttoolrelationcreate.ts
|
|
20995
|
-
const SubAgentToolRelationCreateToolPolicies$zodSchema = object({ needsApproval: boolean
|
|
21095
|
+
const SubAgentToolRelationCreateToolPolicies$zodSchema = object({ needsApproval: boolean().optional() });
|
|
20996
21096
|
const SubAgentToolRelationCreate$zodSchema = object({
|
|
20997
21097
|
createdAt: string().optional(),
|
|
20998
21098
|
headers: record(string(), string()).nullable().optional(),
|
|
@@ -21778,7 +21878,7 @@ const tool$subAgentToolRelationsListSubagentToolRelations = {
|
|
|
21778
21878
|
|
|
21779
21879
|
//#endregion
|
|
21780
21880
|
//#region src/models/subagenttoolrelationupdate.ts
|
|
21781
|
-
const SubAgentToolRelationUpdateToolPolicies$zodSchema = object({ needsApproval: boolean
|
|
21881
|
+
const SubAgentToolRelationUpdateToolPolicies$zodSchema = object({ needsApproval: boolean().optional() });
|
|
21782
21882
|
const SubAgentToolRelationUpdate$zodSchema = object({
|
|
21783
21883
|
createdAt: string().optional(),
|
|
21784
21884
|
headers: record(string(), string()).nullable().optional(),
|
|
@@ -22282,7 +22382,7 @@ const ThirdPartyMCPServerResponseData$zodSchema = object({
|
|
|
22282
22382
|
description: string().optional(),
|
|
22283
22383
|
id: string(),
|
|
22284
22384
|
imageUrl: string().optional(),
|
|
22285
|
-
isOpen: boolean
|
|
22385
|
+
isOpen: boolean().optional(),
|
|
22286
22386
|
name: string(),
|
|
22287
22387
|
thirdPartyConnectAccountUrl: string().optional(),
|
|
22288
22388
|
transport: ThirdPartyMCPServerResponseTransport$zodSchema,
|