datanotes 1.3.0 → 1.5.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/SECURITY.md +7 -3
- package/dist/api/catalog.d.ts +2 -0
- package/dist/api/index.cjs +9583 -202
- package/dist/api/index.js +9583 -202
- package/dist/api/otlp.d.ts +22 -11
- package/dist/datanotes.cjs +13852 -4030
- package/package.json +2 -1
package/SECURITY.md
CHANGED
|
@@ -15,7 +15,11 @@ run on your own machine, for you and the agents you choose.
|
|
|
15
15
|
|
|
16
16
|
- The HTTP server listens on `127.0.0.1` unless told otherwise (`--host`). It answers no CORS
|
|
17
17
|
preflight, so web pages cannot call it.
|
|
18
|
-
- Only `GET /`
|
|
18
|
+
- Only `GET /` (status and version), `GET /datanotes/openapi.json` (the API's description) and
|
|
19
|
+
`/datanotes/docs` (an interactive console over it, with its script and stylesheet) answer without
|
|
20
|
+
a token. They contain no data from the vault: the same description is published on the website.
|
|
21
|
+
The console's page loads nothing from other hosts (Content-Security-Policy: same origin only);
|
|
22
|
+
its calls need a token, which it keeps in the browser's local storage until you log out.
|
|
19
23
|
- To reach it from outside (a phone, a hosted assistant), publish it through a reverse proxy or a
|
|
20
24
|
tunnel, over HTTPS, and give each device or agent its own app token. Publish the MCP server
|
|
21
25
|
(`datanotes-mcp serve`) the same way: it holds no credentials and passes each agent's token on.
|
|
@@ -49,8 +53,8 @@ Nothing leaves the machine unless you turn it on:
|
|
|
49
53
|
LM Studio) keeps it on the machine.
|
|
50
54
|
- **Telemetry** sends logs to the OTLP endpoint you configure (`telemetryEnabled`, off by default):
|
|
51
55
|
operations, routes, note paths, actors, tool names and error messages (which may quote a value),
|
|
52
|
-
not note bodies. `telemetryHeaders` (
|
|
53
|
-
|
|
56
|
+
not note bodies. `telemetryHeaders` (an API key) is
|
|
57
|
+
stored in the settings file; `OTEL_EXPORTER_OTLP_HEADERS` keeps it out.
|
|
54
58
|
- **Webhooks** (created by the owner) post change events to the URLs they name.
|
|
55
59
|
- **Apps' MCP endpoints** (registered by the owner): the engine sends each app's `mcp_token`, and
|
|
56
60
|
the arguments and caller of every call of its tools, to the app's `mcp_url`, which may be remote.
|
package/dist/api/catalog.d.ts
CHANGED
|
@@ -15,5 +15,7 @@ export interface OperationDef {
|
|
|
15
15
|
idempotentHint?: boolean;
|
|
16
16
|
openWorldHint?: boolean;
|
|
17
17
|
};
|
|
18
|
+
/** JSON Schema of the successful (2xx) response body, for the OpenAPI document; not sent to MCP clients. */
|
|
19
|
+
responseSchema?: Record<string, unknown>;
|
|
18
20
|
}
|
|
19
21
|
export declare const OPERATIONS: OperationDef[];
|