@shadowob/connector
Advanced tools
| import { RuntimeSessionState, RuntimeSessionPetReaction, RuntimeSessionPetActivity } from '@shadowob/shared/types'; | ||
| export { RuntimeSessionPetActivity, RuntimeSessionPetReaction, RuntimeSessionState, runtimeSessionPetReactionForState } from '@shadowob/shared/types'; | ||
| type ConnectorRuntimeId = 'openclaw' | 'hermes' | 'claude-code' | 'codex' | 'opencode' | 'cursor' | 'kimi' | 'copilot' | 'antigravity'; | ||
| type RuntimeInstanceStatus = 'running' | 'available' | 'stopped' | 'missing' | 'error'; | ||
| interface RuntimeInstanceInfo { | ||
| runtimeId: ConnectorRuntimeId; | ||
| instanceId: string; | ||
| label: string; | ||
| status: RuntimeInstanceStatus; | ||
| endpoint?: string | null; | ||
| capabilities: string[]; | ||
| error?: string | null; | ||
| metadata?: Record<string, unknown>; | ||
| } | ||
| interface RuntimeSessionInfo { | ||
| runtimeId: ConnectorRuntimeId; | ||
| instanceId: string; | ||
| sessionId: string; | ||
| title?: string | null; | ||
| workDir?: string | null; | ||
| state: RuntimeSessionState; | ||
| petReaction: RuntimeSessionPetReaction; | ||
| petActivity?: RuntimeSessionPetActivity; | ||
| model?: string | null; | ||
| lastActivityAt?: string | null; | ||
| startedAt?: string | null; | ||
| source: 'server' | 'cli' | 'database' | 'storage' | 'transcript'; | ||
| native?: Record<string, unknown>; | ||
| } | ||
| interface RuntimeSessionSnapshot { | ||
| scannedAt: string; | ||
| runtimeIds: ConnectorRuntimeId[]; | ||
| instances: RuntimeInstanceInfo[]; | ||
| sessions: RuntimeSessionInfo[]; | ||
| } | ||
| type RuntimeSessionEventType = 'snapshot' | 'session_added' | 'session_removed' | 'session_changed'; | ||
| interface RuntimeSessionEvent { | ||
| type: RuntimeSessionEventType; | ||
| at: string; | ||
| runtimeId?: ConnectorRuntimeId; | ||
| sessionId?: string; | ||
| previousState?: RuntimeSessionState; | ||
| state?: RuntimeSessionState; | ||
| previousPetReaction?: RuntimeSessionPetReaction; | ||
| petReaction?: RuntimeSessionPetReaction; | ||
| previousPetActivity?: RuntimeSessionPetActivity; | ||
| petActivity?: RuntimeSessionPetActivity; | ||
| session?: RuntimeSessionInfo; | ||
| snapshot?: RuntimeSessionSnapshot; | ||
| } | ||
| interface RuntimeSessionScanOptions { | ||
| runtimeId?: string; | ||
| opencodeUrl?: string; | ||
| homeDir?: string; | ||
| env?: NodeJS.ProcessEnv; | ||
| limit?: number; | ||
| } | ||
| interface RuntimeSessionSendOptions extends RuntimeSessionScanOptions { | ||
| runtimeId: string; | ||
| sessionId: string; | ||
| message: string; | ||
| timeoutMs?: number; | ||
| } | ||
| interface RuntimeSessionSendResult { | ||
| runtimeId: ConnectorRuntimeId; | ||
| sessionId: string; | ||
| accepted: boolean; | ||
| mode: 'server' | 'process'; | ||
| events?: unknown[]; | ||
| stdout?: string; | ||
| stderr?: string; | ||
| exitCode?: number | null; | ||
| } | ||
| declare function runtimeSessionPetReaction(session: Pick<RuntimeSessionInfo, 'state'> & { | ||
| petReaction?: RuntimeSessionPetReaction; | ||
| }): RuntimeSessionPetReaction; | ||
| declare function scanRuntimeSessions(options?: RuntimeSessionScanOptions): Promise<RuntimeSessionSnapshot>; | ||
| declare function diffRuntimeSessionSnapshots(previous: RuntimeSessionSnapshot | null, next: RuntimeSessionSnapshot): RuntimeSessionEvent[]; | ||
| declare function renderRuntimeSessionPanel(snapshot: RuntimeSessionSnapshot): string; | ||
| declare function sendRuntimeSessionMessage(options: RuntimeSessionSendOptions): Promise<RuntimeSessionSendResult>; | ||
| export { type RuntimeInstanceInfo, type RuntimeInstanceStatus, type RuntimeSessionEvent, type RuntimeSessionEventType, type RuntimeSessionInfo, type RuntimeSessionScanOptions, type RuntimeSessionSendOptions, type RuntimeSessionSendResult, type RuntimeSessionSnapshot, diffRuntimeSessionSnapshots, renderRuntimeSessionPanel, runtimeSessionPetReaction, scanRuntimeSessions, sendRuntimeSessionMessage }; |
| import { RuntimeSessionState, RuntimeSessionPetReaction, RuntimeSessionPetActivity } from '@shadowob/shared/types'; | ||
| export { RuntimeSessionPetActivity, RuntimeSessionPetReaction, RuntimeSessionState, runtimeSessionPetReactionForState } from '@shadowob/shared/types'; | ||
| type ConnectorRuntimeId = 'openclaw' | 'hermes' | 'claude-code' | 'codex' | 'opencode' | 'cursor' | 'kimi' | 'copilot' | 'antigravity'; | ||
| type RuntimeInstanceStatus = 'running' | 'available' | 'stopped' | 'missing' | 'error'; | ||
| interface RuntimeInstanceInfo { | ||
| runtimeId: ConnectorRuntimeId; | ||
| instanceId: string; | ||
| label: string; | ||
| status: RuntimeInstanceStatus; | ||
| endpoint?: string | null; | ||
| capabilities: string[]; | ||
| error?: string | null; | ||
| metadata?: Record<string, unknown>; | ||
| } | ||
| interface RuntimeSessionInfo { | ||
| runtimeId: ConnectorRuntimeId; | ||
| instanceId: string; | ||
| sessionId: string; | ||
| title?: string | null; | ||
| workDir?: string | null; | ||
| state: RuntimeSessionState; | ||
| petReaction: RuntimeSessionPetReaction; | ||
| petActivity?: RuntimeSessionPetActivity; | ||
| model?: string | null; | ||
| lastActivityAt?: string | null; | ||
| startedAt?: string | null; | ||
| source: 'server' | 'cli' | 'database' | 'storage' | 'transcript'; | ||
| native?: Record<string, unknown>; | ||
| } | ||
| interface RuntimeSessionSnapshot { | ||
| scannedAt: string; | ||
| runtimeIds: ConnectorRuntimeId[]; | ||
| instances: RuntimeInstanceInfo[]; | ||
| sessions: RuntimeSessionInfo[]; | ||
| } | ||
| type RuntimeSessionEventType = 'snapshot' | 'session_added' | 'session_removed' | 'session_changed'; | ||
| interface RuntimeSessionEvent { | ||
| type: RuntimeSessionEventType; | ||
| at: string; | ||
| runtimeId?: ConnectorRuntimeId; | ||
| sessionId?: string; | ||
| previousState?: RuntimeSessionState; | ||
| state?: RuntimeSessionState; | ||
| previousPetReaction?: RuntimeSessionPetReaction; | ||
| petReaction?: RuntimeSessionPetReaction; | ||
| previousPetActivity?: RuntimeSessionPetActivity; | ||
| petActivity?: RuntimeSessionPetActivity; | ||
| session?: RuntimeSessionInfo; | ||
| snapshot?: RuntimeSessionSnapshot; | ||
| } | ||
| interface RuntimeSessionScanOptions { | ||
| runtimeId?: string; | ||
| opencodeUrl?: string; | ||
| homeDir?: string; | ||
| env?: NodeJS.ProcessEnv; | ||
| limit?: number; | ||
| } | ||
| interface RuntimeSessionSendOptions extends RuntimeSessionScanOptions { | ||
| runtimeId: string; | ||
| sessionId: string; | ||
| message: string; | ||
| timeoutMs?: number; | ||
| } | ||
| interface RuntimeSessionSendResult { | ||
| runtimeId: ConnectorRuntimeId; | ||
| sessionId: string; | ||
| accepted: boolean; | ||
| mode: 'server' | 'process'; | ||
| events?: unknown[]; | ||
| stdout?: string; | ||
| stderr?: string; | ||
| exitCode?: number | null; | ||
| } | ||
| declare function runtimeSessionPetReaction(session: Pick<RuntimeSessionInfo, 'state'> & { | ||
| petReaction?: RuntimeSessionPetReaction; | ||
| }): RuntimeSessionPetReaction; | ||
| declare function scanRuntimeSessions(options?: RuntimeSessionScanOptions): Promise<RuntimeSessionSnapshot>; | ||
| declare function diffRuntimeSessionSnapshots(previous: RuntimeSessionSnapshot | null, next: RuntimeSessionSnapshot): RuntimeSessionEvent[]; | ||
| declare function renderRuntimeSessionPanel(snapshot: RuntimeSessionSnapshot): string; | ||
| declare function sendRuntimeSessionMessage(options: RuntimeSessionSendOptions): Promise<RuntimeSessionSendResult>; | ||
| export { type RuntimeInstanceInfo, type RuntimeInstanceStatus, type RuntimeSessionEvent, type RuntimeSessionEventType, type RuntimeSessionInfo, type RuntimeSessionScanOptions, type RuntimeSessionSendOptions, type RuntimeSessionSendResult, type RuntimeSessionSnapshot, diffRuntimeSessionSnapshots, renderRuntimeSessionPanel, runtimeSessionPetReaction, scanRuntimeSessions, sendRuntimeSessionMessage }; |
+2
-2
| { | ||
| "name": "@shadowob/connector", | ||
| "version": "1.1.64", | ||
| "version": "1.1.65", | ||
| "description": "Shadow connector helpers for OpenClaw, Hermes Agent, and cc-connect", | ||
@@ -75,3 +75,3 @@ "type": "module", | ||
| "yaml": "^2.8.4", | ||
| "@shadowob/shared": "1.1.64" | ||
| "@shadowob/shared": "1.1.65" | ||
| }, | ||
@@ -78,0 +78,0 @@ "scripts": { |
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
1041536
0.7%37
5.71%22791
0.36%+ Added
- Removed
Updated