Create or replace a saved package by writing a complete UTF-8 text file set (no binary assets).
Create or replace a saved package by writing a complete UTF-8 text file set (no binary assets). Coding agents with local filesystem/git access should prefer packageGetGitRemote (pass create: true for new packages) to clone, edit, push, and publish with packagePublishExternalPush; tool-only agents use packageSave or repo sessions. The package repo is rooted at package.json and package.json#kody is the Kody-specific metadata block. Publish requires non-empty root README.md (human-focused: what it does, prerequisites, setup, done-when, plus a concise Intent section) and AGENTS.md (agent-focused: imports, smoke tests, edge cases). Ask the user if intent is unclear. Visibility is a repo setting (packageUpdate / repoUpdate), not package.json "private". Leftover "private" in manifests is ignored for catalog listing. New packages are created private; set changes.visibility: "public" after the user asks to list them on /community. Production package source safety policy: never replace source history, force publish, or packageSave over an existing package unless Kody has created a restorable backup snapshot and the user explicitly approved destructive overwrite. If existing source cannot be cloned or verified, stop and report the source recovery problem.
Org permission: package:write.
Request
- Base URL: https://api.kody.codes
- URL: https://api.kody.codes/v1/packages
- Auth: HTTP bearer
Request body
Response
Success.
Changes
No recorded changes to this operation across all 2 revisions of this API.