@magic-ingredients/tiny-brain-local 0.21.1 → 0.21.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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"repo-service.d.ts","sourceRoot":"","sources":["../../src/services/repo-service.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAIlE,MAAM,WAAW,4BAA4B;IAC3C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED;;;;GAIG;AACH,qBAAa,WAAW;IAMV,OAAO,CAAC,OAAO;IAL3B,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,gBAAgB,CAA2B;IACnE,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,cAAc,CAAyB;IAE/D,OAAO,CAAC,aAAa,CAAgB;gBAEjB,OAAO,EAAE,cAAc;IAS3C;;;OAGG;IACH,OAAO,CAAC,iBAAiB;IAQzB;;OAEG;IACG,4BAA4B,CAChC,eAAe,GAAE,MAAoB,GACpC,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;IAmCzB;;;;OAIG;IACH,uBAAuB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI;IAOvD;;OAEG;IACH,cAAc,IAAI,OAAO;IAUzB;;;OAGG;IACG,uBAAuB,IAAI,OAAO,CAAC,OAAO,CAAC;IAcjD;;OAEG;IACH,kBAAkB,IAAI,MAAM;IAa5B;;;;;;;;OAQG;IACG,qBAAqB,CAAC,OAAO,GAAE,4BAAiC,GAAG,OAAO,CAAC,IAAI,CAAC;IAkGtF;;;OAGG;IACH,OAAO,CAAC,wBAAwB;IA6BhC;;OAEG;IACH,OAAO,CAAC,0BAA0B;IAgGlC;;OAEG;IACH,OAAO,CAAC,wBAAwB;
|
|
1
|
+
{"version":3,"file":"repo-service.d.ts","sourceRoot":"","sources":["../../src/services/repo-service.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAIlE,MAAM,WAAW,4BAA4B;IAC3C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED;;;;GAIG;AACH,qBAAa,WAAW;IAMV,OAAO,CAAC,OAAO;IAL3B,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,gBAAgB,CAA2B;IACnE,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,cAAc,CAAyB;IAE/D,OAAO,CAAC,aAAa,CAAgB;gBAEjB,OAAO,EAAE,cAAc;IAS3C;;;OAGG;IACH,OAAO,CAAC,iBAAiB;IAQzB;;OAEG;IACG,4BAA4B,CAChC,eAAe,GAAE,MAAoB,GACpC,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;IAmCzB;;;;OAIG;IACH,uBAAuB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI;IAOvD;;OAEG;IACH,cAAc,IAAI,OAAO;IAUzB;;;OAGG;IACG,uBAAuB,IAAI,OAAO,CAAC,OAAO,CAAC;IAcjD;;OAEG;IACH,kBAAkB,IAAI,MAAM;IAa5B;;;;;;;;OAQG;IACG,qBAAqB,CAAC,OAAO,GAAE,4BAAiC,GAAG,OAAO,CAAC,IAAI,CAAC;IAkGtF;;;OAGG;IACH,OAAO,CAAC,wBAAwB;IA6BhC;;OAEG;IACH,OAAO,CAAC,0BAA0B;IAgGlC;;OAEG;IACH,OAAO,CAAC,wBAAwB;IA0ChC;;OAEG;IACH,OAAO,CAAC,6BAA6B;IAiErC;;OAEG;IACH,OAAO,CAAC,0BAA0B;IA6BlC;;OAEG;IACH,OAAO,CAAC,gCAAgC;CAyCzC"}
|
|
@@ -266,7 +266,7 @@ Only skip delegation for trivial tasks (single-line fixes, config changes).
|
|
|
266
266
|
**BEFORE EVERY COMMIT**, check if you're working on tracked work:
|
|
267
267
|
|
|
268
268
|
1. **Active PRDs?** Check \`.tiny-brain/progress/\` for \`in_progress\` status
|
|
269
|
-
2. **Open Fixes?** Check \`.tiny-brain/fixes/progress.json\` for \`
|
|
269
|
+
2. **Open Fixes?** Check \`.tiny-brain/fixes/progress.json\` for \`not_started\` or \`in_progress\` status
|
|
270
270
|
|
|
271
271
|
**If YES, you MUST include tracking headers or the commit will be REJECTED.**
|
|
272
272
|
|
|
@@ -305,7 +305,7 @@ Description of changes...
|
|
|
305
305
|
|
|
306
306
|
### Fix Status Workflow
|
|
307
307
|
|
|
308
|
-
Fix documents have
|
|
308
|
+
Fix documents have four statuses: \`not_started\` → \`in_progress\` → \`completed\` | \`superseded\`
|
|
309
309
|
|
|
310
310
|
**When starting work on a fix:**
|
|
311
311
|
1. Open the fix file: \`.tiny-brain/fixes/{fix-id}.md\`
|
|
@@ -329,12 +329,12 @@ Fix documents have three statuses: \`documented\` → \`in_progress\` → \`reso
|
|
|
329
329
|
4. Run: \`npx tiny-brain sync-progress .tiny-brain/fixes/{fix-id}.md\`
|
|
330
330
|
|
|
331
331
|
**When all tasks are complete:**
|
|
332
|
-
1. **ONLY set \`status:
|
|
332
|
+
1. **ONLY set \`status: completed\`** when ALL tasks are accounted for:
|
|
333
333
|
- 100% of tasks must have either \`status: completed\` (with commitSha) or \`status: superseded\`
|
|
334
|
-
- Example: A fix with 5 tasks could be: 3 completed + 2 superseded =
|
|
334
|
+
- Example: A fix with 5 tasks could be: 3 completed + 2 superseded = completed
|
|
335
335
|
- A fix with incomplete tasks stays \`in_progress\`
|
|
336
336
|
2. Update YAML frontmatter:
|
|
337
|
-
- Set \`status:
|
|
337
|
+
- Set \`status: completed\`
|
|
338
338
|
- Set \`resolved: YYYY-MM-DDTHH:mm:ss.sssZ\` (ISO timestamp)
|
|
339
339
|
- Add \`resolution\` object:
|
|
340
340
|
\`\`\`yaml
|
|
@@ -365,37 +365,35 @@ IMPORTANT: This repository follows strict Test-Driven Development (TDD) with a 3
|
|
|
365
365
|
|
|
366
366
|
1. **Red Phase** (\`test:\` or \`test(scope):\` commits):
|
|
367
367
|
- **CRITICAL — you MUST run before writing tests:**
|
|
368
|
-
\`npx tiny-brain
|
|
368
|
+
\`npx tiny-brain task-start --task '...' [--fix ID | --prd ID --feature ID]\`
|
|
369
369
|
- Write failing tests first
|
|
370
370
|
- Tests SHOULD fail (that's the point!)
|
|
371
371
|
- Use: \`git commit -m "test: ..."\` or \`git commit -m "test(api): ..."\`
|
|
372
372
|
- Git hook automatically runs typecheck + lint but SKIPS tests
|
|
373
373
|
- Tracked in: \`testCommitSha\` field
|
|
374
|
-
- **After commit:** post-commit hook automatically transitions to \`green:start\`
|
|
375
374
|
|
|
376
375
|
2. **Green Phase** (\`feat:\` or \`feat(scope):\` commits):
|
|
377
|
-
- Phase
|
|
376
|
+
- Phase is derived automatically from commit SHAs (no manual step needed)
|
|
378
377
|
- Implement minimum code to make tests pass
|
|
379
378
|
- Use: \`git commit -m "feat: ..."\` or \`git commit -m "feat(auth): ..."\`
|
|
380
379
|
- Git hook automatically runs full checks (typecheck + lint + test)
|
|
381
380
|
- Tracked in: \`commitSha\` field
|
|
382
|
-
- **
|
|
383
|
-
- **After commit:** adversarial review hook sets \`adversarial:start\` and outputs review instructions
|
|
381
|
+
- **After commit:** adversarial review starts automatically
|
|
384
382
|
|
|
385
383
|
3. **Refactor Phase** (\`refactor:\` or \`refactor(scope):\` commits - optional):
|
|
386
384
|
- Triggered by adversarial review suggestions
|
|
387
385
|
- Improve code quality without changing behavior
|
|
388
386
|
- Use: \`git commit -m "refactor: ..."\` or \`git commit -m "refactor(plan): ..."\`
|
|
389
387
|
- Git hook automatically runs full checks (typecheck + lint + test)
|
|
390
|
-
- **After commit:** post-commit hook automatically
|
|
388
|
+
- **After commit:** post-commit hook automatically records refactor completion
|
|
391
389
|
|
|
392
390
|
4. **Progress Commit** (end of cycle):
|
|
393
391
|
- After the full RED→GREEN→REFACTOR cycle is complete
|
|
394
392
|
- Run: \`npx tiny-brain commit-progress\`
|
|
395
393
|
|
|
396
|
-
**What you must do manually:** Only \`
|
|
394
|
+
**What you must do manually:** Only \`task-start\` before writing tests. Everything else is automated by hooks.
|
|
397
395
|
|
|
398
|
-
**What you must NOT do:** Do not manually
|
|
396
|
+
**What you must NOT do:** Do not manually manage phase transitions — they are derived from commit SHAs.
|
|
399
397
|
|
|
400
398
|
`;
|
|
401
399
|
}
|
|
@@ -758,7 +758,7 @@ export class PlanTool {
|
|
|
758
758
|
});
|
|
759
759
|
// Filter by actual plan status if we're looking for completed plans
|
|
760
760
|
const plans = status === 'completed'
|
|
761
|
-
? allPlans.filter(plan => plan.status === '
|
|
761
|
+
? allPlans.filter(plan => plan.status === 'completed')
|
|
762
762
|
: allPlans;
|
|
763
763
|
if (plans.length === 0) {
|
|
764
764
|
return createSuccessResult(`No ${status} plans found in repository.`);
|
|
@@ -773,7 +773,7 @@ export class PlanTool {
|
|
|
773
773
|
lines.push('Available plans:');
|
|
774
774
|
lines.push('');
|
|
775
775
|
for (const plan of plans) {
|
|
776
|
-
const statusEmoji = plan.type === 'active' ? '🟢' : plan.status === '
|
|
776
|
+
const statusEmoji = plan.type === 'active' ? '🟢' : plan.status === 'completed' ? '✅' : '📦';
|
|
777
777
|
lines.push(`${statusEmoji} **${plan.title}** (${plan.id})`);
|
|
778
778
|
lines.push(` Progress: ${plan.currentState.overallProgress.percentComplete}% - ${plan.currentState.overallProgress.completedFeatures}/${plan.features?.length || 0} features, ${plan.currentState.overallProgress.completedTasks}/${plan.currentState.overallProgress.totalTasks} tasks`);
|
|
779
779
|
lines.push(` Last updated: ${new Date(plan.lastUpdated).toLocaleDateString()}`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@magic-ingredients/tiny-brain-local",
|
|
3
|
-
"version": "0.21.
|
|
3
|
+
"version": "0.21.3",
|
|
4
4
|
"description": "MCP server for Tiny Brain AI assistant",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"dxt:init": "cd dxt && dxt init"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@magic-ingredients/tiny-brain-core": "^0.21.
|
|
34
|
+
"@magic-ingredients/tiny-brain-core": "^0.21.3",
|
|
35
35
|
"@magic-ingredients/tiny-brain-dashboard": "file:../tiny-brain-dashboard",
|
|
36
36
|
"@modelcontextprotocol/sdk": "^1.0.6",
|
|
37
37
|
"chalk": "^5.3.0",
|