Skip to content

docs: copy-paste examples for CommandGroup, conversations, and export - #13

Merged
Pinont merged 2 commits into
mainfrom
cursor/wiki-examples-838d
Sep 7, 2026
Merged

docs: copy-paste examples for CommandGroup, conversations, and export#13
Pinont merged 2 commits into
mainfrom
cursor/wiki-examples-838d

Conversation

@Pinont

@Pinont Pinont commented Sep 7, 2026

Copy link
Copy Markdown
Owner

GitHub wiki is unpublished (Pinont/SingularityLib.wiki 404s), so consumer examples live under docs/examples/ instead.

What this adds

Copy-paste pages verified against current APIs:

Page Source of truth
docs/examples/command-group.md CommandGroup / SubCommand on this repo main
docs/examples/conversations.md DevTool StartConversation / PromptWorldInput at 72ff53e (rework/v2, DevTool PR #1)
docs/examples/export-snippets.md ItemSnippet.studioItemCreator / studioCustomItemnew ItemCreator(CorePlugin.getInstance(), Material.…)

README Usage now points at docs/examples/.

API checks baked into the snippets

  • ItemCreator(Plugin, Material) (no Plugin-less ctor)
  • ConversationFactory.withModality(false) + escape cancel
  • CustomItem.register() returns the builder; getInteraction() may be null
  • Attributes.setAttribute returns a new stack (reassignment required)
  • Help / unknown / permission strings print raw getName() (including name:alias)

Companion

In-game click paths: Singularity-DevTool PR #2rework/v2 (never main).

Out of scope

  • No CI / release.yml changes
  • Do not add the release label (DevOps owns that)
Open in Web Open in Cursor 

…port

GitHub wiki is unpublished (SingularityLib.wiki 404). Put consumer examples
under docs/examples/ verified against CommandGroup on main and DevTool
rework/v2 at 72ff53e (ItemCreator(Plugin, …), ConversationFactory
withModality(false), cancel escape).

Co-authored-by: Nonnipat Tangrojjanakhajorn <contact@pinont.me>
Help, unknown-subcommand, and permission messages print the raw getName()
string (e.g. arena:ar), not the first alias token.

Co-authored-by: Nonnipat Tangrojjanakhajorn <contact@pinont.me>
@Pinont
Pinont marked this pull request as ready for review September 7, 2026 06:10
Copilot AI lite review requested due to automatic review settings September 7, 2026 06:10

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@Pinont
Pinont merged commit 3bc4ab6 into main Sep 7, 2026
3 checks passed
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.

3 participants