kira-glasses-bridge 2.37.0 → 2.38.0

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 (2) hide show
  1. package/package.json +1 -1
  2. package/src/chrome.mjs +5 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kira-glasses-bridge",
3
- "version": "2.37.0",
3
+ "version": "2.38.0",
4
4
  "description": "Connects your Mac to Kira, the assistant for Even G2 glasses: Claude Code sessions, files, folders and apps, by voice.",
5
5
  "type": "module",
6
6
  "bin": {
package/src/chrome.mjs CHANGED
@@ -26,7 +26,10 @@ export function profilesOf(localState) {
26
26
  }))
27
27
  }
28
28
 
29
- /** Every bookmark in a Bookmarks file, flat, each with its folders from the root ("Bookmarks bar › Dev"). */
29
+ /**
30
+ * Every bookmark in a Bookmarks file, flat, each with its folders from the root ("Bookmarks bar › Dev") and
31
+ * its place in Chrome's order (`position`: the walk's order, so sorting by it keeps each folder as Chrome has it).
32
+ */
30
33
  export function flattenBookmarks(file) {
31
34
  const out = []
32
35
  const walk = (node, path) => {
@@ -37,6 +40,7 @@ export function flattenBookmarks(file) {
37
40
  title: String(node.name ?? ''),
38
41
  folder: path.join(SEP),
39
42
  addedAt: chromeTime(node.date_added),
43
+ position: out.length,
40
44
  })
41
45
  }
42
46
  for (const child of node?.children ?? []) walk(child, node.type === 'folder' ? [...path, node.name] : path)