Compare commits
2 Commits
app-v0.1.1
...
app-v0.1.1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1f2a8ec05e | ||
|
|
04b516dbc1 |
2
app/Cargo.lock
generated
2
app/Cargo.lock
generated
@@ -1520,7 +1520,7 @@ checksum = "3bd1574e617a9a6c1f8f8181bd7e841e1f20e4277607ef28945765188d6284d4"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "jarvis-app"
|
name = "jarvis-app"
|
||||||
version = "0.1.13"
|
version = "0.1.14"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"async-trait",
|
"async-trait",
|
||||||
"base64 0.22.1",
|
"base64 0.22.1",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "jarvis-app"
|
name = "jarvis-app"
|
||||||
version = "0.1.13"
|
version = "0.1.14"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
rust-version = "1.85"
|
rust-version = "1.85"
|
||||||
description = "Jarvis v2 Windows app core: Discord voice, voice worker supervisor, chat channels"
|
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]]
|
[[package]]
|
||||||
name = "jarvis-app"
|
name = "jarvis-app"
|
||||||
version = "0.1.13"
|
version = "0.1.14"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"async-trait",
|
"async-trait",
|
||||||
"base64 0.22.1",
|
"base64 0.22.1",
|
||||||
@@ -2666,7 +2666,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "jarvis-shell"
|
name = "jarvis-shell"
|
||||||
version = "0.1.13"
|
version = "0.1.14"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"jarvis-app",
|
"jarvis-app",
|
||||||
"serde_json",
|
"serde_json",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "jarvis-shell"
|
name = "jarvis-shell"
|
||||||
version = "0.1.13"
|
version = "0.1.14"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
rust-version = "1.85"
|
rust-version = "1.85"
|
||||||
description = "Jarvis v2 management app window (Tauri 2 over the app core's AdminApi)"
|
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
|
; 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
|
; 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
|
; 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
|
; (SysNative from this 32-bit installer): a 32-bit one reads a link to Program Files as one to
|
||||||
; Program Files (x86).
|
; Program Files (x86).
|
||||||
Section "-Icons"
|
Section "-Icons"
|
||||||
System::Call 'kernel32::SetEnvironmentVariable(t "JARVIS_EXE", t "$INSTDIR\jarvis.exe")'
|
System::Call 'kernel32::SetEnvironmentVariable(t "JARVIS_EXE", t "$INSTDIR\jarvis.exe")'
|
||||||
System::Call 'kernel32::SetEnvironmentVariable(t "JARVIS_ICON", t "$INSTDIR\${ICON_FILE},0")'
|
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
|
Pop $0
|
||||||
${If} $0 != 0
|
${If} $0 != 0
|
||||||
DetailPrint "바로 가기 아이콘을 바꾸지 못했습니다 ($0)"
|
DetailPrint "바로 가기 아이콘을 바꾸지 못했습니다 ($0)"
|
||||||
|
|||||||
@@ -249,7 +249,7 @@ records and "Traces"), so it works while the services are stopped. Nothing it re
|
|||||||
|
|
||||||
## Activity (`app/src/activity.rs`)
|
## 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`,
|
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
|
`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.
|
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.
|
||||||
@@ -710,7 +710,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.
|
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
|
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,
|
- **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
|
the model to download, Discord bot (token check with the
|
||||||
@@ -763,13 +763,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
|
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
|
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`.
|
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,
|
- **업데이트** (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
|
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
|
notes as plain text. The app checks once when the main screens open; a newer release renames the
|
||||||
앱 button "앱 (새 버전)" and says so once.
|
앱 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.
|
복사" (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
|
`jarvis-admin-dev [--port N] [--ui DIR] [--location FILE]` (development only) serves `app/ui` and
|
||||||
@@ -859,6 +859,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
|
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
|
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`).
|
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 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
|
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
|
asks to retry or cancel; silently it stops with exit code 3, nothing installed and nothing
|
||||||
|
|||||||
@@ -385,7 +385,8 @@ const ACTIVITY = { "chat.send": "채팅 보내기", "chat.edit": "채팅 고치
|
|||||||
"chat.delete": "채팅 지우기", "chat.pin": "고정", "chat.unpin": "고정 풀기",
|
"chat.delete": "채팅 지우기", "chat.pin": "고정", "chat.unpin": "고정 풀기",
|
||||||
"schedule.remind": "예약 알림 전달", "schedule.task": "정기 작업 전달", "collect.notify": "수집 소식 알림" };
|
"schedule.remind": "예약 알림 전달", "schedule.task": "정기 작업 전달", "collect.notify": "수집 소식 알림" };
|
||||||
/** What Jarvis did outside its answers (admin.spec.md, "Activity"): kind, target, who asked, outcome. */
|
/** 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 list = h("div");
|
||||||
const load = async () => {
|
const load = async () => {
|
||||||
try {
|
try {
|
||||||
@@ -400,9 +401,9 @@ function activityScreen() {
|
|||||||
} catch (err) { fail(err); }
|
} catch (err) { fail(err); }
|
||||||
};
|
};
|
||||||
load();
|
load();
|
||||||
return h("div", {}, h("h1", {}, "한 일"), h("div", { class: "card" },
|
return h("div", { class: "card" },
|
||||||
h("div", { class: "hint" }, "자비스가 채팅 채널에서 한 동작과 예약 전달을 종류, 대상, 시킨 사람, 결과만 남깁니다. 내용은 남기지 않고 30일 뒤 지웁니다."),
|
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 ------------------------------------------------------------------------------
|
// ---- conversations ------------------------------------------------------------------------------
|
||||||
@@ -814,7 +815,7 @@ function logsScreen() {
|
|||||||
find.addEventListener("input", () => { clearTimeout(find.t); find.t = setTimeout(reload, 300); });
|
find.addEventListener("input", () => { clearTimeout(find.t); find.t = setTimeout(reload, 300); });
|
||||||
const today = new Date().toISOString().slice(0, 10);
|
const today = new Date().toISOString().slice(0, 10);
|
||||||
const from = h("input", { type: "date", value: today }), to = h("input", { type: "date", value: today });
|
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("div", { class: "row", style: "margin-bottom:10px" }, tab, level, find, h("label", { class: "row small muted" }, pause, "일시정지"),
|
||||||
h("button", { class: "btn", onclick: async () => {
|
h("button", { class: "btn", onclick: async () => {
|
||||||
try {
|
try {
|
||||||
@@ -832,8 +833,19 @@ function logsScreen() {
|
|||||||
toast(`${r.path}에 저장했습니다${r.droppedLines ? ` (10MB를 넘어 오래된 ${r.droppedLines}줄은 뺐습니다)` : ""}`);
|
toast(`${r.path}에 저장했습니다${r.droppedLines ? ` (10MB를 넘어 오래된 ${r.droppedLines}줄은 뺐습니다)` : ""}`);
|
||||||
} catch (e) { fail(e); }
|
} catch (e) { fail(e); }
|
||||||
} }, "zip으로 저장")));
|
} }, "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();
|
reload();
|
||||||
return { view, tick: poll };
|
return { view, tick: () => logs.isConnected && poll() };
|
||||||
}
|
}
|
||||||
|
|
||||||
// ---- update -------------------------------------------------------------------------------------
|
// ---- update -------------------------------------------------------------------------------------
|
||||||
@@ -913,7 +925,6 @@ async function show(name) {
|
|||||||
try {
|
try {
|
||||||
if (name === "dashboard") { screen.replaceChildren(); await refresh(); ticker = setInterval(refresh, 1000); return; }
|
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 === "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, 1000); return; }
|
||||||
if (name === "notes") { screen.replaceChildren(notesScreen()); return; }
|
if (name === "notes") { screen.replaceChildren(notesScreen()); return; }
|
||||||
const titles = { bot: "봇", channels: "채널·호출", chat: "채팅 채널", memory: "대화 기억", model: "모델", features: "기능",
|
const titles = { bot: "봇", channels: "채널·호출", chat: "채팅 채널", memory: "대화 기억", model: "모델", features: "기능",
|
||||||
|
|||||||
@@ -23,7 +23,6 @@
|
|||||||
<button data-screen="schedule" class="nav">예약</button>
|
<button data-screen="schedule" class="nav">예약</button>
|
||||||
<button data-screen="pcControl" class="nav">PC 제어</button>
|
<button data-screen="pcControl" class="nav">PC 제어</button>
|
||||||
<button data-screen="notes" class="nav">사람별 지침</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="game" class="nav">게임 모드</button>
|
||||||
<button data-screen="logs" class="nav">로그</button>
|
<button data-screen="logs" class="nav">로그</button>
|
||||||
<button data-screen="app" class="nav" id="nav-app">앱</button>
|
<button data-screen="app" class="nav" id="nav-app">앱</button>
|
||||||
|
|||||||
Reference in New Issue
Block a user