@stalfh233/omc-cli 0.8.31 → 0.8.33

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 (53) hide show
  1. package/dist/arg-vocabulary.js +223 -0
  2. package/dist/artifact-cmd.js +443 -0
  3. package/dist/batch-call.js +56 -3
  4. package/dist/call-command.js +70 -0
  5. package/dist/call-execute.js +228 -0
  6. package/dist/call-input.js +557 -0
  7. package/dist/call-output.js +240 -0
  8. package/dist/cli.js +23 -1360
  9. package/dist/command-transport.js +4 -1
  10. package/dist/field-add.js +2 -1
  11. package/dist/form-support.js +17 -4
  12. package/dist/intent/plan-apply.js +14 -24
  13. package/dist/lanes/datarule.js +21 -0
  14. package/dist/lanes/field.js +31 -0
  15. package/dist/lanes/list-view-shapes.js +8 -1
  16. package/dist/lanes/list-view.js +64 -2
  17. package/dist/lanes/runtime-data/aggregate-support.js +209 -0
  18. package/dist/lanes/runtime-data/aggregate.js +679 -0
  19. package/dist/lanes/runtime-data/field-options.js +52 -0
  20. package/dist/lanes/runtime-data/lane.js +4 -0
  21. package/dist/lanes/runtime-data/record-delete.js +419 -0
  22. package/dist/lanes/runtime-data/record-read.js +984 -0
  23. package/dist/lanes/runtime-data/record-write.js +562 -0
  24. package/dist/lanes/runtime-data/registration.js +22 -0
  25. package/dist/lanes/runtime-data/shapes.js +594 -0
  26. package/dist/lanes/runtime-data/submission.js +1293 -0
  27. package/dist/lanes/runtime-data/write-support.js +875 -0
  28. package/dist/lanes/runtime-data-contract.js +1 -1
  29. package/dist/lanes/runtime-data.js +10 -5556
  30. package/dist/lanes/workflow/approval-ops.js +983 -0
  31. package/dist/lanes/workflow/instance-read.js +284 -0
  32. package/dist/lanes/workflow/lifecycle-write.js +1499 -0
  33. package/dist/lanes/workflow/permissions.js +571 -0
  34. package/dist/lanes/workflow/recovery.js +361 -0
  35. package/dist/lanes/workflow/registration.js +14 -0
  36. package/dist/lanes/workflow/shapes.js +811 -0
  37. package/dist/lanes/workflow/template-fetch.js +197 -0
  38. package/dist/lanes/workflow/template-merge.js +1351 -0
  39. package/dist/lanes/workflow/template-read.js +327 -0
  40. package/dist/lanes/workflow.js +11 -6312
  41. package/dist/model-scaffold.js +3 -1
  42. package/dist/path-projection.js +27 -6
  43. package/dist/read-projection.js +442 -0
  44. package/dist/read.js +40 -335
  45. package/dist/rollback.js +17 -23
  46. package/dist/runtime-support.js +1 -1
  47. package/dist/verification.js +39 -0
  48. package/dist/write-coordinator.js +152 -0
  49. package/dist/write-outcome.js +295 -0
  50. package/dist/write.js +34 -115
  51. package/package.json +3 -3
  52. package/skills/omc-refusals.md +1 -1
  53. package/skills/omc-start-here.md +3 -3
@@ -0,0 +1,361 @@
1
+ import { ToolRefusalError } from "../../tool-types.js";
2
+ /**
3
+ * Live 8.6.26 fidelity — a REFUSED workflow write still answers HTTP 200 with
4
+ * `errcode 0`; the refusal rides `data` as a `ValidateMessage[]`
5
+ * ({errCode, errContent, errorLevel}; S29 live contract, publish refusal errmsg
6
+ * is 发布流程失败). Trusting `errcode` alone reports a phantom success: live, a
7
+ * PARTICIPANT node whose originate participant is `"admin"` (not the platform
8
+ * keyword `"{Originator}"`) answers `401035 填写申请单 ERROR` while errcode stays
9
+ * 0 — the tool said publish:ok and the flow never went live. Surface every
10
+ * ERROR-level message as a structured refusal so the caller can fix the
11
+ * template instead of believing the flow is running. WARN-level messages are
12
+ * returned as evidence but do not block (live: `{Creator}` answers 401062 WARN).
13
+ */
14
+ /**
15
+ * workflow.publish 高频拒绝码 → 可执行含义(issue#11 P1:401041/401053 码面文案
16
+ * 与触发场景错位,用户靠 5 组二分才定位)。全 93 码表见
17
+ * engine-api-guide/references/EngineErrCode.md(工作流段,自 ErrorCode 反编译)。
18
+ */
19
+ const WORKFLOW_PUBLISH_CODE_HINTS = Object.freeze({
20
+ "401026": "审批节点未绑定表单:sheetCode 置为模型默认表单槽位",
21
+ "401041": "多人节点参与者写成了 {Originator}——多人节点请用角色/函数表达式;发起/填写节点才可用 {Originator}",
22
+ "401053": "发起/填写节点的参与者类型不能是多人(MULTI_PARTICIPANT)",
23
+ "401047": "「上一活动参与者」函数只能接在单个用户活动节点之后",
24
+ "401048": "驳回-上一步:上一步必须是单用户活动节点",
25
+ "401052": "发起节点不允许配置「驳回到开始」",
26
+ "401057": "同意出口不能为空或 0/0%",
27
+ "401027": "存在孤立节点(未接入 START→END 链路)",
28
+ });
29
+ function workflowValidationErrors(data) {
30
+ if (!Array.isArray(data))
31
+ return [];
32
+ return data.filter((message) => message !== null && typeof message === "object" && message.errorLevel === "ERROR");
33
+ }
34
+ export function workflowValidationWarnings(data) {
35
+ if (!Array.isArray(data))
36
+ return [];
37
+ return data.filter((message) => message !== null && typeof message === "object" && message.errorLevel !== "ERROR");
38
+ }
39
+ /** Refuse after a workflow write when the platform answered ValidateMessage[] ERRORs (errcode 0 notwithstanding). */
40
+ export function assertWorkflowWriteAccepted(performed, tool, workflowCode) {
41
+ const errors = workflowValidationErrors(performed.data);
42
+ if (errors.length === 0)
43
+ return;
44
+ throw new ToolRefusalError({
45
+ status: "refused",
46
+ blocker: "workflow-publish-invalid",
47
+ workflowCode,
48
+ validationErrors: errors,
49
+ message: `${tool}: 平台以 ValidateMessage[] 拒绝(errcode 0 但不落库):${errors.map((error) => `${error.errCode} ${error.errContent}${WORKFLOW_PUBLISH_CODE_HINTS[String(error.errCode)] ? `(${WORKFLOW_PUBLISH_CODE_HINTS[String(error.errCode)]})` : ""}`).join(";")}。常见根因:审批节点的 sheetCode 为空(401026,工具已自动回填);新增节点未接入链路(END 无入边);**多人节点参与者写成 {Originator}**(1.1.25 隔离矩阵实证:MULTI_PARTICIPANT+{Originator} 报 401041——该码文案"否决出口节点编码不能为空"在此场景具误导性,issue#11 P1;发起/填写节点须 SINGLE,多人报 401053)。修正模板后重试,不要反复 publish`,
50
+ });
51
+ }
52
+ /**
53
+ * Participant references must be platform-resolvable. Real published workflows
54
+ * (2026-09-23 production observation) use exactly three forms:
55
+ * (a) a keyword — `{Originator}`;
56
+ * (b) a JSON array of participant objects —
57
+ * `[{"code","corpId","id","name","type"}]` (type 2 = role, 3 = user),
58
+ * joined with `+` for several;
59
+ * (c) a function — e.g. `FindUserByRole({Originator.OU},"<roleCode>","random")`.
60
+ * The registered participant-function set is product-line specific:
61
+ * AI-Platform v1.1.25 was only verified with FindUserByRole, while
62
+ * CloudPivot 8.6.26 registers 14 participant functions including the
63
+ * superior/department-manager family (8.6.26 decompilation, 2026-11-10;
64
+ * see r50-workflow-superior FORENSIC.md).
65
+ * Free text (a bare role name like `部门负责人`) publishes but resolves to
66
+ * nobody and creates no workitem, so warn — the caller must resolve names via
67
+ * `org.role.list` / `org.department.list` first. Advisory (never blocks): the
68
+ * platform accepts the save, so this is a readback lint, not a write gate.
69
+ */
70
+ /**
71
+ * Participant FUNCTION names that the runtime does not register. Read-back and
72
+ * seeded templates carry them (the CRM seed uses FindUsersSpecByRoleFunction),
73
+ * and AI-Platform v1.1.25 only ships FindUserByRoleFunction — the others throw
74
+ * FunctionNotFoundException inside ParticipantActivityRuntime, so the instance
75
+ * stalls in PROCESSING with no work item while every API call answers errCode 0.
76
+ * CloudPivot 8.6.26 has a different registration surface: 14 participant
77
+ * functions, including the superior/department-manager family. This comment
78
+ * describes the 1.1.25 hard-gate evidence only; see r50-workflow-superior
79
+ * FORENSIC.md (8.6.26 decompilation and designer evidence, 2026-11-10).
80
+ * A warning was not enough (r4 lost ~200 rounds to it), so publish refuses.
81
+ */
82
+ export function unregisteredParticipantFunctions(template) {
83
+ const activities = Array.isArray(template.activities) ? template.activities : [];
84
+ const found = [];
85
+ for (const activity of activities) {
86
+ if (String(activity.activityType ?? "") !== "PARTICIPANT")
87
+ continue;
88
+ const participant = String(activity.participant ?? "").trim();
89
+ const match = /^(FindUsersByRoleFunction|FindUsersSpecByRoleFunction)\s*\(/.exec(participant);
90
+ if (match)
91
+ found.push({ activityCode: String(activity.activityCode ?? ""), functionName: match[1] });
92
+ }
93
+ return found;
94
+ }
95
+ export function rejectToStartCancelWarnings(template) {
96
+ const activities = Array.isArray(template.activities) ? template.activities : [];
97
+ const blocking = activities
98
+ .filter((activity) => String(activity.activityType ?? "") === "PARTICIPANT")
99
+ .filter((activity) => {
100
+ const action = activity.permittedAction;
101
+ if (action === undefined || action === null || typeof action !== "object")
102
+ return true; // designer default -> true
103
+ return action.rejectToStart !== false;
104
+ })
105
+ .map((activity) => String(activity.activityCode ?? ""));
106
+ if (blocking.length === 0)
107
+ return [];
108
+ const cancel = template.cancelEventHandler;
109
+ const cancelRules = cancel && typeof cancel === "object" ? cancel.bizActions : undefined;
110
+ const bound = Array.isArray(cancelRules) ? cancelRules.length : 0;
111
+ if (bound === 0)
112
+ return [];
113
+ return [{
114
+ code: "workflow-reject-to-start-suppresses-cancel-handler",
115
+ severity: "warning",
116
+ message: `cancelEventHandler 绑了 ${bound} 条规则,但审批节点 ${blocking.join("、")} 的 rejectToStart 为 true(设计器默认):驳回会把实例退回填写节点并继续运行,end/cancel 处理器都不触发,这些规则不会执行(r5-asset 真机:实例仍 PROCESSING、待办回 A2)。` +
117
+ `两种改法:① 在这个节点的 permittedAction 里显式传 rejectToStart:false(驳回即结束,cancel 生效);② 驳回后的状态改成由发起人手工处理或二开监听。`,
118
+ }];
119
+ }
120
+ export function participantReferenceWarnings(template) {
121
+ const activities = Array.isArray(template.activities) ? template.activities : [];
122
+ const warnings = [];
123
+ // 第一个 PARTICIPANT 是「填写」节点(发起人),平台允许 participant 为空并自动补
124
+ // {Originator};之后的空 participant 才是危险信号。t248 1.1.25/1.1.30 实测:
125
+ // workflow.create 自动草稿的审批节点 participant 恒为空,平台把待办静默派给
126
+ // 发起人(自审自批),而旧实现直接 continue,publish 不告警。
127
+ const firstParticipantCode = String(activities.find((activity) => String(activity.activityType ?? "") === "PARTICIPANT")?.activityCode ?? "");
128
+ for (const activity of activities) {
129
+ if (String(activity.activityType ?? "") !== "PARTICIPANT")
130
+ continue;
131
+ const raw = activity.participant;
132
+ const activityCode = String(activity.activityCode ?? "");
133
+ if (raw === undefined || raw === null || String(raw).trim().length === 0) {
134
+ if (activityCode === firstParticipantCode)
135
+ continue; // 填写节点:平台补 {Originator}
136
+ warnings.push({
137
+ activityCode,
138
+ participant: "",
139
+ warning: `节点 ${activityCode} 的 participant 为空:平台会按发起人处理(待办派给发起人,形成自审自批),不是「稍后由平台填写」。用 workflow.setButtons/update 给该节点填真实参与者({Originator}、角色对象数组或 FindUserByRole(...));确认自审自批符合业务意图则显式写 {Originator}。`,
140
+ });
141
+ continue;
142
+ }
143
+ const participant = String(raw).trim();
144
+ // r4-training 2026-10-20: two function names that show up in read-back /
145
+ // seeded templates are NOT registered at runtime in AI-Platform v1.1.25 —
146
+ // they publish fine, then ParticipantActivityRuntime throws
147
+ // FunctionNotFoundException, the instance stalls in PROCESSING and the
148
+ // submit still answers errCode 0. Flag them by name (advisory, not a block).
149
+ const unregistered = /^(FindUsersByRoleFunction|FindUsersSpecByRoleFunction)\s*\(/.exec(participant);
150
+ if (unregistered) {
151
+ warnings.push({
152
+ activityCode: String(activity.activityCode ?? ""),
153
+ participant,
154
+ warning: `参与者函数 ${unregistered[1]}(...) 在 AI-Platform v1.1.25 未注册(运行期 FunctionNotFoundException,实例卡 PROCESSING 且提交仍回 errCode 0)。该结论仅适用于 AI-Platform v1.1.25(1.1.25 真机 2026-10-20):已验证的内置写法是 FindUserByRole(org, roleCode[, order]);CloudPivot 8.6.26 另注册上级族函数,如 FindUsersByDirectSupervisor、OUManager、RecurseManager(8.6.26 反编译+设计器 2026-11-10)。上级族表达式在目标环境使用前先真机跑一单;跨部门/全局角色优先用参与者对象数组(角色 id)。不要从 workflow.get_published 或种子流程回抄这个函数名。`,
155
+ });
156
+ continue;
157
+ }
158
+ if (isPlatformParticipantReference(participant))
159
+ continue;
160
+ warnings.push({
161
+ activityCode: String(activity.activityCode ?? ""),
162
+ participant,
163
+ warning: `参与者「${participant}」不是平台可解析的引用(自由文本解析不到人,不生成待办)。真实语法:关键字 {Originator};参与者对象数组 [{"code":"<角色code>","corpId":"<corpId|other>","id":"<roleId>","name":"<角色名>","type":2}](type 2=角色,3=用户,多个用 + 连接);或函数 FindUserByRole({Originator.OU},"<roleCode>","random")。先用 org.role.list / org.department.list / org.user.search 解析 code/id。`,
164
+ });
165
+ }
166
+ return warnings;
167
+ }
168
+ export function approvalByOriginatorWarnings(template) {
169
+ const activities = Array.isArray(template.activities) ? template.activities : [];
170
+ const participants = activities.filter((activity) => String(activity.activityType ?? "") === "PARTICIPANT");
171
+ if (participants.length === 0 || !participants.every((activity) => String(activity.participant ?? "").trim() === "{Originator}"))
172
+ return [];
173
+ const activityCodes = participants.map((activity) => String(activity.activityCode ?? "")).filter((code) => code.length > 0);
174
+ return [{
175
+ code: "approval-by-originator",
176
+ activityCodes,
177
+ message: `所有参与人节点(${activityCodes.join("、")})都指向 {Originator}:该流程会由发起人自审自批;这是允许的单人流程,但请确认该行为符合业务意图。`,
178
+ }];
179
+ }
180
+ /**
181
+ * The runtime deliberately treats an empty role resolution as a successful
182
+ * activation owned by the originator. Keep this advisory: the originator
183
+ * may legitimately be a member of the configured role. The platform's
184
+ * participant chain is `ouScope ∩ originator department chain`; when that
185
+ * intersection is empty it silently takes this fallback path.
186
+ */
187
+ export function participantFallbackWarnings(input) {
188
+ if (!input.originator)
189
+ return [];
190
+ const configured = new Map();
191
+ const rows = Array.isArray(input.template?.activities) ? input.template.activities : [];
192
+ for (const row of rows) {
193
+ if (String(row.activityType ?? "") !== "PARTICIPANT")
194
+ continue;
195
+ const code = String(row.activityCode ?? row.code ?? "");
196
+ const participant = typeof row.participant === "string" ? row.participant.trim() : "";
197
+ if (!code || !participant || /^(?:\{Originator\}|Originator)$/i.test(participant))
198
+ continue;
199
+ let role;
200
+ const fn = /FindUserByRole\s*\(\s*[^,]+,\s*(["'])(.*?)\1\s*,/i.exec(participant);
201
+ if (fn?.[2])
202
+ role = fn[2];
203
+ if (!role && participant.startsWith("[")) {
204
+ try {
205
+ const entries = JSON.parse(participant);
206
+ if (Array.isArray(entries)) {
207
+ const candidate = entries.find((entry) => entry && typeof entry === "object" && String(entry.type ?? "") === "2");
208
+ if (candidate)
209
+ role = String(candidate.code ?? candidate.name ?? candidate.id ?? "") || undefined;
210
+ }
211
+ }
212
+ catch { /* advisory only */ }
213
+ }
214
+ if (role)
215
+ configured.set(code, role);
216
+ }
217
+ return input.activities
218
+ .filter((activity) => activity.status === 1 && activity.activityType === "PARTICIPANT" && activity.participantCount > 0)
219
+ .filter((activity) => activity.participants.every((person) => person.id === input.originator))
220
+ .map((activity) => ({
221
+ suspect: true,
222
+ nodeCode: activity.activityCode ?? "?",
223
+ ...(configured.get(activity.activityCode ?? "") ? { configuredRole: configured.get(activity.activityCode ?? "") } : {}),
224
+ note: configured.has(activity.activityCode ?? "")
225
+ ? "角色成员可能不覆盖发起人 OU,平台已退回发起人——核对 org.role.userScope"
226
+ : "参与者与发起人相同;若该节点配置的是角色,可能因成员 scope 不覆盖发起人 OU 而被平台退回发起人——核对 org.role.userScope",
227
+ }));
228
+ }
229
+ function isPlatformParticipantReference(participant) {
230
+ if (/^\{[^}]+\}$/.test(participant))
231
+ return true; // {Originator} keyword
232
+ if (/^[A-Za-z_$][\w$]*\s*\(/.test(participant))
233
+ return true; // FindUserByRole(...)
234
+ if (participant.startsWith("[") || participant.startsWith("+")) {
235
+ // one or more `[...]` segments joined by +
236
+ const segments = participant.split("+").map((segment) => segment.trim());
237
+ return segments.every((segment) => {
238
+ if (segment.length === 0)
239
+ return true;
240
+ try {
241
+ const parsed = JSON.parse(segment);
242
+ return Array.isArray(parsed) && parsed.every((entry) => entry !== null && typeof entry === "object" && ("id" in entry || "code" in entry));
243
+ }
244
+ catch {
245
+ return false;
246
+ }
247
+ });
248
+ }
249
+ return false;
250
+ }
251
+ /**
252
+ * The draft rules remapped by index cannot describe an activity the caller
253
+ * ADDED (an extra approval node): the remapped edges stop at the old chain, an
254
+ * extra END sits with no inbound edge, and the platform publish validator
255
+ * answers 401026/401027/401017 on 结束 (bench12, live). When the remapped rules
256
+ * are not a clean linear chain over the mapped activities, rebuild the chain in
257
+ * the caller's array order — the recipe contract is "array order = approval
258
+ * chain order" — reusing any edge whose endpoints survived. A draft whose
259
+ * (possibly branching) graph is untouched passes the chain check verbatim.
260
+ */
261
+ /**
262
+ * r31c F23: local reachability / else-coverage warnings for workflow.validate.
263
+ * Does NOT change `valid` (still ERROR-only). A node with only conditional
264
+ * outbounds and no utilizeElse/unconditional edge is a dead-end when the
265
+ * condition fails — platform validate still says valid:true.
266
+ */
267
+ export function workflowReachabilityWarnings(template) {
268
+ const activitiesRaw = template.activities;
269
+ const activities = Array.isArray(activitiesRaw)
270
+ ? activitiesRaw
271
+ : activitiesRaw && typeof activitiesRaw === "object"
272
+ ? Object.values(activitiesRaw)
273
+ : [];
274
+ if (activities.length === 0)
275
+ return [];
276
+ const rulesRaw = template.rules ?? template.routes ?? template.edges;
277
+ const rules = Array.isArray(rulesRaw) ? rulesRaw : [];
278
+ const typeOf = new Map();
279
+ const nameOf = new Map();
280
+ for (const activity of activities) {
281
+ const code = String(activity.activityCode ?? "").trim();
282
+ if (!code)
283
+ continue;
284
+ typeOf.set(code, String(activity.activityType ?? "").trim());
285
+ nameOf.set(code, String(activity.activityName ?? activity.name ?? code));
286
+ }
287
+ const outbound = new Map();
288
+ for (const rule of rules) {
289
+ const pre = String(rule.preActivityCode ?? rule.preNode ?? rule.pre ?? rule.from ?? "").trim();
290
+ const post = String(rule.postActivityCode ?? rule.postNode ?? rule.post ?? rule.to ?? "").trim();
291
+ if (!pre || !post)
292
+ continue;
293
+ const hasGroup = Array.isArray(rule.ruleConditionGroup) && rule.ruleConditionGroup.length > 0;
294
+ const utilizeElse = rule.utilizeElse === true;
295
+ const list = outbound.get(pre) ?? [];
296
+ list.push({ post, conditional: hasGroup && !utilizeElse, utilizeElse });
297
+ outbound.set(pre, list);
298
+ }
299
+ const warnings = [];
300
+ // 1) Nodes with conditional outbounds must also have an else / unconditional exit.
301
+ for (const [code, edges] of outbound) {
302
+ if (typeOf.get(code) === "END")
303
+ continue;
304
+ const hasConditional = edges.some((edge) => edge.conditional);
305
+ if (!hasConditional)
306
+ continue;
307
+ const hasFallback = edges.some((edge) => edge.utilizeElse || !edge.conditional);
308
+ if (!hasFallback) {
309
+ warnings.push({
310
+ activityCode: code,
311
+ name: nameOf.get(code) ?? code,
312
+ problem: `节点 ${code} 在条件不满足时无出路(流程断头):有条件出边但没有 utilizeElse/无条件兜底`,
313
+ });
314
+ }
315
+ }
316
+ // 2) Every non-END node must be able to reach some END along ANY outbound edge.
317
+ const endCodes = [...typeOf.entries()].filter(([, type]) => type === "END").map(([code]) => code);
318
+ if (endCodes.length === 0)
319
+ return warnings;
320
+ const canReachEnd = (start) => {
321
+ const seen = new Set();
322
+ const stack = [start];
323
+ while (stack.length > 0) {
324
+ const current = stack.pop();
325
+ if (typeOf.get(current) === "END")
326
+ return true;
327
+ if (seen.has(current))
328
+ continue;
329
+ seen.add(current);
330
+ for (const edge of outbound.get(current) ?? []) {
331
+ if (!seen.has(edge.post))
332
+ stack.push(edge.post);
333
+ }
334
+ }
335
+ return false;
336
+ };
337
+ for (const [code, type] of typeOf) {
338
+ if (type === "END")
339
+ continue;
340
+ if ((outbound.get(code) ?? []).length === 0) {
341
+ // START with no edges is already a platform ERROR; still warn for PARTICIPANT dead-ends.
342
+ if (type === "PARTICIPANT" || type === "SUB_INSTANCE" || type === "SYSTEM") {
343
+ warnings.push({
344
+ activityCode: code,
345
+ name: nameOf.get(code) ?? code,
346
+ problem: `节点 ${code} 没有任何出向边,无法到达 END(流程断头)`,
347
+ });
348
+ }
349
+ continue;
350
+ }
351
+ if (!canReachEnd(code)) {
352
+ warnings.push({
353
+ activityCode: code,
354
+ name: nameOf.get(code) ?? code,
355
+ problem: `节点 ${code} 沿现有出向边无法到达 END(流程断头)`,
356
+ });
357
+ }
358
+ }
359
+ return warnings;
360
+ }
361
+ //# sourceMappingURL=recovery.js.map
@@ -0,0 +1,14 @@
1
+ import { registerTemplateReadTools } from "./template-read.js";
2
+ import { registerLifecycleTools } from "./lifecycle-write.js";
3
+ import { registerInstanceReadTools } from "./instance-read.js";
4
+ import { registerPermissionTools } from "./permissions.js";
5
+ import { registerApprovalTools } from "./approval-ops.js";
6
+ /** Workflow lane tool registration. Order is part of the public registry contract. */
7
+ export function registerWorkflowLane(tools) {
8
+ registerTemplateReadTools(tools);
9
+ registerLifecycleTools(tools);
10
+ registerInstanceReadTools(tools);
11
+ registerPermissionTools(tools);
12
+ registerApprovalTools(tools);
13
+ }
14
+ //# sourceMappingURL=registration.js.map