@forgezero/vault 0.1.19 → 0.1.21

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
@@ -193,16 +193,42 @@ import {
193
193
  } from '@forgezero/vault/providers';
194
194
  ```
195
195
 
196
- ## @forgezero/vault/providers — Use this entry point
196
+ ## @forgezero/vault/providers — Attach a versioned Git forge to Git Connect
197
197
 
198
- 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.
198
+ One GitHub App provider is projected into separate OAuth Server and Git Connect method sets. Its shared credential source remains Vault-scoped and installation tokens are minted only when needed.
199
199
 
200
200
  ```text
201
201
  import {
202
- vaultConfig,
202
+ createService,
203
+ } from '@forgezero/providers';
204
+ import {
205
+ defineGitHubProvider,
206
+ gitConnectService,
207
+ } from '@forgezero/providers/git';
208
+ import {
209
+ createVault,
210
+ } from '@forgezero/vault';
211
+ import {
212
+ vaultCredentials,
203
213
  } from '@forgezero/vault/providers';
204
214
 
205
- export const selectedCapability = vaultConfig;
215
+ declare const githubAdapter: Parameters<typeof defineGitHubProvider>[0]['adapter'];
216
+ const vault = createVault({ project: 'control-plane', environment: 'production' });
217
+ const credentials = vaultCredentials(vault, 'github');
218
+ const github = defineGitHubProvider({ version: 'github-app:2026-03-10', adapter: githubAdapter });
219
+ const git = createService(gitConnectService, {
220
+ beginInstallation: [],
221
+ completeInstallation: [],
222
+ listInstallations: [],
223
+ listRepositories: [{ provider: github, method: 'listRepositories', version: 'github-app:2026-03-10', credentials, priority: 1 }],
224
+ listBranches: [],
225
+ mintCloneCredential: [],
226
+ verifyWebhook: [],
227
+ disconnectInstallation: []
228
+ });
229
+
230
+ const repositories = await git.call('listRepositories', { installationId: '42' });
231
+ if (!repositories.ok) throw repositories.error;
206
232
  ```
207
233
 
208
234
  ## Three paths, and why they stay explicit
@@ -236,9 +262,9 @@ import {
236
262
  ForgeZero,
237
263
  } from '@forgezero/vault';
238
264
 
239
- const fz = new ForgeZero({ project: 'altpilot', environment: 'production' });
265
+ const fz = new ForgeZero({ project: 'payments-api', environment: 'production' });
240
266
 
241
- const key = await fz.get('STRIPE_KEY');
267
+ const value = await fz.get('PAYMENT_PROVIDER');
242
268
  const names = await fz.list(); // names; HTTPS reads also carry metadata
243
269
  ```
244
270
 
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.19";
285
+ export declare const VERSION = "0.1.21";
package/dist/index.js CHANGED
@@ -382,7 +382,7 @@ function systemdCredentials(options = {}) {
382
382
  }
383
383
  };
384
384
  }
385
- var VERSION = "0.1.19";
385
+ var VERSION = "0.1.21";
386
386
  export {
387
387
  vaultCredentials,
388
388
  systemdCredentials,
package/dist/providers.js CHANGED
@@ -382,7 +382,7 @@ function systemdCredentials(options = {}) {
382
382
  }
383
383
  };
384
384
  }
385
- var VERSION = "0.1.19";
385
+ var VERSION = "0.1.21";
386
386
 
387
387
  // src/providers.ts
388
388
  var MISSING = new Set(["ENTRY_NOT_FOUND", "VERSION_NOT_FOUND"]);
package/dist/schema.js CHANGED
@@ -382,7 +382,7 @@ function systemdCredentials(options = {}) {
382
382
  }
383
383
  };
384
384
  }
385
- var VERSION = "0.1.19";
385
+ var VERSION = "0.1.21";
386
386
 
387
387
  // src/schema.ts
388
388
  function managedSchemas(vault, options = {}) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forgezero/vault",
3
- "version": "0.1.19",
3
+ "version": "0.1.21",
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.14"
45
+ "@forgezero/runtime": "^0.1.16"
46
46
  },
47
47
  "peerDependencies": {
48
48
  "@noble/curves": "^2.2.0",