Commit Graph

72 Commits

Author SHA1 Message Date
csh 8b93311cae 📝 docs(tsl): clarify syntax constraints and enhance test infrastructure
- Add TSF file naming constraint to syntax/02_core_model.md
- Clarify semicolon rules: syntax facts vs style preferences
- Separate control flow end semicolon rules (syntax allows both)
- Add function body semicolon requirements to syntax/05_functions_and_calls.md
- Move style preferences to code_style.md (control flow end semicolons)
- Remove cross-references from syntax docs to maintain independence
- Enhance Gitea workflow emoji for better CI output readability
- Fix CI test path from tests/ to test/
- Organize agent test results under test/agent/result/ directory
- Add complete Chinese translation of test cases (test_cases_zh.md)
- Clean up .gitignore to use unified test/agent/result/ directory
- Remove obsolete agent test artifacts (REPORTS_LOCATION.md, old results)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-06-21 17:04:50 +08:00
csh 02ad5e5f4a feat(playbook): add playbook root boundary placeholder 2026-06-01 14:22:11 +08:00
csh f2ab57b39f feat(playbook): add install_mode deployment config
BREAKING CHANGE: [vendor] and playbook.deploy_root are no longer supported. Use [playbook].install_mode and playbook.playbook_root instead.
2026-06-01 10:49:16 +08:00
csh c35cf841bc 🐛 fix(playbook): add heading to generated CLAUDE.md 2026-05-31 13:43:59 +08:00
csh 7db5e4a697 🐛 fix(scripts): force LF for generated text files 2026-05-30 07:59:56 +08:00
csh eaa061fd2b feat(main_loop): harden plan execution state
Validate required Plan Meta before claims, record claim ownership, and persist verification evidence on completion.

Document conditional skill triggers without adding them to automatic main-loop dispatch.
2026-05-29 15:42:03 +08:00
csh 1a3ea1f425 🐛 fix(main_loop): enforce plan lifecycle ordering
Claim the first executable plan in plan-file order after resuming any in-progress plan, preserve skipped as its own workflow phase, and document the required post-done commit gate in the agent rules.
2026-05-27 14:07:09 +08:00
csh c0729c7933 🐛 fix(playbook): import Optional for cli compatibility
restore the missing typing.Optional import in scripts/playbook.py
so older python runtimes can import the CLI module successfully.

add a regression test for typing annotation imports and register it
in the tests README.
2026-05-19 10:09:55 +08:00
csh 2c5050de09 ♻️ refactor(skills): rename repo skills source dir
move the repository skills source from `codex/skills` to `skills`.

update vendor/install_skills paths, thirdparty sync pipeline, docs, and regression tests, including deployment-route e2e coverage.
2026-05-19 09:09:54 +08:00
csh 234b335663 feat(workflow): add superpowers planning and execution state tracking 2026-05-18 16:28:06 +08:00
csh 4ac86729d7 📝 docs: simplify README + platform-agnostic tools + auto-create local rules
- Simplify docs/ section to grouped summary with pointer to docs/index.md
- Remove outdated performance metrics table
- Use cross-platform path examples throughout
- Make AGENT_RULES tool usage section platform-agnostic
- Auto-create AGENT_RULES.local.md on sync_rules (empty template)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-18 09:58:13 +08:00
csh c8d6bf21a6 🐛 fix(playbook): use relative paths in CLAUDE.md when not at project root
When CLAUDE.md lives in a subdirectory (e.g. .claude/CLAUDE.md), the
@AGENTS.md import must use ../AGENTS.md since Claude Code resolves @path
relative to the file's directory. Calculate depth automatically.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-17 08:11:48 +08:00
csh 6518f0f554 feat(playbook): auto-create CLAUDE.md with path discovery
sync_claude_md now:
- Checks project root CLAUDE.md first, then .claude/CLAUDE.md
- Auto-creates if neither exists (default: project root)
- Supports playbook.claude_md config to override location
- Update test to verify auto-creation behavior

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-16 13:29:33 +08:00
csh 6ec9a45a83 feat(skills): add skill_link symlink support + platform-agnostic prompt
- Add skill_link config option to create a symlink/junction from another
  platform's skills dir to agents_home/skills/ (e.g. ~/.claude -> ~/.agents)
- On Windows, falls back to directory junction when symlink requires admin
- Add _create_skills_symlink() with _is_junction() helper for Windows
- Update playbook.toml.example with skill_link documentation
- Fix templates/README.md prompt example to be platform-agnostic
- Add 3 tests: symlink creation, idempotency, absence when unconfigured

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-16 13:16:32 +08:00
csh 452c6f58f9 feat(playbook): auto-inject AGENTS.md into CLAUDE.md
When any sync action runs and the target project already has a CLAUDE.md,
automatically insert @AGENTS.md / @AGENT_RULES.md import block so
Claude Code picks up the same rules as Codex without manual setup.

- Add sync_claude_md() called at end of sync_agents_template()
- Uses <!-- playbook:claude:start/end --> block markers for idempotent updates
- Skips if no CLAUDE.md exists (Codex users unaffected)
- Skips if @AGENTS.md already present (manual setups respected)
- Add 4 tests covering: no file, append, update block, already-referenced

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-15 17:16:35 +08:00
csh 7ade85ea1b 🗑️ remove(tsl): drop syntax_book/, data/ source and build script
- Remove docs/tsl/syntax_book/ (superseded by docs/tsl/syntax/)
- Remove data/tsl_reference_catalog_source/ (catalog already generated
  into docs/tsl/reference/catalog/, source no longer needed)
- Remove scripts/build_tsl_reference_catalog.ps1 (build script for
  the above source)
- Remove test assertion that referenced the deleted data/ source index

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-15 15:50:49 +08:00
csh f94dba0348 ♻️ refactor(skills): update playbook.py and tests for thirdparty/ layout
- install_skills_action: collect skills from both codex/skills/ (own) and
  codex/skills/thirdparty/ (thirdparty); mode=all installs both, mode=list
  searches both; log [thirdparty] tag for third-party installs
- Update test_thirdparty_skills_pipeline: fix source_list path assertion
- Update SKILLS.md: document thirdparty/ subdirectory structure

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-15 15:09:15 +08:00
csh a2e3cb07de feat(playbook): add no_backup deploy controls
remove obsolete main_language placeholders and language summary template text

limit generated .agents guidance to configured langs and normalize AGENT_RULES trailing newlines

document install_skills no_backup behavior and refresh tests for deployment links and sync flows
2026-04-24 10:06:03 +08:00
csh 96b705b00b 📝 docs(tsl): rebuild canonical syntax and routing manual 2026-04-22 16:59:20 +08:00
csh 7b84daf3bd 🐛 fix(templates): enforce main loop progress tracking
Update Third-party Superpowers / Update thirdparty/skill snapshot (push) Successful in 1m20s Details
replace the old select/record progress flow with a single main_loop claim/finish CLI.

route template execution through main_loop only, remove the legacy plan_progress entry points, and update tests to enforce the new behavior.
2026-03-12 17:47:33 +08:00
csh 94395056ea 🐛 fix(playbook): address reported repo issues
normalize Windows path-like TOML config values, regenerate .agents/index.md on sync, keep the SKILLS.md superpowers section route-only, and ignore generated Python cache dirs.

add regression coverage for load_config() and the standards sync behavior touched by these fixes.
2026-03-10 10:10:28 +08:00
csh 1f46203299 feat(typescript): add standards docs and sync rewrite coverage 2026-02-24 17:30:43 +08:00
csh 872c1afc24 🔧 feat(skills): install to agents home 2026-02-05 15:26:48 +08:00
csh a85453439f feat(plan_progress): auto-detect env for blocked plans 2026-01-29 14:54:12 +08:00
csh 0d9a8ec465 🐛 fix(playbook): honor no_backup for sync 2026-01-27 18:00:05 +08:00
csh 60ff3cd035 🐛 fix(playbook): sync templates per file 2026-01-27 16:54:18 +08:00
csh 6774a9d4aa feat(plan_progress): track plan status in progress.md 2026-01-27 16:03:53 +08:00
csh 73d5c261b1 🔧 chore(playbook): split sync_templates into sections 2026-01-27 08:49:40 +08:00
csh 278750e3c9 feat(playbook): add plan progress tracking and rules updates 2026-01-26 16:51:23 +08:00
csh 6efd637119 🐛 fix(sync): keep agents block blank lines 2026-01-26 09:34:44 +08:00
csh ea00d43bb8 🐛 fix(playbook): support toml without tomllib 2026-01-23 16:54:53 +08:00
csh b4f712acb4 🗑️ remove(legacy): drop old scripts and tests 2026-01-23 14:58:31 +08:00
csh 0c4cd0e037 feat(actions): add install_skills and format_md 2026-01-23 14:40:08 +08:00
csh 3d1582ce9e feat(sync): add templates and standards actions 2026-01-23 14:37:55 +08:00
csh 49bbfa13e4 feat(vendor): add playbook snapshot generation 2026-01-23 14:30:30 +08:00
csh 8cfcc25f98 feat(cli): parse toml config and dispatch actions 2026-01-23 14:24:07 +08:00
csh 65d216ef52 test(cli): add basic playbook cli tests 2026-01-23 14:15:12 +08:00
csh 4a8530660e 🗑️ remove(workflow): drop todo/confirm artifacts
stop generating TODO.md and CONFIRM.md in sync_templates\nupdate templates/prompts and sync_templates tests
2026-01-22 18:05:14 +08:00
csh 5a2925f846 🐛 fix(scripts): repair windows script parsing
fix powershell here-strings and help alias conflicts\nadd windows script lint test and run it in CI
2026-01-22 17:30:15 +08:00
csh e5d2c9399e 🗑️ remove(skills): drop duplicate workflows 2026-01-22 13:31:11 +08:00
csh 3ae970885d 🐛 fix(ci): update tests for flag-only scripts 2026-01-21 17:26:10 +08:00
csh c44b9aa4bb 🔧 chore(scripts): require flag-driven args 2026-01-21 15:19:53 +08:00
csh e4e1d14182 🔧 chore(scripts): unify single-dash options 2026-01-21 14:39:46 +08:00
csh 2045dd45c0 feat(vendor_playbook): add apply-templates option 2026-01-21 10:18:48 +08:00
csh 872d8cf98b feat(templates): add sync templates scaffolding 2026-01-21 10:18:24 +08:00
csh e5dd7d9d07 🔧 fix(sync): avoid backtick expansion 2026-01-13 10:56:27 +08:00
csh 087b0b9c75 🔧 chore(sync): align agents block across ps1/bat 2026-01-13 10:52:42 +08:00
csh 9481510154 🔧 chore(sync): scope agents block to existing langs 2026-01-13 10:45:53 +08:00
csh b0ca842c72 🔧 fix(sync): rewrite docs path in agents 2026-01-12 16:16:51 +08:00
csh c98d65c1f1 🔧 chore(sync): rewrite agents docs paths 2026-01-12 16:03:31 +08:00