Kharat Bot Docs

Publishing commands

From Command Studio to a reviewed marketplace package: versions, review, updates and withdrawal.

Publishing takes a working Command Studio definition and turns it into a marketplace package. The pipeline:

text
definition (Studio)
   β”‚  Submit to marketplace   (version + documentation + tags)
   β–Ό
pending review  ──approve──▢  published (public listing)
        β”‚
        └──reject (with reason)──▢ back to you, stays private

Submitting#

From a definition in Studio, Submit to marketplace asks for:

  • Version β€” must be semver (1.0.0). An update must be a higher version than the currently published one.
  • Documentation β€” an overview, key features, use cases, setup instructions, required permissions and limitations. This is what installers read; write it properly.
  • Category and tags β€” moderation, utility, welcome, fun or general; tags aid search.

The source is re-compiled at submit time. What gets published is a copy: the published version is stored immutably under its version number, and installs reference it. Later edits to your definition never mutate an already-published version.

Review#

A site admin approves or rejects. Rejections always carry a reason, which you see in Studio. Approval flips the package to the public listing (verified) and propagates the approved status to your definition.

Published packages can be unlisted β€” hidden from the catalogue while keeping existing installs working.

After publication#

EventWhat happens
A server installsIts pinned copy is created from the published version; your install count rises
You publish 1.1.0Installers see Update available; they pull it themselves
Someone forksThey get a detached copy; your package is unaffected
You withdrawThe listing disappears; existing installs keep working
Admin removesPackages with active installs are unlisted rather than deleted

Version discipline#

  • Published versions are immutable β€” a fix means a new version.
  • Updates must move the version forward; the submit form enforces semver and the bump.
  • Rollback on the installer side pins an older published version β€” which still exists exactly as it was.

Deleting definitions#

A definition with active installs cannot be deleted β€” uninstall it from servers (or withdraw the package) first. This protects every server running your command from disappearing out from under them.