Skip to content

Commit b5b6690

Browse files
andrewbonigmethvin
andauthored
Add Windows DPAPI support (#8)
* Add Windows DPAPI support Co-authored-by: Greg Methvin <[email protected]>
1 parent 0170601 commit b5b6690

File tree

11 files changed

+602
-113
lines changed

11 files changed

+602
-113
lines changed

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
* text=auto eol=lf
2+

.github/workflows/ci.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,14 @@ on:
88

99
jobs:
1010
build-and-test:
11-
runs-on: ubuntu-latest
11+
runs-on: ${{ matrix.os }}
1212
permissions:
1313
contents: read
1414
strategy:
1515
fail-fast: false
1616
matrix:
1717
node-version: [20, 22, 24]
18+
os: [ubuntu-latest, windows-latest]
1819
steps:
1920
- name: Checkout
2021
# Latest major (v5). See: https://github.com/actions/checkout
@@ -44,3 +45,7 @@ jobs:
4445

4546
- name: Unit tests
4647
run: pnpm test:unit
48+
49+
- name: Integration tests (Windows DPAPI)
50+
if: runner.os == 'Windows'
51+
run: pnpm test tests/integration/windows-dpapi-live.test.ts

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@
7171
"@alcyone-labs/zod-to-json-schema": "4.0.10",
7272
"@iterable/api": "0.3.0",
7373
"@modelcontextprotocol/sdk": "1.18.1",
74+
"@primno/dpapi": "^2.0.1",
7475
"@types/json-schema": "7.0.15",
7576
"boxen": "8.0.1",
7677
"chalk": "5.6.2",

pnpm-lock.yaml

Lines changed: 17 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)