@sanqianx/ai-coding-event-bridge-console 0.7.1 → 0.7.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.
Files changed (37) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +81 -74
  3. package/console/index.html +953 -948
  4. package/package.json +26 -26
  5. package/src/agent-detect.js +128 -128
  6. package/src/bin.js +80 -80
  7. package/src/bridge/bin/commit-boundary.js +64 -64
  8. package/src/bridge/connectors/capture-guard.js +24 -24
  9. package/src/bridge/connectors/claude-code/hook-entry.js +45 -45
  10. package/src/bridge/connectors/claude-code/notify.js +57 -57
  11. package/src/bridge/connectors/codex/cursor-store.js +83 -83
  12. package/src/bridge/connectors/codex/hook-entry.js +215 -215
  13. package/src/bridge/connectors/codex/session-parser.js +100 -100
  14. package/src/bridge/connectors/opencode/hook-entry.js +55 -55
  15. package/src/bridge/core/bridge.js +249 -246
  16. package/src/bridge/core/commit-projection.js +288 -288
  17. package/src/bridge/core/compaction.js +23 -23
  18. package/src/bridge/core/consumer-registry.js +111 -111
  19. package/src/bridge/core/event-schema.js +127 -127
  20. package/src/bridge/core/fs-utils.js +81 -81
  21. package/src/bridge/core/journal-router.js +39 -39
  22. package/src/bridge/core/journal.js +507 -507
  23. package/src/bridge/core/lock.js +96 -96
  24. package/src/bridge/core/normalizer.js +114 -114
  25. package/src/bridge/core/paths.js +12 -12
  26. package/src/bridge/core/project-registry.js +176 -176
  27. package/src/bridge/core/repo-context.js +191 -191
  28. package/src/bridge/core/runtime-home.js +189 -188
  29. package/src/bridge/core/semver.js +23 -23
  30. package/src/bridge/core/turn-identity.js +127 -127
  31. package/src/bridge/index.js +86 -86
  32. package/src/bridge/installers/claude-code/installer.js +181 -181
  33. package/src/bridge/installers/codex/installer.js +114 -114
  34. package/src/bridge/installers/opencode/installer.js +96 -96
  35. package/src/bridge/installers/zcode/installer.js +200 -188
  36. package/src/bridge/query/conversation-query.js +194 -194
  37. 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 };