@webpresso/agent-kit 0.21.3 → 0.21.4

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.
@@ -6,7 +6,7 @@
6
6
  },
7
7
  "metadata": {
8
8
  "description": "Webpresso agent-kit Claude Code plugin: blueprints, skills, hooks, MCP server",
9
- "version": "0.21.0"
9
+ "version": "0.21.4"
10
10
  },
11
11
  "plugins": [
12
12
  {
@@ -23,5 +23,5 @@
23
23
  ]
24
24
  }
25
25
  ],
26
- "version": "0.21.0"
26
+ "version": "0.21.4"
27
27
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "webpresso",
3
- "version": "0.21.0",
3
+ "version": "0.21.3",
4
4
  "description": "Webpresso agent-kit: blueprints, skills, lore commit protocol, tech-debt lifecycle",
5
5
  "skills": "./skills",
6
6
  "commands": "./commands",
@@ -166,7 +166,9 @@ All packages in the webpresso public umbrella use **Changesets**. Never push
166
166
  To ship a change:
167
167
  1. `vp run changeset` — describe the change and select the bump type.
168
168
  2. Commit the generated `.changeset/<name>.md` alongside your code.
169
- 3. Merge to `main`. The release workflow versions the package and publishes it
169
+ 3. Merge to `main`. The release workflow opens or updates a **Version Packages**
170
+ PR.
171
+ 4. Merge the **Version Packages** PR. The workflow then publishes the package
170
172
  to the public npm registry.
171
173
 
172
174
  ```bash
@@ -50,24 +50,20 @@ Steps 2-3 happen on the feature branch alongside the code change. There is
50
50
  no manual `vp run changeset version` or `vp run changeset publish` step in the
51
51
  normal path — CI owns those for this repository.
52
52
 
53
- ## How releases work (CI-driven, direct-publish on push to `main`)
54
-
55
- **This repo uses a direct-publish flow — there is no \"Version Packages\" PR.**
53
+ ## How releases work (CI-driven Version PR + publish on merge)
56
54
 
57
55
  When a feature branch with a `.changeset/<slug>.md` file merges to `main`,
58
56
  `release.yml` runs the following sequence automatically:
59
57
 
60
- 1. `vp run version` runs `changeset version &&
61
- vp run sync-marketplace-version`. This bumps `package.json`, updates
62
- `CHANGELOG.md`, removes the consumed `.changeset/<slug>.md` files, and
63
- syncs `.claude-plugin/marketplace.json` to match the new version.
64
- 2. `npm publish --provenance --access public` — publishes
65
- `@webpresso/agent-kit` to the public npm registry using the workflow-owned
66
- publish path.
67
- 3. `git push` commits the version bump back to `main` only after publish
68
- succeeds or the version is already published.
69
- 4. CI creates a `release/v<version>` branch with compiled `dist/` committed
70
- for Claude Code marketplace consumers.
58
+ 1. `changesets/action` opens or updates a **Version Packages** PR.
59
+ 2. The action runs `pnpm run version`, which preserves the canonical version
60
+ path: `changeset version && vp run sync-marketplace-version`.
61
+ 3. When the Version PR is merged, CI runs `pnpm run release:publish`, which
62
+ calls `npm publish --provenance --access public`.
63
+ 4. After publish, CI verifies the `v<version>` tag on the mainline version-bump
64
+ commit and creates `release/v<version>` as the separate dist-carrying
65
+ compatibility branch for marketplace consumers.
66
+ 5. GitHub Release objects are disabled in the initial rollout.
71
67
 
72
68
  The workflow supports a manual dry-run trigger:
73
69
  ```bash
@@ -102,8 +98,9 @@ git add .changeset/ && git commit -m "chore: add initial changeset"
102
98
  ```
103
99
 
104
100
  **Do NOT run `vp run changeset version` or `vp run changeset publish` manually**
105
- for established repos — CI owns both steps. Manual execution bypasses the
106
- `sync-marketplace-version` script and the release branch flow.
101
+ for established repos — CI owns both steps through `changesets/action`. Manual
102
+ execution bypasses the Version PR flow, the release branch contract, and the
103
+ evidence gates.
107
104
 
108
105
  ## Release workflow (self-contained Changesets)
109
106
 
@@ -65,8 +65,8 @@ export declare const reviewCadenceSchema: z.ZodEnum<{
65
65
  quarterly: "quarterly";
66
66
  }>;
67
67
  export declare const visibilitySchema: z.ZodEnum<{
68
- private: "private";
69
68
  public: "public";
69
+ private: "private";
70
70
  }>;
71
71
  export declare const taskFileOpSchema: z.ZodEnum<{
72
72
  create: "create";
@@ -5,9 +5,13 @@ const SIGNAL_TO_EXIT_CODE = {
5
5
  SIGKILL: 9,
6
6
  SIGTERM: 15,
7
7
  };
8
+ const DIRECT_ENV_PROFILES = new Set(['none', 'public']);
8
9
  export function buildSecretGateCommand(options) {
9
10
  const runner = options.runner?.trim() || 'with-secrets';
10
11
  const envProfile = options.envProfile?.trim();
12
+ if (runner === 'with-secrets' && envProfile && DIRECT_ENV_PROFILES.has(envProfile)) {
13
+ return { command: options.command, args: [...(options.args ?? [])] };
14
+ }
11
15
  const args = envProfile
12
16
  ? ['--env-profile', envProfile, '--', options.command, ...(options.args ?? [])]
13
17
  : ['--', options.command, ...(options.args ?? [])];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webpresso/agent-kit",
3
- "version": "0.21.3",
3
+ "version": "0.21.4",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
@@ -523,6 +523,7 @@
523
523
  "generate-skills": "bun src/build/generate-skills-dir.ts",
524
524
  "sync-marketplace-version": "bun scripts/sync-marketplace-version.ts",
525
525
  "version": "changeset version && vp run sync-marketplace-version",
526
+ "release:publish": "pnpm run build && npm publish --provenance --access public",
526
527
  "typecheck": "tsc --noEmit",
527
528
  "test": "vitest run",
528
529
  "test:mutation": "bun stryker run stryker.config.ts",