opencode-swarm 6.64.0 → 6.65.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/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/repo-graph-builder.d.ts +24 -0
- package/dist/index.js +2125 -1302
- package/dist/tools/index.d.ts +1 -0
- package/dist/tools/repo-graph.d.ts +226 -0
- package/dist/utils/path-security.d.ts +10 -0
- package/package.json +1 -1
package/dist/hooks/index.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ export { consolidateSystemMessages } from './messages-transform';
|
|
|
13
13
|
export { extractModelInfo, NATIVE_MODEL_LIMITS, PROVIDER_CAPS, resolveModelLimit, } from './model-limits';
|
|
14
14
|
export { type CuratorDelegateFactory, createPhaseMonitorHook, } from './phase-monitor';
|
|
15
15
|
export { createPipelineTrackerHook } from './pipeline-tracker';
|
|
16
|
+
export { createRepoGraphBuilderHook, type RepoGraphBuilderHook, } from './repo-graph-builder';
|
|
16
17
|
export { buildApprovedReceipt, buildReceiptContextForDrift, buildRejectedReceipt, persistReviewReceipt, readAllReceipts, readReceiptsByScopeHash, } from './review-receipt';
|
|
17
18
|
export { createSystemEnhancerHook } from './system-enhancer';
|
|
18
19
|
export { createToolSummarizerHook, resetSummaryIdCounter, } from './tool-summarizer';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Repo Graph Builder Hook
|
|
3
|
+
*
|
|
4
|
+
* Startup hook that builds or refreshes the repo dependency graph when a session starts.
|
|
5
|
+
* Write-trigger hook that incrementally updates the graph when write tools are called.
|
|
6
|
+
* Wrapped in try/catch — failures are logged but never block plugin initialization.
|
|
7
|
+
*/
|
|
8
|
+
export interface RepoGraphBuilderHook {
|
|
9
|
+
init(): Promise<void>;
|
|
10
|
+
toolAfter(input: {
|
|
11
|
+
tool: string;
|
|
12
|
+
sessionID: string;
|
|
13
|
+
args?: unknown;
|
|
14
|
+
}, output: {
|
|
15
|
+
output?: unknown;
|
|
16
|
+
args?: unknown;
|
|
17
|
+
}): Promise<void>;
|
|
18
|
+
}
|
|
19
|
+
export interface RepoGraphDeps {
|
|
20
|
+
buildWorkspaceGraph: (workspace: string, options?: any) => any;
|
|
21
|
+
saveGraph: (workspace: string, graph: any) => Promise<void>;
|
|
22
|
+
updateGraphForFiles: (workspace: string, files: string[], options?: any) => Promise<any>;
|
|
23
|
+
}
|
|
24
|
+
export declare function createRepoGraphBuilderHook(workspaceRoot: string, deps?: Partial<RepoGraphDeps>): RepoGraphBuilderHook;
|