Skip to content

feat: expose bookmark library and shared opening contracts - #63

Draft
manishakuhar wants to merge 1 commit into
risa-labs-inc:mainfrom
manishakuhar:feat/bookmark-library-contracts
Draft

manishakuhar wants to merge 1 commit into
risa-labs-inc:mainfrom
manishakuhar:feat/bookmark-library-contracts

Conversation

@manishakuhar

Copy link
Copy Markdown

The bookmark library currently needs a locally built host contract jar because the official SDK does not expose its library or shared-opening APIs. This adds the six matching contract types so consumers can use an official SDK release after this prerequisite is merged and released.

The contracts cover revision-checked mutations, independent favorite membership, explicit unfiled folder identity, mutation results, and window-scoped bookmark opening. Existing APIs and model constructors are unchanged; the API dump adds 112 lines and removes none. The six classes have identical public JVM descriptors to the host implementation in risa-labs-inc/BossConsole#759.

Validation: ./gradlew apiDump followed separately by ./gradlew build passes, including apiCheck and all 121 tests. A new linkage regression checks the Compose $stable fields needed by consuming plugins. Public descriptors were compared with the built host bookmark-types jar using javap -public -s.

This is a prerequisite for risa-labs-inc/boss-plugin-bookmarks#22. SDK types do not guarantee host behavior: that plugin now checks the registered BookmarkOpeningProvider before initializing storage or migrating data. Once maintainers release this SDK change, the plugin can pin the actual released version and its minApiVersion, remove the temporary source-contract build, and use the existing release workflow. No future SDK/BOSS version is guessed, no SDK release is created here, and no production plugin is published. Kept draft for coordinated maintainer review with the host/plugin changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant