@blogic-cz/agent-tools 1.4.1 → 1.5.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 +16 -2
- package/dist/az-tool/config.d.ts.map +1 -1
- package/dist/az-tool/profile.d.ts.map +1 -1
- package/dist/az-tool/service.d.ts +2 -2
- package/dist/azdo-tool/build.d.ts +8 -8
- package/dist/azdo-tool/config.d.ts.map +1 -1
- package/dist/azdo-tool/service.d.ts +2 -2
- package/dist/config/loader.d.ts.map +1 -1
- package/dist/config/types.d.ts +2 -0
- package/dist/config/types.d.ts.map +1 -1
- package/dist/credential-guard/index.d.ts.map +1 -1
- package/dist/db-tool/schema.d.ts.map +1 -1
- package/dist/db-tool/service.d.ts +1 -1
- package/dist/db-tool/sql-client.d.ts.map +1 -1
- package/dist/gh-tool/api.d.ts.map +1 -1
- package/dist/gh-tool/config.d.ts.map +1 -1
- package/dist/gh-tool/gist.d.ts.map +1 -1
- package/dist/gh-tool/issue/commands.d.ts +1 -1
- package/dist/gh-tool/issue/triage.d.ts +1 -1
- package/dist/gh-tool/issue/triage.d.ts.map +1 -1
- package/dist/gh-tool/pr/commands.d.ts +10 -10
- package/dist/gh-tool/pr/commands.d.ts.map +1 -1
- package/dist/gh-tool/pr/core.d.ts +19 -19
- package/dist/gh-tool/pr/core.d.ts.map +1 -1
- package/dist/gh-tool/pr/stack.d.ts +13 -13
- package/dist/gh-tool/repo.d.ts +1 -1
- package/dist/gh-tool/service.d.ts +1 -1
- package/dist/gh-tool/text-input.d.ts.map +1 -1
- package/dist/gh-tool/workflow.d.ts +7 -7
- package/dist/gh-tool/workflow.d.ts.map +1 -1
- package/dist/k8s-tool/context.d.ts.map +1 -1
- package/dist/k8s-tool/security.d.ts.map +1 -1
- package/dist/k8s-tool/service.d.ts +2 -2
- package/dist/logs-tool/index.d.ts +1 -1
- package/dist/logs-tool/index.d.ts.map +1 -1
- package/dist/logs-tool/service.d.ts.map +1 -1
- package/dist/observability-tool/shared.d.ts.map +1 -1
- package/dist/session-tool/claude-code.d.ts.map +1 -1
- package/dist/session-tool/codex.d.ts +3 -1
- package/dist/session-tool/codex.d.ts.map +1 -1
- package/dist/session-tool/index.d.ts +1 -1
- package/dist/session-tool/index.d.ts.map +1 -1
- package/dist/session-tool/pi.d.ts.map +1 -1
- package/dist/session-tool/service.d.ts.map +1 -1
- package/dist/session-tool/summaries.d.ts.map +1 -1
- package/dist/session-tool/types.d.ts.map +1 -1
- package/dist/shared/audit.d.ts.map +1 -1
- package/dist/shared/azure-credentials.d.ts.map +1 -1
- package/dist/shared/binary-preflight.d.ts.map +1 -1
- package/dist/shared/cli.d.ts.map +1 -1
- package/dist/shared/error-renderer.d.ts.map +1 -1
- package/dist/shared/exec.d.ts.map +1 -1
- package/dist/shared/format.d.ts.map +1 -1
- package/dist/shared/path.d.ts.map +1 -1
- package/dist/shared/poll-until-resolved.d.ts.map +1 -1
- package/dist/shared/prerequisites/driver-commands.d.ts.map +1 -1
- package/dist/shared/prerequisites/errors.d.ts.map +1 -1
- package/dist/shared/prerequisites/guardian.d.ts.map +1 -1
- package/dist/shared/prerequisites/runtime.d.ts.map +1 -1
- package/dist/shared/prerequisites/store.d.ts.map +1 -1
- package/dist/shared/retry-transient.d.ts.map +1 -1
- package/dist/shared/schema-dump.d.ts.map +1 -1
- package/dist/shared/throttle.d.ts.map +1 -1
- package/package.json +13 -13
- package/schemas/agent-tools.schema.json +8 -0
- package/src/audit-tool/index.ts +4 -4
- package/src/az-tool/index.ts +4 -4
- package/src/azdo-tool/index.ts +11 -11
- package/src/config/loader.ts +1 -0
- package/src/config/types.ts +2 -0
- package/src/credential-guard/claude-hook.ts +8 -2
- package/src/credential-guard/index.ts +212 -3
- package/src/db-tool/index.ts +12 -12
- package/src/gh-tool/branch.ts +4 -4
- package/src/gh-tool/gist.ts +20 -20
- package/src/gh-tool/issue/commands.ts +33 -33
- package/src/gh-tool/issue/triage.ts +5 -5
- package/src/gh-tool/pr/commands.ts +108 -112
- package/src/gh-tool/pr/core.ts +4 -6
- package/src/gh-tool/release.ts +30 -30
- package/src/gh-tool/repo.ts +7 -7
- package/src/gh-tool/workflow.ts +24 -24
- package/src/k8s-tool/index.ts +21 -21
- package/src/logs-tool/index.ts +7 -10
- package/src/logs-tool/transformers.ts +1 -1
- package/src/observability-tool/logs.ts +4 -4
- package/src/observability-tool/metrics.ts +4 -4
- package/src/observability-tool/shared.ts +2 -2
- package/src/observability-tool/trace.ts +10 -10
- package/src/session-tool/index.ts +8 -14
- package/src/shared/format.ts +1 -1
- package/src/shared/log-transform.ts +1 -1
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
} from "./core";
|
|
21
21
|
import { GitHubService } from "#gh/service";
|
|
22
22
|
|
|
23
|
-
const repoOption = Flag.
|
|
23
|
+
const repoOption = Flag.String("repo").pipe(
|
|
24
24
|
Flag.withDescription("Target repository profile name or owner/name"),
|
|
25
25
|
Flag.optional,
|
|
26
26
|
);
|
|
@@ -35,16 +35,16 @@ export const issueListCommand = Command.make(
|
|
|
35
35
|
"list",
|
|
36
36
|
{
|
|
37
37
|
format: formatOption,
|
|
38
|
-
labels: Flag.
|
|
38
|
+
labels: Flag.String("labels").pipe(
|
|
39
39
|
Flag.withDescription("Filter by label (comma-separated)"),
|
|
40
40
|
Flag.optional,
|
|
41
41
|
),
|
|
42
|
-
limit: Flag.
|
|
42
|
+
limit: Flag.Int("limit").pipe(
|
|
43
43
|
Flag.withDescription("Maximum number of issues to return"),
|
|
44
44
|
Flag.withDefault(30),
|
|
45
45
|
),
|
|
46
46
|
repo: repoOption,
|
|
47
|
-
state: Flag.
|
|
47
|
+
state: Flag.Literals("state", ["open", "closed", "all"]).pipe(
|
|
48
48
|
Flag.withDescription("Filter by state: open, closed, all"),
|
|
49
49
|
Flag.withDefault("open"),
|
|
50
50
|
),
|
|
@@ -67,7 +67,7 @@ export const issueViewCommand = Command.make(
|
|
|
67
67
|
"view",
|
|
68
68
|
{
|
|
69
69
|
format: formatOption,
|
|
70
|
-
issue: Flag.
|
|
70
|
+
issue: Flag.Int("issue").pipe(Flag.withDescription("Issue number")),
|
|
71
71
|
repo: repoOption,
|
|
72
72
|
},
|
|
73
73
|
({ format, issue, repo }) =>
|
|
@@ -87,18 +87,18 @@ export const issueViewCommand = Command.make(
|
|
|
87
87
|
export const issueCommentsCommand = Command.make(
|
|
88
88
|
"comments",
|
|
89
89
|
{
|
|
90
|
-
author: Flag.
|
|
90
|
+
author: Flag.String("author").pipe(
|
|
91
91
|
Flag.withDescription("Filter by author login substring"),
|
|
92
92
|
Flag.optional,
|
|
93
93
|
),
|
|
94
|
-
bodyContains: Flag.
|
|
94
|
+
bodyContains: Flag.String("body-contains").pipe(
|
|
95
95
|
Flag.withDescription("Filter comments by body substring"),
|
|
96
96
|
Flag.optional,
|
|
97
97
|
),
|
|
98
98
|
format: formatOption,
|
|
99
|
-
issue: Flag.
|
|
99
|
+
issue: Flag.Int("issue").pipe(Flag.withDescription("Issue number")),
|
|
100
100
|
repo: repoOption,
|
|
101
|
-
since: Flag.
|
|
101
|
+
since: Flag.String("since").pipe(
|
|
102
102
|
Flag.withDescription("ISO timestamp to filter comments created after"),
|
|
103
103
|
Flag.optional,
|
|
104
104
|
),
|
|
@@ -121,18 +121,18 @@ export const issueCommentsCommand = Command.make(
|
|
|
121
121
|
export const issueCloseCommand = Command.make(
|
|
122
122
|
"close",
|
|
123
123
|
{
|
|
124
|
-
comment: Flag.
|
|
124
|
+
comment: Flag.String("comment").pipe(
|
|
125
125
|
Flag.withDescription("Comment to add when closing"),
|
|
126
126
|
Flag.optional,
|
|
127
127
|
),
|
|
128
|
-
commentFile: Flag.
|
|
128
|
+
commentFile: Flag.String("comment-file").pipe(
|
|
129
129
|
Flag.withDescription("Read close comment from a file path or '-' for stdin"),
|
|
130
130
|
Flag.optional,
|
|
131
131
|
),
|
|
132
132
|
format: formatOption,
|
|
133
|
-
issue: Flag.
|
|
133
|
+
issue: Flag.Int("issue").pipe(Flag.withDescription("Issue number to close")),
|
|
134
134
|
repo: repoOption,
|
|
135
|
-
reason: Flag.
|
|
135
|
+
reason: Flag.Literals("reason", ["completed", "not planned"]).pipe(
|
|
136
136
|
Flag.withDescription("Close reason: completed, not planned"),
|
|
137
137
|
Flag.withDefault("completed"),
|
|
138
138
|
),
|
|
@@ -163,16 +163,16 @@ export const issueCloseCommand = Command.make(
|
|
|
163
163
|
export const issueReopenCommand = Command.make(
|
|
164
164
|
"reopen",
|
|
165
165
|
{
|
|
166
|
-
comment: Flag.
|
|
166
|
+
comment: Flag.String("comment").pipe(
|
|
167
167
|
Flag.withDescription("Comment to add when reopening"),
|
|
168
168
|
Flag.optional,
|
|
169
169
|
),
|
|
170
|
-
commentFile: Flag.
|
|
170
|
+
commentFile: Flag.String("comment-file").pipe(
|
|
171
171
|
Flag.withDescription("Read reopen comment from a file path or '-' for stdin"),
|
|
172
172
|
Flag.optional,
|
|
173
173
|
),
|
|
174
174
|
format: formatOption,
|
|
175
|
-
issue: Flag.
|
|
175
|
+
issue: Flag.Int("issue").pipe(Flag.withDescription("Issue number to reopen")),
|
|
176
176
|
repo: repoOption,
|
|
177
177
|
},
|
|
178
178
|
({ comment, commentFile, format, issue, repo }) =>
|
|
@@ -200,26 +200,26 @@ export const issueReopenCommand = Command.make(
|
|
|
200
200
|
export const issueCreateCommand = Command.make(
|
|
201
201
|
"create",
|
|
202
202
|
{
|
|
203
|
-
assignee: Flag.
|
|
203
|
+
assignee: Flag.String("assignee").pipe(
|
|
204
204
|
Flag.withDescription("Assignee login (comma-separated for multiple)"),
|
|
205
205
|
Flag.optional,
|
|
206
206
|
),
|
|
207
|
-
body: Flag.
|
|
208
|
-
bodyFile: Flag.
|
|
207
|
+
body: Flag.String("body").pipe(Flag.withDescription("Issue body"), Flag.optional),
|
|
208
|
+
bodyFile: Flag.String("body-file").pipe(
|
|
209
209
|
Flag.withDescription("Read issue body from a file path or '-' for stdin"),
|
|
210
210
|
Flag.optional,
|
|
211
211
|
),
|
|
212
|
-
bodyStdin: Flag.
|
|
212
|
+
bodyStdin: Flag.Boolean("body-stdin").pipe(
|
|
213
213
|
Flag.withDescription("Read issue body from stdin"),
|
|
214
214
|
Flag.withDefault(false),
|
|
215
215
|
),
|
|
216
216
|
format: formatOption,
|
|
217
|
-
labels: Flag.
|
|
217
|
+
labels: Flag.String("labels").pipe(
|
|
218
218
|
Flag.withDescription("Labels to apply (comma-separated)"),
|
|
219
219
|
Flag.optional,
|
|
220
220
|
),
|
|
221
221
|
repo: repoOption,
|
|
222
|
-
title: Flag.
|
|
222
|
+
title: Flag.String("title").pipe(Flag.withDescription("Issue title")),
|
|
223
223
|
},
|
|
224
224
|
({ assignee, body, bodyFile, bodyStdin, format, labels, repo, title }) =>
|
|
225
225
|
withRepo(
|
|
@@ -251,13 +251,13 @@ export const issueCreateCommand = Command.make(
|
|
|
251
251
|
export const issueCommentCommand = Command.make(
|
|
252
252
|
"comment",
|
|
253
253
|
{
|
|
254
|
-
body: Flag.
|
|
255
|
-
bodyFile: Flag.
|
|
254
|
+
body: Flag.String("body").pipe(Flag.withDescription("Comment body text"), Flag.optional),
|
|
255
|
+
bodyFile: Flag.String("body-file").pipe(
|
|
256
256
|
Flag.withDescription("Read comment body from a file path or '-' for stdin"),
|
|
257
257
|
Flag.optional,
|
|
258
258
|
),
|
|
259
259
|
format: formatOption,
|
|
260
|
-
issue: Flag.
|
|
260
|
+
issue: Flag.Int("issue").pipe(Flag.withDescription("Issue number to comment on")),
|
|
261
261
|
repo: repoOption,
|
|
262
262
|
},
|
|
263
263
|
({ body, bodyFile, format, issue, repo }) =>
|
|
@@ -282,31 +282,31 @@ export const issueCommentCommand = Command.make(
|
|
|
282
282
|
export const issueEditCommand = Command.make(
|
|
283
283
|
"edit",
|
|
284
284
|
{
|
|
285
|
-
addAssignee: Flag.
|
|
285
|
+
addAssignee: Flag.String("add-assignee").pipe(
|
|
286
286
|
Flag.withDescription("Add assignee login (comma-separated for multiple)"),
|
|
287
287
|
Flag.optional,
|
|
288
288
|
),
|
|
289
|
-
addLabels: Flag.
|
|
289
|
+
addLabels: Flag.String("add-labels").pipe(
|
|
290
290
|
Flag.withDescription("Add labels (comma-separated)"),
|
|
291
291
|
Flag.optional,
|
|
292
292
|
),
|
|
293
|
-
body: Flag.
|
|
294
|
-
bodyFile: Flag.
|
|
293
|
+
body: Flag.String("body").pipe(Flag.withDescription("New issue body"), Flag.optional),
|
|
294
|
+
bodyFile: Flag.String("body-file").pipe(
|
|
295
295
|
Flag.withDescription("Read issue body from a file path or '-' for stdin"),
|
|
296
296
|
Flag.optional,
|
|
297
297
|
),
|
|
298
298
|
format: formatOption,
|
|
299
|
-
issue: Flag.
|
|
299
|
+
issue: Flag.Int("issue").pipe(Flag.withDescription("Issue number to edit")),
|
|
300
300
|
repo: repoOption,
|
|
301
|
-
removeAssignee: Flag.
|
|
301
|
+
removeAssignee: Flag.String("remove-assignee").pipe(
|
|
302
302
|
Flag.withDescription("Remove assignee login (comma-separated for multiple)"),
|
|
303
303
|
Flag.optional,
|
|
304
304
|
),
|
|
305
|
-
removeLabels: Flag.
|
|
305
|
+
removeLabels: Flag.String("remove-labels").pipe(
|
|
306
306
|
Flag.withDescription("Remove labels (comma-separated)"),
|
|
307
307
|
Flag.optional,
|
|
308
308
|
),
|
|
309
|
-
title: Flag.
|
|
309
|
+
title: Flag.String("title").pipe(Flag.withDescription("New issue title"), Flag.optional),
|
|
310
310
|
},
|
|
311
311
|
({
|
|
312
312
|
addAssignee,
|
|
@@ -9,7 +9,7 @@ import { fetchReviewTriage } from "#gh/pr/commands";
|
|
|
9
9
|
|
|
10
10
|
import { fetchIssueComments } from "./core";
|
|
11
11
|
|
|
12
|
-
const repoOption = Flag.
|
|
12
|
+
const repoOption = Flag.String("repo").pipe(
|
|
13
13
|
Flag.withDescription("Target repository profile name or owner/name"),
|
|
14
14
|
Flag.optional,
|
|
15
15
|
);
|
|
@@ -258,9 +258,9 @@ export const issueTriageCommand = Command.make(
|
|
|
258
258
|
"triage",
|
|
259
259
|
{
|
|
260
260
|
format: formatOption,
|
|
261
|
-
issue: Flag.
|
|
261
|
+
issue: Flag.Int("issue").pipe(Flag.withDescription("Issue number")),
|
|
262
262
|
repo: repoOption,
|
|
263
|
-
verbosity: Flag.
|
|
263
|
+
verbosity: Flag.Literals("verbosity", ["compact", "full"] as const).pipe(
|
|
264
264
|
Flag.withDescription("Output detail level: compact or full"),
|
|
265
265
|
Flag.withDefault("compact"),
|
|
266
266
|
),
|
|
@@ -281,8 +281,8 @@ export const issueSnapshotBatchCommand = Command.make(
|
|
|
281
281
|
"snapshot-batch",
|
|
282
282
|
{
|
|
283
283
|
format: formatOption,
|
|
284
|
-
issues: Flag.
|
|
285
|
-
owner: Flag.
|
|
284
|
+
issues: Flag.String("issues").pipe(Flag.withDescription("Comma-separated issue numbers")),
|
|
285
|
+
owner: Flag.String("owner").pipe(
|
|
286
286
|
Flag.withDescription("Automation owner login used to mark eligible issues"),
|
|
287
287
|
Flag.optional,
|
|
288
288
|
),
|