Skip to content

Create shared utility package - #2

Merged
artiphishle merged 7 commits into
mainfrom
agent/create-shared-utility-package
Jul 19, 2026
Merged

Create shared utility package#2
artiphishle merged 7 commits into
mainfrom
agent/create-shared-utility-package

Conversation

@artiphishle

@artiphishle artiphishle commented Jul 19, 2026

Copy link
Copy Markdown
Contributor

Summary

  • establish @ankhorage/utility as a public, runtime-neutral Ankhorage package
  • add explicit @ankhorage/utility/project and @ankhorage/utility/regex subpath exports
  • add pure project-trait detection across dependencies, devDependencies, peerDependencies, runtime engines, and package-manager signals
  • detect overlapping TypeScript, JavaScript, Bun, Node, React, React Native, Expo, and Next.js traits
  • add reusable email/HTTP(S) URL-like patterns and predicates with documented semantics
  • add focused tests for project detection and regex behavior
  • enforce the 50-line function limit locally ahead of the shared devtools rule
  • add standard Ankhorage package metadata, strict TypeScript configuration, devtools, Paradox, Knip, Changesets, CI, release workflow, README, AGENTS.md, changelog, and MIT license
  • configure CI to run bunx @ankhorage/ankh doctor validate .

Motivation

This provides the shared foundation required by ankhorage/devtools#30 for automatic base / React / React Native-Expo ESLint profile detection. The project detection API returns composable traits so it can later also be reused by projects such as artiphishle/pkgviz without coupling the API to the devtools policy.

Validation

  • strict TypeScript source-only compilation passed locally for the exported /project and /regex implementation
  • repository/package structure was checked against the current ankhorage/doctor public-package validation requirements
  • all implementation and test functions are kept below 50 lines
  • full Bun build/lint/test/Knip/doctor validation is delegated to PR CI because Bun and outbound package access are unavailable in the execution container

Closes #1

@artiphishle artiphishle self-assigned this Jul 19, 2026
@artiphishle
artiphishle marked this pull request as ready for review July 19, 2026 01:02
@artiphishle
artiphishle merged commit 166bf4a into main Jul 19, 2026
1 check passed
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.

Create shared utility package with project detection and subpath-based utilities

1 participant