Files
dify/api/services
Yansong Zhang a03c7dd459 refactor(api): mention token uses [§kind🆔label§] with a single separator — ENG-616
Frontend review (Confluence 491028481) asked to drop the {{#…#}} wrapper (looks
like a Dify template variable) and unify the two separators into one. New token:

    [§<kind>:<id>[:<label>]§]

- [§…§] wrapper uses the section sign § (U+00A7) — never appears in Dify template
  syntax ({{var}} / {{#a.b#}}) nor in normal prompt text, so zero collision (a
  cleaner argument than the old colon-form-invisibility one).
- single ':' separates all three fields; label is the trailing remainder and may
  itself contain ':'.
- MENTION_PATTERN / residual-marker regex / scrub all updated; legacy {{#context#}}
  and {{var}} forms still pass through untouched.

Pure delimiter swap — parse/expand/scrub/validation semantics unchanged.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-10 16:47:20 +08:00
..
2026-06-08 04:53:12 +00:00
2026-06-08 04:53:12 +00:00
2026-05-26 01:12:36 +00:00
2026-05-10 06:04:42 +00:00
2026-06-05 09:38:42 +00:00
2026-06-05 09:38:42 +00:00
2026-06-05 09:38:42 +00:00