@kb-labs/shared-command-kit 1.0.0 → 1.1.0

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.
package/dist/index.d.ts CHANGED
@@ -47,6 +47,7 @@ interface CommandGroup {
47
47
  name: string;
48
48
  describe: string;
49
49
  commands: Command[];
50
+ subgroups?: CommandGroup[];
50
51
  }
51
52
  /**
52
53
  * Extended command config for system commands
@@ -1293,7 +1294,7 @@ interface WebSocketDefinition<TConfig = unknown, TIncoming = unknown, TOutgoing
1293
1294
  *
1294
1295
  * // Define message types
1295
1296
  * const StartMsg = defineMessage<{ scope?: string }>('start');
1296
- * const StopMsg = defineMessage<{}>('stop');
1297
+ * const StopMsg = defineMessage<object>('stop');
1297
1298
  *
1298
1299
  * // Create outgoing message builders
1299
1300
  * const ProgressMsg = defineMessage<{ phase: string; progress: number }>('progress');
package/dist/index.js CHANGED
@@ -1115,7 +1115,7 @@ var schema = {
1115
1115
  function defineHandler(definition) {
1116
1116
  return {
1117
1117
  execute: async (ctx, input) => {
1118
- return await definition.execute(ctx, input);
1118
+ return definition.execute(ctx, input);
1119
1119
  }
1120
1120
  };
1121
1121
  }