Skip to content

chore: prepare this repository to be public - #8

Merged
acamarata merged 1 commit into
mainfrom
chore/prepare-for-public
Aug 20, 2026
Merged

chore: prepare this repository to be public#8
acamarata merged 1 commit into
mainfrom
chore/prepare-for-public

Conversation

@acamarata

Copy link
Copy Markdown
Contributor

These packages are what an app needs in order to build. While this repo is private, a fork of a public app repo cannot build it, and every consumer's CI has to carry a token just to clone shared libraries. Going public is what lets someone self-host the free Task Bundle from public sources alone.

History audited first

44 commits, 8.5MB scanned. Gitleaks reported two findings, both false positives:

Finding Reality
Access Group A: crypto/handshake a JSDoc line describing FFI access groups
n={key:t} minified Storybook bundle

No private keys, tokens, .env files, or certificates anywhere in history.

Changes

  • Untracks @nself/ui/storybook-static — 68 files, 6.2MB of committed build output. Regenerable via pnpm build-storybook, and the source of one false positive.
  • Adds .gitleaks.toml from the org template. Both findings are allowlisted precisely rather than by loosening the rule. A third surfaced once the org rules were in place — security-header tables written as key: 'Permissions-Policy' — allowlisted to the known header set, not to any key: literal.
  • Adds MIT LICENSE. The repo had none, which for a public dependency blocks anyone downstream.
  • Adds a README covering layout, the sibling-checkout consumption model, and the strictness a contributor will meet (exactOptionalPropertyTypes, noUncheckedIndexedAccess, type-checked tests).

Build clean, typecheck clean, 778 tests pass.

These packages are what an app needs in order to build. Keeping them private
means a fork of a public app repo cannot build it, and it forces every
consumer's CI to carry a token just to clone shared libraries. Making the
repository public is what lets someone self-host the free Task Bundle from
public sources alone.

Audited the full history first — 44 commits, 8.5MB. Gitleaks reported two
findings, both false positives:

- a JSDoc line reading "Access Group A: crypto/handshake operations"
- `n={key:t}` inside a minified Storybook bundle

No private keys, tokens, .env files or certificates anywhere in history.

Changes:

- Untracks @nself/ui/storybook-static — 68 files, 6.2MB of generated bundles
  that were committed. Regenerable with `pnpm build-storybook`, and the source
  of one of the false positives.
- Adds .gitleaks.toml from the org template, with both false positives
  allowlisted precisely rather than by loosening the rule. A third surfaced
  once the org rules were in place: security-header tables written as
  `key: 'Permissions-Policy'`. Allowlisted to the known header set, not to any
  `key:` literal.
- Adds MIT LICENSE. The repository had none, which for a public dependency is
  a blocker for anyone downstream.
- Adds a README covering layout, the sibling-checkout consumption model, and
  the strictness a contributor will meet.

Build clean, typecheck clean, 778 tests pass.
@acamarata
acamarata merged commit c0263fa into main Aug 20, 2026
3 checks passed
@acamarata
acamarata deleted the chore/prepare-for-public branch August 20, 2026 13:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant