@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/webhooks.js CHANGED
@@ -738,6 +738,7 @@ defineTable({
738
738
  shape: z.object({
739
739
  "tenantId": idOf("tenants"),
740
740
  "workspaceId": idOf("workspaces").optional(),
741
+ "environment": z.enum(["dev", "staging", "prod"]).optional(),
741
742
  "keyPrefix": z.enum(["luc", "stk"]),
742
743
  "keyHash": z.string(),
743
744
  "keyHint": z.string(),
@@ -5885,6 +5886,7 @@ var INFISICAL_TENANT_SOFTWARE_SYSTEMS = [
5885
5886
  vercelProjectName: "ai-chatbot-diao",
5886
5887
  vercelTeamId: "team_mZBKwvXSSu7qxrWdg2go29sK",
5887
5888
  vercelProjectId: "prj_PihFw8kohSSw14nZs9YQV3xVo517",
5889
+ vercelWriterTokenEnv: "STACK_VERCEL_TOKEN",
5888
5890
  repository: {
5889
5891
  owner: "stack-vc",
5890
5892
  name: "front-end"
@@ -5905,6 +5907,7 @@ var INFISICAL_TENANT_SOFTWARE_SYSTEMS = [
5905
5907
  vercelProjectName: "stackos",
5906
5908
  vercelTeamId: "team_mZBKwvXSSu7qxrWdg2go29sK",
5907
5909
  vercelProjectId: "prj_rXLAL0Z6v9p1fasKbomby6GI7kau",
5910
+ vercelWriterTokenEnv: "STACK_VERCEL_TOKEN",
5908
5911
  repository: {
5909
5912
  owner: "stack-vc",
5910
5913
  name: "stackos"
@@ -5925,6 +5928,7 @@ var INFISICAL_TENANT_SOFTWARE_SYSTEMS = [
5925
5928
  vercelProjectName: "stackos-engineering-graph",
5926
5929
  vercelTeamId: "team_mZBKwvXSSu7qxrWdg2go29sK",
5927
5930
  vercelProjectId: "prj_zAU0Zn9GkbHjHI63dxW4vLpmoqTJ",
5931
+ vercelWriterTokenEnv: "STACK_VERCEL_TOKEN",
5928
5932
  repository: {
5929
5933
  owner: "stack-vc",
5930
5934
  name: "stackos-engineering-graph"
@@ -5945,6 +5949,7 @@ var INFISICAL_TENANT_SOFTWARE_SYSTEMS = [
5945
5949
  vercelProjectName: "lucern-graph",
5946
5950
  vercelTeamId: "team_vTHxxs8GAoAFUe6RWMlYt7fY",
5947
5951
  vercelProjectId: "prj_KJ8EKV8vGM5xURpqmwTwmECEGPgQ",
5952
+ vercelWriterTokenEnv: "LUCERN_VERCEL_TOKEN",
5948
5953
  repository: {
5949
5954
  owner: "LucernAI",
5950
5955
  name: "lucern-graph"
@@ -6890,7 +6895,7 @@ function compactRecord2(input) {
6890
6895
  Object.entries(input).filter(([, value]) => value !== void 0)
6891
6896
  );
6892
6897
  }
6893
- var listBeliefsProjection = defineProjection({
6898
+ defineProjection({
6894
6899
  contractName: "list_beliefs",
6895
6900
  inputSchema: listBeliefsInputSchema,
6896
6901
  project: (input) => compactRecord2({
@@ -12194,11 +12199,8 @@ var identityContracts = [
12194
12199
  sdkNamespace: "identity",
12195
12200
  sdkMethod: "whoami",
12196
12201
  summary: "Describe the current gateway principal.",
12197
- convex: {
12198
- module: "identity",
12199
- functionName: "whoami",
12200
- kind: "query",
12201
- inputProjection: withPrincipal
12202
+ gateway: {
12203
+ handler: "identity.whoami"
12202
12204
  }
12203
12205
  }),
12204
12206
  surfaceContract({
@@ -12218,7 +12220,7 @@ var identityContracts = [
12218
12220
  providerProjectId: z.string().min(1).optional()
12219
12221
  }),
12220
12222
  convex: {
12221
- module: "identity",
12223
+ module: "platform",
12222
12224
  functionName: "resolveInteractivePrincipal",
12223
12225
  kind: "query"
12224
12226
  }
@@ -12302,15 +12304,6 @@ var beliefLookupInput = (input) => compactRecord4({
12302
12304
  var beliefNodeInput = (input) => compactRecord4({
12303
12305
  nodeId: input.nodeId ?? input.id ?? input.beliefId
12304
12306
  });
12305
- var beliefTopicInput = (input) => {
12306
- const parsed = listBeliefsProjection.inputSchema.safeParse(input);
12307
- if (!parsed.success) {
12308
- throw new Error(
12309
- `list_beliefs projection input rejected: ${parsed.error.message}`
12310
- );
12311
- }
12312
- return compactRecord4(listBeliefsProjection.project(parsed.data));
12313
- };
12314
12307
  var createBeliefInput = (input, context) => {
12315
12308
  return withUserId(
12316
12309
  compactRecord4({
@@ -12399,11 +12392,8 @@ var beliefsContracts = [
12399
12392
  sdkNamespace: "beliefs",
12400
12393
  sdkMethod: "listBeliefs",
12401
12394
  summary: "List beliefs for a topic.",
12402
- convex: {
12403
- module: "beliefs",
12404
- functionName: "getByTopic",
12405
- kind: "query",
12406
- inputProjection: beliefTopicInput
12395
+ gateway: {
12396
+ handler: "beliefs.list"
12407
12397
  },
12408
12398
  args: listBeliefsInputSchema
12409
12399
  }),
@@ -12588,12 +12578,6 @@ var evidenceIdInput = (input) => compactRecord4({
12588
12578
  insightId: input.insightId,
12589
12579
  nodeId: input.nodeId ?? input.id ?? input.evidenceId
12590
12580
  });
12591
- var evidenceTopicInput = (input) => compactRecord4({
12592
- topicId: input.topicId,
12593
- status: input.status,
12594
- userId: input.userId,
12595
- limit: input.limit
12596
- });
12597
12581
  var createEvidenceInput = (input, context) => {
12598
12582
  const parsed = createEvidenceProjection.inputSchema.safeParse(input);
12599
12583
  if (!parsed.success) {
@@ -12724,11 +12708,8 @@ var evidenceContracts = [
12724
12708
  sdkNamespace: "evidence",
12725
12709
  sdkMethod: "listEvidence",
12726
12710
  summary: "List evidence for a topic.",
12727
- convex: {
12728
- module: "evidence",
12729
- functionName: "getByTopic",
12730
- kind: "query",
12731
- inputProjection: evidenceTopicInput
12711
+ gateway: {
12712
+ handler: "evidence.list"
12732
12713
  }
12733
12714
  }),
12734
12715
  surfaceContract({
@@ -12963,11 +12944,8 @@ var questionsContracts = [
12963
12944
  sdkNamespace: "questions",
12964
12945
  sdkMethod: "listQuestions",
12965
12946
  summary: "List questions for a topic.",
12966
- convex: {
12967
- module: "questions",
12968
- functionName: "getByTopic",
12969
- kind: "query",
12970
- inputProjection: questionTopicInput
12947
+ gateway: {
12948
+ handler: "questions.list"
12971
12949
  }
12972
12950
  }),
12973
12951
  surfaceContract({
@@ -14470,6 +14448,19 @@ var createTaskArgs = z.object({
14470
14448
  tags: z.array(z.string()).optional().describe("Free-form tags."),
14471
14449
  metadata: z.record(z.unknown()).optional().describe("Structured task metadata for handoff context and routing hints.")
14472
14450
  });
14451
+ var updateTaskArgs = z.object({
14452
+ taskId: z.string().describe("Task to update."),
14453
+ title: z.string().optional().describe("Updated task title."),
14454
+ description: z.string().optional().describe("Updated task description."),
14455
+ priority: taskPrioritySchema.optional().describe("Updated priority."),
14456
+ status: taskStatusSchema2.optional().describe("Updated status."),
14457
+ linkedWorktreeId: z.string().optional().describe("Worktree this task belongs to."),
14458
+ linkedBeliefId: z.string().optional().describe("Belief this task supports."),
14459
+ linkedQuestionId: z.string().optional().describe("Question this task addresses."),
14460
+ assigneeId: z.string().optional().describe("Principal assigned to the task."),
14461
+ blockedReason: z.string().optional().describe("Reason the task is blocked or deferred."),
14462
+ metadata: z.record(z.unknown()).optional().describe("Structured task metadata for handoff context and routing hints.")
14463
+ });
14473
14464
  var createTaskInput = (input) => compactRecord4({
14474
14465
  title: input.title,
14475
14466
  topicId: input.topicId,
@@ -14556,7 +14547,8 @@ var tasksContracts = [
14556
14547
  kind: "mutation",
14557
14548
  inputProjection: taskInput
14558
14549
  },
14559
- gateway: { handler: "tasks.update" }
14550
+ gateway: { handler: "tasks.update" },
14551
+ args: updateTaskArgs
14560
14552
  }),
14561
14553
  surfaceContract({
14562
14554
  name: "complete_task",