@kairyou/agent-tools 0.13.4 → 0.13.6

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": "@kairyou/agent-tools",
3
- "version": "0.13.4",
3
+ "version": "0.13.6",
4
4
  "description": "Reusable Agent Skills, plus integrations (statusline, provider usage, vision) that install into Codex, Claude Code, and opencode.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -26,13 +26,23 @@ Resolve paths to Git roots and deduplicate them. Report invalid paths; a non-Git
26
26
  directory does not block other valid projects. Do not clone remote URLs without consent.
27
27
 
28
28
  For each repository, resolve the author with `git -C <root> config user.name`; never
29
- infer aliases or use the remote login as the author. Filter commits by comparing `%an`
30
- literally, not via an `--author` regex. Inspect all local branches, current
31
- HEAD, user-named branches, and configured upstreams. Unless the user requests local-only
32
- data, refresh only the configured upstream branches, grouped into one best-effort
33
- `git fetch --no-tags <remote> <branch...>` per involved remote. Fetch failure is
34
- non-fatal. Do not change the working tree or local branch history. Deduplicate commits
35
- by hash.
29
+ infer aliases or use the remote login as the author.
30
+
31
+ Inspect all local branches, current HEAD, user-named branches, and configured
32
+ upstreams. Unless the user requests local-only data, refresh only the configured
33
+ upstream branches, grouped into one best-effort `git fetch --no-tags <remote>
34
+ <branch...>` per involved remote. Fetch failure is non-fatal. Do not change the
35
+ working tree or local branch history.
36
+
37
+ Then list candidates with `git -C <root> log --no-merges --since=<from>
38
+ --until=<to+1day> --format=%H%x09%an --branches HEAD <upstream refs>`, taking the
39
+ upstream refs from `git -C <root> for-each-ref --format=%(upstream) refs/heads/`.
40
+ Passing no ref walks only the current branch, so work on an unmerged branch reads as
41
+ no activity; `--all` reaches past the scope above into remote branches nobody tracks.
42
+ Keep the rows whose `%an` equals the resolved name exactly. Never pass `--author`: it
43
+ matches the whole `Name <email>` header, so anchored patterns silently match nothing.
44
+ When the window holds commits but none carry that name, report the names actually
45
+ found instead. Deduplicate commits by hash.
36
46
 
37
47
  ## Build work items
38
48
 
@@ -87,7 +97,9 @@ first, and skip empty days.
87
97
  ## Draft or record
88
98
 
89
99
  "Generate" / `生成日报` returns a draft. "Record" / `记录日报`, or an explicit
90
- write request, writes after previewing the entry. Resolve the destination in order:
100
+ write request, writes after previewing the entry. A draft may close with one short
101
+ line offering to record it; treat any affirmative reply to that offer as the go-ahead,
102
+ and keep the suggested word short (`记录` / `record`). Resolve the destination in order:
91
103
 
92
104
  1. a path supplied in conversation;
93
105
  2. optional `dailyLog.output` in `~/.agent-tools/config.jsonc`;
@@ -112,9 +124,10 @@ user can add a manual entry themselves. Recording a range applies these rules to
112
124
 
113
125
  Scheduling is separate; set it up only when the user asks. Prefer the OS scheduler
114
126
  (Task Scheduler, cron, launchd) over agent-internal timers, which stop with the agent:
115
- schedule a headless run of the CLI this skill is executing in, invoking the skill with
116
- the recording request the user asked for (in Claude Code,
117
- `claude -p "/at-daily-log record the log"`; other CLIs have their own headless form).
127
+ schedule a headless run of the CLI this skill is executing in `claude -p <prompt>`,
128
+ `codex exec <prompt>`, `opencode run <prompt>` invoking the skill with the recording
129
+ request the user asked for, as in `claude -p "/at-daily-log record the log"`. How a
130
+ skill is addressed varies per CLI, so the test run below is what confirms it.
118
131
  Keep projects and output in config so the command stays stable. Before registering,
119
132
  confirm the schedule, make sure the output file is resolvable, and run the exact
120
133
  command once; register only after that test run records correctly, and show how to
@@ -0,0 +1,5 @@
1
+ interface:
2
+ display_name: "Code Review"
3
+ short_description: "Review changes for bugs and regressions"
4
+ policy:
5
+ allow_implicit_invocation: false
@@ -27,8 +27,15 @@ Always exclude merge commits.
27
27
 
28
28
  Use an explicit author when supplied; otherwise resolve it independently per repository
29
29
  with `git -C <root> config user.name`. Never infer aliases or use the remote login as
30
- the author. Filter commits by comparing `%an` literally, not via an `--author` regex. If no commits match, report that and suggest listing known commit authors;
31
- do not try spelling or language variants. When results exist, mention once that the
30
+ the author. List candidates with `git -C <root> log --no-merges --since=<from>
31
+ --until=<to+1day> --format=%H%x09%an --branches HEAD <upstream refs>`, taking the
32
+ upstream refs from `git -C <root> for-each-ref --format=%(upstream) refs/heads/`;
33
+ passing no ref walks only the current branch, so work on an unmerged branch reads as
34
+ no activity, while `--all` reaches into remote branches nobody tracks. Keep the rows
35
+ whose `%an` equals that name exactly. Never pass `--author`: it matches the whole
36
+ `Name <email>` header, so anchored patterns silently match nothing. If no commits
37
+ match, report that together with the author names the window actually holds; do not
38
+ try spelling or language variants. When results exist, mention once that the
32
39
  user can provide other author names if needed.
33
40
 
34
41
  ## Project evidence
@@ -0,0 +1,5 @@
1
+ interface:
2
+ display_name: "Simplify Changes"
3
+ short_description: "Refactor changed code for clarity and efficiency"
4
+ policy:
5
+ allow_implicit_invocation: false