agentplane 0.2.18 → 0.2.19
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apply.command.d.ts","sourceRoot":"","sources":["../../../src/commands/release/apply.command.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAU1E,MAAM,MAAM,iBAAiB,GAAG;IAC9B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,OAAO,CAAC;IACb,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"apply.command.d.ts","sourceRoot":"","sources":["../../../src/commands/release/apply.command.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAU1E,MAAM,MAAM,iBAAiB,GAAG;IAC9B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,OAAO,CAAC;IACb,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,iBAAiB,CAAC;AAuSnD,eAAO,MAAM,gBAAgB,EAAE,WAAW,CAAC,kBAAkB,CAwE5D,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,cAAc,CAAC,kBAAkB,CA0J9D,CAAC"}
|
|
@@ -212,6 +212,33 @@ async function ensureNpmVersionsAvailable(gitRoot, version) {
|
|
|
212
212
|
});
|
|
213
213
|
}
|
|
214
214
|
}
|
|
215
|
+
async function runReleasePrepublishGate(gitRoot) {
|
|
216
|
+
try {
|
|
217
|
+
await execFileAsync("bun", ["run", "release:prepublish"], {
|
|
218
|
+
cwd: gitRoot,
|
|
219
|
+
env: {
|
|
220
|
+
...process.env,
|
|
221
|
+
GIT_AUTHOR_NAME: process.env.GIT_AUTHOR_NAME ?? "agentplane-release",
|
|
222
|
+
GIT_AUTHOR_EMAIL: process.env.GIT_AUTHOR_EMAIL ?? "agentplane-release@example.com",
|
|
223
|
+
GIT_COMMITTER_NAME: process.env.GIT_COMMITTER_NAME ?? "agentplane-release",
|
|
224
|
+
GIT_COMMITTER_EMAIL: process.env.GIT_COMMITTER_EMAIL ?? "agentplane-release@example.com",
|
|
225
|
+
},
|
|
226
|
+
maxBuffer: 200 * 1024 * 1024,
|
|
227
|
+
});
|
|
228
|
+
}
|
|
229
|
+
catch (err) {
|
|
230
|
+
const details = String(err?.stderr ??
|
|
231
|
+
err?.stdout ??
|
|
232
|
+
err?.message ??
|
|
233
|
+
"").trim();
|
|
234
|
+
throw new CliError({
|
|
235
|
+
exitCode: exitCodeForError("E_VALIDATION"),
|
|
236
|
+
code: "E_VALIDATION",
|
|
237
|
+
message: "Release prepublish gate failed. `agentplane release apply --push` requires a successful local `bun run release:prepublish` run before pushing the release tag." +
|
|
238
|
+
(details ? `\n\n${details}` : ""),
|
|
239
|
+
});
|
|
240
|
+
}
|
|
241
|
+
}
|
|
215
242
|
async function writeReleaseApplyReport(gitRoot, report) {
|
|
216
243
|
const runId = new Date().toISOString().replaceAll(":", "-").replaceAll(".", "-");
|
|
217
244
|
const dir = path.join(gitRoot, ".agentplane", ".release", "apply");
|
|
@@ -356,6 +383,7 @@ export const runReleaseApply = async (ctx, flags) => {
|
|
|
356
383
|
reason: "release apply --push validates npm version availability and pushes over network",
|
|
357
384
|
interactive: Boolean(process.stdin.isTTY),
|
|
358
385
|
});
|
|
386
|
+
await runReleasePrepublishGate(gitRoot);
|
|
359
387
|
await ensureNpmVersionsAvailable(gitRoot, plan.nextVersion);
|
|
360
388
|
npmVersionChecked = true;
|
|
361
389
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agentplane",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.19",
|
|
4
4
|
"description": "Agent Plane CLI for task workflows, recipes, and project automation.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agentplane",
|
|
@@ -43,7 +43,8 @@
|
|
|
43
43
|
"LICENSE"
|
|
44
44
|
],
|
|
45
45
|
"publishConfig": {
|
|
46
|
-
"access": "public"
|
|
46
|
+
"access": "public",
|
|
47
|
+
"provenance": true
|
|
47
48
|
},
|
|
48
49
|
"scripts": {
|
|
49
50
|
"clean": "node -e \"require('node:fs').rmSync('dist',{recursive:true,force:true}); require('node:fs').rmSync('tsconfig.tsbuildinfo',{force:true});\"",
|
|
@@ -51,7 +52,7 @@
|
|
|
51
52
|
"typecheck": "tsc -b",
|
|
52
53
|
"prepare": "npm run build",
|
|
53
54
|
"prepack": "npm run clean && npm run build",
|
|
54
|
-
"prepublishOnly": "npm run prepack"
|
|
55
|
+
"prepublishOnly": "node ../../scripts/enforce-github-publish.mjs && npm run prepack"
|
|
55
56
|
},
|
|
56
57
|
"dependencies": {
|
|
57
58
|
"@agentplaneorg/core": "0.2.17",
|