Skip to content

Commit e9c2bc9

Browse files
committed
docs(metadata-protocol): state what the free-text rewrite of a bare name was measured to do
Claude-Session: https://claude.ai/code/session_01YRp5z4kK6vgYkrdH97ztsy Co-authored-by: Claude <noreply@anthropic.com>
1 parent c2430b9 commit e9c2bc9

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

‎packages/metadata-protocol/src/protocol.ts‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26453,9 +26453,10 @@ export class ObjectStackProtocolImplementation implements
2645326453
const esc = (s: string) => s.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
2645426454
const re = olds.length ? new RegExp(`(${olds.map(esc).join('|')})(?![A-Za-z0-9_])`, 'g') : null;
2645526455
// ⭐ AT AN OBJECT-REFERENCE PROPERTY, A NAME IS REWRITTEN WHOLE — the
26456-
// only place a BARE name is rewritten. Measured: a free-text rewrite of
26457-
// `ticket` also renames a lookup FIELD called `ticket` (`fields.ticket.
26458-
// name`) and the word in "A support ticket raised by a customer". So a
26456+
// only place a BARE name is rewritten. Measured: putting `ticket` in the
26457+
// free-text rewrite above turns "A support ticket raised by a customer"
26458+
// into "A support iojn2_ticket raised …", and the same match renames the
26459+
// value of a lookup FIELD called `ticket` (`fields.ticket.name`). So a
2645926460
// value is rewritten only where it sits under a property that names an
2646026461
// object — the derived site index (`REFERENCE_SITES`, target `object`:
2646126462
// `reference`, `object`, `objectName`, `objects`, …), read by property

0 commit comments

Comments
 (0)