@dadado/agent-kit-cli 5.14.1 → 5.15.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/dashboard/dashboard-data.mjs +38 -9
- package/dist/index.js +9 -1
- package/package.json +1 -1
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
// Scans .cursor/plans, HANDOFF, memory, config, git status, terminals, processes
|
|
5
5
|
// Outputs JSON to stdout (consumed by dashboard.html)
|
|
6
6
|
|
|
7
|
-
import { execSync } from "node:child_process";
|
|
7
|
+
import { execFileSync, execSync } from "node:child_process";
|
|
8
8
|
import { existsSync, mkdirSync, readFileSync, readdirSync, statSync, writeFileSync } from "node:fs";
|
|
9
9
|
import { dirname, join, resolve } from "node:path";
|
|
10
10
|
import {
|
|
@@ -500,7 +500,7 @@ try {
|
|
|
500
500
|
const parsed = parseGitStatusShort(status);
|
|
501
501
|
let recentLog = [];
|
|
502
502
|
try {
|
|
503
|
-
recentLog =
|
|
503
|
+
recentLog = execFileSync("git", ["log", "--oneline", "-n", String(MAX_GIT_ACTIVITY)], gitOpts)
|
|
504
504
|
.trim()
|
|
505
505
|
.split("\n")
|
|
506
506
|
.filter(Boolean);
|
|
@@ -512,7 +512,11 @@ try {
|
|
|
512
512
|
// origin/main, plus staging vs main (pending promotion count).
|
|
513
513
|
const countDivergence = (range) => {
|
|
514
514
|
try {
|
|
515
|
-
const out =
|
|
515
|
+
const out = execFileSync(
|
|
516
|
+
"git",
|
|
517
|
+
["rev-list", "--left-right", "--count", range],
|
|
518
|
+
gitOpts,
|
|
519
|
+
).trim();
|
|
516
520
|
const [left, right] = out.split(/\s+/).map((n) => Number.parseInt(n, 10) || 0);
|
|
517
521
|
return { ahead: right, behind: left };
|
|
518
522
|
} catch {
|
|
@@ -528,8 +532,18 @@ try {
|
|
|
528
532
|
// Readable graph (branch lanes + merges) as pre-rendered text lines.
|
|
529
533
|
let graphLines = [];
|
|
530
534
|
try {
|
|
531
|
-
graphLines =
|
|
532
|
-
|
|
535
|
+
graphLines = execFileSync(
|
|
536
|
+
"git",
|
|
537
|
+
[
|
|
538
|
+
"log",
|
|
539
|
+
"--graph",
|
|
540
|
+
"--oneline",
|
|
541
|
+
"--decorate",
|
|
542
|
+
"--date-order",
|
|
543
|
+
"--all",
|
|
544
|
+
"-n",
|
|
545
|
+
String(MAX_GIT_GRAPH_LINES),
|
|
546
|
+
],
|
|
533
547
|
gitOpts,
|
|
534
548
|
)
|
|
535
549
|
.trimEnd()
|
|
@@ -589,8 +603,16 @@ function collectPipelineRuns() {
|
|
|
589
603
|
// and url are dropped: the pipeline card is display-only with no
|
|
590
604
|
// paste-destination for a run URL (ADR 2026-07-25 copy-only convention),
|
|
591
605
|
// so requesting them only adds payload cost without a consumer.
|
|
592
|
-
const out =
|
|
593
|
-
|
|
606
|
+
const out = execFileSync(
|
|
607
|
+
"gh",
|
|
608
|
+
[
|
|
609
|
+
"run",
|
|
610
|
+
"list",
|
|
611
|
+
"--limit",
|
|
612
|
+
String(MAX_PIPELINE_RUNS),
|
|
613
|
+
"--json",
|
|
614
|
+
"workflowName,status,conclusion,headBranch,event,createdAt",
|
|
615
|
+
],
|
|
594
616
|
{ cwd: ROOT, encoding: "utf-8", timeout: GH_RUN_LIST_TIMEOUT_MS },
|
|
595
617
|
);
|
|
596
618
|
const rows = JSON.parse(out);
|
|
@@ -651,8 +673,15 @@ function collectDeploySignal() {
|
|
|
651
673
|
try {
|
|
652
674
|
// v*-only: an archive/* or other non-release tag under "what shipped
|
|
653
675
|
// recently" would be exactly the misleading signal this phase avoids.
|
|
654
|
-
const out =
|
|
655
|
-
|
|
676
|
+
const out = execFileSync(
|
|
677
|
+
"git",
|
|
678
|
+
[
|
|
679
|
+
"for-each-ref",
|
|
680
|
+
"--sort=-creatordate",
|
|
681
|
+
"--format=%(refname:short)|%(creatordate:short)",
|
|
682
|
+
`--count=${MAX_DEPLOY_TAGS}`,
|
|
683
|
+
"refs/tags/v*",
|
|
684
|
+
],
|
|
656
685
|
gitOpts,
|
|
657
686
|
).trim();
|
|
658
687
|
tags = out
|
package/dist/index.js
CHANGED
|
@@ -364,7 +364,15 @@ var KNOWN_SHIPPED_OVERLAY_HASHES = /* @__PURE__ */ new Set([
|
|
|
364
364
|
"bc71bb9c93cb9a4aaba901537681cdb81a5f2a9fd1e6f740eb54bca25b7b878e",
|
|
365
365
|
"f502f374f1d25cb20448aeebe678caa17a3c9cd0c683aaf8073878dda72e5375",
|
|
366
366
|
"5fb839c42331b9298302c374334c358a73ec58bb5bb5a6942847f9e49c154b3c",
|
|
367
|
-
"1782bf44268490c9e5465aa890447f01b1bc88e426dd8968186c5c9a7493086e"
|
|
367
|
+
"1782bf44268490c9e5465aa890447f01b1bc88e426dd8968186c5c9a7493086e",
|
|
368
|
+
"4ab0925a44544c1a43e5abc007a0e5ec2bd60353ec67ce82f8a68f2623dccac0",
|
|
369
|
+
"0970a3732ee6a869b5f96494d8e3a69850989745a8841dd64b96aa5f9d6e54d4",
|
|
370
|
+
"86cf6c8c0aa44c47736ebc741c2cd7d88c2566d4612859e873eb330613c2d0f4",
|
|
371
|
+
"38f1aafe4d1c6e3ec450c252acc4a02d963bd95eb8412481a466e07739aad08f",
|
|
372
|
+
"a56905278b2d5c31b253f08b8d352401a261556b0c1a9ddc3a825c95bd1c24d9",
|
|
373
|
+
"cdd8f7d7311ebc5c741011f8243c8bf4d569e5dfdeb1bc42cc63150fc691c0b1",
|
|
374
|
+
"a34699ec6ee5319095c1f942b2dda529267024731c1226af527b5e965fcb263a",
|
|
375
|
+
"d4fd6b07139c50f1279603b4043c7d3416fb28e5f4905d57246945fcb4155e46"
|
|
368
376
|
]);
|
|
369
377
|
|
|
370
378
|
// src/lifecycle/paths.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dadado/agent-kit-cli",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.15.0",
|
|
4
4
|
"description": "Agent Kit CLI: HITL framework install and tooling for AI-assisted IDEs (rules, skills, plan/handoff, context).",
|
|
5
5
|
"license": "PolyForm-Noncommercial-1.0.0",
|
|
6
6
|
"type": "module",
|