minecodex 0.1.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/LICENSE +21 -0
- package/README.md +56 -0
- package/apps/dashboard/app.js +387 -0
- package/apps/dashboard/favicon.svg +18 -0
- package/apps/dashboard/index.html +70 -0
- package/apps/dashboard/styles.css +297 -0
- package/features/images/README.md +106 -0
- package/features/images/codex-feature.json +24 -0
- package/features/images/src/http-server.mjs +302 -0
- package/features/images/src/image-library.mjs +582 -0
- package/features/images/src/main.mjs +52 -0
- package/features/images/src/prompt-index.mjs +182 -0
- package/features/images/src/save-as.mjs +40 -0
- package/features/images/src/thread-metadata.mjs +93 -0
- package/features/images/web/app.js +1045 -0
- package/features/images/web/index.html +162 -0
- package/features/images/web/styles.css +994 -0
- package/features/model-slider/README.md +30 -0
- package/features/model-slider/THIRD_PARTY_NOTICES.md +24 -0
- package/features/model-slider/assets/providers/anthropic.svg +1 -0
- package/features/model-slider/assets/providers/deepseek.svg +1 -0
- package/features/model-slider/assets/providers/gemini.svg +1 -0
- package/features/model-slider/assets/providers/grok.svg +1 -0
- package/features/model-slider/assets/providers/hunyuan.svg +1 -0
- package/features/model-slider/assets/providers/kimi.svg +1 -0
- package/features/model-slider/assets/providers/minimax.svg +1 -0
- package/features/model-slider/assets/providers/openai.svg +1 -0
- package/features/model-slider/assets/providers/qwen.svg +1 -0
- package/features/model-slider/assets/providers/xiaomimimo.svg +1 -0
- package/features/model-slider/assets/providers/zhipu.svg +1 -0
- package/features/model-slider/assets/ui/sparkles.svg +18 -0
- package/features/model-slider/assets/ui/star-off.svg +17 -0
- package/features/model-slider/assets/ui/star.svg +15 -0
- package/features/model-slider/codex-feature.json +56 -0
- package/features/model-slider/vendor/cc-switch-LICENSE +21 -0
- package/features/model-slider/vendor/lucide-LICENSE +35 -0
- package/features/notes/README.md +106 -0
- package/features/notes/assets/icons/circle.svg +15 -0
- package/features/notes/assets/icons/ellipsis.svg +17 -0
- package/features/notes/assets/icons/external-link.svg +17 -0
- package/features/notes/assets/icons/list-todo.svg +19 -0
- package/features/notes/assets/icons/message-square-quote.svg +17 -0
- package/features/notes/assets/icons/paperclip.svg +15 -0
- package/features/notes/assets/icons/star-off.svg +17 -0
- package/features/notes/assets/icons/star.svg +15 -0
- package/features/notes/assets/icons/sticky-note.svg +16 -0
- package/features/notes/assets/icons/trash-2.svg +19 -0
- package/features/notes/codex-feature.json +90 -0
- package/features/notes/src/http-server.mjs +541 -0
- package/features/notes/src/main.mjs +54 -0
- package/features/notes/src/product.mjs +771 -0
- package/features/notes/web/app.js +1495 -0
- package/features/notes/web/codex-artifact-document.svg +1 -0
- package/features/notes/web/codex-attachment.svg +1 -0
- package/features/notes/web/codex-build.svg +1 -0
- package/features/notes/web/codex-code.svg +1 -0
- package/features/notes/web/codex-cplusplus.svg +1 -0
- package/features/notes/web/codex-css.svg +1 -0
- package/features/notes/web/codex-document.svg +1 -0
- package/features/notes/web/codex-file.svg +1 -0
- package/features/notes/web/codex-folder.svg +1 -0
- package/features/notes/web/codex-hashes.svg +1 -0
- package/features/notes/web/codex-html.svg +1 -0
- package/features/notes/web/codex-image.svg +1 -0
- package/features/notes/web/codex-java.svg +1 -0
- package/features/notes/web/codex-javascript.svg +1 -0
- package/features/notes/web/codex-json.svg +1 -0
- package/features/notes/web/codex-notebook.svg +1 -0
- package/features/notes/web/codex-pdf.svg +1 -0
- package/features/notes/web/codex-pencil.svg +3 -0
- package/features/notes/web/codex-php.svg +1 -0
- package/features/notes/web/codex-plus.svg +3 -0
- package/features/notes/web/codex-presentation.svg +1 -0
- package/features/notes/web/codex-python.svg +1 -0
- package/features/notes/web/codex-react.svg +1 -0
- package/features/notes/web/codex-rust.svg +1 -0
- package/features/notes/web/codex-shell.svg +1 -0
- package/features/notes/web/codex-skill.svg +1 -0
- package/features/notes/web/codex-spreadsheet.svg +1 -0
- package/features/notes/web/codex-task.svg +3 -0
- package/features/notes/web/codex-terminal.svg +1 -0
- package/features/notes/web/codex-toml.svg +1 -0
- package/features/notes/web/codex-typescript.svg +1 -0
- package/features/notes/web/codex-view-all.svg +3 -0
- package/features/notes/web/index.html +15 -0
- package/features/notes/web/styles.css +1155 -0
- package/package.json +67 -0
- package/packages/cli/bin/mcx.mjs +7 -0
- package/packages/cli/src/browser-exchange.mjs +31 -0
- package/packages/cli/src/commands.mjs +389 -0
- package/packages/cli/src/config.mjs +101 -0
- package/packages/cli/src/control-server.mjs +371 -0
- package/packages/cli/src/npm-adapter.mjs +40 -0
- package/packages/cli/src/paths.mjs +33 -0
- package/packages/cli/src/platform.mjs +368 -0
- package/packages/cli/src/runtime-manager.mjs +338 -0
- package/packages/runtime-host/README.md +171 -0
- package/packages/runtime-host/src/codex-runtime.mjs +4311 -0
- package/packages/runtime-host/src/feature-registry.mjs +827 -0
- package/packages/runtime-host/src/main.mjs +98 -0
- package/packages/runtime-host/src/pid-file.mjs +23 -0
|
@@ -0,0 +1,162 @@
|
|
|
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>Images · Codex</title>
|
|
7
|
+
<link rel="stylesheet" href="/styles.css" />
|
|
8
|
+
</head>
|
|
9
|
+
<body>
|
|
10
|
+
<main class="library-shell">
|
|
11
|
+
<section class="library-pane">
|
|
12
|
+
<header class="library-header">
|
|
13
|
+
<div class="identity">
|
|
14
|
+
<h1>Images</h1>
|
|
15
|
+
</div>
|
|
16
|
+
<button class="icon-button rescan-button" type="button" aria-label="Refresh images" title="Refresh images">
|
|
17
|
+
<svg class="lucide refresh-icon" viewBox="0 0 24 24" aria-hidden="true">
|
|
18
|
+
<path d="M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8"></path>
|
|
19
|
+
<path d="M21 3v5h-5"></path>
|
|
20
|
+
<path d="M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16"></path>
|
|
21
|
+
<path d="M8 16H3v5"></path>
|
|
22
|
+
</svg>
|
|
23
|
+
<svg class="lucide loading-ring-icon" viewBox="0 0 24 24" aria-hidden="true">
|
|
24
|
+
<path d="M21 12a9 9 0 1 1-6.219-8.56"></path>
|
|
25
|
+
</svg>
|
|
26
|
+
</button>
|
|
27
|
+
</header>
|
|
28
|
+
|
|
29
|
+
<nav class="library-toolbar" aria-label="Image library controls">
|
|
30
|
+
<div class="source-filter">
|
|
31
|
+
<button
|
|
32
|
+
class="toolbar-button source-filter-button"
|
|
33
|
+
type="button"
|
|
34
|
+
aria-haspopup="listbox"
|
|
35
|
+
aria-controls="source-menu"
|
|
36
|
+
aria-expanded="false"
|
|
37
|
+
>
|
|
38
|
+
<span class="filter-source-icon" aria-hidden="true"></span>
|
|
39
|
+
<span class="filter-label">All images</span>
|
|
40
|
+
<span class="filter-count" aria-live="polite">…</span>
|
|
41
|
+
<svg class="lucide filter-chevron" viewBox="0 0 24 24" aria-hidden="true">
|
|
42
|
+
<path d="m6 9 6 6 6-6"></path>
|
|
43
|
+
</svg>
|
|
44
|
+
</button>
|
|
45
|
+
<div class="source-menu" id="source-menu" role="listbox" aria-label="Filter images by source" hidden></div>
|
|
46
|
+
</div>
|
|
47
|
+
|
|
48
|
+
<div class="toolbar-actions">
|
|
49
|
+
<div class="density-control" title="Grid columns">
|
|
50
|
+
<svg class="lucide density-icon" viewBox="0 0 24 24" aria-hidden="true">
|
|
51
|
+
<rect width="7" height="7" x="3" y="3" rx="1"></rect>
|
|
52
|
+
<rect width="7" height="7" x="14" y="3" rx="1"></rect>
|
|
53
|
+
<rect width="7" height="7" x="3" y="14" rx="1"></rect>
|
|
54
|
+
<rect width="7" height="7" x="14" y="14" rx="1"></rect>
|
|
55
|
+
</svg>
|
|
56
|
+
<input
|
|
57
|
+
class="density-slider"
|
|
58
|
+
type="range"
|
|
59
|
+
min="2"
|
|
60
|
+
max="6"
|
|
61
|
+
step="1"
|
|
62
|
+
value="3"
|
|
63
|
+
aria-label="Grid columns"
|
|
64
|
+
/>
|
|
65
|
+
<output class="density-button-value" aria-live="polite">3</output>
|
|
66
|
+
</div>
|
|
67
|
+
|
|
68
|
+
<button
|
|
69
|
+
class="icon-button group-button"
|
|
70
|
+
type="button"
|
|
71
|
+
aria-pressed="false"
|
|
72
|
+
aria-label="Group images by Thread"
|
|
73
|
+
title="Group by Thread"
|
|
74
|
+
>
|
|
75
|
+
<svg class="lucide" viewBox="0 0 24 24" aria-hidden="true">
|
|
76
|
+
<path d="m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z"></path>
|
|
77
|
+
<path d="m22 12.5-8.58 3.91a2 2 0 0 1-1.66 0L2 12"></path>
|
|
78
|
+
<path d="m22 17.5-8.58 3.91a2 2 0 0 1-1.66 0L2 17"></path>
|
|
79
|
+
</svg>
|
|
80
|
+
</button>
|
|
81
|
+
</div>
|
|
82
|
+
</nav>
|
|
83
|
+
|
|
84
|
+
<div class="library-scroll">
|
|
85
|
+
<section class="empty-state" hidden>
|
|
86
|
+
<h2>No images yet</h2>
|
|
87
|
+
<p>Generate an image in any Task and it will appear here automatically.</p>
|
|
88
|
+
</section>
|
|
89
|
+
|
|
90
|
+
<section class="image-grid" aria-label="Generated images"></section>
|
|
91
|
+
<div class="page-sentinel" aria-hidden="true" hidden></div>
|
|
92
|
+
</div>
|
|
93
|
+
</section>
|
|
94
|
+
|
|
95
|
+
<div class="status-announcer" role="status" aria-live="polite" aria-atomic="true"></div>
|
|
96
|
+
|
|
97
|
+
<aside
|
|
98
|
+
class="detail-drawer"
|
|
99
|
+
role="region"
|
|
100
|
+
aria-labelledby="drawer-title"
|
|
101
|
+
aria-hidden="true"
|
|
102
|
+
tabindex="-1"
|
|
103
|
+
inert
|
|
104
|
+
>
|
|
105
|
+
<div class="drawer-surface">
|
|
106
|
+
<header class="drawer-header">
|
|
107
|
+
<h2 id="drawer-title">Image details</h2>
|
|
108
|
+
<button class="icon-button drawer-close" type="button" aria-label="Close image details" title="Close">
|
|
109
|
+
<svg class="lucide" viewBox="0 0 24 24" aria-hidden="true">
|
|
110
|
+
<path d="M18 6 6 18"></path>
|
|
111
|
+
<path d="m6 6 12 12"></path>
|
|
112
|
+
</svg>
|
|
113
|
+
</button>
|
|
114
|
+
</header>
|
|
115
|
+
|
|
116
|
+
<div class="drawer-scroll">
|
|
117
|
+
<figure class="drawer-figure"><img alt="" decoding="async" /></figure>
|
|
118
|
+
|
|
119
|
+
<section class="detail-section prompt-section">
|
|
120
|
+
<div class="detail-section-heading">
|
|
121
|
+
<h3>Generation prompt</h3>
|
|
122
|
+
<button class="icon-button prompt-copy-button" type="button" aria-label="Copy generation prompt" title="Copy prompt" disabled>
|
|
123
|
+
<svg class="lucide copy-icon" viewBox="0 0 24 24" aria-hidden="true">
|
|
124
|
+
<rect width="14" height="14" x="8" y="8" rx="2" ry="2"></rect>
|
|
125
|
+
<path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"></path>
|
|
126
|
+
</svg>
|
|
127
|
+
<svg class="lucide check-icon" viewBox="0 0 24 24" aria-hidden="true" hidden>
|
|
128
|
+
<path d="m20 6-11 11-5-5"></path>
|
|
129
|
+
</svg>
|
|
130
|
+
</button>
|
|
131
|
+
</div>
|
|
132
|
+
<p class="drawer-prompt">Select an image to view its prompt.</p>
|
|
133
|
+
</section>
|
|
134
|
+
|
|
135
|
+
<section class="detail-section">
|
|
136
|
+
<h3>Information</h3>
|
|
137
|
+
<dl class="image-information">
|
|
138
|
+
<div class="drawer-project-row"><dt>Project</dt><dd class="drawer-project"></dd></div>
|
|
139
|
+
<div><dt class="drawer-task-label">Thread</dt><dd class="drawer-thread"></dd></div>
|
|
140
|
+
<div><dt>Created</dt><dd class="drawer-date"></dd></div>
|
|
141
|
+
<div><dt>Dimensions</dt><dd class="drawer-size"></dd></div>
|
|
142
|
+
<div><dt>File size</dt><dd class="drawer-file-size"></dd></div>
|
|
143
|
+
</dl>
|
|
144
|
+
</section>
|
|
145
|
+
</div>
|
|
146
|
+
|
|
147
|
+
<footer class="drawer-actions">
|
|
148
|
+
<span class="source-action">
|
|
149
|
+
<button class="secondary-button source-button" type="button">Open Thread</button>
|
|
150
|
+
<span class="source-tooltip" id="archived-thread-tooltip" role="tooltip" hidden>
|
|
151
|
+
This Thread has been archived and can’t be opened.
|
|
152
|
+
</span>
|
|
153
|
+
</span>
|
|
154
|
+
<button class="primary-button save-button" type="button">Save as</button>
|
|
155
|
+
</footer>
|
|
156
|
+
</div>
|
|
157
|
+
</aside>
|
|
158
|
+
</main>
|
|
159
|
+
|
|
160
|
+
<script type="module" src="/app.js"></script>
|
|
161
|
+
</body>
|
|
162
|
+
</html>
|