@lucern/contracts 0.3.0-alpha.15 → 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.
Files changed (43) hide show
  1. package/CHANGELOG.md +4 -1
  2. package/dist/function-registry/beliefs.d.ts +1 -1
  3. package/dist/function-registry/beliefs.js +3 -15
  4. package/dist/function-registry/beliefs.js.map +1 -1
  5. package/dist/function-registry/coding.d.ts +1 -1
  6. package/dist/function-registry/context.d.ts +1 -1
  7. package/dist/function-registry/contracts.d.ts +1 -1
  8. package/dist/function-registry/coordination.d.ts +1 -1
  9. package/dist/function-registry/edges.d.ts +1 -1
  10. package/dist/function-registry/evidence.d.ts +1 -1
  11. package/dist/function-registry/evidence.js +2 -11
  12. package/dist/function-registry/evidence.js.map +1 -1
  13. package/dist/function-registry/graph.d.ts +1 -1
  14. package/dist/function-registry/identity.d.ts +1 -1
  15. package/dist/function-registry/identity.js +3 -6
  16. package/dist/function-registry/identity.js.map +1 -1
  17. package/dist/function-registry/judgments.d.ts +1 -1
  18. package/dist/function-registry/legacy.d.ts +1 -1
  19. package/dist/function-registry/lenses.d.ts +1 -1
  20. package/dist/function-registry/nodes.d.ts +1 -1
  21. package/dist/function-registry/ontologies.d.ts +1 -1
  22. package/dist/function-registry/pipeline.d.ts +1 -1
  23. package/dist/function-registry/questions.d.ts +1 -1
  24. package/dist/function-registry/questions.js +2 -5
  25. package/dist/function-registry/questions.js.map +1 -1
  26. package/dist/function-registry/tasks.d.ts +1 -1
  27. package/dist/function-registry/topics.d.ts +1 -1
  28. package/dist/function-registry/types.d.ts +1 -1
  29. package/dist/function-registry/worktrees.d.ts +1 -1
  30. package/dist/generated/convexSchemas.js +1 -1
  31. package/dist/generated/convexSchemas.js.map +1 -1
  32. package/dist/index.js +1 -0
  33. package/dist/index.js.map +1 -1
  34. package/dist/proof-attestation.json +1 -1
  35. package/dist/schemas/index.js +1 -0
  36. package/dist/schemas/index.js.map +1 -1
  37. package/dist/schemas/manifest.d.ts +5 -0
  38. package/dist/schemas/manifest.js +1 -0
  39. package/dist/schemas/manifest.js.map +1 -1
  40. package/dist/schemas/tables/mc/tenant.d.ts +1 -0
  41. package/dist/schemas/tables/mc/tenant.js +1 -0
  42. package/dist/schemas/tables/mc/tenant.js.map +1 -1
  43. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -2,6 +2,9 @@
2
2
 
3
3
  All notable changes to `@lucern/contracts` are tracked in this repository.
4
4
 
5
+ ## [0.3.0-alpha.16] - 2026-05-14
6
+ - Adds the exact-row reasoning-kernel migration surface required for tenant identity/scope repairs.
7
+ - Keeps the coherent Lucern package line aligned for StackOS and reasoning-environment adoption.
8
+
5
9
  ## [0.3.0-alpha.7] - 2026-05-03
6
10
  - Rebuild the coherent Lucern package line after Campaign 1 SDK hardening fixes.
7
-
@@ -84,7 +84,7 @@ type FunctionConvexTarget = {
84
84
  outputProjection?: ContractOutputProjection;
85
85
  };
86
86
  type FunctionGatewayTarget = {
87
- handler: "tasks.create" | "tasks.list" | "tasks.update" | "tasks.complete";
87
+ handler: "identity.whoami" | "beliefs.list" | "evidence.list" | "questions.list" | "tasks.create" | "tasks.list" | "tasks.update" | "tasks.complete";
88
88
  };
89
89
 
90
90
  declare const beliefsContracts: readonly [{
@@ -4999,7 +4999,7 @@ function compactRecord2(input) {
4999
4999
  Object.entries(input).filter(([, value]) => value !== void 0)
5000
5000
  );
5001
5001
  }
5002
- var listBeliefsProjection = defineProjection({
5002
+ defineProjection({
5003
5003
  contractName: "list_beliefs",
5004
5004
  inputSchema: listBeliefsInputSchema,
5005
5005
  project: (input) => compactRecord2({
@@ -5202,15 +5202,6 @@ var beliefLookupInput = (input) => compactRecord({
5202
5202
  var beliefNodeInput = (input) => compactRecord({
5203
5203
  nodeId: input.nodeId ?? input.id ?? input.beliefId
5204
5204
  });
5205
- var beliefTopicInput = (input) => {
5206
- const parsed = listBeliefsProjection.inputSchema.safeParse(input);
5207
- if (!parsed.success) {
5208
- throw new Error(
5209
- `list_beliefs projection input rejected: ${parsed.error.message}`
5210
- );
5211
- }
5212
- return compactRecord(listBeliefsProjection.project(parsed.data));
5213
- };
5214
5205
  var createBeliefInput = (input, context) => {
5215
5206
  return withUserId(
5216
5207
  compactRecord({
@@ -5299,11 +5290,8 @@ var beliefsContracts = [
5299
5290
  sdkNamespace: "beliefs",
5300
5291
  sdkMethod: "listBeliefs",
5301
5292
  summary: "List beliefs for a topic.",
5302
- convex: {
5303
- module: "beliefs",
5304
- functionName: "getByTopic",
5305
- kind: "query",
5306
- inputProjection: beliefTopicInput
5293
+ gateway: {
5294
+ handler: "beliefs.list"
5307
5295
  },
5308
5296
  args: listBeliefsInputSchema
5309
5297
  }),