thincoder 0.12.2 → 0.12.3
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/README.md +18 -5
- package/package.json +1 -1
- package/src/advisor/history.mjs +112 -0
- package/src/advisor/messages.mjs +182 -0
- package/src/advisor/repos.mjs +133 -0
- package/src/advisor/run.mjs +346 -0
- package/src/advisor.mjs +109 -509
- package/src/agent/completion.mjs +119 -0
- package/src/agent/dispatch.mjs +54 -7
- package/src/agent/post-turn.mjs +70 -0
- package/src/agent/setup.mjs +93 -5
- package/src/agent-tools/advisor.mjs +159 -12
- package/src/agent-tools/eng.mjs +64 -0
- package/src/agent-tools/subagent.mjs +73 -3
- package/src/agent-tools/task.mjs +45 -6
- package/src/agent-tools/verify.mjs +18 -0
- package/src/agent-tools.mjs +1 -0
- package/src/agent.mjs +110 -150
- package/src/cli/make-agent.mjs +1 -0
- package/src/cli/setup-wizard.mjs +1 -0
- package/src/config.mjs +22 -4
- package/src/prompts/advisor-design.md +43 -0
- package/src/prompts/advisor-round1.md +11 -4
- package/src/prompts/advisor-round2.md +12 -7
- package/src/prompts/advisor-round3.md +11 -6
- package/src/prompts/coder.md +9 -3
- package/src/prompts/discipline.md +12 -96
- package/src/prompts/eng-coder.md +34 -0
- package/src/prompts/engineering-sub.md +12 -0
- package/src/prompts/engineering.md +96 -0
- package/src/prompts/main.md +1 -1
- package/src/prompts/methodology-template.md +39 -0
- package/src/prompts/plan.md +2 -2
- package/src/prompts/system.md +43 -61
- package/src/session.mjs +270 -89
- package/src/skills.mjs +48 -15
- package/src/tools/apply_patch.md +1 -1
- package/src/tools/codemode.mjs +10 -4
- package/src/tools/delete.md +1 -0
- package/src/tools/edit.md +1 -1
- package/src/tools/execute.md +5 -0
- package/src/tools/file.mjs +4 -0
- package/src/tools/git.md +15 -0
- package/src/tools/git.mjs +1 -6
- package/src/tools/lint.md +8 -0
- package/src/tools/linter.mjs +1 -5
- package/src/tools/lsp.md +7 -0
- package/src/tools/lsp.mjs +8 -9
- package/src/tools/patch.mjs +1 -29
- package/src/tools/read_image.md +5 -1
- package/src/tools/system.mjs +1 -1
- package/src/tools/web.mjs +3 -3
- package/src/tui/agent-turn.mjs +169 -66
- package/src/tui/cmd-config.mjs +12 -0
- package/src/tui/cmd-eng.mjs +44 -0
- package/src/tui/cmd-exit.mjs +1 -1
- package/src/tui/cmd-fold.mjs +3 -4
- package/src/tui/cmd-model.mjs +11 -6
- package/src/tui/cmd-new.mjs +5 -5
- package/src/tui/cmd-session.mjs +21 -11
- package/src/tui/cmd-think.mjs +1 -0
- package/src/tui/index.mjs +7 -6
- package/src/tui/key-handler.mjs +132 -4
- package/src/tui/layout.mjs +5 -5
- package/src/tui/pickers.mjs +184 -44
- package/src/tui/render-conversation.mjs +49 -11
- package/src/tui/render-frame.mjs +38 -12
- package/src/tui/render-loop.mjs +2 -1
- package/src/tui/slash-commands.mjs +11 -7
- package/src/tui/startup.mjs +4 -3
- package/src/tui/wizard.mjs +3 -0
- package/src/tools/checkpoint.md +0 -15
- package/src/tools/git_diff.md +0 -11
- package/src/tools/git_log.md +0 -10
- package/src/tools/git_status.md +0 -8
- package/src/tools/linter.md +0 -13
- package/src/tools/syntax_check.md +0 -10
package/src/tools/git_status.md
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
Show structured git status. Use to understand the current working tree state: what files are staged, modified, untracked, or conflicting.
|
|
2
|
-
|
|
3
|
-
Returns categorized lists: staged, unstaged, untracked, conflicts.
|
|
4
|
-
|
|
5
|
-
Notes:
|
|
6
|
-
- Only works inside a git repository
|
|
7
|
-
- Output is categorized for easy parsing by the agent
|
|
8
|
-
- No side effects — read-only
|
package/src/tools/linter.md
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
Run the appropriate linter/checker for a file. Auto-detects based on file extension and project config.
|
|
2
|
-
|
|
3
|
-
Parameters:
|
|
4
|
-
- path (optional): File to check (default: most recently modified file)
|
|
5
|
-
|
|
6
|
-
Supported languages:
|
|
7
|
-
- .js/.mjs/.cjs/.jsx: eslint (if config present) → node --check (built-in, always available)
|
|
8
|
-
- .ts/.tsx/.mts/.cts: eslint → tsc --noEmit (if tsconfig.json present) → node --check
|
|
9
|
-
- .py: ruff (if installed)
|
|
10
|
-
- .rs: cargo check (if Cargo.toml present)
|
|
11
|
-
- .go: go vet
|
|
12
|
-
|
|
13
|
-
Does NOT install anything — only uses tools already available in the project.
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
Check a JavaScript file for syntax errors using `node --check`. Fast, offline, no dependencies — use after writing or editing .js/.mjs/.cjs files to catch parse errors before running tests.
|
|
2
|
-
|
|
3
|
-
Parameters:
|
|
4
|
-
- path (required): File path (.js, .mjs, or .cjs)
|
|
5
|
-
|
|
6
|
-
Notes:
|
|
7
|
-
- Only supports JavaScript-family files; for other languages, run the appropriate checker via `bash`.
|
|
8
|
-
- Returns "Syntax OK" or the exact error message with line/column from Node.js.
|
|
9
|
-
- This is NOT a test run — it only catches parse errors (missing brackets, invalid syntax), not logic bugs.
|
|
10
|
-
- Use this right after `write` or `edit` to fail fast on trivial mistakes before investing time in a full test run.
|