@lucern/sdk 0.3.0-alpha.0 → 0.3.0-alpha.1

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/README.md +33 -21
  2. package/dist/beliefs/index.d.ts +7 -7
  3. package/dist/beliefs/index.js +100 -99
  4. package/dist/beliefs/index.js.map +1 -1
  5. package/dist/beliefsClient.d.ts +14 -29
  6. package/dist/beliefsClient.js +34 -71
  7. package/dist/beliefsClient.js.map +1 -1
  8. package/dist/{client-DAuKnDlx.d.ts → client-B6aWUUwp.d.ts} +25 -20
  9. package/dist/client.d.ts +1 -1
  10. package/dist/client.js +100 -99
  11. package/dist/client.js.map +1 -1
  12. package/dist/contracts/index.js +1 -1
  13. package/dist/contracts/index.js.map +1 -1
  14. package/dist/contracts/workflow-runtime.contract.js +1 -1
  15. package/dist/contracts/workflow-runtime.contract.js.map +1 -1
  16. package/dist/contracts/workflowRuntime.js +1 -1
  17. package/dist/contracts/workflowRuntime.js.map +1 -1
  18. package/dist/contradictions/index.d.ts +1 -1
  19. package/dist/contradictions/index.js +100 -99
  20. package/dist/contradictions/index.js.map +1 -1
  21. package/dist/decisions/index.d.ts +1 -1
  22. package/dist/decisions/index.js +100 -99
  23. package/dist/decisions/index.js.map +1 -1
  24. package/dist/edges/index.d.ts +1 -1
  25. package/dist/edges/index.js +100 -99
  26. package/dist/edges/index.js.map +1 -1
  27. package/dist/evidence/index.d.ts +2 -1
  28. package/dist/evidence/index.js +100 -99
  29. package/dist/evidence/index.js.map +1 -1
  30. package/dist/gatewayFacades.d.ts +18 -6
  31. package/dist/gatewayFacades.js +22 -41
  32. package/dist/gatewayFacades.js.map +1 -1
  33. package/dist/index.d.ts +2 -2
  34. package/dist/index.js +103 -69
  35. package/dist/index.js.map +1 -1
  36. package/dist/lenses/index.d.ts +7 -5
  37. package/dist/lenses/index.js +100 -99
  38. package/dist/lenses/index.js.map +1 -1
  39. package/dist/nodes/index.d.ts +1 -1
  40. package/dist/nodes/index.js +100 -99
  41. package/dist/nodes/index.js.map +1 -1
  42. package/dist/ontologies/index.d.ts +1 -1
  43. package/dist/ontologies/index.js +100 -99
  44. package/dist/ontologies/index.js.map +1 -1
  45. package/dist/opinion.d.ts +2 -2
  46. package/dist/opinion.js +4 -4
  47. package/dist/opinion.js.map +1 -1
  48. package/dist/questions/index.d.ts +1 -1
  49. package/dist/questions/index.js +100 -99
  50. package/dist/questions/index.js.map +1 -1
  51. package/dist/topics/index.d.ts +1 -1
  52. package/dist/topics/index.js +100 -99
  53. package/dist/topics/index.js.map +1 -1
  54. package/dist/types.d.ts +7 -7
  55. package/dist/workflowClient.d.ts +18 -5
  56. package/dist/workflowClient.js +19 -7
  57. package/dist/workflowClient.js.map +1 -1
  58. package/dist/worktrees/index.d.ts +10 -7
  59. package/dist/worktrees/index.js +100 -99
  60. package/dist/worktrees/index.js.map +1 -1
  61. package/package.json +4 -3
@@ -1,4 +1,4 @@
1
- import { L as LucernClientConfig, a as FunctionSurfaceInput, b as FunctionSurfaceResult } from '../client-DAuKnDlx.js';
1
+ import { L as LucernClientConfig, a as FunctionSurfaceInput, b as FunctionSurfaceResult } from '../client-B6aWUUwp.js';
2
2
  import { PlatformGatewaySuccess } from '../coreClient.js';
3
3
  import { JsonObject, TopicIdentifierInput, WorkflowLensRecord, ListResult, WorkflowLensBindingRecord, WorkflowBranchRecord, WorkflowWorktreeRecord, ListWorktreesResponse, PushWorktreeResponse, OpenPullRequestResponse } from '../types.js';
4
4
  import { LensPromptTemplateReference, LensWorkflowTemplate, LensTaskTemplate } from '../contracts/lens-workflow.contract.js';
@@ -108,8 +108,9 @@ declare function createLensesClient(config?: LensesClientConfig): {
108
108
  topicId?: string;
109
109
  branchId?: string;
110
110
  status?: WorkflowWorktreeStatus;
111
- track?: string;
112
- executionBand?: number;
111
+ groupBy?: "campaign" | "lane" | "flat";
112
+ lane?: string;
113
+ campaign?: number;
113
114
  limit?: number;
114
115
  } & TopicIdentifierInput) => Promise<PlatformGatewaySuccess<ListResult<WorkflowWorktreeRecord, "worktrees">>>>[0]): Promise<PlatformGatewaySuccess<{
115
116
  [x: string]: unknown;
@@ -135,8 +136,9 @@ declare function createLensesClient(config?: LensesClientConfig): {
135
136
  }>>;
136
137
  listAll(query?: Parameters<(query?: {
137
138
  status?: WorkflowWorktreeStatus;
138
- track?: string;
139
- executionBand?: number;
139
+ groupBy?: "campaign" | "lane" | "flat";
140
+ lane?: string;
141
+ campaign?: number;
140
142
  limit?: number;
141
143
  }) => Promise<PlatformGatewaySuccess<ListWorktreesResponse>>>[0]): Promise<PlatformGatewaySuccess<ListWorktreesResponse>>;
142
144
  merge(worktreeId: string, input: MergeInput): Promise<PlatformGatewaySuccess<{
@@ -1003,38 +1003,6 @@ function createAuditClient(config = {}) {
1003
1003
  };
1004
1004
  }
1005
1005
 
1006
- // src/opinion.ts
1007
- function clamp01(value) {
1008
- if (!Number.isFinite(value)) {
1009
- return 0;
1010
- }
1011
- return Math.max(0, Math.min(1, value));
1012
- }
1013
- function vacuous(baseRate = 0.5) {
1014
- return { b: 0, d: 0, u: 1, a: clamp01(baseRate) };
1015
- }
1016
- function dogmatic(probability, baseRate = 0.5) {
1017
- const p = clamp01(probability);
1018
- return { b: p, d: 1 - p, u: 0, a: clamp01(baseRate) };
1019
- }
1020
- function opinionFromBaseRate(probability) {
1021
- return vacuous(clamp01(probability));
1022
- }
1023
- function opinionFromDogmatic(probability, baseRate = 0.5) {
1024
- return dogmatic(clamp01(probability), clamp01(baseRate));
1025
- }
1026
- function opinionFromProjected(probability, uncertainty, baseRate = 0.5) {
1027
- const p = clamp01(probability);
1028
- const u = clamp01(uncertainty);
1029
- const remainingMass = 1 - u;
1030
- return {
1031
- b: p * remainingMass,
1032
- d: (1 - p) * remainingMass,
1033
- u,
1034
- a: clamp01(baseRate)
1035
- };
1036
- }
1037
-
1038
1006
  // src/beliefsClient.ts
1039
1007
  function asRecord2(value) {
1040
1008
  return value && typeof value === "object" && !Array.isArray(value) ? value : {};
@@ -1049,7 +1017,7 @@ function readString(value) {
1049
1017
  function readNumber(value) {
1050
1018
  return typeof value === "number" && Number.isFinite(value) ? value : void 0;
1051
1019
  }
1052
- function clamp012(value) {
1020
+ function clamp01(value) {
1053
1021
  return Math.max(0, Math.min(1, value));
1054
1022
  }
1055
1023
  function normalizeOpinionTuple(record) {
@@ -1058,20 +1026,16 @@ function normalizeOpinionTuple(record) {
1058
1026
  const rawDisbelief = readNumber(opinion.d) ?? readNumber(record.disbelief);
1059
1027
  const rawUncertainty = readNumber(opinion.u) ?? readNumber(record.uncertainty);
1060
1028
  const rawBaseRate = readNumber(opinion.a) ?? readNumber(record.baseRate);
1061
- if (rawBelief === void 0 && rawDisbelief === void 0 && rawUncertainty === void 0) {
1062
- const projected = clamp012(readNumber(record.confidence) ?? 0);
1063
- return {
1064
- b: projected,
1065
- d: 1 - projected,
1066
- u: 0,
1067
- a: 0.5
1068
- };
1029
+ if (rawBelief === void 0 || rawDisbelief === void 0 || rawUncertainty === void 0 || rawBaseRate === void 0) {
1030
+ throw new Error(
1031
+ "Gateway opinion history entries must include belief, disbelief, uncertainty, and baseRate."
1032
+ );
1069
1033
  }
1070
1034
  return {
1071
- b: clamp012(rawBelief ?? 0),
1072
- d: clamp012(rawDisbelief ?? 0),
1073
- u: clamp012(rawUncertainty ?? 0),
1074
- a: clamp012(rawBaseRate ?? 0.5)
1035
+ b: clamp01(rawBelief),
1036
+ d: clamp01(rawDisbelief),
1037
+ u: clamp01(rawUncertainty),
1038
+ a: clamp01(rawBaseRate)
1075
1039
  };
1076
1040
  }
1077
1041
  function mapOpinionHistoryEntriesFromGatewayData(payload) {
@@ -1079,28 +1043,28 @@ function mapOpinionHistoryEntriesFromGatewayData(payload) {
1079
1043
  return entries.map((value) => {
1080
1044
  const record = asRecord2(value);
1081
1045
  const tuple = normalizeOpinionTuple(record);
1082
- const projected = readNumber(record.confidence) ?? clamp012(tuple.b + tuple.a * tuple.u);
1046
+ const projected = readNumber(record.confidence) ?? clamp01(tuple.b + tuple.a * tuple.u);
1083
1047
  const triggeringEvidenceId = readString(record.triggeringEvidenceId);
1048
+ const triggeringQuestionId = readString(record.triggeringQuestionId);
1049
+ const triggeringAnswerId = readString(record.triggeringAnswerId);
1050
+ const triggeringContradictionId = readString(
1051
+ record.triggeringContradictionId
1052
+ );
1084
1053
  const triggeringWorktreeId = readString(record.triggeringWorktreeId);
1054
+ const triggeringRef = triggeringEvidenceId ? { kind: "evidence", id: triggeringEvidenceId } : triggeringQuestionId ? { kind: "question", id: triggeringQuestionId } : triggeringAnswerId ? { kind: "answer", id: triggeringAnswerId } : triggeringContradictionId ? { kind: "contradiction", id: triggeringContradictionId } : triggeringWorktreeId ? { kind: "worktree", id: triggeringWorktreeId } : void 0;
1055
+ const trigger = readString(record.trigger);
1056
+ if (!trigger) {
1057
+ throw new Error("Gateway opinion history entries must include trigger.");
1058
+ }
1085
1059
  return {
1086
1060
  t: readNumber(record.timestamp) ?? readNumber(record.assessedAt) ?? 0,
1087
1061
  b: tuple.b,
1088
1062
  d: tuple.d,
1089
1063
  u: tuple.u,
1090
1064
  a: tuple.a,
1091
- P: clamp012(projected),
1092
- trigger: readString(record.trigger) ?? "manual",
1093
- ...triggeringEvidenceId ? {
1094
- triggeringRef: {
1095
- kind: "evidence",
1096
- id: triggeringEvidenceId
1097
- }
1098
- } : triggeringWorktreeId ? {
1099
- triggeringRef: {
1100
- kind: "worktree",
1101
- id: triggeringWorktreeId
1102
- }
1103
- } : {},
1065
+ P: clamp01(projected),
1066
+ trigger,
1067
+ ...triggeringRef ? { triggeringRef } : {},
1104
1068
  ...readString(record.rationale) ? { rationale: readString(record.rationale) } : {},
1105
1069
  ...readString(record.userId) ? { userId: readString(record.userId) } : {},
1106
1070
  ...readString(record.slOperator) ? { slOperator: readString(record.slOperator) } : {}
@@ -1108,11 +1072,7 @@ function mapOpinionHistoryEntriesFromGatewayData(payload) {
1108
1072
  }).sort((left, right) => left.t - right.t);
1109
1073
  }
1110
1074
  function normalizeModulateConfidenceInput(input) {
1111
- const opinion = "opinion" in input ? input.opinion : input.interpretation === "base_rate" ? opinionFromBaseRate(input.confidence) : input.interpretation === "dogmatic" ? opinionFromDogmatic(input.confidence, input.baseRate) : opinionFromProjected(
1112
- input.confidence,
1113
- input.uncertainty,
1114
- input.baseRate
1115
- );
1075
+ const opinion = input.opinion;
1116
1076
  return {
1117
1077
  belief: opinion.b,
1118
1078
  disbelief: opinion.d,
@@ -1120,20 +1080,23 @@ function normalizeModulateConfidenceInput(input) {
1120
1080
  baseRate: opinion.a,
1121
1081
  trigger: input.trigger,
1122
1082
  rationale: input.rationale,
1083
+ triggeringEvidenceId: input.triggeringEvidenceId,
1084
+ triggeringQuestionId: input.triggeringQuestionId,
1085
+ triggeringAnswerId: input.triggeringAnswerId,
1086
+ triggeringContradictionId: input.triggeringContradictionId,
1087
+ triggeringWorktreeId: input.triggeringWorktreeId,
1123
1088
  maxInlinePropagationTargets: input.maxInlinePropagationTargets
1124
1089
  };
1125
1090
  }
1126
1091
  function createBeliefsClient(config = {}) {
1127
1092
  const gateway = createGatewayRequestClient(config);
1128
- function requireBaseRate2(value) {
1093
+ function normalizeBaseRate(value) {
1129
1094
  const baseRate = readNumber(value);
1130
- if (baseRate === void 0) {
1131
- throw new Error("baseRate is required for belief creation.");
1132
- }
1133
- if (baseRate < 0 || baseRate > 1) {
1095
+ const normalized = baseRate ?? 0.5;
1096
+ if (normalized < 0 || normalized > 1) {
1134
1097
  throw new Error("baseRate must be within [0, 1].");
1135
1098
  }
1136
- return baseRate;
1099
+ return normalized;
1137
1100
  }
1138
1101
  const modulateConfidence = async (beliefId, input, idempotencyKey) => gateway.request({
1139
1102
  path: `/api/platform/v1/beliefs/${encodeURIComponent(beliefId)}/confidence`,
@@ -1152,7 +1115,7 @@ function createBeliefsClient(config = {}) {
1152
1115
  * Create a belief within a topic scope.
1153
1116
  */
1154
1117
  async createBelief(input, idempotencyKey) {
1155
- const baseRate = requireBaseRate2(input.baseRate);
1118
+ const baseRate = normalizeBaseRate(input.baseRate);
1156
1119
  return gateway.request({
1157
1120
  path: "/api/platform/v1/beliefs",
1158
1121
  method: "POST",
@@ -2248,11 +2211,7 @@ function createTopicsClient(config = {}) {
2248
2211
 
2249
2212
  // src/gatewayFacades.ts
2250
2213
  function normalizeBeliefConfidenceInput(input) {
2251
- const opinion = "opinion" in input ? input.opinion : input.interpretation === "base_rate" ? opinionFromBaseRate(input.confidence) : input.interpretation === "dogmatic" ? opinionFromDogmatic(input.confidence, input.baseRate) : opinionFromProjected(
2252
- input.confidence,
2253
- input.uncertainty,
2254
- input.baseRate
2255
- );
2214
+ const opinion = input.opinion;
2256
2215
  return {
2257
2216
  belief: opinion.b,
2258
2217
  disbelief: opinion.d,
@@ -2260,6 +2219,11 @@ function normalizeBeliefConfidenceInput(input) {
2260
2219
  baseRate: opinion.a,
2261
2220
  trigger: input.trigger,
2262
2221
  rationale: input.rationale,
2222
+ triggeringEvidenceId: input.triggeringEvidenceId,
2223
+ triggeringQuestionId: input.triggeringQuestionId,
2224
+ triggeringAnswerId: input.triggeringAnswerId,
2225
+ triggeringContradictionId: input.triggeringContradictionId,
2226
+ triggeringWorktreeId: input.triggeringWorktreeId,
2263
2227
  maxInlinePropagationTargets: input.maxInlinePropagationTargets
2264
2228
  };
2265
2229
  }
@@ -2999,6 +2963,18 @@ function createWorktreesFacade(config = {}) {
2999
2963
  async list(query) {
3000
2964
  return gateway.request({
3001
2965
  path: `/api/platform/v1/worktrees${toQueryString({
2966
+ topicId: query.topicId,
2967
+ status: query.status,
2968
+ groupBy: query.groupBy,
2969
+ lane: query.lane,
2970
+ campaign: query.campaign,
2971
+ limit: query.limit
2972
+ })}`
2973
+ });
2974
+ },
2975
+ async listCampaigns(query = {}) {
2976
+ return gateway.request({
2977
+ path: `/api/platform/v1/worktrees/campaigns${toQueryString({
3002
2978
  topicId: query.topicId,
3003
2979
  status: query.status,
3004
2980
  limit: query.limit
@@ -3021,10 +2997,10 @@ function createWorktreesFacade(config = {}) {
3021
2997
  objective: input.objective,
3022
2998
  hypothesis: input.hypothesis,
3023
2999
  rationale: input.rationale,
3024
- track: input.track,
3025
- trackPosition: input.trackPosition,
3026
- executionBand: input.executionBand,
3027
- executionOrder: input.executionOrder,
3000
+ campaign: input.campaign,
3001
+ lane: input.lane,
3002
+ laneOrderInCampaign: input.laneOrderInCampaign,
3003
+ orderInLane: input.orderInLane,
3028
3004
  dependsOn: input.dependsOn,
3029
3005
  blocks: input.blocks,
3030
3006
  gate: input.gate,
@@ -3690,6 +3666,7 @@ var CONTRACTS = {
3690
3666
  "list_active_sessions": { method: "POST", path: "/coordination/active-sessions", kind: "query", idempotent: false, surfaceIntent: "system" },
3691
3667
  "list_all_worktrees": { method: "GET", path: "/worktrees/all", kind: "query", idempotent: false, surfaceIntent: "mcp_workflow" },
3692
3668
  "list_beliefs": { method: "GET", path: "/beliefs", kind: "query", idempotent: false, surfaceIntent: "mcp_core" },
3669
+ "list_campaigns": { method: "GET", path: "/worktrees/campaigns", kind: "query", idempotent: false, surfaceIntent: "mcp_workflow" },
3693
3670
  "list_evidence": { method: "GET", path: "/evidence", kind: "query", idempotent: false, surfaceIntent: "mcp_core" },
3694
3671
  "list_lenses": { method: "GET", path: "/lenses", kind: "query", idempotent: false, surfaceIntent: "mcp_workflow" },
3695
3672
  "list_ontologies": { method: "GET", path: "/ontologies", kind: "query", idempotent: false, surfaceIntent: "mcp_workflow" },
@@ -3980,6 +3957,9 @@ function createFunctionSurfaceClient(config = {}) {
3980
3957
  listBeliefs(input = {}, idempotencyKey) {
3981
3958
  return execute("list_beliefs", input, idempotencyKey);
3982
3959
  },
3960
+ listCampaigns(input = {}, idempotencyKey) {
3961
+ return execute("list_campaigns", input, idempotencyKey);
3962
+ },
3983
3963
  listEvidence(input = {}, idempotencyKey) {
3984
3964
  return execute("list_evidence", input, idempotencyKey);
3985
3965
  },
@@ -4791,10 +4771,11 @@ function createWorkflowClient(config = {}) {
4791
4771
  async listWorktrees(query) {
4792
4772
  const normalized = normalizeTopicQuery(query);
4793
4773
  return gateway.request({
4794
- path: `/api/platform/v1/worktrees${toQueryString({
4774
+ path: `/api/platform/v1/worktrees/all${toQueryString({
4795
4775
  ...normalized,
4796
- track: query.track,
4797
- executionBand: query.executionBand
4776
+ groupBy: query.groupBy,
4777
+ lane: query.lane,
4778
+ campaign: query.campaign
4798
4779
  })}`
4799
4780
  }).then(
4800
4781
  (response) => mapGatewayData(
@@ -4813,8 +4794,9 @@ function createWorkflowClient(config = {}) {
4813
4794
  return gateway.request({
4814
4795
  path: `/api/platform/v1/worktrees${toQueryString({
4815
4796
  status: query.status,
4816
- track: query.track,
4817
- executionBand: query.executionBand,
4797
+ groupBy: query.groupBy,
4798
+ lane: query.lane,
4799
+ campaign: query.campaign,
4818
4800
  limit: query.limit
4819
4801
  })}`
4820
4802
  }).then(
@@ -4826,12 +4808,22 @@ function createWorkflowClient(config = {}) {
4826
4808
  );
4827
4809
  return {
4828
4810
  ...list,
4829
- ...record.tracks && typeof record.tracks === "object" && !Array.isArray(record.tracks) ? { tracks: record.tracks } : {},
4830
- ...record.bands && typeof record.bands === "object" && !Array.isArray(record.bands) ? { bands: record.bands } : {}
4811
+ ...record.lanes && typeof record.lanes === "object" && !Array.isArray(record.lanes) ? { lanes: record.lanes } : {},
4812
+ ...record.campaigns && typeof record.campaigns === "object" && !Array.isArray(record.campaigns) ? { campaigns: record.campaigns } : {}
4831
4813
  };
4832
4814
  })
4833
4815
  );
4834
4816
  },
4817
+ /**
4818
+ * List compact pipeline campaigns with nested lanes.
4819
+ */
4820
+ async listCampaigns(query = {}) {
4821
+ return gateway.request({
4822
+ path: `/api/platform/v1/worktrees/campaigns${toQueryString(
4823
+ normalizeTopicQuery(query)
4824
+ )}`
4825
+ });
4826
+ },
4835
4827
  /**
4836
4828
  * Create a workflow worktree.
4837
4829
  */
@@ -5157,13 +5149,11 @@ function requireText(args) {
5157
5149
  return text;
5158
5150
  }
5159
5151
  function requireBaseRate(args) {
5160
- if (typeof args.baseRate !== "number" || !Number.isFinite(args.baseRate)) {
5161
- throw new Error("baseRate is required.");
5162
- }
5163
- if (args.baseRate < 0 || args.baseRate > 1) {
5152
+ const baseRate = typeof args.baseRate === "number" && Number.isFinite(args.baseRate) ? args.baseRate : 0.5;
5153
+ if (baseRate < 0 || baseRate > 1) {
5164
5154
  throw new Error("baseRate must be within [0, 1].");
5165
5155
  }
5166
- return args.baseRate;
5156
+ return baseRate;
5167
5157
  }
5168
5158
  function exposeGatewayData(response) {
5169
5159
  return Object.assign({}, response, response.data);
@@ -5281,9 +5271,13 @@ function createLucernClient(config = {}) {
5281
5271
  if (!text) {
5282
5272
  throw new Error("text is required");
5283
5273
  }
5274
+ const rationale = args.rationale ?? args.supports?.reasoning;
5275
+ if (!rationale) {
5276
+ throw new Error("rationale is required");
5277
+ }
5284
5278
  const metadata = {
5285
5279
  ...args.metadata ?? {},
5286
- ...args.supports?.reasoning ? { rationale: args.supports.reasoning } : {}
5280
+ rationale
5287
5281
  };
5288
5282
  return evidenceFacade.create({
5289
5283
  topicId: resolveTopicId(args),
@@ -5291,6 +5285,7 @@ function createLucernClient(config = {}) {
5291
5285
  source: args.source ?? args.sourceUrl,
5292
5286
  targetId: args.targetId ?? args.supports?.nodeId,
5293
5287
  weight: args.weight ?? args.supports?.weight,
5288
+ rationale,
5294
5289
  metadata: Object.keys(metadata).length > 0 ? metadata : void 0,
5295
5290
  title: args.title,
5296
5291
  content: args.content,
@@ -6121,7 +6116,10 @@ function createLucernClient(config = {}) {
6121
6116
  beliefIds: input.beliefIds,
6122
6117
  autoShape: input.autoShape,
6123
6118
  domainPackId: input.domainPackId,
6124
- executionOrder: input.executionOrder,
6119
+ campaign: input.campaign,
6120
+ lane: input.lane,
6121
+ laneOrderInCampaign: input.laneOrderInCampaign,
6122
+ orderInLane: input.orderInLane,
6125
6123
  dependsOn: input.dependsOn,
6126
6124
  blocks: input.blocks,
6127
6125
  gate: input.gate,
@@ -6140,7 +6138,10 @@ function createLucernClient(config = {}) {
6140
6138
  beliefIds: input.beliefIds,
6141
6139
  autoShape: input.autoShape,
6142
6140
  domainPackId: input.domainPackId,
6143
- executionOrder: input.executionOrder,
6141
+ campaign: input.campaign,
6142
+ lane: input.lane,
6143
+ laneOrderInCampaign: input.laneOrderInCampaign,
6144
+ orderInLane: input.orderInLane,
6144
6145
  dependsOn: input.dependsOn,
6145
6146
  blocks: input.blocks,
6146
6147
  gate: input.gate,
@@ -6168,10 +6169,10 @@ function createLucernClient(config = {}) {
6168
6169
  return worktreesFacade.update({
6169
6170
  id: typeof input.worktreeId === "string" ? input.worktreeId : "",
6170
6171
  hypothesis: typeof input.hypothesis === "string" ? input.hypothesis : void 0,
6171
- track: typeof input.track === "string" ? input.track : void 0,
6172
- trackPosition: typeof input.trackPosition === "number" ? input.trackPosition : void 0,
6173
- executionBand: typeof input.executionBand === "number" ? input.executionBand : void 0,
6174
- executionOrder: typeof input.executionOrder === "number" ? input.executionOrder : void 0,
6172
+ campaign: typeof input.campaign === "number" ? input.campaign : void 0,
6173
+ lane: typeof input.lane === "string" ? input.lane : void 0,
6174
+ laneOrderInCampaign: typeof input.laneOrderInCampaign === "number" ? input.laneOrderInCampaign : void 0,
6175
+ orderInLane: typeof input.orderInLane === "number" ? input.orderInLane : void 0,
6175
6176
  dependsOn,
6176
6177
  blocks,
6177
6178
  gate: typeof input.gate === "string" ? input.gate : void 0