pamoja 0.1.15
Added
- Signed firmware updates with verified rollback in
pamoja-update(#62). - LoRaWAN regional parameters: the RP002 channel plans, data rates, and
duty-cycle limits per region (#70), and the plans in every binding (#71). - Every capability in the Node, Python, and .NET bindings, with a
cross-language conformance suite pinning the wire bytes: identity, codecs,
and the helpers (#61); field I/O (#63); sensors and actuators (#64); radio
(#65); trust and operation (#66); the async transports (#68); profiles and
the robotics naming rules (#69); MAVLink framing (#72), named message fields
(#73), and the mission, command, and offboard protocols (#74). cargo xtask release --planderives the crates.io publish order from
cargo metadata, andcargo xtask versionsets and checks the version in
every manifest, lockfile, and generated file.- A preflight every release workflow waits on. A publish cannot be withdrawn, so
before anything reaches a registry it checks that the tree carries the version
being tagged, that the commit is on main, and thatci,node,python, and
dotnetall completed successfully on that exact commit. Each release
workflow also takes a version by hand, so a run that stalled can be resumed
without inventing a tag. - A GitHub release for each tag, carrying the changelog's entry for the version
followed by the pull requests that went into it, grouped by label. Labels come
from the files a pull request touches. - A documentation site at pamoja.molex.cloud/docs:
the guides rendered by mdBook and a generated reference for each language
(rustdoc, typedoc, pdoc, DocFX), built on every pull request and published
with the showcase.docs/capabilities.tomlis the one map of what each
capability covers in every language, checked against the code. - A
pamojacrate that bundles every capability behind a feature each, all on
by default, socargo add pamojais the whole framework the way
npm install pamoja,pip install pamoja, anddotnet add package Pamoja
are.pamoja::mqttispamoja-mqtt; with the default features off, naming
only theno_stdcapabilities builds for bare metal. - Guide examples that run as tests in all four languages, spliced into the
documentation from the test files, and the Python facade's doctests now run
with its test suite. Each is a program somebody would actually
write, end to end, rather than a set of assertions: it builds its own fixtures
from the library, prints what it learned, and keeps its checks below the region
the page shows. A guide's own wire bytes live in the crate's tests or in the
generated conformance vectors, so no page asks a reader to decode a constant. - Reading a value the library can produce, wherever it could only produce one:
a DS18B20 scratchpad and an INA219 register set can be built as well as
decoded, Modbus can build the replies it could already parse, a PCA9685 setting
and a J1939 payload can be read back out, and an identity signs and verifies a
message without a caller splitting the signature off by hand. cargo xtask buildsmeasures what each named feature set of thepamoja
crate compiles, resolved for a fixed target so the counts are the same on
every machine. The install page carries the table, regenerated and
drift-checked with the rest of the generated documentation.- Domains: the six chapters of the guides that hold more than one capability are
installable as a unit in every language. In Rust each is a feature on the
pamojacrate, so it decides what compiles. In the bindings each is a package
(@pamoja/field-io,pamoja-field-io,Pamoja.FieldIo) that brings in its
capabilities and, where the language allows it, re-exports each under its own
name; a name two capabilities share stays reachable and unambiguous, which a
flat re-export could not manage. Every domain is checked against the
capability map, so a capability cannot fall out of its own domain.
Changed
pamoja-ffiexposes every capability behind a default-on feature and now
depends on the whole workspace.- Verifying an audit chain reports why it failed in every language, not only in
Rust. The three bindings collapsed the engine's reason to a bare true or
false, so a caller could tell that a log had been altered but not which record
broke it or whether the log had instead been shortened. They now raise the
reason, the way every other fallible call in them already does. - A J1939 payload is a value with named signals rather than eight bytes to
slice, in every language:Signalsstarts filled with the byte the standard
reserves for a signal a controller is not reporting, the priorities and the
broadcast address are named, and a broadcast identifier has its own
constructor. The mesh header length and the two I2C address ranges the
specification reserves are exported from the bindings as well, since both were
known to the engine and to no caller. - The Node binding is split into packages the way the crates are.
pamojais
the whole framework in one package; each capability is its own@pamoja/<name>
for installing only what you use;@pamoja/coreis the engine's surface, the
counterpart ofpamoja-core; and@pamoja/nativeis the compiled engine and
generated contract every package depends on. The@pamoja/core/<name>subpath
imports are gone:@pamoja/core/mqttis now@pamoja/mqtt, and
@pamoja/core/rawis@pamoja/native. - The Python binding is split the same way.
pamojais the whole framework in
one distribution; each capability ispamoja-<name>, one module of the
pamojanamespace;pamoja-coreis the engine's surface (pamoja.core); and
pamoja-nativeis the compiled engine,pamoja._native, that every
distribution depends on.pamojais a namespace package now, so the flat
from pamoja import DeviceIdentitybecomesfrom pamoja.security import DeviceIdentity, andpamoja.transportispamoja.core. - The .NET binding is split the same way.
Pamojais the whole framework in
one package; each capability isPamoja.<Name>, a package and a namespace of
the same name;Pamoja.Coreis the engine's surface; andPamoja.Nativeis
the compiled engine and the P/Invoke contract (Pamoja.Native.Interop) that
every package depends on. Types keep their names but move namespaces
(Pamoja.Core.MqttClientisPamoja.Mqtt.MqttClient), and the transport
factories move next to their clients:Transport.Mqtt(options)is
MqttTransport.Open(options)andTransport.Coap(options)is
CoapTransport.Open(options).
Fixed
- Two blocks of constants were missing or broken in the generated C header.
cbindgendoes not read the cratespamoja-ffidepends on, so a constant
defined as another crate's constant was emitted as a bare identifier declared
nowhere in the header, and the three PCA9685 values were dropped from it
entirely. Each now carries its value with a compile-time assertion tying it to
the crate that defines it. - The capability tables in the install page and every binding README are grouped
by chapter, so thirty rows read as a handful of domains. Pamoja.Corewas two things at once, the engine's surface and the marshalling
every facade needs, so all twenty-nine capability packages depended on it. The
handle type, the error type, the status helpers, and string marshalling move to
Pamoja.Native, where the rest of the P/Invoke contract already lives, and
PamojaExceptionsits in the rootPamojanamespace so a facade sees it
without a using and a consumer catches it withusing Pamoja;. Only the five
transport packages depend onPamoja.Corenow, matching the Node and Python
bindings, where a capability package depends on the engine alone.- The Node facades exported enum constants a TypeScript caller could not pass to
the facade's own functions.PinLevel,PinEdge,PinPolarity,StepDrive,
LinkCost, andEntityKindheld plain strings, which are not assignable to
theconst enumthe generated contract takes, so every call needed a cast. The
smoke suites are JavaScript and never saw it. The constants carry the contract
type now, and@pamoja/ros2exports the contract'sEntityKindtype rather
than one derived from its own object. - The Node, Python, and .NET workflows all named their job "build and smoke
test", so a pull request showed three identical checks, none of which could be
required and none of which said which binding had failed. Each names its
language now. - The MQTT guide proved only that an unreachable broker is refused, which is the
one thing a reader does not need shown. It runs a real round trip now: a
gateway subscribes to a wildcard, a node publishes under it, and the reading
arrives with its topic. The Rust example starts an in-process broker, and the
three binding workflows start one, whichjust brokeralso starts locally. - The gateway pairing code no longer appears in a captured dashboard log (#67).
- Broken intra-doc links in the rustdoc of nine crates, which docs.rs rendered
as dead links;cargo docnow runs with warnings denied. pamoja-lorawith itsstdfeature on did not compile outside its own test
build, because the crate stayedno_stdregardless; it now linksstdwhen
the feature is on, and thepamojacrate's default build exercises it.- The install page described choosing packages as if it shrank a binding's
download. It does not: each binding loads one engine carrying every
capability, so the choice narrows the API and the dependency manifest. The
page now says which of the two applies per language and measures the Rust
claim, andpamoja-ffidocuments the feature sets that do shrink the library
for a C or C++ host that builds it.
Dependencies
Pull requests
Capabilities
- Add signed firmware updates with verified rollback by @molexxxx in #62
- Add LoRaWAN regional parameters by @molexxxx in #70
- Add the pamoja crate: every capability behind a feature by @molexxxx in #82
- Add nineteen capability guides by @molexxxx in #86
- Point every documentation link at the reference this project hosts by @molexxxx in #88
- Write the last nine capability guides by @molexxxx in #90
- Add the hardware reference and a link check for its sources by @molexxxx in #92
- Rewrite the guide examples as programs, and close the API gaps they exposed by @molexxxx in #94
Language bindings
- Widen the language bindings past MQTT by @molexxxx in #61
- Bring the field I/O to the language bindings by @molexxxx in #63
- Bring the sensors and actuators to the language bindings by @molexxxx in #64
- Bring the radio capabilities to the language bindings by @molexxxx in #65
- Bring the trust and operation capabilities to the language bindings by @molexxxx in #66
- Bring the async transports to the language bindings by @molexxxx in #68
- Bring profiles and the robotics naming rules to the language bindings by @molexxxx in #69
- Bring the LoRaWAN regional channel plans to every binding by @molexxxx in #71
- Bring the MAVLink wire layer to every binding by @molexxxx in #72
- Give MAVLink messages named fields in every binding by @molexxxx in #73
- Bring the MAVLink service protocols to every binding by @molexxxx in #74
- Split the Node binding into one package per capability by @molexxxx in #77
- Split the Python binding into one distribution per capability by @molexxxx in #78
- Split the .NET binding into one package per capability by @molexxxx in #79
- npm: bump @types/node from 26.4.0 to 26.4.1 in /bindings/node in the npm-minor group by @dependabot[bot] in #91
Fixes
Documentation
- Build the documentation site and publish it under /docs by @molexxxx in #76
- Run the guide examples as tests, and measure what a build carries by @molexxxx in #83
- Link the four languages to each other, and rewrite the README as a front door by @molexxxx in #84
- Give every documentation site the showcase palette by @molexxxx in #85
Continuous integration
- Derive the crates.io publish order and add a lockstep version task by @molexxxx in #75
- Check a release before it publishes anything, and write its notes by @molexxxx in #87
- ci: bump taiki-e/install-action from 2.87.1 to 2.87.4 in the actions-minor group across 1 directory by @dependabot[bot] in #81
- Hold the sdist and pure-package builds behind the release preflight by @molexxxx in #93
Dependencies
- cargo: bump napi from 3.12.1 to 3.12.2 in /bindings/node in the node-cargo-minor group across 1 directory by @dependabot[bot] in #55
- cargo: bump pyo3 from 0.29.1 to 0.29.2 in /bindings/python in the python-cargo-minor group across 1 directory by @dependabot[bot] in #56
- npm: bump the npm-minor group across 1 directory with 2 updates by @dependabot[bot] in #57
- ci: bump the actions-minor group across 1 directory with 2 updates by @dependabot[bot] in #59
- cargo: bump the cargo-minor group across 1 directory with 4 updates by @dependabot[bot] in #60
- cargo: bump toml_edit from 0.25.12+spec-1.1.0 to 0.25.13+spec-1.1.0 in the cargo-minor group across 1 directory by @dependabot[bot] in #80
Full Changelog: v0.1.14...v0.1.15