@agenshield/daemon 0.6.0 → 0.6.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/acl.d.ts +15 -12
- package/acl.d.ts.map +1 -1
- package/command-sync.d.ts +1 -1
- package/command-sync.d.ts.map +1 -1
- package/index.js +711 -543
- package/main.js +737 -550
- package/package.json +4 -4
- package/routes/config.d.ts.map +1 -1
- package/routes/rpc.d.ts.map +1 -1
- package/server.d.ts.map +1 -1
- package/policy-sync.d.ts +0 -25
- package/policy-sync.d.ts.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agenshield/daemon",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "AgenShield HTTP daemon server with embedded UI",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
],
|
|
25
25
|
"license": "MIT",
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@agenshield/ipc": "0.6.
|
|
28
|
-
"@agenshield/broker": "0.6.
|
|
29
|
-
"@agenshield/sandbox": "0.6.
|
|
27
|
+
"@agenshield/ipc": "0.6.2",
|
|
28
|
+
"@agenshield/broker": "0.6.2",
|
|
29
|
+
"@agenshield/sandbox": "0.6.2",
|
|
30
30
|
"@modelcontextprotocol/sdk": "^1.26.0",
|
|
31
31
|
"fastify": "^5.7.0",
|
|
32
32
|
"zod": "^4.3.6",
|
package/routes/config.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/routes/config.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,OAAO,KAAK,EAAE,eAAe,EAAgC,MAAM,SAAS,CAAC;AAc7E,wBAAsB,YAAY,CAAC,GAAG,EAAE,eAAe,GAAG,OAAO,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/routes/config.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,OAAO,KAAK,EAAE,eAAe,EAAgC,MAAM,SAAS,CAAC;AAc7E,wBAAsB,YAAY,CAAC,GAAG,EAAE,eAAe,GAAG,OAAO,CAAC,IAAI,CAAC,CAwJtE"}
|
package/routes/rpc.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rpc.d.ts","sourceRoot":"","sources":["../../src/routes/rpc.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAgC,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"rpc.d.ts","sourceRoot":"","sources":["../../src/routes/rpc.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAgC,MAAM,SAAS,CAAC;AA2R7E,wBAAsB,SAAS,CAAC,GAAG,EAAE,eAAe,GAAG,OAAO,CAAC,IAAI,CAAC,CA0CnE"}
|
package/server.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAgB,EAAE,KAAK,eAAe,EAAE,MAAM,SAAS,CAAC;AAGxD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAUpD;;;;GAIG;AACH,wBAAsB,YAAY,CAAC,MAAM,EAAE,YAAY,GAAG,OAAO,CAAC,eAAe,CAAC,CAgCjF;AAED;;;;GAIG;AACH,wBAAsB,WAAW,CAAC,MAAM,EAAE,YAAY,GAAG,OAAO,CAAC,eAAe,CAAC,
|
|
1
|
+
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAgB,EAAE,KAAK,eAAe,EAAE,MAAM,SAAS,CAAC;AAGxD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAUpD;;;;GAIG;AACH,wBAAsB,YAAY,CAAC,MAAM,EAAE,YAAY,GAAG,OAAO,CAAC,eAAe,CAAC,CAgCjF;AAED;;;;GAIG;AACH,wBAAsB,WAAW,CAAC,MAAM,EAAE,YAAY,GAAG,OAAO,CAAC,eAAe,CAAC,CAoEhF"}
|
package/policy-sync.d.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Policy Sync to Broker
|
|
3
|
-
*
|
|
4
|
-
* Syncs user-defined policies from the daemon's config to the broker's
|
|
5
|
-
* policy directory (/opt/agenshield/policies/custom/user-policies.json)
|
|
6
|
-
* so the broker's PolicyEnforcer picks them up on its next reload cycle.
|
|
7
|
-
*
|
|
8
|
-
* Without this, user URL/skill policies created in the UI only exist in
|
|
9
|
-
* the daemon's config.json and never reach the broker that actually
|
|
10
|
-
* enforces policy_check requests from the interceptor.
|
|
11
|
-
*/
|
|
12
|
-
import type { PolicyConfig } from '@agenshield/ipc';
|
|
13
|
-
interface Logger {
|
|
14
|
-
warn(msg: string, ...args: unknown[]): void;
|
|
15
|
-
info(msg: string, ...args: unknown[]): void;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Sync all user-defined policies to the broker's custom policy directory.
|
|
19
|
-
*
|
|
20
|
-
* Called from PUT /config when policies change, and from factory-reset
|
|
21
|
-
* (with empty array) to clear user policies.
|
|
22
|
-
*/
|
|
23
|
-
export declare function syncPoliciesToBrokerDir(policies: PolicyConfig[], logger?: Logger): void;
|
|
24
|
-
export {};
|
|
25
|
-
//# sourceMappingURL=policy-sync.d.ts.map
|
package/policy-sync.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"policy-sync.d.ts","sourceRoot":"","sources":["../src/policy-sync.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAEpD,UAAU,MAAM;IACd,IAAI,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC;IAC5C,IAAI,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC;CAC7C;AAmGD;;;;;GAKG;AACH,wBAAgB,uBAAuB,CACrC,QAAQ,EAAE,YAAY,EAAE,EACxB,MAAM,CAAC,EAAE,MAAM,GACd,IAAI,CAiCN"}
|