@theholocron/holocron-plugin-infisical 5.0.0-alpha.422 → 5.0.0-alpha.423

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 CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  Infisical plugin for [Holocron](../cli). Implements the `vault`
6
6
  capability against [Infisical's REST API](https://infisical.com/docs/api-reference/overview/introduction),
7
- plus exports `verifyToken` + `AUTH_HINT` for use by `holocron auth`.
7
+ plus exports `verifyToken` + `AUTH_HINT` for use by `holocron check token`.
8
8
 
9
9
  ## One of several vault providers
10
10
 
@@ -45,7 +45,7 @@ Token resolution order:
45
45
  2. `HOLOCRON_INFISICAL_TOKEN` env var (preferred — explicit intent)
46
46
  3. `INFISICAL_TOKEN` env var (Infisical-native, works in CI)
47
47
  4. Keyring `infisical.<org>` — tried first when an org is active via `--org`, `HOLOCRON_ORG`, or `org` in `holocron.config.ts`
48
- 5. Keyring `infisical` — unnamespaced fallback; set via `holocron auth set infisical <token>`
48
+ 5. Keyring `infisical` — unnamespaced fallback; set via `holocron new token infisical <token>`
49
49
  6. `AuthError` naming all five options + the bootstrap hint
50
50
 
51
51
  ## Setup
@@ -71,9 +71,9 @@ tracked as a follow-up; for now, use one of the two above.
71
71
  ```bash
72
72
  # 1. Generate the token per the note above.
73
73
  # 2. Hand it off to holocron's keyring (one-shot):
74
- holocron auth set infisical <TOKEN>
74
+ holocron new token infisical <TOKEN>
75
75
  # 3. Verify (calls GET /v1/workspace and reports accessible workspaces):
76
- holocron auth check infisical
76
+ holocron check token infisical
77
77
 
78
78
  ```
79
79
 
@@ -125,7 +125,7 @@ doesn't make sense.
125
125
  | `write` | `POST /v3/secrets/raw/{name}` (create); falls back to `PATCH` on "already exists" body for upsert semantics. |
126
126
  | `list` | `GET /v3/secrets/raw` at the default `workspace + environment + secretPath=/`. |
127
127
  | `environments` | `GET /v1/workspace/{workspaceId}`, returns each environment's `slug`. |
128
- | `readEnvironment` | `GET /v3/secrets/raw?workspaceId&environment=<id>` — bulk KEY=VALUE dump for `holocron secrets sync`. |
128
+ | `readEnvironment` | `GET /v3/secrets/raw?workspaceId&environment=<id>` — bulk KEY=VALUE dump for `holocron sync secrets`. |
129
129
  | `ensureProject` | `POST /v2/workspace` with `{ projectName, slug }`. Treats 400/409/422 "already exists" as idempotent no-op. |
130
130
  | `ensureEnvironment` | `POST /v1/workspace/{project}/environments` with `{ environmentName, environmentSlug }`. Same idempotency semantics. |
131
131
 
package/dist/index.d.mts CHANGED
@@ -21,7 +21,7 @@ export declare class InfisicalVault implements Vault {
21
21
  private readonly environment;
22
22
  /**
23
23
  * Cache of resolved workspace name/slug → id. `ensureEnvironment`
24
- * is called once per environment during `holocron repo setup` (dev / stg
24
+ * is called once per environment during `holocron setup` (dev / stg
25
25
  * / prd), so a single `GET /v1/workspace` lookup covers all three
26
26
  * calls in the same run.
27
27
  */
@@ -71,7 +71,7 @@ export declare function createPlugin(options: InfisicalPluginOptions): {
71
71
  };
72
72
  };
73
73
  /**
74
- * One-line hint printed by `holocron auth set infisical` when no
74
+ * One-line hint printed by `holocron new token infisical` when no
75
75
  * token is supplied or the supplied token is rejected.
76
76
  */
77
77
  export declare const AUTH_HINT: string;
package/dist/index.mjs CHANGED
@@ -7,7 +7,7 @@ const resolveToken = createResolveToken({
7
7
  envName: "HOLOCRON_INFISICAL_TOKEN",
8
8
  vendorEnvName: "INFISICAL_TOKEN",
9
9
  keyringService: "infisical",
10
- errorMessage: "no Infisical token found. Pass --token <TOKEN>, set HOLOCRON_INFISICAL_TOKEN / INFISICAL_TOKEN, or run: holocron auth set infisical <TOKEN>"
10
+ errorMessage: "no Infisical token found. Pass --token <TOKEN>, set HOLOCRON_INFISICAL_TOKEN / INFISICAL_TOKEN, or run: holocron new token infisical <TOKEN>"
11
11
  });
12
12
  /** Every token this plugin takes, for `holocron doctor tokens`. */
13
13
  const tokens = [resolveToken.token];
@@ -23,7 +23,7 @@ var InfisicalVault = class {
23
23
  environment;
24
24
  /**
25
25
  * Cache of resolved workspace name/slug → id. `ensureEnvironment`
26
- * is called once per environment during `holocron repo setup` (dev / stg
26
+ * is called once per environment during `holocron setup` (dev / stg
27
27
  * / prd), so a single `GET /v1/workspace` lookup covers all three
28
28
  * calls in the same run.
29
29
  */
@@ -143,8 +143,8 @@ function hasAlreadyExistsBody(details) {
143
143
  }
144
144
  // src/verify-token.ts
145
145
  /**
146
- * `verifyToken` — plugin-level export used by `holocron auth set` +
147
- * `holocron auth check`. Hits `GET /v1/workspace` and interprets the
146
+ * `verifyToken` — plugin-level export used by `holocron new token` +
147
+ * `holocron check token`. Hits `GET /v1/workspace` and interprets the
148
148
  * response permissively:
149
149
  *
150
150
  * - 200 → token is valid AND has workspace-list scope; report the
@@ -224,8 +224,8 @@ function createPlugin(options) {
224
224
  };
225
225
  }
226
226
  /**
227
- * One-line hint printed by `holocron auth set infisical` when no
227
+ * One-line hint printed by `holocron new token infisical` when no
228
228
  * token is supplied or the supplied token is rejected.
229
229
  */
230
- const AUTH_HINT = "generate a Token Auth token on your machine identity (organization → access control → identities → your identity → add auth method → Token Auth → create token) OR a Personal API Token, then: holocron auth set infisical <TOKEN>. NOT Universal Auth's Client Secret — that needs a login exchange this plugin doesn't do yet.";
230
+ const AUTH_HINT = "generate a Token Auth token on your machine identity (organization → access control → identities → your identity → add auth method → Token Auth → create token) OR a Personal API Token, then: holocron new token infisical <TOKEN>. NOT Universal Auth's Client Secret — that needs a login exchange this plugin doesn't do yet.";
231
231
  export { AUTH_HINT, AuthError, InfisicalVault, createContext, createInfisicalClient, createPlugin, resolveToken, tokens, vault, verifyToken };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theholocron/holocron-plugin-infisical",
3
- "version": "5.0.0-alpha.422",
3
+ "version": "5.0.0-alpha.423",
4
4
  "description": "Holocron plugin for Infisical. Implements the vault capability against Infisical's REST API, plus exports verifyToken + AUTH_HINT for `holocron auth`.",
5
5
  "keywords": [
6
6
  "holocron",
@@ -40,19 +40,19 @@
40
40
  "tsx": "4.23.15",
41
41
  "typescript": "^5.9.3",
42
42
  "vitest": "^5.1.0",
43
- "@theholocron/cli": "5.0.0-alpha.422",
44
- "@theholocron/http-client": "^1.58.0-alpha.28",
45
- "@theholocron/eslint-config": "^8.9.0-alpha.16",
43
+ "@theholocron/cli": "5.0.0-alpha.423",
44
+ "@theholocron/eslint-config": "^8.9.0-alpha.17",
45
+ "@theholocron/infisical-client": "^1.58.0-alpha.29",
46
46
  "@theholocron/misc-utils": "^1.17.0-alpha.4",
47
- "@theholocron/tsconfig": "^8.9.0-alpha.16",
48
- "@theholocron/tsdown-config": "^8.9.0-alpha.16",
49
- "@theholocron/vitest-config": "^8.9.0-alpha.16",
50
- "@theholocron/infisical-client": "^1.58.0-alpha.28"
47
+ "@theholocron/http-client": "^1.58.0-alpha.29",
48
+ "@theholocron/tsdown-config": "^8.9.0-alpha.17",
49
+ "@theholocron/vitest-config": "^8.9.0-alpha.17",
50
+ "@theholocron/tsconfig": "^8.9.0-alpha.17"
51
51
  },
52
52
  "peerDependencies": {
53
53
  "@theholocron/infisical-client": "^1.43.1",
54
54
  "@theholocron/misc-utils": "^1.16.0",
55
- "@theholocron/cli": "5.0.0-alpha.422"
55
+ "@theholocron/cli": "5.0.0-alpha.423"
56
56
  },
57
57
  "peerDependenciesMeta": {
58
58
  "@theholocron/infisical-client": {}