@ag-eco/agentplate-cli 0.13.2 → 0.13.3
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": "@ag-eco/agentplate-cli",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.3",
|
|
4
4
|
"description": "Multi-agent orchestration for AI coding agents — spawn workers in git worktrees via tmux, coordinate through SQLite mail, merge with tiered conflict resolution. Pluggable runtime adapters for Claude Code, Pi, and more.",
|
|
5
5
|
"author": "Jaymin West",
|
|
6
6
|
"license": "MIT",
|
|
@@ -49,14 +49,17 @@ describe("checkDatabases", () => {
|
|
|
49
49
|
rmSync(tempDir, { recursive: true, force: true });
|
|
50
50
|
});
|
|
51
51
|
|
|
52
|
-
test("fails
|
|
52
|
+
test("fails only for sessions.db when no databases exist (mail/metrics/merge-queue are optional)", () => {
|
|
53
53
|
const checks = checkDatabases(mockConfig, tempDir) as DoctorCheck[];
|
|
54
54
|
|
|
55
55
|
expect(checks).toHaveLength(4);
|
|
56
|
-
|
|
56
|
+
// mail.db and metrics.db are created lazily on first write (first mail /
|
|
57
|
+
// first session-end metric) — their absence in a fresh project is normal.
|
|
58
|
+
expect(checks[0]?.status).toBe("pass");
|
|
57
59
|
expect(checks[0]?.name).toBe("mail.db exists");
|
|
58
|
-
expect(checks[1]?.status).toBe("
|
|
60
|
+
expect(checks[1]?.status).toBe("pass");
|
|
59
61
|
expect(checks[1]?.name).toBe("metrics.db exists");
|
|
62
|
+
// sessions.db is created at `ap init` (run creation), so its absence is a failure.
|
|
60
63
|
expect(checks[2]?.status).toBe("fail");
|
|
61
64
|
expect(checks[2]?.name).toBe("sessions.db exists");
|
|
62
65
|
// merge-queue.db is created lazily on first merge — its absence is normal.
|
package/src/doctor/databases.ts
CHANGED
|
@@ -21,6 +21,7 @@ export const checkDatabases: DoctorCheckFn = (_config, agentplateDir): DoctorChe
|
|
|
21
21
|
}> = [
|
|
22
22
|
{
|
|
23
23
|
name: "mail.db",
|
|
24
|
+
optional: true,
|
|
24
25
|
tables: ["messages"],
|
|
25
26
|
requiredColumns: {
|
|
26
27
|
messages: [
|
|
@@ -40,6 +41,7 @@ export const checkDatabases: DoctorCheckFn = (_config, agentplateDir): DoctorChe
|
|
|
40
41
|
},
|
|
41
42
|
{
|
|
42
43
|
name: "metrics.db",
|
|
44
|
+
optional: true,
|
|
43
45
|
tables: ["sessions"],
|
|
44
46
|
requiredColumns: {
|
|
45
47
|
sessions: [
|
|
@@ -246,7 +246,9 @@ describe("checkEcosystem", () => {
|
|
|
246
246
|
const results = await check(mockConfig, "/tmp/.agentplate");
|
|
247
247
|
|
|
248
248
|
const loam = results.find((r) => r.name === "loam semver");
|
|
249
|
-
|
|
249
|
+
// loam/sprout/trellis are bundled into @ag-eco/agentplate-cli now, so the
|
|
250
|
+
// install hint points at the single package, not a standalone @ag-eco/loam-cli.
|
|
251
|
+
const hasHint = loam?.details?.some((d) => d.includes("@ag-eco/agentplate-cli"));
|
|
250
252
|
expect(hasHint).toBe(true);
|
|
251
253
|
});
|
|
252
254
|
|
package/src/version.ts
CHANGED