@lucern/contracts 0.3.0-alpha.7 → 0.3.0-alpha.9

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 (61) hide show
  1. package/dist/context-pack.contract.d.ts +5 -3
  2. package/dist/context-pack.contract.js.map +1 -1
  3. package/dist/edge-policy-manifest-Dw5IhT1L.d.ts +133 -0
  4. package/dist/function-registry/beliefs.js +4 -4
  5. package/dist/function-registry/beliefs.js.map +1 -1
  6. package/dist/function-registry/coding.js +4 -4
  7. package/dist/function-registry/coding.js.map +1 -1
  8. package/dist/function-registry/context.js +5 -5
  9. package/dist/function-registry/context.js.map +1 -1
  10. package/dist/function-registry/contracts.js +4 -4
  11. package/dist/function-registry/contracts.js.map +1 -1
  12. package/dist/function-registry/coordination.js +4 -4
  13. package/dist/function-registry/coordination.js.map +1 -1
  14. package/dist/function-registry/edges.js +53 -35
  15. package/dist/function-registry/edges.js.map +1 -1
  16. package/dist/function-registry/evidence.js +8 -8
  17. package/dist/function-registry/evidence.js.map +1 -1
  18. package/dist/function-registry/graph.js +4 -4
  19. package/dist/function-registry/graph.js.map +1 -1
  20. package/dist/function-registry/helpers.js +4 -4
  21. package/dist/function-registry/helpers.js.map +1 -1
  22. package/dist/function-registry/identity.js +4 -4
  23. package/dist/function-registry/identity.js.map +1 -1
  24. package/dist/function-registry/index.js +4 -4
  25. package/dist/function-registry/index.js.map +1 -1
  26. package/dist/function-registry/judgments.js +4 -4
  27. package/dist/function-registry/judgments.js.map +1 -1
  28. package/dist/function-registry/legacy.js +4 -4
  29. package/dist/function-registry/legacy.js.map +1 -1
  30. package/dist/function-registry/lenses.js +4 -4
  31. package/dist/function-registry/lenses.js.map +1 -1
  32. package/dist/function-registry/ontologies.js +4 -4
  33. package/dist/function-registry/ontologies.js.map +1 -1
  34. package/dist/function-registry/pipeline.js +4 -4
  35. package/dist/function-registry/pipeline.js.map +1 -1
  36. package/dist/function-registry/questions.js +4 -4
  37. package/dist/function-registry/questions.js.map +1 -1
  38. package/dist/function-registry/tasks.js +4 -4
  39. package/dist/function-registry/tasks.js.map +1 -1
  40. package/dist/function-registry/topics.js +4 -4
  41. package/dist/function-registry/topics.js.map +1 -1
  42. package/dist/function-registry/worktrees.js +4 -4
  43. package/dist/function-registry/worktrees.js.map +1 -1
  44. package/dist/index.d.ts +1 -1
  45. package/dist/index.js +45 -37
  46. package/dist/index.js.map +1 -1
  47. package/dist/manifests/edge-policy-manifest.d.ts +1 -1
  48. package/dist/manifests/edge-policy-manifest.data.d.ts +6 -20
  49. package/dist/manifests/edge-policy-manifest.data.js +18 -26
  50. package/dist/manifests/edge-policy-manifest.data.js.map +1 -1
  51. package/dist/manifests/edge-policy-manifest.js +31 -4
  52. package/dist/manifests/edge-policy-manifest.js.map +1 -1
  53. package/dist/sdk-tools.contract.js +4 -4
  54. package/dist/sdk-tools.contract.js.map +1 -1
  55. package/dist/tenant-bootstrap-seed.contract.d.ts +4 -4
  56. package/dist/tenant-bootstrap-seed.contract.js +2 -2
  57. package/dist/tenant-bootstrap-seed.contract.js.map +1 -1
  58. package/dist/tool-contracts.js +4 -4
  59. package/dist/tool-contracts.js.map +1 -1
  60. package/package.json +1 -1
  61. package/dist/edge-policy-manifest-Byv6cQPP.d.ts +0 -132
@@ -2086,15 +2086,15 @@ var IDENTITY_WHOAMI = {
2086
2086
  };
2087
2087
  var COMPILE_CONTEXT = {
2088
2088
  name: "compile_context",
2089
- description: "Compile a focused reasoning context for a topic. Like `git log --graph --decorate` for the reasoning substrate \u2014 returns the canonical Pillar 3 context pack through the public API shape.",
2089
+ description: "Compile a focused reasoning context. If topicId is omitted, Lucern resolves the best topic from the query. Like `git log --graph --decorate` for the reasoning substrate \u2014 returns the canonical Pillar 3 context pack through the public API shape.",
2090
2090
  parameters: {
2091
2091
  topicId: {
2092
2092
  type: "string",
2093
- description: "Topic scope ID to compile"
2093
+ description: "Optional topic scope ID. Omit to resolve the topic from query."
2094
2094
  },
2095
2095
  query: {
2096
2096
  type: "string",
2097
- description: "Optional focus query used to rank context items"
2097
+ description: "Focus query used to resolve the topic and rank context items. Required when topicId is omitted."
2098
2098
  },
2099
2099
  budget: {
2100
2100
  type: "number",
@@ -2118,7 +2118,7 @@ var COMPILE_CONTEXT = {
2118
2118
  description: "Include related ontological entities in the compiled result"
2119
2119
  }
2120
2120
  },
2121
- required: ["topicId"],
2121
+ required: [],
2122
2122
  response: {
2123
2123
  description: "Compiled context pack for the requested topic",
2124
2124
  fields: {
@@ -4731,12 +4731,12 @@ var linkEvidenceToBeliefEdgeInput = (input, context) => withCreatedBy(
4731
4731
  compactRecord({
4732
4732
  fromNodeId: input.insightId ?? input.evidenceNodeId ?? input.evidenceId,
4733
4733
  toNodeId: input.beliefNodeId ?? input.beliefId ?? input.targetId,
4734
- edgeType: "evidence_supports_belief",
4734
+ edgeType: "informs",
4735
4735
  globalId: input.globalId ?? `edge:${String(
4736
4736
  input.insightId ?? input.evidenceNodeId ?? input.evidenceId
4737
4737
  )}:${String(
4738
4738
  input.beliefNodeId ?? input.beliefId ?? input.targetId
4739
- )}:evidence_supports_belief`,
4739
+ )}:informs`,
4740
4740
  weight: typeof input.weight === "number" ? input.weight : input.type === "contradicting" ? -1 : 1,
4741
4741
  context: input.rationale ?? input.context,
4742
4742
  skipLayerValidation: true,
@@ -4749,12 +4749,12 @@ var linkEvidenceToQuestionEdgeInput = (input, context) => withCreatedBy(
4749
4749
  compactRecord({
4750
4750
  fromNodeId: input.insightId ?? input.evidenceNodeId ?? input.evidenceId,
4751
4751
  toNodeId: input.questionId ?? input.questionNodeId ?? input.targetId,
4752
- edgeType: "evidence_supports_question",
4752
+ edgeType: "responds_to",
4753
4753
  globalId: input.globalId ?? `edge:${String(
4754
4754
  input.insightId ?? input.evidenceNodeId ?? input.evidenceId
4755
4755
  )}:${String(
4756
4756
  input.questionId ?? input.questionNodeId ?? input.targetId
4757
- )}:evidence_supports_question`,
4757
+ )}:responds_to`,
4758
4758
  weight: input.impactScore ?? input.weight,
4759
4759
  context: input.rationale ?? input.context,
4760
4760
  skipLayerValidation: true,