@bookedsolid/reagent 0.15.1 → 0.15.2
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.
|
@@ -21,6 +21,10 @@ export declare function keychainExists(service: string): boolean;
|
|
|
21
21
|
export declare function readClaudeCodeCredential(): AccountCredential | null;
|
|
22
22
|
/**
|
|
23
23
|
* Write back a credential to Claude Code's own keychain entry.
|
|
24
|
+
*
|
|
25
|
+
* Claude Code stores its credential with `-a <os-username>`.
|
|
26
|
+
* macOS `security add-generic-password` requires `-a`, so we
|
|
27
|
+
* use the current OS username to match Claude Code's convention.
|
|
24
28
|
*/
|
|
25
29
|
export declare function writeClaudeCodeCredential(data: string): void;
|
|
26
30
|
//# sourceMappingURL=keychain.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keychain.d.ts","sourceRoot":"","sources":["../../src/platform/keychain.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"keychain.d.ts","sourceRoot":"","sources":["../../src/platform/keychain.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAI9D;;GAEG;AACH,wBAAgB,WAAW,CAAC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,iBAAiB,GAAG,IAAI,CAiBhF;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,OAAO,EAAE,MAAM,GAAG,iBAAiB,GAAG,IAAI,CAWrE;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CASvD;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CASvD;AAED;;GAEG;AACH,wBAAgB,wBAAwB,IAAI,iBAAiB,GAAG,IAAI,CAoBnE;AAED;;;;;;GAMG;AACH,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAc5D"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { execFileSync } from 'node:child_process';
|
|
2
|
+
import { userInfo } from 'node:os';
|
|
2
3
|
const KEYCHAIN_ACCOUNT = 'reagent';
|
|
3
4
|
/**
|
|
4
5
|
* Store a credential blob in macOS Keychain under a reagent-namespaced service.
|
|
@@ -79,8 +80,13 @@ export function readClaudeCodeCredential() {
|
|
|
79
80
|
}
|
|
80
81
|
/**
|
|
81
82
|
* Write back a credential to Claude Code's own keychain entry.
|
|
83
|
+
*
|
|
84
|
+
* Claude Code stores its credential with `-a <os-username>`.
|
|
85
|
+
* macOS `security add-generic-password` requires `-a`, so we
|
|
86
|
+
* use the current OS username to match Claude Code's convention.
|
|
82
87
|
*/
|
|
83
88
|
export function writeClaudeCodeCredential(data) {
|
|
89
|
+
const account = userInfo().username;
|
|
84
90
|
try {
|
|
85
91
|
execFileSync('security', ['delete-generic-password', '-s', 'Claude Code-credentials'], {
|
|
86
92
|
stdio: 'pipe',
|
|
@@ -89,6 +95,6 @@ export function writeClaudeCodeCredential(data) {
|
|
|
89
95
|
catch {
|
|
90
96
|
// Doesn't exist yet
|
|
91
97
|
}
|
|
92
|
-
execFileSync('security', ['add-generic-password', '-s', 'Claude Code-credentials', '-w', data, '-U'], { stdio: 'pipe' });
|
|
98
|
+
execFileSync('security', ['add-generic-password', '-s', 'Claude Code-credentials', '-a', account, '-w', data, '-U'], { stdio: 'pipe' });
|
|
93
99
|
}
|
|
94
100
|
//# sourceMappingURL=keychain.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keychain.js","sourceRoot":"","sources":["../../src/platform/keychain.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"keychain.js","sourceRoot":"","sources":["../../src/platform/keychain.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,QAAQ,E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;AACH,MAAM,UAAU,yBAAyB,CAAC,IAAY;IACpD,MAAM,OAAO,GAAG,QAAQ,EAAE,CAAC,QAAQ,CAAC;IACpC,IAAI,CAAC;QACH,YAAY,CAAC,UAAU,EAAE,CAAC,yBAAyB,EAAE,IAAI,EAAE,yBAAyB,CAAC,EAAE;YACrF,KAAK,EAAE,MAAM;SACd,CAAC,CAAC;IACL,CAAC;IAAC,MAAM,CAAC;QACP,oBAAoB;IACtB,CAAC;IACD,YAAY,CACV,UAAU,EACV,CAAC,sBAAsB,EAAE,IAAI,EAAE,yBAAyB,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,EAC1F,EAAE,KAAK,EAAE,MAAM,EAAE,CAClB,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bookedsolid/reagent",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.2",
|
|
4
4
|
"description": "Governance layer for Claude Code — policy enforcement, hook-based safety gates, and audit logging for AI-assisted projects",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Booked Solid Technology <oss@bookedsolid.tech> (https://bookedsolid.tech)",
|