@magic-ingredients/tiny-brain-local 0.11.0 → 0.12.2

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 (47) hide show
  1. package/dist/cli/cli-factory.d.ts.map +1 -1
  2. package/dist/cli/cli-factory.js +49 -0
  3. package/dist/cli/cli-factory.js.map +1 -1
  4. package/dist/cli/commands/track-commit.command.d.ts +40 -0
  5. package/dist/cli/commands/track-commit.command.d.ts.map +1 -0
  6. package/dist/cli/commands/track-commit.command.js +144 -0
  7. package/dist/cli/commands/track-commit.command.js.map +1 -0
  8. package/dist/prompts/planning/planning.prompt.js +41 -41
  9. package/dist/prompts/planning/planning.prompt.js.map +1 -1
  10. package/dist/services/agent-manager.d.ts.map +1 -1
  11. package/dist/services/agent-manager.js +5 -2
  12. package/dist/services/agent-manager.js.map +1 -1
  13. package/dist/services/analyse-service.d.ts +30 -0
  14. package/dist/services/analyse-service.d.ts.map +1 -1
  15. package/dist/services/analyse-service.js +176 -3
  16. package/dist/services/analyse-service.js.map +1 -1
  17. package/dist/services/repo-service.d.ts +26 -2
  18. package/dist/services/repo-service.d.ts.map +1 -1
  19. package/dist/services/repo-service.js +192 -8
  20. package/dist/services/repo-service.js.map +1 -1
  21. package/dist/tools/persona/as.tool.d.ts.map +1 -1
  22. package/dist/tools/persona/as.tool.js +11 -3
  23. package/dist/tools/persona/as.tool.js.map +1 -1
  24. package/dist/tools/plan/plan.tool.d.ts +2 -0
  25. package/dist/tools/plan/plan.tool.d.ts.map +1 -1
  26. package/dist/tools/plan/plan.tool.js +278 -71
  27. package/dist/tools/plan/plan.tool.js.map +1 -1
  28. package/dist/utils/package-version.d.ts +11 -0
  29. package/dist/utils/package-version.d.ts.map +1 -0
  30. package/dist/utils/package-version.js +26 -0
  31. package/dist/utils/package-version.js.map +1 -0
  32. package/package.json +4 -3
  33. package/templates/adr/0001-record-architecture-decisions.md +223 -0
  34. package/templates/adr/ADR_CREATION_INSTRUCTIONS.md +234 -0
  35. package/templates/adr/README.md +243 -0
  36. package/templates/adr/adr-schema.json +74 -0
  37. package/templates/adr/adr-template.md +136 -0
  38. package/templates/prd/PRD_CREATION_INSTRUCTIONS.md +268 -0
  39. package/templates/prd/README.md +252 -0
  40. package/templates/prd/_template/feature-template.md +105 -0
  41. package/templates/prd/_template/prd-template.md +126 -0
  42. package/templates/prd/example-task-management/features/task-collaboration.md +84 -0
  43. package/templates/prd/example-task-management/features/task-crud.md +222 -0
  44. package/templates/prd/example-task-management/features/task-workflow.md +62 -0
  45. package/templates/prd/example-task-management/prd.md +177 -0
  46. package/templates/prd/feature-schema.json +54 -0
  47. package/templates/prd/prd-schema.json +60 -0
@@ -0,0 +1,54 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "https://example.com/feature-schema.json",
4
+ "title": "PRD Feature",
5
+ "description": "Schema for validating feature YAML frontmatter",
6
+ "type": "object",
7
+ "required": ["id", "prd_id", "title", "status", "created", "updated"],
8
+ "properties": {
9
+ "id": {
10
+ "type": "string",
11
+ "pattern": "^[a-z0-9-]+$",
12
+ "minLength": 3,
13
+ "maxLength": 100,
14
+ "description": "Unique identifier in kebab-case"
15
+ },
16
+ "prd_id": {
17
+ "type": "string",
18
+ "pattern": "^[a-z0-9-]+$",
19
+ "description": "Reference to parent PRD ID"
20
+ },
21
+ "title": {
22
+ "type": "string",
23
+ "minLength": 5,
24
+ "maxLength": 200,
25
+ "description": "Human-readable title of the feature"
26
+ },
27
+ "status": {
28
+ "type": "string",
29
+ "enum": ["planned", "in_progress", "complete"],
30
+ "description": "Current status of the feature"
31
+ },
32
+ "created": {
33
+ "type": "string",
34
+ "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$",
35
+ "description": "Creation date in YYYY-MM-DD format"
36
+ },
37
+ "updated": {
38
+ "type": "string",
39
+ "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$",
40
+ "description": "Last update date in YYYY-MM-DD format"
41
+ }
42
+ },
43
+ "additionalProperties": false,
44
+ "examples": [
45
+ {
46
+ "id": "email-password-authentication",
47
+ "prd_id": "user-authentication-system",
48
+ "title": "Email and Password Authentication",
49
+ "status": "in_progress",
50
+ "created": "2025-01-15",
51
+ "updated": "2025-01-20"
52
+ }
53
+ ]
54
+ }
@@ -0,0 +1,60 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "https://example.com/prd-schema.json",
4
+ "title": "Product Requirements Document",
5
+ "description": "Schema for validating PRD YAML frontmatter",
6
+ "type": "object",
7
+ "required": ["id", "title", "version", "status", "created", "updated", "author"],
8
+ "properties": {
9
+ "id": {
10
+ "type": "string",
11
+ "pattern": "^[a-z0-9-]+$",
12
+ "minLength": 3,
13
+ "maxLength": 100,
14
+ "description": "Unique identifier in kebab-case"
15
+ },
16
+ "title": {
17
+ "type": "string",
18
+ "minLength": 5,
19
+ "maxLength": 200,
20
+ "description": "Human-readable title of the PRD"
21
+ },
22
+ "version": {
23
+ "type": "string",
24
+ "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$",
25
+ "description": "Semantic version (e.g., 1.0.0)"
26
+ },
27
+ "status": {
28
+ "type": "string",
29
+ "enum": ["not_started", "in_progress", "complete"],
30
+ "description": "Current status of the PRD"
31
+ },
32
+ "created": {
33
+ "type": "string",
34
+ "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$",
35
+ "description": "Creation date in YYYY-MM-DD format"
36
+ },
37
+ "updated": {
38
+ "type": "string",
39
+ "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$",
40
+ "description": "Last update date in YYYY-MM-DD format"
41
+ },
42
+ "author": {
43
+ "type": "string",
44
+ "minLength": 1,
45
+ "description": "Author or team name"
46
+ }
47
+ },
48
+ "additionalProperties": false,
49
+ "examples": [
50
+ {
51
+ "id": "user-authentication-system",
52
+ "title": "User Authentication System",
53
+ "version": "1.0.0",
54
+ "status": "in_progress",
55
+ "created": "2025-01-15",
56
+ "updated": "2025-01-20",
57
+ "author": "Product Team"
58
+ }
59
+ ]
60
+ }