@cchistory/lite 0.9.0 → 0.9.1

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.
Files changed (175) hide show
  1. package/INSTALL.md +1 -1
  2. package/apps/lite-cli/dist/agent-contract.d.ts.map +1 -1
  3. package/apps/lite-cli/dist/agent-contract.js +41 -2
  4. package/apps/lite-cli/dist/agent-contract.js.map +1 -1
  5. package/apps/lite-cli/dist/help.js +5 -5
  6. package/apps/lite-cli/dist/index.d.ts.map +1 -1
  7. package/apps/lite-cli/dist/index.js +148 -17
  8. package/apps/lite-cli/dist/index.js.map +1 -1
  9. package/apps/lite-cli/dist/index.test.js +114 -95
  10. package/apps/lite-cli/dist/index.test.js.map +1 -1
  11. package/apps/lite-cli/dist/inventory-and-git.test.d.ts +7 -0
  12. package/apps/lite-cli/dist/inventory-and-git.test.d.ts.map +1 -0
  13. package/apps/lite-cli/dist/inventory-and-git.test.js +776 -0
  14. package/apps/lite-cli/dist/inventory-and-git.test.js.map +1 -0
  15. package/apps/lite-cli/dist/inventory-command.d.ts +30 -0
  16. package/apps/lite-cli/dist/inventory-command.d.ts.map +1 -0
  17. package/apps/lite-cli/dist/inventory-command.js +265 -0
  18. package/apps/lite-cli/dist/inventory-command.js.map +1 -0
  19. package/apps/lite-cli/dist/json-v2.d.ts +2 -2
  20. package/apps/lite-cli/dist/json-v2.d.ts.map +1 -1
  21. package/apps/lite-cli/dist/json-v2.js +9 -3
  22. package/apps/lite-cli/dist/json-v2.js.map +1 -1
  23. package/apps/lite-cli/dist/project-git-command.d.ts +28 -0
  24. package/apps/lite-cli/dist/project-git-command.d.ts.map +1 -0
  25. package/apps/lite-cli/dist/project-git-command.js +288 -0
  26. package/apps/lite-cli/dist/project-git-command.js.map +1 -0
  27. package/apps/lite-cli/dist/startup-render.d.ts +10 -0
  28. package/apps/lite-cli/dist/startup-render.d.ts.map +1 -0
  29. package/apps/lite-cli/dist/startup-render.js +335 -0
  30. package/apps/lite-cli/dist/startup-render.js.map +1 -0
  31. package/apps/lite-cli/dist/version.d.ts +1 -1
  32. package/apps/lite-cli/dist/version.js +1 -1
  33. package/apps/lite-tui/dist/render.d.ts +1 -1
  34. package/apps/lite-tui/dist/version.d.ts +1 -1
  35. package/apps/lite-tui/dist/version.js +1 -1
  36. package/docs/guide/for-agents.md +14 -0
  37. package/docs/guide/lite.md +53 -2
  38. package/node_modules/@cchistory/canonical/dist/agent-inventory.d.ts +25 -0
  39. package/node_modules/@cchistory/canonical/dist/agent-inventory.d.ts.map +1 -0
  40. package/node_modules/@cchistory/canonical/dist/agent-inventory.js +345 -0
  41. package/node_modules/@cchistory/canonical/dist/agent-inventory.js.map +1 -0
  42. package/node_modules/@cchistory/canonical/dist/agent-inventory.test.d.ts +7 -0
  43. package/node_modules/@cchistory/canonical/dist/agent-inventory.test.d.ts.map +1 -0
  44. package/node_modules/@cchistory/canonical/dist/agent-inventory.test.js +231 -0
  45. package/node_modules/@cchistory/canonical/dist/agent-inventory.test.js.map +1 -0
  46. package/node_modules/@cchistory/canonical/dist/directory-scope.d.ts.map +1 -1
  47. package/node_modules/@cchistory/canonical/dist/directory-scope.js +4 -1
  48. package/node_modules/@cchistory/canonical/dist/directory-scope.js.map +1 -1
  49. package/node_modules/@cchistory/canonical/dist/index.d.ts +2 -0
  50. package/node_modules/@cchistory/canonical/dist/index.d.ts.map +1 -1
  51. package/node_modules/@cchistory/canonical/dist/index.js +2 -0
  52. package/node_modules/@cchistory/canonical/dist/index.js.map +1 -1
  53. package/node_modules/@cchistory/canonical/dist/project-merge.d.ts +42 -0
  54. package/node_modules/@cchistory/canonical/dist/project-merge.d.ts.map +1 -0
  55. package/node_modules/@cchistory/canonical/dist/project-merge.js +396 -0
  56. package/node_modules/@cchistory/canonical/dist/project-merge.js.map +1 -0
  57. package/node_modules/@cchistory/canonical/dist/project-merge.test.d.ts +7 -0
  58. package/node_modules/@cchistory/canonical/dist/project-merge.test.d.ts.map +1 -0
  59. package/node_modules/@cchistory/canonical/dist/project-merge.test.js +319 -0
  60. package/node_modules/@cchistory/canonical/dist/project-merge.test.js.map +1 -0
  61. package/node_modules/@cchistory/canonical/dist/session-interpreter.d.ts.map +1 -1
  62. package/node_modules/@cchistory/canonical/dist/session-interpreter.js +38 -0
  63. package/node_modules/@cchistory/canonical/dist/session-interpreter.js.map +1 -1
  64. package/node_modules/@cchistory/canonical/dist/tool-call-summary.d.ts.map +1 -1
  65. package/node_modules/@cchistory/canonical/dist/tool-call-summary.js +8 -0
  66. package/node_modules/@cchistory/canonical/dist/tool-call-summary.js.map +1 -1
  67. package/node_modules/@cchistory/canonical/package.json +1 -1
  68. package/node_modules/@cchistory/domain/dist/agent-inventory.d.ts +146 -0
  69. package/node_modules/@cchistory/domain/dist/agent-inventory.d.ts.map +1 -0
  70. package/node_modules/@cchistory/domain/dist/agent-inventory.js +9 -0
  71. package/node_modules/@cchistory/domain/dist/agent-inventory.js.map +1 -0
  72. package/node_modules/@cchistory/domain/dist/agent-startup.d.ts +362 -0
  73. package/node_modules/@cchistory/domain/dist/agent-startup.d.ts.map +1 -0
  74. package/node_modules/@cchistory/domain/dist/agent-startup.js +8 -0
  75. package/node_modules/@cchistory/domain/dist/agent-startup.js.map +1 -0
  76. package/node_modules/@cchistory/domain/dist/index.d.ts +5 -0
  77. package/node_modules/@cchistory/domain/dist/index.d.ts.map +1 -1
  78. package/node_modules/@cchistory/domain/dist/index.js +3 -0
  79. package/node_modules/@cchistory/domain/dist/index.js.map +1 -1
  80. package/node_modules/@cchistory/domain/dist/index.test.js +18 -1
  81. package/node_modules/@cchistory/domain/dist/index.test.js.map +1 -1
  82. package/node_modules/@cchistory/domain/dist/project-git.d.ts +121 -0
  83. package/node_modules/@cchistory/domain/dist/project-git.d.ts.map +1 -0
  84. package/node_modules/@cchistory/domain/dist/project-git.js +93 -0
  85. package/node_modules/@cchistory/domain/dist/project-git.js.map +1 -0
  86. package/node_modules/@cchistory/domain/package.json +1 -1
  87. package/node_modules/@cchistory/live-runtime/dist/index.d.ts +2 -1
  88. package/node_modules/@cchistory/live-runtime/dist/index.d.ts.map +1 -1
  89. package/node_modules/@cchistory/live-runtime/dist/index.js +2 -1
  90. package/node_modules/@cchistory/live-runtime/dist/index.js.map +1 -1
  91. package/node_modules/@cchistory/live-runtime/dist/inventory-and-git.d.ts +35 -0
  92. package/node_modules/@cchistory/live-runtime/dist/inventory-and-git.d.ts.map +1 -0
  93. package/node_modules/@cchistory/live-runtime/dist/inventory-and-git.js +68 -0
  94. package/node_modules/@cchistory/live-runtime/dist/inventory-and-git.js.map +1 -0
  95. package/node_modules/@cchistory/live-runtime/package.json +1 -1
  96. package/node_modules/@cchistory/source-adapters/dist/core/git-project.d.ts +9 -0
  97. package/node_modules/@cchistory/source-adapters/dist/core/git-project.d.ts.map +1 -1
  98. package/node_modules/@cchistory/source-adapters/dist/core/git-project.js +130 -7
  99. package/node_modules/@cchistory/source-adapters/dist/core/git-project.js.map +1 -1
  100. package/node_modules/@cchistory/source-adapters/dist/index.d.ts +5 -0
  101. package/node_modules/@cchistory/source-adapters/dist/index.d.ts.map +1 -1
  102. package/node_modules/@cchistory/source-adapters/dist/index.js +5 -0
  103. package/node_modules/@cchistory/source-adapters/dist/index.js.map +1 -1
  104. package/node_modules/@cchistory/source-adapters/dist/index.test.d.ts +2 -0
  105. package/node_modules/@cchistory/source-adapters/dist/index.test.d.ts.map +1 -1
  106. package/node_modules/@cchistory/source-adapters/dist/index.test.js +2 -0
  107. package/node_modules/@cchistory/source-adapters/dist/index.test.js.map +1 -1
  108. package/node_modules/@cchistory/source-adapters/dist/inventory/agent-config-reader.d.ts +14 -0
  109. package/node_modules/@cchistory/source-adapters/dist/inventory/agent-config-reader.d.ts.map +1 -0
  110. package/node_modules/@cchistory/source-adapters/dist/inventory/agent-config-reader.js +397 -0
  111. package/node_modules/@cchistory/source-adapters/dist/inventory/agent-config-reader.js.map +1 -0
  112. package/node_modules/@cchistory/source-adapters/dist/inventory/agent-config-reader.test.d.ts +6 -0
  113. package/node_modules/@cchistory/source-adapters/dist/inventory/agent-config-reader.test.d.ts.map +1 -0
  114. package/node_modules/@cchistory/source-adapters/dist/inventory/agent-config-reader.test.js +106 -0
  115. package/node_modules/@cchistory/source-adapters/dist/inventory/agent-config-reader.test.js.map +1 -0
  116. package/node_modules/@cchistory/source-adapters/dist/inventory/config-io.d.ts +42 -0
  117. package/node_modules/@cchistory/source-adapters/dist/inventory/config-io.d.ts.map +1 -0
  118. package/node_modules/@cchistory/source-adapters/dist/inventory/config-io.js +368 -0
  119. package/node_modules/@cchistory/source-adapters/dist/inventory/config-io.js.map +1 -0
  120. package/node_modules/@cchistory/source-adapters/dist/inventory/redaction.d.ts +22 -0
  121. package/node_modules/@cchistory/source-adapters/dist/inventory/redaction.d.ts.map +1 -0
  122. package/node_modules/@cchistory/source-adapters/dist/inventory/redaction.js +195 -0
  123. package/node_modules/@cchistory/source-adapters/dist/inventory/redaction.js.map +1 -0
  124. package/node_modules/@cchistory/source-adapters/dist/inventory/startup/antigravity-helpers.d.ts +23 -0
  125. package/node_modules/@cchistory/source-adapters/dist/inventory/startup/antigravity-helpers.d.ts.map +1 -0
  126. package/node_modules/@cchistory/source-adapters/dist/inventory/startup/antigravity-helpers.js +147 -0
  127. package/node_modules/@cchistory/source-adapters/dist/inventory/startup/antigravity-helpers.js.map +1 -0
  128. package/node_modules/@cchistory/source-adapters/dist/inventory/startup/antigravity.d.ts +11 -0
  129. package/node_modules/@cchistory/source-adapters/dist/inventory/startup/antigravity.d.ts.map +1 -0
  130. package/node_modules/@cchistory/source-adapters/dist/inventory/startup/antigravity.js +339 -0
  131. package/node_modules/@cchistory/source-adapters/dist/inventory/startup/antigravity.js.map +1 -0
  132. package/node_modules/@cchistory/source-adapters/dist/inventory/startup/claude-code-helpers.d.ts +70 -0
  133. package/node_modules/@cchistory/source-adapters/dist/inventory/startup/claude-code-helpers.d.ts.map +1 -0
  134. package/node_modules/@cchistory/source-adapters/dist/inventory/startup/claude-code-helpers.js +257 -0
  135. package/node_modules/@cchistory/source-adapters/dist/inventory/startup/claude-code-helpers.js.map +1 -0
  136. package/node_modules/@cchistory/source-adapters/dist/inventory/startup/claude-code.d.ts +11 -0
  137. package/node_modules/@cchistory/source-adapters/dist/inventory/startup/claude-code.d.ts.map +1 -0
  138. package/node_modules/@cchistory/source-adapters/dist/inventory/startup/claude-code.js +321 -0
  139. package/node_modules/@cchistory/source-adapters/dist/inventory/startup/claude-code.js.map +1 -0
  140. package/node_modules/@cchistory/source-adapters/dist/inventory/startup/codex.d.ts +12 -0
  141. package/node_modules/@cchistory/source-adapters/dist/inventory/startup/codex.d.ts.map +1 -0
  142. package/node_modules/@cchistory/source-adapters/dist/inventory/startup/codex.js +363 -0
  143. package/node_modules/@cchistory/source-adapters/dist/inventory/startup/codex.js.map +1 -0
  144. package/node_modules/@cchistory/source-adapters/dist/inventory/startup/deepseek-harness.d.ts +20 -0
  145. package/node_modules/@cchistory/source-adapters/dist/inventory/startup/deepseek-harness.d.ts.map +1 -0
  146. package/node_modules/@cchistory/source-adapters/dist/inventory/startup/deepseek-harness.js +408 -0
  147. package/node_modules/@cchistory/source-adapters/dist/inventory/startup/deepseek-harness.js.map +1 -0
  148. package/node_modules/@cchistory/source-adapters/dist/inventory/startup/index.d.ts +24 -0
  149. package/node_modules/@cchistory/source-adapters/dist/inventory/startup/index.d.ts.map +1 -0
  150. package/node_modules/@cchistory/source-adapters/dist/inventory/startup/index.js +225 -0
  151. package/node_modules/@cchistory/source-adapters/dist/inventory/startup/index.js.map +1 -0
  152. package/node_modules/@cchistory/source-adapters/dist/inventory/startup/opencode.d.ts +12 -0
  153. package/node_modules/@cchistory/source-adapters/dist/inventory/startup/opencode.d.ts.map +1 -0
  154. package/node_modules/@cchistory/source-adapters/dist/inventory/startup/opencode.js +372 -0
  155. package/node_modules/@cchistory/source-adapters/dist/inventory/startup/opencode.js.map +1 -0
  156. package/node_modules/@cchistory/source-adapters/dist/inventory/startup/shared.d.ts +62 -0
  157. package/node_modules/@cchistory/source-adapters/dist/inventory/startup/shared.d.ts.map +1 -0
  158. package/node_modules/@cchistory/source-adapters/dist/inventory/startup/shared.js +428 -0
  159. package/node_modules/@cchistory/source-adapters/dist/inventory/startup/shared.js.map +1 -0
  160. package/node_modules/@cchistory/source-adapters/dist/inventory/startup/startup.test.d.ts +7 -0
  161. package/node_modules/@cchistory/source-adapters/dist/inventory/startup/startup.test.d.ts.map +1 -0
  162. package/node_modules/@cchistory/source-adapters/dist/inventory/startup/startup.test.js +399 -0
  163. package/node_modules/@cchistory/source-adapters/dist/inventory/startup/startup.test.js.map +1 -0
  164. package/node_modules/@cchistory/source-adapters/dist/inventory/toml.d.ts +16 -0
  165. package/node_modules/@cchistory/source-adapters/dist/inventory/toml.d.ts.map +1 -0
  166. package/node_modules/@cchistory/source-adapters/dist/inventory/toml.js +478 -0
  167. package/node_modules/@cchistory/source-adapters/dist/inventory/toml.js.map +1 -0
  168. package/node_modules/@cchistory/source-adapters/package.json +1 -1
  169. package/package.json +5 -5
  170. package/schemas/cchistory-lite-agent-v1.schema.json +3 -1
  171. package/schemas/cchistory-lite-envelope-v1.schema.json +33 -0
  172. package/schemas/cchistory-lite-inventory-v1.schema.json +94 -0
  173. package/schemas/cchistory-lite-merged-projects-v1.schema.json +44 -0
  174. package/schemas/cchistory-lite-v2.schema.json +22 -1
  175. package/skills/using-cchistory-lite/SKILL.md +17 -0
@@ -0,0 +1,94 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://cchistory.dev/schemas/cchistory-lite-inventory-v1.schema.json",
4
+ "title": "CC History Lite read-only AI agent inventory report",
5
+ "type": "object",
6
+ "required": [
7
+ "schema",
8
+ "kind",
9
+ "generated_at",
10
+ "home_dir",
11
+ "project_dir",
12
+ "summary",
13
+ "activity",
14
+ "agents",
15
+ "mcp_servers",
16
+ "extensions",
17
+ "unused_mcp_servers",
18
+ "diagnostics"
19
+ ],
20
+ "properties": {
21
+ "schema": { "const": "cchistory-lite-inventory/v1" },
22
+ "kind": { "const": "agent_inventory" },
23
+ "generated_at": { "type": "string" },
24
+ "home_dir": { "type": "string" },
25
+ "project_dir": { "type": ["string", "null"] },
26
+ "summary": {
27
+ "type": "object",
28
+ "required": [
29
+ "agent_count",
30
+ "installed_agent_count",
31
+ "configured_agent_count",
32
+ "active_agent_count",
33
+ "mcp_server_count",
34
+ "used_mcp_server_count",
35
+ "unused_mcp_server_count",
36
+ "skill_count",
37
+ "rule_count",
38
+ "subagent_count",
39
+ "plugin_count",
40
+ "hook_count",
41
+ "extension_count",
42
+ "diagnostic_count"
43
+ ],
44
+ "additionalProperties": false,
45
+ "properties": {
46
+ "agent_count": { "type": "integer", "minimum": 0 },
47
+ "installed_agent_count": { "type": "integer", "minimum": 0 },
48
+ "configured_agent_count": { "type": "integer", "minimum": 0 },
49
+ "active_agent_count": { "type": ["integer", "null"], "minimum": 0 },
50
+ "mcp_server_count": { "type": "integer", "minimum": 0 },
51
+ "used_mcp_server_count": { "type": ["integer", "null"], "minimum": 0 },
52
+ "unused_mcp_server_count": { "type": ["integer", "null"], "minimum": 0 },
53
+ "skill_count": { "type": "integer", "minimum": 0 },
54
+ "rule_count": { "type": "integer", "minimum": 0 },
55
+ "subagent_count": { "type": "integer", "minimum": 0 },
56
+ "plugin_count": { "type": "integer", "minimum": 0 },
57
+ "hook_count": { "type": "integer", "minimum": 0 },
58
+ "extension_count": { "type": "integer", "minimum": 0 },
59
+ "diagnostic_count": { "type": "integer", "minimum": 0 }
60
+ }
61
+ },
62
+ "activity": {
63
+ "type": "object",
64
+ "required": [
65
+ "correlated",
66
+ "window",
67
+ "since_at",
68
+ "until_at",
69
+ "total_sessions",
70
+ "total_tool_calls",
71
+ "matched_mcp_calls",
72
+ "unmatched_mcp_tool_names"
73
+ ],
74
+ "additionalProperties": false,
75
+ "properties": {
76
+ "correlated": { "type": "boolean" },
77
+ "window": { "type": "string" },
78
+ "since_at": { "type": ["string", "null"] },
79
+ "until_at": { "type": "string" },
80
+ "total_sessions": { "type": "integer", "minimum": 0 },
81
+ "total_tool_calls": { "type": "integer", "minimum": 0 },
82
+ "matched_mcp_calls": { "type": "integer", "minimum": 0 },
83
+ "unmatched_mcp_tool_names": { "type": "array", "items": { "type": "string" } }
84
+ }
85
+ },
86
+ "agents": { "type": "array", "items": { "type": "object" } },
87
+ "mcp_servers": { "type": "array", "items": { "type": "object" } },
88
+ "extensions": { "type": "array", "items": { "type": "object" } },
89
+ "unused_mcp_servers": { "type": "array", "items": { "type": "object" } },
90
+ "diagnostics": { "type": "array", "items": { "type": "object" } },
91
+ "startup_contexts": { "type": "array", "items": { "type": "object" } }
92
+ },
93
+ "additionalProperties": false
94
+ }
@@ -0,0 +1,44 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://cchistory.dev/schemas/cchistory-lite-merged-projects-v1.schema.json",
4
+ "title": "CC History Lite multi-host project reconciliation report",
5
+ "type": "object",
6
+ "required": ["schema", "kind", "generated_at", "hosts", "summary", "projects"],
7
+ "properties": {
8
+ "schema": { "const": "cchistory-lite-merged-projects/v1" },
9
+ "kind": { "const": "merged_projects" },
10
+ "generated_at": { "type": "string" },
11
+ "hosts": { "type": "array", "items": { "type": "string" } },
12
+ "warnings": { "type": "array", "items": { "type": "string" } },
13
+ "summary": {
14
+ "type": "object",
15
+ "required": [
16
+ "host_count",
17
+ "project_count",
18
+ "repo_remote_matched_count",
19
+ "directory_fallback_count",
20
+ "multi_host_project_count",
21
+ "diverged_project_count",
22
+ "dirty_project_count",
23
+ "unpushed_project_count",
24
+ "behind_project_count"
25
+ ],
26
+ "additionalProperties": false,
27
+ "properties": {
28
+ "host_count": { "type": "integer", "minimum": 0 },
29
+ "project_count": { "type": "integer", "minimum": 0 },
30
+ "repo_remote_matched_count": { "type": "integer", "minimum": 0 },
31
+ "directory_fallback_count": { "type": "integer", "minimum": 0 },
32
+ "multi_host_project_count": { "type": "integer", "minimum": 0 },
33
+ "diverged_project_count": { "type": "integer", "minimum": 0 },
34
+ "dirty_project_count": { "type": "integer", "minimum": 0 },
35
+ "unpushed_project_count": { "type": "integer", "minimum": 0 },
36
+ "behind_project_count": { "type": "integer", "minimum": 0 },
37
+ "no_upstream_project_count": { "type": "integer", "minimum": 0 },
38
+ "git_not_collected_project_count": { "type": "integer", "minimum": 0 }
39
+ }
40
+ },
41
+ "projects": { "type": "array", "items": { "type": "object" } }
42
+ },
43
+ "additionalProperties": false
44
+ }
@@ -96,6 +96,7 @@
96
96
  }
97
97
  },
98
98
  "projection_issues": { "type": "array", "items": { "$ref": "#/$defs/projectionIssue" } },
99
+ "host_id": { "$ref": "#/$defs/nullableString" },
99
100
  "sources": { "type": "array", "items": { "$ref": "#/$defs/source" } },
100
101
  "projects": { "type": "array", "items": { "$ref": "#/$defs/project" } },
101
102
  "sessions": { "type": "array", "items": { "$ref": "#/$defs/session" } },
@@ -149,7 +150,27 @@
149
150
  "source_platforms": { "type": "array", "items": { "type": "string" } },
150
151
  "session_count": { "type": "integer", "minimum": 0 },
151
152
  "turn_count": { "type": "integer", "minimum": 0 },
152
- "last_activity_at": { "$ref": "#/$defs/nullableString" }
153
+ "last_activity_at": { "$ref": "#/$defs/nullableString" },
154
+ "git": { "$ref": "#/$defs/projectGit" }
155
+ },
156
+ "additionalProperties": false
157
+ },
158
+ "projectGit": {
159
+ "type": "object",
160
+ "required": ["status", "repo_root", "repo_remote", "branch", "head_sha", "head_committed_at", "dirty_files", "ahead", "behind"],
161
+ "properties": {
162
+ "status": { "enum": ["ok", "not_git", "missing_path", "timeout", "error"] },
163
+ "repo_root": { "$ref": "#/$defs/nullableString" },
164
+ "repo_remote": { "$ref": "#/$defs/nullableString" },
165
+ "branch": { "$ref": "#/$defs/nullableString" },
166
+ "detached": { "type": "boolean" },
167
+ "head_sha": { "$ref": "#/$defs/nullableString" },
168
+ "head_committed_at": { "$ref": "#/$defs/nullableString" },
169
+ "dirty_files": { "type": ["integer", "null"], "minimum": 0 },
170
+ "ahead": { "type": ["integer", "null"], "minimum": 0 },
171
+ "behind": { "type": ["integer", "null"], "minimum": 0 },
172
+ "upstream": { "$ref": "#/$defs/nullableString" },
173
+ "error": { "type": "string" }
153
174
  },
154
175
  "additionalProperties": false
155
176
  },
@@ -118,6 +118,23 @@ stdout keeps its existing result format. Diagnostics contain no transcript bodie
118
118
  or query text, but can include local paths. Do not
119
119
  disable the guard or cycle through broader/sample reads to evade a failure.
120
120
 
121
+ For local AI agent / MCP / skills / subagent / plugin configuration inventory, 30-day usage correlation, and per-tool native pre-launch startup context resolution:
122
+
123
+ ```sh
124
+ cchistory-lite inventory --json
125
+ cchistory-lite inventory --agent claude,codex --no-activity
126
+ cchistory-lite inventory --dir /path/to/project --agent claude_code --no-activity
127
+ cchistory-lite inventory --envelope --host-id "$(hostname)"
128
+ ```
129
+
130
+ For opt-in local Git status per project and offline multi-host project reconciliation:
131
+
132
+ ```sh
133
+ cchistory-lite ls projects --no-dir --all --with-git --host-id host-a --json > host-a.json
134
+ cchistory-lite ls projects --no-dir --with-git --envelope --host-id host-b > host-b.json
135
+ cchistory-lite merge-projects host-a.json host-b.json --json
136
+ ```
137
+
121
138
  ## Optional details
122
139
 
123
140
  No discovery or documentation command is required before a task query.