@runtimeai/qutonomous 1.0.0 → 1.0.1

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.
Files changed (2) hide show
  1. package/index.js +7 -4
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -11,7 +11,7 @@ const { URL } = require("url");
11
11
  * PQDataClient — Node.js client for the PQData Platform APIs.
12
12
  *
13
13
  * @example
14
- * const { PQDataClient } = require("@pqdata/sdk");
14
+ * const { PQDataClient } = require("@runtimeai/qutonomous");
15
15
  * const client = new PQDataClient("http://localhost:8082", myToken);
16
16
  * const secret = await client.getSecret("myapp/db-password");
17
17
  */
@@ -101,16 +101,19 @@ class PQDataClient {
101
101
  * @param {string} value
102
102
  */
103
103
  storeSecret(path, value) {
104
- return this._request("POST", "/vault/secrets", { path, value });
104
+ // OPER_RT19-412c F4 fix — was POST /vault/secrets, which 404s against
105
+ // the real QuantumVault router (PUT /api/v1/vault/secret/{path}).
106
+ return this._request("PUT", `/api/v1/vault/secret/${path}`, { data: { value } });
105
107
  }
106
108
 
107
109
  /**
108
110
  * Retrieve a secret from QuantumVault.
109
- * GET /vault/secrets/{path}
111
+ * GET /api/v1/vault/secret/{path} (OPER_RT19-412c F4 fix — was
112
+ * /vault/secrets/{path}, which 404s against the real QuantumVault router)
110
113
  * @param {string} path
111
114
  */
112
115
  getSecret(path) {
113
- return this._request("GET", `/vault/secrets/${encodeURIComponent(path)}`);
116
+ return this._request("GET", `/api/v1/vault/secret/${encodeURIComponent(path)}`);
114
117
  }
115
118
 
116
119
  // ── Sign ──────────────────────────────────────────────────────────────────
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@runtimeai/qutonomous",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Qutonomous Security Platform Node.js SDK — Post-Quantum Data Security",
5
5
  "main": "index.js",
6
6
  "scripts": {