@theholocron/holocron-plugin-1password 5.0.0-alpha.560 → 5.0.0-alpha.561
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/dist/index.d.mts +1 -0
- package/dist/index.mjs +11 -1
- package/package.json +4 -4
package/dist/index.d.mts
CHANGED
|
@@ -156,6 +156,7 @@ export declare function createPlugin(options?: OpPluginOptions): {
|
|
|
156
156
|
connection: import("@theholocron/cli").Probe;
|
|
157
157
|
"export-environment": import("@theholocron/cli").Probe;
|
|
158
158
|
};
|
|
159
|
+
whoami: import("@theholocron/cli").ProviderAction;
|
|
159
160
|
capabilities: {
|
|
160
161
|
vault: () => Vault;
|
|
161
162
|
credentials: () => Credentials;
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ProviderApiError, connectionProbe, ignoreAdvice, resolveCredentialsFile, resolveEnvironmentId, stdoutKind } from "@theholocron/cli";
|
|
1
|
+
import { ProviderApiError, connectionProbe, ignoreAdvice, resolveCredentialsFile, resolveEnvironmentId, stdoutKind, whoamiAction } from "@theholocron/cli";
|
|
2
2
|
import { spawnSync } from "node:child_process";
|
|
3
3
|
import { copyToClipboard, dotenvLine, finishCredentialsFile, isGitIgnored, shredFile, writeCredentialsFile } from "@theholocron/kyber/secrets";
|
|
4
4
|
// src/auth.ts
|
|
@@ -630,6 +630,16 @@ function createPlugin(options = {}) {
|
|
|
630
630
|
}),
|
|
631
631
|
"export-environment": exportEnvironmentProbe(exportEnvironmentDeps(new OpCredentials(ctx.shell), options.repoRoot ?? process.cwd()))
|
|
632
632
|
},
|
|
633
|
+
whoami: whoamiAction({
|
|
634
|
+
provider: "1password",
|
|
635
|
+
token: () => "",
|
|
636
|
+
verify: (token) => verifyToken(token, {
|
|
637
|
+
spawn: options.spawn,
|
|
638
|
+
binary: options.binary
|
|
639
|
+
}),
|
|
640
|
+
tokens: [],
|
|
641
|
+
proveWith: "holocron doctor secrets --env local,dev"
|
|
642
|
+
}),
|
|
633
643
|
capabilities: {
|
|
634
644
|
vault: () => vault(ctx),
|
|
635
645
|
credentials: () => credentials(ctx)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theholocron/holocron-plugin-1password",
|
|
3
|
-
"version": "5.0.0-alpha.
|
|
3
|
+
"version": "5.0.0-alpha.561",
|
|
4
4
|
"description": "Holocron plugin for 1Password. Implements the vault capability via shell-out to the `op` CLI (https://developer.1password.com/docs/cli).",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"1password",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"dist"
|
|
31
31
|
],
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@theholocron/kyber": "^5.0.0-alpha.
|
|
33
|
+
"@theholocron/kyber": "^5.0.0-alpha.561"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@types/node": "^26",
|
|
@@ -43,14 +43,14 @@
|
|
|
43
43
|
"tsx": "4.23.15",
|
|
44
44
|
"typescript": "^6.0.3",
|
|
45
45
|
"vitest": "^5.1.1",
|
|
46
|
-
"@theholocron/cli": "5.0.0-alpha.
|
|
46
|
+
"@theholocron/cli": "5.0.0-alpha.561",
|
|
47
47
|
"@theholocron/eslint-config": "^8.9.0-alpha.24",
|
|
48
48
|
"@theholocron/tsconfig": "^8.9.0-alpha.24",
|
|
49
49
|
"@theholocron/tsdown-config": "^8.9.0-alpha.24",
|
|
50
50
|
"@theholocron/vitest-config": "^8.9.0-alpha.24"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
|
-
"@theholocron/cli": "5.0.0-alpha.
|
|
53
|
+
"@theholocron/cli": "5.0.0-alpha.561"
|
|
54
54
|
},
|
|
55
55
|
"engines": {
|
|
56
56
|
"node": ">=22"
|