@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/runtime.js CHANGED
@@ -987,6 +987,7 @@ defineTable({
987
987
  shape: z.object({
988
988
  "tenantId": idOf("tenants"),
989
989
  "workspaceId": idOf("workspaces").optional(),
990
+ "environment": z.enum(["dev", "staging", "prod"]).optional(),
990
991
  "keyPrefix": z.enum(["luc", "stk"]),
991
992
  "keyHash": z.string(),
992
993
  "keyHint": z.string(),
@@ -7143,7 +7144,7 @@ function compactRecord2(input) {
7143
7144
  Object.entries(input).filter(([, value]) => value !== void 0)
7144
7145
  );
7145
7146
  }
7146
- var listBeliefsProjection = defineProjection({
7147
+ defineProjection({
7147
7148
  contractName: "list_beliefs",
7148
7149
  inputSchema: listBeliefsInputSchema,
7149
7150
  project: (input) => compactRecord2({
@@ -12516,11 +12517,8 @@ var identityContracts = [
12516
12517
  sdkNamespace: "identity",
12517
12518
  sdkMethod: "whoami",
12518
12519
  summary: "Describe the current gateway principal.",
12519
- convex: {
12520
- module: "identity",
12521
- functionName: "whoami",
12522
- kind: "query",
12523
- inputProjection: withPrincipal
12520
+ gateway: {
12521
+ handler: "identity.whoami"
12524
12522
  }
12525
12523
  }),
12526
12524
  surfaceContract({
@@ -12540,7 +12538,7 @@ var identityContracts = [
12540
12538
  providerProjectId: z.string().min(1).optional()
12541
12539
  }),
12542
12540
  convex: {
12543
- module: "identity",
12541
+ module: "platform",
12544
12542
  functionName: "resolveInteractivePrincipal",
12545
12543
  kind: "query"
12546
12544
  }
@@ -12624,15 +12622,6 @@ var beliefLookupInput = (input) => compactRecord4({
12624
12622
  var beliefNodeInput = (input) => compactRecord4({
12625
12623
  nodeId: input.nodeId ?? input.id ?? input.beliefId
12626
12624
  });
12627
- var beliefTopicInput = (input) => {
12628
- const parsed = listBeliefsProjection.inputSchema.safeParse(input);
12629
- if (!parsed.success) {
12630
- throw new Error(
12631
- `list_beliefs projection input rejected: ${parsed.error.message}`
12632
- );
12633
- }
12634
- return compactRecord4(listBeliefsProjection.project(parsed.data));
12635
- };
12636
12625
  var createBeliefInput = (input, context) => {
12637
12626
  return withUserId(
12638
12627
  compactRecord4({
@@ -12721,11 +12710,8 @@ var beliefsContracts = [
12721
12710
  sdkNamespace: "beliefs",
12722
12711
  sdkMethod: "listBeliefs",
12723
12712
  summary: "List beliefs for a topic.",
12724
- convex: {
12725
- module: "beliefs",
12726
- functionName: "getByTopic",
12727
- kind: "query",
12728
- inputProjection: beliefTopicInput
12713
+ gateway: {
12714
+ handler: "beliefs.list"
12729
12715
  },
12730
12716
  args: listBeliefsInputSchema
12731
12717
  }),
@@ -12910,12 +12896,6 @@ var evidenceIdInput = (input) => compactRecord4({
12910
12896
  insightId: input.insightId,
12911
12897
  nodeId: input.nodeId ?? input.id ?? input.evidenceId
12912
12898
  });
12913
- var evidenceTopicInput = (input) => compactRecord4({
12914
- topicId: input.topicId,
12915
- status: input.status,
12916
- userId: input.userId,
12917
- limit: input.limit
12918
- });
12919
12899
  var createEvidenceInput = (input, context) => {
12920
12900
  const parsed = createEvidenceProjection.inputSchema.safeParse(input);
12921
12901
  if (!parsed.success) {
@@ -13046,11 +13026,8 @@ var evidenceContracts = [
13046
13026
  sdkNamespace: "evidence",
13047
13027
  sdkMethod: "listEvidence",
13048
13028
  summary: "List evidence for a topic.",
13049
- convex: {
13050
- module: "evidence",
13051
- functionName: "getByTopic",
13052
- kind: "query",
13053
- inputProjection: evidenceTopicInput
13029
+ gateway: {
13030
+ handler: "evidence.list"
13054
13031
  }
13055
13032
  }),
13056
13033
  surfaceContract({
@@ -13285,11 +13262,8 @@ var questionsContracts = [
13285
13262
  sdkNamespace: "questions",
13286
13263
  sdkMethod: "listQuestions",
13287
13264
  summary: "List questions for a topic.",
13288
- convex: {
13289
- module: "questions",
13290
- functionName: "getByTopic",
13291
- kind: "query",
13292
- inputProjection: questionTopicInput
13265
+ gateway: {
13266
+ handler: "questions.list"
13293
13267
  }
13294
13268
  }),
13295
13269
  surfaceContract({