@lucern/sdk 0.3.0-alpha.3 → 0.3.0-alpha.4

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 (122) hide show
  1. package/dist/adminClient.js +4 -3
  2. package/dist/adminClient.js.map +1 -1
  3. package/dist/answersClient.js +4 -3
  4. package/dist/answersClient.js.map +1 -1
  5. package/dist/audiencesClient.js +4 -3
  6. package/dist/audiencesClient.js.map +1 -1
  7. package/dist/auditClient.js +4 -3
  8. package/dist/auditClient.js.map +1 -1
  9. package/dist/authContext.js +4 -3
  10. package/dist/authContext.js.map +1 -1
  11. package/dist/beliefs/index.d.ts +1 -1
  12. package/dist/beliefs/index.js +301 -7
  13. package/dist/beliefs/index.js.map +1 -1
  14. package/dist/beliefsClient.js +4 -3
  15. package/dist/beliefsClient.js.map +1 -1
  16. package/dist/{client-EiG9nJOY.d.ts → client-DOLqClbU.d.ts} +183 -3
  17. package/dist/client.d.ts +1 -1
  18. package/dist/client.js +301 -7
  19. package/dist/client.js.map +1 -1
  20. package/dist/contextClient.js +4 -3
  21. package/dist/contextClient.js.map +1 -1
  22. package/dist/contracts/api-enums.contract.d.ts +1 -1
  23. package/dist/contracts/api-enums.contract.js.map +1 -1
  24. package/dist/contracts/index.js.map +1 -1
  25. package/dist/contradictions/index.d.ts +1 -1
  26. package/dist/contradictions/index.js +301 -7
  27. package/dist/contradictions/index.js.map +1 -1
  28. package/dist/coreClient.js +4 -3
  29. package/dist/coreClient.js.map +1 -1
  30. package/dist/decisions/index.d.ts +1 -1
  31. package/dist/decisions/index.js +301 -7
  32. package/dist/decisions/index.js.map +1 -1
  33. package/dist/decisionsClient.js +4 -3
  34. package/dist/decisionsClient.js.map +1 -1
  35. package/dist/edges/index.d.ts +1 -1
  36. package/dist/edges/index.js +301 -7
  37. package/dist/edges/index.js.map +1 -1
  38. package/dist/embeddingsClient.js +4 -3
  39. package/dist/embeddingsClient.js.map +1 -1
  40. package/dist/eventingClient.js +4 -3
  41. package/dist/eventingClient.js.map +1 -1
  42. package/dist/eventsCore.js +4 -3
  43. package/dist/eventsCore.js.map +1 -1
  44. package/dist/evidence/index.d.ts +1 -1
  45. package/dist/evidence/index.js +301 -7
  46. package/dist/evidence/index.js.map +1 -1
  47. package/dist/evidenceClient.js +4 -3
  48. package/dist/evidenceClient.js.map +1 -1
  49. package/dist/gatewayFacades.d.ts +34 -1
  50. package/dist/gatewayFacades.js +4 -3
  51. package/dist/gatewayFacades.js.map +1 -1
  52. package/dist/graphAnalysisClient.d.ts +7 -0
  53. package/dist/graphAnalysisClient.js +7 -4
  54. package/dist/graphAnalysisClient.js.map +1 -1
  55. package/dist/graphClient.js +4 -3
  56. package/dist/graphClient.js.map +1 -1
  57. package/dist/graphRecommendationsClient.js +4 -3
  58. package/dist/graphRecommendationsClient.js.map +1 -1
  59. package/dist/graphStateClassifierClient.js +4 -3
  60. package/dist/graphStateClassifierClient.js.map +1 -1
  61. package/dist/harnessClient.js +4 -3
  62. package/dist/harnessClient.js.map +1 -1
  63. package/dist/identityClient.js +4 -3
  64. package/dist/identityClient.js.map +1 -1
  65. package/dist/index.d.ts +4 -2
  66. package/dist/index.js +593 -8
  67. package/dist/index.js.map +1 -1
  68. package/dist/infisicalRuntime.d.ts +42 -0
  69. package/dist/infisicalRuntime.js +291 -0
  70. package/dist/infisicalRuntime.js.map +1 -0
  71. package/dist/jobsClient.js +4 -3
  72. package/dist/jobsClient.js.map +1 -1
  73. package/dist/learningClient.js +4 -3
  74. package/dist/learningClient.js.map +1 -1
  75. package/dist/lenses/index.d.ts +25 -1
  76. package/dist/lenses/index.js +301 -7
  77. package/dist/lenses/index.js.map +1 -1
  78. package/dist/mcpClient.js +4 -3
  79. package/dist/mcpClient.js.map +1 -1
  80. package/dist/modelRuntimeClient.js +4 -3
  81. package/dist/modelRuntimeClient.js.map +1 -1
  82. package/dist/nodes/index.d.ts +19 -1
  83. package/dist/nodes/index.js +301 -7
  84. package/dist/nodes/index.js.map +1 -1
  85. package/dist/ontologies/index.d.ts +1 -1
  86. package/dist/ontologies/index.js +301 -7
  87. package/dist/ontologies/index.js.map +1 -1
  88. package/dist/ontologyClient.js +4 -3
  89. package/dist/ontologyClient.js.map +1 -1
  90. package/dist/ontologyLinksClient.js +4 -3
  91. package/dist/ontologyLinksClient.js.map +1 -1
  92. package/dist/orgGraphSearchClient.js +4 -3
  93. package/dist/orgGraphSearchClient.js.map +1 -1
  94. package/dist/packsClient.js +4 -3
  95. package/dist/packsClient.js.map +1 -1
  96. package/dist/policyClient.js +4 -3
  97. package/dist/policyClient.js.map +1 -1
  98. package/dist/questions/index.d.ts +1 -1
  99. package/dist/questions/index.js +301 -7
  100. package/dist/questions/index.js.map +1 -1
  101. package/dist/reportsClient.js +4 -3
  102. package/dist/reportsClient.js.map +1 -1
  103. package/dist/schemaClient.js +4 -3
  104. package/dist/schemaClient.js.map +1 -1
  105. package/dist/sourcesClient.js +4 -3
  106. package/dist/sourcesClient.js.map +1 -1
  107. package/dist/telemetryClient.js +4 -3
  108. package/dist/telemetryClient.js.map +1 -1
  109. package/dist/toolRegistryClient.js +4 -3
  110. package/dist/toolRegistryClient.js.map +1 -1
  111. package/dist/topics/index.d.ts +1 -1
  112. package/dist/topics/index.js +301 -7
  113. package/dist/topics/index.js.map +1 -1
  114. package/dist/topicsClient.js +4 -3
  115. package/dist/topicsClient.js.map +1 -1
  116. package/dist/workflowClient.d.ts +41 -7
  117. package/dist/workflowClient.js +4 -3
  118. package/dist/workflowClient.js.map +1 -1
  119. package/dist/worktrees/index.d.ts +25 -1
  120. package/dist/worktrees/index.js +301 -7
  121. package/dist/worktrees/index.js.map +1 -1
  122. package/package.json +3 -3
@@ -1,7 +1,7 @@
1
1
  import { PlatformGatewaySuccess } from '../coreClient.js';
2
2
  import { PlatformGraphNode, ListResult } from '../types.js';
3
3
  import { CreateNodeInput, GetNodeInput, ListNodesInput, UpdateNodeInput, BatchCreateNodesInput, SupersedeNodeInput, VerifyNodeInput, HardDeleteNodeInput } from '../graphClient.js';
4
- import { L as LucernClientConfig } from '../client-EiG9nJOY.js';
4
+ import { L as LucernClientConfig } from '../client-DOLqClbU.js';
5
5
  import * as v1 from '@lucern/contracts/graph/v1';
6
6
  export { v1 as graphContracts };
7
7
  import * as sdkMethods_contract from '@lucern/contracts/sdk-methods.contract';
@@ -69,6 +69,24 @@ declare function createNodesClient(config?: NodesClientConfig): {
69
69
  create(input: Parameters<(input: CreateNodeInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<PlatformGraphNode>>>[0], idempotencyKey?: string): Promise<PlatformGatewaySuccess<PlatformGraphNode>>;
70
70
  update(input: Parameters<(input: UpdateNodeInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<PlatformGraphNode>>>[0], idempotencyKey?: string): Promise<PlatformGatewaySuccess<PlatformGraphNode>>;
71
71
  batchCreate(input: Parameters<(input: BatchCreateNodesInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<Record<string, unknown>>>>[0], idempotencyKey?: string): Promise<PlatformGatewaySuccess<Record<string, unknown>>>;
72
+ listByTopicAndType(input: {
73
+ topicId?: string;
74
+ projectId?: string;
75
+ nodeType?: string;
76
+ nodeTypes?: string[];
77
+ query?: string;
78
+ sourceText?: string;
79
+ limit?: number;
80
+ cursor?: string;
81
+ }): Promise<PlatformGatewaySuccess<Record<string, unknown>> & Record<string, unknown>>;
82
+ countByTopicAndType(input: {
83
+ topicId?: string;
84
+ projectId?: string;
85
+ nodeType?: string;
86
+ nodeTypes?: string[];
87
+ query?: string;
88
+ limit?: number;
89
+ }): Promise<PlatformGatewaySuccess<Record<string, unknown>> & Record<string, unknown>>;
72
90
  supersede(input: Parameters<(input: SupersedeNodeInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<Record<string, unknown>>>>[0], idempotencyKey?: string): Promise<PlatformGatewaySuccess<Record<string, unknown>>>;
73
91
  verify(input: Parameters<(input: VerifyNodeInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<Record<string, unknown>>>>[0], idempotencyKey?: string): Promise<PlatformGatewaySuccess<Record<string, unknown>>>;
74
92
  hardDelete(input: Parameters<(input: HardDeleteNodeInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<Record<string, unknown>>>>[0], idempotencyKey?: string): Promise<PlatformGatewaySuccess<Record<string, unknown>>>;
@@ -89,14 +89,15 @@ function normalizeCanonicalLucernAuthContext(input) {
89
89
  );
90
90
  const roles = cleanStringList(input.roles);
91
91
  const scopes = cleanStringList(input.scopes);
92
- if (roles.length === 0 || scopes.length === 0) {
92
+ const principalType = requirePrincipalType(input.principalType);
93
+ const authMode = requireAuthMode(input.authMode);
94
+ const roleBasedInteractiveAuth = authMode === "interactive_user" && roles.length > 0;
95
+ if (roles.length === 0 || scopes.length === 0 && !roleBasedInteractiveAuth) {
93
96
  throw new LucernSdkAuthContextError(
94
97
  "membership_missing",
95
98
  "Canonical Lucern SDK auth context requires non-empty roles and scopes."
96
99
  );
97
100
  }
98
- const principalType = requirePrincipalType(input.principalType);
99
- const authMode = requireAuthMode(input.authMode);
100
101
  const subject = cleanString(input.permit?.subject) ?? principalId;
101
102
  const tenant = cleanString(input.permit?.tenant) ?? tenantId;
102
103
  const workspace = cleanString(input.permit?.workspace) ?? workspaceId;
@@ -4203,7 +4204,9 @@ function createGraphAnalysisClient(config = {}) {
4203
4204
  topicId: requireTopicId2(input),
4204
4205
  workspaceId: input.workspaceId,
4205
4206
  analysisId: input.analysisId,
4206
- since: input.since,
4207
+ minimumCreatedAt: input.minimumCreatedAt ?? input.since ?? input.createdAt ?? input.analysisCreatedAt,
4208
+ sourceNodeIds: input.sourceNodeIds?.join(",") ?? (input.nodeId ? input.nodeId : void 0),
4209
+ sourceEdgeIds: input.sourceEdgeIds?.join(",") ?? (input.edgeId ? input.edgeId : void 0),
4207
4210
  limit: input.limit,
4208
4211
  cursor: input.cursor
4209
4212
  })}`
@@ -4959,6 +4962,7 @@ var CONTRACTS = {
4959
4962
  "archive_belief": { method: "DELETE", path: "/beliefs", kind: "mutation", idempotent: true, surfaceIntent: "mcp_core" },
4960
4963
  "archive_ontology": { method: "DELETE", path: "/ontologies", kind: "mutation", idempotent: true, surfaceIntent: "mcp_governance" },
4961
4964
  "archive_question": { method: "DELETE", path: "/questions", kind: "mutation", idempotent: true, surfaceIntent: "mcp_core" },
4965
+ "begin_build_session": { method: "POST", path: "/mcp/build-session/begin", kind: "mutation", idempotent: true, surfaceIntent: "system" },
4962
4966
  "bisect_confidence": { method: "POST", path: "/beliefs/confidence/bisect", kind: "query", idempotent: false, surfaceIntent: "mcp_core" },
4963
4967
  "broadcast_message": { method: "POST", path: "/coordination/messages/broadcast", kind: "mutation", idempotent: true, surfaceIntent: "system" },
4964
4968
  "check_permission": { method: "POST", path: "/identity/check-permission", kind: "query", idempotent: false, surfaceIntent: "mcp_core" },
@@ -5130,6 +5134,9 @@ function createFunctionSurfaceClient(config = {}) {
5130
5134
  archiveQuestion(input = {}, idempotencyKey) {
5131
5135
  return execute("archive_question", input, idempotencyKey);
5132
5136
  },
5137
+ beginBuildSession(input = {}, idempotencyKey) {
5138
+ return execute("begin_build_session", input, idempotencyKey);
5139
+ },
5133
5140
  bisectConfidence(input = {}, idempotencyKey) {
5134
5141
  return execute("bisect_confidence", input, idempotencyKey);
5135
5142
  },
@@ -7064,6 +7071,13 @@ function requireTopicId4(args) {
7064
7071
  }
7065
7072
  return topicId;
7066
7073
  }
7074
+ function requireTopicOrProjectId(args) {
7075
+ const topicId = args.topicId?.trim() || args.projectId?.trim() || void 0;
7076
+ if (!topicId) {
7077
+ throw new Error("topicId is required");
7078
+ }
7079
+ return topicId;
7080
+ }
7067
7081
  var AUDIT_NODE_REFERENCE_KEY_PATTERN = /(^|_)(id|nodeid|beliefid|resourceid|targetid|sourceid|subjectid|globalid|entityid|recordid|fromnodeid|tonodeid|linkednodeid|linkedbeliefid|nodeids|beliefids|resourceids)$/i;
7068
7082
  function matchesAuditNodeReference(value, nodeId) {
7069
7083
  if (Array.isArray(value)) {
@@ -7099,6 +7113,23 @@ function requireBaseRate(args) {
7099
7113
  function exposeGatewayData(response) {
7100
7114
  return Object.assign({}, response, response.data);
7101
7115
  }
7116
+ function sdkQueryString(input) {
7117
+ const params = new URLSearchParams();
7118
+ for (const [key, value] of Object.entries(input)) {
7119
+ if (value === void 0 || value === null) {
7120
+ continue;
7121
+ }
7122
+ if (Array.isArray(value)) {
7123
+ if (value.length > 0) {
7124
+ params.set(key, value.join(","));
7125
+ }
7126
+ continue;
7127
+ }
7128
+ params.set(key, String(value));
7129
+ }
7130
+ const serialized = params.toString();
7131
+ return serialized ? `?${serialized}` : "";
7132
+ }
7102
7133
  function createLucernClient(config = {}) {
7103
7134
  const gatewayConfig = toGatewayConfig(config);
7104
7135
  const beliefsClient = createBeliefsClient(gatewayConfig);
@@ -7519,6 +7550,30 @@ function createLucernClient(config = {}) {
7519
7550
  batchCreate(input, idempotencyKey) {
7520
7551
  return graphClient.batchCreateNodes(input, idempotencyKey);
7521
7552
  },
7553
+ listByTopicAndType(input) {
7554
+ return gateway.request({
7555
+ path: `/api/platform/v1/nodes${sdkQueryString({
7556
+ topicId: requireTopicOrProjectId(input),
7557
+ nodeType: input.nodeType,
7558
+ nodeTypes: input.nodeTypes,
7559
+ query: input.query,
7560
+ sourceText: input.sourceText,
7561
+ limit: input.limit,
7562
+ cursor: input.cursor
7563
+ })}`
7564
+ }).then(exposeGatewayData);
7565
+ },
7566
+ countByTopicAndType(input) {
7567
+ return gateway.request({
7568
+ path: `/api/platform/v1/nodes/count${sdkQueryString({
7569
+ topicId: requireTopicOrProjectId(input),
7570
+ nodeType: input.nodeType,
7571
+ nodeTypes: input.nodeTypes,
7572
+ query: input.query,
7573
+ limit: input.limit
7574
+ })}`
7575
+ }).then(exposeGatewayData);
7576
+ },
7522
7577
  supersede(input, idempotencyKey) {
7523
7578
  return graphClient.supersedeNode(input, idempotencyKey);
7524
7579
  },
@@ -7529,6 +7584,78 @@ function createLucernClient(config = {}) {
7529
7584
  return graphClient.hardDeleteNode(input, idempotencyKey);
7530
7585
  }
7531
7586
  };
7587
+ const publicationNamespace = {
7588
+ create(input, idempotencyKey) {
7589
+ return gateway.request({
7590
+ path: "/api/platform/v1/publication",
7591
+ method: "POST",
7592
+ body: input,
7593
+ idempotencyKey: idempotencyKey ?? randomIdempotencyKey()
7594
+ }).then(exposeGatewayData);
7595
+ },
7596
+ update(publicationId, input, idempotencyKey) {
7597
+ return gateway.request({
7598
+ path: `/api/platform/v1/publication/${encodeURIComponent(
7599
+ publicationId
7600
+ )}`,
7601
+ method: "PATCH",
7602
+ body: input,
7603
+ idempotencyKey: idempotencyKey ?? randomIdempotencyKey()
7604
+ }).then(exposeGatewayData);
7605
+ },
7606
+ list(input = {}) {
7607
+ return gateway.request({
7608
+ path: `/api/platform/v1/publication${sdkQueryString(input)}`
7609
+ }).then(exposeGatewayData);
7610
+ },
7611
+ getByTopic(input) {
7612
+ const topicId = typeof input === "string" ? input : input.topicId;
7613
+ const workspaceId = typeof input === "string" ? void 0 : input.workspaceId;
7614
+ return gateway.request({
7615
+ path: `/api/platform/v1/publication/by-topic/${encodeURIComponent(
7616
+ topicId
7617
+ )}${sdkQueryString({ workspaceId })}`
7618
+ }).then(exposeGatewayData);
7619
+ },
7620
+ publish(publicationId, input = {}, idempotencyKey) {
7621
+ return gateway.request({
7622
+ path: `/api/platform/v1/publication/${encodeURIComponent(
7623
+ publicationId
7624
+ )}/publish`,
7625
+ method: "POST",
7626
+ body: input,
7627
+ idempotencyKey: idempotencyKey ?? randomIdempotencyKey()
7628
+ }).then(exposeGatewayData);
7629
+ },
7630
+ unpublish(publicationId, input = {}, idempotencyKey) {
7631
+ return gateway.request({
7632
+ path: `/api/platform/v1/publication/${encodeURIComponent(
7633
+ publicationId
7634
+ )}/unpublish`,
7635
+ method: "POST",
7636
+ body: input,
7637
+ idempotencyKey: idempotencyKey ?? randomIdempotencyKey()
7638
+ }).then(exposeGatewayData);
7639
+ },
7640
+ remove(publicationId, input = {}) {
7641
+ return gateway.request({
7642
+ path: `/api/platform/v1/publication/${encodeURIComponent(
7643
+ publicationId
7644
+ )}${sdkQueryString(input)}`,
7645
+ method: "DELETE"
7646
+ }).then(exposeGatewayData);
7647
+ }
7648
+ };
7649
+ const ontologyLinksNamespace = {
7650
+ ...ontologyLinksClient,
7651
+ resolveThemeSource(input) {
7652
+ return gateway.request({
7653
+ path: "/api/platform/v1/ontology-links/theme-source",
7654
+ method: "POST",
7655
+ body: input
7656
+ }).then(exposeGatewayData);
7657
+ }
7658
+ };
7532
7659
  return {
7533
7660
  config,
7534
7661
  version: LUCERN_SDK_VERSION,
@@ -8010,6 +8137,54 @@ function createLucernClient(config = {}) {
8010
8137
  }));
8011
8138
  }
8012
8139
  },
8140
+ themes: {
8141
+ listByTopic(input) {
8142
+ return gateway.request({
8143
+ path: `/api/platform/v1/themes${sdkQueryString({
8144
+ topicId: requireTopicOrProjectId(input),
8145
+ query: input.query,
8146
+ limit: input.limit,
8147
+ cursor: input.cursor
8148
+ })}`
8149
+ }).then(exposeGatewayData);
8150
+ }
8151
+ },
8152
+ graphSearch: {
8153
+ keywordSearchNodes(input) {
8154
+ return gateway.request({
8155
+ path: "/api/platform/v1/graph-search/keyword-nodes",
8156
+ method: "POST",
8157
+ body: {
8158
+ ...input,
8159
+ topicId: requireTopicOrProjectId(input),
8160
+ projectId: void 0
8161
+ }
8162
+ }).then(exposeGatewayData);
8163
+ }
8164
+ },
8165
+ classifiers: {
8166
+ listBeliefCandidates(input) {
8167
+ return gateway.request({
8168
+ path: `/api/platform/v1/classifiers/belief-candidates${sdkQueryString({
8169
+ topicId: requireTopicOrProjectId(input),
8170
+ classifierKey: input.classifierKey,
8171
+ query: input.query,
8172
+ limit: input.limit,
8173
+ cursor: input.cursor
8174
+ })}`
8175
+ }).then(exposeGatewayData);
8176
+ }
8177
+ },
8178
+ archetypes: {
8179
+ getJudgmentSignature(input) {
8180
+ return gateway.request({
8181
+ path: `/api/platform/v1/archetypes/judgment-signature${sdkQueryString({
8182
+ topicId: requireTopicOrProjectId(input),
8183
+ principalId: input.principalId
8184
+ })}`
8185
+ }).then(exposeGatewayData);
8186
+ }
8187
+ },
8013
8188
  judgments: {
8014
8189
  create(input) {
8015
8190
  return decisionsClient.createJudgment(input);
@@ -8051,6 +8226,52 @@ function createLucernClient(config = {}) {
8051
8226
  });
8052
8227
  }
8053
8228
  },
8229
+ decisions: {
8230
+ create(input) {
8231
+ return decisionsClient.createJudgment(input);
8232
+ },
8233
+ record(input) {
8234
+ return decisionsClient.recordJudgment(input);
8235
+ },
8236
+ list(query5) {
8237
+ return decisionsClient.listJudgments(query5);
8238
+ },
8239
+ get(decisionId) {
8240
+ return decisionsClient.getJudgment(decisionId);
8241
+ },
8242
+ recordOutcome(decisionId, input) {
8243
+ return decisionsClient.recordJudgmentOutcome(decisionId, input);
8244
+ },
8245
+ lessons(decisionId, input, idempotencyKey) {
8246
+ return gateway.request({
8247
+ path: `/api/platform/v1/decisions/${encodeURIComponent(
8248
+ decisionId
8249
+ )}/lessons`,
8250
+ method: "POST",
8251
+ body: input,
8252
+ idempotencyKey: idempotencyKey ?? randomIdempotencyKey()
8253
+ }).then(exposeGatewayData);
8254
+ },
8255
+ archive(decisionId, input = {}, idempotencyKey) {
8256
+ return gateway.request({
8257
+ path: `/api/platform/v1/decisions/${encodeURIComponent(
8258
+ decisionId
8259
+ )}/archive`,
8260
+ method: "POST",
8261
+ body: input,
8262
+ idempotencyKey: idempotencyKey ?? randomIdempotencyKey()
8263
+ }).then(exposeGatewayData);
8264
+ },
8265
+ readiness(topicId) {
8266
+ return decisionsClient.getJudgmentReadiness({ topicId });
8267
+ },
8268
+ calibration(topicId) {
8269
+ return decisionsClient.getJudgmentCalibration({ topicId });
8270
+ },
8271
+ pendingOutcomeReview(topicId) {
8272
+ return decisionsClient.listPendingJudgmentOutcomeReview({ topicId });
8273
+ }
8274
+ },
8054
8275
  worktrees: {
8055
8276
  createBranch(input) {
8056
8277
  return workflowClient.createBranch(input);
@@ -8073,7 +8294,21 @@ function createLucernClient(config = {}) {
8073
8294
  topicId: requireTopicId4(input),
8074
8295
  objective: input.objective,
8075
8296
  hypothesis: input.hypothesis,
8297
+ rationale: input.rationale,
8298
+ worktreeType: input.worktreeType,
8299
+ startDate: input.startDate,
8300
+ endDate: input.endDate,
8301
+ durationWeeks: input.durationWeeks,
8302
+ confidenceImpact: input.confidenceImpact,
8303
+ beliefFocus: input.beliefFocus,
8076
8304
  beliefIds: input.beliefIds,
8305
+ targetBeliefIds: input.targetBeliefIds,
8306
+ targetQuestionIds: input.targetQuestionIds,
8307
+ keyQuestions: input.keyQuestions,
8308
+ evidenceSignals: input.evidenceSignals,
8309
+ decisionGate: input.decisionGate,
8310
+ goCriteria: input.goCriteria,
8311
+ noGoSignals: input.noGoSignals,
8077
8312
  autoShape: input.autoShape,
8078
8313
  domainPackId: input.domainPackId,
8079
8314
  campaign: input.campaign,
@@ -8086,7 +8321,8 @@ function createLucernClient(config = {}) {
8086
8321
  proofArtifacts: input.proofArtifacts,
8087
8322
  staffingHint: typeof input.staffingHint === "string" ? input.staffingHint : void 0,
8088
8323
  lastReconciledAt: input.lastReconciledAt,
8089
- autoFixPolicy: input.autoFixPolicy
8324
+ autoFixPolicy: input.autoFixPolicy,
8325
+ lensId: input.lensId
8090
8326
  });
8091
8327
  },
8092
8328
  add(input) {
@@ -8095,7 +8331,21 @@ function createLucernClient(config = {}) {
8095
8331
  topicId: requireTopicId4(input),
8096
8332
  objective: input.objective,
8097
8333
  hypothesis: input.hypothesis,
8334
+ rationale: input.rationale,
8335
+ worktreeType: input.worktreeType,
8336
+ startDate: input.startDate,
8337
+ endDate: input.endDate,
8338
+ durationWeeks: input.durationWeeks,
8339
+ confidenceImpact: input.confidenceImpact,
8340
+ beliefFocus: input.beliefFocus,
8098
8341
  beliefIds: input.beliefIds,
8342
+ targetBeliefIds: input.targetBeliefIds,
8343
+ targetQuestionIds: input.targetQuestionIds,
8344
+ keyQuestions: input.keyQuestions,
8345
+ evidenceSignals: input.evidenceSignals,
8346
+ decisionGate: input.decisionGate,
8347
+ goCriteria: input.goCriteria,
8348
+ noGoSignals: input.noGoSignals,
8099
8349
  autoShape: input.autoShape,
8100
8350
  domainPackId: input.domainPackId,
8101
8351
  campaign: input.campaign,
@@ -8108,7 +8358,8 @@ function createLucernClient(config = {}) {
8108
8358
  proofArtifacts: input.proofArtifacts,
8109
8359
  staffingHint: typeof input.staffingHint === "string" ? input.staffingHint : void 0,
8110
8360
  lastReconciledAt: input.lastReconciledAt,
8111
- autoFixPolicy: input.autoFixPolicy
8361
+ autoFixPolicy: input.autoFixPolicy,
8362
+ lensId: input.lensId
8112
8363
  });
8113
8364
  },
8114
8365
  list(query5) {
@@ -8118,6 +8369,22 @@ function createLucernClient(config = {}) {
8118
8369
  limit: query5.limit
8119
8370
  });
8120
8371
  },
8372
+ listByTopic(query5) {
8373
+ return worktreesFacade.list({
8374
+ topicId: requireTopicId4(query5),
8375
+ status: query5.status,
8376
+ limit: query5.limit
8377
+ });
8378
+ },
8379
+ findByPairedSprint(input) {
8380
+ return gateway.request({
8381
+ path: `/api/platform/v1/worktrees/paired-sprint${sdkQueryString({
8382
+ sprintId: input.sprintId,
8383
+ topicId: input.topicId ?? input.projectId,
8384
+ limit: input.limit
8385
+ })}`
8386
+ }).then(exposeGatewayData);
8387
+ },
8121
8388
  activate(worktreeId) {
8122
8389
  return worktreesFacade.activate({ id: worktreeId });
8123
8390
  },
@@ -8269,6 +8536,31 @@ function createLucernClient(config = {}) {
8269
8536
  status: typeof input.status === "string" ? input.status : void 0,
8270
8537
  limit: typeof input.limit === "number" ? input.limit : void 0
8271
8538
  });
8539
+ },
8540
+ listByTopic(input) {
8541
+ return tasksFacade.list({
8542
+ topicId: requireTopicId4(input),
8543
+ status: typeof input.status === "string" ? input.status : void 0,
8544
+ limit: typeof input.limit === "number" ? input.limit : void 0
8545
+ });
8546
+ },
8547
+ listByWorktree(input) {
8548
+ return tasksFacade.list({
8549
+ topicId: typeof input.topicId === "string" ? input.topicId : void 0,
8550
+ worktreeId: input.worktreeId,
8551
+ status: typeof input.status === "string" ? input.status : void 0,
8552
+ limit: typeof input.limit === "number" ? input.limit : void 0
8553
+ });
8554
+ },
8555
+ linkChat(taskId, input, idempotencyKey) {
8556
+ return gateway.request({
8557
+ path: `/api/platform/v1/tasks/${encodeURIComponent(
8558
+ taskId
8559
+ )}/link-chat`,
8560
+ method: "POST",
8561
+ body: input,
8562
+ idempotencyKey: idempotencyKey ?? randomIdempotencyKey()
8563
+ }).then(exposeGatewayData);
8272
8564
  }
8273
8565
  },
8274
8566
  topics: {
@@ -8553,11 +8845,13 @@ function createLucernClient(config = {}) {
8553
8845
  graphAnalysis: graphAnalysisClient,
8554
8846
  graphRecommendations: graphRecommendationsClient,
8555
8847
  orgGraphSearch: orgGraphSearchClient,
8556
- ontologyLinks: ontologyLinksClient,
8848
+ ontologyLinks: ontologyLinksNamespace,
8557
8849
  graphStateClassifier: graphStateClassifierClient,
8558
8850
  modelRuntime: modelRuntimeClient,
8559
8851
  jobs: jobsClient,
8560
8852
  telemetry: telemetryClient,
8853
+ publication: publicationNamespace,
8854
+ contentPublication: publicationNamespace,
8561
8855
  tools: {
8562
8856
  listCatalog: toolRegistryClient.listCatalog,
8563
8857
  listExecutable: toolRegistryClient.listExecutable,