simplicio-mapper 0.5.0__tar.gz

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.
@@ -0,0 +1,13 @@
1
+ # .catalog/
2
+
3
+ Runtime catalog for the yool/tuple/HAMT pattern (see `docs/YOOL_TUPLE_HAMT.md`).
4
+
5
+ | Path | Purpose |
6
+ |---|---|
7
+ | `hamt.json` | HAMT registry built from AGENTS.md by `bin/build-hamt-catalog` |
8
+ | `tuples.jsonl` | Append-only log of tuple-space operations (`out`/`in`) |
9
+ | `receipts/<sha>.json` | Content-addressable execution records (immutable) |
10
+ | `artifacts/` | Body files referenced by receipts; subject to GC per §11.2 |
11
+
12
+ `receipts/` is the immutable Merkle chain — NEVER deleted, only artifact bodies are.
13
+ GC runs nightly per the disk guardrail (spec §11.2).
@@ -0,0 +1,115 @@
1
+ # Dependências
2
+ node_modules/
3
+ jspm_packages/
4
+ bower_components/
5
+
6
+ # Build / dist
7
+ dist/
8
+ build/
9
+ out/
10
+ .next/
11
+ .nuxt/
12
+ .svelte-kit/
13
+ .turbo/
14
+ .vercel/
15
+ docs-site/.docusaurus/
16
+
17
+ # TypeScript
18
+ *.tsbuildinfo
19
+
20
+ # Python
21
+ __pycache__/
22
+ *.py[cod]
23
+ *.egg-info/
24
+ .pytest_cache/
25
+ .venv/
26
+ venv/
27
+
28
+ # Logs
29
+ *.log
30
+ npm-debug.log*
31
+ yarn-debug.log*
32
+ yarn-error.log*
33
+ pnpm-debug.log*
34
+ lerna-debug.log*
35
+
36
+ # Variáveis de ambiente
37
+ .env
38
+ .env.*
39
+ !.env.example
40
+
41
+ # Test artifacts
42
+ test-results/
43
+ playwright-report/
44
+ playwright/.cache/
45
+ coverage/
46
+ .nyc_output/
47
+
48
+ # Editor / OS
49
+ .DS_Store
50
+ Thumbs.db
51
+ .idea/
52
+ .vscode/*
53
+ !.vscode/extensions.json
54
+ !.vscode/settings.json
55
+ *.swp
56
+ *.swo
57
+
58
+ # Locks de cache
59
+ .eslintcache
60
+ .stylelintcache
61
+ .parcel-cache
62
+
63
+ # Claude / Codex (estado local, não vai pro repo)
64
+ .codex/local
65
+ .codex/history
66
+ .claude/sessions
67
+ .claude/cache
68
+
69
+ # Tarballs / debug
70
+ *.tgz
71
+ *.tar.gz
72
+ .pnpm-store/
73
+
74
+ # Runtime receipts
75
+ .receipts/**
76
+ !.receipts/.gitkeep
77
+
78
+ # LLM Project Mapper tracked files
79
+ .starter-meta.json
80
+ .claude/settings.local.json
81
+ AGENTS.md
82
+ CLAUDE.md
83
+ INIT.md
84
+ _BOOTSTRAP.md
85
+ .agents/
86
+ .agents/**
87
+ .claude/
88
+ .claude/**
89
+ .codex/
90
+ .codex/**
91
+ .github/
92
+ .github/**
93
+ .skills/
94
+ .skills/**
95
+ .specs/
96
+ .specs/**
97
+ docs/**
98
+ !docs/YOOL_TUPLE_HAMT.md
99
+ scripts/**
100
+ !scripts/build_hamt.py
101
+ !scripts/skillopt/
102
+ !scripts/skillopt/*.js
103
+ playwright-report/**
104
+ tests/**
105
+ !tests/unit/
106
+ !tests/unit/*.test.js
107
+ !tests/e2e/
108
+ !tests/e2e/*.spec.ts
109
+ !tests/python/
110
+ !tests/python/*.py
111
+ test-results/**
112
+ coverage/**
113
+ bootstrap.ps1
114
+ bootstrap.sh
115
+ playwright.config.ts
@@ -0,0 +1,234 @@
1
+ # Changelog
2
+
3
+ All notable changes to **LLM Project Mapper** are documented in this file.
4
+
5
+ Format follows [Keep a Changelog 1.1.0](https://keepachangelog.com/en/1.1.0/) and the project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
+
7
+ ## [Unreleased]
8
+
9
+ ### Added
10
+ - Standalone Python distribution `simplicio-mapper` on PyPI: dependency-free
11
+ `simplicio_mapper.mapper` port of the Node mapper plus a `map` / `update` CLI
12
+ exposed as the `simplicio-mapper` and `llm-project-mapper` console scripts.
13
+ Generates the same `.simplicio/project-map.json` and `precedent-index.json`
14
+ without requiring a Node toolchain.
15
+ - `map` / `update` CLI subcommands for generating and incrementally refreshing
16
+ `.simplicio/project-map.json` and `.simplicio/precedent-index.json`.
17
+ - Rich machine-readable mapper artifacts with file inventory, roles, imports,
18
+ exports, entity extraction, architecture signals, dependency context, changed
19
+ files, and precedent snippets for downstream consumers.
20
+ - `SIMPLICIO_INTEGRATION.md` documenting the JSON contract and Python consumer
21
+ example for `simplicio-dev-cli`.
22
+ - `skillopt` command and `bin/skillopt.js` wrapper implementing the [SkillOpt](https://microsoft.github.io/SkillOpt/) loop (Rollout → Reflect → Edit → Gate): optimizes a natural-language skill document against a task suite, treating the skill as the only trainable artifact. Emits `best_skill.md`, an optional run report, and a content-addressed receipt under `.catalog/receipts/`. Engine in `scripts/skillopt/engine.js` is deterministic, dependency-free, and exposes a pluggable scorer for real LLM adapters.
23
+ - `.skills/skillopt/SKILL.md` skill manifest plus runnable `example.skill.md` / `example.suite.json` fixtures.
24
+ - Root-level `YOOL_TUPLE_HAMT.md` vendored alongside the existing `docs/` copy so the canonical pattern spec is reachable directly from the repository root and ships with the npm package.
25
+ - `build-hamt-catalog` wrapper plus stdlib-only `scripts/build_hamt.py`, enabling `npx @wesleysimplicio/llm-project-mapper build-hamt-catalog` to emit `.catalog/agents.json`.
26
+ - Runtime scaffold defaults for `.catalog/.gitkeep`, `.catalog/agents.json`, `.receipts/.gitkeep`, and optional `mcp/server.{ts,py}` edge adapters via `--mcp-edge`.
27
+ - Dedicated docs-site coverage for YOOL / tuple / HAMT, including the public `/yool-tuple-hamt` route and regression tests for the new page.
28
+
29
+ ### Changed
30
+ - Bootstrap now writes the structured mapper artifacts automatically and records
31
+ the `simplicio` integration block in `.starter-meta.json`.
32
+ - INIT prompts now require validation of `.simplicio/project-map.json` and
33
+ `.simplicio/precedent-index.json` during agent inspection.
34
+ - `AGENTS.md`, `CLAUDE.md`, and `.github/copilot-instructions.md` now point to the root spec, document the receipts schema, and align the generated catalog output on `.catalog/agents.json`.
35
+ - The Node bootstrap path now mirrors the shell/PowerShell runtime scaffold so fresh `npx` installs create the catalog, receipts, and optional MCP edge templates consistently.
36
+
37
+ ## [0.4.2] - 2026-05-19
38
+
39
+ ### Added
40
+ - `.skills/rtk-cli/SKILL.md` skill manifest (force-added past the `.skills/`
41
+ gitignore exclusion to match the other tracked starter skills). Documents
42
+ RTK CLI usage with trigger, steps, do-not list, and DoD. Already shipped
43
+ via npm tarball; now tracked in git so consumers can discover it on
44
+ GitHub.
45
+
46
+ ### Notes
47
+ - Closes #71. RTK guidance was already present in AGENTS.md, CLAUDE.md and
48
+ `.github/copilot-instructions.md` — the missing piece was the skill folder
49
+ visibility on GitHub.
50
+
51
+ ## [0.4.1] - 2026-05-19
52
+
53
+ ### Added
54
+ - Vendored YOOL/tuple/HAMT spec at `docs/YOOL_TUPLE_HAMT.md` (v0.2 from
55
+ https://github.com/wesleysimplicio/yool-tuple-hamt) plus `AGENTS.md` /
56
+ `CLAUDE.md` blocks defining the agent capability declaration template
57
+ (`yool_id`, `authority`, `lane`, `agent_terms` with **mandatory**
58
+ `cpu_quota_pct`, `disk_quota_mb`, `timeout_s`).
59
+ - `bootstrap.sh` now scaffolds `.catalog/` (receipts/, artifacts/, README) so
60
+ the HAMT catalog has a predictable home in every starter-generated project.
61
+ - Guardrail rationale anchored to Victor Genaro's review: *"precisa de
62
+ guardrail pra não fritar o processador. Você precisa de garbage collector
63
+ também pra não encher 100% do disco."*
64
+
65
+ ## [0.4.0] - 2026-05-19
66
+
67
+ ### Added
68
+ - Added a local `rtk-cli` skill that teaches agents when and how to use RTK's compact shell output for repository exploration, `git`, `grep/find`, and verbose validation commands.
69
+
70
+ ### Changed
71
+ - Updated `AGENTS.md`, `CLAUDE.md`, `.github/copilot-instructions.md`, and session-start hooks to prefer RTK for shell-heavy workflows when it is installed, while explicitly keeping `curl`, `playwright`, and interactive or streaming commands on raw output.
72
+ - Allowed `Bash(rtk *)` in `.claude/settings.json` so Claude Code sessions can invoke RTK without extra local permission friction.
73
+ - Extended regression coverage to assert the shipped RTK skill, hook reminders, and contributor docs stay aligned.
74
+
75
+ ## [0.3.2] - 2026-05-18
76
+
77
+ ### Changed
78
+ - Documented a project-specific default release policy: release-relevant work in `llm-project-mapper` must finish with npm, Git tag, GitHub Release, `main`, and validation all synchronized in the same cycle.
79
+
80
+ ## [0.3.1] - 2026-05-18
81
+
82
+ ### Changed
83
+ - Replaced the remaining historical legacy-name references in repository documentation so the package and project naming stay fully aligned as `llm-project-mapper`.
84
+
85
+ ## [0.3.0] - 2026-05-18
86
+
87
+ ### Added
88
+ - Automatic local project mapping immediately after bootstrap. `bin/auto-map.js` now inspects the host project, infers stack/domain/team/integrations, generates `.specs/journal/inspection-YYYY-MM-DD.md`, and pre-fills the starter-managed docs without waiting for a manual `INIT.md` handoff.
89
+ - Regression coverage for the automatic mapping flow in both `tests/unit/cli-install.test.js` and `tests/e2e/cli.spec.ts`, including placeholder-clean assertions on the generated starter-managed files.
90
+ - `vscode-extension/` scaffold for `wesleysimplicio.llm-project-mapper-vscode`. Ships a TreeView for `.specs/sprints/`, plus commands `lpm.openCurrentTask`, `lpm.createAdr`, `lpm.runInit`, `lpm.refresh` and a live status-bar indicator. Pure filesystem walker (`src/scan.ts`) covered by `node --test` unit tests.
91
+ - `--telemetry on|off` flag on `bin/cli.js` (default off). Honored via `LLM_PROJECT_MAPPER_TELEMETRY` env var. Persists user choice to `~/.config/llm-project-mapper/telemetry.json`. Hard-disabled under `CI`, `--dry-run`, or when no `LLM_PROJECT_MAPPER_TELEMETRY_URL` is set.
92
+ - `PRIVACY.md` documenting telemetry payload shape, opt-in mechanics, and kill switches.
93
+ - `.github/workflows-templates/telemetry-worker.js` — reference Cloudflare Worker template (PII-sanitized aggregator).
94
+ - README sections (EN + PT-BR) under "Companion tooling" linking the new extension and PRIVACY.md.
95
+ - `tests/unit/cli-telemetry.test.js` — 5 new tests covering opt-in/out persistence and help-text presence.
96
+
97
+ ### Changed
98
+ - Bootstrap messaging now explains that the mapping pass starts automatically and that `INIT.md` is an optional second-pass refinement step.
99
+ - Package version bumped to `0.3.0` to ship the automatic mapping workflow and updated regression coverage.
100
+
101
+ ## [0.2.2] - 2026-05-18
102
+
103
+ ### Added
104
+ - Local PT-BR + EN narration pipeline for `video/assets/why-llm-project-mapper{,-en}.mp4`, generated from `video/src/why/narration.json` via `say` + `ffmpeg`.
105
+ - Burned-in captions for the Why video via `@remotion/captions`, driven by the same narration source file.
106
+ - Versioned `video/public/captions/why-{pt,en}.srt` exports from the narration pipeline for timing review.
107
+ - `video/TTS-EVALUATION.md` comparing ElevenLabs, OpenAI `tts-1-hd`, and Azure Neural for future upgrades.
108
+
109
+ ### Changed
110
+ - `video/public/sfx/rock-bg.mp3` is now mixed under narration at `volume=0.15`.
111
+ - Root lint now checks `video/scripts/*.mjs`.
112
+
113
+ ## [0.2.1] - 2026-05-18
114
+
115
+ ### Added
116
+ - `docs-site/` Docusaurus hub with GitHub Pages deployment workflow, local search, and versioned docs generated from repository markdown sources.
117
+ - Animated overlay-install screencast at `assets/overlay-install.svg`, embedded in the README and install guides.
118
+ - `LICENSE` (MIT) at repository root and shipped in npm tarball.
119
+ - `CHANGELOG.md` (this file) covering history v0.1.0 → v0.2.0.
120
+ - `npm run lint` script — wraps ESLint-equivalent checks for `bin/`, `tests/`, `scripts/`, shell scripts and Markdown.
121
+ - `npm test` script — `node --test tests/unit` runner (no extra dependency).
122
+ - Unit tests for `bin/cli.js`: `parseArgs`, `detectStack`, `detectProjectMode`, `mergeGitignore`, `.starter-meta.json` shape.
123
+ - Concrete `tests/e2e/smoke.spec.ts` exercising the real `npx` install flow (dry-run, fresh install, update, stack detection, monorepo detection).
124
+ - `INIT.en.md` + `INSTALL.en.md` — English translations of the install guide.
125
+ - `docs/placeholders.md` — catalog of every `<PLACEHOLDER>` token used by the starter.
126
+ - `docs/api-examples/{rest,graphql,webhook,cli}.md` — fill-in templates for documenting APIs.
127
+ - `SHOWCASE.md` — community list of consumer projects.
128
+ - PSScriptAnalyzer job in `scaffold-self-check.yml` covering `bootstrap.ps1` and `*.ps1` scripts.
129
+ - Cross-platform matrix (ubuntu/macos/windows) in `scaffold-self-check.yml`.
130
+ - `--preset <stack>` flag in `bin/cli.js` (nextjs, dotnet, fastapi, go, rails, flutter) — preset list at `--preset list`.
131
+ - `--no-update-check` flag and embedded semver notifier in `bin/cli.js`.
132
+ - `.github/workflows-templates/llm-project-mapper-init.yml` — GitHub Action wrapper template.
133
+ - `docs/sessionstart-hook.md` — operational doc for `.claude/hooks/session-start-skills.sh`.
134
+
135
+ ### Changed
136
+ - `package.json` now lists `LICENSE`, `CHANGELOG.md`, `INIT.en.md`, `INSTALL.en.md` in `files[]` so they ship with the npm package.
137
+ - `ci.yml` and `dod.yml` no longer skip the `llm-project-mapper` repo itself (eat-your-own-dog-food).
138
+ - `presentation/slides.md` regenerated after rename — PDF + PPTX rebuilt.
139
+
140
+ ### Fixed
141
+ - Residual legacy naming mentions removed from `_BOOTSTRAP.md` and inline examples (legacy detection in `bin/cli.js` preserved for back-compat overlays).
142
+
143
+ ## [0.2.0] - 2026-05-16
144
+
145
+ ### Changed
146
+ - **BREAKING** Renamed the npm package to `@wesleysimplicio/llm-project-mapper`. ([#15](https://github.com/wesleysimplicio/llm-project-mapper/pull/15))
147
+ - **BREAKING** Renamed the CLI command to `npx @wesleysimplicio/llm-project-mapper`.
148
+ - **BREAKING** Source override env var renamed to `LLM_PROJECT_MAPPER_SOURCE`.
149
+ - Video compositions renamed to `WhyLlmProjectMapper{PT,EN}`.
150
+ - Assets renamed to `assets/llm-project-mapper-*.png`.
151
+
152
+ ### Deprecated
153
+ - The previous package name is marked deprecated and redirects users to `@wesleysimplicio/llm-project-mapper`.
154
+
155
+ ## [0.1.6] - 2026-05-15
156
+
157
+ ### Added
158
+ - Rock backing track on the Why explainer video (kick/snare/hi-hat/power chord drone synthesized with ffmpeg). ([#14](https://github.com/wesleysimplicio/llm-project-mapper/pull/14))
159
+ - Static cover linked from `README.md` and `README.pt-BR.md`.
160
+
161
+ ### Changed
162
+ - Why video re-paced: 80s → 53s, 17.7 MB → 14.1 MB. Animation delays reduced from `frame - 50..280` to `frame - 4..170`.
163
+
164
+ ## [0.1.5] - 2026-05-15
165
+
166
+ ### Added
167
+ - WhyLlmProjectMapper explainer video in PT-BR and EN (9 scenes, 80s, 1080p). ([#12](https://github.com/wesleysimplicio/llm-project-mapper/pull/12))
168
+ - `video/src/why/` isolated directory with own i18n provider (`WhyLangProvider`, `STRINGS_WHY`).
169
+ - npm scripts `build:why`, `build:why:en`, `build:why:all`, `still:why`, `still:why:en`.
170
+
171
+ ### Fixed
172
+ - Hook execution repair + starter hero image.
173
+
174
+ ## [0.1.4] - 2026-05-14
175
+
176
+ ### Added
177
+ - `workflow_dispatch:` trigger on the `Publish to npm` workflow. ([#10](https://github.com/wesleysimplicio/llm-project-mapper/pull/10))
178
+ - `Verify npm auth (whoami)` early-failure step on the publish workflow.
179
+
180
+ ## [0.1.3] - 2026-05-14
181
+
182
+ ### Added
183
+ - Safe starter update command (`npx ... --update`).
184
+ - `scripts/update-starter.sh` / `scripts/update-starter.ps1`.
185
+
186
+ ## [0.1.2] - 2026-05-13
187
+
188
+ ### Added
189
+ - `.github/workflows/publish-npm.yml` — auto-publishes to npm on every push to `main` when `package.json` version differs from registry, with `--provenance --access public` and automatic `vX.Y.Z` tag. ([#7](https://github.com/wesleysimplicio/llm-project-mapper/pull/7))
190
+
191
+ ## [0.1.1] - 2026-05-13
192
+
193
+ ### Added
194
+ - `INSTALL.md` — step-by-step overlay install guide for existing host projects. ([#4](https://github.com/wesleysimplicio/llm-project-mapper/pull/4))
195
+ - Always-on skills: `ralph-loop`, `caveman`, `everything-claude-code`. ([#3](https://github.com/wesleysimplicio/llm-project-mapper/pull/3))
196
+ - `.claude/hooks/session-start-skills.sh` SessionStart hook.
197
+ - `# Agentic starter tracked files` block to `.gitignore`. ([#5](https://github.com/wesleysimplicio/llm-project-mapper/issues/5), [#6](https://github.com/wesleysimplicio/llm-project-mapper/pull/6))
198
+
199
+ ### Changed
200
+ - Replaced `projects/` convention with workspace-signal mode detection (`pnpm-workspace.yaml`, `lerna.json`, `nx.json`, `turbo.json`, `rush.json`, `package.json` workspaces, or ≥2 manifests under `apps/`/`packages/`/`services/`). ([#4](https://github.com/wesleysimplicio/llm-project-mapper/pull/4))
201
+ - Unified `.starter-meta.json` schema across `bootstrap.sh`, `bootstrap.ps1`, `bin/cli.js`.
202
+
203
+ ## [0.1.0] - 2026-05-09
204
+
205
+ ### Added
206
+ - Initial release.
207
+ - Master instruction file `AGENTS.md` + mirrors `CLAUDE.md` and `.github/copilot-instructions.md`.
208
+ - `.specs/` skeleton (product, architecture, workflow, sprints).
209
+ - `.skills/` catalog (playwright-e2e, conventional-commits, _template).
210
+ - `.agents/` catalog (ralph-loop, tdd, reviewer, architect).
211
+ - `.claude/` hooks (post-edit, pre-commit).
212
+ - `.codex/config.toml`.
213
+ - CI workflows (`ci.yml`, `dod.yml`, `scaffold-self-check.yml`).
214
+ - PR + Issue templates.
215
+ - Bootstrap installers: `bootstrap.sh`, `bootstrap.ps1`, `bin/cli.js` (`npx @wesleysimplicio/llm-project-mapper`).
216
+ - Marp presentation (`presentation/slides.md` → PDF + PPTX).
217
+ - Remotion skills tutorial video in PT-BR. ([#1](https://github.com/wesleysimplicio/llm-project-mapper/pull/1))
218
+ - i18n layer + English skills tutorial video. ([#2](https://github.com/wesleysimplicio/llm-project-mapper/pull/2))
219
+
220
+ [Unreleased]: https://github.com/wesleysimplicio/llm-project-mapper/compare/v0.4.0...HEAD
221
+ [0.4.0]: https://github.com/wesleysimplicio/llm-project-mapper/compare/v0.3.2...v0.4.0
222
+ [0.3.2]: https://github.com/wesleysimplicio/llm-project-mapper/compare/v0.3.1...v0.3.2
223
+ [0.3.1]: https://github.com/wesleysimplicio/llm-project-mapper/compare/v0.3.0...v0.3.1
224
+ [0.3.0]: https://github.com/wesleysimplicio/llm-project-mapper/compare/v0.2.2...v0.3.0
225
+ [0.2.2]: https://github.com/wesleysimplicio/llm-project-mapper/compare/v0.2.1...v0.2.2
226
+ [0.2.1]: https://github.com/wesleysimplicio/llm-project-mapper/compare/v0.2.0...v0.2.1
227
+ [0.2.0]: https://github.com/wesleysimplicio/llm-project-mapper/releases/tag/v0.2.0
228
+ [0.1.6]: https://github.com/wesleysimplicio/llm-project-mapper/releases/tag/v0.1.6
229
+ [0.1.5]: https://github.com/wesleysimplicio/llm-project-mapper/releases/tag/v0.1.5
230
+ [0.1.4]: https://github.com/wesleysimplicio/llm-project-mapper/releases/tag/v0.1.4
231
+ [0.1.3]: https://github.com/wesleysimplicio/llm-project-mapper/releases/tag/v0.1.3
232
+ [0.1.2]: https://github.com/wesleysimplicio/llm-project-mapper/releases/tag/v0.1.2
233
+ [0.1.1]: https://github.com/wesleysimplicio/llm-project-mapper/releases/tag/v0.1.1
234
+ [0.1.0]: https://github.com/wesleysimplicio/llm-project-mapper/releases/tag/v0.1.0
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Wesley Simplicio
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,118 @@
1
+ Metadata-Version: 2.4
2
+ Name: simplicio-mapper
3
+ Version: 0.5.0
4
+ Summary: Python-first project mapper that emits .simplicio/project-map.json and precedent-index.json for the Simplicio ecosystem.
5
+ Project-URL: Homepage, https://github.com/wesleysimplicio/simplicio-mapper
6
+ Project-URL: Repository, https://github.com/wesleysimplicio/simplicio-mapper
7
+ Project-URL: Issues, https://github.com/wesleysimplicio/simplicio-mapper/issues
8
+ Author-email: Wesley Simplicio <wesleybob4@gmail.com>
9
+ License: MIT License
10
+
11
+ Copyright (c) 2026 Wesley Simplicio
12
+
13
+ Permission is hereby granted, free of charge, to any person obtaining a copy
14
+ of this software and associated documentation files (the "Software"), to deal
15
+ in the Software without restriction, including without limitation the rights
16
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
17
+ copies of the Software, and to permit persons to whom the Software is
18
+ furnished to do so, subject to the following conditions:
19
+
20
+ The above copyright notice and this permission notice shall be included in all
21
+ copies or substantial portions of the Software.
22
+
23
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
24
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
25
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
26
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
27
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
28
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
29
+ SOFTWARE.
30
+ License-File: LICENSE
31
+ Keywords: agent,llm,mapper,precedent,project-map,simplicio
32
+ Classifier: Development Status :: 4 - Beta
33
+ Classifier: Environment :: Console
34
+ Classifier: Intended Audience :: Developers
35
+ Classifier: License :: OSI Approved :: MIT License
36
+ Classifier: Operating System :: OS Independent
37
+ Classifier: Programming Language :: Python :: 3
38
+ Classifier: Programming Language :: Python :: 3 :: Only
39
+ Classifier: Programming Language :: Python :: 3.9
40
+ Classifier: Programming Language :: Python :: 3.10
41
+ Classifier: Programming Language :: Python :: 3.11
42
+ Classifier: Programming Language :: Python :: 3.12
43
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
44
+ Requires-Python: >=3.9
45
+ Description-Content-Type: text/markdown
46
+
47
+ # simplicio-mapper
48
+
49
+ Python-first project mapper for the Simplicio ecosystem. It scans a repository
50
+ and emits two machine-readable artifacts that agents and tooling can consume
51
+ without parsing the human-readable markdown docs:
52
+
53
+ - `.simplicio/project-map.json` (`simplicio.project-map/v1`) — file inventory,
54
+ architecture signals, entry points, tests, modules, entities, dependencies
55
+ and recent changes.
56
+ - `.simplicio/precedent-index.json` (`simplicio.precedent-index/v1`) —
57
+ high-signal code examples tagged by change type, file, language, roles and
58
+ snippet.
59
+
60
+ The full contract is documented in
61
+ [SIMPLICIO_INTEGRATION.md](https://github.com/wesleysimplicio/simplicio-mapper/blob/main/SIMPLICIO_INTEGRATION.md).
62
+
63
+ ## Install
64
+
65
+ ```bash
66
+ pip install simplicio-mapper
67
+ ```
68
+
69
+ ## Usage
70
+
71
+ ```bash
72
+ # Map the current directory into .simplicio/
73
+ simplicio-mapper map
74
+
75
+ # Refresh artifacts and record changed files since the last run
76
+ simplicio-mapper update
77
+
78
+ # Map another project root, with hints when .starter-meta.json is absent
79
+ simplicio-mapper map --root path/to/project --stack python --product-name "My App"
80
+
81
+ # Re-run automatically while files change locally
82
+ simplicio-mapper map --watch
83
+ ```
84
+
85
+ The `llm-project-mapper` console script is provided as an alias.
86
+
87
+ ### Options
88
+
89
+ | Option | Description |
90
+ |---|---|
91
+ | `--root <dir>` | Project root to map. Defaults to the current directory. |
92
+ | `--out <dir>` | Artifact directory. Defaults to `.simplicio`. |
93
+ | `--stack <name>` | Stack hint when `.starter-meta.json` is absent. |
94
+ | `--product-name <name>` | Product name hint when `.starter-meta.json` is absent. |
95
+ | `--incremental` | Record changed files and update existing artifacts. |
96
+ | `--watch` | Re-run mapping when local files change. |
97
+ | `--silent` | Minimal output. |
98
+ | `-V`, `--version` | Show version and exit. |
99
+ | `-h`, `--help` | Show help. |
100
+
101
+ ## Consuming the artifacts
102
+
103
+ ```python
104
+ from pathlib import Path
105
+ import json
106
+
107
+ base = Path(".simplicio")
108
+ project_map = json.loads((base / "project-map.json").read_text())
109
+ precedents = json.loads((base / "precedent-index.json").read_text())
110
+
111
+ top_files = sorted(
112
+ project_map["files"], key=lambda f: f.get("importance", 0), reverse=True
113
+ )[:8]
114
+ ```
115
+
116
+ ## License
117
+
118
+ MIT
@@ -0,0 +1,72 @@
1
+ # simplicio-mapper
2
+
3
+ Python-first project mapper for the Simplicio ecosystem. It scans a repository
4
+ and emits two machine-readable artifacts that agents and tooling can consume
5
+ without parsing the human-readable markdown docs:
6
+
7
+ - `.simplicio/project-map.json` (`simplicio.project-map/v1`) — file inventory,
8
+ architecture signals, entry points, tests, modules, entities, dependencies
9
+ and recent changes.
10
+ - `.simplicio/precedent-index.json` (`simplicio.precedent-index/v1`) —
11
+ high-signal code examples tagged by change type, file, language, roles and
12
+ snippet.
13
+
14
+ The full contract is documented in
15
+ [SIMPLICIO_INTEGRATION.md](https://github.com/wesleysimplicio/simplicio-mapper/blob/main/SIMPLICIO_INTEGRATION.md).
16
+
17
+ ## Install
18
+
19
+ ```bash
20
+ pip install simplicio-mapper
21
+ ```
22
+
23
+ ## Usage
24
+
25
+ ```bash
26
+ # Map the current directory into .simplicio/
27
+ simplicio-mapper map
28
+
29
+ # Refresh artifacts and record changed files since the last run
30
+ simplicio-mapper update
31
+
32
+ # Map another project root, with hints when .starter-meta.json is absent
33
+ simplicio-mapper map --root path/to/project --stack python --product-name "My App"
34
+
35
+ # Re-run automatically while files change locally
36
+ simplicio-mapper map --watch
37
+ ```
38
+
39
+ The `llm-project-mapper` console script is provided as an alias.
40
+
41
+ ### Options
42
+
43
+ | Option | Description |
44
+ |---|---|
45
+ | `--root <dir>` | Project root to map. Defaults to the current directory. |
46
+ | `--out <dir>` | Artifact directory. Defaults to `.simplicio`. |
47
+ | `--stack <name>` | Stack hint when `.starter-meta.json` is absent. |
48
+ | `--product-name <name>` | Product name hint when `.starter-meta.json` is absent. |
49
+ | `--incremental` | Record changed files and update existing artifacts. |
50
+ | `--watch` | Re-run mapping when local files change. |
51
+ | `--silent` | Minimal output. |
52
+ | `-V`, `--version` | Show version and exit. |
53
+ | `-h`, `--help` | Show help. |
54
+
55
+ ## Consuming the artifacts
56
+
57
+ ```python
58
+ from pathlib import Path
59
+ import json
60
+
61
+ base = Path(".simplicio")
62
+ project_map = json.loads((base / "project-map.json").read_text())
63
+ precedents = json.loads((base / "precedent-index.json").read_text())
64
+
65
+ top_files = sorted(
66
+ project_map["files"], key=lambda f: f.get("importance", 0), reverse=True
67
+ )[:8]
68
+ ```
69
+
70
+ ## License
71
+
72
+ MIT