diff --git a/backend/app/blueprints/store.py b/backend/app/blueprints/store.py
index 700711bc..377a0b3f 100644
--- a/backend/app/blueprints/store.py
+++ b/backend/app/blueprints/store.py
@@ -379,7 +379,7 @@ def _derived_people(blueprint: Any) -> list[dict[str, Any]]:
from app.blueprints.templates import freeform
from app.blueprints.templates._common import with_graph
- return freeform.people_rows(with_graph(blueprint.spec or {}, blueprint.graph))
+ return freeform.people_rows(with_graph(blueprint.spec or {}, getattr(blueprint, "graph", None)))
def blueprint_out(blueprint: Any, *, issues: bool = True, extra: list[dict[str, Any]] | None = None) -> dict[str, Any]:
@@ -398,7 +398,7 @@ def blueprint_out(blueprint: Any, *, issues: bool = True, extra: list[dict[str,
"conversation_id": blueprint.conversation_id, "workflow_id": blueprint.workflow_id, "app_id": blueprint.app_id,
"last_trial_run_id": blueprint.last_trial_run_id, "graph_hash": blueprint.graph_hash, "joints": joints,
"copied_from": blueprint.copied_from,
- "reconciler_needed": needs_reconciler(with_graph(blueprint.spec or {}, blueprint.graph)),
+ "reconciler_needed": needs_reconciler(with_graph(blueprint.spec or {}, getattr(blueprint, "graph", None))),
"derived_people": _derived_people(blueprint) if is_freeform(blueprint.spec or {}) else None,
"created_at": blueprint.created_at.isoformat() if blueprint.created_at else None,
"updated_at": blueprint.updated_at.isoformat() if blueprint.updated_at else None,
diff --git a/frontend/src/lib/termsBlueprint.ts b/frontend/src/lib/termsBlueprint.ts
index 6970c069..bfa98369 100644
--- a/frontend/src/lib/termsBlueprint.ts
+++ b/frontend/src/lib/termsBlueprint.ts
@@ -356,6 +356,13 @@ export const BP_EDIT_TEXT = {
reconcilerHint: '这项写入能力没登记查询:写回的结果不明时(请求发出去了、没拿到答复),平台查不了,也不会自动重发,'
+ '要有人去目标系统里看写进去没有。只能由你来选。',
reconcilerUnused: '这项写入能力已经登记了查询,结果不明时平台自己去查:这一项用不上了,发布时不会派给他们。',
+ /**
+ * 自由形的「谁来做」(05-已知遗留 (d)):按导入的图列出,只定由谁做;行名、会签、时限、超时都来自图,要改回画布
+ */
+ freeformPeopleHint: '按导入的图列出:这里只定每一步由谁做,会签、时限、超时和步骤本身在画布上改。',
+ freeformPeopleEmpty: '导入的图里没有要指定由谁处理的步骤。',
+ freeformWho: '谁来做',
+ freeformReadOnly: '图上已经写定,这里不用选',
removeTitle: (where: string) => `删掉${where}?`,
removeConfirm: '删掉',
template: '换一个场景',
diff --git a/frontend/src/pages/blueprints/BlueprintCards.tsx b/frontend/src/pages/blueprints/BlueprintCards.tsx
index be72d9ed..86659199 100644
--- a/frontend/src/pages/blueprints/BlueprintCards.tsx
+++ b/frontend/src/pages/blueprints/BlueprintCards.tsx
@@ -7,6 +7,7 @@
* 哪些项必填(P7)。
*
* 写回卡片上「结果不明时谁去核实」只在目标能力没登记查询时摆(服务端 Blueprint.reconciler_needed),只能由人选(同「谁能看」)。
+ * 自由形的「谁来做」按服务端给的 derived_people 摆(FreeformPeople):骨架是导入的图,卡片只定每一步由谁做。
*
* 每一项可以点「修改」:改完发一个 bp_set(值是纯值,服务端记成来源「你」、已确认);待确认的可以直接点「确认」(只改状态,
* 来源不变),一张卡片上待确认的不止一项时卡头另有「确认全部」,一次修改带上这几项的状态(服务端整批落或整批不落)。
@@ -26,7 +27,7 @@ import {
} from '../../lib/terms'
import { chatBusy, useBlueprint } from '../../store/blueprint'
import type {
- Blueprint, BpDataItem, BpField, BpItem, BpOp, BpStep, ItemStatus, JointState, PlainIssue, TemplateInfo,
+ Blueprint, BpDataItem, BpField, BpItem, BpOp, BpStep, DerivedPerson, ItemStatus, JointState, PlainIssue, TemplateInfo,
} from '../../typesBlueprint'
import { SELF_RECORDS, ValueEditor, valueText, type EditorKind, type EditorScope } from './editors'
import { isItem, missingPaths, visibleCards, type CardKey } from './shared'
@@ -175,6 +176,7 @@ function CardFor({ card, ctx, template }: { card: CardKey; ctx: CardCtx; templat
)
case 'people': {
+ if (ctx.bp.derived_people) return
{BP_EDIT_TEXT.freeformPeopleHint}
+ {rows.length === 0 &&{BP_EDIT_TEXT.freeformPeopleEmpty}
} + {rows.map((row, i) => { + const item = itemOf(row) + return ( +{row.detail}
+ {row.path && item + ?{BP_EDIT_TEXT.freeformReadOnly}
} +