vault-go 0.5.0 → 0.6.0

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
@@ -71,6 +71,7 @@ renovação automática da sessão.
71
71
  - `vault_go_jobs`: fila PostgreSQL da conta, sem payload sensível.
72
72
  - `vault_go_job_retry` e `vault_go_job_cancel`: controle idempotente do processamento.
73
73
  - `vault_go_export` e `vault_go_import`: transporte JSON tenant-scoped, atômico e idempotente.
74
+ - `vault_go_embedding_status` e `vault_go_embedding_backfill`: busca híbrida e fila vetorial, sem expor chaves.
74
75
  - `vault_go_forget`: exclusão explícita de uma memória.
75
76
 
76
77
  O recurso `vault-go://status` fornece o resumo sanitizado em JSON.
package/dist/cloud.d.ts CHANGED
@@ -17,6 +17,8 @@ export interface VaultMemoryApi {
17
17
  cancelJob(id: string): Promise<unknown>;
18
18
  exportMemories(input: Record<string, unknown>): Promise<unknown>;
19
19
  importMemories(input: Record<string, unknown>): Promise<unknown>;
20
+ embeddingStatus(): Promise<unknown>;
21
+ embeddingBackfill(): Promise<unknown>;
20
22
  }
21
23
  export declare class VaultCloudClient implements VaultMemoryApi {
22
24
  private readonly home;
@@ -40,6 +42,8 @@ export declare class VaultCloudClient implements VaultMemoryApi {
40
42
  cancelJob(id: string): Promise<unknown>;
41
43
  exportMemories(input: Record<string, unknown>): Promise<unknown>;
42
44
  importMemories(input: Record<string, unknown>): Promise<unknown>;
45
+ embeddingStatus(): Promise<unknown>;
46
+ embeddingBackfill(): Promise<unknown>;
43
47
  private endpoint;
44
48
  private accessToken;
45
49
  private request;
package/dist/cloud.js CHANGED
@@ -72,6 +72,12 @@ export class VaultCloudClient {
72
72
  async importMemories(input) {
73
73
  return this.request('/memory/import', { method: 'POST', body: input });
74
74
  }
75
+ async embeddingStatus() {
76
+ return this.request('/memory/embeddings/status');
77
+ }
78
+ async embeddingBackfill() {
79
+ return this.request('/memory/embeddings/backfill', { method: 'POST' });
80
+ }
75
81
  endpoint(path) {
76
82
  const base = validateApiUrl(loadConfig(this.home).apiUrl);
77
83
  const prefix = base.pathname.replace(/\/$/u, '');
package/dist/server.js CHANGED
@@ -209,6 +209,18 @@ export function createVaultGoServer(home = vaultHome(), cloud = new VaultCloudCl
209
209
  },
210
210
  annotations: { readOnlyHint: false, idempotentHint: true, openWorldHint: true },
211
211
  }, async (input) => run(() => cloud.importMemories(input)));
212
+ server.registerTool('vault_go_embedding_status', {
213
+ title: 'Status da busca semântica',
214
+ description: 'Mostra provedor, modelo e fila de vetores sem revelar a chave.',
215
+ inputSchema: {},
216
+ annotations: { readOnlyHint: true, idempotentHint: true, openWorldHint: true },
217
+ }, async () => run(() => cloud.embeddingStatus()));
218
+ server.registerTool('vault_go_embedding_backfill', {
219
+ title: 'Atualizar vetores',
220
+ description: 'Agenda de forma idempotente o backfill semântico da conta autenticada.',
221
+ inputSchema: {},
222
+ annotations: { readOnlyHint: false, idempotentHint: true, openWorldHint: true },
223
+ }, async () => run(() => cloud.embeddingBackfill()));
212
224
  server.registerResource('vault-go-status', 'vault-go://status', {
213
225
  title: 'Status do Vault Go',
214
226
  description: 'Resumo sanitizado da conexão cloud.',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vault-go",
3
- "version": "0.5.0",
3
+ "version": "0.6.0",
4
4
  "description": "Servidor MCP Bun para pesquisar e registrar memória na plataforma Vault.",
5
5
  "type": "module",
6
6
  "bin": {