@matheuskrumenauer/tanya 0.11.0-beta.0 → 0.13.0-beta.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/README.md +25 -20
- package/dist/cli.js +820 -643
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -296,26 +296,6 @@ up to `TANYA_ESCALATION_CAP` per session.
|
|
|
296
296
|
See [docs/routing.md](./docs/routing.md) for schema, examples, context-window
|
|
297
297
|
guards, per-tool model overrides, and sub-agent model pins.
|
|
298
298
|
|
|
299
|
-
## Reasoning models
|
|
300
|
-
|
|
301
|
-
Reasoning routes such as `deepseek-reasoner`, `qwen3-thinking-*`, and
|
|
302
|
-
`grok-3-reasoning` are handled as a separate stream. Tanya archives reasoning to
|
|
303
|
-
`.tania/runs/<runId>/reasoning.jsonl`, emits `reasoning_chunk` events, and keeps
|
|
304
|
-
assistant history reasoning-free so replay and verifier inputs stay stable.
|
|
305
|
-
|
|
306
|
-
Reasoning tokens appear separately in `/cost` and `/budget`. Route rules can set
|
|
307
|
-
`reasoningCap.maxTokens`; built-in defaults are 2k for planning-like turns and
|
|
308
|
-
8k for synthesis/verification/reasoning turns. If the cap is exceeded, Tanya
|
|
309
|
-
emits `reasoning_truncated` and asks the model to finish.
|
|
310
|
-
|
|
311
|
-
Use `/memory --reasoning <runId>` to inspect archived reasoning. Use
|
|
312
|
-
`TANYA_HIDE_REASONING=1` to hide reasoning from the human UI while preserving
|
|
313
|
-
JSONL/Cosmo events. Verifier reasoning annotations are off by default; enable
|
|
314
|
-
them with `--verbose-verifier` or `TANYA_VERIFIER_INCLUDE_REASONING=1`.
|
|
315
|
-
|
|
316
|
-
See [docs/reasoning.md](./docs/reasoning.md) for provider notes, billing math,
|
|
317
|
-
budget defaults, and UX modes.
|
|
318
|
-
|
|
319
299
|
`--verify` adds required verification commands to the run context. Tanya must run and report each exact command before finishing the coding task.
|
|
320
300
|
|
|
321
301
|
`tanya benchmark run --all` currently exercises 27 executable low-to-medium regression fixtures: targeted edits, new files, dependency/lockfile updates, framework-style migrations, failing-test repair, frontend smoke checks, artifact/context reuse, streaming long-tool execution, compaction-boundary recovery, run-history logging, dirty worktrees, report repair, and the CosmoHQ mobile/backend smoke profiles.
|
|
@@ -381,6 +361,30 @@ Tanya trims model-visible tokens while keeping state reversible and auditable.
|
|
|
381
361
|
|
|
382
362
|
See [docs/token-economy.md](./docs/token-economy.md) for the full model, cache locations, and tool-definition knobs.
|
|
383
363
|
|
|
364
|
+
## Structural repo-map
|
|
365
|
+
|
|
366
|
+
Lite prompts can include a generated structural map from
|
|
367
|
+
`.tania/index/repo-map.json`. The map lists workspace-relative files, language,
|
|
368
|
+
parser provenance, top-level symbols, imports, and exports so cheap providers
|
|
369
|
+
can target likely files before spending turns on blind reads.
|
|
370
|
+
|
|
371
|
+
Tanya indexes TypeScript/JavaScript, Python, Go, Swift, and Kotlin with a
|
|
372
|
+
lightweight ripgrep-style parser and falls back to path-only entries when file
|
|
373
|
+
content cannot be read. Generated, binary, ignored, and oversized files are
|
|
374
|
+
skipped. The repo-map is advisory context only: agents must still read files
|
|
375
|
+
before editing, and the verifier remains the final authority.
|
|
376
|
+
|
|
377
|
+
Use `TANYA_LITE_PROMPT=1` to inject a ranked repo-map excerpt. Tune the default
|
|
378
|
+
1000-token section budget with `TANYA_REPO_MAP_PROMPT_BUDGET`; the legacy
|
|
379
|
+
`TANIA_*` alias is also accepted. If the prompt budget is tight, the repo-map
|
|
380
|
+
drops before skill packs because it is generated and recoverable.
|
|
381
|
+
|
|
382
|
+
Use `inspect_repo_map` when the model needs more structural detail by file,
|
|
383
|
+
symbol, or language without burning prompt tokens on the whole map.
|
|
384
|
+
|
|
385
|
+
See [docs/repo-map.md](./docs/repo-map.md) for schema, parser status, ranking,
|
|
386
|
+
budget interaction, and cache invalidation.
|
|
387
|
+
|
|
384
388
|
Context files are generic JSON envelopes for caller-supplied task metadata, artifacts, instructions, and verification commands.
|
|
385
389
|
|
|
386
390
|
## Current Tools
|
|
@@ -388,6 +392,7 @@ Context files are generic JSON envelopes for caller-supplied task metadata, arti
|
|
|
388
392
|
- `list_files`
|
|
389
393
|
- `read_file`
|
|
390
394
|
- `search`
|
|
395
|
+
- `inspect_repo_map`
|
|
391
396
|
- `inspect_project_context`
|
|
392
397
|
- `find_reusable_artifacts`
|
|
393
398
|
- `build_task_brief`
|