Commit Graph
321 Commits
Author SHA1 Message Date
csh 7cb8b130bb feat(tsl-codegen): refine generation and metadata enrichment 2026-08-11 18:11:32 +08:00
csh 7bd965de89 feat(tsl-api-reference): update API catalog and data dictionary 2026-08-11 18:10:24 +08:00
csh 34a3a5dec1 ♻️ refactor(agent): streamline skills and rulesets 2026-08-11 14:56:21 +08:00
csh 9010829c6d feat(tsl-api-reference): expand and reorganize api catalog
Flatten builtin pages, add third-party and platform scopes, and import financial and data warehouse references.

Keep the existing generated index without rebuilding after signature normalization.
2026-08-10 18:26:24 +08:00
csh 2938300acb 📝 docs(tsl-syntax-reference): document external and remote calls 2026-08-10 18:22:35 +08:00
csh a23f688b01 📦 deps(formatting): update prettier to 3.9.6 2026-08-10 18:21:39 +08:00
csh 6125a9f96a 🔧 chore(git): ignore scratch workspaces 2026-08-10 18:20:38 +08:00
csh 699b431cac feat(workflow): adopt Matt Pocock ticket workflow
Replace the Superpowers plan pipeline with grill-with-docs, specs, local tickets, and ticket-native execution.

BREAKING CHANGE: Remove the legacy Plan CLI, prompt templates, and Superpowers skills.
2026-08-10 16:55:46 +08:00
csh 29d110110b feat(tsl-api-reference): improve tagged API discovery 2026-07-31 12:37:59 +08:00
csh 736d1a8ad7 feat(tsl-syntax-reference): harden retrieval contracts
Add stable section IDs, structural and routing regressions, quickstart consistency checks, and CI enforcement.

BREAKING CHANGE: replace heading-derived Section IDs with explicit syntax-NN-NNN identifiers.
2026-07-31 10:05:15 +08:00
cshandClaude Opus 5 21e688a436 🎨 style(tsl-syntax-reference): run prettier on unguarded tables
- SKILL.md and 02 were the only files prettier still reported in this
  skill; their tables carry no prettier-ignore guard like the wide ones on
  06 and 15, so `prettier -w` pads the cells
- formatting only, no wording change

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-30 21:33:42 +08:00
cshandClaude Opus 5 948a3ed85b 🐛 fix(tsl-syntax-reference): repair routing for colloquial queries
- split 03's overloaded 字符串边界规则: substring read/replace/delete/insert
  now sit in 字符串子串读写 with their own tags, so `截取子串` / `子串` /
  `字符串区间` stop returning only weak candidates, which SKILL.md tells the
  agent to treat as a fact gap even though the fact is on the page
- tag the remaining 03 section for wide strings, encoding conversion and
  binary buffers; those queries used to land on the neighbouring concat
  section, or on 23's binary-function overload
- add 异常处理 to 07's try-except and rename 21's H3 to 无效输入替换参数: the
  matrix ErrDefine section owned that phrase and outranked try-except by
  92 to a weak 11, while its own text says NAN is not an error position
- tag 03's like section for 正则表达式 and 08 for 调用父类方法 / 定义类; all
  three reached the wrong section on the right page, and 定义类 could not
  reach 最小类与声明位置 at all because the per-page cap was already full
- drop the redundant 可直接照写示例 under 03's 禁止项 and state the closed
  interval rule as a bullet instead; a positive example does not belong in
  the prohibition list

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-30 21:33:29 +08:00
cshandClaude Opus 5 68a3b852b0 🐛 fix(tsl-syntax-reference): check fence language per block identity
- `--check` now requires `反例 / 不可照写` in a text fence and
  `可直接照写示例` in a tsl fence; the AGENTS.md flow that extracts every
  ```tsl block and runs it would otherwise execute a counterexample as if
  it were a valid example, and an example hidden in a text fence would
  never be extracted for verification
- 10 held the only counterexample in a tsl fence (a local function call
  with a trailing `with array(...)`); the rule and that fix cannot land in
  separate commits or --check fails in between
- 配置片段 / 概念骨架 and 仅服务端可执行示例 stay unconstrained, since both
  languages are in use for them today

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-30 21:33:14 +08:00
cshandClaude Opus 5 bcad28d22c 🐛 fix(tsl-syntax-reference): correct wrong facts on pages 15 and 16
- 16's numeric literal example prints nine values but its output fragment
  listed three lines; replace it with what the interpreter actually
  prints, so the fragment stops contradicting the prose in the same block
- 15's keyword table listed `inherited` as reserved-but-unused, which
  contradicts the `Inherited;` / `Inherited MethodName(...)` examples on
  08; both run on windows-tsl and AnalyseNG.NET, so the keyword moves to
  the class row and points at 08

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-30 21:33:03 +08:00
csh 0dcd968188 🐛 fix(tsl-playbook): sync node formatting configs
Publish package metadata and Prettier settings through the scoped tsl-playbook bundle sync.

Force-add only managed paths so the target branch ignore rules cannot drop the lockfile.
2026-07-30 13:47:49 +08:00
csh 1ae798bcaa feat(tsl-codegen): support file and directory inputs 2026-07-30 13:44:50 +08:00
csh aa8a3e73a8 🐛 fix(tsl-codegen): make TSF conversion best effort
Recover recognizable function, procedure, class, and unit structure from
nonstandard TSF input while preserving strict parsing for compliant files.

Keep STANDARD.md limited to published format requirements and cover
recovery paths with regression tests.
2026-07-30 09:20:18 +08:00
ci[bot] d8b83e30ba 📦 deps(skills): sync thirdparty skills 2026-07-29 07:59:27 +00:00
csh 13be5ea0aa feat(tsl-api-reference): index class and unit APIs
Migrate reference pages to declaration-line storage and rebuild the
13-column index.

Add qualified member lookup plus regression and end-to-end coverage.
2026-07-29 15:47:46 +08:00
csh 9edc8fc868 feat(tsl-codegen): support unified API declarations
Add TSF conversion and shared Markdown recognition for mixed
function, class, and unit declarations.

Extend generation, linting, indexing, examples, and tests around
the unified declaration model.
2026-07-29 15:45:50 +08:00
csh bd25835d2d 🗑️ remove(test): drop skill regression suites
- delete the gitea-fix-ci credential suite (13 cases covering secret
  redaction, cross-origin redirect refusal and header injection); the
  script keeps those behaviours but nothing guards them now
- stop pointing at the tsl-syntax lookup recall suite from data/README.md:
  that suite was never committed and is now deleted, leaving --check as the
  only guard for lexicon/page correspondence
2026-07-29 15:45:49 +08:00
csh c6895fe41a 🐛 fix(tsl-syntax-reference): require exact long options in lookup cli
- drop the -h short option and disable long-option abbreviation: `--che`
  used to run `--check` and exit 0, so a misspelled argument silently
  performed a different action instead of failing
- document the lexicon/page alias validation under --check, now the only
  guard against a renamed page silently losing its natural language entry
- state that --query takes terms rather than the user's own words, and
  describe the weak-hit marker and its rc=2 in both --query help and epilog
2026-07-29 15:45:49 +08:00
csh 9ef45155dd 🔧 chore(cpp): trim clang-format to intentional google deviations
- keep only the options that differ from Google style, each annotated with
  the Google default, so every override carries its own rationale
- switch to Allman braces and a 120 column limit; short functions now
  collapse only when declared inline
- dropped overrides fall back to Google behaviour, which turns include
  sorting, argument binpacking, comment reflow and namespace comment
  fixing back on
- drop a stray trailing blank line in .clangd
2026-07-29 15:45:48 +08:00
csh 40a9885eb4 feat(tsl-syntax-reference): harden retrieval and restructure pages
- flag weak candidates (no intent/heading/identifier/tag hit) and exit 2
  when every candidate is weak: mis-hits used to be indistinguishable
  from real hits, so the retry-with-better-terms loop never fired
- accept multiple ids per --section for batch fetch, failing atomically
  on any unknown id so a partial fetch cannot pass as complete
- move query synonyms and page intent aliases to data/lexicon.json and
  enforce alias/page correspondence in --check; curation data no longer
  lives in the engine
- document the weak-hit rule, batch fetch and prelude-once guidance in
  SKILL.md, with curation discipline in data/README.md
- drop 11_pitfalls.md, renumber the trailing pages and spread retrieval
  tags across topics; lexicon keys are page filenames, so the renumbering
  and the new --check rule cannot land in separate commits
2026-07-29 15:45:47 +08:00
ci[bot] 37a3bf4b0c 📦 deps(skills): sync thirdparty skills 2026-07-22 10:10:01 +00:00
csh 31bcd80d3f 🗑️ remove(superpowers): delete obsolete plans and specs 2026-07-22 17:45:43 +08:00
csh ef1ea20f62 🗑️ remove(templates): drop unsupported Gitea CI templates 2026-07-22 17:43:47 +08:00
csh 67cab60a9f 🗑️ remove(skills): retire unsupported skill entries 2026-07-22 17:41:37 +08:00
csh 736663a0b0 🐛 fix(thirdparty): expose main in mirror fixture 2026-07-22 17:31:55 +08:00
csh 09314a2bdb 📝 docs(tsl-api-reference): localize skill guidance 2026-07-22 17:30:00 +08:00
csh 3117ca5ae4 feat(gitea-fix-ci): add authenticated log collector 2026-07-22 17:28:22 +08:00
csh 38ea8caaeb feat(commit-message): bundle policy and validator 2026-07-22 17:26:20 +08:00
csh d83707de23 🔧 chore(workflows): migrate to prepare + worktree model and merge checks
- add prepare.yml: install tools + maintain shared bare repo, anchors the workflow_run chain
- add checks.yml: merge lint + full test suite into a single workflow_run consumer job
- remove standards-check.yml and test.yml (superseded by checks.yml)
- convert sync-tsl-playbook and update-thirdparty-skills to worktree-model consumers
- unify workflow/job/step display names and emoji
2026-07-21 17:29:24 +08:00
csh 49e6dadc60 🔧 chore(repo): ignore local agent instructions 2026-07-20 09:08:40 +08:00
csh 1f19954dd7 ♻️ refactor(tsl-api-reference): reorganize function reference pages
Move runtime and document pages into their correct scope, remove obsolete pending entries, and regenerate the function index.\nUpdate agent test guidance and API skill routing to match the new reference layout.
2026-07-20 09:08:38 +08:00
csh c69278283f feat(tsl-codegen): add decoupled documentation toolkit
Generate TSL API Markdown from YAML or JSON into a configurable project scope.\nAdd file and directory lint modes, tags-aware indexing, and keyword search across tags and descriptions.\nBundle the toolkit through the playbook build and sync workflows.
2026-07-20 09:08:38 +08:00
csh 1d5304e7b6 🔧 chore(cpp): align conventions and formatter config 2026-07-20 09:08:37 +08:00
csh 502e1321c1 🐛 fix(style-cleanup): preserve scope and git state 2026-07-20 09:08:37 +08:00
csh 034b562e70 🐛 fix(commit-message): resolve policy and staged boundaries 2026-07-20 09:08:37 +08:00
csh fd63164328 🔧 chore(ci): inline skill sync and standardize git identity 2026-07-20 09:08:36 +08:00
csh ff07c79818 ♻️ refactor(test): consolidate repository checks 2026-07-20 09:08:36 +08:00
ci[bot] 10ce779b1b 📦 deps(skills): sync thirdparty skills 2026-07-18 00:03:08 +00:00
ci[bot] c9f2cfa29d 📦 deps(skills): sync thirdparty skills 2026-07-13 16:04:15 +00:00
cshandClaude Fable 5 bb8bc6dff9 ♻️ refactor(tsl): decouple skill routing from static docs
删除静态文档中对 tsl-syntax-reference / tsl-api-reference 的导航路由,
改由运行时按需自动触发;语法/API 事实的所有权与 fail-closed 约束
只保留在 rulesets/tsl/index.md 这一唯一权威载体。

- docs/tsl/index.md:删 4 行 skill 路由及重复的所有权/fail-closed 段,回归纯分流
- docs/tsl/modules/index.md:删 API 路由及指向已删 syntax 的 3 处回跳
- docs/index.md:删 skill 导航行及 2 条指向不存在文件的死 catalog 链
- docs/tsl/syntax/index.md:删除旧路径兼容 stub,不再保留任何兼容
- rulesets/tsl/index.md:删首跳 2 条 skill 导航,保留事实边界与 Fail closed
- 同步修正相关测试断言

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-13 15:26:25 +08:00
cshandClaude Fable 5 3efd9abc11 🐛 fix(test): pin REPO_DIR in sync integration test env
run_sync copied os.environ but never set REPO_DIR. In CI, test.yml
exports REPO_DIR (the real checkout) via GITHUB_ENV, so the inherited
value made the sync operate on the real CI checkout instead of the temp
fixture, deleting dirs later tests need. Pin REPO_DIR to the passed repo
and add a regression test proving an inherited REPO_DIR does not leak.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-13 11:23:06 +08:00
cshandClaude Fable 5 265c891e19 🐛 fix(ci): allow kebab-case commit scopes
The scope regex only accepted [a-z0-9_], rejecting hyphenated scopes
like tsl-syntax that dominate the history (12x vs 4x underscore form).
Align both linter copies and the spec doc to accept lower-kebab-case.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-13 11:22:50 +08:00
csh df8c402afb 🔧 chore(ci): scope tsl playbook sync paths 2026-07-13 10:29:23 +08:00
csh a32dd5dd3c 📝 docs(ci): plan scoped tsl playbook sync 2026-07-13 10:12:36 +08:00
csh 9fc823d893 📝 docs(ci): design scoped tsl playbook sync 2026-07-13 09:56:25 +08:00
csh e7110bd3b1 🗑️ remove(tsl_syntax): drop platform-specific agent metadata 2026-07-13 09:17:01 +08:00