@sean.holung/minicode 0.2.3 → 0.3.0
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 +13 -8
- package/dist/src/cli/args.js +31 -0
- package/dist/src/index.js +5 -0
- package/dist/src/serve/agent-bridge.js +356 -0
- package/dist/src/serve/openai-compat.js +144 -0
- package/dist/src/serve/server.js +349 -0
- package/dist/src/serve/types.js +2 -0
- package/dist/src/serve/websocket.js +28 -0
- package/dist/src/session/session-store.js +3 -1
- package/dist/src/ui/cli-ink.js +1 -0
- package/dist/src/web/app.js +2270 -0
- package/dist/src/web/index.html +68 -0
- package/dist/src/web/style.css +922 -0
- package/dist/tests/cli-args.test.js +4 -2
- package/dist/tests/serve.integration.test.js +759 -0
- package/node_modules/@minicode/agent-sdk/dist/src/agent/agent.d.ts +5 -0
- package/node_modules/@minicode/agent-sdk/dist/src/agent/agent.d.ts.map +1 -1
- package/node_modules/@minicode/agent-sdk/dist/src/agent/agent.js +35 -20
- package/node_modules/@minicode/agent-sdk/dist/src/agent/agent.js.map +1 -1
- package/node_modules/@minicode/agent-sdk/dist/src/model/client.d.ts.map +1 -1
- package/node_modules/@minicode/agent-sdk/dist/src/model/client.js +2 -0
- package/node_modules/@minicode/agent-sdk/dist/src/model/client.js.map +1 -1
- package/node_modules/@minicode/agent-sdk/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +10 -5
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
+
<title>minicode</title>
|
|
7
|
+
<link rel="stylesheet" href="style.css">
|
|
8
|
+
<script src="https://unpkg.com/cytoscape@3.30.4/dist/cytoscape.min.js"></script>
|
|
9
|
+
<link rel="stylesheet" href="https://unpkg.com/@highlightjs/cdn-assets@11.11.1/styles/tokyo-night-dark.min.css">
|
|
10
|
+
<script src="https://unpkg.com/@highlightjs/cdn-assets@11.11.1/highlight.min.js"></script>
|
|
11
|
+
<script src="https://unpkg.com/@highlightjs/cdn-assets@11.11.1/languages/typescript.min.js"></script>
|
|
12
|
+
</head>
|
|
13
|
+
<body>
|
|
14
|
+
<div id="app">
|
|
15
|
+
<header>
|
|
16
|
+
<div class="header-left">
|
|
17
|
+
<h1>minicode</h1>
|
|
18
|
+
<span id="status-badge" class="badge ready">ready</span>
|
|
19
|
+
</div>
|
|
20
|
+
<div class="header-right">
|
|
21
|
+
<span id="model-info"></span>
|
|
22
|
+
<button id="graph-toggle" class="header-btn" title="Toggle graph pane">Graph</button>
|
|
23
|
+
<div class="session-menu">
|
|
24
|
+
<button id="session-btn" class="header-btn" title="Sessions">Sessions</button>
|
|
25
|
+
<div id="session-dropdown" class="dropdown hidden">
|
|
26
|
+
<div class="dropdown-section">
|
|
27
|
+
<div class="dropdown-row">
|
|
28
|
+
<input id="save-label" type="text" placeholder="Label (optional)" />
|
|
29
|
+
<button id="save-btn" class="dropdown-action">Save</button>
|
|
30
|
+
</div>
|
|
31
|
+
</div>
|
|
32
|
+
<div class="dropdown-divider"></div>
|
|
33
|
+
<div id="session-list" class="dropdown-section">
|
|
34
|
+
<div class="dropdown-empty">No saved sessions</div>
|
|
35
|
+
</div>
|
|
36
|
+
</div>
|
|
37
|
+
</div>
|
|
38
|
+
</div>
|
|
39
|
+
</header>
|
|
40
|
+
|
|
41
|
+
<div id="workspace">
|
|
42
|
+
<div id="chat-pane">
|
|
43
|
+
<main id="messages"></main>
|
|
44
|
+
<footer>
|
|
45
|
+
<form id="chat-form">
|
|
46
|
+
<textarea id="chat-input" placeholder="Send a message..." rows="1" autofocus></textarea>
|
|
47
|
+
<button type="submit" id="send-btn">Send</button>
|
|
48
|
+
<button type="button" id="cancel-btn" class="hidden">Cancel</button>
|
|
49
|
+
</form>
|
|
50
|
+
</footer>
|
|
51
|
+
</div>
|
|
52
|
+
<div id="pane-divider"></div>
|
|
53
|
+
<div id="graph-pane">
|
|
54
|
+
<div id="graph-toolbar">
|
|
55
|
+
<input id="graph-search" type="text" placeholder="Search symbols..." autocomplete="off" />
|
|
56
|
+
<button id="graph-fit" class="header-btn">Fit</button>
|
|
57
|
+
<button id="graph-relayout" class="header-btn">Re-layout</button>
|
|
58
|
+
<button id="graph-clear" class="header-btn">Clear</button>
|
|
59
|
+
</div>
|
|
60
|
+
<div id="cy"></div>
|
|
61
|
+
<div id="symbol-detail" class="hidden"></div>
|
|
62
|
+
</div>
|
|
63
|
+
</div>
|
|
64
|
+
</div>
|
|
65
|
+
|
|
66
|
+
<script type="module" src="app.js"></script>
|
|
67
|
+
</body>
|
|
68
|
+
</html>
|