Skip to content

US4: Scaffold engine — Options, Run(), CLI flags, and asset embedding #17

Closed

Description

@jflowers

User Story 4 — Deployment via unbound init (P2)

Spec: 005 | FR: FR-013, FR-014, FR-015 | SC: SC-004, SC-005
Contract: scaffold-cli.md

Tasks

  • T025 Add DivisorOnly bool and Lang string to Options struct. Modify Run(): language resolution, isDivisorAsset filter, shouldDeployPack filter, empty dir suppression.
  • T026 Update isToolOwned(): convention packs tool-owned unless -custom in filename.
  • T027 Update printSummary(): divisor-specific hint, language detection note.
  • T028 Add --divisor and --lang flags to CLI in cmd/unbound/main.go.
  • T029 [P] Copy all canonical source files to embedded assets at internal/scaffold/assets/opencode/.
  • T030 Update expectedAssetPaths (+12 entries), knownNonEmbeddedFiles (remove review-council.md), expectedDirs, canonicalDirs.
  • T031 Add TestIsToolOwned cases for convention packs.
  • T032 TestRun_DivisorSubset integration test: DivisorOnly=true in Go project.
  • T033 TestRun_DivisorSubset_WithLangFlag: DivisorOnly=true, Lang="typescript".
  • T034 TestRun_DivisorSubset_DefaultFallback: no language markers, verify default pack.
  • T035 Run go test -race -count=1 ./... — all tests pass.
  • T036 Run go build ./... — build succeeds.

Activity

  1. added
    spec-005
    phase-1
    on Mar 19, 2026
  2. jflowers commented on Mar 20, 2026

    @jflowers
    ContributorAuthor

    Completed in PR #42 (feat: implement The Divisor PR Reviewer Council)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    phase-1spec-005

    Type

    No type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions