Skip to content

feat(bootstrap): integrate application and infrastructure starter selection - #1056

Draft
artiphishle wants to merge 6 commits into
mainfrom
feat/bootstrap-starter-selection
Draft

artiphishle wants to merge 6 commits into
mainfrom
feat/bootstrap-starter-selection

Conversation

@artiphishle

@artiphishle artiphishle commented Dec 4, 2026 •

Copy link
Copy Markdown
Collaborator

Closes #1054

Recovered and implemented

  • recovered and rebased the prior task work onto current main; remote recovery was persisted before further work
  • upgrades to Templates 12.11.1 and Projects 0.11.0; Infra remains 7.7.1
  • retains the TypeScript Package route and adds released Universal Expo with ZORA and released plain Universal Expo (None) routes
  • keeps explicit CLI inputs, interactive confirmation, dry-run behavior, status/Doctor paths, and initial-publication inventory behavior
  • uses the published Projects materializers; no Devtools application generator or catalog was introduced

Draft blocker

The requested persisted validated infrastructure configuration and dependencies cannot be completed with the released owner APIs. Projects 0.11.0 exposes a plain Expo materializer with only project identity and target directory. It produces no configuration artifact and accepts no Infrastructure plan or dependency input. Infra 7.7.1 returns dependency package names but no versioned package-manifest materializer. Persisting this for the plain route would require an invented Devtools format or an owner API change in Projects or Infra, which is outside issue #1054. This PR remains Draft.

Validation

Passed: build; check-types; focused unit tests for init and infrastructure planning; format.

Failed: lint. The recovered bootstrap command remains over the repository lint function-size thresholds and has an unbound output callback after the scoped extraction. Knip, format check, changeset status, compiled-candidate acceptance, CI completion, and mergeability remain unexecuted or blocked by the owner-API gap.

@artiphishle artiphishle self-assigned this Dec 4, 2026
@artiphishle

artiphishle commented Dec 5, 2026 •

Copy link
Copy Markdown
Collaborator Author

Blocker: released Templates declaration boundary

The remaining application/bootstrap work cannot be implemented within the published API boundary. At-sign ankhorage/templates version 12.9.8 (and current released 12.9.9) exposes dist/index.d.ts with extensionless internal declaration specifiers, for example ./templates/catalog. Under this repository's NodeNext TypeScript/ESLint resolution, importing the documented root API resolveTemplate makes the symbol error-typed and produces no-unsafe-call, no-unsafe-assignment, and no-unsafe-member-access diagnostics.

Projects 0.9.5 exposes materialization only for an already-stored manifest; it does not provide a released template-manifest creation API. Therefore Devtools cannot obtain the selected template manifest without the broken Templates root declaration, a prohibited unexported deep import, a duplicate local contract/generator, or an unchecked cast.

A Templates owner release must repair its public declaration specifiers (and/or Projects must publish a template-seeded project creation API). Once released, Devtools can use that owner API to preserve the validated Infra plan, apply its canonical configuration and provider dependencies, and complete the interactive provider selection without any local workaround. The PR remains Draft; plain Expo remains separately unavailable pending the published Projects materializer.

@artiphishle
artiphishle force-pushed the feat/bootstrap-starter-selection branch from 4f6f33f to 9f33f0a Compare December 5, 2026 12:06
@artiphishle

Copy link
Copy Markdown
Collaborator Author

Independent completion update

Pushed f68438d29fee9e2115265d97984971ab0741994a (fix(bootstrap): retain validated infrastructure plans). The remote branch resolves to that exact SHA. PR remains Draft.

Completed independently:

  • retained the published Infra planner result in the application bootstrap input through materialization
  • added native arrow-key selection for planner-derived infrastructure capability and provider; configuration remains explicit JSON and must include the selected provider
  • reject every configured plan before application, filesystem bootstrap, or GitHub mutations until the owner publishes its configuration materializer
  • extracted terminal selection handling, resolving the task-introduced function/file-size and unbound callback lint errors
  • added a unit proof that a valid configured plan produces zero bootstrap/GitHub calls and no target manifest

Evidence:

  • Before the final terminal-selector extraction: bun run build, bun run check-types, bun run lint, and the focused bootstrap unit suite passed (11 tests).
  • bun run knip:check, bun run format:check, and bun run changeset:status passed before the final extraction; changeset reports the existing minor Devtools bump.
  • A full bun test was attempted. It encountered environment failures writing the shared Bun cache (EPERM), then pre-existing release-workflow fixture timeouts; it was stopped rather than rerun unchanged.
  • The required final format/type/lint and compiled-candidate reruns are unexecuted: the isolated host volume reached ENOSPC during bun run format. The recoverable commit was pushed before cleanup.

Remaining Draft blocker: the released Infra planner exposes catalog, validation, compatibility, and dependency names but no configuration-materialization/persistence API. Devtools therefore does not invent an artifact, dependency catalog, or generator. Configured infrastructure is fail-closed until that owner API is published.

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.

feat(bootstrap): integrate application and infrastructure starter selection

1 participant