@lelouchhe/webagent 0.1.5 → 0.1.6
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/dist/index.html +2 -2
- package/dist/js/{app.mmlj0xfy.js → app.mmlj9sk2.js} +8 -8
- package/dist/js/{commands.mmlj0xfy.js → commands.mmlj9sk2.js} +3 -3
- package/dist/js/{connection.mmlj0xfy.js → connection.mmlj9sk2.js} +3 -3
- package/dist/js/{events.mmlj0xfy.js → events.mmlj9sk2.js} +2 -2
- package/dist/js/{images.mmlj0xfy.js → images.mmlj9sk2.js} +1 -1
- package/dist/js/{input.mmlj0xfy.js → input.mmlj9sk2.js} +4 -4
- package/dist/js/{render.mmlj0xfy.js → render.mmlj9sk2.js} +1 -1
- package/package.json +1 -1
- /package/dist/js/{state.mmlj0xfy.js → state.mmlj9sk2.js} +0 -0
- /package/dist/{styles.mmlj0xfy.css → styles.mmlj9sk2.css} +0 -0
package/dist/index.html
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
|
|
14
14
|
<script src="https://cdn.jsdelivr.net/npm/dompurify@3.3.2/dist/purify.min.js"></script>
|
|
15
15
|
<script>document.documentElement.setAttribute('data-theme', localStorage.getItem('theme') || 'auto');</script>
|
|
16
|
-
<link rel="stylesheet" href="/styles.
|
|
16
|
+
<link rel="stylesheet" href="/styles.mmlj9sk2.css">
|
|
17
17
|
</head>
|
|
18
18
|
<body>
|
|
19
19
|
|
|
@@ -41,6 +41,6 @@
|
|
|
41
41
|
<input type="file" id="file-input" accept="image/*" multiple hidden>
|
|
42
42
|
</div>
|
|
43
43
|
|
|
44
|
-
<script type="module" src="/js/app.
|
|
44
|
+
<script type="module" src="/js/app.mmlj9sk2.js"></script>
|
|
45
45
|
</body>
|
|
46
46
|
</html>
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
// Boot entry point — imports all modules and starts the app
|
|
2
2
|
|
|
3
|
-
import './render.
|
|
4
|
-
import './commands.
|
|
5
|
-
import './images.
|
|
6
|
-
import './input.
|
|
7
|
-
import { connect } from './connection.
|
|
8
|
-
import { state, setHashSessionId, resetSessionUI, updateSessionInfo } from './state.
|
|
9
|
-
import { loadHistory } from './events.
|
|
10
|
-
import { addSystem, scrollToBottom } from './render.
|
|
3
|
+
import './render.mmlj9sk2.js'; // theme, click-to-collapse listeners
|
|
4
|
+
import './commands.mmlj9sk2.js'; // slash menu listeners
|
|
5
|
+
import './images.mmlj9sk2.js'; // attach/paste listeners
|
|
6
|
+
import './input.mmlj9sk2.js'; // keyboard/send listeners
|
|
7
|
+
import { connect } from './connection.mmlj9sk2.js';
|
|
8
|
+
import { state, setHashSessionId, resetSessionUI, updateSessionInfo } from './state.mmlj9sk2.js';
|
|
9
|
+
import { loadHistory } from './events.mmlj9sk2.js';
|
|
10
|
+
import { addSystem, scrollToBottom } from './render.mmlj9sk2.js';
|
|
11
11
|
|
|
12
12
|
connect();
|
|
13
13
|
|
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
state, dom, setBusy, resetSessionUI, requestNewSession, sendCancel,
|
|
5
5
|
getConfigOption, getConfigValue, setHashSessionId, updateSessionInfo,
|
|
6
6
|
updateNewBtnVisibility,
|
|
7
|
-
} from './state.
|
|
8
|
-
import { addSystem, addMessage, scrollToBottom, escHtml, formatLocalTime } from './render.
|
|
9
|
-
import { loadHistory } from './events.
|
|
7
|
+
} from './state.mmlj9sk2.js';
|
|
8
|
+
import { addSystem, addMessage, scrollToBottom, escHtml, formatLocalTime } from './render.mmlj9sk2.js';
|
|
9
|
+
import { loadHistory } from './events.mmlj9sk2.js';
|
|
10
10
|
|
|
11
11
|
// --- Push notification helpers ---
|
|
12
12
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// WebSocket connection lifecycle
|
|
2
2
|
|
|
3
|
-
import { state, setBusy, getHashSessionId, requestNewSession, resetSessionUI, setConnectionStatus, clearCancelTimer } from './state.
|
|
4
|
-
import { addSystem, finishThinking, finishAssistant, finishBash, scrollToBottom } from './render.
|
|
5
|
-
import { handleEvent, loadHistory, loadNewEvents, retryUnconfirmedPermissions } from './events.
|
|
3
|
+
import { state, setBusy, getHashSessionId, requestNewSession, resetSessionUI, setConnectionStatus, clearCancelTimer } from './state.mmlj9sk2.js';
|
|
4
|
+
import { addSystem, finishThinking, finishAssistant, finishBash, scrollToBottom } from './render.mmlj9sk2.js';
|
|
5
|
+
import { handleEvent, loadHistory, loadNewEvents, retryUnconfirmedPermissions } from './events.mmlj9sk2.js';
|
|
6
6
|
|
|
7
7
|
export function connect() {
|
|
8
8
|
const proto = location.protocol === 'https:' ? 'wss:' : 'ws:';
|
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
state, dom, setBusy, setConfigValue, getConfigOption, updateConfigOptions,
|
|
5
5
|
updateModeUI, resetSessionUI, requestNewSession, setHashSessionId, updateSessionInfo,
|
|
6
6
|
setConnectionStatus, clearCancelTimer,
|
|
7
|
-
} from './state.
|
|
7
|
+
} from './state.mmlj9sk2.js';
|
|
8
8
|
import {
|
|
9
9
|
addMessage, addSystem, finishAssistant, finishThinking, hideWaiting,
|
|
10
10
|
scrollToBottom, renderMd, escHtml, renderPatchDiff, addBashBlock, finishBash, appendMessageElement,
|
|
11
11
|
formatLocalTime,
|
|
12
|
-
} from './render.
|
|
12
|
+
} from './render.mmlj9sk2.js';
|
|
13
13
|
|
|
14
14
|
const NOTIFY_TIP_KEY = 'webagent_notify_tip_shown';
|
|
15
15
|
const NOTIFY_TIP_DENIED_KEY = 'webagent_notify_tip_denied_shown';
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
import {
|
|
4
4
|
state, dom, setBusy, sendCancel,
|
|
5
5
|
getConfigOption, getConfigValue, updateNewBtnVisibility,
|
|
6
|
-
} from './state.
|
|
7
|
-
import { addMessage, addSystem, addBashBlock, showWaiting } from './render.
|
|
8
|
-
import { handleSlashCommand, hideSlashMenu, handleSlashMenuKey, updateSlashMenu } from './commands.
|
|
9
|
-
import { renderAttachPreview } from './images.
|
|
6
|
+
} from './state.mmlj9sk2.js';
|
|
7
|
+
import { addMessage, addSystem, addBashBlock, showWaiting } from './render.mmlj9sk2.js';
|
|
8
|
+
import { handleSlashCommand, hideSlashMenu, handleSlashMenuKey, updateSlashMenu } from './commands.mmlj9sk2.js';
|
|
9
|
+
import { renderAttachPreview } from './images.mmlj9sk2.js';
|
|
10
10
|
|
|
11
11
|
function wsReady() {
|
|
12
12
|
return state.ws && state.ws.readyState === 1;
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|