thoth-agents 0.2.10 → 0.3.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.
Files changed (150) hide show
  1. package/.agents/plugins/marketplace.json +20 -0
  2. package/.claude-plugin/marketplace.json +21 -0
  3. package/README.md +301 -311
  4. package/dist/agents/configured-role-prompt.d.ts +9 -0
  5. package/dist/agents/prompt-sections.d.ts +8 -4
  6. package/dist/agents/prompt-utils.d.ts +0 -4
  7. package/dist/{chunk-YYVE7YHR.js → chunk-2MZ5C2RN.js} +1755 -1760
  8. package/dist/chunk-XO74DXBZ.js +1781 -0
  9. package/dist/{chunk-MF5NNCPC.js → chunk-YUCGIJPP.js} +12 -30
  10. package/dist/cli/claude-code-install.d.ts +24 -26
  11. package/dist/cli/claude-code-paths.d.ts +0 -28
  12. package/dist/cli/codex-install.d.ts +2 -2
  13. package/dist/cli/codex-paths.d.ts +0 -2
  14. package/dist/cli/config-io.d.ts +5 -0
  15. package/dist/cli/index.js +294 -133
  16. package/dist/cli/install.d.ts +5 -1
  17. package/dist/cli/model-catalog/cache.d.ts +1 -1
  18. package/dist/cli/operations/claude-code.d.ts +6 -3
  19. package/dist/cli/operations/codex.d.ts +2 -1
  20. package/dist/cli/operations/opencode.d.ts +2 -1
  21. package/dist/cli/operations/types.d.ts +11 -1
  22. package/dist/cli/package-root.d.ts +1 -0
  23. package/dist/cli/providers.d.ts +6 -116
  24. package/dist/cli/skills.d.ts +19 -32
  25. package/dist/cli/thoth-mem-install.d.ts +45 -0
  26. package/dist/cli/tui/components/StatusView.d.ts +12 -1
  27. package/dist/cli/tui/index.js +293 -106
  28. package/dist/cli/tui/operations.d.ts +4 -3
  29. package/dist/cli/types.d.ts +0 -10
  30. package/dist/config/constants.d.ts +20 -16
  31. package/dist/config/index.d.ts +0 -1
  32. package/dist/config/loader.d.ts +1 -1
  33. package/dist/config/schema.d.ts +2 -38
  34. package/dist/config/utils.d.ts +1 -2
  35. package/dist/harness/adapters/codex-surfaces.d.ts +3 -3
  36. package/dist/harness/core/agent-pack.d.ts +37 -29
  37. package/dist/harness/core/memory-governance.d.ts +24 -48
  38. package/dist/harness/core/sdd.d.ts +364 -131
  39. package/dist/harness/generate-integration-packages.d.ts +20 -0
  40. package/dist/harness/opencode-init-command.d.ts +11 -0
  41. package/dist/harness/types.d.ts +14 -1
  42. package/dist/harness/writers/claude-code-subagent.d.ts +3 -1
  43. package/dist/hooks/index.d.ts +0 -5
  44. package/dist/index.js +562 -1314
  45. package/dist/mcp/index.d.ts +1 -2
  46. package/package.json +17 -12
  47. package/plugin/.claude-plugin/.thoth-agents-plugin-assets.json +50 -0
  48. package/plugin/.claude-plugin/plugin.json +8 -0
  49. package/plugin/.codex-plugin/.thoth-agents-plugin-assets.json +16 -0
  50. package/plugin/.codex-plugin/plugin.json +7 -0
  51. package/plugin/.mcp.json +19 -0
  52. package/plugin/agents/deep.md +89 -0
  53. package/plugin/agents/designer.md +89 -0
  54. package/plugin/agents/explorer.md +90 -0
  55. package/plugin/agents/librarian.md +90 -0
  56. package/plugin/agents/oracle.md +92 -0
  57. package/plugin/agents/orchestrator.md +128 -0
  58. package/plugin/agents/quick.md +89 -0
  59. package/plugin/codex.mcp.json +17 -0
  60. package/plugin/settings.json +3 -0
  61. package/plugin/skills/thoth-archive/SKILL.md +40 -0
  62. package/plugin/skills/thoth-archive/scripts/archive.mjs +748 -0
  63. package/plugin/skills/thoth-constitution/SKILL.md +45 -0
  64. package/plugin/skills/thoth-constitution/scripts/validate.mjs +167 -0
  65. package/plugin/skills/thoth-constitution/templates/constitution.md +54 -0
  66. package/plugin/skills/thoth-init/SKILL.md +30 -0
  67. package/plugin/skills/thoth-init/scripts/init.mjs +141 -0
  68. package/plugin/skills/thoth-sdd/SKILL.md +83 -0
  69. package/plugin/skills/thoth-sdd/references/phases/analyze.md +21 -0
  70. package/plugin/skills/thoth-sdd/references/phases/checklist.md +20 -0
  71. package/plugin/skills/thoth-sdd/references/phases/clarify.md +15 -0
  72. package/plugin/skills/thoth-sdd/references/phases/converge.md +14 -0
  73. package/plugin/skills/thoth-sdd/references/phases/explore.md +10 -0
  74. package/plugin/skills/thoth-sdd/references/phases/implement.md +19 -0
  75. package/plugin/skills/thoth-sdd/references/phases/plan.md +15 -0
  76. package/plugin/skills/thoth-sdd/references/phases/specify.md +21 -0
  77. package/plugin/skills/thoth-sdd/references/phases/tasks.md +20 -0
  78. package/plugin/skills/thoth-sdd/references/phases/verify.md +22 -0
  79. package/plugin/skills/thoth-sdd/scripts/validate.mjs +1117 -0
  80. package/plugin/skills/thoth-sdd/templates/archive-report.md +25 -0
  81. package/plugin/skills/thoth-sdd/templates/checklist.md +27 -0
  82. package/plugin/skills/thoth-sdd/templates/plan.md +38 -0
  83. package/plugin/skills/thoth-sdd/templates/spec.md +54 -0
  84. package/plugin/skills/thoth-sdd/templates/tasks.md +29 -0
  85. package/plugin/skills/thoth-sdd/templates/verify-report.md +28 -0
  86. package/skills/README.md +12 -0
  87. package/skills/thoth-archive/SKILL.md +40 -0
  88. package/skills/thoth-archive/scripts/archive.mjs +748 -0
  89. package/skills/thoth-constitution/SKILL.md +45 -0
  90. package/skills/thoth-constitution/scripts/validate.mjs +167 -0
  91. package/skills/thoth-constitution/templates/constitution.md +54 -0
  92. package/skills/thoth-init/SKILL.md +30 -0
  93. package/skills/thoth-init/scripts/init.mjs +141 -0
  94. package/skills/thoth-sdd/SKILL.md +83 -0
  95. package/skills/thoth-sdd/references/phases/analyze.md +21 -0
  96. package/skills/thoth-sdd/references/phases/checklist.md +20 -0
  97. package/skills/thoth-sdd/references/phases/clarify.md +15 -0
  98. package/skills/thoth-sdd/references/phases/converge.md +14 -0
  99. package/skills/thoth-sdd/references/phases/explore.md +10 -0
  100. package/skills/thoth-sdd/references/phases/implement.md +19 -0
  101. package/skills/thoth-sdd/references/phases/plan.md +15 -0
  102. package/skills/thoth-sdd/references/phases/specify.md +21 -0
  103. package/skills/thoth-sdd/references/phases/tasks.md +20 -0
  104. package/skills/thoth-sdd/references/phases/verify.md +22 -0
  105. package/skills/thoth-sdd/scripts/validate.mjs +1117 -0
  106. package/skills/thoth-sdd/templates/archive-report.md +25 -0
  107. package/skills/thoth-sdd/templates/checklist.md +27 -0
  108. package/skills/thoth-sdd/templates/plan.md +38 -0
  109. package/skills/thoth-sdd/templates/spec.md +54 -0
  110. package/skills/thoth-sdd/templates/tasks.md +29 -0
  111. package/skills/thoth-sdd/templates/verify-report.md +28 -0
  112. package/thoth-agents.schema.json +0 -39
  113. package/dist/chunk-WBRGPRRB.js +0 -2353
  114. package/dist/cli/custom-skills.d.ts +0 -48
  115. package/dist/cli/skill-manifest.d.ts +0 -32
  116. package/dist/harness/core/skills.d.ts +0 -211
  117. package/dist/harness/generate-codex-plugin.d.ts +0 -9
  118. package/dist/harness/writers/claude-code-skill-layout.d.ts +0 -16
  119. package/dist/harness/writers/fs-skill-collect.d.ts +0 -7
  120. package/dist/harness/writers/skill-layout.d.ts +0 -16
  121. package/dist/hooks/chat-headers.d.ts +0 -16
  122. package/dist/hooks/phase-reminder/index.d.ts +0 -28
  123. package/dist/hooks/post-read-nudge/index.d.ts +0 -18
  124. package/dist/hooks/skill-sync.d.ts +0 -10
  125. package/dist/hooks/thoth-mem/index.d.ts +0 -46
  126. package/dist/hooks/thoth-mem/protocol.d.ts +0 -7
  127. package/dist/mcp/thoth.d.ts +0 -3
  128. package/dist/sdd/artifact-governance/artifact-loader.d.ts +0 -130
  129. package/dist/sdd/artifact-governance/index.d.ts +0 -6
  130. package/dist/sdd/artifact-governance/tasks-validator.d.ts +0 -17
  131. package/dist/sdd/artifact-governance/types.d.ts +0 -52
  132. package/dist/thoth/client.d.ts +0 -14
  133. package/dist/thoth/index.d.ts +0 -2
  134. package/src/skills/_shared/openspec-convention.md +0 -350
  135. package/src/skills/_shared/persistence-contract.md +0 -163
  136. package/src/skills/_shared/thoth-mem-convention.md +0 -123
  137. package/src/skills/executing-plans/SKILL.md +0 -288
  138. package/src/skills/plan-reviewer/SKILL.md +0 -219
  139. package/src/skills/requirements-interview/SKILL.md +0 -233
  140. package/src/skills/sdd-apply/SKILL.md +0 -89
  141. package/src/skills/sdd-archive/SKILL.md +0 -92
  142. package/src/skills/sdd-clarify/SKILL.md +0 -105
  143. package/src/skills/sdd-constitution/SKILL.md +0 -107
  144. package/src/skills/sdd-design/SKILL.md +0 -155
  145. package/src/skills/sdd-init/SKILL.md +0 -233
  146. package/src/skills/sdd-propose/SKILL.md +0 -101
  147. package/src/skills/sdd-spec/SKILL.md +0 -136
  148. package/src/skills/sdd-tasks/SKILL.md +0 -232
  149. package/src/skills/sdd-verify/SKILL.md +0 -131
  150. package/src/skills/thoth-mem-agents/SKILL.md +0 -210
@@ -0,0 +1,9 @@
1
+ import type { AgentOverrideConfig, PluginConfig } from '../config';
2
+ import type { AgentRoleName } from '../harness/core/agent-pack';
3
+ import type { HarnessPromptDialect } from './prompt-dialects';
4
+ export declare function renderConfiguredRolePrompt({ role, dialect, config, model, }: {
5
+ role: AgentRoleName;
6
+ dialect: HarnessPromptDialect;
7
+ config?: PluginConfig;
8
+ model?: AgentOverrideConfig['model'] | string;
9
+ }): string;
@@ -1,7 +1,10 @@
1
+ import { type AgentRoleName } from '../harness/core/agent-pack';
1
2
  import type { AgentPromptRole, HarnessPromptDialect } from './prompt-dialects';
2
3
  import type { ModelEntry } from './prompt-utils';
3
- type ModelFamily = 'openai' | 'claude' | 'gemini' | 'kimi' | 'glm';
4
- export type SemanticMemoryAccess = 'base' | 'readonly' | 'writable';
4
+ type ModelFamily = 'openai';
5
+ export type SemanticMemoryAccess = 'dispatch-scoped';
6
+ export type ReadOnlyAgentRole = 'explorer' | 'librarian' | 'oracle';
7
+ export type WriteCapableAgentRole = 'designer' | 'quick' | 'deep';
5
8
  export interface QuestionProtocolSection {
6
9
  kind: 'question-protocol';
7
10
  toolConcept: 'userQuestion';
@@ -44,8 +47,9 @@ export declare function createStepBudgetSection(steps?: number): StepBudgetSecti
44
47
  export declare function detectModelFamilyFromModel(model?: string | ModelEntry[]): ModelFamily | undefined;
45
48
  export declare function createModelFamilySection(role: AgentPromptRole, model?: string | ModelEntry[]): ModelFamilySection | undefined;
46
49
  export declare function createOrchestratorPromptSections(): RolePromptSection[];
47
- export declare function createReadOnlySpecialistPromptSections(role: Extract<AgentPromptRole, 'explorer' | 'librarian' | 'oracle'>): RolePromptSection[];
48
- export declare function createWriteCapableSpecialistPromptSections(role: Extract<AgentPromptRole, 'designer' | 'quick' | 'deep'>): RolePromptSection[];
50
+ export declare function createReadOnlySpecialistPromptSections(role: ReadOnlyAgentRole): RolePromptSection[];
51
+ export declare function createWriteCapableSpecialistPromptSections(role: WriteCapableAgentRole): RolePromptSection[];
52
+ export declare function createRolePromptSections(role: AgentRoleName): RolePromptSection[];
49
53
  export declare function renderPromptSection(section: PromptSection, dialect: HarnessPromptDialect): string;
50
54
  export declare function renderRolePrompt(sections: RolePromptSection[], dialect: HarnessPromptDialect): string;
51
55
  export {};
@@ -7,18 +7,14 @@ interface ComposeAgentPromptOptions {
7
7
  customAppendPrompt?: string;
8
8
  placeholders?: Record<string, string | number | undefined>;
9
9
  }
10
- type ModelFamily = 'openai' | 'claude' | 'gemini' | 'kimi' | 'glm';
11
10
  export type ModelEntry = string | {
12
11
  id: string;
13
12
  variant?: string;
14
13
  };
15
14
  export declare const QUESTION_PROTOCOL: string;
16
15
  export declare const SUBAGENT_RULES: string;
17
- export declare const SUBAGENT_RULES_READONLY: string;
18
- export declare const SUBAGENT_RULES_WRITABLE: string;
19
16
  export declare const RESPONSE_BUDGET: string;
20
17
  export declare function appendPromptSections(...sections: Array<string | undefined>): string;
21
- export declare function detectModelFamily(model?: string | ModelEntry[]): ModelFamily | undefined;
22
18
  export declare function getStepBudgetPromptSection(steps?: number): string | undefined;
23
19
  export declare function getModelFamilyPromptSection(role: AgentPromptRole, model?: string | ModelEntry[]): string | undefined;
24
20
  export declare function replacePromptPlaceholders(template: string, placeholders?: Record<string, string | number | undefined>): string;