@sjawhar/claude-envoy 4.9.0 → 4.9.1

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.
@@ -2,5 +2,5 @@
2
2
  "name": "claude-envoy",
3
3
  "description": "Put Envoy events into the Claude Code session's own conversation and expose Envoy MCP tools.",
4
4
  "mcpServers": "./.mcp.json",
5
- "version": "4.9.0"
5
+ "version": "4.9.1"
6
6
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-envoy",
3
- "version": "4.9.0",
3
+ "version": "4.9.1",
4
4
  "description": "Put Envoy events into the Claude Code session's own conversation and expose Envoy MCP tools.",
5
5
  "mcpServers": {}
6
6
  }
package/README.md CHANGED
@@ -415,8 +415,7 @@ every third-party package they inline, written from Bun's metafile by
415
415
  dereferenced, with a fresh `dist/` and `legion/`), which is how to run an unmerged tree.
416
416
  - `bun run verify-build <tar>` (`scripts/verify-build.sh`) is that job's build step: it builds
417
417
  the plugin twice into a scratch directory outside the repository and says so when the two builds
418
- differ, runs the private-name check over the first build's `dist/` and `legion/`,
419
- packs the two directories into `<tar>`, which must be outside the repository, and runs
418
+ differ, packs the two directories into `<tar>`, which must be outside the repository, and runs
420
419
  `release-push.sh check-built` over it, the member checks a build must pass before the job
421
420
  extracts it into the checkout it packs. It writes no file of the checkout, so running it on a
422
421
  pull request's tree changes
@@ -424,7 +423,9 @@ every third-party package they inline, written from Bun's metafile by
424
423
  run it are named in its header, and the jobs that extract the checked tar into their own CI
425
424
  checkout in `release-push.sh`'s `extract-built` paragraph. Pull-request CI runs it, so a skill
426
425
  file that is executable, a symlink or named with a space, or a bundle `BUNDLE_ENTRYPOINTS` no
427
- longer names, fails there instead of failing every release on main.
426
+ longer names, fails there instead of failing every release on main. The private-name check of
427
+ the build runs in a job of its own after the pack (`verify-build.sh`'s header names both), since
428
+ it reads the deployment's term list, which no job that runs dependency code holds.
428
429
  - The build is `Bun.build`, target `bun`, `minify: false`, no sourcemap, notices included. Minification is off entirely, not case by case: the partial-disable form (`{whitespace: false, identifiers: false, syntax: false}`) still routes through Bun 1.3.14's minifying code-generation path, which picks a non-deterministic CJS/ESM interop check on repeated builds of this exact module graph — on top of the syntax minifier's own separate bug, truncating constant-folded multi-operand string concatenation in CI builds, that made the partial form necessary before this. A plain `false` bypasses that whole path; whitespace and identifiers stay readable as a side effect, so independent changes still merge at line level.
429
430
  - The build runs only on the Bun version pinned in the repo-root `.bun-version`, because
430
431
  the bundler's own output depends on the exact Bun build, not only the declared version. Two
@@ -58380,7 +58380,7 @@ var import_nats2 = __toESM(require_mod4(), 1);
58380
58380
 
58381
58381
  // package.json
58382
58382
  var name2 = "@sjawhar/claude-envoy";
58383
- var version2 = "4.9.0";
58383
+ var version2 = "4.9.1";
58384
58384
  var legion = {
58385
58385
  daemonApiVersion: 168
58386
58386
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sjawhar/claude-envoy",
3
- "version": "4.9.0",
3
+ "version": "4.9.1",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Claude Code plugin for Legion's Envoy bus",
6
6
  "type": "module",
@@ -20,7 +20,7 @@
20
20
  # what bun install puts in node_modules, and the skills and agents buildLegionPlugin reads. The
21
21
  # rest is listed by hand and no test checks it: .bun-version, bunfig.toml, the
22
22
  # .gitattributes files, scripts/third-party-notices.ts (and any other module build.ts imports
23
- # from outside the packages below), scripts/pi-plugin-prepack.sh and the three .github paths at
23
+ # from outside the packages below), scripts/pi-plugin-prepack.sh and the two .github paths at
24
24
  # the end. A change that makes build.ts or verify-build.sh read a new file adds it here.
25
25
  #
26
26
  # The rule: whole package directories are listed and only known non-inputs are excluded, so a file
@@ -79,6 +79,5 @@ scripts/third-party-notices.ts
79
79
  scripts/pi-plugin-prepack.sh
80
80
 
81
81
  # The build jobs run these through verify-build.sh, which runs check-built.
82
- .github/scripts/check-private-names.sh
83
82
  .github/scripts/release-push.sh
84
83
  .github/actions/setup-bun
@@ -18,22 +18,26 @@
18
18
  # input missing from it is one no release bumps a version for. tests/build-inputs.test.ts checks
19
19
  # the list against what the bundles and the Legion plugin read, but not against what this script
20
20
  # or build.ts read by path, which the list's header names as listed by hand
21
- # (check-private-names.sh, release-push.sh, .bun-version, the scripts build.ts imports or runs,
22
- # and setup-bun): a new file read here goes into the list by hand.
21
+ # (release-push.sh, .bun-version, the scripts build.ts imports or runs, and setup-bun): a new file
22
+ # read here goes into the list by hand.
23
23
  #
24
24
  # In order, whatever the caller's directory:
25
25
  # 1. `bun scripts/build.ts --out` twice, into two scratch directories, and the two builds'
26
26
  # dist/ and legion/ compared byte for byte, so what the release publishes is what the source
27
27
  # builds to, not one run's accident;
28
- # 2. .github/scripts/check-private-names.sh over the first build, laid out at its repository
29
- # path in a scratch git repository (below);
30
- # 3. `tar -cf <tar>` of the first build's dist/ and legion/, the tar the build job extracts;
31
- # 4. `.github/scripts/release-push.sh check-built <tar>`, the member checks: no symlink, no
28
+ # 2. `tar -cf <tar>` of the first build's dist/ and legion/, the tar the build job extracts;
29
+ # 3. `.github/scripts/release-push.sh check-built <tar>`, the member checks: no symlink, no
32
30
  # executable file, no name outside letters, digits, '.', '_' and '-', and every bundle and
33
31
  # file a build holds (a skill pi-legion ships is staged into legion/ with `cp -R`, which
34
32
  # keeps its modes and symlinks).
35
33
  # Any failure exits non-zero.
36
34
  #
35
+ # The private-name check of the build is not here. Every job that runs this script runs
36
+ # dependency code, so none holds the deployment's term list, which that check reads. A job of its
37
+ # own runs it over the packed tarball's dist/ and legion/, the very bytes this script tars, after
38
+ # the job that packed it: ci-job-claude-envoy.yaml's private-names and release.yaml's
39
+ # claude_envoy_names.
40
+ #
37
41
  # Run from packages/claude-envoy: bun run verify-build <tar outside the repository>
38
42
  set -euo pipefail
39
43
 
@@ -62,7 +66,7 @@ esac
62
66
 
63
67
  scratch=$(mktemp -d)
64
68
  trap 'rm -rf "$scratch"' EXIT
65
- first=$scratch/first/packages/claude-envoy
69
+ first=$scratch/first
66
70
  second=$scratch/second
67
71
 
68
72
  cd "$package_dir"
@@ -73,16 +77,6 @@ if ! differ=$(diff -r -q "$first/dist" "$second/dist" && diff -r -q "$first/legi
73
77
  exit 1
74
78
  fi
75
79
 
76
- # The private-name check runs from a scratch git repository only so the build sits at its
77
- # repository path (packages/claude-envoy/dist/envoy-channel.js, the vendored-NATS exception's
78
- # path): given paths, the check reads them with find and grep, not git. It finds the repository it
79
- # scans from its own path, so a link to it sits in the scratch repository, and it scans the
80
- # build's two directories alone.
81
- mkdir -p "$scratch/first/.github/scripts"
82
- ln -s "$repo_root/.github/scripts/check-private-names.sh" "$scratch/first/.github/scripts/"
83
- git -c init.defaultBranch=main init -q "$scratch/first"
84
- (cd "$scratch/first" && .github/scripts/check-private-names.sh packages/claude-envoy/dist packages/claude-envoy/legion)
85
-
86
80
  tar -cf "$tar_file" -C "$first" dist legion
87
81
  "$repo_root/.github/scripts/release-push.sh" check-built "$tar_file"
88
82
  echo "verify-build.sh: $tar_file holds a build the release publishes"