GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Tags · webarkit/jsartoolkitNFT
Tags
1.16.0chore: release 1.16.0 (#782) * doc: import AGENTS.md into CLAUDE.md and bring AGENTS.md up to date (#767) CLAUDE.md now imports AGENTS.md with `@AGENTS.md`. Claude Code loads only CLAUDE.md on its own, so a link left the rest of AGENTS.md out of context unless the agent opened it. With the import the five repeated rules are redundant; CLAUDE.md keeps only the Claude-specific worktree trap (.claude/worktrees resolves the parent's node_modules, #664). AGENTS.md, checked against dev: - .nvmrc names the major only since #636, not an exact patch release. - The dev-behind-master check counted release merge commits, which live only on master; use --no-merges. - Releases: merge commit for dev -> master, Closes #n in that PR, tag the merge commit (main.yml usually commits nothing since #690), master back into dev only if it did; the Python release (python/<version>). - New: submodules, setup-docker/build-docker, the rest of the code layout (tracker facade, RuntimeSettings, src-esm, emscripten bindings, python-bindings, specs, the ES6 legacy API file), playwright install, tools/compare-builds.js, and recording the reason in the change. Co-authored-by: Claude Opus 5.5 <[email protected]> * doc: generate TypeDoc from the package entry points (#763) (#768) TypeDoc only documents what is reachable from its entryPoints, and the hand-kept list in tsconfig.json predated the tracker: NFTTracker, createNFTTracker, createNFTTrackerWorker and the tracker types had no pages. The options move to typedoc.json, pointed at the four files the exports map serves (index, index_td, index_simd, index_node), so any new export is documented without touching the config. - Four modules, one per build, named after the import specifier with @module, because each build has its own ARToolkitNFT, ARControllerNFT and createNFTTracker. Shared types are documented once and referenced from the other modules. - createNFTTracker gets @function so it has a function page with its signature instead of a variable page. - NFTLoadErrorKind and BuildName are exported (type-only) from the entry points: NFTLoadError.kind and NFTTrackerWorkerOptions.build are typed with them, but consumers could not import them. dist/ is unchanged; types/ is regenerated. - AbstractARControllerNFT and IARToolkitNFT_node are listed in intentionallyNotExported: internal interfaces the Node classes implement, not public API. - Fix two JSDoc errors (an unused @PARAM id on getNFTData, "urlOrData:" on loadCamera) and two README issues TypeDoc reported: nodejs fences are shell commands (now bash), and the examples/node folder link is absolute since TypeDoc cannot copy a folder. npm run docs -- --treatWarningsAsErrors: 0 errors, 0 warnings (12 before). Co-authored-by: Claude Opus 5.5 <[email protected]> * chore: propose the API docs to webarkit.org on every release (#764) (#769) * chore: propose the API docs to webarkit.org on every release (#764) deploy-docs.yml builds the TypeDoc reference and opens a pull request on webarkit/webarkit.github.io against its dev branch, replacing public/api/jsartoolkitnft/, which /jsartoolkitnft/api shows (website #65). It never pushes to the website's dev or master: a person checks the deploy preview and merges. Triggers: - a release tag, same pattern as publish.yml. A separate workflow, so a docs failure never blocks or fails the npm release; - workflow_dispatch with an existing tag, to redo the docs of a release; - pull_request on changes to the workflow or typedoc.json: a dry run that builds the docs with --treatWarningsAsErrors and the website with them in, and opens nothing. It reads the public website repo with the default token, so the secret is never exposed to PR runs. Differences from the draft in the issue: - git push --force, not --force-with-lease: the CI clone has no remote-tracking ref for the branch, so a re-run for the same tag was rejected as "stale info" (reproduced locally). The branch is bot-only. - An open PR for the branch is looked up first, instead of `gh pr create || echo`, which also hid auth and base-branch errors. - The tag and the WEBSITE_DOCS_TOKEN secret are checked first, with clear errors; the checkout uses refs/tags/<tag> as publish.yml does (#619). - --treatWarningsAsErrors on PRs only: tags before #763 warn with their old config, and a release's docs should not be held back by a warning. - npm ci --ignore-scripts: TypeDoc needs neither canvas nor sharp. AGENTS.md: the release steps gain the website PR, and a warning never to push a test tag (publish.yml and main.yml both act on tags). Co-Authored-By: Claude Opus 5.5 <[email protected]> * chore: run the docs dry run on every TypeDoc input (#764) The pull_request dry run fired only on changes to the workflow and typedoc.json, so a PR that touched only the sources could break the docs build and nobody would know until the next release (Qodo review on #769). It now also runs on src/**, tsconfig.json, package.json, package-lock.json and README.md: everything TypeDoc reads. The review's list missed the README, which is the docs' front page and gave 3 of the 12 warnings fixed in #763. The dry run takes about 40 seconds. Co-Authored-By: Claude Opus 5.5 <[email protected]> * doc: say the docs PR updates the folder's contents, not the folder (#764) "Replacing public/api/jsartoolkitnft/" read as if the folder changed. It stays, and so does /jsartoolkitnft/api; only the docs inside are rewritten for each release. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]> * chore: bump @webarkit/oneeurofilter-ts to 0.3.0 (#773) 0.3.0 keeps filter() bit-for-bit identical to 0.2.1 (webarkit/OneEuroFilter-ts#10), drops the console.log that 0.2.1 printed on the first filter construction, and adds filterStep(), which the fix for #766 will use. The package is bundled into every dist bundle, so they are rebuilt here. src/tracker/filters/oneEuro.ts still constructs the filter with two arguments, so the new optional dCutOff keeps its default. Co-authored-by: Claude Opus 5.5 <[email protected]> * test: tracker spec hygiene (independent filter specs, direct host tests, Node error kinds) (#770) * test: make the tracker filter specs independent (#753) "keeps the old filter when a new module fails" reused the oneEuro and raw trackers created by an earlier spec, so it failed when run alone. It now creates and disposes its own, and asserts that a filter module that fails to load makes no native filtering call. Co-Authored-By: Claude Opus 5.5 <[email protected]> * test: test the tracker worker host directly (#753) tracker-host.test.ts drives runHost() on the page thread with a fake scope and a stub factory: protocol version mismatch, a non-object message, a second init, a request before init, a failed init, an unknown request type, the td pthread URL and the dispose answer. runHost() takes the scope as an optional third parameter, `self` by default: on the page `self` is the test's own window, whose postMessage and onmessage the runner may use. Running in the page also gives host.ts coverage, which the uninstrumented worker bundles never did (part of #762). dist/ and types/ are rebuilt for the new parameter. Co-Authored-By: Claude Opus 5.5 <[email protected]> * test: cover the Node tracker's error reasons and dispose its controller (#753) The Node loader throws only argument, missing and rejected, so the reasons it can report are network (already tested), unknown (an empty source) and capacity (21 loads). format is browser-only. The pose test now tears down the Node controller it creates. Adds the design and plan for #753, #749 and #765. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]> * feat: abort createNFTTrackerWorker's init with an AbortSignal (#771) * feat: abort createNFTTrackerWorker's init with an AbortSignal (#749) The init waited for the worker's answer with no limit, so a worker that loaded but never answered left the Promise pending forever. A new `signal` option bounds it: a signal already aborted starts no worker; an abort during init terminates the worker and rejects with signal.reason. A timeout is AbortSignal.timeout(ms). There is no default timeout, because compiling the WASM on a slow phone takes several seconds. The signal has no effect once the call resolved. A failed init now terminates the worker once: an abort or a crash has already closed it. D13 is amended in the facade design; the README documents the option. dist/ and types/ are rebuilt. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix: reject when the abort lands in the same tick as the init reply (#749) The race settled with the init reply, then the abort closed the wrapper, so the call resolved with a tracker whose every call threw. It now rejects with the signal's reason in that case too. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix: check the signal again once the abort listener is registered (#749) An abort between the first throwIfAborted() and the listener's registration (from a getter on opts or from the worker factory, synchronously) fired no listener, so a worker that never answered left the call pending. The signal is now checked again at the top of the try; the catch closes the worker once and rethrows the reason. Found by Qodo's review of #771. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]> * feat: a light ./client entry for createNFTTrackerWorker (#772) * feat: add a light ./client entry for createNFTTrackerWorker (#765) A page that ran the tracker with createNFTTrackerWorker could only get the wrapper from a full build, so it downloaded the WASM twice and never ran the first copy (about 290 kB gzipped). `@webarkit/jsartoolkit-nft/client` resolves to dist/NFTTracker.client.mjs (4,179 bytes): createNFTTrackerWorker and its types, no WASM. It is built like the worker bundles, an ES module with the real import.meta.url, because its default workerBase is its own folder; the UMD bundles' URL-global mapping would break that. The clean step now owns NFTTracker*.mjs, and TypeDoc documents the new entry. Co-Authored-By: Claude Opus 5.5 <[email protected]> * doc: use the client entry in the tracker example and README (#765) The tracker example imports createNFTTrackerWorker from dist/NFTTracker.client.mjs instead of loading dist/ARToolkitNFT.js for a global, so the only WASM it downloads is the worker's. The README documents the client: nothing to pass when it is loaded as it is; a bundled client must pass workerBase, and the app serves the four NFTTracker* files itself. Co-Authored-By: Claude Opus 5.5 <[email protected]> * doc: say which bundler the client's workerBase advice was checked with (#765) Only Vite has been checked. Another bundler may resolve the client's new URL(".", import.meta.url) at build time, so the README no longer claims webpack and esbuild, and asks for reports. It also notes that the example passes workerBase explicitly. Co-Authored-By: Claude Opus 5.5 <[email protected]> * test: the client bounds the start with a signal (#765) The client holds its own copy of createNFTTrackerWorker, so a client built before #749 lacked `signal` with no git conflict to show it. The spec aborts a start whose worker never answers: it hung with the old client and passes with the rebuilt one. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]> * fix: keep oneEuro-filtered poses rigid (#766) (#775) * fix: add SO(3) log, exp and polar step for the pose filter (#766) The oneEuro filter will smooth a rotation's step in its tangent space, log(R̂ᵀR), instead of the 9 matrix entries, which lose rigidity. These are the allocation-free helpers it needs: logSO3 (with the near-π axis taken from the symmetric part), expSO3 (Rodrigues, series below 1e-4) and one Newton polar step against rounding drift. With the design and the plan. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix: filter the oneEuro pose's rotation on its tangent space (#766) Smoothing the 16 pose values one by one made R lose rigidity: column norms 0.989 to 1.0007 and det down to 0.984 on a hand-held camera, so the content scaled and sheared with the motion. The rotation's step log(R̂ᵀR) now goes through filterStep() and R̂ ← R̂·exp(ω̂), with one polar step against rounding drift; the translation goes through filter() as a vector. One minCutOff/beta pair and the D19 defaults are kept: for small rotations the change of R's entries is about the angle in radians, the scale of ω. The filter specs now use rigid poses (a matrix filled with one value is not a rotation). New: the translation matches the package, a rotation about z is filtered as its angle, 5000 noisy frames stay rigid within 1e-9 (fails on the old module), a time that does not increase, non-rotation input stays finite. Co-Authored-By: Claude Opus 5.5 <[email protected]> * test: check oneEuro poses stay rigid on the Node build (#766) The Node build's static photo is where #766 measured column norms down to 0.9995. Every smoothed pose now stays rigid within 1e-9 (below 4e-15 in practice); the old bundle fails with 3.6e-5. The first found pose is skipped: the filter returns it as is, and the core's raw poses are rigid only to about 1e-7, which the design now says. dist/ and types/ rebuilt. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix: a refused time during oneEuro warm-up returns the input (#766) Found by the final review: a timestamp that does not increase returned the filter's smoothed state before the warm-up check, so during warm-up it output a pose warm-up had never shown (a one-frame jump of about 28° in the spec). As before #766, a refused sample changes no state but counts as a warm-up sample and returns its input while warming. dist/ rebuilt. Co-Authored-By: Claude Opus 5.5 <[email protected]> * perf: logSO3 allocates nothing above pi/2 (#766) Review on #775: the large-angle branch of logSO3 built two small arrays on every update whose step is at least 90 degrees, against the module's allocation-free promise. The axis is now built in the caller's `out` array, with the diagonal read straight from the matrix. Same math; "exp then log gives the vector back" covers the branch (it fails with the sign broken). dist/ rebuilt. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]> * chore: leave the worker entry files out of coverage (#762) (#776) * chore: leave the worker entry files out of coverage (#762) host_default.ts, host_simd.ts and host_td.ts hold one statement each, runHost(...), which runs only inside the worker bundle loaded from a Blob URL, where istanbul does not reach, so they read 0 %. Their logic, host.ts, is measured on the page since #770 (71 %, unchanged), and tracker-worker.test.ts still starts every build's worker. Instrumenting the worker for three one-line files was not worth it. The Node classes stay unmeasured until the Node part of #734 folds them into the base classes; vitest.config.ts, codecov.yml and AGENTS.md say both. Part of #762, with its plan. Co-Authored-By: Claude Opus 5.5 <[email protected]> * doc: say the Node classes stay in coverage at 0% on purpose (#762) Review on #776: the comments said both "read 0 %" and "not measured", and the README did not mention either gap. The Node classes stay in coverage.include deliberately: unlike the one-line worker entries, they are real code nothing measures, so excluding them would hide the gap and raise the number until #762 measures them after #734. vitest.config.ts, codecov.yml, AGENTS.md and the README now say so in the same words. No config change. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]> * chore: type-check the browser tests in CI (#752) (#779) Vitest strips the tests' types without checking them, and tsconfig.json includes src/ only, so a spec could use a type the library does not export, or build an object that does not satisfy one, and still pass. tsconfig.test.json adds tests/vitest/ (bundler resolution, which reads vitest's exports maps; skipLibCheck for the tools' own declarations), `npm run typecheck` runs it, and CI runs it after the format check. The first run found five errors in the specs, fixed here: - pose-math called ar.dispose(), which ARControllerNFT does not have; - tracker-worker-abort passed an argument to a factory that takes none; - tracker-worker read .info and .time without narrowing the union; - tracker.test's accumulator had an implicit any[] return. tests/node/ is plain JavaScript run on dist/ and stays out. Co-authored-by: Claude Opus 5.5 <[email protected]> * fix: put a marker prefix's extension before its query string (#760) (#778) loadMarkerSource built the derived URLs by concatenation, so a prefix such as pinball?v=2 was fetched as pinball?v=2.zft and pinball?v=2.fset, and a cache-busting or signed prefix URL could not be used. The new Utils.withExtension adds the extension to the path and keeps the query and hash after it, for the .zft probe and the three files alike; it reads the string, as extensionOf does. addNFTMarkers and the tracker's addNFTTargets share the loader. The Node loader reads file paths, where ? and # carry no URL meaning, so it is unchanged. dist/ rebuilt. Co-authored-by: Claude Opus 5.5 <[email protected]> * fix: configure() names a non-finite float setting (#761) (#777) * fix: configure() names a non-finite float setting (#761) checkValue only checked typeof for the float settings (near, far, detectionInterval, ar2.trackingThresh, ar2.simThresh), so NaN and Infinity reached the core. The core refuses them too (isfinite in WebARKitLib's NFTRuntimeSettings.h), but as a RangeError for the whole patch, without naming the key. They are now a TypeError naming the key, as for non-integers. The tracker facade forwards its core keys to the same check. dist/ rebuilt. Co-Authored-By: Claude Opus 5.5 <[email protected]> * test: assert TypeError, not only the key, for ar2.simThresh (#761) Review on #777: the simThresh cases checked only the message, so a RangeError naming the key would have passed. They now require both the TypeError and the key, in the browser and Node suites and through the tracker facade. Checked by making only ar2.simThresh throw a RangeError: the browser and facade specs failed, at those assertions. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]> * chore: release 1.16.0 (#781) * chore: release 1.16.0 The version in package.json and in both legacy API files, with both rebuilds: build/ in a one-off emsdk:4.0.17 container (the API files are --pre-js), dist/ with build-ts (version is inlined). Co-Authored-By: Claude Opus 5.5 <[email protected]> * doc: README for configure() non-finite values and versioned marker URLs configure() now names a NaN or Infinity setting with a TypeError (#761), and a marker prefix keeps its query string at the end (#760). The 'Behaviour changes' list under configure() belonged to 1.15.0; it now says so. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]> python/0.0.13Merge pull request #650 from webarkit/dev chore: bring the Python publish fixes to master PreviousNext
|
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |