@cchistory/lite 0.9.0 → 0.9.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/INSTALL.md +1 -1
- package/apps/lite-cli/dist/agent-contract.d.ts.map +1 -1
- package/apps/lite-cli/dist/agent-contract.js +41 -2
- package/apps/lite-cli/dist/agent-contract.js.map +1 -1
- package/apps/lite-cli/dist/help.js +5 -5
- package/apps/lite-cli/dist/index.d.ts.map +1 -1
- package/apps/lite-cli/dist/index.js +148 -17
- package/apps/lite-cli/dist/index.js.map +1 -1
- package/apps/lite-cli/dist/index.test.js +114 -95
- package/apps/lite-cli/dist/index.test.js.map +1 -1
- package/apps/lite-cli/dist/inventory-and-git.test.d.ts +7 -0
- package/apps/lite-cli/dist/inventory-and-git.test.d.ts.map +1 -0
- package/apps/lite-cli/dist/inventory-and-git.test.js +776 -0
- package/apps/lite-cli/dist/inventory-and-git.test.js.map +1 -0
- package/apps/lite-cli/dist/inventory-command.d.ts +30 -0
- package/apps/lite-cli/dist/inventory-command.d.ts.map +1 -0
- package/apps/lite-cli/dist/inventory-command.js +265 -0
- package/apps/lite-cli/dist/inventory-command.js.map +1 -0
- package/apps/lite-cli/dist/json-v2.d.ts +2 -2
- package/apps/lite-cli/dist/json-v2.d.ts.map +1 -1
- package/apps/lite-cli/dist/json-v2.js +9 -3
- package/apps/lite-cli/dist/json-v2.js.map +1 -1
- package/apps/lite-cli/dist/project-git-command.d.ts +28 -0
- package/apps/lite-cli/dist/project-git-command.d.ts.map +1 -0
- package/apps/lite-cli/dist/project-git-command.js +288 -0
- package/apps/lite-cli/dist/project-git-command.js.map +1 -0
- package/apps/lite-cli/dist/startup-render.d.ts +10 -0
- package/apps/lite-cli/dist/startup-render.d.ts.map +1 -0
- package/apps/lite-cli/dist/startup-render.js +335 -0
- package/apps/lite-cli/dist/startup-render.js.map +1 -0
- package/apps/lite-cli/dist/version.d.ts +1 -1
- package/apps/lite-cli/dist/version.js +1 -1
- package/apps/lite-tui/dist/index.d.ts.map +1 -1
- package/apps/lite-tui/dist/index.js +40 -9
- package/apps/lite-tui/dist/index.js.map +1 -1
- package/apps/lite-tui/dist/input.js +2 -2
- package/apps/lite-tui/dist/input.js.map +1 -1
- package/apps/lite-tui/dist/keys.d.ts.map +1 -1
- package/apps/lite-tui/dist/keys.js +52 -14
- package/apps/lite-tui/dist/keys.js.map +1 -1
- package/apps/lite-tui/dist/keys.test.js +29 -0
- package/apps/lite-tui/dist/keys.test.js.map +1 -1
- package/apps/lite-tui/dist/model.d.ts +2 -0
- package/apps/lite-tui/dist/model.d.ts.map +1 -1
- package/apps/lite-tui/dist/model.js +59 -9
- package/apps/lite-tui/dist/model.js.map +1 -1
- package/apps/lite-tui/dist/render.d.ts +1 -1
- package/apps/lite-tui/dist/render.d.ts.map +1 -1
- package/apps/lite-tui/dist/render.js +10 -4
- package/apps/lite-tui/dist/render.js.map +1 -1
- package/apps/lite-tui/dist/render.test.js +31 -0
- package/apps/lite-tui/dist/render.test.js.map +1 -1
- package/apps/lite-tui/dist/state.js +1 -1
- package/apps/lite-tui/dist/state.js.map +1 -1
- package/apps/lite-tui/dist/state.test.js +54 -0
- package/apps/lite-tui/dist/state.test.js.map +1 -1
- package/apps/lite-tui/dist/stats-dashboard.test.js +130 -0
- package/apps/lite-tui/dist/stats-dashboard.test.js.map +1 -1
- package/apps/lite-tui/dist/stats-render.d.ts +1 -1
- package/apps/lite-tui/dist/stats-render.d.ts.map +1 -1
- package/apps/lite-tui/dist/stats-render.js +3 -0
- package/apps/lite-tui/dist/stats-render.js.map +1 -1
- package/apps/lite-tui/dist/stats-visuals.d.ts.map +1 -1
- package/apps/lite-tui/dist/stats-visuals.js +3 -1
- package/apps/lite-tui/dist/stats-visuals.js.map +1 -1
- package/apps/lite-tui/dist/version.d.ts +1 -1
- package/apps/lite-tui/dist/version.js +1 -1
- package/docs/guide/for-agents.md +14 -0
- package/docs/guide/lite.md +53 -2
- package/node_modules/@cchistory/canonical/dist/agent-inventory.d.ts +25 -0
- package/node_modules/@cchistory/canonical/dist/agent-inventory.d.ts.map +1 -0
- package/node_modules/@cchistory/canonical/dist/agent-inventory.js +345 -0
- package/node_modules/@cchistory/canonical/dist/agent-inventory.js.map +1 -0
- package/node_modules/@cchistory/canonical/dist/agent-inventory.test.d.ts +7 -0
- package/node_modules/@cchistory/canonical/dist/agent-inventory.test.d.ts.map +1 -0
- package/node_modules/@cchistory/canonical/dist/agent-inventory.test.js +231 -0
- package/node_modules/@cchistory/canonical/dist/agent-inventory.test.js.map +1 -0
- package/node_modules/@cchistory/canonical/dist/directory-scope.d.ts.map +1 -1
- package/node_modules/@cchistory/canonical/dist/directory-scope.js +4 -1
- package/node_modules/@cchistory/canonical/dist/directory-scope.js.map +1 -1
- package/node_modules/@cchistory/canonical/dist/fallback-projects.d.ts.map +1 -1
- package/node_modules/@cchistory/canonical/dist/fallback-projects.js +5 -2
- package/node_modules/@cchistory/canonical/dist/fallback-projects.js.map +1 -1
- package/node_modules/@cchistory/canonical/dist/index.d.ts +3 -1
- package/node_modules/@cchistory/canonical/dist/index.d.ts.map +1 -1
- package/node_modules/@cchistory/canonical/dist/index.js +3 -1
- package/node_modules/@cchistory/canonical/dist/index.js.map +1 -1
- package/node_modules/@cchistory/canonical/dist/index.test.js +215 -1
- package/node_modules/@cchistory/canonical/dist/index.test.js.map +1 -1
- package/node_modules/@cchistory/canonical/dist/project-linker.d.ts +2 -1
- package/node_modules/@cchistory/canonical/dist/project-linker.d.ts.map +1 -1
- package/node_modules/@cchistory/canonical/dist/project-linker.js +113 -6
- package/node_modules/@cchistory/canonical/dist/project-linker.js.map +1 -1
- package/node_modules/@cchistory/canonical/dist/project-merge.d.ts +42 -0
- package/node_modules/@cchistory/canonical/dist/project-merge.d.ts.map +1 -0
- package/node_modules/@cchistory/canonical/dist/project-merge.js +396 -0
- package/node_modules/@cchistory/canonical/dist/project-merge.js.map +1 -0
- package/node_modules/@cchistory/canonical/dist/project-merge.test.d.ts +7 -0
- package/node_modules/@cchistory/canonical/dist/project-merge.test.d.ts.map +1 -0
- package/node_modules/@cchistory/canonical/dist/project-merge.test.js +319 -0
- package/node_modules/@cchistory/canonical/dist/project-merge.test.js.map +1 -0
- package/node_modules/@cchistory/canonical/dist/session-interpreter.d.ts.map +1 -1
- package/node_modules/@cchistory/canonical/dist/session-interpreter.js +38 -0
- package/node_modules/@cchistory/canonical/dist/session-interpreter.js.map +1 -1
- package/node_modules/@cchistory/canonical/dist/tool-call-summary.d.ts.map +1 -1
- package/node_modules/@cchistory/canonical/dist/tool-call-summary.js +8 -0
- package/node_modules/@cchistory/canonical/dist/tool-call-summary.js.map +1 -1
- package/node_modules/@cchistory/canonical/dist/usage-call-evaluation.d.ts.map +1 -1
- package/node_modules/@cchistory/canonical/dist/usage-call-evaluation.js +5 -1
- package/node_modules/@cchistory/canonical/dist/usage-call-evaluation.js.map +1 -1
- package/node_modules/@cchistory/canonical/dist/usage-trace.d.ts.map +1 -1
- package/node_modules/@cchistory/canonical/dist/usage-trace.js +10 -4
- package/node_modules/@cchistory/canonical/dist/usage-trace.js.map +1 -1
- package/node_modules/@cchistory/canonical/dist/usage.d.ts +2 -0
- package/node_modules/@cchistory/canonical/dist/usage.d.ts.map +1 -1
- package/node_modules/@cchistory/canonical/dist/usage.js +44 -6
- package/node_modules/@cchistory/canonical/dist/usage.js.map +1 -1
- package/node_modules/@cchistory/canonical/package.json +1 -1
- package/node_modules/@cchistory/domain/dist/agent-inventory.d.ts +146 -0
- package/node_modules/@cchistory/domain/dist/agent-inventory.d.ts.map +1 -0
- package/node_modules/@cchistory/domain/dist/agent-inventory.js +9 -0
- package/node_modules/@cchistory/domain/dist/agent-inventory.js.map +1 -0
- package/node_modules/@cchistory/domain/dist/agent-startup.d.ts +362 -0
- package/node_modules/@cchistory/domain/dist/agent-startup.d.ts.map +1 -0
- package/node_modules/@cchistory/domain/dist/agent-startup.js +8 -0
- package/node_modules/@cchistory/domain/dist/agent-startup.js.map +1 -0
- package/node_modules/@cchistory/domain/dist/index.d.ts +5 -0
- package/node_modules/@cchistory/domain/dist/index.d.ts.map +1 -1
- package/node_modules/@cchistory/domain/dist/index.js +3 -0
- package/node_modules/@cchistory/domain/dist/index.js.map +1 -1
- package/node_modules/@cchistory/domain/dist/index.test.js +18 -1
- package/node_modules/@cchistory/domain/dist/index.test.js.map +1 -1
- package/node_modules/@cchistory/domain/dist/project-git.d.ts +121 -0
- package/node_modules/@cchistory/domain/dist/project-git.d.ts.map +1 -0
- package/node_modules/@cchistory/domain/dist/project-git.js +93 -0
- package/node_modules/@cchistory/domain/dist/project-git.js.map +1 -0
- package/node_modules/@cchistory/domain/package.json +1 -1
- package/node_modules/@cchistory/live-runtime/dist/antigravity.test.js +15 -1
- package/node_modules/@cchistory/live-runtime/dist/antigravity.test.js.map +1 -1
- package/node_modules/@cchistory/live-runtime/dist/index.d.ts +3 -1
- package/node_modules/@cchistory/live-runtime/dist/index.d.ts.map +1 -1
- package/node_modules/@cchistory/live-runtime/dist/index.js +14 -8
- package/node_modules/@cchistory/live-runtime/dist/index.js.map +1 -1
- package/node_modules/@cchistory/live-runtime/dist/inventory-and-git.d.ts +35 -0
- package/node_modules/@cchistory/live-runtime/dist/inventory-and-git.d.ts.map +1 -0
- package/node_modules/@cchistory/live-runtime/dist/inventory-and-git.js +68 -0
- package/node_modules/@cchistory/live-runtime/dist/inventory-and-git.js.map +1 -0
- package/node_modules/@cchistory/live-runtime/package.json +1 -1
- package/node_modules/@cchistory/source-adapters/dist/core/git-project.d.ts +9 -0
- package/node_modules/@cchistory/source-adapters/dist/core/git-project.d.ts.map +1 -1
- package/node_modules/@cchistory/source-adapters/dist/core/git-project.js +130 -7
- package/node_modules/@cchistory/source-adapters/dist/core/git-project.js.map +1 -1
- package/node_modules/@cchistory/source-adapters/dist/index.d.ts +5 -0
- package/node_modules/@cchistory/source-adapters/dist/index.d.ts.map +1 -1
- package/node_modules/@cchistory/source-adapters/dist/index.js +5 -0
- package/node_modules/@cchistory/source-adapters/dist/index.js.map +1 -1
- package/node_modules/@cchistory/source-adapters/dist/index.test.d.ts +2 -0
- package/node_modules/@cchistory/source-adapters/dist/index.test.d.ts.map +1 -1
- package/node_modules/@cchistory/source-adapters/dist/index.test.js +2 -0
- package/node_modules/@cchistory/source-adapters/dist/index.test.js.map +1 -1
- package/node_modules/@cchistory/source-adapters/dist/inventory/agent-config-reader.d.ts +14 -0
- package/node_modules/@cchistory/source-adapters/dist/inventory/agent-config-reader.d.ts.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/inventory/agent-config-reader.js +397 -0
- package/node_modules/@cchistory/source-adapters/dist/inventory/agent-config-reader.js.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/inventory/agent-config-reader.test.d.ts +6 -0
- package/node_modules/@cchistory/source-adapters/dist/inventory/agent-config-reader.test.d.ts.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/inventory/agent-config-reader.test.js +106 -0
- package/node_modules/@cchistory/source-adapters/dist/inventory/agent-config-reader.test.js.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/inventory/config-io.d.ts +42 -0
- package/node_modules/@cchistory/source-adapters/dist/inventory/config-io.d.ts.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/inventory/config-io.js +368 -0
- package/node_modules/@cchistory/source-adapters/dist/inventory/config-io.js.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/inventory/redaction.d.ts +22 -0
- package/node_modules/@cchistory/source-adapters/dist/inventory/redaction.d.ts.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/inventory/redaction.js +195 -0
- package/node_modules/@cchistory/source-adapters/dist/inventory/redaction.js.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/inventory/startup/antigravity-helpers.d.ts +23 -0
- package/node_modules/@cchistory/source-adapters/dist/inventory/startup/antigravity-helpers.d.ts.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/inventory/startup/antigravity-helpers.js +147 -0
- package/node_modules/@cchistory/source-adapters/dist/inventory/startup/antigravity-helpers.js.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/inventory/startup/antigravity.d.ts +11 -0
- package/node_modules/@cchistory/source-adapters/dist/inventory/startup/antigravity.d.ts.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/inventory/startup/antigravity.js +339 -0
- package/node_modules/@cchistory/source-adapters/dist/inventory/startup/antigravity.js.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/inventory/startup/claude-code-helpers.d.ts +70 -0
- package/node_modules/@cchistory/source-adapters/dist/inventory/startup/claude-code-helpers.d.ts.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/inventory/startup/claude-code-helpers.js +257 -0
- package/node_modules/@cchistory/source-adapters/dist/inventory/startup/claude-code-helpers.js.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/inventory/startup/claude-code.d.ts +11 -0
- package/node_modules/@cchistory/source-adapters/dist/inventory/startup/claude-code.d.ts.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/inventory/startup/claude-code.js +321 -0
- package/node_modules/@cchistory/source-adapters/dist/inventory/startup/claude-code.js.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/inventory/startup/codex.d.ts +12 -0
- package/node_modules/@cchistory/source-adapters/dist/inventory/startup/codex.d.ts.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/inventory/startup/codex.js +363 -0
- package/node_modules/@cchistory/source-adapters/dist/inventory/startup/codex.js.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/inventory/startup/deepseek-harness.d.ts +20 -0
- package/node_modules/@cchistory/source-adapters/dist/inventory/startup/deepseek-harness.d.ts.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/inventory/startup/deepseek-harness.js +408 -0
- package/node_modules/@cchistory/source-adapters/dist/inventory/startup/deepseek-harness.js.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/inventory/startup/index.d.ts +24 -0
- package/node_modules/@cchistory/source-adapters/dist/inventory/startup/index.d.ts.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/inventory/startup/index.js +225 -0
- package/node_modules/@cchistory/source-adapters/dist/inventory/startup/index.js.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/inventory/startup/opencode.d.ts +12 -0
- package/node_modules/@cchistory/source-adapters/dist/inventory/startup/opencode.d.ts.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/inventory/startup/opencode.js +372 -0
- package/node_modules/@cchistory/source-adapters/dist/inventory/startup/opencode.js.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/inventory/startup/shared.d.ts +62 -0
- package/node_modules/@cchistory/source-adapters/dist/inventory/startup/shared.d.ts.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/inventory/startup/shared.js +428 -0
- package/node_modules/@cchistory/source-adapters/dist/inventory/startup/shared.js.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/inventory/startup/startup.test.d.ts +7 -0
- package/node_modules/@cchistory/source-adapters/dist/inventory/startup/startup.test.d.ts.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/inventory/startup/startup.test.js +399 -0
- package/node_modules/@cchistory/source-adapters/dist/inventory/startup/startup.test.js.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/inventory/toml.d.ts +16 -0
- package/node_modules/@cchistory/source-adapters/dist/inventory/toml.d.ts.map +1 -0
- package/node_modules/@cchistory/source-adapters/dist/inventory/toml.js +478 -0
- package/node_modules/@cchistory/source-adapters/dist/inventory/toml.js.map +1 -0
- package/node_modules/@cchistory/source-adapters/package.json +1 -1
- package/package.json +5 -5
- package/schemas/cchistory-lite-agent-v1.schema.json +3 -1
- package/schemas/cchistory-lite-envelope-v1.schema.json +33 -0
- package/schemas/cchistory-lite-inventory-v1.schema.json +94 -0
- package/schemas/cchistory-lite-merged-projects-v1.schema.json +44 -0
- package/schemas/cchistory-lite-v2.schema.json +22 -1
- package/skills/using-cchistory-lite/SKILL.md +17 -0
|
@@ -0,0 +1,396 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Role: Pure, zero-I/O cross-host project reconciliation and read-only envelope
|
|
3
|
+
* builders for Slice B (`ls projects --with-git` and `merge-projects`).
|
|
4
|
+
* Excludes filesystem reading, git process execution, and CLI formatting.
|
|
5
|
+
*/
|
|
6
|
+
import { canonicalizeGitRemote, DEFAULT_ENVELOPE_STALE_AFTER_SECONDS, maxIso, MERGED_PROJECTS_SCHEMA, } from "@cchistory/domain";
|
|
7
|
+
/**
|
|
8
|
+
* Normalize a project workspace path or display name into a lowercase directory
|
|
9
|
+
* fallback key for non-Git projects (or Git repos without an origin remote).
|
|
10
|
+
*/
|
|
11
|
+
export function normalizeDirectoryFallbackKey(workspacePath, repoRoot, displayName) {
|
|
12
|
+
const candidate = workspacePath?.trim() || repoRoot?.trim() || displayName?.trim() || "unknown";
|
|
13
|
+
const normalized = candidate.replace(/\\/gu, "/").replace(/\/+$/u, "");
|
|
14
|
+
const segments = normalized.split("/").filter(Boolean);
|
|
15
|
+
const leaf = segments.at(-1) ?? normalized;
|
|
16
|
+
return leaf.trim().toLowerCase() || "unknown";
|
|
17
|
+
}
|
|
18
|
+
export function mergeHostProjectSnapshots(inputs, options = {}) {
|
|
19
|
+
const generatedAt = options.nowIso ?? new Date().toISOString();
|
|
20
|
+
const hostSet = new Set();
|
|
21
|
+
const groups = new Map();
|
|
22
|
+
const warnings = [];
|
|
23
|
+
for (const snapshot of inputs) {
|
|
24
|
+
const hostId = snapshot.host_id.trim();
|
|
25
|
+
if (!hostId)
|
|
26
|
+
continue;
|
|
27
|
+
hostSet.add(hostId);
|
|
28
|
+
const label = snapshot.source_file ? `${hostId} (${snapshot.source_file})` : hostId;
|
|
29
|
+
if (snapshot.host_id_inferred_from_filename) {
|
|
30
|
+
warnings.push(`Snapshot ${snapshot.source_file ?? hostId} had no host_id; inferred "${hostId}" from filename (pass --host-id when exporting).`);
|
|
31
|
+
}
|
|
32
|
+
if (snapshot.truncated === true ||
|
|
33
|
+
(typeof snapshot.total_projects === "number" && snapshot.total_projects > snapshot.projects.length)) {
|
|
34
|
+
const totalLabel = typeof snapshot.total_projects === "number"
|
|
35
|
+
? `${snapshot.projects.length}/${snapshot.total_projects}`
|
|
36
|
+
: `${snapshot.projects.length}/?`;
|
|
37
|
+
warnings.push(`Snapshot for ${label} is truncated (${totalLabel} projects); re-export with --all for complete reconciliation.`);
|
|
38
|
+
}
|
|
39
|
+
if (snapshot.projects.length > 0 && snapshot.projects.every((entry) => !entry.git)) {
|
|
40
|
+
warnings.push(`Snapshot for ${label} has no Git metadata (re-export with --with-git); Git sync status is unknown and matching fell back to directory names.`);
|
|
41
|
+
}
|
|
42
|
+
for (const entry of snapshot.projects) {
|
|
43
|
+
const canonicalRemote = canonicalizeGitRemote(entry.git?.repo_remote) ??
|
|
44
|
+
canonicalizeGitRemote(entry.repo_remote) ??
|
|
45
|
+
null;
|
|
46
|
+
const matchKind = canonicalRemote ? "repo_remote" : "directory_fallback";
|
|
47
|
+
const matchKey = canonicalRemote
|
|
48
|
+
? `remote:${canonicalRemote}`
|
|
49
|
+
: `dir:${normalizeDirectoryFallbackKey(entry.primary_workspace_path, entry.repo_root, entry.display_name)}`;
|
|
50
|
+
let group = groups.get(matchKey);
|
|
51
|
+
if (!group) {
|
|
52
|
+
group = {
|
|
53
|
+
matchKey,
|
|
54
|
+
matchKind,
|
|
55
|
+
repoRemote: canonicalRemote,
|
|
56
|
+
displayNameCandidates: [],
|
|
57
|
+
byHost: new Map(),
|
|
58
|
+
};
|
|
59
|
+
groups.set(matchKey, group);
|
|
60
|
+
}
|
|
61
|
+
const displayName = entry.display_name?.trim();
|
|
62
|
+
if (displayName)
|
|
63
|
+
group.displayNameCandidates.push(displayName);
|
|
64
|
+
const nextHostState = toHostState(hostId, entry, canonicalRemote);
|
|
65
|
+
const existing = group.byHost.get(hostId);
|
|
66
|
+
group.byHost.set(hostId, existing ? combineHostStates(existing, nextHostState) : nextHostState);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
const projects = [...groups.values()]
|
|
70
|
+
.map((group) => finalizeMergedProject(group))
|
|
71
|
+
.sort(compareMergedProjects);
|
|
72
|
+
const hosts = [...hostSet].sort((a, b) => a.localeCompare(b));
|
|
73
|
+
const summary = {
|
|
74
|
+
host_count: hosts.length,
|
|
75
|
+
project_count: projects.length,
|
|
76
|
+
repo_remote_matched_count: projects.filter((p) => p.match_kind === "repo_remote").length,
|
|
77
|
+
directory_fallback_count: projects.filter((p) => p.match_kind === "directory_fallback").length,
|
|
78
|
+
multi_host_project_count: projects.filter((p) => p.host_count >= 2).length,
|
|
79
|
+
diverged_project_count: projects.filter((p) => p.branch_diverged || p.commit_diverged).length,
|
|
80
|
+
dirty_project_count: projects.filter((p) => p.dirty_hosts.length > 0).length,
|
|
81
|
+
unpushed_project_count: projects.filter((p) => p.unpushed_hosts.length > 0).length,
|
|
82
|
+
behind_project_count: projects.filter((p) => p.behind_hosts.length > 0).length,
|
|
83
|
+
no_upstream_project_count: projects.filter((p) => (p.no_upstream_hosts?.length ?? 0) > 0).length,
|
|
84
|
+
git_not_collected_project_count: projects.filter((p) => p.sync_state === "git_not_collected").length,
|
|
85
|
+
};
|
|
86
|
+
return {
|
|
87
|
+
schema: MERGED_PROJECTS_SCHEMA,
|
|
88
|
+
kind: "merged_projects",
|
|
89
|
+
generated_at: generatedAt,
|
|
90
|
+
hosts,
|
|
91
|
+
...(warnings.length > 0 ? { warnings } : {}),
|
|
92
|
+
summary,
|
|
93
|
+
projects,
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
export function buildMergedProjectsEnvelope(report, options) {
|
|
97
|
+
const hasWarnings = (report.warnings?.length ?? 0) > 0;
|
|
98
|
+
return {
|
|
99
|
+
schema_version: 1,
|
|
100
|
+
domain: "projects",
|
|
101
|
+
owner: "cchistory-lite",
|
|
102
|
+
host_id: options.hostId,
|
|
103
|
+
generated_at: report.generated_at,
|
|
104
|
+
stale_after_seconds: options.staleAfterSeconds ?? DEFAULT_ENVELOPE_STALE_AFTER_SECONDS,
|
|
105
|
+
status: hasWarnings ? "partial" : "ok",
|
|
106
|
+
error: null,
|
|
107
|
+
summary: report.summary,
|
|
108
|
+
delta: null,
|
|
109
|
+
items: report.projects,
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
export function buildProjectsEnvelope(projects, options) {
|
|
113
|
+
const totalProjectCount = options.totalProjectCount ?? projects.length;
|
|
114
|
+
const truncated = totalProjectCount > projects.length;
|
|
115
|
+
const gitInspected = options.gitInspected ?? projects.some((p) => p.git !== undefined && p.git !== null);
|
|
116
|
+
let gitOk = 0;
|
|
117
|
+
let gitDirty = 0;
|
|
118
|
+
let gitUnpushed = 0;
|
|
119
|
+
let gitBehind = 0;
|
|
120
|
+
let gitError = 0;
|
|
121
|
+
if (gitInspected) {
|
|
122
|
+
for (const project of projects) {
|
|
123
|
+
const git = project.git;
|
|
124
|
+
if (!git)
|
|
125
|
+
continue;
|
|
126
|
+
if (git.status === "ok") {
|
|
127
|
+
gitOk += 1;
|
|
128
|
+
if ((git.dirty_files ?? 0) > 0)
|
|
129
|
+
gitDirty += 1;
|
|
130
|
+
if ((git.ahead ?? 0) > 0)
|
|
131
|
+
gitUnpushed += 1;
|
|
132
|
+
if ((git.behind ?? 0) > 0)
|
|
133
|
+
gitBehind += 1;
|
|
134
|
+
}
|
|
135
|
+
else if (git.status === "timeout" || git.status === "error") {
|
|
136
|
+
gitError += 1;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
let status = "ok";
|
|
141
|
+
if (truncated || gitError > 0 || (options.readStatus && options.readStatus.status !== "no_known_gaps")) {
|
|
142
|
+
status = "partial";
|
|
143
|
+
}
|
|
144
|
+
return {
|
|
145
|
+
schema_version: 1,
|
|
146
|
+
domain: "projects",
|
|
147
|
+
owner: "cchistory-lite",
|
|
148
|
+
host_id: options.hostId,
|
|
149
|
+
generated_at: options.generatedAt,
|
|
150
|
+
stale_after_seconds: options.staleAfterSeconds ?? DEFAULT_ENVELOPE_STALE_AFTER_SECONDS,
|
|
151
|
+
status,
|
|
152
|
+
error: null,
|
|
153
|
+
summary: {
|
|
154
|
+
project_count: projects.length,
|
|
155
|
+
total_project_count: totalProjectCount,
|
|
156
|
+
truncated,
|
|
157
|
+
git_inspected: gitInspected,
|
|
158
|
+
git_ok_count: gitInspected ? gitOk : null,
|
|
159
|
+
git_dirty_count: gitInspected ? gitDirty : null,
|
|
160
|
+
git_unpushed_count: gitInspected ? gitUnpushed : null,
|
|
161
|
+
git_behind_count: gitInspected ? gitBehind : null,
|
|
162
|
+
git_error_count: gitInspected ? gitError : null,
|
|
163
|
+
},
|
|
164
|
+
delta: null,
|
|
165
|
+
items: [...projects],
|
|
166
|
+
};
|
|
167
|
+
}
|
|
168
|
+
function toHostState(hostId, entry, canonicalRemote) {
|
|
169
|
+
const git = entry.git ?? undefined;
|
|
170
|
+
return {
|
|
171
|
+
host_id: hostId,
|
|
172
|
+
project_id: entry.project_id ?? null,
|
|
173
|
+
workspace_path: entry.primary_workspace_path ?? null,
|
|
174
|
+
repo_root: git?.repo_root ?? entry.repo_root ?? null,
|
|
175
|
+
repo_remote: canonicalRemote,
|
|
176
|
+
git_status: git?.status ?? "unavailable",
|
|
177
|
+
branch: git?.branch ?? null,
|
|
178
|
+
detached: Boolean(git?.detached),
|
|
179
|
+
head_sha: git?.head_sha ?? null,
|
|
180
|
+
head_committed_at: git?.head_committed_at ?? null,
|
|
181
|
+
dirty_files: git?.dirty_files ?? null,
|
|
182
|
+
ahead: git?.ahead ?? null,
|
|
183
|
+
behind: git?.behind ?? null,
|
|
184
|
+
upstream: git?.upstream ?? null,
|
|
185
|
+
session_count: entry.session_count ?? 0,
|
|
186
|
+
turn_count: entry.turn_count ?? 0,
|
|
187
|
+
last_activity_at: entry.last_activity_at ?? null,
|
|
188
|
+
source_platforms: uniqueSorted(entry.source_platforms ?? []),
|
|
189
|
+
};
|
|
190
|
+
}
|
|
191
|
+
function combineHostStates(left, right) {
|
|
192
|
+
const preferRightGit = shouldPreferGitState(left, right);
|
|
193
|
+
const gitSource = preferRightGit ? right : left;
|
|
194
|
+
return {
|
|
195
|
+
host_id: left.host_id,
|
|
196
|
+
project_id: left.project_id ?? right.project_id,
|
|
197
|
+
workspace_path: left.workspace_path ?? right.workspace_path,
|
|
198
|
+
repo_root: gitSource.repo_root ?? left.repo_root ?? right.repo_root,
|
|
199
|
+
repo_remote: gitSource.repo_remote ?? left.repo_remote ?? right.repo_remote,
|
|
200
|
+
git_status: gitSource.git_status,
|
|
201
|
+
branch: gitSource.branch,
|
|
202
|
+
detached: gitSource.detached,
|
|
203
|
+
head_sha: gitSource.head_sha,
|
|
204
|
+
head_committed_at: gitSource.head_committed_at,
|
|
205
|
+
dirty_files: gitSource.dirty_files,
|
|
206
|
+
ahead: gitSource.ahead,
|
|
207
|
+
behind: gitSource.behind,
|
|
208
|
+
upstream: gitSource.upstream,
|
|
209
|
+
session_count: left.session_count + right.session_count,
|
|
210
|
+
turn_count: left.turn_count + right.turn_count,
|
|
211
|
+
last_activity_at: maxIso(left.last_activity_at ?? undefined, right.last_activity_at ?? undefined) ?? null,
|
|
212
|
+
source_platforms: uniqueSorted([...left.source_platforms, ...right.source_platforms]),
|
|
213
|
+
};
|
|
214
|
+
}
|
|
215
|
+
function shouldPreferGitState(left, right) {
|
|
216
|
+
if (left.git_status !== "ok" && right.git_status === "ok")
|
|
217
|
+
return true;
|
|
218
|
+
if (left.git_status === "ok" && right.git_status !== "ok")
|
|
219
|
+
return false;
|
|
220
|
+
return compareIsoDesc(right.head_committed_at, left.head_committed_at) < 0;
|
|
221
|
+
}
|
|
222
|
+
function finalizeMergedProject(group) {
|
|
223
|
+
const hosts = [...group.byHost.values()].sort((a, b) => a.host_id.localeCompare(b.host_id));
|
|
224
|
+
const hostIds = hosts.map((h) => h.host_id);
|
|
225
|
+
let latestCommitHost = null;
|
|
226
|
+
let latestCommitHosts = [];
|
|
227
|
+
let latestCommitAt = null;
|
|
228
|
+
let latestActivityHost = null;
|
|
229
|
+
let latestActivityAt = null;
|
|
230
|
+
const branches = new Set();
|
|
231
|
+
const shas = new Set();
|
|
232
|
+
const dirtyHosts = [];
|
|
233
|
+
const unpushedHosts = [];
|
|
234
|
+
const behindHosts = [];
|
|
235
|
+
const noUpstreamHosts = [];
|
|
236
|
+
let totalSessions = 0;
|
|
237
|
+
let totalTurns = 0;
|
|
238
|
+
let hasAnyGitOk = false;
|
|
239
|
+
let hasAnyInspectedGit = false;
|
|
240
|
+
for (const host of hosts) {
|
|
241
|
+
totalSessions += host.session_count;
|
|
242
|
+
totalTurns += host.turn_count;
|
|
243
|
+
if (host.git_status !== "unavailable")
|
|
244
|
+
hasAnyInspectedGit = true;
|
|
245
|
+
if (host.git_status === "ok") {
|
|
246
|
+
hasAnyGitOk = true;
|
|
247
|
+
if (host.branch)
|
|
248
|
+
branches.add(host.branch);
|
|
249
|
+
if (host.head_sha)
|
|
250
|
+
shas.add(host.head_sha);
|
|
251
|
+
if ((host.dirty_files ?? 0) > 0)
|
|
252
|
+
dirtyHosts.push(host.host_id);
|
|
253
|
+
if ((host.ahead ?? 0) > 0)
|
|
254
|
+
unpushedHosts.push(host.host_id);
|
|
255
|
+
if ((host.behind ?? 0) > 0)
|
|
256
|
+
behindHosts.push(host.host_id);
|
|
257
|
+
if (!host.upstream && host.branch && !host.detached)
|
|
258
|
+
noUpstreamHosts.push(host.host_id);
|
|
259
|
+
}
|
|
260
|
+
if (host.head_committed_at) {
|
|
261
|
+
if (isNewerIso(host.head_committed_at, latestCommitAt)) {
|
|
262
|
+
latestCommitAt = host.head_committed_at;
|
|
263
|
+
latestCommitHost = host.host_id;
|
|
264
|
+
latestCommitHosts = [host.host_id];
|
|
265
|
+
}
|
|
266
|
+
else if (latestCommitAt && isSameInstant(host.head_committed_at, latestCommitAt)) {
|
|
267
|
+
latestCommitHosts.push(host.host_id);
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
if (host.last_activity_at && isNewerIso(host.last_activity_at, latestActivityAt)) {
|
|
271
|
+
latestActivityAt = host.last_activity_at;
|
|
272
|
+
latestActivityHost = host.host_id;
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
const branchDiverged = branches.size >= 2;
|
|
276
|
+
const commitDiverged = shas.size >= 2;
|
|
277
|
+
const aheadBehindState = unpushedHosts.length > 0 && behindHosts.length > 0
|
|
278
|
+
? "ahead_behind"
|
|
279
|
+
: unpushedHosts.length > 0
|
|
280
|
+
? "unpushed"
|
|
281
|
+
: behindHosts.length > 0
|
|
282
|
+
? "behind"
|
|
283
|
+
: null;
|
|
284
|
+
let syncState;
|
|
285
|
+
if (!hasAnyGitOk) {
|
|
286
|
+
syncState = hasAnyInspectedGit ? "non_git" : "git_not_collected";
|
|
287
|
+
}
|
|
288
|
+
else if (hosts.length === 1) {
|
|
289
|
+
if (dirtyHosts.length > 0)
|
|
290
|
+
syncState = "dirty";
|
|
291
|
+
else if (aheadBehindState)
|
|
292
|
+
syncState = aheadBehindState;
|
|
293
|
+
else
|
|
294
|
+
syncState = "single_host";
|
|
295
|
+
}
|
|
296
|
+
else if (branchDiverged || commitDiverged) {
|
|
297
|
+
syncState = "diverged";
|
|
298
|
+
}
|
|
299
|
+
else if (dirtyHosts.length > 0) {
|
|
300
|
+
syncState = "dirty";
|
|
301
|
+
}
|
|
302
|
+
else if (aheadBehindState) {
|
|
303
|
+
syncState = aheadBehindState;
|
|
304
|
+
}
|
|
305
|
+
else {
|
|
306
|
+
syncState = "aligned";
|
|
307
|
+
}
|
|
308
|
+
const displayName = pickDisplayName(group);
|
|
309
|
+
return {
|
|
310
|
+
match_key: group.matchKey,
|
|
311
|
+
match_kind: group.matchKind,
|
|
312
|
+
display_name: displayName,
|
|
313
|
+
repo_remote: group.repoRemote,
|
|
314
|
+
host_ids: hostIds,
|
|
315
|
+
host_count: hosts.length,
|
|
316
|
+
sync_state: syncState,
|
|
317
|
+
latest_commit_host: latestCommitHost,
|
|
318
|
+
...(latestCommitHosts.length > 0 ? { latest_commit_hosts: latestCommitHosts } : {}),
|
|
319
|
+
latest_commit_at: latestCommitAt,
|
|
320
|
+
latest_activity_host: latestActivityHost,
|
|
321
|
+
latest_activity_at: latestActivityAt,
|
|
322
|
+
branch_diverged: branchDiverged,
|
|
323
|
+
commit_diverged: commitDiverged,
|
|
324
|
+
dirty_hosts: dirtyHosts,
|
|
325
|
+
unpushed_hosts: unpushedHosts,
|
|
326
|
+
behind_hosts: behindHosts,
|
|
327
|
+
...(noUpstreamHosts.length > 0 ? { no_upstream_hosts: noUpstreamHosts } : {}),
|
|
328
|
+
total_session_count: totalSessions,
|
|
329
|
+
total_turn_count: totalTurns,
|
|
330
|
+
hosts,
|
|
331
|
+
};
|
|
332
|
+
}
|
|
333
|
+
function pickDisplayName(group) {
|
|
334
|
+
if (group.repoRemote) {
|
|
335
|
+
const repoLeaf = group.repoRemote.split("/").filter(Boolean).at(-1);
|
|
336
|
+
if (repoLeaf)
|
|
337
|
+
return repoLeaf;
|
|
338
|
+
}
|
|
339
|
+
const counts = new Map();
|
|
340
|
+
for (const name of group.displayNameCandidates) {
|
|
341
|
+
counts.set(name, (counts.get(name) ?? 0) + 1);
|
|
342
|
+
}
|
|
343
|
+
let best;
|
|
344
|
+
let bestCount = -1;
|
|
345
|
+
for (const [name, count] of counts.entries()) {
|
|
346
|
+
if (count > bestCount || (count === bestCount && best && name.localeCompare(best) < 0)) {
|
|
347
|
+
best = name;
|
|
348
|
+
bestCount = count;
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
return best ?? group.matchKey;
|
|
352
|
+
}
|
|
353
|
+
function compareMergedProjects(left, right) {
|
|
354
|
+
const activityDiff = compareIsoDesc(left.latest_activity_at, right.latest_activity_at);
|
|
355
|
+
if (activityDiff !== 0)
|
|
356
|
+
return activityDiff;
|
|
357
|
+
const commitDiff = compareIsoDesc(left.latest_commit_at, right.latest_commit_at);
|
|
358
|
+
if (commitDiff !== 0)
|
|
359
|
+
return commitDiff;
|
|
360
|
+
return left.display_name.localeCompare(right.display_name) || left.match_key.localeCompare(right.match_key);
|
|
361
|
+
}
|
|
362
|
+
function isNewerIso(candidate, current) {
|
|
363
|
+
if (!current)
|
|
364
|
+
return true;
|
|
365
|
+
const candMs = Date.parse(candidate);
|
|
366
|
+
const currMs = Date.parse(current);
|
|
367
|
+
if (Number.isFinite(candMs) && Number.isFinite(currMs)) {
|
|
368
|
+
return candMs > currMs;
|
|
369
|
+
}
|
|
370
|
+
return candidate > current;
|
|
371
|
+
}
|
|
372
|
+
function isSameInstant(left, right) {
|
|
373
|
+
const leftMs = Date.parse(left);
|
|
374
|
+
const rightMs = Date.parse(right);
|
|
375
|
+
if (Number.isFinite(leftMs) && Number.isFinite(rightMs))
|
|
376
|
+
return leftMs === rightMs;
|
|
377
|
+
return left === right;
|
|
378
|
+
}
|
|
379
|
+
function compareIsoDesc(left, right) {
|
|
380
|
+
if (left === right)
|
|
381
|
+
return 0;
|
|
382
|
+
if (!left)
|
|
383
|
+
return 1;
|
|
384
|
+
if (!right)
|
|
385
|
+
return -1;
|
|
386
|
+
const leftMs = Date.parse(left);
|
|
387
|
+
const rightMs = Date.parse(right);
|
|
388
|
+
if (Number.isFinite(leftMs) && Number.isFinite(rightMs)) {
|
|
389
|
+
return rightMs - leftMs;
|
|
390
|
+
}
|
|
391
|
+
return right.localeCompare(left);
|
|
392
|
+
}
|
|
393
|
+
function uniqueSorted(values) {
|
|
394
|
+
return [...new Set(values.map((v) => v.trim()).filter(Boolean))].sort((a, b) => a.localeCompare(b));
|
|
395
|
+
}
|
|
396
|
+
//# sourceMappingURL=project-merge.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"project-merge.js","sourceRoot":"","sources":["../src/project-merge.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,qBAAqB,EACrB,oCAAoC,EACpC,MAAM,EACN,sBAAsB,GAavB,MAAM,mBAAmB,CAAC;AA4B3B;;;GAGG;AACH,MAAM,UAAU,6BAA6B,CAC3C,a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