@rayul/kordis 0.8.0 → 0.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +8 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -3810,7 +3810,14 @@ import { Command as Command7 } from "commander";
3810
3810
  function infoCommand() {
3811
3811
  return new Command7("info").description("show details about a package").argument("<full_slug>", "package identifier {username}/{slug}").action(async (fullSlug) => {
3812
3812
  const [username, slug] = fullSlug.split("/");
3813
- if (!username || !slug) throw new Error('full_slug must be "{username}/{slug}"');
3813
+ if (!username || !slug) {
3814
+ if (!fullSlug.includes("/")) {
3815
+ throw new Error(
3816
+ `"${fullSlug}" looks like a username, not a package \u2014 try \`kordis profile ${fullSlug}\` for user details, or pass a full slug like "{username}/{slug}".`
3817
+ );
3818
+ }
3819
+ throw new Error('full_slug must be "{username}/{slug}"');
3820
+ }
3814
3821
  const bundle = await useClient();
3815
3822
  const detail = await bundle.api.getPackage(username, slug);
3816
3823
  const typeDefaults = CAPABILITIES_OF_TYPE[detail.type];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rayul/kordis",
3
- "version": "0.8.0",
3
+ "version": "0.8.1",
4
4
  "private": false,
5
5
  "description": "Command-line client for the Kordis registry — discover, install, and publish agentic-coding packages.",
6
6
  "license": "MIT",