@agenshield/daemon 0.1.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.
Files changed (124) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +118 -0
  3. package/acl.d.ts +44 -0
  4. package/acl.d.ts.map +1 -0
  5. package/auth/index.d.ts +9 -0
  6. package/auth/index.d.ts.map +1 -0
  7. package/auth/middleware.d.ts +49 -0
  8. package/auth/middleware.d.ts.map +1 -0
  9. package/auth/passcode.d.ts +70 -0
  10. package/auth/passcode.d.ts.map +1 -0
  11. package/auth/session.d.ts +71 -0
  12. package/auth/session.d.ts.map +1 -0
  13. package/command-sync.d.ts +41 -0
  14. package/command-sync.d.ts.map +1 -0
  15. package/config/defaults.d.ts +10 -0
  16. package/config/defaults.d.ts.map +1 -0
  17. package/config/index.d.ts +7 -0
  18. package/config/index.d.ts.map +1 -0
  19. package/config/loader.d.ts +25 -0
  20. package/config/loader.d.ts.map +1 -0
  21. package/config/paths.d.ts +20 -0
  22. package/config/paths.d.ts.map +1 -0
  23. package/data/integration-catalog.d.ts +32 -0
  24. package/data/integration-catalog.d.ts.map +1 -0
  25. package/events/emitter.d.ts +126 -0
  26. package/events/emitter.d.ts.map +1 -0
  27. package/events/index.d.ts +5 -0
  28. package/events/index.d.ts.map +1 -0
  29. package/index.d.ts +19 -0
  30. package/index.d.ts.map +1 -0
  31. package/index.js +7591 -0
  32. package/main.d.ts +6 -0
  33. package/main.d.ts.map +1 -0
  34. package/main.js +7539 -0
  35. package/mcp/client.d.ts +73 -0
  36. package/mcp/client.d.ts.map +1 -0
  37. package/mcp/index.d.ts +7 -0
  38. package/mcp/index.d.ts.map +1 -0
  39. package/mcp/oauth-provider.d.ts +27 -0
  40. package/mcp/oauth-provider.d.ts.map +1 -0
  41. package/mcp/state.d.ts +31 -0
  42. package/mcp/state.d.ts.map +1 -0
  43. package/package.json +43 -0
  44. package/routes/agenco.d.ts +13 -0
  45. package/routes/agenco.d.ts.map +1 -0
  46. package/routes/auth.d.ts +11 -0
  47. package/routes/auth.d.ts.map +1 -0
  48. package/routes/config.d.ts +6 -0
  49. package/routes/config.d.ts.map +1 -0
  50. package/routes/discovery.d.ts +8 -0
  51. package/routes/discovery.d.ts.map +1 -0
  52. package/routes/exec.d.ts +6 -0
  53. package/routes/exec.d.ts.map +1 -0
  54. package/routes/fs.d.ts +6 -0
  55. package/routes/fs.d.ts.map +1 -0
  56. package/routes/health.d.ts +6 -0
  57. package/routes/health.d.ts.map +1 -0
  58. package/routes/index.d.ts +9 -0
  59. package/routes/index.d.ts.map +1 -0
  60. package/routes/marketplace.d.ts +9 -0
  61. package/routes/marketplace.d.ts.map +1 -0
  62. package/routes/rpc.d.ts +9 -0
  63. package/routes/rpc.d.ts.map +1 -0
  64. package/routes/secrets.d.ts +6 -0
  65. package/routes/secrets.d.ts.map +1 -0
  66. package/routes/security.d.ts +6 -0
  67. package/routes/security.d.ts.map +1 -0
  68. package/routes/skills.d.ts +11 -0
  69. package/routes/skills.d.ts.map +1 -0
  70. package/routes/sse.d.ts +9 -0
  71. package/routes/sse.d.ts.map +1 -0
  72. package/routes/status.d.ts +6 -0
  73. package/routes/status.d.ts.map +1 -0
  74. package/routes/wrappers.d.ts +12 -0
  75. package/routes/wrappers.d.ts.map +1 -0
  76. package/server.d.ts +18 -0
  77. package/server.d.ts.map +1 -0
  78. package/services/activity-log.d.ts +21 -0
  79. package/services/activity-log.d.ts.map +1 -0
  80. package/services/broker-bridge.d.ts +43 -0
  81. package/services/broker-bridge.d.ts.map +1 -0
  82. package/services/integration-skills.d.ts +26 -0
  83. package/services/integration-skills.d.ts.map +1 -0
  84. package/services/marketplace.d.ts +79 -0
  85. package/services/marketplace.d.ts.map +1 -0
  86. package/services/openclaw-config.d.ts +15 -0
  87. package/services/openclaw-config.d.ts.map +1 -0
  88. package/services/skill-analyzer.d.ts +21 -0
  89. package/services/skill-analyzer.d.ts.map +1 -0
  90. package/services/skill-lifecycle.d.ts +23 -0
  91. package/services/skill-lifecycle.d.ts.map +1 -0
  92. package/state/index.d.ts +76 -0
  93. package/state/index.d.ts.map +1 -0
  94. package/static.d.ts +9 -0
  95. package/static.d.ts.map +1 -0
  96. package/ui-assets/assets/ibm-plex-mono-latin-500-normal-CB9ihrfo.woff +0 -0
  97. package/ui-assets/assets/ibm-plex-mono-latin-500-normal-DSY6xOcd.woff2 +0 -0
  98. package/ui-assets/assets/index-CC_zbvUx.css +1 -0
  99. package/ui-assets/assets/index-Chp3YFDr.js +947 -0
  100. package/ui-assets/assets/manrope-latin-400-normal-8tf8FM3T.woff +0 -0
  101. package/ui-assets/assets/manrope-latin-400-normal-PaqtzbVb.woff2 +0 -0
  102. package/ui-assets/assets/manrope-latin-500-normal-BYYD-dBL.woff2 +0 -0
  103. package/ui-assets/assets/manrope-latin-500-normal-DMZssgOp.woff +0 -0
  104. package/ui-assets/assets/manrope-latin-600-normal-4f0koTD-.woff2 +0 -0
  105. package/ui-assets/assets/manrope-latin-600-normal-BqgrALkZ.woff +0 -0
  106. package/ui-assets/assets/manrope-latin-700-normal-BZp_XxE4.woff2 +0 -0
  107. package/ui-assets/assets/manrope-latin-700-normal-DGRFkw-m.woff +0 -0
  108. package/ui-assets/assets/manrope-latin-800-normal-BfWYOv1c.woff2 +0 -0
  109. package/ui-assets/assets/manrope-latin-800-normal-uHUdIJgA.woff +0 -0
  110. package/ui-assets/favicon.svg +1 -0
  111. package/ui-assets/index.html +14 -0
  112. package/ui-assets/package.json +34 -0
  113. package/utils/logged-fetch.d.ts +13 -0
  114. package/utils/logged-fetch.d.ts.map +1 -0
  115. package/vault/crypto.d.ts +28 -0
  116. package/vault/crypto.d.ts.map +1 -0
  117. package/vault/index.d.ts +64 -0
  118. package/vault/index.d.ts.map +1 -0
  119. package/watchers/index.d.ts +6 -0
  120. package/watchers/index.d.ts.map +1 -0
  121. package/watchers/security.d.ts +20 -0
  122. package/watchers/security.d.ts.map +1 -0
  123. package/watchers/skills.d.ts +85 -0
  124. package/watchers/skills.d.ts.map +1 -0
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Configuration loader for AgenShield daemon
3
+ */
4
+ import type { ShieldConfig } from '@agenshield/ipc';
5
+ /**
6
+ * Ensure the configuration directory exists
7
+ */
8
+ export declare function ensureConfigDir(): void;
9
+ /**
10
+ * Load configuration from disk
11
+ * @returns The loaded configuration, or default if not found
12
+ */
13
+ export declare function loadConfig(): ShieldConfig;
14
+ /**
15
+ * Save configuration to disk
16
+ * @param config The configuration to save
17
+ */
18
+ export declare function saveConfig(config: ShieldConfig): void;
19
+ /**
20
+ * Update configuration on disk (merge with existing)
21
+ * @param updates Partial configuration to merge
22
+ * @returns The updated configuration
23
+ */
24
+ export declare function updateConfig(updates: Partial<ShieldConfig>): ShieldConfig;
25
+ //# sourceMappingURL=loader.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loader.d.ts","sourceRoot":"","sources":["../../src/config/loader.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAKpD;;GAEG;AACH,wBAAgB,eAAe,IAAI,IAAI,CAKtC;AAED;;;GAGG;AACH,wBAAgB,UAAU,IAAI,YAAY,CAsBzC;AAED;;;GAGG;AACH,wBAAgB,UAAU,CAAC,MAAM,EAAE,YAAY,GAAG,IAAI,CAIrD;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE,OAAO,CAAC,YAAY,CAAC,GAAG,YAAY,CAczE"}
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Configuration path utilities for AgenShield daemon
3
+ */
4
+ /**
5
+ * Get the configuration directory path
6
+ */
7
+ export declare function getConfigDir(): string;
8
+ /**
9
+ * Get the configuration file path
10
+ */
11
+ export declare function getConfigPath(): string;
12
+ /**
13
+ * Get the PID file path
14
+ */
15
+ export declare function getPidPath(): string;
16
+ /**
17
+ * Get the log file path
18
+ */
19
+ export declare function getLogPath(): string;
20
+ //# sourceMappingURL=paths.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"paths.d.ts","sourceRoot":"","sources":["../../src/config/paths.ts"],"names":[],"mappings":"AAAA;;GAEG;AAMH;;GAEG;AACH,wBAAgB,YAAY,IAAI,MAAM,CAErC;AAED;;GAEG;AACH,wBAAgB,aAAa,IAAI,MAAM,CAEtC;AAED;;GAEG;AACH,wBAAgB,UAAU,IAAI,MAAM,CAEnC;AAED;;GAEG;AACH,wBAAgB,UAAU,IAAI,MAAM,CAEnC"}
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Static integration catalog
3
+ *
4
+ * Auto-generated from libs/shield-skills/skills/integration-{name}/SKILL.md
5
+ * Contains title, description, and available actions for each integration.
6
+ */
7
+ export interface IntegrationAction {
8
+ /** Action identifier */
9
+ name: string;
10
+ /** Human-readable description */
11
+ description: string;
12
+ }
13
+ export interface IntegrationDetails {
14
+ /** Integration identifier (e.g. "slack", "github") */
15
+ id: string;
16
+ /** Human-readable display name */
17
+ title: string;
18
+ /** Short description */
19
+ description: string;
20
+ /** Available actions */
21
+ actions: IntegrationAction[];
22
+ }
23
+ /**
24
+ * Static catalog of all available integrations with their details.
25
+ * Keyed by integration ID for O(1) lookup.
26
+ */
27
+ export declare const INTEGRATION_CATALOG: Record<string, IntegrationDetails>;
28
+ /**
29
+ * All integration details as a flat array.
30
+ */
31
+ export declare const INTEGRATION_LIST: IntegrationDetails[];
32
+ //# sourceMappingURL=integration-catalog.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"integration-catalog.d.ts","sourceRoot":"","sources":["../../src/data/integration-catalog.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,WAAW,iBAAiB;IAChC,wBAAwB;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,iCAAiC;IACjC,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,kBAAkB;IACjC,sDAAsD;IACtD,EAAE,EAAE,MAAM,CAAC;IACX,kCAAkC;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,wBAAwB;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,wBAAwB;IACxB,OAAO,EAAE,iBAAiB,EAAE,CAAC;CAC9B;AAED;;;GAGG;AACH,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,MAAM,EAAE,kBAAkB,CAqjElE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,gBAAgB,EAAE,kBAAkB,EAAuC,CAAC"}
@@ -0,0 +1,126 @@
1
+ /**
2
+ * Event emitter for SSE broadcasting
3
+ */
4
+ import { EventEmitter } from 'node:events';
5
+ export type EventType = 'security:status' | 'security:warning' | 'security:critical' | 'security:alert' | 'process:started' | 'process:stopped' | 'api:request' | 'api:outbound' | 'broker:request' | 'broker:response' | 'config:changed' | 'heartbeat' | 'wrappers:installed' | 'wrappers:uninstalled' | 'wrappers:updated' | 'wrappers:custom_added' | 'wrappers:custom_removed' | 'wrappers:synced' | 'wrappers:regenerated' | 'skills:quarantined' | 'skills:approved' | 'exec:monitored' | 'exec:denied' | 'agenco:connected' | 'agenco:disconnected' | 'agenco:auth_required' | 'agenco:auth_completed' | 'agenco:tool_executed' | 'agenco:error' | 'skills:install_started' | 'skills:install_progress' | 'skills:installed' | 'skills:install_failed' | 'interceptor:event';
6
+ export interface DaemonEvent {
7
+ type: EventType;
8
+ timestamp: string;
9
+ data: unknown;
10
+ }
11
+ declare class DaemonEventEmitter extends EventEmitter {
12
+ private static instance;
13
+ private constructor();
14
+ static getInstance(): DaemonEventEmitter;
15
+ /**
16
+ * Emit a typed event to all SSE subscribers
17
+ */
18
+ broadcast(type: EventType, data: unknown): void;
19
+ /**
20
+ * Subscribe to all events
21
+ */
22
+ subscribe(callback: (event: DaemonEvent) => void): () => void;
23
+ }
24
+ export declare const daemonEvents: DaemonEventEmitter;
25
+ /**
26
+ * Helper to emit security status changes
27
+ */
28
+ export declare function emitSecurityStatus(status: unknown): void;
29
+ /**
30
+ * Helper to emit security warnings
31
+ */
32
+ export declare function emitSecurityWarning(warning: string): void;
33
+ /**
34
+ * Helper to emit critical security issues
35
+ */
36
+ export declare function emitSecurityCritical(issue: string): void;
37
+ /**
38
+ * Helper to emit API request events
39
+ */
40
+ export declare function emitApiRequest(method: string, path: string, statusCode: number, duration: number, requestBody?: unknown, responseBody?: unknown): void;
41
+ /**
42
+ * Helper to emit outbound API request events (external fetch calls)
43
+ */
44
+ export declare function emitApiOutbound(data: {
45
+ context: string;
46
+ url: string;
47
+ method: string;
48
+ statusCode: number;
49
+ duration: number;
50
+ requestBody?: string;
51
+ responseBody?: string;
52
+ success: boolean;
53
+ }): void;
54
+ /**
55
+ * Helper to emit broker request events
56
+ */
57
+ export declare function emitBrokerRequest(operation: string, args: unknown): void;
58
+ /**
59
+ * Helper to emit broker response events
60
+ */
61
+ export declare function emitBrokerResponse(operation: string, success: boolean, duration: number): void;
62
+ /**
63
+ * Helper to emit skill quarantined events
64
+ */
65
+ export declare function emitSkillQuarantined(skillName: string, reason: string): void;
66
+ /**
67
+ * Helper to emit skill approved events
68
+ */
69
+ export declare function emitSkillApproved(skillName: string): void;
70
+ /**
71
+ * Helper to emit exec monitored events (every exec operation)
72
+ */
73
+ export declare function emitExecMonitored(event: {
74
+ command: string;
75
+ args: string[];
76
+ cwd?: string;
77
+ exitCode: number;
78
+ allowed: boolean;
79
+ duration: number;
80
+ }): void;
81
+ /**
82
+ * Helper to emit exec denied events (blocked exec operations)
83
+ */
84
+ export declare function emitExecDenied(command: string, reason: string): void;
85
+ /**
86
+ * Helper to emit agenco auth required event
87
+ */
88
+ export declare function emitAgenCoAuthRequired(authUrl: string, integration?: string): void;
89
+ /**
90
+ * Helper to emit agenco auth completed event
91
+ */
92
+ export declare function emitAgenCoAuthCompleted(): void;
93
+ /**
94
+ * Helper to emit agenco connected event
95
+ */
96
+ export declare function emitAgenCoConnected(): void;
97
+ /**
98
+ * Helper to emit agenco disconnected event
99
+ */
100
+ export declare function emitAgenCoDisconnected(): void;
101
+ /**
102
+ * Helper to emit agenco error event
103
+ */
104
+ export declare function emitAgenCoError(code: string, message: string): void;
105
+ /**
106
+ * Helper to emit skill install progress
107
+ */
108
+ export declare function emitSkillInstallProgress(skillName: string, step: string, message: string): void;
109
+ /**
110
+ * Helper to emit interceptor events (from events_batch RPC)
111
+ */
112
+ export declare function emitInterceptorEvent(event: {
113
+ type: string;
114
+ operation: string;
115
+ target: string;
116
+ timestamp: string;
117
+ duration?: number;
118
+ policyId?: string;
119
+ error?: string;
120
+ }): void;
121
+ /**
122
+ * Generic event emitter for custom events
123
+ */
124
+ export declare function emitEvent(type: EventType, data: unknown): void;
125
+ export {};
126
+ //# sourceMappingURL=emitter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"emitter.d.ts","sourceRoot":"","sources":["../../src/events/emitter.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE3C,MAAM,MAAM,SAAS,GACjB,iBAAiB,GACjB,kBAAkB,GAClB,mBAAmB,GACnB,gBAAgB,GAChB,iBAAiB,GACjB,iBAAiB,GACjB,aAAa,GACb,cAAc,GACd,gBAAgB,GAChB,iBAAiB,GACjB,gBAAgB,GAChB,WAAW,GACX,oBAAoB,GACpB,sBAAsB,GACtB,kBAAkB,GAClB,uBAAuB,GACvB,yBAAyB,GACzB,iBAAiB,GACjB,sBAAsB,GACtB,oBAAoB,GACpB,iBAAiB,GACjB,gBAAgB,GAChB,aAAa,GACb,kBAAkB,GAClB,qBAAqB,GACrB,sBAAsB,GACtB,uBAAuB,GACvB,sBAAsB,GACtB,cAAc,GACd,wBAAwB,GACxB,yBAAyB,GACzB,kBAAkB,GAClB,uBAAuB,GACvB,mBAAmB,CAAC;AAExB,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,SAAS,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,OAAO,CAAC;CACf;AAED,cAAM,kBAAmB,S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M,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,GAAG,IAAI,CAEP;AAED;;GAEG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,OAAO,GAAG,IAAI,CAE9D"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Events module exports
3
+ */
4
+ export * from './emitter';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/events/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,WAAW,CAAC"}
package/index.d.ts ADDED
@@ -0,0 +1,19 @@
1
+ /**
2
+ * AgenShield Daemon
3
+ *
4
+ * HTTP server that serves the UI and provides API endpoints
5
+ * for configuration and status.
6
+ *
7
+ * @packageDocumentation
8
+ */
9
+ export { createServer, startServer } from './server';
10
+ export { loadConfig, saveConfig, updateConfig, ensureConfigDir } from './config/index';
11
+ export { getConfigDir, getConfigPath, getPidPath, getLogPath } from './config/paths';
12
+ export { getDefaultConfig, VERSION } from './config/defaults';
13
+ export { getVault, resetVault, Vault } from './vault/index';
14
+ export { loadState, saveState, updateState, updatePasscodeProtectionState, getPasscodeProtectionState } from './state/index';
15
+ export { getSessionManager, resetSessionManager } from './auth/session';
16
+ export { isPasscodeSet, setPasscode, checkPasscode, isProtectionEnabled, setProtectionEnabled, isRunningAsRoot } from './auth/passcode';
17
+ export { isAuthenticated, requireAuth, extractToken } from './auth/middleware';
18
+ export { startSkillsWatcher, stopSkillsWatcher, approveSkill, rejectSkill, revokeSkill, listQuarantined, listApproved, triggerSkillsScan, type ApprovedSkillEntry, type QuarantinedSkillInfo, } from './watchers/skills';
19
+ //# sourceMappingURL=index.d.ts.map
package/index.d.ts.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACvF,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACrF,OAAO,EAAE,gBAAgB,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,6BAA6B,EAAE,0BAA0B,EAAE,MAAM,eAAe,CAAC;AAC7H,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AACxE,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,aAAa,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AACxI,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAG/E,OAAO,EACL,kBAAkB,EAClB,iBAAiB,EACjB,YAAY,EACZ,WAAW,EACX,WAAW,EACX,eAAe,EACf,YAAY,EACZ,iBAAiB,EACjB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,GAC1B,MAAM,mBAAmB,CAAC"}