@jc_stack/ez-github 0.1.0-beta.2 → 0.1.0-beta.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.0-beta.4
4
+
5
+ - Add the required Ez release contract so the native updater can admit the package.
6
+ - Publish a corrective beta after the malformed beta.3 package.
7
+
8
+ ## 0.1.0-beta.3
9
+
10
+ - Align the executable, README, package and plugin manifest on the new prerelease version.
11
+ - Add the standard verify and release package-boundary checks; Git/gh transport remains unchanged.
12
+
3
13
  ## 0.1.0-beta.2
4
14
 
5
15
  - Adopt latest-tag publication and the corrected shared publisher main-CI selection. Git/gh transport remains unchanged.
package/CONTRIBUTING.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # Contributing
2
2
 
3
3
  Use one isolated worktree and branch per change. Preserve unrelated state.
4
- Run npm test and git diff --check. Package with npm pack --ignore-scripts;
4
+ Run npm run verify, npm run release:check, npm audit --omit=dev and git diff --check. Package with npm pack --ignore-scripts;
5
5
  test and build the extracted package and verify Ez manager installation.
6
6
  Credentials, argument transport and cancellation changes require negative tests.
7
7
  Never put provider credentials or private records in tests or PRs.
package/README.md CHANGED
@@ -4,8 +4,8 @@ Thin native GitHub CLI and Git plugin for Ez. Private per-agent profile and writ
4
4
  repository volume; no provider API implementation or workflow engine.
5
5
 
6
6
  Requires Node 22+, Docker/Compose and Ez with the cancellation fix (manager release
7
- 0.1.0-beta.13 or newer). Obtain `@jc_stack/ez-github@0.1.0-beta.1` with
8
- `npm pack @jc_stack/ez-github@0.1.0-beta.1 --ignore-scripts`, extract into a permanent
7
+ 0.1.0-beta.13 or newer). Obtain `@jc_stack/ez-github@0.1.0-beta.4` with
8
+ `npm pack @jc_stack/ez-github@0.1.0-beta.4 --ignore-scripts`, extract into a permanent
9
9
  private tools directory, and inspect the extracted package.
10
10
 
11
11
  Inspect this directory with `ez plugins inspect github --source /absolute/package`,
@@ -25,7 +25,7 @@ not encrypted by a keyring. No unattended identity creation or token display.
25
25
 
26
26
  Uninstall preserves data. Revocation is separate in GitHub's authorized applications.
27
27
  Rollback retains volumes; do not run concurrent writers on one repository. Test with
28
- `npm test`, Docker build and manager dispatch. Live GitHub verification needs consent.
28
+ `npm run verify`, `npm run release:check`, Docker build and manager dispatch. Live GitHub verification needs consent.
29
29
 
30
30
  Testing beta: Debian supplies Git/gh updates at image build; the installed image
31
31
  is retained by Ez's source revision. Capture `gh --version` and `git --version` during QA.
package/bin/github.mjs CHANGED
@@ -11,7 +11,7 @@ export function command(args) {
11
11
  if(process.argv[1]&&import.meta.url===pathToFileURL(process.argv[1]).href) {
12
12
  process.umask(0o077);
13
13
  const args=process.argv.slice(2);
14
- if(args[0]==='--version') console.log('ez-github 0.1.0-beta.1');
14
+ if(args[0]==='--version') console.log('ez-github 0.1.0-beta.4');
15
15
  else if(!args.length||args[0]==='--help') console.log('ez github doctor | gh <native arguments> | git <native arguments>\nPrivate repositories: /repos. Native stdin, output and exit codes. Read skills/github/SKILL.md for OAuth onboarding.');
16
16
  else {
17
17
  try {
package/ez-plugin.json CHANGED
@@ -1 +1 @@
1
- {"schemaVersion":1,"id":"github","version":"0.1.0-beta.2","description":"GitHub CLI and Git with a private agent profile and writable repositories","commands":{"github":{"executable":"bin/github.mjs","args":[],"exposure":{"receivesExternalContent":true,"sendsExternally":true,"changesRecords":true,"requiresReview":true}}},"skills":["skills/github/SKILL.md"]}
1
+ {"schemaVersion":1,"id":"github","version":"0.1.0-beta.4","description":"GitHub CLI and Git with a private agent profile and writable repositories","commands":{"github":{"executable":"bin/github.mjs","args":[],"exposure":{"receivesExternalContent":true,"sendsExternally":true,"changesRecords":true,"requiresReview":true}}},"skills":["skills/github/SKILL.md"]}
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"@jc_stack/ez-github","version":"0.1.0-beta.2","description":"Native Git and GitHub CLI with private per-agent profiles for Ez","license":"MIT","engines":{"node":">=22"},"repository":{"type":"git","url":"git+https://github.com/jdorado/ez_github.git"},"homepage":"https://github.com/jdorado/ez_github#readme","bugs":{"url":"https://github.com/jdorado/ez_github/issues"},"publishConfig":{"access":"public","tag": "latest"},"files":["bin","skills","test","Dockerfile",".dockerignore","ez-plugin.json","ez-deployment.json","README.md","LICENSE","CHANGELOG.md","CONTRIBUTING.md","SECURITY.md","THIRD_PARTY_NOTICES.md"],"scripts":{"test":"node --test test/*.test.mjs"}}
1
+ {"name":"@jc_stack/ez-github","version":"0.1.0-beta.4","description":"Native Git and GitHub CLI with private per-agent profiles for Ez","license":"MIT","engines":{"node":">=22"},"packageManager":"npm@10.9.4","repository":{"type":"git","url":"git+https://github.com/jdorado/ez_github.git"},"homepage":"https://github.com/jdorado/ez_github#readme","bugs":{"url":"https://github.com/jdorado/ez_github/issues"},"publishConfig":{"access":"public","tag":"latest"},"ezRelease":{"protocol":1,"kind":"plugin","stateSchema":1,"mainProtocol":1},"files":["bin","skills","test","scripts/release-check.mjs","Dockerfile",".dockerignore","ez-plugin.json","ez-deployment.json","README.md","LICENSE","CHANGELOG.md","CONTRIBUTING.md","SECURITY.md","THIRD_PARTY_NOTICES.md"],"scripts":{"test":"node --test test/*.test.mjs","verify":"node --check bin/github.mjs && npm test","release:check":"node scripts/release-check.mjs"}}
@@ -0,0 +1,63 @@
1
+ // Read-only package boundary check; no credentials or provider access.
2
+ import {execFileSync, spawnSync} from 'node:child_process';
3
+ import {readFileSync} from 'node:fs';
4
+ import assert from 'node:assert/strict';
5
+
6
+ const readJson = path => JSON.parse(readFileSync(path, 'utf8'));
7
+ const pkg = readJson('package.json');
8
+ const manifest = readJson('ez-plugin.json');
9
+ const deployment = readJson('ez-deployment.json');
10
+
11
+ assert.match(pkg.version, /^\d+\.\d+\.\d+-beta\.\d+$/);
12
+ assert.equal(pkg.private, undefined);
13
+ assert.deepEqual(pkg.publishConfig, {access: 'public', tag: 'latest'});
14
+ assert.deepEqual(pkg.ezRelease, {protocol: 1, kind: 'plugin', stateSchema: 1, mainProtocol: 1});
15
+ assert.equal(pkg.version, manifest.version);
16
+ assert.equal(manifest.id, 'github');
17
+ assert.deepEqual(manifest.commands.github, {
18
+ executable: 'bin/github.mjs',
19
+ args: [],
20
+ exposure: {
21
+ receivesExternalContent: true,
22
+ sendsExternally: true,
23
+ changesRecords: true,
24
+ requiresReview: true,
25
+ },
26
+ });
27
+ assert.deepEqual(manifest.skills, ['skills/github/SKILL.md']);
28
+ assert.deepEqual(deployment.commands.github.argv, ['node', '/app/bin/github.mjs']);
29
+ assert.deepEqual(deployment.services.plugin.healthcheck, ['node', '/app/bin/github.mjs', '--version']);
30
+
31
+ const version = spawnSync(process.execPath, ['bin/github.mjs', '--version'], {encoding: 'utf8'});
32
+ assert.equal(version.status, 0, version.stderr);
33
+ assert.equal(version.stdout.trim(), `ez-github ${pkg.version}`);
34
+
35
+ const readme = readFileSync('README.md', 'utf8');
36
+ assert.match(readme, new RegExp(`@jc_stack/ez-github@${pkg.version.replaceAll('.', '\\.')}`));
37
+
38
+ const [pack] = JSON.parse(execFileSync('npm', ['pack', '--dry-run', '--ignore-scripts', '--json'], {encoding: 'utf8'}));
39
+ const files = pack.files.map(file => file.path);
40
+ for (const required of [
41
+ 'bin/github.mjs',
42
+ 'scripts/release-check.mjs',
43
+ 'skills/github/SKILL.md',
44
+ 'test/cli.test.mjs',
45
+ 'Dockerfile',
46
+ '.dockerignore',
47
+ 'ez-plugin.json',
48
+ 'ez-deployment.json',
49
+ 'README.md',
50
+ 'CHANGELOG.md',
51
+ 'CONTRIBUTING.md',
52
+ 'SECURITY.md',
53
+ 'LICENSE',
54
+ 'THIRD_PARTY_NOTICES.md',
55
+ ]) assert.ok(files.includes(required), `Missing ${required}`);
56
+ for (const entry of pkg.files) {
57
+ assert.ok(files.includes(entry) || files.some(file => file.startsWith(`${entry}/`)), `Declared package entry missing: ${entry}`);
58
+ }
59
+ for (const file of files) {
60
+ assert.doesNotMatch(file, /(^|\/)(node_modules|\.git|\.env|state|repos)(\/|$)/, `Private package entry: ${file}`);
61
+ }
62
+
63
+ console.log(JSON.stringify({name: pkg.name, version: pkg.version, files, unpackedSize: pack.unpackedSize}, null, 2));