Skip to content

Commit 922bc3d

Browse files
committed
fix(lint): declare the barrel widening in the changeset, and put startNodeOf's docblock back above it
Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016WV4cytLmJxfAmgPVjUbbW
1 parent d3774af commit 922bc3d

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎.changeset/30633-flow-input-declaration-lint.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
fix(lint): `os validate` warns on a flow start input whose record declaration (`objectName`) can never work as written
66

7-
Clause-②: no
7+
Clause-②: yes (widening) — `@objectstack/lint` exports two new rule-id constants, `FLOW_INPUT_OBJECT_LESS` and `FLOW_INPUT_RECORD_READ_AS_LIST`; nothing that passed before is refused.
88
Metadata-protocol: none
99

1010
Two new warnings from the flow trigger-readiness rule, beside `flow-input-unknown-object`. Both are advisory: no build or publish that passed before is refused.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,6 @@ function descriptorRefusal(issues: ReadonlyArray<{ code: string; path: ReadonlyA
521521
return `${at}${schemaRefusalHead(first.message)}${moreIssues(issues.length)}`;
522522
}
523523

524-
/** The start node of a flow definition, if any. */
525524
/**
526525
* The object-less action keys, as `isObjectLessActionKey`
527526
* (`packages/objectql/src/action-governance.ts`) answers them for a non-empty
@@ -558,6 +557,7 @@ function nonEmptyString(value: unknown): string | undefined {
558557
return typeof value === 'string' && value !== '' ? value : undefined;
559558
}
560559

560+
/** The start node of a flow definition, if any. */
561561
function startNodeOf(flow: AnyRec): { node: AnyRec; index: number } | undefined {
562562
const nodes = Array.isArray(flow.nodes) ? (flow.nodes as AnyRec[]) : [];
563563
const index = nodes.findIndex((n) => n?.type === 'start');

0 commit comments

Comments
 (0)