@lucern/events 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/types.js CHANGED
@@ -777,6 +777,7 @@ defineTable({
777
777
  shape: z.object({
778
778
  "tenantId": idOf("tenants"),
779
779
  "workspaceId": idOf("workspaces").optional(),
780
+ "environment": z.enum(["dev", "staging", "prod"]).optional(),
780
781
  "keyPrefix": z.enum(["luc", "stk"]),
781
782
  "keyHash": z.string(),
782
783
  "keyHint": z.string(),
@@ -5924,6 +5925,7 @@ var INFISICAL_TENANT_SOFTWARE_SYSTEMS = [
5924
5925
  vercelProjectName: "ai-chatbot-diao",
5925
5926
  vercelTeamId: "team_mZBKwvXSSu7qxrWdg2go29sK",
5926
5927
  vercelProjectId: "prj_PihFw8kohSSw14nZs9YQV3xVo517",
5928
+ vercelWriterTokenEnv: "STACK_VERCEL_TOKEN",
5927
5929
  repository: {
5928
5930
  owner: "stack-vc",
5929
5931
  name: "front-end"
@@ -5944,6 +5946,7 @@ var INFISICAL_TENANT_SOFTWARE_SYSTEMS = [
5944
5946
  vercelProjectName: "stackos",
5945
5947
  vercelTeamId: "team_mZBKwvXSSu7qxrWdg2go29sK",
5946
5948
  vercelProjectId: "prj_rXLAL0Z6v9p1fasKbomby6GI7kau",
5949
+ vercelWriterTokenEnv: "STACK_VERCEL_TOKEN",
5947
5950
  repository: {
5948
5951
  owner: "stack-vc",
5949
5952
  name: "stackos"
@@ -5964,6 +5967,7 @@ var INFISICAL_TENANT_SOFTWARE_SYSTEMS = [
5964
5967
  vercelProjectName: "stackos-engineering-graph",
5965
5968
  vercelTeamId: "team_mZBKwvXSSu7qxrWdg2go29sK",
5966
5969
  vercelProjectId: "prj_zAU0Zn9GkbHjHI63dxW4vLpmoqTJ",
5970
+ vercelWriterTokenEnv: "STACK_VERCEL_TOKEN",
5967
5971
  repository: {
5968
5972
  owner: "stack-vc",
5969
5973
  name: "stackos-engineering-graph"
@@ -5984,6 +5988,7 @@ var INFISICAL_TENANT_SOFTWARE_SYSTEMS = [
5984
5988
  vercelProjectName: "lucern-graph",
5985
5989
  vercelTeamId: "team_vTHxxs8GAoAFUe6RWMlYt7fY",
5986
5990
  vercelProjectId: "prj_KJ8EKV8vGM5xURpqmwTwmECEGPgQ",
5991
+ vercelWriterTokenEnv: "LUCERN_VERCEL_TOKEN",
5987
5992
  repository: {
5988
5993
  owner: "LucernAI",
5989
5994
  name: "lucern-graph"
@@ -6929,7 +6934,7 @@ function compactRecord2(input) {
6929
6934
  Object.entries(input).filter(([, value]) => value !== void 0)
6930
6935
  );
6931
6936
  }
6932
- var listBeliefsProjection = defineProjection({
6937
+ defineProjection({
6933
6938
  contractName: "list_beliefs",
6934
6939
  inputSchema: listBeliefsInputSchema,
6935
6940
  project: (input) => compactRecord2({
@@ -12233,11 +12238,8 @@ var identityContracts = [
12233
12238
  sdkNamespace: "identity",
12234
12239
  sdkMethod: "whoami",
12235
12240
  summary: "Describe the current gateway principal.",
12236
- convex: {
12237
- module: "identity",
12238
- functionName: "whoami",
12239
- kind: "query",
12240
- inputProjection: withPrincipal
12241
+ gateway: {
12242
+ handler: "identity.whoami"
12241
12243
  }
12242
12244
  }),
12243
12245
  surfaceContract({
@@ -12257,7 +12259,7 @@ var identityContracts = [
12257
12259
  providerProjectId: z.string().min(1).optional()
12258
12260
  }),
12259
12261
  convex: {
12260
- module: "identity",
12262
+ module: "platform",
12261
12263
  functionName: "resolveInteractivePrincipal",
12262
12264
  kind: "query"
12263
12265
  }
@@ -12341,15 +12343,6 @@ var beliefLookupInput = (input) => compactRecord4({
12341
12343
  var beliefNodeInput = (input) => compactRecord4({
12342
12344
  nodeId: input.nodeId ?? input.id ?? input.beliefId
12343
12345
  });
12344
- var beliefTopicInput = (input) => {
12345
- const parsed = listBeliefsProjection.inputSchema.safeParse(input);
12346
- if (!parsed.success) {
12347
- throw new Error(
12348
- `list_beliefs projection input rejected: ${parsed.error.message}`
12349
- );
12350
- }
12351
- return compactRecord4(listBeliefsProjection.project(parsed.data));
12352
- };
12353
12346
  var createBeliefInput = (input, context) => {
12354
12347
  return withUserId(
12355
12348
  compactRecord4({
@@ -12438,11 +12431,8 @@ var beliefsContracts = [
12438
12431
  sdkNamespace: "beliefs",
12439
12432
  sdkMethod: "listBeliefs",
12440
12433
  summary: "List beliefs for a topic.",
12441
- convex: {
12442
- module: "beliefs",
12443
- functionName: "getByTopic",
12444
- kind: "query",
12445
- inputProjection: beliefTopicInput
12434
+ gateway: {
12435
+ handler: "beliefs.list"
12446
12436
  },
12447
12437
  args: listBeliefsInputSchema
12448
12438
  }),
@@ -12627,12 +12617,6 @@ var evidenceIdInput = (input) => compactRecord4({
12627
12617
  insightId: input.insightId,
12628
12618
  nodeId: input.nodeId ?? input.id ?? input.evidenceId
12629
12619
  });
12630
- var evidenceTopicInput = (input) => compactRecord4({
12631
- topicId: input.topicId,
12632
- status: input.status,
12633
- userId: input.userId,
12634
- limit: input.limit
12635
- });
12636
12620
  var createEvidenceInput = (input, context) => {
12637
12621
  const parsed = createEvidenceProjection.inputSchema.safeParse(input);
12638
12622
  if (!parsed.success) {
@@ -12763,11 +12747,8 @@ var evidenceContracts = [
12763
12747
  sdkNamespace: "evidence",
12764
12748
  sdkMethod: "listEvidence",
12765
12749
  summary: "List evidence for a topic.",
12766
- convex: {
12767
- module: "evidence",
12768
- functionName: "getByTopic",
12769
- kind: "query",
12770
- inputProjection: evidenceTopicInput
12750
+ gateway: {
12751
+ handler: "evidence.list"
12771
12752
  }
12772
12753
  }),
12773
12754
  surfaceContract({
@@ -13002,11 +12983,8 @@ var questionsContracts = [
13002
12983
  sdkNamespace: "questions",
13003
12984
  sdkMethod: "listQuestions",
13004
12985
  summary: "List questions for a topic.",
13005
- convex: {
13006
- module: "questions",
13007
- functionName: "getByTopic",
13008
- kind: "query",
13009
- inputProjection: questionTopicInput
12986
+ gateway: {
12987
+ handler: "questions.list"
13010
12988
  }
13011
12989
  }),
13012
12990
  surfaceContract({
@@ -14509,6 +14487,19 @@ var createTaskArgs = z.object({
14509
14487
  tags: z.array(z.string()).optional().describe("Free-form tags."),
14510
14488
  metadata: z.record(z.unknown()).optional().describe("Structured task metadata for handoff context and routing hints.")
14511
14489
  });
14490
+ var updateTaskArgs = z.object({
14491
+ taskId: z.string().describe("Task to update."),
14492
+ title: z.string().optional().describe("Updated task title."),
14493
+ description: z.string().optional().describe("Updated task description."),
14494
+ priority: taskPrioritySchema.optional().describe("Updated priority."),
14495
+ status: taskStatusSchema2.optional().describe("Updated status."),
14496
+ linkedWorktreeId: z.string().optional().describe("Worktree this task belongs to."),
14497
+ linkedBeliefId: z.string().optional().describe("Belief this task supports."),
14498
+ linkedQuestionId: z.string().optional().describe("Question this task addresses."),
14499
+ assigneeId: z.string().optional().describe("Principal assigned to the task."),
14500
+ blockedReason: z.string().optional().describe("Reason the task is blocked or deferred."),
14501
+ metadata: z.record(z.unknown()).optional().describe("Structured task metadata for handoff context and routing hints.")
14502
+ });
14512
14503
  var createTaskInput = (input) => compactRecord4({
14513
14504
  title: input.title,
14514
14505
  topicId: input.topicId,
@@ -14595,7 +14586,8 @@ var tasksContracts = [
14595
14586
  kind: "mutation",
14596
14587
  inputProjection: taskInput
14597
14588
  },
14598
- gateway: { handler: "tasks.update" }
14589
+ gateway: { handler: "tasks.update" },
14590
+ args: updateTaskArgs
14599
14591
  }),
14600
14592
  surfaceContract({
14601
14593
  name: "complete_task",