@appliqation/dashboard 0.1.1 → 0.1.2

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 CHANGED
@@ -1,12 +1,12 @@
1
1
  # Appliqation Dashboard
2
2
 
3
- **Reads the audit trail every agent in the [Appliqation agent family](https://github.com/appliqation/appliqation-autopilot) writes, and prints an aggregated report: how many runs, how many tokens, and what actually happened, over a period.**
3
+ **Reads the audit trail every agent in the [Appliqation agent family](https://github.com/appliqation/autopilot) writes, and prints an aggregated report: how many runs, how many tokens, and what actually happened, over a period.**
4
4
 
5
5
  Genuinely separate from Appliqation itself — this agent family is a parallel system that *uses* Appliqation, not a feature of it, so its own audit trail lives in infrastructure this family owns (a MongoDB you configure, or a plain local JSONL file), never inside appq. This tool has no LLM, no appq connection, no credentials beyond pointing at that store.
6
6
 
7
7
  ## How it works
8
8
 
9
- Every sibling agent (`appliqation-autotest`, `appliqation-scriptgen`, `appliqation-defect-fix`, `appliqation-pr-raise`, `appliqation-explorer`, `appliqation-autopilot`) optionally writes one record per invocation — token usage, duration, and its own real `--json` outcome — via [`@appliqation/agent-core`](https://github.com/appliqation/appliqation-agent-core)'s `audit/sink.ts`, entirely opt-in and best-effort (a broken audit store never affects the real run). This tool reads the same store back and aggregates it.
9
+ Every sibling agent (`appliqation-autotest`, `appliqation-scriptgen`, `appliqation-defect-fix`, `appliqation-pr-raise`, `appliqation-explorer`, `appliqation-autopilot`) optionally writes one record per invocation — token usage, duration, and its own real `--json` outcome — via [`@appliqation/agent-core`](https://github.com/appliqation/agent-core)'s `audit/sink.ts`, entirely opt-in and best-effort (a broken audit store never affects the real run). This tool reads the same store back and aggregates it.
10
10
 
11
11
  ```bash
12
12
  appliqation-dashboard report --group-by month
@@ -44,8 +44,8 @@ Copy `.env.example` to `.env`. Point `AUDIT_MONGO_URI`/`AUDIT_MONGO_DB`/`AUDIT_M
44
44
  ## Development
45
45
 
46
46
  ```bash
47
- git clone https://github.com/appliqation/appliqation-dashboard.git
48
- cd appliqation-dashboard
47
+ git clone https://github.com/appliqation/dashboard.git
48
+ cd dashboard
49
49
  npm install
50
50
  cp .env.example .env # point at the same audit store your agents write to
51
51
  npm run dev -- report [--group-by month]
package/dist/cli/index.js CHANGED
@@ -71,5 +71,8 @@ program
71
71
  console.log('\nNo audit records found in this range. Check AUDIT_MONGO_*/AUDIT_JSONL_PATH points at the store the agents actually write to.');
72
72
  }
73
73
  });
74
- program.parseAsync(process.argv);
74
+ program.parseAsync(process.argv).catch((err) => {
75
+ console.error(`Error: ${err instanceof Error ? err.message : String(err)}`);
76
+ process.exitCode = 1;
77
+ });
75
78
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/cli/index.ts"],"names":[],"mappings":";AACA,kEAAkE;AAClE,2EAA2E;AAC3E,0EAA0E;AAC1E,6EAA6E;AAC7E,2EAA2E;AAE3E,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAEnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAExC,MAAM,eAAe,GAAc,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,CAAC,CAAC;AAC/E,MAAM,kBAAkB,GAAG,EAAE,CAAC;AAE9B,SAAS,SAAS,CAAC,CAAqB;IACtC,OAAO,CAAC,KAAK,SAAS,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC;AACpD,CAAC;AAED,SAAS,aAAa,CAAC,MAAc,EAA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C5E,OAAO,CAAC,QAAQ,GAAG,CAAC,CAAC;AACvB,CAAC,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,16 @@
1
1
  {
2
2
  "name": "@appliqation/dashboard",
3
- "version": "0.1.1",
4
- "description": "Read-only reporting CLI for the Appliqation agent family's audit trail \u2014 how much testing the agentic system did, and how many tokens it used, over a period.",
3
+ "version": "0.1.2",
4
+ "description": "Read-only reporting CLI for the Appliqation agent family's audit trail how much testing the agentic system did, and how many tokens it used, over a period.",
5
+ "license": "MIT",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/appliqation/dashboard.git"
9
+ },
10
+ "homepage": "https://github.com/appliqation/dashboard#readme",
11
+ "bugs": {
12
+ "url": "https://github.com/appliqation/dashboard/issues"
13
+ },
5
14
  "type": "module",
6
15
  "bin": {
7
16
  "appliqation-dashboard": "./dist/cli/index.js"
@@ -23,15 +32,18 @@
23
32
  "test:watch": "vitest"
24
33
  },
25
34
  "dependencies": {
26
- "@appliqation/agent-core": "^0.1.0",
35
+ "@appliqation/agent-core": "^0.1.5",
27
36
  "commander": "^13.1.0",
28
37
  "dotenv": "^16.4.7",
29
38
  "mongodb": "^6.10.0"
30
39
  },
31
40
  "devDependencies": {
41
+ "@eslint/js": "^9.39.5",
32
42
  "@types/node": "^22.13.10",
43
+ "eslint": "^9.39.5",
33
44
  "tsx": "^4.19.3",
34
45
  "typescript": "^5.8.2",
46
+ "typescript-eslint": "^8.67.0",
35
47
  "vitest": "^3.2.7"
36
48
  }
37
49
  }