omnimem 0.1.0 → 0.1.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.
package/bin/omnimem CHANGED
@@ -1,5 +1,15 @@
1
1
  #!/usr/bin/env bash
2
2
  set -euo pipefail
3
3
 
4
- ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
4
+ # Resolve symlinked launchers (e.g. node_modules/.bin/omnimem -> ../omnimem/bin/omnimem)
5
+ # so npx can always locate the packaged Python module.
6
+ SOURCE="${BASH_SOURCE[0]}"
7
+ while [[ -h "$SOURCE" ]]; do
8
+ DIR="$(cd -P "$(dirname "$SOURCE")" && pwd)"
9
+ SOURCE="$(readlink "$SOURCE")"
10
+ [[ "$SOURCE" != /* ]] && SOURCE="$DIR/$SOURCE"
11
+ done
12
+ SCRIPT_DIR="$(cd -P "$(dirname "$SOURCE")" && pwd)"
13
+ ROOT_DIR="$(cd "$SCRIPT_DIR/.." && pwd)"
14
+
5
15
  PYTHONPATH="$ROOT_DIR${PYTHONPATH:+:$PYTHONPATH}" exec python3 -m omnimem.cli "$@"
package/omnimem/webui.py CHANGED
@@ -56,7 +56,7 @@ HTML_PAGE = """<!doctype html>
56
56
  <div class=\"small\" data-i18n=\"subtitle\">Simple mode: Status & Actions / Configuration / Memory</div>
57
57
  </div>
58
58
  <div>
59
- <label class=\"small\" data-i18n=\"language\">Language</label>
59
+ <label class=\"small\"><span data-i18n=\"language\">Language</span></label>
60
60
  <select id=\"langSelect\" class=\"lang\">
61
61
  <option value=\"en\">English</option>
62
62
  <option value=\"zh\">中文</option>
@@ -107,14 +107,14 @@ HTML_PAGE = """<!doctype html>
107
107
  <div class=\"card wide\">
108
108
  <h3 data-i18n=\"config_title\">Configuration</h3>
109
109
  <form id=\"cfgForm\">
110
- <label data-i18n=\"cfg_path\">Config Path<input name=\"config_path\" readonly /></label>
111
- <label data-i18n=\"cfg_home\">Home<input name=\"home\" /></label>
112
- <label data-i18n=\"cfg_markdown\">Markdown Path<input name=\"markdown\" /></label>
113
- <label data-i18n=\"cfg_jsonl\">JSONL Path<input name=\"jsonl\" /></label>
114
- <label data-i18n=\"cfg_sqlite\">SQLite Path<input name=\"sqlite\" /></label>
115
- <label data-i18n=\"cfg_remote_name\">Git Remote Name<input name=\"remote_name\" /></label>
116
- <label data-i18n=\"cfg_remote_url\">Git Remote URL<input name=\"remote_url\" placeholder=\"git@github.com:user/repo.git\" /></label>
117
- <label data-i18n=\"cfg_branch\">Git Branch<input name=\"branch\" /></label>
110
+ <label><span data-i18n=\"cfg_path\">Config Path</span><input name=\"config_path\" readonly /></label>
111
+ <label><span data-i18n=\"cfg_home\">Home</span><input name=\"home\" /></label>
112
+ <label><span data-i18n=\"cfg_markdown\">Markdown Path</span><input name=\"markdown\" /></label>
113
+ <label><span data-i18n=\"cfg_jsonl\">JSONL Path</span><input name=\"jsonl\" /></label>
114
+ <label><span data-i18n=\"cfg_sqlite\">SQLite Path</span><input name=\"sqlite\" /></label>
115
+ <label><span data-i18n=\"cfg_remote_name\">Git Remote Name</span><input name=\"remote_name\" /></label>
116
+ <label><span data-i18n=\"cfg_remote_url\">Git Remote URL</span><input name=\"remote_url\" placeholder=\"git@github.com:user/repo.git\" /></label>
117
+ <label><span data-i18n=\"cfg_branch\">Git Branch</span><input name=\"branch\" /></label>
118
118
  <button type=\"submit\" data-i18n=\"btn_save\">Save Configuration</button>
119
119
  </form>
120
120
  </div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "omnimem",
3
- "version": "0.1.0",
3
+ "version": "0.1.3",
4
4
  "private": false,
5
5
  "description": "OmniMem CLI and bootstrap runner",
6
6
  "license": "MIT",