zmarketplace 0.4.4 → 0.4.5

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/package.json +1 -1
  2. package/src/index.ts +1 -19
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zmarketplace",
3
- "version": "0.4.4",
3
+ "version": "0.4.5",
4
4
  "description": "Cross-agent marketplace search: find, audit, and install plugins/skills/themes/prompts across pi, omp, claude code, opencode, gemini cli, and codex",
5
5
  "license": "MIT",
6
6
  "type": "module",
package/src/index.ts CHANGED
@@ -243,24 +243,6 @@ const commandDef = {
243
243
 
244
244
  export default function zmarketplace(pi: {
245
245
  registerCommand?(name: string, def: { description: string; handler: (args: string, ctx: Ctx) => Promise<void> }): void;
246
- setLabel?(label: string): void;
247
- on?(event: string, handler: (...args: unknown[]) => unknown): void;
248
246
  }) {
249
- pi.setLabel?.("Z Marketplace");
250
-
251
- // Try registering immediately (works on omp).
252
- // If it throws, fall back to session_start (works on pi).
253
- let registered = false;
254
- try {
255
- pi.registerCommand?.("zmarketplace", commandDef);
256
- registered = true;
257
- } catch {
258
- // pi may not allow registerCommand during load — try on session_start
259
- }
260
-
261
- if (!registered && pi.on) {
262
- pi.on("session_start", () => {
263
- try { pi.registerCommand?.("zmarketplace", commandDef); } catch { /* give up */ }
264
- });
265
- }
247
+ pi.registerCommand?.("zmarketplace", commandDef);
266
248
  }