Publish the slim install refs: drop the prepare script, carry LICENSE and NOTICE (v3.2.5)

AI Assisted
This commit is contained in:
jparkerweb committed 2026-12-03 20:36:09 -08:00
1 parent 44434d5264
commit a03b825951
15 files changed
+49 -21

No files matched your search

+6 -4
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env node
// Publishes the slim install refs of one release: a synthetic commit whose tree
// holds only the runtime payload (install.js, package.json, version.json and
// src/) plus a binding manifest, pushed once as the immutable
// holds only the runtime payload (install.js, package.json, version.json, LICENSE,
// NOTICE and src/) plus a binding manifest, pushed once as the immutable
// `refs/tags/install-vX.Y.Z` and as the new fast-forward tip of
// `refs/heads/release`. Dev-only: lives in scripts/ so it never ships inside a
// skill or the runtime payload it assembles.
@@ -26,7 +26,7 @@ import { fileURLToPath } from "node:url";
export const INSTALL_REF_MANIFEST = ".plan2code-install-ref.json";
// The package scripts that make npm prepare a git dependency with a full dev install (pacote).
const GIT_DEP_LIFECYCLE = new Set(["prepare", "build", "install", "preinstall", "postinstall", "prepack"]);
export const GIT_DEP_LIFECYCLE = new Set(["prepare", "build", "install", "preinstall", "postinstall", "prepack"]);
export const RELEASE_BRANCH_REF = "refs/heads/release";
export const REMOTE = "origin";
const TAG_SHAPE = /^v(\d+\.\d+\.\d+)$/;
@@ -40,7 +40,7 @@ const TAG_SHAPE = /^v(\d+\.\d+\.\d+)$/;
* required on top of these (`workflowSkillSources()`).
*/
export const RUNTIME_PAYLOAD = Object.freeze({
files: Object.freeze(["install.js", "package.json", "version.json"]),
files: Object.freeze(["install.js", "package.json", "version.json", "LICENSE", "NOTICE"]),
prefixes: Object.freeze(["src/"]),
excludedSegments: Object.freeze(["node_modules", ".git", "fixtures", "__fixtures__"]),
forbiddenTopLevel: Object.freeze([
@@ -58,6 +58,8 @@ export const RUNTIME_PAYLOAD = Object.freeze({
"install.js",
"package.json",
"version.json",
"LICENSE",
"NOTICE",
"src/launcher/plan2code.js",
"src/web-console/update-check.mjs",
"src/web-console/console.mjs",