@theholocron/holocron-plugin-1password 5.0.0-alpha.231 → 5.0.0-alpha.233

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 CHANGED
@@ -1,5 +1,5 @@
1
- import { spawnSync } from "node:child_process";
2
1
  import { Vault, VerifyTokenFailure, VerifyTokenResult, VerifyTokenResult as VerifyTokenResult$1, VerifyTokenSuccess } from "@theholocron/cli";
2
+ import { spawnSync } from "node:child_process";
3
3
  //#region src/auth.d.ts
4
4
  declare class AuthError extends Error {
5
5
  name: string;
@@ -81,6 +81,9 @@ declare function createContext(options: OpPluginOptions): PluginContext;
81
81
  declare function vault(ctx: PluginContext): Vault;
82
82
  declare function createPlugin(options: OpPluginOptions): {
83
83
  name: string;
84
+ probes: {
85
+ connection: import("@theholocron/cli").Probe;
86
+ };
84
87
  capabilities: {
85
88
  vault: () => Vault;
86
89
  };
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
+ import { ProviderApiError, connectionProbe } from "@theholocron/cli";
1
2
  import { spawnSync } from "node:child_process";
2
- import { ProviderApiError } from "@theholocron/cli";
3
3
  //#region src/auth.ts
4
4
  /**
5
5
  * 1Password plugin "auth" is just verifying the `op` binary is on
@@ -269,6 +269,11 @@ function createPlugin(options) {
269
269
  const ctx = createContext(options);
270
270
  return {
271
271
  name: "@theholocron/holocron-plugin-1password",
272
+ probes: { connection: connectionProbe({
273
+ provider: "1Password",
274
+ token: () => "",
275
+ verify: (token) => verifyToken(token, { spawn: options.spawn })
276
+ }) },
272
277
  capabilities: { vault: () => vault(ctx) }
273
278
  };
274
279
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theholocron/holocron-plugin-1password",
3
- "version": "5.0.0-alpha.231",
3
+ "version": "5.0.0-alpha.233",
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",
@@ -44,10 +44,10 @@
44
44
  "tsx": "4.23.15",
45
45
  "typescript": "^5.9.3",
46
46
  "vitest": "^4.1.11",
47
- "@theholocron/cli": "5.0.0-alpha.231"
47
+ "@theholocron/cli": "5.0.0-alpha.233"
48
48
  },
49
49
  "peerDependencies": {
50
- "@theholocron/cli": "5.0.0-alpha.231"
50
+ "@theholocron/cli": "5.0.0-alpha.233"
51
51
  },
52
52
  "engines": {
53
53
  "node": ">=22"