@blogic-cz/agent-tools 0.14.27 → 0.14.28

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blogic-cz/agent-tools",
3
- "version": "0.14.27",
3
+ "version": "0.14.28",
4
4
  "description": "CLI tools for AI coding agent workflows — GitHub, database, Kubernetes, Azure DevOps, logs, sessions, and audit",
5
5
  "keywords": [
6
6
  "agent",
@@ -89,12 +89,25 @@ const searchOrgCode = Effect.fn("repo.searchOrgCode")(function* (opts: {
89
89
  // CLI Commands
90
90
  // ---------------------------------------------------------------------------
91
91
 
92
- export const repoInfoCommand = Command.make("info", { format: formatOption }, ({ format }) =>
93
- Effect.gen(function* () {
94
- const gh = yield* GitHubService;
95
- const info = yield* gh.getRepoInfo();
96
- yield* logFormatted(info, format);
97
- }),
92
+ const repoOption = Flag.string("repo").pipe(
93
+ Flag.withDescription("Target repository profile name or owner/name"),
94
+ Flag.optional,
95
+ );
96
+
97
+ export const repoInfoCommand = Command.make(
98
+ "info",
99
+ { format: formatOption, repo: repoOption },
100
+ ({ format, repo }) =>
101
+ Effect.gen(function* () {
102
+ const gh = yield* GitHubService;
103
+ yield* gh.withRepoTarget(
104
+ Option.getOrNull(repo),
105
+ Effect.gen(function* () {
106
+ const info = yield* gh.getRepoInfo();
107
+ yield* logFormatted(info, format);
108
+ }),
109
+ );
110
+ }),
98
111
  ).pipe(Command.withDescription("Show repository information (owner, name, default branch, URL)"));
99
112
 
100
113
  export const repoListCommand = Command.make(