chore: add copyright headers to keeper, agent, and receipt-cli sources - #232
Open
emirykl wants to merge 1 commit into
Conversation
Prepend the per-file copyright line to the 17 sources listed in Sub-Rosa-Issue#202. In services/receipt-cli/src/index.ts the header goes on line 2 rather than line 1, because the file is an executable whose `#!` shebang must stay first. Placing the comment above it invalidates the shebang and makes tsc report TS18026. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_0187tinPTSTLHxYcEa62BreS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds the per-file copyright line to all 17 sources listed in the issue.
17 files changed, 17 insertions(+), 0 deletions(-) — every added line is the header itself, nothing else is touched.
One deviation, in
services/receipt-cli/src/index.tsThe issue asks for the header as the first line of each file. That one file is an executable and starts with a shebang:
A shebang is only honoured on line 1, and TypeScript reports
TS18026: '#!' can only be used at the start of a fileif anything precedes it. So in that file the header goes on line 2, directly under the shebang:This is what license-header tooling does with shebang files generally. Say the word if you would rather the CLI be left out of this change entirely.
Verification
tsc --noEmitagainst each affected service, all clean:services/receipt-cli/tsconfig.json— clean (in particular, noTS18026)services/agent/tsconfig.json— cleanservices/keeper/tsconfig.json— cleanFixes #202