diff --git a/.changeset/catalog-labels.md b/.changeset/catalog-labels.md deleted file mode 100644 index 386eef3a..00000000 --- a/.changeset/catalog-labels.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'gcb-core': minor ---- - -Add the label domain to the catalog: `label:list` (issues read) and `label:create`/`label:edit`/ -`label:delete` (issues write). Deleting requires `--yes`, so the host broker never waits for an -interactive prompt. diff --git a/.changeset/catalog-release-workflow.md b/.changeset/catalog-release-workflow.md deleted file mode 100644 index 8a89bc26..00000000 --- a/.changeset/catalog-release-workflow.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'gcb-core': minor ---- - -Add read-only release and workflow actions to the catalog: `release:list`, `release:view`, -`workflow:list`, and `workflow:view`, with their GitHub permissions, flags and tests. diff --git a/.changeset/comment-delete.md b/.changeset/comment-delete.md deleted file mode 100644 index 57052eaf..00000000 --- a/.changeset/comment-delete.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'gcb-core': minor ---- - -Add `issue:comment-delete` (`issues: write`) and `pr:comment-delete` -(`pull_requests: write`), which DELETE one issue/PR conversation comment through the same fixed -gh api endpoint as the edit actions. diff --git a/.changeset/config-allow.md b/.changeset/config-allow.md deleted file mode 100644 index f4ead4cf..00000000 --- a/.changeset/config-allow.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -'gcb-host': minor ---- - -Add `gcb config allow add|remove ` for one exact entry. Globs, URLs, -wildcards and a `.git` suffix are refused. It edits the entry with `parseDocument`, so comments and -formatting survive, keeps LF or CRLF line endings, rejects mixed endings, validates the result with -the same loader as the daemon, and replaces the file atomically. It also rejects host keys that -differ only by case, which would otherwise leave one block silently unreachable. It serializes -allow updates with a target-keyed lock, refuses to remove the last entry, and reports one line with -`entry=… reload=unconfirmed signal=unavailable`: the daemon watches the config directory, but the -command does not signal it, and restart-only keys still need a restart. `config edit` stays an -in-place editor and needs no directory write. A lock left by a crash fails closed and names the path -for an operator to remove. diff --git a/.changeset/host-claim-report.md b/.changeset/host-claim-report.md deleted file mode 100644 index 2fc147e3..00000000 --- a/.changeset/host-claim-report.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'gcb-core': patch -'gcb-host': patch ---- - -Report requests left in a working file by a host broker that exited, instead of leaving them to -disappear silently. Recovery never executes the action again: it writes an explicit outcome-unknown -error for the caller to verify before retrying, and keeps an answer that was already written. -A claim whose recorded owner is still alive is never recovered, regardless of age, and the recovery -error is published only if no result exists, so it cannot overwrite a real answer. diff --git a/.changeset/host-status.md b/.changeset/host-status.md deleted file mode 100644 index 12abe9d1..00000000 --- a/.changeset/host-status.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'gcb-core': minor -'gcb-host': minor ---- - -Record the resolved config path, working directory and package version in a fixed host-private -`~/.gcb-host/status.json` (not beside a config and not in the container-writable channel marker), and -add `gcb host status` (JSON, no options, no config argument). The status file is written at daemon startup -with `config: null`, updated after a successful config load, is read/written with -`readJson`/`writeJsonAtomic`, and is never read from the caller's cwd. diff --git a/.changeset/issue-comment-edit.md b/.changeset/issue-comment-edit.md deleted file mode 100644 index e1035381..00000000 --- a/.changeset/issue-comment-edit.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -'gcb-core': minor ---- - -Add `issue:comment-edit` (`issues: write`) and `pr:comment-edit` (`pull_requests: write`), which -PATCH one issue/PR conversation comment through a fixed gh api endpoint. The body travels in an -`--input` JSON file, never in argv. `pr:comment` also gains the person route, matching -`issue:comment`. diff --git a/.changeset/jq-proxy-secret.md b/.changeset/jq-proxy-secret.md deleted file mode 100644 index 5baf0202..00000000 --- a/.changeset/jq-proxy-secret.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -'gcb-host': patch ---- - -Close the remaining `--jq` environment leak: gh already receives a whitelisted environment with the -token in its isolated config, but a proxy URL carrying a username or password was still visible as -`HTTPS_PROXY`. Such a proxy now makes `--jq` fail, so the expression -cannot read proxy credentials. The host-broker route rejects `--jq` entirely, because its gh -program inherits the selected host account environment. diff --git a/.changeset/submodule-fork.md b/.changeset/submodule-fork.md deleted file mode 100644 index 39038221..00000000 --- a/.changeset/submodule-fork.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'gcb-core': minor -'gcb-host': minor ---- - -Serve host-broker channels for submodules nested in a checkout, while keeping the one-level scan -bounded. Read `.git` pointers as bounded, non-blocking regular files. Check the App installation -before an app-routed action and refuse an uninstalled target with a `--as-user` hint, and add -`allowFork` so an allowlisted public fork can authorize a catalogued action on its public -parent/source after GitHub verifies the relationship. diff --git a/packages/client/CHANGELOG.md b/packages/client/CHANGELOG.md index 126f836a..8292453a 100644 --- a/packages/client/CHANGELOG.md +++ b/packages/client/CHANGELOG.md @@ -1,5 +1,12 @@ # gcb-client +## 0.7.0 + +### Patch Changes + +- Updated dependencies [[`d247ec5`](https://github.com/code-vaults/git-credential-broker/commit/d247ec5cdd624e1c45376f887ae25405bdbeb1c9), [`b83dd51`](https://github.com/code-vaults/git-credential-broker/commit/b83dd51e012f7566202b5d31c8dca7a9580087e5), [`70eff30`](https://github.com/code-vaults/git-credential-broker/commit/70eff304474522fba9b0383d90918bbe9470abdb), [`68eb0ff`](https://github.com/code-vaults/git-credential-broker/commit/68eb0ff8080226f2f6eb1d03ba9517da5278b7c2), [`80e697f`](https://github.com/code-vaults/git-credential-broker/commit/80e697fe2183952f5612a7f29d2a6ba3830e489e), [`eee2074`](https://github.com/code-vaults/git-credential-broker/commit/eee207439cb643d1d0f49895609bb17f6bbda639), [`f596356`](https://github.com/code-vaults/git-credential-broker/commit/f596356b30413001c9dee30621b978cb2bd69e88)]: + - gcb-core@0.7.0 + ## 0.6.0 ### Patch Changes diff --git a/packages/client/package.json b/packages/client/package.json index a57c97cc..68c022fd 100644 --- a/packages/client/package.json +++ b/packages/client/package.json @@ -1,6 +1,6 @@ { "name": "gcb-client", - "version": "0.6.0", + "version": "0.7.0", "description": "Container-side gcb client: credential helper, setup, and socket-backed commands.", "license": "MIT", "author": "JounQin ", @@ -28,7 +28,7 @@ } }, "dependencies": { - "gcb-core": "0.6.0" + "gcb-core": "0.7.0" }, "publishConfig": { "access": "public", diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.md index e9a51b2a..15e4bacd 100644 --- a/packages/core/CHANGELOG.md +++ b/packages/core/CHANGELOG.md @@ -1,5 +1,45 @@ # gcb-core +## 0.7.0 + +### Minor Changes + +- [#117](https://github.com/code-vaults/git-credential-broker/pull/117) [`d247ec5`](https://github.com/code-vaults/git-credential-broker/commit/d247ec5cdd624e1c45376f887ae25405bdbeb1c9) Thanks [@JounQin](https://github.com/JounQin)! - Add the label domain to the catalog: `label:list` (issues read) and `label:create`/`label:edit`/ + `label:delete` (issues write). Deleting requires `--yes`, so the host broker never waits for an + interactive prompt. + +- [#114](https://github.com/code-vaults/git-credential-broker/pull/114) [`b83dd51`](https://github.com/code-vaults/git-credential-broker/commit/b83dd51e012f7566202b5d31c8dca7a9580087e5) Thanks [@i1stG](https://github.com/i1stG)! - Add read-only release and workflow actions to the catalog: `release:list`, `release:view`, + `workflow:list`, and `workflow:view`, with their GitHub permissions, flags and tests. + +- [#116](https://github.com/code-vaults/git-credential-broker/pull/116) [`70eff30`](https://github.com/code-vaults/git-credential-broker/commit/70eff304474522fba9b0383d90918bbe9470abdb) Thanks [@JounQin](https://github.com/JounQin)! - Add `issue:comment-delete` (`issues: write`) and `pr:comment-delete` + (`pull_requests: write`), which DELETE one issue/PR conversation comment through the same fixed + gh api endpoint as the edit actions. + +- [#119](https://github.com/code-vaults/git-credential-broker/pull/119) [`80e697f`](https://github.com/code-vaults/git-credential-broker/commit/80e697fe2183952f5612a7f29d2a6ba3830e489e) Thanks [@JounQin](https://github.com/JounQin)! - Record the resolved config path, working directory and package version in a fixed host-private + `~/.gcb-host/status.json` (not beside a config and not in the container-writable channel marker), and + add `gcb host status` (JSON, no options, no config argument). The status file is written at daemon startup + with `config: null`, updated after a successful config load, is read/written with + `readJson`/`writeJsonAtomic`, and is never read from the caller's cwd. + +- [#115](https://github.com/code-vaults/git-credential-broker/pull/115) [`eee2074`](https://github.com/code-vaults/git-credential-broker/commit/eee207439cb643d1d0f49895609bb17f6bbda639) Thanks [@i1stG](https://github.com/i1stG)! - Add `issue:comment-edit` (`issues: write`) and `pr:comment-edit` (`pull_requests: write`), which + PATCH one issue/PR conversation comment through a fixed gh api endpoint. The body travels in an + `--input` JSON file, never in argv. `pr:comment` also gains the person route, matching + `issue:comment`. + +- [#108](https://github.com/code-vaults/git-credential-broker/pull/108) [`f596356`](https://github.com/code-vaults/git-credential-broker/commit/f596356b30413001c9dee30621b978cb2bd69e88) Thanks [@JounQin](https://github.com/JounQin)! - Serve host-broker channels for submodules nested in a checkout, while keeping the one-level scan + bounded. Read `.git` pointers as bounded, non-blocking regular files. Check the App installation + before an app-routed action and refuse an uninstalled target with a `--as-user` hint, and add + `allowFork` so an allowlisted public fork can authorize a catalogued action on its public + parent/source after GitHub verifies the relationship. + +### Patch Changes + +- [#104](https://github.com/code-vaults/git-credential-broker/pull/104) [`68eb0ff`](https://github.com/code-vaults/git-credential-broker/commit/68eb0ff8080226f2f6eb1d03ba9517da5278b7c2) Thanks [@JounQin](https://github.com/JounQin)! - Report requests left in a working file by a host broker that exited, instead of leaving them to + disappear silently. Recovery never executes the action again: it writes an explicit outcome-unknown + error for the caller to verify before retrying, and keeps an answer that was already written. + A claim whose recorded owner is still alive is never recovered, regardless of age, and the recovery + error is published only if no result exists, so it cannot overwrite a real answer. + ## 0.6.0 ### Minor Changes diff --git a/packages/core/package.json b/packages/core/package.json index df6e9ec2..5030e418 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "gcb-core", - "version": "0.6.0", + "version": "0.7.0", "description": "Shared command runtime and protocol for gcb-client and gcb-host.", "license": "MIT", "author": "JounQin ", diff --git a/packages/host/CHANGELOG.md b/packages/host/CHANGELOG.md index 1029c006..20e18e79 100644 --- a/packages/host/CHANGELOG.md +++ b/packages/host/CHANGELOG.md @@ -1,5 +1,48 @@ # gcb-host +## 0.7.0 + +### Minor Changes + +- [#103](https://github.com/code-vaults/git-credential-broker/pull/103) [`c040d5e`](https://github.com/code-vaults/git-credential-broker/commit/c040d5e73f7eede891800f1cae8ad9b3903dbab6) Thanks [@JounQin](https://github.com/JounQin)! - Add `gcb config allow add|remove ` for one exact entry. Globs, URLs, + wildcards and a `.git` suffix are refused. It edits the entry with `parseDocument`, so comments and + formatting survive, keeps LF or CRLF line endings, rejects mixed endings, validates the result with + the same loader as the daemon, and replaces the file atomically. It also rejects host keys that + differ only by case, which would otherwise leave one block silently unreachable. It serializes + allow updates with a target-keyed lock, refuses to remove the last entry, and reports one line with + `entry=… reload=unconfirmed signal=unavailable`: the daemon watches the config directory, but the + command does not signal it, and restart-only keys still need a restart. `config edit` stays an + in-place editor and needs no directory write. A lock left by a crash fails closed and names the path + for an operator to remove. + +- [#119](https://github.com/code-vaults/git-credential-broker/pull/119) [`80e697f`](https://github.com/code-vaults/git-credential-broker/commit/80e697fe2183952f5612a7f29d2a6ba3830e489e) Thanks [@JounQin](https://github.com/JounQin)! - Record the resolved config path, working directory and package version in a fixed host-private + `~/.gcb-host/status.json` (not beside a config and not in the container-writable channel marker), and + add `gcb host status` (JSON, no options, no config argument). The status file is written at daemon startup + with `config: null`, updated after a successful config load, is read/written with + `readJson`/`writeJsonAtomic`, and is never read from the caller's cwd. + +- [#108](https://github.com/code-vaults/git-credential-broker/pull/108) [`f596356`](https://github.com/code-vaults/git-credential-broker/commit/f596356b30413001c9dee30621b978cb2bd69e88) Thanks [@JounQin](https://github.com/JounQin)! - Serve host-broker channels for submodules nested in a checkout, while keeping the one-level scan + bounded. Read `.git` pointers as bounded, non-blocking regular files. Check the App installation + before an app-routed action and refuse an uninstalled target with a `--as-user` hint, and add + `allowFork` so an allowlisted public fork can authorize a catalogued action on its public + parent/source after GitHub verifies the relationship. + +### Patch Changes + +- [#104](https://github.com/code-vaults/git-credential-broker/pull/104) [`68eb0ff`](https://github.com/code-vaults/git-credential-broker/commit/68eb0ff8080226f2f6eb1d03ba9517da5278b7c2) Thanks [@JounQin](https://github.com/JounQin)! - Report requests left in a working file by a host broker that exited, instead of leaving them to + disappear silently. Recovery never executes the action again: it writes an explicit outcome-unknown + error for the caller to verify before retrying, and keeps an answer that was already written. + A claim whose recorded owner is still alive is never recovered, regardless of age, and the recovery + error is published only if no result exists, so it cannot overwrite a real answer. + +- [#113](https://github.com/code-vaults/git-credential-broker/pull/113) [`5c35831`](https://github.com/code-vaults/git-credential-broker/commit/5c358312b303da5b590a6b333c313854cbda7169) Thanks [@i1stG](https://github.com/i1stG)! - Close the remaining `--jq` environment leak: gh already receives a whitelisted environment with the + token in its isolated config, but a proxy URL carrying a username or password was still visible as + `HTTPS_PROXY`. Such a proxy now makes `--jq` fail, so the expression + cannot read proxy credentials. The host-broker route rejects `--jq` entirely, because its gh + program inherits the selected host account environment. +- Updated dependencies [[`d247ec5`](https://github.com/code-vaults/git-credential-broker/commit/d247ec5cdd624e1c45376f887ae25405bdbeb1c9), [`b83dd51`](https://github.com/code-vaults/git-credential-broker/commit/b83dd51e012f7566202b5d31c8dca7a9580087e5), [`70eff30`](https://github.com/code-vaults/git-credential-broker/commit/70eff304474522fba9b0383d90918bbe9470abdb), [`68eb0ff`](https://github.com/code-vaults/git-credential-broker/commit/68eb0ff8080226f2f6eb1d03ba9517da5278b7c2), [`80e697f`](https://github.com/code-vaults/git-credential-broker/commit/80e697fe2183952f5612a7f29d2a6ba3830e489e), [`eee2074`](https://github.com/code-vaults/git-credential-broker/commit/eee207439cb643d1d0f49895609bb17f6bbda639), [`f596356`](https://github.com/code-vaults/git-credential-broker/commit/f596356b30413001c9dee30621b978cb2bd69e88)]: + - gcb-core@0.7.0 + ## 0.6.0 ### Patch Changes diff --git a/packages/host/package.json b/packages/host/package.json index 1c76d822..c037892e 100644 --- a/packages/host/package.json +++ b/packages/host/package.json @@ -1,6 +1,6 @@ { "name": "gcb-host", - "version": "0.6.0", + "version": "0.7.0", "description": "Host-side gcb broker, configuration, providers and administration commands.", "license": "MIT", "author": "JounQin ", @@ -28,7 +28,7 @@ } }, "dependencies": { - "gcb-core": "0.6.0", + "gcb-core": "0.7.0", "node-fetch-native": "^1.6.7", "x-fetch": "^0.3.0", "yaml": "^2.9.1" diff --git a/yarn.lock b/yarn.lock index 6f6a0c91..a191d346 100644 --- a/yarn.lock +++ b/yarn.lock @@ -477,13 +477,13 @@ __metadata: version: 0.0.0-use.local resolution: "gcb-client@workspace:packages/client" dependencies: - gcb-core: "npm:0.6.0" + gcb-core: "npm:0.7.0" bin: gcb: ./bin/gcb.js languageName: unknown linkType: soft -"gcb-core@npm:0.6.0, gcb-core@workspace:packages/core": +"gcb-core@npm:0.7.0, gcb-core@workspace:packages/core": version: 0.0.0-use.local resolution: "gcb-core@workspace:packages/core" languageName: unknown @@ -493,7 +493,7 @@ __metadata: version: 0.0.0-use.local resolution: "gcb-host@workspace:packages/host" dependencies: - gcb-core: "npm:0.6.0" + gcb-core: "npm:0.7.0" node-fetch-native: "npm:^1.6.7" x-fetch: "npm:^0.3.0" yaml: "npm:^2.9.1"