@safebrowse/daemon 0.1.2-rc.1 → 0.1.2
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/LICENSE +15 -15
- package/README.md +31 -31
- package/dist/cli.js +9 -9
- package/dist/runtime/knowledge_base/safebrowse_vf_action_integrity_patterns.json +1411 -1411
- package/dist/runtime/knowledge_base/safebrowse_vf_artifact_surface_patterns.json +891 -891
- package/dist/runtime/knowledge_base/safebrowse_vf_evaluation_scenarios.json +217 -217
- package/dist/runtime/knowledge_base/safebrowse_vf_incident_response_playbooks.json +209 -209
- package/dist/runtime/knowledge_base/safebrowse_vf_knowledge_base_index.json +143 -143
- package/dist/runtime/knowledge_base/safebrowse_vf_knowledge_base_index.json.sig +1 -1
- package/dist/runtime/knowledge_base/safebrowse_vf_knowledge_bases.zip.sig +1 -1
- package/dist/runtime/knowledge_base/safebrowse_vf_memory_context_poisoning_patterns.json +803 -803
- package/dist/runtime/knowledge_base/safebrowse_vf_policy_controls_catalog.json +686 -686
- package/dist/runtime/knowledge_base/safebrowse_vf_prompt_injection_patterns.json +9930 -9930
- package/dist/runtime/knowledge_base/safebrowse_vf_source_registry.json +345 -345
- package/dist/runtime/knowledge_base/safebrowse_vf_tool_protocol_supply_chain_patterns.json +879 -879
- package/dist/runtime/knowledge_base/safebrowse_vf_trust_signals_provenance.json +480 -480
- package/dist/runtime/knowledge_base/signing/safebrowse_vf_ed25519_public.pem +3 -3
- package/dist/runtime/policies/base/research.yaml +43 -43
- package/dist/runtime/policies/emergency/default.yaml +14 -14
- package/dist/runtime/policies/project/default.yaml +13 -13
- package/dist/runtime/policies/tenant/default.yaml +12 -12
- package/package.json +53 -53
package/LICENSE
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
SafeBrowse Non-Commercial License 1.0
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2026 RobKang1234. All rights reserved.
|
|
4
|
-
|
|
5
|
-
This package is licensed for non-commercial use only.
|
|
6
|
-
|
|
7
|
-
You may use, copy, modify, and redistribute this package for
|
|
8
|
-
non-commercial purposes only, provided that you preserve this license
|
|
9
|
-
notice and all copyright notices.
|
|
10
|
-
|
|
11
|
-
Commercial use is prohibited without prior written permission from the
|
|
12
|
-
copyright holder.
|
|
13
|
-
|
|
14
|
-
The full license text is distributed in the repository root `LICENSE`
|
|
15
|
-
file for SafeBrowse.
|
|
1
|
+
SafeBrowse Non-Commercial License 1.0
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 RobKang1234. All rights reserved.
|
|
4
|
+
|
|
5
|
+
This package is licensed for non-commercial use only.
|
|
6
|
+
|
|
7
|
+
You may use, copy, modify, and redistribute this package for
|
|
8
|
+
non-commercial purposes only, provided that you preserve this license
|
|
9
|
+
notice and all copyright notices.
|
|
10
|
+
|
|
11
|
+
Commercial use is prohibited without prior written permission from the
|
|
12
|
+
copyright holder.
|
|
13
|
+
|
|
14
|
+
The full license text is distributed in the repository root `LICENSE`
|
|
15
|
+
file for SafeBrowse.
|
package/README.md
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
# `@safebrowse/daemon`
|
|
2
|
-
|
|
3
|
-
Localhost SafeBrowse daemon with built-in runtime assets for policy, registry, and KB loading.
|
|
4
|
-
|
|
5
|
-
## Install
|
|
6
|
-
|
|
7
|
-
```bash
|
|
8
|
-
npm install @safebrowse/daemon
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
## Run
|
|
12
|
-
|
|
13
|
-
```bash
|
|
14
|
-
npx @safebrowse/daemon --host 127.0.0.1 --port 8787
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
Environment variables:
|
|
18
|
-
|
|
19
|
-
- `SAFEBROWSE_HOST`
|
|
20
|
-
- `SAFEBROWSE_PORT`
|
|
21
|
-
- `SAFEBROWSE_ROOT_DIR`
|
|
22
|
-
|
|
23
|
-
Health endpoint:
|
|
24
|
-
|
|
25
|
-
```text
|
|
26
|
-
GET /health
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
See the repository README for full daemon routes and operational guidance:
|
|
30
|
-
|
|
31
|
-
- https://github.com/RobKang1234/safebrowse-sdk#readme
|
|
1
|
+
# `@safebrowse/daemon`
|
|
2
|
+
|
|
3
|
+
Localhost SafeBrowse daemon with built-in runtime assets for policy, registry, and KB loading.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @safebrowse/daemon
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Run
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
npx @safebrowse/daemon --host 127.0.0.1 --port 8787
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
Environment variables:
|
|
18
|
+
|
|
19
|
+
- `SAFEBROWSE_HOST`
|
|
20
|
+
- `SAFEBROWSE_PORT`
|
|
21
|
+
- `SAFEBROWSE_ROOT_DIR`
|
|
22
|
+
|
|
23
|
+
Health endpoint:
|
|
24
|
+
|
|
25
|
+
```text
|
|
26
|
+
GET /health
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
See the repository README for full daemon routes and operational guidance:
|
|
30
|
+
|
|
31
|
+
- https://github.com/RobKang1234/safebrowse-sdk#readme
|
package/dist/cli.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { resolve } from "node:path";
|
|
2
2
|
import process from "node:process";
|
|
3
3
|
import { startSafeBrowseDaemon } from "./server.js";
|
|
4
|
-
const HELP_TEXT = `SafeBrowse daemon
|
|
5
|
-
|
|
6
|
-
Usage:
|
|
7
|
-
safebrowse-daemon [--host 127.0.0.1] [--port 8787] [--root-dir <path>]
|
|
8
|
-
|
|
9
|
-
Environment:
|
|
10
|
-
SAFEBROWSE_HOST
|
|
11
|
-
SAFEBROWSE_PORT
|
|
12
|
-
SAFEBROWSE_ROOT_DIR
|
|
4
|
+
const HELP_TEXT = `SafeBrowse daemon
|
|
5
|
+
|
|
6
|
+
Usage:
|
|
7
|
+
safebrowse-daemon [--host 127.0.0.1] [--port 8787] [--root-dir <path>]
|
|
8
|
+
|
|
9
|
+
Environment:
|
|
10
|
+
SAFEBROWSE_HOST
|
|
11
|
+
SAFEBROWSE_PORT
|
|
12
|
+
SAFEBROWSE_ROOT_DIR
|
|
13
13
|
`;
|
|
14
14
|
function parsePort(value) {
|
|
15
15
|
const port = Number.parseInt(value, 10);
|