Skip to content

Commit 10051dc

Browse files
committed
docs: add v0.1.3 changelog and skip CI for docs-only PRs
- Add v0.1.3 changelog entry for plugin .ts/.js loading fix - Skip lint, build, and test jobs when only docs/config files change - Uses dorny/paths-filter to detect code vs docs-only changes Signed-off-by: Simon Davies <simongdavies@users.noreply.github.com>
1 parent 4aa42f2 commit 10051dc

2 files changed

Lines changed: 40 additions & 0 deletions

File tree

.github/workflows/pr-validate.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,37 @@ permissions:
1616
contents: read
1717

1818
jobs:
19+
# Detect if only docs/config changed — skip heavy CI if so
20+
changes:
21+
name: Detect Changes
22+
runs-on: ubuntu-latest
23+
outputs:
24+
code: ${{ steps.filter.outputs.code }}
25+
steps:
26+
- uses: actions/checkout@v6
27+
- uses: dorny/paths-filter@v3
28+
id: filter
29+
with:
30+
filters: |
31+
code:
32+
- 'src/**'
33+
- 'plugins/**'
34+
- 'builtin-modules/**'
35+
- 'tests/**'
36+
- 'scripts/**'
37+
- 'package.json'
38+
- 'package-lock.json'
39+
- 'tsconfig.json'
40+
- 'vitest.config.ts'
41+
- 'Justfile'
42+
- 'Dockerfile'
43+
- '.github/workflows/**'
44+
1945
# Lint, typecheck, and unit tests (needs KVM for sandbox tests)
2046
lint-and-test:
2147
name: Lint & Test
48+
needs: [changes]
49+
if: needs.changes.outputs.code == 'true'
2250
runs-on: [self-hosted, Linux, X64, "1ES.Pool=hld-kvm-amd"]
2351
steps:
2452
- uses: actions/checkout@v6
@@ -48,6 +76,8 @@ jobs:
4876
# See: https://github.com/hyperlight-dev/hyperagent/issues/1
4977
build-and-test:
5078
name: Build & Test (${{ matrix.hypervisor }}-${{ matrix.config }})
79+
needs: [changes]
80+
if: needs.changes.outputs.code == 'true'
5181
strategy:
5282
fail-fast: false
5383
matrix:
@@ -107,6 +137,8 @@ jobs:
107137
# Build Docker image (just setup clones deps so Dockerfile COPY works)
108138
build-docker:
109139
name: Build Docker Image
140+
needs: [changes]
141+
if: needs.changes.outputs.code == 'true'
110142
runs-on: ubuntu-latest
111143
steps:
112144
- uses: actions/checkout@v6

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [v0.1.3] - 2026-03-24
8+
9+
### Fixed
10+
11+
- **Plugin loading under npm** — Plugins failed with "Stripping types is currently unsupported for files under node_modules" when installed via npm. Plugin loader now prefers compiled `.js` over `.ts` when running under `node_modules`, while still using `.ts` in dev mode for live editing
12+
- **Plugin hash/approval consistency**`computePluginHash()`, `loadSource()`, and `verifySourceHash()` now use centralised `resolvePluginSource()` helper to ensure hashing and import use the same file
13+
714
## [v0.1.2] - 2026-03-23
815

916
### Fixed
@@ -91,6 +98,7 @@ Initial public release.
9198
- Path jailing for filesystem plugins
9299
- SSRF protection for fetch plugin (DNS + post-connect IP validation)
93100

101+
[v0.1.3]: https://github.com/hyperlight-dev/hyperagent/releases/tag/v0.1.3
94102
[v0.1.2]: https://github.com/hyperlight-dev/hyperagent/releases/tag/v0.1.2
95103
[v0.1.1]: https://github.com/hyperlight-dev/hyperagent/releases/tag/v0.1.1
96104
[v0.1.0]: https://github.com/hyperlight-dev/hyperagent/releases/tag/v0.1.0

0 commit comments

Comments
 (0)