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.
- package/README.md +150 -0
- package/agents/coordinator.md +13 -0
- package/agents/explorer.md +21 -0
- package/agents/implement.md +23 -0
- package/agents/main.md +25 -0
- package/agents/review.md +21 -0
- package/dist/backend.js +595 -0
- package/dist/cli.js +101 -0
- package/dist/config.js +155 -0
- package/dist/diff.js +45 -0
- package/dist/domain/agent.js +1 -0
- package/dist/fetch.js +110 -0
- package/dist/infra/file-snapshot.js +54 -0
- package/dist/infra/tools.js +1300 -0
- package/dist/markdown.js +274 -0
- package/dist/model-config.js +48 -0
- package/dist/policy.js +80 -0
- package/dist/responses.js +81 -0
- package/dist/runtime/agent-registry.js +139 -0
- package/dist/runtime/agent-runtime.js +993 -0
- package/dist/runtime/agent-store.js +152 -0
- package/dist/runtime/locks.js +46 -0
- package/dist/runtime/session-timeline.js +92 -0
- package/dist/tools/index.js +4 -0
- package/dist/tools/registry.js +51 -0
- package/dist/tools/types.js +1 -0
- package/dist/ui/clipboard.js +24 -0
- package/dist/ui/commands.js +20 -0
- package/dist/ui/composer-layout.js +31 -0
- package/dist/ui/fullscreen-tui.js +1405 -0
- package/dist/ui/markdown.js +81 -0
- package/dist/ui/syntax.js +17 -0
- package/dist/ui/tui-design.js +94 -0
- package/dist/ui/welcome.js +24 -0
- package/dist/version.js +4 -0
- package/docs/architecture-revision.md +281 -0
- package/package.json +47 -0
- package/skills/debugging.md +18 -0
- package/skills/git-workflow.md +14 -0
- package/skills/node-express.md +27 -0
- package/skills/python-flask.md +22 -0
- package/skills/react-component.md +24 -0
- package/skills/sql-database.md +18 -0
- 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
|