@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/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
- var listBeliefsProjection = defineProjection({
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
- convex: {
12246
- module: "identity",
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: "identity",
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
- convex: {
12451
- module: "beliefs",
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
- convex: {
12776
- module: "evidence",
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
- convex: {
13015
- module: "questions",
13016
- functionName: "getByTopic",
13017
- kind: "query",
13018
- inputProjection: questionTopicInput
12991
+ gateway: {
12992
+ handler: "questions.list"
13019
12993
  }
13020
12994
  }),
13021
12995
  surfaceContract({