@hyperdrive.bot/gut 0.2.5 → 0.2.6-alpha.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/README.md CHANGED
@@ -48,7 +48,7 @@ $ npm install -g @hyperdrive.bot/gut
48
48
  $ gut COMMAND
49
49
  running command...
50
50
  $ gut (--version)
51
- @hyperdrive.bot/gut/0.2.5-alpha.0 linux-x64 node-v22.22.3
51
+ @hyperdrive.bot/gut/0.2.5 linux-x64 node-v22.22.3
52
52
  $ gut --help [COMMAND]
53
53
  USAGE
54
54
  $ gut COMMAND
@@ -46,7 +46,24 @@ export default class Repos extends BaseCommand {
46
46
  });
47
47
  }
48
48
  if (entities.length === 0) {
49
- this.error('No repositories found matching criteria');
49
+ // HYP-64: empty result is a valid state, not an error. Previously this used
50
+ // `this.error()` which exited with code 1 + stderr — confusing for scripts
51
+ // that pipeline `gut repos | <cmd>` and treat empty as "nothing to do".
52
+ if (flags.json) {
53
+ this.log(JSON.stringify([], null, 2));
54
+ }
55
+ else {
56
+ const filterHint = flags.type ? ` of type "${flags.type}"` : '';
57
+ const accessibleHint = flags.accessible ? ' that exist on disk' : '';
58
+ this.log(chalk.yellow(`No accessible repositories${filterHint}${accessibleHint} found.`));
59
+ if (flags.accessible) {
60
+ this.log(chalk.dim(' Hint: run `gut entity clone-all` to clone configured entities.'));
61
+ }
62
+ else if (flags.type) {
63
+ this.log(chalk.dim(' Hint: run `gut entity list` to see all registered entity types.'));
64
+ }
65
+ }
66
+ return;
50
67
  }
51
68
  // Collect repository information
52
69
  const repos = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyperdrive.bot/gut",
3
- "version": "0.2.5",
3
+ "version": "0.2.6-alpha.0",
4
4
  "description": "Git Unified Tooling - Enhanced git with workspace intelligence for entity-based organization",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",