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.
Files changed (149) 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-ASKXWU6E.js → chunk-2MZ5C2RN.js} +1078 -1725
  8. package/dist/chunk-XO74DXBZ.js +1781 -0
  9. package/dist/{chunk-6BNAV534.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/index.js +279 -119
  15. package/dist/cli/install.d.ts +5 -1
  16. package/dist/cli/model-catalog/cache.d.ts +1 -1
  17. package/dist/cli/operations/claude-code.d.ts +6 -3
  18. package/dist/cli/operations/codex.d.ts +2 -1
  19. package/dist/cli/operations/opencode.d.ts +2 -1
  20. package/dist/cli/operations/types.d.ts +9 -1
  21. package/dist/cli/package-root.d.ts +1 -0
  22. package/dist/cli/providers.d.ts +6 -116
  23. package/dist/cli/skills.d.ts +19 -32
  24. package/dist/cli/thoth-mem-install.d.ts +45 -0
  25. package/dist/cli/tui/components/StatusView.d.ts +12 -1
  26. package/dist/cli/tui/index.js +256 -142
  27. package/dist/cli/tui/operations.d.ts +4 -3
  28. package/dist/cli/types.d.ts +0 -10
  29. package/dist/config/constants.d.ts +20 -16
  30. package/dist/config/index.d.ts +0 -1
  31. package/dist/config/loader.d.ts +1 -1
  32. package/dist/config/schema.d.ts +2 -38
  33. package/dist/config/utils.d.ts +1 -2
  34. package/dist/harness/adapters/codex-surfaces.d.ts +3 -3
  35. package/dist/harness/core/agent-pack.d.ts +37 -29
  36. package/dist/harness/core/memory-governance.d.ts +24 -48
  37. package/dist/harness/core/sdd.d.ts +364 -131
  38. package/dist/harness/generate-integration-packages.d.ts +20 -0
  39. package/dist/harness/opencode-init-command.d.ts +11 -0
  40. package/dist/harness/types.d.ts +14 -1
  41. package/dist/harness/writers/claude-code-subagent.d.ts +3 -1
  42. package/dist/hooks/index.d.ts +0 -5
  43. package/dist/index.js +562 -1314
  44. package/dist/mcp/index.d.ts +1 -2
  45. package/package.json +17 -12
  46. package/plugin/.claude-plugin/.thoth-agents-plugin-assets.json +50 -0
  47. package/plugin/.claude-plugin/plugin.json +8 -0
  48. package/plugin/.codex-plugin/.thoth-agents-plugin-assets.json +16 -0
  49. package/plugin/.codex-plugin/plugin.json +7 -0
  50. package/plugin/.mcp.json +19 -0
  51. package/plugin/agents/deep.md +89 -0
  52. package/plugin/agents/designer.md +89 -0
  53. package/plugin/agents/explorer.md +90 -0
  54. package/plugin/agents/librarian.md +90 -0
  55. package/plugin/agents/oracle.md +92 -0
  56. package/plugin/agents/orchestrator.md +128 -0
  57. package/plugin/agents/quick.md +89 -0
  58. package/plugin/codex.mcp.json +17 -0
  59. package/plugin/settings.json +3 -0
  60. package/plugin/skills/thoth-archive/SKILL.md +40 -0
  61. package/plugin/skills/thoth-archive/scripts/archive.mjs +748 -0
  62. package/plugin/skills/thoth-constitution/SKILL.md +45 -0
  63. package/plugin/skills/thoth-constitution/scripts/validate.mjs +167 -0
  64. package/plugin/skills/thoth-constitution/templates/constitution.md +54 -0
  65. package/plugin/skills/thoth-init/SKILL.md +30 -0
  66. package/plugin/skills/thoth-init/scripts/init.mjs +141 -0
  67. package/plugin/skills/thoth-sdd/SKILL.md +83 -0
  68. package/plugin/skills/thoth-sdd/references/phases/analyze.md +21 -0
  69. package/plugin/skills/thoth-sdd/references/phases/checklist.md +20 -0
  70. package/plugin/skills/thoth-sdd/references/phases/clarify.md +15 -0
  71. package/plugin/skills/thoth-sdd/references/phases/converge.md +14 -0
  72. package/plugin/skills/thoth-sdd/references/phases/explore.md +10 -0
  73. package/plugin/skills/thoth-sdd/references/phases/implement.md +19 -0
  74. package/plugin/skills/thoth-sdd/references/phases/plan.md +15 -0
  75. package/plugin/skills/thoth-sdd/references/phases/specify.md +21 -0
  76. package/plugin/skills/thoth-sdd/references/phases/tasks.md +20 -0
  77. package/plugin/skills/thoth-sdd/references/phases/verify.md +22 -0
  78. package/plugin/skills/thoth-sdd/scripts/validate.mjs +1117 -0
  79. package/plugin/skills/thoth-sdd/templates/archive-report.md +25 -0
  80. package/plugin/skills/thoth-sdd/templates/checklist.md +27 -0
  81. package/plugin/skills/thoth-sdd/templates/plan.md +38 -0
  82. package/plugin/skills/thoth-sdd/templates/spec.md +54 -0
  83. package/plugin/skills/thoth-sdd/templates/tasks.md +29 -0
  84. package/plugin/skills/thoth-sdd/templates/verify-report.md +28 -0
  85. package/skills/README.md +12 -0
  86. package/skills/thoth-archive/SKILL.md +40 -0
  87. package/skills/thoth-archive/scripts/archive.mjs +748 -0
  88. package/skills/thoth-constitution/SKILL.md +45 -0
  89. package/skills/thoth-constitution/scripts/validate.mjs +167 -0
  90. package/skills/thoth-constitution/templates/constitution.md +54 -0
  91. package/skills/thoth-init/SKILL.md +30 -0
  92. package/skills/thoth-init/scripts/init.mjs +141 -0
  93. package/skills/thoth-sdd/SKILL.md +83 -0
  94. package/skills/thoth-sdd/references/phases/analyze.md +21 -0
  95. package/skills/thoth-sdd/references/phases/checklist.md +20 -0
  96. package/skills/thoth-sdd/references/phases/clarify.md +15 -0
  97. package/skills/thoth-sdd/references/phases/converge.md +14 -0
  98. package/skills/thoth-sdd/references/phases/explore.md +10 -0
  99. package/skills/thoth-sdd/references/phases/implement.md +19 -0
  100. package/skills/thoth-sdd/references/phases/plan.md +15 -0
  101. package/skills/thoth-sdd/references/phases/specify.md +21 -0
  102. package/skills/thoth-sdd/references/phases/tasks.md +20 -0
  103. package/skills/thoth-sdd/references/phases/verify.md +22 -0
  104. package/skills/thoth-sdd/scripts/validate.mjs +1117 -0
  105. package/skills/thoth-sdd/templates/archive-report.md +25 -0
  106. package/skills/thoth-sdd/templates/checklist.md +27 -0
  107. package/skills/thoth-sdd/templates/plan.md +38 -0
  108. package/skills/thoth-sdd/templates/spec.md +54 -0
  109. package/skills/thoth-sdd/templates/tasks.md +29 -0
  110. package/skills/thoth-sdd/templates/verify-report.md +28 -0
  111. package/thoth-agents.schema.json +0 -39
  112. package/dist/chunk-OZE7JVGS.js +0 -2344
  113. package/dist/cli/custom-skills.d.ts +0 -49
  114. package/dist/cli/skill-manifest.d.ts +0 -32
  115. package/dist/harness/core/skills.d.ts +0 -211
  116. package/dist/harness/generate-codex-plugin.d.ts +0 -9
  117. package/dist/harness/writers/claude-code-skill-layout.d.ts +0 -16
  118. package/dist/harness/writers/fs-skill-collect.d.ts +0 -7
  119. package/dist/harness/writers/skill-layout.d.ts +0 -16
  120. package/dist/hooks/chat-headers.d.ts +0 -16
  121. package/dist/hooks/phase-reminder/index.d.ts +0 -28
  122. package/dist/hooks/post-read-nudge/index.d.ts +0 -18
  123. package/dist/hooks/skill-sync.d.ts +0 -10
  124. package/dist/hooks/thoth-mem/index.d.ts +0 -46
  125. package/dist/hooks/thoth-mem/protocol.d.ts +0 -7
  126. package/dist/mcp/thoth.d.ts +0 -3
  127. package/dist/sdd/artifact-governance/artifact-loader.d.ts +0 -130
  128. package/dist/sdd/artifact-governance/index.d.ts +0 -6
  129. package/dist/sdd/artifact-governance/tasks-validator.d.ts +0 -17
  130. package/dist/sdd/artifact-governance/types.d.ts +0 -52
  131. package/dist/thoth/client.d.ts +0 -14
  132. package/dist/thoth/index.d.ts +0 -2
  133. package/src/skills/_shared/openspec-convention.md +0 -350
  134. package/src/skills/_shared/persistence-contract.md +0 -163
  135. package/src/skills/_shared/thoth-mem-convention.md +0 -123
  136. package/src/skills/executing-plans/SKILL.md +0 -288
  137. package/src/skills/plan-reviewer/SKILL.md +0 -219
  138. package/src/skills/requirements-interview/SKILL.md +0 -233
  139. package/src/skills/sdd-apply/SKILL.md +0 -89
  140. package/src/skills/sdd-archive/SKILL.md +0 -92
  141. package/src/skills/sdd-clarify/SKILL.md +0 -105
  142. package/src/skills/sdd-constitution/SKILL.md +0 -107
  143. package/src/skills/sdd-design/SKILL.md +0 -155
  144. package/src/skills/sdd-init/SKILL.md +0 -233
  145. package/src/skills/sdd-propose/SKILL.md +0 -101
  146. package/src/skills/sdd-spec/SKILL.md +0 -136
  147. package/src/skills/sdd-tasks/SKILL.md +0 -232
  148. package/src/skills/sdd-verify/SKILL.md +0 -131
  149. package/src/skills/thoth-mem-agents/SKILL.md +0 -210
@@ -0,0 +1,25 @@
1
+ # Archive Report: [Feature name]
2
+
3
+ **Status**: READY<br>
4
+ **Oracle verdict**: PASS<br>
5
+ **Archive path**: `openspec/changes/archive/YYYY-MM-DD-[feature]/`
6
+
7
+ ## Completed scope
8
+
9
+ - [Story and FR/buildable-SC summary.]
10
+
11
+ ## Verification lineage
12
+
13
+ - `verify-report.md` records independent oracle PASS with executed evidence.
14
+
15
+ ## Canonical specification sync
16
+
17
+ - Pending: archive applies declared durable deltas transactionally.
18
+
19
+ ## Deviations and residual warnings
20
+
21
+ - [Deviation/warning or None.]
22
+
23
+ ## Follow-up
24
+
25
+ - [Explicit follow-up or None.]
@@ -0,0 +1,27 @@
1
+ # Requirements checklist: [Feature name]
2
+
3
+ **Activation reason**: [Concrete risk, compliance need, or ambiguity.]
4
+
5
+ ## Initial validation
6
+
7
+ - [ ] CHK001 [Completeness] [Question covering required actors, flows, failures, and constraints with an evidence anchor.]
8
+ - [ ] CHK002 [Clarity] [Question proving each requirement has one observable interpretation.]
9
+ - [ ] CHK003 [Consistency] [Question comparing stories, FRs, SCs, assumptions, and non-goals.]
10
+ - [ ] CHK004 [Measurability] [Question proving every FR/SC has objective evidence.]
11
+ - [ ] CHK005 [Coverage] [Question mapping every US/FR/SC and failure mode.]
12
+
13
+ ## Domain lenses
14
+
15
+ [Add sequential CHK items only for applicable lenses such as security,
16
+ accessibility, compliance, performance, migration, or domain rules; otherwise
17
+ keep the evidence-backed None line.]
18
+
19
+ - None: [evidence-backed reason no domain-specific lens applies]
20
+
21
+ ## Revalidation
22
+
23
+ [After requirement-affecting changes, add checked CHK items. If none occurred,
24
+ keep only the evidence-backed no-op.]
25
+
26
+ - [ ] CHK006 [Coverage] [Confirm affected US/FR/SC were revalidated after the change.]
27
+ - Not required: [evidence-backed reason]
@@ -0,0 +1,38 @@
1
+ # Implementation Plan: [Feature name]
2
+
3
+ ## Technical context
4
+
5
+ [Current behavior, constraints, and affected surfaces.]
6
+
7
+ ## Constitution Check (pre-design)
8
+
9
+ Repeat every active Constitution principle by its exact heading. Each entry must
10
+ use one status and concrete evidence; placeholders are invalid in a completed
11
+ plan.
12
+
13
+ - **[Exact principle heading]**: PASS | JUSTIFIED EXCEPTION | FAIL — [concrete evidence]
14
+
15
+ ## Design
16
+
17
+ ### Requirement mapping
18
+
19
+ | Requirement | Technical decision | Files/interfaces | Verification seam |
20
+ | --- | --- | --- | --- |
21
+ | FR-001 | [Decision] | `[exact/path]` | [Public seam] |
22
+
23
+ ## Optional support artifacts
24
+
25
+ - `research.md`: [reason or not needed]
26
+ - `data-model.md`: [reason or not needed]
27
+ - `contracts/`: [reason or not needed]
28
+ - `quickstart.md`: [reason or not needed]
29
+
30
+ ## Risks and migrations
31
+
32
+ - [Risk, mitigation, rollback or migration.]
33
+
34
+ ## Constitution Check (post-design)
35
+
36
+ Repeat the same active principles used by the pre-design check.
37
+
38
+ - **[Exact principle heading]**: PASS | JUSTIFIED EXCEPTION | FAIL — [concrete design evidence]
@@ -0,0 +1,54 @@
1
+ # Feature Specification: [Feature name]
2
+
3
+ **Change ID**: `[feature]`<br>
4
+ **Route**: Accelerated | Full<br>
5
+ **Status**: Draft
6
+
7
+ ## Intent and scope
8
+
9
+ **Why**: [User or operator value.]<br>
10
+ **Impact**: [Observable behavior and compatibility impact.]<br>
11
+ **Affected capabilities**: `[capability-slug]` | None
12
+
13
+ ## User stories
14
+
15
+ ### US1 - [Outcome] (Priority: P1)
16
+
17
+ As a [actor], I can [capability] so that [value].
18
+
19
+ **Independent test**: [How this story is demonstrated in isolation.]
20
+
21
+ **Covers**: FR-001, SC-001
22
+
23
+ **Acceptance scenarios**:
24
+
25
+ 1. **Given** [context], **When** [action], **Then** [observable result].
26
+
27
+ ## Edge cases
28
+
29
+ - [Boundary or failure scenario.]
30
+
31
+ ## Functional requirements
32
+
33
+ - **FR-001 — [Requirement name]**: `[ADDED capability-slug]` The system MUST [observable behavior].
34
+
35
+ Use exactly one delta marker per FR: `[INTERNAL]`, `[ADDED capability-slug]`,
36
+ `[MODIFIED capability-slug]`, `[REMOVED capability-slug]`, or
37
+ `[RENAMED capability-slug FROM Previous requirement name]`.
38
+
39
+ ## Success criteria
40
+
41
+ - **SC-001** `[buildable]`: [Measurable criterion implemented by this change.]
42
+ - **SC-002** `[outcome]`: [Measurable product or operational outcome observed later.]
43
+
44
+ ## Assumptions
45
+
46
+ - [Documented safe assumption.]
47
+
48
+ ## Dependencies
49
+
50
+ - [External or internal dependency, or None.]
51
+
52
+ ## Out of scope
53
+
54
+ - [Explicit non-goal.]
@@ -0,0 +1,29 @@
1
+ # Tasks: [Feature name]
2
+
3
+ ## MVP scope
4
+
5
+ [Name the first independently testable story and its completion evidence.]
6
+
7
+ ## Dependencies
8
+
9
+ `T001 -> T002`; [cross-story dependency notes, or None.]
10
+
11
+ ## Story US1
12
+
13
+ - [ ] T001 [US1] Add the failing behavior test for FR-001 and buildable SC-001 in `[exact/test/path]` | Verify: the focused test fails for the missing behavior
14
+ - [ ] T002 [US1] Implement FR-001 and buildable SC-001 in `[exact/source/path]` | Verify: the focused test passes
15
+ - [ ] T003 [P] [US1] Update independent documentation for FR-001 in `[exact/doc/path]` | Verify: the documented contract matches the tested behavior
16
+
17
+ Outcome SCs remain verification targets; do not manufacture implementation tasks
18
+ for them.
19
+
20
+ ## Parallel execution
21
+
22
+ [Keep exactly one form below. Use `[P]` only when mutable paths cannot overlap.]
23
+
24
+ - T003 may run with T001 because `[exact/doc/path]` and `[exact/test/path]` do not overlap.
25
+ - None: [reason no tasks can safely overlap]
26
+
27
+ ## Final verification
28
+
29
+ - [ ] T004 [US1] Map FR-001 and buildable SC-001 evidence in `[verify-report path]` | Verify: oracle records a passing verdict with executed evidence
@@ -0,0 +1,28 @@
1
+ # Verification Report: [Feature name]
2
+
3
+ **Reviewer**: oracle<br>
4
+ **Independent from implementer**: Yes<br>
5
+ **Verdict**: PASS | FAIL
6
+
7
+ ## Review dimensions
8
+
9
+ - **Completeness**: [All accepted scope represented or finding IDs.]
10
+ - **Correctness**: [Behavior matches each contract or finding IDs.]
11
+ - **Coherence**: [Spec, plan, tasks, implementation, and docs agree or finding IDs.]
12
+
13
+ ## Compliance matrix
14
+
15
+ | Requirement | Implementation evidence | Executed check | Result |
16
+ | --- | --- | --- | --- |
17
+ | FR-001 | `[path:line]` | `[command]` | PASS | FAIL |
18
+ | SC-001 `[buildable]` | `[path:line]` | `[command]` | PASS | FAIL |
19
+ | SC-002 `[outcome]` | [Observed evidence or residual-risk note] | `[check or N/A]` | PASS | RISK |
20
+
21
+ ## Findings
22
+
23
+ | ID | Severity | Dimension | Evidence | Remediation anchor |
24
+ | --- | --- | --- | --- | --- |
25
+
26
+ ## Residual risks
27
+
28
+ - SC-###: [Explicit outcome risk and observation plan, or None.]
@@ -412,45 +412,6 @@
412
412
  }
413
413
  }
414
414
  },
415
- "thoth": {
416
- "type": "object",
417
- "properties": {
418
- "command": {
419
- "type": "array",
420
- "items": {
421
- "type": "string"
422
- }
423
- },
424
- "data_dir": {
425
- "type": "string"
426
- },
427
- "environment": {
428
- "type": "object",
429
- "propertyNames": {
430
- "type": "string"
431
- },
432
- "additionalProperties": {
433
- "type": "string"
434
- }
435
- },
436
- "timeout": {
437
- "type": "number"
438
- },
439
- "http_port": {
440
- "type": "number"
441
- }
442
- }
443
- },
444
- "artifactStore": {
445
- "type": "object",
446
- "properties": {
447
- "mode": {
448
- "default": "hybrid",
449
- "type": "string",
450
- "enum": ["thoth-mem", "openspec", "hybrid"]
451
- }
452
- }
453
- },
454
415
  "codex": {
455
416
  "type": "object",
456
417
  "properties": {