12 Commits
Author SHA1 Message Date
Dario LipicarandClaude Opus 5 4fb867a72a docs: the universal/cdylib hosting step is logos-qt-host-generator (#17)
These were already wrong before any deletion. module-builder repointed the
cdylib Qt glue onto logos-plugin-qt's logos-qt-host-generator (5081088) and the
docs kept naming logos-qt-generator, so the pipeline they describe has not been
the pipeline that runs for some time.

That matters more here than in most docs: guidelines/ and docs/ are SHIPPED —
flake.nix copies them into the dev-boost output, and generate-agents-md.ts
embeds them into every scaffolded module's AGENTS.md/CLAUDE.md. So the stale
line was being handed to module authors, and to agents reading the scaffold, as
the instruction. That is why the six doctests/outputs/ files change too: they
are the recorded scaffolder output, and they carry the same text.

Only the middle step moves. `logos-cpp-generator --backend cdylib` — the Qt-free
C-ABI export wrapper — is a different tool doing a different job and is
deliberately untouched; it remains correct in every one of these blocks.

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-08-18 23:00:07 -03:00
Dario LipicarandClaude Opus 4.8 53f30d106a docs: update for the universal→cdylib codegen pipeline (#13)
Universal modules build as header-first cdylibs now, but the docs still
described the old `logos-cpp-generator --from-header --backend qt` path that
emitted `<name>_qt_glue.h` + `<name>_dispatch.cpp` and listed them explicitly
in CMakeLists SOURCES. None of that is current:

  - The generator derives a `.lidl` from the impl header, then runs the cdylib
    backend → `<name>_cdylib_glue.{h,cpp}` (uniform Qt-plugin glue) +
    `<name>_module_impl.cpp` (Qt-free C-ABI export wrapper).
  - `mkLogosModule` runs the pipeline automatically — no `preConfigure`.
  - `LogosModule.cmake` globs `generated_code/` — modules must NOT list the
    generated files in SOURCES (the bug fixed in #12).

Updated across the board:
  - guidelines/{codegen.md (rewritten),universal-module,nix-build,metadata-json}
  - docs/{spec.md,project.md}, README.md
  - skills/{create-universal-module,nix-flake-setup,wrap-external-lib}
  - generators/generate-agents-md.ts, mcp-server/tools/build-help.ts
    (build-help now flags the "generated_code in SOURCES" mistake directly)
  - regenerated llms-full.txt + llms.txt
  - refreshed the committed example trees (outputs/logos-*) to match current
    `init` output: minimal flake (no preConfigure), CMakeLists without the
    generated_code sources, and regenerated AGENTS.md/CLAUDE.md/.claude skills
  - re-rendered dev-boost-scaffold-module.md

No source-code/behavior changes — docs + generated context only.

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-14 11:54:08 -03:00
Dario LipicarandClaude Opus 4.8 52c41168a9 docs: emit daemon-client logoscore examples, drop inline (-c) mode (#10)
* docs: emit daemon-client logoscore examples, drop inline (-c) mode

logos-logoscore-cli's inline mode (`logoscore -m <dir> -l <mod> -c
"mod.method(args)" --quit-on-finish`) is being removed. Update everything
dev-boost emits/ships so generated module docs and guidance use the daemon +
client workflow instead:

  logoscore -D -m ./result/lib -l <module> &     # start a daemon
  logoscore call <module> <method> [args...]     # call a method (positional)
  logoscore stop                                  # stop when done

- Code generators: generate-agents-md.ts, build-help.ts, scaffold.ts now emit
  the daemon/start + `call` + `stop` sequence (scaffold derives positional
  method + space-separated args instead of a `module.method(args)` string).
- Guidelines (testing.md, universal-module.md) and skills (testing-modules,
  create-universal-module, package-lgx, create-full-app) rewritten to the
  daemon/client flow; CI guidance is "background daemon, run calls, stop".
- docs/spec.md and templates/full-app/README.md examples updated.
- llms-full.txt re-synced to match (it aggregates the above).

`tsc` still compiles (nix build of the default package passes).

Note: doctests/outputs/* are regenerated end-to-end by the doctest harness
(doctests/run.sh, which scaffolds + builds + executes the commands), so those
snapshots refresh from the updated generators on the next doctest run rather
than being hand-edited here.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* fix: address review — omit empty call args; fix llms type-detection line

- scaffold.ts: no-arg sample methods left `sampleCallArgs` empty, producing a
  trailing space / empty arg in the suggested `logoscore call`. Derive a
  `sampleCall` that omits the args when empty.
- llms-full.txt: the type-auto-detection line still said "`-c` args" while the
  surrounding section documents the `call` client command — now "`call` args".

tsc still compiles (nix build of .#default passes).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* docs: daemon starts clean — drop -l, load modules via load-module

Follow-up to dropping inline mode: logoscore's daemon now starts clean (the
-l/--load-modules autoload flag is removed). Update everything dev-boost
emits/ships to start a clean daemon and load modules with `load-module`:

  logoscore -D -m <dir> &
  logoscore load-module <module>
  logoscore call <module> <method> [args]
  logoscore stop

- Generators (generate-agents-md.ts, build-help.ts, scaffold.ts) emit a
  `load-module` step instead of `-D … -l <module>`.
- Guidelines/skills/docs/template + llms-full.txt updated (comma-separated
  `-l a,b` examples become one `load-module` per module).

tsc compiles (nix build of .#default passes).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-09 22:39:05 -03:00
Iuri Matias 8807e0b952 improve app generation 2026-05-18 18:41:14 -04:00
Iuri Matias 334fdf4fea separate the two type of apps in the scaffold 2026-04-23 09:54:37 -04:00
Iuri Matias 2743b276d2 add support for 'full app' scaffold and tooling 2026-04-23 09:45:23 -04:00
Iuri Matias af8105f17a Merge pull request #4 from logos-co/update_new_api
update for new supported types
2026-04-23 09:26:54 -04:00
Khushboo Mehta 70baf17bab feat: add support for new ui_qml file along with mcp server testing 2026-04-17 16:40:22 +02:00
Iuri Matias d35cf0f136 add test framework to scaffolded module 2026-04-14 10:38:58 -04:00
Iuri Matias aef51281f7 update for new supported types 2026-04-10 11:43:49 -04:00
Iuri Matias 0fa56cc246 fix scaffold of UI apps 2026-04-07 10:26:04 -04:00
Iuri Matias 57f3bbcea9 logos dev boost 2026-04-02 15:13:59 -04:00