thoth-agents 0.2.11 → 0.3.1
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/.agents/plugins/marketplace.json +20 -0
- package/.claude-plugin/marketplace.json +21 -0
- package/README.md +301 -311
- package/dist/agents/configured-role-prompt.d.ts +9 -0
- package/dist/agents/prompt-sections.d.ts +8 -4
- package/dist/agents/prompt-utils.d.ts +0 -4
- package/dist/{chunk-ASKXWU6E.js → chunk-2MZ5C2RN.js} +1078 -1725
- package/dist/chunk-XO74DXBZ.js +1781 -0
- package/dist/{chunk-6BNAV534.js → chunk-YUCGIJPP.js} +12 -30
- package/dist/cli/claude-code-install.d.ts +24 -26
- package/dist/cli/claude-code-paths.d.ts +0 -28
- package/dist/cli/codex-install.d.ts +2 -2
- package/dist/cli/codex-paths.d.ts +0 -2
- package/dist/cli/index.js +279 -119
- package/dist/cli/install.d.ts +5 -1
- package/dist/cli/model-catalog/cache.d.ts +1 -1
- package/dist/cli/operations/claude-code.d.ts +6 -3
- package/dist/cli/operations/codex.d.ts +2 -1
- package/dist/cli/operations/opencode.d.ts +2 -1
- package/dist/cli/operations/types.d.ts +9 -1
- package/dist/cli/package-root.d.ts +1 -0
- package/dist/cli/providers.d.ts +6 -116
- package/dist/cli/skills.d.ts +19 -32
- package/dist/cli/thoth-mem-install.d.ts +45 -0
- package/dist/cli/tui/components/StatusView.d.ts +12 -1
- package/dist/cli/tui/index.js +256 -142
- package/dist/cli/tui/operations.d.ts +4 -3
- package/dist/cli/types.d.ts +0 -10
- package/dist/config/constants.d.ts +20 -16
- package/dist/config/index.d.ts +0 -1
- package/dist/config/loader.d.ts +1 -1
- package/dist/config/schema.d.ts +2 -38
- package/dist/config/utils.d.ts +1 -2
- package/dist/harness/adapters/codex-surfaces.d.ts +3 -3
- package/dist/harness/core/agent-pack.d.ts +37 -29
- package/dist/harness/core/memory-governance.d.ts +24 -48
- package/dist/harness/core/sdd.d.ts +364 -131
- package/dist/harness/generate-integration-packages.d.ts +20 -0
- package/dist/harness/opencode-init-command.d.ts +11 -0
- package/dist/harness/types.d.ts +14 -1
- package/dist/harness/writers/claude-code-subagent.d.ts +3 -1
- package/dist/hooks/index.d.ts +0 -5
- package/dist/index.js +562 -1314
- package/dist/mcp/index.d.ts +1 -2
- package/package.json +17 -12
- package/plugin/.claude-plugin/.thoth-agents-plugin-assets.json +50 -0
- package/plugin/.claude-plugin/plugin.json +8 -0
- package/plugin/.codex-plugin/.thoth-agents-plugin-assets.json +16 -0
- package/plugin/.codex-plugin/plugin.json +7 -0
- package/plugin/.mcp.json +19 -0
- package/plugin/agents/deep.md +89 -0
- package/plugin/agents/designer.md +89 -0
- package/plugin/agents/explorer.md +90 -0
- package/plugin/agents/librarian.md +90 -0
- package/plugin/agents/oracle.md +92 -0
- package/plugin/agents/orchestrator.md +128 -0
- package/plugin/agents/quick.md +89 -0
- package/plugin/codex.mcp.json +17 -0
- package/plugin/settings.json +3 -0
- package/plugin/skills/thoth-archive/SKILL.md +40 -0
- package/plugin/skills/thoth-archive/scripts/archive.mjs +748 -0
- package/plugin/skills/thoth-constitution/SKILL.md +45 -0
- package/plugin/skills/thoth-constitution/scripts/validate.mjs +167 -0
- package/plugin/skills/thoth-constitution/templates/constitution.md +54 -0
- package/plugin/skills/thoth-init/SKILL.md +30 -0
- package/plugin/skills/thoth-init/scripts/init.mjs +141 -0
- package/plugin/skills/thoth-sdd/SKILL.md +83 -0
- package/plugin/skills/thoth-sdd/references/phases/analyze.md +21 -0
- package/plugin/skills/thoth-sdd/references/phases/checklist.md +20 -0
- package/plugin/skills/thoth-sdd/references/phases/clarify.md +15 -0
- package/plugin/skills/thoth-sdd/references/phases/converge.md +14 -0
- package/plugin/skills/thoth-sdd/references/phases/explore.md +10 -0
- package/plugin/skills/thoth-sdd/references/phases/implement.md +19 -0
- package/plugin/skills/thoth-sdd/references/phases/plan.md +15 -0
- package/plugin/skills/thoth-sdd/references/phases/specify.md +21 -0
- package/plugin/skills/thoth-sdd/references/phases/tasks.md +20 -0
- package/plugin/skills/thoth-sdd/references/phases/verify.md +22 -0
- package/plugin/skills/thoth-sdd/scripts/validate.mjs +1117 -0
- package/plugin/skills/thoth-sdd/templates/archive-report.md +25 -0
- package/plugin/skills/thoth-sdd/templates/checklist.md +27 -0
- package/plugin/skills/thoth-sdd/templates/plan.md +38 -0
- package/plugin/skills/thoth-sdd/templates/spec.md +54 -0
- package/plugin/skills/thoth-sdd/templates/tasks.md +29 -0
- package/plugin/skills/thoth-sdd/templates/verify-report.md +28 -0
- package/skills/README.md +12 -0
- package/skills/thoth-archive/SKILL.md +40 -0
- package/skills/thoth-archive/scripts/archive.mjs +748 -0
- package/skills/thoth-constitution/SKILL.md +45 -0
- package/skills/thoth-constitution/scripts/validate.mjs +167 -0
- package/skills/thoth-constitution/templates/constitution.md +54 -0
- package/skills/thoth-init/SKILL.md +30 -0
- package/skills/thoth-init/scripts/init.mjs +141 -0
- package/skills/thoth-sdd/SKILL.md +83 -0
- package/skills/thoth-sdd/references/phases/analyze.md +21 -0
- package/skills/thoth-sdd/references/phases/checklist.md +20 -0
- package/skills/thoth-sdd/references/phases/clarify.md +15 -0
- package/skills/thoth-sdd/references/phases/converge.md +14 -0
- package/skills/thoth-sdd/references/phases/explore.md +10 -0
- package/skills/thoth-sdd/references/phases/implement.md +19 -0
- package/skills/thoth-sdd/references/phases/plan.md +15 -0
- package/skills/thoth-sdd/references/phases/specify.md +21 -0
- package/skills/thoth-sdd/references/phases/tasks.md +20 -0
- package/skills/thoth-sdd/references/phases/verify.md +22 -0
- package/skills/thoth-sdd/scripts/validate.mjs +1117 -0
- package/skills/thoth-sdd/templates/archive-report.md +25 -0
- package/skills/thoth-sdd/templates/checklist.md +27 -0
- package/skills/thoth-sdd/templates/plan.md +38 -0
- package/skills/thoth-sdd/templates/spec.md +54 -0
- package/skills/thoth-sdd/templates/tasks.md +29 -0
- package/skills/thoth-sdd/templates/verify-report.md +28 -0
- package/thoth-agents.schema.json +0 -39
- package/dist/chunk-OZE7JVGS.js +0 -2344
- package/dist/cli/custom-skills.d.ts +0 -49
- package/dist/cli/skill-manifest.d.ts +0 -32
- package/dist/harness/core/skills.d.ts +0 -211
- package/dist/harness/generate-codex-plugin.d.ts +0 -9
- package/dist/harness/writers/claude-code-skill-layout.d.ts +0 -16
- package/dist/harness/writers/fs-skill-collect.d.ts +0 -7
- package/dist/harness/writers/skill-layout.d.ts +0 -16
- package/dist/hooks/chat-headers.d.ts +0 -16
- package/dist/hooks/phase-reminder/index.d.ts +0 -28
- package/dist/hooks/post-read-nudge/index.d.ts +0 -18
- package/dist/hooks/skill-sync.d.ts +0 -10
- package/dist/hooks/thoth-mem/index.d.ts +0 -46
- package/dist/hooks/thoth-mem/protocol.d.ts +0 -7
- package/dist/mcp/thoth.d.ts +0 -3
- package/dist/sdd/artifact-governance/artifact-loader.d.ts +0 -130
- package/dist/sdd/artifact-governance/index.d.ts +0 -6
- package/dist/sdd/artifact-governance/tasks-validator.d.ts +0 -17
- package/dist/sdd/artifact-governance/types.d.ts +0 -52
- package/dist/thoth/client.d.ts +0 -14
- package/dist/thoth/index.d.ts +0 -2
- package/src/skills/_shared/openspec-convention.md +0 -350
- package/src/skills/_shared/persistence-contract.md +0 -163
- package/src/skills/_shared/thoth-mem-convention.md +0 -123
- package/src/skills/executing-plans/SKILL.md +0 -288
- package/src/skills/plan-reviewer/SKILL.md +0 -219
- package/src/skills/requirements-interview/SKILL.md +0 -233
- package/src/skills/sdd-apply/SKILL.md +0 -89
- package/src/skills/sdd-archive/SKILL.md +0 -92
- package/src/skills/sdd-clarify/SKILL.md +0 -105
- package/src/skills/sdd-constitution/SKILL.md +0 -107
- package/src/skills/sdd-design/SKILL.md +0 -155
- package/src/skills/sdd-init/SKILL.md +0 -233
- package/src/skills/sdd-propose/SKILL.md +0 -101
- package/src/skills/sdd-spec/SKILL.md +0 -136
- package/src/skills/sdd-tasks/SKILL.md +0 -232
- package/src/skills/sdd-verify/SKILL.md +0 -131
- package/src/skills/thoth-mem-agents/SKILL.md +0 -210
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { type SkillUpdateCheck, type SkillUpdateReason } from './skill-manifest';
|
|
2
|
-
/**
|
|
3
|
-
* A custom skill bundled in this repository.
|
|
4
|
-
* Unlike npx-installed skills, these are copied from src/skills/ to the OpenCode skills directory
|
|
5
|
-
*/
|
|
6
|
-
export interface CustomSkill {
|
|
7
|
-
/** Skill name (folder name) */
|
|
8
|
-
name: string;
|
|
9
|
-
/** Human-readable description */
|
|
10
|
-
description: string;
|
|
11
|
-
/** List of agents that should auto-allow this skill */
|
|
12
|
-
allowedAgents: string[];
|
|
13
|
-
/** Source path in this repo (relative to project root) */
|
|
14
|
-
sourcePath: string;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Registry of custom skills bundled in this repository.
|
|
18
|
-
*/
|
|
19
|
-
export declare const CUSTOM_SKILLS: CustomSkill[];
|
|
20
|
-
export interface UpdatedCustomSkill {
|
|
21
|
-
skill: CustomSkill;
|
|
22
|
-
reasons: SkillUpdateReason[];
|
|
23
|
-
}
|
|
24
|
-
export interface FailedCustomSkill {
|
|
25
|
-
skill: CustomSkill;
|
|
26
|
-
reasons: SkillUpdateReason[];
|
|
27
|
-
}
|
|
28
|
-
export interface InstallCustomSkillsReport {
|
|
29
|
-
success: boolean;
|
|
30
|
-
updatedSkills: UpdatedCustomSkill[];
|
|
31
|
-
skippedSkills: CustomSkill[];
|
|
32
|
-
failedSkills: FailedCustomSkill[];
|
|
33
|
-
removedSkills: string[];
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* Get the target directory for custom skills installation.
|
|
37
|
-
*/
|
|
38
|
-
export declare function getCustomSkillsDir(): string;
|
|
39
|
-
export declare function findPackageRoot(startDir: string): string | null;
|
|
40
|
-
export declare function checkCustomSkillsNeedUpdate(packageRoot?: string): SkillUpdateCheck;
|
|
41
|
-
export declare function removeObsoleteSkills(removedSkillNames: string[]): string[];
|
|
42
|
-
export declare function installCustomSkills(packageRoot?: string): InstallCustomSkillsReport;
|
|
43
|
-
/**
|
|
44
|
-
* Install a custom skill by copying from src/skills/ to the OpenCode skills directory
|
|
45
|
-
* @param skill - The custom skill to install
|
|
46
|
-
* @param projectRoot - Root directory of thoth-agents project
|
|
47
|
-
* @returns True if installation succeeded, false otherwise
|
|
48
|
-
*/
|
|
49
|
-
export declare function installCustomSkill(skill: CustomSkill): boolean;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import type { CustomSkill } from './custom-skills';
|
|
2
|
-
export interface SkillManifestEntry {
|
|
3
|
-
hash: string;
|
|
4
|
-
installedAt: string;
|
|
5
|
-
}
|
|
6
|
-
export interface SkillManifest {
|
|
7
|
-
pluginVersion: string;
|
|
8
|
-
skills: Record<string, SkillManifestEntry>;
|
|
9
|
-
sharedHash: string;
|
|
10
|
-
}
|
|
11
|
-
export type SkillUpdateReason = 'manifest-missing' | 'version-change' | 'shared-hash-mismatch' | 'new-skill' | 'hash-mismatch' | 'missing-install';
|
|
12
|
-
export interface SkillUpdateEntry {
|
|
13
|
-
skill: CustomSkill;
|
|
14
|
-
sourceHash: string;
|
|
15
|
-
targetPath: string;
|
|
16
|
-
reasons: SkillUpdateReason[];
|
|
17
|
-
}
|
|
18
|
-
export interface SkillUpdateCheck {
|
|
19
|
-
pluginVersion: string;
|
|
20
|
-
sharedHash: string;
|
|
21
|
-
manifest: SkillManifest | null;
|
|
22
|
-
versionChanged: boolean;
|
|
23
|
-
sharedChanged: boolean;
|
|
24
|
-
needsUpdate: boolean;
|
|
25
|
-
skillsNeedingUpdate: SkillUpdateEntry[];
|
|
26
|
-
removedSkills: string[];
|
|
27
|
-
}
|
|
28
|
-
export declare function readManifest(): SkillManifest | null;
|
|
29
|
-
export declare function writeManifest(manifest: SkillManifest): void;
|
|
30
|
-
export declare function computeSkillHash(skillDirPath: string): string;
|
|
31
|
-
export declare function findRemovedSkills(manifest: SkillManifest): string[];
|
|
32
|
-
export declare function checkSkillsNeedUpdate(packageRoot: string): SkillUpdateCheck;
|
|
@@ -1,211 +0,0 @@
|
|
|
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-clarify";
|
|
56
|
-
readonly description: "Resolve residual spec ambiguity in place before design, with a bounded taxonomy-driven clarification pass.";
|
|
57
|
-
readonly allowedRoles: AgentRoleName[];
|
|
58
|
-
readonly sourcePath: "src/skills/sdd-clarify";
|
|
59
|
-
readonly kind: "skill";
|
|
60
|
-
readonly purpose: "sdd";
|
|
61
|
-
}, {
|
|
62
|
-
readonly name: "sdd-design";
|
|
63
|
-
readonly description: "Create technical solution design artifacts for changes";
|
|
64
|
-
readonly allowedRoles: AgentRoleName[];
|
|
65
|
-
readonly sourcePath: "src/skills/sdd-design";
|
|
66
|
-
readonly kind: "skill";
|
|
67
|
-
readonly purpose: "sdd";
|
|
68
|
-
}, {
|
|
69
|
-
readonly name: "sdd-tasks";
|
|
70
|
-
readonly description: "Generate phased implementation task checklists";
|
|
71
|
-
readonly allowedRoles: AgentRoleName[];
|
|
72
|
-
readonly sourcePath: "src/skills/sdd-tasks";
|
|
73
|
-
readonly kind: "skill";
|
|
74
|
-
readonly purpose: "sdd";
|
|
75
|
-
}, {
|
|
76
|
-
readonly name: "sdd-apply";
|
|
77
|
-
readonly description: "Execute tasks and persist implementation progress";
|
|
78
|
-
readonly allowedRoles: AgentRoleName[];
|
|
79
|
-
readonly sourcePath: "src/skills/sdd-apply";
|
|
80
|
-
readonly kind: "skill";
|
|
81
|
-
readonly purpose: "sdd";
|
|
82
|
-
}, {
|
|
83
|
-
readonly name: "executing-plans";
|
|
84
|
-
readonly description: "Execute SDD task lists with real-time progress tracking, sub-agent dispatch, and verification checkpoints";
|
|
85
|
-
readonly allowedRoles: AgentRoleName[];
|
|
86
|
-
readonly sourcePath: "src/skills/executing-plans";
|
|
87
|
-
readonly kind: "skill";
|
|
88
|
-
readonly purpose: "sdd";
|
|
89
|
-
}, {
|
|
90
|
-
readonly name: "sdd-verify";
|
|
91
|
-
readonly description: "Build verification reports and compliance matrices";
|
|
92
|
-
readonly allowedRoles: AgentRoleName[];
|
|
93
|
-
readonly sourcePath: "src/skills/sdd-verify";
|
|
94
|
-
readonly kind: "skill";
|
|
95
|
-
readonly purpose: "sdd";
|
|
96
|
-
}, {
|
|
97
|
-
readonly name: "sdd-archive";
|
|
98
|
-
readonly description: "Archive completed OpenSpec changes with audit trails";
|
|
99
|
-
readonly allowedRoles: AgentRoleName[];
|
|
100
|
-
readonly sourcePath: "src/skills/sdd-archive";
|
|
101
|
-
readonly kind: "skill";
|
|
102
|
-
readonly purpose: "sdd";
|
|
103
|
-
}, {
|
|
104
|
-
readonly name: "sdd-constitution";
|
|
105
|
-
readonly description: "Guide a semver constitution amendment and Sync-Impact Report entry.";
|
|
106
|
-
readonly allowedRoles: AgentRoleName[];
|
|
107
|
-
readonly sourcePath: "src/skills/sdd-constitution";
|
|
108
|
-
readonly kind: "skill";
|
|
109
|
-
readonly purpose: "sdd";
|
|
110
|
-
}];
|
|
111
|
-
export declare const SKILL_REGISTRY: readonly [{
|
|
112
|
-
readonly name: "requirements-interview";
|
|
113
|
-
readonly description: "Mandatory step-0 discovery interview to understand user intent, clarify scope, and choose the right path before implementation";
|
|
114
|
-
readonly allowedRoles: AgentRoleName[];
|
|
115
|
-
readonly sourcePath: "src/skills/requirements-interview";
|
|
116
|
-
readonly kind: "skill";
|
|
117
|
-
readonly purpose: "requirements";
|
|
118
|
-
}, {
|
|
119
|
-
readonly name: "thoth-mem-agents";
|
|
120
|
-
readonly description: "Orchestrator/subagent thoth-mem workflow contract for parent session_id/project ownership, prompt-save prohibitions, and safe durable memory usage";
|
|
121
|
-
readonly allowedRoles: ["orchestrator", "explorer", "librarian", "oracle", "designer", "quick", "deep"];
|
|
122
|
-
readonly sourcePath: "src/skills/thoth-mem-agents";
|
|
123
|
-
readonly kind: "skill";
|
|
124
|
-
readonly purpose: "memory";
|
|
125
|
-
}, {
|
|
126
|
-
readonly name: "plan-reviewer";
|
|
127
|
-
readonly description: "Review SDD task plans for execution blockers and valid references";
|
|
128
|
-
readonly allowedRoles: ["orchestrator", "oracle"];
|
|
129
|
-
readonly sourcePath: "src/skills/plan-reviewer";
|
|
130
|
-
readonly kind: "skill";
|
|
131
|
-
readonly purpose: "review";
|
|
132
|
-
}, {
|
|
133
|
-
readonly name: "sdd-init";
|
|
134
|
-
readonly description: "Initialize OpenSpec structure and SDD project context";
|
|
135
|
-
readonly allowedRoles: AgentRoleName[];
|
|
136
|
-
readonly sourcePath: "src/skills/sdd-init";
|
|
137
|
-
readonly kind: "skill";
|
|
138
|
-
readonly purpose: "sdd";
|
|
139
|
-
}, {
|
|
140
|
-
readonly name: "sdd-propose";
|
|
141
|
-
readonly description: "Create change proposals for OpenSpec workflows";
|
|
142
|
-
readonly allowedRoles: AgentRoleName[];
|
|
143
|
-
readonly sourcePath: "src/skills/sdd-propose";
|
|
144
|
-
readonly kind: "skill";
|
|
145
|
-
readonly purpose: "sdd";
|
|
146
|
-
}, {
|
|
147
|
-
readonly name: "sdd-spec";
|
|
148
|
-
readonly description: "Write OpenSpec delta specifications";
|
|
149
|
-
readonly allowedRoles: AgentRoleName[];
|
|
150
|
-
readonly sourcePath: "src/skills/sdd-spec";
|
|
151
|
-
readonly kind: "skill";
|
|
152
|
-
readonly purpose: "sdd";
|
|
153
|
-
}, {
|
|
154
|
-
readonly name: "sdd-clarify";
|
|
155
|
-
readonly description: "Resolve residual spec ambiguity in place before design, with a bounded taxonomy-driven clarification pass.";
|
|
156
|
-
readonly allowedRoles: AgentRoleName[];
|
|
157
|
-
readonly sourcePath: "src/skills/sdd-clarify";
|
|
158
|
-
readonly kind: "skill";
|
|
159
|
-
readonly purpose: "sdd";
|
|
160
|
-
}, {
|
|
161
|
-
readonly name: "sdd-design";
|
|
162
|
-
readonly description: "Create technical solution design artifacts for changes";
|
|
163
|
-
readonly allowedRoles: AgentRoleName[];
|
|
164
|
-
readonly sourcePath: "src/skills/sdd-design";
|
|
165
|
-
readonly kind: "skill";
|
|
166
|
-
readonly purpose: "sdd";
|
|
167
|
-
}, {
|
|
168
|
-
readonly name: "sdd-tasks";
|
|
169
|
-
readonly description: "Generate phased implementation task checklists";
|
|
170
|
-
readonly allowedRoles: AgentRoleName[];
|
|
171
|
-
readonly sourcePath: "src/skills/sdd-tasks";
|
|
172
|
-
readonly kind: "skill";
|
|
173
|
-
readonly purpose: "sdd";
|
|
174
|
-
}, {
|
|
175
|
-
readonly name: "sdd-apply";
|
|
176
|
-
readonly description: "Execute tasks and persist implementation progress";
|
|
177
|
-
readonly allowedRoles: AgentRoleName[];
|
|
178
|
-
readonly sourcePath: "src/skills/sdd-apply";
|
|
179
|
-
readonly kind: "skill";
|
|
180
|
-
readonly purpose: "sdd";
|
|
181
|
-
}, {
|
|
182
|
-
readonly name: "executing-plans";
|
|
183
|
-
readonly description: "Execute SDD task lists with real-time progress tracking, sub-agent dispatch, and verification checkpoints";
|
|
184
|
-
readonly allowedRoles: AgentRoleName[];
|
|
185
|
-
readonly sourcePath: "src/skills/executing-plans";
|
|
186
|
-
readonly kind: "skill";
|
|
187
|
-
readonly purpose: "sdd";
|
|
188
|
-
}, {
|
|
189
|
-
readonly name: "sdd-verify";
|
|
190
|
-
readonly description: "Build verification reports and compliance matrices";
|
|
191
|
-
readonly allowedRoles: AgentRoleName[];
|
|
192
|
-
readonly sourcePath: "src/skills/sdd-verify";
|
|
193
|
-
readonly kind: "skill";
|
|
194
|
-
readonly purpose: "sdd";
|
|
195
|
-
}, {
|
|
196
|
-
readonly name: "sdd-archive";
|
|
197
|
-
readonly description: "Archive completed OpenSpec changes with audit trails";
|
|
198
|
-
readonly allowedRoles: AgentRoleName[];
|
|
199
|
-
readonly sourcePath: "src/skills/sdd-archive";
|
|
200
|
-
readonly kind: "skill";
|
|
201
|
-
readonly purpose: "sdd";
|
|
202
|
-
}, {
|
|
203
|
-
readonly name: "sdd-constitution";
|
|
204
|
-
readonly description: "Guide a semver constitution amendment and Sync-Impact Report entry.";
|
|
205
|
-
readonly allowedRoles: AgentRoleName[];
|
|
206
|
-
readonly sourcePath: "src/skills/sdd-constitution";
|
|
207
|
-
readonly kind: "skill";
|
|
208
|
-
readonly purpose: "sdd";
|
|
209
|
-
}, SkillRegistryEntry];
|
|
210
|
-
export declare function getSkillRegistry(): SkillRegistryEntry[];
|
|
211
|
-
export declare function getBundledSkillRegistry(): SkillRegistryEntry[];
|
|
@@ -1,9 +0,0 @@
|
|
|
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;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { SkillRegistryEntry } from '../core/skills';
|
|
2
|
-
import type { HarnessArtifact, HarnessDiagnostic } from '../types';
|
|
3
|
-
export interface ClaudeCodeSkillLayoutInput {
|
|
4
|
-
projectRoot: string;
|
|
5
|
-
packageRoot?: string;
|
|
6
|
-
skills: SkillRegistryEntry[];
|
|
7
|
-
}
|
|
8
|
-
export interface ClaudeCodeSkillLayoutResult {
|
|
9
|
-
artifacts: HarnessArtifact[];
|
|
10
|
-
diagnostics: HarnessDiagnostic[];
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Copy the bundled skill registry into the Claude Code plugin `skills/` layout.
|
|
14
|
-
* First-class: no surface gate. Records source provenance with content hashes.
|
|
15
|
-
*/
|
|
16
|
-
export declare function renderClaudeCodeSkillLayout(input: ClaudeCodeSkillLayoutInput): ClaudeCodeSkillLayoutResult;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export declare function normalizeSkillPath(value: string): string;
|
|
2
|
-
/**
|
|
3
|
-
* Recursively collect every file under a directory, sorted for deterministic
|
|
4
|
-
* output. Shared by harness skill-layout writers.
|
|
5
|
-
*/
|
|
6
|
-
export declare function collectSkillFiles(directory: string): string[];
|
|
7
|
-
export declare function sha256Hash(content: string | Uint8Array): string;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { SkillRegistryEntry } from '../core/skills';
|
|
2
|
-
import type { HarnessArtifact, HarnessDiagnostic } from '../types';
|
|
3
|
-
export interface CodexSkillLayoutInput {
|
|
4
|
-
projectRoot: string;
|
|
5
|
-
packageRoot?: string;
|
|
6
|
-
skills: SkillRegistryEntry[];
|
|
7
|
-
surfaceId: string;
|
|
8
|
-
outputMode?: CodexSkillOutputMode;
|
|
9
|
-
outputModes?: readonly CodexSkillOutputMode[];
|
|
10
|
-
}
|
|
11
|
-
export interface CodexSkillLayoutResult {
|
|
12
|
-
artifacts: HarnessArtifact[];
|
|
13
|
-
diagnostics: HarnessDiagnostic[];
|
|
14
|
-
}
|
|
15
|
-
export type CodexSkillOutputMode = 'plugin-package' | 'repo-local-fallback';
|
|
16
|
-
export declare function renderCodexSkillLayout(input: CodexSkillLayoutInput): CodexSkillLayoutResult;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { PluginInput, ProviderContext } from '@opencode-ai/plugin';
|
|
2
|
-
import type { Model, UserMessage } from '@opencode-ai/sdk';
|
|
3
|
-
interface ChatHeadersInput {
|
|
4
|
-
sessionID: string;
|
|
5
|
-
model: Model;
|
|
6
|
-
provider: ProviderContext;
|
|
7
|
-
message: UserMessage;
|
|
8
|
-
}
|
|
9
|
-
interface ChatHeadersOutput {
|
|
10
|
-
headers: Record<string, string>;
|
|
11
|
-
}
|
|
12
|
-
export declare function __resetInternalMarkerCacheForTesting(): void;
|
|
13
|
-
export declare function createChatHeadersHook(ctx: PluginInput): {
|
|
14
|
-
'chat.headers': (input: ChatHeadersInput, output: ChatHeadersOutput) => Promise<void>;
|
|
15
|
-
};
|
|
16
|
-
export {};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
export declare const PHASE_REMINDER = "<reminder>Recall Workflow Rules:\nUnderstand \u2192 split discovery into surgical probes with explorer/librarian \u2192 synthesize the decision and internal handoff \u2192 execute \u2192 verify.\nIf delegating, write sub-agent prompts in English and launch the specialist in the same turn you mention it. If multiple delegations are independent, emit all tool calls in a single response.\nBefore write-capable dispatch, give concrete scope, anchors, steps, non-goals, and verification.\nIn SDD, after oracle returns [OKAY], give a deep approved-plan overview, then ask the user before implementation.</reminder>";
|
|
2
|
-
export declare const PHASE_REMINDER_SEPARATOR = "\n\n---\n\n";
|
|
3
|
-
export declare function stripPhaseReminder(text: string): string;
|
|
4
|
-
interface MessageInfo {
|
|
5
|
-
role: string;
|
|
6
|
-
agent?: string;
|
|
7
|
-
sessionID?: string;
|
|
8
|
-
}
|
|
9
|
-
interface MessagePart {
|
|
10
|
-
type: string;
|
|
11
|
-
text?: string;
|
|
12
|
-
[key: string]: unknown;
|
|
13
|
-
}
|
|
14
|
-
interface MessageWithParts {
|
|
15
|
-
info: MessageInfo;
|
|
16
|
-
parts: MessagePart[];
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Creates the experimental.chat.messages.transform hook for phase reminder injection.
|
|
20
|
-
* This hook runs right before sending to API, so it doesn't affect UI display.
|
|
21
|
-
* Only injects for the orchestrator agent.
|
|
22
|
-
*/
|
|
23
|
-
export declare function createPhaseReminderHook(): {
|
|
24
|
-
'experimental.chat.messages.transform': (_input: Record<string, never>, output: {
|
|
25
|
-
messages: MessageWithParts[];
|
|
26
|
-
}) => Promise<void>;
|
|
27
|
-
};
|
|
28
|
-
export {};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Post-Read nudge - appends a delegation reminder after file reads.
|
|
3
|
-
* Catches the "read files → implement myself" anti-pattern.
|
|
4
|
-
*/
|
|
5
|
-
interface ToolExecuteAfterInput {
|
|
6
|
-
tool: string;
|
|
7
|
-
sessionID?: string;
|
|
8
|
-
callID?: string;
|
|
9
|
-
}
|
|
10
|
-
interface ToolExecuteAfterOutput {
|
|
11
|
-
title: string;
|
|
12
|
-
output: string;
|
|
13
|
-
metadata: Record<string, unknown>;
|
|
14
|
-
}
|
|
15
|
-
export declare function createPostReadNudgeHook(): {
|
|
16
|
-
'tool.execute.after': (input: ToolExecuteAfterInput, output: ToolExecuteAfterOutput) => Promise<void>;
|
|
17
|
-
};
|
|
18
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { installCustomSkills } from '../cli/custom-skills';
|
|
2
|
-
import { log } from '../utils/logger';
|
|
3
|
-
interface SkillSyncDependencies {
|
|
4
|
-
install?: typeof installCustomSkills;
|
|
5
|
-
logger?: typeof log;
|
|
6
|
-
warn?: typeof console.warn;
|
|
7
|
-
error?: typeof console.error;
|
|
8
|
-
}
|
|
9
|
-
export declare function syncSkillsOnStartup(dependencies?: SkillSyncDependencies): void;
|
|
10
|
-
export {};
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import type { Event, Model, Part } from '@opencode-ai/sdk';
|
|
2
|
-
import type { ThothConfig } from '../../config';
|
|
3
|
-
export interface CreateThothMemHookOptions {
|
|
4
|
-
project: string;
|
|
5
|
-
directory?: string;
|
|
6
|
-
thoth?: ThothConfig;
|
|
7
|
-
enabled?: boolean;
|
|
8
|
-
}
|
|
9
|
-
export declare function createThothMemHook(options: CreateThothMemHookOptions): {
|
|
10
|
-
event: ({ event }: {
|
|
11
|
-
event: Event;
|
|
12
|
-
}) => Promise<void>;
|
|
13
|
-
'chat.message': (input: {
|
|
14
|
-
sessionID: string;
|
|
15
|
-
}, output: {
|
|
16
|
-
parts: Part[];
|
|
17
|
-
message: {
|
|
18
|
-
summary?: {
|
|
19
|
-
title?: string;
|
|
20
|
-
body?: string;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
}) => Promise<void>;
|
|
24
|
-
'experimental.chat.system.transform': (input: {
|
|
25
|
-
sessionID?: string;
|
|
26
|
-
model: Model;
|
|
27
|
-
}, output: {
|
|
28
|
-
system: string[];
|
|
29
|
-
}) => Promise<void>;
|
|
30
|
-
'experimental.session.compacting': (input: {
|
|
31
|
-
sessionID: string;
|
|
32
|
-
}, output: {
|
|
33
|
-
context: string[];
|
|
34
|
-
prompt?: string;
|
|
35
|
-
}) => Promise<void>;
|
|
36
|
-
'tool.execute.after': (input: {
|
|
37
|
-
tool: string;
|
|
38
|
-
sessionID: string;
|
|
39
|
-
callID: string;
|
|
40
|
-
args: unknown;
|
|
41
|
-
}, output: {
|
|
42
|
-
title: string;
|
|
43
|
-
output: string;
|
|
44
|
-
metadata: unknown;
|
|
45
|
-
}) => Promise<void>;
|
|
46
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export declare const SDD_TOPIC_KEY_FORMAT = "sdd/{change}/{artifact}";
|
|
2
|
-
export declare const FIRST_ACTION_INSTRUCTION = "FIRST ACTION REQUIRED: Call mem_session(action=\"summary\") with the content of the compacted summary. This preserves what was accomplished before compaction. Do this BEFORE any other work. Then call mem_context(recall_query=...) for fused recent context, and use the recall funnel (mem_recall(mode=\"compact\") -> mem_recall(mode=\"context\") -> mem_get(...)) for precise retrieval.";
|
|
3
|
-
export declare const SESSION_SUMMARY_TEMPLATE = "Use this exact structure for `mem_session(action=\"summary\")` content:\n\n## Goal\n[What we were working on this session]\n\n## Instructions\n[User preferences or constraints discovered during this session]\n\n## Discoveries\n- [Technical findings, gotchas, non-obvious learnings]\n\n## Accomplished\n- [Completed items with key details]\n\n## Next Steps\n- [What remains to be done]\n\n## Relevant Files\n- path/to/file.ts - [what it does or what changed]";
|
|
4
|
-
export declare function buildCompactionReminder(sessionID: string): string;
|
|
5
|
-
export declare function buildCompactorInstruction(project: string): string;
|
|
6
|
-
export declare function buildMemoryInstructions(sessionID: string, project: string): string;
|
|
7
|
-
export declare function buildSaveNudge(): string;
|
package/dist/mcp/thoth.d.ts
DELETED
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
import { type ArtifactGovernanceMode, type ArtifactGovernanceResult } from './types';
|
|
2
|
-
type MaybePromise<T> = T | Promise<T>;
|
|
3
|
-
export type ArtifactSnapshotSource = 'prompt' | 'thoth-mem' | 'openspec';
|
|
4
|
-
export interface ArtifactSnapshotInput {
|
|
5
|
-
content: string;
|
|
6
|
-
location?: string;
|
|
7
|
-
updatedAt?: string;
|
|
8
|
-
observationId?: number;
|
|
9
|
-
}
|
|
10
|
-
export interface ArtifactSnapshot extends ArtifactSnapshotInput {
|
|
11
|
-
source: ArtifactSnapshotSource;
|
|
12
|
-
}
|
|
13
|
-
export interface ArtifactLoaderRequest {
|
|
14
|
-
mode: ArtifactGovernanceMode;
|
|
15
|
-
changeName: string;
|
|
16
|
-
artifact: string;
|
|
17
|
-
promptSnapshot?: ArtifactSnapshotInput;
|
|
18
|
-
workspaceRoot?: string;
|
|
19
|
-
}
|
|
20
|
-
export interface ArtifactLoaderDescriptor {
|
|
21
|
-
changeName: string;
|
|
22
|
-
artifact: string;
|
|
23
|
-
topicKey: string;
|
|
24
|
-
openspecPath: string;
|
|
25
|
-
}
|
|
26
|
-
export interface ArtifactLoaderDependencies {
|
|
27
|
-
readThothArtifact?: (descriptor: ArtifactLoaderDescriptor) => MaybePromise<ArtifactSnapshotInput | null>;
|
|
28
|
-
readOpenspecArtifact?: (descriptor: ArtifactLoaderDescriptor) => MaybePromise<ArtifactSnapshotInput | null>;
|
|
29
|
-
}
|
|
30
|
-
export interface ArtifactComparisonMetadata {
|
|
31
|
-
status: 'not-applicable' | 'single-source' | 'match' | 'diverged';
|
|
32
|
-
sourceOfTruth: ArtifactSnapshotSource | null;
|
|
33
|
-
recoverable: boolean;
|
|
34
|
-
missingSources: readonly ArtifactSnapshotSource[];
|
|
35
|
-
metadata: Readonly<{
|
|
36
|
-
comparedSources: readonly ArtifactSnapshotSource[];
|
|
37
|
-
matched?: boolean;
|
|
38
|
-
thothLength?: number;
|
|
39
|
-
openspecLength?: number;
|
|
40
|
-
}>;
|
|
41
|
-
}
|
|
42
|
-
export interface ArtifactLoaderResult extends ArtifactGovernanceResult {
|
|
43
|
-
snapshot: ArtifactSnapshot | null;
|
|
44
|
-
descriptor: ArtifactLoaderDescriptor;
|
|
45
|
-
comparison: ArtifactComparisonMetadata;
|
|
46
|
-
sources: Readonly<{
|
|
47
|
-
prompt: ArtifactSnapshot | null;
|
|
48
|
-
thothMem: ArtifactSnapshot | null;
|
|
49
|
-
openspec: ArtifactSnapshot | null;
|
|
50
|
-
}>;
|
|
51
|
-
}
|
|
52
|
-
export type PlanReviewRecoveryDecision = 'fresh-approval' | 'missing' | 'unparsable' | 'non-approval-status' | 'stale';
|
|
53
|
-
export interface PlanReviewReviewedArtifactInput {
|
|
54
|
-
role: string;
|
|
55
|
-
path: string;
|
|
56
|
-
required?: boolean;
|
|
57
|
-
content: string;
|
|
58
|
-
}
|
|
59
|
-
export interface PlanReviewReviewedArtifactDigest {
|
|
60
|
-
role: string;
|
|
61
|
-
path: string;
|
|
62
|
-
required: boolean;
|
|
63
|
-
sha256: string;
|
|
64
|
-
}
|
|
65
|
-
export interface PlanReviewOverride {
|
|
66
|
-
occurred: boolean;
|
|
67
|
-
at: string | null;
|
|
68
|
-
surface: string | null;
|
|
69
|
-
context: string | null;
|
|
70
|
-
}
|
|
71
|
-
export interface CreatePlanReviewArtifactInput {
|
|
72
|
-
changeName: string;
|
|
73
|
-
status: string;
|
|
74
|
-
reviewedAt: string;
|
|
75
|
-
pipeline: 'accelerated' | 'full';
|
|
76
|
-
persistenceMode: ArtifactGovernanceMode;
|
|
77
|
-
reviewerRole?: string;
|
|
78
|
-
comments?: readonly string[];
|
|
79
|
-
nonBlockingNotes?: readonly string[];
|
|
80
|
-
blockers?: readonly string[];
|
|
81
|
-
override?: PlanReviewOverride;
|
|
82
|
-
userOverrideContext?: string | null;
|
|
83
|
-
reviewedArtifacts: readonly PlanReviewReviewedArtifactInput[];
|
|
84
|
-
}
|
|
85
|
-
export interface PlanReviewArtifact {
|
|
86
|
-
schema: 'thoth-agents/sdd-plan-review/v1';
|
|
87
|
-
artifact: 'plan-review';
|
|
88
|
-
change: string;
|
|
89
|
-
gate: 'oracle-review';
|
|
90
|
-
status: string;
|
|
91
|
-
reviewerRole: string;
|
|
92
|
-
reviewedAt: string;
|
|
93
|
-
pipeline: 'accelerated' | 'full';
|
|
94
|
-
persistenceMode: ArtifactGovernanceMode;
|
|
95
|
-
memoryTopicKey: string;
|
|
96
|
-
reviewedArtifacts: readonly PlanReviewReviewedArtifactDigest[];
|
|
97
|
-
override: PlanReviewOverride;
|
|
98
|
-
}
|
|
99
|
-
export interface MaterializedPlanReviewArtifact {
|
|
100
|
-
descriptor: ArtifactLoaderDescriptor;
|
|
101
|
-
artifact: PlanReviewArtifact;
|
|
102
|
-
content: string;
|
|
103
|
-
}
|
|
104
|
-
export type ParsePlanReviewArtifactResult = {
|
|
105
|
-
ok: true;
|
|
106
|
-
artifact: PlanReviewArtifact;
|
|
107
|
-
} | {
|
|
108
|
-
ok: false;
|
|
109
|
-
reason: 'unparsable';
|
|
110
|
-
message: string;
|
|
111
|
-
};
|
|
112
|
-
export interface EvaluatePlanReviewRecoveryInput {
|
|
113
|
-
content: string | null | undefined;
|
|
114
|
-
currentArtifacts: Readonly<Record<string, string>>;
|
|
115
|
-
}
|
|
116
|
-
export interface PlanReviewRecoveryResult {
|
|
117
|
-
gateSatisfied: boolean;
|
|
118
|
-
implementationConfirmed: false;
|
|
119
|
-
decision: PlanReviewRecoveryDecision;
|
|
120
|
-
status: string | null;
|
|
121
|
-
staleArtifacts: readonly string[];
|
|
122
|
-
message: string;
|
|
123
|
-
}
|
|
124
|
-
export declare function getArtifactTopicKey(changeName: string, artifact: string): string;
|
|
125
|
-
export declare function getArtifactOpenSpecPath(changeName: string, artifact: string): string;
|
|
126
|
-
export declare function loadArtifactSnapshot(request: ArtifactLoaderRequest, dependencies?: ArtifactLoaderDependencies): Promise<ArtifactLoaderResult>;
|
|
127
|
-
export declare function createPlanReviewArtifact(input: CreatePlanReviewArtifactInput): MaterializedPlanReviewArtifact;
|
|
128
|
-
export declare function parsePlanReviewArtifact(content: string): ParsePlanReviewArtifactResult;
|
|
129
|
-
export declare function evaluatePlanReviewRecovery(input: EvaluatePlanReviewRecoveryInput): PlanReviewRecoveryResult;
|
|
130
|
-
export {};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export type { ArtifactComparisonMetadata, ArtifactLoaderDependencies, ArtifactLoaderDescriptor, ArtifactLoaderRequest, ArtifactLoaderResult, ArtifactSnapshot, ArtifactSnapshotInput, ArtifactSnapshotSource, CreatePlanReviewArtifactInput, EvaluatePlanReviewRecoveryInput, MaterializedPlanReviewArtifact, ParsePlanReviewArtifactResult, PlanReviewArtifact, PlanReviewOverride, PlanReviewRecoveryDecision, PlanReviewRecoveryResult, PlanReviewReviewedArtifactDigest, PlanReviewReviewedArtifactInput, } from './artifact-loader';
|
|
2
|
-
export { createPlanReviewArtifact, evaluatePlanReviewRecovery, getArtifactOpenSpecPath, getArtifactTopicKey, loadArtifactSnapshot, parsePlanReviewArtifact, } from './artifact-loader';
|
|
3
|
-
export type { ValidateTasksArtifactPersistence, ValidateTasksArtifactRequest, } from './tasks-validator';
|
|
4
|
-
export { validateTasksArtifact } from './tasks-validator';
|
|
5
|
-
export type { ArtifactGovernanceEnforcementMode, ArtifactGovernanceFinding, ArtifactGovernanceMetadataValue, ArtifactGovernanceMode, ArtifactGovernanceReport, ArtifactGovernanceResult, ArtifactGovernanceSeverity, ArtifactGovernanceSummary, CreateArtifactGovernanceReportOptions, CreateArtifactGovernanceResultOptions, } from './types';
|
|
6
|
-
export { ARTIFACT_GOVERNANCE_ENFORCEMENT_MODES, ARTIFACT_GOVERNANCE_MODES, ARTIFACT_GOVERNANCE_SEVERITIES, createArtifactGovernanceReport, createArtifactGovernanceResult, getHighestArtifactGovernanceSeverity, isArtifactGovernanceSeverity, summarizeArtifactGovernanceFindings, } from './types';
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { ArtifactComparisonMetadata, ArtifactSnapshot } from './artifact-loader';
|
|
2
|
-
import { type ArtifactGovernanceMode, type ArtifactGovernanceResult } from './types';
|
|
3
|
-
export interface ValidateTasksArtifactRequest {
|
|
4
|
-
mode: ArtifactGovernanceMode;
|
|
5
|
-
content: string;
|
|
6
|
-
path?: string;
|
|
7
|
-
persistence?: ValidateTasksArtifactPersistence;
|
|
8
|
-
}
|
|
9
|
-
export interface ValidateTasksArtifactPersistence {
|
|
10
|
-
comparison: ArtifactComparisonMetadata;
|
|
11
|
-
sources: Readonly<{
|
|
12
|
-
prompt: ArtifactSnapshot | null;
|
|
13
|
-
thothMem: ArtifactSnapshot | null;
|
|
14
|
-
openspec: ArtifactSnapshot | null;
|
|
15
|
-
}>;
|
|
16
|
-
}
|
|
17
|
-
export declare function validateTasksArtifact(request: ValidateTasksArtifactRequest): ArtifactGovernanceResult;
|