@nomad-e/bluma-cli 0.26.1 → 2026.27.0-darwin-arm64

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 (117) hide show
  1. package/LICENSE +189 -70
  2. package/README.md +2 -162
  3. package/THIRD-PARTY-NOTICES.txt +46201 -0
  4. package/bin/bluma-core +0 -0
  5. package/package.json +24 -124
  6. package/third-party/option-ext/.cargo_vcs_info.json +6 -0
  7. package/third-party/option-ext/Cargo.toml +22 -0
  8. package/third-party/option-ext/LICENSE.txt +373 -0
  9. package/third-party/option-ext/README.md +67 -0
  10. package/third-party/option-ext/src/impl.rs +20 -0
  11. package/third-party/option-ext/src/lib.rs +71 -0
  12. package/assets/bg.png +0 -0
  13. package/assets/bg1.png +0 -0
  14. package/assets/bluma.png +0 -0
  15. package/assets/image.png +0 -0
  16. package/dist/assets/bg.png +0 -0
  17. package/dist/assets/bg1.png +0 -0
  18. package/dist/assets/bluma.png +0 -0
  19. package/dist/assets/image.png +0 -0
  20. package/dist/config/native_tools.json +0 -1151
  21. package/dist/config/plan_mode_instructions.md +0 -218
  22. package/dist/config/skills/factorai-sh/SKILL.md +0 -98
  23. package/dist/config/skills/git-commit/LICENSE.txt +0 -18
  24. package/dist/config/skills/git-commit/SKILL.md +0 -300
  25. package/dist/config/skills/git-commit/references/REFERENCE.md +0 -253
  26. package/dist/config/skills/git-commit/scripts/validate_commit_msg.py +0 -163
  27. package/dist/config/skills/git-pr/LICENSE.txt +0 -18
  28. package/dist/config/skills/git-pr/SKILL.md +0 -293
  29. package/dist/config/skills/git-pr/references/REFERENCE.md +0 -256
  30. package/dist/config/skills/git-pr/scripts/validate_commits.py +0 -120
  31. package/dist/config/skills/git-release/LICENSE.txt +0 -18
  32. package/dist/config/skills/git-release/SKILL.md +0 -408
  33. package/dist/config/skills/pdf/LICENSE.txt +0 -26
  34. package/dist/config/skills/pdf/SKILL.md +0 -736
  35. package/dist/config/skills/pdf/references/DOCUMENT_TYPES.md +0 -59
  36. package/dist/config/skills/pdf/references/FORMS.md +0 -69
  37. package/dist/config/skills/pdf/references/REFERENCE.md +0 -52
  38. package/dist/config/skills/pdf/scripts/__pycache__/create_report.cpython-312.pyc +0 -0
  39. package/dist/config/skills/pdf/scripts/create_report.py +0 -936
  40. package/dist/config/skills/pdf/scripts/merge_pdfs.py +0 -48
  41. package/dist/config/skills/skill-creator/LICENSE.txt +0 -26
  42. package/dist/config/skills/skill-creator/SKILL.md +0 -229
  43. package/dist/config/skills/xlsx/LICENSE.txt +0 -18
  44. package/dist/config/skills/xlsx/SKILL.md +0 -340
  45. package/dist/config/skills/xlsx/references/REFERENCE.md +0 -337
  46. package/dist/config/skills/xlsx/scripts/office/__init__.py +0 -2
  47. package/dist/config/skills/xlsx/scripts/office/pack.py +0 -58
  48. package/dist/config/skills/xlsx/scripts/office/soffice.py +0 -180
  49. package/dist/config/skills/xlsx/scripts/office/unpack.py +0 -63
  50. package/dist/config/skills/xlsx/scripts/office/validate.py +0 -122
  51. package/dist/config/skills/xlsx/scripts/recalc.py +0 -152
  52. package/dist/main.js +0 -47918
  53. package/dist/native/bluma-clipboard.linux-x64-gnu.node +0 -0
  54. package/dist/native/index.d.ts +0 -38
  55. package/dist/native/index.js +0 -319
  56. package/dist/native/package.json +0 -38
  57. package/dist/scaffold/.eslintrc.json +0 -3
  58. package/dist/scaffold/app/globals.css +0 -46
  59. package/dist/scaffold/app/layout.tsx +0 -19
  60. package/dist/scaffold/app/page.tsx +0 -124
  61. package/dist/scaffold/components/ui/README.md +0 -12
  62. package/dist/scaffold/components/ui/accordion.jsx +0 -42
  63. package/dist/scaffold/components/ui/alert-dialog.jsx +0 -80
  64. package/dist/scaffold/components/ui/alert.jsx +0 -33
  65. package/dist/scaffold/components/ui/aspect-ratio.jsx +0 -5
  66. package/dist/scaffold/components/ui/avatar.jsx +0 -28
  67. package/dist/scaffold/components/ui/badge.jsx +0 -24
  68. package/dist/scaffold/components/ui/breadcrumb.jsx +0 -72
  69. package/dist/scaffold/components/ui/button.jsx +0 -40
  70. package/dist/scaffold/components/ui/calendar.jsx +0 -56
  71. package/dist/scaffold/components/ui/card.jsx +0 -38
  72. package/dist/scaffold/components/ui/carousel.jsx +0 -168
  73. package/dist/scaffold/components/ui/chart.jsx +0 -76
  74. package/dist/scaffold/components/ui/checkbox.jsx +0 -22
  75. package/dist/scaffold/components/ui/collapsible.jsx +0 -7
  76. package/dist/scaffold/components/ui/command.jsx +0 -100
  77. package/dist/scaffold/components/ui/context-menu.jsx +0 -137
  78. package/dist/scaffold/components/ui/dialog.jsx +0 -72
  79. package/dist/scaffold/components/ui/drawer.jsx +0 -68
  80. package/dist/scaffold/components/ui/dropdown-menu.jsx +0 -143
  81. package/dist/scaffold/components/ui/form.jsx +0 -88
  82. package/dist/scaffold/components/ui/hover-card.jsx +0 -22
  83. package/dist/scaffold/components/ui/input-otp.jsx +0 -49
  84. package/dist/scaffold/components/ui/input.jsx +0 -19
  85. package/dist/scaffold/components/ui/label.jsx +0 -15
  86. package/dist/scaffold/components/ui/menubar.jsx +0 -161
  87. package/dist/scaffold/components/ui/navigation-menu.jsx +0 -95
  88. package/dist/scaffold/components/ui/pagination.jsx +0 -77
  89. package/dist/scaffold/components/ui/popover.jsx +0 -25
  90. package/dist/scaffold/components/ui/progress.jsx +0 -19
  91. package/dist/scaffold/components/ui/radio-group.jsx +0 -29
  92. package/dist/scaffold/components/ui/resizable.jsx +0 -27
  93. package/dist/scaffold/components/ui/scroll-area.jsx +0 -31
  94. package/dist/scaffold/components/ui/select.jsx +0 -117
  95. package/dist/scaffold/components/ui/separator.jsx +0 -22
  96. package/dist/scaffold/components/ui/sheet.jsx +0 -81
  97. package/dist/scaffold/components/ui/skeleton.jsx +0 -7
  98. package/dist/scaffold/components/ui/slider.jsx +0 -19
  99. package/dist/scaffold/components/ui/sonner.jsx +0 -22
  100. package/dist/scaffold/components/ui/switch.jsx +0 -23
  101. package/dist/scaffold/components/ui/table.jsx +0 -61
  102. package/dist/scaffold/components/ui/tabs.jsx +0 -43
  103. package/dist/scaffold/components/ui/textarea.jsx +0 -18
  104. package/dist/scaffold/components/ui/toast.jsx +0 -85
  105. package/dist/scaffold/components/ui/toaster.jsx +0 -33
  106. package/dist/scaffold/components/ui/toggle-group.jsx +0 -41
  107. package/dist/scaffold/components/ui/toggle.jsx +0 -30
  108. package/dist/scaffold/components/ui/tooltip.jsx +0 -22
  109. package/dist/scaffold/hooks/use-toast.ts +0 -101
  110. package/dist/scaffold/lib/utils.ts +0 -6
  111. package/dist/scaffold/next.config.js +0 -5
  112. package/dist/scaffold/next.config.mjs +0 -15
  113. package/dist/scaffold/next.config.ts +0 -19
  114. package/dist/scaffold/package.json +0 -70
  115. package/dist/scaffold/postcss.config.js +0 -6
  116. package/dist/scaffold/tailwind.config.ts +0 -57
  117. package/dist/scaffold/tsconfig.json +0 -20
@@ -1,253 +0,0 @@
1
- # Git Commit — Advanced Patterns Reference
2
-
3
- ## Signed Commits (GPG / SSH)
4
-
5
- When the repository or organization requires signed commits:
6
-
7
- ```bash
8
- git commit -S -m "$(cat <<'EOF'
9
- feat(auth): add PKCE support for OAuth2
10
-
11
- <body>
12
-
13
- Generated-by: BluMa — Base Language Unit · Model Agent
14
- EOF
15
- )"
16
- ```
17
-
18
- Verify signature:
19
-
20
- ```bash
21
- git log --show-signature -1
22
- ```
23
-
24
- Note: BluMa should NOT configure GPG keys. If signing fails, inform the
25
- user that they need to set up `user.signingkey` in their git config.
26
-
27
- ## Co-authored Commits
28
-
29
- When the commit includes contributions from multiple people, add
30
- co-author trailers BEFORE the BluMa watermark:
31
-
32
- ```
33
- feat(ui): redesign settings page layout
34
-
35
- Implement the new card-based layout for the settings page as
36
- discussed in the design review.
37
-
38
- Co-authored-by: Maria Silva <maria@example.com>
39
- Co-authored-by: João Santos <joao@example.com>
40
-
41
- Generated-by: BluMa — Base Language Unit · Model Agent
42
- ```
43
-
44
- The BluMa watermark ALWAYS goes last.
45
-
46
- ## Monorepo Commit Conventions
47
-
48
- In monorepos, the scope should reflect the package path:
49
-
50
- ```
51
- feat(packages/auth): add session management
52
- fix(apps/web): correct routing for nested layouts
53
- chore(packages/shared-types): export AuthConfig interface
54
- ```
55
-
56
- For changes that span multiple packages, use the most specific common
57
- ancestor as scope:
58
-
59
- ```
60
- refactor(packages): standardize error handling across all packages
61
- ```
62
-
63
- If there is no common ancestor, use no scope and list affected packages
64
- in the body:
65
-
66
- ```
67
- chore: update TypeScript to v5.5 across all packages
68
-
69
- Affected packages:
70
- - packages/auth
71
- - packages/api
72
- - apps/web
73
- - apps/mobile
74
- ```
75
-
76
- ## Commit Message Templates by Type
77
-
78
- ### feat — New Feature
79
-
80
- ```
81
- feat(<scope>): <what the feature does>
82
-
83
- <Why this feature is needed. What problem it solves for users.
84
- Mention any design decisions or alternatives considered.>
85
-
86
- - <Implementation detail 1>
87
- - <Implementation detail 2>
88
-
89
- Closes #<issue>
90
-
91
- Generated-by: BluMa — Base Language Unit · Model Agent
92
- ```
93
-
94
- ### fix — Bug Fix
95
-
96
- ```
97
- fix(<scope>): <what was broken and how it's fixed>
98
-
99
- <Root cause analysis. What was happening, why, and how this
100
- commit prevents it from recurring.>
101
-
102
- Steps to reproduce (before fix):
103
- 1. <step>
104
- 2. <step>
105
- 3. <observe bug>
106
-
107
- Fixes #<issue>
108
-
109
- Generated-by: BluMa — Base Language Unit · Model Agent
110
- ```
111
-
112
- ### refactor — Code Restructuring
113
-
114
- ```
115
- refactor(<scope>): <what was restructured>
116
-
117
- <Why the refactoring was necessary. What becomes easier or
118
- cleaner as a result. Confirm no behavior change.>
119
-
120
- No functional changes. All existing tests pass unchanged.
121
-
122
- Generated-by: BluMa — Base Language Unit · Model Agent
123
- ```
124
-
125
- ### perf — Performance Improvement
126
-
127
- ```
128
- perf(<scope>): <what was optimized>
129
-
130
- <Before/after metrics if available. What bottleneck was
131
- identified and how it was resolved.>
132
-
133
- Benchmark results:
134
- - Before: <metric>
135
- - After: <metric>
136
- - Improvement: <percentage>
137
-
138
- Generated-by: BluMa — Base Language Unit · Model Agent
139
- ```
140
-
141
- ### security — Security Fix
142
-
143
- ```
144
- security(<scope>): <what vulnerability was addressed>
145
-
146
- <Nature of the vulnerability (without exposing exploit details).
147
- Severity level and impact assessment.>
148
-
149
- Severity: Critical / High / Medium / Low
150
- CVE: <if applicable>
151
-
152
- Generated-by: BluMa — Base Language Unit · Model Agent
153
- ```
154
-
155
- ## Interactive Rebase Guidance
156
-
157
- BluMa should NEVER run `git rebase -i` automatically (it requires
158
- interactive input). Instead, suggest it to the user:
159
-
160
- ```
161
- I recommend squashing the last 3 commits before pushing.
162
- You can run:
163
-
164
- git rebase -i HEAD~3
165
-
166
- In the editor, change "pick" to "squash" (or "s") for the
167
- commits you want to combine. Keep the first one as "pick".
168
- ```
169
-
170
- ### When to Suggest Squashing
171
-
172
- - Multiple "WIP" or "fix typo" commits
173
- - Commits that undo then redo the same change
174
- - A series of small fixes that logically belong together
175
-
176
- ### When NOT to Suggest Squashing
177
-
178
- - Each commit represents a distinct, meaningful change
179
- - The commit history tells a useful story for reviewers
180
- - Different commits touch completely different areas
181
-
182
- ## Commit Hooks Awareness
183
-
184
- BluMa should be aware that repositories may have commit hooks:
185
-
186
- - **pre-commit**: Runs linters, formatters, tests before commit
187
- - **commit-msg**: Validates commit message format
188
- - **prepare-commit-msg**: Prepopulates commit message
189
-
190
- If a commit fails due to a hook:
191
-
192
- 1. Read the hook's error output carefully
193
- 2. Fix the issue (formatting, linting, etc.)
194
- 3. Stage the fixes with explicit `git add <path>` (never blanket `git add .` / `-A`)
195
- 4. Create a NEW commit (do NOT use --no-verify)
196
-
197
- BluMa should NEVER use `--no-verify` to bypass hooks unless the user
198
- explicitly requests it.
199
-
200
- ## Handling Large Changesets
201
-
202
- Never use `git add .`, `git add -A`, or `git add --all` to “split later” —
203
- split **before** staging, with explicit paths or `git add -p` (see the
204
- main skill: Staging Discipline).
205
-
206
- If the staged changes are too large for a single atomic commit:
207
-
208
- 1. Use `git add -p` guidance (suggest to the user, don't run interactively)
209
- 2. Break the work into logical stages
210
- 3. Commit each stage separately
211
-
212
- Suggested approach for the user:
213
-
214
- ```
215
- The staged changes touch 3 different concerns. I recommend
216
- splitting this into separate commits:
217
-
218
- 1. First, stage only the refactoring:
219
- git add src/utils/helpers.ts src/utils/format.ts
220
- git commit -m "refactor(utils): extract formatting helpers"
221
-
222
- 2. Then stage the new feature:
223
- git add src/features/export.ts src/features/export.test.ts
224
- git commit -m "feat(export): add CSV export for reports"
225
-
226
- 3. Finally, the documentation:
227
- git add docs/export.md README.md
228
- git commit -m "docs(export): add CSV export usage guide"
229
- ```
230
-
231
- ## Branch-Aware Commit Messages
232
-
233
- When committing on feature branches, the scope can optionally mirror
234
- the branch topic:
235
-
236
- ```
237
- Branch: feature/user-onboarding
238
- Commit: feat(onboarding): add email verification step
239
- ```
240
-
241
- For hotfix branches, always include urgency context:
242
-
243
- ```
244
- Branch: hotfix/auth-crash
245
- Commit: fix(auth): prevent null dereference on expired tokens
246
-
247
- This is a production hotfix. The null check was missing when
248
- the token cache returns undefined for expired entries.
249
-
250
- Fixes #789
251
-
252
- Generated-by: BluMa — Base Language Unit · Model Agent
253
- ```
@@ -1,163 +0,0 @@
1
- #!/usr/bin/env python3
2
- """
3
- Validate a commit message against Conventional Commits format
4
- and BluMa watermark requirements.
5
-
6
- Usage:
7
- python validate_commit_msg.py "<commit message>"
8
- python validate_commit_msg.py --last
9
- python validate_commit_msg.py --range main..HEAD
10
-
11
- Exit codes:
12
- 0 Message is valid
13
- 1 Message has issues
14
- """
15
-
16
- import subprocess
17
- import sys
18
- import re
19
-
20
- TYPES = {"feat", "fix", "refactor", "docs", "test", "perf", "style", "chore", "security", "revert"}
21
-
22
- SUBJECT_RE = re.compile(
23
- r'^(' + '|'.join(TYPES) + r')'
24
- r'(\([a-zA-Z0-9_/.-]+\))?'
25
- r'!?:\s'
26
- r'.{1,68}$'
27
- )
28
-
29
- WATERMARK = "Generated-by: BluMa"
30
-
31
-
32
- def validate_message(msg: str) -> list[str]:
33
- issues = []
34
- lines = msg.strip().split('\n')
35
-
36
- if not lines:
37
- return ["Empty commit message"]
38
-
39
- subject = lines[0].strip()
40
-
41
- if not SUBJECT_RE.match(subject):
42
- parts = subject.split(':', 1)
43
- if not parts or parts[0].split('(')[0] not in TYPES:
44
- issues.append(f"Invalid type prefix. Expected one of: {', '.join(sorted(TYPES))}")
45
- elif len(subject) > 72:
46
- issues.append(f"Subject too long ({len(subject)} chars, max 72)")
47
- else:
48
- issues.append(f"Subject format invalid: \"{subject}\"")
49
-
50
- if subject and subject[-1] == '.':
51
- issues.append("Subject should not end with a period")
52
-
53
- if subject and subject.split(': ', 1)[-1][:1].isupper():
54
- issues.append("Subject description should start with lowercase")
55
-
56
- if len(lines) > 1 and lines[1].strip() != '':
57
- issues.append("Missing blank line between subject and body")
58
-
59
- if WATERMARK not in msg:
60
- issues.append("Missing BluMa watermark trailer")
61
- else:
62
- last_non_empty = ''
63
- for line in reversed(lines):
64
- if line.strip():
65
- last_non_empty = line.strip()
66
- break
67
- if not last_non_empty.startswith("Generated-by:"):
68
- issues.append("BluMa watermark should be the last non-empty line")
69
-
70
- return issues
71
-
72
-
73
- def get_last_commit_msg() -> str:
74
- result = subprocess.run(
75
- ["git", "log", "-1", "--format=%B"],
76
- capture_output=True, text=True
77
- )
78
- if result.returncode != 0:
79
- print(f"Error: {result.stderr.strip()}")
80
- sys.exit(1)
81
- return result.stdout.strip()
82
-
83
-
84
- def get_commit_msgs(commit_range: str) -> list[tuple[str, str]]:
85
- result = subprocess.run(
86
- ["git", "log", commit_range, "--format=%h|||%B---END---"],
87
- capture_output=True, text=True
88
- )
89
- if result.returncode != 0:
90
- print(f"Error: {result.stderr.strip()}")
91
- sys.exit(1)
92
-
93
- commits = []
94
- for block in result.stdout.split("---END---"):
95
- block = block.strip()
96
- if not block:
97
- continue
98
- parts = block.split("|||", 1)
99
- if len(parts) == 2:
100
- commits.append((parts[0].strip(), parts[1].strip()))
101
- return commits
102
-
103
-
104
- def print_result(label: str, msg: str, issues: list[str]):
105
- subject = msg.split('\n')[0][:60]
106
- if issues:
107
- print(f" FAIL [{label}] {subject}")
108
- for issue in issues:
109
- print(f" - {issue}")
110
- else:
111
- print(f" OK [{label}] {subject}")
112
-
113
-
114
- def main():
115
- if len(sys.argv) < 2:
116
- print("Usage:")
117
- print(' python validate_commit_msg.py "<message>"')
118
- print(" python validate_commit_msg.py --last")
119
- print(" python validate_commit_msg.py --range main..HEAD")
120
- sys.exit(1)
121
-
122
- has_errors = False
123
-
124
- if sys.argv[1] == "--last":
125
- msg = get_last_commit_msg()
126
- issues = validate_message(msg)
127
- print("Validating last commit:\n")
128
- print_result("HEAD", msg, issues)
129
- has_errors = bool(issues)
130
-
131
- elif sys.argv[1] == "--range":
132
- if len(sys.argv) < 3:
133
- print("Error: --range requires a commit range (e.g. main..HEAD)")
134
- sys.exit(1)
135
- commits = get_commit_msgs(sys.argv[2])
136
- if not commits:
137
- print(f"No commits in range {sys.argv[2]}")
138
- sys.exit(0)
139
- print(f"Validating {len(commits)} commit(s) in {sys.argv[2]}:\n")
140
- for h, msg in commits:
141
- issues = validate_message(msg)
142
- print_result(h, msg, issues)
143
- if issues:
144
- has_errors = True
145
-
146
- else:
147
- msg = sys.argv[1]
148
- issues = validate_message(msg)
149
- print("Validating message:\n")
150
- print_result("input", msg, issues)
151
- has_errors = bool(issues)
152
-
153
- print()
154
- if has_errors:
155
- print("Some commits need attention.")
156
- sys.exit(1)
157
- else:
158
- print("All messages are valid.")
159
- sys.exit(0)
160
-
161
-
162
- if __name__ == "__main__":
163
- main()
@@ -1,18 +0,0 @@
1
- BluMa — Base Language Unit · Model Agent
2
- Proprietary License
3
-
4
- Copyright (c) 2024-2026 BluMa Contributors
5
-
6
- This skill is part of the BluMa CLI distribution.
7
- It is provided as a bundled native skill and may not be
8
- redistributed, modified, or used outside of the BluMa agent
9
- framework without prior written permission.
10
-
11
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
12
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
13
- OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
14
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
15
- HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
16
- WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
17
- FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
18
- OTHER DEALINGS IN THE SOFTWARE.