@patronage/software-factory 1.0.0-alpha.47 → 1.0.0-alpha.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -1
- package/dist/cloud/gh-shim.mjs +1026 -0
- package/dist/cloud/run.sh +74 -0
- package/dist/cloud/session-env.sh +75 -0
- package/dist/index.d.ts +71 -402
- package/dist/index.js +295 -185
- package/dist/rolldown-runtime-D3KUYPsf.js +12 -0
- package/dist/schemas.d.ts +8 -0
- package/dist/schemas.js +66 -63
- package/package.json +15 -14
- package/dist/rolldown-runtime-D8jQpDG7.js +0 -12
package/README.md
CHANGED
|
@@ -41,7 +41,7 @@ A stacked release train has one terminal release-owning slice. Interior slices d
|
|
|
41
41
|
A stable cut has two phases. Phase 1 is the verified package candidate: steps 1 through 4 below, ending in the attended npm publish, tag, and GitHub release. Phase 2 is post-publication stable-doc convergence: steps 5 and 6, a normal admitted docs PR followed by the read-only convergence assertion from a clean `main`. Stable docs must never claim an unpublished version, so they cannot land in the phase-1 change. Prerelease behavior is unchanged: prerelease notes may land before publish while stable docs keep naming the prior stable version.
|
|
42
42
|
|
|
43
43
|
1. Bump `package.json` to valid SemVer. The assertion derives its expected stable or prerelease channel from the version; it accepts no channel flag. Before publishing, prove production HQ accepts this candidate's proof schema. The manifest bump triggers the CI-only `HQ Deploy` workflow because HQ bundles this package's public schemas. From a clean `main`, record `RELEASE_SHA="$(git rev-parse HEAD)"`, find the `HQ Deploy` run with `gh run list --workflow "HQ Deploy" --commit "$RELEASE_SHA"`, and use `gh run watch <run-id> --exit-status`; an older green deployment does not count. One exception is defined: when the version bump merged earlier inside the release boundary and the release-owning PR touches no `HQ Deploy` path, no run can exist at the release SHA. The gate then binds to the most recent merge that modified an `HQ Deploy`-triggering path; that run must be green at its exact SHA, every later merge up to the release SHA must be outside those paths, and the release notes record which SHA satisfied the gate. Then, outside a sandbox, run `psf hq:flush --cwd <candidate-worktree>` against the candidate's retained `pr-verify-proof`. The release may proceed only when the current proof exists, the exact-SHA deployment passed, and the drain reports that proof `delivered` or `duplicate` (or no pending spool because its original delivery already succeeded), with `rejected 0` and no event remaining. This is an attended release-compatibility gate; it does not make HQ authoritative for ordinary admission.
|
|
44
|
-
2.
|
|
44
|
+
2. Publish through the `Publish factory packages` workflow (dispatch on `main` with the exact version, review its dry run, then approve the `npm-release` environment), or, as the fallback, build and review one pnpm tarball, then publish that exact tarball with `pnpm release:publish` per the [repository operations runbook](../docs/repository-operations.md#publishing). The command is attended: it asks for the exact `name@version` before it publishes. Publishing the workspace directory is not allowed because it rebuilds during `prepack` after the artifact review, and the command refuses a directory. **Always pass `--tag` explicitly, on every publish, prerelease or stable**: `pnpm release:publish "$SOFTWARE_FACTORY_TARBALL" --tag next` for a prerelease, `--tag latest` for a stable cut. The command refuses a missing tag or one that disagrees with the version, checks that pnpm published the reviewed bytes, and reads the tag and integrity back from the registry. A filtered directory publish takes pnpm's recursive path, which passes its own `--tag` (defaulting to `latest`) to npm and therefore ignores the `publishConfig.tag: next` pin both factory packages carry; that is how 1.0.0-alpha.6 briefly took `latest` (#658). The pins stay as belt and braces, but they are not the control. For a raw `pnpm publish`, omitting the flag is not a safe failure: it moves `latest`, which the convergence assertion can only report after the fact. The attended token path does not promise an npm provenance attestation; the source SHA and reviewed tarball SRI are its operational provenance.
|
|
45
45
|
3. Cut the `software-factory-vX.Y.Z` tag and push it.
|
|
46
46
|
4. Cut the GitHub release for that tag, with notes covering features, deletions, breaking changes, and closed issues. Mark it as a prerelease exactly when its SemVer version has a prerelease component. When the release changes the profile `schemaVersion`, state it in the notes — the profile schema version is a separate axis from the package version.
|
|
47
47
|
5. Converge the stable docs after publication. Update affected `software-factory-docs/` pages through a normal admitted docs PR. Stable docs must state the current stable version. Prerelease docs may record the candidate and its migration notes, but must not represent it as the current stable release.
|
|
@@ -102,3 +102,5 @@ process.exitCode = result.status ?? 1;
|
|
|
102
102
|
Install tools without credentials during the environment build, after the repository's own dependency installation. Resolve the shipped installer with `import.meta.resolve("@patronage/software-factory/cloud/install-tools.sh")`, convert that file URL with `fileURLToPath`, and run it through Bash with an absolute bin directory argument. It installs checksum-pinned Linux binaries; macOS, unsupported architectures and archive mismatches fail closed. Put that bin directory on the runtime PATH using the repository's existing setup path. Never resolve secrets during the build or write resolved values to shell profiles or hook export files. The module needs Node 24 and a runtime `OP_SERVICE_ACCOUNT_TOKEN`; it does not install tools or select a runtime.
|
|
103
103
|
|
|
104
104
|
These exports ship from `1.0.0-alpha.47`; `1.0.0-alpha.46` and earlier do not have them. Consumer adoption must pin alpha.47 or later and validate its packed artifact before changing live startup paths. See the source repository's `docs/agents/cloud-setup.md` for Factory-only rollout policy and acceptance.
|
|
105
|
+
|
|
106
|
+
`@patronage/software-factory/cloud/run.sh` (from `1.0.0-alpha.48`) is the launcher for Factory commands in a Claude cloud project thread, which runs no repository `SessionStart` hook: `bash node_modules/@patronage/software-factory/dist/cloud/run.sh <command>`. It sets `FACTORY_SESSION_ID` and the HQ relay settings when the egress proxy injects HQ access, and puts the packaged `gh` shim (HQ read relay for GraphQL, REST and proxy routes for writes) first on `PATH` for that one command. It installs nothing and reads no credential value. See the docs site's "Admit from a Claude cloud thread" page for what a consumer repository adds.
|