thoth-agents 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/LICENSE +21 -0
- package/README.md +339 -0
- package/dist/agents/deep.d.ts +2 -0
- package/dist/agents/designer.d.ts +2 -0
- package/dist/agents/explorer.d.ts +2 -0
- package/dist/agents/index.d.ts +8 -0
- package/dist/agents/librarian.d.ts +2 -0
- package/dist/agents/oracle.d.ts +2 -0
- package/dist/agents/orchestrator.d.ts +15 -0
- package/dist/agents/prompt-dialects.d.ts +28 -0
- package/dist/agents/prompt-sections.d.ts +47 -0
- package/dist/agents/prompt-utils.d.ts +25 -0
- package/dist/agents/quick.d.ts +2 -0
- package/dist/cli/codex-config-io.d.ts +31 -0
- package/dist/cli/codex-install.d.ts +41 -0
- package/dist/cli/codex-paths.d.ts +29 -0
- package/dist/cli/config-io.d.ts +22 -0
- package/dist/cli/config-manager.d.ts +4 -0
- package/dist/cli/custom-skills.d.ts +48 -0
- package/dist/cli/index.d.ts +3 -0
- package/dist/cli/index.js +4579 -0
- package/dist/cli/install.d.ts +3 -0
- package/dist/cli/model-key-normalization.d.ts +1 -0
- package/dist/cli/paths.d.ts +21 -0
- package/dist/cli/providers.d.ts +120 -0
- package/dist/cli/skill-manifest.d.ts +32 -0
- package/dist/cli/skills.d.ts +26 -0
- package/dist/cli/system.d.ts +6 -0
- package/dist/cli/types.d.ts +58 -0
- package/dist/config/constants.d.ts +17 -0
- package/dist/config/index.d.ts +5 -0
- package/dist/config/loader.d.ts +33 -0
- package/dist/config/schema.d.ts +279 -0
- package/dist/config/utils.d.ts +10 -0
- package/dist/delegation/project-id.d.ts +10 -0
- package/dist/delegation/types.d.ts +39 -0
- package/dist/harness/adapters/codex-surfaces.d.ts +219 -0
- package/dist/harness/adapters/codex.d.ts +8 -0
- package/dist/harness/adapters/opencode.d.ts +10 -0
- package/dist/harness/codex-plugin-paths.d.ts +1 -0
- package/dist/harness/core/agent-pack.d.ts +88 -0
- package/dist/harness/core/memory-governance.d.ts +33 -0
- package/dist/harness/core/sdd.d.ts +100 -0
- package/dist/harness/core/skills.d.ts +183 -0
- package/dist/harness/generate-codex-plugin.d.ts +9 -0
- package/dist/harness/registry.d.ts +6 -0
- package/dist/harness/types.d.ts +85 -0
- package/dist/harness/writers/codex-plugin-package.d.ts +26 -0
- package/dist/harness/writers/codex-toml.d.ts +10 -0
- package/dist/harness/writers/skill-layout.d.ts +15 -0
- package/dist/hooks/auto-update-checker/cache.d.ts +7 -0
- package/dist/hooks/auto-update-checker/checker.d.ts +28 -0
- package/dist/hooks/auto-update-checker/constants.d.ts +11 -0
- package/dist/hooks/auto-update-checker/index.d.ts +18 -0
- package/dist/hooks/auto-update-checker/types.d.ts +23 -0
- package/dist/hooks/chat-headers.d.ts +16 -0
- package/dist/hooks/delegate-task-retry/guidance.d.ts +2 -0
- package/dist/hooks/delegate-task-retry/hook.d.ts +8 -0
- package/dist/hooks/delegate-task-retry/index.d.ts +4 -0
- package/dist/hooks/delegate-task-retry/patterns.d.ts +11 -0
- package/dist/hooks/foreground-fallback/index.d.ts +73 -0
- package/dist/hooks/index.d.ts +10 -0
- package/dist/hooks/json-error-recovery/hook.d.ts +18 -0
- package/dist/hooks/json-error-recovery/index.d.ts +1 -0
- package/dist/hooks/phase-reminder/index.d.ts +26 -0
- package/dist/hooks/post-read-nudge/index.d.ts +18 -0
- package/dist/hooks/skill-sync.d.ts +10 -0
- package/dist/hooks/thoth-mem/index.d.ts +46 -0
- package/dist/hooks/thoth-mem/protocol.d.ts +7 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +6509 -0
- package/dist/mcp/context7.d.ts +7 -0
- package/dist/mcp/exa.d.ts +6 -0
- package/dist/mcp/grep-app.d.ts +7 -0
- package/dist/mcp/index.d.ts +7 -0
- package/dist/mcp/thoth.d.ts +3 -0
- package/dist/mcp/types.d.ts +12 -0
- package/dist/sdd/artifact-governance/artifact-loader.d.ts +55 -0
- package/dist/sdd/artifact-governance/index.d.ts +6 -0
- package/dist/sdd/artifact-governance/tasks-validator.d.ts +17 -0
- package/dist/sdd/artifact-governance/types.d.ts +52 -0
- package/dist/thoth/client.d.ts +14 -0
- package/dist/thoth/index.d.ts +2 -0
- package/dist/tools/ast-grep/cli.d.ts +15 -0
- package/dist/tools/ast-grep/constants.d.ts +25 -0
- package/dist/tools/ast-grep/downloader.d.ts +5 -0
- package/dist/tools/ast-grep/index.d.ts +10 -0
- package/dist/tools/ast-grep/tools.d.ts +3 -0
- package/dist/tools/ast-grep/types.d.ts +30 -0
- package/dist/tools/ast-grep/utils.d.ts +4 -0
- package/dist/tools/index.d.ts +2 -0
- package/dist/tools/lsp/client.d.ts +42 -0
- package/dist/tools/lsp/config-store.d.ts +29 -0
- package/dist/tools/lsp/config.d.ts +4 -0
- package/dist/tools/lsp/constants.d.ts +25 -0
- package/dist/tools/lsp/index.d.ts +4 -0
- package/dist/tools/lsp/tools.d.ts +5 -0
- package/dist/tools/lsp/types.d.ts +35 -0
- package/dist/tools/lsp/utils.d.ts +34 -0
- package/dist/utils/agent-variant.d.ts +47 -0
- package/dist/utils/env.d.ts +1 -0
- package/dist/utils/file-io.d.ts +3 -0
- package/dist/utils/frontmatter-yaml.d.ts +4 -0
- package/dist/utils/index.d.ts +7 -0
- package/dist/utils/internal-initiator.d.ts +6 -0
- package/dist/utils/logger.d.ts +1 -0
- package/dist/utils/polling.d.ts +21 -0
- package/dist/utils/subprocess.d.ts +24 -0
- package/dist/utils/tmux-session-manager.d.ts +63 -0
- package/dist/utils/tmux.d.ts +32 -0
- package/dist/utils/zip-extractor.d.ts +1 -0
- package/package.json +81 -0
- package/src/skills/_shared/openspec-convention.md +131 -0
- package/src/skills/_shared/persistence-contract.md +162 -0
- package/src/skills/_shared/thoth-mem-convention.md +124 -0
- package/src/skills/executing-plans/SKILL.md +245 -0
- package/src/skills/plan-reviewer/SKILL.md +115 -0
- package/src/skills/requirements-interview/SKILL.md +212 -0
- package/src/skills/sdd-apply/SKILL.md +89 -0
- package/src/skills/sdd-archive/SKILL.md +87 -0
- package/src/skills/sdd-design/SKILL.md +92 -0
- package/src/skills/sdd-init/SKILL.md +148 -0
- package/src/skills/sdd-propose/SKILL.md +89 -0
- package/src/skills/sdd-spec/SKILL.md +93 -0
- package/src/skills/sdd-tasks/SKILL.md +142 -0
- package/src/skills/sdd-verify/SKILL.md +99 -0
- package/src/skills/thoth-mem-agents/SKILL.md +355 -0
- package/thoth-agents.schema.json +470 -0
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
import type { HarnessArtifactKind, HarnessDiagnostic } from '../types';
|
|
2
|
+
export type CodexSurfaceStatus = 'validated' | 'unsupported' | 'unknown';
|
|
3
|
+
export type CodexArtifactTarget = 'agent-definition' | 'config' | 'mcp-config' | 'plugin-manifest' | 'skill-directory' | 'hook-config' | 'permission-control' | 'delegation-runtime' | 'parent-context-injection';
|
|
4
|
+
export interface CodexSurfaceRecord {
|
|
5
|
+
id: string;
|
|
6
|
+
target: CodexArtifactTarget;
|
|
7
|
+
status: CodexSurfaceStatus;
|
|
8
|
+
artifactKind?: HarnessArtifactKind;
|
|
9
|
+
path?: string;
|
|
10
|
+
fields: string[];
|
|
11
|
+
diagnosticCode: string;
|
|
12
|
+
summary: string;
|
|
13
|
+
evidence: string;
|
|
14
|
+
fallback?: 'instruction-only' | 'diagnostic-only' | 'none';
|
|
15
|
+
}
|
|
16
|
+
export type CodexHookEvent = 'SessionStart' | 'UserPromptSubmit' | 'PreToolUse' | 'PermissionRequest' | 'PostToolUse' | 'Stop';
|
|
17
|
+
export type CodexHookHandlerType = 'command' | 'prompt' | 'agent';
|
|
18
|
+
export interface CodexHookValidationInput {
|
|
19
|
+
event: string;
|
|
20
|
+
handler?: {
|
|
21
|
+
type?: string;
|
|
22
|
+
command?: unknown;
|
|
23
|
+
prompt?: unknown;
|
|
24
|
+
agent?: unknown;
|
|
25
|
+
async?: unknown;
|
|
26
|
+
};
|
|
27
|
+
outputFields?: readonly string[];
|
|
28
|
+
interceptsToolExecution?: boolean;
|
|
29
|
+
}
|
|
30
|
+
export type CodexHookValidationResult = {
|
|
31
|
+
ok: true;
|
|
32
|
+
event: CodexHookEvent;
|
|
33
|
+
handlerType: 'command';
|
|
34
|
+
} | {
|
|
35
|
+
ok: false;
|
|
36
|
+
diagnostics: HarnessDiagnostic[];
|
|
37
|
+
};
|
|
38
|
+
export declare const CODEX_PLUGIN_MANIFEST_FIELDS: readonly ["name", "version", "description", "skills", "mcpServers", "apps", "hooks", "interface"];
|
|
39
|
+
export declare const CODEX_SURFACES: readonly [{
|
|
40
|
+
readonly id: "project-agent-toml";
|
|
41
|
+
readonly target: "agent-definition";
|
|
42
|
+
readonly status: "validated";
|
|
43
|
+
readonly artifactKind: "agent-config";
|
|
44
|
+
readonly path: ".codex/agents/{name}.toml";
|
|
45
|
+
readonly fields: ["name", "description", "developer_instructions", "model", "model_reasoning_effort", "sandbox_mode"];
|
|
46
|
+
readonly diagnosticCode: "codex.surface.agent_definition.validated";
|
|
47
|
+
readonly summary: "Project-scoped custom agents are standalone TOML files.";
|
|
48
|
+
readonly evidence: "OpenAI Codex Subagents docs: ~/.codex/agents/ and .codex/agents/ with required name, description, developer_instructions.";
|
|
49
|
+
}, {
|
|
50
|
+
readonly id: "project-config-toml";
|
|
51
|
+
readonly target: "config";
|
|
52
|
+
readonly status: "validated";
|
|
53
|
+
readonly artifactKind: "harness-config";
|
|
54
|
+
readonly path: ".codex/config.toml";
|
|
55
|
+
readonly fields: ["model", "model_reasoning_effort", "approval_policy", "sandbox_mode", "features", "mcp_servers", "skills.config", "agents"];
|
|
56
|
+
readonly diagnosticCode: "codex.surface.config.validated";
|
|
57
|
+
readonly summary: "Codex supports project-scoped config TOML after trust.";
|
|
58
|
+
readonly evidence: "OpenAI Codex Configuration Reference: ~/.codex/config.toml and project .codex/config.toml overrides.";
|
|
59
|
+
}, {
|
|
60
|
+
readonly id: "mcp-server-config";
|
|
61
|
+
readonly target: "mcp-config";
|
|
62
|
+
readonly status: "validated";
|
|
63
|
+
readonly artifactKind: "mcp-config";
|
|
64
|
+
readonly path: ".codex/config.toml";
|
|
65
|
+
readonly fields: ["mcp_servers.<id>", "url", "command", "args", "env", "tools"];
|
|
66
|
+
readonly diagnosticCode: "codex.surface.mcp.validated";
|
|
67
|
+
readonly summary: "MCP servers are configured through Codex config TOML.";
|
|
68
|
+
readonly evidence: "OpenAI Codex config docs describe mcp_servers and per-tool approval overrides.";
|
|
69
|
+
}, {
|
|
70
|
+
readonly id: "repo-skills-directory";
|
|
71
|
+
readonly target: "skill-directory";
|
|
72
|
+
readonly status: "validated";
|
|
73
|
+
readonly artifactKind: "skill";
|
|
74
|
+
readonly path: ".agents/skills/{skill}/SKILL.md";
|
|
75
|
+
readonly fields: ["SKILL.md", "scripts/", "references/", "assets/"];
|
|
76
|
+
readonly diagnosticCode: "codex.surface.skills.validated";
|
|
77
|
+
readonly summary: "Repository skills are discovered from .agents/skills.";
|
|
78
|
+
readonly evidence: "OpenAI Codex Skills docs: repo skills are scanned from .agents/skills up to the repository root.";
|
|
79
|
+
}, {
|
|
80
|
+
readonly id: "project-hooks-json";
|
|
81
|
+
readonly target: "hook-config";
|
|
82
|
+
readonly status: "validated";
|
|
83
|
+
readonly artifactKind: "hook-config";
|
|
84
|
+
readonly path: ".codex/hooks.json";
|
|
85
|
+
readonly fields: ["SessionStart.command", "UserPromptSubmit.command", "PreToolUse.command", "PermissionRequest.command", "PostToolUse.command", "Stop.command"];
|
|
86
|
+
readonly diagnosticCode: "codex.surface.hooks_json.validated";
|
|
87
|
+
readonly summary: "Codex supports project-local hooks.json command handlers.";
|
|
88
|
+
readonly evidence: "OpenAI Codex hooks docs describe hooks.json with SessionStart, UserPromptSubmit, PreToolUse, PermissionRequest, PostToolUse, and Stop command handlers.";
|
|
89
|
+
}, {
|
|
90
|
+
readonly id: "inline-hooks-table";
|
|
91
|
+
readonly target: "hook-config";
|
|
92
|
+
readonly status: "validated";
|
|
93
|
+
readonly artifactKind: "hook-config";
|
|
94
|
+
readonly path: ".codex/config.toml";
|
|
95
|
+
readonly fields: ["hooks.SessionStart.command", "hooks.UserPromptSubmit.command", "hooks.PreToolUse.command", "hooks.PermissionRequest.command", "hooks.PostToolUse.command", "hooks.Stop.command"];
|
|
96
|
+
readonly diagnosticCode: "codex.surface.inline_hooks.validated";
|
|
97
|
+
readonly summary: "Codex supports inline [hooks] configuration in TOML.";
|
|
98
|
+
readonly evidence: "OpenAI Codex configuration docs describe inline [hooks] settings gated by trusted project configuration.";
|
|
99
|
+
}, {
|
|
100
|
+
readonly id: "features-hooks-toggle";
|
|
101
|
+
readonly target: "hook-config";
|
|
102
|
+
readonly status: "validated";
|
|
103
|
+
readonly artifactKind: "hook-config";
|
|
104
|
+
readonly path: ".codex/config.toml";
|
|
105
|
+
readonly fields: ["features.hooks"];
|
|
106
|
+
readonly diagnosticCode: "codex.surface.features_hooks.validated";
|
|
107
|
+
readonly summary: "Codex hook loading is controlled by the features.hooks toggle.";
|
|
108
|
+
readonly evidence: "OpenAI Codex configuration docs require enabling [features].hooks before project hook configuration is active.";
|
|
109
|
+
}, {
|
|
110
|
+
readonly id: "plugin-hooks-bundle";
|
|
111
|
+
readonly target: "hook-config";
|
|
112
|
+
readonly status: "validated";
|
|
113
|
+
readonly artifactKind: "hook-config";
|
|
114
|
+
readonly path: ".codex/plugins/{plugin}/hooks.json";
|
|
115
|
+
readonly fields: ["features.plugin_hooks", "plugin.hooks", "plugin.trust_review"];
|
|
116
|
+
readonly diagnosticCode: "codex.surface.plugin_hooks.validated";
|
|
117
|
+
readonly summary: "Codex plugin hook bundles are documented behind plugin hook feature and trust review gates.";
|
|
118
|
+
readonly evidence: "OpenAI Codex plugin docs describe bundled hook configuration requiring plugin_hooks enablement and trust review.";
|
|
119
|
+
}, {
|
|
120
|
+
readonly id: "plugin-manifest-json";
|
|
121
|
+
readonly target: "plugin-manifest";
|
|
122
|
+
readonly status: "validated";
|
|
123
|
+
readonly artifactKind: "manifest";
|
|
124
|
+
readonly path: ".codex-plugin/plugin.json";
|
|
125
|
+
readonly fields: ["name", "version", "description", "skills", "mcpServers", "apps", "hooks", "interface"];
|
|
126
|
+
readonly diagnosticCode: "codex.surface.plugin_manifest.validated";
|
|
127
|
+
readonly summary: "Codex plugin packages are described by a plugin-root plugin.json manifest.";
|
|
128
|
+
readonly evidence: "OpenAI Codex plugin docs describe plugin.json with official fields including name, version, description, skills, mcpServers, apps, hooks, and interface.";
|
|
129
|
+
}, {
|
|
130
|
+
readonly id: "plugin-skills-directory";
|
|
131
|
+
readonly target: "skill-directory";
|
|
132
|
+
readonly status: "validated";
|
|
133
|
+
readonly artifactKind: "skill";
|
|
134
|
+
readonly path: ".codex-plugin/skills/{skill}/SKILL.md";
|
|
135
|
+
readonly fields: ["skills", "./skills/"];
|
|
136
|
+
readonly diagnosticCode: "codex.surface.plugin_skills.validated";
|
|
137
|
+
readonly summary: "Codex plugin packages can bundle skills under plugin-root skills/.";
|
|
138
|
+
readonly evidence: "OpenAI Codex plugin docs describe plugin-bundled skills referenced from plugin.json using plugin-root relative paths.";
|
|
139
|
+
}, {
|
|
140
|
+
readonly id: "plugin-hooks-json";
|
|
141
|
+
readonly target: "hook-config";
|
|
142
|
+
readonly status: "validated";
|
|
143
|
+
readonly artifactKind: "hook-config";
|
|
144
|
+
readonly path: ".codex-plugin/hooks/hooks.json";
|
|
145
|
+
readonly fields: ["hooks", "./hooks/hooks.json"];
|
|
146
|
+
readonly diagnosticCode: "codex.surface.plugin_hooks_json.validated";
|
|
147
|
+
readonly summary: "Codex plugin packages can bundle hook configuration under plugin-root hooks/.";
|
|
148
|
+
readonly evidence: "OpenAI Codex plugin docs describe hook bundle assets referenced from plugin.json and gated by plugin_hooks plus trust review.";
|
|
149
|
+
}, {
|
|
150
|
+
readonly id: "plugin-mcp-json";
|
|
151
|
+
readonly target: "mcp-config";
|
|
152
|
+
readonly status: "validated";
|
|
153
|
+
readonly artifactKind: "mcp-config";
|
|
154
|
+
readonly path: ".codex-plugin/.mcp.json";
|
|
155
|
+
readonly fields: ["mcpServers", "./.mcp.json"];
|
|
156
|
+
readonly diagnosticCode: "codex.surface.plugin_mcp_json.validated";
|
|
157
|
+
readonly summary: "Codex plugin packages can bundle MCP server definitions in plugin-root .mcp.json.";
|
|
158
|
+
readonly evidence: "OpenAI Codex plugin docs describe bundled .mcp.json server definitions referenced from plugin.json using plugin-root relative paths.";
|
|
159
|
+
}, {
|
|
160
|
+
readonly id: "inline-hooks";
|
|
161
|
+
readonly target: "hook-config";
|
|
162
|
+
readonly status: "unknown";
|
|
163
|
+
readonly artifactKind: "hook-config";
|
|
164
|
+
readonly fields: ["features.hooks", "hooks"];
|
|
165
|
+
readonly diagnosticCode: "codex.surface.hooks.unvalidated";
|
|
166
|
+
readonly summary: "Lifecycle hook availability is documented, but hook event shape and parity with OpenCode runtime hooks is not validated for this adapter.";
|
|
167
|
+
readonly evidence: "Codex config reference mentions hooks; this implementation has not validated exact event schemas for plugin parity.";
|
|
168
|
+
readonly fallback: "diagnostic-only";
|
|
169
|
+
}, {
|
|
170
|
+
readonly id: "per-agent-runtime-permissions";
|
|
171
|
+
readonly target: "permission-control";
|
|
172
|
+
readonly status: "unsupported";
|
|
173
|
+
readonly fields: ["per-agent tool allow/deny equivalent to OpenCode permissions"];
|
|
174
|
+
readonly diagnosticCode: "codex.permission.memory.enforcement_gap";
|
|
175
|
+
readonly summary: "Codex sandbox and approval policy can constrain sessions, but OpenCode-style per-agent MCP/tool deny maps are not validated.";
|
|
176
|
+
readonly evidence: "Codex approvals/security docs cover sandbox and approval policies, not exact OpenCode per-agent permission maps.";
|
|
177
|
+
readonly fallback: "instruction-only";
|
|
178
|
+
}, {
|
|
179
|
+
readonly id: "programmatic-delegation-runtime";
|
|
180
|
+
readonly target: "delegation-runtime";
|
|
181
|
+
readonly status: "unsupported";
|
|
182
|
+
readonly fields: ["task API", "background task sessions", "tmux lifecycle hooks", "automatic subagent session close"];
|
|
183
|
+
readonly diagnosticCode: "codex.delegation.runtime.unsupported";
|
|
184
|
+
readonly summary: "Codex subagents are user/instruction-triggered; no OpenCode plugin task API or automatic subagent session close parity is validated.";
|
|
185
|
+
readonly evidence: "Codex subagents docs describe manual spawning and agent threads, not this plugin runtime task API or a validated runtime close hook.";
|
|
186
|
+
readonly fallback: "instruction-only";
|
|
187
|
+
}, {
|
|
188
|
+
readonly id: "parent-context-injection";
|
|
189
|
+
readonly target: "parent-context-injection";
|
|
190
|
+
readonly status: "unknown";
|
|
191
|
+
readonly fields: ["parent session_id", "project"];
|
|
192
|
+
readonly diagnosticCode: "codex.context.parent_injection.unvalidated";
|
|
193
|
+
readonly summary: "No machine-enforced parent context injection mechanism is validated; prompts must instruct users to include parent session_id/project.";
|
|
194
|
+
readonly evidence: "No validated Codex surface in Phase 1 proves automatic parent context injection into spawned agents.";
|
|
195
|
+
readonly fallback: "instruction-only";
|
|
196
|
+
}];
|
|
197
|
+
export declare function getCodexSurfaceRecords(): CodexSurfaceRecord[];
|
|
198
|
+
export declare function getCodexSurface(id: string): CodexSurfaceRecord | undefined;
|
|
199
|
+
export declare function getValidatedCodexArtifactTargets(): CodexSurfaceRecord[];
|
|
200
|
+
export declare function assertCodexSurfaceCanGenerate(id: string): {
|
|
201
|
+
ok: true;
|
|
202
|
+
surface: CodexSurfaceRecord;
|
|
203
|
+
} | {
|
|
204
|
+
ok: false;
|
|
205
|
+
diagnostic: HarnessDiagnostic;
|
|
206
|
+
};
|
|
207
|
+
export declare function codexSurfaceDiagnostic(surface: CodexSurfaceRecord): HarnessDiagnostic;
|
|
208
|
+
export declare function validateCodexPluginPackageSurface(input: {
|
|
209
|
+
surfaceId: string;
|
|
210
|
+
path?: string;
|
|
211
|
+
fields?: readonly string[];
|
|
212
|
+
}): {
|
|
213
|
+
ok: true;
|
|
214
|
+
surface: CodexSurfaceRecord;
|
|
215
|
+
} | {
|
|
216
|
+
ok: false;
|
|
217
|
+
diagnostics: HarnessDiagnostic[];
|
|
218
|
+
};
|
|
219
|
+
export declare function validateCodexHookSurface(input: CodexHookValidationInput): CodexHookValidationResult;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type PluginConfig } from '../../config';
|
|
2
|
+
import type { HarnessAdapter, HarnessCapabilities, HarnessRenderContext } from '../types';
|
|
3
|
+
export interface CodexRenderContext extends HarnessRenderContext {
|
|
4
|
+
config?: PluginConfig;
|
|
5
|
+
}
|
|
6
|
+
export declare const CODEX_CAPABILITIES: HarnessCapabilities;
|
|
7
|
+
export declare function renderCodexRootInstructions(config?: PluginConfig): string;
|
|
8
|
+
export declare const codexAdapter: HarnessAdapter;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { AgentConfig } from '@opencode-ai/sdk/v2';
|
|
2
|
+
import type { PluginConfig } from '../../config';
|
|
3
|
+
import type { HarnessAdapter, HarnessCapabilities, HarnessRenderContext } from '../types';
|
|
4
|
+
export type OpenCodeAgentConfigs = Record<string, AgentConfig>;
|
|
5
|
+
export interface OpenCodeRenderContext extends HarnessRenderContext {
|
|
6
|
+
config?: PluginConfig;
|
|
7
|
+
}
|
|
8
|
+
export declare const OPENCODE_CAPABILITIES: HarnessCapabilities;
|
|
9
|
+
export declare function renderOpenCodeAgentConfigs(config?: PluginConfig): OpenCodeAgentConfigs;
|
|
10
|
+
export declare const opencodeAdapter: HarnessAdapter;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function codexPluginRootArtifactPath(artifactPath: string): string;
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
export type AgentRoleName = 'orchestrator' | 'explorer' | 'librarian' | 'oracle' | 'designer' | 'quick' | 'deep';
|
|
2
|
+
export type AgentMutationMode = 'primary-non-mutating' | 'read-only' | 'write-capable';
|
|
3
|
+
export type AgentDispatchMethod = 'root-coordinator' | 'task' | 'synchronous-task-only';
|
|
4
|
+
export interface AgentRoleContract {
|
|
5
|
+
name: AgentRoleName;
|
|
6
|
+
mode: AgentMutationMode;
|
|
7
|
+
dispatch: AgentDispatchMethod;
|
|
8
|
+
canMutateWorkspace: boolean;
|
|
9
|
+
scope: string;
|
|
10
|
+
responsibility: string;
|
|
11
|
+
toolGovernance: string[];
|
|
12
|
+
verification: string[];
|
|
13
|
+
}
|
|
14
|
+
export interface AgentPackContract {
|
|
15
|
+
roles: AgentRoleContract[];
|
|
16
|
+
delegateFirstRules: string[];
|
|
17
|
+
verificationProtocol: string[];
|
|
18
|
+
}
|
|
19
|
+
export declare const AGENT_ROLE_NAMES: readonly ["orchestrator", "explorer", "librarian", "oracle", "designer", "quick", "deep"];
|
|
20
|
+
export declare const AGENT_ROLES: readonly [{
|
|
21
|
+
readonly name: "orchestrator";
|
|
22
|
+
readonly mode: "primary-non-mutating";
|
|
23
|
+
readonly dispatch: "root-coordinator";
|
|
24
|
+
readonly canMutateWorkspace: false;
|
|
25
|
+
readonly scope: "coordination, routing, decisions, progress, and root memory";
|
|
26
|
+
readonly responsibility: "Delegate-first coordinator for SDD workflow, specialist dispatch, and root-session memory ownership.";
|
|
27
|
+
readonly toolGovernance: ["delegates inspection, writing, debugging, and verification", "owns question prompts and root-session memory", "does not perform inline workspace implementation"];
|
|
28
|
+
readonly verification: ["routes verification to specialists", "summarizes evidence from changed files, diagnostics, and tests"];
|
|
29
|
+
}, {
|
|
30
|
+
readonly name: "explorer";
|
|
31
|
+
readonly mode: "read-only";
|
|
32
|
+
readonly dispatch: "task";
|
|
33
|
+
readonly canMutateWorkspace: false;
|
|
34
|
+
readonly scope: "local repository discovery";
|
|
35
|
+
readonly responsibility: "Find workspace facts fast and return paths, lines, symbols, constraints, edit targets, and conclusions.";
|
|
36
|
+
readonly toolGovernance: ["read/search/code-navigation tools only", "no durable memory writes", "no task delegation or progress ownership"];
|
|
37
|
+
readonly verification: ["reports confidence, anchors, unchecked areas, and gaps"];
|
|
38
|
+
}, {
|
|
39
|
+
readonly name: "librarian";
|
|
40
|
+
readonly mode: "read-only";
|
|
41
|
+
readonly dispatch: "task";
|
|
42
|
+
readonly canMutateWorkspace: false;
|
|
43
|
+
readonly scope: "external research plus local confirmation when needed";
|
|
44
|
+
readonly responsibility: "Gather authoritative external evidence and distinguish official docs from examples.";
|
|
45
|
+
readonly toolGovernance: ["research and read-only local confirmation tools", "no workspace mutation", "no durable memory writes"];
|
|
46
|
+
readonly verification: ["sources every substantive external claim with a URL"];
|
|
47
|
+
}, {
|
|
48
|
+
readonly name: "oracle";
|
|
49
|
+
readonly mode: "read-only";
|
|
50
|
+
readonly dispatch: "synchronous-task-only";
|
|
51
|
+
readonly canMutateWorkspace: false;
|
|
52
|
+
readonly scope: "advice, diagnosis, architecture, code review, and plan review";
|
|
53
|
+
readonly responsibility: "Provide strategic technical guidance anchored to evidence and review SDD plans.";
|
|
54
|
+
readonly toolGovernance: ["read-only analysis and review", "no implementation or artifact-producing SDD phases", "no task delegation"];
|
|
55
|
+
readonly verification: ["separates observations, risks, and recommendations"];
|
|
56
|
+
}, {
|
|
57
|
+
readonly name: "designer";
|
|
58
|
+
readonly mode: "write-capable";
|
|
59
|
+
readonly dispatch: "synchronous-task-only";
|
|
60
|
+
readonly canMutateWorkspace: true;
|
|
61
|
+
readonly scope: "UI/UX decisions, implementation, and visual verification";
|
|
62
|
+
readonly responsibility: "Own user-facing implementation choices and visual QA for UI work.";
|
|
63
|
+
readonly toolGovernance: ["may edit focused UI/UX files", "owns screenshots and visual QA", "does not delegate or own SDD progress"];
|
|
64
|
+
readonly verification: ["includes visual verification status when applicable"];
|
|
65
|
+
}, {
|
|
66
|
+
readonly name: "quick";
|
|
67
|
+
readonly mode: "write-capable";
|
|
68
|
+
readonly dispatch: "synchronous-task-only";
|
|
69
|
+
readonly canMutateWorkspace: true;
|
|
70
|
+
readonly scope: "fast bounded implementation";
|
|
71
|
+
readonly responsibility: "Implement well-defined narrow or mechanical changes with focused verification.";
|
|
72
|
+
readonly toolGovernance: ["may edit bounded targets", "does not perform broad rediscovery", "does not delegate or own SDD progress"];
|
|
73
|
+
readonly verification: ["runs the smallest sufficient focused check"];
|
|
74
|
+
}, {
|
|
75
|
+
readonly name: "deep";
|
|
76
|
+
readonly mode: "write-capable";
|
|
77
|
+
readonly dispatch: "synchronous-task-only";
|
|
78
|
+
readonly canMutateWorkspace: true;
|
|
79
|
+
readonly scope: "thorough implementation and verification";
|
|
80
|
+
readonly responsibility: "Handle correctness-critical, multi-file, or edge-case-heavy changes with full local context analysis.";
|
|
81
|
+
readonly toolGovernance: ["may edit implementation and tests", "validates shared behavior against related code and call sites", "does not delegate or own SDD progress"];
|
|
82
|
+
readonly verification: ["does not skip verification and reports edge-case evidence"];
|
|
83
|
+
}];
|
|
84
|
+
export declare const DELEGATE_FIRST_RULES: readonly ["The orchestrator coordinates, decides, asks blocking questions, and delegates evidence or action.", "Explorer, librarian, and oracle remain read-only specialists.", "Designer, quick, and deep are write-capable leaf agents with synchronous task dispatch.", "Subagents return findings, diffs, verification, and blockers rather than raw file dumps.", "No leaf agent owns SDD progress checkboxes or orchestrator-only memory."];
|
|
85
|
+
export declare const VERIFICATION_PROTOCOL: readonly ["Completion reports include changed files and verification evidence.", "Behavior changes require the smallest sufficient automated check or an explicitly documented check.", "Visual changes require designer-owned visual QA when feasible."];
|
|
86
|
+
export declare const AGENT_PACK_CONTRACT: AgentPackContract;
|
|
87
|
+
export declare function getAgentRole(name: AgentRoleName): AgentRoleContract;
|
|
88
|
+
export declare function getAgentPackContract(): AgentPackContract;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { HarnessPromptDialect } from '../../agents/prompt-dialects';
|
|
2
|
+
import type { HarnessCapabilityStatus, HarnessDiagnostic } from '../types';
|
|
3
|
+
import type { AgentRoleContract, AgentRoleName } from './agent-pack';
|
|
4
|
+
export type MemoryToolName = 'mem_session_start' | 'mem_session_summary' | 'mem_save_prompt' | 'mem_search' | 'mem_timeline' | 'mem_get_observation' | 'mem_suggest_topic_key' | 'mem_save';
|
|
5
|
+
export type MemoryRuntimeEnforcement = 'runtime' | 'instruction-only';
|
|
6
|
+
export interface RoleMemoryGovernance {
|
|
7
|
+
role: AgentRoleName;
|
|
8
|
+
rootOwnedTools: MemoryToolName[];
|
|
9
|
+
allowedTools: MemoryToolName[];
|
|
10
|
+
forbiddenTools: MemoryToolName[];
|
|
11
|
+
requiresParentContext: boolean;
|
|
12
|
+
mayReadProjectMemory: boolean;
|
|
13
|
+
mayWriteDurableObservations: boolean;
|
|
14
|
+
protectsSddNamespace: boolean;
|
|
15
|
+
rules: string[];
|
|
16
|
+
}
|
|
17
|
+
export interface MemoryGovernanceContract {
|
|
18
|
+
rootOwnedTools: MemoryToolName[];
|
|
19
|
+
readRecallChain: MemoryToolName[];
|
|
20
|
+
writeCapableDelegatedTools: MemoryToolName[];
|
|
21
|
+
protectedTopicNamespaces: string[];
|
|
22
|
+
roles: RoleMemoryGovernance[];
|
|
23
|
+
}
|
|
24
|
+
export interface MemoryGovernanceDiagnosticInput {
|
|
25
|
+
harness: string;
|
|
26
|
+
permissionControls: HarnessCapabilityStatus;
|
|
27
|
+
parentContextInjection: HarnessCapabilityStatus;
|
|
28
|
+
memoryWriteControls: HarnessCapabilityStatus;
|
|
29
|
+
}
|
|
30
|
+
export declare function getRoleMemoryGovernance(role: AgentRoleContract): RoleMemoryGovernance;
|
|
31
|
+
export declare function getMemoryGovernanceContract(roles: readonly AgentRoleContract[]): MemoryGovernanceContract;
|
|
32
|
+
export declare function renderMemoryGovernanceInstructions(role: AgentRoleContract, dialect?: HarnessPromptDialect): string;
|
|
33
|
+
export declare function memoryGovernanceDiagnostics(input: MemoryGovernanceDiagnosticInput): HarnessDiagnostic[];
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
export type SddPipelineType = 'direct' | 'accelerated' | 'full';
|
|
2
|
+
export type SddPhaseId = 'requirements-interview' | 'proposal' | 'spec' | 'design' | 'tasks' | 'plan-review' | 'implementation-confirmation' | 'apply' | 'verify' | 'archive';
|
|
3
|
+
export interface SddPhaseContract {
|
|
4
|
+
id: SddPhaseId;
|
|
5
|
+
order: number;
|
|
6
|
+
requiredFor: SddPipelineType[];
|
|
7
|
+
prerequisites: SddPhaseId[];
|
|
8
|
+
producesArtifact: boolean;
|
|
9
|
+
gate?: 'oracle-review' | 'user-confirmation';
|
|
10
|
+
owner: 'orchestrator' | 'write-capable-agent' | 'oracle' | 'user';
|
|
11
|
+
}
|
|
12
|
+
export interface SddWorkflowContract {
|
|
13
|
+
phases: SddPhaseContract[];
|
|
14
|
+
routingRules: string[];
|
|
15
|
+
artifactRules: string[];
|
|
16
|
+
verificationRules: string[];
|
|
17
|
+
}
|
|
18
|
+
export declare const FULL_SDD_PHASE_ORDER: readonly ["requirements-interview", "proposal", "spec", "design", "tasks", "plan-review", "implementation-confirmation", "apply", "verify", "archive"];
|
|
19
|
+
export declare const SDD_PHASES: readonly [{
|
|
20
|
+
readonly id: "requirements-interview";
|
|
21
|
+
readonly order: 0;
|
|
22
|
+
readonly requiredFor: ["direct", "accelerated", "full"];
|
|
23
|
+
readonly prerequisites: [];
|
|
24
|
+
readonly producesArtifact: false;
|
|
25
|
+
readonly owner: "orchestrator";
|
|
26
|
+
}, {
|
|
27
|
+
readonly id: "proposal";
|
|
28
|
+
readonly order: 1;
|
|
29
|
+
readonly requiredFor: ["accelerated", "full"];
|
|
30
|
+
readonly prerequisites: ["requirements-interview"];
|
|
31
|
+
readonly producesArtifact: true;
|
|
32
|
+
readonly owner: "write-capable-agent";
|
|
33
|
+
}, {
|
|
34
|
+
readonly id: "spec";
|
|
35
|
+
readonly order: 2;
|
|
36
|
+
readonly requiredFor: ["full"];
|
|
37
|
+
readonly prerequisites: ["proposal"];
|
|
38
|
+
readonly producesArtifact: true;
|
|
39
|
+
readonly owner: "write-capable-agent";
|
|
40
|
+
}, {
|
|
41
|
+
readonly id: "design";
|
|
42
|
+
readonly order: 3;
|
|
43
|
+
readonly requiredFor: ["full"];
|
|
44
|
+
readonly prerequisites: ["proposal", "spec"];
|
|
45
|
+
readonly producesArtifact: true;
|
|
46
|
+
readonly owner: "write-capable-agent";
|
|
47
|
+
}, {
|
|
48
|
+
readonly id: "tasks";
|
|
49
|
+
readonly order: 4;
|
|
50
|
+
readonly requiredFor: ["accelerated", "full"];
|
|
51
|
+
readonly prerequisites: ["proposal", "spec", "design"];
|
|
52
|
+
readonly producesArtifact: true;
|
|
53
|
+
readonly owner: "write-capable-agent";
|
|
54
|
+
}, {
|
|
55
|
+
readonly id: "plan-review";
|
|
56
|
+
readonly order: 5;
|
|
57
|
+
readonly requiredFor: ["accelerated", "full"];
|
|
58
|
+
readonly prerequisites: ["tasks"];
|
|
59
|
+
readonly producesArtifact: false;
|
|
60
|
+
readonly gate: "oracle-review";
|
|
61
|
+
readonly owner: "oracle";
|
|
62
|
+
}, {
|
|
63
|
+
readonly id: "implementation-confirmation";
|
|
64
|
+
readonly order: 6;
|
|
65
|
+
readonly requiredFor: ["accelerated", "full"];
|
|
66
|
+
readonly prerequisites: ["plan-review"];
|
|
67
|
+
readonly producesArtifact: false;
|
|
68
|
+
readonly gate: "user-confirmation";
|
|
69
|
+
readonly owner: "user";
|
|
70
|
+
}, {
|
|
71
|
+
readonly id: "apply";
|
|
72
|
+
readonly order: 7;
|
|
73
|
+
readonly requiredFor: ["direct", "accelerated", "full"];
|
|
74
|
+
readonly prerequisites: ["implementation-confirmation"];
|
|
75
|
+
readonly producesArtifact: false;
|
|
76
|
+
readonly owner: "write-capable-agent";
|
|
77
|
+
}, {
|
|
78
|
+
readonly id: "verify";
|
|
79
|
+
readonly order: 8;
|
|
80
|
+
readonly requiredFor: ["accelerated", "full"];
|
|
81
|
+
readonly prerequisites: ["apply"];
|
|
82
|
+
readonly producesArtifact: true;
|
|
83
|
+
readonly owner: "write-capable-agent";
|
|
84
|
+
}, {
|
|
85
|
+
readonly id: "archive";
|
|
86
|
+
readonly order: 9;
|
|
87
|
+
readonly requiredFor: ["accelerated", "full"];
|
|
88
|
+
readonly prerequisites: ["verify"];
|
|
89
|
+
readonly producesArtifact: true;
|
|
90
|
+
readonly owner: "write-capable-agent";
|
|
91
|
+
}];
|
|
92
|
+
export declare const SDD_WORKFLOW_CONTRACT: SddWorkflowContract;
|
|
93
|
+
export declare function getSddWorkflowContract(): SddWorkflowContract;
|
|
94
|
+
export declare function getSddPhase(id: SddPhaseId): SddPhaseContract;
|
|
95
|
+
export declare function getRequiredSddPhaseOrder(pipeline: SddPipelineType): SddPhaseId[];
|
|
96
|
+
export declare function canEnterSddPhase({ pipeline, completed, target, }: {
|
|
97
|
+
pipeline: SddPipelineType;
|
|
98
|
+
completed: readonly SddPhaseId[];
|
|
99
|
+
target: SddPhaseId;
|
|
100
|
+
}): boolean;
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
import type { AgentRoleName } from './agent-pack';
|
|
2
|
+
export type SkillRegistryEntryKind = 'skill' | 'shared-support';
|
|
3
|
+
export interface SkillRegistryEntry {
|
|
4
|
+
name: string;
|
|
5
|
+
description: string;
|
|
6
|
+
allowedRoles: AgentRoleName[];
|
|
7
|
+
sourcePath: string;
|
|
8
|
+
kind: SkillRegistryEntryKind;
|
|
9
|
+
purpose: 'requirements' | 'sdd' | 'review' | 'memory' | 'discovery' | 'support';
|
|
10
|
+
}
|
|
11
|
+
export declare const SHARED_SKILL_SUPPORT: SkillRegistryEntry;
|
|
12
|
+
export declare const BUNDLED_SKILL_REGISTRY: readonly [{
|
|
13
|
+
readonly name: "requirements-interview";
|
|
14
|
+
readonly description: "Mandatory step-0 discovery interview to understand user intent, clarify scope, and choose the right path before implementation";
|
|
15
|
+
readonly allowedRoles: AgentRoleName[];
|
|
16
|
+
readonly sourcePath: "src/skills/requirements-interview";
|
|
17
|
+
readonly kind: "skill";
|
|
18
|
+
readonly purpose: "requirements";
|
|
19
|
+
}, {
|
|
20
|
+
readonly name: "thoth-mem-agents";
|
|
21
|
+
readonly description: "Orchestrator/subagent thoth-mem workflow contract for parent session_id/project ownership, prompt-save prohibitions, and safe durable memory usage";
|
|
22
|
+
readonly allowedRoles: ["orchestrator", "explorer", "librarian", "oracle", "designer", "quick", "deep"];
|
|
23
|
+
readonly sourcePath: "src/skills/thoth-mem-agents";
|
|
24
|
+
readonly kind: "skill";
|
|
25
|
+
readonly purpose: "memory";
|
|
26
|
+
}, {
|
|
27
|
+
readonly name: "plan-reviewer";
|
|
28
|
+
readonly description: "Review SDD task plans for execution blockers and valid references";
|
|
29
|
+
readonly allowedRoles: ["orchestrator", "oracle"];
|
|
30
|
+
readonly sourcePath: "src/skills/plan-reviewer";
|
|
31
|
+
readonly kind: "skill";
|
|
32
|
+
readonly purpose: "review";
|
|
33
|
+
}, {
|
|
34
|
+
readonly name: "sdd-init";
|
|
35
|
+
readonly description: "Initialize OpenSpec structure and SDD project context";
|
|
36
|
+
readonly allowedRoles: AgentRoleName[];
|
|
37
|
+
readonly sourcePath: "src/skills/sdd-init";
|
|
38
|
+
readonly kind: "skill";
|
|
39
|
+
readonly purpose: "sdd";
|
|
40
|
+
}, {
|
|
41
|
+
readonly name: "sdd-propose";
|
|
42
|
+
readonly description: "Create change proposals for OpenSpec workflows";
|
|
43
|
+
readonly allowedRoles: AgentRoleName[];
|
|
44
|
+
readonly sourcePath: "src/skills/sdd-propose";
|
|
45
|
+
readonly kind: "skill";
|
|
46
|
+
readonly purpose: "sdd";
|
|
47
|
+
}, {
|
|
48
|
+
readonly name: "sdd-spec";
|
|
49
|
+
readonly description: "Write OpenSpec delta specifications";
|
|
50
|
+
readonly allowedRoles: AgentRoleName[];
|
|
51
|
+
readonly sourcePath: "src/skills/sdd-spec";
|
|
52
|
+
readonly kind: "skill";
|
|
53
|
+
readonly purpose: "sdd";
|
|
54
|
+
}, {
|
|
55
|
+
readonly name: "sdd-design";
|
|
56
|
+
readonly description: "Create technical design artifacts for changes";
|
|
57
|
+
readonly allowedRoles: AgentRoleName[];
|
|
58
|
+
readonly sourcePath: "src/skills/sdd-design";
|
|
59
|
+
readonly kind: "skill";
|
|
60
|
+
readonly purpose: "sdd";
|
|
61
|
+
}, {
|
|
62
|
+
readonly name: "sdd-tasks";
|
|
63
|
+
readonly description: "Generate phased implementation task checklists";
|
|
64
|
+
readonly allowedRoles: AgentRoleName[];
|
|
65
|
+
readonly sourcePath: "src/skills/sdd-tasks";
|
|
66
|
+
readonly kind: "skill";
|
|
67
|
+
readonly purpose: "sdd";
|
|
68
|
+
}, {
|
|
69
|
+
readonly name: "sdd-apply";
|
|
70
|
+
readonly description: "Execute tasks and persist implementation progress";
|
|
71
|
+
readonly allowedRoles: AgentRoleName[];
|
|
72
|
+
readonly sourcePath: "src/skills/sdd-apply";
|
|
73
|
+
readonly kind: "skill";
|
|
74
|
+
readonly purpose: "sdd";
|
|
75
|
+
}, {
|
|
76
|
+
readonly name: "executing-plans";
|
|
77
|
+
readonly description: "Execute SDD task lists with real-time progress tracking, sub-agent dispatch, and verification checkpoints";
|
|
78
|
+
readonly allowedRoles: AgentRoleName[];
|
|
79
|
+
readonly sourcePath: "src/skills/executing-plans";
|
|
80
|
+
readonly kind: "skill";
|
|
81
|
+
readonly purpose: "sdd";
|
|
82
|
+
}, {
|
|
83
|
+
readonly name: "sdd-verify";
|
|
84
|
+
readonly description: "Build verification reports and compliance matrices";
|
|
85
|
+
readonly allowedRoles: AgentRoleName[];
|
|
86
|
+
readonly sourcePath: "src/skills/sdd-verify";
|
|
87
|
+
readonly kind: "skill";
|
|
88
|
+
readonly purpose: "sdd";
|
|
89
|
+
}, {
|
|
90
|
+
readonly name: "sdd-archive";
|
|
91
|
+
readonly description: "Archive completed OpenSpec changes with audit trails";
|
|
92
|
+
readonly allowedRoles: AgentRoleName[];
|
|
93
|
+
readonly sourcePath: "src/skills/sdd-archive";
|
|
94
|
+
readonly kind: "skill";
|
|
95
|
+
readonly purpose: "sdd";
|
|
96
|
+
}];
|
|
97
|
+
export declare const SKILL_REGISTRY: readonly [{
|
|
98
|
+
readonly name: "requirements-interview";
|
|
99
|
+
readonly description: "Mandatory step-0 discovery interview to understand user intent, clarify scope, and choose the right path before implementation";
|
|
100
|
+
readonly allowedRoles: AgentRoleName[];
|
|
101
|
+
readonly sourcePath: "src/skills/requirements-interview";
|
|
102
|
+
readonly kind: "skill";
|
|
103
|
+
readonly purpose: "requirements";
|
|
104
|
+
}, {
|
|
105
|
+
readonly name: "thoth-mem-agents";
|
|
106
|
+
readonly description: "Orchestrator/subagent thoth-mem workflow contract for parent session_id/project ownership, prompt-save prohibitions, and safe durable memory usage";
|
|
107
|
+
readonly allowedRoles: ["orchestrator", "explorer", "librarian", "oracle", "designer", "quick", "deep"];
|
|
108
|
+
readonly sourcePath: "src/skills/thoth-mem-agents";
|
|
109
|
+
readonly kind: "skill";
|
|
110
|
+
readonly purpose: "memory";
|
|
111
|
+
}, {
|
|
112
|
+
readonly name: "plan-reviewer";
|
|
113
|
+
readonly description: "Review SDD task plans for execution blockers and valid references";
|
|
114
|
+
readonly allowedRoles: ["orchestrator", "oracle"];
|
|
115
|
+
readonly sourcePath: "src/skills/plan-reviewer";
|
|
116
|
+
readonly kind: "skill";
|
|
117
|
+
readonly purpose: "review";
|
|
118
|
+
}, {
|
|
119
|
+
readonly name: "sdd-init";
|
|
120
|
+
readonly description: "Initialize OpenSpec structure and SDD project context";
|
|
121
|
+
readonly allowedRoles: AgentRoleName[];
|
|
122
|
+
readonly sourcePath: "src/skills/sdd-init";
|
|
123
|
+
readonly kind: "skill";
|
|
124
|
+
readonly purpose: "sdd";
|
|
125
|
+
}, {
|
|
126
|
+
readonly name: "sdd-propose";
|
|
127
|
+
readonly description: "Create change proposals for OpenSpec workflows";
|
|
128
|
+
readonly allowedRoles: AgentRoleName[];
|
|
129
|
+
readonly sourcePath: "src/skills/sdd-propose";
|
|
130
|
+
readonly kind: "skill";
|
|
131
|
+
readonly purpose: "sdd";
|
|
132
|
+
}, {
|
|
133
|
+
readonly name: "sdd-spec";
|
|
134
|
+
readonly description: "Write OpenSpec delta specifications";
|
|
135
|
+
readonly allowedRoles: AgentRoleName[];
|
|
136
|
+
readonly sourcePath: "src/skills/sdd-spec";
|
|
137
|
+
readonly kind: "skill";
|
|
138
|
+
readonly purpose: "sdd";
|
|
139
|
+
}, {
|
|
140
|
+
readonly name: "sdd-design";
|
|
141
|
+
readonly description: "Create technical design artifacts for changes";
|
|
142
|
+
readonly allowedRoles: AgentRoleName[];
|
|
143
|
+
readonly sourcePath: "src/skills/sdd-design";
|
|
144
|
+
readonly kind: "skill";
|
|
145
|
+
readonly purpose: "sdd";
|
|
146
|
+
}, {
|
|
147
|
+
readonly name: "sdd-tasks";
|
|
148
|
+
readonly description: "Generate phased implementation task checklists";
|
|
149
|
+
readonly allowedRoles: AgentRoleName[];
|
|
150
|
+
readonly sourcePath: "src/skills/sdd-tasks";
|
|
151
|
+
readonly kind: "skill";
|
|
152
|
+
readonly purpose: "sdd";
|
|
153
|
+
}, {
|
|
154
|
+
readonly name: "sdd-apply";
|
|
155
|
+
readonly description: "Execute tasks and persist implementation progress";
|
|
156
|
+
readonly allowedRoles: AgentRoleName[];
|
|
157
|
+
readonly sourcePath: "src/skills/sdd-apply";
|
|
158
|
+
readonly kind: "skill";
|
|
159
|
+
readonly purpose: "sdd";
|
|
160
|
+
}, {
|
|
161
|
+
readonly name: "executing-plans";
|
|
162
|
+
readonly description: "Execute SDD task lists with real-time progress tracking, sub-agent dispatch, and verification checkpoints";
|
|
163
|
+
readonly allowedRoles: AgentRoleName[];
|
|
164
|
+
readonly sourcePath: "src/skills/executing-plans";
|
|
165
|
+
readonly kind: "skill";
|
|
166
|
+
readonly purpose: "sdd";
|
|
167
|
+
}, {
|
|
168
|
+
readonly name: "sdd-verify";
|
|
169
|
+
readonly description: "Build verification reports and compliance matrices";
|
|
170
|
+
readonly allowedRoles: AgentRoleName[];
|
|
171
|
+
readonly sourcePath: "src/skills/sdd-verify";
|
|
172
|
+
readonly kind: "skill";
|
|
173
|
+
readonly purpose: "sdd";
|
|
174
|
+
}, {
|
|
175
|
+
readonly name: "sdd-archive";
|
|
176
|
+
readonly description: "Archive completed OpenSpec changes with audit trails";
|
|
177
|
+
readonly allowedRoles: AgentRoleName[];
|
|
178
|
+
readonly sourcePath: "src/skills/sdd-archive";
|
|
179
|
+
readonly kind: "skill";
|
|
180
|
+
readonly purpose: "sdd";
|
|
181
|
+
}, SkillRegistryEntry];
|
|
182
|
+
export declare function getSkillRegistry(): SkillRegistryEntry[];
|
|
183
|
+
export declare function getBundledSkillRegistry(): SkillRegistryEntry[];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { HarnessDiagnostic } from './types';
|
|
2
|
+
export interface GenerateCodexPluginPackageOptions {
|
|
3
|
+
projectRoot: string;
|
|
4
|
+
}
|
|
5
|
+
export interface GenerateCodexPluginPackageResult {
|
|
6
|
+
written: string[];
|
|
7
|
+
diagnostics: HarnessDiagnostic[];
|
|
8
|
+
}
|
|
9
|
+
export declare function generateCodexPluginPackage({ projectRoot, }: GenerateCodexPluginPackageOptions): GenerateCodexPluginPackageResult;
|