Compare commits
4 Commits
app-v0.1.1
...
app-v0.1.1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1cdfbf5151 | ||
|
|
b2b6f92943 | ||
|
|
1f2a8ec05e | ||
|
|
04b516dbc1 |
2
app/Cargo.lock
generated
2
app/Cargo.lock
generated
@@ -1520,7 +1520,7 @@ checksum = "3bd1574e617a9a6c1f8f8181bd7e841e1f20e4277607ef28945765188d6284d4"
|
||||
|
||||
[[package]]
|
||||
name = "jarvis-app"
|
||||
version = "0.1.13"
|
||||
version = "0.1.15"
|
||||
dependencies = [
|
||||
"async-trait",
|
||||
"base64 0.22.1",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "jarvis-app"
|
||||
version = "0.1.13"
|
||||
version = "0.1.15"
|
||||
edition = "2021"
|
||||
rust-version = "1.85"
|
||||
description = "Jarvis v2 Windows app core: Discord voice, voice worker supervisor, chat channels"
|
||||
|
||||
4
app/shell/Cargo.lock
generated
4
app/shell/Cargo.lock
generated
@@ -2637,7 +2637,7 @@ checksum = "3bd1574e617a9a6c1f8f8181bd7e841e1f20e4277607ef28945765188d6284d4"
|
||||
|
||||
[[package]]
|
||||
name = "jarvis-app"
|
||||
version = "0.1.13"
|
||||
version = "0.1.15"
|
||||
dependencies = [
|
||||
"async-trait",
|
||||
"base64 0.22.1",
|
||||
@@ -2666,7 +2666,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "jarvis-shell"
|
||||
version = "0.1.13"
|
||||
version = "0.1.15"
|
||||
dependencies = [
|
||||
"jarvis-app",
|
||||
"serde_json",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "jarvis-shell"
|
||||
version = "0.1.13"
|
||||
version = "0.1.15"
|
||||
edition = "2021"
|
||||
rust-version = "1.85"
|
||||
description = "Jarvis v2 management app window (Tauri 2 over the app core's AdminApi)"
|
||||
|
||||
@@ -256,14 +256,18 @@ SectionEnd
|
||||
|
||||
; Every shortcut to jarvis.exe on the desktops and in the start menus, their folders included (the
|
||||
; person's own too, and the installer's from an earlier version, which an update does not make
|
||||
; again) shows this version's icon file; then Explorer redraws its icons. The paths go in through
|
||||
; again) shows this version's icon file; then Explorer redraws its icons. A shortcut to another
|
||||
; Jarvis install's jarvis.exe (a folder with uninstall.exe and python-src, left behind when an
|
||||
; earlier update installed into Program Files instead) starts this one instead, so it opens the
|
||||
; Jarvis that runs, not an old copy. The paths go in through
|
||||
; the environment, so no install folder name can break the command. The 64-bit PowerShell
|
||||
; (SysNative from this 32-bit installer): a 32-bit one reads a link to Program Files as one to
|
||||
; Program Files (x86).
|
||||
Section "-Icons"
|
||||
System::Call 'kernel32::SetEnvironmentVariable(t "JARVIS_EXE", t "$INSTDIR\jarvis.exe")'
|
||||
System::Call 'kernel32::SetEnvironmentVariable(t "JARVIS_ICON", t "$INSTDIR\${ICON_FILE},0")'
|
||||
nsExec::Exec `"$WINDIR\SysNative\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -NonInteractive -Command "$$w = New-Object -ComObject WScript.Shell; foreach ($$d in 'Desktop', 'CommonDesktopDirectory', 'Programs', 'CommonPrograms') { Get-ChildItem -LiteralPath ([Environment]::GetFolderPath($$d)) -Filter *.lnk -Recurse:($$d -like '*Programs') -EA 0 | ForEach-Object { $$l = $$w.CreateShortcut($$_.FullName); if ($$l.TargetPath -ieq $$env:JARVIS_EXE) { $$l.IconLocation = $$env:JARVIS_ICON; $$l.Save() } } }"`
|
||||
System::Call 'kernel32::SetEnvironmentVariable(t "JARVIS_DIR", t "$INSTDIR")'
|
||||
nsExec::Exec `"$WINDIR\SysNative\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -NonInteractive -Command "$$w = New-Object -ComObject WScript.Shell; foreach ($$d in 'Desktop', 'CommonDesktopDirectory', 'Programs', 'CommonPrograms') { Get-ChildItem -LiteralPath ([Environment]::GetFolderPath($$d)) -Filter *.lnk -Recurse:($$d -like '*Programs') -EA 0 | ForEach-Object { $$l = $$w.CreateShortcut($$_.FullName); $$t = $$l.TargetPath; if ($$t -and (Split-Path -Leaf $$t) -ieq 'jarvis.exe' -and (Test-Path -LiteralPath (Join-Path (Split-Path $$t) 'uninstall.exe')) -and (Test-Path -LiteralPath (Join-Path (Split-Path $$t) 'python-src'))) { if ($$t -ine $$env:JARVIS_EXE) { $$l.TargetPath = $$env:JARVIS_EXE; $$l.WorkingDirectory = $$env:JARVIS_DIR }; $$l.IconLocation = $$env:JARVIS_ICON; $$l.Save() } } }"`
|
||||
Pop $0
|
||||
${If} $0 != 0
|
||||
DetailPrint "바로 가기 아이콘을 바꾸지 못했습니다 ($0)"
|
||||
|
||||
@@ -246,10 +246,13 @@ records and "Traces"), so it works while the services are stopped. Nothing it re
|
||||
were left out, the people who spoke (their latest name) and the channels with records (with the
|
||||
name given a chat channel in the settings), and `session`, when the latest start began (Unix
|
||||
seconds, null before the first). Without the file: no items and `missing: true`.
|
||||
- `history_stamp`: `{stamp}`, a string that changes when a record or trace is added and as a trace
|
||||
still being made gets a step or ends (the newest ids, and the number and length of the steps of
|
||||
the traces being made), cheap enough to ask twice a second; not logged.
|
||||
|
||||
## Activity (`app/src/activity.rs`)
|
||||
|
||||
`docs/v2/proactive.md` (제안 5). What Jarvis did outside its answers, for the 한 일 screen: each chat
|
||||
`docs/v2/proactive.md` (제안 5). What Jarvis did outside its answers, for the 로그 screen's 한 일 view: each chat
|
||||
channel action the brain's tool asked for (`chat.send`, `chat.edit`, `chat.react`, `chat.delete`,
|
||||
`chat.pin`, `chat.unpin`), each schedule delivery (`schedule.remind`, `schedule.task`) and each
|
||||
news notification (`collect.notify`), each screen capture (`screen.view`, "Screen viewing"), done or failed. The other PC control actions join it with M7. Ordinary answers are not recorded.
|
||||
@@ -691,6 +694,7 @@ back as Korean messages for the screen. The Tauri shell passes the screens' `inv
|
||||
| `discord_channel_info` `{id}` / `channel_sync_status` | a channel's Discord name and topic / each synced chat channel's last result (above) |
|
||||
| `notes_list` / `note_update` `{id, text}` / `note_delete` `{id}` | everyone's personal notes (above) / change one's text / delete one |
|
||||
| `history_query` `{said, answered, thought, via, person, channel, find, since, until, session, before, from, limit}` | the 대화 screen's records and answer traces (above, "Conversations") |
|
||||
| `history_stamp` | `{stamp}`: changes when what the 대화 screen shows may have changed (above, "Conversations") |
|
||||
| `activity_list` `{limit}` | what Jarvis did (above, "Activity"), newest first |
|
||||
| `schedules_list` / `schedule_delete` `{id}` | every person's schedules (above), soonest first, with IDs as strings / delete one |
|
||||
| `collect_results` `{target, limit}` | `{targets, items}`: every target folder with results, and the collected items newest first (`target` null: every target; `limit` 1-500, default 100) |
|
||||
@@ -710,7 +714,7 @@ its data folder, and again after each one is saved. The log hub writes to the da
|
||||
|
||||
Plain HTML, CSS and an ES module, no build step, dark theme after `DESIGN.md`. All text is Korean.
|
||||
The side menu has 대화 right under 대시보드 and 앱 last; there is no separate update screen (updates
|
||||
are on the 앱 screen).
|
||||
are on the 앱 screen) and no separate 한 일 screen (it is a view of the 로그 screen).
|
||||
|
||||
- **First-run wizard** (while `firstRun`): data folder (free space, warning under 200 GB), PC check,
|
||||
the model to download, Discord bot (token check with the
|
||||
@@ -752,7 +756,9 @@ are on the 앱 screen).
|
||||
the count line starts with that start's date and time, and with no start yet in this app run the
|
||||
list says so; a new start while it is on starts the list over from that start), where (음성,
|
||||
채팅, 정기 작업), person, channel, one day and text; "실시간" (on by
|
||||
default) re-reads the live window every second while a trace in it is being made, else every 3 seconds: every item from its first one on (`from`, up to
|
||||
default) asks for `history_stamp` twice a second and re-reads the live window at once when it
|
||||
changed (so a trace shows from its question on, before a quick answer ends), and every 3 seconds
|
||||
anyway: every item from its first one on (`from`, up to
|
||||
2,000). Only items in that window change on screen, an edited message included; items paged back
|
||||
past it stay as they were loaded (edits and deletes there show after a reload of the screen). The
|
||||
screen redraws only when an item changed, keeping the cards the user opened open and the scroll
|
||||
@@ -763,13 +769,13 @@ are on the 앱 screen).
|
||||
how far back it goes; a filter change drops every answer to a request made before it, and a live
|
||||
answer older than the newest one asked is dropped; "생각 모두 펼치기/접기"; a count of each kind
|
||||
shown. The paging is `app/ui/talk.js`, pure, checked by `node --test app/tests/ui/talk.test.mjs`.
|
||||
- **한 일**: the activity (time, kind, target, who asked, outcome and why it failed), newest 200,
|
||||
with a refresh button.
|
||||
- **업데이트** (a card on the 앱 screen, re-read every second while it is shown): the version here,
|
||||
the state, "다시 확인", "받기" (with its percentage) and "설치하고 다시 시작", and the release's
|
||||
notes as plain text. The app checks once when the main screens open; a newer release renames the
|
||||
앱 button "앱 (새 버전)" and says so once.
|
||||
- **Logs**: tab, level and text filters, pause, live follow (lines after the last seen), "최근 오류
|
||||
- **Logs** (로그): two views switched at the top, 로그 and 한 일. 한 일 is the activity (time, kind,
|
||||
target, who asked, outcome and why it failed), newest 200, read when the view opens, with a
|
||||
refresh button; there is no separate 한 일 screen. 로그 has tab, level and text filters, pause, live follow (lines after the last seen), "최근 오류
|
||||
복사" (to the clipboard; over 2,000 characters it suggests the zip), and the zip export by days.
|
||||
|
||||
`jarvis-admin-dev [--port N] [--ui DIR] [--location FILE]` (development only) serves `app/ui` and
|
||||
@@ -859,6 +865,11 @@ come with the first-run wizard into the data folder, which the installer never t
|
||||
and their folders (the installing user's and every user's, the person's own and an earlier
|
||||
version's included) gets this icon file (the paths reach PowerShell through the environment, so
|
||||
any folder name works; a failure is a line in the details), and Explorer is told to redraw (`SHCNE_ASSOCCHANGED`).
|
||||
A shortcut to the `jarvis.exe` of another folder that holds a Jarvis install (`uninstall.exe` and
|
||||
`python-src` next to it: a copy left behind when an update before 0.1.12 installed into Program
|
||||
Files instead of the chosen folder) is pointed at this install's `jarvis.exe` (and its working
|
||||
folder at this folder), so it starts the Jarvis that is kept up to date, and a start while it runs
|
||||
shows the running window instead of a second, old Jarvis. The old copy itself is not touched.
|
||||
- The WebView2 runtime is installed with Microsoft's bootstrapper (inside the installer) only when
|
||||
the PC has none, before any file is copied. When it is still missing afterwards the installer
|
||||
asks to retry or cancel; silently it stops with exit code 3, nothing installed and nothing
|
||||
|
||||
@@ -189,7 +189,10 @@ impl AdminApi {
|
||||
}
|
||||
|
||||
pub async fn call(&self, command: &str, args: Value) -> Result<Value, String> {
|
||||
crate::debug_log!("admin", "command {command}");
|
||||
// The 대화 screen asks for the stamp twice a second: a line each time would bury the log.
|
||||
if command != "history_stamp" {
|
||||
crate::debug_log!("admin", "command {command}");
|
||||
}
|
||||
match command {
|
||||
"app_status" => {
|
||||
let dir = self.dir.lock().unwrap().clone();
|
||||
@@ -405,6 +408,13 @@ impl AdminApi {
|
||||
crate::info_log!("admin", "note {id} deleted");
|
||||
Ok(json!({"deleted": id.to_string()}))
|
||||
}
|
||||
// The 대화 screen (admin.spec.md, "Conversations"): whether what it shows changed.
|
||||
"history_stamp" => {
|
||||
let path = self.dir()?.path().join("memory").join("history.sqlite");
|
||||
let stamp = tokio::task::spawn_blocking(move || crate::history_view::stamp(&path))
|
||||
.await.map_err(|e| e.to_string())??;
|
||||
Ok(json!({"stamp": stamp}))
|
||||
}
|
||||
// The 대화 screen (admin.spec.md, "Conversations"): records and answer traces.
|
||||
"history_query" => {
|
||||
let dir = self.dir()?;
|
||||
@@ -603,6 +613,7 @@ mod tests {
|
||||
let data = base.join("d");
|
||||
a.call("folder_choose", json!({"path": data.to_string_lossy()})).await.unwrap();
|
||||
assert_eq!(a.call("history_query", json!({})).await.unwrap()["missing"], true);
|
||||
let before = a.call("history_stamp", json!({})).await.unwrap();
|
||||
std::fs::create_dir_all(data.join("memory")).unwrap();
|
||||
let c = rusqlite::Connection::open(data.join("memory").join("history.sqlite")).unwrap();
|
||||
c.execute_batch(crate::history_view::TEST_SCHEMA).unwrap();
|
||||
@@ -617,6 +628,10 @@ mod tests {
|
||||
assert_eq!(v["channels"][0]["name"], "잡담");
|
||||
let v = a.call("history_query", json!({"said": false, "find": "반가"})).await.unwrap();
|
||||
assert_eq!(v["items"][0]["type"], "thought");
|
||||
// The screen polls the stamp and reads again only when it changed.
|
||||
let now = a.call("history_stamp", json!({})).await.unwrap();
|
||||
assert_ne!(now["stamp"], before["stamp"]);
|
||||
assert_eq!(a.call("history_stamp", json!({})).await.unwrap(), now);
|
||||
}
|
||||
|
||||
#[tokio::test]
|
||||
|
||||
@@ -254,6 +254,26 @@ pub fn query(path: &Path, bot: Option<&str>, q: &Query) -> Result<Value, String>
|
||||
"people": people, "channels": channels}))
|
||||
}
|
||||
|
||||
/// A cheap mark of what the 대화 screen shows that changes when something is said or a question
|
||||
/// arrives (the newest record and trace), and as an answer is made (its steps) and ends, so the
|
||||
/// screen can poll it often and read the items again only when it changed.
|
||||
pub fn stamp(path: &Path) -> Result<String, String> {
|
||||
if !path.is_file() {
|
||||
return Ok("missing".into());
|
||||
}
|
||||
let c = open(path)?;
|
||||
let err = |e: rusqlite::Error| format!("대화 기록을 읽지 못했습니다: {e}");
|
||||
let said: Option<i64> = c.query_row("SELECT MAX(id) FROM history", [], |r| r.get(0)).map_err(err)?;
|
||||
let thought: (Option<i64>, i64, Option<i64>) = if has_traces(&c) {
|
||||
c.query_row("SELECT MAX(id), (SELECT COUNT(*) FROM traces WHERE ms < 0), \
|
||||
(SELECT SUM(LENGTH(steps)) FROM traces WHERE ms < 0) FROM traces", [], |r| Ok((r.get(0)?, r.get(1)?, r.get(2)?)))
|
||||
.map_err(err)?
|
||||
} else {
|
||||
(None, 0, None)
|
||||
};
|
||||
Ok(format!("{said:?}/{thought:?}"))
|
||||
}
|
||||
|
||||
/// The history store's tables as `src/jarvis/memory/history.py` makes them, for tests.
|
||||
#[cfg(test)]
|
||||
pub(crate) const TEST_SCHEMA: &str = "
|
||||
@@ -401,6 +421,28 @@ mod tests {
|
||||
assert_eq!(done["items"][1]["pending"], false);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn the_stamp_changes_when_a_question_is_answered_step_by_step_and_only_then() {
|
||||
let (path, c) = db("stamp");
|
||||
let now = || stamp(&path).unwrap();
|
||||
let empty = now();
|
||||
assert_eq!(now(), empty, "nothing changed");
|
||||
rec(&c, 10.0, "voice", "vc", "1", "Alice", None, "서울 날씨 어때");
|
||||
let said = now();
|
||||
assert_ne!(said, empty);
|
||||
c.execute("INSERT INTO traces(ts, via, channel_id, user_id, question, answer, ms, steps) \
|
||||
VALUES (10.5, 'voice', 'vc', '1', '서울 날씨 어때', '', -1, '[]')", []).unwrap();
|
||||
let asked = now();
|
||||
assert_ne!(asked, said, "a trace still being made");
|
||||
c.execute("UPDATE traces SET steps = '[{\"kind\":\"tools\",\"names\":[\"getWeather\"]}]'", []).unwrap();
|
||||
let step = now();
|
||||
assert_ne!(step, asked, "a step added");
|
||||
c.execute("UPDATE traces SET answer = '맑습니다', ms = 900", []).unwrap();
|
||||
assert_ne!(now(), step, "the answer");
|
||||
let dir = std::env::temp_dir().join(format!("jarvis-history-view-nostamp-{}", std::process::id()));
|
||||
assert!(stamp(&dir.join("history.sqlite")).is_ok());
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn the_bot_id_comes_from_its_token() {
|
||||
assert_eq!(bot_id_of_token("MTIzNDU2Nzg5MDEyMzQ1Njc4.GxYzAb.abcdef").as_deref(), Some("123456789012345678"));
|
||||
|
||||
@@ -385,7 +385,8 @@ const ACTIVITY = { "chat.send": "채팅 보내기", "chat.edit": "채팅 고치
|
||||
"chat.delete": "채팅 지우기", "chat.pin": "고정", "chat.unpin": "고정 풀기",
|
||||
"schedule.remind": "예약 알림 전달", "schedule.task": "정기 작업 전달", "collect.notify": "수집 소식 알림" };
|
||||
/** What Jarvis did outside its answers (admin.spec.md, "Activity"): kind, target, who asked, outcome. */
|
||||
function activityScreen() {
|
||||
/** The 로그 screen's 한 일 view: what Jarvis did in chat channels and schedule deliveries. */
|
||||
function activityView() {
|
||||
const list = h("div");
|
||||
const load = async () => {
|
||||
try {
|
||||
@@ -400,9 +401,9 @@ function activityScreen() {
|
||||
} catch (err) { fail(err); }
|
||||
};
|
||||
load();
|
||||
return h("div", {}, h("h1", {}, "한 일"), h("div", { class: "card" },
|
||||
return h("div", { class: "card" },
|
||||
h("div", { class: "hint" }, "자비스가 채팅 채널에서 한 동작과 예약 전달을 종류, 대상, 시킨 사람, 결과만 남깁니다. 내용은 남기지 않고 30일 뒤 지웁니다."),
|
||||
h("div", { class: "field" }, h("button", { class: "btn", onclick: load }, "새로 고침")), list));
|
||||
h("div", { class: "field" }, h("button", { class: "btn", onclick: load }, "새로 고침")), list);
|
||||
}
|
||||
|
||||
// ---- conversations ------------------------------------------------------------------------------
|
||||
@@ -588,11 +589,19 @@ function conversationScreen() {
|
||||
h("div", { class: "hint", style: "margin:8px 0" }, "사람이 한 말, 자비스의 답, 자비스가 답을 만든 과정(참고한 기록, 고른 도구, 계획, 도구 호출과 결과, 모델 생각)을 시간순으로 보여 줍니다. 자비스가 말을 알아들은 순간 생각이 나타나고, 답을 만드는 동안 단계가 하나씩 채워집니다. 모델 생각은 생각 모드가 켜진 답에만 있습니다. 생각 기록은 30일 동안 둡니다. 실시간으로 다시 읽는 것은 최근 2,000개까지이고, 그보다 앞서 불러온 기록의 수정과 삭제는 화면을 다시 열면 보입니다."),
|
||||
h("div", { class: "row", style: "justify-content:center" }, more), box);
|
||||
load();
|
||||
// Every second while an answer is being made, so its trace fills in as it goes; else every 3 seconds.
|
||||
let ticks = 0;
|
||||
const tick = () => {
|
||||
const making = page.shown.some((i) => i.pending);
|
||||
if (live.checked && (making || ++ticks % 3 === 0)) load();
|
||||
// Twice a second the store's stamp (cheap): when something was said, a question arrived or an
|
||||
// answer moved on, the window is read again at once, so a trace shows from its question on and
|
||||
// fills in as it goes. Every 3 seconds it is read anyway (an edited message changes no stamp).
|
||||
let ticks = 0, stamp = null, asking = false;
|
||||
const tick = async () => {
|
||||
if (!live.checked) return;
|
||||
if (++ticks % 6 === 0) return load();
|
||||
if (asking) return;
|
||||
asking = true;
|
||||
try {
|
||||
const s = (await api("history_stamp")).stamp;
|
||||
if (s !== stamp) { stamp = s; load(); }
|
||||
} catch (e) { /* the next tick tries again */ } finally { asking = false; }
|
||||
};
|
||||
return { view, tick };
|
||||
}
|
||||
@@ -814,7 +823,7 @@ function logsScreen() {
|
||||
find.addEventListener("input", () => { clearTimeout(find.t); find.t = setTimeout(reload, 300); });
|
||||
const today = new Date().toISOString().slice(0, 10);
|
||||
const from = h("input", { type: "date", value: today }), to = h("input", { type: "date", value: today });
|
||||
const view = h("div", {}, h("h1", {}, "로그"),
|
||||
const logs = h("div", {},
|
||||
h("div", { class: "row", style: "margin-bottom:10px" }, tab, level, find, h("label", { class: "row small muted" }, pause, "일시정지"),
|
||||
h("button", { class: "btn", onclick: async () => {
|
||||
try {
|
||||
@@ -832,8 +841,19 @@ function logsScreen() {
|
||||
toast(`${r.path}에 저장했습니다${r.droppedLines ? ` (10MB를 넘어 오래된 ${r.droppedLines}줄은 뺐습니다)` : ""}`);
|
||||
} catch (e) { fail(e); }
|
||||
} }, "zip으로 저장")));
|
||||
// 로그 and 한 일 (the activity) on one screen; 한 일 is read again each time it is opened.
|
||||
const body = h("div");
|
||||
const switches = [["로그", () => logs], ["한 일", activityView]].map(([label, make]) => {
|
||||
const b = h("button", { class: "btn", onclick: () => {
|
||||
for (const x of switches) x.classList.toggle("primary", x === b);
|
||||
body.replaceChildren(make());
|
||||
} }, label);
|
||||
return b;
|
||||
});
|
||||
const view = h("div", {}, h("h1", {}, "로그"), h("div", { class: "row", style: "margin-bottom:12px" }, switches), body);
|
||||
switches[0].click();
|
||||
reload();
|
||||
return { view, tick: poll };
|
||||
return { view, tick: () => logs.isConnected && poll() };
|
||||
}
|
||||
|
||||
// ---- update -------------------------------------------------------------------------------------
|
||||
@@ -913,8 +933,7 @@ async function show(name) {
|
||||
try {
|
||||
if (name === "dashboard") { screen.replaceChildren(); await refresh(); ticker = setInterval(refresh, 1000); return; }
|
||||
if (name === "logs") { const l = logsScreen(); screen.replaceChildren(l.view); ticker = setInterval(l.tick, 1000); return; }
|
||||
if (name === "activity") { screen.replaceChildren(activityScreen()); return; }
|
||||
if (name === "conversations") { const c = conversationScreen(); screen.replaceChildren(c.view); ticker = setInterval(c.tick, 1000); return; }
|
||||
if (name === "conversations") { const c = conversationScreen(); screen.replaceChildren(c.view); ticker = setInterval(c.tick, 500); return; }
|
||||
if (name === "notes") { screen.replaceChildren(notesScreen()); return; }
|
||||
const titles = { bot: "봇", channels: "채널·호출", chat: "채팅 채널", memory: "대화 기억", model: "모델", features: "기능",
|
||||
collect: "백그라운드 수집", game: "게임 모드", schedule: "예약", pcControl: "PC 제어", app: "앱" };
|
||||
|
||||
@@ -23,7 +23,6 @@
|
||||
<button data-screen="schedule" class="nav">예약</button>
|
||||
<button data-screen="pcControl" class="nav">PC 제어</button>
|
||||
<button data-screen="notes" class="nav">사람별 지침</button>
|
||||
<button data-screen="activity" class="nav">한 일</button>
|
||||
<button data-screen="game" class="nav">게임 모드</button>
|
||||
<button data-screen="logs" class="nav">로그</button>
|
||||
<button data-screen="app" class="nav" id="nav-app">앱</button>
|
||||
|
||||
Reference in New Issue
Block a user