@tamai/hub-cli 0.1.14 → 0.1.15

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.
@@ -15,7 +15,7 @@ import { findRepoRoot } from "../lib/records.mjs";
15
15
  export const AGENT_ACCEPT_SINCE = "2026-10-16";
16
16
  const DETAIL_CONCURRENCY = 6;
17
17
 
18
- /** done のうち、最後の accepted が `via: "agent"` のもの。経緯を引けなかった件数も返す。 */
18
+ /** done のうち、最新の accepted が `via: "agent"` のもの。経緯を引けなかった件数も返す。 */
19
19
  async function agentAccepted(items, api) {
20
20
  const candidates = items.filter((item) => typeof item?.id === "string"
21
21
  && typeof item.updated_at === "string" && item.updated_at >= AGENT_ACCEPT_SINCE);
@@ -37,7 +37,8 @@ async function agentAccepted(items, api) {
37
37
  failed += 1;
38
38
  continue;
39
39
  }
40
- const accepted = events.filter((event) => event?.kind === "accepted").at(-1);
40
+ // 詳細 API の events は新しい順(`ORDER BY at DESC, id DESC`)。最初の accepted が最新の検収(Medium 1)
41
+ const accepted = events.find((event) => event?.kind === "accepted");
41
42
  if (accepted?.meta?.via !== "agent") continue;
42
43
  const evidence = accepted.meta.evidence ?? {};
43
44
  found.push({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamai/hub-cli",
3
- "version": "0.1.14",
3
+ "version": "0.1.15",
4
4
  "description": "CLI for the hub personal dashboard: D1-backed task board and project registry.",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",