@harness-lab/cli 0.1.0 → 0.1.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.
- package/README.md +3 -3
- package/bin/harness.js +0 -0
- package/package.json +2 -2
- package/src/session-store.js +1 -17
package/README.md
CHANGED
|
@@ -16,8 +16,8 @@ Current implementation posture:
|
|
|
16
16
|
- targets the existing shared dashboard facilitator APIs
|
|
17
17
|
- defaults to a browser/device approval flow backed by dashboard-side facilitator broker sessions
|
|
18
18
|
- keeps `--auth basic` and `--auth neon` as explicit local-dev/bootstrap fallback modes
|
|
19
|
-
- stores session material in
|
|
20
|
-
-
|
|
19
|
+
- stores session material in a local file under `HARNESS_CLI_HOME` or `~/.harness` by default
|
|
20
|
+
- supports macOS Keychain, Windows Credential Manager, and Linux Secret Service as explicit `HARNESS_SESSION_STORAGE` overrides
|
|
21
21
|
- supports brokered facilitator commands over the same workshop APIs used by the dashboard
|
|
22
22
|
|
|
23
23
|
## Usage
|
|
@@ -96,7 +96,7 @@ Environment variables:
|
|
|
96
96
|
- `HARNESS_FACILITATOR_EMAIL`
|
|
97
97
|
- `HARNESS_FACILITATOR_PASSWORD`
|
|
98
98
|
- `HARNESS_CLI_HOME`
|
|
99
|
-
- `HARNESS_SESSION_STORAGE` (`keychain`, `credential-manager`, `secret-service
|
|
99
|
+
- `HARNESS_SESSION_STORAGE` (`file`, `keychain`, `credential-manager`, or `secret-service`)
|
|
100
100
|
|
|
101
101
|
## Release Gate
|
|
102
102
|
|
package/bin/harness.js
CHANGED
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@harness-lab/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Participant-facing Harness Lab CLI for facilitator auth and workshop operations",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"type": "module",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"README.md"
|
|
32
32
|
],
|
|
33
33
|
"bin": {
|
|
34
|
-
"harness": "
|
|
34
|
+
"harness": "bin/harness.js"
|
|
35
35
|
},
|
|
36
36
|
"scripts": {
|
|
37
37
|
"test": "node --test"
|
package/src/session-store.js
CHANGED
|
@@ -239,23 +239,7 @@ export function getSessionStorageMode(env) {
|
|
|
239
239
|
if (requested === "file" || requested === "keychain" || requested === "credential-manager" || requested === "secret-service") {
|
|
240
240
|
return requested;
|
|
241
241
|
}
|
|
242
|
-
|
|
243
|
-
if (getDeps().platform === "darwin") {
|
|
244
|
-
return "keychain";
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
if (getDeps().platform === "win32") {
|
|
248
|
-
return "credential-manager";
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
if (getDeps().platform === "linux") {
|
|
252
|
-
return "secret-service";
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
throw new SessionStoreError(
|
|
256
|
-
"Harness CLI does not know a secure session store for this platform. Set HARNESS_SESSION_STORAGE=file only if you need an explicit insecure fallback.",
|
|
257
|
-
{ code: "unsupported_platform" },
|
|
258
|
-
);
|
|
242
|
+
return "file";
|
|
259
243
|
}
|
|
260
244
|
|
|
261
245
|
function getStorageHint(storage) {
|