@lucern/mcp 0.3.0-alpha.14 → 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(),
@@ -6134,6 +6135,7 @@ var INFISICAL_TENANT_SOFTWARE_SYSTEMS = [
6134
6135
  vercelProjectName: "ai-chatbot-diao",
6135
6136
  vercelTeamId: "team_mZBKwvXSSu7qxrWdg2go29sK",
6136
6137
  vercelProjectId: "prj_PihFw8kohSSw14nZs9YQV3xVo517",
6138
+ vercelWriterTokenEnv: "STACK_VERCEL_TOKEN",
6137
6139
  repository: {
6138
6140
  owner: "stack-vc",
6139
6141
  name: "front-end"
@@ -6154,6 +6156,7 @@ var INFISICAL_TENANT_SOFTWARE_SYSTEMS = [
6154
6156
  vercelProjectName: "stackos",
6155
6157
  vercelTeamId: "team_mZBKwvXSSu7qxrWdg2go29sK",
6156
6158
  vercelProjectId: "prj_rXLAL0Z6v9p1fasKbomby6GI7kau",
6159
+ vercelWriterTokenEnv: "STACK_VERCEL_TOKEN",
6157
6160
  repository: {
6158
6161
  owner: "stack-vc",
6159
6162
  name: "stackos"
@@ -6174,6 +6177,7 @@ var INFISICAL_TENANT_SOFTWARE_SYSTEMS = [
6174
6177
  vercelProjectName: "stackos-engineering-graph",
6175
6178
  vercelTeamId: "team_mZBKwvXSSu7qxrWdg2go29sK",
6176
6179
  vercelProjectId: "prj_zAU0Zn9GkbHjHI63dxW4vLpmoqTJ",
6180
+ vercelWriterTokenEnv: "STACK_VERCEL_TOKEN",
6177
6181
  repository: {
6178
6182
  owner: "stack-vc",
6179
6183
  name: "stackos-engineering-graph"
@@ -6194,6 +6198,7 @@ var INFISICAL_TENANT_SOFTWARE_SYSTEMS = [
6194
6198
  vercelProjectName: "lucern-graph",
6195
6199
  vercelTeamId: "team_vTHxxs8GAoAFUe6RWMlYt7fY",
6196
6200
  vercelProjectId: "prj_KJ8EKV8vGM5xURpqmwTwmECEGPgQ",
6201
+ vercelWriterTokenEnv: "LUCERN_VERCEL_TOKEN",
6197
6202
  repository: {
6198
6203
  owner: "LucernAI",
6199
6204
  name: "lucern-graph"
@@ -7139,7 +7144,7 @@ function compactRecord2(input) {
7139
7144
  Object.entries(input).filter(([, value]) => value !== void 0)
7140
7145
  );
7141
7146
  }
7142
- var listBeliefsProjection = defineProjection({
7147
+ defineProjection({
7143
7148
  contractName: "list_beliefs",
7144
7149
  inputSchema: listBeliefsInputSchema,
7145
7150
  project: (input) => compactRecord2({
@@ -12512,11 +12517,8 @@ var identityContracts = [
12512
12517
  sdkNamespace: "identity",
12513
12518
  sdkMethod: "whoami",
12514
12519
  summary: "Describe the current gateway principal.",
12515
- convex: {
12516
- module: "identity",
12517
- functionName: "whoami",
12518
- kind: "query",
12519
- inputProjection: withPrincipal
12520
+ gateway: {
12521
+ handler: "identity.whoami"
12520
12522
  }
12521
12523
  }),
12522
12524
  surfaceContract({
@@ -12536,7 +12538,7 @@ var identityContracts = [
12536
12538
  providerProjectId: z.string().min(1).optional()
12537
12539
  }),
12538
12540
  convex: {
12539
- module: "identity",
12541
+ module: "platform",
12540
12542
  functionName: "resolveInteractivePrincipal",
12541
12543
  kind: "query"
12542
12544
  }
@@ -12620,15 +12622,6 @@ var beliefLookupInput = (input) => compactRecord4({
12620
12622
  var beliefNodeInput = (input) => compactRecord4({
12621
12623
  nodeId: input.nodeId ?? input.id ?? input.beliefId
12622
12624
  });
12623
- var beliefTopicInput = (input) => {
12624
- const parsed = listBeliefsProjection.inputSchema.safeParse(input);
12625
- if (!parsed.success) {
12626
- throw new Error(
12627
- `list_beliefs projection input rejected: ${parsed.error.message}`
12628
- );
12629
- }
12630
- return compactRecord4(listBeliefsProjection.project(parsed.data));
12631
- };
12632
12625
  var createBeliefInput = (input, context) => {
12633
12626
  return withUserId(
12634
12627
  compactRecord4({
@@ -12717,11 +12710,8 @@ var beliefsContracts = [
12717
12710
  sdkNamespace: "beliefs",
12718
12711
  sdkMethod: "listBeliefs",
12719
12712
  summary: "List beliefs for a topic.",
12720
- convex: {
12721
- module: "beliefs",
12722
- functionName: "getByTopic",
12723
- kind: "query",
12724
- inputProjection: beliefTopicInput
12713
+ gateway: {
12714
+ handler: "beliefs.list"
12725
12715
  },
12726
12716
  args: listBeliefsInputSchema
12727
12717
  }),
@@ -12906,12 +12896,6 @@ var evidenceIdInput = (input) => compactRecord4({
12906
12896
  insightId: input.insightId,
12907
12897
  nodeId: input.nodeId ?? input.id ?? input.evidenceId
12908
12898
  });
12909
- var evidenceTopicInput = (input) => compactRecord4({
12910
- topicId: input.topicId,
12911
- status: input.status,
12912
- userId: input.userId,
12913
- limit: input.limit
12914
- });
12915
12899
  var createEvidenceInput = (input, context) => {
12916
12900
  const parsed = createEvidenceProjection.inputSchema.safeParse(input);
12917
12901
  if (!parsed.success) {
@@ -13042,11 +13026,8 @@ var evidenceContracts = [
13042
13026
  sdkNamespace: "evidence",
13043
13027
  sdkMethod: "listEvidence",
13044
13028
  summary: "List evidence for a topic.",
13045
- convex: {
13046
- module: "evidence",
13047
- functionName: "getByTopic",
13048
- kind: "query",
13049
- inputProjection: evidenceTopicInput
13029
+ gateway: {
13030
+ handler: "evidence.list"
13050
13031
  }
13051
13032
  }),
13052
13033
  surfaceContract({
@@ -13281,11 +13262,8 @@ var questionsContracts = [
13281
13262
  sdkNamespace: "questions",
13282
13263
  sdkMethod: "listQuestions",
13283
13264
  summary: "List questions for a topic.",
13284
- convex: {
13285
- module: "questions",
13286
- functionName: "getByTopic",
13287
- kind: "query",
13288
- inputProjection: questionTopicInput
13265
+ gateway: {
13266
+ handler: "questions.list"
13289
13267
  }
13290
13268
  }),
13291
13269
  surfaceContract({
@@ -14788,6 +14766,19 @@ var createTaskArgs = z.object({
14788
14766
  tags: z.array(z.string()).optional().describe("Free-form tags."),
14789
14767
  metadata: z.record(z.unknown()).optional().describe("Structured task metadata for handoff context and routing hints.")
14790
14768
  });
14769
+ var updateTaskArgs = z.object({
14770
+ taskId: z.string().describe("Task to update."),
14771
+ title: z.string().optional().describe("Updated task title."),
14772
+ description: z.string().optional().describe("Updated task description."),
14773
+ priority: taskPrioritySchema.optional().describe("Updated priority."),
14774
+ status: taskStatusSchema2.optional().describe("Updated status."),
14775
+ linkedWorktreeId: z.string().optional().describe("Worktree this task belongs to."),
14776
+ linkedBeliefId: z.string().optional().describe("Belief this task supports."),
14777
+ linkedQuestionId: z.string().optional().describe("Question this task addresses."),
14778
+ assigneeId: z.string().optional().describe("Principal assigned to the task."),
14779
+ blockedReason: z.string().optional().describe("Reason the task is blocked or deferred."),
14780
+ metadata: z.record(z.unknown()).optional().describe("Structured task metadata for handoff context and routing hints.")
14781
+ });
14791
14782
  var createTaskInput = (input) => compactRecord4({
14792
14783
  title: input.title,
14793
14784
  topicId: input.topicId,
@@ -14874,7 +14865,8 @@ var tasksContracts = [
14874
14865
  kind: "mutation",
14875
14866
  inputProjection: taskInput
14876
14867
  },
14877
- gateway: { handler: "tasks.update" }
14868
+ gateway: { handler: "tasks.update" },
14869
+ args: updateTaskArgs
14878
14870
  }),
14879
14871
  surfaceContract({
14880
14872
  name: "complete_task",