package: reject unsafe project names

This commit is contained in:
Hermes Agent
2026-09-03 00:19:56 +00:00
parent 475b54eb6a
commit 21716568a5
6 changed files with 32 additions and 5 deletions
+7 -1
View File
@@ -65,7 +65,13 @@ checksum: 1234abcd
`claro.lock` records the release version, lock format, packages, and checksums so future registry work has a stable safety foundation.
## Safety rules
## Project-name safety
`claro new NAME` checks the project name before creating folders. Project names may use only letters, numbers, dash, and underscore, and they must be 64 characters or fewer.
This keeps mistakes like `../bad` from creating a project outside the folder where the learner is working.
## Package-name safety
Package names may use only: