forked from ChaiHao/BPOS-MVP
**字段只声明,不做任何要求**(用户定):编排层不再碰字段 ——
· 激活闸只剩两面:结构闭合(dangling-node / multi-default-edge)与活动装载
(unknown-activity);字段类的检查(同名不同型、容忍分支被必填依赖)全部退役。
· 节点属性卡的「数据接口」从「推来源」改成**纯声明**:照活动契约列出吃什么、吐什么,
不标必填、不推来源、不提补全 —— 缺了怎么补是**活动内实现**的事,不在这一层现形。
· 字段类型支持数组:统一写成 `T[]`(如 `any[]`),出口口的字段也带上类型
(原来只有字段名)。实测 A2 的 benchmark 口显示「rows any[] · needSourcing boolean」。
**详情页改三栏**:左窄轨版本(132px) | 中流程图 | 右节点属性。
· 版本条一版一行(v几 · 状态 · 点/边计数),动作只在**看着的那一版**上展开 ——
窄栏放不下每行一排钮,也不该让人误点别版。
· 删掉「激活 · 双判据」整卡:没选节点时,属性栏就地列出还差哪几条(点一条定位过去);
两面都齐时盖一枚小检验章,不再占一整张卡。
· 删掉节点拣选行 —— 直接在图上点节点。
· 属性卡用包壳绝对定位:行高由中栏的图定,属性长了在卡内滚,不把图拉长
(实测卡高 467、明细内容 1039、可滚,图框不受影响)。窄轨里属性小卡改单列竖排。
· 顺带校正:上一轮那条「图框下沿对齐左列底栏顶线」的 20px 留白,
三栏改版后左栏已无底栏,没有对齐对象了 —— 改回四边等距(18px)。
**版本可删可改名**(新):
· 删:生效版不可删(先停用,ActiveVersionError → 409)、在途钉版不可删
(那些单要按它跑完,PinnedVersionError → 409);删掉正看的那版会落到剩下的最新版,
一版不剩就回货架。
· 改名:名字是**这条流的身份**,一次改及于所有版本 —— 版本列表上只显示 v1/v2…,
若只改一版的名,列表上什么也看不见,人会以为没生效。
· 5 条单测守两道闸与改名口径;实测走查:改名落库 → 改回;生效版删 409、停用版删 200。
process CONTRACT.md 与产品设计.md 同步。五闸绿。
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KeDBx2PHLavbURXB8LJJ7m
70 lines
2.1 KiB
TypeScript
70 lines
2.1 KiB
TypeScript
/**
|
|
* module: process —— 唯一出口。只做 re-export,不写逻辑(编码规范 §10.1)。
|
|
*/
|
|
export type {
|
|
ActivityContractFace,
|
|
AssembleScope,
|
|
Candidate,
|
|
ClosureInput,
|
|
ClosureReport,
|
|
ClosureViolation,
|
|
NodeInstance,
|
|
OwnerSpec,
|
|
ProcessPackage,
|
|
ProcessService,
|
|
ResolveContext,
|
|
Resolution,
|
|
StartWorkflowInput,
|
|
WorkflowRecord,
|
|
WorkflowState,
|
|
} from './contract.ts';
|
|
export { ActiveVersionError, CallInterfaceViolationError, NotClosedError,
|
|
PinnedVersionError, PositionVacantError, StaleVersionError } from './contract.ts';
|
|
|
|
export type {
|
|
FlowRuntime,
|
|
ActivityDirectory,
|
|
ApprovalGateway,
|
|
Clock,
|
|
FlowEventPublisher,
|
|
IdGenerator,
|
|
OrgDirectory,
|
|
ProcessStore,
|
|
ReceiptNotifier,
|
|
Sfeel,
|
|
TaskGateway,
|
|
} from './port.ts';
|
|
|
|
export type { ProcessServiceDeps } from './internal/usecase/process-service.ts';
|
|
export { createProcessService } from './internal/usecase/process-service.ts';
|
|
|
|
export {
|
|
advanceOrder,
|
|
flatScope,
|
|
dispatchOf,
|
|
rejectRouteOf,
|
|
selectEdges,
|
|
startNodeOf,
|
|
} from './internal/domain/routing.ts';
|
|
|
|
export { checkClosure, closed } from './internal/domain/closure.ts';
|
|
export {
|
|
aggregateWorkflowState,
|
|
FAILURE_DIGESTIONS,
|
|
isDigested,
|
|
nextInstanceNumber,
|
|
resolveOwner,
|
|
} from './internal/domain/owner-resolution.ts';
|
|
|
|
export { createProcessStore } from './internal/adapter/process-store.ts';
|
|
export { nodeInstanceTable, processPackageTable, workflowTable } from './internal/adapter/process-schema.ts';
|
|
|
|
/* Mastra 编译器(M5-1,路线 B:回边成出口、胶合层起新 run)—— adapter 出口 */
|
|
export type { CompiledFlow, CompileHooks, RunResult } from './internal/adapter/workflow-compiler.ts';
|
|
export { compilePackage } from './internal/adapter/workflow-compiler.ts';
|
|
export type { MastraRunner, MastraRuntimeDeps } from './internal/adapter/mastra-runtime.ts';
|
|
export { createMastraRuntime } from './internal/adapter/mastra-runtime.ts';
|
|
/** 自持运行时(默认实现)—— 装配层要包一层观测时得拿得到它 */
|
|
export type { SelfHostedRuntimeDeps } from './internal/runtime/self-hosted-runtime.ts';
|
|
export { createSelfHostedRuntime } from './internal/runtime/self-hosted-runtime.ts';
|