thoth-agents 0.4.1 → 0.5.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 +30 -0
- package/README.md +86 -58
- package/dist/agents/prompt-sections.d.ts +5 -3
- package/dist/agents/prompt-utils.d.ts +1 -1
- package/dist/agents/worker.d.ts +2 -0
- package/dist/{chunk-STCURXAQ.js → chunk-MRFCA3U2.js} +33 -67
- package/dist/{chunk-EFGSGPYM.js → chunk-OW6I7ZUU.js} +391 -416
- package/dist/chunk-V7HSGRMB.js +1016 -0
- package/dist/{chunk-2D7E7GMP.js → chunk-VUNYH263.js} +1650 -380
- package/dist/cli/claude-code-paths.d.ts +2 -2
- package/dist/cli/codex-install.d.ts +5 -2
- package/dist/cli/codex-paths.d.ts +2 -2
- package/dist/cli/index.js +47 -11
- package/dist/cli/model-defaults.d.ts +4 -0
- package/dist/cli/operations/pi.d.ts +1 -0
- package/dist/cli/pi-effort.d.ts +1 -1
- package/dist/cli/pi-external-package.d.ts +24 -0
- package/dist/cli/pi-git-source.d.ts +1 -0
- package/dist/cli/pi-install.d.ts +92 -15
- package/dist/cli/pi-managed-write.d.ts +3 -0
- package/dist/cli/pi-model-config.d.ts +17 -0
- package/dist/cli/pi-native-probe.d.ts +2 -0
- package/dist/cli/pi-paths.d.ts +2 -0
- package/dist/cli/pi-resources.d.ts +3 -1
- package/dist/cli/pi-tool-config.d.ts +32 -0
- package/dist/cli/tui/index.js +32 -7
- package/dist/cli/tui/operations.d.ts +3 -1
- package/dist/cli/types.d.ts +2 -0
- package/dist/config/constants.d.ts +4 -8
- package/dist/config/schema.d.ts +7 -36
- package/dist/harness/adapters/claude-code.d.ts +2 -4
- package/dist/harness/core/agent-pack.d.ts +52 -42
- package/dist/harness/core/memory-governance.d.ts +2 -2
- package/dist/harness/core/sdd.d.ts +159 -319
- package/dist/harness/writers/pi-agent.d.ts +3 -1
- package/dist/index.js +12 -6
- package/dist/pi/tools-panel.d.ts +51 -0
- package/dist/pi.d.ts +44 -2
- package/dist/pi.js +471 -9
- package/dist/utils/subprocess.d.ts +1 -0
- package/package.json +18 -4
- package/pi/.thoth-agents-assets.json +5 -6
- package/pi/agents/thoth-designer.md +23 -8
- package/pi/agents/thoth-explorer.md +29 -9
- package/pi/agents/thoth-librarian.md +30 -8
- package/pi/agents/thoth-oracle.md +18 -10
- package/pi/agents/thoth-worker.md +96 -0
- package/plugin/.claude-plugin/.thoth-agents-plugin-assets.json +7 -12
- package/plugin/.claude-plugin/plugin.json +2 -2
- package/plugin/.codex-plugin/plugin.json +2 -2
- package/plugin/agents/designer.md +13 -5
- package/plugin/agents/explorer.md +16 -5
- package/plugin/agents/librarian.md +15 -4
- package/plugin/agents/oracle.md +13 -7
- package/plugin/agents/orchestrator.md +82 -91
- package/plugin/agents/worker.md +76 -0
- package/plugin/skills/plan-reviewer/SKILL.md +39 -141
- package/plugin/skills/thoth-archive/SKILL.md +50 -47
- package/plugin/skills/thoth-archive/scripts/archive.mjs +287 -654
- package/plugin/skills/thoth-constitution/SKILL.md +23 -42
- package/plugin/skills/thoth-constitution/templates/constitution.md +54 -44
- package/plugin/skills/thoth-init/SKILL.md +19 -29
- package/plugin/skills/thoth-init/scripts/init.mjs +73 -66
- package/plugin/skills/thoth-sdd/SKILL.md +164 -117
- package/plugin/skills/thoth-sdd/references/phases/checklist.md +2 -22
- package/plugin/skills/thoth-sdd/references/phases/clarify.md +14 -12
- package/plugin/skills/thoth-sdd/references/phases/converge.md +2 -13
- package/plugin/skills/thoth-sdd/references/phases/explore.md +3 -8
- package/plugin/skills/thoth-sdd/references/phases/implement.md +58 -57
- package/plugin/skills/thoth-sdd/references/phases/plan.md +2 -18
- package/plugin/skills/thoth-sdd/references/phases/specify.md +2 -33
- package/plugin/skills/thoth-sdd/references/phases/tasks.md +4 -45
- package/plugin/skills/thoth-sdd/references/phases/verify.md +4 -22
- package/plugin/skills/thoth-sdd/scripts/validate.mjs +610 -1232
- package/plugin/skills/thoth-sdd/templates/change.md +94 -0
- package/skills/README.md +11 -13
- package/skills/plan-reviewer/SKILL.md +39 -141
- package/skills/thoth-archive/SKILL.md +50 -47
- package/skills/thoth-archive/scripts/archive.mjs +287 -654
- package/skills/thoth-constitution/SKILL.md +23 -42
- package/skills/thoth-constitution/templates/constitution.md +54 -44
- package/skills/thoth-init/SKILL.md +19 -29
- package/skills/thoth-init/scripts/init.mjs +73 -66
- package/skills/thoth-sdd/SKILL.md +164 -117
- package/skills/thoth-sdd/references/phases/checklist.md +2 -22
- package/skills/thoth-sdd/references/phases/clarify.md +14 -12
- package/skills/thoth-sdd/references/phases/converge.md +2 -13
- package/skills/thoth-sdd/references/phases/explore.md +3 -8
- package/skills/thoth-sdd/references/phases/implement.md +58 -57
- package/skills/thoth-sdd/references/phases/plan.md +2 -18
- package/skills/thoth-sdd/references/phases/specify.md +2 -33
- package/skills/thoth-sdd/references/phases/tasks.md +4 -45
- package/skills/thoth-sdd/references/phases/verify.md +4 -22
- package/skills/thoth-sdd/scripts/validate.mjs +610 -1232
- package/skills/thoth-sdd/templates/change.md +94 -0
- package/thoth-agents.schema.json +9 -77
- package/dist/agents/deep.d.ts +0 -2
- package/dist/agents/quick.d.ts +0 -2
- package/dist/chunk-2U5MBLLV.js +0 -312
- package/pi/agents/thoth-deep.md +0 -81
- package/pi/agents/thoth-quick.md +0 -81
- package/plugin/agents/deep.md +0 -68
- package/plugin/agents/quick.md +0 -68
- package/plugin/skills/plan-reviewer/templates/plan-review.md +0 -65
- package/plugin/skills/thoth-sdd/templates/archive-report.md +0 -25
- package/plugin/skills/thoth-sdd/templates/checklist.md +0 -27
- package/plugin/skills/thoth-sdd/templates/plan.md +0 -46
- package/plugin/skills/thoth-sdd/templates/spec.md +0 -62
- package/plugin/skills/thoth-sdd/templates/tasks.md +0 -58
- package/plugin/skills/thoth-sdd/templates/verify-report.md +0 -28
- package/skills/plan-reviewer/templates/plan-review.md +0 -65
- package/skills/thoth-sdd/templates/archive-report.md +0 -25
- package/skills/thoth-sdd/templates/checklist.md +0 -27
- package/skills/thoth-sdd/templates/plan.md +0 -46
- package/skills/thoth-sdd/templates/spec.md +0 -62
- package/skills/thoth-sdd/templates/tasks.md +0 -58
- package/skills/thoth-sdd/templates/verify-report.md +0 -28
|
@@ -1,56 +1,59 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: thoth-archive
|
|
3
|
-
description:
|
|
3
|
+
description: Transactionally apply declared .thoth/specs deltas and archive independently verified substantial SDD changes.
|
|
4
4
|
license: MIT
|
|
5
|
-
compatibility: Requires Node.js >=22.19 and
|
|
5
|
+
compatibility: Requires Node.js >=22.19 and installed sibling thoth-sdd skill.
|
|
6
6
|
metadata:
|
|
7
7
|
author: thoth-agents
|
|
8
|
-
version: "
|
|
8
|
+
version: "2.0"
|
|
9
9
|
---
|
|
10
10
|
|
|
11
11
|
# Thoth Archive
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
13
|
+
Root archives only after the implementation writer has terminated and a fresh
|
|
14
|
+
independent Oracle PASS has covered the actual change, diff, checks, and risks.
|
|
15
|
+
Structural closeout validation is not approval. The single record must have all
|
|
16
|
+
tasks complete, explicit plan-review disposition and implementation authorization,
|
|
17
|
+
every acceptance outcome's concrete PASS check/evidence, reviewed-record and
|
|
18
|
+
source digests, reviewed canonical baselines for every affected capability, and
|
|
19
|
+
`**Archive**: READY`. Each affected canonical spec is covered in that same record
|
|
20
|
+
by its SHA-256 `Source` entry or an explicit `absent` entry. Missing or stale
|
|
21
|
+
coverage blocks before canonical or archive changes. No verification or archive
|
|
22
|
+
report is required or allowed.
|
|
23
|
+
|
|
24
|
+
Plan-review selection provenance must be `EXPLICIT_REVIEW`, `EXPLICIT_SKIP`, or
|
|
25
|
+
`DEFAULT_REVIEW_AFTER_3`. A `SKIPPED` disposition requires `EXPLICIT_SKIP`; an
|
|
26
|
+
`OKAY` disposition requires explicit review or the third-answerless review
|
|
27
|
+
default. An unanswered offer never authorizes skip. The orchestrator owns the
|
|
28
|
+
choice and uses the shared per-question recommendation rule; archive validation
|
|
29
|
+
does not claim that it can authenticate the native interaction.
|
|
30
|
+
|
|
31
|
+
Run the installed sibling validator at `--through closeout`, then:
|
|
32
|
+
|
|
33
|
+
```text
|
|
34
|
+
node "<skill-dir>/scripts/archive.mjs" --change .thoth/changes/<id> --date YYYY-MM-DD --json
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
The shipped `--project <repository-root>` option is also accepted and checked
|
|
38
|
+
against the change location. JSON includes the stable change ID, archive path,
|
|
39
|
+
record path, and updated capabilities.
|
|
40
|
+
|
|
41
|
+
The script validates before creating the transaction, revalidates under its
|
|
42
|
+
exclusive transaction, and checks actual reviewed baselines again immediately
|
|
43
|
+
before mutation. It applies only declared ADDED/MODIFIED/REMOVED/RENAMED
|
|
44
|
+
exact-title requirements to `.thoth/specs/<capability>/spec.md`, preserving
|
|
45
|
+
unaffected requirements. It then moves the active
|
|
46
|
+
`.thoth/changes/<id>/<id>.md` record to
|
|
47
|
+
`.thoth/changes/archive/<date>-<id>/<id>.md`. The filename and identity remain
|
|
48
|
+
unchanged; the date appears only in the archive directory. Historical changes
|
|
49
|
+
are preserved.
|
|
50
|
+
|
|
51
|
+
It preflights canonical baselines and destination topology, captures displaced
|
|
52
|
+
original bytes, installs exclusively without overwriting concurrent creation,
|
|
53
|
+
verifies applied bytes, and rolls back handled failures. It rejects unsafe IDs,
|
|
54
|
+
symlink escapes, archive collisions, and unfinished transactions. Forced
|
|
55
|
+
termination is not crash-atomic; a retained
|
|
56
|
+
`.thoth/.archive-transaction/recovery.json` is a filesystem recovery aid, not
|
|
57
|
+
workflow state. Inspect real files, backups, and change/archive locations before
|
|
58
|
+
recovery; never blindly replay external effects. No installer or network access
|
|
59
|
+
is involved.
|