@parley-im/parley 0.1.2 → 0.2.1
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/README.md +19 -17
- package/bin/parley +7 -0
- package/dist/access.js +57 -0
- package/dist/account.js +5 -1
- package/dist/agents/claude.js +20 -11
- package/dist/agents/codex.js +10 -5
- package/dist/agents/process.js +35 -4
- package/dist/api.js +32 -10
- package/dist/autostart.js +86 -0
- package/dist/charter.js +6 -5
- package/dist/cli.js +62 -16
- package/dist/config.js +49 -9
- package/dist/control.js +16 -10
- package/dist/daemon.js +34 -10
- package/dist/db.js +111 -27
- package/dist/mcp.js +20 -20
- package/dist/models.js +8 -2
- package/dist/relay.js +35 -10
- package/dist/runner.js +9 -7
- package/dist/seal.js +7 -5
- package/dist/server.js +43 -17
- package/dist/state.js +7 -4
- package/dist/transcript.js +10 -6
- package/dist/version.js +15 -0
- package/package.json +2 -2
- package/web/app.css +29 -13
- package/web/chat.html +6 -6
- package/web/chat.js +198 -62
- package/web/dashboard.js +41 -0
- package/web/ended.html +1 -1
- package/web/missing.html +1 -1
- package/web/panel.html +4 -4
- package/web/panel.js +6 -6
package/web/panel.js
CHANGED
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
const q = query.toLowerCase();
|
|
87
87
|
const shown = sessions
|
|
88
88
|
.filter((s) => (tab === "all" ? true : tab === "open" ? s.status === "open" : s.status !== "open"))
|
|
89
|
-
.filter((s) => !q || `${s.
|
|
89
|
+
.filter((s) => !q || `${s.guest} ${s.project} ${s.projectDir}`.toLowerCase().includes(q));
|
|
90
90
|
|
|
91
91
|
const head = el(
|
|
92
92
|
"div",
|
|
@@ -113,16 +113,16 @@
|
|
|
113
113
|
function row(s) {
|
|
114
114
|
const open = s.status === "open";
|
|
115
115
|
const used = s.replyLimit - s.repliesLeft;
|
|
116
|
-
const name = el("div", { className: "name" }, el("span", { className: `dot ${!open ? "" : s.busy ? "busy" : s.repliesLeft === 0 ? "warn" : "on"}` }), s.
|
|
116
|
+
const name = el("div", { className: "name" }, el("span", { className: `dot ${!open ? "" : s.busy ? "busy" : s.repliesLeft === 0 ? "warn" : "on"}` }), s.guest);
|
|
117
117
|
if (s.stats.unread) name.append(el("span", { className: "badge", textContent: `${s.stats.unread} new` }));
|
|
118
118
|
const who = el("a", { className: "who-cell", href: `/o/${s.id}`, style: "text-decoration:none" }, name, el("div", { className: "where", textContent: `${s.project} · ${s.model ?? (s.agent === "codex" ? "Codex" : "Claude")} · ${s.id}`, title: s.projectDir }));
|
|
119
119
|
|
|
120
120
|
const activity = el(
|
|
121
121
|
"div",
|
|
122
122
|
{ className: "c-activity cell-muted" },
|
|
123
|
-
!open ? `ended ${ago(s.endedAt)}` : s.busy ? "replying now" : s.stats.
|
|
123
|
+
!open ? `ended ${ago(s.endedAt)}` : s.busy ? "replying now" : s.stats.last_guest_at ? `heard from ${ago(s.stats.last_guest_at)}` : "hasn't said anything yet",
|
|
124
124
|
);
|
|
125
|
-
const messages = el("div", { className: "c-messages num", textContent: `${s.stats.
|
|
125
|
+
const messages = el("div", { className: "c-messages num", textContent: `${s.stats.guest_messages} message${s.stats.guest_messages === 1 ? "" : "s"}` });
|
|
126
126
|
const pct = Math.min(100, Math.round((used / s.replyLimit) * 100));
|
|
127
127
|
const replies = el(
|
|
128
128
|
"div",
|
|
@@ -207,9 +207,9 @@
|
|
|
207
207
|
await navigator.clipboard.writeText(s.link);
|
|
208
208
|
copy.textContent = "Copied";
|
|
209
209
|
};
|
|
210
|
-
$("made").replaceChildren(el("strong", { textContent: `Session for ${s.
|
|
210
|
+
$("made").replaceChildren(el("strong", { textContent: `Session for ${s.guest} is ready.` }), el("div", { className: "linkbox" }, link, copy), el("a", { className: "cell-muted", href: `/o/${s.id}`, textContent: "Open it" }));
|
|
211
211
|
$("made").hidden = false;
|
|
212
|
-
$("f-
|
|
212
|
+
$("f-guest").value = $("f-brief").value = $("f-greeting").value = "";
|
|
213
213
|
refresh();
|
|
214
214
|
} catch (error) {
|
|
215
215
|
$("form-error").textContent = error.message;
|