@lucern/mcp 0.3.0-alpha.15 → 0.3.0-alpha.16
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/cli.js +39 -53
- package/dist/cli.js.map +1 -1
- package/dist/gateway.js +11 -37
- package/dist/gateway.js.map +1 -1
- package/dist/hosted-route.js +39 -53
- package/dist/hosted-route.js.map +1 -1
- package/dist/index.js +39 -53
- package/dist/index.js.map +1 -1
- package/dist/runtime.js +11 -37
- package/dist/runtime.js.map +1 -1
- package/package.json +6 -6
package/dist/gateway.js
CHANGED
|
@@ -782,6 +782,7 @@ defineTable({
|
|
|
782
782
|
shape: z.object({
|
|
783
783
|
"tenantId": idOf("tenants"),
|
|
784
784
|
"workspaceId": idOf("workspaces").optional(),
|
|
785
|
+
"environment": z.enum(["dev", "staging", "prod"]).optional(),
|
|
785
786
|
"keyPrefix": z.enum(["luc", "stk"]),
|
|
786
787
|
"keyHash": z.string(),
|
|
787
788
|
"keyHint": z.string(),
|
|
@@ -6938,7 +6939,7 @@ function compactRecord2(input) {
|
|
|
6938
6939
|
Object.entries(input).filter(([, value]) => value !== void 0)
|
|
6939
6940
|
);
|
|
6940
6941
|
}
|
|
6941
|
-
|
|
6942
|
+
defineProjection({
|
|
6942
6943
|
contractName: "list_beliefs",
|
|
6943
6944
|
inputSchema: listBeliefsInputSchema,
|
|
6944
6945
|
project: (input) => compactRecord2({
|
|
@@ -12242,11 +12243,8 @@ var identityContracts = [
|
|
|
12242
12243
|
sdkNamespace: "identity",
|
|
12243
12244
|
sdkMethod: "whoami",
|
|
12244
12245
|
summary: "Describe the current gateway principal.",
|
|
12245
|
-
|
|
12246
|
-
|
|
12247
|
-
functionName: "whoami",
|
|
12248
|
-
kind: "query",
|
|
12249
|
-
inputProjection: withPrincipal
|
|
12246
|
+
gateway: {
|
|
12247
|
+
handler: "identity.whoami"
|
|
12250
12248
|
}
|
|
12251
12249
|
}),
|
|
12252
12250
|
surfaceContract({
|
|
@@ -12266,7 +12264,7 @@ var identityContracts = [
|
|
|
12266
12264
|
providerProjectId: z.string().min(1).optional()
|
|
12267
12265
|
}),
|
|
12268
12266
|
convex: {
|
|
12269
|
-
module: "
|
|
12267
|
+
module: "platform",
|
|
12270
12268
|
functionName: "resolveInteractivePrincipal",
|
|
12271
12269
|
kind: "query"
|
|
12272
12270
|
}
|
|
@@ -12350,15 +12348,6 @@ var beliefLookupInput = (input) => compactRecord4({
|
|
|
12350
12348
|
var beliefNodeInput = (input) => compactRecord4({
|
|
12351
12349
|
nodeId: input.nodeId ?? input.id ?? input.beliefId
|
|
12352
12350
|
});
|
|
12353
|
-
var beliefTopicInput = (input) => {
|
|
12354
|
-
const parsed = listBeliefsProjection.inputSchema.safeParse(input);
|
|
12355
|
-
if (!parsed.success) {
|
|
12356
|
-
throw new Error(
|
|
12357
|
-
`list_beliefs projection input rejected: ${parsed.error.message}`
|
|
12358
|
-
);
|
|
12359
|
-
}
|
|
12360
|
-
return compactRecord4(listBeliefsProjection.project(parsed.data));
|
|
12361
|
-
};
|
|
12362
12351
|
var createBeliefInput = (input, context) => {
|
|
12363
12352
|
return withUserId(
|
|
12364
12353
|
compactRecord4({
|
|
@@ -12447,11 +12436,8 @@ var beliefsContracts = [
|
|
|
12447
12436
|
sdkNamespace: "beliefs",
|
|
12448
12437
|
sdkMethod: "listBeliefs",
|
|
12449
12438
|
summary: "List beliefs for a topic.",
|
|
12450
|
-
|
|
12451
|
-
|
|
12452
|
-
functionName: "getByTopic",
|
|
12453
|
-
kind: "query",
|
|
12454
|
-
inputProjection: beliefTopicInput
|
|
12439
|
+
gateway: {
|
|
12440
|
+
handler: "beliefs.list"
|
|
12455
12441
|
},
|
|
12456
12442
|
args: listBeliefsInputSchema
|
|
12457
12443
|
}),
|
|
@@ -12636,12 +12622,6 @@ var evidenceIdInput = (input) => compactRecord4({
|
|
|
12636
12622
|
insightId: input.insightId,
|
|
12637
12623
|
nodeId: input.nodeId ?? input.id ?? input.evidenceId
|
|
12638
12624
|
});
|
|
12639
|
-
var evidenceTopicInput = (input) => compactRecord4({
|
|
12640
|
-
topicId: input.topicId,
|
|
12641
|
-
status: input.status,
|
|
12642
|
-
userId: input.userId,
|
|
12643
|
-
limit: input.limit
|
|
12644
|
-
});
|
|
12645
12625
|
var createEvidenceInput = (input, context) => {
|
|
12646
12626
|
const parsed = createEvidenceProjection.inputSchema.safeParse(input);
|
|
12647
12627
|
if (!parsed.success) {
|
|
@@ -12772,11 +12752,8 @@ var evidenceContracts = [
|
|
|
12772
12752
|
sdkNamespace: "evidence",
|
|
12773
12753
|
sdkMethod: "listEvidence",
|
|
12774
12754
|
summary: "List evidence for a topic.",
|
|
12775
|
-
|
|
12776
|
-
|
|
12777
|
-
functionName: "getByTopic",
|
|
12778
|
-
kind: "query",
|
|
12779
|
-
inputProjection: evidenceTopicInput
|
|
12755
|
+
gateway: {
|
|
12756
|
+
handler: "evidence.list"
|
|
12780
12757
|
}
|
|
12781
12758
|
}),
|
|
12782
12759
|
surfaceContract({
|
|
@@ -13011,11 +12988,8 @@ var questionsContracts = [
|
|
|
13011
12988
|
sdkNamespace: "questions",
|
|
13012
12989
|
sdkMethod: "listQuestions",
|
|
13013
12990
|
summary: "List questions for a topic.",
|
|
13014
|
-
|
|
13015
|
-
|
|
13016
|
-
functionName: "getByTopic",
|
|
13017
|
-
kind: "query",
|
|
13018
|
-
inputProjection: questionTopicInput
|
|
12991
|
+
gateway: {
|
|
12992
|
+
handler: "questions.list"
|
|
13019
12993
|
}
|
|
13020
12994
|
}),
|
|
13021
12995
|
surfaceContract({
|