Commit Graph
123 Commits
Author SHA1 Message Date
zsviczian abf35c06de Fix image-heavy CLI revisions and add bounded image previews 2026-10-15 06:17:18 +02:00
zsviczian cb0e2913d8 Identify drawing load failures and add read-only details (#2995) 2026-10-13 18:42:59 +02:00
zsviczian a4b74d2b3a Merge remote-tracking branch 'origin/master' into perf/reduce-main-bundle-size 2026-10-13 18:18:14 +02:00
zsviczian 62345d4feb Reduce production bundle size with module identifier mangling 2026-10-13 18:18:02 +02:00
zsviczian b0b8a2b039 deploying mindmap builder and fixing inline link suggester keyboard event handler getting stuck 2026-10-13 17:31:24 +02:00
zsviczian 769d58ea45 Merge remote-tracking branch 'origin/master' into 2026-10-11-obsidian-excalidraw-cli
# Conflicts:
#	docs/OBSIDIAN_RUNTIME_TESTING.md
#	scripts/testing/host/verify.mjs
2026-10-11 21:48:58 +02:00
zsviczian 41072f2929 feat: add native Excalidraw CLI with gated Obsidian API support 2026-10-11 21:48:32 +02:00
zsviczian 07dec1218c Fix LaTeX editor input in popout windows (#2970) (#2991)
* docs: prepare focused LaTeX popout input handoff for #2970

* Fix LaTeX editor input in popout windows
2026-10-11 20:40:40 +02:00
zsviczian d39bfa9c6d Merge current master and document test CLI security boundary 2026-10-11 16:59:49 +02:00
zsviczian 5e2bb7719f Fix relative image and nested Markdown-side embeds (#2979) 2026-10-11 16:20:16 +02:00
zsviczian f0dd5cb7ca fix: select grouped members before modifier-click navigation 2026-10-11 16:05:13 +02:00
zsviczian 8a9f33a33f Fix Markdown embed rendering across temporary detachment (#2953) 2026-10-11 15:11:35 +02:00
zsviczian 3551b706a8 fix: preserve restored text when editing after undo or redo 2026-10-11 14:29:51 +02:00
zsviczian 078f48e28a Support Obsidian CLI testing on Windows and macOS 2026-10-11 13:22:07 +02:00
zsviczian 593ad99bab Merge PR #2959 with mount lifecycle fixes and 2.29.0 release note 2026-10-03 13:10:05 +02:00
zsviczian 3d8f312add Obsidian CLI testing framework 2026-09-29 17:26:28 +02:00
askalf 921f679f0b keep the mount plan checks runnable against the factory on master
master now builds the factory's Canvas leaf directly and inserts it into the
detached split, instead of calling workspace.createLeafInParent(). The check
script's stand-in WorkspaceSplit gains insertChild, and the fake workspace
drops the createLeafInParent it no longer needs. All 21 mount plan checks and
the call site checks pass on the merged tree.
2026-09-28 19:47:24 +00:00
askalf 0d5a809372 simplify mount check wording 2026-09-25 17:32:29 +00:00
askalf 496d451914 Simplify embeddable mount check wording 2026-09-25 16:55:21 +00:00
askalf f25a7ba08b simplify embeddable mount checks 2026-09-25 16:18:24 +00:00
askalf eb284a1c85 bound the injected poll delay so a wait that never ends fails the block 2026-09-25 05:26:48 +00:00
askalf 6e3c8d7468 fold the factory lifecycle checks into the mount plan script
Events that used to be sequenced with timers now land on a named poll of the
wait, through the injected delay, so each block asserts the poll it ended on
rather than an elapsed time. The one block whose subject is elapsed time, the
slow real factory, still runs against the clock.
2026-09-25 05:23:09 +00:00
askalf 41e578320c describe the mount host selection as it stands 2026-09-25 05:23:09 +00:00
askalf a951d371cb pin the three inputs the mount dispatch forwards to the helper 2026-09-25 03:43:27 +00:00
askalf d31ac3b62b require the mount effect to reach the factory only through the dispatch
The wiring checks pinned where the dispatch sits and how it cancels, but
not what else the effect does beside it. A readiness read in the effect's
own body (an early return onto the workspace leaf, or a ternary choosing
it) restores the whole-file leaf on a slow start while every existing
check stays green, and so does a direct createNode() or
mountWorkspaceLeaf() call next to the dispatch, which mounts a second
host. Reject both: the effect may not name canvasNodeFactory outside the
closures it hands the helper, and may not call either mount path itself.
2026-09-24 14:48:53 +00:00
askalf f96cbc53ff keep the clock in the two cap blocks whose subject is elapsed time
Counting reads made the cap blocks stop discriminating: the cap is a
wall-clock quantity, so readiness has to land after real elapsed time for
its expiry to be the thing under test. Both are green at base again without
them.
2026-09-22 12:09:04 +00:00
askalf dbc9476202 fold the mount checks into the repository's check-script idiom
The mount-plan checks had grown a case per scenario with narrated assertion
labels, so the three scripts read as a patch history rather than as a
description of the behaviour. Table the cases that share a shape, name each
block for what it pins, and run them through the same per-block runner the
lifecycle checks already use, so an arm that reintroduces one defect reports
every block it breaks instead of stopping at the first.

Sequencing by wall clock goes with it: the hosts now ready, give up or
cancel on a counted read, which is what the poll loop actually observes.
Only the two blocks whose subject is elapsed time still use timers. Drop the
helper JSDoc, the issue numbers the squashed commit will carry anyway, and
the comments arguing the implementation is correct rather than recording the
contract.
2026-09-22 12:05:10 +00:00
askalf 8e08316ba6 scope the cancellation-flag check to the mount effect's own body
The declaration check counted `let effectCancelled = false;` in the whole
file, so moving the sole declaration to module or component scope still
satisfied it while leaving a flag shared by every invocation: one
embeddable's cleanup then cancels the mount that replaced it, which is the
regression the flag exists to prevent. Parse the effect instead and require
the declaration's enclosing function to be the effect itself.

Reading the syntax tree also replaces the text heuristics for the other
wiring rows: the dispatch must be a statement of the effect's body and the
whole of its expression, which rejects an `if` gate and an `&&` operand
directly rather than by inspecting the preceding line.
2026-09-22 11:56:58 +00:00
askalf 1eb1aa9ff0 pin the canvas node factory's lifecycle settle sites
The mount wait's consumer was covered through the injected host interface, but the three sites that settle whenInitialized -- initialize() succeeding, its catch, destroy() -- were only read. Aliasing the two modules the factory imports but does not exercise lets it run under node, so the producer side and the real factory through the real dispatch are executed too.
2026-09-21 03:14:27 +00:00
askalf a18fd81133 pin the lifecycle wait and the per-dispatch cancellation latch
Seven discriminating checks and three controls for the lifecycle wait and
the superseded-mount latch, plus call-site assertions requiring the
dispatch to consult this invocation's own cancellation flag and the
cleanup to raise it before its early returns.
2026-09-21 01:48:41 +00:00
askalf d38510fad7 wait for the canvas node factory's lifecycle instead of a fixed timeout
A subpath embed fell back to a whole-file workspace leaf whenever the
factory took longer than the two second cap to initialize. Startup can
legitimately outlast it: layout ready polls up to 50 x 50 ms before
initialize() is called, and initialize() then awaits the core canvas
plugin's load, so the cap cannot tell a slow start from one that will
never finish. CanvasNodeFactory now exposes whenInitialized, settled on
every terminal path, and the wait uses it; the cap remains only for a
host that reports no lifecycle.

Cancellation also latches per dispatch, so a mount superseded by a link
change cannot mount over its replacement once the shared refs are
repopulated.
2026-09-21 01:42:31 +00:00
askalf b48112e4ca pin the mount dispatch against a readiness gate and cover zero/nullish waits
The call-site check accepted a dispatch re-gated on
view.canvasNodeFactory.isInitialized(), which skips the wait inside
mountEmbeddableHost and restores the whole-file workspace leaf while both
check scripts stayed green. Require the dispatch to be reached
unconditionally.

Also pin the boundaries the existing rows only reached by argument: a zero
timeout, an undefined subpath, a null extension, a factory that never
appears or is torn down mid-wait, the synchrony of both fast paths, a
teardown landing as the factory readies, and concurrent embeddables.
2026-09-20 13:34:16 +00:00
askalf 5c5e351258 pin the embeddable mount dispatch at its call site
The mount-plan checks exercise the helper only, so removing the dispatch
from the mount effect and keeping the helper leaves them green while the
back-of-the-note embeddable regresses to a whole-file workspace leaf.
Check the wiring against the source of the effect, which cannot be
imported here because it pulls in the types-only obsidian package.
2026-09-20 13:09:37 +00:00
askalf 9e69f245b5 move the mount-plan check to the repository's script convention
The first version of the regression test used node:test inside src/, which
the repository's own lint rejects there: src/ is runtime code that must work
on mobile and in popout windows, so node built-ins and bare timers are
banned. Follow scripts/check-*.mjs instead - jiti-imported TypeScript with
node:assert, outside the linted source tree - and inject the wait primitive
so the module can still default to Obsidian's sleep global.
2026-09-20 11:30:58 +00:00
zsviczian 74d1529dcb Merge remote-tracking branch 'origin/master' into reimagine-scriptstore 2026-09-19 16:21:26 +02:00
zsviczian a5ec501be8 remove updating of the legacy index-new.md file 2026-09-19 15:53:31 +02:00
zsviczian b661cb45f5 updated ai skill generator to announce manifest update 2026-09-19 11:34:47 +02:00
zsviczian 6474b18464 updated ai skill generation 2026-09-19 11:29:35 +02:00
zsviczian bf93306fbd restored directory-info.json and updated header 2026-09-19 11:28:42 +02:00
zsviczian abebbc22fd updated AI skill generation 2026-09-19 10:31:23 +02:00
zsviczian 9b11d9e79f initial scriptstore commit 2026-09-19 06:18:14 +02:00
zsviczian 98d0fb193c moved to platform independent repozitory zip / update functions 2026-09-19 06:10:37 +02:00
zsviczian a01e337336 Fix exponential nested dependency traversal 2026-09-17 17:44:05 +02:00
zsviczian 4948e4e347 fix 2929 2026-09-16 09:42:14 +02:00
zsviczian e422209667 chore: finalize persistence refactor cleanup 2026-09-14 19:38:29 +02:00
zsviczian b9481c320a refactor: own reload suppression state 2026-09-14 19:08:34 +02:00
zsviczian 1354930dff fix: resolve autoexport settings from saved text 2026-09-14 18:11:21 +02:00
zsviczian 839f0547a0 refactor: move save state into coordinator 2026-09-14 17:44:43 +02:00
zsviczian 1d1dd36554 refactor: invalidate stale view loads 2026-09-14 17:22:43 +02:00
zsviczian 452107f653 refactor: coordinate prepared autoexports 2026-09-14 13:20:26 +02:00