@lucasreiners/lead 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.
- package/README.md +337 -0
- package/dist/agents/agent-builder.d.ts +30 -0
- package/dist/agents/architect/index.d.ts +4 -0
- package/dist/agents/builtin-agents.d.ts +32 -0
- package/dist/agents/code-analyst/index.d.ts +4 -0
- package/dist/agents/cto/index.d.ts +11 -0
- package/dist/agents/custom-agent-factory.d.ts +27 -0
- package/dist/agents/dynamic-prompt-builder.d.ts +22 -0
- package/dist/agents/engineer/index.d.ts +4 -0
- package/dist/agents/executor/index.d.ts +6 -0
- package/dist/agents/guardian/index.d.ts +4 -0
- package/dist/agents/index.d.ts +17 -0
- package/dist/agents/lead/index.d.ts +11 -0
- package/dist/agents/lead-dev/index.d.ts +6 -0
- package/dist/agents/model-resolution.d.ts +44 -0
- package/dist/agents/prompt-loader.d.ts +30 -0
- package/dist/agents/prompt-utils.d.ts +12 -0
- package/dist/agents/researcher/index.d.ts +4 -0
- package/dist/agents/reviewer/index.d.ts +4 -0
- package/dist/agents/scout/index.d.ts +4 -0
- package/dist/agents/tech-lead/index.d.ts +11 -0
- package/dist/agents/tester/index.d.ts +4 -0
- package/dist/agents/types.d.ts +37 -0
- package/dist/config/continuation.d.ts +13 -0
- package/dist/config/index.d.ts +6 -0
- package/dist/config/loader.d.ts +12 -0
- package/dist/config/merge.d.ts +8 -0
- package/dist/config/scaffold.d.ts +12 -0
- package/dist/config/schema.d.ts +140 -0
- package/dist/create-managers.d.ts +32 -0
- package/dist/create-tools.d.ts +24 -0
- package/dist/domain/plans/index.d.ts +2 -0
- package/dist/domain/policy/policy-result.d.ts +23 -0
- package/dist/domain/session/index.d.ts +41 -0
- package/dist/domain/workflows/index.d.ts +4 -0
- package/dist/domain/workflows/workflow-completion.d.ts +9 -0
- package/dist/domain/workflows/workflow-context.d.ts +9 -0
- package/dist/domain/workflows/workflow-repository.d.ts +19 -0
- package/dist/domain/workflows/workflow-service.d.ts +32 -0
- package/dist/features/skill-loader/discovery.d.ts +36 -0
- package/dist/features/skill-loader/index.d.ts +6 -0
- package/dist/features/skill-loader/loader.d.ts +15 -0
- package/dist/features/skill-loader/opencode-client.d.ts +6 -0
- package/dist/features/skill-loader/resolver.d.ts +8 -0
- package/dist/features/skill-loader/types.d.ts +14 -0
- package/dist/features/work-state/constants.d.ts +4 -0
- package/dist/features/work-state/index.d.ts +5 -0
- package/dist/features/work-state/storage.d.ts +20 -0
- package/dist/features/work-state/types.d.ts +16 -0
- package/dist/features/work-state/validation-types.d.ts +8 -0
- package/dist/features/work-state/validation.d.ts +6 -0
- package/dist/features/workflow/commands.d.ts +10 -0
- package/dist/features/workflow/completion.d.ts +5 -0
- package/dist/features/workflow/constants.d.ts +8 -0
- package/dist/features/workflow/context.d.ts +16 -0
- package/dist/features/workflow/discovery.d.ts +19 -0
- package/dist/features/workflow/engine.d.ts +19 -0
- package/dist/features/workflow/hook.d.ts +45 -0
- package/dist/features/workflow/index.d.ts +9 -0
- package/dist/features/workflow/schema.d.ts +43 -0
- package/dist/features/workflow/storage.d.ts +7 -0
- package/dist/features/workflow/types.d.ts +89 -0
- package/dist/hooks/architect-md-only.d.ts +11 -0
- package/dist/hooks/compaction-recovery.d.ts +20 -0
- package/dist/hooks/compaction-todo-preserver.d.ts +21 -0
- package/dist/hooks/context-window-monitor.d.ts +26 -0
- package/dist/hooks/create-hooks.d.ts +45 -0
- package/dist/hooks/first-message-variant.d.ts +23 -0
- package/dist/hooks/index.d.ts +28 -0
- package/dist/hooks/keyword-detector.d.ts +17 -0
- package/dist/hooks/rules-injector.d.ts +16 -0
- package/dist/hooks/session-token-state.d.ts +31 -0
- package/dist/hooks/start-implementation-hook.d.ts +26 -0
- package/dist/hooks/start-work-hook.d.ts +26 -0
- package/dist/hooks/todo-continuation-enforcer.d.ts +22 -0
- package/dist/hooks/todo-description-override.d.ts +10 -0
- package/dist/hooks/todo-writer.d.ts +20 -0
- package/dist/hooks/verification-reminder.d.ts +21 -0
- package/dist/hooks/work-continuation.d.ts +23 -0
- package/dist/hooks/write-existing-file-guard.d.ts +34 -0
- package/dist/index.d.ts +17 -0
- package/dist/index.js +3811 -0
- package/dist/infrastructure/fs/config-fs-loader.d.ts +6 -0
- package/dist/managers/background-manager.d.ts +48 -0
- package/dist/managers/config-handler.d.ts +31 -0
- package/dist/managers/index.d.ts +6 -0
- package/dist/managers/skill-mcp-manager.d.ts +31 -0
- package/dist/plugin/index.d.ts +2 -0
- package/dist/plugin/plugin-interface.d.ts +7 -0
- package/dist/plugin/types.d.ts +18 -0
- package/dist/runtime/opencode/plugin-adapter.d.ts +17 -0
- package/dist/shared/agent-display-names.d.ts +3 -0
- package/dist/shared/index.d.ts +6 -0
- package/dist/shared/log.d.ts +9 -0
- package/dist/shared/resolve-safe-path.d.ts +7 -0
- package/dist/shared/types.d.ts +3 -0
- package/dist/shared/version.d.ts +1 -0
- package/package.json +39 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Work continuation hook.
|
|
3
|
+
* On session idle, checks if there is active work with remaining tasks.
|
|
4
|
+
* Returns a continuation prompt if work is incomplete and not paused.
|
|
5
|
+
*/
|
|
6
|
+
export interface WorkContinuationOptions {
|
|
7
|
+
/** Current session ID */
|
|
8
|
+
sessionId: string;
|
|
9
|
+
/** Working directory */
|
|
10
|
+
directory: string;
|
|
11
|
+
/** Last assistant message content (for detecting stale continuations) */
|
|
12
|
+
lastAssistantMessage?: string;
|
|
13
|
+
}
|
|
14
|
+
export interface WorkContinuationResult {
|
|
15
|
+
/** Prompt to inject if continuation is needed */
|
|
16
|
+
continuationPrompt: string | null;
|
|
17
|
+
/** Whether the plan is now complete */
|
|
18
|
+
planComplete?: boolean;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Check if active work has remaining tasks and return a continuation prompt.
|
|
22
|
+
*/
|
|
23
|
+
export declare function checkContinuation(options: WorkContinuationOptions): WorkContinuationResult;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Write-existing-file guard.
|
|
3
|
+
* Prevents accidental overwrite of existing files by tracking which files
|
|
4
|
+
* have been read in a session before a write is attempted.
|
|
5
|
+
*/
|
|
6
|
+
export interface WriteGuardState {
|
|
7
|
+
/** Files that have been read in this session (absolute paths) */
|
|
8
|
+
readFiles: Set<string>;
|
|
9
|
+
/** Files that have been written in this session (absolute paths) */
|
|
10
|
+
writtenFiles: Set<string>;
|
|
11
|
+
}
|
|
12
|
+
export interface WriteGuardCheckResult {
|
|
13
|
+
/** Whether the write should be allowed */
|
|
14
|
+
allowed: boolean;
|
|
15
|
+
/** Reason for denial if not allowed */
|
|
16
|
+
reason?: string;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Create a write guard instance for a session.
|
|
20
|
+
* Returns helper functions to track reads/writes and check for unsafe overwrites.
|
|
21
|
+
*/
|
|
22
|
+
export declare function createWriteGuard(): {
|
|
23
|
+
markRead: (filePath: string) => void;
|
|
24
|
+
markWritten: (filePath: string) => void;
|
|
25
|
+
checkWrite: (filePath: string) => Promise<WriteGuardCheckResult>;
|
|
26
|
+
processToolCall: (toolName: string, args: Record<string, unknown>) => void;
|
|
27
|
+
getState: () => {
|
|
28
|
+
/** Files that have been read in this session (absolute paths) */
|
|
29
|
+
readFiles: Set<string>;
|
|
30
|
+
/** Files that have been written in this session (absolute paths) */
|
|
31
|
+
writtenFiles: Set<string>;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
export type WriteGuard = ReturnType<typeof createWriteGuard>;
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { Plugin } from "@opencode-ai/plugin";
|
|
2
|
+
/**
|
|
3
|
+
* Lead OpenCode Plugin.
|
|
4
|
+
*
|
|
5
|
+
* An enterprise-grade AI agent fleet for software development.
|
|
6
|
+
* Provides 8 professional agents: lead, executor, engineer, architect,
|
|
7
|
+
* code-analyst, researcher, reviewer, and guardian.
|
|
8
|
+
*/
|
|
9
|
+
declare const LeadPlugin: Plugin;
|
|
10
|
+
declare const _default: {
|
|
11
|
+
id: string;
|
|
12
|
+
server: Plugin;
|
|
13
|
+
};
|
|
14
|
+
export default _default;
|
|
15
|
+
export { LeadPlugin };
|
|
16
|
+
export type { LeadConfig } from "./config/schema";
|
|
17
|
+
export type { LeadAgentName } from "./agents/types";
|