@sanqianx/ai-coding-event-bridge-console 0.7.2 → 0.7.4

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 (36) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +81 -81
  3. package/console/index.html +953 -953
  4. package/package.json +26 -26
  5. package/src/agent-detect.js +128 -128
  6. package/src/bridge/bin/commit-boundary.js +64 -64
  7. package/src/bridge/connectors/capture-guard.js +24 -24
  8. package/src/bridge/connectors/claude-code/hook-entry.js +45 -45
  9. package/src/bridge/connectors/claude-code/notify.js +57 -57
  10. package/src/bridge/connectors/codex/cursor-store.js +83 -83
  11. package/src/bridge/connectors/codex/hook-entry.js +215 -215
  12. package/src/bridge/connectors/codex/session-parser.js +100 -100
  13. package/src/bridge/connectors/opencode/hook-entry.js +55 -55
  14. package/src/bridge/core/bridge.js +249 -246
  15. package/src/bridge/core/commit-projection.js +288 -288
  16. package/src/bridge/core/compaction.js +23 -23
  17. package/src/bridge/core/consumer-registry.js +111 -111
  18. package/src/bridge/core/event-schema.js +127 -127
  19. package/src/bridge/core/fs-utils.js +81 -81
  20. package/src/bridge/core/journal-router.js +39 -39
  21. package/src/bridge/core/journal.js +507 -507
  22. package/src/bridge/core/lock.js +96 -96
  23. package/src/bridge/core/normalizer.js +114 -114
  24. package/src/bridge/core/paths.js +12 -12
  25. package/src/bridge/core/project-registry.js +176 -176
  26. package/src/bridge/core/repo-context.js +191 -191
  27. package/src/bridge/core/runtime-home.js +189 -189
  28. package/src/bridge/core/semver.js +23 -23
  29. package/src/bridge/core/turn-identity.js +127 -127
  30. package/src/bridge/index.js +86 -86
  31. package/src/bridge/installers/claude-code/installer.js +181 -181
  32. package/src/bridge/installers/codex/installer.js +114 -114
  33. package/src/bridge/installers/opencode/installer.js +96 -96
  34. package/src/bridge/installers/zcode/installer.js +200 -200
  35. package/src/bridge/query/conversation-query.js +194 -194
  36. package/src/server.js +825 -825
@@ -1,39 +1,39 @@
1
- 'use strict';
2
-
3
- const path = require('path');
4
- const { Journal } = require('./journal');
5
- const { findProject } = require('./project-registry');
6
-
7
- /**
8
- * Capture-side journal routing. Events for a registered project (matched by
9
- * repoIdentity.workspaceId) are appended to that project's journal at
10
- * `<store>/journal`; everything else — unknown repos and events with no repo
11
- * identity — goes to the global journal at `<home>/journal`, so capture never
12
- * depends on the registry being readable. Journal instances are cached per
13
- * directory for the life of the process (the Codex connector appends many
14
- * records per wake-up).
15
- */
16
-
17
- const journalCache = new Map();
18
-
19
- function globalJournalDir(home) {
20
- return path.join(home, 'journal');
21
- }
22
-
23
- function projectJournalDir(project) {
24
- return path.join(project.store, 'journal');
25
- }
26
-
27
- function journalFor(home, repoIdentity) {
28
- let dir = globalJournalDir(home);
29
- const project = findProject(home, repoIdentity);
30
- if (project) dir = projectJournalDir(project);
31
- let journal = journalCache.get(dir);
32
- if (!journal) {
33
- journal = new Journal(dir);
34
- journalCache.set(dir, journal);
35
- }
36
- return journal;
37
- }
38
-
39
- module.exports = { journalFor, globalJournalDir, projectJournalDir };
1
+ 'use strict';
2
+
3
+ const path = require('path');
4
+ const { Journal } = require('./journal');
5
+ const { findProject } = require('./project-registry');
6
+
7
+ /**
8
+ * Capture-side journal routing. Events for a registered project (matched by
9
+ * repoIdentity.workspaceId) are appended to that project's journal at
10
+ * `<store>/journal`; everything else — unknown repos and events with no repo
11
+ * identity — goes to the global journal at `<home>/journal`, so capture never
12
+ * depends on the registry being readable. Journal instances are cached per
13
+ * directory for the life of the process (the Codex connector appends many
14
+ * records per wake-up).
15
+ */
16
+
17
+ const journalCache = new Map();
18
+
19
+ function globalJournalDir(home) {
20
+ return path.join(home, 'journal');
21
+ }
22
+
23
+ function projectJournalDir(project) {
24
+ return path.join(project.store, 'journal');
25
+ }
26
+
27
+ function journalFor(home, repoIdentity) {
28
+ let dir = globalJournalDir(home);
29
+ const project = findProject(home, repoIdentity);
30
+ if (project) dir = projectJournalDir(project);
31
+ let journal = journalCache.get(dir);
32
+ if (!journal) {
33
+ journal = new Journal(dir);
34
+ journalCache.set(dir, journal);
35
+ }
36
+ return journal;
37
+ }
38
+
39
+ module.exports = { journalFor, globalJournalDir, projectJournalDir };