@forgezero/vault 0.1.13 → 0.1.15
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 +54 -6
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/providers.js +1 -1
- package/dist/schema.js +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -35,12 +35,12 @@ Every row links to the detailed explanation and named-import/example area below.
|
|
|
35
35
|
|
|
36
36
|
| public entry | short description | runtime | details |
|
|
37
37
|
|---|---|---|---|
|
|
38
|
-
| @forgezero/vault | One scoped contract over an explicitly injected platform backend, a managed tenant socket or an automatically derived external API-key signer. | portable | [
|
|
39
|
-
| @forgezero/vault/schema | Where an entry’s shape comes from: pulled from the platform when ForgeZero has to render it, declared locally when only the tenant needs it. | portable | [
|
|
40
|
-
| @forgezero/vault/config | Read `.fz/config.json` — which project, which environment, which secrets, and what to call them. | portable | [
|
|
41
|
-
| @forgezero/vault/env | Envless: fill `process.env` from the vault at boot, refusing to run during a build. | portable | [
|
|
42
|
-
| @forgezero/vault/frameworks | SvelteKit and Next.js wiring, attached at the one place that runs once, on the server, before any request. | portable | [
|
|
43
|
-
| @forgezero/vault/providers | Adapters that make Vault a provider-configuration and credential source without coupling the providers package to ForgeZero. | portable | [
|
|
38
|
+
| @forgezero/vault | One scoped contract over an explicitly injected platform backend, a managed tenant socket or an automatically derived external API-key signer. | portable | [Reference + usage](#forgezero-vault) |
|
|
39
|
+
| @forgezero/vault/schema | Where an entry’s shape comes from: pulled from the platform when ForgeZero has to render it, declared locally when only the tenant needs it. | portable | [Reference + usage](#forgezero-vault-schema) |
|
|
40
|
+
| @forgezero/vault/config | Read `.fz/config.json` — which project, which environment, which secrets, and what to call them. | portable | [Reference + usage](#forgezero-vault-config) |
|
|
41
|
+
| @forgezero/vault/env | Envless: fill `process.env` from the vault at boot, refusing to run during a build. | portable | [Reference + usage](#forgezero-vault-env) |
|
|
42
|
+
| @forgezero/vault/frameworks | SvelteKit and Next.js wiring, attached at the one place that runs once, on the server, before any request. | portable | [Reference + usage](#forgezero-vault-frameworks) |
|
|
43
|
+
| @forgezero/vault/providers | Adapters that make Vault a provider-configuration and credential source without coupling the providers package to ForgeZero. | portable | [Reference + usage](#forgezero-vault-providers) |
|
|
44
44
|
|
|
45
45
|
## Commands
|
|
46
46
|
|
|
@@ -171,6 +171,18 @@ import type {
|
|
|
171
171
|
} from '@forgezero/vault/config';
|
|
172
172
|
```
|
|
173
173
|
|
|
174
|
+
## @forgezero/vault/config — Use this entry point
|
|
175
|
+
|
|
176
|
+
This minimal executable use imports one concrete value from this exact entry point without a wildcard or package-root detour. Keep the value or values the application actually needs; the full named inventory remains directly above it.
|
|
177
|
+
|
|
178
|
+
```text
|
|
179
|
+
import {
|
|
180
|
+
CONFIG_PATHS,
|
|
181
|
+
} from '@forgezero/vault/config';
|
|
182
|
+
|
|
183
|
+
export const selectedCapability = CONFIG_PATHS;
|
|
184
|
+
```
|
|
185
|
+
|
|
174
186
|
<a id="forgezero-vault-env"></a>
|
|
175
187
|
## @forgezero/vault/env
|
|
176
188
|
|
|
@@ -192,6 +204,18 @@ import type {
|
|
|
192
204
|
} from '@forgezero/vault/env';
|
|
193
205
|
```
|
|
194
206
|
|
|
207
|
+
## @forgezero/vault/env — Use this entry point
|
|
208
|
+
|
|
209
|
+
This minimal executable use imports one concrete value from this exact entry point without a wildcard or package-root detour. Keep the value or values the application actually needs; the full named inventory remains directly above it.
|
|
210
|
+
|
|
211
|
+
```text
|
|
212
|
+
import {
|
|
213
|
+
EnvError,
|
|
214
|
+
} from '@forgezero/vault/env';
|
|
215
|
+
|
|
216
|
+
export const selectedCapability = EnvError;
|
|
217
|
+
```
|
|
218
|
+
|
|
195
219
|
<a id="forgezero-vault-frameworks"></a>
|
|
196
220
|
## @forgezero/vault/frameworks
|
|
197
221
|
|
|
@@ -213,6 +237,18 @@ import type {
|
|
|
213
237
|
} from '@forgezero/vault/frameworks';
|
|
214
238
|
```
|
|
215
239
|
|
|
240
|
+
## @forgezero/vault/frameworks — Use this entry point
|
|
241
|
+
|
|
242
|
+
This minimal executable use imports one concrete value from this exact entry point without a wildcard or package-root detour. Keep the value or values the application actually needs; the full named inventory remains directly above it.
|
|
243
|
+
|
|
244
|
+
```text
|
|
245
|
+
import {
|
|
246
|
+
bootstrapEnv,
|
|
247
|
+
} from '@forgezero/vault/frameworks';
|
|
248
|
+
|
|
249
|
+
export const selectedCapability = bootstrapEnv;
|
|
250
|
+
```
|
|
251
|
+
|
|
216
252
|
<a id="forgezero-vault-providers"></a>
|
|
217
253
|
## @forgezero/vault/providers
|
|
218
254
|
|
|
@@ -231,6 +267,18 @@ import type {
|
|
|
231
267
|
} from '@forgezero/vault/providers';
|
|
232
268
|
```
|
|
233
269
|
|
|
270
|
+
## @forgezero/vault/providers — Use this entry point
|
|
271
|
+
|
|
272
|
+
This minimal executable use imports one concrete value from this exact entry point without a wildcard or package-root detour. Keep the value or values the application actually needs; the full named inventory remains directly above it.
|
|
273
|
+
|
|
274
|
+
```text
|
|
275
|
+
import {
|
|
276
|
+
vaultConfig,
|
|
277
|
+
} from '@forgezero/vault/providers';
|
|
278
|
+
|
|
279
|
+
export const selectedCapability = vaultConfig;
|
|
280
|
+
```
|
|
281
|
+
|
|
234
282
|
## Three paths, and why they stay explicit
|
|
235
283
|
|
|
236
284
|
Platform API logic already holds the requested realm master seed, so it opens the scoped envelope directly through an injected internal backend — no HTTP call, API key or local replica. A tenant on managed compute uses the local agent and its memory-only project scope. A tenant elsewhere signs HTTPS with an API-key seed. These share vault semantics and never silently fall through from a stronger posture to a weaker one.
|
package/dist/index.d.ts
CHANGED
|
@@ -282,4 +282,4 @@ export declare function systemdCredentials(options?: SystemdCredentialOptions):
|
|
|
282
282
|
readonly name: 'systemd';
|
|
283
283
|
get(reference: string, field: string): Promise<string>;
|
|
284
284
|
};
|
|
285
|
-
export declare const VERSION = "0.1.
|
|
285
|
+
export declare const VERSION = "0.1.15";
|
package/dist/index.js
CHANGED
package/dist/providers.js
CHANGED
package/dist/schema.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forgezero/vault",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.15",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"@types/bun": "latest"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@forgezero/runtime": "^0.1.
|
|
45
|
+
"@forgezero/runtime": "^0.1.11"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
48
|
"@noble/curves": "^2.2.0",
|