@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/outbox.js CHANGED
@@ -829,6 +829,7 @@ defineTable({
829
829
  shape: z.object({
830
830
  "tenantId": idOf("tenants"),
831
831
  "workspaceId": idOf("workspaces").optional(),
832
+ "environment": z.enum(["dev", "staging", "prod"]).optional(),
832
833
  "keyPrefix": z.enum(["luc", "stk"]),
833
834
  "keyHash": z.string(),
834
835
  "keyHint": z.string(),
@@ -5976,6 +5977,7 @@ var INFISICAL_TENANT_SOFTWARE_SYSTEMS = [
5976
5977
  vercelProjectName: "ai-chatbot-diao",
5977
5978
  vercelTeamId: "team_mZBKwvXSSu7qxrWdg2go29sK",
5978
5979
  vercelProjectId: "prj_PihFw8kohSSw14nZs9YQV3xVo517",
5980
+ vercelWriterTokenEnv: "STACK_VERCEL_TOKEN",
5979
5981
  repository: {
5980
5982
  owner: "stack-vc",
5981
5983
  name: "front-end"
@@ -5996,6 +5998,7 @@ var INFISICAL_TENANT_SOFTWARE_SYSTEMS = [
5996
5998
  vercelProjectName: "stackos",
5997
5999
  vercelTeamId: "team_mZBKwvXSSu7qxrWdg2go29sK",
5998
6000
  vercelProjectId: "prj_rXLAL0Z6v9p1fasKbomby6GI7kau",
6001
+ vercelWriterTokenEnv: "STACK_VERCEL_TOKEN",
5999
6002
  repository: {
6000
6003
  owner: "stack-vc",
6001
6004
  name: "stackos"
@@ -6016,6 +6019,7 @@ var INFISICAL_TENANT_SOFTWARE_SYSTEMS = [
6016
6019
  vercelProjectName: "stackos-engineering-graph",
6017
6020
  vercelTeamId: "team_mZBKwvXSSu7qxrWdg2go29sK",
6018
6021
  vercelProjectId: "prj_zAU0Zn9GkbHjHI63dxW4vLpmoqTJ",
6022
+ vercelWriterTokenEnv: "STACK_VERCEL_TOKEN",
6019
6023
  repository: {
6020
6024
  owner: "stack-vc",
6021
6025
  name: "stackos-engineering-graph"
@@ -6036,6 +6040,7 @@ var INFISICAL_TENANT_SOFTWARE_SYSTEMS = [
6036
6040
  vercelProjectName: "lucern-graph",
6037
6041
  vercelTeamId: "team_vTHxxs8GAoAFUe6RWMlYt7fY",
6038
6042
  vercelProjectId: "prj_KJ8EKV8vGM5xURpqmwTwmECEGPgQ",
6043
+ vercelWriterTokenEnv: "LUCERN_VERCEL_TOKEN",
6039
6044
  repository: {
6040
6045
  owner: "LucernAI",
6041
6046
  name: "lucern-graph"
@@ -6981,7 +6986,7 @@ function compactRecord2(input) {
6981
6986
  Object.entries(input).filter(([, value]) => value !== void 0)
6982
6987
  );
6983
6988
  }
6984
- var listBeliefsProjection = defineProjection({
6989
+ defineProjection({
6985
6990
  contractName: "list_beliefs",
6986
6991
  inputSchema: listBeliefsInputSchema,
6987
6992
  project: (input) => compactRecord2({
@@ -12285,11 +12290,8 @@ var identityContracts = [
12285
12290
  sdkNamespace: "identity",
12286
12291
  sdkMethod: "whoami",
12287
12292
  summary: "Describe the current gateway principal.",
12288
- convex: {
12289
- module: "identity",
12290
- functionName: "whoami",
12291
- kind: "query",
12292
- inputProjection: withPrincipal
12293
+ gateway: {
12294
+ handler: "identity.whoami"
12293
12295
  }
12294
12296
  }),
12295
12297
  surfaceContract({
@@ -12309,7 +12311,7 @@ var identityContracts = [
12309
12311
  providerProjectId: z.string().min(1).optional()
12310
12312
  }),
12311
12313
  convex: {
12312
- module: "identity",
12314
+ module: "platform",
12313
12315
  functionName: "resolveInteractivePrincipal",
12314
12316
  kind: "query"
12315
12317
  }
@@ -12393,15 +12395,6 @@ var beliefLookupInput = (input) => compactRecord4({
12393
12395
  var beliefNodeInput = (input) => compactRecord4({
12394
12396
  nodeId: input.nodeId ?? input.id ?? input.beliefId
12395
12397
  });
12396
- var beliefTopicInput = (input) => {
12397
- const parsed = listBeliefsProjection.inputSchema.safeParse(input);
12398
- if (!parsed.success) {
12399
- throw new Error(
12400
- `list_beliefs projection input rejected: ${parsed.error.message}`
12401
- );
12402
- }
12403
- return compactRecord4(listBeliefsProjection.project(parsed.data));
12404
- };
12405
12398
  var createBeliefInput = (input, context) => {
12406
12399
  return withUserId(
12407
12400
  compactRecord4({
@@ -12490,11 +12483,8 @@ var beliefsContracts = [
12490
12483
  sdkNamespace: "beliefs",
12491
12484
  sdkMethod: "listBeliefs",
12492
12485
  summary: "List beliefs for a topic.",
12493
- convex: {
12494
- module: "beliefs",
12495
- functionName: "getByTopic",
12496
- kind: "query",
12497
- inputProjection: beliefTopicInput
12486
+ gateway: {
12487
+ handler: "beliefs.list"
12498
12488
  },
12499
12489
  args: listBeliefsInputSchema
12500
12490
  }),
@@ -12679,12 +12669,6 @@ var evidenceIdInput = (input) => compactRecord4({
12679
12669
  insightId: input.insightId,
12680
12670
  nodeId: input.nodeId ?? input.id ?? input.evidenceId
12681
12671
  });
12682
- var evidenceTopicInput = (input) => compactRecord4({
12683
- topicId: input.topicId,
12684
- status: input.status,
12685
- userId: input.userId,
12686
- limit: input.limit
12687
- });
12688
12672
  var createEvidenceInput = (input, context) => {
12689
12673
  const parsed = createEvidenceProjection.inputSchema.safeParse(input);
12690
12674
  if (!parsed.success) {
@@ -12815,11 +12799,8 @@ var evidenceContracts = [
12815
12799
  sdkNamespace: "evidence",
12816
12800
  sdkMethod: "listEvidence",
12817
12801
  summary: "List evidence for a topic.",
12818
- convex: {
12819
- module: "evidence",
12820
- functionName: "getByTopic",
12821
- kind: "query",
12822
- inputProjection: evidenceTopicInput
12802
+ gateway: {
12803
+ handler: "evidence.list"
12823
12804
  }
12824
12805
  }),
12825
12806
  surfaceContract({
@@ -13054,11 +13035,8 @@ var questionsContracts = [
13054
13035
  sdkNamespace: "questions",
13055
13036
  sdkMethod: "listQuestions",
13056
13037
  summary: "List questions for a topic.",
13057
- convex: {
13058
- module: "questions",
13059
- functionName: "getByTopic",
13060
- kind: "query",
13061
- inputProjection: questionTopicInput
13038
+ gateway: {
13039
+ handler: "questions.list"
13062
13040
  }
13063
13041
  }),
13064
13042
  surfaceContract({
@@ -14561,6 +14539,19 @@ var createTaskArgs = z.object({
14561
14539
  tags: z.array(z.string()).optional().describe("Free-form tags."),
14562
14540
  metadata: z.record(z.unknown()).optional().describe("Structured task metadata for handoff context and routing hints.")
14563
14541
  });
14542
+ var updateTaskArgs = z.object({
14543
+ taskId: z.string().describe("Task to update."),
14544
+ title: z.string().optional().describe("Updated task title."),
14545
+ description: z.string().optional().describe("Updated task description."),
14546
+ priority: taskPrioritySchema.optional().describe("Updated priority."),
14547
+ status: taskStatusSchema2.optional().describe("Updated status."),
14548
+ linkedWorktreeId: z.string().optional().describe("Worktree this task belongs to."),
14549
+ linkedBeliefId: z.string().optional().describe("Belief this task supports."),
14550
+ linkedQuestionId: z.string().optional().describe("Question this task addresses."),
14551
+ assigneeId: z.string().optional().describe("Principal assigned to the task."),
14552
+ blockedReason: z.string().optional().describe("Reason the task is blocked or deferred."),
14553
+ metadata: z.record(z.unknown()).optional().describe("Structured task metadata for handoff context and routing hints.")
14554
+ });
14564
14555
  var createTaskInput = (input) => compactRecord4({
14565
14556
  title: input.title,
14566
14557
  topicId: input.topicId,
@@ -14647,7 +14638,8 @@ var tasksContracts = [
14647
14638
  kind: "mutation",
14648
14639
  inputProjection: taskInput
14649
14640
  },
14650
- gateway: { handler: "tasks.update" }
14641
+ gateway: { handler: "tasks.update" },
14642
+ args: updateTaskArgs
14651
14643
  }),
14652
14644
  surfaceContract({
14653
14645
  name: "complete_task",