[skip ci] wip: preserve Hermes crank development checkpoint
Owner-authorized recovery of accumulated source changes.
Includes accepted work and in-progress changes; NOT a release or acceptance.
Parent baseline 1b6db09bd1. Runtime data, build caches and local credentials excluded.
This commit is contained in:
1 parent
1b6db09bd1
commit
75fe5a123c
357 files changed
+118831
-5113
No files matched your search
@@ -0,0 +1,44 @@
|
||||
/* Prompt Draft editor — keep previews inert and controls usable on narrow screens. */
|
||||
.prompt-page { max-width: 1320px; }
|
||||
.prompt-layout { display:grid; grid-template-columns:minmax(220px, 0.75fr) minmax(0, 2fr); gap:24px; align-items:start; }
|
||||
.prompt-list-panel,.prompt-editor-panel,.prompt-preview { background:var(--surface,#fff); border:1px solid var(--border,#d7dce2); border-radius:12px; padding:20px; }
|
||||
.prompt-list-panel h2,.prompt-preview h2 { margin:0 0 14px; font-size:1.05rem; }
|
||||
#prompt-list { list-style:none; margin:0; padding:0; display:grid; gap:8px; }
|
||||
.prompt-list-item { display:block; width:100%; text-align:left; padding:12px; border:1px solid var(--border,#d7dce2); border-radius:8px; background:transparent; color:inherit; cursor:pointer; }
|
||||
.prompt-list-item[aria-current="true"] { border-color:var(--accent,#536dfe); box-shadow:0 0 0 2px color-mix(in srgb,var(--accent,#536dfe) 20%,transparent); }
|
||||
.prompt-list-item strong,.prompt-list-item span { display:block; overflow-wrap:anywhere; }
|
||||
.prompt-list-item span { margin-top:4px; color:var(--muted,#687385); font-size:.85rem; }
|
||||
.prompt-state { display:flex; flex-wrap:wrap; gap:10px; align-items:center; margin-bottom:18px; padding:10px 12px; border-radius:8px; background:var(--surface-muted,#f2f4f7); }
|
||||
.prompt-state strong { color:var(--accent,#536dfe); }
|
||||
.prompt-field { display:grid; gap:6px; margin-bottom:14px; font-weight:600; }
|
||||
.prompt-field input,.prompt-field textarea,.prompt-field select { width:100%; box-sizing:border-box; font:inherit; font-weight:400; padding:10px 12px; border:1px solid var(--border,#cbd2dc); border-radius:7px; color:var(--text,#1f2937); background:var(--surface,#fff); }
|
||||
.prompt-field textarea { font-family:var(--font-mono,"JetBrains Mono",monospace); font-size:.88rem; resize:vertical; }
|
||||
.prompt-field small { font-weight:400; color:var(--muted,#687385); }
|
||||
.prompt-actions { display:flex; flex-wrap:wrap; gap:10px; }
|
||||
.prompt-lifecycle { margin-bottom:18px; }
|
||||
.prompt-published { margin:0 0 18px; padding:14px 16px; border:1px solid var(--border,#d7dce2); border-radius:10px; background:var(--surface-muted,#f2f4f7); }
|
||||
.prompt-published h2,.prompt-bind h2 { margin:0 0 10px; font-size:1rem; }
|
||||
.prompt-published-meta { display:grid; grid-template-columns:max-content 1fr; gap:4px 12px; margin:0 0 10px; }
|
||||
.prompt-published-meta dt { color:var(--muted,#687385); font-weight:600; }
|
||||
.prompt-published-meta dd { margin:0; }
|
||||
#prompt-published-definition { margin:0; max-height:280px; overflow:auto; white-space:pre-wrap; overflow-wrap:anywhere; font-family:var(--font-mono,"JetBrains Mono",monospace); font-size:.82rem; }
|
||||
.prompt-bind { margin:0 0 18px; padding:14px 16px; border:1px solid var(--border,#d7dce2); border-radius:10px; }
|
||||
.prompt-preview { margin-top:22px; }
|
||||
#prompt-preview-messages { display:grid; gap:10px; padding-left:24px; }
|
||||
#prompt-preview-messages li { padding:12px; border:1px solid var(--border,#d7dce2); border-radius:8px; }
|
||||
.prompt-preview-role { display:block; margin-bottom:6px; color:var(--muted,#687385); font-size:.8rem; font-weight:700; text-transform:uppercase; }
|
||||
.prompt-preview-content { display:block; white-space:pre-wrap; overflow-wrap:anywhere; font-family:var(--font-mono,"JetBrains Mono",monospace); }
|
||||
.prompt-status { min-height:1.5em; }
|
||||
#prompt-confirm { max-width:min(480px,calc(100vw - 32px)); border:1px solid var(--border,#d7dce2); border-radius:12px; padding:24px; color:inherit; background:var(--surface,#fff); }
|
||||
#prompt-confirm::backdrop { background:rgba(16,24,40,.48); }
|
||||
@media (max-width:850px) { .prompt-layout { grid-template-columns:1fr; } }
|
||||
|
||||
/* Story 3.15: перенос шаблонов — импорт/экспорт и инертный предпросмотр. */
|
||||
.prompt-portability { margin-top:22px; padding:16px; border:1px solid var(--border,#d7dce2); border-radius:12px; background:var(--surface,#fff); }
|
||||
.prompt-portability h2 { margin:0 0 10px; font-size:1rem; }
|
||||
.prompt-import-preview,.prompt-import-confirm { margin-top:14px; padding:12px 14px; border:1px solid var(--border,#d7dce2); border-radius:10px; background:var(--surface-muted,#f2f4f7); }
|
||||
.prompt-import-preview p,.prompt-import-confirm p { margin:0 0 6px; }
|
||||
.prompt-import-preview pre { margin:8px 0 0; max-height:240px; overflow:auto; white-space:pre-wrap; overflow-wrap:anywhere; font-family:var(--font-mono,"JetBrains Mono",monospace); font-size:.82rem; }
|
||||
.prompt-import-confirm { display:flex; flex-wrap:wrap; gap:10px; align-items:center; }
|
||||
.prompt-import-confirm p { flex:1 1 100%; margin:0; }
|
||||
.prompt-import-error,.prompt-stale { margin-top:10px; padding:10px 12px; border-radius:8px; border:1px solid #f0b4b4; background:#fdf2f2; color:#8a1f1f; }
|
||||
@@ -0,0 +1,354 @@
|
||||
.resource-preview {
|
||||
display: grid;
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.resource-meta {
|
||||
display: grid;
|
||||
gap: 8px;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.resource-meta-row {
|
||||
display: grid;
|
||||
grid-template-columns: 160px 1fr;
|
||||
gap: 12px;
|
||||
align-items: baseline;
|
||||
}
|
||||
|
||||
.resource-meta-row dt {
|
||||
font-size: 12px;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.resource-meta-row dd {
|
||||
margin: 0;
|
||||
font-family: var(--font-mono, monospace);
|
||||
font-size: 12px;
|
||||
color: var(--text);
|
||||
word-break: break-all;
|
||||
}
|
||||
|
||||
.resource-preview-text {
|
||||
margin: 0;
|
||||
padding: 14px;
|
||||
max-height: 420px;
|
||||
overflow: auto;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 8px;
|
||||
background: var(--surface);
|
||||
font-family: var(--font-mono, monospace);
|
||||
font-size: 12px;
|
||||
line-height: 1.6;
|
||||
white-space: pre-wrap;
|
||||
word-break: break-word;
|
||||
}
|
||||
|
||||
.resource-preview-error {
|
||||
padding: 12px 14px;
|
||||
border: 1px solid var(--red-border);
|
||||
border-radius: 8px;
|
||||
background: var(--red-bg);
|
||||
color: var(--red);
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.resource-form {
|
||||
display: grid;
|
||||
gap: 14px;
|
||||
}
|
||||
|
||||
.resource-form-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
|
||||
gap: 14px;
|
||||
}
|
||||
|
||||
.resource-field {
|
||||
display: grid;
|
||||
gap: 6px;
|
||||
font-size: 12px;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.resource-field-wide {
|
||||
grid-column: 1 / -1;
|
||||
}
|
||||
|
||||
.resource-field input[type="text"],
|
||||
.resource-field select,
|
||||
.resource-field textarea,
|
||||
.resource-field input[type="file"] {
|
||||
width: 100%;
|
||||
padding: 8px 10px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius-sm, 5px);
|
||||
background: var(--bg-surface);
|
||||
color: var(--text-primary);
|
||||
font-family: var(--font-mono, monospace);
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.resource-field textarea {
|
||||
resize: vertical;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.resource-form-actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.resource-form-status {
|
||||
font-size: 12px;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.resource-list {
|
||||
display: grid;
|
||||
gap: 8px;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.resource-list-item {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 2px;
|
||||
padding: 10px 12px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 8px;
|
||||
background: var(--bg-surface);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.resource-list-item:hover,
|
||||
.resource-list-item.selected {
|
||||
border-color: var(--accent);
|
||||
background: var(--accent-glow);
|
||||
}
|
||||
|
||||
.resource-list-name {
|
||||
font-size: 13px;
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.resource-list-meta {
|
||||
font-family: var(--font-mono, monospace);
|
||||
font-size: 11px;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
/* Story 3.7 — publication, exact Published Version, binding and archive. */
|
||||
.resource-findings {
|
||||
display: grid;
|
||||
gap: 6px;
|
||||
padding: 12px 14px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 8px;
|
||||
background: var(--surface);
|
||||
}
|
||||
|
||||
.resource-findings-title {
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.resource-findings-list {
|
||||
display: grid;
|
||||
gap: 4px;
|
||||
margin: 0;
|
||||
padding-left: 18px;
|
||||
font-family: var(--font-mono, monospace);
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.resource-findings-empty {
|
||||
font-size: 12px;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.resource-lifecycle {
|
||||
display: grid;
|
||||
gap: 14px;
|
||||
}
|
||||
|
||||
.resource-lifecycle-status {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.resource-lifecycle-label {
|
||||
font-size: 12px;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.resource-status-badge {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
padding: 2px 10px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 999px;
|
||||
background: var(--surface);
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.resource-lifecycle-actions,
|
||||
.resource-confirm,
|
||||
.resource-stale {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.resource-confirm,
|
||||
.resource-stale {
|
||||
padding: 12px 14px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 8px;
|
||||
background: var(--surface);
|
||||
}
|
||||
|
||||
.resource-confirm-text {
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.resource-stale {
|
||||
border-color: var(--red-border);
|
||||
background: var(--red-bg);
|
||||
color: var(--red);
|
||||
}
|
||||
|
||||
.resource-action-status {
|
||||
margin: 0;
|
||||
min-height: 14px;
|
||||
font-size: 12px;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.resource-archived-hint {
|
||||
margin: 0;
|
||||
padding: 10px 12px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 8px;
|
||||
background: var(--surface);
|
||||
font-size: 12px;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.resource-published {
|
||||
display: grid;
|
||||
gap: 12px;
|
||||
padding: 14px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 8px;
|
||||
background: var(--surface);
|
||||
}
|
||||
|
||||
.resource-published-title,
|
||||
.resource-bind-title {
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.resource-bind {
|
||||
display: grid;
|
||||
gap: 12px;
|
||||
padding-top: 12px;
|
||||
border-top: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.resource-bind-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.resource-bind-value {
|
||||
display: block;
|
||||
font-family: var(--font-mono, monospace);
|
||||
font-size: 12px;
|
||||
min-height: 18px;
|
||||
}
|
||||
|
||||
.resource-bind-stale {
|
||||
margin: 0;
|
||||
padding: 10px 12px;
|
||||
border: 1px solid var(--red-border);
|
||||
border-radius: 8px;
|
||||
background: var(--red-bg);
|
||||
color: var(--red);
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
/* D1: видимая безопасная ошибка точного Published GET (без payload/bytes). */
|
||||
.resource-published-error {
|
||||
padding: 10px 12px;
|
||||
border: 1px solid var(--red-border);
|
||||
border-radius: 8px;
|
||||
background: var(--red-bg);
|
||||
color: var(--red);
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
/* Story 3.10: REST-backed Resource template source panel and pinned facts. */
|
||||
.resource-source-panel {
|
||||
border: 1px solid var(--color-border, #e2e5ea);
|
||||
border-radius: 10px;
|
||||
padding: 14px;
|
||||
margin: 12px 0;
|
||||
}
|
||||
|
||||
.resource-source-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.resource-source-empty {
|
||||
color: var(--color-text-muted, #667085);
|
||||
}
|
||||
|
||||
.resource-source-facts {
|
||||
margin-top: 16px;
|
||||
padding-top: 12px;
|
||||
border-top: 1px solid var(--color-border, #e2e5ea);
|
||||
}
|
||||
|
||||
.resource-source-params {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
margin: 12px 0;
|
||||
}
|
||||
|
||||
.resource-param-row {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 10px;
|
||||
align-items: center;
|
||||
padding: 8px 10px;
|
||||
border-radius: 8px;
|
||||
background: var(--color-surface-muted, #f5f6f8);
|
||||
}
|
||||
|
||||
.resource-param-row input[type="text"] {
|
||||
min-width: 180px;
|
||||
}
|
||||
|
||||
.resource-param-error {
|
||||
color: var(--color-danger, #b42318);
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.resource-source-confirm-facts {
|
||||
font-size: 13px;
|
||||
color: var(--color-text-muted, #667085);
|
||||
margin: 4px 0 10px;
|
||||
}
|
||||
Reference in new issue
Block a user