@lucern/sdk 1.0.17 → 1.0.18

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/CHANGELOG.md CHANGED
@@ -5,6 +5,9 @@ All notable changes to `@lucern/sdk` will be documented in this file.
5
5
  ## [Unreleased]
6
6
  - No unreleased changes yet.
7
7
 
8
+ ## [1.0.18] - 2026-06-02
9
+ - Release notes pending.
10
+
8
11
  ## [1.0.17] - 2026-06-01
9
12
  - Release notes pending.
10
13
 
package/dist/client.d.ts CHANGED
@@ -22,6 +22,7 @@ export declare function createLucernClient(config?: LucernClientConfig): {
22
22
  checkPermission(input: import("./functionSurface").FunctionSurfaceInput): any;
23
23
  listAccessibleTopics(input?: Parameters<(...args: any[]) => any>[0]): any;
24
24
  filterByPermission(input: import("./functionSurface").FunctionSurfaceInput): any;
25
+ compileCapabilitySlice(input: Parameters<any>[0], idempotencyKey?: string): any;
25
26
  manageWritePolicy(input: import("./functionSurface").FunctionSurfaceInput, idempotencyKey?: string): any;
26
27
  raw: Record<string, (...args: any[]) => any> & {
27
28
  create: (...args: any[]) => any;
@@ -17,6 +17,7 @@ export declare function createClientPlatformNamespaces(ctx: ClientNamespaceConte
17
17
  checkPermission(input: FunctionSurfaceInput): any;
18
18
  listAccessibleTopics(input?: Parameters<(...args: any[]) => any>[0]): any;
19
19
  filterByPermission(input: FunctionSurfaceInput): any;
20
+ compileCapabilitySlice(input: Parameters<any>[0], idempotencyKey?: string): any;
20
21
  manageWritePolicy(input: FunctionSurfaceInput, idempotencyKey?: string): any;
21
22
  raw: Record<string, (...args: any[]) => any> & {
22
23
  create: (...args: any[]) => any;
@@ -51,6 +51,9 @@ export function createClientPlatformNamespaces(ctx) {
51
51
  principalId: typeof input.principalId === "string" ? input.principalId : undefined,
52
52
  });
53
53
  },
54
+ compileCapabilitySlice(input, idempotencyKey) {
55
+ return functionSurfaceClient.compileCapabilitySlice(input, idempotencyKey);
56
+ },
54
57
  // Backward compatibility shim: keep the policy namespace exposing the
55
58
  // historical manageWritePolicy entry point.
56
59
  manageWritePolicy(input, idempotencyKey) {
@@ -3,7 +3,7 @@ import type { JsonObject } from "../types";
3
3
  export type FunctionSurfaceClientConfig = GatewayClientConfig;
4
4
  export type FunctionSurfaceInput = JsonObject;
5
5
  export type FunctionSurfaceResult<T = unknown> = Promise<PlatformGatewaySuccess<T>>;
6
- export declare const FUNCTION_SURFACE_METHOD_PATHS: readonly ["answers.answerQuestion", "answers.createAnswer", "answers.getAnswer", "beliefs.appendSlScoring", "beliefs.archiveBelief", "beliefs.bisectConfidence", "beliefs.createBelief", "beliefs.forkBelief", "beliefs.getBelief", "beliefs.getConfidenceHistory", "beliefs.listBeliefs", "beliefs.refineBelief", "beliefs.searchBeliefs", "bootstrap.generateSessionHandoff", "coding.getChangeHistory", "coding.getCodeContext", "coding.getFailureLog", "coding.recordAttempt", "context.analyzeTopicDensity", "context.applyAutoBranching", "context.compileContext", "context.discover", "context.discoverEntityConnections", "context.getLatticeCoverage", "context.lucernOrient", "context.recordScopeLearning", "context.seedBeliefLattice", "context.triggerBeliefReview", "contracts.createEpistemicContract", "contracts.evaluateContract", "contracts.getContractStatus", "contradictions.flagContradiction", "controlPlane.identity.resolveInteractivePrincipal", "coordination.broadcastMessage", "coordination.claimFiles", "coordination.endSession", "coordination.getAgentInbox", "coordination.heartbeatSession", "coordination.listActiveSessions", "coordination.registerSession", "coordination.sendAgentMessage", "edges.batchCreateEdges", "edges.createEdge", "edges.queryLineage", "edges.removeEdge", "edges.removeEdgesBetween", "edges.updateEdge", "embeddings.getByNodeIds", "embeddings.listMissingForTopic", "embeddings.markEmbeddingBackfillQueued", "embeddings.vectorSearchByTopic", "evidence.addEvidence", "evidence.createEvidence", "evidence.getEvidence", "evidence.linkEvidence", "evidence.linkEvidenceToBelief", "evidence.linkEvidenceToQuestion", "evidence.listEvidence", "evidence.searchEvidence", "graph.detectConfirmationBias", "graph.findContradictions", "graph.getGraphGaps", "graph.getGraphNeighborhood", "graph.getGraphStructureAnalysis", "graph.getTopicCoverage", "graph.traceEntityImpact", "graph.traverseGraph", "graphAnalysis.listGraphIntelligenceQueries", "graphAnalysis.runGraphIntelligenceQuery", "hybrid.analyzeGraphImpact", "hybrid.detectGraphDrift", "hybrid.expandGraphNeighborhood", "hybrid.findRelatedNodes", "hybrid.hybridDiscover", "hybrid.resolveTopicSemantic", "identity.checkPermission", "identity.filterByPermission", "identity.whoami", "judgments.getAuditTrail", "judgments.recordJudgment", "lenses.applyLensToTopic", "lenses.createLens", "lenses.listLenses", "lenses.removeLensFromTopic", "nodes.archiveEpistemicNode", "nodes.batchCreateEpistemicNodes", "nodes.createEpistemicNode", "nodes.getEpistemicNode", "nodes.listEpistemicNodes", "nodes.supersedeEpistemicNode", "nodes.updateEpistemicNode", "nodes.verifyEpistemicNode", "observations.getObservationContext", "observations.ingestObservation", "ontologies.applyOntology", "ontologies.archiveOntology", "ontologies.createOntology", "ontologies.createOntologyVersion", "ontologies.deprecateOntologyVersion", "ontologies.getOntology", "ontologies.listOntologies", "ontologies.matchEntityType", "ontologies.publishOntologyVersion", "ontologies.resolveEffectiveOntology", "ontologies.updateOntology", "policy.manageWritePolicy", "questions.archiveQuestion", "questions.createQuestion", "questions.findMissingQuestions", "questions.getFalsificationQuestions", "questions.getHighPriorityQuestions", "questions.getQuestion", "questions.listQuestions", "questions.refineQuestion", "questions.updateQuestionStatus", "tasks.completeTask", "tasks.createTask", "tasks.listTasks", "tasks.updateTask", "topics.createTopic", "topics.getTopic", "topics.getTopicGraphSpine", "topics.getTopicTree", "topics.listTopics", "topics.materializeTopicGraph", "topics.updateTopic", "worktrees.activateWorktree", "worktrees.addWorktree", "worktrees.beginBuildSession", "worktrees.getWorktree", "worktrees.listAllWorktrees", "worktrees.listCampaigns", "worktrees.listWorktrees", "worktrees.merge", "worktrees.openPullRequest", "worktrees.pipelineSnapshot", "worktrees.push", "worktrees.updateWorktreeMetadata", "worktrees.updateWorktreeTargets"];
6
+ export declare const FUNCTION_SURFACE_METHOD_PATHS: readonly ["answers.answerQuestion", "answers.createAnswer", "answers.getAnswer", "beliefs.appendSlScoring", "beliefs.archiveBelief", "beliefs.bisectConfidence", "beliefs.createBelief", "beliefs.forkBelief", "beliefs.getBelief", "beliefs.getConfidenceHistory", "beliefs.listBeliefs", "beliefs.refineBelief", "beliefs.searchBeliefs", "bootstrap.generateSessionHandoff", "coding.getChangeHistory", "coding.getCodeContext", "coding.getFailureLog", "coding.recordAttempt", "context.analyzeTopicDensity", "context.applyAutoBranching", "context.compileContext", "context.discover", "context.discoverEntityConnections", "context.getLatticeCoverage", "context.lucernOrient", "context.recordScopeLearning", "context.seedBeliefLattice", "context.triggerBeliefReview", "contracts.createEpistemicContract", "contracts.evaluateContract", "contracts.getContractStatus", "contradictions.flagContradiction", "controlPlane.identity.resolveInteractivePrincipal", "coordination.broadcastMessage", "coordination.claimFiles", "coordination.endSession", "coordination.getAgentInbox", "coordination.heartbeatSession", "coordination.listActiveSessions", "coordination.registerSession", "coordination.sendAgentMessage", "edges.batchCreateEdges", "edges.createEdge", "edges.queryAnchorHistory", "edges.queryLineage", "edges.removeEdge", "edges.removeEdgesBetween", "edges.updateEdge", "embeddings.getByNodeIds", "embeddings.listMissingForTopic", "embeddings.markEmbeddingBackfillQueued", "embeddings.vectorSearchByTopic", "evidence.addEvidence", "evidence.archiveEvidence", "evidence.createEvidence", "evidence.getEvidence", "evidence.linkEvidence", "evidence.linkEvidenceToBelief", "evidence.linkEvidenceToQuestion", "evidence.listEvidence", "evidence.searchEvidence", "graph.detectConfirmationBias", "graph.findContradictions", "graph.getGraphGaps", "graph.getGraphNeighborhood", "graph.getGraphStructureAnalysis", "graph.getTopicCoverage", "graph.traceEntityImpact", "graph.traverseGraph", "graphAnalysis.listGraphIntelligenceQueries", "graphAnalysis.runGraphIntelligenceQuery", "hybrid.analyzeGraphImpact", "hybrid.detectGraphDrift", "hybrid.expandGraphNeighborhood", "hybrid.findRelatedNodes", "hybrid.hybridDiscover", "hybrid.resolveTopicSemantic", "identity.checkPermission", "identity.filterByPermission", "identity.whoami", "judgments.getAuditTrail", "judgments.recordJudgment", "lenses.applyLensToTopic", "lenses.createLens", "lenses.listLenses", "lenses.removeLensFromTopic", "nodes.archiveEpistemicNode", "nodes.batchCreateEpistemicNodes", "nodes.createEpistemicNode", "nodes.getEpistemicNode", "nodes.listEpistemicNodes", "nodes.supersedeEpistemicNode", "nodes.updateEpistemicNode", "nodes.verifyEpistemicNode", "observations.getObservationContext", "observations.ingestObservation", "ontologies.applyOntology", "ontologies.archiveOntology", "ontologies.createOntology", "ontologies.createOntologyVersion", "ontologies.deprecateOntologyVersion", "ontologies.getOntology", "ontologies.listOntologies", "ontologies.matchEntityType", "ontologies.publishOntologyVersion", "ontologies.resolveEffectiveOntology", "ontologies.updateOntology", "policy.compileCapabilitySlice", "policy.manageWritePolicy", "questions.archiveQuestion", "questions.createQuestion", "questions.findMissingQuestions", "questions.getFalsificationQuestions", "questions.getHighPriorityQuestions", "questions.getQuestion", "questions.listQuestions", "questions.refineQuestion", "questions.updateQuestionStatus", "tasks.completeTask", "tasks.createTask", "tasks.listTasks", "tasks.updateTask", "topics.createTopic", "topics.getTopic", "topics.getTopicGraphSpine", "topics.getTopicTree", "topics.listTopics", "topics.materializeTopicGraph", "topics.updateTopic", "worktrees.activateWorktree", "worktrees.addWorktree", "worktrees.beginBuildSession", "worktrees.getWorktree", "worktrees.listAllWorktrees", "worktrees.listCampaigns", "worktrees.listWorktrees", "worktrees.listWorktreesByBelief", "worktrees.merge", "worktrees.openPullRequest", "worktrees.pipelineSnapshot", "worktrees.push", "worktrees.updateWorktreeMetadata", "worktrees.updateWorktreeTargets"];
7
7
  export declare function createFunctionSurfaceClient(config?: FunctionSurfaceClientConfig): {
8
8
  sessionId: string;
9
9
  activateWorktree(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
@@ -18,6 +18,7 @@ export declare function createFunctionSurfaceClient(config?: FunctionSurfaceClie
18
18
  applyOntology(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
19
19
  archiveBelief(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
20
20
  archiveEpistemicNode(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
21
+ archiveEvidence(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
21
22
  archiveOntology(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
22
23
  archiveQuestion(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
23
24
  batchCreateEdges(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
@@ -27,6 +28,7 @@ export declare function createFunctionSurfaceClient(config?: FunctionSurfaceClie
27
28
  broadcastMessage(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
28
29
  checkPermission(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
29
30
  claimFiles(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
31
+ compileCapabilitySlice(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
30
32
  compileContext(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
31
33
  completeTask(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
32
34
  createAnswer(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
@@ -103,6 +105,7 @@ export declare function createFunctionSurfaceClient(config?: FunctionSurfaceClie
103
105
  listTasks(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
104
106
  listTopics(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
105
107
  listWorktrees(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
108
+ listWorktreesByBelief(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
106
109
  lucernOrient(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
107
110
  manageWritePolicy(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
108
111
  matchEntityType(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
@@ -112,6 +115,7 @@ export declare function createFunctionSurfaceClient(config?: FunctionSurfaceClie
112
115
  pipelineSnapshot(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
113
116
  publishOntologyVersion(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
114
117
  push(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
118
+ queryAnchorHistory(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
115
119
  queryLineage(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
116
120
  markEmbeddingBackfillQueued(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
117
121
  recordAttempt(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
@@ -44,6 +44,7 @@ export const FUNCTION_SURFACE_METHOD_PATHS = [
44
44
  "coordination.sendAgentMessage",
45
45
  "edges.batchCreateEdges",
46
46
  "edges.createEdge",
47
+ "edges.queryAnchorHistory",
47
48
  "edges.queryLineage",
48
49
  "edges.removeEdge",
49
50
  "edges.removeEdgesBetween",
@@ -53,6 +54,7 @@ export const FUNCTION_SURFACE_METHOD_PATHS = [
53
54
  "embeddings.markEmbeddingBackfillQueued",
54
55
  "embeddings.vectorSearchByTopic",
55
56
  "evidence.addEvidence",
57
+ "evidence.archiveEvidence",
56
58
  "evidence.createEvidence",
57
59
  "evidence.getEvidence",
58
60
  "evidence.linkEvidence",
@@ -106,6 +108,7 @@ export const FUNCTION_SURFACE_METHOD_PATHS = [
106
108
  "ontologies.publishOntologyVersion",
107
109
  "ontologies.resolveEffectiveOntology",
108
110
  "ontologies.updateOntology",
111
+ "policy.compileCapabilitySlice",
109
112
  "policy.manageWritePolicy",
110
113
  "questions.archiveQuestion",
111
114
  "questions.createQuestion",
@@ -134,6 +137,7 @@ export const FUNCTION_SURFACE_METHOD_PATHS = [
134
137
  "worktrees.listAllWorktrees",
135
138
  "worktrees.listCampaigns",
136
139
  "worktrees.listWorktrees",
140
+ "worktrees.listWorktreesByBelief",
137
141
  "worktrees.merge",
138
142
  "worktrees.openPullRequest",
139
143
  "worktrees.pipelineSnapshot",
@@ -154,6 +158,7 @@ const CONTRACTS = {
154
158
  "apply_ontology": { method: "POST", path: "/ontologies/apply", kind: "mutation", idempotent: true, surfaceIntent: "mcp_workflow" },
155
159
  "archive_belief": { method: "DELETE", path: "/beliefs", kind: "mutation", idempotent: true, surfaceIntent: "mcp_core" },
156
160
  "archive_epistemic_node": { method: "POST", path: "/nodes/archive", kind: "mutation", idempotent: true, surfaceIntent: "mcp_core" },
161
+ "archive_evidence": { method: "DELETE", path: "/evidence", kind: "mutation", idempotent: true, surfaceIntent: "mcp_core" },
157
162
  "archive_ontology": { method: "DELETE", path: "/ontologies", kind: "mutation", idempotent: true, surfaceIntent: "mcp_governance" },
158
163
  "archive_question": { method: "DELETE", path: "/questions", kind: "mutation", idempotent: true, surfaceIntent: "mcp_core" },
159
164
  "batch_create_edges": { method: "POST", path: "/edges/batch", kind: "mutation", idempotent: true, surfaceIntent: "mcp_analysis" },
@@ -163,6 +168,7 @@ const CONTRACTS = {
163
168
  "broadcast_message": { method: "POST", path: "/coordination/messages/broadcast", kind: "mutation", idempotent: true, surfaceIntent: "system" },
164
169
  "check_permission": { method: "POST", path: "/identity/check-permission", kind: "query", idempotent: false, surfaceIntent: "mcp_core" },
165
170
  "claim_files": { method: "POST", path: "/coordination/file-claims", kind: "mutation", idempotent: true, surfaceIntent: "system" },
171
+ "compile_capability_slice": { method: "POST", path: "/policy/capability-slice", kind: "query", idempotent: false, surfaceIntent: "mcp_core" },
166
172
  "compile_context": { method: "POST", path: "/context/compile", kind: "query", idempotent: false, surfaceIntent: "mcp_core" },
167
173
  "complete_task": { method: "POST", path: "/tasks/complete", kind: "mutation", idempotent: true, surfaceIntent: "mcp_workflow" },
168
174
  "create_answer": { method: "POST", path: "/answers", kind: "mutation", idempotent: true, surfaceIntent: "mcp_core" },
@@ -204,7 +210,7 @@ const CONTRACTS = {
204
210
  "get_epistemic_node": { method: "GET", path: "/nodes/get", kind: "query", idempotent: false, surfaceIntent: "mcp_core" },
205
211
  "get_evidence": { method: "GET", path: "/evidence/get", kind: "query", idempotent: false, surfaceIntent: "mcp_core" },
206
212
  "get_failure_log": { method: "POST", path: "/coding/failure-log", kind: "query", idempotent: false, surfaceIntent: "system" },
207
- "get_falsification_questions": { method: "POST", path: "/questions/falsification", kind: "query", idempotent: false, surfaceIntent: "mcp_core" },
213
+ "get_falsification_questions": { method: "POST", path: "/questions/falsification", kind: "action", idempotent: true, surfaceIntent: "mcp_core" },
208
214
  "get_graph_gaps": { method: "POST", path: "/graph/gaps", kind: "query", idempotent: false, surfaceIntent: "mcp_analysis" },
209
215
  "get_graph_neighborhood": { method: "POST", path: "/graph/neighborhood", kind: "query", idempotent: false, surfaceIntent: "mcp_analysis" },
210
216
  "get_graph_structure_analysis": { method: "POST", path: "/graph/structure-analysis", kind: "query", idempotent: false, surfaceIntent: "mcp_analysis" },
@@ -239,6 +245,7 @@ const CONTRACTS = {
239
245
  "list_tasks": { method: "GET", path: "/tasks", kind: "query", idempotent: false, surfaceIntent: "mcp_workflow" },
240
246
  "list_topics": { method: "GET", path: "/topics", kind: "query", idempotent: false, surfaceIntent: "mcp_core" },
241
247
  "list_worktrees": { method: "GET", path: "/worktrees", kind: "query", idempotent: false, surfaceIntent: "mcp_workflow" },
248
+ "list_worktrees_by_belief": { method: "GET", path: "/worktrees/by-belief", kind: "query", idempotent: false, surfaceIntent: "mcp_workflow" },
242
249
  "lucern_orient": { method: "POST", path: "/context/orient", kind: "query", idempotent: false, surfaceIntent: "mcp_core" },
243
250
  "manage_write_policy": { method: "POST", path: "/policy/write-policy/manage", kind: "mutation", idempotent: true, surfaceIntent: "mcp_governance" },
244
251
  "match_entity_type": { method: "POST", path: "/ontologies/match-entity-type", kind: "query", idempotent: false, surfaceIntent: "mcp_workflow" },
@@ -248,6 +255,7 @@ const CONTRACTS = {
248
255
  "pipeline_snapshot": { method: "POST", path: "/worktrees/pipeline-snapshot", kind: "query", idempotent: false, surfaceIntent: "system" },
249
256
  "publish_ontology_version": { method: "POST", path: "/ontologies/versions/publish", kind: "mutation", idempotent: true, surfaceIntent: "mcp_governance" },
250
257
  "push": { method: "POST", path: "/worktrees/push", kind: "mutation", idempotent: true, surfaceIntent: "system" },
258
+ "query_anchor_history": { method: "POST", path: "/edges/anchor-history", kind: "query", idempotent: false, surfaceIntent: "mcp_analysis" },
251
259
  "query_lineage": { method: "POST", path: "/edges/lineage", kind: "query", idempotent: false, surfaceIntent: "mcp_analysis" },
252
260
  "queue_embedding_backfill": { method: "POST", path: "/embeddings/backfill-queued", kind: "mutation", idempotent: true, surfaceIntent: "mcp_analysis" },
253
261
  "record_attempt": { method: "POST", path: "/coding/attempts", kind: "mutation", idempotent: true, surfaceIntent: "system" },
@@ -363,6 +371,9 @@ export function createFunctionSurfaceClient(config = {}) {
363
371
  archiveEpistemicNode(input = {}, idempotencyKey) {
364
372
  return execute("archive_epistemic_node", input, idempotencyKey);
365
373
  },
374
+ archiveEvidence(input = {}, idempotencyKey) {
375
+ return execute("archive_evidence", input, idempotencyKey);
376
+ },
366
377
  archiveOntology(input = {}, idempotencyKey) {
367
378
  return execute("archive_ontology", input, idempotencyKey);
368
379
  },
@@ -390,6 +401,9 @@ export function createFunctionSurfaceClient(config = {}) {
390
401
  claimFiles(input = {}, idempotencyKey) {
391
402
  return execute("claim_files", input, idempotencyKey);
392
403
  },
404
+ compileCapabilitySlice(input = {}, idempotencyKey) {
405
+ return execute("compile_capability_slice", input, idempotencyKey);
406
+ },
393
407
  compileContext(input = {}, idempotencyKey) {
394
408
  return execute("compile_context", input, idempotencyKey);
395
409
  },
@@ -618,6 +632,9 @@ export function createFunctionSurfaceClient(config = {}) {
618
632
  listWorktrees(input = {}, idempotencyKey) {
619
633
  return execute("list_worktrees", input, idempotencyKey);
620
634
  },
635
+ listWorktreesByBelief(input = {}, idempotencyKey) {
636
+ return execute("list_worktrees_by_belief", input, idempotencyKey);
637
+ },
621
638
  lucernOrient(input = {}, idempotencyKey) {
622
639
  return execute("lucern_orient", input, idempotencyKey);
623
640
  },
@@ -645,6 +662,9 @@ export function createFunctionSurfaceClient(config = {}) {
645
662
  push(input = {}, idempotencyKey) {
646
663
  return execute("push", input, idempotencyKey);
647
664
  },
665
+ queryAnchorHistory(input = {}, idempotencyKey) {
666
+ return execute("query_anchor_history", input, idempotencyKey);
667
+ },
648
668
  queryLineage(input = {}, idempotencyKey) {
649
669
  return execute("query_lineage", input, idempotencyKey);
650
670
  },
@@ -82,14 +82,38 @@ export type TenantPolicyPermission = {
82
82
  resource: string;
83
83
  actions: string[];
84
84
  };
85
+ export type TenantPolicyKind = "role" | "object_classification";
86
+ export type TenantPolicyExternalAccess = "allowed" | "summaries" | "omitted";
87
+ export type TenantPolicyClassificationFields = {
88
+ policyKind?: TenantPolicyKind;
89
+ profileKey?: string;
90
+ objectTypes?: string[];
91
+ accessTier?: string;
92
+ exportClass?: string;
93
+ classificationKey?: string;
94
+ classificationLabels?: string[];
95
+ policyTags?: string[];
96
+ externalAccess?: TenantPolicyExternalAccess;
97
+ requiredGroupKey?: string;
98
+ };
85
99
  export type TenantPolicyRecord = {
86
100
  id?: string;
87
101
  tenantId: string;
88
102
  workspaceId?: string;
103
+ policyKind?: TenantPolicyKind;
89
104
  roleName: string;
90
105
  description?: string;
91
106
  permissions: TenantPolicyPermission[];
92
107
  groupBindings: string[];
108
+ profileKey?: string;
109
+ objectTypes?: string[];
110
+ accessTier?: string;
111
+ exportClass?: string;
112
+ classificationKey?: string;
113
+ classificationLabels?: string[];
114
+ policyTags?: string[];
115
+ externalAccess?: TenantPolicyExternalAccess;
116
+ requiredGroupKey?: string;
93
117
  createdAt?: number;
94
118
  updatedAt?: number;
95
119
  createdBy?: string;
@@ -210,7 +234,7 @@ export declare function createPolicyClient(config?: PolicyClientConfig): {
210
234
  /**
211
235
  * Create a tenant role policy.
212
236
  */
213
- createRolePolicy(input: GatewayScope & {
237
+ createRolePolicy(input: GatewayScope & TenantPolicyClassificationFields & {
214
238
  roleName: string;
215
239
  description?: string;
216
240
  permissions: TenantPolicyPermission[];
@@ -227,7 +251,7 @@ export declare function createPolicyClient(config?: PolicyClientConfig): {
227
251
  /**
228
252
  * Update a tenant role policy by identifier.
229
253
  */
230
- updateRolePolicy(id: string, input: GatewayScope & {
254
+ updateRolePolicy(id: string, input: GatewayScope & TenantPolicyClassificationFields & {
231
255
  roleName: string;
232
256
  description?: string;
233
257
  permissions: TenantPolicyPermission[];
@@ -41,5 +41,5 @@
41
41
  "convex-validators",
42
42
  "proof-attestation"
43
43
  ],
44
- "signedAt": 1780348749569
44
+ "signedAt": 1780432640939
45
45
  }
package/dist/types.d.ts CHANGED
@@ -59,6 +59,8 @@ export type PlatformBeliefRecord = {
59
59
  canonicalText?: string;
60
60
  formulation?: string;
61
61
  status?: string;
62
+ beliefStatus?: string;
63
+ epistemicStatus?: string;
62
64
  confidence?: number | null;
63
65
  topicId?: string;
64
66
  topicGlobalId?: string;
@@ -104,6 +106,8 @@ export type PlatformGraphNode = {
104
106
  title?: string;
105
107
  subtype?: string;
106
108
  status?: string;
109
+ beliefStatus?: string;
110
+ epistemicStatus?: string;
107
111
  confidence?: number | null;
108
112
  topicId?: string;
109
113
  sourceType?: string;
@@ -344,6 +348,7 @@ export type WorkflowBranchRecord = {
344
348
  */
345
349
  export type WorkflowWorktreeRecord = {
346
350
  worktreeId?: string;
351
+ nodeId?: string;
347
352
  topicId?: string;
348
353
  branchId?: string;
349
354
  title?: string;
package/dist/version.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  /** Current SDK package version. */
2
- export declare const LUCERN_SDK_VERSION = "1.0.17";
2
+ export declare const LUCERN_SDK_VERSION = "1.0.18";
3
3
  //# sourceMappingURL=version.d.ts.map
package/dist/version.js CHANGED
@@ -1,3 +1,3 @@
1
1
  /** Current SDK package version. */
2
- export const LUCERN_SDK_VERSION = "1.0.17";
2
+ export const LUCERN_SDK_VERSION = "1.0.18";
3
3
  //# sourceMappingURL=version.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lucern/sdk",
3
- "version": "1.0.17",
3
+ "version": "1.0.18",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -113,10 +113,10 @@
113
113
  "typecheck": "tsc --project tsconfig.typecheck.json --noEmit"
114
114
  },
115
115
  "dependencies": {
116
- "@lucern/contracts": "1.0.17",
117
- "@lucern/reasoning-kernel": "1.0.17",
118
- "@lucern/secrets": "1.0.17",
119
- "@lucern/transport-core": "1.0.17",
116
+ "@lucern/contracts": "1.0.18",
117
+ "@lucern/reasoning-kernel": "1.0.18",
118
+ "@lucern/secrets": "1.0.18",
119
+ "@lucern/transport-core": "1.0.18",
120
120
  "effect": "^3.21.2",
121
121
  "zod": "^3.25.76"
122
122
  },