Skip to content

Commit 25f1613

Browse files
committed
fix(lint): export the two new flow start-input rule ids, and say the start doors enforce the declaration
Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016WV4cytLmJxfAmgPVjUbbW
1 parent 989f345 commit 25f1613

2 files changed

Lines changed: 12 additions & 10 deletions

File tree

‎packages/lint/src/index.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,8 @@ export {
139139
validateFlowApiTriggerSecret,
140140
FLOW_TRIGGER_UNKNOWN_OBJECT,
141141
FLOW_INPUT_UNKNOWN_OBJECT,
142+
FLOW_INPUT_OBJECT_LESS,
143+
FLOW_INPUT_RECORD_READ_AS_LIST,
142144
FLOW_DRAFT_STATUS_AMBIGUOUS,
143145
FLOW_TRIGGER_UNKNOWN_EVENT,
144146
FLOW_TIME_RELATIVE_DESCRIPTOR_INVALID,

‎packages/lint/src/validate-flow-trigger-readiness.ts‎

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -233,10 +233,10 @@ export interface FlowTriggerReadinessFinding {
233233
export const FLOW_TRIGGER_UNKNOWN_OBJECT = 'flow-trigger-unknown-object';
234234
/**
235235
* #29442 (#29425 ruling A) — a start input declared a record reference
236-
* (`variables[].objectName`) names an object this stack does not define. Once
237-
* the start doors enforce the declaration (planned), every door that starts the
238-
* flow by name will load such an input from that object, so a wrong name will
239-
* refuse every start that supplies the input. The same hedge and
236+
* (`variables[].objectName`) names an object this stack does not define. The
237+
* start doors enforce the declaration (PR #30628): every door that starts the
238+
* flow by name loads such an input from that object, so a wrong name
239+
* refuses every start that supplies the input. The same hedge and
240240
* the same closure verdict as `flow-trigger-unknown-object`: advisory with no
241241
* package closure, an error under one.
242242
*/
@@ -1092,10 +1092,10 @@ export function validateFlowTriggerReadiness(
10921092
// family has a use for.
10931093

10941094
// 1i. #29442 (#29425 ruling A) — a start input declared a record reference
1095-
// names an object this stack does not define. Once the start doors
1096-
// enforce the declaration (planned), every door that starts the flow
1097-
// by name will load the input from exactly that name in the caller's
1098-
// scope, so a wrong name will refuse every start that supplies the
1095+
// names an object this stack does not define. The start doors
1096+
// enforce the declaration (PR #30628): every door that starts the flow
1097+
// by name loads the input from exactly that name in the caller's
1098+
// scope, so a wrong name refuses every start that supplies the
10991099
// input. Judged like the trigger's object (1 and 1b-i): a `sys_`
11001100
// name is a platform object and is not judged, and the verdict is the
11011101
// closure's when one is stated. The schema owns the declaration's
@@ -1117,8 +1117,8 @@ export function validateFlowTriggerReadiness(
11171117
{
11181118
message:
11191119
`declares input '${variableName}' the id of a record of object '${objectName}', which this ` +
1120-
`stack does not define — if the name is wrong, every start that supplies the input will be ` +
1121-
`refused once the start doors enforce the declaration.` +
1120+
`stack does not define — if the name is wrong, every start that supplies the input is ` +
1121+
`refused.` +
11221122
suggestName(objectName, objectNames),
11231123
hint:
11241124
`Set the input's objectName to the object's exact registered name, or ignore this if another ` +

0 commit comments

Comments
 (0)