@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.
- package/LICENSE +189 -70
- package/README.md +2 -162
- package/THIRD-PARTY-NOTICES.txt +46201 -0
- package/bin/bluma-core +0 -0
- package/package.json +24 -124
- package/third-party/option-ext/.cargo_vcs_info.json +6 -0
- package/third-party/option-ext/Cargo.toml +22 -0
- package/third-party/option-ext/LICENSE.txt +373 -0
- package/third-party/option-ext/README.md +67 -0
- package/third-party/option-ext/src/impl.rs +20 -0
- package/third-party/option-ext/src/lib.rs +71 -0
- package/assets/bg.png +0 -0
- package/assets/bg1.png +0 -0
- package/assets/bluma.png +0 -0
- package/assets/image.png +0 -0
- package/dist/assets/bg.png +0 -0
- package/dist/assets/bg1.png +0 -0
- package/dist/assets/bluma.png +0 -0
- package/dist/assets/image.png +0 -0
- package/dist/config/native_tools.json +0 -1151
- package/dist/config/plan_mode_instructions.md +0 -218
- package/dist/config/skills/factorai-sh/SKILL.md +0 -98
- package/dist/config/skills/git-commit/LICENSE.txt +0 -18
- package/dist/config/skills/git-commit/SKILL.md +0 -300
- package/dist/config/skills/git-commit/references/REFERENCE.md +0 -253
- package/dist/config/skills/git-commit/scripts/validate_commit_msg.py +0 -163
- package/dist/config/skills/git-pr/LICENSE.txt +0 -18
- package/dist/config/skills/git-pr/SKILL.md +0 -293
- package/dist/config/skills/git-pr/references/REFERENCE.md +0 -256
- package/dist/config/skills/git-pr/scripts/validate_commits.py +0 -120
- package/dist/config/skills/git-release/LICENSE.txt +0 -18
- package/dist/config/skills/git-release/SKILL.md +0 -408
- package/dist/config/skills/pdf/LICENSE.txt +0 -26
- package/dist/config/skills/pdf/SKILL.md +0 -736
- package/dist/config/skills/pdf/references/DOCUMENT_TYPES.md +0 -59
- package/dist/config/skills/pdf/references/FORMS.md +0 -69
- package/dist/config/skills/pdf/references/REFERENCE.md +0 -52
- package/dist/config/skills/pdf/scripts/__pycache__/create_report.cpython-312.pyc +0 -0
- package/dist/config/skills/pdf/scripts/create_report.py +0 -936
- package/dist/config/skills/pdf/scripts/merge_pdfs.py +0 -48
- package/dist/config/skills/skill-creator/LICENSE.txt +0 -26
- package/dist/config/skills/skill-creator/SKILL.md +0 -229
- package/dist/config/skills/xlsx/LICENSE.txt +0 -18
- package/dist/config/skills/xlsx/SKILL.md +0 -340
- package/dist/config/skills/xlsx/references/REFERENCE.md +0 -337
- package/dist/config/skills/xlsx/scripts/office/__init__.py +0 -2
- package/dist/config/skills/xlsx/scripts/office/pack.py +0 -58
- package/dist/config/skills/xlsx/scripts/office/soffice.py +0 -180
- package/dist/config/skills/xlsx/scripts/office/unpack.py +0 -63
- package/dist/config/skills/xlsx/scripts/office/validate.py +0 -122
- package/dist/config/skills/xlsx/scripts/recalc.py +0 -152
- package/dist/main.js +0 -47918
- package/dist/native/bluma-clipboard.linux-x64-gnu.node +0 -0
- package/dist/native/index.d.ts +0 -38
- package/dist/native/index.js +0 -319
- package/dist/native/package.json +0 -38
- package/dist/scaffold/.eslintrc.json +0 -3
- package/dist/scaffold/app/globals.css +0 -46
- package/dist/scaffold/app/layout.tsx +0 -19
- package/dist/scaffold/app/page.tsx +0 -124
- package/dist/scaffold/components/ui/README.md +0 -12
- package/dist/scaffold/components/ui/accordion.jsx +0 -42
- package/dist/scaffold/components/ui/alert-dialog.jsx +0 -80
- package/dist/scaffold/components/ui/alert.jsx +0 -33
- package/dist/scaffold/components/ui/aspect-ratio.jsx +0 -5
- package/dist/scaffold/components/ui/avatar.jsx +0 -28
- package/dist/scaffold/components/ui/badge.jsx +0 -24
- package/dist/scaffold/components/ui/breadcrumb.jsx +0 -72
- package/dist/scaffold/components/ui/button.jsx +0 -40
- package/dist/scaffold/components/ui/calendar.jsx +0 -56
- package/dist/scaffold/components/ui/card.jsx +0 -38
- package/dist/scaffold/components/ui/carousel.jsx +0 -168
- package/dist/scaffold/components/ui/chart.jsx +0 -76
- package/dist/scaffold/components/ui/checkbox.jsx +0 -22
- package/dist/scaffold/components/ui/collapsible.jsx +0 -7
- package/dist/scaffold/components/ui/command.jsx +0 -100
- package/dist/scaffold/components/ui/context-menu.jsx +0 -137
- package/dist/scaffold/components/ui/dialog.jsx +0 -72
- package/dist/scaffold/components/ui/drawer.jsx +0 -68
- package/dist/scaffold/components/ui/dropdown-menu.jsx +0 -143
- package/dist/scaffold/components/ui/form.jsx +0 -88
- package/dist/scaffold/components/ui/hover-card.jsx +0 -22
- package/dist/scaffold/components/ui/input-otp.jsx +0 -49
- package/dist/scaffold/components/ui/input.jsx +0 -19
- package/dist/scaffold/components/ui/label.jsx +0 -15
- package/dist/scaffold/components/ui/menubar.jsx +0 -161
- package/dist/scaffold/components/ui/navigation-menu.jsx +0 -95
- package/dist/scaffold/components/ui/pagination.jsx +0 -77
- package/dist/scaffold/components/ui/popover.jsx +0 -25
- package/dist/scaffold/components/ui/progress.jsx +0 -19
- package/dist/scaffold/components/ui/radio-group.jsx +0 -29
- package/dist/scaffold/components/ui/resizable.jsx +0 -27
- package/dist/scaffold/components/ui/scroll-area.jsx +0 -31
- package/dist/scaffold/components/ui/select.jsx +0 -117
- package/dist/scaffold/components/ui/separator.jsx +0 -22
- package/dist/scaffold/components/ui/sheet.jsx +0 -81
- package/dist/scaffold/components/ui/skeleton.jsx +0 -7
- package/dist/scaffold/components/ui/slider.jsx +0 -19
- package/dist/scaffold/components/ui/sonner.jsx +0 -22
- package/dist/scaffold/components/ui/switch.jsx +0 -23
- package/dist/scaffold/components/ui/table.jsx +0 -61
- package/dist/scaffold/components/ui/tabs.jsx +0 -43
- package/dist/scaffold/components/ui/textarea.jsx +0 -18
- package/dist/scaffold/components/ui/toast.jsx +0 -85
- package/dist/scaffold/components/ui/toaster.jsx +0 -33
- package/dist/scaffold/components/ui/toggle-group.jsx +0 -41
- package/dist/scaffold/components/ui/toggle.jsx +0 -30
- package/dist/scaffold/components/ui/tooltip.jsx +0 -22
- package/dist/scaffold/hooks/use-toast.ts +0 -101
- package/dist/scaffold/lib/utils.ts +0 -6
- package/dist/scaffold/next.config.js +0 -5
- package/dist/scaffold/next.config.mjs +0 -15
- package/dist/scaffold/next.config.ts +0 -19
- package/dist/scaffold/package.json +0 -70
- package/dist/scaffold/postcss.config.js +0 -6
- package/dist/scaffold/tailwind.config.ts +0 -57
- package/dist/scaffold/tsconfig.json +0 -20
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
# PDF document types — choose before writing JSON
|
|
2
|
-
|
|
3
|
-
Always run `create_report.py --from-json`. Pick **`document_type`** first; do not improvise ReportLab.
|
|
4
|
-
|
|
5
|
-
| Type | When to use | TOC | Page breaks | Letterhead band |
|
|
6
|
-
|------|-------------|-----|-------------|-----------------|
|
|
7
|
-
| `executive_report` | Relatórios multi-capítulo para gestão (vendas, hardware, auditoria) | yes | yes (secções densas) | no |
|
|
8
|
-
| `technical` | Inventários, specs, dumps estruturados | yes | no (fluxo contínuo) | no |
|
|
9
|
-
| `letterhead` | Cartas, propostas, documentos com marca da empresa | yes | no | yes (cabeçalho em todas as páginas) |
|
|
10
|
-
| `memo` | Notas curtas, 1–2 secções | no | no | no |
|
|
11
|
-
| `article` | Ensaios, MCP, documentação longa sem capítulos executivos | no | no | no |
|
|
12
|
-
|
|
13
|
-
## Letterhead block (required for `document_type: "letterhead"`)
|
|
14
|
-
|
|
15
|
-
```json
|
|
16
|
-
{
|
|
17
|
-
"document_type": "letterhead",
|
|
18
|
-
"title": "Proposta comercial",
|
|
19
|
-
"subtitle": "Renovação de licenças 2026",
|
|
20
|
-
"author": "Departamento Comercial",
|
|
21
|
-
"letterhead": {
|
|
22
|
-
"organization": "Empresa Exemplo Lda.",
|
|
23
|
-
"department": "Comercial",
|
|
24
|
-
"tagline": "Soluções empresariais",
|
|
25
|
-
"address_lines": ["Rua das Flores, 10", "1000-001 Lisboa"],
|
|
26
|
-
"contact": "comercial@exemplo.pt · +351 210 000 000",
|
|
27
|
-
"logo_path": ".bluma/artifacts/logo.png"
|
|
28
|
-
},
|
|
29
|
-
"sections": [ ... ]
|
|
30
|
-
}
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
`logo_path` is optional; file must exist under the workspace.
|
|
34
|
-
|
|
35
|
-
## Público misto (técnico + leigo)
|
|
36
|
-
|
|
37
|
-
```json
|
|
38
|
-
{
|
|
39
|
-
"document_type": "technical",
|
|
40
|
-
"audience": "mixed",
|
|
41
|
-
"title": "Relatório de Hardware e Sistema",
|
|
42
|
-
"subtitle": "Inventário com leitura acessível",
|
|
43
|
-
...
|
|
44
|
-
}
|
|
45
|
-
```
|
|
46
|
-
|
|
47
|
-
Em cada secção: primeiro `callout` `plain_language`, depois tabela/parágrafo técnico.
|
|
48
|
-
Ver secção **Comunicação técnico-científica** em SKILL.md.
|
|
49
|
-
|
|
50
|
-
## Hardware / system inventory → use `technical`
|
|
51
|
-
|
|
52
|
-
- `page_break_per_section`: false (default for technical)
|
|
53
|
-
- 4–6 sections with tables; paraphrase long IPv6/MAC in cells
|
|
54
|
-
- Do not use `executive_report` for raw machine dumps — it wastes pages
|
|
55
|
-
|
|
56
|
-
## MCP / whitepaper → use `article`
|
|
57
|
-
|
|
58
|
-
- No cover theatre; optional short cover via `cover_style: "minimal"` in `layout`
|
|
59
|
-
- Continuous flow; use `h2` inside sections instead of many numbered chapters
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
# PDF Forms — Filling and Processing Guide
|
|
2
|
-
|
|
3
|
-
This reference covers PDF form filling using Python and JavaScript libraries.
|
|
4
|
-
|
|
5
|
-
## Detecting Form Fields (Python)
|
|
6
|
-
|
|
7
|
-
```python
|
|
8
|
-
from pypdf import PdfReader
|
|
9
|
-
|
|
10
|
-
reader = PdfReader("form.pdf")
|
|
11
|
-
fields = reader.get_fields()
|
|
12
|
-
for name, field in fields.items():
|
|
13
|
-
print(f"Field: {name}, Type: {field.get('/FT')}, Value: {field.get('/V')}")
|
|
14
|
-
```
|
|
15
|
-
|
|
16
|
-
## Filling Forms with pypdf
|
|
17
|
-
|
|
18
|
-
```python
|
|
19
|
-
from pypdf import PdfReader, PdfWriter
|
|
20
|
-
|
|
21
|
-
reader = PdfReader("form.pdf")
|
|
22
|
-
writer = PdfWriter()
|
|
23
|
-
writer.append(reader)
|
|
24
|
-
|
|
25
|
-
writer.update_page_form_field_values(
|
|
26
|
-
writer.pages[0],
|
|
27
|
-
{
|
|
28
|
-
"name_field": "John Doe",
|
|
29
|
-
"email_field": "john@example.com",
|
|
30
|
-
"date_field": "2026-01-15",
|
|
31
|
-
}
|
|
32
|
-
)
|
|
33
|
-
|
|
34
|
-
with open("filled_form.pdf", "wb") as output:
|
|
35
|
-
writer.write(output)
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
## Filling Forms with pdf-lib (JavaScript)
|
|
39
|
-
|
|
40
|
-
```javascript
|
|
41
|
-
import { PDFDocument } from 'pdf-lib';
|
|
42
|
-
import fs from 'fs';
|
|
43
|
-
|
|
44
|
-
const pdfBytes = fs.readFileSync('form.pdf');
|
|
45
|
-
const pdfDoc = await PDFDocument.load(pdfBytes);
|
|
46
|
-
const form = pdfDoc.getForm();
|
|
47
|
-
|
|
48
|
-
form.getTextField('name').setText('John Doe');
|
|
49
|
-
form.getTextField('email').setText('john@example.com');
|
|
50
|
-
form.getCheckBox('agree').check();
|
|
51
|
-
|
|
52
|
-
const filledBytes = await pdfDoc.save();
|
|
53
|
-
fs.writeFileSync('filled_form.pdf', filledBytes);
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
## Common Form Field Types
|
|
57
|
-
|
|
58
|
-
| Type | pypdf Code | pdf-lib Code |
|
|
59
|
-
|------|-----------|-------------|
|
|
60
|
-
| Text | `update_page_form_field_values` | `getTextField().setText()` |
|
|
61
|
-
| Checkbox | Set to `/Yes` or `/Off` | `getCheckBox().check()` |
|
|
62
|
-
| Radio | Set to option value | `getRadioGroup().select()` |
|
|
63
|
-
| Dropdown | Set to option value | `getDropdown().select()` |
|
|
64
|
-
|
|
65
|
-
## Tips
|
|
66
|
-
|
|
67
|
-
- Always flatten forms after filling if the PDF will be shared (prevents editing).
|
|
68
|
-
- Some PDFs have XFA forms (XML-based) which are harder to fill programmatically.
|
|
69
|
-
- For XFA forms, consider using pdftk or a commercial library.
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
# PDF Processing — Advanced Reference
|
|
2
|
-
|
|
3
|
-
This document covers advanced PDF processing techniques beyond the basics in SKILL.md.
|
|
4
|
-
|
|
5
|
-
## pypdfium2 — High-Performance Rendering
|
|
6
|
-
|
|
7
|
-
```python
|
|
8
|
-
import pypdfium2 as pdfium
|
|
9
|
-
|
|
10
|
-
pdf = pdfium.PdfDocument("document.pdf")
|
|
11
|
-
for i, page in enumerate(pdf):
|
|
12
|
-
bitmap = page.render(scale=2)
|
|
13
|
-
image = bitmap.to_pil()
|
|
14
|
-
image.save(f"page_{i+1}.png")
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
## JavaScript Libraries (pdf-lib)
|
|
18
|
-
|
|
19
|
-
For browser-based or Node.js PDF manipulation:
|
|
20
|
-
|
|
21
|
-
```javascript
|
|
22
|
-
import { PDFDocument } from 'pdf-lib';
|
|
23
|
-
|
|
24
|
-
const pdfDoc = await PDFDocument.create();
|
|
25
|
-
const page = pdfDoc.addPage([600, 400]);
|
|
26
|
-
page.drawText('Hello, PDF!', { x: 50, y: 350, size: 30 });
|
|
27
|
-
const pdfBytes = await pdfDoc.save();
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
## pdf-lib — Modify Existing PDFs
|
|
31
|
-
|
|
32
|
-
```javascript
|
|
33
|
-
import { PDFDocument } from 'pdf-lib';
|
|
34
|
-
import fs from 'fs';
|
|
35
|
-
|
|
36
|
-
const existingPdfBytes = fs.readFileSync('input.pdf');
|
|
37
|
-
const pdfDoc = await PDFDocument.load(existingPdfBytes);
|
|
38
|
-
const pages = pdfDoc.getPages();
|
|
39
|
-
const firstPage = pages[0];
|
|
40
|
-
firstPage.drawText('WATERMARK', { x: 200, y: 400, size: 50, opacity: 0.3 });
|
|
41
|
-
const pdfBytes = await pdfDoc.save();
|
|
42
|
-
fs.writeFileSync('output.pdf', pdfBytes);
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
## Troubleshooting
|
|
46
|
-
|
|
47
|
-
| Issue | Solution |
|
|
48
|
-
|-------|----------|
|
|
49
|
-
| "PdfReadError: EOF marker not found" | File is corrupted or not a valid PDF |
|
|
50
|
-
| Empty text extraction | PDF might be image-based; use OCR (pytesseract) |
|
|
51
|
-
| Tables not extracted correctly | Adjust pdfplumber table settings or try camelot |
|
|
52
|
-
| Large PDF processing slow | Process pages in chunks or use pypdfium2 |
|
|
Binary file
|