tokenmaw 0.3.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.
Files changed (44) hide show
  1. package/README.md +150 -0
  2. package/agents/coordinator.md +13 -0
  3. package/agents/explorer.md +21 -0
  4. package/agents/implement.md +23 -0
  5. package/agents/main.md +25 -0
  6. package/agents/review.md +21 -0
  7. package/dist/backend.js +595 -0
  8. package/dist/cli.js +101 -0
  9. package/dist/config.js +155 -0
  10. package/dist/diff.js +45 -0
  11. package/dist/domain/agent.js +1 -0
  12. package/dist/fetch.js +110 -0
  13. package/dist/infra/file-snapshot.js +54 -0
  14. package/dist/infra/tools.js +1300 -0
  15. package/dist/markdown.js +274 -0
  16. package/dist/model-config.js +48 -0
  17. package/dist/policy.js +80 -0
  18. package/dist/responses.js +81 -0
  19. package/dist/runtime/agent-registry.js +139 -0
  20. package/dist/runtime/agent-runtime.js +993 -0
  21. package/dist/runtime/agent-store.js +152 -0
  22. package/dist/runtime/locks.js +46 -0
  23. package/dist/runtime/session-timeline.js +92 -0
  24. package/dist/tools/index.js +4 -0
  25. package/dist/tools/registry.js +51 -0
  26. package/dist/tools/types.js +1 -0
  27. package/dist/ui/clipboard.js +24 -0
  28. package/dist/ui/commands.js +20 -0
  29. package/dist/ui/composer-layout.js +31 -0
  30. package/dist/ui/fullscreen-tui.js +1405 -0
  31. package/dist/ui/markdown.js +81 -0
  32. package/dist/ui/syntax.js +17 -0
  33. package/dist/ui/tui-design.js +94 -0
  34. package/dist/ui/welcome.js +24 -0
  35. package/dist/version.js +4 -0
  36. package/docs/architecture-revision.md +281 -0
  37. package/package.json +47 -0
  38. package/skills/debugging.md +18 -0
  39. package/skills/git-workflow.md +14 -0
  40. package/skills/node-express.md +27 -0
  41. package/skills/python-flask.md +22 -0
  42. package/skills/react-component.md +24 -0
  43. package/skills/sql-database.md +18 -0
  44. package/skills/testing.md +12 -0
@@ -0,0 +1,18 @@
1
+ # SQL Database Skill
2
+
3
+ Use this skill when working with SQL databases and ORMs.
4
+
5
+ ## Guidelines
6
+ - Always use parameterized queries — never interpolate user input into SQL
7
+ - Use migrations for schema changes, never manual ALTER statements
8
+ - Test migrations up AND down (rollback)
9
+ - Index columns used in WHERE, JOIN, and ORDER BY
10
+ - Use transactions for multi-step operations
11
+ - Keep queries in separate files or a dedicated queries module
12
+ - Use connection pooling in production
13
+
14
+ ## ORM conventions
15
+ - Define model schemas with explicit column types
16
+ - Add created_at / updated_at timestamps
17
+ - Use soft deletes (deleted_at) when audit trail is needed
18
+ - Keep business logic in services, not models
@@ -0,0 +1,12 @@
1
+ # Testing Skill
2
+
3
+ Use this skill when writing or fixing tests.
4
+
5
+ ## Guidelines
6
+ - Use the project's existing test framework (detect from package.json or config files)
7
+ - Name test files `*.test.ts` or `*_test.py` matching the source file
8
+ - Test one behavior per test case
9
+ - Use descriptive test names
10
+ - Mock external dependencies
11
+ - Test edge cases: empty, null, boundary values, error conditions
12
+ - Run full test suite after writing tests to confirm nothing breaks