@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/index.js CHANGED
@@ -893,6 +893,7 @@ defineTable({
893
893
  shape: z.object({
894
894
  "tenantId": idOf("tenants"),
895
895
  "workspaceId": idOf("workspaces").optional(),
896
+ "environment": z.enum(["dev", "staging", "prod"]).optional(),
896
897
  "keyPrefix": z.enum(["luc", "stk"]),
897
898
  "keyHash": z.string(),
898
899
  "keyHint": z.string(),
@@ -6040,6 +6041,7 @@ var INFISICAL_TENANT_SOFTWARE_SYSTEMS = [
6040
6041
  vercelProjectName: "ai-chatbot-diao",
6041
6042
  vercelTeamId: "team_mZBKwvXSSu7qxrWdg2go29sK",
6042
6043
  vercelProjectId: "prj_PihFw8kohSSw14nZs9YQV3xVo517",
6044
+ vercelWriterTokenEnv: "STACK_VERCEL_TOKEN",
6043
6045
  repository: {
6044
6046
  owner: "stack-vc",
6045
6047
  name: "front-end"
@@ -6060,6 +6062,7 @@ var INFISICAL_TENANT_SOFTWARE_SYSTEMS = [
6060
6062
  vercelProjectName: "stackos",
6061
6063
  vercelTeamId: "team_mZBKwvXSSu7qxrWdg2go29sK",
6062
6064
  vercelProjectId: "prj_rXLAL0Z6v9p1fasKbomby6GI7kau",
6065
+ vercelWriterTokenEnv: "STACK_VERCEL_TOKEN",
6063
6066
  repository: {
6064
6067
  owner: "stack-vc",
6065
6068
  name: "stackos"
@@ -6080,6 +6083,7 @@ var INFISICAL_TENANT_SOFTWARE_SYSTEMS = [
6080
6083
  vercelProjectName: "stackos-engineering-graph",
6081
6084
  vercelTeamId: "team_mZBKwvXSSu7qxrWdg2go29sK",
6082
6085
  vercelProjectId: "prj_zAU0Zn9GkbHjHI63dxW4vLpmoqTJ",
6086
+ vercelWriterTokenEnv: "STACK_VERCEL_TOKEN",
6083
6087
  repository: {
6084
6088
  owner: "stack-vc",
6085
6089
  name: "stackos-engineering-graph"
@@ -6100,6 +6104,7 @@ var INFISICAL_TENANT_SOFTWARE_SYSTEMS = [
6100
6104
  vercelProjectName: "lucern-graph",
6101
6105
  vercelTeamId: "team_vTHxxs8GAoAFUe6RWMlYt7fY",
6102
6106
  vercelProjectId: "prj_KJ8EKV8vGM5xURpqmwTwmECEGPgQ",
6107
+ vercelWriterTokenEnv: "LUCERN_VERCEL_TOKEN",
6103
6108
  repository: {
6104
6109
  owner: "LucernAI",
6105
6110
  name: "lucern-graph"
@@ -7045,7 +7050,7 @@ function compactRecord2(input) {
7045
7050
  Object.entries(input).filter(([, value]) => value !== void 0)
7046
7051
  );
7047
7052
  }
7048
- var listBeliefsProjection = defineProjection({
7053
+ defineProjection({
7049
7054
  contractName: "list_beliefs",
7050
7055
  inputSchema: listBeliefsInputSchema,
7051
7056
  project: (input) => compactRecord2({
@@ -12349,11 +12354,8 @@ var identityContracts = [
12349
12354
  sdkNamespace: "identity",
12350
12355
  sdkMethod: "whoami",
12351
12356
  summary: "Describe the current gateway principal.",
12352
- convex: {
12353
- module: "identity",
12354
- functionName: "whoami",
12355
- kind: "query",
12356
- inputProjection: withPrincipal
12357
+ gateway: {
12358
+ handler: "identity.whoami"
12357
12359
  }
12358
12360
  }),
12359
12361
  surfaceContract({
@@ -12373,7 +12375,7 @@ var identityContracts = [
12373
12375
  providerProjectId: z.string().min(1).optional()
12374
12376
  }),
12375
12377
  convex: {
12376
- module: "identity",
12378
+ module: "platform",
12377
12379
  functionName: "resolveInteractivePrincipal",
12378
12380
  kind: "query"
12379
12381
  }
@@ -12457,15 +12459,6 @@ var beliefLookupInput = (input) => compactRecord4({
12457
12459
  var beliefNodeInput = (input) => compactRecord4({
12458
12460
  nodeId: input.nodeId ?? input.id ?? input.beliefId
12459
12461
  });
12460
- var beliefTopicInput = (input) => {
12461
- const parsed = listBeliefsProjection.inputSchema.safeParse(input);
12462
- if (!parsed.success) {
12463
- throw new Error(
12464
- `list_beliefs projection input rejected: ${parsed.error.message}`
12465
- );
12466
- }
12467
- return compactRecord4(listBeliefsProjection.project(parsed.data));
12468
- };
12469
12462
  var createBeliefInput = (input, context) => {
12470
12463
  return withUserId(
12471
12464
  compactRecord4({
@@ -12554,11 +12547,8 @@ var beliefsContracts = [
12554
12547
  sdkNamespace: "beliefs",
12555
12548
  sdkMethod: "listBeliefs",
12556
12549
  summary: "List beliefs for a topic.",
12557
- convex: {
12558
- module: "beliefs",
12559
- functionName: "getByTopic",
12560
- kind: "query",
12561
- inputProjection: beliefTopicInput
12550
+ gateway: {
12551
+ handler: "beliefs.list"
12562
12552
  },
12563
12553
  args: listBeliefsInputSchema
12564
12554
  }),
@@ -12743,12 +12733,6 @@ var evidenceIdInput = (input) => compactRecord4({
12743
12733
  insightId: input.insightId,
12744
12734
  nodeId: input.nodeId ?? input.id ?? input.evidenceId
12745
12735
  });
12746
- var evidenceTopicInput = (input) => compactRecord4({
12747
- topicId: input.topicId,
12748
- status: input.status,
12749
- userId: input.userId,
12750
- limit: input.limit
12751
- });
12752
12736
  var createEvidenceInput = (input, context) => {
12753
12737
  const parsed = createEvidenceProjection.inputSchema.safeParse(input);
12754
12738
  if (!parsed.success) {
@@ -12879,11 +12863,8 @@ var evidenceContracts = [
12879
12863
  sdkNamespace: "evidence",
12880
12864
  sdkMethod: "listEvidence",
12881
12865
  summary: "List evidence for a topic.",
12882
- convex: {
12883
- module: "evidence",
12884
- functionName: "getByTopic",
12885
- kind: "query",
12886
- inputProjection: evidenceTopicInput
12866
+ gateway: {
12867
+ handler: "evidence.list"
12887
12868
  }
12888
12869
  }),
12889
12870
  surfaceContract({
@@ -13118,11 +13099,8 @@ var questionsContracts = [
13118
13099
  sdkNamespace: "questions",
13119
13100
  sdkMethod: "listQuestions",
13120
13101
  summary: "List questions for a topic.",
13121
- convex: {
13122
- module: "questions",
13123
- functionName: "getByTopic",
13124
- kind: "query",
13125
- inputProjection: questionTopicInput
13102
+ gateway: {
13103
+ handler: "questions.list"
13126
13104
  }
13127
13105
  }),
13128
13106
  surfaceContract({
@@ -14625,6 +14603,19 @@ var createTaskArgs = z.object({
14625
14603
  tags: z.array(z.string()).optional().describe("Free-form tags."),
14626
14604
  metadata: z.record(z.unknown()).optional().describe("Structured task metadata for handoff context and routing hints.")
14627
14605
  });
14606
+ var updateTaskArgs = z.object({
14607
+ taskId: z.string().describe("Task to update."),
14608
+ title: z.string().optional().describe("Updated task title."),
14609
+ description: z.string().optional().describe("Updated task description."),
14610
+ priority: taskPrioritySchema.optional().describe("Updated priority."),
14611
+ status: taskStatusSchema2.optional().describe("Updated status."),
14612
+ linkedWorktreeId: z.string().optional().describe("Worktree this task belongs to."),
14613
+ linkedBeliefId: z.string().optional().describe("Belief this task supports."),
14614
+ linkedQuestionId: z.string().optional().describe("Question this task addresses."),
14615
+ assigneeId: z.string().optional().describe("Principal assigned to the task."),
14616
+ blockedReason: z.string().optional().describe("Reason the task is blocked or deferred."),
14617
+ metadata: z.record(z.unknown()).optional().describe("Structured task metadata for handoff context and routing hints.")
14618
+ });
14628
14619
  var createTaskInput = (input) => compactRecord4({
14629
14620
  title: input.title,
14630
14621
  topicId: input.topicId,
@@ -14711,7 +14702,8 @@ var tasksContracts = [
14711
14702
  kind: "mutation",
14712
14703
  inputProjection: taskInput
14713
14704
  },
14714
- gateway: { handler: "tasks.update" }
14705
+ gateway: { handler: "tasks.update" },
14706
+ args: updateTaskArgs
14715
14707
  }),
14716
14708
  surfaceContract({
14717
14709
  name: "complete_task",