synapsexcoder 6.0.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/.opencode/opencode.jsonc +102 -0
- package/README.md +353 -0
- package/dist/agents/agent-config-manager.d.ts +58 -0
- package/dist/agents/agent-config-manager.d.ts.map +1 -0
- package/dist/agents/agent-config-manager.js +313 -0
- package/dist/agents/agent-config-manager.js.map +1 -0
- package/dist/agents/base-agents.d.ts +352 -0
- package/dist/agents/base-agents.d.ts.map +1 -0
- package/dist/agents/base-agents.js +3961 -0
- package/dist/agents/base-agents.js.map +1 -0
- package/dist/agents/gated-subagent.d.ts +126 -0
- package/dist/agents/gated-subagent.d.ts.map +1 -0
- package/dist/agents/gated-subagent.js +591 -0
- package/dist/agents/gated-subagent.js.map +1 -0
- package/dist/agents/gated-subagents.d.ts +130 -0
- package/dist/agents/gated-subagents.d.ts.map +1 -0
- package/dist/agents/gated-subagents.js +2014 -0
- package/dist/agents/gated-subagents.js.map +1 -0
- package/dist/agents/internal-gatekeeper.d.ts +167 -0
- package/dist/agents/internal-gatekeeper.d.ts.map +1 -0
- package/dist/agents/internal-gatekeeper.js +1130 -0
- package/dist/agents/internal-gatekeeper.js.map +1 -0
- package/dist/agents/verification-agent.d.ts +86 -0
- package/dist/agents/verification-agent.d.ts.map +1 -0
- package/dist/agents/verification-agent.js +211 -0
- package/dist/agents/verification-agent.js.map +1 -0
- package/dist/analytics/analytics-types.d.ts +113 -0
- package/dist/analytics/analytics-types.d.ts.map +1 -0
- package/dist/analytics/analytics-types.js +8 -0
- package/dist/analytics/analytics-types.js.map +1 -0
- package/dist/analytics/dashboard-generator.d.ts +35 -0
- package/dist/analytics/dashboard-generator.d.ts.map +1 -0
- package/dist/analytics/dashboard-generator.js +365 -0
- package/dist/analytics/dashboard-generator.js.map +1 -0
- package/dist/analytics/index.d.ts +12 -0
- package/dist/analytics/index.d.ts.map +1 -0
- package/dist/analytics/index.js +12 -0
- package/dist/analytics/index.js.map +1 -0
- package/dist/analytics/metrics-aggregator.d.ts +88 -0
- package/dist/analytics/metrics-aggregator.d.ts.map +1 -0
- package/dist/analytics/metrics-aggregator.js +280 -0
- package/dist/analytics/metrics-aggregator.js.map +1 -0
- package/dist/cli/index.d.ts +36 -0
- package/dist/cli/index.d.ts.map +1 -0
- package/dist/cli/index.js +2677 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/cli/normalize_patch.d.ts +3 -0
- package/dist/cli/normalize_patch.d.ts.map +1 -0
- package/dist/cli/normalize_patch.js +34 -0
- package/dist/cli/normalize_patch.js.map +1 -0
- package/dist/commands/command-processor.d.ts +58 -0
- package/dist/commands/command-processor.d.ts.map +1 -0
- package/dist/commands/command-processor.js +796 -0
- package/dist/commands/command-processor.js.map +1 -0
- package/dist/config/compliance-checker.d.ts +93 -0
- package/dist/config/compliance-checker.d.ts.map +1 -0
- package/dist/config/compliance-checker.js +424 -0
- package/dist/config/compliance-checker.js.map +1 -0
- package/dist/config/enterprise-config.d.ts +173 -0
- package/dist/config/enterprise-config.d.ts.map +1 -0
- package/dist/config/enterprise-config.js +190 -0
- package/dist/config/enterprise-config.js.map +1 -0
- package/dist/config/index.d.ts +13 -0
- package/dist/config/index.d.ts.map +1 -0
- package/dist/config/index.js +11 -0
- package/dist/config/index.js.map +1 -0
- package/dist/context/context-system.d.ts +97 -0
- package/dist/context/context-system.d.ts.map +1 -0
- package/dist/context/context-system.js +880 -0
- package/dist/context/context-system.js.map +1 -0
- package/dist/context/store.d.ts +123 -0
- package/dist/context/store.d.ts.map +1 -0
- package/dist/context/store.js +281 -0
- package/dist/context/store.js.map +1 -0
- package/dist/dasp/dasp-controller.d.ts +83 -0
- package/dist/dasp/dasp-controller.d.ts.map +1 -0
- package/dist/dasp/dasp-controller.js +190 -0
- package/dist/dasp/dasp-controller.js.map +1 -0
- package/dist/dasp/feedback-adapter.d.ts +56 -0
- package/dist/dasp/feedback-adapter.d.ts.map +1 -0
- package/dist/dasp/feedback-adapter.js +158 -0
- package/dist/dasp/feedback-adapter.js.map +1 -0
- package/dist/dasp/index.d.ts +14 -0
- package/dist/dasp/index.d.ts.map +1 -0
- package/dist/dasp/index.js +10 -0
- package/dist/dasp/index.js.map +1 -0
- package/dist/dasp/prompt-templates.d.ts +38 -0
- package/dist/dasp/prompt-templates.d.ts.map +1 -0
- package/dist/dasp/prompt-templates.js +406 -0
- package/dist/dasp/prompt-templates.js.map +1 -0
- package/dist/dasp/vault-rag-provider.d.ts +51 -0
- package/dist/dasp/vault-rag-provider.d.ts.map +1 -0
- package/dist/dasp/vault-rag-provider.js +125 -0
- package/dist/dasp/vault-rag-provider.js.map +1 -0
- package/dist/distribution/cli-distribution.d.ts +68 -0
- package/dist/distribution/cli-distribution.d.ts.map +1 -0
- package/dist/distribution/cli-distribution.js +941 -0
- package/dist/distribution/cli-distribution.js.map +1 -0
- package/dist/docs/doc-generator.d.ts +78 -0
- package/dist/docs/doc-generator.d.ts.map +1 -0
- package/dist/docs/doc-generator.js +297 -0
- package/dist/docs/doc-generator.js.map +1 -0
- package/dist/docs/index.d.ts +13 -0
- package/dist/docs/index.d.ts.map +1 -0
- package/dist/docs/index.js +11 -0
- package/dist/docs/index.js.map +1 -0
- package/dist/docs/site-builder.d.ts +58 -0
- package/dist/docs/site-builder.d.ts.map +1 -0
- package/dist/docs/site-builder.js +229 -0
- package/dist/docs/site-builder.js.map +1 -0
- package/dist/ecosystem/adapters/claude-adapter.d.ts +29 -0
- package/dist/ecosystem/adapters/claude-adapter.d.ts.map +1 -0
- package/dist/ecosystem/adapters/claude-adapter.js +116 -0
- package/dist/ecosystem/adapters/claude-adapter.js.map +1 -0
- package/dist/ecosystem/adapters/cursor-adapter.d.ts +27 -0
- package/dist/ecosystem/adapters/cursor-adapter.d.ts.map +1 -0
- package/dist/ecosystem/adapters/cursor-adapter.js +93 -0
- package/dist/ecosystem/adapters/cursor-adapter.js.map +1 -0
- package/dist/ecosystem/adapters/v0-adapter.d.ts +30 -0
- package/dist/ecosystem/adapters/v0-adapter.d.ts.map +1 -0
- package/dist/ecosystem/adapters/v0-adapter.js +112 -0
- package/dist/ecosystem/adapters/v0-adapter.js.map +1 -0
- package/dist/ecosystem/ecosystem-router.d.ts +80 -0
- package/dist/ecosystem/ecosystem-router.d.ts.map +1 -0
- package/dist/ecosystem/ecosystem-router.js +241 -0
- package/dist/ecosystem/ecosystem-router.js.map +1 -0
- package/dist/ecosystem/ecosystem-types.d.ts +94 -0
- package/dist/ecosystem/ecosystem-types.d.ts.map +1 -0
- package/dist/ecosystem/ecosystem-types.js +27 -0
- package/dist/ecosystem/ecosystem-types.js.map +1 -0
- package/dist/ecosystem/index.d.ts +10 -0
- package/dist/ecosystem/index.d.ts.map +1 -0
- package/dist/ecosystem/index.js +9 -0
- package/dist/ecosystem/index.js.map +1 -0
- package/dist/integration/agentic-integration.d.ts +73 -0
- package/dist/integration/agentic-integration.d.ts.map +1 -0
- package/dist/integration/agentic-integration.js +253 -0
- package/dist/integration/agentic-integration.js.map +1 -0
- package/dist/integration/background-agents-integration.d.ts +54 -0
- package/dist/integration/background-agents-integration.d.ts.map +1 -0
- package/dist/integration/background-agents-integration.js +225 -0
- package/dist/integration/background-agents-integration.js.map +1 -0
- package/dist/integration/dcp-integration.d.ts +81 -0
- package/dist/integration/dcp-integration.d.ts.map +1 -0
- package/dist/integration/dcp-integration.js +189 -0
- package/dist/integration/dcp-integration.js.map +1 -0
- package/dist/integration/firecrawl-integration.d.ts +61 -0
- package/dist/integration/firecrawl-integration.d.ts.map +1 -0
- package/dist/integration/firecrawl-integration.js +246 -0
- package/dist/integration/firecrawl-integration.js.map +1 -0
- package/dist/integration/index.d.ts +40 -0
- package/dist/integration/index.d.ts.map +1 -0
- package/dist/integration/index.js +43 -0
- package/dist/integration/index.js.map +1 -0
- package/dist/integration/integration-hub.d.ts +43 -0
- package/dist/integration/integration-hub.d.ts.map +1 -0
- package/dist/integration/integration-hub.js +507 -0
- package/dist/integration/integration-hub.js.map +1 -0
- package/dist/integration/integration-loader.d.ts +42 -0
- package/dist/integration/integration-loader.d.ts.map +1 -0
- package/dist/integration/integration-loader.js +240 -0
- package/dist/integration/integration-loader.js.map +1 -0
- package/dist/integration/md-table-formatter-integration.d.ts +41 -0
- package/dist/integration/md-table-formatter-integration.d.ts.map +1 -0
- package/dist/integration/md-table-formatter-integration.js +183 -0
- package/dist/integration/md-table-formatter-integration.js.map +1 -0
- package/dist/integration/native/agentic/agentic-engine.d.ts +52 -0
- package/dist/integration/native/agentic/agentic-engine.d.ts.map +1 -0
- package/dist/integration/native/agentic/agentic-engine.js +267 -0
- package/dist/integration/native/agentic/agentic-engine.js.map +1 -0
- package/dist/integration/native/background/background-engine.d.ts +62 -0
- package/dist/integration/native/background/background-engine.d.ts.map +1 -0
- package/dist/integration/native/background/background-engine.js +167 -0
- package/dist/integration/native/background/background-engine.js.map +1 -0
- package/dist/integration/native/dcp/dcp-engine.d.ts +55 -0
- package/dist/integration/native/dcp/dcp-engine.d.ts.map +1 -0
- package/dist/integration/native/dcp/dcp-engine.js +168 -0
- package/dist/integration/native/dcp/dcp-engine.js.map +1 -0
- package/dist/integration/native/firecrawl/firecrawl-engine.d.ts +66 -0
- package/dist/integration/native/firecrawl/firecrawl-engine.d.ts.map +1 -0
- package/dist/integration/native/firecrawl/firecrawl-engine.js +221 -0
- package/dist/integration/native/firecrawl/firecrawl-engine.js.map +1 -0
- package/dist/integration/native/formatter/formatter-engine.d.ts +47 -0
- package/dist/integration/native/formatter/formatter-engine.d.ts.map +1 -0
- package/dist/integration/native/formatter/formatter-engine.js +130 -0
- package/dist/integration/native/formatter/formatter-engine.js.map +1 -0
- package/dist/integration/native/index.d.ts +41 -0
- package/dist/integration/native/index.d.ts.map +1 -0
- package/dist/integration/native/index.js +80 -0
- package/dist/integration/native/index.js.map +1 -0
- package/dist/integration/native/orchestration/orchestration-engine.d.ts +62 -0
- package/dist/integration/native/orchestration/orchestration-engine.d.ts.map +1 -0
- package/dist/integration/native/orchestration/orchestration-engine.js +177 -0
- package/dist/integration/native/orchestration/orchestration-engine.js.map +1 -0
- package/dist/integration/native/pty/pty-engine.d.ts +45 -0
- package/dist/integration/native/pty/pty-engine.d.ts.map +1 -0
- package/dist/integration/native/pty/pty-engine.js +103 -0
- package/dist/integration/native/pty/pty-engine.js.map +1 -0
- package/dist/integration/native/shell-strategy.d.ts +60 -0
- package/dist/integration/native/shell-strategy.d.ts.map +1 -0
- package/dist/integration/native/shell-strategy.js +131 -0
- package/dist/integration/native/shell-strategy.js.map +1 -0
- package/dist/integration/native/skillful/skillful-engine.d.ts +53 -0
- package/dist/integration/native/skillful/skillful-engine.d.ts.map +1 -0
- package/dist/integration/native/skillful/skillful-engine.js +127 -0
- package/dist/integration/native/skillful/skillful-engine.js.map +1 -0
- package/dist/integration/native/subtask2/subtask2-engine.d.ts +50 -0
- package/dist/integration/native/subtask2/subtask2-engine.d.ts.map +1 -0
- package/dist/integration/native/subtask2/subtask2-engine.js +158 -0
- package/dist/integration/native/subtask2/subtask2-engine.js.map +1 -0
- package/dist/integration/native/supermemory/supermemory-engine.d.ts +63 -0
- package/dist/integration/native/supermemory/supermemory-engine.d.ts.map +1 -0
- package/dist/integration/native/supermemory/supermemory-engine.js +127 -0
- package/dist/integration/native/supermemory/supermemory-engine.js.map +1 -0
- package/dist/integration/native/workspace/workspace-engine.d.ts +75 -0
- package/dist/integration/native/workspace/workspace-engine.d.ts.map +1 -0
- package/dist/integration/native/workspace/workspace-engine.js +216 -0
- package/dist/integration/native/workspace/workspace-engine.js.map +1 -0
- package/dist/integration/oh-my-opencode-integration.d.ts +59 -0
- package/dist/integration/oh-my-opencode-integration.d.ts.map +1 -0
- package/dist/integration/oh-my-opencode-integration.js +180 -0
- package/dist/integration/oh-my-opencode-integration.js.map +1 -0
- package/dist/integration/openagents-control-integration.d.ts +81 -0
- package/dist/integration/openagents-control-integration.d.ts.map +1 -0
- package/dist/integration/openagents-control-integration.js +273 -0
- package/dist/integration/openagents-control-integration.js.map +1 -0
- package/dist/integration/pty-integration.d.ts +64 -0
- package/dist/integration/pty-integration.d.ts.map +1 -0
- package/dist/integration/pty-integration.js +180 -0
- package/dist/integration/pty-integration.js.map +1 -0
- package/dist/integration/shell-strategy-integration.d.ts +26 -0
- package/dist/integration/shell-strategy-integration.d.ts.map +1 -0
- package/dist/integration/shell-strategy-integration.js +110 -0
- package/dist/integration/shell-strategy-integration.js.map +1 -0
- package/dist/integration/skillful-integration.d.ts +74 -0
- package/dist/integration/skillful-integration.d.ts.map +1 -0
- package/dist/integration/skillful-integration.js +317 -0
- package/dist/integration/skillful-integration.js.map +1 -0
- package/dist/integration/subtask2-integration.d.ts +71 -0
- package/dist/integration/subtask2-integration.d.ts.map +1 -0
- package/dist/integration/subtask2-integration.js +240 -0
- package/dist/integration/subtask2-integration.js.map +1 -0
- package/dist/integration/supermemory-integration.d.ts +82 -0
- package/dist/integration/supermemory-integration.d.ts.map +1 -0
- package/dist/integration/supermemory-integration.js +252 -0
- package/dist/integration/supermemory-integration.js.map +1 -0
- package/dist/integration/types.d.ts +218 -0
- package/dist/integration/types.d.ts.map +1 -0
- package/dist/integration/types.js +5 -0
- package/dist/integration/types.js.map +1 -0
- package/dist/integration/workspace-integration.d.ts +46 -0
- package/dist/integration/workspace-integration.d.ts.map +1 -0
- package/dist/integration/workspace-integration.js +181 -0
- package/dist/integration/workspace-integration.js.map +1 -0
- package/dist/knowledge-vault/deepwiki-sync.d.ts +99 -0
- package/dist/knowledge-vault/deepwiki-sync.d.ts.map +1 -0
- package/dist/knowledge-vault/deepwiki-sync.js +381 -0
- package/dist/knowledge-vault/deepwiki-sync.js.map +1 -0
- package/dist/knowledge-vault/index.d.ts +11 -0
- package/dist/knowledge-vault/index.d.ts.map +1 -0
- package/dist/knowledge-vault/index.js +8 -0
- package/dist/knowledge-vault/index.js.map +1 -0
- package/dist/knowledge-vault/knowledge-vault.d.ts +38 -0
- package/dist/knowledge-vault/knowledge-vault.d.ts.map +1 -0
- package/dist/knowledge-vault/knowledge-vault.js +284 -0
- package/dist/knowledge-vault/knowledge-vault.js.map +1 -0
- package/dist/knowledge-vault/opencode-doc-ingest.d.ts +23 -0
- package/dist/knowledge-vault/opencode-doc-ingest.d.ts.map +1 -0
- package/dist/knowledge-vault/opencode-doc-ingest.js +48 -0
- package/dist/knowledge-vault/opencode-doc-ingest.js.map +1 -0
- package/dist/knowledge-vault/types.d.ts +61 -0
- package/dist/knowledge-vault/types.d.ts.map +1 -0
- package/dist/knowledge-vault/types.js +5 -0
- package/dist/knowledge-vault/types.js.map +1 -0
- package/dist/knowledge-vault/vault-config.d.ts +12 -0
- package/dist/knowledge-vault/vault-config.d.ts.map +1 -0
- package/dist/knowledge-vault/vault-config.js +24 -0
- package/dist/knowledge-vault/vault-config.js.map +1 -0
- package/dist/mcp/index.d.ts +28 -0
- package/dist/mcp/index.d.ts.map +1 -0
- package/dist/mcp/index.js +29 -0
- package/dist/mcp/index.js.map +1 -0
- package/dist/mcp/mcp-manager.d.ts +181 -0
- package/dist/mcp/mcp-manager.d.ts.map +1 -0
- package/dist/mcp/mcp-manager.js +621 -0
- package/dist/mcp/mcp-manager.js.map +1 -0
- package/dist/mcp/mcp-types.d.ts +199 -0
- package/dist/mcp/mcp-types.d.ts.map +1 -0
- package/dist/mcp/mcp-types.js +152 -0
- package/dist/mcp/mcp-types.js.map +1 -0
- package/dist/mcp/servers/mcp-server-bridge.d.ts +64 -0
- package/dist/mcp/servers/mcp-server-bridge.d.ts.map +1 -0
- package/dist/mcp/servers/mcp-server-bridge.js +189 -0
- package/dist/mcp/servers/mcp-server-bridge.js.map +1 -0
- package/dist/messages/message-bus.d.ts +148 -0
- package/dist/messages/message-bus.d.ts.map +1 -0
- package/dist/messages/message-bus.js +432 -0
- package/dist/messages/message-bus.js.map +1 -0
- package/dist/modes/custom-mode-registry.d.ts +121 -0
- package/dist/modes/custom-mode-registry.d.ts.map +1 -0
- package/dist/modes/custom-mode-registry.js +306 -0
- package/dist/modes/custom-mode-registry.js.map +1 -0
- package/dist/modes/index.d.ts +10 -0
- package/dist/modes/index.d.ts.map +1 -0
- package/dist/modes/index.js +8 -0
- package/dist/modes/index.js.map +1 -0
- package/dist/modes/mode-designer.d.ts +89 -0
- package/dist/modes/mode-designer.d.ts.map +1 -0
- package/dist/modes/mode-designer.js +485 -0
- package/dist/modes/mode-designer.js.map +1 -0
- package/dist/modes/mode-manager.d.ts +27 -0
- package/dist/modes/mode-manager.d.ts.map +1 -0
- package/dist/modes/mode-manager.js +68 -0
- package/dist/modes/mode-manager.js.map +1 -0
- package/dist/modes/synapse-modes.d.ts +26 -0
- package/dist/modes/synapse-modes.d.ts.map +1 -0
- package/dist/modes/synapse-modes.js +69 -0
- package/dist/modes/synapse-modes.js.map +1 -0
- package/dist/opencode/agent-delegate.d.ts +3 -0
- package/dist/opencode/agent-delegate.d.ts.map +1 -0
- package/dist/opencode/agent-delegate.js +3 -0
- package/dist/opencode/agent-delegate.js.map +1 -0
- package/dist/opencode/tool-bridge.d.ts +3 -0
- package/dist/opencode/tool-bridge.d.ts.map +1 -0
- package/dist/opencode/tool-bridge.js +3 -0
- package/dist/opencode/tool-bridge.js.map +1 -0
- package/dist/optimization/token-optimizer-v2.d.ts +18 -0
- package/dist/optimization/token-optimizer-v2.d.ts.map +1 -0
- package/dist/optimization/token-optimizer-v2.js +23 -0
- package/dist/optimization/token-optimizer-v2.js.map +1 -0
- package/dist/optimization/token-optimizer.d.ts +90 -0
- package/dist/optimization/token-optimizer.d.ts.map +1 -0
- package/dist/optimization/token-optimizer.js +399 -0
- package/dist/optimization/token-optimizer.js.map +1 -0
- package/dist/parallel/agent-farm.d.ts +123 -0
- package/dist/parallel/agent-farm.d.ts.map +1 -0
- package/dist/parallel/agent-farm.js +501 -0
- package/dist/parallel/agent-farm.js.map +1 -0
- package/dist/parallel/farm-scheduler.d.ts +115 -0
- package/dist/parallel/farm-scheduler.d.ts.map +1 -0
- package/dist/parallel/farm-scheduler.js +356 -0
- package/dist/parallel/farm-scheduler.js.map +1 -0
- package/dist/parallel/farm-types.d.ts +104 -0
- package/dist/parallel/farm-types.d.ts.map +1 -0
- package/dist/parallel/farm-types.js +9 -0
- package/dist/parallel/farm-types.js.map +1 -0
- package/dist/parallel/farm-worker.d.ts +62 -0
- package/dist/parallel/farm-worker.d.ts.map +1 -0
- package/dist/parallel/farm-worker.js +268 -0
- package/dist/parallel/farm-worker.js.map +1 -0
- package/dist/parallel/index.d.ts +14 -0
- package/dist/parallel/index.d.ts.map +1 -0
- package/dist/parallel/index.js +14 -0
- package/dist/parallel/index.js.map +1 -0
- package/dist/plugin/native-tools.d.ts +8 -0
- package/dist/plugin/native-tools.d.ts.map +1 -0
- package/dist/plugin/native-tools.js +147 -0
- package/dist/plugin/native-tools.js.map +1 -0
- package/dist/plugin/opencode-plugin.d.ts +32 -0
- package/dist/plugin/opencode-plugin.d.ts.map +1 -0
- package/dist/plugin/opencode-plugin.js +119 -0
- package/dist/plugin/opencode-plugin.js.map +1 -0
- package/dist/plugins/plugin-system.d.ts +108 -0
- package/dist/plugins/plugin-system.d.ts.map +1 -0
- package/dist/plugins/plugin-system.js +707 -0
- package/dist/plugins/plugin-system.js.map +1 -0
- package/dist/profiler/cpu-profiler.d.ts +53 -0
- package/dist/profiler/cpu-profiler.d.ts.map +1 -0
- package/dist/profiler/cpu-profiler.js +233 -0
- package/dist/profiler/cpu-profiler.js.map +1 -0
- package/dist/profiler/index.d.ts +36 -0
- package/dist/profiler/index.d.ts.map +1 -0
- package/dist/profiler/index.js +122 -0
- package/dist/profiler/index.js.map +1 -0
- package/dist/profiler/memory-profiler.d.ts +45 -0
- package/dist/profiler/memory-profiler.d.ts.map +1 -0
- package/dist/profiler/memory-profiler.js +211 -0
- package/dist/profiler/memory-profiler.js.map +1 -0
- package/dist/profiler/profiler-types.d.ts +234 -0
- package/dist/profiler/profiler-types.d.ts.map +1 -0
- package/dist/profiler/profiler-types.js +89 -0
- package/dist/profiler/profiler-types.js.map +1 -0
- package/dist/profiler/query-profiler.d.ts +48 -0
- package/dist/profiler/query-profiler.d.ts.map +1 -0
- package/dist/profiler/query-profiler.js +210 -0
- package/dist/profiler/query-profiler.js.map +1 -0
- package/dist/profiler/report-generator.d.ts +17 -0
- package/dist/profiler/report-generator.d.ts.map +1 -0
- package/dist/profiler/report-generator.js +329 -0
- package/dist/profiler/report-generator.js.map +1 -0
- package/dist/sdk/api.d.ts +85 -0
- package/dist/sdk/api.d.ts.map +1 -0
- package/dist/sdk/api.js +155 -0
- package/dist/sdk/api.js.map +1 -0
- package/dist/sdk/hooks.d.ts +58 -0
- package/dist/sdk/hooks.d.ts.map +1 -0
- package/dist/sdk/hooks.js +115 -0
- package/dist/sdk/hooks.js.map +1 -0
- package/dist/sdk/index.d.ts +17 -0
- package/dist/sdk/index.d.ts.map +1 -0
- package/dist/sdk/index.js +14 -0
- package/dist/sdk/index.js.map +1 -0
- package/dist/sdk/plugin-base.d.ts +198 -0
- package/dist/sdk/plugin-base.d.ts.map +1 -0
- package/dist/sdk/plugin-base.js +227 -0
- package/dist/sdk/plugin-base.js.map +1 -0
- package/dist/security/audit-rules.d.ts +12 -0
- package/dist/security/audit-rules.d.ts.map +1 -0
- package/dist/security/audit-rules.js +214 -0
- package/dist/security/audit-rules.js.map +1 -0
- package/dist/security/index.d.ts +13 -0
- package/dist/security/index.d.ts.map +1 -0
- package/dist/security/index.js +13 -0
- package/dist/security/index.js.map +1 -0
- package/dist/security/sarif-exporter.d.ts +36 -0
- package/dist/security/sarif-exporter.d.ts.map +1 -0
- package/dist/security/sarif-exporter.js +216 -0
- package/dist/security/sarif-exporter.js.map +1 -0
- package/dist/security/security-auditor.d.ts +30 -0
- package/dist/security/security-auditor.d.ts.map +1 -0
- package/dist/security/security-auditor.js +295 -0
- package/dist/security/security-auditor.js.map +1 -0
- package/dist/security/security-types.d.ts +132 -0
- package/dist/security/security-types.d.ts.map +1 -0
- package/dist/security/security-types.js +7 -0
- package/dist/security/security-types.js.map +1 -0
- package/dist/synapsexcoder/agent-delegate.d.ts +128 -0
- package/dist/synapsexcoder/agent-delegate.d.ts.map +1 -0
- package/dist/synapsexcoder/agent-delegate.js +837 -0
- package/dist/synapsexcoder/agent-delegate.js.map +1 -0
- package/dist/synapsexcoder/agent-mailbox.d.ts +26 -0
- package/dist/synapsexcoder/agent-mailbox.d.ts.map +1 -0
- package/dist/synapsexcoder/agent-mailbox.js +64 -0
- package/dist/synapsexcoder/agent-mailbox.js.map +1 -0
- package/dist/synapsexcoder/ast-grep/ast-grep-api.d.ts +62 -0
- package/dist/synapsexcoder/ast-grep/ast-grep-api.d.ts.map +1 -0
- package/dist/synapsexcoder/ast-grep/ast-grep-api.js +223 -0
- package/dist/synapsexcoder/ast-grep/ast-grep-api.js.map +1 -0
- package/dist/synapsexcoder/cited-search.d.ts +32 -0
- package/dist/synapsexcoder/cited-search.d.ts.map +1 -0
- package/dist/synapsexcoder/cited-search.js +141 -0
- package/dist/synapsexcoder/cited-search.js.map +1 -0
- package/dist/synapsexcoder/credential-store.d.ts +42 -0
- package/dist/synapsexcoder/credential-store.d.ts.map +1 -0
- package/dist/synapsexcoder/credential-store.js +165 -0
- package/dist/synapsexcoder/credential-store.js.map +1 -0
- package/dist/synapsexcoder/devcontainer-awareness.d.ts +35 -0
- package/dist/synapsexcoder/devcontainer-awareness.d.ts.map +1 -0
- package/dist/synapsexcoder/devcontainer-awareness.js +133 -0
- package/dist/synapsexcoder/devcontainer-awareness.js.map +1 -0
- package/dist/synapsexcoder/execution-loops/helix-loop.d.ts +31 -0
- package/dist/synapsexcoder/execution-loops/helix-loop.d.ts.map +1 -0
- package/dist/synapsexcoder/execution-loops/helix-loop.js +93 -0
- package/dist/synapsexcoder/execution-loops/helix-loop.js.map +1 -0
- package/dist/synapsexcoder/execution-loops/ralp-loop.d.ts +28 -0
- package/dist/synapsexcoder/execution-loops/ralp-loop.d.ts.map +1 -0
- package/dist/synapsexcoder/execution-loops/ralp-loop.js +77 -0
- package/dist/synapsexcoder/execution-loops/ralp-loop.js.map +1 -0
- package/dist/synapsexcoder/feature-names.d.ts +27 -0
- package/dist/synapsexcoder/feature-names.d.ts.map +1 -0
- package/dist/synapsexcoder/feature-names.js +40 -0
- package/dist/synapsexcoder/feature-names.js.map +1 -0
- package/dist/synapsexcoder/index.d.ts +39 -0
- package/dist/synapsexcoder/index.d.ts.map +1 -0
- package/dist/synapsexcoder/index.js +23 -0
- package/dist/synapsexcoder/index.js.map +1 -0
- package/dist/synapsexcoder/knowledge-provider.d.ts +44 -0
- package/dist/synapsexcoder/knowledge-provider.d.ts.map +1 -0
- package/dist/synapsexcoder/knowledge-provider.js +107 -0
- package/dist/synapsexcoder/knowledge-provider.js.map +1 -0
- package/dist/synapsexcoder/lsp/lsp-layer.d.ts +51 -0
- package/dist/synapsexcoder/lsp/lsp-layer.d.ts.map +1 -0
- package/dist/synapsexcoder/lsp/lsp-layer.js +302 -0
- package/dist/synapsexcoder/lsp/lsp-layer.js.map +1 -0
- package/dist/synapsexcoder/migration/opencode-config-migrator.d.ts +37 -0
- package/dist/synapsexcoder/migration/opencode-config-migrator.d.ts.map +1 -0
- package/dist/synapsexcoder/migration/opencode-config-migrator.js +100 -0
- package/dist/synapsexcoder/migration/opencode-config-migrator.js.map +1 -0
- package/dist/synapsexcoder/runtime-environment.d.ts +35 -0
- package/dist/synapsexcoder/runtime-environment.d.ts.map +1 -0
- package/dist/synapsexcoder/runtime-environment.js +108 -0
- package/dist/synapsexcoder/runtime-environment.js.map +1 -0
- package/dist/synapsexcoder/secret-guard.d.ts +18 -0
- package/dist/synapsexcoder/secret-guard.d.ts.map +1 -0
- package/dist/synapsexcoder/secret-guard.js +69 -0
- package/dist/synapsexcoder/secret-guard.js.map +1 -0
- package/dist/synapsexcoder/self-prompt-engine.d.ts +15 -0
- package/dist/synapsexcoder/self-prompt-engine.d.ts.map +1 -0
- package/dist/synapsexcoder/self-prompt-engine.js +11 -0
- package/dist/synapsexcoder/self-prompt-engine.js.map +1 -0
- package/dist/synapsexcoder/session-observability.d.ts +44 -0
- package/dist/synapsexcoder/session-observability.d.ts.map +1 -0
- package/dist/synapsexcoder/session-observability.js +115 -0
- package/dist/synapsexcoder/session-observability.js.map +1 -0
- package/dist/synapsexcoder/specialist-agents.d.ts +38 -0
- package/dist/synapsexcoder/specialist-agents.d.ts.map +1 -0
- package/dist/synapsexcoder/specialist-agents.js +192 -0
- package/dist/synapsexcoder/specialist-agents.js.map +1 -0
- package/dist/synapsexcoder/swarm/kanban-board.d.ts +34 -0
- package/dist/synapsexcoder/swarm/kanban-board.d.ts.map +1 -0
- package/dist/synapsexcoder/swarm/kanban-board.js +85 -0
- package/dist/synapsexcoder/swarm/kanban-board.js.map +1 -0
- package/dist/synapsexcoder/swarm/swarm-mailbox.d.ts +38 -0
- package/dist/synapsexcoder/swarm/swarm-mailbox.d.ts.map +1 -0
- package/dist/synapsexcoder/swarm/swarm-mailbox.js +93 -0
- package/dist/synapsexcoder/swarm/swarm-mailbox.js.map +1 -0
- package/dist/synapsexcoder/tool-bridge.d.ts +277 -0
- package/dist/synapsexcoder/tool-bridge.d.ts.map +1 -0
- package/dist/synapsexcoder/tool-bridge.js +1356 -0
- package/dist/synapsexcoder/tool-bridge.js.map +1 -0
- package/dist/synapsexcoder/tool-routing.d.ts +28 -0
- package/dist/synapsexcoder/tool-routing.d.ts.map +1 -0
- package/dist/synapsexcoder/tool-routing.js +79 -0
- package/dist/synapsexcoder/tool-routing.js.map +1 -0
- package/dist/synapsexcoder/type-injector.d.ts +26 -0
- package/dist/synapsexcoder/type-injector.d.ts.map +1 -0
- package/dist/synapsexcoder/type-injector.js +124 -0
- package/dist/synapsexcoder/type-injector.js.map +1 -0
- package/dist/synapsexcoder/utils/fuzzy-match.d.ts +25 -0
- package/dist/synapsexcoder/utils/fuzzy-match.d.ts.map +1 -0
- package/dist/synapsexcoder/utils/fuzzy-match.js +83 -0
- package/dist/synapsexcoder/utils/fuzzy-match.js.map +1 -0
- package/dist/synapsexcoder/vault-crawl.d.ts +29 -0
- package/dist/synapsexcoder/vault-crawl.d.ts.map +1 -0
- package/dist/synapsexcoder/vault-crawl.js +103 -0
- package/dist/synapsexcoder/vault-crawl.js.map +1 -0
- package/dist/synapsexcoder/verified-apply.d.ts +39 -0
- package/dist/synapsexcoder/verified-apply.d.ts.map +1 -0
- package/dist/synapsexcoder/verified-apply.js +81 -0
- package/dist/synapsexcoder/verified-apply.js.map +1 -0
- package/dist/synapsexcoder/verified-context-editing.d.ts +34 -0
- package/dist/synapsexcoder/verified-context-editing.d.ts.map +1 -0
- package/dist/synapsexcoder/verified-context-editing.js +80 -0
- package/dist/synapsexcoder/verified-context-editing.js.map +1 -0
- package/dist/synapsexcoder/worker-pool.d.ts +47 -0
- package/dist/synapsexcoder/worker-pool.d.ts.map +1 -0
- package/dist/synapsexcoder/worker-pool.js +120 -0
- package/dist/synapsexcoder/worker-pool.js.map +1 -0
- package/dist/synapsexcoder/workspace-intelligence.d.ts +35 -0
- package/dist/synapsexcoder/workspace-intelligence.d.ts.map +1 -0
- package/dist/synapsexcoder/workspace-intelligence.js +126 -0
- package/dist/synapsexcoder/workspace-intelligence.js.map +1 -0
- package/dist/synapsexcoder/worktree-manager.d.ts +31 -0
- package/dist/synapsexcoder/worktree-manager.d.ts.map +1 -0
- package/dist/synapsexcoder/worktree-manager.js +100 -0
- package/dist/synapsexcoder/worktree-manager.js.map +1 -0
- package/dist/team/index.d.ts +17 -0
- package/dist/team/index.d.ts.map +1 -0
- package/dist/team/index.js +13 -0
- package/dist/team/index.js.map +1 -0
- package/dist/team/team-audit.d.ts +120 -0
- package/dist/team/team-audit.d.ts.map +1 -0
- package/dist/team/team-audit.js +357 -0
- package/dist/team/team-audit.js.map +1 -0
- package/dist/team/team-collaboration.d.ts +150 -0
- package/dist/team/team-collaboration.d.ts.map +1 -0
- package/dist/team/team-collaboration.js +495 -0
- package/dist/team/team-collaboration.js.map +1 -0
- package/dist/team/team-rbac.d.ts +84 -0
- package/dist/team/team-rbac.d.ts.map +1 -0
- package/dist/team/team-rbac.js +259 -0
- package/dist/team/team-rbac.js.map +1 -0
- package/dist/team/team-session-manager.d.ts +100 -0
- package/dist/team/team-session-manager.d.ts.map +1 -0
- package/dist/team/team-session-manager.js +255 -0
- package/dist/team/team-session-manager.js.map +1 -0
- package/dist/thoughts/thoughts-manager.d.ts +52 -0
- package/dist/thoughts/thoughts-manager.d.ts.map +1 -0
- package/dist/thoughts/thoughts-manager.js +271 -0
- package/dist/thoughts/thoughts-manager.js.map +1 -0
- package/dist/tools/api-validator/index.d.ts +97 -0
- package/dist/tools/api-validator/index.d.ts.map +1 -0
- package/dist/tools/api-validator/index.js +312 -0
- package/dist/tools/api-validator/index.js.map +1 -0
- package/dist/tools/code-archaeology/index.d.ts +193 -0
- package/dist/tools/code-archaeology/index.d.ts.map +1 -0
- package/dist/tools/code-archaeology/index.js +468 -0
- package/dist/tools/code-archaeology/index.js.map +1 -0
- package/dist/tools/codebase-search/index.d.ts +126 -0
- package/dist/tools/codebase-search/index.d.ts.map +1 -0
- package/dist/tools/codebase-search/index.js +437 -0
- package/dist/tools/codebase-search/index.js.map +1 -0
- package/dist/tools/context/index.d.ts +162 -0
- package/dist/tools/context/index.d.ts.map +1 -0
- package/dist/tools/context/index.js +332 -0
- package/dist/tools/context/index.js.map +1 -0
- package/dist/tools/deepwiki/analyzer.d.ts +167 -0
- package/dist/tools/deepwiki/analyzer.d.ts.map +1 -0
- package/dist/tools/deepwiki/analyzer.js +925 -0
- package/dist/tools/deepwiki/analyzer.js.map +1 -0
- package/dist/tools/deepwiki/extractor.d.ts +151 -0
- package/dist/tools/deepwiki/extractor.d.ts.map +1 -0
- package/dist/tools/deepwiki/extractor.js +923 -0
- package/dist/tools/deepwiki/extractor.js.map +1 -0
- package/dist/tools/deepwiki/generator.d.ts +89 -0
- package/dist/tools/deepwiki/generator.d.ts.map +1 -0
- package/dist/tools/deepwiki/generator.js +638 -0
- package/dist/tools/deepwiki/generator.js.map +1 -0
- package/dist/tools/deepwiki/index.d.ts +96 -0
- package/dist/tools/deepwiki/index.d.ts.map +1 -0
- package/dist/tools/deepwiki/index.js +282 -0
- package/dist/tools/deepwiki/index.js.map +1 -0
- package/dist/tools/deepwiki/types.d.ts +370 -0
- package/dist/tools/deepwiki/types.d.ts.map +1 -0
- package/dist/tools/deepwiki/types.js +21 -0
- package/dist/tools/deepwiki/types.js.map +1 -0
- package/dist/tools/dependency-mapper/index.d.ts +212 -0
- package/dist/tools/dependency-mapper/index.d.ts.map +1 -0
- package/dist/tools/dependency-mapper/index.js +592 -0
- package/dist/tools/dependency-mapper/index.js.map +1 -0
- package/dist/tools/memory/index.d.ts +120 -0
- package/dist/tools/memory/index.d.ts.map +1 -0
- package/dist/tools/memory/index.js +275 -0
- package/dist/tools/memory/index.js.map +1 -0
- package/dist/tools/normalize_patch.d.ts +3 -0
- package/dist/tools/normalize_patch.d.ts.map +1 -0
- package/dist/tools/normalize_patch.js +22 -0
- package/dist/tools/normalize_patch.js.map +1 -0
- package/dist/tools/pattern-detector/index.d.ts +105 -0
- package/dist/tools/pattern-detector/index.d.ts.map +1 -0
- package/dist/tools/pattern-detector/index.js +526 -0
- package/dist/tools/pattern-detector/index.js.map +1 -0
- package/dist/tools/performance-profiler/index.d.ts +50 -0
- package/dist/tools/performance-profiler/index.d.ts.map +1 -0
- package/dist/tools/performance-profiler/index.js +164 -0
- package/dist/tools/performance-profiler/index.js.map +1 -0
- package/dist/tools/refactoring-engine/index.d.ts +63 -0
- package/dist/tools/refactoring-engine/index.d.ts.map +1 -0
- package/dist/tools/refactoring-engine/index.js +270 -0
- package/dist/tools/refactoring-engine/index.js.map +1 -0
- package/dist/tools/registry.d.ts +36 -0
- package/dist/tools/registry.d.ts.map +1 -0
- package/dist/tools/registry.js +499 -0
- package/dist/tools/registry.js.map +1 -0
- package/dist/tools/test-generator/index.d.ts +152 -0
- package/dist/tools/test-generator/index.d.ts.map +1 -0
- package/dist/tools/test-generator/index.js +448 -0
- package/dist/tools/test-generator/index.js.map +1 -0
- package/dist/types/index.d.ts +565 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +7 -0
- package/dist/types/index.js.map +1 -0
- package/dist/utils/path-validator.d.ts +94 -0
- package/dist/utils/path-validator.d.ts.map +1 -0
- package/dist/utils/path-validator.js +192 -0
- package/dist/utils/path-validator.js.map +1 -0
- package/dist/utils/secure-exec.d.ts +92 -0
- package/dist/utils/secure-exec.d.ts.map +1 -0
- package/dist/utils/secure-exec.js +230 -0
- package/dist/utils/secure-exec.js.map +1 -0
- package/dist/verification/claim-parser.d.ts +37 -0
- package/dist/verification/claim-parser.d.ts.map +1 -0
- package/dist/verification/claim-parser.js +231 -0
- package/dist/verification/claim-parser.js.map +1 -0
- package/dist/verification/cross-reference-engine.d.ts +55 -0
- package/dist/verification/cross-reference-engine.d.ts.map +1 -0
- package/dist/verification/cross-reference-engine.js +149 -0
- package/dist/verification/cross-reference-engine.js.map +1 -0
- package/dist/verification/discrepancy-tracker.d.ts +73 -0
- package/dist/verification/discrepancy-tracker.d.ts.map +1 -0
- package/dist/verification/discrepancy-tracker.js +196 -0
- package/dist/verification/discrepancy-tracker.js.map +1 -0
- package/dist/verification/feature-reconciler.d.ts +90 -0
- package/dist/verification/feature-reconciler.d.ts.map +1 -0
- package/dist/verification/feature-reconciler.js +264 -0
- package/dist/verification/feature-reconciler.js.map +1 -0
- package/dist/verification/index.d.ts +16 -0
- package/dist/verification/index.d.ts.map +1 -0
- package/dist/verification/index.js +19 -0
- package/dist/verification/index.js.map +1 -0
- package/dist/verification/integration-verifier.d.ts +66 -0
- package/dist/verification/integration-verifier.d.ts.map +1 -0
- package/dist/verification/integration-verifier.js +210 -0
- package/dist/verification/integration-verifier.js.map +1 -0
- package/dist/verification/recursive-audit-loop.d.ts +56 -0
- package/dist/verification/recursive-audit-loop.d.ts.map +1 -0
- package/dist/verification/recursive-audit-loop.js +136 -0
- package/dist/verification/recursive-audit-loop.js.map +1 -0
- package/dist/verification/runtime-verifier.d.ts +37 -0
- package/dist/verification/runtime-verifier.d.ts.map +1 -0
- package/dist/verification/runtime-verifier.js +221 -0
- package/dist/verification/runtime-verifier.js.map +1 -0
- package/dist/verification/types.d.ts +88 -0
- package/dist/verification/types.d.ts.map +1 -0
- package/dist/verification/types.js +5 -0
- package/dist/verification/types.js.map +1 -0
- package/dist/verification/verification-engine.d.ts +48 -0
- package/dist/verification/verification-engine.d.ts.map +1 -0
- package/dist/verification/verification-engine.js +203 -0
- package/dist/verification/verification-engine.js.map +1 -0
- package/opencode-agents/synapse-analyzer.md +64 -0
- package/opencode-agents/synapse-debugger.md +43 -0
- package/opencode-agents/synapse-diff-validator.md +42 -0
- package/opencode-agents/synapse-gatekeeper.md +273 -0
- package/opencode-agents/synapse-master.md +167 -0
- package/opencode-agents/synapse-planner.md +55 -0
- package/opencode-agents/synapse-researcher.md +61 -0
- package/opencode-agents/synapse-reviewer.md +64 -0
- package/opencode-agents/synapse-rewriter.md +62 -0
- package/opencode-agents/synapse-strategist.md +50 -0
- package/opencode-agents/synapse-test-runner.md +43 -0
- package/opencode-agents/synapse-ui-designer.md +61 -0
- package/opencode-agents/synapse-verifier.md +544 -0
- package/package.json +108 -0
- package/src/plugin/opencode-plugin.ts +141 -0
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Worktree Awareness — git worktree lifecycle management
|
|
3
|
+
*/
|
|
4
|
+
export interface WorktreeInfo {
|
|
5
|
+
path: string;
|
|
6
|
+
branch: string;
|
|
7
|
+
head: string;
|
|
8
|
+
bare: boolean;
|
|
9
|
+
locked?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export interface CreateWorktreeOptions {
|
|
12
|
+
branch: string;
|
|
13
|
+
path?: string;
|
|
14
|
+
baseBranch?: string;
|
|
15
|
+
force?: boolean;
|
|
16
|
+
}
|
|
17
|
+
export declare class WorktreeManager {
|
|
18
|
+
private repoRoot;
|
|
19
|
+
constructor(repoRoot?: string);
|
|
20
|
+
private git;
|
|
21
|
+
isGitRepo(): boolean;
|
|
22
|
+
list(): WorktreeInfo[];
|
|
23
|
+
private parsePorcelain;
|
|
24
|
+
create(options: CreateWorktreeOptions): WorktreeInfo;
|
|
25
|
+
remove(path: string, force?: boolean): boolean;
|
|
26
|
+
prune(): string;
|
|
27
|
+
getPrimary(): WorktreeInfo | undefined;
|
|
28
|
+
resolvePath(relativePath: string): string;
|
|
29
|
+
}
|
|
30
|
+
export declare function getWorktreeManager(repoRoot?: string): WorktreeManager;
|
|
31
|
+
//# sourceMappingURL=worktree-manager.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"worktree-manager.d.ts","sourceRoot":"","sources":["../../src/synapsexcoder/worktree-manager.ts"],"names":[],"mappings":"AAAA;;GAEG;AAMH,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,qBAAqB;IACpC,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,qBAAa,eAAe;IACd,OAAO,CAAC,QAAQ;gBAAR,QAAQ,GAAE,MAAsB;IAEpD,OAAO,CAAC,GAAG;IAQX,SAAS,IAAI,OAAO;IAIpB,IAAI,IAAI,YAAY,EAAE;IAUtB,OAAO,CAAC,cAAc;IAsBtB,MAAM,CAAC,OAAO,EAAE,qBAAqB,GAAG,YAAY;IAoBpD,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,UAAQ,GAAG,OAAO;IAU5C,KAAK,IAAI,MAAM;IAIf,UAAU,IAAI,YAAY,GAAG,SAAS;IAItC,WAAW,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM;CAK1C;AAED,wBAAgB,kBAAkB,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,eAAe,CAErE"}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Worktree Awareness — git worktree lifecycle management
|
|
3
|
+
*/
|
|
4
|
+
import { execSync } from "child_process";
|
|
5
|
+
import { existsSync } from "fs";
|
|
6
|
+
import { join } from "path";
|
|
7
|
+
export class WorktreeManager {
|
|
8
|
+
repoRoot;
|
|
9
|
+
constructor(repoRoot = process.cwd()) {
|
|
10
|
+
this.repoRoot = repoRoot;
|
|
11
|
+
}
|
|
12
|
+
git(args) {
|
|
13
|
+
return execSync(`git ${args}`, {
|
|
14
|
+
cwd: this.repoRoot,
|
|
15
|
+
encoding: "utf-8",
|
|
16
|
+
stdio: ["pipe", "pipe", "pipe"],
|
|
17
|
+
}).trim();
|
|
18
|
+
}
|
|
19
|
+
isGitRepo() {
|
|
20
|
+
return existsSync(join(this.repoRoot, ".git"));
|
|
21
|
+
}
|
|
22
|
+
list() {
|
|
23
|
+
if (!this.isGitRepo())
|
|
24
|
+
return [];
|
|
25
|
+
try {
|
|
26
|
+
const output = this.git('worktree list --porcelain');
|
|
27
|
+
return this.parsePorcelain(output);
|
|
28
|
+
}
|
|
29
|
+
catch {
|
|
30
|
+
return [];
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
parsePorcelain(output) {
|
|
34
|
+
const worktrees = [];
|
|
35
|
+
let current = {};
|
|
36
|
+
for (const line of output.split("\n")) {
|
|
37
|
+
if (line.startsWith("worktree ")) {
|
|
38
|
+
if (current.path)
|
|
39
|
+
worktrees.push(current);
|
|
40
|
+
current = { path: line.slice(9), bare: false };
|
|
41
|
+
}
|
|
42
|
+
else if (line.startsWith("HEAD ")) {
|
|
43
|
+
current.head = line.slice(5);
|
|
44
|
+
}
|
|
45
|
+
else if (line.startsWith("branch ")) {
|
|
46
|
+
current.branch = line.slice(7).replace("refs/heads/", "");
|
|
47
|
+
}
|
|
48
|
+
else if (line === "bare") {
|
|
49
|
+
current.bare = true;
|
|
50
|
+
}
|
|
51
|
+
else if (line.startsWith("locked")) {
|
|
52
|
+
current.locked = true;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
if (current.path)
|
|
56
|
+
worktrees.push(current);
|
|
57
|
+
return worktrees;
|
|
58
|
+
}
|
|
59
|
+
create(options) {
|
|
60
|
+
if (!this.isGitRepo()) {
|
|
61
|
+
throw new Error(`Not a git repository: ${this.repoRoot}`);
|
|
62
|
+
}
|
|
63
|
+
const wtPath = options.path ??
|
|
64
|
+
join(this.repoRoot, "..", `${options.branch.replace(/\//g, "-")}-worktree`);
|
|
65
|
+
if (options.baseBranch) {
|
|
66
|
+
this.git(`branch ${options.branch} ${options.baseBranch}`);
|
|
67
|
+
}
|
|
68
|
+
const forceFlag = options.force ? " --force" : "";
|
|
69
|
+
this.git(`worktree add${forceFlag} "${wtPath}" ${options.branch}`);
|
|
70
|
+
const created = this.list().find((w) => w.path === wtPath);
|
|
71
|
+
if (!created)
|
|
72
|
+
throw new Error(`Worktree creation failed for ${wtPath}`);
|
|
73
|
+
return created;
|
|
74
|
+
}
|
|
75
|
+
remove(path, force = false) {
|
|
76
|
+
try {
|
|
77
|
+
const flag = force ? " --force" : "";
|
|
78
|
+
this.git(`worktree remove${flag} "${path}"`);
|
|
79
|
+
return true;
|
|
80
|
+
}
|
|
81
|
+
catch {
|
|
82
|
+
return false;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
prune() {
|
|
86
|
+
return this.git("worktree prune");
|
|
87
|
+
}
|
|
88
|
+
getPrimary() {
|
|
89
|
+
return this.list().find((w) => !w.bare);
|
|
90
|
+
}
|
|
91
|
+
resolvePath(relativePath) {
|
|
92
|
+
const primary = this.getPrimary();
|
|
93
|
+
const root = primary?.path ?? this.repoRoot;
|
|
94
|
+
return join(root, relativePath);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
export function getWorktreeManager(repoRoot) {
|
|
98
|
+
return new WorktreeManager(repoRoot);
|
|
99
|
+
}
|
|
100
|
+
//# sourceMappingURL=worktree-manager.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"worktree-manager.js","sourceRoot":"","sources":["../../src/synapsexcoder/worktree-manager.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Team Collaboration Module — Barrel Export
|
|
3
|
+
*
|
|
4
|
+
* Combines the base collaboration system with hardened extensions:
|
|
5
|
+
* - RBAC permission system
|
|
6
|
+
* - Structured audit logging with hash-chain integrity
|
|
7
|
+
* - Session token management with expiry & refresh
|
|
8
|
+
*/
|
|
9
|
+
export { TeamCollaborationSystem, createTeamCollaborationSystem } from "./team-collaboration.js";
|
|
10
|
+
export type { User, TeamSession, CollaborationActivity, SharedRepository, Team, } from "./team-collaboration.js";
|
|
11
|
+
export { RBACManager, getDefaultRBAC, PermissionDeniedError } from "./team-rbac.js";
|
|
12
|
+
export type { Permission, BuiltInRole, RoleDefinition, } from "./team-rbac.js";
|
|
13
|
+
export { AuditLogger, createAuditLogger } from "./team-audit.js";
|
|
14
|
+
export type { AuditAction, AuditSeverity, AuditLogEntry, AuditLogQuery, AuditLogStats, AuditExportFormat, } from "./team-audit.js";
|
|
15
|
+
export { SessionManager, createSessionManager } from "./team-session-manager.js";
|
|
16
|
+
export type { SessionToken, TokenValidationResult, SessionManagerConfig, } from "./team-session-manager.js";
|
|
17
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/team/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,uBAAuB,EAAE,6BAA6B,EAAE,MAAM,yBAAyB,CAAC;AACjG,YAAY,EACV,IAAI,EACJ,WAAW,EACX,qBAAqB,EACrB,gBAAgB,EAChB,IAAI,GACL,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AACpF,YAAY,EACV,UAAU,EACV,WAAW,EACX,cAAc,GACf,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACjE,YAAY,EACV,WAAW,EACX,aAAa,EACb,aAAa,EACb,aAAa,EACb,aAAa,EACb,iBAAiB,GAClB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjF,YAAY,EACV,YAAY,EACZ,qBAAqB,EACrB,oBAAoB,GACrB,MAAM,2BAA2B,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Team Collaboration Module — Barrel Export
|
|
3
|
+
*
|
|
4
|
+
* Combines the base collaboration system with hardened extensions:
|
|
5
|
+
* - RBAC permission system
|
|
6
|
+
* - Structured audit logging with hash-chain integrity
|
|
7
|
+
* - Session token management with expiry & refresh
|
|
8
|
+
*/
|
|
9
|
+
export { TeamCollaborationSystem, createTeamCollaborationSystem } from "./team-collaboration.js";
|
|
10
|
+
export { RBACManager, getDefaultRBAC, PermissionDeniedError } from "./team-rbac.js";
|
|
11
|
+
export { AuditLogger, createAuditLogger } from "./team-audit.js";
|
|
12
|
+
export { SessionManager, createSessionManager } from "./team-session-manager.js";
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/team/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,uBAAuB,EAAE,6BAA6B,EAAE,MAAM,yBAAyB,CAAC;AASjG,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AAOpF,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAUjE,OAAO,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC"}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Team Collaboration — Structured Audit Log
|
|
3
|
+
*
|
|
4
|
+
* Immutable audit trail for all team operations.
|
|
5
|
+
* Entries are append-only with hash chaining for integrity verification.
|
|
6
|
+
* Supports filtering, pagination, rotation, and export.
|
|
7
|
+
*
|
|
8
|
+
* @see team-collaboration.ts for the base collaboration system
|
|
9
|
+
*/
|
|
10
|
+
export type AuditAction = "user.created" | "user.updated" | "user.deleted" | "user.login" | "user.logout" | "session.created" | "session.updated" | "session.deleted" | "session.joined" | "session.left" | "session.locked" | "session.unlocked" | "repository.created" | "repository.updated" | "repository.deleted" | "repository.item_added" | "repository.item_removed" | "repository.shared" | "team.created" | "team.updated" | "team.deleted" | "team.member_added" | "team.member_removed" | "team.role_changed" | "permission.denied" | "config.changed" | "system.startup" | "system.shutdown";
|
|
11
|
+
/** Severity level for audit event classification. */
|
|
12
|
+
export type AuditSeverity = "info" | "warning" | "error" | "critical";
|
|
13
|
+
export interface AuditLogEntry {
|
|
14
|
+
/** Unique entry ID (uuid v4). */
|
|
15
|
+
id: string;
|
|
16
|
+
/** Unix timestamp (ms) of the event. */
|
|
17
|
+
timestamp: number;
|
|
18
|
+
/** The user who performed the action. */
|
|
19
|
+
actorId: string;
|
|
20
|
+
/** The action performed. */
|
|
21
|
+
action: AuditAction;
|
|
22
|
+
/** Severity level. */
|
|
23
|
+
severity: AuditSeverity;
|
|
24
|
+
/** Type of resource affected. */
|
|
25
|
+
resourceType: string;
|
|
26
|
+
/** ID of the resource affected. */
|
|
27
|
+
resourceId: string;
|
|
28
|
+
/** Human-readable description. */
|
|
29
|
+
description: string;
|
|
30
|
+
/** Arbitrary structured payload. */
|
|
31
|
+
details: Record<string, unknown>;
|
|
32
|
+
/** SHA-256 hash of the previous entry (chain integrity). */
|
|
33
|
+
previousHash: string;
|
|
34
|
+
/** SHA-256 hash of this entry's content. */
|
|
35
|
+
hash: string;
|
|
36
|
+
/** Whether this entry can be compacted (true = compactable). */
|
|
37
|
+
compactable: boolean;
|
|
38
|
+
}
|
|
39
|
+
export interface AuditLogQuery {
|
|
40
|
+
actorId?: string;
|
|
41
|
+
action?: AuditAction;
|
|
42
|
+
resourceType?: string;
|
|
43
|
+
resourceId?: string;
|
|
44
|
+
severity?: AuditSeverity;
|
|
45
|
+
startTime?: number;
|
|
46
|
+
endTime?: number;
|
|
47
|
+
limit?: number;
|
|
48
|
+
offset?: number;
|
|
49
|
+
}
|
|
50
|
+
export interface AuditLogStats {
|
|
51
|
+
totalEntries: number;
|
|
52
|
+
oldestEntry: number;
|
|
53
|
+
newestEntry: number;
|
|
54
|
+
bySeverity: Record<AuditSeverity, number>;
|
|
55
|
+
byAction: Record<string, number>;
|
|
56
|
+
diskSizeBytes: number;
|
|
57
|
+
}
|
|
58
|
+
export type AuditExportFormat = "json" | "jsonl" | "csv";
|
|
59
|
+
export declare class AuditLogger {
|
|
60
|
+
private auditDir;
|
|
61
|
+
private currentSegment;
|
|
62
|
+
private entries;
|
|
63
|
+
private maxSegmentSize;
|
|
64
|
+
constructor(projectRoot: string, options?: {
|
|
65
|
+
maxSegmentSize?: number;
|
|
66
|
+
});
|
|
67
|
+
private getLatestSegmentFile;
|
|
68
|
+
private loadCurrentSegment;
|
|
69
|
+
/**
|
|
70
|
+
* Append an entry to the audit log.
|
|
71
|
+
* Returns the created entry for reference.
|
|
72
|
+
*/
|
|
73
|
+
append(params: {
|
|
74
|
+
actorId: string;
|
|
75
|
+
action: AuditAction;
|
|
76
|
+
severity?: AuditSeverity;
|
|
77
|
+
resourceType: string;
|
|
78
|
+
resourceId: string;
|
|
79
|
+
description: string;
|
|
80
|
+
details?: Record<string, unknown>;
|
|
81
|
+
compactable?: boolean;
|
|
82
|
+
}): AuditLogEntry;
|
|
83
|
+
private persistEntry;
|
|
84
|
+
private rotateSegment;
|
|
85
|
+
/**
|
|
86
|
+
* Query audit entries with filters and pagination.
|
|
87
|
+
* Searches across all segment files.
|
|
88
|
+
*/
|
|
89
|
+
query(query?: AuditLogQuery): AuditLogEntry[];
|
|
90
|
+
/**
|
|
91
|
+
* Get the most recent entries (convenience).
|
|
92
|
+
*/
|
|
93
|
+
recent(limit?: number): AuditLogEntry[];
|
|
94
|
+
/**
|
|
95
|
+
* Get entries for a specific actor (convenience).
|
|
96
|
+
*/
|
|
97
|
+
forActor(actorId: string, limit?: number): AuditLogEntry[];
|
|
98
|
+
getStats(): AuditLogStats;
|
|
99
|
+
/**
|
|
100
|
+
* Verify hash chain integrity across all segments.
|
|
101
|
+
* Returns list of corrupted entries (empty = all good).
|
|
102
|
+
*/
|
|
103
|
+
verifyIntegrity(): Array<{
|
|
104
|
+
id: string;
|
|
105
|
+
reason: string;
|
|
106
|
+
}>;
|
|
107
|
+
/**
|
|
108
|
+
* Compact old, compactable entries into a summary.
|
|
109
|
+
* This reduces disk usage for low-value informational entries.
|
|
110
|
+
* Returns count of removed entries.
|
|
111
|
+
*/
|
|
112
|
+
compact(beforeTimestamp: number): number;
|
|
113
|
+
/**
|
|
114
|
+
* Export audit log to a file.
|
|
115
|
+
*/
|
|
116
|
+
exportAudit(format: AuditExportFormat, outputPath?: string): string;
|
|
117
|
+
private loadAllEntries;
|
|
118
|
+
}
|
|
119
|
+
export declare function createAuditLogger(projectRoot: string): AuditLogger;
|
|
120
|
+
//# sourceMappingURL=team-audit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"team-audit.d.ts","sourceRoot":"","sources":["../../src/team/team-audit.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,357 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Team Collaboration — Structured Audit Log
|
|
3
|
+
*
|
|
4
|
+
* Immutable audit trail for all team operations.
|
|
5
|
+
* Entries are append-only with hash chaining for integrity verification.
|
|
6
|
+
* Supports filtering, pagination, rotation, and export.
|
|
7
|
+
*
|
|
8
|
+
* @see team-collaboration.ts for the base collaboration system
|
|
9
|
+
*/
|
|
10
|
+
import { v4 as uuidv4 } from "uuid";
|
|
11
|
+
import { writeFileSync, readFileSync, existsSync, mkdirSync, readdirSync, } from "fs";
|
|
12
|
+
import { join } from "path";
|
|
13
|
+
import { createHash } from "crypto";
|
|
14
|
+
// ========================================================================
|
|
15
|
+
// Hash Chain Utilities
|
|
16
|
+
// ========================================================================
|
|
17
|
+
function hashEntry(entry) {
|
|
18
|
+
const { hash: _hash, ...rest } = entry;
|
|
19
|
+
const canonical = JSON.stringify(rest, Object.keys(rest).sort());
|
|
20
|
+
return createHash("sha256").update(canonical).digest("hex");
|
|
21
|
+
}
|
|
22
|
+
function computePreviousHash(entriesDir, segmentFile) {
|
|
23
|
+
// Look at the last entry in the current segment
|
|
24
|
+
const segmentPath = join(entriesDir, segmentFile);
|
|
25
|
+
if (!existsSync(segmentPath))
|
|
26
|
+
return "0".repeat(64);
|
|
27
|
+
try {
|
|
28
|
+
const content = readFileSync(segmentPath, "utf-8").trim();
|
|
29
|
+
if (!content)
|
|
30
|
+
return "0".repeat(64);
|
|
31
|
+
const lines = content.split("\n").filter(Boolean);
|
|
32
|
+
if (lines.length === 0)
|
|
33
|
+
return "0".repeat(64);
|
|
34
|
+
const lastEntry = JSON.parse(lines[lines.length - 1]);
|
|
35
|
+
return lastEntry.hash;
|
|
36
|
+
}
|
|
37
|
+
catch {
|
|
38
|
+
return "0".repeat(64);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
// ========================================================================
|
|
42
|
+
// Audit Logger
|
|
43
|
+
// ========================================================================
|
|
44
|
+
export class AuditLogger {
|
|
45
|
+
auditDir;
|
|
46
|
+
currentSegment;
|
|
47
|
+
entries = [];
|
|
48
|
+
maxSegmentSize;
|
|
49
|
+
constructor(projectRoot, options) {
|
|
50
|
+
this.auditDir = join(projectRoot, ".synapsexcoder", "team", "audit");
|
|
51
|
+
this.maxSegmentSize = options?.maxSegmentSize ?? 10_000;
|
|
52
|
+
// Ensure directory exists
|
|
53
|
+
if (!existsSync(this.auditDir)) {
|
|
54
|
+
mkdirSync(this.auditDir, { recursive: true });
|
|
55
|
+
}
|
|
56
|
+
// Create or load current segment
|
|
57
|
+
this.currentSegment = this.getLatestSegmentFile();
|
|
58
|
+
this.loadCurrentSegment();
|
|
59
|
+
}
|
|
60
|
+
getLatestSegmentFile() {
|
|
61
|
+
const files = readdirSync(this.auditDir)
|
|
62
|
+
.filter((f) => f.startsWith("audit-") && f.endsWith(".jsonl"))
|
|
63
|
+
.sort()
|
|
64
|
+
.reverse();
|
|
65
|
+
const now = new Date();
|
|
66
|
+
const dateStr = `${now.getUTCFullYear()}-${String(now.getUTCMonth() + 1).padStart(2, "0")}-` +
|
|
67
|
+
`${String(now.getUTCDate()).padStart(2, "0")}`;
|
|
68
|
+
if (files.length > 0) {
|
|
69
|
+
const latest = files[0];
|
|
70
|
+
// If latest segment is from today and under size limit, reuse it
|
|
71
|
+
const segDate = latest.replace("audit-", "").replace(".jsonl", "");
|
|
72
|
+
if (segDate === dateStr)
|
|
73
|
+
return latest;
|
|
74
|
+
}
|
|
75
|
+
// Create new segment
|
|
76
|
+
const newFile = `audit-${dateStr}.jsonl`;
|
|
77
|
+
const newPath = join(this.auditDir, newFile);
|
|
78
|
+
if (!existsSync(newPath)) {
|
|
79
|
+
writeFileSync(newPath, "", "utf-8");
|
|
80
|
+
}
|
|
81
|
+
return newFile;
|
|
82
|
+
}
|
|
83
|
+
loadCurrentSegment() {
|
|
84
|
+
const segPath = join(this.auditDir, this.currentSegment);
|
|
85
|
+
if (!existsSync(segPath))
|
|
86
|
+
return;
|
|
87
|
+
try {
|
|
88
|
+
const content = readFileSync(segPath, "utf-8").trim();
|
|
89
|
+
if (!content)
|
|
90
|
+
return;
|
|
91
|
+
this.entries = content
|
|
92
|
+
.split("\n")
|
|
93
|
+
.filter(Boolean)
|
|
94
|
+
.map((line) => JSON.parse(line));
|
|
95
|
+
}
|
|
96
|
+
catch {
|
|
97
|
+
this.entries = [];
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Append an entry to the audit log.
|
|
102
|
+
* Returns the created entry for reference.
|
|
103
|
+
*/
|
|
104
|
+
append(params) {
|
|
105
|
+
const previousHash = this.entries.length > 0
|
|
106
|
+
? this.entries[this.entries.length - 1].hash
|
|
107
|
+
: computePreviousHash(this.auditDir, this.currentSegment);
|
|
108
|
+
const entryBase = {
|
|
109
|
+
id: uuidv4(),
|
|
110
|
+
timestamp: Date.now(),
|
|
111
|
+
actorId: params.actorId,
|
|
112
|
+
action: params.action,
|
|
113
|
+
severity: params.severity ?? "info",
|
|
114
|
+
resourceType: params.resourceType,
|
|
115
|
+
resourceId: params.resourceId,
|
|
116
|
+
description: params.description,
|
|
117
|
+
details: params.details ?? {},
|
|
118
|
+
previousHash,
|
|
119
|
+
hash: "", // computed below
|
|
120
|
+
compactable: params.compactable ?? false,
|
|
121
|
+
};
|
|
122
|
+
entryBase.hash = hashEntry(entryBase);
|
|
123
|
+
const entry = entryBase;
|
|
124
|
+
this.entries.push(entry);
|
|
125
|
+
this.persistEntry(entry);
|
|
126
|
+
// Roll to new segment if current is full
|
|
127
|
+
if (this.entries.length >= this.maxSegmentSize) {
|
|
128
|
+
this.rotateSegment();
|
|
129
|
+
}
|
|
130
|
+
return entry;
|
|
131
|
+
}
|
|
132
|
+
persistEntry(entry) {
|
|
133
|
+
const segPath = join(this.auditDir, this.currentSegment);
|
|
134
|
+
const line = JSON.stringify(entry) + "\n";
|
|
135
|
+
try {
|
|
136
|
+
writeFileSync(segPath, line, { flag: "a" });
|
|
137
|
+
}
|
|
138
|
+
catch (error) {
|
|
139
|
+
console.warn("Audit: failed to persist entry:", error);
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
rotateSegment() {
|
|
143
|
+
this.currentSegment = this.getLatestSegmentFile();
|
|
144
|
+
this.entries = [];
|
|
145
|
+
this.loadCurrentSegment();
|
|
146
|
+
}
|
|
147
|
+
// ── Querying ───────────────────────────────────────────────────────
|
|
148
|
+
/**
|
|
149
|
+
* Query audit entries with filters and pagination.
|
|
150
|
+
* Searches across all segment files.
|
|
151
|
+
*/
|
|
152
|
+
query(query = {}) {
|
|
153
|
+
const allEntries = this.loadAllEntries();
|
|
154
|
+
const { actorId, action, resourceType, resourceId, severity, startTime, endTime, limit = 100, offset = 0, } = query;
|
|
155
|
+
let filtered = allEntries;
|
|
156
|
+
if (actorId) {
|
|
157
|
+
filtered = filtered.filter((e) => e.actorId === actorId);
|
|
158
|
+
}
|
|
159
|
+
if (action) {
|
|
160
|
+
filtered = filtered.filter((e) => e.action === action);
|
|
161
|
+
}
|
|
162
|
+
if (resourceType) {
|
|
163
|
+
filtered = filtered.filter((e) => e.resourceType === resourceType);
|
|
164
|
+
}
|
|
165
|
+
if (resourceId) {
|
|
166
|
+
filtered = filtered.filter((e) => e.resourceId === resourceId);
|
|
167
|
+
}
|
|
168
|
+
if (severity) {
|
|
169
|
+
filtered = filtered.filter((e) => e.severity === severity);
|
|
170
|
+
}
|
|
171
|
+
if (startTime) {
|
|
172
|
+
filtered = filtered.filter((e) => e.timestamp >= startTime);
|
|
173
|
+
}
|
|
174
|
+
if (endTime) {
|
|
175
|
+
filtered = filtered.filter((e) => e.timestamp <= endTime);
|
|
176
|
+
}
|
|
177
|
+
// Most recent first
|
|
178
|
+
filtered.sort((a, b) => b.timestamp - a.timestamp);
|
|
179
|
+
return filtered.slice(offset, offset + limit);
|
|
180
|
+
}
|
|
181
|
+
/**
|
|
182
|
+
* Get the most recent entries (convenience).
|
|
183
|
+
*/
|
|
184
|
+
recent(limit = 50) {
|
|
185
|
+
return this.query({ limit });
|
|
186
|
+
}
|
|
187
|
+
/**
|
|
188
|
+
* Get entries for a specific actor (convenience).
|
|
189
|
+
*/
|
|
190
|
+
forActor(actorId, limit = 50) {
|
|
191
|
+
return this.query({ actorId, limit });
|
|
192
|
+
}
|
|
193
|
+
// ── Statistics ─────────────────────────────────────────────────────
|
|
194
|
+
getStats() {
|
|
195
|
+
const allEntries = this.loadAllEntries();
|
|
196
|
+
const bySeverity = {
|
|
197
|
+
info: 0, warning: 0, error: 0, critical: 0,
|
|
198
|
+
};
|
|
199
|
+
const byAction = {};
|
|
200
|
+
for (const entry of allEntries) {
|
|
201
|
+
bySeverity[entry.severity]++;
|
|
202
|
+
byAction[entry.action] = (byAction[entry.action] ?? 0) + 1;
|
|
203
|
+
}
|
|
204
|
+
const timestamps = allEntries.map((e) => e.timestamp);
|
|
205
|
+
let diskSizeBytes = 0;
|
|
206
|
+
try {
|
|
207
|
+
const files = readdirSync(this.auditDir);
|
|
208
|
+
for (const file of files) {
|
|
209
|
+
if (file.startsWith("audit-")) {
|
|
210
|
+
const stat = existsSync(join(this.auditDir, file))
|
|
211
|
+
? readFileSync(join(this.auditDir, file)).length
|
|
212
|
+
: 0;
|
|
213
|
+
diskSizeBytes += stat;
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
catch { /* best effort */ }
|
|
218
|
+
return {
|
|
219
|
+
totalEntries: allEntries.length,
|
|
220
|
+
oldestEntry: timestamps.length > 0 ? Math.min(...timestamps) : 0,
|
|
221
|
+
newestEntry: timestamps.length > 0 ? Math.max(...timestamps) : 0,
|
|
222
|
+
bySeverity,
|
|
223
|
+
byAction,
|
|
224
|
+
diskSizeBytes,
|
|
225
|
+
};
|
|
226
|
+
}
|
|
227
|
+
// ── Integrity ──────────────────────────────────────────────────────
|
|
228
|
+
/**
|
|
229
|
+
* Verify hash chain integrity across all segments.
|
|
230
|
+
* Returns list of corrupted entries (empty = all good).
|
|
231
|
+
*/
|
|
232
|
+
verifyIntegrity() {
|
|
233
|
+
const allEntries = this.loadAllEntries();
|
|
234
|
+
const corrupted = [];
|
|
235
|
+
for (let i = 0; i < allEntries.length; i++) {
|
|
236
|
+
const entry = allEntries[i];
|
|
237
|
+
// Verify the hash of this entry
|
|
238
|
+
const { hash, ...rest } = entry;
|
|
239
|
+
const computed = hashEntry(rest);
|
|
240
|
+
if (computed !== entry.hash) {
|
|
241
|
+
corrupted.push({
|
|
242
|
+
id: entry.id,
|
|
243
|
+
reason: `Hash mismatch: expected ${entry.hash}, computed ${computed}`,
|
|
244
|
+
});
|
|
245
|
+
}
|
|
246
|
+
// Verify chain link (skip genesis)
|
|
247
|
+
if (i > 0) {
|
|
248
|
+
const prev = allEntries[i - 1];
|
|
249
|
+
if (entry.previousHash !== prev.hash) {
|
|
250
|
+
corrupted.push({
|
|
251
|
+
id: entry.id,
|
|
252
|
+
reason: `Chain break: expected previous ${prev.hash}, got ${entry.previousHash}`,
|
|
253
|
+
});
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
return corrupted;
|
|
258
|
+
}
|
|
259
|
+
// ── Maintenance ────────────────────────────────────────────────────
|
|
260
|
+
/**
|
|
261
|
+
* Compact old, compactable entries into a summary.
|
|
262
|
+
* This reduces disk usage for low-value informational entries.
|
|
263
|
+
* Returns count of removed entries.
|
|
264
|
+
*/
|
|
265
|
+
compact(beforeTimestamp) {
|
|
266
|
+
let removed = 0;
|
|
267
|
+
const files = readdirSync(this.auditDir)
|
|
268
|
+
.filter((f) => f.startsWith("audit-") && f.endsWith(".jsonl"))
|
|
269
|
+
.sort();
|
|
270
|
+
for (const file of files) {
|
|
271
|
+
const filePath = join(this.auditDir, file);
|
|
272
|
+
try {
|
|
273
|
+
const content = readFileSync(filePath, "utf-8");
|
|
274
|
+
const lines = content.split("\n").filter(Boolean);
|
|
275
|
+
const kept = [];
|
|
276
|
+
for (const line of lines) {
|
|
277
|
+
const entry = JSON.parse(line);
|
|
278
|
+
if (entry.compactable && entry.timestamp < beforeTimestamp) {
|
|
279
|
+
removed++;
|
|
280
|
+
}
|
|
281
|
+
else {
|
|
282
|
+
kept.push(line);
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
writeFileSync(filePath, kept.join("\n") + (kept.length > 0 ? "\n" : ""), "utf-8");
|
|
286
|
+
}
|
|
287
|
+
catch {
|
|
288
|
+
// Skip unreadable files
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
return removed;
|
|
292
|
+
}
|
|
293
|
+
/**
|
|
294
|
+
* Export audit log to a file.
|
|
295
|
+
*/
|
|
296
|
+
exportAudit(format, outputPath) {
|
|
297
|
+
const allEntries = this.loadAllEntries();
|
|
298
|
+
const outPath = outputPath ?? join(this.auditDir, `export-${Date.now()}`);
|
|
299
|
+
let content = "";
|
|
300
|
+
switch (format) {
|
|
301
|
+
case "json":
|
|
302
|
+
content = JSON.stringify(allEntries, null, 2);
|
|
303
|
+
break;
|
|
304
|
+
case "jsonl":
|
|
305
|
+
content = allEntries.map((e) => JSON.stringify(e)).join("\n") + "\n";
|
|
306
|
+
break;
|
|
307
|
+
case "csv": {
|
|
308
|
+
const headers = [
|
|
309
|
+
"id", "timestamp", "actorId", "action", "severity",
|
|
310
|
+
"resourceType", "resourceId", "description", "previousHash", "hash",
|
|
311
|
+
];
|
|
312
|
+
const rows = allEntries.map((e) => headers.map((h) => {
|
|
313
|
+
const val = e[h];
|
|
314
|
+
return typeof val === "string" ? `"${val.replace(/"/g, '""')}"` : String(val ?? "");
|
|
315
|
+
}).join(","));
|
|
316
|
+
content = [headers.join(","), ...rows].join("\n") + "\n";
|
|
317
|
+
break;
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
const ext = format === "csv" ? "csv" : "jsonl";
|
|
321
|
+
const finalPath = outPath.endsWith(`.${ext}`) ? outPath : `${outPath}.${ext}`;
|
|
322
|
+
if (!outputPath) {
|
|
323
|
+
writeFileSync(finalPath, content, "utf-8");
|
|
324
|
+
}
|
|
325
|
+
return finalPath;
|
|
326
|
+
}
|
|
327
|
+
// ── Internal ───────────────────────────────────────────────────────
|
|
328
|
+
loadAllEntries() {
|
|
329
|
+
const files = readdirSync(this.auditDir)
|
|
330
|
+
.filter((f) => f.startsWith("audit-") && f.endsWith(".jsonl"))
|
|
331
|
+
.sort();
|
|
332
|
+
const all = [];
|
|
333
|
+
for (const file of files) {
|
|
334
|
+
try {
|
|
335
|
+
const content = readFileSync(join(this.auditDir, file), "utf-8").trim();
|
|
336
|
+
if (!content)
|
|
337
|
+
continue;
|
|
338
|
+
const entries = content
|
|
339
|
+
.split("\n")
|
|
340
|
+
.filter(Boolean)
|
|
341
|
+
.map((line) => JSON.parse(line));
|
|
342
|
+
all.push(...entries);
|
|
343
|
+
}
|
|
344
|
+
catch {
|
|
345
|
+
// Skip corrupt segments
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
return all;
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
// ========================================================================
|
|
352
|
+
// Factory
|
|
353
|
+
// ========================================================================
|
|
354
|
+
export function createAuditLogger(projectRoot) {
|
|
355
|
+
return new AuditLogger(projectRoot);
|
|
356
|
+
}
|
|
357
|
+
//# sourceMappingURL=team-audit.js.map
|