@morkaai/runtime 0.0.0-stage → 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/LICENSE +21 -0
- package/README.md +13 -2
- package/bin/morka.cjs +57 -0
- package/dist/agent-actions/access.js +44 -0
- package/dist/agent-actions/manifest.js +52 -0
- package/dist/agent-actions/runner.js +69 -0
- package/dist/agents/account.js +42 -0
- package/dist/agents/acp-sandbox.js +118 -0
- package/dist/agents/activity.js +26 -0
- package/dist/agents/attachments.js +129 -0
- package/dist/agents/context.js +76 -0
- package/dist/agents/contracts.js +2 -0
- package/dist/agents/process.js +61 -0
- package/dist/agents/providers/acp.js +411 -0
- package/dist/agents/providers/claude.js +180 -0
- package/dist/agents/providers/codex.js +416 -0
- package/dist/agents/registry.js +76 -0
- package/dist/agents/sessions.js +331 -0
- package/dist/app-runtime/bridge.js +40 -0
- package/dist/app-runtime/starter/agents.json +1 -0
- package/dist/app-runtime/starter/index.html +11 -0
- package/dist/app-runtime/starter/main.js +0 -0
- package/dist/app-runtime/starter/package-lock.json +13 -0
- package/dist/app-runtime/starter/package.json +9 -0
- package/dist/app-runtime/starter/server.mjs +20 -0
- package/dist/app-runtime/starter/styles.css +0 -0
- package/dist/app-runtime/text-file.js +18 -0
- package/dist/branding/Morka.icns +0 -0
- package/dist/branding/README.md +24 -0
- package/dist/branding/generated-app-icon.png +0 -0
- package/dist/branding/morka-icon.png +0 -0
- package/dist/branding/morka-logo.png +0 -0
- package/dist/electron/main.js +802 -0
- package/dist/electron/preload.js +51 -0
- package/dist/instances/desktop.js +223 -0
- package/dist/instances/distribution.js +240 -0
- package/dist/instances/macos.js +62 -0
- package/dist/instances/repository.js +183 -0
- package/dist/instances/shadow-repository.js +95 -0
- package/dist/project/app-proxy.js +325 -0
- package/dist/project/bundle-toolchain.js +35 -0
- package/dist/project/drafts.js +27 -0
- package/dist/project/files.js +176 -0
- package/dist/project/live-preview.js +198 -0
- package/dist/project/managed-runtime.js +324 -0
- package/dist/project/node-lifecycle.js +45 -0
- package/dist/project/packages.js +302 -0
- package/dist/project/page-state.js +198 -0
- package/dist/project/project.js +112 -0
- package/dist/project/shadow-effects.js +156 -0
- package/dist/project/shadows.js +122 -0
- package/dist/project/toolchain.js +216 -0
- package/dist/renderer/activity.js +91 -0
- package/dist/renderer/app-setup.js +126 -0
- package/dist/renderer/chat-tools.css +83 -0
- package/dist/renderer/highlight.css +118 -0
- package/dist/renderer/icons/attach.png +0 -0
- package/dist/renderer/icons/brain-weight.png +0 -0
- package/dist/renderer/icons/brain.png +0 -0
- package/dist/renderer/icons/chat.png +0 -0
- package/dist/renderer/icons/chevron.png +0 -0
- package/dist/renderer/icons/clone.png +0 -0
- package/dist/renderer/icons/close.png +0 -0
- package/dist/renderer/icons/document.png +0 -0
- package/dist/renderer/icons/edit.png +0 -0
- package/dist/renderer/icons/folder.png +0 -0
- package/dist/renderer/icons/import.png +0 -0
- package/dist/renderer/icons/open-folder.png +0 -0
- package/dist/renderer/icons/play.png +0 -0
- package/dist/renderer/icons/plus.png +0 -0
- package/dist/renderer/icons/remove.png +0 -0
- package/dist/renderer/icons/search.png +0 -0
- package/dist/renderer/icons/send.png +0 -0
- package/dist/renderer/icons/shadow.png +0 -0
- package/dist/renderer/icons/stop.png +0 -0
- package/dist/renderer/icons/terminal.png +0 -0
- package/dist/renderer/index.html +130 -0
- package/dist/renderer/launcher/OFL.txt +93 -0
- package/dist/renderer/launcher/cell.js +322 -0
- package/dist/renderer/launcher/launcher.css +79 -0
- package/dist/renderer/launcher/lexend-caption-bold.ttf +0 -0
- package/dist/renderer/launcher.html +23 -0
- package/dist/renderer/licenses/dompurify.txt +202 -0
- package/dist/renderer/licenses/github-slugger.txt +5 -0
- package/dist/renderer/licenses/highlight.js.txt +29 -0
- package/dist/renderer/licenses/marked-footnote.txt +21 -0
- package/dist/renderer/licenses/marked-gfm-heading-id.txt +21 -0
- package/dist/renderer/licenses/marked.txt +44 -0
- package/dist/renderer/markdown.css +43 -0
- package/dist/renderer/markdown.js +74 -0
- package/dist/renderer/renderer.js +18902 -0
- package/dist/renderer/styles.css +351 -0
- package/dist/skills/morka-agent-action/SKILL.md +39 -0
- package/dist/skills/morka-app/SKILL.md +36 -0
- package/dist/skills/morka-shadow-authoring/SKILL.md +32 -0
- package/package.json +30 -4
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
(() => {
|
|
2
|
+
if (new URLSearchParams(location.search).get("scope") === "shadow")
|
|
3
|
+
return;
|
|
4
|
+
const create = document.querySelector("#new-app");
|
|
5
|
+
const clone = document.querySelector("#clone-app");
|
|
6
|
+
const notice = document.querySelector("#app-install-status");
|
|
7
|
+
const open = document.querySelector("#open-project");
|
|
8
|
+
open?.addEventListener("click", async () => {
|
|
9
|
+
const status = document.querySelector("#open-project-status");
|
|
10
|
+
status.hidden = true;
|
|
11
|
+
open.disabled = true;
|
|
12
|
+
try {
|
|
13
|
+
await window.lab.openProject();
|
|
14
|
+
}
|
|
15
|
+
catch (error) {
|
|
16
|
+
status.textContent = error instanceof Error ? error.message : String(error);
|
|
17
|
+
status.hidden = false;
|
|
18
|
+
}
|
|
19
|
+
finally {
|
|
20
|
+
open.disabled = false;
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
const modal = document.createElement("dialog");
|
|
24
|
+
modal.className = "app-setup";
|
|
25
|
+
modal.setAttribute("aria-labelledby", "app-setup-title");
|
|
26
|
+
modal.innerHTML = `
|
|
27
|
+
<form>
|
|
28
|
+
<h2 id="app-setup-title"></h2>
|
|
29
|
+
<label for="app-name">App name</label>
|
|
30
|
+
<input id="app-name" type="text" maxlength="72" required autofocus>
|
|
31
|
+
<span id="app-setup-status" role="status" hidden></span>
|
|
32
|
+
<div class="setup-actions">
|
|
33
|
+
<button type="button" class="app-button setup-cancel">Cancel</button>
|
|
34
|
+
<button type="submit" class="app-button primary">Choose Folder…</button>
|
|
35
|
+
</div>
|
|
36
|
+
</form>`;
|
|
37
|
+
document.body.append(modal);
|
|
38
|
+
modal.querySelector("h2").textContent = create ? "Name your morka" : "Clone app";
|
|
39
|
+
const name = modal.querySelector("input");
|
|
40
|
+
const form = modal.querySelector("form");
|
|
41
|
+
const cancel = modal.querySelector(".setup-cancel");
|
|
42
|
+
const submit = modal.querySelector("[type=submit]");
|
|
43
|
+
const status = modal.querySelector("#app-setup-status");
|
|
44
|
+
let appTitle = "";
|
|
45
|
+
let running = false;
|
|
46
|
+
if (clone) {
|
|
47
|
+
void window.lab.currentApp().then(installedName => {
|
|
48
|
+
if (!installedName)
|
|
49
|
+
return;
|
|
50
|
+
appTitle = installedName;
|
|
51
|
+
const wordmark = document.querySelector(".wordmark");
|
|
52
|
+
wordmark.textContent = appTitle;
|
|
53
|
+
wordmark.title = appTitle;
|
|
54
|
+
document.title = appTitle;
|
|
55
|
+
clone.hidden = false;
|
|
56
|
+
}).catch(console.error);
|
|
57
|
+
}
|
|
58
|
+
cancel.addEventListener("click", () => modal.close());
|
|
59
|
+
modal.addEventListener("cancel", event => { if (running)
|
|
60
|
+
event.preventDefault(); });
|
|
61
|
+
function openSetup() {
|
|
62
|
+
if (modal.open || running)
|
|
63
|
+
return;
|
|
64
|
+
if (notice)
|
|
65
|
+
notice.hidden = true;
|
|
66
|
+
status.hidden = true;
|
|
67
|
+
name.value = clone ? appTitle.slice(0, 67) + " Copy" : "";
|
|
68
|
+
if (create) {
|
|
69
|
+
const cell = create.getBoundingClientRect();
|
|
70
|
+
modal.style.setProperty("--birth-x", (cell.left + cell.width / 2 - innerWidth / 2) + "px");
|
|
71
|
+
modal.style.setProperty("--birth-y", (cell.top + cell.height / 2 - innerHeight / 2) + "px");
|
|
72
|
+
}
|
|
73
|
+
modal.showModal();
|
|
74
|
+
name.select();
|
|
75
|
+
}
|
|
76
|
+
create?.addEventListener("morka-divided", openSetup);
|
|
77
|
+
clone?.addEventListener("click", openSetup);
|
|
78
|
+
if (create)
|
|
79
|
+
modal.addEventListener("close", () => {
|
|
80
|
+
create.focus({ preventScroll: true });
|
|
81
|
+
create.dispatchEvent(new Event("morka-reset"));
|
|
82
|
+
});
|
|
83
|
+
form.addEventListener("submit", async (event) => {
|
|
84
|
+
event.preventDefault();
|
|
85
|
+
if (running || !name.value.trim())
|
|
86
|
+
return;
|
|
87
|
+
running = true;
|
|
88
|
+
submit.disabled = name.disabled = cancel.disabled = true;
|
|
89
|
+
status.textContent = "Creating and installing project…";
|
|
90
|
+
status.hidden = false;
|
|
91
|
+
try {
|
|
92
|
+
const result = await window.lab.installApp(name.value);
|
|
93
|
+
if (!result) {
|
|
94
|
+
status.hidden = true;
|
|
95
|
+
return;
|
|
96
|
+
}
|
|
97
|
+
if ("error" in result) {
|
|
98
|
+
status.textContent = result.error;
|
|
99
|
+
return;
|
|
100
|
+
}
|
|
101
|
+
if (create) {
|
|
102
|
+
if (result.openError)
|
|
103
|
+
status.textContent = "Project created. Run npm run install:app in the project folder to retry. " + result.openError;
|
|
104
|
+
else
|
|
105
|
+
modal.close();
|
|
106
|
+
return;
|
|
107
|
+
}
|
|
108
|
+
modal.close();
|
|
109
|
+
if (!notice)
|
|
110
|
+
return;
|
|
111
|
+
notice.textContent = result.openError
|
|
112
|
+
? "Project created. Run npm run install:app in the project folder to retry. " + result.openError
|
|
113
|
+
: "Your app is ready in the system application menu.";
|
|
114
|
+
notice.title = result.path;
|
|
115
|
+
notice.hidden = false;
|
|
116
|
+
}
|
|
117
|
+
catch (error) {
|
|
118
|
+
status.textContent = error instanceof Error ? error.message : String(error);
|
|
119
|
+
}
|
|
120
|
+
finally {
|
|
121
|
+
running = false;
|
|
122
|
+
submit.disabled = name.disabled = cancel.disabled = false;
|
|
123
|
+
}
|
|
124
|
+
});
|
|
125
|
+
})();
|
|
126
|
+
export {};
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
.icon-attach { --glyph: url("icons/attach.png"); }
|
|
2
|
+
.icon-document { --glyph: url("icons/document.png"); }
|
|
3
|
+
.icon-folder { --glyph: url("icons/folder.png"); }
|
|
4
|
+
.icon-edit { --glyph: url("icons/edit.png"); }
|
|
5
|
+
.icon-search { --glyph: url("icons/search.png"); }
|
|
6
|
+
.icon-terminal { --glyph: url("icons/terminal.png"); }
|
|
7
|
+
|
|
8
|
+
.composer { position: relative; }
|
|
9
|
+
#attach-toggle { anchor-name: --attach-toggle; inline-size: 26px; }
|
|
10
|
+
#attach-toggle .icon { inline-size: 18px; block-size: 18px; }
|
|
11
|
+
.attachment-list { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
|
|
12
|
+
#pending-attachments { margin: 2px 2px 9px; }
|
|
13
|
+
.attachment-chip { display: inline-flex; align-items: center; min-width: 0; max-width: 100%; border: 1px solid #e1e3e9; border-radius: 8px; background: #f4f5f8; }
|
|
14
|
+
.attachment-open, .attachment-remove { display: inline-flex; align-items: center; border: 0; background: transparent; color: #565d70; }
|
|
15
|
+
.attachment-open { min-width: 0; gap: 6px; padding: 6px 8px; font-size: 11px; }
|
|
16
|
+
.attachment-open > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
17
|
+
.attachment-open .icon { inline-size: 15px; block-size: 15px; }
|
|
18
|
+
.attachment-open:hover { color: #20232e; }
|
|
19
|
+
.attachment-remove { padding: 5px; margin-inline-end: 3px; border-radius: 5px; }
|
|
20
|
+
.attachment-remove:hover:enabled { background: #e6e8ef; }
|
|
21
|
+
.attachment-remove .icon { inline-size: 12px; block-size: 12px; }
|
|
22
|
+
.attachment-remove:disabled { opacity: .4; cursor: default; }
|
|
23
|
+
.message-attachments { margin-top: 7px; }
|
|
24
|
+
.composer.dragging-files::before { content: "Drop files or folders"; position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; border: 2px dashed #8d85ce; border-radius: inherit; background: #f5f3fff2; color: #5147c9; pointer-events: none; }
|
|
25
|
+
#attachment-menu {
|
|
26
|
+
inset: auto 20px 80px auto;
|
|
27
|
+
min-width: 172px;
|
|
28
|
+
padding: 5px;
|
|
29
|
+
border: 1px solid #e4e5e9;
|
|
30
|
+
border-radius: 12px;
|
|
31
|
+
background: white;
|
|
32
|
+
color: #41434b;
|
|
33
|
+
box-shadow: 0 6px 24px #20232e1f, 0 1px 4px #20232e0a;
|
|
34
|
+
opacity: 0;
|
|
35
|
+
transform: translateY(4px) scale(.98);
|
|
36
|
+
transition: opacity var(--dialog-duration) var(--motion-ease),
|
|
37
|
+
transform var(--dialog-duration) var(--motion-ease),
|
|
38
|
+
display var(--dialog-duration) allow-discrete,
|
|
39
|
+
overlay var(--dialog-duration) allow-discrete;
|
|
40
|
+
}
|
|
41
|
+
#attachment-menu:popover-open { opacity: 1; transform: none; }
|
|
42
|
+
@starting-style { #attachment-menu:popover-open { opacity: 0; transform: translateY(4px) scale(.98); } }
|
|
43
|
+
@supports (position-area: top) {
|
|
44
|
+
#attachment-menu { position-anchor: --attach-toggle; inset: auto; position-area: block-start span-inline-end; margin: 0 0 6px; }
|
|
45
|
+
}
|
|
46
|
+
#attachment-menu button { display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px 9px; border: 0; border-radius: 7px; background: transparent; color: inherit; text-align: start; font-size: 12px; }
|
|
47
|
+
#attachment-menu button:hover, #attachment-menu button:focus-visible { background: #eceef1; }
|
|
48
|
+
#attachment-menu .icon { inline-size: 17px; block-size: 17px; }
|
|
49
|
+
|
|
50
|
+
.turn-activity { min-width: 0; border: 1px solid #e8eaf0; border-radius: 10px; background: #f8f9fb; }
|
|
51
|
+
.turn-activity summary { list-style: none; cursor: pointer; }
|
|
52
|
+
.turn-activity summary::-webkit-details-marker { display: none; }
|
|
53
|
+
.turn-activity > summary { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 9px 10px; }
|
|
54
|
+
.activity-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 500; color: #5b6274; }
|
|
55
|
+
.activity-meta { flex: none; font-size: 10px; color: #8a8f9d; white-space: nowrap; }
|
|
56
|
+
.turn-activity > summary::after { content: ""; flex: none; width: 12px; height: 12px; background: url("icons/chevron.png") center / contain no-repeat; opacity: .6; transition: transform var(--dialog-duration) var(--motion-ease); }
|
|
57
|
+
.turn-activity[open] > summary::after { transform: rotate(180deg); }
|
|
58
|
+
.activity-indicator { display: inline-grid; place-items: center; flex: none; width: 13px; height: 13px; color: #8a8f9d; font-size: 12px; }
|
|
59
|
+
.turn-activity[data-status="running"] .activity-indicator { border: 1.5px solid #d7d9e3; border-top-color: #68618f; border-radius: 50%; animation: activity-spin 1.1s linear infinite; }
|
|
60
|
+
.turn-activity[data-status="completed"] .activity-indicator::after { content: "✓"; }
|
|
61
|
+
.turn-activity[data-status="failed"] .activity-indicator::after { content: "!"; color: #aa4254; font-weight: 700; }
|
|
62
|
+
.turn-activity[data-status="stopped"] .activity-indicator::after { content: "■"; font-size: 8px; }
|
|
63
|
+
@keyframes activity-spin { to { transform: rotate(360deg); } }
|
|
64
|
+
.activity-list { padding: 4px 10px 8px; border-top: 1px solid #e8eaf0; }
|
|
65
|
+
.activity-list:empty { display: none; }
|
|
66
|
+
.activity-notice { margin: 0; padding: 8px 10px; font-size: 11px; color: #8c3b4c; overflow-wrap: anywhere; }
|
|
67
|
+
.activity-entry { min-width: 0; }
|
|
68
|
+
.activity-entry > summary { display: flex; align-items: center; gap: 7px; padding: 6px 0; font-size: 11px; color: #6a7081; }
|
|
69
|
+
.activity-entry > summary > span:last-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
70
|
+
.activity-entry .icon { inline-size: 14px; block-size: 14px; opacity: .7; }
|
|
71
|
+
.activity-entry > summary::after { content: "✓"; color: #989dab; font-size: 10px; }
|
|
72
|
+
.activity-entry[data-status="running"] > summary::after { content: ""; width: 8px; height: 8px; border: 1px solid #d7d9e3; border-top-color: #78718f; border-radius: 50%; animation: activity-spin 1.1s linear infinite; }
|
|
73
|
+
.activity-entry[data-status="failed"] > summary::after { content: "!"; color: #aa4254; }
|
|
74
|
+
.activity-entry[data-status="stopped"] > summary::after { content: "■"; font-size: 6px; }
|
|
75
|
+
.activity-detail { max-height: 240px; overflow: auto; margin: 0 0 8px 20px; padding: 9px; border: 1px solid #e4e6ed; border-radius: 7px; background: #f0f2f6; color: #606778; font: 10px / 1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; direction: ltr; text-align: left; }
|
|
76
|
+
@supports (interpolate-size: allow-keywords) {
|
|
77
|
+
.turn-activity, .activity-entry { interpolate-size: allow-keywords; }
|
|
78
|
+
.turn-activity::details-content, .activity-entry::details-content { block-size: 0; opacity: 0; overflow: clip; transition: block-size var(--dialog-duration) var(--motion-ease), opacity var(--dialog-duration), content-visibility var(--dialog-duration) allow-discrete; }
|
|
79
|
+
.turn-activity[open]::details-content, .activity-entry[open]::details-content { block-size: auto; opacity: 1; }
|
|
80
|
+
}
|
|
81
|
+
@media (prefers-reduced-motion: reduce) {
|
|
82
|
+
.activity-indicator, .activity-entry > summary::after { animation: none !important; }
|
|
83
|
+
}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
pre code.hljs {
|
|
2
|
+
display: block;
|
|
3
|
+
overflow-x: auto;
|
|
4
|
+
padding: 1em
|
|
5
|
+
}
|
|
6
|
+
code.hljs {
|
|
7
|
+
padding: 3px 5px
|
|
8
|
+
}
|
|
9
|
+
/*!
|
|
10
|
+
Theme: GitHub
|
|
11
|
+
Description: Light theme as seen on github.com
|
|
12
|
+
Author: github.com
|
|
13
|
+
Maintainer: @Hirse
|
|
14
|
+
Updated: 2021-05-15
|
|
15
|
+
|
|
16
|
+
Outdated base version: https://github.com/primer/github-syntax-light
|
|
17
|
+
Current colors taken from GitHub's CSS
|
|
18
|
+
*/
|
|
19
|
+
.hljs {
|
|
20
|
+
color: #24292e;
|
|
21
|
+
background: #ffffff
|
|
22
|
+
}
|
|
23
|
+
.hljs-doctag,
|
|
24
|
+
.hljs-keyword,
|
|
25
|
+
.hljs-meta .hljs-keyword,
|
|
26
|
+
.hljs-template-tag,
|
|
27
|
+
.hljs-template-variable,
|
|
28
|
+
.hljs-type,
|
|
29
|
+
.hljs-variable.language_ {
|
|
30
|
+
/* prettylights-syntax-keyword */
|
|
31
|
+
color: #d73a49
|
|
32
|
+
}
|
|
33
|
+
.hljs-title,
|
|
34
|
+
.hljs-title.class_,
|
|
35
|
+
.hljs-title.class_.inherited__,
|
|
36
|
+
.hljs-title.function_ {
|
|
37
|
+
/* prettylights-syntax-entity */
|
|
38
|
+
color: #6f42c1
|
|
39
|
+
}
|
|
40
|
+
.hljs-attr,
|
|
41
|
+
.hljs-attribute,
|
|
42
|
+
.hljs-literal,
|
|
43
|
+
.hljs-meta,
|
|
44
|
+
.hljs-number,
|
|
45
|
+
.hljs-operator,
|
|
46
|
+
.hljs-variable,
|
|
47
|
+
.hljs-selector-attr,
|
|
48
|
+
.hljs-selector-class,
|
|
49
|
+
.hljs-selector-id {
|
|
50
|
+
/* prettylights-syntax-constant */
|
|
51
|
+
color: #005cc5
|
|
52
|
+
}
|
|
53
|
+
.hljs-regexp,
|
|
54
|
+
.hljs-string,
|
|
55
|
+
.hljs-meta .hljs-string {
|
|
56
|
+
/* prettylights-syntax-string */
|
|
57
|
+
color: #032f62
|
|
58
|
+
}
|
|
59
|
+
.hljs-built_in,
|
|
60
|
+
.hljs-symbol {
|
|
61
|
+
/* prettylights-syntax-variable */
|
|
62
|
+
color: #e36209
|
|
63
|
+
}
|
|
64
|
+
.hljs-comment,
|
|
65
|
+
.hljs-code,
|
|
66
|
+
.hljs-formula {
|
|
67
|
+
/* prettylights-syntax-comment */
|
|
68
|
+
color: #6a737d
|
|
69
|
+
}
|
|
70
|
+
.hljs-name,
|
|
71
|
+
.hljs-quote,
|
|
72
|
+
.hljs-selector-tag,
|
|
73
|
+
.hljs-selector-pseudo {
|
|
74
|
+
/* prettylights-syntax-entity-tag */
|
|
75
|
+
color: #22863a
|
|
76
|
+
}
|
|
77
|
+
.hljs-subst {
|
|
78
|
+
/* prettylights-syntax-storage-modifier-import */
|
|
79
|
+
color: #24292e
|
|
80
|
+
}
|
|
81
|
+
.hljs-section {
|
|
82
|
+
/* prettylights-syntax-markup-heading */
|
|
83
|
+
color: #005cc5;
|
|
84
|
+
font-weight: bold
|
|
85
|
+
}
|
|
86
|
+
.hljs-bullet {
|
|
87
|
+
/* prettylights-syntax-markup-list */
|
|
88
|
+
color: #735c0f
|
|
89
|
+
}
|
|
90
|
+
.hljs-emphasis {
|
|
91
|
+
/* prettylights-syntax-markup-italic */
|
|
92
|
+
color: #24292e;
|
|
93
|
+
font-style: italic
|
|
94
|
+
}
|
|
95
|
+
.hljs-strong {
|
|
96
|
+
/* prettylights-syntax-markup-bold */
|
|
97
|
+
color: #24292e;
|
|
98
|
+
font-weight: bold
|
|
99
|
+
}
|
|
100
|
+
.hljs-addition {
|
|
101
|
+
/* prettylights-syntax-markup-inserted */
|
|
102
|
+
color: #22863a;
|
|
103
|
+
background-color: #f0fff4
|
|
104
|
+
}
|
|
105
|
+
.hljs-deletion {
|
|
106
|
+
/* prettylights-syntax-markup-deleted */
|
|
107
|
+
color: #b31d28;
|
|
108
|
+
background-color: #ffeef0
|
|
109
|
+
}
|
|
110
|
+
.hljs-char.escape_,
|
|
111
|
+
.hljs-link,
|
|
112
|
+
.hljs-params,
|
|
113
|
+
.hljs-property,
|
|
114
|
+
.hljs-punctuation,
|
|
115
|
+
.hljs-tag {
|
|
116
|
+
/* purposely ignored */
|
|
117
|
+
|
|
118
|
+
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,130 @@
|
|
|
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">
|
|
6
|
+
<meta http-equiv="Content-Security-Policy" content="default-src 'none'; script-src 'self'; style-src 'self'; img-src 'self' https: data:; frame-src http://127.0.0.1:* http://localhost:* http://[::1]:* https://127.0.0.1:* https://localhost:* https://[::1]:*; base-uri 'none'; form-action 'none'">
|
|
7
|
+
<link rel="preload" href="icons/brain-weight.png" as="image">
|
|
8
|
+
<link rel="stylesheet" href="styles.css">
|
|
9
|
+
<link rel="stylesheet" href="highlight.css">
|
|
10
|
+
<link rel="stylesheet" href="markdown.css">
|
|
11
|
+
<link rel="stylesheet" href="chat-tools.css">
|
|
12
|
+
<script src="renderer.js" defer></script>
|
|
13
|
+
<script src="app-setup.js" defer></script>
|
|
14
|
+
</head>
|
|
15
|
+
<body>
|
|
16
|
+
<header class="titlebar">
|
|
17
|
+
<div class="wordmark"></div>
|
|
18
|
+
<div class="titlebar-actions">
|
|
19
|
+
<span id="runtime-status" role="status" hidden></span>
|
|
20
|
+
<div class="toolbar" role="group" aria-label="Workspace controls">
|
|
21
|
+
<button type="button" id="agent-setup-open" class="app-button" aria-haspopup="dialog" aria-controls="agent-setup">AI setup</button>
|
|
22
|
+
<button type="button" id="clone-app" class="icon-button" aria-label="Clone" title="Clone" aria-haspopup="dialog" hidden>
|
|
23
|
+
<span class="icon icon-clone" aria-hidden="true"></span>
|
|
24
|
+
</button>
|
|
25
|
+
<button type="button" id="runtime-retry" class="icon-button" aria-label="Retry starting app" title="Retry starting app" hidden>
|
|
26
|
+
<span class="icon icon-play" aria-hidden="true"></span>
|
|
27
|
+
</button>
|
|
28
|
+
<button type="button" id="shadows-toggle" class="icon-button" aria-label="Shadows" title="Shadows" aria-haspopup="dialog" aria-controls="shadows-dialog">
|
|
29
|
+
<span class="icon icon-shadow" aria-hidden="true"></span>
|
|
30
|
+
</button>
|
|
31
|
+
<button type="button" id="chat-toggle" class="icon-button" aria-controls="chat-panel" aria-expanded="false" aria-label="Show chat" title="Show chat">
|
|
32
|
+
<span class="icon icon-chat" aria-hidden="true"></span>
|
|
33
|
+
</button>
|
|
34
|
+
<span id="agent-indicator" class="agent-indicator" data-active="false" role="status" aria-label="Agent idle" title="Agent idle">
|
|
35
|
+
<span class="icon icon-brain" aria-hidden="true"></span>
|
|
36
|
+
</span>
|
|
37
|
+
</div>
|
|
38
|
+
</div>
|
|
39
|
+
</header>
|
|
40
|
+
<main class="workspace">
|
|
41
|
+
<section class="preview-panel" aria-label="Project preview">
|
|
42
|
+
<iframe id="preview" name="morka-preview" title="Project preview" sandbox="allow-scripts allow-same-origin allow-forms"></iframe>
|
|
43
|
+
</section>
|
|
44
|
+
<section id="chat-panel" class="chat-panel" aria-labelledby="chat-heading" inert>
|
|
45
|
+
<header class="chat-heading">
|
|
46
|
+
<h1 id="chat-heading">Chat</h1>
|
|
47
|
+
<button type="button" id="new-chat" class="icon-button" aria-label="New chat" title="New chat">
|
|
48
|
+
<span class="icon icon-plus" aria-hidden="true"></span>
|
|
49
|
+
</button>
|
|
50
|
+
</header>
|
|
51
|
+
<div class="chat-navigation" hidden>
|
|
52
|
+
<select id="chat-picker" class="chat-select" aria-label="Conversations"></select>
|
|
53
|
+
</div>
|
|
54
|
+
<div class="feed" id="feed">
|
|
55
|
+
<div class="intro" id="intro">
|
|
56
|
+
<h2>What should we build?</h2>
|
|
57
|
+
</div>
|
|
58
|
+
<div class="transcript" id="transcript" role="log" aria-label="Messages"></div>
|
|
59
|
+
</div>
|
|
60
|
+
<form id="composer" class="composer">
|
|
61
|
+
<div id="pending-attachments" class="attachment-list" aria-label="Attached files" hidden></div>
|
|
62
|
+
<label for="prompt" class="sr-only">Message</label>
|
|
63
|
+
<textarea id="prompt" dir="auto" rows="3" maxlength="4000" placeholder="Ask for a change…"></textarea>
|
|
64
|
+
<span id="status" role="status"></span>
|
|
65
|
+
<div class="composer-actions">
|
|
66
|
+
<button type="button" id="attach-toggle" class="icon-button" aria-label="Attach files or folder" title="Attach files or folder" popovertarget="attachment-menu">
|
|
67
|
+
<span class="icon icon-attach" aria-hidden="true"></span>
|
|
68
|
+
</button>
|
|
69
|
+
<div class="composer-options">
|
|
70
|
+
<select id="agent-provider" class="chat-select" aria-label="Agent" title="Agent"><option value="codex">Codex</option></select>
|
|
71
|
+
<select id="model" class="chat-select" aria-label="Model" disabled><option value="">Loading…</option></select>
|
|
72
|
+
<select id="effort" class="chat-select" aria-label="Reasoning effort" disabled><option value="">Default</option></select>
|
|
73
|
+
</div>
|
|
74
|
+
<button type="submit" id="send" class="icon-button send" aria-label="Send" title="Send" disabled>
|
|
75
|
+
<span class="icon icon-send" aria-hidden="true"></span>
|
|
76
|
+
</button>
|
|
77
|
+
<button type="button" id="stop" class="icon-button stop" aria-label="Stop agent" title="Stop agent" hidden>
|
|
78
|
+
<span class="icon icon-stop" aria-hidden="true"></span>
|
|
79
|
+
</button>
|
|
80
|
+
</div>
|
|
81
|
+
</form>
|
|
82
|
+
<div id="attachment-menu" popover="auto" aria-label="Attach">
|
|
83
|
+
<button type="button" id="attach-files"><span class="icon icon-document" aria-hidden="true"></span>Attach files</button>
|
|
84
|
+
<button type="button" id="attach-folder"><span class="icon icon-folder" aria-hidden="true"></span>Attach folder</button>
|
|
85
|
+
</div>
|
|
86
|
+
</section>
|
|
87
|
+
</main>
|
|
88
|
+
<dialog id="agent-setup" class="app-setup" aria-labelledby="agent-setup-title">
|
|
89
|
+
<h2 id="agent-setup-title">AI setup</h2>
|
|
90
|
+
<p id="agent-setup-status" role="status" hidden></p>
|
|
91
|
+
<ul id="agent-setup-accounts"></ul>
|
|
92
|
+
<div class="setup-actions">
|
|
93
|
+
<button type="button" id="agent-setup-reset" class="app-button" hidden>Reset app access</button>
|
|
94
|
+
<button type="button" id="agent-setup-refresh" class="app-button">Check again</button>
|
|
95
|
+
<form method="dialog"><button type="submit" class="app-button primary">Done</button></form>
|
|
96
|
+
</div>
|
|
97
|
+
</dialog>
|
|
98
|
+
<dialog id="shadows-dialog" class="app-setup shadows-dialog" aria-labelledby="shadows-heading">
|
|
99
|
+
<header class="shadows-heading">
|
|
100
|
+
<h2 id="shadows-heading">Installed Shadows</h2>
|
|
101
|
+
<button type="button" id="shadows-close" class="icon-button" aria-label="Close Shadows" title="Close Shadows">
|
|
102
|
+
<span class="icon icon-close" aria-hidden="true"></span>
|
|
103
|
+
</button>
|
|
104
|
+
</header>
|
|
105
|
+
<p id="shadows-empty" hidden>No Shadows installed.</p>
|
|
106
|
+
<ul id="shadows-list" class="shadows-list"></ul>
|
|
107
|
+
<p id="shadows-status" role="status" hidden></p>
|
|
108
|
+
<div class="shadows-actions" role="group" aria-label="Shadow actions">
|
|
109
|
+
<button type="button" id="shadow-import" class="icon-button shadow-action" aria-label="Install Shadow…" title="Install Shadow…">
|
|
110
|
+
<span class="icon icon-import" aria-hidden="true"></span>
|
|
111
|
+
</button>
|
|
112
|
+
<button type="button" id="shadow-open" class="icon-button shadow-action" aria-label="Open Shadow…" title="Open Shadow…">
|
|
113
|
+
<span class="icon icon-open-folder" aria-hidden="true"></span>
|
|
114
|
+
</button>
|
|
115
|
+
<button type="button" id="shadow-new" class="icon-button shadow-action primary" aria-label="New Shadow…" title="New Shadow…" aria-controls="shadow-create" aria-expanded="false">
|
|
116
|
+
<span class="icon icon-plus" aria-hidden="true"></span>
|
|
117
|
+
</button>
|
|
118
|
+
</div>
|
|
119
|
+
<form id="shadow-create" hidden>
|
|
120
|
+
<label for="shadow-name">Shadow name</label>
|
|
121
|
+
<input id="shadow-name" type="text" maxlength="72" required>
|
|
122
|
+
<div class="setup-actions">
|
|
123
|
+
<button type="button" id="shadow-create-cancel" class="app-button">Cancel</button>
|
|
124
|
+
<button type="submit" class="app-button primary">Choose Folder…</button>
|
|
125
|
+
</div>
|
|
126
|
+
</form>
|
|
127
|
+
</dialog>
|
|
128
|
+
<span id="app-install-status" class="install-notice" role="status" hidden></span>
|
|
129
|
+
</body>
|
|
130
|
+
</html>
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
Copyright 2018 The Lexend Project Authors (https://github.com/googlefonts/lexend), with Reserved Font Name “RevReading Lexend”.
|
|
2
|
+
|
|
3
|
+
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
|
4
|
+
This license is copied below, and is also available with a FAQ at:
|
|
5
|
+
https://scripts.sil.org/OFL
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
-----------------------------------------------------------
|
|
9
|
+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
10
|
+
-----------------------------------------------------------
|
|
11
|
+
|
|
12
|
+
PREAMBLE
|
|
13
|
+
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
14
|
+
development of collaborative font projects, to support the font creation
|
|
15
|
+
efforts of academic and linguistic communities, and to provide a free and
|
|
16
|
+
open framework in which fonts may be shared and improved in partnership
|
|
17
|
+
with others.
|
|
18
|
+
|
|
19
|
+
The OFL allows the licensed fonts to be used, studied, modified and
|
|
20
|
+
redistributed freely as long as they are not sold by themselves. The
|
|
21
|
+
fonts, including any derivative works, can be bundled, embedded,
|
|
22
|
+
redistributed and/or sold with any software provided that any reserved
|
|
23
|
+
names are not used by derivative works. The fonts and derivatives,
|
|
24
|
+
however, cannot be released under any other type of license. The
|
|
25
|
+
requirement for fonts to remain under this license does not apply
|
|
26
|
+
to any document created using the fonts or their derivatives.
|
|
27
|
+
|
|
28
|
+
DEFINITIONS
|
|
29
|
+
"Font Software" refers to the set of files released by the Copyright
|
|
30
|
+
Holder(s) under this license and clearly marked as such. This may
|
|
31
|
+
include source files, build scripts and documentation.
|
|
32
|
+
|
|
33
|
+
"Reserved Font Name" refers to any names specified as such after the
|
|
34
|
+
copyright statement(s).
|
|
35
|
+
|
|
36
|
+
"Original Version" refers to the collection of Font Software components as
|
|
37
|
+
distributed by the Copyright Holder(s).
|
|
38
|
+
|
|
39
|
+
"Modified Version" refers to any derivative made by adding to, deleting,
|
|
40
|
+
or substituting -- in part or in whole -- any of the components of the
|
|
41
|
+
Original Version, by changing formats or by porting the Font Software to a
|
|
42
|
+
new environment.
|
|
43
|
+
|
|
44
|
+
"Author" refers to any designer, engineer, programmer, technical
|
|
45
|
+
writer or other person who contributed to the Font Software.
|
|
46
|
+
|
|
47
|
+
PERMISSION & CONDITIONS
|
|
48
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
49
|
+
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
|
50
|
+
redistribute, and sell modified and unmodified copies of the Font
|
|
51
|
+
Software, subject to the following conditions:
|
|
52
|
+
|
|
53
|
+
1) Neither the Font Software nor any of its individual components,
|
|
54
|
+
in Original or Modified Versions, may be sold by itself.
|
|
55
|
+
|
|
56
|
+
2) Original or Modified Versions of the Font Software may be bundled,
|
|
57
|
+
redistributed and/or sold with any software, provided that each copy
|
|
58
|
+
contains the above copyright notice and this license. These can be
|
|
59
|
+
included either as stand-alone text files, human-readable headers or
|
|
60
|
+
in the appropriate machine-readable metadata fields within text or
|
|
61
|
+
binary files as long as those fields can be easily viewed by the user.
|
|
62
|
+
|
|
63
|
+
3) No Modified Version of the Font Software may use the Reserved Font
|
|
64
|
+
Name(s) unless explicit written permission is granted by the corresponding
|
|
65
|
+
Copyright Holder. This restriction only applies to the primary font name as
|
|
66
|
+
presented to the users.
|
|
67
|
+
|
|
68
|
+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
69
|
+
Software shall not be used to promote, endorse or advertise any
|
|
70
|
+
Modified Version, except to acknowledge the contribution(s) of the
|
|
71
|
+
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
72
|
+
permission.
|
|
73
|
+
|
|
74
|
+
5) The Font Software, modified or unmodified, in part or in whole,
|
|
75
|
+
must be distributed entirely under this license, and must not be
|
|
76
|
+
distributed under any other license. The requirement for fonts to
|
|
77
|
+
remain under this license does not apply to any document created
|
|
78
|
+
using the Font Software.
|
|
79
|
+
|
|
80
|
+
TERMINATION
|
|
81
|
+
This license becomes null and void if any of the above conditions are
|
|
82
|
+
not met.
|
|
83
|
+
|
|
84
|
+
DISCLAIMER
|
|
85
|
+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
86
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
87
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
88
|
+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
89
|
+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
90
|
+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
91
|
+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
92
|
+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
93
|
+
OTHER DEALINGS IN THE FONT SOFTWARE.
|